"use strict";this.default_kevlar_base=this.default_kevlar_base||{};(function(_){var window=this;
try{
_._F_toggles_initialize=function(A){(typeof globalThis!=="undefined"?globalThis:typeof self!=="undefined"?self:this)._F_toggles_default_kevlar_base=A||[]};
(0,_._F_toggles_initialize)([0x1000000, 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 L9,AsD,xyd,Xp,PJ,sds,Js_,qy,p9,Prs,dyy,Yup,Ny,VDP,Dys,GO,neM,qu_,pJO,Nud,GOO,leM,CrO,QdM,myP,Ieu,Ac,jdr,Jc,WMJ,Pn,H9d,dJ,e3,Bu_,MD_,C6,FL,aep,AcJ,Lle,f6,Xnd,xN9,s6e,PH_,O6r,yu,Yg_,V3_,t3d,sz,b6J,h7e,Sge,qgu,gVp,xX,e7O,Oz,EVO,nVu,lNr,CHp,Flr,DS,mNu,Q6M,fNe,INM,yce,j6r,Wl9,BJ9,M3r,kjP,vVe,AkP,s7u,PJP,Jkd,Gn,dQJ,DQP,eS_,nXd,SzP,bJ_,qzp,hSe,cX,Z6_,FM,R7,fJ,gXD,I7,iJd,wXP,pXu,WX,NBp,rk_,Gnu,ck_,lSs,CJs,F$r,RSd,ZS,mQM,ISe,Uz,ZJy,zSe,o7,$Qr,UQy,j7_,vX_,AEy,LJP,d0O,x0d,uPu,Vgy,D0u,EWJ,nWe,qBs,Nw_,CaD,
m0P,WJM,ba,z39,MgP,$0O,N0,rw,la,C_,yo,jg,Wf,Xzp,JnM,PeP,u09,Doe,OJ,eoe,sJ,Jn,Pz,dp,n3e,t4P,bLM,hoO,SJJ,g3D,wzu,pzp,iLr,rnu,DM,VP,Khe,GM9,lMD,CeD,cne,Fhy,RoM,Q9O,gp,wp,ie,No,KL,fMe,GM,ynu,zoD,cz,Bp9,M4M,$o9,F0,aMD,kMP,Uoy,R9,ADd,mh,XTe,xFr,fL,JDD,soO,PWe,dF_,YOr,uTs,j4,Tzu,VxO,Wz,DFr,eEy,Hz,zM,Bz,Mo,ET_,tx_,nTu,$3,hEM,SOe,qOy,UJ,o9,AD,Lm,OO,XT,gTd,wTr,imu,Nzu,rDJ,Kyu,G0_,l4_,cDu,CWs,Fyp,REs,QoP,sO,mFu,f4e,dz,I4M,T0,D4,yD9,Wy_,HmM,zEO,MxM,$Fe,a4_,oT_,Agd,LKD,O$y,Xqe,xYO,snd,YTD,tD,uq9,TXP,VVp,DYu,eYy,
E8O,tVP,GXD,lgO,cgp,RYu,Qnp,NF,mYu,ygu,WKu,H$p,zYs,BX9,MVp,$Y_,age,kXJ,v8J,o8r,Z$s,A0_,LvP,Orr,Xu_,xDJ,see,J0d,PQu,dDO,VI_,uxd,ENr,DDJ,eUD,brP,hUy,S4d,nNe,gNu,tI9,pu_,WT,irD,HT,BT,NFD,Kvr,GVy,CQd,Wvu,RUs,Fvr,mDp,IWe,Qey,aWu,BF9,kVp,UDe,vN9,oNy,A8D,OBP,Lsp,XYp,xEu,sOP,J8_,dEe,usM,T9u,V6u,efs,DEr,N9d,vT,r89,GDO,lJe,c8M,Ckr,Fsp,QOr,mEu,fJD,sT,Jg,IJD,zfs,Y8,us,aJu,UEu,PKe,eV,TNd,VhD,n$P,ens,E$P,qY,thP,beu,StP,qtO,g$M,wOJ,pOy,W7D,HeD,BNO,Mhd,aKD,$OJ,v$p,ls,Fq,A4r,Lgu,OHu,X1y,x6u,sNJ,P8u,Y$d,d6u,Bq,$8,
an,on,p1y,iHs,A0,r4e,NRe,m6u,fc9,Ics,ZHO,zZ_,MYP,$6p,acd,kY_,vo_,AyJ,Lxy,xN,XhM,Jyy,Pgr,ddM,YNJ,TTu,sve,O7e,uJu,J0,DdM,tJM,EwO,YN,hgM,qNJ,gwD,whD,ph9,DW,i7d,ryd,NT9,KxD,lzO,nr,fzd,yyr,jvP,H7_,SI,BT9,wF,iQ,pr,kur,zge,Udd,Kr,L2P,cu,Cr,x79,PO9,YjJ,uhp,TVp,Fx,Vv9,QO,D7y,Eds,ndP,tvs,bd_,SjD,fr,qjp,gd9,jI,zV,id9,NVe,rle,MD,lZs,cl_,F2J,oe,Zdu,jUD,fZO,Hdr,zLJ,BVD,xL,J8,PY,kku,U7M,YL,vdO,odJ,A9M,LUu,X3M,xAs,sFP,J9O,Ohu,Pie,DJ,YIe,T6e,e6,unD,Vfs,dAp,DAe,nB,EOp,nOP,tfy,bhe,SIJ,hF_,qIu,p3P,gOd,N6u,CiO,RFP,QFu,
fxp,Zh9,y99,Ixe,jFP,Hhu,B6p,zFs,$A9,kN_,UAp,vOe,oOr,sku,xG_,Jzd,P3e,lk,cY,dG9,uzr,Vm9,EKd,tmP,nKy,Aj,bMu,TQP,iMr,rzu,KfP,GZr,Jj,lQp,C3u,QkO,IQe,fQp,WfM,HM9,zAe,BQu,$Ge,oKy,aQM,UGd,vKO,AYr,LCu,XGD,OY_,smr,xas,bK,JYO,da9,Yes,Dau,NO,rN,eDO,EBd,Ke,hDe,Ce,F5,RZ,wGe,Qr,Nhe,IZ,rYu,KCe,G1M,ln9,jh,cYy,CNr,FCy,QmP,fn_,ZYd,WCe,vO,HYr,zDJ,Bhp,MMu,$au,any,k1s,Uap,LH,Aiu,Lue,O3P,XyD,xTu,sas,JiJ,Pne,dTr,YPP,uZO,TMd,VQJ,dR,py9,i3J,Yo,u8,TY,NMD,riO,Ku_,Gm_,l9y,ciD,Cny,f9s,I9e,yi9,Z3s,jae,E$,t4,b8,h4,wR,pH,i8,H3d,
rR,BMJ,KH,MQu,$TO,GY,a9u,km_,UTu,JTr,dR_,DRJ,tq9,nJs,Pyd,b49,qbd,QJu,rT_,Z4r,GK9,yTe,jJJ,Qb,H49,fH,Bd9,MqP,aBM,kKr,URJ,oJD,Zc,LeD,OTO,XRM,xb_,syu,Jt_,PVu,AtP,uIp,TWe,V5p,W1,bTu,hke,t5y,qYM,gae,pR9,iTr,wRP,CVJ,RkJ,mbP,IXe,ON,zkD,HTJ,kiu,vae,oa9,AFJ,L4J,OyJ,Xx9,Tu,Vty,epJ,uVu,YCu,DnP,sQP,n49,rF9,hpM,SCD,qCu,frd,yFJ,mnp,Ble,QQs,xn_,zps,byJ,Nlp,IrO,E4O,PBM,JFJ,dnM,Tls,RpD,K7,JIO,dVM,YkM,ui_,T0D,Sk9,N0M,rIe,Zz,GPP,CS_,mVM,QDM,Il_,yIu,jDe,HuO,WND,zT_,UN,B0_,M8u,alr,$VP,vh,LBD,ACD,oue,sGs,Ov_,JCp,xwe,PId,
Al,dw9,VEe,ugP,T1J,eOu,tEr,xd,Sf_,bv_,qfM,ive,N1O,GRd,cCM,dV,Yd,QGJ,mwu,uO,Tk,fEM,VL,DZ,IEP,ev,yCp,Ej,Zvp,jGJ,tl,WB_,Hve,zOu,B1e,MEu,aEu,$w_,UwO,ARP,ofM,Lzy,Oqr,kRM,XwD,JRe,sIP,vf9,PE9,dlJ,gV,Yru,Tos,u2J,VOu,DlD,ED_,eqe,nD_,pd,bqD,hqp,tOJ,qru,gDr,wwM,rRs,l7u,QIM,yRe,rV,WzO,Hqp,Kd,zqu,Cd,Fh,Uld,lO,m2,vDe,oDO,LTO,Oss,xKe,JWy,P1r,dKO,Yi_,VXe,tXD,Ezs,TAe,bs9,hmM,ZZ,nzO,Sip,H2,qir,gzP,wMM,pMr,KTy,isJ,rWM,C1J,FT9,IFu,fFy,jHs,$Ke,aFO,UKr,ozP,AVO,O59,X6P,xSD,JVu,P_s,dS9,Tku,EjJ,nje,VuO,b59,SvJ,hb_,tue,qvd,
w69,p6P,i5p,NkM,rVu,OI,Xn,J9,d6,lVu,cVu,FRy,mSy,YO,ui,fVP,TN,jSJ,WRr,H5r,Dx,aVP,oju,LSe,OcO,Xbp,xJO,s$e,dJD,EI,YMr,V7M,nh,DJu,nFM,t7M,bcM,EFO,pbP,rQD,icu,KSe,cQp,FSe,Q$e,yQe,Ity,Hc9,qA,zJO,B_d,g6,M79,w6,$Js,at9,kI9,vFP,UJy,oFJ,AwD,LZO,On9,Y1D,Tru,DIe,VrM,Jwy,xIJ,EIu,trd,gIe,w9_,Nrp,C5u,RjD,r6,QLs,fPP,IPe,Zny,zje,$IP,UIJ,vIO,oIr,ArO,sMe,LDJ,YaD,u8O,Tx9,Dze,li,e1d,nxy,tpO,bDd,h1r,SaP,qaD,gx9,pFs,iDM,RF,Nxr,rrJ,GaD,mU,KDe,crp,QMD,yq,mzO,fI9,IIO,jMp,WDd,yrp,z19,aIJ,kas,Uzr,B3,vxr,OXe,Xgp,UI,J_e,x_d,sjM,
d_P,uoJ,Tts,V0D,n9u,hQr,bX9,t0M,SSp,g9s,wgP,Kde,pgd,GCe,c_J,l_J,f_r,ZXp,Wds,zQM,a__,OCP,x5u,shJ,YQ_,TqJ,c4,ZQ,tKP,qQ_,SQP,wie,piJ,Nqd,iCu,rAO,K1D,jm,eB9,bCy,gpu,hCr,Ik,cAD,Che,F1u,RCD,Qhu,m5_,f2_,I2J,yAe,ZCu,AY,jhP,LY,W1s,HCe,zCu,Bqu,xB,MK_,kou,vp_,opD,JB9,d1e,Y7y,uEu,VoM,D19,Ee,Et_,nte,toJ,bbJ,hiu,S7_,gt_,pBr,NSP,rBu,FGr,cBy,RiD,fUO,IUu,gh,yB_,Zbp,jty,zid,MoP,BSe,aUP,U1y,Na,ot9,A7r,vtd,L0s,O29,xBp,J7y,ssd,P4P,X_M,dBp,YU_,uGO,Tmu,V9s,DBy,es_,Eqp,nqP,hsu,b2s,SUd,gqJ,qUr,rh,w_P,Nm9,lT_,p_u,F0P,Rsr,
QsM,mBO,Bm_,M9O,aTe,ker,jM,Aae,xvD,P6M,WG,Tfd,u6M,VlD,BG,Dvs,el_,E1_,tle,bAd,hls,Sc9,g1e,w$O,Fk_,G6e,ca9,Qlu,Rls,mv_,fYp,ya_,jl9,HA9,Bfe,Cvr,Qrp,fbu,Ib9,yMM,ZOe,jre,HOu,zWe,$rP,abM,kfu,Uru,v5y,o5u,A3_,LQe,xU_,dUu,sP,Ji,Py,dM,YL_,Tm,TDe,SL_,NDM,pL_,WQe,Hld,zGJ,DUs,hGu,nrd,MbD,$UP,a1D,grd,UUO,oru,L9r,xqs,sWO,p3,K3,Gm,VR_,TUD,nHr,tRO,NUD,K9u,lmD,c2D,R6r,mqe,QWP,y2O,jWM,amu,MR9,HE_,$qD,z6u,kUs,A$y,zm,Ydu,J$D,TIp,VSp,ev9,EZ_,MT,nZp,hvu,qdd,gZu,pkp,wk9,kc,lke,Ob,CxP,FLD,xJ,RvJ,Q4u,mfM,fku,Ike,y$_,ZP_,j4J,
WLu,HPO,zve,BI_,MSP,$fs,aku,sb,kwu,UfJ,vZP,oZp,ANd,LPJ,O0s,XQr,xL9,sEJ,JNr,PGr,PD,Y8e,Tny,DLO,n6p,hKu,S8y,q8d,wQu,i0O,Nns,rNr,n4,CGO,lRd,FPJ,RKu,QEu,IRe,yND,Z0u,WPd,K4,zKO,NR,MCO,$Ld,GK,aRM,kGp,ULe,v6M,FS,ORD,xpu,Ypu,dp_,T3p,VGp,ZB,DpO,eN9,nmp,bRu,hN9,qpd,gme,tG9,pte,iRJ,lCD,RNO,Q0M,jq,mp_,fCu,Wpr,ICp,ZRr,j0r,aC_,zNO,kxp,vms,Am9,LmP,Opy,XAP,xtP,sxu,PZp,dte,YWd,u1u,T2u,Dtd,EPd,bpP,gPr,ipu,rmP,l0p,aJ,cmO,CZp,FmM,RhP,QxP,f0P,I0D,ymy,Zp9,jxM,WmM,Hps,zhs,B2_,Miy,$tP,kLd,a0u,oP_,LXu,vD,OxO,sc_,xWy,dWP,
Ylu,u3r,Ts9,eHp,tjD,nUu,DWO,SlP,hHM,ixu,qlp,sY,w7u,CYs,KXJ,GpO,ls9,cp9,FXe,QcO,RHs,Jt,PR,WXp,fsu,jcs,Zx_,Isu,ypO,Bs9,$We,kpy,asJ,AUe,oU_,XZr,xMD,JUP,P$d,sYD,dM9,uOe,YVM,Vku,Els,EY,nle,tke,SVe,izM,cUO,tt,FFy,fGM,jYe,Zzy,IGu,yUO,gW,Bce,WFM,Hzs,MkP,aGe,$MO,vlu,olu,LwJ,Ojs,XvP,x3O,sXu,P09,d3_,Qz,uQp,fT,Tvr,Ebe,nbr,j5,teJ,h$M,Kwu,Mb,wvp,r6u,pvy,ijd,C0r,FwD,c6J,R$d,QXM,y6J,m3u,Zjp,jXd,ay,Hjs,z$M,Bv9,Wwe,vR,MeD,ka,U39,x$J,sKs,Joe,PLu,d$M,YGe,D$u,T5_,VFM,uYr,ERM,bF_,qGD,gRO,p0O,rou,iFD,N5d,KV_,lvu,coJ,CLy,
FVD,RVM,QKr,fvs,JF,yo9,WVu,jKe,zVy,HFJ,B5M,MFr,$$e,Px,khM,P7u,s2u,u$u,T7O,tye,bwd,hts,SFe,qFy,gnJ,iwM,N7M,rJO,K3D,cJJ,C7P,F3O,Rtp,Q2s,mud,fjp,Ijs,yJM,ZwO,j2J,HwO,ztr,B7O,$up,kHu,AdD,onu,vnP,Uup,x2u,OGr,JdO,d2p,Y_u,uBs,iB,TKu,VAM,D2J,tAd,ey_,bGd,ES_,hys,GJ,S_J,q_e,gSu,nSu,waM,KEp,l$D,Cy,FEJ,RQ,Q1u,m2y,f$u,Rys,I$u,ydO,ZGJ,j1s,WEy,zye,BKd,MAP,$2s,U2y,kWe,Ood,a$y,Q3,XKe,vS9,L_y,J1J,dxy,DxM,TPD,VWr,uA9,Y2M,ew9,EQP,Bx,bop,S2O,q2d,gQu,wK_,pKu,GqP,NPe,ioP,r1u,Zop,Iud,K_e,fue,$xp,auD,kqP,Ux_,vQd,oQe,AGp,LAJ,
x8_,JGr,d8s,ubs,TLu,VB_,nEu,EEJ,tBu,h5_,Vd,gEu,w5M,p5u,ig9,e8,Ek,KAy,cGP,f3u,j5y,WAO,HgJ,z5e,BLJ,MBu,a3u,U8J,kgO,vEp,APe,LWe,OkD,XoO,x9_,s8u,qV,JPP,D9u,e2r,um9,Y3d,VLP,Tar,gCs,h2M,pu,wou,poy,ikJ,NaO,rPp,KWD,lLp,CTu,R2u,m9r,ILy,WWu,Hkd,z2P,$9_,MLO,Bay,aLM,ksy,vCM,oCe,A5r,Lbu,lS,Xde,xcO,sRD,Pfe,J5O,dc9,udJ,Dce,eue,E2D,n2u,t1D,SEu,qEr,bID,huu,Kbu,GQO,c5J,Cfe,FbO,Ru9,QRP,mcu,y59,ZIJ,WbP,zur,HIM,B8y,Zl,M1O,$cr,a8e,kQu,AbM,o2_,XUM,x4_,Pqp,YK_,ukp,Tgs,VUM,D4s,e99,E_D,n__,tUp,baM,SKd,h9e,qKu,g_p,wUP,pU_,
iau,Ngu,rby,G3d,l6d,KrO,$u,Cqp,FrP,R99,Qwy,f6p,ybu,Zau,jw_,Wrp,Har,z9p,MUy,$4y,k3u,v_e,Ah_,xZ_,OW9,Lqd,Xe_,sud,Jhu,PM_,uNO,TGp,VPD,DZd,Ek9,nku,tPD,hz_,bWJ,SZu,qZ9,gkP,weD,iWM,NGu,rhP,Kqu,GEe,lo_,chs,CMr,Rzu,Qu_,mZO,fos,yhs,ZWM,juM,zzs,BGP,Wqr,HW9,aoD,kEs,UZd,AfM,LOD,uI,JfO,PtM,YHy,Vd9,TZ_,Dje,eXJ,TR,DE,nMu,td_,nv,tC,qHe,bSM,hXu,pjJ,iSs,NZs,rfr,cfd,FO9,RXu,Qie,mj9,fdO,yf9,ZSO,jiD,WOP,HSd,zXp,BZp,SE,Md_,$jJ,g1,ade,ktD,Uju,vMM,oMp,AXr,iI,Nw,LId,OND,r1,Xrd,xgJ,szM,JXM,dgu,YDJ,T$O,ni9,EiJ,eMu,tcs,bND,
prD,qDM,gi9,SDM,wrM,GR,rXd,KIe,G8p,lq9,cXd,FIe,Qze,Iq_,WIP,ZND,lI,yXP,$gd,k8y,Uge,viu,oir,AHM,OVr,XSp,xeu,sCp,Pud,der,Yhy,TEe,VNJ,eI9,E7d,ShD,g7r,qhM,pSM,G4M,lhu,cH_,Cuu,QCy,IhM,mB,yHu,ZVs,jCp,W8u,zIy,BEO,MNy,$eD,k4e,v7D,o7p,AxD,fv,LHu,O8P,sTO,JxO,IG,yZ,Y9M,Pwr,Vny,uaD,DPe,EsJ,HC,nsO,tnu,S9O,gsM,zR,psu,i8D,NiM,rxe,KHM,Gbs,lwJ,FHu,fw_,Iwr,jTM,yxp,Z8e,WHM,Mnp,H8u,Biu,$Pu,awM,kb9,oss,AKu,Lar,XHu,xme,u9D,Yyy,nAr,hau,AR,Syu,KsO,qy_,gAy,pHu,rKu,Kae,QVp,mmD,fas,Iae,yKd,Z1_,Wau,H1d,Bbp,$me,zas,Mzs,k5J,aar,
ALd,vA_,LoM,Oty,XVe,xiP,sqD,PFp,JLu,TOu,e_u,VHr,EhP,nhD,tHp,YD,btM,h_r,T_,qm_,SmP,ghJ,wVJ,itr,NOe,KoD,GdJ,lfe,cLy,CFJ,QqP,IfD,jqJ,ZtJ,Wop,HtD,MHJ,XIJ,Uiu,s_e,Jee,dXP,YnP,DXe,eed,ngp,twP,bZu,Sn_,qns,gge,wIe,pIe,iZr,NC9,Kcp,ceO,CUe,FcO,Rep,Q_e,mXO,fHO,ZZu,yes,zer,BCe,Mwp,$Xe,aHD,UXJ,k9s,oge,xHP,uUy,dH_,Tyu,V$_,DH9,E0p,F2,t$O,fq,h4_,qXM,g0p,rOp,Gre,F6p,Q3e,mHe,I5e,yOJ,ZKJ,W69,z4u,Bys,$H9,UHP,krJ,a5u,Ww,o0s,v0e,Av_,L5M,Oir,X8e,xhO,sbu,JvJ,dhJ,Yxu,uvP,TeO,Var,Dhr,exr,Evd,nve,biD,hxu,rvp,K5D,GTM,cvp,CpP,
F5s,mhu,kD,W5e,Hiu,zxM,BeM,Mau,Ur,vw,MY,oI,Ls,Ltu,xsp,Jur,sgu,Xu,P29,ds_,Yq_;_.As=function(A,L){if(Error.captureStackTrace)Error.captureStackTrace(this,_.As);else{var O=Error().stack;O&&(this.stack=O)}A&&(this.message=String(A));L!==void 0&&(this.cause=L)};
L9=function(){throw Error("E");};
AsD=function(A,L){L=String.fromCharCode.apply(null,L);return A==null?L:A+L};
xyd=function(A){var L=!1;L=L===void 0?!1:L;if(LMu){if(L&&(O9_?!A.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(A)))throw Error("F");A=(XJs||(XJs=new TextEncoder)).encode(A)}else{for(var O=0,X=new Uint8Array(3*A.length),x=0;x<A.length;x++){var J=A.charCodeAt(x);if(J<128)X[O++]=J;else{if(J<2048)X[O++]=J>>6|192;else{if(J>=55296&&J<=57343){if(J<=56319&&x<A.length){var Y=A.charCodeAt(++x);if(Y>=56320&&Y<=57343){J=(J-55296)*1024+Y-56320+65536;X[O++]=J>>18|
240;X[O++]=J>>12&63|128;X[O++]=J>>6&63|128;X[O++]=J&63|128;continue}else x--}if(L)throw Error("F");J=65533}X[O++]=J>>12|224;X[O++]=J>>6&63|128}X[O++]=J&63|128}}A=O===X.length?X:X.subarray(0,O)}return A};
Xp=function(A){_.Ou.setTimeout(function(){throw A;},0)};
_.su=function(A,L){return A.lastIndexOf(L,0)==0};
PJ=function(A,L){var O=A.length-L.length;return O>=0&&A.indexOf(L,O)==O};
_.Ye=function(A){return/^[\s\xa0]*$/.test(A)};
_.TO=function(A,L){return A.indexOf(L)!=-1};
_.V_=function(A,L){return _.TO(A.toLowerCase(),L.toLowerCase())};
_.Eu=function(A,L){var O=0;A=De(String(A)).split(".");L=De(String(L)).split(".");for(var X=Math.max(A.length,L.length),x=0;O==0&&x<X;x++){var J=A[x]||"",Y=L[x]||"";do{J=/(\d*)(\D*)(.*)/.exec(J)||["","","",""];Y=/(\d*)(\D*)(.*)/.exec(Y)||["","","",""];if(J[0].length==0&&Y[0].length==0)break;O=sds(J[1].length==0?0:parseInt(J[1],10),Y[1].length==0?0:parseInt(Y[1],10))||sds(J[2].length==0,Y[2].length==0)||sds(J[2],Y[2]);J=J[3];Y=Y[3]}while(O==0)}return O};
sds=function(A,L){return A<L?-1:A>L?1:0};
_.n9=function(){var A=_.Ou.navigator;return A&&(A=A.userAgent)?A:""};
Js_=function(A){if(!br||!hs)return!1;for(var L=0;L<hs.brands.length;L++){var O=hs.brands[L].brand;if(O&&_.TO(O,A))return!0}return!1};
qy=function(A){return _.TO(_.n9(),A)};
p9=function(){return br?!!hs&&hs.brands.length>0:!1};
Prs=function(){return p9()?!1:qy("Opera")};
dyy=function(){return p9()?!1:qy("Trident")||qy("MSIE")};
Yup=function(){return p9()?Js_("Microsoft Edge"):qy("Edg/")};
Ny=function(){return qy("Firefox")||qy("FxiOS")};
_.upe=function(){return qy("Safari")&&!(_.K9()||(p9()?0:qy("Coast"))||Prs()||(p9()?0:qy("Edge"))||Yup()||(p9()?Js_("Opera"):qy("OPR"))||Ny()||qy("Silk")||qy("Android"))};
_.K9=function(){return p9()?Js_("Chromium"):(qy("Chrome")||qy("CriOS"))&&!(p9()?0:qy("Edge"))||qy("Silk")};
_.Tue=function(){return qy("Android")&&!(_.K9()||Ny()||Prs()||qy("Silk"))};
VDP=function(A){var L={};A.forEach(function(O){L[O[0]]=O[1]});
return function(O){return L[O.find(function(X){return X in L})]||""}};
Dys=function(A){var L=_.n9();if(A==="Internet Explorer"){if(dyy())if((A=/rv: *([\d\.]*)/.exec(L))&&A[1])L=A[1];else{A="";var O=/MSIE +([\d\.]+)/.exec(L);if(O&&O[1])if(L=/Trident\/(\d.\d)/.exec(L),O[1]=="7.0")if(L&&L[1])switch(L[1]){case "4.0":A="8.0";break;case "5.0":A="9.0";break;case "6.0":A="10.0";break;case "7.0":A="11.0"}else A="7.0";else A=O[1];L=A}else L="";return L}var X=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");O=[];for(var x;x=X.exec(L);)O.push([x[1],x[2],x[3]||void 0]);
L=VDP(O);switch(A){case "Opera":if(Prs())return L(["Version","Opera"]);if(p9()?Js_("Opera"):qy("OPR"))return L(["OPR"]);break;case "Microsoft Edge":if(p9()?0:qy("Edge"))return L(["Edge"]);if(Yup())return L(["Edg"]);break;case "Chromium":if(_.K9())return L(["Chrome","CriOS","HeadlessChrome"])}return A==="Firefox"&&Ny()||A==="Safari"&&_.upe()||A==="Android Browser"&&_.Tue()||A==="Silk"&&qy("Silk")?(L=O[2])&&L[1]||"":""};
_.ePy=function(A){if(p9()&&A!=="Silk"){var L=hs.brands.find(function(O){return O.brand===A});
if(!L||!L.version)return NaN;L=L.version.split(".")}else{L=Dys(A);if(L==="")return NaN;L=L.split(".")}return L.length===0?NaN:Number(L[0])};
GO=function(){return br?!!hs&&!!hs.platform:!1};
_.Ees=function(){return GO()?hs.platform==="Android":qy("Android")};
neM=function(){return qy("iPhone")&&!qy("iPod")&&!qy("iPad")};
_.lr=function(){return neM()||qy("iPad")||qy("iPod")};
_.tDP=function(){return GO()?hs.platform==="macOS":qy("Macintosh")};
_.b9e=function(){return GO()?hs.platform==="Windows":qy("Windows")};
_.hP_=function(){return GO()?hs.platform==="Chrome OS":qy("CrOS")};
_.cJ=function(A){return A[A.length-1]};
_.Fp=function(A,L,O){L=_.Sur(A,L,O);return L<0?null:typeof A==="string"?A.charAt(L):A[L]};
_.Sur=function(A,L,O){for(var X=A.length,x=typeof A==="string"?A.split(""):A,J=0;J<X;J++)if(J in x&&L.call(O,x[J],J,A))return J;return-1};
qu_=function(A){for(var L=_.Rd,O=typeof A==="string"?A.split(""):A,X=A.length-1;X>=0;X--)if(X in O&&L.call(void 0,O[X],X,A))return X;return-1};
_.Id=function(A,L){return _.Q_(A,L)>=0};
_.gep=function(A,L){_.Id(A,L)||A.push(L)};
_.y_=function(A,L){L=_.Q_(A,L);var O;(O=L>=0)&&_.wJr(A,L);return O};
_.wJr=function(A,L){Array.prototype.splice.call(A,L,1)};
_.Ze=function(A){var L=A.length;if(L>0){for(var O=Array(L),X=0;X<L;X++)O[X]=A[X];return O}return[]};
_.WJ=function(A,L){for(var O=1;O<arguments.length;O++){var X=arguments[O];if(_.jD(X)){var x=A.length||0,J=X.length||0;A.length=x+J;for(var Y=0;Y<J;Y++)A[x+Y]=X[Y]}else A.push(X)}};
_.i9r=function(A,L,O,X){Array.prototype.splice.apply(A,pJO(arguments,1))};
pJO=function(A,L,O){return arguments.length<=2?Array.prototype.slice.call(A,L):Array.prototype.slice.call(A,L,O)};
Nud=function(A,L){L=L||A;for(var O=0,X=0,x={};X<A.length;){var J=A[X++],Y=_.BJ(J)?"o"+_.$e(J):(typeof J).charAt(0)+J;Object.prototype.hasOwnProperty.call(x,Y)||(x[Y]=!0,L[O++]=J)}L.length=O};
_.KMu=function(A,L,O){O=O||_.rsu;for(var X=0,x=A.length,J;X<x;){var Y=X+(x-X>>>1);var T=O(L,A[Y]);T>0?X=Y+1:(x=Y,J=!T)}return J?X:-X-1};
_.ad=function(A,L,O){if(!_.jD(A)||!_.jD(L)||A.length!=L.length)return!1;var X=A.length;O=O||GOO;for(var x=0;x<X;x++)if(!O(A[x],L[x]))return!1;return!0};
_.rsu=function(A,L){return A>L?1:A<L?-1:0};
GOO=function(A,L){return A===L};
leM=function(A,L,O){L=Array.prototype.splice.call(A,L,1);Array.prototype.splice.call(A,O,0,L[0])};
CrO=function(A){return csu[A]||""};
QdM=function(A){if(!FMu)return _.ke(A);A=RPs.test(A)?A.replace(RPs,CrO):A;A=atob(A);for(var L=new Uint8Array(A.length),O=0;O<A.length;O++)L[O]=A.charCodeAt(O);return L};
myP=function(A,L){A.__closure__error__context__984382||(A.__closure__error__context__984382={});A.__closure__error__context__984382.severity=L};
_.od=function(A){A=Error(A);myP(A,"warning");return A};
Ieu=function(A,L){if(A!=null){var O;var X=(O=feO)!=null?O:feO={};O=X[A]||0;O>=L||(X[A]=O+1,A=Error(),myP(A,"incident"),Xp(A))}};
Ac=function(A,L,O){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(O===void 0?0:O)&&Symbol.for&&A?Symbol.for(A):A!=null?Symbol(A):Symbol():L};
jdr=function(A,L){Og||_.sg in A||ysr(A,Z9M);A[_.sg]|=L};
Jc=function(A,L){Og||_.sg in A||ysr(A,Z9M);A[_.sg]=L};
WMJ=function(A){if(4&A)return 512&A?512:1024&A?1024:0};
Pn=function(A){jdr(A,34);return A};
H9d=function(A){jdr(A,32);return A};
dJ=function(){return typeof BigInt==="function"};
e3=function(A,L){return L===void 0?A.copyOnWrite!==uH&&!!(2&(A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.sg]|0)):!!(2&L)&&A.copyOnWrite!==uH};
_.K6=function(A,L){if(A!=null)if(typeof A==="string")A=A?new qN(A,iH):_.rJ();else if(A.constructor!==qN)if(zPD&&A!=null&&A instanceof Uint8Array)A=A.length?new qN(new Uint8Array(A),iH):_.rJ();else{if(!L)throw Error();A=void 0}return A};
Bu_=function(A,L){if(typeof L!=="number"||L<0||L>=A.length)throw Error();};
MD_=function(A,L,O){var X=L&128?0:-1,x=A.length,J;if(J=!!x)J=A[x-1],J=J!=null&&typeof J==="object"&&J.constructor===Object;var Y=x+(J?-1:0);for(L=L&128?1:0;L<Y;L++)O(L-X,A[L]);if(J){A=A[x-1];for(var T in A)!isNaN(T)&&O(+T,A[T])}};
C6=function(A){return A&128?lH:void 0};
FL=function(A){A.isGuard_doNotManuallySetPrettyPlease=!0;return A};
aep=function(){var A=$yM;return FL(function(L){for(var O in A)if(L===A[O]&&!/^[0-9]+$/.test(O))return!0;return!1})};
_.R6=function(A){var L=A;if(kOy(L)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(L))throw Error(String(L));}else if(UyO(L)&&!Number.isSafeInteger(L))throw Error(String(L));return vey?BigInt(A):A=oe9(A)?A?"1":"0":kOy(A)?A.trim()||"0":String(A)};
AcJ=function(A,L){if(A.length>L.length)return!1;if(A.length<L.length||A===L)return!0;for(var O=0;O<A.length;O++){var X=A[O],x=L[O];if(X>x)return!1;if(X<x)return!0}};
Lle=function(A){var L=A>>>0;Qu=L;ml=(A-L)/4294967296>>>0};
f6=function(A){if(A<0){Lle(-A);var L=_.d(O6r(Qu,ml));A=L.next().value;L=L.next().value;Qu=A>>>0;ml=L>>>0}else Lle(A)};
Xnd=function(A,L){var O=L*4294967296+(A>>>0);return Number.isSafeInteger(O)?O:_.I6(A,L)};
xN9=function(A,L){var O=L&2147483648;O&&(A=~A+1>>>0,L=~L>>>0,A==0&&(L=L+1>>>0));A=Xnd(A,L);return typeof A==="number"?O?-A:A:O?"-"+A:A};
_.I6=function(A,L){L>>>=0;A>>>=0;if(L<=2097151)var O=""+(4294967296*L+A);else dJ()?O=""+(BigInt(L)<<BigInt(32)|BigInt(A)):(O=(A>>>24|L<<8)&16777215,L=L>>16&65535,A=(A&16777215)+O*6777216+L*6710656,O+=L*8147497,L*=2,A>=1E7&&(O+=A/1E7>>>0,A%=1E7),O>=1E7&&(L+=O/1E7>>>0,O%=1E7),O=L+s6e(O)+s6e(A));return O};
s6e=function(A){A=String(A);return"0000000".slice(A.length)+A};
_.JcO=function(A,L){L&2147483648?dJ()?A=""+(BigInt(L|0)<<BigInt(32)|BigInt(A>>>0)):(L=_.d(O6r(A,L)),A=L.next().value,L=L.next().value,A="-"+_.I6(A,L)):A=_.I6(A,L);return A};
PH_=function(A){if(A.length<16)f6(Number(A));else if(dJ())A=BigInt(A),Qu=Number(A&BigInt(4294967295))>>>0,ml=Number(A>>BigInt(32)&BigInt(4294967295));else{var L=+(A[0]==="-");ml=Qu=0;for(var O=A.length,X=L,x=(O-L)%6+L;x<=O;X=x,x+=6)X=Number(A.slice(X,x)),ml*=1E6,Qu=Qu*1E6+X,Qu>=4294967296&&(ml+=Math.trunc(Qu/4294967296),ml>>>=0,Qu>>>=0);L&&(L=_.d(O6r(Qu,ml)),A=L.next().value,L=L.next().value,Qu=A,ml=L)}};
O6r=function(A,L){L=~L;A?A=~A+1:L+=1;return[A,L]};
yu=function(A){return Array.prototype.slice.call(A)};
_.ZN=function(A,L){throw Error(L===void 0?"unexpected value "+A+"!":L);};
_.j3=function(A){if(A!=null&&typeof A!=="number")throw Error("L`"+typeof A+"`"+A);return A};
_.dNp=function(A){if(A==null||typeof A==="number")return A;if(A==="NaN"||A==="Infinity"||A==="-Infinity")return Number(A)};
Yg_=function(A){if(A!=null&&typeof A!=="boolean")throw Error("M`"+_.Hn(A)+"`"+A);return A};
_.uLe=function(A){if(A==null||typeof A==="boolean")return A;if(typeof A==="number")return!!A};
_.Bn=function(A){switch(typeof A){case "bigint":return!0;case "number":return zj(A);case "string":return TJO.test(A);default:return!1}};
_.a6=function(A){if(!zj(A))throw _.od("enum");return A|0};
_.kV=function(A){return A==null?A:zj(A)?A|0:void 0};
V3_=function(A){if(typeof A!=="number")throw _.od("int32");if(!zj(A))throw _.od("int32");return A|0};
_.vn=function(A){return A==null?A:V3_(A)};
_.Ak=function(A){if(A==null)return A;if(typeof A==="string"&&A)A=+A;else if(typeof A!=="number")return;return zj(A)?A|0:void 0};
_.DNe=function(A){if(A==null)return A;if(typeof A==="string"&&A)A=+A;else if(typeof A!=="number")return;return zj(A)?A>>>0:void 0};
t3d=function(A){var L=0;L=L===void 0?0:L;if(!_.Bn(A))throw _.od("int64");var O=typeof A;switch(L){case 512:switch(O){case "string":return Oz(A);case "bigint":return String(XM(64,A));default:return e7O(A)}case 1024:switch(O){case "string":return EVO(A);case "bigint":return _.R6(XM(64,A));default:return nVu(A)}case 0:switch(O){case "string":return Oz(A);case "bigint":return _.R6(XM(64,A));default:return xX(A)}default:return _.ZN(L,"Unknown format requested type for int64")}};
sz=function(A){return A==null?A:t3d(A)};
b6J=function(A){if(A[0]==="-")return!1;var L=A.length;return L<20?!0:L===20&&Number(A.substring(0,6))<184467};
h7e=function(A){var L=A.length;return A[0]==="-"?L<20?!0:L===20&&Number(A.substring(0,7))>-922337:L<19?!0:L===19&&Number(A.substring(0,6))<922337};
Sge=function(A){if(A<0){f6(A);var L=_.I6(Qu,ml);A=Number(L);return Jk(A)?A:L}L=String(A);if(b6J(L))return L;f6(A);return Xnd(Qu,ml)};
qgu=function(A){if(h7e(A))return A;PH_(A);return _.JcO(Qu,ml)};
gVp=function(A){if(b6J(A))return A;PH_(A);return _.I6(Qu,ml)};
xX=function(A){A=PX(A);Jk(A)||(f6(A),A=xN9(Qu,ml));return A};
_.wne=function(A){A=PX(A);return A>=0&&Jk(A)?A:Sge(A)};
e7O=function(A){A=PX(A);if(Jk(A))A=String(A);else{var L=String(A);h7e(L)?A=L:(f6(A),A=_.JcO(Qu,ml))}return A};
_.pnr=function(A){A=PX(A);if(A>=0&&Jk(A))A=String(A);else{var L=String(A);b6J(L)?A=L:(f6(A),A=_.I6(Qu,ml))}return A};
Oz=function(A){var L=PX(Number(A));if(Jk(L))return String(L);L=A.indexOf(".");L!==-1&&(A=A.substring(0,L));return qgu(A)};
EVO=function(A){var L=PX(Number(A));if(Jk(L))return _.R6(L);L=A.indexOf(".");L!==-1&&(A=A.substring(0,L));return dJ()?_.R6(XM(64,BigInt(A))):_.R6(qgu(A))};
nVu=function(A){return Jk(A)?_.R6(xX(A)):_.R6(e7O(A))};
_.i6p=function(A){return Jk(A)?_.R6(_.wne(A)):_.R6(_.pnr(A))};
_.NJs=function(A){var L=PX(Number(A));if(Jk(L)&&L>=0)return String(L);L=A.indexOf(".");L!==-1&&(A=A.substring(0,L));return gVp(A)};
_.rce=function(A){var L=PX(Number(A));if(Jk(L)&&L>=0)return _.R6(L);L=A.indexOf(".");L!==-1&&(A=A.substring(0,L));return dJ()?_.R6((0,_.YX)(64,BigInt(A))):_.R6(gVp(A))};
_.Gje=function(A){if(A==null)return A;if(typeof A==="bigint")return Kls(A)?A=Number(A):(A=XM(64,A),A=Kls(A)?Number(A):String(A)),A;if(_.Bn(A))return typeof A==="number"?xX(A):Oz(A)};
lNr=function(A,L){L=L===void 0?!1:L;var O=typeof A;if(A==null)return A;if(O==="bigint")return String(XM(64,A));if(_.Bn(A))return O==="string"?Oz(A):L?e7O(A):xX(A)};
_.ccJ=function(A){var L=typeof A;if(A==null)return A;if(L==="bigint")return _.R6(XM(64,A));if(_.Bn(A))return L==="string"?EVO(A):nVu(A)};
CHp=function(A){if(A==null)return A;var L=typeof A;if(L==="bigint")return String(XM(64,A));if(_.Bn(A)){if(L==="string")return Oz(A);if(L==="number")return xX(A)}};
Flr=function(A){if(A==null)return A;var L=typeof A;if(L==="bigint")return String((0,_.YX)(64,A));if(_.Bn(A)){if(L==="string")return _.NJs(A);if(L==="number")return _.wne(A)}};
_.Tn=function(A){if(typeof A!=="string")throw Error();return A};
DS=function(A){if(A!=null&&typeof A!=="string")throw Error();return A};
_.Ez=function(A){return A==null||typeof A==="string"?A:void 0};
mNu=function(A,L,O,X){if(A!=null&&A[nJ]===tk)return A;if(!Array.isArray(A))return O?X&2?L[R7D]||(L[R7D]=Q6M(L)):new L:void 0;O=A[_.sg]|0;X=O|X&32|X&2;X!==O&&Jc(A,X);return new L(A)};
Q6M=function(A){A=new A;Pn(A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return A};
fNe=function(A,L,O){A=L?V3_(A):_.Ak(A);return A==null?O?0:void 0:A|0};
INM=function(A){return A};
yce=function(A){return A};
j6r=function(A,L,O,X,x,J){A=mNu(A,X,O,J);x&&(A=Z6_(A));return A};
Wl9=function(A){return[A,this.get(A)]};
BJ9=function(){return H69||(H69=new SZ(Pn([]),void 0,void 0,void 0,z7D))};
M3r=function(A){var L=pJ(iJ);return L?A[L]:void 0};
kjP=function(A,L){var O=O===void 0?!1:O;if(pJ($N_)&&pJ(iJ)&&void 0===$N_){var X=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,x=X[iJ];if(!x)return;if(x=x.reviveUnknownFields)try{x(X,L,aNJ);return}catch(J){Xp(J)}}O&&(A=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(O=pJ(iJ))&&O in A&&(A=A[O])&&delete A[L])};
vVe=function(A,L){var O=pJ(iJ),X;Og&&O&&((X=A[O])==null?void 0:X[L])!=null&&Ieu(UNp,3)};
AkP=function(A,L){L<100||Ieu(oVe,1)};
s7u=function(A,L,O,X){var x=X!==void 0;X=!!X;var J=pJ(iJ),Y;!x&&Og&&J&&(Y=A[J])&&L$e(Y,AkP);J=[];var T=A.length;Y=4294967295;var V=!1,E=!!(L&64),n=E?L&128?0:-1:void 0;if(!(L&1)){var t=T&&A[T-1];t!=null&&typeof t==="object"&&t.constructor===Object?(T--,Y=T):t=void 0;if(E&&!(L&128)&&!x){V=!0;var b;Y=((b=OJe)!=null?b:INM)(Y-n,n,A,t,void 0)+n}}L=void 0;for(b=0;b<T;b++){var S=A[b];if(S!=null&&(S=O(S,X))!=null)if(E&&b>=Y){var w=b-n,l=void 0;((l=L)!=null?l:L={})[w]=S}else J[b]=S}if(t)for(var F in t)T=t[F],
T!=null&&(T=O(T,X))!=null&&(b=+F,S=void 0,E&&!Number.isNaN(b)&&(S=b+n)<Y?J[S]=T:(b=void 0,((b=L)!=null?b:L={})[F]=T));L&&(V?J.push(L):J[Y]=L);x&&pJ(iJ)&&(A=M3r(A))&&A instanceof XXp&&(J[iJ]=xQu(A));return J};
PJP=function(A){A[0]=Jkd(A[0]);A[1]=Jkd(A[1]);return A};
Jkd=function(A){switch(typeof A){case "number":return Number.isFinite(A)?A:""+A;case "bigint":return Kls(A)?Number(A):""+A;case "boolean":return A?1:0;case "object":if(Array.isArray(A)){var L=A[_.sg]|0;return A.length===0&&L&1?void 0:s7u(A,L,Jkd)}if(A!=null&&A[nJ]===tk)return dQJ(A);if(A instanceof qN){L=A.JSC$9838_value_;if(L==null)A="";else if(typeof L==="string")A=L;else{if(FMu){for(var O="",X=0,x=L.length-10240;X<x;)O+=String.fromCharCode.apply(null,L.subarray(X,X+=10240));O+=String.fromCharCode.apply(null,
X?L.subarray(X):L);L=btoa(O)}else L=_.NQ(L);A=A.JSC$9838_value_=L}return A}if(A instanceof SZ)return A=A.size!==0?Array.from(KJ.prototype.entries.call(A),PJP):void 0,A;return}return A};
Gn=function(A,L){if(L){OJe=L==null||L===INM||L[Yzy]!==uMJ?INM:L;try{return dQJ(A)}finally{OJe=void 0}}return dQJ(A)};
dQJ=function(A){A=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return s7u(A,A[_.sg]|0,Jkd)};
DQP=function(A){switch(typeof A){case "boolean":return TBr||(TBr=[0,void 0,!0]);case "number":return A>0?void 0:A===0?VZs||(VZs=[0,void 0]):[-A,void 0];case "string":return[0,A];case "object":return A}};
eS_=function(A,L,O){return A=_.lJ(A,L[0],L[1],O?1:2)};
_.lJ=function(A,L,O,X){X=X===void 0?0:X;if(A==null){var x=32;O?(A=[O],x|=128):A=[];L&&(x=x&-8380417|(L&1023)<<13)}else{if(!Array.isArray(A))throw Error("O");x=A[_.sg]|0;if(EXp&&1&x)throw Error("P");2048&x&&!(2&x)&&nXd();if(x&256)throw Error("Q");if(x&64)return X!==0||x&2048||Jc(A,x|2048),A;if(O&&(x|=128,O!==A[0]))throw Error("R");a:{O=A;x|=64;var J=O.length;if(J){var Y=J-1,T=O[Y];if(T!=null&&typeof T==="object"&&T.constructor===Object){L=x&128?0:-1;Y-=L;if(Y>=1024)throw Error("T");for(var V in T)J=
+V,J<Y&&(O[J+L]=T[V],delete T[V]);x=x&-8380417|(Y&1023)<<13;break a}}if(L){V=Math.max(L,J-(x&128?0:-1));if(V>1024)throw Error("U");x=x&-8380417|(V&1023)<<13}}}x|=64;X===0&&(x|=2048);Jc(A,x);return A};
nXd=function(){if(EXp)throw Error("S");Ieu(tZP,5)};
SzP=function(A,L){if(typeof A!=="object")return A;if(Array.isArray(A)){var O=A[_.sg]|0;return A.length===0&&O&1?void 0:bJ_(A,O,L)}if(A!=null&&A[nJ]===tk)return hSe(A);if(A instanceof SZ){L=A.arrayState;if(L&2)return A;if(!A.size)return;O=Pn(Array.from(KJ.prototype.entries.call(A)));if(A.valueCtor)for(A=0;A<O.length;A++){var X=O[A],x=X[1];x==null||typeof x!=="object"?x=void 0:x!=null&&x[nJ]===tk?x=hSe(x):Array.isArray(x)?x=bJ_(x,x[_.sg]|0,!!(L&32)):x=void 0;X[1]=x}return O}if(A instanceof qN)return A};
bJ_=function(A,L,O){if(L&2)return A;!O||4096&L||16&L?A=cX(A,L,!1,O&&!(L&16)):(jdr(A,34),L&4&&Object.freeze(A));return A};
qzp=function(A,L,O){A=new A.constructor(L);O&&(A.copyOnWrite=uH);A.noLegacyNull=uH;return A};
hSe=function(A){var L=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,O=L[_.sg]|0;return e3(A,O)?A:gXD(A,L,O)?qzp(A,L):cX(L,O)};
cX=function(A,L,O,X){X!=null||(X=!!(34&L));A=s7u(A,L,SzP,X);X=32;O&&(X|=2);L=L&8380609|X;Jc(A,L);return A};
Z6_=function(A){var L=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,O=L[_.sg]|0;return e3(A,O)?gXD(A,L,O)?qzp(A,L,!0):new A.constructor(cX(L,O,!1)):A};
FM=function(A){if(A.copyOnWrite!==uH)return!1;var L=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;L=cX(L,L[_.sg]|0);jdr(L,2048);A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=L;A.copyOnWrite=void 0;A.noLegacyNull=void 0;return!0};
R7=function(A){if(!FM(A)&&e3(A,A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.sg]|0))throw Error();};
fJ=function(A,L){L===void 0&&(L=A[_.sg]|0);L&32&&!(L&4096)&&Jc(A,L|4096)};
gXD=function(A,L,O){return O&2?!0:O&32&&!(O&4096)?(Jc(L,O|2),A.copyOnWrite=uH,!0):!1};
I7=function(A,L,O,X,x){var J=O+(x?0:-1),Y=A.length-1;if(Y>=1+(x?0:-1)&&J>=Y){var T=A[Y];if(T!=null&&typeof T==="object"&&T.constructor===Object)return T[O]=X,L}if(J<=Y)return A[J]=X,L;if(X!==void 0){var V;Y=((V=L)!=null?V:L=A[_.sg]|0)>>13&1023||536870912;O>=Y?X!=null&&(J={},A[Y+(x?0:-1)]=(J[O]=X,J)):A[J]=X}return L};
_.jZ=function(A,L,O,X,x){var J=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Y=J[_.sg]|0;X=e3(A,Y)?1:X;x=!!x||X===3;X===2&&FM(A)&&(J=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Y=J[_.sg]|0);A=wXP(J,L);var T=A===yM?7:A[_.sg]|0,V=pXu(T,Y);var E=4&V?!1:!0;if(E){4&V&&(A=yu(A),T=0,V=ZS(V,Y),Y=I7(J,Y,L,A));for(var n=0,t=0;n<A.length;n++){var b=O(A[n]);b!=null&&(A[t++]=b)}t<n&&(A.length=t);O=(V|4)&-513;V=O&=-1025;V&=-4097}V!==T&&(Jc(A,V),2&V&&Object.freeze(A));return A=iJd(A,V,J,
Y,L,X,E,x)};
iJd=function(A,L,O,X,x,J,Y,T){var V=L;J===1||(J!==4?0:2&L||!(16&L)&&32&X)?WX(L)||(L|=!A.length||Y&&!(4096&L)||32&X&&!(4096&L||16&L)?2:256,L!==V&&Jc(A,L),Object.freeze(A)):(J===2&&WX(L)&&(A=yu(A),V=0,L=ZS(L,X),X=I7(O,X,x,A)),WX(L)||(T||(L|=16),L!==V&&Jc(A,L)));2&L||!(4096&L||16&L)||fJ(O,X);return A};
wXP=function(A,L,O){A=HX(A,L,O);return Array.isArray(A)?A:yM};
pXu=function(A,L){2&L&&(A|=2);return A|1};
WX=function(A){return!!(2&A)&&!!(4&A)||!!(256&A)};
NBp=function(A){return _.K6(A,!0)};
rk_=function(A,L){var O=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,X=O[_.sg]|0;a:{var x=X;X=e3(A,X);!X&&FM(A)&&(O=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,x=O[_.sg]|0);var J=HX(O,L);A=!1;if(J==null){if(X){L=BJ9();break a}J=[]}else if(J.constructor===SZ)if(J.arrayState&2&&!X)J=Array.from(KJ.prototype.entries.call(J));else{L=J;break a}else Array.isArray(J)?A=!!((J[_.sg]|0)&2):J=[];if(X){if(!J.length){L=BJ9();break a}A||(A=!0,Pn(J))}else if(A){A=!1;X=J;X=yu(X);for(J=0;J<
X.length;J++){var Y=X[J]=yu(X[J]);Array.isArray(Y[1])&&(Y[1]=Pn(Y[1]))}J=X}!A&&x&32&&H9d(J);X=new SZ(J,void 0,fNe,fNe);x=I7(O,x,L,X);A||fJ(O,x);L=X}return L};
_.zn=function(A,L,O,X){R7(A);var x=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,J=x[_.sg]|0;if(O==null)return I7(x,J,L),A;var Y=O===yM?7:O[_.sg]|0,T=Y,V=WX(Y),E=V||Object.isFrozen(O);V||(Y=0);E||(O=yu(O),T=0,Y=ZS(Y,J),E=!1);Y|=5;var n;V=(n=WMJ(Y))!=null?n:0;for(n=0;n<O.length;n++){var t=O[n],b=X(t,V);Object.is(t,b)||(E&&(O=yu(O),T=0,Y=ZS(Y,J),E=!1),O[n]=b)}Y!==T&&(E&&(O=yu(O),Y=ZS(Y,J)),Jc(O,Y));I7(x,J,L,O);return A};
_.$X=function(A,L,O,X,x){R7(A);var J=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;I7(J,J[_.sg]|0,L,(X==="0"?Number(O)===0:O===X)?void 0:O,x);return A};
_.K$_=function(A,L,O){if(L&2)throw Error();var X=C6(L),x=wXP(A,O,X),J=x===yM?7:x[_.sg]|0,Y=pXu(J,L);if(2&Y||WX(Y)||16&Y)x=yu(x),J=0,Y=ZS(Y,L),I7(A,L,O,x,X);Y&=-13;Y!==J&&Jc(x,Y);return x};
Gnu=function(A){if(Og){var L;return(L=A[a7])!=null?L:A[a7]=new Map}if(a7 in A)return A[a7];L=new Map;Object.defineProperty(A,a7,{value:L});return L};
ck_=function(A,L,O,X,x){var J=Gnu(A),Y=lSs(J,A,L,O,x);Y!==X&&(Y&&(L=I7(A,L,Y,void 0,x)),J.set(O,X));return L};
lSs=function(A,L,O,X,x){var J=A.get(X);if(J!=null)return J;for(var Y=J=0;Y<X.length;Y++){var T=X[Y];HX(L,T,x)!=null&&(J!==0&&(O=I7(L,O,J,void 0,x)),J=T)}A.set(X,J);return J};
CJs=function(A,L,O,X,x){var J=!1;X=HX(A,X,x,function(Y){var T=mNu(Y,O,!1,L);J=T!==Y&&T!=null;return T});
if(X!=null)return J&&!e3(X)&&fJ(A,L),X};
F$r=function(A,L,O,X,x,J,Y,T){var V=e3(A,O);J=V?1:J;Y=!!Y||J===3;V=T&&!V;(J===2||V)&&FM(A)&&(L=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,O=L[_.sg]|0);A=wXP(L,x);var E=A===yM?7:A[_.sg]|0,n=pXu(E,O);if(T=!(4&n)){var t=A,b=O,S=!!(2&n);S&&(b|=2);for(var w=!S,l=!0,F=0,R=0;F<t.length;F++){var y=mNu(t[F],X,!1,b);if(y instanceof X){if(!S){var M=e3(y);w&&(w=!M);l&&(l=M)}t[R++]=y}}R<F&&(t.length=R);n|=4;n=l?n&-4097:n|4096;n=w?n|8:n&-9}n!==E&&(Jc(A,n),2&n&&Object.freeze(A));if(V&&!(8&n||!A.length&&
(J===1||(J!==4?0:2&n||!(16&n)&&32&O)))){WX(n)&&(A=yu(A),n=ZS(n,O),O=I7(L,O,x,A));X=A;V=n;for(E=0;E<X.length;E++)t=X[E],n=Z6_(t),t!==n&&(X[E]=n);V|=8;n=V=X.length?V|4096:V&-4097;Jc(A,n)}return A=iJd(A,n,L,O,x,J,T,Y)};
RSd=function(A){A==null&&(A=void 0);return A};
ZS=function(A,L){return A=(2&L?A|2:A&-3)&-273};
_.Q7e=function(A,L,O,X,x){R7(A);L=_.jZ(A,L,x,2,!0);var J;x=(J=WMJ(L===yM?7:L[_.sg]|0))!=null?J:0;L.push(O(X,x));return A};
mQM=function(A,L,O,X,x,J,Y){R7(A);var T=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;A=F$r(A,T,T[_.sg]|0,O,L,2,!0);if(J&&Y)x!=null||(x=A.length-1),Bu_(A,x),A.splice(x,J),A.length||(A[_.sg]&=-4097);else{if(J){if(typeof x!=="number"||x<0||x>A.length)throw Error();}else X=X!=null?X:new O;x!=void 0?A.splice(x,J,X):A.push(X);x=O=A===yM?7:A[_.sg]|0;(X=e3(X))?(O&=-9,A.length===1&&(O&=-4097)):O|=4096;O!==x&&Jc(A,O);X||fJ(T)}};
ISe=function(A,L){if(typeof A==="string")return new kX(QdM(A),L);if(Array.isArray(A))return new kX(new Uint8Array(A),L);if(A.constructor===Uint8Array)return new kX(A,!1);if(A.constructor===ArrayBuffer)return A=new Uint8Array(A),new kX(A,!1);if(A.constructor===qN)return L=fSe(A)||new Uint8Array(0),new kX(L,!0,A);if(A instanceof Uint8Array)return A=A.constructor===Uint8Array?A:new Uint8Array(A.buffer,A.byteOffset,A.byteLength),new kX(A,!1);throw Error();};
Uz=function(){var A=function(){throw Error();};
Object.setPrototypeOf(A,A.prototype);return A};
ZJy=function(A,L){var O=O===void 0?yku:O;return new vX(A,L,O)};
zSe=function(A,L,O,X,x){L=j7_(L,X);L!=null&&(O=_.W$_(A,O),x(L,A),_.HJJ(A,O))};
o7=function(A,L,O,X){var x=X[A];if(x)return x;x={};x.binaryFields=X;x.messageMetadata=DQP(X[0]);var J=X[1],Y=1;J&&J.constructor===Object&&(x.extensions=J,J=X[++Y],typeof J==="function"&&(x.isMessageSet=!0,BB9!=null||(BB9=J),MZe!=null||(MZe=X[Y+1]),J=X[Y+=2]));for(var T={};J&&$Qr(J);){for(var V=0;V<J.length;V++)T[J[V]]=J;J=X[++Y]}for(V=1;J!==void 0;){typeof J==="number"&&(V+=J,J=X[++Y]);var E=void 0;if(J instanceof vX)var n=J;else n=aSP,Y--;J=void 0;if((J=n)==null?0:J.$$isMsg){J=X[++Y];E=X;var t=Y;
typeof J==="function"&&(J=J(),E[t]=J);E=J}J=X[++Y];t=V+1;typeof J==="number"&&J<0&&(t-=J,J=X[++Y]);for(;V<t;V++){var b=T[V];E?O(x,V,n,E,b):L(x,V,n,b)}}return X[A]=x};
$Qr=function(A){return Array.isArray(A)&&!!A.length&&typeof A[0]==="number"&&A[0]>0};
UQy=function(A){return Array.isArray(A)?A[0]instanceof vX?A:[knu,A]:[A,void 0]};
j7_=function(A,L){if(A instanceof _.AE)return A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(A))return eS_(A,L,!1)};
vX_=function(A,L,O,X){var x=O.$$binaryReaderFn;A[L]=X?function(J,Y,T){return x(J,Y,T,X)}:x};
AEy=function(A,L,O,X,x){var J=O.$$binaryReaderFn,Y,T;A[L]=function(V,E,n){return J(V,E,n,T||(T=o7(oXp,vX_,AEy,X).messageMetadata),Y||(Y=LJP(X)),x)}};
LJP=function(A){var L=A[O_u];if(L!=null)return L;var O=o7(oXp,vX_,AEy,A);L=O.isMessageSet?function(X,x){return BB9(X,x,O)}:function(X,x){for(;XfM(x)&&x.nextWireType_!=4;){var J=x.nextField_,Y=O[J];
if(Y==null){var T=O.extensions;T&&(T=T[J])&&(T=x0d(T),T!=null&&(Y=O[J]=T))}if(Y==null||!Y(x,X,J)){T=x;Y=T.fieldCursor_;sPe(T);if(T.discardUnknownFields)var V=void 0;else{var E=T.decoder_.cursor_-Y;T.decoder_.cursor_=Y;V=JEO(T.decoder_,E)}E=T=Y=void 0;var n=X;V&&((Y=(T=(E=n[iJ])!=null?E:n[iJ]=new XXp)[J])!=null?Y:T[J]=[]).push(V)}}if(X=M3r(X))X.reviveUnknownFields=O.binaryFields[Par];return!0};
A[O_u]=L;A[Par]=d0O.bind(A);return L};
d0O=function(A,L,O,X){var x=this[oXp],J=this[O_u],Y=eS_(void 0,x.messageMetadata,!1),T=M3r(A);if(T){var V=!1,E=x.extensions;if(E){x=function(w,l,F){if(F.length!==0)if(E[l])for(w=_.d(F),l=w.next();!l.done;l=w.next()){l=YBy(l.value);try{V=!0,J(Y,l)}finally{l.free()}}else X==null||X(A,l,F)};
if(L==null)L$e(T,x);else if(T!=null){var n=T[L];n&&x(T,L,n)}if(V){var t=A[_.sg]|0;if(t&2&&t&2048&&(O==null||!O.reviveIntoImmutable))throw Error();var b=C6(t),S=function(w,l){if(HX(A,w,b)!=null)switch(O==null?void 0:O.resolutionBehavior){case 1:return;default:throw Error();}l!=null&&(t=I7(A,t,w,l,b));delete T[w]};
L==null?MD_(Y,Y[_.sg]|0,function(w,l){S(w,l)}):S(L,HX(Y,L,b))}}}};
x0d=function(A){A=UQy(A);var L=A[0].$$binaryReaderFn;if(A=A[1]){var O=LJP(A),X=o7(oXp,vX_,AEy,A).messageMetadata;return function(x,J,Y){return L(x,J,Y,X,O)}}return L};
uPu=function(A,L,O){A[L]=O.$$binaryWriterFn};
Vgy=function(A,L,O,X){var x,J,Y=O.$$binaryWriterFn;A[L]=function(T,V,E){return Y(T,V,E,J||(J=o7(Twy,uPu,Vgy,X).messageMetadata),x||(x=D0u(X)))}};
D0u=function(A){var L=A[e3u];if(!L){var O=o7(Twy,uPu,Vgy,A);L=function(X,x){return EWJ(X,x,O)};
A[e3u]=L}return L};
EWJ=function(A,L,O){MD_(A,A[_.sg]|0,function(X,x){if(x!=null){var J=nWe(O,X);J?J(L,x,X):X<500||Ieu(tgp,3)}});
(A=M3r(A))&&L$e(A,function(X,x,J){L_(L,L.encoder_.end());for(X=0;X<J.length;X++)L_(L,fSe(J[X])||new Uint8Array(0))})};
nWe=function(A,L){var O=A[L];if(O)return O;if(O=A.extensions)if(O=O[L]){O=UQy(O);var X=O[0].$$binaryWriterFn;if(O=O[1]){var x=D0u(O),J=o7(Twy,uPu,Vgy,O).messageMetadata;O=A.isMessageSet?MZe(J,x):function(Y,T,V){return X(Y,T,V,J,x)}}else O=X;
return A[L]=O}};
_.b_d=function(A,L,O){if(Array.isArray(L)){var X=L[_.sg]|0;if(X&4)return L;for(var x=0,J=0;x<L.length;x++){var Y=A(L[x]);Y!=null&&(L[J++]=Y)}J<x&&(L.length=J);O&&(Jc(L,(X|5)&-1537),X&2&&Object.freeze(L));return L}};
_.xW=function(A,L,O){return new vX(A,L,O)};
_.h3_=function(A,L,O){return new vX(A,L,O)};
_.sB=function(A,L,O){I7(A,A[_.sg]|0,L,O,C6(A[_.sg]|0))};
qBs=function(A,L,O){L=_.dNp(L);L!=null&&(_.JE(A,O,1),A=A.encoder_,O=SBe||(SBe=new DataView(new ArrayBuffer(8))),O.setFloat64(0,+L,!0),Qu=O.getUint32(0,!0),ml=O.getUint32(4,!0),_.dw(A,Qu),_.dw(A,ml))};
_.YW=function(A,L,O){L=CHp(L);if(L!=null){switch(typeof L){case "string":gW9(L)}if(L!=null)switch(_.JE(A,O,0),typeof L){case "number":A=A.encoder_;f6(L);wfe(A,Qu,ml);break;case "bigint":O=BigInt.asUintN(64,L);O=new pfd(Number(O&BigInt(4294967295)),Number(O>>BigInt(32)));wfe(A.encoder_,O.JSC$9882_lo,O.JSC$9882_hi);break;default:O=gW9(L),wfe(A.encoder_,O.JSC$9882_lo,O.JSC$9882_hi)}}};
Nw_=function(A,L,O){L=_.Ak(L);L!=null&&L!=null&&(_.JE(A,O,0),_.i_O(A.encoder_,L))};
_.KJr=function(A,L,O){rEM(A,O,Flr(L))};
_.G2e=function(A,L,O){L=_.uLe(L);L!=null&&(_.JE(A,O,0),A.encoder_.JSC$9884_buffer_.push(L?1:0))};
_.cEu=function(A,L,O){L=_.Ez(L);L!=null&&lDr(A,O,xyd(L))};
CaD=function(A,L,O,X,x){L=j7_(L,X);L!=null&&(O=_.W$_(A,O),x(L,A),_.HJJ(A,O))};
_.FJu=function(A,L,O){L=L==null||typeof L=="string"||L instanceof qN?L:void 0;L!=null&&lDr(A,O,ISe(L,!0).buffer)};
_.R3O=function(A,L,O){L=_.Ak(L);L!=null&&(L=parseInt(L,10),_.JE(A,O,0),_.i_O(A.encoder_,L))};
_.ua=function(A,L){return function(O,X){var x={treatNewDataAsImmutable:!0};X&&Object.assign(x,X);O=YBy(O,void 0,void 0,x);try{var J=new A,Y=J.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;LJP(L)(Y,O);var T=J}finally{O.free()}return T}};
_.T2=function(A){return function(L){return QPM(L,A)}};
m0P=function(A){return function(){return QPM(this,A)}};
_.fDu=function(A){return FL(function(L){return L instanceof A&&!e3(L)})};
_.Vo=function(A){return function(L){return IDp(A,L)}};
WJM=function(A,L){return yEe({child:A,origin:L||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:Z_d,getPayloadCase:function(O){return O.getPayloadCase()},
createInitMessage:function(O){var X=new DD,x=new jPd;O=_.eg(x,1,O);return _.EB(X,5,n_,O)}})};
ba=function(A){return{valueOf:A}.valueOf()};
z39=function(){var A=null;if(!H_D)return A;try{var L=function(O){return O};
A=H_D.createPolicy("goog#html",{createHTML:L,createScript:L,createScriptURL:L})}catch(O){}return A};
MgP=function(){Bwd===void 0&&(Bwd=z39());return Bwd};
_.gw=function(A){var L=MgP();A=L?L.createScriptURL(A):A;return new q0(A)};
_.ww=function(A){if(A instanceof q0)return A.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("Z");};
_.p_=function(A){return Object.isFrozen(A)&&Object.isFrozen(A.raw)};
$0O=function(A){return A.toString().indexOf("`")===-1};
N0=function(A){return new _.ia(aDD,A)};
rw=function(A){return A instanceof _.ia};
_.G2=function(A){if(rw(A))return A.privateDoNotAccessOrElseWrappedUrl;throw Error("Z");};
la=function(A){return new k2u(function(L){return L.substr(0,A.length+1).toLowerCase()===A+":"})};
C_=function(A,L){L=L===void 0?U0J:L;if(rw(A))return A;for(var O=0;O<L.length;++O){var X=L[O];if(X instanceof k2u&&X.isValid(A))return N0(A)}};
_.RP=function(A,L){L=L===void 0?U0J:L;return C_(A,L)||FP};
_.Qo=function(A){var L=window;if(typeof MediaSource!=="undefined"&&A instanceof MediaSource||typeof L.ManagedMediaSource!=="undefined"&&A instanceof L.ManagedMediaSource)return N0(URL.createObjectURL(A));L=A.type;L.toLowerCase()==="application/octet-stream"?L=!0:(L=L.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),L=(L==null?void 0:L.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(L[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(L[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(L[1])||/^font\/[\w-]+$/i.test(L[1])));if(!L)throw Error("Z");return N0(URL.createObjectURL(A))};
_.oWe=function(A){for(var L=_.f_.apply(1,arguments),O=[A[0]],X=0;X<L.length;X++)O.push(String(L[X])),O.push(A[X+1]);return N0(O.join(""))};
_.Lh9=function(A){if(!An_){a:{var L=document.createElement("a");try{L.href=A}catch(O){A=void 0;break a}A=L.protocol;A=A===":"||A===""?"https:":A}return A}try{L=new URL(A)}catch(O){return"https:"}return L.protocol};
_.IP=function(A){A instanceof _.ia?A=_.G2(A):A=OL9.test(A)?A:void 0;return A};
yo=function(A,L){L=_.IP(L);L!==void 0&&(A.href=L)};
jg=function(A){var L=MgP();A=L?L.createHTML(A):A;return new ZD(A)};
Wf=function(A){if(A instanceof ZD)return A.privateDoNotAccessOrElseWrappedHtml;throw Error("Z");};
_.Hf=function(A,L){A.src=_.ww(L).toString()};
Xzp=function(A,L){A.setAttribute("sandbox","");for(var O=0;O<L.length;O++)A.sandbox.supports&&!A.sandbox.supports(L[O])||A.sandbox.add(L[O])};
_.s9d=function(A,L,O){A.removeAttribute("srcdoc");switch(L){case 0:if(O instanceof q0)throw new xoM("TrustedResourceUrl",0);Xzp(A,[]);L=_.IP(O);L!==void 0&&(A.src=L);break;case 1:if(!(O instanceof q0))throw new xoM(typeof O,1);Xzp(A,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.Hf(A,O);break;case 2:if(O instanceof q0)throw new xoM("TrustedResourceUrl",2);Xzp(A,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
L=_.IP(O);L!==void 0&&(A.src=L);break;default:_.ZN(L)}};
_.z2=function(A,L,O,X){L=_.IP(L);return L!==void 0?A.open(L,O,X):null};
_.Bf=function(A){A=A===void 0?document:A;var L,O;A=(O=(L=A).querySelector)==null?void 0:O.call(L,"script[nonce]");return A==null?"":A.nonce||A.getAttribute("nonce")||""};
_.$W=function(A){var L=MgP();A=L?L.createScript(A):A;return new _.M0(A)};
JnM=function(A){if(A instanceof _.M0)return A.privateDoNotAccessOrElseWrappedScript;throw Error("Z");};
PeP=function(A){var L=_.Bf(A.ownerDocument);L&&A.setAttribute("nonce",L)};
_.kW=function(A,L){A.textContent=JnM(L);PeP(A)};
_.UB=function(A,L){A.src=_.ww(L);PeP(A)};
_.vf=function(A,L){if(A.nodeType===1&&/^(script|style)$/i.test(A.tagName))throw Error("Z");A.innerHTML=Wf(L)};
_.oP=function(A,L,O,X){if(A.length===0)throw Error("Z");A=A.map(function(J){if(J instanceof doO)J=J.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("Z");return J});
var x=O.toLowerCase();if(A.every(function(J){return x.indexOf(J)!==0}))throw Error("aa`"+O);
L.setAttribute(O,X)};
_.An=function(A,L,O){if(L instanceof q0)A.href=_.ww(L).toString(),A.rel=O;else{if(YJO.indexOf(O)===-1)throw Error("ba`"+O);L=_.IP(L);L!==void 0&&(A.href=L,A.rel=O)}};
u09=function(A){return"function"==typeof _.LL&&A instanceof _.LL};
_.TpO=function(A){if(u09(A))return A.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("Z");};
_.V4y=function(A,L){L=_.IP(L);L!==void 0&&(A.href=L)};
Doe=function(A,L){A&&(L=A.indexOf(L),0<=L&&A.splice(L,1))};
OJ=function(A){return typeof A==="function"};
eoe=function(A){return A instanceof x3||A&&"closed"in A&&OJ(A.remove)&&OJ(A.add)&&OJ(A.unsubscribe)};
sJ=function(){};
Jn=function(A){E39(function(){throw A;})};
Pz=function(A){return A};
dp=function(){return n3e(_.f_.apply(0,arguments))};
n3e=function(A){return A.length===0?Pz:A.length===1?A[0]:function(L){return A.reduce(function(O,X){return X(O)},L)}};
t4P=function(A){var L;return(L=A!=null?A:void 0)!=null?L:Promise};
bLM=function(A,L){return new Y3(function(O){var X=0;return L.schedule(function(){X===A.length?O.complete():(O.next(A[X++]),O.closed||this.schedule())})})};
hoO=function(A,L){if(!A)throw Error("ca");return new Y3(function(O){var X=new x3;X.add(L.schedule(function(){var x=A[Symbol.asyncIterator]();X.add(L.schedule(function(){var J=this;x.next().then(function(Y){Y.done?O.complete():(O.next(Y.value),J.schedule())})}))}));
return X})};
SJJ=function(A,L,O){L=L.schedule(function(){try{O.call(this)}catch(X){A.error(X)}},0);
A.add(L)};
g3D=function(A,L){return new Y3(function(O){var X;O.add(L.schedule(function(){X=A[qJe]();SJJ(O,L,function(){var x=X.next(),J=x.value;x.done?O.complete():(O.next(J),this.schedule())})}));
return function(){var x;return OJ((x=X)==null?void 0:x.return)&&X.return()}})};
wzu=function(A,L){return new Y3(function(O){var X=new x3;X.add(L.schedule(function(){var x=A[ue]();X.add(x.subscribe({next:function(J){X.add(L.schedule(function(){return O.next(J)}))},
error:function(J){X.add(L.schedule(function(){return O.error(J)}))},
complete:function(){X.add(L.schedule(function(){return O.complete()}))}}))}));
return X})};
pzp=function(A,L){return new Y3(function(O){return L.schedule(function(){return A.then(function(X){O.add(L.schedule(function(){O.next(X);O.add(L.schedule(function(){return O.complete()}))}))},function(X){O.add(L.schedule(function(){return O.error(X)}))})})})};
iLr=function(A){return new TypeError("da`"+(A!==null&&typeof A==="object"?"an invalid object":"'"+A+"'"))};
rnu=function(A,L){if(A!=null){if(OJ(A[ue]))return wzu(A,L);if(Np_(A))return bLM(A,L);if(OJ(A==null?void 0:A.then))return pzp(A,L);if(Symbol.asyncIterator&&OJ(A==null?void 0:A[Symbol.asyncIterator]))return hoO(A,L);if(OJ(A==null?void 0:A[qJe]))return g3D(A,L)}throw iLr(A);};
DM=function(A,L){return L?rnu(A,L):VP(A)};
VP=function(A){if(A instanceof Y3)return A;if(A!=null){if(OJ(A[ue]))return Khe(A);if(Np_(A))return GM9(A);if(OJ(A==null?void 0:A.then))return lMD(A);if(Symbol.asyncIterator&&OJ(A==null?void 0:A[Symbol.asyncIterator]))return cne(A);if(OJ(A==null?void 0:A[qJe]))return CeD(A)}throw iLr(A);};
Khe=function(A){return new Y3(function(L){var O=A[ue]();if(OJ(O.subscribe))return O.subscribe(L);throw new TypeError("ea");})};
GM9=function(A){return new Y3(function(L){for(var O=0;O<A.length&&!L.closed;O++)L.next(A[O]);L.complete()})};
lMD=function(A){return new Y3(function(L){A.then(function(O){L.closed||(L.next(O),L.complete())},function(O){return L.error(O)}).then(null,Jn)})};
CeD=function(A){return new Y3(function(L){for(var O=A[qJe]();!L.closed;){var X=O.next(),x=X.value;X.done?L.complete():L.next(x)}return function(){return OJ(O==null?void 0:O.return)&&O.return()}})};
cne=function(A){return new Y3(function(L){Fhy(A,L).catch(function(O){return L.error(O)})})};
Fhy=function(A,L){var O,X,x,J,Y,T;return _.u(function(V){switch(V.nextAddress){case 1:_.e4(V,2,3),J=_.EJ(A);case 5:return V.yield(J.next(),8);case 8:X=V.yieldResult;if(X.done){V.jumpTo(3);break}Y=X.value;L.next(Y);V.jumpTo(5);break;case 3:_.tn(V);_.be(V,9);if(!X||X.done||!(x=J.return)){V.jumpTo(9);break}return V.yield(x.call(J),9);case 9:_.tn(V,0,0,1);if(O)throw O.error;_.hn(V,10,1);break;case 10:_.hn(V,4);break;case 2:T=_.S4(V);O={error:T};V.jumpTo(3);break;case 4:L.complete(),_.qo(V)}})};
RoM=function(A,L){return L?bLM(A,L):GM9(A)};
Q9O=function(A){return OJ(A[A.length-1])?A.pop():void 0};
gp=function(A){var L=A[A.length-1];return L&&OJ(L.schedule)?A.pop():void 0};
wp=function(){var A=_.f_.apply(0,arguments),L=gp(A);return L?bLM(A,L):RoM(A)};
ie=function(A){var L=OJ(A)?A:function(){return A};
return new Y3(function(O){return O.error(L())})};
No=function(A){return function(L){if(OJ(L==null?void 0:L.lift))return L.lift(function(O){try{return A(O,this)}catch(X){this.error(X)}});
throw new TypeError("fa");}};
KL=function(){return No(function(A,L){var O=null;A._refCount++;var X=new rp(L,void 0,void 0,void 0,function(){if(!A||A._refCount<=0||0<--A._refCount)O=null;else{var x=A._connection,J=O;O=null;!x||J&&x!==J||x.unsubscribe();L.unsubscribe()}});
A.subscribe(X);X.closed||(O=A.connect())})};
fMe=function(){var A=mod;var L=L===void 0?0:L;return No(function(O,X){X.add(A.schedule(function(){return O.subscribe(X)},L))})};
GM=function(A){return No(function(L,O){var X=0;L.subscribe(new rp(O,function(x){O.next(A.call(void 0,x,X++))}))})};
ynu=function(A){return GM(function(L){return IMe(L)?A.apply(null,_.le(L)):A(L)})};
zoD=function(A){if(A.length===1){var L=A[0];if(ZLu(L))return{args:L,keys:null};if(L&&typeof L==="object"&&j9d(L)===WhJ)return A=HLu(L),{args:A.map(function(O){return L[O]}),
keys:A}}return{args:A,keys:null}};
cz=function(){var A=_.f_.apply(0,arguments),L=gp(A),O=Q9O(A);A=zoD(A);var X=A.args,x=A.keys;if(X.length===0)return DM([],L);L=new Y3(Bp9(X,L,x?function(J){for(var Y={},T=0;T<J.length;T++)Y[x[T]]=J[T];return Y}:Pz));
return O?L.pipe(ynu(O)):L};
Bp9=function(A,L,O){O=O===void 0?Pz:O;return function(X){M4M(L,function(){for(var x=A.length,J=Array(x),Y=x,T=A.map(function(){return!1}),V=!0,E={i$jscomp$216:0};E.i$jscomp$216<x;E={i$jscomp$216:E.i$jscomp$216},E.i$jscomp$216++)M4M(L,function(n){return function(){DM(A[n.i$jscomp$216],L).subscribe(new CL(X,function(t){J[n.i$jscomp$216]=t;
V&&(T[n.i$jscomp$216]=!0,V=!T.every(Pz));V||X.next(O(J.slice()))},function(){return--Y===0}))}}(E),X)},X)}};
M4M=function(A,L,O){A?O.add(A.schedule(L)):L()};
$o9=function(A,L,O,X){var x=[],J=0,Y=0,T=!1,V=function(E){J++;VP(O(E,Y++)).subscribe(new rp(L,function(n){L.next(n)},void 0,function(){J--;
for(var n={};x.length&&J<X;n={bufferedValue:void 0})n.bufferedValue=x.shift(),V(n.bufferedValue);!T||x.length||J||L.complete()}))};
A.subscribe(new rp(L,function(E){return J<X?V(E):x.push(E)},void 0,function(){T=!0;
!T||x.length||J||L.complete()}));
return function(){x=null}};
F0=function(A,L){var O=O===void 0?Infinity:O;if(OJ(L))return F0(function(X,x){return GM(function(J,Y){return L(X,J,x,Y)})(VP(A(X,x)))},O);
typeof L==="number"&&(O=L);return No(function(X,x){return $o9(X,x,A,O)})};
aMD=function(A){A=A===void 0?Infinity:A;return F0(Pz,A)};
kMP=function(){var A=_.f_.apply(0,arguments);return aMD(1)(RoM(A,gp(A)))};
Uoy=function(A){return new Y3(function(L){VP(A()).subscribe(L)})};
R9=function(A,L,O){if(OJ(O)){var X=O;O=void 0}if(X)return R9(A,L,O).pipe(ynu(X));X=_.d(OJ(A.addEventListener)&&OJ(A.removeEventListener)?v3s.map(function(Y){return function(T){return A[Y](L,T,O)}}):OJ(A.addListener)&&OJ(A.removeListener)?o3O.map(ADd(A,L)):OJ(A.on)&&OJ(A.off)?Lys.map(ADd(A,L)):[]);
var x=X.next().value,J=X.next().value;return!x&&Np_(A)?F0(function(Y){return R9(Y,L,O)})(RoM(A)):new Y3(function(Y){if(!x)throw new TypeError("ga");
var T=function(){var V=_.f_.apply(0,arguments);return Y.next(1<V.length?V:V[0])};
x(T);return function(){return J(T)}})};
ADd=function(A,L){return function(O){return function(X){return A[O](L,X)}}};
mh=function(){var A=_.f_.apply(0,arguments),L=gp(A);var O=typeof A[A.length-1]==="number"?A.pop():Infinity;return A.length?A.length===1?VP(A[0]):aMD(O)(RoM(A,L)):QP};
XTe=function(A){return A.length===1&&Ome(A[0])?A[0]:A};
xFr=function(){var A=XTe(_.f_.apply(0,arguments));return No(function(L,O){var X=[L].concat(_.le(A)),x=function(){if(!O.closed)if(X.length>0){try{var J=VP(X.shift())}catch(T){x();return}var Y=new rp(O,void 0,sJ,sJ);O.add(J.subscribe(Y));Y.add(x)}else O.complete()};
x()})};
fL=function(A){return No(function(L,O){var X=0;L.subscribe(new rp(O,function(x){return A.call(void 0,x,X++)&&O.next(x)}))})};
JDD=function(){var A=_.f_.apply(0,arguments);A=XTe(A);return A.length===1?VP(A[0]):new Y3(soO(A))};
soO=function(A){return function(L){for(var O=[],X={i$jscomp$219:0};O&&!L.closed&&X.i$jscomp$219<A.length;X={i$jscomp$219:X.i$jscomp$219},X.i$jscomp$219++)O.push(VP(A[X.i$jscomp$219]).subscribe(new rp(L,function(x){return function(J){if(O){for(var Y=0;Y<O.length;Y++)Y!==x.i$jscomp$219&&O[Y].unsubscribe();O=null}L.next(J)}}(X))))}};
PWe=function(){var A=_.f_.apply(0,arguments),L=Q9O(A),O=XTe(A);return O.length?new Y3(function(X){var x=O.map(function(){return[]}),J=O.map(function(){return!1});
X.add(function(){x=J=null});
for(var Y={sourceIndex$jscomp$1:0};!X.closed&&Y.sourceIndex$jscomp$1<O.length;Y={sourceIndex$jscomp$1:Y.sourceIndex$jscomp$1},Y.sourceIndex$jscomp$1++)VP(O[Y.sourceIndex$jscomp$1]).subscribe(new rp(X,function(T){return function(V){x[T.sourceIndex$jscomp$1].push(V);x.every(function(E){return E.length})&&(V=x.map(function(E){return E.shift()}),X.next(L?L.apply(null,_.le(V)):V),x.some(function(E,n){return!E.length&&J[n]})&&X.complete())}}(Y),void 0,function(T){return function(){J[T.sourceIndex$jscomp$1]=
!0;
!x[T.sourceIndex$jscomp$1].length&&X.complete()}}(Y)));
return function(){x=J=null}}):QP};
dF_=function(A){var L,O,X;return!!A&&typeof A.active==="boolean"&&typeof((L=A.clock)==null?void 0:L.now)==="function"&&((O=A.clock)==null?void 0:O.timeline)!==void 0&&!((X=A.lastMeasurement)==null||!X.timestamp)&&typeof A.equivalentTo==="function"&&typeof A.extrapolateToNow==="function"&&typeof A.extrapolateToTime==="function"&&typeof A.map==="function"&&typeof A.joinWith==="function"};
YOr=function(A){function L(O){return typeof O==="boolean"||typeof O==="string"||typeof O==="number"||O===void 0||O===null}
return L(A)?!0:Array.isArray(A)?A.every(L):typeof A==="object"?Object.keys(A).every(function(O){return typeof O==="string"})&&Object.values(A).every(function(O){return Array.isArray(O)?O.every(L):L(O)}):!1};
uTs=function(A){if(YOr(A))return A;if(dF_(A))return{lastMeasurement:{value:uTs(A.lastMeasurement.value),timestamp:I9(A.lastMeasurement.timestamp,new yP(0,A.lastMeasurement.timestamp.timeline))},active:A.active};try{return JSON.parse(JSON.stringify(A))}catch(L){}return String(A)};
j4=function(A,L){return function(O){return new Y3(function(X){return O.subscribe(function(x){A.timeExecution(L,function(){X.next(x)})()},function(x){A.timeExecution(L,function(){X.error(x)})()},function(){A.timeExecution(L,function(){X.complete()})()})})}};
Tzu=function(A,L){var O=!1;return new Y3(function(X){var x=A.setTimeout(function(){O=!0;X.next(!0);X.complete()},L);
return function(){O||A.clearTimeout(x)}})};
VxO=function(A){A=A.global;if(A.fetchLater)return A.fetchLater.bind(A)};
Wz=function(A){return No(function(L,O){var X=null,x=!1,J;X=L.subscribe(new rp(O,void 0,function(Y){J=VP(A(Y,Wz(A)(L)));X?(X.unsubscribe(),X=null,J.subscribe(O)):x=!0}));
x&&(X.unsubscribe(),X=null,J.subscribe(O))})};
DFr=function(A,L,O){return function(X,x){var J=O,Y=L,T=0;X.subscribe(new rp(x,function(V){var E=T++;Y=J?A(Y,V,E):(J=!0,V);x.next(Y)},void 0,void 0))}};
eEy=function(A){A=A===void 0?null:A;return No(function(L,O){var X=!1;L.subscribe(new rp(O,function(x){X=!0;O.next(x)},void 0,function(){X||O.next(A);
O.complete()}))})};
Hz=function(){return No(function(A,L){A.subscribe(new rp(L,sJ))})};
zM=function(A){return No(function(L,O){L.subscribe(new rp(O,function(){return O.next(A)}))})};
Bz=function(A){return A<=0?function(){return QP}:No(function(L,O){var X=0;
L.subscribe(new rp(O,function(x){++X<=A&&(O.next(x),A<=X&&O.complete())}))})};
Mo=function(A){var L=L===void 0?Pz:L;var O;A=(O=A)!=null?O:ET_;return No(function(X,x){var J,Y=!0;X.subscribe(new rp(x,function(T){var V=L(T);if(Y||!A(J,V))Y=!1,J=V,x.next(T)}))})};
ET_=function(A,L){return A===L};
tx_=function(A){A=A===void 0?nTu:A;return No(function(L,O){var X=!1;L.subscribe(new rp(O,function(x){X=!0;O.next(x)},void 0,function(){return X?O.complete():O.error(A())}))})};
nTu=function(){return new bmp};
$3=function(){var A=_.f_.apply(0,arguments);return function(L){return kMP(L,wp.apply(null,_.le(A)))}};
hEM=function(A){return No(function(L,O){var X=0;L.subscribe(new rp(O,function(x){A.call(void 0,x,X++,L)||(O.next(!1),O.complete())},void 0,function(){O.next(!0);
O.complete()}))})};
SOe=function(){return No(function(A,L){var O=[];A.subscribe(new rp(L,function(X){O.push(X);1<O.length&&O.shift()},void 0,function(){for(var X=_.d(O),x=X.next();!x.done;x=X.next())L.next(x.value);
L.complete()},function(){O=null}))})};
qOy=function(A,L){var O=arguments.length>=2;return function(X){return X.pipe(A?fL(function(x,J){return A(x,J,X)}):Pz,SOe(),O?eEy(L):tx_(function(){return new bmp}))}};
UJ=function(A){var L=OJ(A)?A:function(){return A};
return OJ()?No(function(O,X){var x=L();(void 0)(x).subscribe(X).add(O.subscribe(x))}):function(O){var X=new a9(O,L);
OJ(O==null?void 0:O.lift)&&(X.lift=O.lift);X.source=O;X.subjectFactory=L;return X}};
o9=function(A){var L=new vz(A,void 0,void 0);return function(O){return UJ(function(){return L})(O)}};
AD=function(A,L){return No(DFr(A,L,arguments.length>=2))};
Lm=function(){var A=_.f_.apply(0,arguments),L=gp(A);return No(function(O,X){(L?kMP(A,O,L):kMP(A,O)).subscribe(X)})};
OO=function(A){return No(function(L,O){var X=null,x=0,J=!1;L.subscribe(new rp(O,function(Y){var T;(T=X)==null||T.unsubscribe();T=x++;VP(A(Y,T)).subscribe(X=new rp(O,function(V){return O.next(V)},void 0,function(){X=null;
J&&!X&&O.complete()}))},void 0,function(){(J=!0,!X)&&O.complete()}))})};
XT=function(A,L){L=L===void 0?!1:L;return No(function(O,X){var x=0;O.subscribe(new rp(X,function(J){var Y=A(J,x++);(Y||L)&&X.next(J);!Y&&X.complete()}))})};
gTd=function(A,L,O){var X=OJ(A)||L||O?{next:A,error:L,complete:O}:A;return X?No(function(x,J){x.subscribe(new rp(J,function(Y){var T;(T=X.next)==null||T.call(X,Y);J.next(Y)},function(Y){var T;
(T=X.error)==null||T.call(X,Y);J.error(Y)},function(){var Y;
(Y=X.complete)==null||Y.call(X);J.complete()}))}):Pz};
wTr=function(){var A=_.f_.apply(0,arguments),L=Q9O(A);return No(function(O,X){for(var x=A.length,J=Array(x),Y=A.map(function(){return!1}),T=!1,V={i$jscomp$229:0};V.i$jscomp$229<x;V={i$jscomp$229:V.i$jscomp$229},V.i$jscomp$229++)VP(A[V.i$jscomp$229]).subscribe(new rp(X,function(E){return function(n){J[E.i$jscomp$229]=n;
T||Y[E.i$jscomp$229]||(Y[E.i$jscomp$229]=!0,(T=Y.every(Pz))&&(Y=null))}}(V),void 0,sJ));
O.subscribe(new rp(X,function(E){T&&(E=[E].concat(_.le(J)),X.next(L?L.apply(null,_.le(E)):E))}))})};
imu=function(A){try{return!!A&&A.location.href!=null&&pTp(A,"foo")}catch(L){return!1}};
Nzu=function(A){var L=[],O=0,X;for(X in A)L[O++]=X;return L};
rDJ=function(A,L){for(var O in A)if(A[O]==L)return!0;return!1};
Kyu=function(A,L,O){for(var X in A)if(L.call(O,A[X],X,A))return X};
G0_=function(A){if(!A||typeof A!=="object")return A;if(typeof A.clone==="function")return A.clone();if(typeof Map!=="undefined"&&A instanceof Map)return new Map(A);if(typeof Set!=="undefined"&&A instanceof Set)return new Set(A);if(A instanceof Date)return new Date(A.getTime());var L=Array.isArray(A)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(A)||A instanceof DataView?{}:new A.constructor(A.length),O;for(O in A)L[O]=G0_(A[O]);return L};
l4_=function(A){var L=arguments.length;if(L==1&&Array.isArray(arguments[0]))return l4_.apply(null,arguments[0]);if(L%2)throw Error("ka");for(var O={},X=0;X<L;X+=2)O[arguments[X]]=arguments[X+1];return O};
cDu=function(A){var L=arguments.length;if(L==1&&Array.isArray(arguments[0]))return cDu.apply(null,arguments[0]);for(var O={},X=0;X<L;X++)O[arguments[X]]=!0;return O};
_.xT=function(A){return new doO(A[0].toLowerCase())};
CWs=function(A){try{return new URL(A,window.document.baseURI)}catch(L){return new URL("about:invalid")}};
Fyp=function(A,L){var O=L.createRange();O.selectNode(L.body);A=jg(A);return O.createContextualFragment(Wf(A))};
REs=function(A){A=A.nodeName;return typeof A==="string"?A:"FORM"};
QoP=function(A){A=A.nodeType;return A===1||typeof A!=="number"};
sO=function(A,L,O){A.setAttribute(L,O)};
mFu=function(A){return A.parts.map(function(L){var O=L.descriptor;return""+L.url+(O?" "+O:"")}).join(" , ")};
_.JD=function(A){var L=_.f_.apply(1,arguments);if(L.length===0)return _.gw(A[0]);for(var O=A[0],X=0;X<L.length;X++)O+=encodeURIComponent(L[X])+A[X+1];return _.gw(O)};
_.PT=function(A,L){A=_.ww(A).toString();var O=A.split(/[?#]/),X=/[?]/.test(A)?"?"+O[1]:"";return f4e(O[0],X,/[#]/.test(A)?"#"+(X?O[2]:O[1]):"",L)};
f4e=function(A,L,O,X){function x(Y,T){Y!=null&&(Array.isArray(Y)?Y.forEach(function(V){return x(V,T)}):(L+=J+encodeURIComponent(T)+"="+encodeURIComponent(Y),J="&"))}
var J=L.length?"&":"?";X.constructor===Object&&(X=Object.entries(X));Array.isArray(X)?X.forEach(function(Y){return x(Y[1],Y[0])}):X.forEach(x);
return _.gw(A+L+O)};
dz=function(A,L,O,X){this.top=A;this.right=L;this.bottom=O;this.left=X};
I4M=function(A){A=A.global;if(A.PendingGetBeacon)return A.PendingGetBeacon};
T0=function(A){return function(L){return L.pipe(yD9(A,UJ(new uW)))}};
D4=function(A){return function(L){return L.pipe(yD9(A,o9(1)))}};
yD9=function(A,L){function O(X){return new Y3(function(x){return X.subscribe(function(J){EO(A,function(){return void x.next(J)},3)},function(J){EO(A,function(){return void x.error(J)},3)},function(){EO(A,function(){return void x.complete()},3)})})}
return dp(O,fMe(),L,KL(),O)};
Wy_=function(A){var L=Zmp(A);return L===null?new nm(null):L.pipe(GM(function(O){O=O.serialize();if(jos)O=_.Ou.btoa(O);else{for(var X=[],x=0,J=0;J<O.length;J++){var Y=O.charCodeAt(J);Y>255&&(X[x++]=Y&255,Y>>=8);X[x++]=Y}O=_.NQ(X)}return O}),Bz(1),D4(A.queue))};
HmM=function(A){var L=L===void 0?{}:L;if(typeof Event==="function")return new Event(A,L);if(typeof document!=="undefined"){var O=document.createEvent("CustomEvent");O.initCustomEvent(A,L.bubbles||!1,L.cancelable||!1,L.detail);return O}throw Error();};
zEO=function(A){return typeof A==="string"?document.getElementById(A):A};
MxM=function(A){var L=!1;L=L===void 0?!1:L;if(A.tagName==="IMG"){if(A.complete&&(!A.naturalWidth||!A.naturalHeight))return!0;var O;if(L&&((O=A.style)==null?void 0:O.display)==="none")return!0}var X,x;return Bzs.test((X=A.getAttribute("width"))!=null?X:"")&&Bzs.test((x=A.getAttribute("height"))!=null?x:"")};
$Fe=function(A,L){if(A.tagName==="IMG")return A.naturalWidth&&A.naturalHeight?!0:!1;try{if(A.readyState)var O=A.readyState;else{var X,x;O=(X=A.contentWindow)==null?void 0:(x=X.document)==null?void 0:x.readyState}return O==="complete"}catch(J){return L===void 0?!1:L}};
a4_=function(A){A||(A=function(L,O,X){L.addEventListener(O,X)});
return A};
oT_=function(A,L){var O=k0_();O=O===void 0?new UFp:O;if(A=zEO(A)){var X=a4_(X);for(var x=!1,J=function(F){x||(x=!0,L(F))},Y,T=2,V=0;V<vTJ.length;++V)if(vTJ[V]===A.tagName){T=3;
Y=[A];break}Y||(Y=A.querySelectorAll(vTJ.join(",")));var E=0,n=0,t=!0,b=A=!1;V={};for(var S=0;S<Y.length;V={isImg:void 0},S++){var w=Y[S];if(!MxM(w))if(V.isImg=w.tagName==="IMG",$Fe(w,O.crossDomainLoadedDefault))A=!0,V.isImg&&(t=!0);else{E++;var l=function(F){return function(R){E--;!E&&t&&J(T);F.isImg&&(R=R&&R.type==="error",n--,R||(t=!0),!n&&b&&t&&J(T))}}(V);
X(w,"load",l);V.isImg&&(n++,X(w,"error",l))}}n===0&&(t=!0);Y=null;Y=_.Ou.document.readyState==="complete";if(E===0&&!A&&Y)T=5;else if(E||!A){X(_.Ou,"load",function(){!O.pendingImagesBlockLoad||!n&&t?J(4):b=!0});
return}J(T)}};
Agd=function(A,L,O){if(A)for(var X=0;A!=null&&X<500&&!O(A);++X)A=L(A)};
LKD=function(A,L){Agd(A,function(O){try{return O===O.parent?null:O.parent}catch(X){}return null},L)};
O$y=function(A,L){if(A.tagName=="IFRAME")L(A);else{A=A.querySelectorAll("IFRAME");for(var O=0;O<A.length&&!L(A[O]);++O);}};
Xqe=function(A){return(A=A.ownerDocument)&&(A.parentWindow||A.defaultView)||null};
xYO=function(A,L,O){try{var X=JSON.parse(O.data)}catch(Y){}if(typeof X==="object"&&X&&X.type==="creativeLoad"){var x=Xqe(A);if(O.source&&x){var J;LKD(O.source,function(Y){try{if(Y.parent===x)return J=Y,!0}catch(T){}});
J&&O$y(A,function(Y){if(Y.contentWindow===J)return L(X),!0})}}};
snd=function(A){return typeof A==="string"?document.getElementById(A):A};
YTD=function(){var A={};return A[0]=_.JD(Jgu,"current"),A[1]=_.JD(PsP),A[2]=_.JD(dYP),A};
tD=function(A,L){return A.left===L.left&&A.top===L.top&&A.width===L.width&&A.height===L.height};
uq9=function(A,L){return{left:Math.max(A.left,L.left),top:Math.max(A.top,L.top),width:Math.max(0,Math.min(A.left+A.width,L.left+L.width)-Math.max(A.left,L.left)),height:Math.max(0,Math.min(A.top+A.height,L.top+L.height)-Math.max(A.top,L.top))}};
TXP=function(A,L){return{left:Math.round(A.left+L.x),top:Math.round(A.top+L.y),width:A.width,height:A.height}};
VVp=function(A,L,O){if(A&&L!==null&&L!=L.top){if(!L.top)return new _.bW(-12245933,-12245933);L=L.top}try{return(O===void 0?0:O)?(new _.bW(L.innerWidth,L.innerHeight)).round():_.hD(L).round()}catch(X){return new _.bW(-12245933,-12245933)}};
DYu=function(A,L,O){try{if(A){if(!L.top)return new dz(-12245933,-12245933,-12245933,-12245933);L=L.top}var X=VVp(A,L,O),x=X.height,J=X.width;if(J===-12245933)return new dz(J,J,J,J);var Y=Sx(qF(L.document)),T=Y.x,V=Y.y;return new dz(V,T+J,V+x,T)}catch(E){return new dz(-12245933,-12245933,-12245933,-12245933)}};
eYy=function(A){var L;return(L=A.google_tag_data)!=null?L:A.google_tag_data={}};
E8O=function(A){var L,O;return typeof((L=A.navigator)==null?void 0:(O=L.userAgentData)==null?void 0:O.getHighEntropyValues)==="function"};
tVP=function(A){if(!E8O(A))return null;var L=eYy(A);if(L.uach_promise)return L.uach_promise;A=A.navigator.userAgentData.getHighEntropyValues(n8e).then(function(O){L.uach!=null||(L.uach=O);return O});
return L.uach_promise=A};
GXD=function(A){var L;return b$d(hYJ(STu(qTM(g8D(wqr(pq9(i$M(NXp(new rgD,A.architecture||""),A.bitness||""),A.mobile||!1),A.model||""),A.platform||""),A.platformVersion||""),A.uaFullVersion||""),((L=A.fullVersionList)==null?void 0:L.map(function(O){var X=new KK9;X=_.gz(X,1,O.brand);return _.gz(X,2,O.version)}))||[]),A.wow64||!1)};
lgO=function(A){var L,O;return(O=(L=tVP(A))==null?void 0:L.then(function(X){return GXD(X)}))!=null?O:null};
cgp=function(A,L){return new Y3(function(O){var X=!1,x=Array(L.length);x.fill(void 0);var J=new Set,Y=new Set,T=function(t,b){A.running?(x[b]=t,J.add(b),X||(X=!0,EO(A,function(){X=!1;O.next(_.Ze(x))},1))):O.error(new wz(b))},V=function(t,b){Y.add(b);
J.add(b);EO(A,function(){O.error(t)},1)},E=function(t){Y.add(t);
EO(A,function(){Y.size===L.length&&O.complete()},1)},n=L.map(function(t,b){return t.subscribe(function(S){return void T(S,b)},function(S){return void V(S,b)},function(){return void E(b)})});
return function(){n.forEach(function(t){return void t.unsubscribe()})}})};
RYu=function(A,L,O){function X(){if(L.debugChannel){var F=L.debugChannel,R=F.next;var y={creativeId:L.debugNames.getName(O),requiredSignals:x,signals:Object.assign({},J),hasPrematurelyCompleted:Y,errorMessage:T,erroredSignalKey:V};y={specMajor:2,specMinor:0,specPatch:0,timestamp:I9(L.timeProvider.now(),new yP(0,L.timeProvider.timeline)),instanceId:L.debugNames.getName(L.symbol),creativeState:y};R.call(F,y)}}
for(var x=Object.keys(A),J={},Y=!1,T=null,V=null,E={},n=new Set,t=[],b=[],S=_.d(x),w=S.next(),l={};!w.done;l={key$jscomp$396:void 0},w=S.next())l.key$jscomp$396=w.value,w=A[l.key$jscomp$396],w instanceof nm?(E[l.key$jscomp$396]=w.value,n.add(l.key$jscomp$396),L.debugChannel&&(J[String(l.key$jscomp$396)]=uTs(w.value))):(w=w.pipe(Mo(function(F,R){return dF_(F)||dF_(R)?!1:F===R}),GM(function(F){return function(R){L.debugChannel&&(J[String(F.key$jscomp$396)]=uTs(R),X());
var y={};return y[F.key$jscomp$396]=R,y}}(l)),Wz(function(F){return function(R){if(R instanceof wz)throw new Csd(String(F.key$jscomp$396));
throw R;}}(l)),gTd(function(F){return function(){n.add(F.key$jscomp$396)}}(l),function(F){return function(R){V=String(F.key$jscomp$396);
T=String(R);X()}}(l),function(F){return function(){n.has(F.key$jscomp$396)||(Y=!0,X())}}(l))),b.push(l.key$jscomp$396),t.push(w));
(A=Object.keys(J).length>0)&&X();S=cgp(L.queue,t).pipe(Wz(function(F){if(F instanceof wz)throw new FKd(String(b[F.inputObservableIndex]));throw F;}),GM(function(F){return Object.freeze(Object.assign.apply(Object,[{},
E].concat(_.le(F))))}));
return(t=t.length>0)&&A?mh(wp(Object.freeze(E)),S):t?S:wp(Object.freeze(E))};
Qnp=function(A,L,O,X,x){return A.performanceMonitor.timeExecution.bind(A.performanceMonitor)(733,function(){var J={};try{return L.pipe(Wz(function(Y){X(Object.assign({},J,{error:Y}));return QP}),F0(function(Y){try{var T=O(A,Y)}catch(E){return X(Object.assign({},J,{error:E instanceof Error?E:String(E)})),QP}var V={};
return RYu(T,A,Y.symbol).pipe(gTd(function(E){V=E}),o9(1),KL()).pipe(x,Wz(function(E){X(Object.assign({},V,{error:E}));
return QP}),$3(void 0),GM(function(){return!0}))})).pipe(AD(function(Y){return Y+1},0),Wz(function(Y){X(Object.assign({},J,{error:Y}));
return QP}))}catch(Y){return X(Object.assign({},J,{error:Y})),QP}})()};
NF=function(A){var L=new Map;if(typeof A!=="object"||A===null)return L;Object.values(A).forEach(function(O){O&&typeof O.extrapolateToNow==="function"&&(L.has(O.clock.timeline)||L.set(O.clock.timeline,O.clock.now()))});
return L};
mYu=function(A,L){return typeof A==="string"?encodeURIComponent(A):typeof A==="number"?String(A):Array.isArray(A)?A.map(function(O){return mYu(O,L)}).join(","):A instanceof yP?A.toString():A&&typeof A.extrapolateToNow==="function"?mYu(A.extrapolateUsingTimestampMap(L).value,L):A===!0?"1":A===!1?"0":A===void 0||A===null?null:A instanceof fgJ?Ige(A):[A.top,
A.left,A.top+A.height,A.left+A.width].join()};
ygu=function(A,L){A=Object.entries(A).map(function(O){var X=_.d(O);O=X.next().value;X=X.next().value;X=mYu(X,L);return X===null?"":O+"="+X}).filter(function(O){return O!==""});
return A.length?A.join("&"):""};
WKu=function(A,L){var O=Z$s,X=jnu;L=L===void 0?.01:L;return function(x){L>0&&Math.random()<=L&&(A.global.HTMLFencedFrameElement&&A.global.fence&&typeof A.global.fence.reportEvent==="function"&&A.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),x=Object.assign({},x,{errorMessage:x.error instanceof Error&&x.error.message?x.error.message:String(x.error),errorStack:x.error instanceof Error&&x.error.stack?String(x.error.stack):null,errorName:x.error instanceof
Error&&x.error.name?String(x.error.name):null,errorContext:String(A.performanceMonitor.timedFunctionContext),errorEscapedQueryId:x.escapedQueryId}),O(Object.assign({},x,{payloadMapper:function(){return function(J){try{return X(Object.assign({},J))}catch(Y){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),NF(x)).forEach(function(J){A.beaconFactory.makeBeacon(J).sendNow()}))}};
H$p=function(){var A=_.f_.apply(0,arguments);return function(L){var O=L.pipe(o9(1),KL());L=A.map(function(X){return O.pipe(X,$3(!0))});
return cz(L).pipe(Bz(1),Hz())}};
zYs=function(){var A=_.f_.apply(0,arguments);return function(L){var O=L.pipe(o9(1),KL());L=A.map(function(X){return O.pipe(X,$3(!0))});
return mh.apply(null,_.le(L)).pipe(Bz(1),Hz())}};
BX9=function(A,L){return function(O){var X=O.pipe(o9(1),KL());O=X.pipe(A,$3(!0));X=X.pipe(dp(L,o9(),KL()),$3(!0));O=cz([O,X]);return JDD(O,X).pipe(Bz(1),Hz())}};
MVp=function(A,L,O){O(!0)};
$Y_=function(A,L){return dp(OO(function(O){var X=A(O),x=L(O),J={};return X&&x&&J?new Y3(function(Y){x(X,J,function(T){Y.next(Object.assign({},O,{canEmit:T}));Y.complete()});
return function(){}}):rz}),fL(function(O){return O.canEmit}))};
age=function(A){var L={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(O){return O.pipe(OO(function(X){return new Y3(function(x){function J(){T.disconnect();V.unsubscribe()}
var Y=A.MutationObserver;if(Y&&X.ref!==void 0){var T=new Y(function(E){x.next(E)});
T.observe(X.ref,L);var V=X.JSC$10379_released.subscribe(J);return J}})}))}};
kXJ=function(A){if(A.measurementDeferralState===3)return null;if(A.timeOnScreenReason!==void 0){var L=A.creativeFound===!1?"n":null;if(L!==null)return L}return A.geometricMeasurementErrors instanceof Km?"msf":A.contextValidationErrors instanceof G0?"c":A.contextVisibilityKnown===!1?"pv":A.geometricMeasurementErrors||A.contextValidationErrors?"x":null};
v8J=function(A,L){return A.replace(UYp,function(O,X){try{var x=_.lW.get(L,X);if(x==null||x.toString()==null)return O;x=x.toString();if(x==""||!_.Ye(x==null?"":String(x)))return encodeURIComponent(x).replace(/%2C/g,",")}catch(J){}return O})};
o8r=function(A,L){var O=Object.assign({},A),X=A.userAgentClientHints;O=(delete O.userAgentClientHints,O);O=A.payloadMapper(O);var x=ygu(O,L);return _.cT(A.urlPrefixes,function(J){var Y="";typeof X==="string"&&(Y="&"+ygu({uach:X},L));var T={};return v8J(J,(T.VIEWABILITY=x,T))+Y})};
Z$s=function(A,L){var O=A.payloadMapper(A),X=ygu(O,L);return X?_.cT(A.urlPrefixes,function(x){x=x.indexOf("?")>=0?x:x+"?";x="?&".indexOf(x.slice(-1))>=0?x:x+"&";return x+X}):A.urlPrefixes};
A0_=function(){return dp(fL(function(A){return A!==void 0}),GM(function(A){return A}))};
LvP=function(A){return dp(GM(function(){return!0}),Lm(!1),D4(A))};
Orr=function(A){return A.length<=0?QP:cz(A.map(function(L){var O=0;return L.pipe(GM(function(X){return{index:O++,value:X}}))})).pipe(fL(function(L){return L.every(function(O){return O.index===L[0].index})}),GM(function(L){return L.map(function(O){return O.value})}))};
Xu_=function(A,L){A.currentState&&(A.previousState=A.currentState);A.currentState=L;A.previousState&&A.previousState.value?(L=Math.max(0,I9(L.timestamp,A.previousState.timestamp)),A.totalTime+=L,A.consecutiveTime+=L):A.consecutiveTime=0;return A};
xDJ=function(){return dp(AD(Xu_,{totalTime:0,consecutiveTime:0}),GM(function(A){return A.totalTime}))};
see=function(){return dp(AD(Xu_,{totalTime:0,consecutiveTime:0}),GM(function(A){return A.consecutiveTime}))};
J0d=function(A,L){return function(O){return Orr(L.map(function(X){return O.pipe(A(X))}))}};
PQu=function(){var A;return dp(gTd(function(L){return void(A=L.timestamp)}),see(),GM(function(L){return{timestamp:A,
value:Math.round(L)}}))};
dDO=function(A,L){return tD(A.topWindowViewportExternalGeometry,L.topWindowViewportExternalGeometry)&&tD(A.elementGeometry,L.elementGeometry)&&tD(A.exposedViewportLocalGeometry,L.exposedViewportLocalGeometry)&&tD(A.intersectionGeometry,L.intersectionGeometry)&&A.elementGeometrySourceName===L.elementGeometrySourceName&&A.measurementRequests===L.measurementRequests&&A.viewportGeometrySourceName===L.viewportGeometrySourceName&&A.viewportLocalAppOffset.x===L.viewportLocalAppOffset.x&&A.viewportLocalAppOffset.y===
L.viewportLocalAppOffset.y};
VI_=function(A,L){return function(O){return function(X){var x=X.pipe(UJ(new uW),KL());X=O.element.pipe(Mo());x=x.pipe(GM(function(J){return J.value}));
return cz([X,x,L]).pipe(GM(function(J){var Y=_.d(J);J=Y.next().value;var T=Y.next().value;Y=Y.next().value;if(J.ref===void 0)var V={top:0,left:0,width:0,height:0};else{V=J.ref.getBoundingClientRect();var E=J.ref,n=A.global,t=new _.Cm(0,0),b=FT(_.Ro(E));if(pTp(b,"parent")){do{if(b==n)var S=_.QS(E);else S=Y4d(E),S=new _.Cm(S.left,S.top);t.x+=S.x;t.y+=S.y}while(b&&b!=n&&b!=b.parent&&(E=b.frameElement)&&(b=b.parent))}V={top:t.y,left:t.x,width:V.width,height:V.height}}V=TXP(V,T.viewportLocalAppOffset);
n=uq9(V,T.exposedViewportLocalGeometry);t=A.timeProvider.now();b=Object;E=b.assign;if(Y!==2||A.inCrossDomainIframe||n.width<=0||n.height<=0)var w=!1;else try{var l=A.document.elementFromPoint(n.left+n.width/2,n.top+n.height/2);w=l?!uxd(l,J):!1}catch(F){w=!1}return{timestamp:t,value:E.call(b,{},T,{elementGeometrySourceName:"geo",intersectionGeometry:w?TFu.intersectionGeometry:n,elementGeometry:V})}}),T0(A.queue))}}};
uxd=function(A,L,O){O=O===void 0?0:O;return A.ref===void 0||L.ref===void 0?!1:A.ref===L.ref||_.my(L.ref,function(X){return X===A.ref})?!0:L.ref.ownerDocument&&L.ref.ownerDocument.defaultView&&L.ref.ownerDocument.defaultView===L.ref.ownerDocument.defaultView.top?!1:O<10&&L.ref.ownerDocument&&L.ref.ownerDocument.defaultView&&L.ref.ownerDocument.defaultView.frameElement?uxd(A,new fm(L.ref.ownerDocument.defaultView.frameElement),O+1):!0};
ENr=function(A){return function(L){return L.pipe(A.ResizeObserver?DDJ(A):eUD(A),o9(1),KL())}};
DDJ=function(A){return function(L){return L.pipe(OO(function(O){var X=A.ResizeObserver;if(!X||O.ref===void 0)return wp(TFu.elementGeometry);var x=(new Y3(function(J){function Y(){O.ref!==void 0&&T.unobserve(O.ref);T.disconnect();V.unsubscribe()}
if(O.ref===void 0)return J.complete(),function(){};
var T=new X(function(E){E.forEach(function(n){J.next(n)})});
T.observe(O.ref);var V=O.JSC$10379_released.subscribe(Y);return Y})).pipe(j4(A.performanceMonitor,736),GM(function(J){return J.contentRect}));
return mh(wp(O.ref.getBoundingClientRect()),x)}),Mo(tD))}};
eUD=function(A){return function(L){var O=L.pipe(age(A)),X=A.onResize;O=mh(L.pipe(GM(function(){return HmM("resize")})),O,X);
return cz(L,O).pipe(j4(A.performanceMonitor,737),GM(function(x){x=_.d(x).next().value;return x.ref===void 0?void 0:x.ref.getBoundingClientRect()}),A0_(),Mo(tD))}};
brP=function(A,L){var O=nNe(A,L).pipe(o9(1),KL());return function(X){return function(x){x=x.pipe(OO(function(J){return J.element}),Mo());
return cz([O,x]).pipe(OO(function(J){var Y=_.d(J);J=Y.next().value;Y=Y.next().value;return tI9(A,J.intersectionObserver,ENr(A),J.observations,X,J.flushRecords,Y)}),T0(A.queue))}}};
hUy=function(A){return GM(function(L){return L.value.viewportGeometrySourceName!=="nio"?L:Object.assign({},L,{value:Object.assign({},L.value,{exposedViewportLocalGeometry:Io(A,!0),topWindowViewportExternalGeometry:Io(A,!0)})})})};
S4d=function(A,L){return wp(L).pipe(A,GM(function(){return L}))};
nNe=function(A,L){return A.timeProvider.timeline!==q4u?ie(new Km(2)):A.MutationObserver?typeof IntersectionObserver==="undefined"?ie(new Km(0)):(new Y3(function(O){var X=new uW,x=new yS(X.next.bind(X),{threshold:[].concat(_.le(L))});O.next({observations:X.pipe(j4(A.performanceMonitor,735)),intersectionObserver:x,flushRecords:function(J){J=x.takeRecords(J);J.length>0&&X.next(J)}})})).pipe(Bz(1),o9(1),KL()):ie(new Km(1))};
gNu=function(A){return rnu(A.sort(function(L,O){return L.time-O.time}),mod)};
tI9=function(A,L,O,X,x,J,Y){return new Y3(function(T){function V(){w||(w=!0,Y.ref!==void 0&&L.unobserve(x,Y.ref),n.unsubscribe(),S.unsubscribe(),b.unsubscribe(),l.unsubscribe())}
if(Y.ref!==void 0){wur(L,x);L.observe(x,Y.ref);var E=new Z4({timestamp:A.timeProvider.now(),value:Object.assign({},TFu,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),n=X.pipe(F0(function(F){return gNu(F)}),fL(function(F){return F.target===Y.ref}),GM(function(F){return{timestamp:new yP(F.time,q4u),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:F.rootBounds||jx,topWindowViewportExternalGeometry:F.rootBounds||Io(A,!0),measurementRequests:t,elementGeometrySourceName:"nio",intersectionGeometry:F.intersectionRect,elementGeometry:F.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:F.isIntersecting,isV2Visible:F.isVisible}}}),UJ(E),KL()).subscribe(T),t=new uW,b=t.subscribe(function(){J(x);
T.next({timestamp:A.timeProvider.now(),value:E.value.value});Y.ref!==void 0&&(L.unobserve(x,Y.ref),L.observe(x,Y.ref))}),S=S4d(O,Y).subscribe(function(){t.next()}),w=!1,l=Y.JSC$10379_released.subscribe(function(){return V()});
return V}})};
pu_=function(A,L){var O=A.getOnBackgrounded().pipe(GM(function(){return"b"}));
return JDD(L,O).pipe(Bz(1),D4(A.queue))};
WT=function(A){return function(L){var O;return L.pipe(gTd(function(X){return void(O=X.timestamp)}),GM(function(X){return X.value}),A,GM(function(X){return{timestamp:O,
value:X}}))}};
irD=function(A){return A.intersectionGeometry.width*A.intersectionGeometry.height/(A.elementGeometry.width*A.elementGeometry.height)};
HT=function(A,L,O){O=O===void 0?function(X,x){return X===x}:O;
return A.timestamp.equals(L.timestamp)&&O(A.value,L.value)};
BT=function(A,L){return L.pipe(GM(function(O){return new z0(A.timeProvider,{timestamp:A.timeProvider.now(),value:O})}))};
NFD=function(A){return function(L){return L.pipe(wTr(A),GM(function(O){var X=_.d(O);O=X.next().value;X=X.next().value;var x=O.value;return{timestamp:O.timestamp,value:x>=1?!0:x<=0?!1:x>=X}}))}};
Kvr=function(){return dp(fL(function(A,L){return L>0}),r0e,Lm(-1),Mo())};
GVy=function(A,L,O){return A?cz([L,O]).pipe(fL(function(X){var x=_.d(X);X=x.next().value;x=x.next().value;return X.timestamp.equals(x.timestamp)}),GM(function(X){var x=_.d(X);
X=x.next().value;x=x.next().value;return X.value>x.value?X:x})):L};
CQd=function(A){return function(L){var O=L.pipe(lW9),X=L.pipe(c0O);return A instanceof Y3?A.pipe(OO(function(x){return GVy(x,O,X)})):GVy(A.value,O,X)}};
Wvu=function(A,L,O,X){var x=X.geometryIsOccluded,J=X.exposureThreshold,Y=X.wasLargeAdAtRender,T=X.allowLargeAdThreshold,V=X.largeAdExposureThreshold,E=X.mayUseViewportShareExposure,n=X.hasMeasurementStarted;X=X.useIntersectionObserverV2;L=Fvr(A,O,L);O=RUs(A,O);X=Qey(L,X);var t=mDp(A,x,E,L),b=t.pipe(GM(function(z){return z.value}),Mo(),D4(A),AD(function(z,a){return Math.max(z,a)},0)),S=t.pipe(GM(function(z){return z.value}),Kvr(),D4(A)),w=L.pipe(fWP,GM(function(z){return z.value}),Bz(2),Mo(),D4(A));
Y=IWe(A,L,Y,T);var l=Y.pipe(Lm(!1),Mo(),GM(function(z){return z?V:J}));
T=t.pipe(NFD(l),Mo(),D4(A));var F=cz([T,L]).pipe(fL(function(z){var a=_.d(z);z=a.next().value;a=a.next().value;return z.timestamp.equals(a.timestamp)}),GM(function(z){var a=_.d(z);
z=a.next().value;a=a.next().value;return{visible:z.value,geometry:a.value.elementGeometry}}),AD(function(z,a){return!a.visible&&z.visible?z:a},{visible:!1,
geometry:jx}),GM(function(z){return z.geometry}),Lm(jx),D4(A),Mo(tD));
E=E instanceof Y3?E.pipe(Mo(),zM()):rz;l=cz([E,l]).pipe(zM());var R=L.pipe(fL(function(z){return z.value.viewportGeometrySourceName!=="ns"&&z.value.elementGeometrySourceName!=="ns"}),AD(function(z){return z+1},0),Lm(0),D4(A)),y=O.pipe(zM(!0),Lm(!1),D4(A));
y=cz([n,y]).pipe(GM(function(z){var a=_.d(z);z=a.next().value;a=a.next().value;return z&&!a}),D4(A));
var M=L.pipe(y0p,Mo()),H=M.pipe(GM(function(z){return z.value}),AD(function(z,a){return Math.max(z,a)},0),Mo(),D4(A));
A=M.pipe(GM(function(z){return z.value}),Kvr(),D4(A));
return{shouldResetExposureSignals:E,shouldResetViewabilitySignals:l,geometrySignals:{readyGeometryWithDefault:L,measurementStrategy:L.pipe(ZrM),creativePosition:F.pipe(Mo(tD)),visible:T.pipe(Mo(HT)),timestampedExposure:t.pipe(Mo(HT)),maximumExposure:b,minimumExposure:S,browserSize:L.pipe(jer,Mo(_.ad)),timestampedScreenShare:M,maxScreenShare:H,minScreenShare:A,geometricMeasurementErrors:O,measurementRequests:L.pipe(GM(function(z){return z.value.measurementRequests})),
isLargeAd:Y,geometryIsOccluded:x,hasMeasurementStarted:n,geometryMeasurable:y,validMeasurementCount:R,loadTimeExposure:w,v2VisibilityBitVector:X}}};
RUs=function(A,L){return L.pipe(fL(function(){return!1}),GM(function(O){return O}),Wz(function(O){return ao(new nm(O),A)}))};
Fvr=function(A,L,O){return L.pipe(xFr(rz),D4(A)).pipe(Mo(function(X,x){return HT(X,x,dDO)}),Lm({timestamp:O.now(),
value:TFu}),D4(A))};
mDp=function(A,L,O,X){O=X.pipe(CQd(O),WT(GM(function(x){return Math.round(x*100)/100})),D4(A));
return L instanceof nm?O:cz([O,L]).pipe(GM(function(x){var J=_.d(x);x=J.next().value;J=J.next().value;return{timestamp:J.timestamp.maximum(x.timestamp),value:J.value?0:x.value}}),Mo(HT),D4(A))};
IWe=function(A,L,O,X){L=[L.pipe(GM(function(x){return x.value.elementGeometry.width*x.value.elementGeometry.height>=242500}))];
O instanceof Y3&&L.push(O.pipe(GM(function(x){return!!x})));
O=cz(L);return X?O.pipe(GM(function(x){return x.some(function(J){return J})}),Lm(!1),Mo(),D4(A)):ao(new nm(!1),A)};
Qey=function(A,L){A=cz([A,L]).pipe(GM(function(x){var J=_.d(x);x=J.next().value;if(J.next().value&&x.value.isIntersecting)return x.value.isV2Visible}),Mo());
var O=A.pipe(GM(function(x){return x===void 0?!0:x}),AD(function(x,J){return x||!J},!1)),X=A.pipe(AD(function(x,J){return J===void 0?x:J?!1:x!=null?x:!0},void 0),GM(function(x){return!!x}));
return cz([L,PWe(A,O,X)]).pipe(GM(function(x){var J=_.d(x);x=J.next().value;var Y=_.d(J.next().value);J=Y.next().value;var T=Y.next().value;Y=Y.next().value;var V=0;if(!x)return 0;if(J===void 0)return 16;J&&(V|=1);J||(V|=2);T&&(V|=4);Y&&(V|=8);return V}))};
aWu=function(A,L,O,X,x){var J=Hr_.timeThresholdMs;var Y=Y===void 0?new zUp(L,X):Y;return(new Y3(function(T){var V=O.pipe(Lm(void 0),OO(function(){return BF9(x)})).pipe(GM(function(E){var n=E.value;
E=E.timestamp;var t=n.visible;n=n.consecutiveViewTime;var b=n>=J;b||!t?MIr(Y):(E=Math.max(0,I9(L.now(),E)),$De(Y,Math.max(0,J-n-E)));return b}),AD(function(E,n){return n||E},!1),Mo()).subscribe(T);
return function(){Y.dispose();V.unsubscribe()}})).pipe(XT(function(T){return!T},!0),D4(A))};
BF9=function(A){return Orr([A,A.pipe(PQu())]).pipe(GM(function(L){var O=_.d(L);L=O.next().value;O=O.next().value;return{timestamp:L.timestamp,value:{visible:L.value,consecutiveViewTime:O.value}}}),Mo(function(L,O){return HT(L,O,function(X,x){return X.consecutiveViewTime===x.consecutiveViewTime&&X.visible===x.visible})}))};
kVp=function(){return dp(see(),AD(function(A,L){return Math.max(A,L)},0),GM(function(A){return Math.round(A)}))};
UDe=function(A){return dp(NFD(wp(A)),kVp())};
vN9=function(A,L){return L instanceof Y3?L.pipe(OO(function(O){return(O=O?15:null)?ie(new Km(O)):A})):(L=L.value?15:null)?ie(new Km(L)):A};
oNy=function(A){var L=new Km(13);if(A.length<1)return{chain:QP,capturedErrors:QP};var O=new uW,X=A[0];return{chain:A.slice(1).reduce(function(x,J){return x.pipe(Wz(function(Y){O.next(Y);return J}))},X).pipe(Wz(function(x){O.next(x);
return ie(L)}),UJ(new uW),KL()),
capturedErrors:O}};
A8D=function(A,L){var O=A.pipe(UJ(new uW),KL());return OO(function(X){return O.pipe(L(X))})};
OBP=function(A,L){if(A.inCrossDomainIframe)return ie(new Km(6));var O=new uW;return mh(wp({}),L,O).pipe(GM(function(){return{timestamp:A.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:Lsp(A),topWindowViewportExternalGeometry:Io(A,!0),measurementRequests:O,viewportLocalAppOffset:{x:0,y:0}}}}),T0(A.queue))};
Lsp=function(A){var L=Io(A,!1);if(!A.inIframe||!imu(A.global.parent)||A.global.parent===A.global)return L;var O=new kT(A.global.parent,A.debugChannel);O.beaconFactory=A.beaconFactory;O=Lsp(O);A=A.global.frameElement.getBoundingClientRect();return uq9(TXP(uq9(O,A),{x:L.left-A.left,y:L.top-A.top}),L)};
XYp=function(A){if(A.prerendering)return 3;var L;return(L={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[A.visibilityState||A.webkitVisibilityState||A.mozVisibilityState||""])!=null?L:0};
xEu=function(A){return A.document.JSC$10390_onVisibilityChange.pipe(GM(function(L){return L==="visible"}),Mo(),D4(A.queue))};
sOP=function(A,L,O){var X;return L.pipe(Mo(),OO(function(x){return O.pipe(GM(function(){if(!X){X=!0;try{x.next()}finally{X=!1}}return!0}))}),Lm(!1),D4(A.queue))};
J8_=function(A){return dp(WT(GM(function(L){return L>=1?!0:L<=0?!1:L>=A})),xDJ(),GM(function(L){return Math.round(L)}))};
dEe=function(A,L,O,X,x){var J=Pkd;if(J.length>1)for(var Y=0;Y<J.length-1;Y++)if(J[Y]<J[Y+1])throw Error();Y=x.pipe(Lm(void 0),OO(function(){return O.pipe(PQu())}),Mo(),D4(A));
x=x.pipe(Lm(void 0),OO(function(){return O.pipe(kVp())}),Mo(),D4(A));
return{totalMeasurementTime:X.pipe(Lm(void 0),OO(function(){return L.pipe(GM(function(T){return{timestamp:T.timestamp,value:!0}}),xDJ())}),Mo(),D4(A)),
totalUnviewedTime:X.pipe(Lm(void 0),OO(function(){return L.pipe(GM(function(T){return{timestamp:T.timestamp,value:T.value===0}}),xDJ())}),Mo(),D4(A)),
maxTimeOnScreen:X.pipe(Lm(void 0),OO(function(){return L.pipe(J0d(UDe,J))}),Mo(_.ad),D4(A)),
timeOnScreen:X.pipe(Lm(void 0),OO(function(){return L.pipe(J0d(J8_,J),GM(function(T){return T.map(function(V,E){return E>0?V-T[E-1]:V})}))}),Mo(_.ad),D4(A)),
maxConsecutiveViewTime:x,consecutiveViewTime:Y.pipe(Mo(HT),D4(A))}};
usM=function(A){var L=!0;L=L===void 0?!1:L;return dp(OO(function(O){return YsP(A.document,O,L)}),D4(A.queue))};
T9u=function(A,L,O){var X=O.pipe(GM(function(x){return{value:x,timestamp:A.timeProvider.now()}}),Mo(HT));
return L instanceof Y3?L.pipe(Mo(),OO(function(x){return x?ao(new nm({value:!1,timestamp:A.timeProvider.now()}),A.queue):X})):L.value===!1?X:new nm(!1)};
V6u=function(A,L,O,X,x,J,Y){var T=Hr_;L=L instanceof Y3?L.pipe(Lm(!1),Mo()):L;var V=!A.isMobile();O=T9u(A,O,X);A=Y.measurableCreative.pipe(LvP(A.queue));return Object.assign({},T,{geometryIsOccluded:O,wasLargeAdAtRender:x,allowLargeAdThreshold:V,mayUseViewportShareExposure:L,hasMeasurementStarted:A,useIntersectionObserverV2:J})};
efs=function(A,L,O,X,x,J){var Y=1;J=J===void 0?!0:J;Y=Y===void 0?.01:Y;var T=T===void 0?A.timeProvider.intervalObservable(100).pipe(D4(A.queue)):T;return A.performanceMonitor.timeExecution(916,function(){return DEr(A,L.pipe(T0(A.queue)),O.pipe(T0(A.queue)),X,x,J,Y,T)})()};
DEr=function(A,L,O,X,x,J,Y,T){var V=xEu(A).pipe(GM(function(n){return!n})),E=new ELp(A,[new nLs(A,Pkd),
new t6d(A,T)]);T=H$p(bBr,hfd);return Qnp(A,L,function(n,t){var b=ao(new nm(t.element),n.queue).pipe(usM(n),D4(n.queue)),S={loadedElement:b,shouldMeasure:b.pipe(zM(!0)),measurableCreative:b.pipe(GM(function(z){var a=a===void 0?Symbol():a;return Object.freeze({symbol:a,element:ao(new nm(z),n.queue)})})),
creativeSearchResult:ao(new nm("mue"),n.queue)},w=new nm(!1),l=new nm(!1),F=new nm(17),R=new nm(!1),y=new nm(!1),M=ao(UO,n.queue);w=E.buildGeometrySource(S,{inApp:w,useV2:!1,requestSource:ao(F,n.queue)}).geometrySource;S=V6u(n,R,l,V,y,M,S);l=Wvu(n.queue,n.timeProvider,w,S);S=l.geometrySignals;R=l.shouldResetViewabilitySignals;l=dEe(n.queue,S.timestampedExposure,S.visible,l.shouldResetExposureSignals,R);R=aWu(n.queue,n.timeProvider,R,S.measurementRequests,S.visible);y=O.pipe(fL(function(z){return z===
t.element.ref}),GM(function(){return"ur"}));
M=Tzu(n.timeProvider,x).pipe(zM("t"));y=pu_(n,mh(y,M));M=sOP(n,S.measurementRequests,y.pipe(fL(function(z){return z!==null})));
w=y.pipe(fL(function(z){return z!==null}),GM(function(){return XYp(n.global.document)===1}));
var H=SsJ(n.document);return Object.assign({},{beaconFactory:new nm(n.beaconFactory),context:new nm(n),inferredPingId:new nm("lidar2"),timeOnScreenPingId:new nm("lidartos"),binaryContext:new nm(17),binaryVersion:new nm(X),requestSource:F,contextValidationErrors:new nm(n.validate()?null:new G0),contextVisibilityKnown:new nm(H),payloadMapper:new nm(jnu),endOfSessionReason:y,timeOnScreenReason:y,requestMeasurementOnEndOfSession:M,hasImpressionFired:qsD,crossDomainIframeState:new nm(n.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:UO,inFetchLaterBeaconExperiment:UO,isTurtlex:UO,turtlexReportEventData:new nm(""),reportFencedFrameEvent:rz,isViewableAttributionEnabled:UO,inViewableAttributionExperiment:new nm(0),fetchBeaconFactory:rz,supportsPendingBeacon:UO,supportsFetchLater:UO,emit:new nm(MVp),beginToRenderEvent:new nm(Symbol()),activeViewUnmeasurableEvent:new nm(Symbol()),activeViewViewableEvent:new nm(Symbol()),creativeFound:qsD,immediateUrlPrefixes:new nm(t.immediateUrls),timeOnScreenUrlPrefixes:new nm(t.timeOnScreenUrls),
cpmavUrls:rz,viewableRelayUrls:rz,measurementDeferralState:new nm(2),urlSerializer:new nm(o8r),viewUrlSerializer:new nm(gLJ),isCreativeLoaded:b.pipe(LvP(n.queue)),pageVisible:V.pipe(GM(function(z){return!z})),
eosPageVisible:w,timestampedExposureHistory:S.timestampedExposure.pipe(AD(function(z,a){z.push(a);return z},[]))},S,{viewable:BT(n,R),
maxTimeOnScreen:BT(n,l.maxTimeOnScreen),timeOnScreen:BT(n,l.timeOnScreen),maxConsecutiveViewTime:BT(n,l.maxConsecutiveViewTime),consecutiveViewTime:l.consecutiveViewTime.pipe(GM(function(z){return new z0(n.timeProvider,z)})),
totalMeasurementTime:BT(n,l.totalMeasurementTime),totalUnviewedTime:BT(n,l.totalUnviewedTime),userAgentClientHints:Wy_(n),clientOrderPingCounter:new nm(new fgJ)})},WKu(A,Y),zYs(J?BX9(T,wYJ):BX9(T,pYJ),iBM))};
N9d=function(A){var L=_.f_.apply(1,arguments).filter(Boolean).join("&");if(!L)return A;var O=A.match(/[?&]adurl=/);return O?A.slice(0,O.index+1)+L+"&"+A.slice(O.index+1):A+(A.indexOf("?")<0?"?":"&")+L};
vT=function(A,L){return L?"&"+A+"="+encodeURIComponent(L):""};
r89=function(){try{var A,L;return!!((A=window)==null?0:(L=A.top)==null?0:L.location.href)&&!1}catch(O){return!0}};
_.oo=function(A){A&&typeof A.dispose=="function"&&A.dispose()};
_.Ag=function(A){for(var L=0,O=arguments.length;L<O;++L){var X=arguments[L];_.jD(X)?_.Ag.apply(null,X):_.oo(X)}};
GDO=function(){var A=KsO();A=A===void 0?"bevasrsg":A;return new Promise(function(L){var O=window===window.top?window:r89()?window:window.top,X=O[A],x;((x=X)==null?0:x.bevasrs)?L(new L$(X.bevasrs)):(X||(X={},X=(X.nqfbel=[],X),O[A]=X),X.nqfbel.push(function(J){L(new L$(J))}))})};
lJe=function(A){var L={c:A.eN,e:A.joi,mc:A.pMo,me:A.yT1};A.mx&&(L.co={c:A.mx.p3r,a:A.mx.gET,s:A.mx.vhi});return L};
c8M=function(A){var L,O,X={eN:A.c,joi:A.e,pMo:(L=A.mc)!=null?L:!1,yT1:(O=A.me)!=null?O:!1};A.co&&(X.mx={p3r:A.co.c,gET:A.co.a,vhi:A.co.s});return X};
Ckr=function(A){return function(){var L;return _.u(function(O){if(O.nextAddress==1)return O.yield(A(),2);L=O.yieldResult;return O.return({f:function(){return L.gPo()},
c:function(X){return L.r5o(X)},
m:function(X){return L.w3(c8M(X))},
mws:function(X){return L.erf(c8M(X))}})})}};
Fsp=function(A,L){var O=KsO();O=O===void 0?"bevasrsg":O;L={s:function(J){var Y;return A.snapshot(Object.assign({},J.c&&{eN:J.c},J.s&&{aUr:J.s},{u8X:(Y=J.p)!=null?Y:!0}))},
e:function(J){var Y;return void((Y=A.h4Y)==null?void 0:Y.call(A,J))},
c:function(J,Y){return A.tXq(J,Y)},
p:A.mqw,l:function(){return A.nBc()},
wpc:L?Ckr(L):void 0};var X=window===window.top?window:r89()?window:window.top,x=X[O];if(x){x.bevasrs=L;if(x.nqfbel!==void 0)for(O=_.d(x.nqfbel),X=O.next();!X.done;X=O.next())X=X.value,X(L);x.nqfbel=void 0}else x={},x=(x.bevasrs=L,x.nqfbel=void 0,x),X[O]=x};
QOr=function(A){var L=L===void 0?50:L;var O=[];_.OT(A,Rfd,6,_.Xq()).forEach(function(X){_.x8(X,2)<=L&&O.push(_.x8(X,1))});
return O};
mEu=function(A){var L=L===void 0?50:L;var O=[];_.OT(A,Rfd,6,_.Xq()).forEach(function(X){_.x8(X,2)>L&&O.push(_.x8(X,1))});
return O};
fJD=function(A){A.then(function(){},function(){})};
sT=function(A){return{fieldType:1,fieldName:A}};
Jg=function(A){return{fieldType:2,fieldName:A}};
_.Pq=function(A){return{fieldType:3,fieldName:A}};
IJD=function(){function A(){x[0]=1732584193;x[1]=4023233417;x[2]=2562383102;x[3]=271733878;x[4]=3285377520;n=E=0}
function L(t){for(var b=Y,S=0;S<64;S+=4)b[S/4]=t[S]<<24|t[S+1]<<16|t[S+2]<<8|t[S+3];for(S=16;S<80;S++)t=b[S-3]^b[S-8]^b[S-14]^b[S-16],b[S]=(t<<1|t>>>31)&4294967295;t=x[0];var w=x[1],l=x[2],F=x[3],R=x[4];for(S=0;S<80;S++){if(S<40)if(S<20){var y=F^w&(l^F);var M=1518500249}else y=w^l^F,M=1859775393;else S<60?(y=w&l|F&(w|l),M=2400959708):(y=w^l^F,M=3395469782);y=((t<<5|t>>>27)&4294967295)+y+R+M+b[S]&4294967295;R=F;F=l;l=(w<<30|w>>>2)&4294967295;w=t;t=y}x[0]=x[0]+t&4294967295;x[1]=x[1]+w&4294967295;x[2]=
x[2]+l&4294967295;x[3]=x[3]+F&4294967295;x[4]=x[4]+R&4294967295}
function O(t,b){if(typeof t==="string"){t=unescape(encodeURIComponent(t));for(var S=[],w=0,l=t.length;w<l;++w)S.push(t.charCodeAt(w));t=S}b||(b=t.length);S=0;if(E==0)for(;S+64<b;)L(t.slice(S,S+64)),S+=64,n+=64;for(;S<b;)if(J[E++]=t[S++],n++,E==64)for(E=0,L(J);S+64<b;)L(t.slice(S,S+64)),S+=64,n+=64}
function X(){var t=[],b=n*8;E<56?O(T,56-E):O(T,64-(E-56));for(var S=63;S>=56;S--)J[S]=b&255,b>>>=8;L(J);for(S=b=0;S<5;S++)for(var w=24;w>=0;w-=8)t[b++]=x[S]>>w&255;return t}
for(var x=[],J=[],Y=[],T=[128],V=1;V<64;++V)T[V]=0;var E,n;A();return{reset:A,update:O,digest:X,digestString:function(){for(var t=X(),b="",S=0;S<t.length;S++)b+="0123456789ABCDEF".charAt(Math.floor(t[S]/16))+"0123456789ABCDEF".charAt(t[S]%16);return b}}};
zfs=function(A,L){L=L===void 0?y8u:L;if(!ZB_){var O;A=(O=A.navigator)==null?void 0:O.userAgentData;if(!A||typeof A.getHighEntropyValues!=="function"||A.brands&&typeof A.brands.map!=="function")return Promise.reject(Error("ua"));jOs((A.brands||[]).map(function(x){var J=new WsM;J=_.gz(J,1,x.brand);return _.gz(J,2,x.version)}));
typeof A.mobile==="boolean"&&_.dX(HBu,2,A.mobile);ZB_=A.getHighEntropyValues(L)}var X=new Set(L);return ZB_.then(function(x){var J=HBu.clone();X.has("platform")&&_.gz(J,3,x.platform);X.has("platformVersion")&&_.gz(J,4,x.platformVersion);X.has("architecture")&&_.gz(J,5,x.architecture);X.has("model")&&_.gz(J,6,x.model);X.has("uaFullVersion")&&_.gz(J,7,x.uaFullVersion);return J.serialize()}).catch(function(){return HBu.serialize()})};
Y8=function(A,L,O,X){this.initialValue_=A;this.maxValue_=L;this.currBaseValue_=this.currValue_=A;this.randomFactor_=O||0;this.backoffFactor_=X||2};
us=function(A){this.src=A;this.listeners={};this.typeCount_=0};
aJu=function(){for(var A;A=B9O.remove();){try{A.fn.call(A.scope)}catch(L){Xp(L)}M6D.put(A)}$E9=!1};
_.kDy=function(A){switch(A){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}};
UEu=function(A){switch(A){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""}};
_.vLM=function(){};
PKe=function(A,L,O,X,x){A=oLd(AjP(L7s(new _.TX(1828,"0"),A),new Oey));L.length&&XOO(A,xOs(new sZr,L));X!==void 0&&(A.destinationUrl=X);x&&A.disableWithCredentials();var J=new Jje(1828,"","",!1,"",A.build());_.VI(J,A);var Y=new Dg({flush:function(T){try{J.flush(T)}catch(V){O(V)}}});
Y.addOnDisposeCallback(function(){setTimeout(function(){try{Y.snapshotAndFlush()}finally{J.dispose()}})});
Y.invocationLimit=1E5;Y.flushInterval=3E4;Y.JSC$10807_flushTimer.setInterval(3E4);return Y};
eV=function(){var A,L,O;return(O=(A=globalThis.performance)==null?void 0:(L=A.now)==null?void 0:L.call(A))!=null?O:Date.now()};
TNd=function(A,L){if(A.disable)return new dO_;var O=L?QOr(L):[],X=A.kn,x=A.eWN,J=A.iVP,Y=A.destinationUrl,T=A.txY;A=A.qIa;L=L==null?void 0:_.ET(L,Ytu,11);var V=V===void 0?50:V;L=(L==null?void 0:_.x8(L,1))||0;X={kn:X,vpY:x,xtV:J,destinationUrl:Y,txY:T,qIa:A,disableClearcutCredentialBinding:L>0&&V>=L};O=O===void 0?[]:O;return new u59(X,O)};
VhD=function(A){if(!A)return null;A=_.n$(A,2);return A===null||A===void 0?null:jg(A)};
_.DOy=function(A){if(!A)return null;A=_.n$(A,4);return A===null||A===void 0?null:_.gw(A)};
n$P=function(A,L){return L?ens(L):A?E$P(A):Promise.resolve()};
ens=function(A){return new Promise(function(L,O){var X=_.tg("SCRIPT"),x=_.DOy(A);_.UB(X,x);X.onload=function(){_.hg(X);L()};
X.onerror=function(){_.hg(X);O(Error("Fa"))};
(SV("HEAD")[0]||document.documentElement).appendChild(X)})};
E$P=function(A){return new Promise(function(L){var O=_.tg("SCRIPT");if(A){var X=_.n$(A,6);X=X===null||X===void 0?null:_.$W(X)}else X=null;_.kW(O,X);(SV("HEAD")[0]||document.documentElement).appendChild(O);_.hg(O);L()})};
qY=function(A,L,O){var X,x=new Promise(function(J){X=setTimeout(J,L)});
return Promise.race([A.finally(function(){return void clearTimeout(X)}),
x.then(O)])};
thP=function(A,L){try{return globalThis.sessionStorage.setItem(A,L),!0}catch(O){return!1}};
beu=function(A,L,O,X){L=L===void 0?0:L;O=O===void 0?A.length:O;var x=0;for(X&&(x=beu(X));L<O;L++)X=typeof A==="string"?A.charCodeAt(L):A[L],x=hnD(31,x)+X|0;return x};
StP=function(A,L){return[beu(A,0,A.length>>1,L),beu(A,A.length>>1)]};
qtO=function(A){var L=_.d(StP(A,gX));A=L.next().value;L=L.next().value;return A.toString(16)+L.toString(16)};
g$M=function(A,L){var O=StP(L);A=new Uint32Array(A.buffer);L=A[0];var X=_.d(O);O=X.next().value;X=X.next().value;for(var x=1;x<A.length;x+=2){for(var J=L,Y=x,T=O,V=X,E=0;E<22;E++)Y=Y>>>8|Y<<24,Y+=J|0,Y^=T+38293,J=J<<3|J>>>29,J^=Y,V=V>>>8|V<<24,V+=T|0,V^=E+38293,T=T<<3|T>>>29,T^=V;J=[J,Y];A[x]^=J[0];x+1<A.length&&(A[x+1]^=J[1])}};
wOJ=function(A,L,O,X,x){var J=(4-(gX.length+O.length)%4)%4,Y=new Uint8Array(4+J+gX.length+4+O.length),T=new DataView(Y.buffer),V=0;T.setUint32(V,Math.random()*4294967295);V=V+4+J;Y.set(gX,V);V+=gX.length;T.setUint32(V,x);Y.set(O,V+4);g$M(Y,X);return A.insert(L,function(E){return void globalThis.sessionStorage.removeItem(E)})?thP(L,_.NQ(Y))?"s":"t":"i"};
pOy=function(A,L){var O=globalThis.sessionStorage.getItem(A);if(!O)return["m"];try{var X=_.ke(O);g$M(X,L)}catch(x){return globalThis.sessionStorage.removeItem(A),["c"]}for(L=4;L<7&&X[L]===0;)L++;for(O=0;O<gX.length;O++)if(X[L++]!==gX[O])return globalThis.sessionStorage.removeItem(A),["d"];O=(new DataView(X.buffer)).getUint32(L);return Math.floor(Date.now()/1E3)>=O?(globalThis.sessionStorage.removeItem(A),["e"]):["a",new Uint8Array(X.buffer,L+4)]};
W7D=function(A){return globalThis.TextEncoder?(new TextEncoder).encode(A):_.wX(A)};
HeD=function(A){var L=A,O;return function(){if(L){var X=L;L=void 0;O=X.apply(this,arguments)}return O}};
BNO=function(A){return FL(function(L){if(L instanceof A)return!0;var O,X,x=L==null?void 0:(O=L.ownerDocument)==null?void 0:(X=O.defaultView)==null?void 0:X[A.name];return zn9(x)&&L instanceof x})};
_.NY=function(A,L,O){_.p$.call(this);this.JSC$11022_listener_=A;this.JSC$11022_interval_=L||0;this.handler_=O;this.callback_=(0,_.is)(this.JSC$11024_doAction_,this)};
_.rX=function(A){A=Mhd(A);return _.gw(A)};
Mhd=function(A){return A===null?"null":A===void 0?"undefined":A};
aKD=function(A){if(A&&A.focus)if(A!==document.activeElement)A.focus();else return $OJ(function(){return _.u(function(L){document.activeElement&&document.activeElement.blur();return L.return($OJ(function(){A.focus()}))})})};
_.kAu=function(A){var L=L===void 0?5:L;setTimeout(function(){var O;return _.u(function(X){X.nextAddress==1&&(O=document.activeElement);if(X.nextAddress!=5)return(document.activeElement===O||document.activeElement===document.body)&&L>=0&&A?X.yield(aKD(A),5):X.jumpTo(0);if(document.activeElement===A)return X.return();A=A.parentElement;--L;return X.jumpTo(2)})},15)};
$OJ=function(A){return new Promise(function(L){requestAnimationFrame(function(){L(A())})})};
v$p=function(A){if(_.K$)A(_.K$);else{var L;((L=UOs)!=null?L:UOs=[]).push(A)}};
ls=function(){!_.K$&&_.GX&&_.o$D(_.GX());return _.K$};
_.o$D=function(A){_.K$=A;var L;(L=UOs)==null||L.forEach(v$p);UOs=void 0};
_.cq=function(A){_.K$&&_.K$.beforeLoadModuleCode(A)};
_.C$=function(){_.K$&&_.K$.JSC$12009_setLoaded()};
Fq=function(A){return Kls(A)?Number(A):String(A)};
A4r=function(A){this.action=A;this.wfv=!1};
Lgu=function(A,L){A4r.call(this,"set-drive-options");this.appId=A;this.appOrigin=L};
OHu=function(A){A4r.call(this,"visibility");this.visible=A};
X1y=function(A,L,O){Rn.call(this,A,L,O)};
x6u=function(A){QI.call(this,A)};
sNJ=function(A){A=A&&A.getWindow()||window;return A.gadgets&&A.gadgets.rpc};
P8u=function(A,L){var O=L&&L.getWindow()||window;if(sNJ(L))A();else if(J4u)J4u.push(A);else var X=J4u=[A],x=O.setInterval(function(){if(sNJ(L)){O.clearInterval(x);for(var J=0;J<X.length;J++)X[J]();J4u=null}},100)};
Y$d=function(A,L){var O=new mK(A);_.VI(L,O);var X={passive:!1};L.listen(O,"mousewheel",function(x){return void d6u(A,x)},X).listen(A,"scroll",function(x){return void d6u(A,x)},X)};
d6u=function(A,L){var O;a:{for(O=L.target;O;){if(O.nodeType==1){var X=_.f$(O,"overflowY");if(X=="auto"||X=="scroll")break a}O=O.parentNode}O=null}if(!O||!_.In(A,O)||O.scrollHeight==O.clientHeight||L.deltaY>0&&Math.abs(O.scrollTop-(O.scrollHeight-O.clientHeight))<=1||L.deltaY<0&&O.scrollTop==0)L.preventDefault(),L.stopPropagation()};
Bq=function(A,L,O,X,x,J,Y,T,V){T=T===void 0?!1:T;V=V===void 0?!1:V;Rn.call(this,void 0,void 0,void 0);Rn.call(this,J?J+" picker modal-dialog":"picker modal-dialog",!0,O);_.yI(A,"protocol");this.iframeManager_=new uWu;this.targetId_=Zg();this.rpcToken_=Zg();A=_.jV(A);_.Wq(A,"hostId");O=_.Wq(A,"parent");this.useGapi_=!V&&!0||(O==null?void 0:O.includes("onepick.corp.google.com"));T&&_.Hq(A,"fv2","true");this.setUrl(A.toString());this.preferredDialogWidth_=X;this.preferredDialogHeight_=x;X!==void 0||
x!==void 0?X=!0:(X=_.Wq(_.jV(A.toString()),"hostId"),TR9||(TR9=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),X=!TR9.has(X));this.autoSizeDialog_=X;this.JSC$11212_gadgetsDomHelper_=Y||this.JSC$11163_dom_;L&&(Y=this.JSC$11212_gadgetsDomHelper_,L=_.Wq(_.jV(this.JSC$11214_url_),"grugl")=="true"?VYr:D6r,sNJ(Y)||(Y=Y||qF(document),X=Y.createElement("SCRIPT"),_.UB(X,L),X.type="text/javascript",Y.JSC$10345_document_.body.appendChild(X)));
A=A.toString();L=null;Y=A.indexOf("/picker?");Y>-1?L=A.substring(0,Y+8-1):PJ(A,"/picker")&&(L=A);L&&this.setRelayUrl(L+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(A=this.buttons_,A.JSC$11197_element_=this.buttonEl_,A.render()):_.vf(this.buttonEl_,eZ9),_.zX(this.buttonEl_,!!this.buttons_))};
_.bHs=function(A){var L=L===void 0?Eoy:L;var O=_.$e(A),X=function(J){J=_.d(J);J.next();J=MY(J);return L(O,J)},x=function(J){var Y=_.d(J);
J=Y.next().value;Y=MY(Y);return A.apply(J,Y)};
return function(){var J=_.f_.apply(0,arguments),Y=this||_.Ou,T=nou.get(Y);T||(T={},nou.set(Y,T));return tYs(T,[this].concat(_.le(J)),x,X)}};
$8=function(A){var L={};A=A.replace(/\r/g,"").split("\n");for(var O=0;O<A.length;O++){var X=A[O],x=X.indexOf(":");x<0||(L[X.substring(0,x)]=X.substring(x+2,X.length))}return L};
an=function(A,L,O){O=O===void 0?function(){}:O;
return A?L():O()};
_.S$p=function(A){var L;return((L=hZu.documentOverride)!=null?L:A).__wizdispatcher};
_.UT=function(A){var L=k8;k8=A;return L};
_.gop=function(A){return A===q$e||(A==null?void 0:A.name)==="\u0275NotFound"};
_.vq=function(A,L){var O;if((O=A)==null?0:O.isDisposed)throw Error("jb`"+String(A.debugName));for(;A!==void 0;){O=A;if(O.retrieve)return O.retrieve(L,{optional:!0});A=A.parent}return q$e};
on=function(A){return{"\u0275prov":{providedIn:"root",token:Symbol(A),factory:void 0,value:void 0}}};
_.w1M=function(A){var L=k8;if(!L){switch(A===void 0?3:A){case 0:A=Error("ib");break;case 1:A=Error("kb");break;case 2:A=Error("lb");break;default:A=Error("mb")}throw A;}return L};
p1y=function(A){var L=_.UT(A);A={};return A[Symbol.dispose]=function(){_.UT(L)},A};
iHs=function(A,L){A.disposables||(A.disposables=[]);A.disposables.push(L)};
A0=function(A){var L=k8;L&&!L.isDisposed&&(iHs(L,A),A.parent=L)};
r4e=function(A){if(A.disposables){for(var L=_.d(A.disposables),O=L.next();!O.done;O=L.next())O=O.value,typeof O==="function"?O():NRe(O);A.disposables.length=0}};
NRe=function(A){if(!A.isDisposed){A.isDisposed=!0;var L;(L=A[Symbol.dispose])==null||L.call(A);delete A.parent;r4e(A)}};
m6u=function(A){var L={retrieve:function(O){switch(O.\u0275prov.token){case Kgr.\u0275prov.token:var X=A.asyncDeps;break;case _.GYe.\u0275prov.token:X=A.rootElement;break;case lcu.\u0275prov.token:X=A.modelRootElement;break;case c4D.\u0275prov.token:X=A.appContext;break;case C8O.\u0275prov.token:X=A.rendererData;break;case FgO.\u0275prov.token:X=A.injectingConstructor;break;case RZp.\u0275prov.token:X=A.dispatcher}if(X)O=X;else a:{for(X=L.parent;X;){var x=X;if(x.retrieve){O=x.retrieve(O);break a}X=
X.parent}X=O.\u0275prov.token;x=QNd[X];x!==void 0?O=x:(x=O.\u0275prov.providedIn,O.\u0275prov.factory?(O=O.\u0275prov.factory(),X&&x==="root"&&(QNd[X]=O)):O=q$e)}return O}};
A0(L);return L};
fc9=function(){var A=_.w1M(1),L=_.vq(A,c4D);_.gop(L)&&(A=_.vq(A,RZp),_.gop(A)||A.getOptionalAppContext())};
Ics=function(A){if(typeof document!=="undefined"&&document&&document.getElementById&&(A=document.getElementById(A))){var L=A.tagName.toUpperCase();if(L=="SCRIPT"||L=="LINK")return A}return null};
ZHO=function(A,L){if((A=A===void 0?"":A)&&L)throw Error("sb");var O="";var X=_.Ou._F_jsUrl;(A=L||Ics(A))&&(O=A.src?A.src:A.getAttribute("href"));if(X&&O){if(X!=O)throw Error("tb`"+X+"`"+O);O=X}else O=X||O;if(!y4e(O))throw Error("ub");return O};
zZ_=function(){if(!jN_){jN_=!0;try{var A=ZHO(_.Ou._F_jsUrl?"":"base-js")}catch(X){return}var L=Wge(HHO(A)),O=Object.keys(L);O.length!==0&&v$p(function(X){for(var x=_.d(O),J=x.next();!J.done;J=x.next()){J=J.value;for(var Y=_.d(Object.keys(L[J])),T=Y.next();!T.done;T=Y.next())X.addExtraEdge(J,T.value)}})}};
MYP=function(){var A=Object.assign({},BRy);Object.getOwnPropertyNames(BRy).forEach(function(L){Lr[L]!==void 0&&(A[L]=Lr[L])});
return A};
$6p=function(A,L){if(Lr.enablePerformanceTiming){var O,X;(X=(O=performance).mark)==null||X.call(O,A+"Start__"+L)}};
acd=function(A,L){if(Lr.enablePerformanceTiming){var O,X;(X=(O=performance).measure)==null||X.call(O,A+"__"+L,A+"Start__"+L)}};
kY_=function(A,L,O){var X;return A&&L?A+"__"+L:(X=A!=null?A:L)!=null?X:O};
vo_=function(A,L){var O=Object.create(U6d);O.debugName=L;!k8||A0(O);L=_.UT(O);try{A(O)}finally{_.UT(L)}return function(){return void NRe(O)}};
AyJ=function(A){return O4(A)&&oor in A};
Lxy=function(A,L){return Object.is(A,L)};
xN=function(A){var L=Xx;Xx=A;return L};
XhM=function(A){if(s4)throw Error("Z");if(Xx!==null){var L=Xx.producersTail;if(L===void 0||L.producer!==A){var O=void 0,X=Xx.recomputing;if(X&&(O=L!==void 0?L.nextProducer:Xx.producers,O!==void 0&&O.producer===A)){Xx.producersTail=O;O.lastReadVersion=A.version;return}var x=A.consumersTail,J;if(!(J=x===void 0||x.consumer!==Xx)){if(X){a:{J=Xx;X=J.producersTail;if(X!==void 0){J=J.producers;do{if(J===x){X=!0;break a}if(J===X)break;J=J.nextProducer}while(J!==void 0)}X=!1}X=!X}J=X}J&&(X=J0(Xx),O={producer:A,
consumer:Xx,nextProducer:O,prevConsumer:x,lastReadVersion:A.version,nextConsumer:void 0},Xx.producersTail=O,L!==void 0?L.nextProducer=O:Xx.producers=O,X&&O7e(A,O))}}};
Jyy=function(A){if(!J0(A)||A.dirty)if(A.dirty||A.lastCleanEpoch!==xdp)(A.producerMustRecompute(A)||sve(A))&&A.producerRecomputeValue(A),A.dirty=!1,A.lastCleanEpoch=xdp};
Pgr=function(A){if(A.consumers!==void 0){var L=s4;s4=!0;try{for(var O=A.consumers;O!==void 0;O=O.nextConsumer){var X=O.consumer;X.dirty||(A=void 0,X.dirty=!0,Pgr(X),(A=X.consumerMarkedDirty)==null||A.call(X,X))}}finally{s4=L}}};
ddM=function(){var A;return((A=Xx)==null?void 0:A.consumerAllowSignalWrites)!==!1};
YNJ=function(A){A&&(A.producersTail=void 0,A.recomputing=!0);return xN(A)};
TTu=function(A,L){xN(L);if(A){A.recomputing=!1;L=A.producersTail;var O=L!==void 0?L.nextProducer:A.producers;if(O!==void 0){if(J0(A)){do O=uJu(O);while(O!==void 0)}L!==void 0?L.nextProducer=void 0:A.producers=void 0}}};
sve=function(A){for(A=A.producers;A!==void 0;A=A.nextProducer){var L=A.producer,O=A.lastReadVersion;if(O!==L.version)return!0;Jyy(L);if(O!==L.version)return!0}return!1};
O7e=function(A,L){var O=A.consumersTail,X=J0(A);O!==void 0?(L.nextConsumer=O.nextConsumer,O.nextConsumer=L):(L.nextConsumer=void 0,A.consumers=L);L.prevConsumer=O;A.consumersTail=L;if(!X)for(A=A.producers;A!==void 0;A=A.nextProducer)O7e(A.producer,A)};
uJu=function(A){var L=A.producer,O=A.nextProducer,X=A.nextConsumer,x=A.prevConsumer;A.nextConsumer=void 0;A.prevConsumer=void 0;X!==void 0?X.prevConsumer=x:L.consumersTail=x;if(x!==void 0)x.nextConsumer=X;else if(L.consumers=X,!J0(L))for(A=L.producers;A!==void 0;)A=uJu(A);return O};
J0=function(A){return A.consumerIsAlwaysLive||A.consumers!==void 0};
DdM=function(A){var L=Object.create(VJy);L.computation=A;A=function(){Jyy(L);XhM(L);if(L.value===Pu)throw L.error;return L.value};
A[dF]=L;return A};
tJM=function(A,L){var O=Object.create(ege);O.value=A;L!==void 0&&(O.equal=L);A=function(){XhM(O);return O.value};
A[dF]=O;return[A,function(X){return EwO(O,X)},
function(X){ddM()||nwu(O);EwO(O,X(O.value))}]};
EwO=function(A,L){ddM()||nwu(A);if(!A.equal(A.value,L)){A.value=L;A.version++;xdp++;Pgr(A);var O;(O=b7y)==null||O(A)}};
YN=function(A){var L=xN(null);try{return A()}finally{xN(L)}};
_.uQ=function(A,L,O){O=O===void 0?"":O;A=tJM(A,L==null?void 0:L.equals);var X=A[0],x=X[dF];x.debugName=kY_(L==null?void 0:L.debugName,O,"[signal]");if(!Lr.enablePerformanceTiming)return A;var J=A[1],Y=A[2];return[X,function(T){hgM(function(){return void J(T)},x)},
function(T){hgM(function(){return void Y(T)},x)}]};
hgM=function(A,L){$6p("signalSet",L.debugName);try{A()}finally{acd("signalSet",L.debugName)}};
qNJ=function(A,L){var O=_.d(_.uQ(A,void 0,"cPpJzc"));A=O.next().value;O=O.next().value;A[SNr]=O;A[TV]=L;return A};
gwD=function(A){return!!A&&typeof A==="object"&&Object.getPrototypeOf(A)===Object.prototype};
whD=function(A){return typeof A==="function"&&SNr in A&&typeof A[SNr]==="function"};
ph9=function(A,L){Object.defineProperty(A,TV,{get:function(){return L}})};
DW=function(A,L){if(VO(A)){var O=A.map(function(J){return DW(J,L)});
ph9(O,L);return O}if(gwD(A)){O={};A=_.d(Object.entries(A));for(var X=A.next();!X.done;X=A.next()){var x=_.d(X.value);X=x.next().value;x=x.next().value;O[X]=DW(x,L)}ph9(O,L);return O}return qNJ(A,L)};
i7d=function(A){if(VO(A))return A.map(function(x){return i7d(x)});
if(gwD(A)){var L={};A=_.d(Object.entries(A));for(var O=A.next();!O.done;O=A.next()){var X=_.d(O.value);O=X.next().value;X=X.next().value;L[O]=i7d(X)}return L}return whD(A)?A():A};
ryd=function(){var A={height:0,width:0};if(!gwD(A))throw Error("Gb");var L=Symbol("Hb");return[DW(A,L),function(O,X){if(O[TV]===L)if(typeof X==="function"){var x=[].concat(_.le(i7d(O)));X=X(x)||x;NT9(O,[].concat(_.le(X)))}else NT9(O,X);else throw Error("Ib");}]};
NT9=function(A,L){if(whD(A))A[SNr](L);else if(VO(A)&&VO(L))L=DW(L,A[TV]),A.length=0,A.push.apply(A,_.le(L));else if((gwD(A)||VO(A))&&(VO(L)||typeof L==="object"&&L!==null)){L=_.d(Object.entries(L));for(var O=L.next();!O.done;O=L.next()){var X=_.d(O.value);O=X.next().value;X=X.next().value;var x=A,J=x[O];Object.hasOwn(A,O)?NT9(J,X):x[O]=DW(X,A[TV])}}else throw Error("Jb");};
KxD=function(A){return Object.create(Object.assign({},eI,A))};
lzO=function(){var A;return(A=GuJ)!=null?A:GuJ=KxD({consumerAllowSignalWrites:!0})};
_.E4=function(A,L,O){O=O===void 0?"":O;A=DdM(A);var X=A[dF];X.debugName=kY_(L==null?void 0:L.debugName,O,"[computed]");(L==null?void 0:L.equals)!=null&&(X.equal=L.equals);return A};
nr=function(A){var L=xN(cyJ);try{A()}finally{xN(L)}};
fzd=function(A){if(!A.isDisposed)switch(A.effectType){case t0:Cg9.schedule(A);break;case Fxe:RgD.schedule(A);break;case Qvs:mdu.schedule(A);break;default:_.ZN(A.effectType)}};
yyr=function(A){IzO.push(A);return function(){var L=IzO.indexOf(A);L!==-1&&IzO.splice(L,1)}};
jvP=function(){if(bQ>0)Lr.flushRenderEffectsDuringRender&&Cg9.flush();else for(var A=_.d(Z7D),L=A.next();!L.done;L=A.next())L.value.flush()};
H7_=function(A){h0=!0;try{for(var L=_.d(A),O=L.next();!O.done;O=L.next()){for(var X=O.value,x=[X],J=X;J.parent!==void 0;)J=J.parent,Wxp(J)&&A.has(J)&&x.push(J);for(;x.length>0;){var Y=x.pop();A.delete(Y);Y.run()}}}finally{h0=!1}};
SI=function(A){bQ--;if(A){A=_.d(Z7D);for(var L=A.next();!L.done;L=A.next())L.value.clear()}else bQ>0||h0&&!Lr.flushRenderEffectsDuringRender||jvP()};
BT9=function(A,L,O){var X=zge(A);qD={name:O?X+" ("+O+")":X,isReactive:A.componentType!==gF,parent:qD};A=L();qD=qD.parent;return A};
wF=function(){var A=qD;return A?A.isReactive:!1};
iQ=function(A,L,O){var X=qD;L&&(qD=L);try{return O==null?A():A.call(O)}catch(J){A=J;pr(A,qD);if(A!==MJy){$de=qD;L=[];for(O=k8;O;){var x=void 0;L.push((x=O.debugName)!=null?x:"[context]");x=void 0;O=(x=O.parent)!=null?x:null}azd=L.reverse()}MJy=A;throw A;}finally{qD=X}};
pr=function(A,L){try{var O=kur(L);if(O&&!A.componentStack&&(A.componentStack=O,Lr.enableComponentStacksInErrorMessages)){var X=A.message+"\n\nComponent stack: "+O;A.stack&&(A.stack=A.stack.replace(A.message,X));A.message=X}}catch(x){}};
kur=function(A){if(O4(A)&&A.name!==void 0&&A.isReactive!==void 0&&A.parent!==void 0||A===null){for(var L=0,O="";L<20&&A;)O+=A.name+" > ",A=A.parent,L++;A=O.slice(0,-3)}else if(Lr.enableContextBasedComponentStacks){a:{for(A=A===void 0?k8:A;A;){if(AyJ(A))break a;L=void 0;A=(L=A.parent)!=null?L:null}A=null}A=A.getComponentStack().slice(0,20).join(" > ")}else A="";return A};
zge=function(A){return A.debugName||A.name||"[component]"};
Udd=function(A,L,O){L=Object.create(L);A&&(L.effectFn=A);O&&(L.debugName=O);A0(L);L.componentStack=qD;return L};
_.ND=function(A,L){A=Udd(A,vwP,L);fzd(A)};
_.rF=function(A){var L=k8;if(L){var O=qD;iHs(L,function(){var X=xN(lzO());try{iQ(function(){return void A()},O)}catch(x){throw Lr.enableContextBasedComponentStacks&&pr(x),x;
}finally{xN(X)}})}};
Kr=function(A,L){var O={};(L===void 0||L)&&A0(O);L=_.UT(O);try{A(O)}finally{_.UT(L)}return function(){return void NRe(O)}};
_.GV=function(A){return typeof A==="function"?A():(A==null?0:A[ow_])?A.get():A};
_.lQ=function(A,L){A=Udd(A,AlJ,L);fzd(A)};
L2P=function(A){if(k8)throw Error("nb");Kr(A,!1)};
cu=function(A,L){A=_.UT(A);try{return YN(L)}finally{_.UT(A)}};
Cr=function(A,L){var O=kur($de),X,x;var J=(x=(X=azd)==null?void 0:X.slice())!=null?x:[];L={componentStack:O,contextTrace:J,errorSeverity:3,featureFlags:MYP(),tagName:L};return[A,L]};
x79=function(A,L,O){if(Object.hasOwnProperty.call(Ode,A)&&(A=Ode[A],Object.hasOwnProperty.call(A,L)&&(A=A[L],A instanceof Array))){for(var X=null,x=!1,J=0,Y=A.length;J<Y;++J){var T=A[J],V=T.contingentAttribute;if(!V)return T.contract;X===null&&(X={});V=Object.hasOwnProperty.call(X,V)?X[V]:X[V]=O(V);if(V===T.requiredValue)return T.contract;V==null&&(x=!0)}if(x)return null}L=X2u[L];return typeof L==="number"?L:null};
PO9=function(A,L,O){var X=null;(A=sUM[A])&&(X=A[L]);return typeof X!=="number"&&((A=sUM["*"])&&(X=A[L]),typeof X!=="number")?!1:!0===Jld[X][String(O).toLowerCase()]};
YjJ=function(A,L){L=x79(A.toLowerCase(),L,function(){var X;(X=Lr.handleError)==null||X.call.apply(X,[Lr].concat(_.le(Cr(Error("Ob"),A.toLowerCase()))))});
if(L===null)return null;var O;return(O=d7r[L])!=null?O:null};
uhp=function(A,L,O){if(O===null||O===void 0)return O;L=L.toLowerCase();A=YjJ(A,L);return A===null?O:A(L,O)};
TVp=function(){};
Fx=function(A,L){for(;A.length>L;)A.pop()};
Vv9=function(A){A=Array(A);Fx(A,0);return A};
QO=function(A,L,O){if(O==null)A.removeAttribute(L);else{var X;(X=L.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":L.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?A.setAttributeNS(X,L,O):A.setAttribute(L,O)}};
D7y=function(A,L,O){A[L]=O};
Eds=function(A,L,O){A=A.style;if(typeof O==="string")A.cssText=O;else{A.cssText="";for(var X in O)if(eLp.call(O,X)){L=A;var x=X,J=O[X];x.indexOf("-")>=0?L.setProperty(x,J):L[x]=J}}};
ndP=function(A,L,O){var X=typeof O;X==="object"||X==="function"?A[L]=O:QO(A,L,O)};
tvs=function(){var A=new TVp;A[mv.default]=ndP;A.style=Eds;return A};
bd_=function(A,L,O,X){(X[L]||X[mv.default])(A,L,O)};
SjD=function(A,L,O){L=new hLJ(L,O);return A.__incrementalDOMData=L};
fr=function(A,L){if(A.__incrementalDOMData)return A.__incrementalDOMData;var O=A.nodeType===1?A.localName:A.nodeName,X=A.nodeType===1?A.getAttribute("key"):null;L=SjD(A,O,A.nodeType===1?X||L:null);if(A.nodeType===1&&(A=A.attributes,O=A.length)){X=L._attrsArr||(L._attrsArr=Vv9(O*2));for(var x=0,J=0;x<O;x+=1,J+=2){var Y=A[x],T=Y.value;X[J]=Y.name;X[J+1]=T}}return L};
qjp=function(A,L,O,X,x){return L==O&&X==x};
gd9=function(A){for(var L=Ie,O=jI();O!==A;){var X=O.nextSibling;L.removeChild(O);Wu.deleted.push(O);O=X}};
jI=function(){return Hu?Hu.nextSibling:Ie.firstChild};
zV=function(){Hu=jI()};
id9=function(A,L,O){zV();var X;a:{if(X=Hu){do{var x=X,J=A,Y=L,T=fr(x,Y);if(w2e(x,J,T.nameOrCtor,Y,T.key))break a}while(L&&(X=X.nextSibling))}X=null}X||(A==="#text"?(O=Bu.createTextNode(""),SjD(O,"#text",null),A=O):(X=Bu,x=Ie,typeof A==="function"?X=new A:X=(x=A==="svg"?"http://www.w3.org/2000/svg":A==="math"?"http://www.w3.org/1998/Math/MathML":x==null||fr(x).nameOrCtor==="foreignObject"?null:x.namespaceURI)?X.createElementNS(x,A):X.createElement(A),SjD(X,A,L),A=X,O&&A.setAttribute("nonce",O)),Wu.created.push(A),
X=A);O=X;if(O!==Hu){if(p2_.indexOf(O)>=0)for(A=Ie,L=O.nextSibling,X=Hu;X!==null&&X!==O;)x=X.nextSibling,A.insertBefore(X,L),X=x;else Ie.insertBefore(O,Hu);Hu=O}};
NVe=function(A,L,O){id9(A,L,O);Ie=Hu;Hu=null;return Ie};
rle=function(){gd9(null);Hu=Ie;Ie=Ie.parentNode};
MD=function(){Hu=Ie.lastChild};
lZs=function(A,L){L=L===void 0?{}:L;var O=L.matches===void 0?qjp:L.matches;return function(X,x,J){var Y=Wu,T=Bu,V=p2_,E=$N,n=ae,t=Hu,b=Ie,S=w2e;Bu=X.ownerDocument;Wu=new K2D(X);w2e=O;$N=[];ae=[];Hu=null;var w=Ie=X.parentNode,l,F=Gky.call(X);if((l=F.nodeType===11||F.nodeType===9?F.activeElement:null)&&X.contains(l)){for(F=[];l!==w;)F.push(l),l=l.parentNode||(w?l.host:null);w=F}else w=[];p2_=w;try{return A(X,x,J)}finally{X=Wu,kN&&X.deleted.length>0&&kN(X.deleted),Bu=T,Wu=Y,w2e=S,$N=E,ae=n,Hu=t,Ie=b,
p2_=V}}};
cl_=function(A,L,O,X){U4.push(bd_);U4.push(A);U4.push(L);U4.push(O);U4.push(X)};
F2J=function(A,L,O){var X=ae;L=L._attrsArr||(L._attrsArr=Vv9(X.length));for(var x=!L.length||!1,J=0;J<X.length;J+=2){var Y=X[J];if(x)L[J]=Y;else if(L[J]!==Y)break;var T=X[J+1];if(x||L[J+1]!==T)L[J+1]=T,cl_(A,Y,T,O)}if(J<X.length||J<L.length){for(J=x=J;J<L.length;J+=2)vu[L[J]]=L[J+1];for(J=x;J<X.length;J+=2)x=X[J],Y=X[J+1],vu[x]!==Y&&cl_(A,x,Y,O),L[J]=x,L[J+1]=Y,delete vu[x];Fx(L,X.length);for(var V in vu)cl_(A,V,void 0,O),delete vu[V]}A=CO_;CO_=O=U4.length;for(V=A;V<O;V+=5)(0,U4[V])(U4[V+1],U4[V+
2],U4[V+3],U4[V+4]);CO_=A;Fx(U4,A);Fx(X,0)};
oe=function(A){id9("#text",null);var L=Hu;var O=fr(L);if(O.text!==A){O=O.text=A;for(var X=1;X<arguments.length;X+=1)O=(0,arguments[X])(O);L.data!==O&&(L.data=O)}};
Zdu=function(A,L,O){if(O===!1&&RL9.has(L))QO(A,L,null);else if(L!=="idomKey"&&L!=="skip"&&L!=="skipchildren"&&L!=="children"&&L!=="el")if(L.startsWith("on")){if(L[2]!==":")throw Error("Nb`"+L);if(O===void 0||O===null){var X;(X=Lr.handleError)==null||X.call.apply(X,[Lr].concat(_.le(Cr(Error("Sb`"+L),A.tagName))));A[L]=void 0}else{var x=L.slice(3);X=wF();if(x==="jsaction"){O=Array.isArray(O)?O:[O];O=_.d(O);for(var J=O.next();!J.done;J=O.next()){J=J.value;if(typeof J!=="object"||J===null||typeof J.selfReg!==
"function")throw Error("Vb`"+L);J.selfReg(0,A,X?_.rF:function(){})}}else{if(typeof O!=="object"||O===null)throw Error("Tb`"+L+"`"+typeof O);
if(typeof O.getFn!=="function")throw Error("Ub`"+L+"`"+Object.keys(O));if(O.selfReg)O.selfReg(0,A,x,X?_.rF:function(){});
else if(X&&A["on"+x]===void 0){var Y=O.getFn(0);A.addEventListener(x,Y);_.rF(function(){return void A.removeEventListener(x,Y)})}else if(X||!QUJ.includes(x))A["on"+x]=O.getFn(0)}}}else{if(L.startsWith("data-")&&typeof O==="string")try{O=m7d(O)}catch(T){O="zSoyz"}typeof O!=="function"||A._disposeEffects!=null?((X=L.startsWith("prop:"))&&(L=L.slice(5)),Lr.enableAttributeSanitization&&(X&&fZO(A.tagName)||(O=uhp(A.tagName,L,O))),L==="style"?("function"==typeof _.A8&&O instanceof _.A8&&(O=O.toString()),
IZO(A,L,O)):X?A[L]=O:yls(A,L,O)):(A._signalProps||(A._signalProps=[]),A._signalValues||(A._signalValues=[]),A._signalProps.push(L))}};
jUD=function(A,L,O){O=(O===void 0?{}:O).isReactive;if(L==null?0:L.el){var X=L.el;if(typeof X==="function")X(A);else{var x;(x=X.onRender)==null||x.call(X,A);A._disposeRef||(A._disposeRef=function(){var J;(J=X.onUnmount)==null||J.call(X);delete A._disposeRef},O&&_.rF(function(){var J;
(J=A._disposeRef)==null||J.call(A)}))}}};
fZO=function(A){return A.length>0&&A.includes("-")&&!W2u.includes(A.toLowerCase())};
Hdr=function(A){return O4(A)&&LB in A};
zLJ=function(A){return Hdr(A)?A[LB].flattened:A};
BVD=function(A,L){var O=_.f_.apply(2,arguments),X;L=(X=L)!=null?X:{};X={};return X.type=A,X.props=L,X.children=O,X[Os]=!0,X};
_.Xs=function(A){return A.children};
xL=function(A){var L=MvM!==BVD;MvM=A?$7y:BVD;return L};
_.ss=function(A){return _.BJ(A)?"nodeType"in A:!1};
J8=function(){return document.createTextNode("")};
PY=function(A){A=document.createTextNode(String(A));A._isSignalTextNode=!0;return A};
kku=function(A){return A!=null&&A.contentKind===d9||A instanceof ZD||aZr(A)};
U7M=function(A){var L=document.createElement("div");if(aZr(A)&&VhD(A))_.vf(L,VhD(A));else if(A instanceof ZD)_.vf(L,A);else if(A!=null&&A.contentKind===d9){if(A.contentKind!==d9)throw Error("Rb");A=jg(A.toString());_.vf(L,A)}A=_.d(L.childNodes);for(var O=A.next();!O.done;O=A.next())O.value._isSafeOrSanitizedHtmlNode=!0;return L};
YL=function(A){A=typeof A;return A==="string"||A==="number"||A==="boolean"};
vdO=function(A){return A instanceof q0||rw(A)||"function"==typeof _.LL&&A instanceof _.LL||"function"==typeof _.A8&&A instanceof _.A8};
odJ=function(A,L){var O=A.parentElement;if(!O)return L;O.replaceChild(L,A);return L};
A9M=function(A,L){var O=A[0].parentElement;if(O)if(A[0].previousSibling||A[A.length-1].nextSibling){O.insertBefore(L,A[0]);for(var X=A.length-1;X>=0;X--)O.removeChild(A[X])}else O.textContent="",O.appendChild(L);return L};
LUu=function(A,L){if(A[0].parentElement)for(var O=A[0].parentElement,X=L.length,x=A.length,J=X,Y=0,T=0,V=A[x-1].nextSibling,E=null;Y<x||T<J;)if(A[Y]===L[T])Y++,T++;else{for(;A[x-1]===L[J-1];)x--,J--;if(x===Y)for(var n=J<X?T?L[T-1].nextSibling:L[J-T]:V;T<J;){var t=L[T++];O.insertBefore(t,n)}else if(J===T)for(;Y<x;)n=A[Y],E&&E.has(n)||O.removeChild(n),Y++;else if(A[Y]===L[J-1]&&L[T]===A[x-1])n=A[--x].nextSibling,O.insertBefore(L[T++],A[Y++].nextSibling),O.insertBefore(L[--J],n),A[x]=L[J];else{if(!E)for(E=
new Map,n=T;n<J;)E.set(L[n],n++);n=E.get(A[Y]);if(n==null)O.removeChild(A[Y]),Y++;else if(T<n&&n<J){t=Y;for(var b=1,S=void 0;++t<x&&t<J&&(S=E.get(A[t]))!=null&&S===n+b;)b++;if(b>n-T)for(t=A[Y];T<n;)O.insertBefore(L[T++],t);else O.replaceChild(L[T++],A[Y++])}else Y++}}return L};
X3M=function(A){if(Array.isArray(A)){if(A.length>1)throw Error("dc`"+A.length+"`"+A.map(Ohu).join(", "));A=A[0]}if(A==null)return null;if(!(A instanceof _.M0)){var L,O;if((L=window)==null?0:(O=L.trustedTypes)==null?0:O.isScript(A))throw Error("cc");if(String(A).trim().length===0)return null;throw Error("ec`"+Ohu(A));}return A};
xAs=function(A,L){L=X3M(L);L!==null&&_.kW(A,L)};
sFP=function(A){if(Array.isArray(A)){if(A.length>1)throw Error("fc`"+A.length+"`"+A.map(Ohu).join(", "));A=A[0]}if(A==null)return null;if(!u09(A)){if(String(A).trim().length===0)return null;throw Error("gc`"+Ohu(A));}return A};
J9O=function(A,L){L=sFP(L);L!==null&&(A.textContent=_.TpO(L))};
Ohu=function(A){return"("+typeof A+") "+(A!=null&&typeof A==="object"?A.constructor.name:typeof A)+" "+A};
Pie=function(){};
DJ=function(A,L){L=L===void 0?{}:L;var O=dAp();Lr.legacyTriggerSoyRendererEvents&&fc9();_.lQ(function(){uk.setUp();L.isControlFlowComponent&&bQ++;var X=O[0],x=O[LB].flattened,J=xL(!0);try{var Y=A(),T=YIe(X,Y,O);Array.isArray(T)||(O[LB].flattened=[T]);var V=O[LB].flattened;if(x&&(!Array.isArray(x)||x.length!==0)){var E=Array.isArray(x)?x[0]:x,n=E[TD],t=E._disposeEffects;E._disposeEffects=void 0;E=Array.isArray(V)?V[0]:V;E[TD]=n;E[TD]&&(E[TD].numNodes=E===V?1:V.length);E._disposeEffects=t}O[0]=T;L.isControlFlowComponent&&
SI(!1)}catch(b){throw L.isControlFlowComponent&&SI(!0),b;}finally{xL(J),uk.tearDown()}},L.debugName);
return O};
YIe=function(A,L,O){for(;typeof L==="function";)L=L();if(L!=null&&L[Os]){var X,x,J;(J=Lr.handleError)==null||J.call.apply(J,[Lr].concat(_.le(Cr(Error("hc`"+((X=L.type)==null?void 0:X.TAG_NAME)),(x=L.type)==null?void 0:x.TAG_NAME))))}if(A==null)return L==null?J8():YL(L)?PY(L):vdO(L)?PY(L.toString()):_.ss(L)?L:L.length===0?J8():unD(L,O);if(_.ss(A)){if(L==null)return odJ(A,J8());if(YL(L))return T6e(A,L);if(vdO(L))return T6e(A,L.toString());if(_.ss(L))return odJ(A,L);if(L.length===0)return odJ(A,J8());
L=unD(L,O);LUu([A],O[LB].flattened);return L}A=e6(A);if(L==null)return A9M(A,J8());if(YL(L))return A9M(A,PY(L));if(vdO(L))return A9M(A,PY(L.toString()));if(_.ss(L))return LUu(A,[L])[0];if(L.length===0)return A9M(A,J8());L=unD(L,O);LUu(A,O[LB].flattened);return L};
T6e=function(A,L){A.nodeType===Node.TEXT_NODE?A.textContent!==String(L)&&(A.textContent=String(L)):A=odJ(A,PY(L));return A};
e6=function(A,L,O){return Vfs(A,L!=null?L:[],O===void 0?!1:O)};
unD=function(A,L){var O=e6(A,void 0,!0);if(O.length===0)return J8();L[LB].flattened=O;return A};
Vfs=function(A,L,O,X,x){L=L===void 0?[]:L;O=O===void 0?!1:O;x=x===void 0?-1:x;if(A==null)return L;if(A instanceof Es){var J=A.render();return Vfs(J,L,O,X,x)}if(_.ss(L)&&L.nodeType===Node.ELEMENT_NODE)switch(L.tagName){case "SCRIPT":xAs(L,A);return;case "STYLE":J9O(L,A);return}YL(A)&&(A=PY(A),X&&O&&(X[x]=A));if(kku(A)){O=U7M(A);O=Array.from(O.childNodes);O=_.d(O);for(J=O.next();!J.done;J=O.next())DAe(L,J.value);return L}vdO(A)&&(A=PY(A.toString()),X&&O&&(X[x]=A));if(_.ss(A))return DAe(L,A);if(Array.isArray(A)){for(J=
0;J<A.length;J++)Vfs(A[J],L,O,A,J);return L}if(typeof A==="function"){J=DJ(function(){var T=A();return T!=null&&!YL(T)&&kku(T)?(T=U7M(T),Array.from(T.childNodes)):T},{debugName:"qmF2ne",
debugFn:A})[0];if(Array.isArray(J)){O=_.d(J);for(J=O.next();!J.done;J=O.next())DAe(L,J.value);return L}X&&O&&(X[x]=J);return DAe(L,J)}if(A!=null&&A[Os]){X=A;x=xL(!0);var Y=MvM;try{J=Y.apply(null,[X.type,X.props].concat(_.le(X.children)))}finally{xL(x)}return Vfs(J,L,O)}(Y=Lr.handleError)==null||Y.call.apply(Y,[Lr].concat(_.le(Cr(Error("ic")))));return L};
dAp=function(A){var L={};L=Object.assign([],(L[LB]={flattened:[]},L));if(!A)return L;L[0]=unD(A,L);return L};
DAe=function(A,L){Array.isArray(A)?A.push(L):A.appendChild(L);return A};
nB=function(A){if(!Lr.enableLazyTsx)return A;if(Array.isArray(A)){for(var L=0;L<A.length;L++)A[L]=nB(A[L]);return A}return A instanceof Es?(A=A.render(),nB(A)):A};
EOp=function(A,L){var O,X,x=zge(A),J=function(S){X=S;S=xL(!0);var w=xN(t8);$6p("render",x);try{O=nB(A(L))}finally{acd("render",x),xN(w),xL(S)}};
J=Lr.enableContextPerComponent?vo_(J,x):Kr(J,Lr.alwaysTrackContexts||!!k8);AyJ(X);if(!L.renderedFromIdom){var Y=_.UT(X);try{return eFD(A,L,O),O}finally{_.UT(Y)}}!Hdr(O)&&Array.isArray(O)&&(O=dAp(O));var T=zLJ(O);Y=Array.isArray(T)?T[0]:T;var V=!1;if(Y){var E,n=(E=L==null?void 0:L.idomKey)!=null?E:A;E=T!==Y;Y._disposeEffects=J;var t=Y[TD]||{},b=Hdr(O)?O:t.sourceDynamicRange;Object.assign(t,{key:n,numNodes:E?T.length:1,context:X,higherOrder:!!Y[TD],sourceDynamicRange:b});Y[TD]=t}else V=!0;(function(){var S=
_.UT(X);try{eFD(A,L,T)}finally{_.UT(S)}})();
V&&J();return O};
nOP=function(A){var L={},O;for(O in A)L={prev$jscomp$23:void 0,next$jscomp$33:void 0},L.prev$jscomp$23=bk[O],L.next$jscomp$33=A[O],bk[O]=function(X){return function(){var x=_.f_.apply(0,arguments);X.prev$jscomp$23.apply(null,_.le(x));X.next$jscomp$33.apply(null,_.le(x))}}(L)};
tfy=function(){if(wF())throw Error("jc");return h8};
bhe=function(A,L){if(!A.__unmounted&&L){A.__unmounted=!0;try{A.didUnmount()}catch(x){var O,X;(X=Lr.handleError)==null||X.call.apply(X,[Lr].concat(_.le(Cr(x,(O=A.JSC$11238___type)==null?void 0:O.TAG_NAME))))}bk.didUnmount(A);A.el=null;L.__instance&&delete L.__instance}};
SIJ=function(A,L,O){A._signalProps!=null&&A._disposeEffects==null&&((O===void 0?0:O)?A._disposeEffects=Kr(function(){return void hF_(A,L)},Lr.alwaysTrackContexts||!!k8):hF_(A,L))};
hF_=function(A,L){_.lQ(function(){for(var O=A._signalProps,X=A._signalValues,x=0;x<O.length;x++){var J=O[x],Y=L[J]();X[x]!==Y&&(X[x]=Y,Zdu(A,J,Y))}},"e3YVbb")};
qIu=function(A,L,O){var X,x=[];A._disposeEffects=Kr(function(){_.lQ(function(){var J=O();if(J===null||J===void 0)J="";if(YL(J)||J===null)X!=null||(X=document.createTextNode("")),X.parentNode!==A&&(X._isSignalTextNode=!0,A.insertBefore(X,L)),X.textContent=String(J);else if(kku(J)){for(var Y=x.length>0?x[x.length-1].nextSibling:L,T=_.d(x),V=T.next();!V.done;V=T.next())A.removeChild(V.value);J=U7M(J);x=Array.from(J.childNodes);J=_.d(x);for(T=J.next();!T.done;T=J.next())A.insertBefore(T.value,Y)}else throw V=
(T=(Y=qD)==null?void 0:Y.name)!=null?T:"unknown",Error("Zb`"+V+"`"+typeof J);},"VvDgC")},Lr.alwaysTrackContexts||!!k8)};
p3P=function(A,L){var O=_.f_.apply(2,arguments);L!=null||(L={});return!Lr.enableLazyTsx||qD!=null&&!wF()?gOd(A,L,O):new w3y(A,L,O)};
gOd=function(A,L,O){if(A===_.Xs)return O;if(typeof A==="function")return qD&&!wF()&&(L.renderedFromIdom=!0),BT9(A,function(){var J=ihd(A,L,O);if(J)return J;O.length>0&&(L.children=O.length===1?O[0]:O);if(A.componentType===gF){var Y;vo_(function(){var T=L;if(A.componentType!==gF)Y=!1;else{T||(T={});var V=new S6(T,A),E=xN(t8);try{var n=V.render(T)}finally{xN(E)}n instanceof HTMLElement?(n.__instance=V,V.el=n,V.JSC$11238___type=A,A.TAG_NAME=n.tagName.toLowerCase(),bk.didPatch(V),Y=n):Y=n}},A.name);
if(Y)return Y}return EOp(A,L)},L.debugInstance);
var X=N6u(A,L),x;for(x in L)Zdu(X,x,L[x]);SIJ(X,L);e6(O,X);jUD(X,L,{isReactive:!0});r9M(X,L);return X};
N6u=function(A,L){A=(KUd.has(A.toLowerCase())?0:GNp.has(A.startsWith("svg:")?A.replace("svg:",""):A))?document.createElementNS("http://www.w3.org/2000/svg",A.startsWith("svg:")?A.replace("svg:",""):A):lx_(A,L)||document.createElement(A);A[c9P]=!0;return A};
CiO=function(A){if(A){var L;(L=A._disposeRef)==null||L.call(A);var O;(O=A._disposeEffects)==null||O.call(A);A.__instance&&A.__instance instanceof qE&&(L=A.__instance,bhe(L,A),L instanceof S6&&L.disposeEffects());for(L=0;L<A.childNodes.length;L++)CiO(A.childNodes[L])}};
RFP=function(A){FU_.push(A)===1&&requestAnimationFrame(function(){setTimeout(function(){var L=[].concat(_.le(FU_));FU_=[];L=_.d(L);for(var O=L.next();!O.done;O=L.next()){O=O.value;try{for(var X=0;X<O.length;X++)CiO(O[X])}catch(x){X=O=void 0,(X=(O=Lr).handleError)==null||X.call.apply(X,[O].concat(_.le(Cr(x))))}}})})};
_.D=function(A,L){return MvM.apply(null,[A,L].concat(_.le(_.f_.apply(2,arguments))))};
QFu=function(A,L){L=L===void 0?new Map:L;A=_.d(A);for(var O=A.next();!O.done;O=A.next())if(O=O.value,!L.has(O)){for(var X=[],x=O.producers;x!==void 0;x=x.nextProducer)X.push(x.producer);L.set(O,X);QFu(X,L)}return L};
_.e=function(A){var L=A.cond;if(L===void 0)return A.else&&A.else();var O=_.E4(function(){return!!L()},void 0,"JHVi8"),X=function(){var x=L();
if(!x){var J;(J=Lr.handleError)==null||J.call.apply(J,[Lr].concat(_.le(Cr(mAM.nonNullableCondIsNull()))))}return x};
return DJ(function(){var x=O(),J;Kr(function(){var Y=xN(t8);try{J=nB(x?A.then(X):A.else&&A.else())}finally{xN(Y)}},!0);
return J},{debugName:A.debugInstance,
debugFn:A.then,isControlFlowComponent:!0})};
fxp=function(A){return _.e(A)};
_.g9=function(A){return A.keyBy==="INDEX"?Ixe(A):y99(A)};
Zh9=function(A){A=_.d(A);for(var L=A.next();!L.done;L=A.next()){var O=void 0;(O=L.value)==null||O()}};
y99=function(A){var L=A.keyBy===void 0||A.keyBy==="REFERENCE",O=L?function(n){return n}:A.keyBy,X=[],x=[],J=[],Y=[],T=[],V=[],E=!0;
_.rF(function(){Zh9(Y)});
return DJ(function(){var n=A.each(),t=n.length;if(t===0){if(X.length===0&&!E)return J;Zh9(Y);X=n;x=[];for(n=0;n<X.length;n++)x.push(O(X[n]));J=[];Y=[];T=[];V=[];A.fallback&&(Y[0]=jFP(function(){J[0]=nB(A.fallback())}));
E=!1;return J}for(var b=new WUJ,S=X.length-1;S>=0;S--)b.push(x[S],S);S=Array(t);for(var w=Array(t),l=Array(t),F=Array(t),R=Array(L?0:t),y={i$jscomp$445:0};y.i$jscomp$445<t;y={i$jscomp$445:y.i$jscomp$445,item$jscomp$105:void 0,key$jscomp$550:void 0},y.i$jscomp$445++){y.item$jscomp$105=n[y.i$jscomp$445];y.key$jscomp$550=O(y.item$jscomp$105);var M=b.pop(y.key$jscomp$550);M!=null?(l[y.i$jscomp$445]=J[M],w[y.i$jscomp$445]=x[M],S[y.i$jscomp$445]=Y[M],F[y.i$jscomp$445]=T[M],L||(R[y.i$jscomp$445]=V[M]),nr(function(H){return function(){F[H.i$jscomp$445](H.i$jscomp$445);
if(!L)R[H.i$jscomp$445](H.item$jscomp$105)}}(y)),delete Y[M]):S[y.i$jscomp$445]=jFP(function(H){return function(){var z=_.d(_.uQ(H.i$jscomp$445,void 0,"Fqk1zd")),a=z.next().value;
z=z.next().value;F[H.i$jscomp$445]=z;w[H.i$jscomp$445]=H.key$jscomp$550;if(L)l[H.i$jscomp$445]=nB(A.children(H.item$jscomp$105,a));else{var xe=_.d(_.uQ(H.item$jscomp$105,void 0,"GBj5de"));z=xe.next().value;xe=xe.next().value;R[H.i$jscomp$445]=xe;l[H.i$jscomp$445]=nB(A.children(z,a))}}}(y))}Zh9(Y);
X=n;x=w;J=l;Y=S;T=F;V=R;E=!1;return l},{debugName:A.debugInstance,
debugFn:A.each,isControlFlowComponent:!0})};
Ixe=function(A){var L=[],O=[],X=[],x=[],J=!1;_.rF(function(){for(var Y=_.d(x),T=Y.next();!T.done;T=Y.next())T=T.value,T()});
return DJ(function(){var Y=A.each();J&&Y.length>0&&(x.pop()(),L.pop(),J=!1);for(var T=Array(Y.length),V={i$jscomp$446:0};V.i$jscomp$446<Y.length;V={i$jscomp$446:V.i$jscomp$446},V.i$jscomp$446++)if(V.i$jscomp$446<L.length)L[V.i$jscomp$446]!==Y[V.i$jscomp$446]&&(nr(function(n){return function(){return void O[n.i$jscomp$446](Y[n.i$jscomp$446])}}(V)),L[V.i$jscomp$446]=Y[V.i$jscomp$446]),T[V.i$jscomp$446]=X[V.i$jscomp$446];
else{var E=jFP(function(n){return function(){L[n.i$jscomp$446]=Y[n.i$jscomp$446];var t=_.d(_.uQ(Y[n.i$jscomp$446],void 0,"JMMLmd")),b=t.next().value;t=t.next().value;O[n.i$jscomp$446]=t;T[n.i$jscomp$446]=nB(A.children(b,n.i$jscomp$446))}}(V));
x[V.i$jscomp$446]=E}for(;L.length>Y.length;)L.pop(),x.pop()(),O.pop();Y.length===0&&!J&&A.fallback&&(V=jFP(function(){T[0]=nB(A.fallback())}),x[0]=V,J=!0);
return X=T},{debugName:A.debugInstance,
isControlFlowComponent:!0})};
jFP=function(A){var L=k8;return Kr(function(O){var X=xN(t8);try{O.parent=L,A(O)}finally{xN(X)}},!1)};
_.w9=function(A){return A};
_.pB=function(A){return{isDefault:!0,children:A.children}};
_.ik=function(A){var L=Hhu(A),O=_.E4(function(){return zFs(L)},void 0,"F1PF4");
return DJ(function(){var X=O(),x;Kr(function(){var J=xN(t8);try{x=nB(X())}finally{xN(J)}});
return x},{debugName:A.debugInstance,
isControlFlowComponent:!0})};
Hhu=function(A){A=A.children;return Array.isArray(A)?A:[A]};
B6p=function(A){var L=A.props;A=A.getChildren()[0];return L.when?{when:L.when,children:A}:{isDefault:!0,children:A}};
zFs=function(A){var L=function(){return null};
A=_.d(A);for(var O=A.next();!O.done;O=A.next())if(O=O.value,O!=null&&O[Os]&&(O=O.type===_.pB?{isDefault:!0,children:O.children[0]}:{when:O.props.when,children:O.children[0]}),O instanceof Es&&(O=B6p(O)),O.isDefault)L=O.children;else if(O.when())return O.children;return L};
$A9=function(A){var L=null,O,X={get value(){var J,Y;(Y=(J=x).validateGetValue)==null||Y.call(J);return x.__value},set value(J){var Y,T;(T=(Y=x).validateSetValue)==null||T.call(Y,J);x.__value=J;x.__hasBeenSet=!0}},x=(X.__value=null,X.__hasBeenSet=!1,X.__hasErrored=!1,X.onRender=function(J){if(O&&J!==O){O._disposeRef=void 0;var Y;(Y=L)==null||Y()}O=J;L=A(J)||null},X.onUnmount=function(){var J;
(J=L)==null||J();L=x.value=null},X[_.Mfy]=!0,X);
return x};
kN_=function(A){var L=tfy();if(L==null)throw _.ax_.PRIMITIVE_INVALID_HOOK_CALL();var O=L.hookCounter++;L.hooks||(L.hooks=[]);var X=L.hooks;X[O]||(X[O]={key:A,host:L});if(A!==X[O].key){if(L.JSC$11238___type){var x;A=(x=L.JSC$11238___type)==null?void 0:x.name}else A=L instanceof S6?zge(L.functionComponent):"<"+L.el.tagName.toLowerCase()+">";throw _.ax_.OUT_OF_ORDER_HOOK_CALL(A);}return X[O]};
UAp=function(A,L){return!A||A.length!==(L==null?void 0:L.length)||A.some(function(O,X){return O!==L[X]})};
vOe=function(A,L){var O=kN_("onChange"),X=tfy();UAp(O.deps,L)&&(O.deps=L,O.pendingEffect=A,X.__syncEffects||(X.__syncEffects=[]),X.__syncEffects.push(O))};
_.NE=function(A,L){var O=O===void 0?{}:O;O=O.appContext;var X=!!Lr.legacyTriggerSoyRendererEvents;uk.setUp();try{var x=oOr(A,L,O);X&&(L=O,L==null&&(L=_.S$p(document).getAppContext()),L.get(AzM).JSC$30678_getEventTarget().dispatchEvent(new Lfr(OM_,A,d9)));uk.log(A);return x}finally{uk.tearDown()}};
oOr=function(A,L,O){var X=iQ(function(){var x=xN(t8);try{return Kr(function(){var J=_.S$p(_.Ro(A)),Y;var T=m6u({rootElement:{value:A},appContext:O||(J==null?void 0:(Y=J.getOptionalAppContext)==null?void 0:Y.call(J)),dispatcher:J});J=_.UT(T);T=xL(!0);bQ++;try{e6(L(),A),SI(!1)}catch(V){throw SI(!0),V;}finally{xL(T),_.UT(J)}},!1)}catch(J){throw Lr.enableContextBasedComponentStacks&&pr(J),J;
}finally{xN(x)}});
A[X4J]=!0;return function(){A.textContent="";X();A[X4J]=!1}};
_.r9=function(A){if(Wxp(Xx)){var L;(L=Lr.handleError)==null||L.call.apply(L,[Lr].concat(_.le(Cr(Error("Yb")))))}var O=k8,X=qD;Promise.resolve().then(function(){if(O&&!O.isDisposed){var x=_.UT(O);try{iQ(function(){return void A()},X)}catch(J){throw Lr.enableContextBasedComponentStacks&&pr(J),J;
}finally{_.UT(x)}}})};
_.KB=function(A,L){vOe(function(){return YN(A)},L)};
_.GD=function(A){wF()?_.r9(function(){YN(A)}):vOe(function(){return YN(A)},[])};
sku=function(A){var L=[].concat(_.le(A));A.length=0;A=_.d(L);for(L=A.next();!L.done;L=A.next()){L=L.value;xG_(L);var O=L.pendingEffect;L.pendingEffect=null;if(O=O==null?void 0:O())L.pendingCleanup=O}};
xG_=function(A){var L=A.pendingCleanup;A.pendingCleanup=null;L==null||L()};
Jzd=function(A,L){if(wF())return A();var O=kN_("useMemoInternal");UAp(O.deps,L)&&(O.deps=L,O.value=A());return O.value};
P3e=function(A,L){return Jzd(A,L)};
lk=function(A){return Jzd(A,[])};
cY=function(A){return lk(function(){return{value:A}})};
_.Fs=function(A,L){if(!A)return null;A=Object.keys(A);A=_.d(A);for(var O=A.next();!O.done;O=A.next()){O=O.value;var X=O.toLowerCase();if(X.indexOf(L,X.length-L.length)>-1)return O}return null};
_.QT=function(){var A=arguments,L=_.RO;A.length>1?L[A[0]]=A[1]:A.length===1&&Object.assign(L,A[0])};
_.ms=function(A,L){return A in _.RO?_.RO[A]:L};
_.fB=function(A,L){return!!_.ms(A,L)};
dG9=function(A){var L=_.RO.EXPERIMENT_FLAGS;return L?L[A]:void 0};
uzr=function(A){Y0D.forEach(function(L){return L(A)})};
_.j6=function(A){return A&&window.yterr?function(){try{return A.apply(this,arguments)}catch(L){_.IO(L)}}:A};
_.IO=function(A){var L=_.WY("yt.logging.errors.log");L?L(A,"ERROR",void 0,void 0,void 0,void 0,void 0):(L=_.ms("ERRORS",[]),L.push([A,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.QT("ERRORS",L));uzr(A)};
_.HY=function(A,L,O,X,x){var J=_.WY("yt.logging.errors.log");J?J(A,"WARNING",L,O,X,void 0,x):(J=_.ms("ERRORS",[]),J.push([A,"WARNING",L,O,X,void 0,x]),_.QT("ERRORS",J))};
Vm9=function(A,L){L=A.split(L);for(var O={},X=0,x=L.length;X<x;X++){var J=L[X].split("=");if(J.length===1&&J[0]||J.length===2)try{var Y=TQP(J[0]||""),T=TQP(J[1]||"");if(Y in O){var V=O[Y];Array.isArray(V)?_.WJ(V,T):O[Y]=[V,T]}else O[Y]=T}catch(b){var E=b,n=J[0],t=String(Vm9);E.args=[{key:n,value:J[1],query:A,method:DGM===t?"unchanged":t}];eAJ.hasOwnProperty(n)||_.HY(E)}}return O};
EKd=function(A){var L=[];_.lW.forEach(A,function(O,X){var x=_.zD(X);O=Array.isArray(O)?O:[O];_.BY(O,function(J){J==""?L.push(x):L.push(x+"="+_.zD(J))})});
return L.join("&")};
_.ME=function(A){A.charAt(0)==="?"&&(A=A.substring(1));return Vm9(A,"&")};
_.$L=function(A){return A.indexOf("?")!==-1?(A=(A||"").split("#")[0],A=A.split("?",2),_.ME(A.length>1?A[1]:A[0])):{}};
_.aO=function(A,L){return nKy(A,L||{},!0)};
tmP=function(A,L){return nKy(A,L||{},!1)};
nKy=function(A,L,O){var X=A.split("#",2);A=X[0];X=X.length>1?"#"+X[1]:"";var x=A.split("?",2);A=x[0];x=_.ME(x[1]||"");for(var J in L)if(O||!_.lW.containsKey(x,J))x[J]=L[J];return _.kL(A,x)+X};
Aj=function(A){if(!L)var L=window.location.href;var O=_.Us(A)[1]||null,X=_.vY(A);return O&&X?oO(A,L):X?_.vY(L)===X&&(Number(_.Us(L)[4]||null)||null)===(Number(_.Us(A)[4]||null)||null):!0};
_.hAy=function(A){A=bMu(A);return A===null?!1:A[0]==="com"&&A[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
bMu=function(A){A=_.vY(A);return A!==null?A.split(".").reverse():null};
TQP=function(A){return A&&A.match(S0u)?A:Le(A)};
_.Ot=function(A){return new q0O(A)};
_.X5=function(){gK9||(gK9=new w4u);return gK9};
iMr=function(){var A=p4s;return function(){var L=_.X5();L.resolve(_.Ot(A))||L.addProvider({provide:A,useClass:A});return L.resolve(A)}};
rzu=function(A){var L=_.x$,O,X;_.u(function(x){O=_.X5();return(X=O.resolve(_.Ot(L)))?(A(X),x.return(Promise.resolve(X))):x.return(O.resolve(new NQs(L)).then(function(J){A(J);return J}))})};
_.h=function(A){A=Jj(A);return typeof A==="string"&&A==="false"?!1:!!A};
_.PO=function(A,L){A=Jj(A);return A===void 0&&L!==void 0?L:Number(A||0)};
KfP=function(A){A=Jj(A);return Array.isArray(A)?_.cT(A,function(L){return Number(L||0)}):[Number(A||0)]};
_.dN=function(A){A=Jj(A);return A!==void 0?String(A):""};
_.Y$=function(A){A=Jj(A);return Array.isArray(A)?_.cT(A,function(L){return String(L||"")}):[String(A||"")]};
GZr=function(){return _.ms("EXPERIMENTS_TOKEN","")};
Jj=function(A){return _.ms("EXPERIMENT_FLAGS",{})[A]};
lQp=function(){for(var A=[],L=_.ms("EXPERIMENTS_FORCED_FLAGS",{}),O=_.d(Object.keys(L)),X=O.next();!X.done;X=O.next())X=X.value,A.push({key:X,value:String(L[X])});O=_.ms("EXPERIMENT_FLAGS",{});X=_.d(Object.keys(O));for(var x=X.next();!x.done;x=X.next())x=x.value,x.startsWith("force_")&&L[x]===void 0&&A.push({key:x,value:String(O[x])});return A};
C3u=function(){if(!czr)return null;var A=czr();return"open"in A?A:null};
_.Ffd=function(A){switch(_.uK(A)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.uK=function(A){return A&&"status"in A?A.status:-1};
_.TA=function(A,L){typeof A==="function"&&(A=_.j6(A));return window.setTimeout(A,L)};
_.Vr=function(A,L){typeof A==="function"&&(A=_.j6(A));return window.setInterval(A,L)};
_.DK=function(A){window.clearTimeout(A)};
QkO=function(A){A=_.$L(A);for(var L=_.d(RAM),O=L.next();!O.done;O=L.next())if(A[O.value]!==void 0)return!0;return!1};
IQe=function(A,L,O,X,x,J,Y,T,V){O=O===void 0?"GET":O;X=X===void 0?"":X;T=T===void 0?!1:T;var E=C3u();if(!E)return null;var n=function(){(E&&"readyState"in E?E.readyState:0)===4&&L&&_.j6(L)(E)};
"onloadend"in E?E.addEventListener("loadend",n,!1):E.onreadystatechange=n;_.h("debug_forward_web_query_parameters")&&(A=mGJ(A,window.location.search));E.open(O,A,!0);J&&(E.responseType=J);Y&&(E.withCredentials=!0);O=O==="POST"&&(window.FormData===void 0||!(X instanceof FormData));if(x=fQp(A,x))for(var t in x)E.setRequestHeader(t,x[t]),"content-type"===t.toLowerCase()&&(O=!1);O&&E.setRequestHeader("Content-Type","application/x-www-form-urlencoded");V&&"onprogress"in E&&(E.onprogress=function(){V(E.responseText)});
if(T&&"setAttributionReporting"in XMLHttpRequest.prototype){A={eventSourceEligible:!0,triggerEligible:!1};try{E.setAttributionReporting(A)}catch(b){_.HY(b)}}E.send(X);return E};
fQp=function(A,L){L=L===void 0?{}:L;var O=Aj(A),X=_.ms("INNERTUBE_CLIENT_NAME"),x=_.h("web_ajax_ignore_global_headers_if_set"),J;for(J in yzO){var Y=_.ms(yzO[J]),T=J==="X-Goog-AuthUser"||J==="X-Goog-PageId";J!=="X-Goog-Visitor-Id"||Y||(Y=_.ms("VISITOR_DATA"));var V;if(!(V=!Y)){if(!(V=O||(_.vY(A)?!1:!0))){V=A;var E;if(E=_.h("add_auth_headers_to_remarketing_google_dot_com_ping")&&J==="Authorization"&&(X==="TVHTML5"||X==="TVHTML5_UNPLUGGED"||X==="TVHTML5_SIMPLY"))E=bMu(V),E=E===null?!1:E[1]==="google"?
!0:E[2]==="google"?E[0]==="au"&&E[1]==="com"?!0:E[0]==="uk"&&E[1]==="co"?!0:!1:!1;E&&(V=_.eh(V)||"",V=V.split("/"),V="/"+(V.length>1?V[1]:""),E=V==="/pagead");V=E?!0:!1}V=!V}V||x&&L[J]!==void 0||X==="TVHTML5_UNPLUGGED"&&T||(L[J]=Y)}"X-Goog-EOM-Visitor-Id"in L&&"X-Goog-Visitor-Id"in L&&delete L["X-Goog-Visitor-Id"];if(O||!_.vY(A))L["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(O||!_.vY(A)){try{var n=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(t){}n&&(L["X-YouTube-Time-Zone"]=
n)}document.location.hostname.endsWith("youtubeeducation.com")||!O&&_.vY(A)||(L["X-YouTube-Ad-Signals"]=EKd(ZM_()));return L};
_.jkp=function(A,L){var O=_.vY(A);_.h("debug_handle_relative_url_for_query_forward_killswitch")||!O&&Aj(A)&&(O=document.location.hostname);var X=_.eh(A);X=(O=O&&(O.endsWith("youtube.com")||O.endsWith("youtube-nocookie.com")))&&X&&X.startsWith("/api/");if(!O||X)return A;var x=_.ME(L),J={};_.BY(RAM,function(Y){x[Y]&&(J[Y]=x[Y])});
return tmP(A,J)};
WfM=function(A,L){L.method="POST";L.postParams||(L.postParams={});return _.Et(A,L)};
HM9=function(A,L){var O=_.ms("XSRF_FIELD_NAME"),X;L.headers&&(X=L.headers["Content-Type"]);return!L.excludeXsrf&&(!_.vY(A)||L.withCredentials||_.vY(A)===document.location.hostname)&&L.method==="POST"&&(!X||X==="application/x-www-form-urlencoded")&&!(L.postParams&&L.postParams[O])};
_.Et=function(A,L){var O=L.format||"JSON";A=zAe(A,L);var X=BQu(A,L),x=!1,J=Mmd(A,function(V){if(!x){x=!0;T&&_.DK(T);var E=_.Ffd(V),n=null,t=400<=V.status&&V.status<500,b=500<=V.status&&V.status<600;if(E||t||b)n=$Ge(A,O,V,L.convertToSafeHtml);E&&(E=aQM(O,V,n));n=n||{};t=L.context||_.Ou;E?L.onSuccess&&L.onSuccess.call(t,V,n):L.onError&&L.onError.call(t,V,n);L.onFinish&&L.onFinish.call(t,V,n)}},L.method,X,L.headers,L.responseType,L.withCredentials,!1,L.onProgress);
X=L.timeout||0;if(L.onTimeout&&X>0){var Y=L.onTimeout;var T=_.TA(function(){x||(x=!0,J.abort(),_.DK(T),Y.call(L.context||_.Ou,J))},X)}return J};
zAe=function(A,L){L.includeDomain&&(A=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+A);var O=_.ms("XSRF_FIELD_NAME");if(L=L.urlParams)L[O]&&delete L[O],A=_.aO(A,L);return A};
BQu=function(A,L){var O=_.ms("XSRF_FIELD_NAME"),X=_.ms("XSRF_TOKEN"),x=L.postBody||"",J=L.postParams;HM9(A,L)&&(J||(J={}),J[O]=X);(_.h("ajax_parse_query_data_only_when_filled")&&J&&Object.keys(J).length>0||J)&&typeof x==="string"&&(x=_.ME(x),_.lW.extend(x,J),x=L.postBodyFormat&&L.postBodyFormat==="JSON"?JSON.stringify(x):_.ne(x));J=x||J&&!_.lW.isEmpty(J);!kZ_&&J&&L.method!=="POST"&&(kZ_=!0,_.IO(Error("Fc")));return x};
$Ge=function(A,L,O,X){var x=null;switch(L){case "JSON":try{var J=O.responseText}catch(Y){throw X=Error("Gc"),X.params=A,_.HY(X),Y;}A=O.getResponseHeader("Content-Type")||"";J&&A.indexOf("json")>=0&&(J.substring(0,5)===")]}'\n"&&(J=J.substring(5)),x=JSON.parse(J));break;case "XML":if(A=(A=O.responseXML)?UGd(A):null)x={},_.BY(A.getElementsByTagName("*"),function(Y){x[Y.tagName]=vKO(Y)})}X&&oKy(x);
return x};
oKy=function(A){if(_.BJ(A))for(var L in A)L==="html_content"||PJ(L,"_html")?A[L]=jg(A[L]):oKy(A[L])};
aQM=function(A,L,O){if(L&&L.status===204)return!0;switch(A){case "JSON":return!!O;case "XML":return Number(O&&O.return_code)===0;case "RAW":return!0;default:return!!O}};
UGd=function(A){return A?(A=("responseXML"in A?A.responseXML:A).getElementsByTagName("root"))&&A.length>0?A[0]:null:null};
vKO=function(A){var L="";_.BY(A.childNodes,function(O){L+=O.nodeValue});
return L};
AYr=function(A){if(A.name==="JavaException")return!0;A=A.stack;return A.includes("chrome://")||A.includes("-extension://")||A.includes("webkit-masked-url://")};
LCu=function(A){if(!A.stack)return!0;var L=!A.stack.includes("\n");return L&&A.stack.includes("ErrorType: ")||L&&A.stack.includes("Anonymous function (Unknown script")||A.stack.toLowerCase()==="not available"||A.fileName==="user-script"||A.fileName.startsWith("user-script:")?!0:!1};
_.tj=function(A){_.p$.call(this);this.JSC$11501_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!A};
XGD=function(A,L){var O=A.length,X=0,x=function(){return A.charCodeAt(X++)};
do{var J=OY_(x);if(J===Infinity)break;var Y=J>>3;switch(J&7){case 0:J=OY_(x);if(Y===L)return J;break;case 1:if(Y===L)return;X+=8;break;case 2:J=OY_(x);if(Y===L)return A.substr(X,J);X+=J;break;case 5:if(Y===L)return;X+=4;break;default:return}}while(X<O)};
OY_=function(A){var L=A(),O=L&127;if(L<128)return O;L=A();O|=(L&127)<<7;if(L<128)return O;L=A();O|=(L&127)<<14;if(L<128)return O;L=A();return L<128?O|(L&127)<<21:Infinity};
smr=function(A,L,O,X){if(A)if(Array.isArray(A)){var x=X;for(X=0;X<A.length&&!(A[X]&&(x+=xas(X,A[X],L,O),x>500));X++);X=x}else if(typeof A==="object")for(x in A){if(A[x]){var J=x;var Y=A[x],T=L,V=O;J=typeof Y!=="string"||J!=="clickTrackingParams"&&J!=="trackingParams"?0:(Y=XGD(atob(Y.replace(/-/g,"+").replace(/_/g,"/")),2))?xas(J+".ve",Y,T,V):0;X+=J;X+=xas(x,A[x],L,O);if(X>500)break}}else O[L]=bK(A),X+=O[L].length;else O[L]=bK(A),X+=O[L].length;return X};
xas=function(A,L,O,X){O+="."+A;A=bK(L);X[O]=A;return O.length+A.length};
bK=function(A){try{return(typeof A==="string"?A:String(JSON.stringify(A))).substr(0,500)}catch(L){return"unable to serialize "+typeof A+" ("+L.message+")"}};
JYO=function(A){switch(A){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}};
_.Sh=function(A,L,O,X,x){_.hj.set(A,L,{maxAge:O,path:"/",domain:X===void 0?"youtube.com":X,secure:x===void 0?!1:x})};
_.PND=function(A,L,O){_.hj.remove(A,L===void 0?"/":L,O===void 0?"youtube.com":O)};
_.qO=function(){if(_.h("embeds_web_enable_cookie_detection_fix")){if(!_.Ou.navigator.cookieEnabled)return!1}else if(!_.hj.isEnabled())return!1;if(!_.hj.isEmpty())return!0;_.h("embeds_web_enable_cookie_detection_fix")?_.hj.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.hj.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.hj.get("TESTCOOKIESENABLED")!=="1")return!1;_.hj.remove("TESTCOOKIESENABLED");return!0};
da9=function(){var A=_.Ou.navigator;return A?A.connection:void 0};
Yes=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(A){}};
_.Ths=function(){var A=da9();if(A){var L=uld[A.type||"unknown"]||"CONN_UNKNOWN";A=uld[A.effectiveType||"unknown"]||"CONN_UNKNOWN";L==="CONN_CELLULAR_UNKNOWN"&&A!=="CONN_UNKNOWN"&&(L=A);if(L!=="CONN_UNKNOWN")return L;if(A!=="CONN_UNKNOWN")return A}};
Dau=function(){var A=da9();if(A!=null&&A.effectiveType)return VMr.hasOwnProperty(A.effectiveType)?VMr[A.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.wN=function(){try{return _.gN(),!0}catch(A){return!1}};
_.gN=function(A){if(_.ms("DATASYNC_ID")!==void 0)return _.ms("DATASYNC_ID");throw new _.pe("Datasync ID not set",A===void 0?"unknown":A);};
_.iK=function(A){this.mechanism=A};
NO=function(A){this.mechanism=A};
rN=function(A){this.storage_=A;this.cachedIsStorageAvailable_=null};
eDO=function(){var A=null;try{A=_.Ou.localStorage||null}catch(L){}rN.call(this,A)};
EBd=function(){var A=null;try{A=_.Ou.sessionStorage||null}catch(L){}rN.call(this,A)};
Ke=function(A,L){this.mechanism_=A;this.JSC$11603_prefix_=L+"::"};
_.nBd=function(A){var L=new eDO;return L.isAvailable()?A?new Ke(L,A):L:null};
_.tMp=function(A){var L=new EBd;return L.isAvailable()?A?new Ke(L,A):L:null};
hDe=function(){var A;return(A=bYu())==null?void 0:A.get("LAST_RESULT_ENTRY_KEY",!0)};
_.cO=function(A){See||(_.GA?_.GA.logError(A):(_.lK.push({type:"ERROR",payload:A}),_.lK.length>10&&_.lK.shift()))};
Ce=function(A,L){See||(_.GA?_.GA.logEvent(A,L):(_.lK.push({type:"EVENT",eventType:A,payload:L}),_.lK.length>10&&_.lK.shift()))};
F5=function(A){if(A.indexOf(":")>=0)throw Error("Nc");};
RZ=function(A){return A.substr(0,A.indexOf(":"))||A};
wGe=function(){return(qey||gBu)&&Qr("applewebkit")&&!Qr("version")&&(!Qr("safari")||Qr("gsa/"))};
Qr=function(A){var L=_.n9();return L?L.toLowerCase().indexOf(A)>=0:!1};
Nhe=function(A,L,O,X){L=RZ(L);var x=A instanceof Error?A:Error("Oc`"+A);if(x instanceof m7)return x;A={objectStoreNames:O,dbName:L,dbVersion:X};if(x.name==="QuotaExceededError")return new m7("QUOTA_EXCEEDED",A);if(_.fe&&x.name==="UnknownError")return new m7("QUOTA_MAYBE_EXCEEDED",A);if(x instanceof pGe)return new m7("MISSING_INDEX",Object.assign({},A,{objectStore:x.objectStore,index:x.index}));if(x.name==="InvalidStateError"&&iYJ.some(function(J){return x.message.includes(J)}))return new m7("EXECUTE_TRANSACTION_ON_CLOSED_DB",
A);
if(x.name==="AbortError")return new m7("UNKNOWN_ABORT",A,x.message);x.args=[Object.assign({},A,{name:"IdbError",originalName:x.name})];x.level="WARNING";return x};
IZ=function(A,L,O){var X=hDe();return new m7("IDB_NOT_SUPPORTED",{context:{caller:A,publicName:L,version:O,hasSucceededOnce:X==null?void 0:X.hasSucceededOnce}})};
rYu=function(A){if(!A)throw Error();throw A;};
KCe=function(A){return A};
G1M=function(A,L,O){var X=function(){try{A.removeEventListener("success",x),A.removeEventListener("error",J)}catch(Y){}},x=function(){L(A.result);
X()},J=function(){O(A.error);
X()};
A.addEventListener("success",x);A.addEventListener("error",J)};
ln9=function(A){return new Promise(function(L,O){G1M(A,L,O)})};
jh=function(A){return new yr(new ZK(function(L,O){G1M(A,L,O)}))};
cYy=function(A,L){return new yr(new ZK(function(O,X){var x=function(){var J=A?L(A):null;J?J.then(function(Y){A=Y;x()},X):O()};
x()}))};
CNr=function(A,L,O){return new Promise(function(X,x){var J=L!==void 0?self.indexedDB.open(A,L):self.indexedDB.open(A);var Y=O.blocked,T=O.blocking,V=O.terminated,E=O.upgrade,n=O.closed,t,b=function(){t||(t=new WO(J.result,{closed:n}));return t};
J.addEventListener("upgradeneeded",function(S){try{if(S.newVersion===null)throw Error("Tc");if(J.transaction===null)throw Error("Uc");S.dataLoss&&S.dataLoss!=="none"&&Ce("IDB_DATA_CORRUPTED",{reason:S.dataLossMessage||"unknown reason",dbName:RZ(A)});var w=b(),l=new HO(J.transaction);E&&E(w,function(F){return S.oldVersion<F&&S.newVersion>=F},l);
l.done.catch(function(F){x(F)})}catch(F){x(F)}});
J.addEventListener("success",function(){var S=J.result;T&&S.addEventListener("versionchange",function(){T(b())});
S.addEventListener("close",function(){Ce("IDB_UNEXPECTEDLY_CLOSED",{dbName:RZ(A),dbVersion:S.version});V&&V()});
X(b())});
J.addEventListener("error",function(){x(J.error)});
Y&&J.addEventListener("blocked",function(){Y()})})};
FCy=function(A,L,O){O=O===void 0?{}:O;return CNr(A,L,O)};
_.BO=function(A,L){L=L===void 0?{}:L;var O,X,x,J;return _.u(function(Y){if(Y.nextAddress==1)return _.e4(Y,2),O=self.indexedDB.deleteDatabase(A),X=L,(x=X.blocked)&&O.addEventListener("blocked",function(){x()}),Y.yield(ln9(O),4);
if(Y.nextAddress!=2)return _.zA(Y,0);J=_.S4(Y);throw Nhe(J,A,"",-1);})};
QmP=function(A,L){var O;return _.u(function(X){if(X.nextAddress==1)return X.yield(_.MO(RD_,L),2);O=X.yieldResult;return X.return(_.$$(O,["databases"],{enableRetries:!0,mode:"readwrite"},function(x){var J=x.objectStore("databases");return J.get(A.actualName).then(function(Y){if(Y?A.actualName!==Y.actualName||A.publicName!==Y.publicName||A.userIdentifier!==Y.userIdentifier:1)return J.put(A).then(function(){})})}))})};
_.aZ=function(A,L){var O;return _.u(function(X){if(X.nextAddress==1)return A?X.yield(_.MO(RD_,L),2):X.return();O=X.yieldResult;return X.return(O.delete("databases",A))})};
_.maD=function(A,L){var O,X;return _.u(function(x){return x.nextAddress==1?(O=[],x.yield(_.MO(RD_,L),2)):x.nextAddress!=3?(X=x.yieldResult,x.yield(_.$$(X,["databases"],{enableRetries:!0,mode:"readonly"},function(J){O.length=0;return k$(J.objectStore("databases"),{},function(Y){A(Y.getValue())&&O.push(Y.getValue());return Y.continue()})}),3)):x.return(O)})};
fn_=function(A,L){return _.maD(function(O){return O.publicName===A&&O.userIdentifier!==void 0},L)};
ZYd=function(){var A,L,O,X;return _.u(function(x){switch(x.nextAddress){case 1:A=hDe();if((L=A)==null?0:L.hasSucceededOnce)return x.return(!0);var J;if(J=Ind)J=/WebKit\/([0-9]+)/.exec(_.n9()),J=!!(J&&parseInt(J[1],10)>=600);J&&(J=/WebKit\/([0-9]+)/.exec(_.n9()),J=!(J&&parseInt(J[1],10)>=602));if(J||Ut)return x.return(!1);try{if(O=self,!(O.indexedDB&&O.IDBIndex&&O.IDBKeyRange&&O.IDBObjectStore))return x.return(!1)}catch(Y){return x.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return x.return(!1);
_.e4(x,2);X={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return x.yield(QmP(X,yYe),4);case 4:return x.yield(_.aZ("yt-idb-test-do-not-use",yYe),5);case 5:return x.return(!0);case 2:return _.S4(x),x.return(!1)}})};
WCe=function(){if(jmp!==void 0)return jmp;See=!0;return jmp=ZYd().then(function(A){See=!1;var L;if((L=bYu())!=null&&L.expiringStorage_){var O;L={hasSucceededOnce:((O=hDe())==null?void 0:O.hasSucceededOnce)||A};var X;(X=bYu())==null||X.set("LAST_RESULT_ENTRY_KEY",L,2592E3,!0)}return A})};
vO=function(){return _.WY("ytglobal.idbToken_")||void 0};
_.A4=function(){var A=vO();return A?Promise.resolve(A):WCe().then(function(L){(L=L?yYe:void 0)&&_.oZ("ytglobal.idbToken_",L);return L})};
HYr=function(A){if(!_.wN())throw A=new m7("AUTH_INVALID",{dbName:A}),_.cO(A),A;var L=_.gN();return{actualName:A+":"+L,publicName:A,userIdentifier:L}};
zDJ=function(A,L,O,X){var x,J,Y,T,V,E;return _.u(function(n){switch(n.nextAddress){case 1:return J=(x=Error().stack)!=null?x:"",n.yield(_.A4(),2);case 2:Y=n.yieldResult;if(!Y)throw T=IZ("openDbImpl",A,L),_.h("ytidb_async_stack_killswitch")||(T.stack=T.stack+"\n"+J.substring(J.indexOf("\n")+1)),_.cO(T),T;F5(A);V=O?{actualName:A,publicName:A,userIdentifier:void 0}:HYr(A);_.e4(n,3);return n.yield(QmP(V,Y),5);case 5:return n.yield(FCy(V.actualName,L,X),6);case 6:return n.return(n.yieldResult);case 3:return E=
_.S4(n),_.e4(n,7),n.yield(_.aZ(V.actualName,Y),9);case 9:_.zA(n,8);break;case 7:_.S4(n);case 8:throw E;}})};
Bhp=function(A,L,O){O=O===void 0?{}:O;return zDJ(A,L,!1,O)};
MMu=function(A,L,O){O=O===void 0?{}:O;return zDJ(A,L,!0,O)};
$au=function(A,L){L=L===void 0?{}:L;var O,X;return _.u(function(x){if(x.nextAddress==1)return x.yield(_.A4(),2);if(x.nextAddress!=3){O=x.yieldResult;if(!O)return x.return();F5(A);X=HYr(A);return x.yield(_.BO(X.actualName,L),3)}return x.yield(_.aZ(X.actualName,O),0)})};
any=function(A,L,O){A=A.map(function(X){return _.u(function(x){return x.nextAddress==1?x.yield(_.BO(X.actualName,L),2):x.yield(_.aZ(X.actualName,O),0)})});
return Promise.all(A).then(function(){})};
k1s=function(A){var L=L===void 0?{}:L;var O,X;return _.u(function(x){if(x.nextAddress==1)return x.yield(_.A4(),2);if(x.nextAddress!=3){O=x.yieldResult;if(!O)return x.return();F5(A);return x.yield(fn_(A,O),3)}X=x.yieldResult;return x.yield(any(X,L,O),0)})};
Uap=function(A,L){L=L===void 0?{}:L;var O;return _.u(function(X){if(X.nextAddress==1)return X.yield(_.A4(),2);if(X.nextAddress!=3){O=X.yieldResult;if(!O)return X.return();F5(A);return X.yield(_.BO(A,L),3)}return X.yield(_.aZ(A,O),0)})};
LH=function(A,L){return vBe(A,L)};
Aiu=function(A){return _.MO(oBu(),A)};
Lue=function(A,L,O,X){var x,J,Y;return _.u(function(T){switch(T.nextAddress){case 1:return x={config:A,hashData:L,timestamp:X!==void 0?X:(0,_.O$)()},T.yield(Aiu(O),2);case 2:return J=T.yieldResult,T.yield(J.clear("hotConfigStore"),3);case 3:return T.yield(J.put("hotConfigStore",x),4);case 4:return Y=T.yieldResult,T.return(Y)}})};
O3P=function(A,L,O,X,x){var J,Y,T;return _.u(function(V){switch(V.nextAddress){case 1:return J={config:A,hashData:L,configData:O,timestamp:x!==void 0?x:(0,_.O$)()},V.yield(Aiu(X),2);case 2:return Y=V.yieldResult,V.yield(Y.clear("coldConfigStore"),3);case 3:return V.yield(Y.put("coldConfigStore",J),4);case 4:return T=V.yieldResult,V.return(T)}})};
XyD=function(A){var L,O;return _.u(function(X){return X.nextAddress==1?X.yield(Aiu(A),2):X.nextAddress!=3?(L=X.yieldResult,O=void 0,X.yield(_.$$(L,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(x){return _.XW(x.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(J){O=J.getValue()})}),3)):X.return(O)})};
xTu=function(A){var L,O;return _.u(function(X){return X.nextAddress==1?X.yield(Aiu(A),2):X.nextAddress!=3?(L=X.yieldResult,O=void 0,X.yield(_.$$(L,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(x){return _.XW(x.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(J){O=J.getValue()})}),3)):X.return(O)})};
sas=function(){return _.u(function(A){return A.yield(k1s("ytGcfConfig"),0)})};
JiJ=function(){return"INNERTUBE_API_KEY"in _.RO&&"INNERTUBE_API_VERSION"in _.RO};
_.xo=function(){return{innertubeApiKey:_.ms("INNERTUBE_API_KEY"),innertubeApiVersion:_.ms("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.ms("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.ms("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.ms("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.ms("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.ms("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.ms("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.ms("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.fB("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.fB("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.ms("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.DTe=function(A){var L={client:{hl:A.innertubeContextHostLanguage,gl:A.innertubeContextGeoLocation,clientName:A.innertubeContextClientName,clientVersion:A.innertubeContextClientVersion,configInfo:A.innertubeContextClientConfigInfo}};navigator.userAgent&&(L.client.userAgent=String(navigator.userAgent));var O=_.Ou.devicePixelRatio;O&&O!=1&&(L.client.screenDensityFloat=String(O));O=GZr();O!==""&&(L.client.experimentsToken=O);O=lQp();O.length>0&&(L.request={internalExperimentFlags:O});Pne(A,void 0,L);
dTr(void 0,L);YPP(void 0,L);uZO(A,void 0,L);TMd(void 0,L);_.h("start_client_gcf")&&VQJ(void 0,L);_.ms("DELEGATED_SESSION_ID")&&!_.h("pageid_as_header_web")&&(L.user={onBehalfOfUser:_.ms("DELEGATED_SESSION_ID")});!_.h("fill_delegate_context_in_gel_killswitch")&&(A=_.ms("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(L.user=Object.assign({},L.user,{serializedDelegationContext:A}));A=_.ms("INNERTUBE_CONTEXT");var X;if(_.h("enable_persistent_device_token")&&(A==null?0:(X=A.client)==null?0:X.rolloutToken)){var x;
L.client.rolloutToken=A==null?void 0:(x=A.client)==null?void 0:x.rolloutToken}X=Object;x=X.assign;A=L.client;O={};for(var J=_.d(Object.entries(_.ME(_.ms("DEVICE","")))),Y=J.next();!Y.done;Y=J.next()){var T=_.d(Y.value);Y=T.next().value;T=T.next().value;Y==="cbrand"?O.deviceMake=T:Y==="cmodel"?O.deviceModel=T:Y==="cbr"?O.browserName=T:Y==="cbrver"?O.browserVersion=T:Y==="cos"?O.osName=T:Y==="cosver"?O.osVersion=T:Y==="cplatform"&&(O.platform=T)}L.client=x.call(X,A,O);return L};
Pne=function(A,L,O){A=A.innertubeContextClientName;if(A==="WEB"||A==="MWEB"||A===1||A===2)if(L){O=_.ET(L,ec_,96)||new ec_;var X=EcP();X=Object.keys(nc_).indexOf(X);X=X===-1?null:X;X!==null&&_.s$(O,3,X);_.eg(L,96,O)}else O&&(O.client.mainAppWebInfo=(X=O.client.mainAppWebInfo)!=null?X:{},O.client.mainAppWebInfo.webDisplayMode=EcP())};
dTr=function(A,L){var O=_.WY("yt.embedded_player.embed_url");O&&(A?(L=_.ET(A,tQs,7)||new tQs,_.gz(L,4,O),_.eg(A,7,L)):L&&(L.thirdParty={embedUrl:O}))};
YPP=function(A,L){var O;if(_.h("web_log_memory_total_kbytes")&&((O=_.Ou.navigator)==null?0:O.deviceMemory)){var X;O=(X=_.Ou.navigator)==null?void 0:X.deviceMemory;A?_.J4(A,95,sz(O*1E6)):L&&(L.client.memoryTotalKbytes=""+O*1E6)}};
uZO=function(A,L,O){if(A.appInstallData)if(L){var X;O=(X=_.ET(L,P1,62))!=null?X:new P1;_.gz(O,6,A.appInstallData);_.eg(L,62,O)}else O&&(O.client.configInfo=O.client.configInfo||{},O.client.configInfo.appInstallData=A.appInstallData)};
TMd=function(A,L){var O=_.Ths();O&&(A?_.s$(A,61,b3P[O]):L&&(L.client.connectionType=O));_.h("web_log_effective_connection_type")&&(O=Dau())&&(A?_.s$(A,94,hcO[O]):L&&(L.client.effectiveConnectionType=O))};
_.gc9=function(A,L,O){O=O===void 0?{}:O;var X={};_.ms("EOM_VISITOR_DATA")?X={"X-Goog-EOM-Visitor-Id":_.ms("EOM_VISITOR_DATA")}:X={"X-Goog-Visitor-Id":O.visitorData||_.ms("VISITOR_DATA","")};if(L&&L.includes("www.youtube-nocookie.com"))return X;L=O.authorization||_.ms("AUTHORIZATION");L||(A?L="Bearer "+_.WY("gapi.auth.getToken")().access_token:(SPP.instance||(SPP.instance=new SPP),A=qPy(),_.h("pageid_as_header_web")||delete A["X-Goog-PageId"],X=Object.assign({},X,A)));L&&(X.Authorization=L);return X};
VQJ=function(A,L){var O=wyp();if(O){var X=O.coldConfigData,x=O.coldHashData;O=O.hotHashData;if(A){var J;L=(J=_.ET(A,P1,62))!=null?J:new P1;X=_.gz(L,1,X);_.gz(X,3,x).setHotHashData(O);_.eg(A,62,L)}else L&&(L.client.configInfo=L.client.configInfo||{},X&&(L.client.configInfo.coldConfigData=X),x&&(L.client.configInfo.coldHashData=x),O&&(L.client.configInfo.hotHashData=O))}};
dR=function(A){for(var L=A.length;--L>=0;)A[L]=0};
py9=function(A,L,O,X,x){this.static_tree=A;this.extra_bits=L;this.extra_base=O;this.elems=X;this.max_length=x;this.has_stree=A&&A.length};
i3J=function(A,L){this.dyn_tree=A;this.max_code=0;this.stat_desc=L};
Yo=function(A,L){A.pending_buf[A.pending++]=L&255;A.pending_buf[A.pending++]=L>>>8&255};
u8=function(A,L,O){A.bi_valid>16-O?(A.bi_buf|=L<<A.bi_valid&65535,Yo(A,A.bi_buf),A.bi_buf=L>>16-A.bi_valid,A.bi_valid+=O-16):(A.bi_buf|=L<<A.bi_valid&65535,A.bi_valid+=O)};
TY=function(A,L,O){u8(A,O[L*2],O[L*2+1])};
NMD=function(A,L){var O=0;do O|=A&1,A>>>=1,O<<=1;while(--L>0);return O>>>1};
riO=function(A,L,O){var X=Array(16),x=0,J;for(J=1;J<=15;J++)X[J]=x=x+O[J-1]<<1;for(O=0;O<=L;O++)x=A[O*2+1],x!==0&&(A[O*2]=NMD(X[x]++,x))};
Ku_=function(A){var L;for(L=0;L<286;L++)A.dyn_ltree[L*2]=0;for(L=0;L<30;L++)A.dyn_dtree[L*2]=0;for(L=0;L<19;L++)A.bl_tree[L*2]=0;A.dyn_ltree[512]=1;A.opt_len=A.static_len=0;A.last_lit=A.matches=0};
Gm_=function(A){A.bi_valid>8?Yo(A,A.bi_buf):A.bi_valid>0&&(A.pending_buf[A.pending++]=A.bi_buf);A.bi_buf=0;A.bi_valid=0};
l9y=function(A,L,O){Gm_(A);Yo(A,O);Yo(A,~O);Vb.arraySet(A.pending_buf,A.window,L,O,A.pending);A.pending+=O};
ciD=function(A,L,O,X){var x=L*2,J=O*2;return A[x]<A[J]||A[x]===A[J]&&X[L]<=X[O]};
Cny=function(A,L,O){for(var X=A.heap[O],x=O<<1;x<=A.heap_len;){x<A.heap_len&&ciD(L,A.heap[x+1],A.heap[x],A.depth)&&x++;if(ciD(L,X,A.heap[x],A.depth))break;A.heap[O]=A.heap[x];O=x;x<<=1}A.heap[O]=X};
f9s=function(A,L,O){var X=0;if(A.last_lit!==0){do{var x=A.pending_buf[A.d_buf+X*2]<<8|A.pending_buf[A.d_buf+X*2+1];var J=A.pending_buf[A.l_buf+X];X++;if(x===0)TY(A,J,L);else{var Y=Dc[J];TY(A,Y+256+1,L);var T=FuP[Y];T!==0&&(J-=Rcs[Y],u8(A,J,T));x--;Y=x<256?eY[x]:eY[256+(x>>>7)];TY(A,Y,O);T=Qar[Y];T!==0&&(x-=mTd[Y],u8(A,x,T))}}while(X<A.last_lit)}TY(A,256,L)};
I9e=function(A,L){var O=L.dyn_tree,X=L.stat_desc.static_tree,x=L.stat_desc.has_stree,J=L.stat_desc.elems,Y,T=-1;A.heap_len=0;A.heap_max=573;for(Y=0;Y<J;Y++)O[Y*2]!==0?(A.heap[++A.heap_len]=T=Y,A.depth[Y]=0):O[Y*2+1]=0;for(;A.heap_len<2;){var V=A.heap[++A.heap_len]=T<2?++T:0;O[V*2]=1;A.depth[V]=0;A.opt_len--;x&&(A.static_len-=X[V*2+1])}L.max_code=T;for(Y=A.heap_len>>1;Y>=1;Y--)Cny(A,O,Y);V=J;do Y=A.heap[1],A.heap[1]=A.heap[A.heap_len--],Cny(A,O,1),X=A.heap[1],A.heap[--A.heap_max]=Y,A.heap[--A.heap_max]=
X,O[V*2]=O[Y*2]+O[X*2],A.depth[V]=(A.depth[Y]>=A.depth[X]?A.depth[Y]:A.depth[X])+1,O[Y*2+1]=O[X*2+1]=V,A.heap[1]=V++,Cny(A,O,1);while(A.heap_len>=2);A.heap[--A.heap_max]=A.heap[1];Y=L.dyn_tree;V=L.max_code;X=L.stat_desc.static_tree;x=L.stat_desc.has_stree;J=L.stat_desc.extra_bits;var E=L.stat_desc.extra_base,n=L.stat_desc.max_length,t,b=0;for(t=0;t<=15;t++)A.bl_count[t]=0;Y[A.heap[A.heap_max]*2+1]=0;for(L=A.heap_max+1;L<573;L++){var S=A.heap[L];t=Y[Y[S*2+1]*2+1]+1;t>n&&(t=n,b++);Y[S*2+1]=t;if(!(S>
V)){A.bl_count[t]++;var w=0;S>=E&&(w=J[S-E]);var l=Y[S*2];A.opt_len+=l*(t+w);x&&(A.static_len+=l*(X[S*2+1]+w))}}if(b!==0){do{for(t=n-1;A.bl_count[t]===0;)t--;A.bl_count[t]--;A.bl_count[t+1]+=2;A.bl_count[n]--;b-=2}while(b>0);for(t=n;t!==0;t--)for(S=A.bl_count[t];S!==0;)X=A.heap[--L],X>V||(Y[X*2+1]!==t&&(A.opt_len+=(t-Y[X*2+1])*Y[X*2],Y[X*2+1]=t),S--)}riO(O,T,A.bl_count)};
yi9=function(A,L,O){var X,x=-1,J=L[1],Y=0,T=7,V=4;J===0&&(T=138,V=3);L[(O+1)*2+1]=65535;for(X=0;X<=O;X++){var E=J;J=L[(X+1)*2+1];++Y<T&&E===J||(Y<V?A.bl_tree[E*2]+=Y:E!==0?(E!==x&&A.bl_tree[E*2]++,A.bl_tree[32]++):Y<=10?A.bl_tree[34]++:A.bl_tree[36]++,Y=0,x=E,J===0?(T=138,V=3):E===J?(T=6,V=3):(T=7,V=4))}};
Z3s=function(A,L,O){var X,x=-1,J=L[1],Y=0,T=7,V=4;J===0&&(T=138,V=3);for(X=0;X<=O;X++){var E=J;J=L[(X+1)*2+1];if(!(++Y<T&&E===J)){if(Y<V){do TY(A,E,A.bl_tree);while(--Y!==0)}else E!==0?(E!==x&&(TY(A,E,A.bl_tree),Y--),TY(A,16,A.bl_tree),u8(A,Y-3,2)):Y<=10?(TY(A,17,A.bl_tree),u8(A,Y-3,3)):(TY(A,18,A.bl_tree),u8(A,Y-11,7));Y=0;x=E;J===0?(T=138,V=3):E===J?(T=6,V=3):(T=7,V=4)}}};
jae=function(A){var L=4093624447,O;for(O=0;O<=31;O++,L>>>=1)if(L&1&&A.dyn_ltree[O*2]!==0)return 0;if(A.dyn_ltree[18]!==0||A.dyn_ltree[20]!==0||A.dyn_ltree[26]!==0)return 1;for(O=32;O<256;O++)if(A.dyn_ltree[O*2]!==0)return 1;return 0};
E$=function(A,L,O){A.pending_buf[A.d_buf+A.last_lit*2]=L>>>8&255;A.pending_buf[A.d_buf+A.last_lit*2+1]=L&255;A.pending_buf[A.l_buf+A.last_lit]=O&255;A.last_lit++;L===0?A.dyn_ltree[O*2]++:(A.matches++,L--,A.dyn_ltree[(Dc[O]+256+1)*2]++,A.dyn_dtree[(L<256?eY[L]:eY[256+(L>>>7)])*2]++);return A.last_lit===A.lit_bufsize-1};
t4=function(A,L){A.msg=nH[L];return L};
b8=function(A){for(var L=A.length;--L>=0;)A[L]=0};
h4=function(A){var L=A.state,O=L.pending;O>A.avail_out&&(O=A.avail_out);O!==0&&(Vb.arraySet(A.output,L.pending_buf,L.pending_out,O,A.next_out),A.next_out+=O,L.pending_out+=O,A.total_out+=O,A.avail_out-=O,L.pending-=O,L.pending===0&&(L.pending_out=0))};
wR=function(A,L){var O=A.block_start>=0?A.block_start:-1,X=A.strstart-A.block_start,x=0;if(A.level>0){A.strm.data_type===2&&(A.strm.data_type=jae(A));I9e(A,A.l_desc);I9e(A,A.d_desc);yi9(A,A.dyn_ltree,A.l_desc.max_code);yi9(A,A.dyn_dtree,A.d_desc.max_code);I9e(A,A.bl_desc);for(x=18;x>=3&&A.bl_tree[WuJ[x]*2+1]===0;x--);A.opt_len+=3*(x+1)+5+5+4;var J=A.opt_len+3+7>>>3;var Y=A.static_len+3+7>>>3;Y<=J&&(J=Y)}else J=Y=X+5;if(X+4<=J&&O!==-1)u8(A,L?1:0,3),l9y(A,O,X);else if(A.strategy===4||Y===J)u8(A,2+(L?
1:0),3),f9s(A,SY,q6);else{u8(A,4+(L?1:0),3);O=A.l_desc.max_code+1;X=A.d_desc.max_code+1;x+=1;u8(A,O-257,5);u8(A,X-1,5);u8(A,x-4,4);for(J=0;J<x;J++)u8(A,A.bl_tree[WuJ[J]*2+1],3);Z3s(A,A.dyn_ltree,O-1);Z3s(A,A.dyn_dtree,X-1);f9s(A,A.dyn_ltree,A.dyn_dtree)}Ku_(A);L&&Gm_(A);A.block_start=A.strstart;h4(A.strm)};
pH=function(A,L){A.pending_buf[A.pending++]=L};
i8=function(A,L){A.pending_buf[A.pending++]=L>>>8&255;A.pending_buf[A.pending++]=L&255};
H3d=function(A,L){var O=A.max_chain_length,X=A.strstart,x=A.prev_length,J=A.nice_match,Y=A.strstart>A.w_size-262?A.strstart-(A.w_size-262):0,T=A.window,V=A.w_mask,E=A.prev,n=A.strstart+258,t=T[X+x-1],b=T[X+x];A.prev_length>=A.good_match&&(O>>=2);J>A.lookahead&&(J=A.lookahead);do{var S=L;if(T[S+x]===b&&T[S+x-1]===t&&T[S]===T[X]&&T[++S]===T[X+1]){X+=2;for(S++;T[++X]===T[++S]&&T[++X]===T[++S]&&T[++X]===T[++S]&&T[++X]===T[++S]&&T[++X]===T[++S]&&T[++X]===T[++S]&&T[++X]===T[++S]&&T[++X]===T[++S]&&X<n;);
S=258-(n-X);X=n-258;if(S>x){A.match_start=L;x=S;if(S>=J)break;t=T[X+x-1];b=T[X+x]}}}while((L=E[L&V])>Y&&--O!==0);return x<=A.lookahead?x:A.lookahead};
rR=function(A){var L=A.w_size,O;do{var X=A.window_size-A.lookahead-A.strstart;if(A.strstart>=L+(L-262)){Vb.arraySet(A.window,A.window,L,L,0);A.match_start-=L;A.strstart-=L;A.block_start-=L;var x=O=A.hash_size;do{var J=A.head[--x];A.head[x]=J>=L?J-L:0}while(--O);x=O=L;do J=A.prev[--x],A.prev[x]=J>=L?J-L:0;while(--O);X+=L}if(A.strm.avail_in===0)break;x=A.strm;O=A.window;J=A.strstart+A.lookahead;var Y=x.avail_in;Y>X&&(Y=X);Y===0?O=0:(x.avail_in-=Y,Vb.arraySet(O,x.input,x.next_in,Y,J),x.state.wrap===
1?x.adler=zcP(x.adler,O,Y,J):x.state.wrap===2&&(x.adler=N6(x.adler,O,Y,J)),x.next_in+=Y,x.total_in+=Y,O=Y);A.lookahead+=O;if(A.lookahead+A.insert>=3)for(X=A.strstart-A.insert,A.ins_h=A.window[X],A.ins_h=(A.ins_h<<A.hash_shift^A.window[X+1])&A.hash_mask;A.insert&&!(A.ins_h=(A.ins_h<<A.hash_shift^A.window[X+3-1])&A.hash_mask,A.prev[X&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=X,X++,A.insert--,A.lookahead+A.insert<3););}while(A.lookahead<262&&A.strm.avail_in!==0)};
BMJ=function(A,L){for(var O;;){if(A.lookahead<262){rR(A);if(A.lookahead<262&&L===0)return 1;if(A.lookahead===0)break}O=0;A.lookahead>=3&&(A.ins_h=(A.ins_h<<A.hash_shift^A.window[A.strstart+3-1])&A.hash_mask,O=A.prev[A.strstart&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=A.strstart);O!==0&&A.strstart-O<=A.w_size-262&&(A.match_length=H3d(A,O));if(A.match_length>=3)if(O=E$(A,A.strstart-A.match_start,A.match_length-3),A.lookahead-=A.match_length,A.match_length<=A.max_lazy_match&&A.lookahead>=3){A.match_length--;
do A.strstart++,A.ins_h=(A.ins_h<<A.hash_shift^A.window[A.strstart+3-1])&A.hash_mask,A.prev[A.strstart&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=A.strstart;while(--A.match_length!==0);A.strstart++}else A.strstart+=A.match_length,A.match_length=0,A.ins_h=A.window[A.strstart],A.ins_h=(A.ins_h<<A.hash_shift^A.window[A.strstart+1])&A.hash_mask;else O=E$(A,0,A.window[A.strstart]),A.lookahead--,A.strstart++;if(O&&(wR(A,!1),A.strm.avail_out===0))return 1}A.insert=A.strstart<2?A.strstart:2;return L===4?(wR(A,
!0),A.strm.avail_out===0?3:4):A.last_lit&&(wR(A,!1),A.strm.avail_out===0)?1:2};
KH=function(A,L){for(var O,X;;){if(A.lookahead<262){rR(A);if(A.lookahead<262&&L===0)return 1;if(A.lookahead===0)break}O=0;A.lookahead>=3&&(A.ins_h=(A.ins_h<<A.hash_shift^A.window[A.strstart+3-1])&A.hash_mask,O=A.prev[A.strstart&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=A.strstart);A.prev_length=A.match_length;A.prev_match=A.match_start;A.match_length=2;O!==0&&A.prev_length<A.max_lazy_match&&A.strstart-O<=A.w_size-262&&(A.match_length=H3d(A,O),A.match_length<=5&&(A.strategy===1||A.match_length===3&&
A.strstart-A.match_start>4096)&&(A.match_length=2));if(A.prev_length>=3&&A.match_length<=A.prev_length){X=A.strstart+A.lookahead-3;O=E$(A,A.strstart-1-A.prev_match,A.prev_length-3);A.lookahead-=A.prev_length-1;A.prev_length-=2;do++A.strstart<=X&&(A.ins_h=(A.ins_h<<A.hash_shift^A.window[A.strstart+3-1])&A.hash_mask,A.prev[A.strstart&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=A.strstart);while(--A.prev_length!==0);A.match_available=0;A.match_length=2;A.strstart++;if(O&&(wR(A,!1),A.strm.avail_out===0))return 1}else if(A.match_available){if((O=
E$(A,0,A.window[A.strstart-1]))&&wR(A,!1),A.strstart++,A.lookahead--,A.strm.avail_out===0)return 1}else A.match_available=1,A.strstart++,A.lookahead--}A.match_available&&(E$(A,0,A.window[A.strstart-1]),A.match_available=0);A.insert=A.strstart<2?A.strstart:2;return L===4?(wR(A,!0),A.strm.avail_out===0?3:4):A.last_lit&&(wR(A,!1),A.strm.avail_out===0)?1:2};
MQu=function(A,L){for(var O,X,x,J=A.window;;){if(A.lookahead<=258){rR(A);if(A.lookahead<=258&&L===0)return 1;if(A.lookahead===0)break}A.match_length=0;if(A.lookahead>=3&&A.strstart>0&&(X=A.strstart-1,O=J[X],O===J[++X]&&O===J[++X]&&O===J[++X])){for(x=A.strstart+258;O===J[++X]&&O===J[++X]&&O===J[++X]&&O===J[++X]&&O===J[++X]&&O===J[++X]&&O===J[++X]&&O===J[++X]&&X<x;);A.match_length=258-(x-X);A.match_length>A.lookahead&&(A.match_length=A.lookahead)}A.match_length>=3?(O=E$(A,1,A.match_length-3),A.lookahead-=
A.match_length,A.strstart+=A.match_length,A.match_length=0):(O=E$(A,0,A.window[A.strstart]),A.lookahead--,A.strstart++);if(O&&(wR(A,!1),A.strm.avail_out===0))return 1}A.insert=0;return L===4?(wR(A,!0),A.strm.avail_out===0?3:4):A.last_lit&&(wR(A,!1),A.strm.avail_out===0)?1:2};
$TO=function(A,L){for(var O;;){if(A.lookahead===0&&(rR(A),A.lookahead===0)){if(L===0)return 1;break}A.match_length=0;O=E$(A,0,A.window[A.strstart]);A.lookahead--;A.strstart++;if(O&&(wR(A,!1),A.strm.avail_out===0))return 1}A.insert=0;return L===4?(wR(A,!0),A.strm.avail_out===0?3:4):A.last_lit&&(wR(A,!1),A.strm.avail_out===0)?1:2};
GY=function(A,L,O,X,x){this.good_length=A;this.max_lazy=L;this.nice_length=O;this.max_chain=X;this.func=x};
a9u=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 Vb.Buf16(1146);this.dyn_dtree=new Vb.Buf16(122);this.bl_tree=new Vb.Buf16(78);b8(this.dyn_ltree);b8(this.dyn_dtree);b8(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new Vb.Buf16(16);this.heap=new Vb.Buf16(573);b8(this.heap);this.heap_max=this.heap_len=0;this.depth=new Vb.Buf16(573);b8(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};
km_=function(A,L){if(!A||!A.state||L>5||L<0)return A?t4(A,-2):-2;var O=A.state;if(!A.output||!A.input&&A.avail_in!==0||O.status===666&&L!==4)return t4(A,A.avail_out===0?-5:-2);O.strm=A;var X=O.last_flush;O.last_flush=L;if(O.status===42)if(O.wrap===2)A.adler=0,pH(O,31),pH(O,139),pH(O,8),O.gzhead?(pH(O,(O.gzhead.text?1:0)+(O.gzhead.hcrc?2:0)+(O.gzhead.extra?4:0)+(O.gzhead.name?8:0)+(O.gzhead.comment?16:0)),pH(O,O.gzhead.time&255),pH(O,O.gzhead.time>>8&255),pH(O,O.gzhead.time>>16&255),pH(O,O.gzhead.time>>
24&255),pH(O,O.level===9?2:O.strategy>=2||O.level<2?4:0),pH(O,O.gzhead.os&255),O.gzhead.extra&&O.gzhead.extra.length&&(pH(O,O.gzhead.extra.length&255),pH(O,O.gzhead.extra.length>>8&255)),O.gzhead.hcrc&&(A.adler=N6(A.adler,O.pending_buf,O.pending,0)),O.gzindex=0,O.status=69):(pH(O,0),pH(O,0),pH(O,0),pH(O,0),pH(O,0),pH(O,O.level===9?2:O.strategy>=2||O.level<2?4:0),pH(O,3),O.status=113);else{var x=8+(O.w_bits-8<<4)<<8;x|=(O.strategy>=2||O.level<2?0:O.level<6?1:O.level===6?2:3)<<6;O.strstart!==0&&(x|=
32);O.status=113;i8(O,x+(31-x%31));O.strstart!==0&&(i8(O,A.adler>>>16),i8(O,A.adler&65535));A.adler=1}if(O.status===69)if(O.gzhead.extra){for(x=O.pending;O.gzindex<(O.gzhead.extra.length&65535)&&(O.pending!==O.pending_buf_size||(O.gzhead.hcrc&&O.pending>x&&(A.adler=N6(A.adler,O.pending_buf,O.pending-x,x)),h4(A),x=O.pending,O.pending!==O.pending_buf_size));)pH(O,O.gzhead.extra[O.gzindex]&255),O.gzindex++;O.gzhead.hcrc&&O.pending>x&&(A.adler=N6(A.adler,O.pending_buf,O.pending-x,x));O.gzindex===O.gzhead.extra.length&&
(O.gzindex=0,O.status=73)}else O.status=73;if(O.status===73)if(O.gzhead.name){x=O.pending;do{if(O.pending===O.pending_buf_size&&(O.gzhead.hcrc&&O.pending>x&&(A.adler=N6(A.adler,O.pending_buf,O.pending-x,x)),h4(A),x=O.pending,O.pending===O.pending_buf_size)){var J=1;break}J=O.gzindex<O.gzhead.name.length?O.gzhead.name.charCodeAt(O.gzindex++)&255:0;pH(O,J)}while(J!==0);O.gzhead.hcrc&&O.pending>x&&(A.adler=N6(A.adler,O.pending_buf,O.pending-x,x));J===0&&(O.gzindex=0,O.status=91)}else O.status=91;if(O.status===
91)if(O.gzhead.comment){x=O.pending;do{if(O.pending===O.pending_buf_size&&(O.gzhead.hcrc&&O.pending>x&&(A.adler=N6(A.adler,O.pending_buf,O.pending-x,x)),h4(A),x=O.pending,O.pending===O.pending_buf_size)){J=1;break}J=O.gzindex<O.gzhead.comment.length?O.gzhead.comment.charCodeAt(O.gzindex++)&255:0;pH(O,J)}while(J!==0);O.gzhead.hcrc&&O.pending>x&&(A.adler=N6(A.adler,O.pending_buf,O.pending-x,x));J===0&&(O.status=103)}else O.status=103;O.status===103&&(O.gzhead.hcrc?(O.pending+2>O.pending_buf_size&&h4(A),
O.pending+2<=O.pending_buf_size&&(pH(O,A.adler&255),pH(O,A.adler>>8&255),A.adler=0,O.status=113)):O.status=113);if(O.pending!==0){if(h4(A),A.avail_out===0)return O.last_flush=-1,0}else if(A.avail_in===0&&(L<<1)-(L>4?9:0)<=(X<<1)-(X>4?9:0)&&L!==4)return t4(A,-5);if(O.status===666&&A.avail_in!==0)return t4(A,-5);if(A.avail_in!==0||O.lookahead!==0||L!==0&&O.status!==666){X=O.strategy===2?$TO(O,L):O.strategy===3?MQu(O,L):l8[O.level].func(O,L);if(X===3||X===4)O.status=666;if(X===1||X===3)return A.avail_out===
0&&(O.last_flush=-1),0;if(X===2&&(L===1?(u8(O,2,3),TY(O,256,SY),O.bi_valid===16?(Yo(O,O.bi_buf),O.bi_buf=0,O.bi_valid=0):O.bi_valid>=8&&(O.pending_buf[O.pending++]=O.bi_buf&255,O.bi_buf>>=8,O.bi_valid-=8)):L!==5&&(u8(O,0,3),l9y(O,0,0),L===3&&(b8(O.head),O.lookahead===0&&(O.strstart=0,O.block_start=0,O.insert=0))),h4(A),A.avail_out===0))return O.last_flush=-1,0}if(L!==4)return 0;if(O.wrap<=0)return 1;O.wrap===2?(pH(O,A.adler&255),pH(O,A.adler>>8&255),pH(O,A.adler>>16&255),pH(O,A.adler>>24&255),pH(O,
A.total_in&255),pH(O,A.total_in>>8&255),pH(O,A.total_in>>16&255),pH(O,A.total_in>>24&255)):(i8(O,A.adler>>>16),i8(O,A.adler&65535));h4(A);O.wrap>0&&(O.wrap=-O.wrap);return O.pending!==0?0:1};
UTu=function(A){if(!(this instanceof UTu))return new UTu(A);A=this.options=Vb.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},A||{});A.raw&&A.windowBits>0?A.windowBits=-A.windowBits:A.gzip&&A.windowBits>0&&A.windowBits<16&&(A.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new vcM;this.strm.avail_out=0;var L=this.strm;var O=A.level,X=A.method,x=A.windowBits,J=A.memLevel,Y=A.strategy;if(L){var T=1;O===-1&&(O=6);x<0?(T=0,x=-x):x>15&&
(T=2,x-=16);if(J<1||J>9||X!==8||x<8||x>15||O<0||O>9||Y<0||Y>4)L=t4(L,-2);else{x===8&&(x=9);var V=new a9u;L.state=V;V.strm=L;V.wrap=T;V.gzhead=null;V.w_bits=x;V.w_size=1<<V.w_bits;V.w_mask=V.w_size-1;V.hash_bits=J+7;V.hash_size=1<<V.hash_bits;V.hash_mask=V.hash_size-1;V.hash_shift=~~((V.hash_bits+3-1)/3);V.window=new Vb.Buf8(V.w_size*2);V.head=new Vb.Buf16(V.hash_size);V.prev=new Vb.Buf16(V.w_size);V.lit_bufsize=1<<J+6;V.pending_buf_size=V.lit_bufsize*4;V.pending_buf=new Vb.Buf8(V.pending_buf_size);
V.d_buf=V.lit_bufsize;V.l_buf=3*V.lit_bufsize;V.level=O;V.strategy=Y;V.method=X;if(L&&L.state){L.total_in=L.total_out=0;L.data_type=2;O=L.state;O.pending=0;O.pending_out=0;O.wrap<0&&(O.wrap=-O.wrap);O.status=O.wrap?42:113;L.adler=O.wrap===2?0:1;O.last_flush=0;if(!ocD){X=Array(16);for(J=Y=0;J<28;J++)for(Rcs[J]=Y,x=0;x<1<<FuP[J];x++)Dc[Y++]=J;Dc[Y-1]=J;for(J=Y=0;J<16;J++)for(mTd[J]=Y,x=0;x<1<<Qar[J];x++)eY[Y++]=J;for(Y>>=7;J<30;J++)for(mTd[J]=Y<<7,x=0;x<1<<Qar[J]-7;x++)eY[256+Y++]=J;for(x=0;x<=15;x++)X[x]=
0;for(x=0;x<=143;)SY[x*2+1]=8,x++,X[8]++;for(;x<=255;)SY[x*2+1]=9,x++,X[9]++;for(;x<=279;)SY[x*2+1]=7,x++,X[7]++;for(;x<=287;)SY[x*2+1]=8,x++,X[8]++;riO(SY,287,X);for(x=0;x<30;x++)q6[x*2+1]=5,q6[x*2]=NMD(x,5);ATJ=new py9(SY,FuP,257,286,15);LiD=new py9(q6,Qar,0,30,15);O4d=new py9([],XDy,0,19,7);ocD=!0}O.l_desc=new i3J(O.dyn_ltree,ATJ);O.d_desc=new i3J(O.dyn_dtree,LiD);O.bl_desc=new i3J(O.bl_tree,O4d);O.bi_buf=0;O.bi_valid=0;Ku_(O);O=0}else O=t4(L,-2);O===0&&(L=L.state,L.window_size=2*L.w_size,b8(L.head),
L.max_lazy_match=l8[L.level].max_lazy,L.good_match=l8[L.level].good_length,L.nice_match=l8[L.level].nice_length,L.max_chain_length=l8[L.level].max_chain,L.strstart=0,L.block_start=0,L.lookahead=0,L.insert=0,L.match_length=L.prev_length=2,L.match_available=0,L.ins_h=0);L=O}}else L=-2;if(L!==0)throw Error(nH[L]);A.header&&(L=this.strm)&&L.state&&L.state.wrap===2&&(L.state.gzhead=A.header);if(A.dictionary){var E;typeof A.dictionary==="string"?E=xRM(A.dictionary):sJp.call(A.dictionary)==="[object ArrayBuffer]"?
E=new Uint8Array(A.dictionary):E=A.dictionary;A=this.strm;J=E;Y=J.length;if(A&&A.state)if(E=A.state,L=E.wrap,L===2||L===1&&E.status!==42||E.lookahead)L=-2;else{L===1&&(A.adler=zcP(A.adler,J,Y,0));E.wrap=0;Y>=E.w_size&&(L===0&&(b8(E.head),E.strstart=0,E.block_start=0,E.insert=0),O=new Vb.Buf8(E.w_size),Vb.arraySet(O,J,Y-E.w_size,E.w_size,0),J=O,Y=E.w_size);O=A.avail_in;X=A.next_in;x=A.input;A.avail_in=Y;A.next_in=0;A.input=J;for(rR(E);E.lookahead>=3;){J=E.strstart;Y=E.lookahead-2;do E.ins_h=(E.ins_h<<
E.hash_shift^E.window[J+3-1])&E.hash_mask,E.prev[J&E.w_mask]=E.head[E.ins_h],E.head[E.ins_h]=J,J++;while(--Y);E.strstart=J;E.lookahead=2;rR(E)}E.strstart+=E.lookahead;E.block_start=E.strstart;E.insert=E.lookahead;E.lookahead=0;E.match_length=E.prev_length=2;E.match_available=0;A.next_in=X;A.input=x;A.avail_in=O;E.wrap=L;L=0}else L=-2;if(L!==0)throw Error(nH[L]);this._dict_set=!0}};
JTr=function(A,L){L=L||{};L.gzip=!0;L=new UTu(L);L.push(A,!0);if(L.err)throw L.msg||nH[L.err];return L.result};
dR_=function(A,L){var O=Pyd();O&&O.publish.call(O,A.toString(),A,L)};
DRJ=function(A,L,O){var X=Pyd();if(!X)return 0;var x=X.subscribe(A.toString(),function(J,Y){var T=_.WY("ytPubsub2Pubsub2SkipSubKey");T&&T==x||(T=function(){if(Ybe[x])try{if(Y&&A instanceof uS9&&A!=J)try{var V=A.dataClass,E=Y;if(!E.args||!E.version)throw Error("Wc");try{if(!V.version_){var n=new V;V.version_=n.version}var t=V.version_}catch(b){}if(!t||E.version!=t)throw Error("Xc");try{Y=Reflect.construct(V,_.Ze(E.args))}catch(b){throw b.message="yt.pubsub2.Data.deserialize(): "+b.message,b;}}catch(b){throw b.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+A.toString()+": "+b.message,b;}L.call(O||window,Y)}catch(b){_.IO(b)}},Td_[A.toString()]?_.WY("yt.scheduler.instance")?_.c1.addLowPriorityJob(T):_.TA(T,0):T())});
Ybe[x]=!0;VqP[A.toString()]||(VqP[A.toString()]=[]);VqP[A.toString()].push(x);return x};
tq9=function(){var A=eB9,L=DRJ(EJP,function(O){A.apply(void 0,arguments);nJs(L)});
return L};
nJs=function(A){var L=Pyd();L&&(typeof A==="number"&&(A=[A]),_.BY(A,function(O){L.unsubscribeByKey(O);delete Ybe[O]}))};
Pyd=function(){return _.WY("ytPubsub2Pubsub2Instance")};
b49=function(A,L,O){O=O===void 0?{sampleRate:.1}:O;Math.random()<Math.min(.02,O.sampleRate/100)&&dR_("meta_logging_csi_event",{timerName:A,timelineData:L})};
_.hBM=function(A){return A?(A=A.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.$W(A):null:null};
_.CH=function(A){return A?(A=A.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.gw(A):null:null};
qbd=function(){Sbe||(Sbe=_.CH(_.ms("WORKER_SERIALIZATION_URL")));return Sbe||void 0};
_.wDy=function(){var A=qbd();gJe||A===void 0||(gJe=new Worker(_.ww(A),void 0));return gJe};
_.pD_=function(){return typeof Worker==="function"&&qbd()?!0:!1};
_.Ki_=function(){if(_.pD_()&&!i4D){var A=function(O){O=O.data;if(O.op==="gzippedGelBatch"){var X=NdM.get(O.key);X&&(rT_(O.gzippedBatch,X.latencyPayload,X.url,X.options,X.sendFn),NdM.delete(O.key))}},L=_.wDy();
L&&(L.addEventListener("message",A),L.onerror=function(){NdM.clear()},i4D=!0)}};
QJu=function(A,L,O,X,x){x=x===void 0?!1:x;var J={startTime:(0,_.O$)(),ticks:{},infos:{}};if(FW)try{var Y=GK9(L);if(Y!=null&&(Y>lBu||Y<cTe))X(A,O);else{if(_.h("gzip_gel_with_worker")&&(_.h("initial_gzip_use_main_thread")&&!CyJ||!_.h("initial_gzip_use_main_thread"))){i4D||_.Ki_();var T=_.wDy();if(T&&!x){NdM.set(Fi_,{latencyPayload:J,url:A,options:O,sendFn:X});T.postMessage({op:"gelBatchToGzip",serializedBatch:L,key:Fi_});Fi_++;return}}var V=JTr(RBO(L));rT_(V,J,A,O,X)}}catch(E){_.HY(E),X(A,O)}else X(A,
O)};
rT_=function(A,L,O,X,x){CyJ=!1;var J=(0,_.O$)();L.ticks.gelc=J;RN++;_.h("disable_compression_due_to_performance_degredation")&&J-L.startTime>=mRu&&(fBD++,_.h("abandon_compression_after_N_slow_zips")?RN===_.PO("compression_disable_point")&&fBD>IBy&&(FW=!1):FW=!1);yTe(L);X.headers||(X.headers={});X.headers["Content-Encoding"]="gzip";X.postBody=A;X.postParams=void 0;x(O,X)};
Z4r=function(A){var L=L===void 0?!1:L;var O=O===void 0?!1:O;var X=(0,_.O$)(),x={startTime:X,ticks:{},infos:{}},J=L?_.WY("yt.logging.gzipForFetch",!1):!0;if(FW&&J){if(!A.body)return A;try{var Y=O?A.body:typeof A.body==="string"?A.body:JSON.stringify(A.body);J=Y;if(!O&&typeof Y==="string"){var T=GK9(Y);if(T!=null&&(T>lBu||T<cTe))return A;O=L?{level:1}:void 0;J=JTr(RBO(Y),O);var V=(0,_.O$)();x.ticks.gelc=V;if(L){RN++;if((_.h("disable_compression_due_to_performance_degredation")||_.h("disable_compression_due_to_performance_degradation_lr"))&&
V-X>=mRu)if(fBD++,_.h("abandon_compression_after_N_slow_zips")||_.h("abandon_compression_after_N_slow_zips_lr")){L=fBD/RN;var E=IBy/_.PO("compression_disable_point");RN>0&&RN%_.PO("compression_disable_point")===0&&L>=E&&(FW=!1)}else FW=!1;yTe(x)}}A.headers=Object.assign({},{"Content-Encoding":"gzip"},A.headers||{});A.body=J;return A}catch(n){return _.HY(n),A}}else return A};
GK9=function(A){try{return(new Blob(A.split(""))).size}catch(L){return _.HY(L),null}};
yTe=function(A){_.h("gel_compression_csi_killswitch")||!_.h("log_gel_compression_latency")&&!_.h("log_gel_compression_latency_lr")||b49("gel_compression",A,{sampleRate:.1})};
jJJ=function(){this.blockSize=-1};
Qb=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var A=1;A<this.blockSize;++A)this.pad_[A]=0;this.total_=this.inbuf_=0;this.reset()};
H49=function(A){A=Object.assign({},A);delete A.Authorization;var L=_.WiJ();if(L){var O=new Qb;O.update(_.ms("INNERTUBE_API_KEY"));O.update(L);A.hash=_.NQ(O.digest(),3)}return A};
fH=function(){zB9||(zB9=new _.mg("yt.innertube"));return zB9};
Bd9=function(A,L,O,X){if(X)return null;X=fH().get("nextId",!0)||1;var x=fH().get("requests",!0)||{};x[X]={method:A,request:L,authState:H49(O),requestTime:Math.round((0,_.O$)())};fH().set("nextId",X+1,86400,!0);fH().set("requests",x,86400,!0);return X};
MqP=function(A){var L=fH().get("requests",!0)||{};delete L[A];fH().set("requests",L,86400,!0)};
aBM=function(A){var L=fH().get("requests",!0);if(L){for(var O in L){var X=L[O];if(!(Math.round((0,_.O$)())-X.requestTime<6E4)){var x=X.authState,J=H49(_.gc9(!1));_.lW.equals(x,J)&&(x=X.request,"requestTimeMs"in x&&(x.requestTimeMs=Math.round((0,_.O$)())),$Rs(A,X.method,x,{}));delete L[O]}}fH().set("requests",L,86400,!0)}};
kKr=function(A){var L;return(A=A==null?void 0:(L=A.error)==null?void 0:L.code)&&A>=400&&A<=599?!1:!0};
URJ=function(A){var L;A=A==null?void 0:(L=A.error)==null?void 0:L.code;return!(A!==400&&A!==415)};
oJD=function(){if(vJd)return vJd();var A={};vJd=LH("LogsDatabaseV2",{objectStores:(A.LogsRequestsStore={addedAtVersion:2},A),shared:!1,upgrade:function(L,O,X){O(2)&&IN(L,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});O(3);O(5)&&(X=X.objectStore("LogsRequestsStore"),X.JSC$11662_wrapped.indexNames.contains("newRequest")&&X.JSC$11662_wrapped.deleteIndex("newRequest"),yb(X,"newRequestV2",["status","interface","timestamp"]));O(7)&&L.JSC$11647_wrapped.objectStoreNames.contains("sapisid")&&L.JSC$11647_wrapped.deleteObjectStore("sapisid");
O(9)&&L.JSC$11647_wrapped.objectStoreNames.contains("SWHealthLog")&&L.JSC$11647_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return vJd()};
Zc=function(A){return _.MO(oJD(),A)};
LeD=function(A,L){var O,X,x,J;return _.u(function(Y){if(Y.nextAddress==1)return O={startTime:(0,_.O$)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},Y.yield(Zc(L),2);if(Y.nextAddress!=3)return X=Y.yieldResult,x=Object.assign({},A,{options:JSON.parse(JSON.stringify(A.options)),interface:_.ms("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),Y.yield(X.put("LogsRequestsStore",x),3);J=Y.yieldResult;O.ticks.tc=(0,_.O$)();AtP(O);return Y.return(J)})};
OTO=function(A,L){var O,X,x,J,Y,T,V,E,n;return _.u(function(t){if(t.nextAddress==1)return O={startTime:(0,_.O$)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},t.yield(Zc(L),2);if(t.nextAddress!=3)return X=t.yieldResult,x=_.ms("INNERTUBE_CONTEXT_CLIENT_NAME",0),J=[A,x,0],Y=[A,x,(0,_.O$)()],T=IDBKeyRange.bound(J,Y),V="prev",_.h("use_fifo_for_networkless")&&(V="next"),E=void 0,n=A==="NEW"?"readwrite":"readonly",_.h("use_readonly_for_get_most_recent_by_status_killswitch")&&(n="readwrite"),
t.yield(_.$$(X,["LogsRequestsStore"],{mode:n,enableRetries:!0},function(b){return _.XW(b.objectStore("LogsRequestsStore").index("newRequestV2"),{query:T,direction:V},function(S){S.getValue()&&(E=S.getValue(),A==="NEW"&&(E.status="QUEUED",S.update(E)))})}),3);
O.ticks.tc=(0,_.O$)();AtP(O);return t.return(E)})};
XRM=function(A,L){var O;return _.u(function(X){if(X.nextAddress==1)return X.yield(Zc(L),2);O=X.yieldResult;return X.return(_.$$(O,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(x){var J=x.objectStore("LogsRequestsStore");return J.get(A).then(function(Y){if(Y)return Y.status="QUEUED",J.put(Y).then(function(){return Y})})}))})};
xb_=function(A,L,O,X){O=O===void 0?!0:O;var x;return _.u(function(J){if(J.nextAddress==1)return J.yield(Zc(L),2);x=J.yieldResult;return J.return(_.$$(x,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(Y){var T=Y.objectStore("LogsRequestsStore");return T.get(A).then(function(V){return V?(V.status="NEW",O&&(V.sendCount+=1),X!==void 0&&(V.options.compress=X),T.put(V).then(function(){return V})):yr.resolve(void 0)})}))})};
syu=function(A,L){var O;return _.u(function(X){if(X.nextAddress==1)return X.yield(Zc(L),2);O=X.yieldResult;return X.return(O.delete("LogsRequestsStore",A))})};
Jt_=function(A){var L,O;return _.u(function(X){if(X.nextAddress==1)return X.yield(Zc(A),2);L=X.yieldResult;O=(0,_.O$)()-2592E6;return X.yield(_.$$(L,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(x){return k$(x.objectStore("LogsRequestsStore"),{},function(J){if(J.getValue().timestamp<=O)return J.delete().then(function(){return J.continue()})})}),0)})};
PVu=function(){_.u(function(A){return A.yield(k1s("LogsDatabaseV2"),0)})};
AtP=function(A){_.h("nwl_csi_killswitch")||b49("networkless_performance",A,{sampleRate:1})};
_.YYu=function(A){return _.MO(dbM(),A)};
uIp=function(A){var L,O;_.u(function(X){if(X.nextAddress==1)return X.yield(_.YYu(A),2);L=X.yieldResult;O=(0,_.O$)()-2592E6;return X.yield(_.$$(L,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(x){return k$(x.objectStore("SWHealthLog"),{},function(J){if(J.getValue().timestamp<=O)return J.delete().then(function(){return J.continue()})})}),0)})};
TWe=function(A){var L;return _.u(function(O){if(O.nextAddress==1)return O.yield(_.YYu(A),2);L=O.yieldResult;return O.yield(L.clear("SWHealthLog"),0)})};
_.jY=function(A,L,O,X,x,J,Y){x=x===void 0?"":x;J=J===void 0?!1:J;Y=Y===void 0?!1:Y;if(A)if(O&&!Qr("cobalt"))_.HY(new _.pe("Legacy referrer-scrubbed ping detected")),A&&V5p(A,void 0,{scrubReferrer:!0});else if(x)IQe(A,L,"POST",x,X);else if(_.ms("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||X||Y)IQe(A,L,"GET","",X,void 0,J,Y);else{b:{try{c:{var T=new Db_({url:A});if(T.urlParamValues_.dsh==="1")var V=null;else{var E=T.urlParamValues_.ae;if(E==="1"){var n=T.urlParamValues_.adurl;if(n)try{V={version:3,directUrl:decodeURIComponent(n),
asyncUrl:N9d(T.JSC$10495_url_,"act=1","ri=1",ek9(T))};break c}catch(w){}}V=E==="2"?{version:4,directUrl:N9d(T.JSC$10495_url_,"dct=1","suid="+T.suid_,""),asyncUrl:N9d(T.JSC$10495_url_,"act=1","ri=1","suid="+T.suid_)}:null}}if(V){var t=_.eh(A);var b=!(!t||!t.endsWith("/aclk")||_.yI(A,"ri")!=="1");break b}}catch(w){}b=!1}if(b){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(A,"")){var S=!0;break b}}catch(w){}S=!1}S?(L&&L(),O=!0):O=!1}else O=!1;O||V5p(A,L)}};
V5p=function(A,L,O){O=O===void 0?{}:O;var X=new Image,x=""+Ea9++;na_[x]=X;X.onload=X.onerror=function(){L&&na_[x]&&L();delete na_[x]};
O.scrubReferrer&&(X.referrerPolicy="no-referrer");X.src=A};
W1=function(A,L){t5y(A,L==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
bTu=function(A){var L;return((L=document.featurePolicy)==null?0:L.allowedFeatures().includes("attribution-reporting"))?A+"&nis=6":A+"&nis=5"};
hke=function(A){if(!A)return!1;try{var L;if(((L=_.ME(A))==null?void 0:L.asm)==="4")return!0}catch(O){_.IO(O)}return!1};
t5y=function(A,L){L?(A=bTu(A),_.jY(A,void 0,void 0,void 0,"",!0,!0)):_.jY(A)};
qYM=function(){SYu||(SYu=new _.mg("yt.offline"));return SYu};
gae=function(A){if(_.h("offline_error_handling")){var L=qYM().get("errors",!0)||{};L[A.message]={name:A.name,stack:A.stack};A.level&&(L[A.message].level=A.level);qYM().set("errors",L,2592E3,!0)}};
pR9=function(A,L,O,X){X=X===void 0?!1:X;L=_.h("web_fp_via_jspb")?Object.assign({},L):L;_.h("use_cfr_monitor")&&wRP(A,L);if(_.h("use_request_time_ms_header"))L.headers&&Aj(A)&&(L.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.O$)())));else{var x;if((x=L.postParams)==null?0:x.requestTimeMs)L.postParams.requestTimeMs=Math.round((0,_.O$)())}O&&Object.keys(L).length===0?_.jY(A):L.compress?L.postBody?(typeof L.postBody!=="string"&&(L.postBody=JSON.stringify(L.postBody)),QJu(A,L.postBody,
L,_.Et,X)):QJu(A,JSON.stringify(L.postParams),L,WfM,X):_.Et(A,L)};
iTr=function(A,L){_.h("use_event_time_ms_header")&&Aj(A)&&(L.headers||(L.headers={}),L.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.O$)())));return L};
_.rtD=function(){NWp||(NWp=new _.H1({logOfflineErrors:!0,enablePolling:!0}));return NWp};
wRP=function(A,L){var O=L.onError?L.onError:function(){};
L.onError=function(x,J){zY().requestComplete(A,!1);O(x,J)};
var X=L.onSuccess?L.onSuccess:function(){};
L.onSuccess=function(x,J){zY().requestComplete(A,!0);X(x,J)}};
_.Ked=function(){return _.vY(document.location.toString())!=="www.youtube-nocookie.com"};
_.ctJ=function(){return _.WY("ytNetworklessLoggingInitializationOptions")?_.GiP.isNwlInitialized:_.lXu};
CVJ=function(A,L){if(_.h("polymer_on_demand_shady_dom")){var O;var X=(O=A.__shady_native_firstElementChild)!=null?O:A.firstElementChild}else X=A.firstElementChild;for(;X;){if(A=L(X)?X:CVJ(X,L))return A;X=X.nextElementSibling}return null};
RkJ=function(){var A=document;if("visibilityState"in A)return A.visibilityState;var L=Fer+"VisibilityState";if(L in A)return A[L]};
_.QyD=function(A,L){var O;B1(A,function(X){O=L[X];return!!O});
return O};
_.$o=function(A){var L=mbP(A);L?L.focus(void 0):_.M6(A)};
mbP=function(A){return(A=CVJ(A,function(L){return _.aN(L)?fXe(L)&&!!L.offsetParent:!1}))?A:null};
_.M6=function(A,L){A.hasAttribute("tabindex")||A.setAttribute("tabindex","-1");A.focus(L)};
IXe=function(A,L,O,X){X=X===void 0?{}:X;A.addEventListener&&(L!="mouseenter"||"onmouseenter"in document?L!="mouseleave"||"onmouseenter"in document?L=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(L="MozMousePixelScroll"):L="mouseout":L="mouseover");return _.lW.findKey(v1,function(x){var J=typeof x[4]==="boolean"&&x[4]==!!X,Y=_.BJ(x[4])&&_.BJ(X)&&_.lW.equals(x[4],X);return!!x.length&&x[0]==A&&x[1]==L&&x[2]==O&&(J||Y)})};
_.L7=function(A,L,O,X){X=X===void 0?{}:X;if(!A||!A.addEventListener&&!A.attachEvent)return"";var x=IXe(A,L,O,X);if(x)return x;x=++ytp.count+"";var J=!(L!="mouseenter"&&L!="mouseleave"||!A.addEventListener||"onmouseenter"in document);var Y=J?function(T){T=new Ay(T);if(!_.my(T.relatedTarget,function(V){return V==A},!0))return T.currentTarget=A,T.type=L,O.call(A,T)}:function(T){T=new Ay(T);
T.currentTarget=A;return O.call(A,T)};
Y=_.j6(Y);A.addEventListener?(L=="mouseenter"&&J?L="mouseover":L=="mouseleave"&&J?L="mouseout":L=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(L="MozMousePixelScroll"),ZTD()||typeof X==="boolean"?A.addEventListener(L,Y,X):A.addEventListener(L,Y,!!X.capture)):A.attachEvent("on"+L,Y);v1[x]=[A,L,O,Y,X];return x};
_.Wee=function(A,L,O){var X=X===void 0?{}:X;var x=_.L7(A,L,function(){_.jyO(x);O.apply(A,arguments)},X)};
_.jyO=function(A){A&&(typeof A=="string"&&(A=[A]),_.BY(A,function(L){if(L in v1){var O=v1[L],X=O[0],x=O[1],J=O[3];O=O[4];X.removeEventListener?ZTD()||typeof O==="boolean"?X.removeEventListener(x,J,O):X.removeEventListener(x,J,!!O.capture):X.detachEvent&&X.detachEvent("on"+x,J);delete v1[L]}}))};
ON=function(A){this.callback_=A;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(A=0;A<4;A++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.L7(window,"mousemove",(0,_.is)(this.onMouseMove_,this));this.timerId_=_.Vr((0,_.is)(this.checkPosition_,this),25)};
zkD=function(){var A={};var L=A.preferMobileEvents===void 0?!1:A.preferMobileEvents;A=A.enableScrollEventListener===void 0?!0:A.enableScrollEventListener;if(_.WY("_lact",window)==null){var O=parseInt(_.ms("LACT"),10);O=isFinite(O)?Date.now()-Math.max(O,0):-1;_.oZ("_lact",O,window);_.oZ("_fact",O,window);O==-1&&_.XJ();_.L7(document,"keydown",_.XJ);_.L7(document,"keyup",_.XJ);_.L7(document,"mousedown",_.XJ);_.L7(document,"mouseup",_.XJ);L?_.L7(window,"touchmove",function(){HTJ("touchmove",200)},{passive:!0}):
(_.L7(window,"resize",function(){HTJ("resize",200)}),A&&_.L7(window,"scroll",function(){HTJ("scroll",200)}));
new ON(function(){HTJ("mouse",100)});
_.L7(document,"touchstart",_.XJ,{passive:!0});_.L7(document,"touchend",_.XJ,{passive:!0})}};
HTJ=function(A,L){BW_[A]||(BW_[A]=!0,_.c1.addLowPriorityJob(function(){_.XJ();BW_[A]=!1},L))};
_.XJ=function(){_.WY("_lact",window)==null&&zkD();var A=Date.now();_.oZ("_lact",A,window);_.WY("_fact",window)==-1&&_.oZ("_fact",A,window);(A=_.WY("ytglobal.ytUtilActivityCallback_"))&&A()};
_.xw=function(){var A=_.WY("_lact",window);return A==null?-1:Math.max(Date.now()-A,0)};
_.dT=function(A,L,O){var X=_.sN();if(X&&L){var x=X.subscribe(A,function(){var J=arguments,Y=function(){Jy[x]&&L.apply&&typeof L.apply=="function"&&L.apply(O||window,J)};
try{_.M5y[A]?Y():_.TA(Y,0)}catch(T){_.IO(T)}},O);
Jy[x]=!0;Ph[A]||(Ph[A]=[]);Ph[A].push(x);return x}return 0};
_.$bJ=function(A){var L=_.sN();L&&(typeof A==="number"?A=[A]:typeof A==="string"&&(A=[parseInt(A,10)]),_.BY(A,function(O){L.unsubscribeByKey(O);delete Jy[O]}))};
_.aXd=function(A,L){var O=_.sN();O&&O.publish.apply(O,arguments)};
_.UbM=function(A){var L=_.sN();if(L)if(L.clear(A),A)kiu(A);else for(var O in Ph)kiu(O)};
_.sN=function(){return _.Ou.ytPubsubPubsubInstance};
kiu=function(A){Ph[A]&&(A=Ph[A],_.BY(A,function(L){Jy[L]&&delete Jy[L]}),A.length=0)};
vae=function(){var A,L;return"h5vcc"in Yw&&((A=Yw.h5vcc.traceEvent)==null?0:A.traceBegin)&&((L=Yw.h5vcc.traceEvent)==null?0:L.traceEnd)?1:"performance"in Yw&&Yw.performance.mark&&Yw.performance.measure?2:0};
oa9=function(A){var L=vae();switch(L){case 1:Yw.h5vcc.traceEvent.traceBegin("YTLR",A);break;case 2:Yw.performance.mark(A+"-start");break;case 0:break;default:_.ZN(L,"unknown trace type")}};
AFJ=function(A){var L=vae();switch(L){case 1:Yw.h5vcc.traceEvent.traceEnd("YTLR",A);break;case 2:L=A+"-start";var O=A+"-end";Yw.performance.mark(O);Yw.performance.measure(A,L,O);break;case 0:break;default:_.ZN(L,"unknown trace type")}};
L4J=function(A){var L,O;(O=(L=window).onerror)==null||O.call(L,A.message,"",0,0,A)};
OyJ=function(A){if(_.h("web_lifecycle_error_handling_killswitch"))return A();try{return A()}catch(L){L4J(L)}};
Xx9=function(A){return[A.auth===void 0?"undefined":A.auth,A.isJspb===void 0?"undefined":A.isJspb,A.cttAuthInfo===void 0?"undefined":A.cttAuthInfo,A.tier===void 0?"undefined":A.tier].join("/")};
_.q=function(A,L){if(A)return A[L.name]};
Tu=function(){var A=_.WY("yt.logging.ims");A||(A=new ug,_.oZ("yt.logging.ims",A));return A};
Vty=function(A,L){if(A.endpoint==="log_event"){xn_(A);var O=sQP(A),X=JFJ(A.payload)||"",x=PBM(X),J=200;if(x){if(x.enabled===!1&&!_.h("web_payload_policy_disabled_killswitch"))return;J=dnM(x.tier);if(J===400){YCu(A,L);return}}V$[O]=!0;O={cttAuthInfo:O,isJspb:!1,tier:J};Tu().storePayload(O,A.payload);uVu(L,!1,O,Tls(X))}};
epJ=function(A,L,O){if(L.endpoint==="log_event"){xn_(void 0,L);var X=sQP(L,!0),x=PBM(A),J=200;if(x){if(x.enabled===!1&&!_.h("web_payload_policy_disabled_killswitch"))return;J=dnM(x.tier);if(J===400){DnP(A,L,O);return}}V$[X]=!0;X={cttAuthInfo:X,isJspb:!0,tier:J};Tu().storePayload(X,Gn(L.payload));uVu(O,!0,X,Tls(A))}};
uVu=function(A,L,O,X){L=L===void 0?!1:L;X=X===void 0?!1:X;A&&(Dz=new A);A=_.PO("tvhtml5_logging_max_batch_ads_fork")||_.PO("tvhtml5_logging_max_batch")||_.PO("web_logging_max_batch")||100;var x=(0,_.O$)(),J=E4O(L,O.tier),Y=J.lastDebounceQueueFromLogTimeMs;X&&(J.useVideoStatsEndPoint=!0);X=0;O&&(X=Tu().getSequenceCount(O));var T=function(){n49({writeThenSend:!0},L,O.tier)};
X>=1E3?T():X>=A?ttu||(ttu=byJ(function(){T();ttu=void 0},0)):x-Y>=10&&(hpM(L,O.tier),J.lastDebounceQueueFromLogTimeMs=x)};
YCu=function(A,L){if(A.endpoint==="log_event"){_.h("more_accurate_gel_parser")&&Tu().storePayload({isJspb:!1},A.payload);xn_(A);var O=sQP(A),X=new Map;X.set(O,[A.payload]);var x=JFJ(A.payload)||"";L&&(Dz=new L);return new _.eJ(function(J,Y){Dz&&Dz.isReady()?SCD(X,Dz,J,Y,{bypassNetworkless:!0},!0,Tls(x)):J()})}};
DnP=function(A,L,O){if(L.endpoint==="log_event"){xn_(void 0,L);var X=sQP(L,!0),x=new Map;x.set(X,[Gn(L.payload)]);O&&(Dz=new O);return new _.eJ(function(J){Dz&&Dz.isReady()?qCu(x,Dz,J,{bypassNetworkless:!0},!0,Tls(A)):J()})}};
sQP=function(A,L){var O="";if(A.dangerousLogToVisitorSession)O="visitorOnlyApprovedKey";else if(A.cttAuthInfo){if(L===void 0?0:L){L=A.cttAuthInfo.token;O=A.cttAuthInfo;var X=new g4_;O.videoId?X.setVideoId(O.videoId):O.playlistId&&EN(X,2,wxJ,DS(O.playlistId));pxy[L]=X}else L=A.cttAuthInfo,O={},L.videoId?O.videoId=L.videoId:L.playlistId&&(O.playlistId=L.playlistId),iyy[A.cttAuthInfo.token]=O;O=A.cttAuthInfo.token}return O};
n49=function(A,L,O){A=A===void 0?{}:A;L=L===void 0?!1:L;new _.eJ(function(X,x){var J=E4O(L,O),Y=J.useVideoStatsEndPoint;J.useVideoStatsEndPoint=!1;Nlp(J.queueTimer);Nlp(J.queueMaxTimer);J.queueMaxTimer=0;Dz&&Dz.isReady()?O===void 0&&_.h("enable_web_tiered_gel")?rF9(X,x,A,L,300,Y):rF9(X,x,A,L,O,Y):(hpM(L,O),X())})};
rF9=function(A,L,O,X,x,J){var Y=Dz;O=O===void 0?{}:O;X=X===void 0?!1:X;x=x===void 0?200:x;J=J===void 0?!1:J;var T=new Map,V=new Map,E={isJspb:X,cttAuthInfo:void 0,tier:x},n={isJspb:X,cttAuthInfo:void 0};if(X){L=_.d(Object.keys(V$));for(x=L.next();!x.done;x=L.next())x=x.value,V=_.h("enable_web_tiered_gel")?Tu().smartExtractMatchingEntries({keys:[E,n],sizeLimit:1E3}):Tu().extractMatchingEntries({isJspb:!0,cttAuthInfo:x}),V.length>0&&T.set(x,V),(_.h("web_fp_via_jspb_and_json")&&O.writeThenSend||!_.h("web_fp_via_jspb_and_json"))&&
delete V$[x];qCu(T,Y,A,O,!1,J)}else{T=_.d(Object.keys(V$));for(E=T.next();!E.done;E=T.next())E=E.value,n=_.h("enable_web_tiered_gel")?Tu().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:E,tier:x},{isJspb:!1,cttAuthInfo:E}],sizeLimit:1E3}):Tu().extractMatchingEntries({isJspb:!1,cttAuthInfo:E}),n.length>0&&V.set(E,n),(_.h("web_fp_via_jspb_and_json")&&O.writeThenSend||!_.h("web_fp_via_jspb_and_json"))&&delete V$[E];SCD(V,Y,A,L,O,!1,J)}};
hpM=function(A,L){A=A===void 0?!1:A;L=L===void 0?200:L;var O=function(){n49({writeThenSend:!0},A,L)},X=E4O(A,L),x=X===K4s||X===GJy?5E3:lre;
_.h("web_gel_timeout_cap")&&!X.queueMaxTimer&&(x=byJ(function(){O()},x),X.queueMaxTimer=x);
Nlp(X.queueTimer);x=_.ms("LOGGING_BATCH_TIMEOUT",_.PO("web_gel_debounce_ms",1E4));_.h("shorten_initial_gel_batch_timeout")&&cFJ&&(x=CBM);x=byJ(function(){_.PO("gel_min_batch_size")>0?Tu().getSequenceCount({cttAuthInfo:void 0,isJspb:A,tier:L})>=F4O&&O():O()},x);
X.queueTimer=x};
SCD=function(A,L,O,X,x,J,Y){x=x===void 0?{}:x;var T=Math.round((0,_.O$)()),V=A.size,E=RpD(Y);A=_.d(A);var n=A.next();for(Y={};!n.done;Y={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},n=A.next()){var t=_.d(n.value);n=t.next().value;t=t.next().value;Y.batchRequest=_.lW.unsafeClone({context:_.DTe(L.config_||_.xo())});if(!_.jD(t)&&!_.h("throw_err_when_logevent_malformed_killswitch")){X();break}Y.batchRequest.events=t;
(t=iyy[n])&&QQs(Y.batchRequest,n,t);delete iyy[n];Y.dangerousLogToVisitorSession=n==="visitorOnlyApprovedKey";mnp(Y.batchRequest,T,Y.dangerousLogToVisitorSession);frd(x);Y.onSuccess$jscomp$3=function(b){_.h("start_client_gcf")&&_.c1.addLowPriorityJob(function(){return _.u(function(S){return S.yield(IrO(b),0)})});
V--;V||O()};
Y.networkFailures=0;Y.onError$jscomp$5=function(b){return function(){b.networkFailures++;if(x.bypassNetworkless&&b.networkFailures===1)try{$Rs(L,E,b.batchRequest,yFJ({writeThenSend:!0},b.dangerousLogToVisitorSession,b.onSuccess$jscomp$3,b.onError$jscomp$5,J)),cFJ=!1}catch(S){_.IO(S),X()}V--;V||O()}}(Y);
try{$Rs(L,E,Y.batchRequest,yFJ(x,Y.dangerousLogToVisitorSession,Y.onSuccess$jscomp$3,Y.onError$jscomp$5,J)),cFJ=!1}catch(b){_.IO(b),X()}}};
qCu=function(A,L,O,X,x,J){X=X===void 0?{}:X;var Y=Math.round((0,_.O$)()),T={value:A.size},V=new Map([].concat(_.le(A)));V=_.d(V);for(var E=V.next();!E.done;E=V.next()){var n=_.d(E.value).next().value,t=A.get(n);E=new ZyM;var b=L.config_||_.xo(),S=new n7,w=new jQO;_.gz(w,1,b.innertubeContextHostLanguage);_.gz(w,2,b.innertubeContextGeoLocation);_.s$(w,16,b.innertubeContextClientNameFieldNumber);_.gz(w,17,b.innertubeContextClientVersion);if(b.innertubeContextClientConfigInfo){var l=b.innertubeContextClientConfigInfo,
F=new P1;l.coldConfigData&&_.gz(F,1,l.coldConfigData);l.appInstallData&&_.gz(F,6,l.appInstallData);l.coldHashData&&_.gz(F,3,l.coldHashData);l.hotHashData&&F.setHotHashData(l.hotHashData);_.eg(w,62,F)}(l=_.Ou.devicePixelRatio)&&l!=1&&_.J4(w,65,_.j3(l));l=GZr();l!==""&&_.gz(w,54,l);l=lQp();if(l.length>0){F=new W4D;for(var R=0;R<l.length;R++){var y=new ty;y.setKey(l[R].key);EN(y,2,HyD,DS(l[R].value));bg(F,15,ty,y)}_.eg(S,5,F)}Pne(b,w);dTr(S);YPP(w);uZO(b,w);TMd(w);_.h("start_client_gcf")&&VQJ(w);_.ms("DELEGATED_SESSION_ID")&&
!_.h("pageid_as_header_web")&&(b=new hy,_.gz(b,3,_.ms("DELEGATED_SESSION_ID")));!_.h("fill_delegate_context_in_gel_killswitch")&&(l=_.ms("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(F=_.ET(S,hy,3)||new hy,b=S,l=_.gz(F,18,l),_.eg(b,3,l));b=w;l=_.d(Object.entries(_.ME(_.ms("DEVICE",""))));for(F=l.next();!F.done;F=l.next())R=_.d(F.value),F=R.next().value,R=R.next().value,F==="cbrand"?_.gz(b,12,R):F==="cmodel"?_.gz(b,13,R):F==="cbr"?_.gz(b,87,R):F==="cbrver"?_.gz(b,88,R):F==="cos"?_.gz(b,18,
R):F==="cosver"?_.gz(b,19,R):F==="cplatform"&&_.s$(b,42,JYO(R));S.setClient(w);_.eg(E,1,S);if(w=pxy[n])a:{if(_.n$(w,SJ(w,wxJ,1)))S=1;else if(w.getPlaylistId())S=2;else break a;_.eg(E,4,w);w=E.getContext()||new n7;b=_.ET(w,hy,3)||new hy;l=new qd;l.setToken(n);_.s$(l,1,S);bg(b,12,qd,l);_.eg(w,3,b)}delete pxy[n];n=n==="visitorOnlyApprovedKey";zps()||_.gT(E,2,Y);!n&&(S=_.ms("EVENT_ID"))&&(w=Ble(),b=new Mte,_.gz(b,1,S),_.gT(b,2,w),_.eg(E,5,b));frd(X);if(_.h("jspb_serialize_with_worker")&&(S=_.wDy())&&
X.writeThenSend){_.$nO.set(arr,{client:L,resolve:O,networklessOptions:X,isIsolated:x,useVSSEndpoint:J,dangerousLogToVisitorSession:n,requestsOutstanding:T});S.postMessage({op:"gelBatchToSerialize",batchRequest:Gn(E),clientEvents:t,key:arr});arr++;break}if(t){S=[];for(w=0;w<t.length;w++)try{S.push(new wT(t[w]))}catch(M){_.IO(new _.pe("Transport failed to deserialize "+String(t[w])))}t=S}else t=[];t=_.d(t);for(S=t.next();!S.done;S=t.next())bg(E,3,wT,S.value);t={startTime:(0,_.O$)(),ticks:{},infos:{}};
E=E.serialize();t.ticks.geljspc=(0,_.O$)();_.h("log_jspb_serialize_latency")&&b49("gel_jspb_serialize",t,{sampleRate:.1});_.kJy(E,L,O,X,x,J,n,T)}};
_.kJy=function(A,L,O,X,x,J,Y,T){X=X===void 0?{}:X;T=T===void 0?{value:0}:T;J=RpD(J);X=yFJ(X,Y,function(V){_.h("start_client_gcf")&&_.c1.addLowPriorityJob(function(){return _.u(function(E){return E.yield(IrO(V),0)})});
T.value--;T.value||O()},function(){T.value--;
T.value||O()},x);
X.headers["Content-Type"]="application/json+protobuf";X.postBodyFormat="JSPB";X.postBody=A;$Rs(L,J,"",X);cFJ=!1};
frd=function(A){_.h("always_send_and_write")&&(A.writeThenSend=!1)};
yFJ=function(A,L,O,X,x){A={retry:!0,onSuccess:O,onError:X,networklessOptions:A,dangerousLogToVisitorSession:L,bypassMonitoring:!!x,headers:{},postBodyFormat:"",postBody:"",compress:_.h("compress_gel")||_.h("compress_gel_lr")};zps()&&(A.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.O$)())));return A};
mnp=function(A,L,O){zps()||(A.requestTimeMs=String(L));_.h("unsplit_gel_payloads_in_logs")&&(A.unsplitGelPayloadsInLogs=!0);!O&&(L=_.ms("EVENT_ID"))&&(O=Ble(),A.serializedClientEventId={serializedEventId:L,clientCounter:String(O)})};
Ble=function(){var A=_.ms("BATCH_CLIENT_COUNTER")||0;A||(A=Math.floor(Math.random()*65535/2));A++;A>65535&&(A=1);_.QT("BATCH_CLIENT_COUNTER",A);return A};
QQs=function(A,L,O){if(O.videoId)var X="VIDEO";else if(O.playlistId)X="PLAYLIST";else return;A.credentialTransferTokenTargetId=O;A.context=A.context||{};A.context.user=A.context.user||{};A.context.user.credentialTransferTokens=[{token:L,scope:X}]};
xn_=function(A,L){var O=_.dN("il_payload_scraping")==="enable_il_payload_scraping";if(!_.WY("yt.logging.transport.enableScrapingForTest"))if(O)Unp=[],_.oZ("yt.logging.transport.enableScrapingForTest",!0),_.oZ("yt.logging.transport.scrapedPayloadsForTesting",Unp),_.oZ("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.oZ("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.oZ("yt.logging.transport.scrapeClientEvent",!0);else return;O=_.WY("yt.logging.transport.scrapedPayloadsForTesting");var X=_.WY("yt.logging.transport.payloadToScrape");L&&(L=_.WY("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(L.payload)())&&O.push(L);L=_.WY("yt.logging.transport.scrapeClientEvent");if(X&&X.length>=1)for(var x=0;x<X.length;x++)if(A&&A.payload[X[x]])if(L)O.push(A.payload);else{var J=void 0;O.push(((J=A)==null?void 0:J.payload)[X[x]])}_.oZ("yt.logging.transport.scrapedPayloadsForTesting",
O)};
zps=function(){return _.h("use_request_time_ms_header")||_.h("lr_use_request_time_ms_header")};
byJ=function(A,L){return _.h("transport_use_scheduler")===!1?_.TA(A,L):_.h("logging_avoid_blocking_during_navigation")||_.h("lr_logging_avoid_blocking_during_navigation")?_.p7(_.c1,function(){if(_.v4r().currentState==="none")A();else{var O={};_.v4r().install((O.none={callback:A},O))}},L):_.p7(_.c1,A,L)};
Nlp=function(A){_.h("transport_use_scheduler")?_.c1.cancelJob(A):_.DK(A)};
IrO=function(A){var L,O,X,x,J,Y,T,V,E,n;return _.u(function(t){return t.nextAddress==1?(X=(L=A)==null?void 0:(O=L.responseContext)==null?void 0:O.globalConfigGroup,x=_.q(X,o4M),Y=(J=X)==null?void 0:J.hotHashData,T=_.q(X,AIP),E=(V=X)==null?void 0:V.coldHashData,(n=_.X5().resolve(_.Ot(ig)))?Y?x?t.yield(LNd(n,Y,x),2):t.yield(LNd(n,Y),2):t.jumpTo(2):t.return()):E?T?t.yield(Ouu(n,E,T),0):t.yield(Ouu(n,E),0):t.jumpTo(0)})};
E4O=function(A,L){L=L===void 0?200:L;return A?L===300?K4s:Xm9:L===300?GJy:xVs};
PBM=function(A){if(_.h("enable_web_tiered_gel")){A=sDs[A||""];var L,O,X,x=_.X5().resolve(_.Ot(ig))==null?void 0:(L=Nd())==null?void 0:(O=L.loggingHotConfig)==null?void 0:(X=O.eventLoggingConfig)==null?void 0:X.payloadPolicies;if(x)for(L=0;L<x.length;L++)if(x[L].payloadNumber===A)return x[L]}};
JFJ=function(A){A=Object.keys(A);A=_.d(A);for(var L=A.next();!L.done;L=A.next())if(L=L.value,sDs[L])return L};
dnM=function(A){switch(A){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}};
Tls=function(A){return A==="gelDebuggingEvent"};
RpD=function(A){return(A===void 0?0:A)&&_.h("vss_through_gel_video_stats")?"video_stats":"log_event"};
K7=function(A,L,O,X){X=X===void 0?{}:X;var x={},J=Math.round(X.timestamp||(0,_.O$)());x.eventTimeMs=J<Number.MAX_SAFE_INTEGER?J:0;x[A]=L;A=_.xw();x.context={lastActivityMs:String(X.timestamp||!isFinite(A)?-1:A)};X.sequenceGroup&&!_.h("web_gel_sequence_info_killswitch")&&(A=x.context,L=X.sequenceGroup,L={index:JIO(L),groupKey:L},A.sequence=L,X.endOfSequence&&delete rT[X.sequenceGroup]);_.h("web_tag_automated_log_events")&&(x.context.automatedLogEventSource=X.automatedLogEventSource);(X.sendIsolatedPayload?
YCu:Vty)({endpoint:"log_event",payload:x,cttAuthInfo:X.cttAuthInfo,dangerousLogToVisitorSession:X.dangerousLogToVisitorSession},O)};
JIO=function(A){rT[A]=A in rT?rT[A]+1:0;return rT[A]};
_.lg=function(A,L,O){O=O===void 0?{}:O;var X=Gu;_.fB("ytLoggingEventsDefaultDisabled",!1)&&Gu===Gu&&(X=null);K7(A,L,X,O)};
_.ch=function(){if(_.h("web_fp_via_jspb")){var A=!0;A=A===void 0?!1:A;var L=PSe;PSe=[];if(L){L=_.d(L);for(var O=L.next();!O.done;O=L.next())O=O.value,A?K7(O.payloadName,O.payload,Gu,O.options):_.lg(O.payloadName,O.payload,O.options)}n49(void 0,!0);if(!_.h("web_fp_via_jspb_and_json"))return}n49(void 0,!1)};
dVM=function(A,L){var O;if((O=L)==null?0:O.componentStack)return L;if(A=A.componentStack)L||(L={}),L.componentStack=A;return L};
YkM=function(){_.BY(_.ms("ERRORS")||[],function(A){_.C7.apply(null,A)});
_.QT("ERRORS",[])};
_.FJ=function(A){_.C7(A)};
_.Rv=function(A){_.C7(A,"WARNING")};
ui_=function(A){A instanceof Error?_.C7(A):(A=_.BJ(A)?JSON.stringify(A):String(A),A=new _.pe(A),A.name="RejectedPromiseError",_.Rv(A))};
T0D=function(A,L,O,X,x,J){L=L===void 0?"Unknown file":L;O=O===void 0?0:O;var Y=!1,T=dG9("log_window_onerror_fraction");if(T&&Math.random()<T)Y=!0;else{T=document.getElementsByTagName("script");for(var V=0,E=T.length;V<E;V++)if(T[V].src.indexOf("/debug-")>0){Y=!0;break}}Y&&(Y=!1,x?Y=!0:(typeof A==="string"?T=A:ErrorEvent&&A instanceof ErrorEvent?(Y=!0,T=A.message,L=A.filename,O=A.lineno,X=A.colno):(T="Unknown error",L="Unknown file",O=0),x=new _.pe(T),x.name="UnhandledWindowError",x.message=T,x.fileName=
L,x.lineNumber=O,isNaN(X)?delete x.columnNumber:x.columnNumber=X),_.h("wiz_enable_component_stack_propagation_killswitch")||(J=dVM(x,J)),J&&_.Q$(x,J),Y?_.C7(x):_.Rv(x))};
_.C7=function(A,L,O,X,x,J,Y,T){J=J===void 0?{}:J;J.name=O||_.ms("INNERTUBE_CONTEXT_CLIENT_NAME",1);J.version=X||_.ms("INNERTUBE_CONTEXT_CLIENT_VERSION");O=J;L=L===void 0?"ERROR":L;Y=Y===void 0?!1:Y;L=L===void 0?"ERROR":L;Y=Y===void 0?!1:Y;if(A&&(A.hasOwnProperty("level")&&A.level&&(L=A.level),_.h("console_log_js_exceptions")&&(X=[],X.push("Name: "+A.name),X.push("Message: "+A.message),A.hasOwnProperty("params")&&X.push("Error Params: "+JSON.stringify(A.params)),A.hasOwnProperty("args")&&X.push("Error args: "+
JSON.stringify(A.args)),X.push("File name: "+A.fileName),X.push("Stacktrace: "+A.stack),X=X.join("\n"),window.console.log(X,A)),!(V8M>=5))){X=[];x=_.d(DVy);for(J=x.next();!J.done;J=x.next()){J=J.value;try{J()&&X.push(J())}catch(F){}}X=[].concat(_.le(eTp),_.le(X));var V=Eu9(A);x=V.message||"Unknown Error";J=V.name||"UnknownError";var E=V.stack||A.stacktrace||"Not available";if(E.startsWith(J+": "+x)){var n=E.split("\n");n.shift();E=n.join("\n")}n=V.lineNumber||"Not available";V=V.fileName||"Not available";
var t=0;if(A.hasOwnProperty("args")&&A.args&&A.args.length)for(var b=0;b<A.args.length&&!(t=smr(A.args[b],"params."+b,O,t),t>=500);b++);else if(A.hasOwnProperty("params")&&A.params){var S=A.params;if(typeof A.params==="object")for(b in S){if(S[b]){var w="params."+b,l=bK(S[b]);O[w]=l;t+=w.length+l.length;if(t>500)break}}else O.params=bK(S)}if(X.length)for(b=0;b<X.length&&!(t=smr(X[b],"params.context."+b,O,t),t>=500);b++);navigator.vendor&&!O.hasOwnProperty("vendor")&&(O["device.vendor"]=navigator.vendor);
b={message:x,name:J,lineNumber:n,fileName:V,stack:E,params:O,sampleWeight:1};O=Number(A.columnNumber);isNaN(O)||(b.lineNumber=b.lineNumber+":"+O);if(A.level==="IGNORED")A=0;else a:{A=nue();O=_.d(A.messageWeights);for(X=O.next();!X.done;X=O.next())if(X=X.value,b.message&&b.message.match(X.messageRegExp)){A=X.weight;break a}A=_.d(A.callbackWeights);for(O=A.next();!O.done;O=A.next())if(O=O.value,O.callback(b)){A=O.weight;break a}A=1}b.sampleWeight=A;A=_.d(t8p);for(O=A.next();!O.done;O=A.next())if(O=
O.value,O.patternsForType[b.name])for(x=_.d(O.patternsForType[b.name]),X=x.next();!X.done;X=x.next())if(J=X.value,X=b.message.match(J.regexp)){b.params["params.error.original"]=X[0];x=J.groups;J={};for(n=0;n<x.length;n++)J[x[n]]=X[n+1],b.params["params.error."+x[n]]=X[n+1];b.message=O.messageFn(J);break}b.params||(b.params={});A=nue();b.params["params.errorServiceSignature"]="msg="+A.messageWeights.length+"&cb="+A.callbackWeights.length;b.params["params.serviceWorker"]="false";_.Ou.document&&_.Ou.document.querySelectorAll&&
(b.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new mx(bu_,"sample")).constructor!==mx&&(b.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(b);if(b.sampleWeight!==0&&!hTM.has(b.message)){if(Y&&_.h("web_enable_error_204"))Sk9(L===void 0?"ERROR":L,b);else{L=L===void 0?"ERROR":L;L==="ERROR"?(qku.publish("handleError",b),_.h("record_app_crashed_web")&&gud===0&&b.sampleWeight===1&&(gud++,Y={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.h("report_client_error_with_app_crash_ks")||(Y.systemHealth={crashData:{clientError:{logMessage:{message:b.message}}}}),_.lg("appCrashed",Y)),wmu++):L==="WARNING"&&qku.publish("handleWarning",b);if(_.h("kevlar_gel_error_routing")){Y=L;T=T===void 0?{}:T;b:{A=_.d(pmp);for(O=A.next();!O.done;O=A.next())if(Qr(O.value.toLowerCase())){A=!0;break b}A=!1}if(A)T=void 0;else{O={stackTrace:b.stack};b.fileName&&(O.filename=b.fileName);A=b.lineNumber&&b.lineNumber.split?b.lineNumber.split(":"):[];A.length!==
0&&(A.length!==1||isNaN(Number(A[0]))?A.length!==2||isNaN(Number(A[0]))||isNaN(Number(A[1]))||(O.lineNumber=Number(A[0]),O.columnNumber=Number(A[1])):O.lineNumber=Number(A[0]));A={level:"ERROR_LEVEL_UNKNOWN",message:b.message,errorClassName:b.name,sampleWeight:b.sampleWeight};Y==="ERROR"?A.level="ERROR_LEVEL_ERROR":Y==="WARNING"&&(A.level="ERROR_LEVEL_WARNNING");O={isObfuscated:!0,browserStackInfo:O};T.pageUrl=window.location.href;T.kvPairs=[];_.ms("FEXP_EXPERIMENTS")&&(T.experimentIds=_.ms("FEXP_EXPERIMENTS"));
X=_.ms("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!dG9("web_disable_gel_stp_ecatcher_killswitch")&&X)for(x=_.d(Object.keys(X)),J=x.next();!J.done;J=x.next())J=J.value,T.kvPairs.push({key:J,value:String(X[J])});if(X=b.params)for(x=_.d(Object.keys(X)),J=x.next();!J.done;J=x.next())J=J.value,T.kvPairs.push({key:"client."+J,value:String(X[J])});X=_.ms("SERVER_NAME");x=_.ms("SERVER_VERSION");X&&x&&(T.kvPairs.push({key:"server.name",value:X}),T.kvPairs.push({key:"server.version",value:x}));T={errorMetadata:T,
stackTrace:O,logMessage:A}}T&&(_.lg("clientError",T),(Y==="ERROR"||_.h("errors_flush_gel_always_killswitch"))&&_.ch())}_.h("suppress_error_204_logging")||Sk9(L,b)}try{hTM.add(b.message)}catch(F){}V8M++}}};
Sk9=function(A,L){var O=L.params||{};A={urlParams:{a:"logerror",t:"jserror",type:L.name,msg:L.message.substr(0,250),line:L.lineNumber,level:A,"client.name":O.name},postParams:{url:_.ms("PAGE_NAME",window.location.href),file:L.fileName},method:"POST"};O.version&&(A["client.version"]=O.version);if(A.postParams){L.stack&&(A.postParams.stack=L.stack);L=_.d(Object.keys(O));for(var X=L.next();!X.done;X=L.next())X=X.value,A.postParams["client."+X]=O[X];if(O=_.ms("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(L=
_.d(Object.keys(O)),X=L.next();!X.done;X=L.next())X=X.value,A.postParams[X]=O[X];(O=_.ms("LAVA_VERSION"))&&(A.postParams["lava.version"]=O);O=_.ms("SERVER_NAME");L=_.ms("SERVER_VERSION");O&&L&&(A.postParams["server.name"]=O,A.postParams["server.version"]=L)}_.Et(_.ms("ECATCHER_REPORT_HOST","")+"/error_204",A)};
_.iuO=function(A,L){L=L===void 0?"ERROR":L;var O=O===void 0?{}:O;var X=_.WY("ytbin.polymer.shared.lib.tampering.info");X&&(X=X())&&(O["params.tamperingInfo"]=X.sort().join(","));_.C7(A,L,void 0,void 0,!0,O)};
_.Q$=function(A){var L=_.f_.apply(1,arguments);A.args||(A.args=[]);Array.isArray(A.args)&&A.args.push.apply(A.args,_.le(L))};
N0M=function(A){A.level="IGNORED"};
rIe=function(A,L){eTp.push(A);L();eTp.pop()};
Zz=function(A,L){for(var O in L)L.hasOwnProperty(O)&&(A=_.y$(A,O,L[O]));return A};
_.KN9=function(A,L,O){O=O===void 0?!1:O;if(!A)return null;if(A.adInfoDialogEndpoint||A.backstageImageUploadEndpoint||A.confirmDialogEndpoint||A.clientActionEndpoint||A.createBackstagePostDialogEndpoint||A.createCommentReplyDialogEndpoint||A.flowEndpoint||A.guideBuilderEndpoint||A.liveChatDialogEndpoint||A.modalEndpoint||A.openPopupAction||A.shareEndpoint||A.shareEntityEndpoint||A.showLiveChatItemEndpoint||A.subscriptionManagerEndpoint||A.unlimitedCreateFamilyEndpoint||A.unlimitedFamilyFlowEndpoint||
A.updateCommentDialogEndpoint||A.updateCommentReplyDialogEndpoint||A.userFeedbackEndpoint||A.videoEditorEndpoint||A.ypcCancelSurveyEndpoint)return L=_.PO("polymer_report_client_url_requested_rate"),!O&&Math.random()<L&&_.Rv(new _.pe("urlForEndpoint used on client endpoint",A)),null;var X=_.PO("polymer_report_missing_web_navigation_endpoint_rate");if(A.liveChatEndpoint||A.liveChatReplayEndpoint)X=0;if(!A.commandMetadata&&!A.clickTrackingParams&&Math.random()<X){var x={},J;for(J in A)x[J]="1";_.Rv(new _.pe("Missing navigation data",
x))}x="";if(A.commandMetadata&&A.commandMetadata.webCommandMetadata&&A.commandMetadata.webCommandMetadata.url)x=A.commandMetadata.webCommandMetadata.url;else if(A.searchEndpoint)Math.random()<X&&_.Rv(new _.pe("Should not manually handle search",A)),x="/results?search_query="+encodeURIComponent(A.searchEndpoint.query).replace(/%20/g,"+"),A.searchEndpoint.params&&(x+="&sp="+A.searchEndpoint.params);else if(A.watchEndpoint)Math.random()<X&&_.Rv(new _.pe("Should not manually handle watch",A)),x="/watch?v="+
A.watchEndpoint.videoId,A.watchEndpoint.playlistId&&(x+="&list="+A.watchEndpoint.playlistId),A.watchEndpoint.index&&(x+="&index="+A.watchEndpoint.index),A.watchEndpoint.startTimeSeconds&&(x+="&t="+A.watchEndpoint.startTimeSeconds);else if(A.browseEndpoint)X=A.browseEndpoint.browseId,(J=A.browseEndpoint.canonicalBaseUrl)?x=J:X&&(x=X.substr(0,2),x=x==="FE"?X==="FEwhat_to_watch"?"/":X==="FEmy_videos"?"/my_videos":"/feed/"+X.substr(2):x==="VL"?"/playlist?list="+X.substr(2):"/channel/"+X),x&&A.browseEndpoint.query&&
(x=Zz(x+"/search",{query:A.browseEndpoint.query})),x&&A.browseEndpoint.params&&(x=Zz(x,{params:A.browseEndpoint.params}));else{if(A.urlEndpoint)return A.urlEndpoint.url;A.signInEndpoint?(x="https://accounts.google.com/ServiceLogin",X={},_.lW.extend(X,L||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),L=X):A.uploadEndpoint?x="//www.youtube.com/upload":A.liveChatEndpoint?(x=A.liveChatEndpoint,X=_.lW.clone(x),_.BJ(x.continuation)&&(J=Object.keys(x.continuation)[0],
X.continuation=x.continuation[J].continuation),x=Zz("/youtubei/v1/live_chat/get_live_chat",X)):A.liveChatReplayEndpoint?(x=_.lW.clone(A.liveChatReplayEndpoint),x.currentPlayerState&&(_.lW.extend(x,x.currentPlayerState),delete x.currentPlayerState),x=Zz("/youtubei/v1/live_chat/get_live_chat_replay",x)):A.liveChatItemContextMenuEndpoint?x=Zz("/youtubei/v1/live_chat/get_item_context_menu",A.liveChatItemContextMenuEndpoint):A.liveChatPurchaseMessageEndpoint?x=Zz("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
A.liveChatPurchaseMessageEndpoint):A.openSuperStickerBuyFlowCommand?x=Zz("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",A.openSuperStickerBuyFlowCommand):A.videoEditEndpoint?x=Zz("/edit",{video_id:A.videoEditEndpoint.videoId}):A.liveDashboardEndpoint?x=A.liveDashboardEndpoint.videoId?Zz("/live_dashboard",{v:A.liveDashboardEndpoint.videoId}):"/live_dashboard":A.signalNavigationEndpoint&&A.signalNavigationEndpoint.signal&&A.signalNavigationEndpoint.signal==="WEBCAM"?x="/webcam":A.getPdgBuyFlowCommand&&
(x=Zz(A.getPdgBuyFlowCommand.buyflowApiPath,{params:A.getPdgBuyFlowCommand.params}))}return x||O?Zz(x,L||{}):(_.Rv(new _.pe("Error: Can't construct url for endpoint","keys:"+Object.keys(A).sort().join(","),A)),null)};
GPP=function(A){if(A){if(A.browseEndpoint)return!!A.browseEndpoint.nofollow;if(A.watchEndpoint)return!!A.watchEndpoint.nofollow;if(A.urlEndpoint)return!!A.urlEndpoint.nofollow}return!1};
_.cI_=function(A,L){var O=L+A,X=llu.get(O);if(X)return X;A=L+"-"+A.replace(/([A-Z])/g,"-$1").toLowerCase();llu.set(O,A);return A};
CS_=function(A){var L=_.Fs(A,"action")||_.Fs(A,"command")||_.Fs(A,"endpoint");if(!L)return null;L=_.cI_(L,"yt");_.q(A,_.jJ)&&(L+="-"+_.q(A,_.jJ).signal.toLowerCase().replace(/_/g,"-"));return L};
mVM=function(A){try{var L=Object.keys(A)}catch(x){return[]}for(var O=0;O<L.length;O++){var X=L[O];if(FNr.test(X)||RTp.test(X))return QDM(A[X])}return[]};
QDM=function(A){return A.command?[A.command]:A.onExecutionAction?[A.onExecutionAction]:A.onResponseReceivedCommand?[A.onResponseReceivedCommand]:A.updateFlowCommand?[A.updateFlowCommand]:A.clientActions?A.clientActions:A.action?[A.action]:A.actions||A.commands||A.onResponseReceivedActions||A.onResponseReceivedCommands||A.onResponseReceivedEndpoints||[]};
Il_=function(A,L){L=L===void 0?!1:L;var O=_.X5().resolve(_.Ot(Wh));O||(O=new fl_,_.X5().addProvider({provide:Wh,useValue:O}));return O&&A&&!_.lW.isEmpty(A)?O.getUrl(A,L):""};
yIu=function(A,L,O){O=O===void 0?"":O;if(L){A.data=L;var X=Il_(L);X?(yo(A,X),GPP(L)||!Aj(X)?A.rel="nofollow":A.removeAttribute("rel"),_.q(L,_.Hh)&&_.q(L,_.Hh).target==="TARGET_NEW_WINDOW"?A.target="_blank":O?A.target=O:A.removeAttribute("target")):(A.removeAttribute("href"),A.removeAttribute("rel"),A.removeAttribute("target"))}};
_.$w=function(A,L){var O=k8;if(wF())Zu9(A,function(){var J=_.f_.apply(0,arguments);cu(O,function(){L.apply(null,_.le(J))})});
else{var X=_.zu.getInstance(),x=cY(L);vOe(function(){x.value=L});
_.GD(function(){var J={},Y=_.Bh(X,(J[A]=function(){var T=_.f_.apply(0,arguments);cu(O,function(){x.value.apply(x,_.le(T))})},J));
return function(){var T={};_.Md(X,(T[A]="",T),Y)}})}};
_.av=function(A,L){return jDe(A,!1,L)};
_.kw=function(A,L){return jDe(A,!0,L)};
jDe=function(A,L,O){return wF()?WND(A,L,O):HuO(A,L,O)};
HuO=function(A,L,O){return lk(function(){return WND(A,L,O)})};
WND=function(A,L,O){var X=$A9(function(x){X.value=x;var J=function(){var Y=xN(null);try{return O==null?void 0:O(x)}finally{xN(Y)}}();
return function(){J==null||J()}});
X.__expectedTagName=A;X.__optional=L;X.isIdom=!wF();return X};
zT_=function(A){var L=k8,O=qD;return{getFn:function(){return function(X){L.isDisposed||iQ(function(){return YN(function(){return A(X)})},O)!==!0&&X.stopPropagation()}}}};
UN=function(A){if(typeof A.children==="function")return A.children(),null;A=_.d(A.children);for(var L=A.next();!L.done;L=A.next())L=L.value,L();return null};
B0_=function(A){var L;return((L=A.prototype)==null?void 0:L.render)===void 0};
M8u=function(A){return A.items.map(A.children)};
alr=function(A,L,O){O=O===void 0?!1:O;iQ(function(){return $VP(A,L,O)})};
$VP=function(A,L,O){var X=null;bQ++;O=(O===void 0?0:O)?kPu:UVd;try{X=O(A,function(){vh(L)}),SI(!1)}catch(x){throw SI(!0),x;
}return X===null?A:X};
vh=function(A){if(A!==void 0&&A!==null)if(A instanceof Es)for(var L=Ie;jI()!=null&&c9P in jI()&&L.contains(jI());)zV();else if(Array.isArray(A))for(L=_.d(A),A=L.next();!A.done;A=L.next())vh(A.value);else if(A instanceof q0||"function"==typeof _.LL&&A instanceof _.LL||"function"==typeof _.A8&&A instanceof _.A8)oe(A.toString());else if(_.ss(A)){if(jI()!==A){var O,X;L=(X=(O=qD)==null?void 0:O.name)!=null?X:"unknown";throw Error("bc`"+A.tagName+"`"+L);}zV()}else if(A!=null&&A.contentKind===d9||A instanceof
ZD||aZr(A))for(L=U7M(A),L=Array.from(L.childNodes),L=_.d(L),A=L.next();!A.done;A=L.next())Ie.appendChild(A.value),zV();else if(rw(A)&&(A=A.toString()),O=typeof A,O==="boolean"||O==="number"||O==="string")oe(A);else if(typeof A==="function"){L=Ie;var x=jI();x&&(x._isSignalTextNode||x._isSafeOrSanitizedHtmlNode)||qIu(L,x,A);zV()}else if(A.type===M8u)vh(A.type(Object.assign({},A.props,{children:A.children[0]})));else{bk.beforeVisit(A);if(typeof A.type==="string"){a:{A.__open||NVe(A.type,A.props.idomKey);
x=Ie;for(L in A.props)if(A.props[L]!==vuP){var J=A.props[L];O=ae;O.push(L);O.push(J)}L=Lr.attributes;L=L===void 0?ov:L;J=Ie;O=fr(J);F2J(J,O,L);SIJ(x,A.props,!0);if((A.props.skip||A.props.skipchildren)&&Ie.hasChildNodes())MD();else{if(A.type==="style"&&sFP(A.children)===null){MD();L=void 0;break a}vh(A.children)}rle();A.__open&&(A.__open=!1);jUD(x,A.props);L=x}return L}if(A.type===_.Xs)vh(A.children);else if(!oue(A)){L=A;try{ACD(L)}catch(Y){A=Y,(J=Lr.handleError)==null||J.call.apply(J,[Lr].concat(_.le(Cr(A,
(x=L.type)==null?void 0:x.TAG_NAME))))}L.__open&&(rle(),L.__open=!1)}}};
LBD=function(A,L){var O;B0_(A)?O=new S6(L,A):O=new A(L);O.JSC$11238___type=A;O.__updateContext={nextState:O.state,isForced:!1};return O};
ACD=function(A){var L=A.type,O=L.TAG_NAME;if(L===UN)A.props.children=A.children,L(A.props);else{A.children.length>0&&(A.props.children=A.children);var X;(X=A.props).idomKey||(X.idomKey=L);if(O){var x=NVe(O,A.props.idomKey);A.__open=!0;var J=x.__instance}J||(J=LBD(L,A.props),J.props=null,x&&(x.__instance=J,J.el=x));var Y;O=((Y=J.__updateContext)!=null?Y:{nextState:J.state,isForced:!1}).nextState;J.__updateContext=void 0;L.getDerivedStateFromProps&&(O=L.getDerivedStateFromProps(A.props,O));J.props=
A.props;J.state=O;Y=function(){var T=J;bk.beforeRender(T);var V=T.render(T.props);bk.afterRender(T,V);V?(T.props.idomKey&&(V.props.idomKey=T.props.idomKey),T=V):T=void 0;if(V=T)if(V.__open=A.__open,T=vh(V),A.__open=V.__open,!L.TAG_NAME)if(T)L.TAG_NAME=T.tagName.toLowerCase(),T.__instance=J,J.el=T;else{var E;if((E=J.hooks)==null?0:E.length){var n;(n=Lr.handleError)==null||n.call.apply(n,[Lr].concat(_.le(Cr(Error("jd")))))}}J.didPatch();bk.didPatch(J)};
(O=J.functionComponent)?BT9(O,Y,J.props.debugInstance):Y()}};
oue=function(A){var L=A.type;if(!B0_(L)||L===UN||L.componentType===gF)return!1;A.props.children=A.children.length>1?A.children:A.children[0];var O,X=(O=A.props.idomKey)!=null?O:A.type,x;if(jI()&&((x=jI()[TD])==null?void 0:x.key)===X){var J=jI(),Y=J[TD];if(!Y)throw Error("ac`"+J.tagName);var T;(T=Y.updateSignalsFromIdomProps)==null||T.call(Y,A.props);Ov_(Y);return!0}if(XCM.has(L.name))throw T=L.name,L=(Y=(J=qD)==null?void 0:J.name)!=null?Y:"unknown",Error("$b`"+T+"`"+L);ihd(A.type,A.props,A.children);
A.props.renderedFromIdom=!0;(T=BT9(A.type,function(){return EOp(A.type,A.props)},A.props.debugInstance))&&xwe(T);
return!0};
sGs=function(A){for(var L=0;L<e6(A).length;L++)zV()};
Ov_=function(A){var L=JCp();if(L)sGs(L);else for(var O=0;O<A.numNodes;O++)(L=JCp())?sGs(L):zV()};
JCp=function(){var A;return(A=jI()[TD])==null?void 0:A.sourceDynamicRange};
xwe=function(A){A=zLJ(A);A=Array.isArray(A)?A:[A];A=_.d(A);for(var L=A.next();!L.done;L=A.next())Ie.insertBefore(L.value,jI()),zV()};
PId=function(A){var L=tfy(),O=lk(function(){return{value:typeof A==="function"?A():A}});
return[O.value,function(X){if(h8!==null){var x;(x=Lr.handleError)==null||x.call.apply(x,[Lr].concat(_.le(Cr(Error("kd")))))}O.value=typeof X==="function"?X(O.value):X;L.__updateContext={nextState:L.state,isForced:!0};X=_.UT(L.effectContext);x=xL(!1);try{if(L.el){var J,Y={},T=(Y.props=L.props,Y.type=L.JSC$11238___type,Y.children=(J=L.props.children)!=null?J:[],Y[Os]=!0,Y);try{alr(L.el,T,!0)}catch(n){var V,E;(E=Lr.handleError)==null||E.call.apply(E,[Lr].concat(_.le(Cr(n,(V=L.JSC$11238___type)==null?
void 0:V.TAG_NAME))))}}}finally{xL(x),_.UT(X)}}]};
Al=function(A,L){var O=k8,X=function(x){cu(O,function(){L(x)})};
window.addEventListener(A,X,void 0);_.rF(function(){window.removeEventListener(A,X,void 0)})};
_.Oj=function(A){var L=k8;return function(O){var X,x=(X=A.observer)!=null?X:_.X5().resolve(Ld);X=dw9(O);var J=[];A.showOption&&J.push(x.observe(O,function(){cu(L,function(){A.visibilityCallback(!0,O)})},A.showOption));
A.hideOption&&J.push(x.observe(O,function(){cu(L,function(){A.visibilityCallback(!1,O)})},A.hideOption));
A.prescanOption&&A.prescanCallback&&J.push(x.observe(O,function(){cu(L,function(){A.prescanCallback()})},A.prescanOption));
var Y;X.visibilityMonitorKeys=((Y=X.visibilityMonitorKeys)!=null?Y:[]).concat(J)}};
dw9=function(A){var L;return(L=A.polymerController)!=null?L:A};
_.Xh=function(A){A.componentType=gF};
VEe=function(A,L){var O=Yfs;return _.D(_.Xs,null,an(Lr.enableLazyTsx,function(){return _.D(ugP,{id:O,value:A,children:L})},function(){var X=T1J(O,A);
A0(X);X=_.UT(X);try{return L()}finally{_.UT(X)}}))};
ugP=function(A){var L=A.children;A=T1J(A.id,A.value);A0(A);A=_.UT(A);try{return _.D(_.Xs,null,nB(L()))}finally{_.UT(A)}};
T1J=function(A,L){return Object.assign(Object.create(DwD),{id:A,contextValue:L})};
eOu=function(A){var L,O=k8;_.lQ(function(){var X=_.UT(O),x=xL(!L);try{if(L)alr(L,A.children(),!0);else if(L=nB(A.children()),!(L instanceof Element))throw Error("ld");}finally{xL(x),_.UT(X)}});
return L};
_.Efu=function(A,L){var O;L=Kr(function(){var X=xL(!0);try{O=e6(A())}finally{xL(X)}},L===void 0?!1:L);
return[O,L]};
tEr=function(A){A=A.buf.charCodeAt(A.pos++);return nfr[A]};
xd=function(A){var L=0,O=0;do{var X=tEr(A);L|=(X&31)<<O;O+=5}while(X&32);return L<0?L+4294967296:L};
Sf_=function(A,L,O){bv_(A,L);A[L][hO9].unshift(O)};
bv_=function(A,L){if(!A[L]||!A[L][hO9]){var O=A[L],X=O?[O]:[];A[L]=function(){for(var x=_.d(X),J=x.next();!J.done;J=x.next())J.value.apply(this,arguments)};
A[L][hO9]=X}};
qfM=function(A){if(!A)return[];var L=[];A=_.d(A);for(var O=A.next();!O.done;O=A.next())O=O.value,Array.isArray(O)?L.push.apply(L,_.le(qfM(O))):L.push(O);return L};
_.Jl=function(A,L){if(A&&gfJ.test(A)||A==="//")return A;if(wCs===void 0){wCs=!1;try{var O=new URL("b","http://a");O.pathname="c%20d";wCs=O.href==="http://a/c%20d"}catch(X){}}L||(L=document.baseURI||window.location.href);if(wCs)try{return(new URL(A,L)).href}catch(X){return A}sj||(sj=document.implementation.createHTMLDocument("temp"),sj.base=sj.createElement("base"),sj.head.appendChild(sj.base),sj.anchor=sj.createElement("a"),sj.body.appendChild(sj.anchor));sj.base.href=L;sj.anchor.href=A;return sj.anchor.href||
A};
ive=function(A,L){return A.replace(pCO,function(O,X,x,J){return X+"'"+_.Jl(x.replace(/["']/g,""),L)+"'"+J})};
N1O=function(A){return A.substring(0,A.lastIndexOf("/")+1)};
GRd=function(){rCM=!1;for(var A=P2.length,L=0;L<A;L++){var O=P2[L];if(O)try{O()}catch(X){setTimeout(function(){throw X;})}}P2.splice(0,A);
KBP+=A};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(A){console.log("["+A.is+"]: registered")};
cCM=function(A){lEO.push(A)};
dV=function(A){return CIJ[A]||(CIJ[A]=A.indexOf("-")<0?A:A.replace(FBD,function(L){return L[1].toUpperCase()}))};
Yd=function(A){return CIJ[A]||(CIJ[A]=A.replace(ROe,"-$1").toLowerCase())};
QGJ=function(A,L){var O=L.parentInfo&&QGJ(A,L.parentInfo);if(O)for(A=O.firstChild,O=0;A;A=A.nextSibling){if(L.parentIndex===O++)return A}else return A};
mwu=function(A,L){A=A._methodHost||A;return function(O){if(A[L])A[L](O,O.detail);else console.warn("listener method `"+L+"` not defined")}};
uO=function(A){return A.indexOf(".")>=0};
Tk=function(A){var L=A.indexOf(".");return L===-1?A:A.slice(0,L)};
fEM=function(A,L){return A.indexOf(L+".")===0};
VL=function(A,L){return L.indexOf(A+".")===0};
DZ=function(A,L,O){return L+O.slice(A.length)};
IEP=function(A,L){return A===L||fEM(A,L)||VL(A,L)};
ev=function(A){if(Array.isArray(A)){for(var L=[],O=0;O<A.length;O++)for(var X=A[O].toString().split("."),x=0;x<X.length;x++)L.push(X[x]);return L.join(".")}return A};
yCp=function(A){return Array.isArray(A)?ev(A).split("."):A.toString().split(".")};
Ej=function(A,L,O){L=yCp(L);for(var X=0;X<L.length;X++){if(!A)return;A=A[L[X]]}O&&(O.path=L.join("."));return A};
Zvp=function(A,L,O){var X=yCp(L),x=X[X.length-1];if(X.length>1){for(L=0;L<X.length-1;L++)if(A=A[X[L]],!A)return;A[x]=O}else A[L]=O;return X.join(".")};
jGJ=function(A,L,O){var X=A[L];if(!X)X=A[L]={};else if(!A.hasOwnProperty(L)&&(X=A[L]=Object.create(A[L]),O))for(var x in X)for(A=X[x],L=X[x]=Array(A.length),O=0;O<A.length;O++)L[O]=A[O];return X};
tl=function(A,L,O,X,x,J){if(L){var Y=!1,T=nd++,V;for(V in O){var E=x?Tk(V):V;if(E=L[E])for(var n=0,t=E.length,b=void 0;n<t&&(b=E[n]);n++)b.info&&b.info.lastRun===T||x&&!WB_(V,b.trigger)||(b.info&&(b.info.lastRun=T),b.fn(A,V,O,X,b.info,x,J),Y=!0)}return Y}return!1};
WB_=function(A,L){if(L){var O=L.name;return O==A||!(!L.structured||!fEM(O,A))||!(!L.wildcard||!VL(O,A))}return!0};
Hve=function(A,L,O,X,x){L=typeof x.method==="string"?A[x.method]:x.method;O=x.property;L?L.call(A,A.__data[O],X[O]):x.dynamicFn||console.warn("observer method `"+x.method+"` not defined")};
zOu=function(A,L,O,X){O={value:O,queueProperty:!0};X&&(O.path=X);(0,_.bO)(A).dispatchEvent(new CustomEvent(L,{detail:O}))};
B1e=function(A,L,O,X,x,J){J=(X=(J?Tk(L):L)!=L?L:null)?Ej(A,X):A.__data[L];X&&J===void 0&&(J=O[L]);zOu(A,x.eventName,J,X)};
MEu=function(A,L,O,X,x){O=A.__data[L];hl&&(O=hl(O,x.attrName,"attribute",A));A._propertyToAttribute(L,x.attrName,O)};
aEu=function(A){var L=A.constructor.__orderedComputedDeps;if(!L){L=new Map;for(var O=A.__computeEffects,X=$w_(A),x=X.counts,J=X.ready,Y=X.total;X=J.shift();)L.set(X,L.size),(X=O[X])&&X.forEach(function(T){T=T.info.methodInfo;--Y;--x[T]===0&&J.push(T)});
Y!==0&&console.warn("Computed graph for "+A.localName+" incomplete; circular?");A.constructor.__orderedComputedDeps=L}return L};
$w_=function(A){var L=A.__computeInfo,O={};A=A.__computeEffects;var X=[],x=0,J;for(J in L){var Y=L[J];x+=O[J]=Y.args.filter(function(V){return!V.literal}).length+(Y.dynamicFn?1:0)}for(var T in A)L[T]||X.push(T);
return{counts:O,ready:X,total:x}};
UwO=function(A,L,O,X,x){L=kRM(A,L,O,X,x);if(L===Sv)return!1;x=x.methodInfo;if(A.__dataHasAccessor&&A.__dataHasAccessor[x])return A._setPendingProperty(x,L,!0);A[x]=L;return!1};
ARP=function(A,L,O,X,x,J,Y){O.bindings=O.bindings||[];X={kind:X,target:x,parts:J,literal:Y,isCompound:J.length!==1};O.bindings.push(X);X.target&&X.kind!="attribute"&&X.kind!="text"&&!X.isCompound&&X.parts[0].mode==="{"&&(O=X.parts[0],J=O.negate,X.listenerEvent=O.event||Yd(x)+"-changed",X.listenerNegate=J);x=L.nodeInfoList.length;for(O=0;O<X.parts.length;O++){var T=X.parts[O];T.compoundIndex=O;J=A;Y=L;var V=X,E=T,n=x;if(!E.literal)if(V.kind==="attribute"&&V.target[0]==="-")console.warn("Cannot set attribute "+
V.target+' because "-" is not a valid attribute starting character');else for(T=E.dependencies,V={index:n,binding:V,part:E,evaluator:J},E=0;E<T.length;E++)n=T[E],typeof n=="string"&&(n=vf9(n),n.wildcard=!0),J._addTemplatePropertyEffect(Y,n.rootProperty,{fn:ofM,info:V,trigger:n})}};
ofM=function(A,L,O,X,x,J,Y){Y=Y[x.index];var T=x.binding,V=x.part;J&&V.source&&L.length>V.source.length&&T.kind=="property"&&!T.isCompound&&Y.__isPropertyEffectsClient&&Y.__dataHasAccessor&&Y.__dataHasAccessor[T.target]?(O=O[L],L=DZ(V.source,T.target,L),Y._setPendingPropertyOrPath(L,O,!1,!0)&&A._enqueueClient(Y)):(L=x.evaluator._evaluateBinding(A,V,L,O,X,J),L!==Sv&&(T.isCompound&&(O=Y.__dataCompoundStorage[T.target],O[V.compoundIndex]=L,L=O.join("")),T.kind==="attribute"||T.target!=="textContent"&&
(T.target!=="value"||Y.localName!=="input"&&Y.localName!=="textarea")||(L=L==void 0?"":L),V=L,hl&&(V=hl(V,T.target,T.kind,Y)),T.kind=="attribute"?A._valueToNodeAttribute(Y,V,T.target):(T=T.target,Y.__isPropertyEffectsClient&&Y.__dataHasAccessor&&Y.__dataHasAccessor[T]?Y.__readOnly&&Y.__readOnly[T]||Y._setPendingProperty(T,V)&&A._enqueueClient(Y):A._setUnmanagedPropertyToNode(Y,T,V))))};
Lzy=function(A,L,O){if(O.listenerEvent){var X=O.parts[0];A.addEventListener(O.listenerEvent,function(x){var J=O.target,Y=X.source,T=X.negate,V=x.detail,E=V&&V.path;E?(Y=DZ(J,Y,E),x=V&&V.value):x=x.currentTarget[J];L.__readOnly&&L.__readOnly[Y]||!L._setPendingPropertyOrPath(Y,T?!x:x,!0,!!E)||V&&V.queueProperty||L._invalidateProperties()})}};
Oqr=function(A,L,O,X,x,J){J=L.static||J&&(typeof J!=="object"||J[L.methodName]);x={methodName:L.methodName,args:L.args,methodInfo:x,dynamicFn:J};for(var Y=0,T=void 0;Y<L.args.length&&(T=L.args[Y]);Y++)T.literal||A._addPropertyEffect(T.rootProperty,O,{fn:X,info:x,trigger:T});J&&A._addPropertyEffect(L.methodName,O,{fn:X,info:x});return x};
kRM=function(A,L,O,X,x){X=A._methodHost||A;var J=X[x.methodName];if(J)return A=A._marshalArgs(x.args,L,O),A===Sv?Sv:J.apply(X,A);x.dynamicFn||console.warn("method `"+x.methodName+"` not defined")};
XwD=function(A){for(var L="",O=0;O<A.length;O++)L+=A[O].literal||"";return L};
JRe=function(A){if(A=A.match(/([^\s]+?)\(([\s\S]*)\)/)){var L={methodName:A[1],static:!0,args:xlP};return A[2].trim()?sIP(A[2].replace(/\\,/g,"&comma;").split(","),L):L}return null};
sIP=function(A,L){L.args=A.map(function(O){O=vf9(O);O.literal||(L.static=!1);return O},this);
return L};
vf9=function(A){A=A.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var L={name:A,value:"",literal:!1},O=A[0];O==="-"&&(O=A[1]);O>="0"&&O<="9"&&(O="#");switch(O){case "'":case '"':L.value=A.slice(1,-1);L.literal=!0;break;case "#":L.value=Number(A),L.literal=!0}L.literal||(L.rootProperty=Tk(A),L.structured=uO(A),L.structured&&(L.wildcard=A.slice(-2)==".*",L.wildcard&&(L.name=A.slice(0,-2))));return L};
PE9=function(A,L,O){A=Ej(A,O);A===void 0&&(A=L[O]);return A};
dlJ=function(A,L,O,X){X={indexSplices:X};q7&&!A._overrideLegacyUndefined&&(L.splices=X);A.notifyPath(O+".splices",X);A.notifyPath(O+".length",L.length);q7&&!A._overrideLegacyUndefined&&(X.indexSplices=[])};
gV=function(A,L,O,X,x,J){dlJ(A,L,O,[{index:X,addedCount:x,removed:J,object:L,type:"splice"}])};
Yru=function(A){A=ive((A.body?A.body:A).textContent,A.baseURI);var L=document.createElement("style");L.textContent=A;return L};
Tos=function(A){A=A.trim().split(/\s+/);for(var L=[],O=0;O<A.length;O++)L.push.apply(L,_.le(u2J(A[O])));return L};
u2J=function(A){var L=wV.import(A);if(!L)return console.warn("Could not find style data in module named",A),[];if(L._styles===void 0){A=[];A.push.apply(A,_.le(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(L)));var O=L.querySelector("template");O&&A.push.apply(A,_.le(VOu(O,L.assetpath)));L._styles=A}return L._styles};
VOu=function(A,L){if(!A._styles){for(var O=[],X=A.content.querySelectorAll("style"),x=0;x<X.length;x++){var J=X[x],Y=J.getAttribute("include");Y&&O.push.apply(O,_.le(Tos(Y).filter(function(T,V,E){return E.indexOf(T)===V})));
L&&(J.textContent=ive(J.textContent,L));O.push(J)}A._styles=O}return A._styles};
DlD=function(A){return(A=wV.import(A))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(A):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(A){var L=[];A=A.querySelectorAll("link[rel=import][type~=css]");for(var O=0;O<A.length;O++){var X=A[O];if(X.import){var x=X.import;if((X=X.hasAttribute("shady-unscoped"))&&!x._unscopedStyle){var J=Yru(x);J.setAttribute("shady-unscoped","");x._unscopedStyle=J}else x._style||(x._style=Yru(x));L.push(X?x._unscopedStyle:x._style)}}return L};
ED_=function(A){A=A.trim().split(/\s+/);for(var L="",O=0;O<A.length;O++)L+=eqe(A[O]);return L};
eqe=function(A){var L=wV.import(A);if(L&&L._cssText===void 0){var O=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(L),X=L.querySelector("template");X&&(O+=nD_(X,L.assetpath));L._cssText=O||null}L||console.warn("Could not find style data in module named",A);return L&&L._cssText||""};
nD_=function(A,L){var O="";A=VOu(A,L);for(L=0;L<A.length;L++){var X=A[L];X.parentNode&&X.parentNode.removeChild(X);O+=X.textContent}return O};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(A){var L="";A=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(A);for(var O=0;O<A.length;O++)L+=A[O].textContent;return L};
pd=function(A,L){return{index:A,removed:[],addedCount:L}};
bqD=function(A,L,O,X){var x=0,J=0,Y=0,T=0,V=Math.min(L-x,X-J);if(x==0&&J==0)a:{for(Y=0;Y<V;Y++)if(A[Y]!==O[Y])break a;Y=V}if(L==A.length&&X==O.length){T=A.length;for(var E=O.length,n=0;n<V-Y&&tOJ(A[--T],O[--E]);)n++;T=n}x+=Y;J+=Y;L-=T;X-=T;if(L-x==0&&X-J==0)return[];if(x==L){for(L=pd(x,0);J<X;)L.removed.push(O[J++]);return[L]}if(J==X)return[pd(x,L-x)];V=x;Y=J;X=X-Y+1;T=L-V+1;L=Array(X);for(E=0;E<X;E++)L[E]=Array(T),L[E][0]=E;for(E=0;E<T;E++)L[0][E]=E;for(E=1;E<X;E++)for(n=1;n<T;n++)if(A[V+n-1]===
O[Y+E-1])L[E][n]=L[E-1][n-1];else{var t=L[E-1][n]+1,b=L[E][n-1]+1;L[E][n]=t<b?t:b}V=L.length-1;Y=L[0].length-1;X=L[V][Y];for(A=[];V>0||Y>0;)V==0?(A.push(2),Y--):Y==0?(A.push(3),V--):(T=L[V-1][Y-1],E=L[V-1][Y],n=L[V][Y-1],t=E<n?E<T?E:T:n<T?n:T,t==T?(T==X?A.push(0):(A.push(1),X=T),V--,Y--):t==E?(A.push(3),V--,X=E):(A.push(2),Y--,X=n));A.reverse();L=void 0;V=[];for(Y=0;Y<A.length;Y++)switch(A[Y]){case 0:L&&(V.push(L),L=void 0);x++;J++;break;case 1:L||(L=pd(x,0));L.addedCount++;x++;L.removed.push(O[J]);
J++;break;case 2:L||(L=pd(x,0));L.addedCount++;x++;break;case 3:L||(L=pd(x,0)),L.removed.push(O[J]),J++}L&&V.push(L);return V};
hqp=function(A,L){return bqD(A,A.length,L,L.length)};
tOJ=function(A,L){return A===L};
qru=function(A){if(A instanceof SrM)return A.value;throw Error("Cd`"+A);};
gDr=function(A,L){for(var O in L)O===null?A.style.removeProperty(O):A.style.setProperty(O,L[O])};
wwM=function(A,L){return(A=window.getComputedStyle(A).getPropertyValue(L))?A.trim():""};
rRs=function(A){requestAnimationFrame(function(){pwd?pwd(A):(iq9||(iq9=new Promise(function(L){Nod=L}),document.readyState==="complete"?Nod():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&Nod()})),iq9.then(function(){A&&A()}))})};
l7u=function(A){Kzd=A&&A.shimcssproperties?!1:G_u||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
QIM=function(A){if(!(cRO.indexOf(A)>-1)&&A!=="touchend"&&CEP&&Fzu&&Rqe)return{passive:!0}};
yRe=function(A){for(var L=mly?["click"]:cRO,O=0,X;O<L.length;O++)X=L[O],A?(f7r.length=0,document.addEventListener(X,I7e,!0)):document.removeEventListener(X,I7e,!0)};
rV=function(A){var L=A.type;return cRO.indexOf(L)>-1?L==="mousemove"?(L=A.buttons===void 0?1:A.buttons,A instanceof window.MouseEvent&&!ZqM&&(L=jI_[A.which]||0),!!(L&1)):(A.button===void 0?0:A.button)===0:!1};
WzO=function(A){if(A.type==="click"){if(A.detail===0)return!0;var L=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A);if(!L.nodeType||L.nodeType!==Node.ELEMENT_NODE)return!0;L=L.getBoundingClientRect();var O=A.pageX;A=A.pageY;return!(O>=L.left&&O<=L.right&&A>=L.top&&A<=L.bottom)}return!1};
Hqp=function(A,L,O){A.movefn=L;A.upfn=O;document.addEventListener("mousemove",L);document.addEventListener("mouseup",O)};
Kd=function(A){document.removeEventListener("mousemove",A.movefn);document.removeEventListener("mouseup",A.upfn);A.movefn=null;A.upfn=null};
zqu=function(A,L){for(var O=document.elementFromPoint(A,L),X=O;X&&X.shadowRoot&&!window.ShadyDOM;){var x=X;X=X.shadowRoot.elementFromPoint(A,L);if(x===X)break;X&&(O=X)}return O};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(A){var L=Bo9(A);return L.length>0?L[0]:A.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(A){var L=A.type,O=A.currentTarget.__polymerGestures;if(O&&(O=O[L])){if(!A.__polymerGesturesHandled&&(A.__polymerGesturesHandled={},L.slice(0,5)==="touch")){var X=A.changedTouches[0];L==="touchstart"&&A.touches.length===1&&(MOy=X.identifier);if(MOy!==X.identifier)return;CEP||(L==="touchstart"||L==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A)}X=
A.__polymerGesturesHandled;if(!X.skip){for(var x=0,J;x<Gk.length;x++)J=Gk[x],O[J.name]&&!X[J.name]&&J.flow&&J.flow.start.indexOf(A.type)>-1&&J.reset&&J.reset();for(x=0;x<Gk.length;x++)J=Gk[x],O[J.name]&&!X[J.name]&&(X[J.name]=!0,J[L](A))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(A){var L=A.changedTouches[0],O=A.type;if(O==="touchstart")$l_=L.clientX,a79=L.clientY,k_s=!1;else if(O==="touchmove"&&!k_s){k_s=!0;O="auto";for(var X=Bo9(A),x=0,J;x<X.length;x++)if(J=X[x],J.__polymerGesturesTouchAction){O=J.__polymerGesturesTouchAction;break}X=!1;x=Math.abs($l_-L.clientX);L=Math.abs(a79-L.clientY);A.cancelable&&(O==="none"?X=!0:O==="pan-x"?X=L>x:O==="pan-y"&&(X=x>L));X?A.preventDefault():
lO("track")}};
Cd=function(A,L,O){return c2[L]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A,L,O),!0):!1};
Fh=function(A,L,O){return c2[L]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A,L,O),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(A,L,O){var X=c2[L],x=X.deps,J=X.name,Y=A.__polymerGestures;Y||(A.__polymerGestures=Y={});for(var T=0,V,E;T<x.length;T++)V=x[T],mly&&cRO.indexOf(V)>-1&&V!=="click"||((E=Y[V])||(Y[V]=E={_count:0}),E._count===0&&A.addEventListener(V,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,QIM(V)),E[J]=(E[J]||0)+1,E._count=(E._count||0)+1);A.addEventListener(L,O);X.touchAction&&_.RU(A,X.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(A,L,O){var X=c2[L],x=X.deps;X=X.name;var J=A.__polymerGestures;if(J)for(var Y=0,T,V;Y<x.length;Y++)T=x[Y],(V=J[T])&&V[X]&&(V[X]=(V[X]||1)-1,V._count=(V._count||1)-1,V._count===0&&A.removeEventListener(T,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,QIM(T)));A.removeEventListener(L,O)};
Uld=function(A){Gk.push(A);for(var L=0;L<A.emits.length;L++)c2[A.emits[L]]=A};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(A){for(var L=0,O;L<Gk.length;L++){O=Gk[L];for(var X=0,x;X<O.emits.length;X++)if(x=O.emits[X],x===A)return O}return null};
_.RU=function(A,L){CEP&&A instanceof HTMLElement&&QL.run(function(){A.style.touchAction=L});
A.__polymerGesturesTouchAction=L};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(A,L,O){L=new Event(L,{bubbles:!0,cancelable:!0,composed:!0});L.detail=O;(0,_.bO)(A).dispatchEvent(L);L.defaultPrevented&&(A=O.preventer||O.sourceEvent)&&A.preventDefault&&A.preventDefault()};
lO=function(A){A=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A);A.info&&(A.info.prevent=!0)};
m2=function(A,L,O,X){L&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(L,A,{x:O.clientX,y:O.clientY,sourceEvent:O,preventer:X,prevent:function(x){return lO(x)}})};
vDe=function(A,L,O){if(A.prevent)return!1;if(A.started)return!0;O=Math.abs(A.y-O);return Math.abs(A.x-L)>=5||O>=5};
oDO=function(A,L,O){if(L){var X=A.moves[A.moves.length-2],x=A.moves[A.moves.length-1],J=x.x-A.x,Y=x.y-A.y,T=0;if(X){var V=x.x-X.x;T=x.y-X.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(L,"track",{state:A.state,x:O.clientX,y:O.clientY,dx:J,dy:Y,ddx:V,ddy:T,sourceEvent:O,hover:function(){return zqu(O.clientX,O.clientY)}})}};
LTO=function(A,L,O){var X=Math.abs(L.clientX-A.x),x=Math.abs(L.clientY-A.y),J=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(O||L);!J||AWp[J.localName]&&J.hasAttribute("disabled")||!(isNaN(X)||isNaN(x)||X<=25&&x<=25||WzO(L))||A.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(J,"tap",{x:L.clientX,y:L.clientY,sourceEvent:L,preventer:O})};
Oss=function(A,L,O,X,x){var J;x&&(J=typeof O==="object"&&O!==null)&&(X=A.__dataTemp[L]);X=X!==O&&(X===X||O===O);J&&X&&(A.__dataTemp[L]=O);return X};
xKe=function(){if(fd&&!IU){if(!XMs){XMs=!0;var A=document.createElement("style");A.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(A)}return!0}return!1};
JWy=function(){return sHp};
P1r=function(A,L){sHp=A;Object.setPrototypeOf(A,L.prototype);new L;sHp=null};
dKO=function(A,L){for(var O=0;O<L.length;O++){var X=L[O];if(!!A!=!!X.__hideTemplateChildren__)if(X.nodeType===Node.TEXT_NODE)A?(X.__polymerTextContent__=X.textContent,X.textContent=""):X.textContent=X.__polymerTextContent__;else if(X.localName==="slot")if(A)X.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.bO)((0,_.bO)(X).parentNode).replaceChild(X.__polymerReplaced__,X);else{var x=X.__polymerReplaced__;x&&(0,_.bO)((0,_.bO)(x).parentNode).replaceChild(X,x)}else X.style&&(A?(X.__polymerDisplay__=
X.style.display,X.style.display="none"):X.style.display=X.__polymerDisplay__);X.__hideTemplateChildren__=A;X._showHideChildren&&X._showHideChildren(A)}};
Yi_=function(A){return(A=A.__dataHost)&&A._methodHost||A};
VXe=function(A,L,O){var X=O.mutableData?uuO:yL;ZZ.mixin&&(X=ZZ.mixin(X));var x=function(){return X.apply(this,arguments)||this};
_.g(x,X);x.prototype.__templatizeOptions=O;x.prototype._bindTemplate(A);TAe(x,A,L,O);return x};
tXD=function(A,L,O,X){var x=O.forwardHostProp;if(x&&L.hasHostProps){var J=A.localName=="template",Y=L.templatizeTemplateClass;if(!Y){if(J){var T=O.mutableData?DK_:emM;Y=function(){return T.apply(this,arguments)||this};
_.g(Y,T);Y=L.templatizeTemplateClass=Y}else{var V=A.constructor;Y=function(){return V.apply(this,arguments)||this};
_.g(Y,V);Y=L.templatizeTemplateClass=Y}var E=L.hostProps,n;for(n in E)Y.prototype._addPropertyEffect("_host_"+n,Y.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:Ezs(x)}),Y.prototype._createNotifyingProperty("_host_"+n);jv&&X&&nzO(L,O,X)}A.__dataProto&&Object.assign(A.__data,A.__dataProto);if(J)P1r(A,Y),A.__dataTemp={},A.__dataPending=null,A.__dataOld=null,A._enableProperties();else{Object.setPrototypeOf(A,Y.prototype);L=L.hostProps;for(var t in L)t="_host_"+t,t in A&&(L=A[t],delete A[t],A.__data[t]=
L)}}};
Ezs=function(A){return function(L,O,X){A.call(L.__templatizeOwner,O.substring(6),X[O])}};
TAe=function(A,L,O,X){var x=O.hostProps||{},J;for(J in X.instanceProps){delete x[J];var Y=X.notifyInstanceProp;Y&&A.prototype._addPropertyEffect(J,A.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:bs9(Y)})}if(X.forwardHostProp&&L.__dataHost)for(var T in x)O.hasHostProps||(O.hasHostProps=!0),A.prototype._addPropertyEffect(T,A.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:hmM()})};
bs9=function(A){return function(L,O,X){A.call(L.__templatizeOwner,L,O,X[O])}};
hmM=function(){return function(A,L,O){A.__dataHost._setPendingPropertyOrPath("_host_"+L,O[L],!0,!0)}};
ZZ=function(A,L,O){if(W2&&!Yi_(A))throw Error("Id");O=O||{};if(A.__templatizeOwner)throw Error("Jd");A.__templatizeOwner=L;var X=(L?L.constructor:yL)._parseTemplate(A),x=X.templatizeInstanceClass;x||(x=VXe(A,X,O),X.templatizeInstanceClass=x);var J=Yi_(A);tXD(A,X,O,J);O=function(){return x.apply(this,arguments)||this};
_.g(O,x);O.prototype._methodHost=J;O.prototype.__dataHost=A;O.prototype.__templatizeOwner=L;O.prototype.__hostProps=X.hostProps;return O};
nzO=function(A,L,O){O=O.constructor._properties;A=A.propertyEffects;L=L.instanceProps;for(var X in A)if(!(O[X]||L&&L[X]))for(var x=A[X],J=0;J<x.length;J++){var Y=x[J].info.part;if(!Y.signature||!Y.signature.static){console.warn("Property '"+X+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
Sip=function(A,L){for(var O;L;)if(O=L.__dataHost?L:L.__templatizeInstance)if(O.__dataHost!=A)L=O.__dataHost;else return O;else L=(0,_.bO)(L).parentNode;return null};
H2=function(A){return A.localName==="slot"};
qir=function(){for(var A=zk.prototype,L="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),O={},X=0;X<L.length;O={method$jscomp$34:void 0},X++)O.method$jscomp$34=L[X],A[O.method$jscomp$34]=function(x){return function(){return this.node[x.method$jscomp$34].apply(this.node,arguments)}}(O)};
gzP=function(A,L){for(var O={},X=0;X<L.length;O={name$jscomp$422:void 0},X++)O.name$jscomp$422=L[X],Object.defineProperty(A,O.name$jscomp$422,{get:function(x){return function(){return this.node[x.name$jscomp$422]}}(O),
configurable:!0})};
wMM=function(){for(var A=zk.prototype,L=["textContent","innerHTML","className"],O={},X=0;X<L.length;O={name$jscomp$423:void 0},X++)O.name$jscomp$423=L[X],Object.defineProperty(A,O.name$jscomp$423,{get:function(x){return function(){return this.node[x.name$jscomp$423]}}(O),
set:function(x){return function(J){this.node[x.name$jscomp$423]=J}}(O),
configurable:!0})};
pMr=function(){B2=document.documentElement.getAttribute("dir");B2=document.documentElement.getAttribute("dir");for(var A=0;A<M7.length;A++){var L=M7[A];L.__autoDirOptOut||L.setAttribute("dir",B2)}};
KTy=function(){$d=!0;requestAnimationFrame(function(){$d=!1;isJ(NAe);setTimeout(function(){for(var A=0,L=aU.length;A<L;A++)rWM(aU.shift())})})};
isJ=function(A){for(;A.length;)rWM(A.shift())};
rWM=function(A){var L=A[0],O=A[1];A=A[2];try{O.apply(L,A)}catch(X){setTimeout(function(){throw X;})}};
_.Gy9=function(A,L,O){$d||KTy();NAe.push([A,L,O])};
_.kd=function(A,L,O){$d||KTy();aU.push([A,L,O])};
C1J=function(A,L){L=L===void 0?!1:L;if(!lF_||!cW_||!lF_.handlesDynamicScoping)return null;var O=cW_.ScopingShim;if(!O)return null;var X=O.scopeForNode(A),x=(0,_.bO)(A).getRootNode(),J=function(Y){if((0,_.bO)(Y).getRootNode()===x){var T=Array.from(lF_.nativeMethods.querySelectorAll.call(Y,"*"));T.push(Y);for(Y=0;Y<T.length;Y++){var V=T[Y];if((0,_.bO)(V).getRootNode()===x){var E=O.currentScopeForNode(V);E!==X&&(E!==""&&O.unscopeNode(V,E),O.scopeNode(V,X))}}}};
J(A);return L?(L=new MutationObserver(function(Y){for(var T=0;T<Y.length;T++)for(var V=Y[T],E=0;E<V.addedNodes.length;E++){var n=V.addedNodes[E];n.nodeType===Node.ELEMENT_NODE&&J(n)}}),L.observe(A,{childList:!0,
subtree:!0}),L):null};
FT9=function(){document.body.removeAttribute("unresolved")};
IFu=function(A){var L=A=A.replace(Rm_,"").replace(QHp,""),O=new mKP;O.start=0;O.end=L.length;for(var X=O,x=0,J=L.length;x<J;x++)if(L[x]==="{"){X.rules||(X.rules=[]);var Y=X,T=Y.rules[Y.rules.length-1]||null;X=new mKP;X.start=x+1;X.parent=Y;X.previous=T;Y.rules.push(X)}else L[x]==="}"&&(X.end=x+1,X=X.parent||O);return fFy(O,A)};
fFy=function(A,L){var O=L.substring(A.start,A.end-1);A.parsedCssText=A.cssText=O.trim();A.parent&&(O=L.substring(A.previous?A.previous.end:A.parent.start,A.start-1),O=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(O),O=O.replace(yWP," "),O=O.substring(O.lastIndexOf(";")+1),O=A.parsedSelector=A.selector=O.trim(),A.atRule=O.indexOf("@")===0,A.atRule?O.indexOf("@media")===0?A.type=4:O.match(Zsu)&&(A.type=7,A.keyframesName=A.selector.split(yWP).pop()):O.indexOf("--")===
0?A.type=1E3:A.type=1);if(O=A.rules)for(var X=0,x=O.length,J=void 0;X<x&&(J=O[X]);X++)fFy(J,L);return A};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(A){return A.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var L=arguments[1],O=6-L.length;O--;)L="0"+L;return"\\"+L})};
jHs=function(A,L,O){O=O===void 0?"":O;var X="";if(A.cssText||A.rules){var x=A.rules;if(x&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(x))for(var J=0,Y=x.length,T=void 0;J<Y&&(T=x[J]);J++)X=jHs(T,L,X);else L?L=A.cssText:(L=A.cssText,L=L.replace(WTp,"").replace(Hsp,""),L=L.replace(zmu,"").replace(BAD,"")),(X=L.trim())&&(X="  "+X+"\n")}X&&(A.selector&&(O+=A.selector+" {\n"),O+=X,A.selector&&(O+="}\n\n"));return O};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(A){A=A[0];return!!A&&!!A.selector&&A.selector.indexOf("--")===0};
$Ke=function(A){if(A=MXM[A])A._applyShimCurrentVersion=A._applyShimCurrentVersion||0,A._applyShimValidatingVersion=A._applyShimValidatingVersion||0,A._applyShimNextVersion=(A._applyShimNextVersion||0)+1};
aFO=function(A){return A._applyShimCurrentVersion===A._applyShimNextVersion};
UKr=function(A){A._applyShimValidatingVersion=A._applyShimNextVersion;A._validating||(A._validating=!0,kyD.then(function(){A._applyShimCurrentVersion=A._applyShimNextVersion;A._validating=!1}))};
ozP=function(A){if(!A)return"";typeof A==="string"&&(A=IFu(A));return jHs(A,vzr)};
AVO=function(A){!A.__cssRules&&A.textContent&&(A.__cssRules=IFu(A.textContent));return A.__cssRules||null};
O59=function(A,L,O,X){if(A){var x=!1,J=A.type;if(X&&J===4){var Y=A.selector.match(LRe);Y&&(window.matchMedia(Y[1]).matches||(x=!0))}J===1?L(A):O&&J===7?O(A):J===1E3&&(x=!0);if((A=A.rules)&&!x)for(x=0,J=A.length,Y=void 0;x<J&&(Y=A[x]);x++)O59(Y,L,O,X)}};
X6P=function(A,L){var O=A.indexOf("var(");if(O===-1)return L(A,"","","");a:{var X=0;var x=O+3;for(var J=A.length;x<J;x++)if(A[x]==="(")X++;else if(A[x]===")"&&--X===0)break a;x=-1}X=A.substring(O+4,x);O=A.substring(0,O);A=X6P(A.substring(x+1),L);J=X.indexOf(",");if(J===-1)return L(O,X.trim(),"",A);x=X.substring(0,J).trim();X=X.substring(J+1).trim();return L(O,x,X,A)};
xSD=function(A){if(Uj!==void 0)return Uj;if(A.__cssBuild===void 0){var L=A.getAttribute("css-build");if(L)A.__cssBuild=L;else{a:{L=A.localName==="template"?A.content.firstChild:A.firstChild;if(L instanceof Comment&&(L=L.textContent.trim().split(":"),L[0]==="css-build")){L=L[1];break a}L=""}if(L!==""){var O=A.localName==="template"?A.content.firstChild:A.firstChild;O.parentNode.removeChild(O)}A.__cssBuild=L}}return A.__cssBuild||""};
JVu=function(A,L,O,X){for(var x=L._noAccessors,J=Object.getOwnPropertyNames(L),Y=0;Y<J.length;Y++){var T=J[Y];if(!(T in X))if(x)A[T]=L[T];else{var V=Object.getOwnPropertyDescriptor(L,T);V&&(V.configurable=!0,Object.defineProperty(A,T,V))}}for(var E in sSu)L[E]&&(O[E]=O[E]||[],O[E].push(L[E]))};
P_s=function(A,L,O){L=L||[];for(var X=A.length-1;X>=0;X--){var x=A[X];x?Array.isArray(x)?P_s(x,L):L.indexOf(x)<0&&(!O||O.indexOf(x)<0)&&L.unshift(x):console.warn("behavior is null, check for missing or 404 import")}return L};
dS9=function(A,L){for(var O in L){var X=A[O],x=L[O];A[O]=!("value"in x)&&X&&"value"in X?Object.assign({value:X.value},x):x}};
Tku=function(A,L,O){var X={},x=function(){return L.apply(this,arguments)||this};
_.g(x,L);x._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(Y)for(var V=0,E;V<Y.length;V++)E=Y[V],E.properties&&this.createProperties(E.properties),E.observers&&this.createObservers(E.observers,E.properties);A.properties&&this.createProperties(A.properties);A.observers&&this.createObservers(A.observers,A.properties);this._prepareTemplate()}else L._finalizeClass.call(this)};
x.prototype.created=function(){L.prototype.created.call(this);var V=X.created;if(V)for(var E=0;E<V.length;E++)V[E].call(this)};
x.prototype._registered=function(){var V=x.prototype;if(!V.hasOwnProperty("__hasRegisterFinished")){V.__hasRegisterFinished=!0;L.prototype._registered.call(this);fd&&T(V);V=Object.getPrototypeOf(this);var E=X.beforeRegister;if(E)for(var n=0;n<E.length;n++)E[n].call(V);if(E=X.registered)for(n=0;n<E.length;n++)E[n].call(V)}};
x.prototype._applyListeners=function(){L.prototype._applyListeners.call(this);var V=X.listeners;if(V)for(var E=0;E<V.length;E++){var n=V[E];if(n)for(var t in n)this._addMethodEventListenerToNode(this,t,n[t])}};
x.prototype._ensureAttributes=function(){var V=X.hostAttributes;if(V)for(var E=V.length-1;E>=0;E--){var n=V[E],t;for(t in n)this._ensureAttribute(t,n[t])}L.prototype._ensureAttributes.call(this)};
x.prototype.ready=function(){L.prototype.ready.call(this);var V=X.ready;if(V)for(var E=0;E<V.length;E++)V[E].call(this)};
x.prototype.attached=function(){L.prototype.attached.call(this);var V=X.attached;if(V)for(var E=0;E<V.length;E++)V[E].call(this)};
x.prototype.detached=function(){L.prototype.detached.call(this);var V=X.detached;if(V)for(var E=0;E<V.length;E++)V[E].call(this)};
x.prototype.attributeChanged=function(V,E,n){L.prototype.attributeChanged.call(this);var t=X.attributeChanged;if(t)for(var b=0;b<t.length;b++)t[b].call(this,V,E,n)};
_.v2.Object.defineProperties(x,{properties:{configurable:!0,enumerable:!0,get:function(){var V={};if(Y)for(var E=0;E<Y.length;E++)dS9(V,Y[E].properties);dS9(V,A.properties);return V}},
observers:{configurable:!0,enumerable:!0,get:function(){var V=[];if(Y)for(var E=0,n;E<Y.length;E++)n=Y[E],n.observers&&(V=V.concat(n.observers));A.observers&&(V=V.concat(A.observers));return V}}});
if(O){Array.isArray(O)||(O=[O]);var J=L.prototype.behaviors;var Y=P_s(O,null,J);x.prototype.behaviors=J?J.concat(O):Y}var T=function(V){if(Y)for(var E=Y,n=0;n<E.length;n++)JVu(V,E[n],X,Yv9);JVu(V,A,X,u4O)};
fd||T(x.prototype);x.generatedFrom=A;return x};
EjJ=function(A){var L=typeof A!=="string"?A:{is:A,notifyObserversOnUndefined:!0};L.fastInit===void 0&&(L.fastInit=!0);return function(O){if(!L.disableInheritanceCheck&&Object.getPrototypeOf(O.prototype).constructor!==_.oU)throw Error("Nd");var X=O.prototype;X.is=L.is;Sf_(X,"created",function(){this.hostElement=this;this.polymerController=this});
VuO(X,O,L.fastInit);L.notifyObserversOnUndefined&&(X._overrideLegacyUndefined=!0);if(DSy)for(var x=_.d(Object.getOwnPropertyNames(X)),J=x.next();!J.done;J=x.next()){J=J.value;var Y=Object.getOwnPropertyDescriptor(X,J);Y.enumerable===!1&&(Y.enumerable=!0,Object.defineProperty(X,J,Y))}if("template"in O)var T=function(){return O.template};
else L.template!==void 0&&(T=L.template);if(T!==void 0){var V;Object.defineProperty(X,"_template",{get:function(){V===void 0&&(V=T());return V},
set:function(E){V=E},
configurable:!0,enumerable:!0})}Polymer(X);O[ebu]=X}};
nje=function(A){A=A===void 0?{}:A;A.fastInit===void 0&&(A.fastInit=!0);return function(L){if(!A.disableInheritanceCheck&&Object.getPrototypeOf(L.prototype).constructor!==A9)throw Error("Od");VuO(L.prototype,L,A.fastInit)}};
VuO=function(A,L,O){O=O===void 0?!1:O;tue(L);O?Sf_(A,"created",function(){this.disableEnforceFastDefaultValuesCheck||b59(L,this)}):Sf_(A,"ready",function(){for(var X={},x=_.d(qfM(this.behaviors)),J=x.next();!J.done;J=x.next())J=J.value,J.properties&&Object.assign(X,hb_(this,J.properties));
Object.assign(X,hb_(this,this.properties));b59(L,this);x=_.d(Object.keys(X));for(J=x.next();!J.done;J=x.next())J=J.value,this[J]=X[J]})};
b59=function(A,L){if(DSy){A=new A;for(var O=_.d(Object.getOwnPropertyNames(A)),X=O.next();!X.done;X=O.next())X=X.value,L[X]=A[X];for(O=L;O&&O!==Object.prototype;O=Object.getPrototypeOf(O)){X=_.d(Object.getOwnPropertyNames(O));for(var x=X.next();!x.done;x=X.next())x=x.value,A.hasOwnProperty(x)||Object.defineProperty(A,x,SvJ(L,x))}}else A.apply(L)};
SvJ=function(A,L){return{get:function(){var O=A[L];return O instanceof Function?O.bind(A):O},
set:function(O){A[L]=O}}};
hb_=function(A,L){if(!L)return{};for(var O={},X=_.d(Object.keys(L)),x=X.next();!x.done;x=X.next())if(x=x.value,!L[x].readOnly){var J=A[x];J!==void 0&&(O[x]=J)}return O};
tue=function(A){var L=new A;A=A.prototype.properties||{};for(var O=_.d(Object.keys(A)),X=O.next();!X.done;X=O.next())if(X=X.value,L.hasOwnProperty(X)){var x=A[X];typeof x==="function"&&(A[X]=x={type:x});L[X]!=null&&x.type===Object&&(x.type=qvd(L[X].constructor))}};
qvd=function(A){for(var L=_.d(gje),O=L.next();!O.done;O=L.next())if(O=O.value,A===O)return O;return Object};
w69=function(A){return function(L,O){L.behaviors=L.behaviors||[];L.behaviors.push(A||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",L,O).prototype:void 0));Object.defineProperty(L,O,{get:function(){return this},
enumerable:!0,configurable:!0})}};
p6P=function(A){A=A===void 0?{}:A;return function(L,O){L.properties=L.properties||{};A.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?A.type=qvd(Reflect.getMetadata("design:type",L,O)):A.type=String);var X=A,x=L.properties[O];L.properties[O]=x?Object.assign({},x,X):X}};
i5p=function(A){return function(L,O){L.listeners=L.listeners||{};L.listeners[A]=O}};
NkM=function(){var A=_.f_.apply(0,arguments);if(A.length===0)throw Error("Pd");return function(L,O){L.observers=L.observers||[];L.observers.push(O+"("+A.join(",")+")")}};
rVu=function(){var A=_.f_.apply(0,arguments);return function(L,O,X){var x=Object.getOwnPropertyDescriptor(L,O).get,J="__compute__"+O;Object.defineProperty(L,J,{value:x,enumerable:!0});L.properties=L.properties||{};x=L.properties[O];x||(x={},L.properties[O]=x);x.computed=J+"("+A.join(",")+")";X.get=void 0}};
_.Lh=function(A,L,O){_.p$.call(this);this.JSC$12280_id_=null;this.usingListeners_=!1;this.JSC$12280_listener_=A;this.handler_=O;this.JSC$12280_win_=L||window;this.callback_=(0,_.is)(this.JSC$12282_doAction_,this)};
OI=function(A){this.range_=A};
Xn=function(A){this.range_=A};
J9=function(A,L,O){_.p$.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=A;this.scrollTimer_=new _.xO(50);this.JSC$12359_eventHandler_=new _.sI(this);this.scrollDelta_=new _.Cm;this.containerIsActuallyContent_=A.tagName==="BODY"||A.tagName==="HTML";this.containerBounds_=KRd(A);this.containerIsActuallyContent_&&(A=_.hD(),this.containerBounds_.height=A.height,this.containerBounds_.width=A.width);this.margin_=L||0;if(L){if(L=this.containerBounds_.clone(),A=this.margin_){var X=
Math.min(A,L.height*.25);L.top+=X;L.height-=2*X;A=Math.min(A,L.width*.25);L.left+=A;L.width-=2*A}}else L=this.containerBounds_;this.scrollBounds_=L;O||this.JSC$12359_eventHandler_.listen(_.Ro(this.containerNode_),"mousemove",this.JSC$12361_onMouseMove);this.JSC$12359_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$12361_onTick_)};
_.P3=function(A){this.mechanism=A};
d6=function(A,L){this.JSC$12457_key_=A;this.JSC$12457_value_=L};
lVu=function(A){if(A>=55296&&A<=57343||A>1114111)return"\ufffd";A in GvD&&(A=GvD[A]);var L="";A>65535&&(A-=65536,L+=String.fromCharCode(A>>>10&1023|55296),A=56320|A&1023);return L+=String.fromCharCode(A)};
cVu=function(A,L){return A<L?1:-1};
FRy=function(){return function(A){return A.charAt(1)==="#"?A.charAt(2)==="X"||A.charAt(2)==="x"?lVu(parseInt(A.substr(3),16)):lVu(parseInt(A.substr(2),10)):C_e[A.slice(1,-1)]}};
mSy=function(A){return A.slice(1,A.length-1).trim().replace(Rbr,function(L){return QSr[L]||" "})};
YO=function(A){return A===32||A===9};
ui=function(A,L){return L<A.length?A.charCodeAt(L):-1};
fVP=function(A){for(;A;){if(A._lastLineBlank)return!0;var L=A.type;if(L==="list"||L==="item")A=A._lastChild;else break}return!1};
TN=function(A){if(yV9.test(A)){var L=1,O=0,X=0;for(A[O]=="|"&&O++;O<A.length;){switch(A[O]){case "|":X=1;break;case " ":break;case "\t":break;default:X&&(X=0,L++)}O++}return Z5d.test(A)?-L:L}return 0};
jSJ=function(A){return A=="table"||A=="row"||A=="cell"};
WRr=function(){return new Vq("document",[[1,1],[0,0]])};
H5r=function(){};
Dx=function(){var A={safe:!1};A=A||{};A.softbreak=A.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=A};
aVP=function(A,L){var O="";if(A)if(A=A.toLowerCase(),A===" "||zbu.test(A))O="space";else if(Bku.test(A))O="esc";else if(A.length==1){if(!L||Mud.test(A))O=A}else O=$Sd.test(A)?A.replace("arrow",""):A=="multiply"?"*":A;return O};
oju=function(A,L){var O=A.hasModifiers;if(L.key)O=aVP(L.key,O);else if(L.detail&&L.detail.key)O=aVP(L.detail.key,O);else{O=L.keyIdentifier;var X="";O&&(O in kvP?X=kvP[O]:USp.test(O)?(O=parseInt(O.replace("U+","0x"),16),X=String.fromCharCode(O).toLowerCase()):X=O.toLowerCase());(O=X)||(O=L.keyCode,X="",Number(O)&&(O>=65&&O<=90?X=String.fromCharCode(32+O):O>=112&&O<=123?X="f"+(O-112+1):O>=48&&O<=57?X=String(O-48):O>=96&&O<=105?X=String(O-96):X=vju[O]),O=X);O=O||""}return O===A.key&&(!A.hasModifiers||
!!L.shiftKey===!!A.shiftKey&&!!L.ctrlKey===!!A.ctrlKey&&!!L.altKey===!!A.altKey&&!!L.metaKey===!!A.metaKey)};
LSe=function(A){return A.length===1?{combo:A,key:A,event:"keydown"}:A.split("+").reduce(function(L,O){var X=O.split(":");O=X[0];X=X[1];O in AQs?(L[AQs[O]]=!0,L.hasModifiers=!0):(L.key=O,L.event=X||"keydown");return L},{combo:A.split(":").shift()})};
OcO=function(A){return A.trim().split(" ").map(function(L){return LSe(L)})};
Xbp=function(A,L){if(A&&A.fn){var O=A.fn;A.fn=function(){try{O.apply(this,arguments)}catch(X){if(X instanceof ef)console.warn("Argument '"+X.arg+"'"+(L?" for method '"+L+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw X;}}}return A};
xJO=function(){var A=_.f_.apply(0,arguments);return A.length===0?function(L){return L}:A.length===1?A[0]:A.reduce(function(L,O){return function(){return L(O.apply(null,_.le(_.f_.apply(0,arguments))))}})};
s$e=function(){var A=_.f_.apply(0,arguments);return function(L){return function(O,X){O=L(O,X);var x=function(){throw Error("ze");},J={getState:O.getState,
dispatch:function(Y){return x.apply(null,[Y].concat(_.le(_.f_.apply(1,arguments))))}};
X=A.map(function(Y){return Y(J)});
x=xJO.apply(null,_.le(X))(O.dispatch);return Object.assign({},O,{dispatch:x})}}};
dJD=function(A){Object.keys(A).forEach(function(L){var O=A[L];if(typeof O(void 0,{type:JQe})==="undefined")throw Error("Ae`"+L);if(typeof O(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+PbD()})==="undefined")throw Error("Be`"+L+"`"+JQe);})};
EI=function(A){for(var L=Object.keys(A),O={},X=0;X<L.length;X++){var x=L[X];typeof A[x]==="function"&&(O[x]=A[x])}var J=Object.keys(O);try{dJD(O)}catch(T){var Y=T}return function(T,V){T=T===void 0?{}:T;if(Y)throw Y;for(var E=!1,n={},t=0;t<J.length;t++){var b=J[t],S=T[b],w=(0,O[b])(S,V);if(typeof w==="undefined")throw T=V&&V.type,Error("Ce`"+(T?'"'+String(T)+'"':"(unknown type)")+"`"+b);n[b]=w;E=E||w!==S}return(E=E||J.length!==Object.keys(T).length)?n:T}};
YMr=function(A,L,O){function X(){if(n)throw Error("De");return T}
function x(S){if(typeof S!=="function")throw Error("Ee`"+typeof S);if(n)throw Error("Fe");var w=!0;E===V&&(E=V.slice());E.push(S);return function(){if(w){if(n)throw Error("Ge");w=!1;E===V&&(E=V.slice());var l=E.indexOf(S);E.splice(l,1);V=null}}}
function J(S){if(typeof S!=="object"||S===null)var w=!1;else{for(w=S;Object.getPrototypeOf(w)!==null;)w=Object.getPrototypeOf(w);w=Object.getPrototypeOf(S)===w}if(!w)throw Error("He`"+typeof S);if(typeof S.type==="undefined")throw Error("Ie");if(n)throw Error("Je");try{n=!0,T=Y(T,S)}finally{n=!1}w=V=E;for(var l=0;l<w.length;l++)(0,w[l])();return S}
if(typeof L==="function"&&typeof O==="function"||typeof O==="function"&&typeof arguments[3]==="function")throw Error("Ke");typeof L==="function"&&typeof O==="undefined"&&(O=L,L=void 0);if(typeof O!=="undefined"){if(typeof O!=="function")throw Error("Le`"+typeof O);return O(YMr)(A,L)}if(typeof A!=="function")throw Error("Me`"+typeof A);var Y=A,T=L,V=[],E=V,n=!1;J({type:JQe});var t={},b=(t.dispatch=J,t.subscribe=x,t.getState=X,t.replaceReducer=function(S){if(typeof S!=="function")throw Error("Ne`"+
typeof S);Y=S;J({type:ued});return b},t[T_d]=function(){var S={};
return S.subscribe=function(w){function l(){w.next&&w.next(X())}
if(typeof w!=="object"||w===null)throw new TypeError("Oe`"+typeof w);l();return{unsubscribe:x(l)}},S[T_d]=function(){return this},S},t);
return b};
V7M=function(A){function L(){x&&(x=!1,A());J&&X()}
function O(){requestAnimationFrame(L)}
function X(){var T=Date.now();if(x){if(T-Y<2)return;J=!0}else x=!0,J=!1,setTimeout(O,20);Y=T}
var x=!1,J=!1,Y=0;return X};
nh=function(A){return typeof A==="number"?A:parseFloat(A)||0};
DJu=function(A){return _.f_.apply(1,arguments).reduce(function(L,O){return L+nh(A["border-"+O+"-width"])},0)};
_.p=function(A,L){L=Wf(jg(L));A.innerHTML=L};
nFM=function(A){var L=eJp;L||(L=EFO(),L=eJp=_.lW.transpose(L));L=L[A];return typeof L==="string"?L:_.t9(A)};
t7M=function(A){A=String(A).toLowerCase();var L=EFO()[A];return typeof L==="string"?L:_.bi(A)};
bcM=function(A){A=A.toLowerCase();A=EFO()[A];return typeof A==="string"?A:null};
EFO=function(){if(!hJ9){for(var A=Object.assign({},SMM),L=_.d(qMP),O=L.next();!O.done;O=L.next())O=O.value,A[O.toLowerCase()]=O;hJ9=A}return hJ9};
pbP=function(A,L){var O=window.customElements;return O&&O.get(A)||gFe[A]===!0?2:L.name==="HTMLUnknownElement"?1:L.name==="HTMLElement"&&wbM.test(A)?3:0};
rQD=function(A,L){switch(L){case "innerHTML":return icu(A)===1?2:null;case "textContent":return A=icu(A),A===1||A===6?1:null;default:var O,X;return(X=(O=N_p[A.localName])==null?void 0:O[L])!=null?X:null}};
icu=function(A){var L=A.localName,O=pbP(L,A.constructor);switch(O){case 0:case 1:return KSe(L,A);case 3:case 2:return 1;default:_.ZN(O,"got an unknown element classification")}};
KSe=function(A,L){var O=Object.hasOwnProperty.call(GId,A)?GId[A]:null;return O!==null?O:Object.hasOwnProperty.call(ltO,A)&&L instanceof SVGElement?ltO[A]:null};
cQp=function(A,L){return L};
FSe=function(A){return(A=A.split(Cb9,2))?{url:A[0],metadata:A[1]}:null};
Q$e=function(A){var L=String(A.url).replace(RJd,encodeURIComponent);if(A=A.metadata){RJd.lastIndex=0;if(RJd.test(A))return null;L+=" "+A}return L};
yQe=function(A){function L(E){var n=E.localName;if(!E.getAttribute("is")&&pbP(n,E.constructor)===2){var t;return(t=V)!=null?t:V=document.createElement("polyresinuncustomized")}(E=T[n])||(E=T[n]=document.createElement(n));return E}
var O=A.reportHandler||void 0,X=A.safeTypesBridge||mJO,x=/^$/;if(A=A.allowedIdentifierPrefixes){A=_.d(A);for(var J=A.next();!J.done;J=A.next())x=new RegExp(x.source+"|^"+_.ftJ(J.value))}O&&O(!1,"initResin",null);var Y=Ity(x,X,O),T={},V=null;return function(E,n,t){var b=E.nodeType;if(b!==Node.ELEMENT_NODE){if(b===Node.TEXT_NODE){n=E.parentElement;t=!n;if(n&&n.nodeType===Node.ELEMENT_NODE){b=n.localName;var S=pbP(b,n.constructor);switch(S){case 0:case 1:n=KSe(b,n);t=n===1||n===6;break;case 3:case 2:t=
!0;break;default:_.ZN(S,"got an unknown element classification")}}if(t)return function(R){return""+X(R,"STRING",R)}}return function(R){if(!R&&R!==document.all)return R;
O&&O(!0,"Failed to sanitize "+(E.parentElement&&E.parentElement.nodeName)+" #text node to value "+R,E.parentElement);return h9}}var w=E.localName;
b=L(E);var l=null;switch(t){case "attribute":if(t7M(n)in b)break;return function(R){return R};
case "property":if(n in b){l=rQD(b,n);break}if((S=bcM(n))&&S in b)break;return function(R){return R};
default:_.ZN(t,"got an unknown resin type, expected either 'property' or 'attribute'")}var F=t==="attribute"?n.toLowerCase():nFM(n);l||(l=x79(w,F,function(R){var y=E.getAttribute(R);return!y||/[\[\{]/.test(R)?null:y}));
return function(R){var y=Sf,M=null;if(!R&&R!==document.all)return R;if(l!=null){var H=Y[l],z=H.safeType;M=H.safeReplacement;z&&(y=X(R,z,Sf));y===Sf&&(H.filterString?(y=String(X(R,"STRING",R)),y=H.filterString(w,F,y)):H.filterRaw&&(y=H.filterRaw(w,F,R,E)),y===M&&(y=Sf))}y===Sf&&(y=M||h9,O&&O(!0,"Failed to sanitize attribute of <"+w+">: <"+w+" "+F+'="'+R+'">',E));return y}}};
Ity=function(A,L,O){return[,{filterRaw:function(X,x,J){return J},
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:Zcu,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:Zcu,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:h9,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:j$r,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(X,x,J){J=
String(J).toLowerCase();return PO9(X,x,J)?J:h9},
safeReplacement:h9,safeType:void 0},,{filterRaw:void 0,filterString:function(X,x,J){return A.test(J)?J:h9},
safeReplacement:h9,safeType:"CONSTANT"},{filterRaw:function(X,x,J,Y){if(typeof J==="string")var T=(T=J.match(WSd))?T.map(FSe).filter(Boolean):[];else if(Array.isArray(J))T=J;else return Zcu;var V=T;T=[];var E=[],n={};if(Array.isArray(V))for(var t=0,b=V.length;t<b;++t){var S=V[t],w=S&&S.url;if(w){var l=L(w,"URL",n);if(l){var F=l!==n;(F?T:E).push({url:F?l:w,metadata:S.metadata})}}}else E.push(V);V=E.length?JSON.stringify(E):null;E=Sf;if(T.length){if(!Array.isArray(T))throw Error();E=T.map(Q$e).filter(Boolean).join(" , ")||
Sf}V&&O&&O(!0,"Failed to sanitize attribute value of <"+X+">: <"+X+" "+x+'="'+J+'">: '+V,Y);return E===Sf?Zcu:E},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
Hc9=function(A){var L=yQe(A);return function(O,X,x,J){return J||J===document.all?L(O,X,x)(J):J}};
qA=function(A,L){function O(){function x(T,V,E){for(V=Reflect.getMetadata("parameters",T)||[];V.length<=E;)V.push(null);V[E]=V[E]||[];V[E].push(Y);Reflect.defineMetadata(V,T);return T}
var J=_.f_.apply(0,arguments);if(this instanceof O)return X.apply(this,J),this;var Y=new (Function.prototype.bind.apply(O,[null].concat(_.le(J))));x.annotation=Y;return x}
var X=zJO(L);O.prototype.toString=function(){return"@"+A};
return O.annotationCls=O};
zJO=function(A){return function(){var L=_.f_.apply(0,arguments),O=this;A.forEach(function(X,x){x=L[x];if(Array.isArray(X))O[X[0]]=x&&x!==void 0?x:X[1];else for(var J in X)O[J]=x&&x[J]!==void 0?x[J]:X[J]})}};
B_d=function(A){return A!==void 0&&A!==null};
g6=function(A){if(typeof A==="string")return A;if(A===void 0||A===null)return""+A;if(A.overriddenName)return A.overriddenName;if(A.name)return A.name;A=A.toString();var L=A.indexOf("\n");return L===-1?A:A.substring(0,L)};
M79=function(A){A.__forward_ref__=M79;A.toString=function(){return g6(this())};
return A};
w6=function(A){return typeof A==="function"&&A.hasOwnProperty("__forward_ref__")&&A.__forward_ref__===M79?A():A};
$Js=function(A){return A?A.map(function(L){return new (Function.prototype.bind.apply(L.type.annotationCls,[null].concat(_.le(L.args?L.args:[]))))}):[]};
at9=function(A){for(var L=[],O=0;O<A.length;++O){if(L.indexOf(A[O])>-1){L.push(A[O]);break}L.push(A[O])}return L};
kI9=function(A){return A.length>1?" ("+at9(A.slice().reverse()).map(function(L){return g6(L.token)}).join(" -> ")+")":""};
vFP=function(A,L,O,X){if(X){var x=Error("Ve``"+(X instanceof Error?X.message:X));x.ngOriginalError=X}else x=Error();x.addKey=UJy;x.keys=[L];x.injectors=[A];x.constructResolvingMessage=O;x.message=x.constructResolvingMessage();x.ngOriginalError=X;return x};
UJy=function(A,L){this.injectors.push(A);this.keys.push(L);this.message=this.constructResolvingMessage()};
oFJ=function(A,L){return vFP(A,L,function(){return"No provider for "+g6(this.keys[0].token)+"!"+kI9(this.keys)})};
AwD=function(A,L){return vFP(A,L,function(){return"Cannot instantiate cyclic dependency!"+kI9(this.keys)})};
LZO=function(A,L,O){return vFP(A,O,function(){var X=g6(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+X+"!"+kI9(this.keys)+"."},L)};
On9=function(A,L){for(var O=[],X=0,x=L.length;X<x;X++){var J=L[X];J&&J.length!=0?O.push(J.map(g6).join(" ")):O.push("?")}return Error("Ze`"+g6(A)+"`"+O.join(", ")+"`"+g6(A))};
Y1D=function(A){var L=void 0,O=void 0;if(A&&A.useClass!==void 0){L=A.useClass;var X=w6(A.useClass);var x=X9D.factory(X);X=xIJ(X)}else A&&A.useExisting!==void 0?(x=function(J){return J},X=[sLO(ph.get(w6(A.useExisting)))]):A&&A.useFactory!==void 0?(x=A.useFactory,X=Jwy(A.useFactory,A.deps)):(O=A.useValue,x=function(){return A.useValue},X=P5r);
return new dIr(x,X,L,O)};
Tru=function(A){return new u_9(ph.get(w6(A.provide)),[Y1D(A)],A.multi)};
DIe=function(A){A=VrM(A,[]).map(Tru);for(var L=new Map,O=0;O<A.length;O++){var X=A[O],x=L.get(X.key.id);if(x){if(X.multiProvider!==x.multiProvider)throw Error("af`"+x+"`"+X);if(X.multiProvider)for(var J=0;J<X.resolvedFactories.length;J++)x.resolvedFactories.push(X.resolvedFactories[J]);else L.set(X.key.id,X)}else x=void 0,X.multiProvider?x=new u_9(X.key,X.resolvedFactories.slice(),X.multiProvider):x=X,L.set(X.key.id,x)}return Array.from(L.values())};
VrM=function(A,L){A.forEach(function(O){if(O instanceof eju)L.push({provide:O,useClass:O});else if(O&&typeof O=="object"&&O.provide!==void 0)L.push(O);else if(O instanceof Array)VrM(O,L);else throw Error("Ye`"+O);});
return L};
Jwy=function(A,L){if(L){var O=L.map(function(X){return[X]});
return L.map(function(X){return EIu(A,X,O)})}return xIJ(A)};
xIJ=function(A){var L=X9D.parameters(A);if(!L)return[];if(L.some(function(O){return O==null}))throw On9(A,L);
return L.map(function(O){return EIu(A,O,L)})};
EIu=function(A,L,O){var X=null,x=!1;if(!Array.isArray(L))return L instanceof nID?trd(L.token,x,null):trd(L,x,null);for(var J=null,Y=0;Y<L.length;++Y){var T=L[Y];if(T instanceof eju)X=T;else if(T instanceof nID)X=T.token;else if(T instanceof bne)x=!0;else if(T instanceof hj9||T instanceof S1P)J=T}X=w6(X);if(X!=null)return trd(X,x,J);throw On9(A,O);};
trd=function(A,L,O){return new q1D(ph.get(w6(A)),L,O)};
gIe=function(A,L){for(var O=Array(A.providers.length),X=0;X<A.providers.length;++X){var x=X;if(X<0||X>=A.providers.length)throw Error("$e`"+X);O[x]=L(A.providers[X])}return O};
w9_=function(A){return typeof A==="function"&&X9D.parameters(A).every(function(L){return!!L})};
Nrp=function(A){var L=p9r;inu.get(A)||inu.set(A,new L);return inu.get(A)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(A){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(A)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(A){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(A)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(A,L){var O,X;if(A.contains(L))return!0;A=_.ii(A).querySelectorAll("content,slot");for(O=0;O<A.length;++O){var x=_.ii(A[O]).getDistributedNodes();for(X=0;X<x.length;++X)if(x[X].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(x[X],L))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(A){A.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(A)&&A.preventDefault();A.targetTouches&&(A=A.targetTouches[0],rwd=A.pageX,KZu=A.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 A=0,L=NA.length;A<L;A++)document.addEventListener(NA[A],_._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 A=0,L=NA.length;A<L;A++)document.removeEventListener(NA[A],_._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(A){var L=_.ii(A).rootTarget;A.type!=="touchmove"&&G7D!==L&&(G7D=L,lPd=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.ii(A).path));if(!lPd.length)return!0;if(A.type==="touchstart")return!1;A=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(A);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(lPd,A.deltaX,A.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(A){for(var L=[],O=A.indexOf(cwJ),X=0;X<=O;X++)if(A[X].nodeType===Node.ELEMENT_NODE){var x=A[X],J=x.style;J.overflow!=="scroll"&&J.overflow!=="auto"&&(J=window.getComputedStyle(x));J.overflow!=="scroll"&&J.overflow!=="auto"||L.push(x)}return L};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(A,L,O){if(L||O)for(var X=Math.abs(O)>=Math.abs(L),x=0;x<A.length;x++){var J=A[x];if(X?O<0?J.scrollTop>0:J.scrollTop<J.scrollHeight-J.clientHeight:L<0?J.scrollLeft>0:J.scrollLeft<J.scrollWidth-J.clientWidth)return J}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(A){var L={deltaX:A.deltaX,deltaY:A.deltaY};"deltaX"in A||("wheelDeltaX"in A&&"wheelDeltaY"in A?(L.deltaX=-A.wheelDeltaX,L.deltaY=-A.wheelDeltaY):"wheelDelta"in A?(L.deltaX=0,L.deltaY=-A.wheelDelta):"axis"in A?(L.deltaX=A.axis===1?A.detail:0,L.deltaY=A.axis===2?A.detail:0):A.targetTouches&&(A=A.targetTouches[0],L.deltaX=rwd-A.pageX,L.deltaY=KZu-A.pageY));return L};
C5u=function(A){this.element=A;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
RjD=function(A){this.element=A;this.color=window.getComputedStyle(A).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");_.ii(this.waveContainer).appendChild(this.wave);FZe(this)};
r6=function(A,L){for(var O in A)if(O.toLowerCase()===L.toLowerCase())return A[O]};
QLs=function(A,L){for(var O in A)if(O.toLowerCase()===L.toLowerCase()){delete A[O];break}};
fPP=function(A){A=_.lW.clone(A);for(var L=0;L<mIO.length;++L){var O=mIO[L],X=r6(A,O);X&&(A["X-Goog-Upload-Header-"+O]=X,QLs(A,O))}return A};
IPe=function(A){A=_.lW.clone(A);QLs(A,"X-Goog-Upload-Status")};
Zny=function(A){return ywM.some(function(L){return L.test(A)})};
zje=function(A,L){var O;var X=(O=A.formContent)==null?void 0:O.locale;O=X==null?void 0:X.split("-")[0];X=X&&jL_.includes(X)?X:O&&jL_.includes(O)?O:void 0;X=(X!=null?X:"en").replaceAll("-","_").toLowerCase();var x;A=((x=A.initializationData)==null?0:x.useNightlyRelease)?"nightly":"live";var J;return(L==null?0:(J=L.getEnableAlohaBinarySplit)==null?0:J.call(L))?_.JD(WZP,A):_.JD(Hnu,A,X)};
$IP=function(A,L,O,X){if(Brp&&Mry===L)return Brp;Mry=L;var x=zje(A,X);return Brp=L.feedbackV2GlobalObject?Promise.resolve(L.feedbackV2GlobalObject):new Promise(function(J,Y){var T=_.tg("SCRIPT");_.UB(T,x);T.onload=function(){L.feedbackV2GlobalObject?J(L.feedbackV2GlobalObject):Y(Error("df"))};
T.onerror=function(){Y(Error("ef`"+x.toString()))};
O.body.appendChild(T)})};
UIJ=function(A,L,O,X){if(aPs&&k7u===L)return aPs;k7u=L;var x=zje(A,X);return aPs=L.feedbackV2GlobalObject?Promise.resolve(L.feedbackV2GlobalObject):new Promise(function(J,Y){var T=_.tg("SCRIPT");_.UB(T,x);T.onload=function(){L.feedbackV2GlobalObject?J(L.feedbackV2GlobalObject):Y(Error("df"))};
T.onerror=function(){Y(Error("ef`"+x.toString()))};
O.body.appendChild(T)})};
vIO=function(A,L,O,X,x){x=x===void 0?!0:x;var J,Y,T,V,E;return _.u(function(n){switch(n.nextAddress){case 1:return J=Date.now(),n.yield($IP(A,O,X,L),2);case 2:Y=n.yieldResult;if(!(x||((V=A.initializationData)==null?0:V.useNightlyRelease)||((E=A.initializationData)==null?0:E.isLocalServer))){T=Y.initializeFeedbackClient(A,J,L);n.jumpTo(3);break}return n.yield(Y.initializeFeedbackClientAsync(A,J,L),4);case 4:T=n.yieldResult;case 3:return T.initiateAloha(),n.return(T)}})};
oIr=function(A,L,O,X){var x,J,Y;return _.u(function(T){if(T.nextAddress==1)return x=Date.now(),T.yield(UIJ(A,O,X.document,L),2);if(T.nextAddress!=3)return J=T.yieldResult,T.yield(J.initializeFeedbackClientAsync(A,x,L,X),3);Y=T.yieldResult;Y.initiateAloha();return T.return(Y)})};
ArO=function(A,L,O){var X=!0;X=X===void 0?!0:X;var x,J,Y,T,V,E,n,t,b,S;return _.u(function(w){x=O||_.Ou;if((J=L)==null?0:(T=(Y=J).getEnableAlohaBinarySplit)==null?0:T.call(Y)){V=x;if(V.isFormOpened)throw E=Error("ff"),E.name="DuplicateFormError",E;V.isFormOpened=!0;A.callbacks=A.callbacks||{};n=A.callbacks.onClose||function(){};
A.callbacks.onClose=function(l){V.isFormOpened=!1;n(l)};
try{return w.return(oIr(A,L,V,x))}catch(l){throw V.isFormOpened=!1,l;}}else{t=x;if(t.isFormOpened)throw b=Error("ff"),b.name="DuplicateFormError",b;t.isFormOpened=!0;A.callbacks=A.callbacks||{};S=A.callbacks.onClose||function(){};
A.callbacks.onClose=function(l){t.isFormOpened=!1;S(l)};
try{return w.return(vIO(A,L,t,x.document,X))}catch(l){throw t.isFormOpened=!1,l;}}_.qo(w)})};
sMe=function(A,L){return _.u(function(O){return O.return(new Promise(function(X){var x=LDJ(L!=null?L:"")+"/aloha_form_properties?productId="+A;ODr(x,function(J){J=J.target;var Y=null;try{var T=JSON,V=T.stringify;if(J.JSC$10816_xhr_){var E=J.JSC$10816_xhr_.responseText;E.indexOf(")]}'\n")==0&&(E=E.substring(5));var n=(0,_.Kh)(E)}else n=void 0;Y=IDp(XF9,V.call(T,n))}catch(t){V=new XF9,n=xzu(),n=_.GN(n,13,!1),n=_.GN(n,14,!0),n=_.GN(n,15,!0),n=_.GN(n,20,!1),Y=_.eg(V,1,n)}X(Y)},"GET","",{},2E3,!0)}))})};
LDJ=function(A){return Zny(A)?A:"https://www.google.com/tools/feedback"};
YaD=function(A){A=A.match(new RegExp(Jru,"gi"))||[];A=_.d(A);for(var L=A.next();!L.done;L=A.next()){L=L.value;a:{var O=_.d(PAP);for(var X=O.next();!X.done;X=O.next())if(X.value.test(L)){O=!1;break a}O=!0}if(!O)a:{O=_.d(dzs);for(X=O.next();!X.done;X=O.next())if(X.value.test(L)){O=!0;break a}O=!1}if(O)return!0}return!1};
u8O=function(A,L){var O={},X=Object.keys(A);X=_.d(X);for(var x=X.next();!x.done;x=X.next())x=x.value,O[x]=L(x,A[x]);return O};
Tx9=function(A){switch(A){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"}};
Dze=function(A){if(window.crypto&&window.crypto.getRandomValues)try{var L=Array(A),O=new Uint8Array(A);window.crypto.getRandomValues(O);for(var X=0;X<L.length;X++)L[X]=O[X];return L}catch(J){}L=Array(A);for(O=0;O<A;O++){X=Date.now();for(var x=0;x<X%23;x++)L[O]=Math.random();L[O]=Math.floor(Math.random()*256)}if(Vpd)for(O=1,X=0;X<Vpd.length;X++)L[O%A]^=L[(O-1)%A]/4^Vpd.charCodeAt(X),O++;return L};
li=function(A){A=Dze(A);for(var L=[],O=0;O<A.length;O++)L.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(A[O]&63));return L.join("")};
e1d=function(){var A=_.Ou.ytLoggingDocDocumentNonce_;A||(A=li(16),_.oZ("ytLoggingDocDocumentNonce_",A));return A};
nxy=function(A){A&&_.lg("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:Exs,clientScreenNonce:A})};
tpO=function(A){return _.ms("client-screen-nonce-store",{})[A===void 0?0:A]};
bDd=function(A,L){L=L===void 0?0:L;var O=_.ms("client-screen-nonce-store");O||(O={},_.QT("client-screen-nonce-store",O));O[L]=A};
h1r=function(A){A=A===void 0?0:A;return A===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+A};
SaP=function(A){return _.ms(h1r(A===void 0?0:A))};
_.Ch=function(A){return(A=SaP(A===void 0?0:A))?new _.c3({veType:A,youtubeData:void 0,jspbYoutubeData:void 0}):null};
qaD=function(){var A=_.ms("csn-to-ctt-auth-info");A||(A={},_.QT("csn-to-ctt-auth-info",A));return A};
gx9=function(){return Object.values(_.ms("client-screen-nonce-store",{})).filter(function(A){return A!==void 0})};
_.Fn=function(A){A=tpO(A===void 0?0:A);if(!A&&!_.fB("USE_CSN_FALLBACK",!0))return null;A||(A="UNDEFINED_CSN");return A?A:null};
pFs=function(A){for(var L=_.d(Object.values(wFJ)),O=L.next();!O.done;O=L.next())if(_.Fn(O.value)===A)return!0;return!1};
iDM=function(A,L,O){var X=qaD();(O=_.Fn(O))&&delete X[O];L&&(X[A]=L)};
RF=function(A){return qaD()[A]};
_.Qq=function(A,L,O,X){O=O===void 0?0:O;if(A!==tpO(O)||L!==_.ms(h1r(O)))if(iDM(A,X,O),bDd(A,O),_.QT(h1r(O),L),L=function(){setTimeout(function(){nxy(A)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(L)}catch(x){L()}else L()};
Nxr=function(A,L){L=L===void 0?"":L;var O=[],X;for(X in A)if(A.hasOwnProperty(X)){var x=L!==""?L+"."+X:X;typeof A[X]==="object"?O.push.apply(O,_.le(Nxr(A[X],x))):O.push([x,A[X]])}O.sort();return O};
_.fh=function(A){var L=_.f_.apply(1,arguments);if(!mU(A)||L.some(function(X){return!mU(X)}))throw Error("gf");
L=_.d(L);for(var O=L.next();!O.done;O=L.next())rrJ(A,O.value)};
rrJ=function(A,L){for(var O in L)if(mU(L[O])){if(O in A&&!mU(A[O]))throw Error("hf");O in A||(A[O]={});rrJ(A[O],L[O])}else if(KDe(L[O])){if(O in A&&!KDe(A[O]))throw Error("jf");O in A||(A[O]=[]);GaD(A[O],L[O])}else A[O]=L[O];return A};
GaD=function(A,L){L=_.d(L);for(var O=L.next();!O.done;O=L.next())O=O.value,mU(O)?A.push(rrJ({},O)):KDe(O)?A.push(GaD([],O)):A.push(O);return A};
mU=function(A){return typeof A==="object"&&!Array.isArray(A)};
KDe=function(A){return typeof A==="object"&&Array.isArray(A)};
crp=function(A){for(var L=_.d(Object.entries(lIO)),O=L.next();!O.done;O=L.next())if(O=_.d(O.value),O.next(),O=O.next().value,O==="SLI_STATUS_"+A)return O;return"SLI_STATUS_UNKNOWN"};
_.IF=function(A,L,O,X){return CAO(A,L,function(){return new _.FDO(A,L,O,X)})};
_.R1J=function(){return _.IF("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
QMD=function(){return _.IF("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
yq=function(){return _.IF("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
mzO=function(){return _.IF("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
fI9=function(){return _.IF("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
IIO=function(){return _.IF("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
jMp=function(A){A&&(A.dataset?A.dataset[yrp()]="true":_.oP([_.xT(ZDP)],A,"data-loaded","true".toString()))};
WDd=function(A){return A?A.dataset?A.dataset[yrp()]:A.getAttribute("data-loaded"):null};
yrp=function(){return HDp.loaded||(HDp.loaded="loaded".replace(/\-([a-z])/g,function(A,L){return L.toUpperCase()}))};
_.Zx=function(A,L,O){z19(A,L,O===void 0?null:O)};
_.Mpd=function(A,L){A&&L&&(A=""+_.$e(L),(A=BxD[A])&&_.$bJ(A))};
z19=function(A,L,O){O=O===void 0?null:O;var X=_.$ze(typeof A==="string"?A:A.toString()),x=document.getElementById(X),J=x&&WDd(x),Y=x&&!J;J?L&&L():(L&&(J=_.dT(X,L),L=""+_.$e(L),BxD[L]=J),Y||(x=aIJ(A,X,function(){WDd(x)||(jMp(x),_.aXd(X),_.TA(function(){_.UbM(X)},0))},O)))};
aIJ=function(A,L,O,X){X=X===void 0?null:X;var x=_.tg("SCRIPT");x.id=L;x.onload=function(){O&&setTimeout(O,0)};
x.onreadystatechange=function(){switch(x.readyState){case "loaded":case "complete":x.onload()}};
X&&x.setAttribute("nonce",X);_.UB(x,typeof A==="string"?_.rX(A):A);A=document.getElementsByTagName("head")[0]||document.body;A.insertBefore(x,A.firstChild);return x};
_.$ze=function(A){var L=document.createElement("a");yo(L,A);return"js-"+jf(L.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
kas=function(A){var L=_.ms("INNERTUBE_HOST_OVERRIDE");L&&(A=String(L)+String(_.W3(A)));return A};
Uzr=function(A){var L={};_.h("json_condensed_response")&&(L.prettyPrint="false");return A=tmP(A,L)};
_.H3=function(A){return Aj(A)?"same-origin":"include"};
_.zN=function(A){return Aj(A)?"same-origin":"cors"};
B3=function(A,L,O){O=O===void 0?{}:O;A={method:L===void 0?"POST":L,mode:_.zN(A),credentials:_.H3(A)};L={};for(var X=_.d(Object.keys(O)),x=X.next();!x.done;x=X.next())x=x.value,O[x]&&(L[x]=O[x]);Object.keys(L).length>0&&(A.headers=L);return A};
_.MA=function(A,L){L=L===void 0?{}:L;return"service:"+A+"/"+Object.keys(L).sort().map(function(O){return O+":"+L[O]}).join("/")};
vxr=function(A){var L,O,X,x;A=(L=_.q(A,_.$O))==null?void 0:(O=L.watchEndpointSupportedOnesieConfig)==null?void 0:(X=O.html5PlaybackOnesieConfig)==null?void 0:(x=X.commonConfig)==null?void 0:x.url;if(!A)return[];L=new _.kO(A);return L.JSC$11053_domain_?["https://"+L.JSC$11053_domain_+"/generate_204"]:[]};
_.Ldr=function(){return oxp()||wGe()||A_u&&Qr("version/")?!0:_.ms("EOM_VISITOR_DATA")?!1:!0};
OXe=function(A){var L=A.docid||A.video_id||A.videoId||A.id;if(L)return L;L=A.raw_player_response;L||(A=A.player_response)&&(L=JSON.parse(A));return L&&L.videoDetails&&L.videoDetails.videoId||null};
Xgp=function(A){return A.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
UI=function(A){return!isNaN(Number(A))&&!_.Ye(A)};
_.oF=function(A,L,O,X){X=X===void 0?!0:X;var x=_.ms("VALID_SESSION_TEMPDATA_DOMAINS",[]),J=_.vY(window.location.href);J&&x.push(J);J=_.vY(A);if(_.Id(x,J)||!J&&_.su(A,"/"))if(x=document.createElement("a"),yo(x,A),A=x.href)if(A=_.W3(A),A=_.v3(A))X&&!L.csn&&(L.itct||L.ved)&&(L=Object.assign({csn:_.Fn()},L)),O?(O=parseInt(O,10),isFinite(O)&&O>0&&x_d(A,L,O)):x_d(A,L)};
J_e=function(A){var L=_.ms("VALID_SESSION_TEMPDATA_DOMAINS",[]),O=_.vY(window.location.href);O&&L.push(O);O=_.vY(A);if(!(_.Id(L,O)||!O&&_.su(A,"/")))return null;A=_.W3(A);(A=_.v3(A))?(A=sjM(A),A=(A=_.hj.get(A,void 0)||null)?_.ME(A):{}):A=null;return A};
x_d=function(A,L,O){A=sjM(A);L=L?_.ne(L):"";O=O||5;_.Ldr()&&_.Sh(A,L,O)};
sjM=function(A){for(var L=_.d(PPe),O=L.next();!O.done;O=L.next())A=_.Az(A,O.value);return"ST-"+jf(A).toString(36)};
d_P=function(A,L){A.commandMetadata&&_.q(A.commandMetadata,_.LM)&&_.q(A.commandMetadata,_.LM).url&&(A=_.$L(_.q(A.commandMetadata,_.LM).url).adurl)&&_.hAy(A)&&_.oF(_.W3(A),{encoded_ad_playback_context:L})};
_.YSO=function(A){if(A.requestFullscreen)A=A.requestFullscreen(void 0);else if(A.webkitRequestFullscreen)A=A.webkitRequestFullscreen();else if(A.mozRequestFullScreen)A=A.mozRequestFullScreen();else if(A.msRequestFullscreen)A=A.msRequestFullscreen();else if(A.webkitEnterFullscreen)A=A.webkitEnterFullscreen();else return Promise.reject(Error("sf"));return A instanceof Promise?A:Promise.resolve()};
_.Xz=function(A){var L;_.QyD(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.O0()==A&&(L=document):L=A;if(L&&(A=_.QyD(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],L))){A.call(L)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.O0=function(){var A=A===void 0?!1:A;var L=_.QyD(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(A)for(;L&&L.shadowRoot;)L=L.shadowRoot.fullscreenElement;return L?L:null};
_.xK=function(A,L){L=L===void 0?!0:L;A.addEventListener("wheel",uoJ);A.overscrollConfig={cooldown:L}};
_.Jz=function(A){A.overscrollConfig=void 0;A.removeEventListener("wheel",uoJ)};
uoJ=function(A){var L=A.deltaY,O=A.target,X=null;if(window.Polymer&&window.Polymer.Element){if(O=A.path||A.composedPath&&A.composedPath()){O=_.d(O);for(var x=O.next();!x.done&&(x=x.value,!Tts(x,L));x=O.next())if(x.overscrollConfig){X=x;break}}}else for(;O&&!Tts(O,L);){if(O.overscrollConfig){X=O;break}O=O.parentElement}X&&(L=X.overscrollConfig,L.cooldown?(X=A.deltaY,O=L.lastDeltaY||0,L.lastDeltaY=X,x=L.lastStopped||0,O&&x&&O>0==X>0?Math.abs(O)>=Math.abs(X)?(X=x+1200,O=!1):(X=x+600,O=!0):(X=Date.now()+
600,O=!0),X>Date.now()&&(A.preventDefault(),O&&(L.lastStopped=Date.now()))):A.preventDefault())};
Tts=function(A,L){return L<0&&A.scrollTop>0||L>0&&A.scrollTop<A.scrollHeight-A.clientHeight-1?(A=getComputedStyle(A).overflowY,A=="auto"||A=="scroll"):!1};
_.P4=function(A,L,O,X){X||(X={bubbles:!0,cancelable:!1,composed:!0});O!==null&&O!==void 0&&(X.detail=O);var x=new CustomEvent(L,X);_.h("untrack_fire_custom_event_killswitch")?A.dispatchEvent(x):YN(function(){return void A.dispatchEvent(x)});
return x};
V0D=function(A){var L=window,O=function(X){L.removeEventListener("yt-navigate-start",O);return A.call(L,X)};
L.addEventListener("yt-navigate-start",O,void 0)};
_.dQ=function(A,L,O,X){L=new D_u(L,!(X===void 0||!X),O);_.P4(A,"yt-action",L);return L.returnValue};
_.YK=function(A,L,O){return _.dQ(A,L,O,!0)};
_.u3=function(A,L,O){return _.dQ(A,L,O)[0]};
_.VN=function(A,L,O,X){L&&L.length&&L.forEach(function(x){var J=CS_(x);J&&(_.h("handle_service_request_actions")&&x.commandMetadata&&x.commandMetadata.webCommandMetadata&&x.commandMetadata.webCommandMetadata.sendPost?_.TZ(O?O:A,[x]):_.YK(A,J,[x,O,X]))})};
_.TZ=function(A,L){var O=[A];L&&O.push.apply(O,L);L=_.dQ(A,"yt-service-request",O);return L.length>0&&(L=L[0],_.P4(A,"yt-service-request-sent",L),L&&L.ajaxPromise)?(L.ajaxPromise.then(function(X){_.P4(A,"yt-service-request-completed",X)},function(X){_.P4(A,"yt-service-request-error",{error:X,
params:O})},A),L.ajaxPromise):_.DQ()};
_.E0=function(A,L){if(_.h("handle_service_request_actions"))_.VN(L,A,L);else{A=_.d(A);for(var O=A.next();!O.done;O=A.next()){O=O.value;var X=void 0;((X=_.q(O,_.em))==null?0:X.commands)?_.E0(_.q(O,_.em).commands,L):(X=void 0,((X=_.q(O,_.nM))==null?0:X.actions)?_.E0(_.q(O,_.nM).actions,L):(X=void 0,((X=_.q(O.commandMetadata,_.LM))==null?0:X.sendPost)?_.TZ(L,[O]):_.VN(L,[O],L)))}}};
_.E9O=function(A,L,O){L=L===void 0?{}:L;typeof L==="function"&&(L={callback:L});O||L._c&&L._c.jsl&&L._c.jsl.h||_.lW.extend(L,{_c:{jsl:{h:_.ms("GAPI_HINT_PARAMS")}}});(L.gapiHintOverride||_.ms("GAPI_HINT_OVERRIDE"))&&(O=_.$L(document.location.href).gapi_jsh)&&_.lW.extend(L,{_c:{jsl:{h:O}}});eQ_(A,L)};
_.b3=function(A,L,O){L=L===void 0?{}:L;A=(A=A in tz?tz[A]:O)||"";O={};for(var X in L){O={key$jscomp$818:O.key$jscomp$818};O.key$jscomp$818=X;var x=function(J){return function(){return String(L[J.key$jscomp$818])}}(O);
A=A.replace(new RegExp("\\$\\{"+O.key$jscomp$818+"\\}","gi"),x);A=A.replace(new RegExp("\\$"+O.key$jscomp$818,"gi"),x)}return A};
_.hz=function(A,L){return n9u(A in tz?tz[A]:{},L)};
n9u=function(A,L){var O=_.ms("I18N_PLURAL_RULES");O||(O=function(X){return X==1?"one":"other"});
return(A=A["case"+L]||A[O(L)])?A.replace("#",L.toString()):L+""};
hQr=function(A){var L=t0M(A),O=document.getElementById(L),X=O&&WDd(O);X||O&&!X||(O=bX9(A,L,function(){if(!WDd(O)){jMp(O);_.aXd(L);var x=_.Sm(_.UbM,L);_.TA(x,0)}}))};
bX9=function(A,L,O){var X=document.createElement("link");X.id=L;X.onload=function(){O&&setTimeout(O,0)};
A=_.rX(A);_.An(X,A,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(X);return X};
t0M=function(A){var L=_.tg("A");yo(L,N0(A));return"css-"+jf(L.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.qSu=function(A){var L=SSp();A!==L&&(L=_.qG(),!_.h("web_autonav_allow_off_by_default")&&A||_.gQ(0,141,!0),_.gQ(0,140,!A),L.save())};
SSp=function(){var A=_.qG();return _.h("web_autonav_allow_off_by_default")&&!A.getFlag(141)&&_.ms("AUTONAV_OFF_BY_DEFAULT")?!1:!A.getFlag(140)};
g9s=function(A,L){var O,X;A=((O=A.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(X=O.videoAuthorizationToken)==null?void 0:X.credentialTransferTokens)||[];for(O=0;O<A.length;++O)if(A[O].scope===L)return A[O].token||void 0};
wgP=function(A){for(var L=0,O=0;O<A.length;O++)L=L*31+A.charCodeAt(O),O<A.length-1&&(L%=0x800000000000);return L%1E5};
_.wQ=function(A){return _.WY("ytcsi."+(A||"")+"data_")||pgd(A)};
_.iXM=function(A){A=_.wQ(A);A.metadata||(A.metadata={});return A.metadata};
_.NtP=function(A){A=_.wQ(A);A.tick||(A.tick={});return A.tick};
_.pM=function(A){A=_.wQ(A);if(A.gel){var L=A.gel;L.gelInfos||(L.gelInfos={});L.gelTicks||(L.gelTicks={})}else A.gel={gelTicks:{},gelInfos:{}};return A.gel};
_.r__=function(A){A=_.pM(A);A.gelInfos||(A.gelInfos={});return A.gelInfos};
Kde=function(A){var L=_.wQ(A).nonce;L||(L=li(16),_.wQ(A).nonce=L);return L};
pgd=function(A){var L={tick:{},info:{}};_.oZ("ytcsi."+(A||"")+"data_",L);return L};
GCe=function(){var A=_.WY("ytcsi.debug");A||(A=[],_.oZ("ytcsi.debug",A),_.oZ("ytcsi.reference",{}));return A};
_.i3=function(A){A=A||"";var L=l_J();if(L[A])return L[A];var O=GCe(),X={timerName:A,info:{},tick:{},span:{},jspbInfo:[]};O.push(X);return L[A]=X};
c_J=function(A){A=A||"";var L=l_J();L[A]&&delete L[A];var O=GCe(),X={timerName:A,info:{},tick:{},span:{},jspbInfo:[]};O.push(X);L[A]=X};
l_J=function(){var A=_.WY("ytcsi.reference");if(A)return A;GCe();return _.WY("ytcsi.reference")};
_.FdJ=function(A){return CPu[A]||"LATENCY_ACTION_UNKNOWN"};
f_r=function(A,L,O){O=O===void 0?{}:O;var X=!1;_.fB("ytLoggingEventsDefaultDisabled",!1)&&(X=!0);X=X?null:Gu;O=O===void 0?{}:O;var x=Math.round(O.timestamp||(0,_.O$)());_.gT(L,1,x<Number.MAX_SAFE_INTEGER?x:0);x=new RQD;if(O.lact)_.gT(x,1,isFinite(O.lact)?O.lact:-1);else if(O.timestamp)_.gT(x,1,-1);else{var J=_.xw();_.gT(x,1,isFinite(J)?J:-1)}if(O.sequenceGroup&&!_.h("web_gel_sequence_info_killswitch")){J=O.sequenceGroup;var Y=JIO(J),T=new QjJ;_.gT(T,2,Y);_.gz(T,1,J);_.eg(x,3,T);O.endOfSequence&&delete m_s[O.sequenceGroup]}_.eg(L,
33,x);(O.sendIsolatedPayload?DnP:epJ)(A,{endpoint:"log_event",payload:L,cttAuthInfo:O.cttAuthInfo,dangerousLogToVisitorSession:O.dangerousLogToVisitorSession},X)};
_.rQ=function(){return(_.h("csi_use_time_origin")||_.h("csi_use_time_origin_tvhtml5"))&&_.NG.timeOrigin?Math.floor(_.NG.timeOrigin):_.NG.timing.navigationStart};
_.I_u=function(A,L){_.KM("_start",A,L)};
_.GZ=function(A,L){if(!_.h("web_csi_action_sampling_enabled")||!_.wQ(L).actionDisabled){var O=_.i3(L||"");_.fh(O.info,A);A.loadType&&(O=A.loadType,_.iXM(L).loadType=O);_.fh(_.r__(L),A);O=Kde(L);L=_.wQ(L).cttAuthInfo;y_u().info(A,O,L)}};
ZXp=function(){var A,L,O,X;return((X=_.X5().resolve(_.Ot(ig))==null?void 0:(A=Nd())==null?void 0:(L=A.loggingHotConfig)==null?void 0:(O=L.csiConfig)==null?void 0:O.debugTicks)!=null?X:[]).map(function(x){return Object.values(x)[0]})};
_.KM=function(A,L,O){if(!_.h("web_csi_action_sampling_enabled")||!_.wQ(O).actionDisabled){var X=Kde(O),x;if(x=_.h("web_csi_debug_sample_enabled")&&X){(_.X5().resolve(_.Ot(ig))==null?0:Nd())&&!jjr&&(jjr=!0,_.KM("gcfl",(0,_.O$)(),O));var J,Y,T;x=(_.X5().resolve(_.Ot(ig))==null?void 0:(J=Nd())==null?void 0:(Y=J.loggingHotConfig)==null?void 0:(T=Y.csiConfig)==null?void 0:T.debugSampleWeight)||0;if(J=x!==0)b:{J=ZXp();if(J.length>0)for(Y=0;Y<J.length;Y++)if(A===J[Y]){J=!0;break b}J=!1}J?(x=wgP(X)%x!==0,
_.wQ(O).debugTicksExcludedLogged||(J={},J.debugTicksExcluded=x,_.GZ(J,O)),_.wQ(O).debugTicksExcludedLogged=!0):x=!1}if(!x){A[0]!=="_"&&Wds(A,O,L);x=_.i3(O||"");x.tick[A]=L||(0,_.O$)();if(x.callback&&x.callback[A])for(x=_.d(x.callback[A]),J=x.next();!J.done;J=x.next())J=J.value,J();x=_.pM(O);x.gelTicks&&(x.gelTicks[A]=!0);J=_.NtP(O);x=L||(0,_.O$)();_.h("log_repeated_ytcsi_ticks")?A in J||(J[A]=x):J[A]=x;J=_.wQ(O).cttAuthInfo;A==="_start"?y_u().baseline(X,L,J):y_u().tick(A,X,L,J);_.HXe(O);return x}}};
Wds=function(A,L,O){if(_.NG.mark)if(A.startsWith("mark_")||(A="mark_"+A),L&&(A+=" ("+L+")"),O===void 0||_.h("web_csi_disable_alt_time_performance_mark"))_.NG.mark(A);else{O=_.h("csi_use_performance_navigation_timing")?O-_.NG.timeOrigin:O-(_.NG.timeOrigin||_.NG.timing.navigationStart);try{_.NG.mark(A,{startTime:O})}catch(X){}}};
zQM=function(){var A,L=(A=_.NG.getEntriesByType)==null?void 0:A.call(_.NG,"mark");L&&L.forEach(function(O){if(O.name.startsWith("mark_")){var X;(X=_.NG.clearMarks)==null||X.call(_.NG,O.name)}})};
_.Bty=function(){switch(RkJ()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.M0e=function(A){var L={},O=function(J,Y,T){Y=Y.match("_rid")?Y.split("_rid")[0]:Y;typeof T==="number"&&(T=JSON.stringify(T));J.requestIds?J.requestIds.push({endpoint:Y,id:T}):J.requestIds=[{endpoint:Y,id:T}]};
A=_.d(Object.entries(A));for(var X=A.next();!X.done;X=A.next()){var x=_.d(X.value);X=x.next().value;x=x.next().value;switch(X){case "GetBrowse_rid":O(L,X,x);break;case "GetGuide_rid":O(L,X,x);break;case "GetHome_rid":O(L,X,x);break;case "GetPlayer_rid":O(L,X,x);break;case "GetSearch_rid":O(L,X,x);break;case "GetSettings_rid":O(L,X,x);break;case "GetTrending_rid":O(L,X,x);break;case "GetWatchNext_rid":O(L,X,x);break;case "yt_red":L.isRedSubscriber=!!x;break;case "yt_ad":L.isMonetized=!!x}}return L};
a__=function(A,L,O,X,x,J){if(!_.h("web_csi_action_sampling_enabled")||!_.wQ(J).actionDisabled){var Y=_.pM(J);if(Y.gelSpans)Y.gelSpans[A]=!0;else{var T={};Y.gelSpans=(T[A]=!0,T)}$_P++;A={spanName:A,spanLengthUsec:String(Math.round(L*1E3)),spanNonce:$_P};X&&(A.spanInfo=X);x&&(A.parentSpanNonce=x);O&&(A.spanStartTimeUsec=String(Math.round(O*1E3)));_.i3(J||"").span[String(A.spanName)]=A;O=_.pM(J);O.gelSpans||(O.gelSpans={});_.fh(O.gelSpans,A);O=Kde(J);J=_.wQ(J).cttAuthInfo;y_u().span(A,O,J);return A.spanNonce}};
_.kCr=function(A){var L=_.l3("aft",A);if(L)return L;L=_.ms((A||"")+"TIMING_AFT_KEYS",["ol"]);for(var O=L.length,X=0;X<O;X++){var x=_.l3(L[X],A);if(x)return x}return NaN};
_.U_r=function(A,L){_.oZ("ytglobal.timing"+(L||"")+"ready_",A)};
_.l3=function(A,L){if(A=_.NtP(L)[A])return typeof A==="number"?A:A[A.length-1]};
_.HXe=function(A){var L=_.l3("_start",A),O=_.kCr(A),X=!v9e;L&&O&&X&&(dR_(o9_,new AAM(Math.round(O-L),A)),v9e=!0)};
OCP=function(A){pgd(A);L1O();zQM();A||(_.ms("TIMING_ACTION")&&_.QT("PREVIOUS_ACTION",_.ms("TIMING_ACTION")),_.QT("TIMING_ACTION",""))};
_.Xis=function(A){A=A===void 0?{}:A;_.j6(function(){c4();c_J();OCP();_.U_r(!1);A.cttAuthInfo&&(_.wQ().cttAuthInfo=A.cttAuthInfo);_.QT("TIMING_AFT_KEYS",[]);A.isHot?_.CM({loadType:"hot"}):_.CM({loadType:"warm"});_.QT("TIMING_ACTION","");delete _.ms("TIMING_INFO",{}).yt_lt;_.j6(_.I_u)(A.startTime,void 0)})()};
_.Fz=function(A,L,O,X){L=L===void 0?{}:L;_.j6(function(){var x=O?O:A;x5u(x);var J=L.sampleRate;if(!_.h("web_csi_action_sampling_enabled")||J===void 0||J<=1)J=!1;else{var Y=Kde(x);J=wgP(Y)%J!==0}J&&(_.wQ(x).actionDisabled=!0);_.i3(x||"").info.actionType=A;L.cttAuthInfo&&(_.wQ(x).cttAuthInfo=L.cttAuthInfo);_.QT(x+"TIMING_ACTION",A);_.j6(_.I_u)(L.startTime,x);J={actionType:X||_.FdJ(A)};L.logPreviousAction&&(J.previousAction=_.FdJ(_.ms("TIMING_ACTION")));(Y=_.Fn())&&Y!=="UNDEFINED_CSN"&&(J.clientScreenNonce=
Y);_.CM(J,x);_.U_r(!0,x)})()};
x5u=function(A){_.j6(function(){c4(A);c_J(A);OCP(A)})()};
shJ=function(){_.j6(function(){var A=[],L;for(L in _.WY("ytcsi.".slice(0,-1)))L.endsWith("data_")&&A.push(L.slice(0,-5));A=_.d(A);for(L=A.next();!L.done;L=A.next())x5u(L.value);c4()})()};
_.Ph_=function(A){return _.j6(function(){return _.JAu("_start",A)})()};
_.CM=function(A,L,O){_.j6(_.GZ)(A,L,O===void 0?!1:O)};
_.Rk=function(A,L,O){return _.j6(_.KM)(A,L,O)};
_.JAu=function(A,L){return _.j6(function(){var O=_.NtP(L);return A in O})()};
YQ_=function(A){if(!_.h("universal_csi_network_ticks"))return"";A=_.eh(A)||"";for(var L=Object.keys(d5u),O=0;O<L.length;O++){var X=L[O];if(A.includes(X))return X}return""};
TqJ=function(A){if(!_.h("universal_csi_network_ticks"))return function(){};
var L=d5u[A];return L?(_.QN(L),function(){var O=_.h("universal_csi_network_ticks")?(O=ute[A])?_.QN(O):!1:!1;return O}):function(){}};
_.QN=function(A,L,O){return _.j6(function(){if(_.JAu(A,O))return!1;_.Rk(A,L,O);return!0})()};
_.mf=function(A,L,O){_.j6(function(){if(!_.Ph_(O)||_.JAu(A,O))return!1;_.Rk(A,L,O);return!0})()};
_.fM=function(A){return _.j6(_.l3)(A,void 0)};
c4=function(A){_.Ph_(A)&&_.Rk("aa",void 0,A)};
_.npe=function(A,L,O,X,x,J,Y,T,V){var E=VKu();T=new _.c3({veType:L,youtubeData:J,jspbYoutubeData:T});J=Ik({},E);x&&(J.cttAuthInfo=x);x={csn:E,pageVe:T.getAsJson()};_.h("expectation_logging")&&V&&V.screenCreatedLoggingExpectations&&(x.screenCreatedLoggingExpectations=V.screenCreatedLoggingExpectations);O&&O.visualElement?(x.implicitGesture={parentCsn:O.clientScreenNonce,gesturedVe:O.visualElement.getAsJson()},Y&&(x.implicitGesture.gestureType=Y)):O&&_.Rv(new _.pe("newScreen() parent element does not have a VE - rootVe",
L));X&&(x.cloneCsn=X);A?K7("screenCreated",x,A,J):_.lg("screenCreated",x,J);dR_(EJP,new D5D(E));yN.clear();eCD.clear();EpP.clear();return E};
ZQ=function(A,L,O,X,x,J){J=J===void 0?{}:J;tKP(A,L,O,[X],x===void 0?!1:x,J)};
tKP=function(A,L,O,X,x,J){x=x===void 0?!1:x;J=J===void 0?{}:J;Object.assign(J,Ik({cttAuthInfo:RF(L)||void 0},L));for(var Y=_.d(X),T=Y.next();!T.done;T=Y.next()){T=T.value;var V=T.getAsJson();(_.lW.isEmpty(V)||!V.trackingParams&&!V.veType)&&_.Rv(Error("tf"));if(_.h("no_client_ve_attach_unless_shown")){var E=bCy(T,L);if(V.veType&&!eCD.has(E)&&!EpP.has(E)&&!x){if(!_.h("il_attach_cache_limit")||yN.size<1E3){yN.set(E,[A,L,O,T]);return}_.h("il_attach_cache_limit")&&yN.size>1E3&&_.Rv(new _.pe("IL Attach cache exceeded limit"))}T=
bCy(O,L);yN.has(T)?hCr(O,L):EpP.set(T,!0)}}X=X.filter(function(n){n.csn!==L?(n.csn=L,n=!0):n=!1;return n});
O={csn:L,parentVe:O.getAsJson(),childVes:_.cT(X,function(n){return n.getAsJson()})};
L==="UNDEFINED_CSN"?jm("visualElementAttached",J,O):A?K7("visualElementAttached",O,A,J):_.lg("visualElementAttached",O,J)};
qQ_=function(A,L,O,X,x){SQP(A,L,O,x)};
SQP=function(A,L,O,X){gpu(O,L);var x=Ik({cttAuthInfo:RF(L)||void 0},L);O={csn:L,ve:O.getAsJson(),eventType:1};X&&(O.clientData=X);L==="UNDEFINED_CSN"?jm("visualElementShown",x,O):A?K7("visualElementShown",O,A,x):_.lg("visualElementShown",O,x)};
wie=function(A,L,O,X){gpu(O,L);var x=Ik({cttAuthInfo:RF(L)||void 0},L);O={csn:L,ve:O.getAsJson(),eventType:4};X&&(O.clientData=X);L==="UNDEFINED_CSN"?jm("visualElementShown",x,O):A?K7("visualElementShown",O,A,x):_.lg("visualElementShown",O,x)};
piJ=function(A,L,O,X,x){var J=(X=X===void 0?!1:X)?16:8;X=Ik({cttAuthInfo:RF(L)||void 0,endOfSequence:X},L);O={csn:L,ve:O.getAsJson(),eventType:J};x&&(O.clientData=x);L==="UNDEFINED_CSN"?jm("visualElementHidden",X,O):A?K7("visualElementHidden",O,A,X):_.lg("visualElementHidden",O,X)};
Nqd=function(A,L,O,X,x){iCu(A,L,O,void 0,X,x)};
iCu=function(A,L,O,X,x){gpu(O,L);X=X||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var J=Ik({cttAuthInfo:RF(L)||void 0},L);O={csn:L,ve:O.getAsJson(),gestureType:X};x&&(O.clientData=x);L==="UNDEFINED_CSN"?jm("visualElementGestured",J,O):A?K7("visualElementGestured",O,A,J):_.lg("visualElementGestured",O,J)};
rAO=function(A,L,O,X){var x=Ik({cttAuthInfo:RF(L)||void 0},L);O={csn:L,ve:O.getAsJson(),clientData:X};L==="UNDEFINED_CSN"?jm("visualElementStateChanged",x,O):A?K7("visualElementStateChanged",O,A,x):_.lg("visualElementStateChanged",O,x)};
K1D=function(){var A=Dze(16);for(var L=[],O=0;O<A.length;O++)L.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(A[O]&63));return L.join("")};
jm=function(A,L,O){GoP.push({payloadName:A,payload:O,jspbPayload:void 0,options:L});l2_||(l2_=tq9())};
eB9=function(A){if(GoP){for(var L=_.d(GoP),O=L.next();!O.done;O=L.next())O=O.value,O.payload&&(O.payload.csn=A.csn,_.lg(O.payloadName,O.payload,O.options));GoP.length=0}l2_=0};
bCy=function(A,L){return""+A.getAsJson().veType+A.getAsJson().veCounter+L};
gpu=function(A,L){if(_.h("no_client_ve_attach_unless_shown")){var O=bCy(A,L);eCD.set(O,!0);hCr(A,L)}};
hCr=function(A,L){A=bCy(A,L);yN.has(A)&&(L=yN.get(A)||[],ZQ(L[0],L[1],L[2],L[3],!0),yN.delete(A))};
Ik=function(A,L){_.h("log_sequence_info_on_gel_web")&&(A.sequenceGroup=L);return A};
_.W4=function(A,L,O){_.j6(ZQ)(void 0,A,L,O)};
_.H4=function(A,L,O){_.j6(tKP)(void 0,A,L,O)};
_.zZ=function(A,L){_.j6(qQ_)(void 0,A,L,void 0,void 0,void 0)};
_.B4=function(A,L,O){_.j6(function(){_.BY(L,function(X){wie(void 0,A,X,O)})})()};
_.MG=function(A,L,O,X){_.j6(function(){_.BY(L,function(x){piJ(void 0,A,x,O,X)})})()};
_.$K=function(A,L,O){_.j6(Nqd)(void 0,A,L,O,void 0)};
_.ak=function(A,L,O,X){_.j6(iCu)(void 0,A,L,O,X,void 0)};
_.kK=function(A,L,O){_.j6(rAO)(void 0,A,L,O,void 0)};
cAD=function(A,L){v4.set(A,L)};
Che=function(A){ok={sessionId:A.sessionId||"",nextSpanId:0,activeSpan:void 0,processors:[],enabledSpans:A.enabledSpans}};
F1u=function(A){return ok?ok.enabledSpans?!!ok.enabledSpans[A]:!0:!1};
RCD=function(A){if(!ok)throw Error("wf");ok.processors.push(A)};
Qhu=function(A){var L;return{id:A.id,traceId:A.traceId,sessionId:A.sessionId,name:A.name,attributes:A.attributes,startTime:A.startTime,endTime:A.endTime,status:A.status,parentId:(L=A.parent)==null?void 0:L.id}};
m5_=function(A,L){if(A){L=L===void 0?1:L;if(A&&(A.endTime=performance.now(),L&&(A.status=L),L=ok)){L=_.d(L.processors);for(var O=L.next();!O.done;O=L.next()){var X=void 0,x=void 0;(x=(X=O.value).onSpanEnd)==null||x.call(X,A)}}if(L=ok){if(A!==L.activeSpan)throw Error("xf");var J;L.activeSpan=(J=L.activeSpan)==null?void 0:J.parent}}};
f2_=function(A,L,O){var X;if((X=ok)&&F1u(A)){var x=X.nextSpanId++,J=X.activeSpan;A={id:x,parent:J,name:A,attributes:L,traceId:J?J.traceId:x,sessionId:X.sessionId,startTime:performance.now(),status:0};if(X.activeSpan){var Y;(Y=X.activeSpan).children||(Y.children=[]);X.activeSpan.children.push(A)}X=_.d(X.processors);for(Y=X.next();!Y.done;Y=X.next())x=L=void 0,(x=(L=Y.value).onSpanStart)==null||x.call(L,A);X=A}else X=void 0;A=ok;X=X&&A?A.activeSpan=X:void 0;if(!X)return O();try{var T=O(X);m5_(X);return T}catch(V){throw m5_(X,
2),V;}};
I2J=function(A,L){var O=Object.keys(A);A=new _.pe("[Command Handler] "+L,{filteredCommandNames:O,originalCommand:A});_.C7(A)};
yAe=function(A,L){I2J(A,L+" was called but not set")};
ZCu=function(A){return function(){return new A}};
AY=function(A){return function(){return _.X5().resolve(A)}};
jhP=function(A,L){var O=_.q(A,_.jJ);if(O&&(O=L[O.signal]))return O();A=_.d(Object.keys(A));for(O=A.next();!O.done;O=A.next())if(O=O.value,L[O]&&(O=L[O]))return O()};
LY=function(A,L,O,X){return{browseEndpoint:{browseId:A},commandMetadata:{webCommandMetadata:{url:L,rootVe:O,webPageType:X===void 0?"WEB_PAGE_TYPE_BROWSE":X}}}};
W1s=function(A,L,O){var X=L=L===void 0?0:L;O=O===void 0?0:O;var x=O-X;return _.Oe(A,"PPSV",void 0,void 0,(x>600?0:x<60||O<=0||X/O>.9)?0:L)};
_.Oe=function(A,L,O,X,x){var J="/watch?v="+A;A={videoId:A};L&&(A.playlistId=L,J+="&list="+L);X&&(J+="&pp="+X);x&&(A.startTimeSeconds=x,J+="&t="+x+"s");L={watchEndpoint:A,commandMetadata:{webCommandMetadata:{url:J,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};O&&(L.clickTrackingParams=O);X&&(_.q(L,_.$O).playerParams=X);return L};
HCe=function(A){return{browseEndpoint:{browseId:"VL"+A},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+A,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
zCu=function(A){if(A){var L;if(A){var O=(L=_.q(A.commandMetadata,_.LM))==null?void 0:L.url;L=!(!O||O==="/service_ajax")}else L=!1;if(L)return A;var X;if(A=(X=_.q(A,_.em))==null?void 0:X.commands)for(X=_.d(A),A=X.next();!A.done;A=X.next())if(A=zCu(A.value))return A}};
_.Xl=function(A){return{runs:[{text:A}]}};
Bqu=function(A,L){return A&&L?{runs:[{text:A,navigationEndpoint:L}]}:void 0};
xB=function(A){return A?_.Xl(A):void 0};
_.se=function(A){return A?{simpleText:A}:void 0};
_.JY=function(A){var L=A.type;A=A.payload;L={type:L};A!==void 0&&(L.payload=A);return L};
MK_=function(A,L,O){for(var X=Object.assign({},A),x=_.d(Object.keys(L)),J=x.next();!J.done;J=x.next()){J=J.value;var Y=A[J],T=L[J];if(T===void 0)delete X[J];else if(Y===void 0)X[J]=T;else if(Array.isArray(T)&&Array.isArray(Y))X[J]=O?[].concat(_.le(Y),_.le(T)):T;else if(!Array.isArray(T)&&_.BJ(T)&&!Array.isArray(Y)&&_.BJ(Y))X[J]=MK_(Y,T,O);else if(typeof T===typeof Y)X[J]=T;else return L=new _.pe("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:J,originalValue:Y,updateValue:T}),
_.C7(L),A}return X};
kou=function(A){if(!A.length)return"";try{if($5u)return $5u.decode(A);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(A)}catch(Y){}for(var L=0,O=[],X=A.length;L<X;){for(var x=0;x<1024&&L<X;){var J=A[L++];if(J<128)a2e[x++]=J;else{if(J<224)J=(J&31)<<6|A[L++]&63;else if(J<240)J=(J&15)<<12|(A[L++]&63)<<6|A[L++]&63;else{if(x+1===1024){--L;break}J=(J&7)<<18|(A[L++]&63)<<12|(A[L++]&63)<<6|A[L++]&63;J-=65536;a2e[x++]=55296|J>>10;J=56320|J&1023}a2e[x++]=J}}J=String.fromCharCode.apply(String,
a2e);x<1024&&(J=J.substring(0,x));O.push(J)}return O.join("")};
vp_=function(A,L){var O;if((O=U5J)==null?0:O.encodeInto)return L=U5J.encodeInto(A,L),L.read<A.length?A.length*4:L.written;for(var X=O=0;X<A.length;X++){var x=A.charCodeAt(X);x<128?L[O++]=x:(x<2048?L[O++]=x>>6|192:((x&64512)===55296&&X+1<A.length&&(A.charCodeAt(X+1)&64512)===56320?(x=65536+((x&1023)<<10)+(A.charCodeAt(++X)&1023),L[O++]=x>>18|240,L[O++]=x>>12&63|128):L[O++]=x>>12|224,L[O++]=x>>6&63|128),L[O++]=x&63|128)}return O};
opD=function(A,L,O){if(L&&O&&O.buffer===L.exports.memory.buffer){var X=L.realloc(O.byteOffset,A);if(X)return new Uint8Array(L.exports.memory.buffer,X,A)}A=L?new Uint8Array(L.exports.memory.buffer,L.malloc(A),A):new Uint8Array(A);O&&A.set(O);return A};
_.dh=function(A){A=new ABO(new LGe([_.ke(decodeURIComponent(A))]));if(Obe(A,2)){var L=PG(A);var O=A.pos;var X=A.arrayView;O=O===void 0?0:O;var x=L===void 0?-1:L;O=O===void 0?0:O;x=x===void 0?-1:x;if(X.totalLength&&x){x<0&&(x=X.totalLength-O);X.focus(O);if(!(O-X.arrayPos+x<=X.arrays[X.arrayIdx].length)){var J=X.arrayIdx,Y=X.arrayPos;X.focus(O+x-1);Y=new Uint8Array(X.arrayPos+X.arrays[X.arrayIdx].length-Y);for(var T=0,V=J;V<=X.arrayIdx;V++)Y.set(X.arrays[V],T),T+=X.arrays[V].length;X.arrays.splice(J,
X.arrayIdx-J+1,Y);X.arrayIdx=0;X.arrayPos=0;X.focus(O)}J=X.arrays[X.arrayIdx];X=new DataView(J.buffer,J.byteOffset+O-X.arrayPos,x)}else X=new DataView(new ArrayBuffer(0));X=new Uint8Array(X.buffer,X.byteOffset,X.byteLength);A.pos+=L;L=X}else L=void 0;L=L?kou(L):void 0;A=Obe(A,4)?PG(A):void 0;X=XBu[A];if(typeof X==="undefined")throw A=new _.pe("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:A}),_.C7(A),A;return{entityTypeFieldNumber:A,entityType:X,entityId:L}};
_.Dn=function(A,L,O){O=O===void 0?0:O;var X=new x1D;if(U5J)A=U5J.encode(A);else{var x=new Uint8Array(Math.ceil(A.length*1.2)),J=vp_(A,x);x.length<J&&(x=new Uint8Array(J),J=vp_(A,x));x.length>J&&(x=x.subarray(0,J));A=x}A!==void 0&&(T1(X,18),x=A.length,T1(X,x),Vi(X,x),X.buf.set(A,X.pos),X.pos+=x);A=str[L];if(typeof A==="undefined")throw O=new _.pe("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:L}),_.C7(O),O;A!==void 0&&(T1(X,32),T1(X,A));T1(X,40);T1(X,1);L=new Uint8Array(X.buf.buffer,
X.buf.byteOffset,X.pos);return encodeURIComponent(_.NQ(L,O))};
JB9=function(A){A=A.key||A.id;if(!A)throw Error("yf");return A};
d1e=function(A,L){A=A===void 0?{}:A;return PlO(A,L)};
Y7y=function(A,L,O,X){if(X===void 0)return X=Object.assign({},A[L]||{}),O=(delete X[O],X),X={},Object.assign({},A,(X[L]=O,X));var x={},J={};return Object.assign({},A,(J[L]=Object.assign({},A[L],(x[O]=X,x)),J))};
uEu=function(A,L,O,X,x){var J=A[L];if(J==null||!J[O])return A;X=MK_(J[O],X,x==="REPEATED_FIELDS_MERGE_OPTION_APPEND");x={};J={};return Object.assign({},A,(J[L]=Object.assign({},A[L],(x[O]=X,x)),J))};
_.eM=function(A,L,O){return A[L]?A[L][O]||null:null};
VoM=function(){if(TSu)return TSu();var A={};TSu=LH("PersistentEntityStoreDb",{objectStores:(A.EntityStore={addedAtVersion:1},A.EntityAssociationStore={addedAtVersion:2},A),shared:!1,upgrade:function(L,O){O(1)&&yb(IN(L,"EntityStore",{keyPath:"key"}),"entityType","entityType");O(2)&&(L=IN(L,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),yb(L,"byParentEntityKey","parentEntityKey"),yb(L,"byChildEntityKey","childEntityKey"))},
version:3});return TSu()};
D19=function(A){return _.MO(VoM(),A)};
Ee=function(A){return window.Int32Array?new Int32Array(A):Array(A)};
Et_=function(A){return _.MO(ei9(),A)};
nte=function(A){return new nY("WRONG_DATA_TYPE",{encoderVersion:A})};
toJ=function(A){return A instanceof Error?new nY("UNKNOWN_ENCODE_ERROR",{originalMessage:A.message}):new nY("UNKNOWN_ENCODE_ERROR")};
bbJ=function(A){return A instanceof Error?new nY("UNKNOWN_DECODE_ERROR",{originalMessage:A.message}):new nY("UNKNOWN_DECODE_ERROR")};
hiu=function(A,L){A=A instanceof nY?A:L(A);_.C7(A);throw A;};
S7_=function(A){A=(new TextEncoder).encode(A).subarray(0,16);var L=new Uint8Array(16);L.set(A);return L};
gt_=function(A){var L=q7O[A];if(L)return L;_.Rv(new _.pe("Entity model not found.",{entityType:A}))};
_.tY=function(){wBr||(wBr=pBr());return wBr};
pBr=function(){var A,L,O;return _.u(function(X){if(X.nextAddress==1)return _.e4(X,2),X.yield(_.A4(),4);if(X.nextAddress!=2){A=X.yieldResult;if(!A||!_.wN()||typeof _.Ou.BroadcastChannel==="undefined")return X.return();L=new ibD;return X.return(new bN(A,L))}O=_.S4(X);O instanceof Error&&_.C7(O);return X.return()})};
_.hY=function(A,L){var O;return _.u(function(X){if(X.nextAddress==1){O=A.mutations;if(!O||O.length<=0)return X.return();L&&L.dispatch(_.JY({type:"ENTITY_LOADED",payload:O}));return X.yield(NSP(O),2)}O.length=0;_.qo(X)})};
NSP=function(A){var L;return _.u(function(O){return O.nextAddress==1?O.yield(_.tY(),2):(L=O.yieldResult)?O.yield(_.SM(L,"readwrite",function(X){for(var x={},J=_.d(A),Y=J.next(),T={};!Y.done;T={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},Y=J.next())T.mutation$jscomp$4=Y.value,T.mutation$jscomp$4.entityKey&&rBu(T.mutation$jscomp$4)&&(T.mutationEntityType$jscomp$3=(0,_.lW.getAnyKey)(T.mutation$jscomp$4.payload),Y=void 0,T.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(Y=function(V){return function(){return _.KG9(X,
V.mutation$jscomp$4.payload[V.mutationEntityType$jscomp$3],V.mutationEntityType$jscomp$3)}}(T)),T.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(Y=function(V){return function(){return GFd(X,V.mutation$jscomp$4.entityKey)}}(T)),T.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(Y=function(V){return function(){return lUu(X,V.mutation$jscomp$4.entityKey,V.mutation$jscomp$4.payload[V.mutationEntityType$jscomp$3],V.mutationEntityType$jscomp$3)}}(T)),Y&&(x[T.mutation$jscomp$4.entityKey]=
x[T.mutation$jscomp$4.entityKey]?x[T.mutation$jscomp$4.entityKey].then(Y):Y()));
return yr.all(Object.values(x))}),0):O.return()})};
rBu=function(A){var L;A=(L=A.options)==null?void 0:L.persistenceOption;return A==="ENTITY_PERSISTENCE_OPTION_PERSIST"||A==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
FGr=function(A,L){var O,X;_.u(function(x){if(x.nextAddress==1)return x.yield(_.tY(),2);if(x.nextAddress!=3)return(O=x.yieldResult)?x.yield(_.SM(O,"readonly",function(J){var Y={},T=Object.keys(L).map(function(V){var E=L[V]?[].concat(_.le(L[V])):[];return cBy(J,V,E,Y)});
return yr.all(T).then(function(){return Y})}),3):x.return();
X=x.yieldResult;Object.keys(X).length>0&&A.dispatch(Cle(X));_.qo(x)})};
cBy=function(A,L,O,X){return qa(A,L,O).then(function(x){X[L]=RiD(O,x)})};
RiD=function(A,L){if(L.length!==A.length)throw Error("Bf");return L.reduce(function(O,X,x){O[A[x]]=X;return O},{})};
fUO=function(A){var L=A.filter(function(x){var J;return(x==null?void 0:(J=x.transferEntity)==null?void 0:J.transferState)==="TRANSFER_STATE_COMPLETE"}).length,O=A.filter(function(x){var J;
return(x==null?void 0:(J=x.transferEntity)==null?void 0:J.transferState)==="TRANSFER_STATE_FAILED"}).length,X=A.filter(function(x){var J;
return(x==null?void 0:(J=x.transferEntity)==null?void 0:J.transferState)&&QtO.includes(x.transferEntity.transferState)});
if(!(L||X!=null&&X.length))return 0;L=_.m1D(X)+L;A=A.length-O;return A===0?0:Math.round(L*100/A)/100};
_.m1D=function(A){var L=[];L=L.concat.apply(L,_.le(A.filter(function(J){return J.streamEntity}).map(function(J){var Y=Object.assign({},J.streamEntity),T,V=(T=J.transferEntity)==null?void 0:T.transferState;
Y.streamsProgress=Y.streamsProgress||[];Y.streamsProgress=Y.streamsProgress.map(function(E){var n=Object.assign({},E);n.numBytesDownloaded=V==="TRANSFER_STATE_COMPLETE"?E.numTotalBytes:E.numBytesDownloaded;return n});
return Y}).map(function(J){return J.streamsProgress})));
var O=A=0;L=_.d(L);for(var X=L.next();!X.done;X=L.next()){var x=X.value;X=Number(x.numBytesDownloaded);x=Number(x.numTotalBytes);O+=isNaN(X)?0:X;A+=isNaN(x)?0:x}return A===0?0:Math.round(O*100/A)/100};
IUu=function(A){if(!A||!A.expirationTimestamp||!A.action)return!1;var L=(0,_.O$)()/1E3;return Number(A.expirationTimestamp)>=L};
gh=function(A){return A&&A.expirationTimestamp&&A.action?IUu(A)&&A.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.wh=function(A){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(A||"TRANSFER_STATE_UNKNOWN")};
yB_=function(A){var L=new x1D;if(A!==void 0){var O=Math.ceil(Math.log2(A.length*4+2)/7);O=O===void 0?2:O;T1(L,10);L.submessagePosStack.push(L.pos);L.submessagePosStack.push(O);L.pos+=O;Vi(L,A.length*1.2);O=vp_(A,L.buf.subarray(L.pos));L.pos+O>L.buf.length&&(Vi(L,O),O=vp_(A,L.buf.subarray(L.pos)));L.pos+=O;A=L.submessagePosStack.pop();O=L.submessagePosStack.pop();for(var X=L.pos-O-A;A--;){var x=A?128:0;L.view.setUint8(O++,X&127|x);X>>=7}}L=new Uint8Array(L.buf.buffer,L.buf.byteOffset,L.pos);return(new TextDecoder("utf-8")).decode(L)};
_.pY=function(A){var L=0;A=_.d(A);for(var O=A.next(),X={};!O.done;X={transferState$jscomp$3:void 0},O=A.next()){var x=O.value,J=void 0;O=(J=x.streamEntity)!=null?J:{};J=void 0;X.transferState$jscomp$3=(J=x.transferEntity)==null?void 0:J.transferState;J=x=void 0;((x=O)==null?0:(J=x.streamsProgress)==null?0:J.length)&&O.streamsProgress.forEach(function(Y){return function(T){T=Number(Y.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?T.numTotalBytes:T.numBytesDownloaded);isFinite(T)&&(L+=T)}}(X))}return L};
Zbp=function(A){return A.some(function(L){var O;if(!(L==null?0:(O=L.transferEntity)==null?0:O.transferState)){var X;return!(L==null?0:(X=L.policyEntity)==null?0:X.action)||L.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return QtO.includes(L.transferEntity.transferState)})};
jty=function(A,L){if(!L)return!1;if(_.h("of_pb_en_po_ks"))return!0;var O;A=(O=_.eM(A,"offlineVideoPolicy",_.Dn(L,"offlineVideoPolicy")))!=null?O:void 0;return!!A&&gh(A)};
_.HbM=function(A){var L=["TRANSFER_STATE_COMPLETE"];L=L===void 0?WGs:L;return A.filter(function(O){var X,x;return L.includes((x=(X=O.transferEntity)==null?void 0:X.transferState)!=null?x:"TRANSFER_STATE_UNKNOWN")})};
zid=function(A,L){if(L){var O,X=(O=_.eM(A,"playbackData",_.Dn(L,"playbackData")))!=null?O:null,x;O=(x=_.eM(A,"transfer",_.Dn(L,"transfer")))!=null?x:null;var J;x=(J=_.eM(A,"offlineVideoStreams",_.Dn(L,"offlineVideoStreams")))!=null?J:null;var Y;A=(Y=_.eM(A,"offlineVideoPolicy",_.Dn(L,"offlineVideoPolicy")))!=null?Y:null;if(X||O||x||A)return{playbackDataEntity:X,transferEntity:O,streamEntity:x,policyEntity:A}}};
_.iN=function(A){var L=A.playbackData;if(!L)return[];var O=[];L=_.d(Object.keys(L));for(var X=L.next();!X.done;X=L.next()){var x=X.value;if(!BSe(A,_.dh(x).entityId)&&(X=zid(A,_.dh(x).entityId))){var J=void 0,Y=void 0;x=(Y=Number((J=_.eM(A,"playbackData",x))==null?void 0:J.streamDownloadTimestampSeconds))!=null?Y:(0,_.O$)();O.push({entity:X,streamDownloadTimestamp:x})}}return O.sort(function(T,V){var E=T.streamDownloadTimestamp,n=V.streamDownloadTimestamp;return n===E?T.entity.streamEntity&&!V.entity.streamEntity?
1:-1:n-E}).map(function(T){return T.entity})};
MoP=function(A){return _.HbM(_.iN(A))};
_.$1d=function(A){return _.iN(A).filter(function(L){var O;if(((O=L.policyEntity)==null?0:O.action)&&L.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var X;if((X=L.transferEntity)==null?0:X.transferState){var x;return QtO.includes((x=L.transferEntity)==null?void 0:x.transferState)}return!0})};
BSe=function(A,L){var O;return((O=_.eM(A,"downloadStatusEntity",_.Dn(L,"downloadStatusEntity")))==null?void 0:O.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
aUP=function(A){var L;if(A==null?0:(L=A.playbackDataEntity)==null?0:L.key)return _.dh(A.playbackDataEntity.key).entityId;var O;if(A==null?0:(O=A.transferEntity)==null?0:O.key)return _.dh(A.transferEntity.key).entityId;var X;if(A==null?0:(X=A.streamEntity)==null?0:X.key)return _.dh(A.streamEntity.key).entityId;var x;if(A==null?0:(x=A.policyEntity)==null?0:x.key)return _.dh(A.policyEntity.key).entityId};
U1y=function(A){var L=new Set,O;A=(O=A.mainDownloadsListEntity)==null?void 0:O[kFu];var X;if(!(A==null?0:(X=A.downloads)==null?0:X.length))return L;var x;A==null||(x=A.downloads)==null||x.forEach(function(J){(J==null?0:J.videoItem)&&L.add(J.videoItem)});
return L};
Na=function(A,L){if(L){var O=_.eM(A,"mainVideoEntity",_.Dn(L,"mainVideoEntity")),X=_.eM(A,"downloadStatusEntity",_.Dn(L,"downloadStatusEntity")),x=_.eM(A,"ytMainChannelEntity",_.Dn(L,"ytMainChannelEntity")),J={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};A=zid(A,L);X=(X==null?void 0:X.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.h("woffle_render_failed_download_state_ks")&&(X==null?void 0:X.downloadState)==="DOWNLOAD_STATE_FAILED";!A&&X&&(A=J);if(A&&O&&
x)return Object.assign({},{videoEntity:O,channelEntity:x},A)}};
ot9=function(A,L){return vtd(A,L)==="TRANSFER_STATE_COMPLETE"&&jty(A,L)};
A7r=function(A,L){if(!L)return!1;var O;A=(O=_.eM(A,"playbackData",_.Dn(L,"playbackData")))!=null?O:void 0;return!!A&&!!A.playerResponseJson};
vtd=function(A,L){if(!L)return"TRANSFER_STATE_UNKNOWN";var O=_.eM(A,"transfer",_.Dn(L,"transfer"));if(O){var X;return(X=O.transferState)!=null?X:"TRANSFER_STATE_UNKNOWN"}O=_.eM(A,"offlineOrchestrationActionWrapperEntity",_.Dn(L,"offlineOrchestrationActionWrapperEntity"));A=_.eM(A,"mainVideoEntity",_.Dn(L,"mainVideoEntity"));return O||A?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
L0s=function(A,L){if(!L)return"TRANSFER_STATE_UNKNOWN";if(A=_.eM(A,"transfer",_.Dn(L,"transfer"))){var O;return(O=A.transferState)!=null?O:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
O29=function(A,L){return L&&(A=_.eM(A,"videoPlaybackPositionEntity",_.Dn(L,"videoPlaybackPositionEntity")),A==null?0:A.lastPlaybackPositionSeconds)?Number(A.lastPlaybackPositionSeconds):0};
xBp=function(A,L){return X_M(A).some(function(O){var X;return(O==null?void 0:(X=O.mainPlaylistEntity)==null?void 0:X.playlistId)===L})};
J7y=function(A,L,O){var X=ssd(A,L);if(!X.length)return[];L=[];X=_.d(X);for(var x=X.next();!x.done;x=X.next()){x=x.value;var J=Na(A,x);O&&vtd(A,x)!=="TRANSFER_STATE_COMPLETE"||J&&L.push(J)}return L};
ssd=function(A,L){if(!L)return[];var O=_.Dn(L,"mainPlaylistEntity"),X;L=(X=A.mainPlaylistEntity)==null?void 0:X[O];X=[];if(L==null||!L.videos)return X;L=_.d(L.videos);for(O=L.next();!O.done;O=L.next()){O=O.value;var x=void 0,J=void 0,Y=void 0,T=(x=A)==null?void 0:(J=x.mainPlaylistVideoEntity)==null?void 0:(Y=J[O])==null?void 0:Y.video;T&&(O=_.dh(T).entityId)&&X.push(O)}return X};
P4P=function(A,L){if(L){var O=_.eM(A,"mainPlaylistEntity",_.Dn(L,"mainPlaylistEntity")),X=_.eM(A,"mainPlaylistDownloadStateEntity",_.Dn(L,"mainPlaylistDownloadStateEntity"));A=_.eM(A,"ytMainChannelEntity",_.Dn(L,"ytMainChannelEntity"));if(X&&O)return Object.assign({},{mainPlaylistEntity:O,mainPlaylistDownloadStateEntity:X},!!A&&{channelEntity:A})}};
X_M=function(A){return dBp(A).sort(function(L,O){return O.addedTimestampMillis-L.addedTimestampMillis}).map(function(L){return L.downloadedPlaylistEntities})};
dBp=function(A){var L=A.mainPlaylistDownloadStateEntity,O=[];if(!L)return O;for(var X=_.d(Object.keys(L)),x=X.next();!x.done;x=X.next()){var J=x.value;x=P4P(A,_.dh(J).entityId);var Y=void 0;J=Number((Y=L[J])==null?void 0:Y.addedTimestampMillis);Y=isNaN(J)?(0,_.O$)():J;x!==void 0&&O.push({downloadedPlaylistEntities:x,addedTimestampMillis:Y})}return O};
YU_=function(A){var L,O=(L=A.mainPlaylistVideoEntity)!=null?L:{};return new Set(X_M(A).reduce(function(X,x){X=X===void 0?[]:X;var J,Y;x==null||(J=x.mainPlaylistEntity)==null||(Y=J.videos)==null||Y.forEach(function(T){var V;(T=(V=O[T])==null?void 0:V.video)&&X.push(T)});
return X},[]))};
uGO=function(A){return"downloadedMusicPlaylistEntities"in A};
Tmu=function(A){return"mainPlaylistEntity"in A&&"mainPlaylistDownloadStateEntity"in A};
V9s=function(A){return"videoEntity"in A&&"channelEntity"in A};
DBy=function(A){var L=A.musicPlaylistDownloadMetadataEntity,O=[];if(!L)return O;for(var X=_.d(Object.keys(L)),x=X.next();!x.done;x=X.next()){x=x.value;a:{var J=A,Y=_.dh(x).entityId;if(Y){var T=_.eM(J,"musicPlaylist",_.Dn(Y,"musicPlaylist"));J=_.eM(J,"musicPlaylistDownloadMetadataEntity",_.Dn(Y,"musicPlaylistDownloadMetadataEntity"));if(T&&J){T={musicPlaylistEntity:T,musicPlaylistDownloadStateEntity:J};break a}}T=void 0}J=void 0;x=Number((J=L[x])==null?void 0:J.addedTimestampMillis);x=isNaN(x)?(0,_.O$)():
x;T!==void 0&&O.push({downloadedMusicPlaylistEntities:T,addedTimestampMillis:x})}return O};
es_=function(A){var L=new Set;A=_.d(A);for(var O=A.next();!O.done;O=A.next())if(O=O.value,"musicPlaylistEntity"in O&&"musicPlaylistDownloadStateEntity"in O){O=_.d(O.musicPlaylistEntity.tracks);for(var X=O.next();!X.done;X=O.next())L.add(X.value)}return L};
Eqp=function(A,L){if(L){var O=_.eM(A,"musicTrack",_.Dn(L,"musicTrack")),X=_.eM(A,"musicArtist",_.Dn(L,"musicArtist"))||{};if((A=zid(A,L))&&O&&X)return Object.assign({},{musicTrackEntity:O,musicArtistEntity:X},A)}};
nqP=function(A){var L=A.musicTrackDownloadMetadataEntity,O=[];if(!L)return[];L=_.d(Object.keys(L));for(var X=L.next();!X.done;X=L.next()){var x=X.value;X=Eqp(A,_.dh(x).entityId);var J=void 0;x=Number((J=_.eM(A,"musicTrackDownloadMetadataEntity",x))==null?void 0:J.addedTimestampMillis);J=isNaN(x)?(0,_.O$)():x;X!==void 0&&O.push({downloadedMusicEntities:X,addedTimestampMillis:J})}return O};
hsu=function(A,L){if(!L)return[];if(Object.values(t9p).includes(L))return b2s(A,L);L=_.Dn(L,"musicPlaylist");var O;A=(O=A.musicPlaylist)==null?void 0:O[L];O=[];if(A==null||!A.tracks)return O;A=_.d(A.tracks);for(L=A.next();!L.done;L=A.next())(L=_.dh(L.value).entityId)&&O.push(L);return O};
b2s=function(A,L){var O=new Set,X=DBy(A).map(function(J){return J.downloadedMusicPlaylistEntities});
X=es_(X);X=_.d(X);for(var x=X.next();!x.done;x=X.next())(x=_.dh(x.value).entityId)&&O.add(x);return SUd(A).downloadedMusicEntities.filter(function(J){var Y;if((Y=J.musicTrackEntity)!=null&&Y.videoId){J=J.musicTrackEntity;if(Y=L==="PPOM"?!0:!O.has(J.videoId))b:switch(J=J.musicVideoType,L){case "PPSE":Y=J==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:Y=J!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}J=Y}else J=!1;return J}).map(function(J){var Y;
return(Y=J.musicTrackEntity)==null?void 0:Y.videoId})};
SUd=function(A){var L=nqP(A).sort(function(O,X){return X.addedTimestampMillis-O.addedTimestampMillis}).map(function(O){return"downloadedMusicEntities"in O?O.downloadedMusicEntities:uGO(O)?O.downloadedMusicPlaylistEntities:{}});
A=DBy(A).sort(function(O,X){return X.addedTimestampMillis-O.addedTimestampMillis}).map(function(O){return"downloadedMusicEntities"in O?O.downloadedMusicEntities:uGO(O)?O.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:L,downloadedMusicPlaylistEntities:A}};
gqJ=function(A,L){L=_.ms("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?hsu(A,L):ssd(A,L);if(!L.length)return"TRANSFER_STATE_UNKNOWN";L=L.map(function(O){return L0s(A,O)});
return qUr(L)};
qUr=function(A){var L=new Set(A);if(L.has("TRANSFER_STATE_FAILED")&&L.size===1)return"TRANSFER_STATE_FAILED";L.delete("TRANSFER_STATE_FAILED");if(L.has("TRANSFER_STATE_UNKNOWN")&&L.size===1)return"TRANSFER_STATE_PRE_TRANSFER";L.delete("TRANSFER_STATE_UNKNOWN");if(L.has("TRANSFER_STATE_PRE_TRANSFER")&&L.size===1||L.size===0)return"TRANSFER_STATE_PRE_TRANSFER";A=L.has("TRANSFER_STATE_TRANSFERRING");L=L.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return A||L?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
rh=function(A){var L=A.mainVideoDownloadStateEntity,O=[];if(!L)return[];L=_.d(Object.keys(L));for(var X=L.next();!X.done;X=L.next()){var x=X.value;if(!BSe(A,_.dh(x).entityId)){X=Na(A,_.dh(x).entityId);var J=void 0,Y=void 0;x=(Y=Number((J=_.eM(A,"mainVideoDownloadStateEntity",x))==null?void 0:J.addedTimestampMillis))!=null?Y:(0,_.O$)();X!==void 0&&O.push({downloadedVideoEntities:X,addedTimestampMillis:x})}}return O};
w_P=function(A){return rh(A).sort(function(L,O){return O.addedTimestampMillis-L.addedTimestampMillis}).map(function(L){return L.downloadedVideoEntities})};
_.i2p=function(A){var L=YU_(A),O=_.KY(A),X=U1y(A),x=rh(A).filter(function(Y){var T,V;if((Y==null?void 0:(T=Y.downloadedVideoEntities)==null?void 0:(V=T.transferEntity)==null?void 0:V.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var E,n;Y=Y==null?void 0:(E=Y.downloadedVideoEntities)==null?void 0:(n=E.videoEntity)==null?void 0:n.key;return _.h("kevlar_use_library_entity")?Y&&(X.has(Y)||O[Y]):Y&&!L.has(Y)}),J=dBp(A).filter(function(Y){return gqJ(A,Y.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.le(x),_.le(J)).sort(function(Y,T){return T.addedTimestampMillis-Y.addedTimestampMillis}).map(function(Y){return p_u(Y)})};
Nm9=function(A,L){if(L&&jty(A,L)){var O,X,x=(X=(O=_.eM(A,"playbackData",_.Dn(L,"playbackData")))!=null?O:void 0)==null?void 0:X.playerResponseJson;if(x){try{var J=JSON.parse(x);var Y=_.eM(A,"transfer",_.Dn(L,"transfer")),T=O29(A,L);T&&(J=Object.assign({},J,{playerConfig:Object.assign({},J.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+T*1E3}}})}));J.cotn=Y==null?void 0:Y.cotn}catch(V){}return J}}};
_.K0u=function(A){var L,O,X;A=(X=(O=((L=A.downloadsPageViewConfigurationEntity)!=null?L:{})[_.G1])==null?void 0:O.smartDownloadsOptInBannerVisibility)!=null?X:{};var x;return(x=_.q(A,r7p))!=null?x:{}};
_.KY=function(A){var L,O,X;A=(X=(O=((L=A.mainDownloadsListEntity)!=null?L:{})[_.Gee])==null?void 0:O.downloads)!=null?X:[];L={};O=_.d(A);for(X=O.next();!X.done;X=O.next())A=void 0,L[(A=X.value.videoItem)!=null?A:""]=!0;return L};
lT_=function(A){var L=_.KY(A);if(Object.keys(L).length===0)return!1;var O=A.mainVideoEntity;if(!O)return!0;O=_.d(Object.keys(O));for(var X=O.next();!X.done;X=O.next()){X=X.value;var x=_.dh(X).entityId;if(L[X]&&!BSe(A,x))return!1}return!0};
_.lN=function(A){var L=_.KY(A);return rh(A).sort(function(O,X){return O.addedTimestampMillis-X.addedTimestampMillis}).map(function(O){return O.downloadedVideoEntities}).filter(function(O){var X;
return(O=O==null?void 0:(X=O.videoEntity)==null?void 0:X.key)&&!!L[O]})};
_.C4u=function(A){var L,O,X;A=(X=(O=((L=A.downloadsPageViewConfigurationEntity)!=null?L:{})[_.G1])==null?void 0:O.downloadsUpsellBannerVisibility)!=null?X:{};var x;return(x=_.q(A,c7u))!=null?x:{}};
p_u=function(A){return"downloadedVideoEntities"in A?A.downloadedVideoEntities:"downloadedPlaylistEntities"in A?A.downloadedPlaylistEntities:{}};
F0P=function(A){var L=_.KY(A),O=YU_(A),X=rh(A).filter(function(x){var J,Y;return(x=x==null?void 0:(J=x.downloadedVideoEntities)==null?void 0:(Y=J.videoEntity)==null?void 0:Y.key)&&!L[x]&&!O.has(x)});
A=dBp(A);return[].concat(_.le(X),_.le(A)).sort(function(x,J){return J.addedTimestampMillis-x.addedTimestampMillis}).map(function(x){return p_u(x)})};
_.cG=function(A){if(!_.h("kevlar_use_library_entity"))return F0P(A);var L=rh(A).filter(function(X){var x,J;if(x=X=X==null?void 0:(x=X.downloadedVideoEntities)==null?void 0:(J=x.videoEntity)==null?void 0:J.key){var Y,T,V;x=((T=(Y=A.mainDownloadsListEntity)==null?void 0:Y[kFu])==null?0:(V=T.downloads)==null?0:V.length)?U1y(A).has(X):!1}return x}),O=dBp(A);
return[].concat(_.le(L),_.le(O)).sort(function(X,x){return x.addedTimestampMillis-X.addedTimestampMillis}).map(function(X){return p_u(X)})};
Rsr=function(A){var L=_.KY(A),O=YU_(A);return w_P(A).filter(function(X){var x;return(X=X==null?void 0:(x=X.videoEntity)==null?void 0:x.key)&&!L[X]&&!O.has(X)})};
QsM=function(A){if(!_.h("kevlar_use_library_entity"))return Rsr(A);var L=_.KY(A),O=U1y(A);return w_P(A).filter(function(X){var x;return(X=X==null?void 0:(x=X.videoEntity)==null?void 0:x.key)&&!L[X]&&O.has(X)})};
mBO=function(A,L){L=_.Dn(L,"settingEntity");var O,X,x;return!!((x=(X=((O=A.settingEntity)!=null?O:{})[L])==null?void 0:X.settingOptionValue)!=null?x:{}).boolValue};
_.CY=function(A){var L=_.lN(A);if(Zbp(L))return 0;var O=[];L=_.d(L);for(var X=L.next();!X.done;X=L.next()){X=X.value;var x=void 0,J=void 0;if((x=X)==null?0:(J=x.videoEntity)==null?0:J.key)x=_.dh(X.videoEntity.key).entityId,X=A,x=_.Dn(x,"mainVideoDownloadStateEntity"),X=_.eM(X,"mainVideoDownloadStateEntity",x),(X=Number(X==null?void 0:X.addedTimestampMillis))&&O.push(X)}return Math.max.apply(Math,_.le(O))};
_.Fl=function(A){return A.ui.richGridMiniMode};
_.Rm=function(A){return A.ui.richGridItemsPerRow};
_.fT9=function(A){return A.ui.richGridSlimItemsPerRow};
_.IT9=function(A){return A.ui.guideIsExpanded};
_.Qi=function(A){return A.ui.miniplayerIsActive};
_.y7s=function(A){return A.ui.singleOptionSurveyIsActive};
_.mC=function(A){var L;return((L=A.ui)==null?void 0:L.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.fY=function(A){return _.mC(A)==="WEB_PAGE_TYPE_WATCH"};
_.Z2u=function(A){return _.mC(A)==="WEB_PAGE_TYPE_SHORTS"};
_.jsJ=function(A){return A.ui.inlinePreviewIsActive};
_.W0e=function(A){return A.ui.inlinePreviewIsEnabled};
_.H2u=function(A){return A.ui.miniplayerPlaybackState};
_.Im=function(A){return A.ui.isOnline};
_.zse=function(A){return A.ui.frostedGlassMode};
_.yi=function(A,L){return vtd(A.entities,L)};
_.Zn=function(A,L){return gqJ(A.entities,L)};
Bm_=function(A,L){var O;if(L){var X;A=(X=_.eM(A.entities,"offlineVideoPolicy",_.Dn(L,"offlineVideoPolicy")))==null?void 0:X.action}else A=void 0;return(O=A)!=null?O:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
M9O=function(A,L){var O;L?(A=_.eM(A.entities,"offlineVideoPolicy",_.Dn(L,"offlineVideoPolicy")),A=Number(A==null?void 0:A.expirationTimestamp)):A=void 0;return(O=A)!=null?O:0};
_.$Bs=function(A){return _.iN(A.entities).length};
aTe=function(A,L){return Na(A.entities,L)};
ker=function(A,L){return P4P(A.entities,L)};
jM=function(A,L){return(A=Na(A.entities,L))?_.m1D([A]):0};
_.UBO=function(A,L){var O=_.ms("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(O){var X=A.entities;var x=hsu(X,L);if(x.length){var J=[];x=_.d(x);for(var Y=x.next();!Y.done;Y=x.next())(Y=Eqp(X,Y.value))&&J.push(Y);X=J}else X=[]}else X=J7y(A.entities,L);var T;if(O){var V=A.entities;L?(L=_.Dn(L,"musicPlaylist"),V=(T=V.musicPlaylist)==null?void 0:T[L],T=V!=null&&V.tracks?V.tracks.length:0):T=0}else T=A.entities,L?(L=_.Dn(L,"mainPlaylistEntity"),T=(V=T.mainPlaylistEntity)==null?void 0:V[L],T=T!=null&&T.videos?
T.videos.length:0):T=0;return X.length!==T?0:X?fUO(X):0};
_.vq9=function(A){return A.download.isLeaderTab};
_.oqe=function(A,L,O){if(!L&&O){var X=A.entities;if(O){var x=yB_(O),J,Y;L=(Y=(J=_.eM(X,"offlineabilityEntity",_.Dn(x,"offlineabilityEntity")))==null?void 0:J.addToOfflineButtonState)!=null?Y:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else L="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else J=A.entities,L?(Y=yB_(L),L=(x=(X=_.eM(J,"offlineabilityEntity",_.Dn(Y,"offlineabilityEntity")))==null?void 0:X.addToOfflineButtonState)!=null?x:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):L="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return L};
Aae=function(A,L){A=A.entities;if(L){L=yB_(L);var O,X;L=(X=(O=_.eM(A,"offlineabilityEntity",_.Dn(L,"offlineabilityEntity")))==null?void 0:O.addToOfflineButtonState)!=null?X:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else L="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return L};
_.Lkd=function(A){var L=A.entities;A=_.Im(A);var O=mBO(L,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.h("kevlar_modern_downloads_page")&&O)var X=!1;else{var x,J;L=(J=(x=((X=L.downloadsPageViewConfigurationEntity)!=null?X:{})[_.G1])==null?void 0:x.smartDownloadsOptInBannerVisibility)!=null?J:{};X=A?!!L.visibleWithConnection:!!L.visibleWithoutConnection}return X};
_.OA_=function(A){return mBO(A.entities,"SMART_DOWNLOADS_ENABLED")};
_.X$e=function(A){return lT_(A.entities)};
xvD=function(A){return _.lN(A.entities).every(function(L){var O;return(L==null?void 0:(O=L.transferEntity)==null?void 0:O.transferState)&&!QtO.includes(L.transferEntity.transferState)})};
_.sle=function(A){var L,O,X,x=(X=(O=((L=A.entities.downloadsPageViewConfigurationEntity)!=null?L:{})[_.G1])==null?void 0:O.downloadsUpsellBannerVisibility)!=null?X:{};return _.Im(A)?!!x.visibleWithConnection:!!x.visibleWithoutConnection};
_.Jas=function(A,L){return BSe(A.entities,L)};
P6M=function(A,L){if(L){var O,X;A=(X=(O=_.eM(A.entities,"downloadStatusEntity",_.Dn(L,"downloadStatusEntity")))==null?void 0:O.downloadState)!=null?X:"DOWNLOAD_STATE_UNKNOWN"}else A="DOWNLOAD_STATE_UNKNOWN";return A};
WG=function(A,L){return O29(A.entities,L)};
Tfd=function(A){A=_.dvy(A);var L=A.hours===void 0?0:A.hours,O=A.minutes===void 0?0:A.minutes,X=A.seconds===void 0?0:A.seconds,x=L>0;A=[];x&&(L=_.Yce(L),A.push(L));L=x;L=L===void 0?!1:L;O=(["af","be","lt"].includes(_.HG)||L)&&O<10?u6M().format(O):(new Intl.NumberFormat("en-u-nu-latn")).format(O);A.push(O);O=u6M().format(X);A.push(O);O=":";"da fi id si sr sr-Latn".split(" ").includes(_.HG)&&(O=".");return A.join(O)};
_.dvy=function(A){var L=A.hours||0,O=A.minutes||0,X=A.seconds||0;L=X+O*60+L*3600+(A.days||0)*86400+(A.weeks||0)*604800+(A.months||0)*2629800+(A.years||0)*31557600;if(L<=0)return{hours:0,minutes:0,seconds:0};A=L;L=Math.floor(A/3600);A%=3600;O=Math.floor(A/60);X=Math.floor(A%60);return{hours:L,minutes:O,seconds:X}};
_.Yce=function(A){A=(new Intl.NumberFormat("en-u-nu-latn")).format(A);var L=["fr"],O="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(_.HG)?A.replace(",","\u00a0"):L.includes(_.HG)?A.replace(",","\u202f"):O.includes(_.HG)?A.replace(",","."):A};
u6M=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
VlD=function(A){try{return(new _.z1(5)).format(A)}catch(L){}};
BG=function(A){return{thumbnailOverlayDownloadingRenderer:{state:A}}};
Dvs=function(A){if(A=VlD(A))return{thumbnailOverlaySidePanelRenderer:{text:_.Xl(A),icon:{iconType:"PLAYLISTS"}}}};
el_=function(){var A=_.b3("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.Xl(A),icon:{iconType:"PLAY_ALL"}}}};
E1_=function(A){A=_.Ma(A,2);return _.HG!=="ru"&&_.HG!=="es_419"&&_.HG!=="es-419"&&_.HG!=="es"&&_.HG!=="es_US"&&_.HG!=="es-US"&&_.HG!=="fr"&&_.HG!=="pl"&&_.HG!=="it"&&_.HG!=="nl"&&_.HG!=="uk"&&_.HG!=="fr_CA"&&_.HG!=="fr-CA"||A===""?A:A[0].toLocaleUpperCase()+A.substring(1)};
tle=function(A){return function(L){var O=A(),X=_.Ma(L,O.dateFormat);L=_.Ma(L,O.timeFormat);var x=n1J.DATETIMEFORMATS[O.joinerStyle];x=x.replace(/'(?!')/g,"");x=x.replace("{0}",L);x=x.replace("{1}",X);return O.capitalize(x)}};
bAd=function(A){return A?typeof A.seconds==="string"&&(A.nanos===void 0||typeof A.nanos==="number"):!1};
hls=function(A){return new Date(Number(A.seconds)*1E3+(A.nanos||0)*1E-6)};
_.Ma=function(A,L){if(typeof A.getTime==="function")A={date:A};else if(bAd(A))A={date:hls(A)};else if(typeof bAd(A.timestamp)&&typeof A.i18nInternalSecondsEastOfUtc==="number")A={date:hls(A.timestamp),timeZone:$B(-A.i18nInternalSecondsEastOfUtc/60)};else throw Error("Cf`"+JSON.stringify(A));var O=A;A=O.date;O=O.timeZone;L=Sc9(L).format(A,O);_.HG==="zh-TW"&&(A=O?Number(Sc9("H").format(A,O)):A.getHours(),L=A<5?L.replace("\u4e0a\u5348","\u51cc\u6668"):A<8?L.replace("\u4e0a\u5348","\u65e9\u4e0a"):A<12?
L.replace("\u4e0a\u5348","\u4e0a\u5348"):A<13?L.replace("\u4e0b\u5348","\u4e2d\u5348"):A<19?L.replace("\u4e0b\u5348","\u4e0b\u5348"):L.replace("\u4e0b\u5348","\u665a\u4e0a"));return L};
Sc9=function(A){if(qcD.has(A))return qcD.get(A);var L=g1e(A);L=w$O(L);p$D!==!0&&(p$D=!0);iAu=!0;iAu=!1;L=new am(L,n1J);qcD.set(A,L);return L};
g1e=function(A){return(new am(A,n1J)).patternParts_.map(function(L){return L.type===0?"'"+L.text+"'":L.text}).join("")};
w$O=function(A){return _.HG==="en"||_.HG==="es_US"||_.HG==="es-US"?A:A.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(L,O,X){return"H".repeat(O.length)+X})};
Fk_=function(A,L){Nfs||(_.kB=_.raD,Nfs=new Kks);var O=Nfs;a:if(A=G6e(A),L=G6e(L||new Date),A>L)O=A.getTime()-L.getTime()>6048E5?_.Ma(A,1):lYp(A);else{for(var X=0;ca9(A,12*(X+1))<L;)++X;if(X>0)O=O.format(-X,0);else{for(X=0;ca9(A,X+1)<L;)++X;if(X>0)O=O.format(-X,2);else{A=L.getTime()-A.getTime();L=_.d(C6D);for(X=L.next();!X.done;X=L.next()){X=X.value;var x=X.unit,J=Math.floor(A/X.unitDuration);if(J>=(X.threshold===void 0?1:X.threshold)){O=O.format(-J,x);break a}}O=O.format(-0,7)}}}return O};
G6e=function(A){if(typeof A.getTime==="function")return A;if(bAd(A))return hls(A);throw Error("Df`"+JSON.stringify(A));};
ca9=function(A,L){for(var O=0,X;;++O)if(X=new Date(A.getFullYear(),A.getMonth()+L,A.getDate()-O,A.getHours(),A.getMinutes(),A.getSeconds()),X.getMonth()===(A.getMonth()+L)%12)return X};
_.Ue=function(A){return{runs:[{text:A}]}};
_.vG=function(A){if(A&&A.simpleText)return A.simpleText;var L="";if(A&&A.runs)for(var O=0;O<A.runs.length;O++)A.runs[O].text&&(L+=A.runs[O].text);return L};
Qlu=function(A,L,O,X){return A.videoEntity&&!A.policyEntity&&O!=="DOWNLOAD_STATE_FAILED"?[BG("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:gh(A.policyEntity)&&L!=="TRANSFER_STATE_FAILED"&&L!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?L==="TRANSFER_STATE_PAUSED_BY_USER"?[BG("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.wh(L)?[BG("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:A.videoEntity.lengthSeconds?Rls(A.videoEntity.lengthSeconds,X):[]:
[BG("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
Rls=function(A,L){var O=[{thumbnailOverlayTimeStatusRenderer:{text:_.Xl(Tfd({seconds:A})),style:"DEFAULT"}}];L&&(A=L<=0||A<=0?0:L>=A?100:Math.ceil(L*100/A),A>0&&O.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:A}}));return O};
mv_=function(A,L,O,X,x){if(L==="TRANSFER_STATE_UNKNOWN"||!A)return{};if(_.wh(L)||L==="TRANSFER_STATE_PRE_TRANSFER")var J=[BG("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var Y,T;if(L==="TRANSFER_STATE_COMPLETE"&&((Y=A.mainPlaylistEntity)==null?0:(T=Y.videos)==null?0:T.length)){if(_.h("web_modern_collections_v2")){var V;var E=(J=A.mainPlaylistEntity)==null?void 0:(V=J.videos)==null?void 0:V.length;J=(J=VlD(E))?{thumbnailOverlayBottomPanelRenderer:{text:_.Xl(J),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var n;J=Dvs((E=A.mainPlaylistEntity)==null?void 0:(n=E.videos)==null?void 0:n.length)}var t;J=[el_(),Object.assign({},(t=J)!=null?t:{})]}else J=[]}t=J;a:if(L==="TRANSFER_STATE_PRE_TRANSFER")O=xB(_.b3("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(L==="TRANSFER_STATE_TRANSFER_IN_QUEUE")O=xB(_.b3("WAITING_TO_DOWNLOAD"));else if(_.wh(L))O=Math.floor(O*100).toString(),O=xB(_.b3("DOWNLOADING_PERCENT",{percent:O},"Downloading... "+O+"%"));else{if(X&&(_.h("playlist_is_offline_selector_killswitch")&&
(x=_.X5().resolve(_.H1).isNetworkAvailable()),x)){O=Bqu(_.b3("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),HCe(X));break a}O=void 0}L=L==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.b3("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},t.length?{thumbnailOverlays:t}:{},O?{viewPlaylistText:O}:{viewPlaylistText:_.Ue("")},L.length?{badges:L}:{})};
fYp=function(A,L,O,X,x,J){if(L==="TRANSFER_STATE_UNKNOWN"||!A)return{};if(X==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var Y=Qlu(A,L,X);if(A.videoEntity&&!A.policyEntity&&X!=="DOWNLOAD_STATE_FAILED"){var T=_.b3("WAITING_TO_DOWNLOAD");if(T)return{shortViewCountText:_.Ue(T),publishedTimeText:void 0,thumbnailOverlays:Y}}if(!gh(A.policyEntity)){J=A.policyEntity&&!IUu(A.policyEntity)?_.b3("DOWNLOAD_EXPIRED",{},"Download expired"):
_.b3("TRANSFER_FAILED",{},"Download failed");var V;if((V=A.policyEntity)==null?0:V.shortMessageForDisabledAction)J=A.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:xB(J),publishedTimeText:void 0,thumbnailOverlays:Y}}if(L==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.Ue(_.b3("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:Y};if(L==="TRANSFER_STATE_FAILED"||L==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.Ue(_.b3("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:Y};if(L==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(V=_.b3("WAITING_TO_DOWNLOAD"),X==="DOWNLOAD_STATE_PAUSED"&&(V=_.b3("DOWNLOAD_PAUSED",{},"Download paused")),V))return{shortViewCountText:_.Ue(V),publishedTimeText:void 0,thumbnailOverlays:Y};if(_.wh(L))return A=Math.floor(O*100).toString(),{shortViewCountText:_.Ue(_.b3("DOWNLOADING_PERCENT",{percent:A},"Downloading... "+A+"%")),publishedTimeText:void 0,thumbnailOverlays:Y};L=void 0;A.videoEntity.publishedTimestampMillis&&
(L=new Date,x&&(L=new Date(x)),L=xB(Fk_(new Date(Number(A.videoEntity.publishedTimestampMillis)),L)));x=[];_.h("kevlar_woffle_badge_killswitch")||(x=[{metadataBadgeRenderer:{label:_.b3("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var E;A=xB((E=A.videoEntity.localizedStrings)==null?void 0:E.viewCount);return Object.assign({},J?{shortViewCountText:void 0}:{shortViewCountText:A},J?{}:{publishedTimeText:L},{badges:x,thumbnailOverlays:Y})};
ya_=function(A,L){A=A===void 0?IYs:A;switch(L.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:L.payload.playlistId,inviteLinkURL:L.payload.inviteLinkUrl};default:return A}};
jl9=function(A,L){A=A===void 0?ZAp:A;switch(L.type){case "SET_CURRENT_FORM_ID":return L=L.payload.formId,A.currentFormId===L?A:{currentFormId:L,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var O=L.payload;L=O.groupId;O=O.command;if(A.currentFormId){var X=Object.assign({},A.commandsMap);X[L]=O;A=Object.assign({},A,{commandsMap:X})}return A;case "RESET_COMMAND_MAP":return Object.assign({},A,{commandsMap:{}});default:return A}};
HA9=function(A,L){A=A===void 0?Wk9:A;switch(L.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},A,{guideIsExpanded:L.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},A,{scrollAtTop:L.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},A,{guideIsVisibleButNotPersistent:L.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},A,{miniplayerIsActive:L.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},A,{singleOptionSurveyIsActive:L.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},A,{slimlineSurveyRatingSelectedIndex:L.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},A,{richGridMiniMode:L.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},A,{richGridItemsPerRow:L.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},A,{richGridSlimItemsPerRow:L.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},A,{richGridContainerWidth:L.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},A,{richGridStyle:L.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},A,{currentPageType:L.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},A,{inlinePreviewIsActive:L.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},A,{inlinePreviewIsEnabled:L.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},A,{darkModeIsEnabled:L.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
A,{miniplayerPlaybackState:L.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},A,{tabGesturesIsActive:L.payload});case "SET_ONLINE_STATUS":return Object.assign({},A,{isOnline:L.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},A,{chipBarIsSticky:L.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},A,{frostedGlassMode:L.payload});default:return A}};
Bfe=function(A,L){A=A===void 0?zlu:A;switch(L.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},A,{transcription:L.payload});case "SET_OVERLAY_STATE":return Object.assign({},A,{overlay:L.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return A}};
Cvr=function(){return EI(Object.assign({},{continuation:Mlp,entities:d1e,download:$ve,reportChannelAbuse:aYr,share:k6u,talkToRecs:Uve,ui:HA9,voiceSearch:Bfe,watch:v1M,ypc:o1_,shorts:AMr,radioButtonGroup:jl9,collabInviteLink:ya_},Lny))};
Qrp=function(){return _.h("web_player_entities_middleware")?new om(Cvr(),[FnJ,RWu]):new om(Cvr(),[FnJ])};
_.Ai=function(){mr_||(mr_=Qrp());return mr_};
fbu=function(A,L,O){if(A.length)return{titleText:_.Xl(L!=null?L:_.b3("DOWNLOADS",void 0,"Downloads")),contents:A.map(function(X){var x=X.videoEntity;X={videoId:x.videoId,title:xB(x.title),shortBylineText:xB(X.channelEntity.title),thumbnail:x.thumbnail};var J=x.videoId?WG(_.Ai().getState(),x.videoId):0;x.videoId&&O?X.navigationEndpoint=_.Oe(x.videoId,O,void 0,void 0,J):x.videoId&&(X.navigationEndpoint=W1s(x.videoId,J,x.lengthSeconds));x.lengthSeconds&&(X.thumbnailOverlays=Rls(x.lengthSeconds,J));return{playlistPanelVideoRenderer:X}}),
totalVideos:A.length}};
Ib9=function(A){return(A=(0,_.lW.getValueByKeys)(A,"playlistId"))?{playlistId:A}:null};
yMM=function(){return{}};
ZOe=function(A,L){return new _.eJ(function(O,X){A.then(function(x){if(x){if(x=L(x))return O(x);X()}},X)})};
jre=function(A){var L,O,X,x=(L=A.contents)==null?void 0:(O=L.twoColumnWatchNextResults)==null?void 0:(X=O.autoplay)==null?void 0:X.autoplay,J,Y,T;L=(J=A.contents)==null?void 0:(Y=J.twoColumnWatchNextResults)==null?void 0:(T=Y.playlist)==null?void 0:T.playlist;return x&&L&&L.playlistId?{rawResponse:A,autoplayRenderer:x,playlistPanelRenderer:L,playlistId:L.playlistId}:null};
HOu=function(A){var L=L===void 0?"UNKNOWN_INTERFACE":L;if(A.length===1)return A[0];var O=Wnu[L];if(O){O=new RegExp(O);for(var X=_.d(A),x=X.next();!x.done;x=X.next())if(x=x.value,O.exec(x))return x}var J=[];Object.entries(Wnu).forEach(function(Y){var T=_.d(Y);Y=T.next().value;T=T.next().value;L!==Y&&J.push(T)});
O=new RegExp(J.join("|"));A.sort(function(Y,T){return Y.length-T.length});
X=_.d(A);for(x=X.next();!x.done;x=X.next())if(x=x.value,!O.exec(x))return x;return A[0]};
_.L3=function(A){return"/youtubei/v1/"+HOu(A)};
_.OP=function(A){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:A}}}}};
_.XZ=function(A){return _.OP(_.Ue(A))};
zWe=function(A,L){var O={mode:"NORMAL"};A&&(O.autoplayVideo=A.navigationEndpoint,O.nextButtonVideo=A.navigationEndpoint);L&&(O.previousButtonVideo=L.navigationEndpoint);return O};
$rP=function(A,L,O){if(!O||!O.sets)return{sets:[zWe(A,L)]};var X=O.sets.find(function(Y){return Y.mode==="NORMAL"}),x=(0,_.lW.unsafeClone)(O);
if(!X)return x.sets.push(zWe(A,L)),x;if(!A)return O;X=_.lW.getValueByKeys.apply(null,[X].concat(_.le(BjD)));var J=_.lW.getValueByKeys.apply(null,[A].concat(_.le(Msd)));if(X===J)return O;x.sets=x.sets.filter(function(Y){return Y.mode!=="NORMAL"});
x.sets.push(zWe(A,L));return x};
abM=function(A){return!!A.playlistPanelVideoRenderer&&!A.playlistPanelVideoRenderer.unplayableText};
kfu=function(A){return!!A.playlistPanelVideoRenderer&&!!A.playlistPanelVideoRenderer.title};
Uru=function(A,L){if(L.contents&&!(A>=L.contents.length)&&(A=L.contents.slice(A).find(abM)))return A.playlistPanelVideoRenderer};
v5y=function(A,L){if(L.contents)return(L=L.contents.find(function(O){return!!O.playlistPanelVideoRenderer&&O.playlistPanelVideoRenderer.videoId===A}))?L.playlistPanelVideoRenderer:void 0};
o5u=function(A,L){return L.contents?L.contents.findIndex(function(O){return!!O.playlistPanelVideoRenderer&&O.playlistPanelVideoRenderer.videoId===A}):-1};
A3_=function(A,L){return L.contents?L.contents.findIndex(function(O){return!!O.playlistPanelVideoRenderer&&O.playlistPanelVideoRenderer.playlistSetVideoId===A}):-1};
LQe=function(A,L){A.contents&&L!==-1&&A.contents.splice(L,1).length===1&&A.totalVideos!==void 0&&(--A.totalVideos,delete A.videoCountText)};
_.OlP=function(A){var L=[];if(!A||!A.contents)return L;A=_.d(A.contents);for(var O=A.next();!O.done;O=A.next())O=O.value,O.playlistPanelVideoRenderer&&O.playlistPanelVideoRenderer.videoId&&L.push(O.playlistPanelVideoRenderer.videoId);return L};
_.XLM=function(A){if(A&&A.contents)return(A=A.contents.find(function(L){return!!L.playlistPanelVideoRenderer&&!!L.playlistPanelVideoRenderer.selected})||A.contents[A.currentIndex])?A.playlistPanelVideoRenderer:void 0};
xU_=function(A,L,O,X,x,J,Y){x=x===void 0?!1:x;J=J===void 0?!1:J;Y=Y===void 0?!1:Y;if(A.contents&&A.contents.length!==0){X&&(A.contents=A.contents.filter(X));X=A.contents.length;for(var T=0;T<X;T++){var V=A.contents[T].playlistPanelVideoRenderer;V&&(T===L?(J&&delete V.menu,V.indexText=_.Ue("\u25b6")):x||A.isInfinite||V.indexText===void 0?delete V.indexText:V.indexText=_.Ue((T+1+O).toString()))}A.currentIndex=L+O;Y&&(delete A.videoCountText,A.totalVideos=X)}};
_.xc=function(A){A=sfe(A);if(A){var L=A.length;var O=-62%L;O<0&&(O=L+O);A=A.slice(L-O)+A.slice(0,L-O)}else A="";O="";for(L=0;L<A.length&&A[L]!==J3s;L++)O+=A[L];return O};
_.PjD=function(A,L){var O=document.body;L=L===void 0?function(T){return T}:L;
var X,x=null;A=_.d(A);for(X=A.next();!X.done;X=A.next()){var J=X.value;X="div";J[2]&&(X=L(J[2]));X=document.createElement(X);x||(x=X);var Y=J[0];J=J[1];Y&&(X.id=L(Y));if(J)for(J=_.d(J),Y=J.next();!Y.done;Y=J.next())X.classList.add(L(Y.value));O.appendChild(X);O=X}return[x,O]};
dUu=function(A,L){for(var O="",X=0;X<L;X++)O+=A.charAt(Math.floor(Math.random()*A.length));return O};
sP=function(A){return dUu("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",A)};
Ji=function(A){return dUu("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",A)};
Py=function(A){return dUu("0123456789",A)};
dM=function(){var A=performance.now(),L=new Date;var O="2."+L.getFullYear()+String(L.getMonth()+1).padStart(2,"0")+String(L.getDate()).padStart(2,"0");for(var X,x=Math.floor(Math.random()*11)+15,J=[],Y=0;Y<x;Y++)J.push(Math.floor(Math.random()*26476865)+24547720);X=J.join(",");var T=sP(10),V=sP(100),E=sP(102),n=sP(106),t=sP(108),b=sP(11),S=sP(1140),w=sP(123),l=sP(14),F=sP(16),R=sP(1900),y=sP(23),M=sP(26),H=sP(34),z=sP(397),a=sP(44),xe=sP(5),ur=sP(72),eD=sP(74),gu=sP(75),ir=sP(88),SD=sP(91),HJ="rr5---sn-q4fl6nzy rr4---sn-q4fl6nz6 rr1---sn-t0a7ln7d rr1---sn-q4flrne6 rr1---sn-q4fl6n6z rr2---sn-q4flrn7k rr5---sn-q4flrn7k rr3---sn-q4fl6ns6 rr3---sn-aigl6nsd rr2---sn-q4fzenee rr5---sn-q4flrnl6 rr3---sn-q4fl6n66 rr3---sn-5hne6nz6 rr2---sn-q4flrnee rr4---sn-q4flrney rr1---sn-q4fzenee rr5---sn-aigl6nzl rr2---sn-q4flrnle rr2---sn-q4flrnek rr4---sn-5hne6nzy".split(" ");
var mM=HJ[Math.floor(Math.random()*HJ.length)];var Vu=(new Date("2010-01-01")).getTime();var cn=(new Date(Vu+Math.random()*((new Date).getTime()-Vu))).toISOString().split("T")[0];for(var Tj,Uu=[],Eg=0;Eg<4;Eg++)Uu.push(Math.floor(Math.random()*100));Tj=Uu.join(".");var DN=Number(Py(5)),NN=Number(Py(6)),bJ=Number(Py(7)),MN=Number(Py(9)),Js=Py(1),XL=Py(10),gJ=Py(16),hk=Py(19),hc=Py(2),Wn=Py(20),X0=Py(21),o6=Py(3),YV=Py(4),LJ=Py(5),eZ=Py(6),p6=Py(7),Gj=Py(8),qQ=Py(9);var TM=dUu("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var VM=[Ji(5),Ji(5),Ji(5)].join("%2C"),pm=[Py(3),Py(5),Py(5)].join("%2C"),U0=Ji(0),$V=Ji(1),QM=Ji(10),OB=Ji(108),XP=Ji(11),gR=Ji(12),MF=Ji(13),ko=Ji(14),Re=Ji(15),nL=Ji(16),aF=Ji(17),ru=Ji(18),f9=Ji(19),zO=Ji(2),S3=Ji(20),uJ=Ji(22),cf=Ji(23),gB=Ji(24),wJ=Ji(266),bH=Ji(3),CJ=Ji(30),K_=Ji(34),tc=Ji(35),$T=Ji(36),CB=Ji(4),mJ=Ji(40),iW=Ji(43),U$=Ji(47),Hb=Ji(5),My=Ji(6),dB=Ji(7),BX=Ji(75),MQ=Ji(8),VS=Ji(80),k3=Ji(9),hE="https://www."+Ji(12)+".com",Eb={},kz={},TG={},vWe={},VK={},Eh={},nV={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:X}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:O},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+Ji(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:O},{key:"client.name",value:"WEB"},{key:"client.fexp",value:X}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:X0+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+Ji(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:mJ,ypcGetOfflineUpsellEndpoint:{params:VS}},trackingParams:tc+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+mM+".googlevideo.com/videoplayback?expire="+XL+"&ei="+y+"&ip="+Tj+"&id=o-AF"+iW+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+pm+"&mn="+VM+"&ms="+VM+"&mv="+$V+"&mvi="+Js+"&pl="+hc+"&initcwndbps="+p6+"&siu="+Js+"&spc="+a+"&vprv="+Js+"&svpuc="+Js+"&mime=video%2Fmp4&ns="+gB+"&cnr="+hc+"&ratebypass=yes&dur="+Gj+"&lmt="+gJ+"&mt="+XL+"&fvip=3&c=WEB&txp="+p6+"&n="+F+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:NN,width:640,height:360,lastModified:gJ,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:p6,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+mM+".googlevideo.com/videoplayback?expire="+XL+"&ei="+y+"&ip="+Tj+"&id=o-AF"+iW+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+pm+"&mn="+
VM+"&ms="+VM+"&mv="+$V+"&mvi="+Js+"&pl="+hc+"&initcwndbps="+p6+"&siu="+Js+"&spc="+a+"&vprv="+Js+"&svpuc="+Js+"&mime=video%2Fmp4&ns="+gB+"&cnr="+hc+"&ratebypass=yes&dur="+Gj+"&lmt="+gJ+"&mt="+XL+"&fvip=3&c=WEB&txp="+p6+"&n="+F+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+OB+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:NN,width:1280,
height:720,lastModified:gJ,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:p6,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+mM+".googlevideo.com/videoplayback?expire="+XL+"&ei="+y+"&ip="+Tj+"&id=o-AF"+iW+"&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="+pm+"&mn="+VM+"&ms="+
VM+"&mv="+$V+"&mvi="+Js+"&pl="+hc+"&initcwndbps="+p6+"&siu="+Js+"&spc="+a+"&vprv="+Js+"&svpuc="+Js+"&mime=video%2Fmp4&ns="+gB+"&gir="+bH+"&clen="+qQ+"&dur="+Gj+"&lmt="+gJ+"&mt="+XL+"&fvip=3&keepalive="+bH+"&c=WEB&txp="+p6+"&n="+nL+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+V+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:bJ,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:o6,end:YV},lastModified:gJ,contentLength:qQ,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:bJ,approxDurationMs:p6},{itag:248,url:"https://"+mM+".googlevideo.com/videoplayback?expire="+XL+"&ei="+y+"&ip="+Tj+"&id=o-AF"+iW+"&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="+pm+"&mn="+VM+"&ms="+VM+"&mv="+
$V+"&mvi="+Js+"&pl="+hc+"&initcwndbps="+p6+"&siu="+Js+"&spc="+a+"&vprv="+Js+"&svpuc="+Js+"&mime=video%2Fwebm&ns="+gB+"&gir="+bH+"&clen="+qQ+"&dur="+Gj+"&lmt="+gJ+"&mt="+XL+"&fvip=3&keepalive="+bH+"&c=WEB&txp="+p6+"&n="+nL+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/webm; codecs="vp9"',bitrate:bJ,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:o6,end:YV},lastModified:gJ,contentLength:qQ,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:bJ,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:p6},{itag:399,url:"https://"+mM+".googlevideo.com/videoplayback?expire="+XL+"&ei="+y+"&ip="+Tj+"&id=o-AF"+iW+"&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="+
pm+"&mn="+VM+"&ms="+VM+"&mv="+$V+"&mvi="+Js+"&pl="+hc+"&initcwndbps="+p6+"&siu="+Js+"&spc="+a+"&vprv="+Js+"&svpuc="+Js+"&mime=video%2Fmp4&ns="+gB+"&gir="+bH+"&clen="+qQ+"&dur="+Gj+"&lmt="+gJ+"&mt="+XL+"&fvip=3&keepalive="+bH+"&c=WEB&txp="+p6+"&n="+nL+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+V+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:bJ,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:o6,end:YV},lastModified:gJ,contentLength:qQ,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:bJ,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:p6},{itag:136,url:"https://"+mM+".googlevideo.com/videoplayback?expire="+XL+"&ei="+y+"&ip="+Tj+"&id=o-AF"+iW+"&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="+
pm+"&mn="+VM+"&ms="+VM+"&mv="+$V+"&mvi="+Js+"&pl="+hc+"&initcwndbps="+p6+"&siu="+Js+"&spc="+a+"&vprv="+Js+"&svpuc="+Js+"&mime=video%2Fmp4&ns="+gB+"&gir="+bH+"&clen="+qQ+"&dur="+Gj+"&lmt="+gJ+"&mt="+XL+"&fvip=3&keepalive="+bH+"&c=WEB&txp="+p6+"&n="+nL+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:bJ,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:o6,end:YV},lastModified:gJ,contentLength:qQ,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:NN,approxDurationMs:p6},{itag:247,url:"https://"+mM+".googlevideo.com/videoplayback?expire="+XL+"&ei="+y+"&ip="+Tj+"&id=o-AF"+iW+"&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="+pm+"&mn="+
VM+"&ms="+VM+"&mv="+$V+"&mvi="+Js+"&pl="+hc+"&initcwndbps="+p6+"&siu="+Js+"&spc="+a+"&vprv="+Js+"&svpuc="+Js+"&mime=video%2Fwebm&ns="+gB+"&gir="+bH+"&clen="+qQ+"&dur="+Gj+"&lmt="+gJ+"&mt="+XL+"&fvip=3&keepalive="+bH+"&c=WEB&txp="+p6+"&n="+nL+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/webm; codecs="vp9"',bitrate:bJ,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:o6,end:YV},lastModified:gJ,contentLength:qQ,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:NN,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:p6},{itag:398,url:"https://"+mM+".googlevideo.com/videoplayback?expire="+XL+"&ei="+y+"&ip="+Tj+"&id=o-AF"+iW+"&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="+
pm+"&mn="+VM+"&ms="+VM+"&mv="+$V+"&mvi="+Js+"&pl="+hc+"&initcwndbps="+p6+"&siu="+Js+"&spc="+a+"&vprv="+Js+"&svpuc="+Js+"&mime=video%2Fmp4&ns="+gB+"&gir="+bH+"&clen="+qQ+"&dur="+Gj+"&lmt="+gJ+"&mt="+XL+"&fvip=3&keepalive="+bH+"&c=WEB&txp="+p6+"&n="+nL+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:bJ,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:o6,end:YV},lastModified:gJ,contentLength:qQ,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:NN,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:p6},{itag:135,url:"https://"+mM+".googlevideo.com/videoplayback?expire="+XL+"&ei="+y+"&ip="+Tj+"&id=o-AF"+iW+"&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="+
pm+"&mn="+VM+"&ms="+VM+"&mv="+$V+"&mvi="+Js+"&pl="+hc+"&initcwndbps="+p6+"&siu="+Js+"&spc="+a+"&vprv="+Js+"&svpuc="+Js+"&mime=video%2Fmp4&ns="+gB+"&gir="+bH+"&clen="+Gj+"&dur="+Gj+"&lmt="+gJ+"&mt="+XL+"&fvip=3&keepalive="+bH+"&c=WEB&txp="+p6+"&n="+nL+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:NN,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:o6,end:YV},lastModified:gJ,contentLength:Gj,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:NN,approxDurationMs:p6},{itag:244,url:"https://"+mM+".googlevideo.com/videoplayback?expire="+XL+"&ei="+y+"&ip="+Tj+"&id=o-AF"+iW+"&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="+pm+"&mn="+
VM+"&ms="+VM+"&mv="+$V+"&mvi="+Js+"&pl="+hc+"&initcwndbps="+p6+"&siu="+Js+"&spc="+a+"&vprv="+Js+"&svpuc="+Js+"&mime=video%2Fwebm&ns="+gB+"&gir="+bH+"&clen="+Gj+"&dur="+Gj+"&lmt="+gJ+"&mt="+XL+"&fvip=3&keepalive="+bH+"&c=WEB&txp="+p6+"&n="+nL+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+OB+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/webm; codecs="vp9"',bitrate:NN,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:o6,end:YV},lastModified:gJ,contentLength:Gj,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:NN,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:p6},{itag:397,url:"https://"+mM+".googlevideo.com/videoplayback?expire="+XL+"&ei="+y+"&ip="+Tj+"&id=o-AF"+iW+"&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="+
pm+"&mn="+VM+"&ms="+VM+"&mv="+$V+"&mvi="+Js+"&pl="+hc+"&initcwndbps="+p6+"&siu="+Js+"&spc="+a+"&vprv="+Js+"&svpuc="+Js+"&mime=video%2Fmp4&ns="+gB+"&gir="+bH+"&clen="+Gj+"&dur="+Gj+"&lmt="+gJ+"&mt="+XL+"&fvip=3&keepalive="+bH+"&c=WEB&txp="+p6+"&n="+nL+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+V+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:NN,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:o6,end:YV},lastModified:gJ,contentLength:Gj,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:NN,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:p6},{itag:134,url:"https://"+mM+".googlevideo.com/videoplayback?expire="+XL+"&ei="+y+"&ip="+Tj+"&id=o-AF"+iW+"&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="+
pm+"&mn="+VM+"&ms="+VM+"&mv="+$V+"&mvi="+Js+"&pl="+hc+"&initcwndbps="+p6+"&siu="+Js+"&spc="+a+"&vprv="+Js+"&svpuc="+Js+"&mime=video%2Fmp4&ns="+gB+"&gir="+bH+"&clen="+Gj+"&dur="+Gj+"&lmt="+gJ+"&mt="+XL+"&fvip=3&keepalive="+bH+"&c=WEB&txp="+p6+"&n="+nL+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:NN,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:o6,end:YV},lastModified:gJ,contentLength:Gj,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:NN,highReplication:!0,approxDurationMs:p6},{itag:243,url:"https://"+mM+".googlevideo.com/videoplayback?expire="+XL+"&ei="+y+"&ip="+Tj+"&id=o-AF"+iW+"&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="+
pm+"&mn="+VM+"&ms="+VM+"&mv="+$V+"&mvi="+Js+"&pl="+hc+"&initcwndbps="+p6+"&siu="+Js+"&spc="+a+"&vprv="+Js+"&svpuc="+Js+"&mime=video%2Fwebm&ns="+gB+"&gir="+bH+"&clen="+Gj+"&dur="+Gj+"&lmt="+gJ+"&mt="+XL+"&fvip=3&keepalive="+bH+"&c=WEB&txp="+p6+"&n="+nL+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/webm; codecs="vp9"',bitrate:NN,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:o6,end:YV},lastModified:gJ,contentLength:Gj,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:NN,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:p6},{itag:396,url:"https://"+mM+".googlevideo.com/videoplayback?expire="+XL+"&ei="+y+"&ip="+Tj+"&id=o-AF"+iW+"&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="+
pm+"&mn="+VM+"&ms="+VM+"&mv="+$V+"&mvi="+Js+"&pl="+hc+"&initcwndbps="+p6+"&siu="+Js+"&spc="+a+"&vprv="+Js+"&svpuc="+Js+"&mime=video%2Fmp4&ns="+gB+"&gir="+bH+"&clen="+Gj+"&dur="+Gj+"&lmt="+gJ+"&mt="+XL+"&fvip=3&keepalive="+bH+"&c=WEB&txp="+p6+"&n="+nL+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:NN,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:o6,end:YV},lastModified:gJ,contentLength:Gj,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:NN,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:p6},{itag:133,url:"https://"+mM+".googlevideo.com/videoplayback?expire="+XL+"&ei="+y+"&ip="+Tj+"&id=o-AF"+iW+"&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="+
pm+"&mn="+VM+"&ms="+VM+"&mv="+$V+"&mvi="+Js+"&pl="+hc+"&initcwndbps="+p6+"&siu="+Js+"&spc="+a+"&vprv="+Js+"&svpuc="+Js+"&mime=video%2Fmp4&ns="+gB+"&gir="+bH+"&clen="+Gj+"&dur="+Gj+"&lmt="+gJ+"&mt="+XL+"&fvip=3&keepalive="+bH+"&c=WEB&txp="+p6+"&n="+nL+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:NN,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:o6,end:YV},lastModified:gJ,contentLength:Gj,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:NN,approxDurationMs:p6},{itag:242,url:"https://"+mM+".googlevideo.com/videoplayback?expire="+XL+"&ei="+y+"&ip="+Tj+"&id=o-AF"+iW+"&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="+pm+"&mn="+
VM+"&ms="+VM+"&mv="+$V+"&mvi="+Js+"&pl="+hc+"&initcwndbps="+p6+"&siu="+Js+"&spc="+a+"&vprv="+Js+"&svpuc="+Js+"&mime=video%2Fwebm&ns="+gB+"&gir="+bH+"&clen="+Gj+"&dur="+Gj+"&lmt="+gJ+"&mt="+XL+"&fvip=3&keepalive="+bH+"&c=WEB&txp="+p6+"&n="+nL+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/webm; codecs="vp9"',bitrate:NN,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:o6,end:YV},lastModified:gJ,contentLength:Gj,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:NN,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:p6},{itag:395,url:"https://"+mM+".googlevideo.com/videoplayback?expire="+XL+"&ei="+y+"&ip="+Tj+"&id=o-AF"+iW+"&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="+
pm+"&mn="+VM+"&ms="+VM+"&mv="+$V+"&mvi="+Js+"&pl="+hc+"&initcwndbps="+p6+"&siu="+Js+"&spc="+a+"&vprv="+Js+"&svpuc="+Js+"&mime=video%2Fmp4&ns="+gB+"&gir="+bH+"&clen="+Gj+"&dur="+Gj+"&lmt="+gJ+"&mt="+XL+"&fvip=3&keepalive="+bH+"&c=WEB&txp="+p6+"&n="+nL+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:NN,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:o6,end:YV},lastModified:gJ,contentLength:Gj,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:NN,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:p6},{itag:160,url:"https://"+mM+".googlevideo.com/videoplayback?expire="+XL+"&ei="+y+"&ip="+Tj+"&id=o-AF"+iW+"&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="+
pm+"&mn="+VM+"&ms="+VM+"&mv="+$V+"&mvi="+Js+"&pl="+hc+"&initcwndbps="+p6+"&siu="+Js+"&spc="+a+"&vprv="+Js+"&svpuc="+Js+"&mime=video%2Fmp4&ns="+gB+"&gir="+bH+"&clen="+Gj+"&dur="+Gj+"&lmt="+gJ+"&mt="+XL+"&fvip=3&keepalive="+bH+"&c=WEB&txp="+p6+"&n="+nL+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:NN,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:o6,end:YV},lastModified:gJ,contentLength:Gj,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:DN,approxDurationMs:p6},{itag:278,url:"https://"+mM+".googlevideo.com/videoplayback?expire="+XL+"&ei="+y+"&ip="+Tj+"&id=o-AF"+iW+"&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="+pm+"&mn="+
VM+"&ms="+VM+"&mv="+$V+"&mvi="+Js+"&pl="+hc+"&initcwndbps="+p6+"&siu="+Js+"&spc="+a+"&vprv="+Js+"&svpuc="+Js+"&mime=video%2Fwebm&ns="+gB+"&gir="+bH+"&clen="+Gj+"&dur="+Gj+"&lmt="+gJ+"&mt="+XL+"&fvip=3&keepalive="+bH+"&c=WEB&txp="+p6+"&n="+nL+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/webm; codecs="vp9"',bitrate:NN,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:o6,end:YV},lastModified:gJ,contentLength:Gj,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:DN,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:p6},{itag:394,url:"https://"+mM+".googlevideo.com/videoplayback?expire="+XL+"&ei="+y+"&ip="+Tj+"&id=o-AF"+iW+"&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="+
pm+"&mn="+VM+"&ms="+VM+"&mv="+$V+"&mvi="+Js+"&pl="+hc+"&initcwndbps="+p6+"&siu="+Js+"&spc="+a+"&vprv="+Js+"&svpuc="+Js+"&mime=video%2Fmp4&ns="+gB+"&gir="+bH+"&clen="+Gj+"&dur="+Gj+"&lmt="+gJ+"&mt="+XL+"&fvip=3&keepalive="+bH+"&c=WEB&txp="+p6+"&n="+nL+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+V+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:DN,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:o6,end:YV},lastModified:gJ,contentLength:Gj,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:DN,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:p6},{itag:140,url:"https://"+mM+".googlevideo.com/videoplayback?expire="+XL+"&ei="+y+"&ip="+Tj+"&id=o-AF"+iW+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
pm+"&mn="+VM+"&ms="+VM+"&mv="+$V+"&mvi="+Js+"&pl="+hc+"&initcwndbps="+p6+"&siu="+Js+"&spc="+a+"&vprv="+Js+"&svpuc="+Js+"&mime=audio%2Fmp4&ns="+gB+"&gir="+bH+"&clen="+Gj+"&dur="+Gj+"&lmt="+gJ+"&mt="+XL+"&fvip=3&keepalive="+bH+"&c=WEB&txp="+p6+"&n="+nL+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:NN,
initRange:{start:"0",end:"631"},indexRange:{start:o6,end:YV},lastModified:gJ,contentLength:Gj,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:NN,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:p6,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+mM+".googlevideo.com/videoplayback?expire="+XL+"&ei="+y+"&ip="+Tj+"&id=o-AF"+iW+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+pm+"&mn="+VM+"&ms="+VM+"&mv="+$V+"&mvi="+Js+"&pl="+
hc+"&initcwndbps="+p6+"&siu="+Js+"&spc="+a+"&vprv="+Js+"&svpuc="+Js+"&mime=audio%2Fwebm&ns="+gB+"&gir="+bH+"&clen="+p6+"&dur="+Gj+"&lmt="+gJ+"&mt="+XL+"&fvip=3&keepalive="+bH+"&c=WEB&txp="+p6+"&n="+nL+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'audio/webm; codecs="opus"',bitrate:DN,initRange:{start:"0",end:"265"},indexRange:{start:o6,
end:YV},lastModified:gJ,contentLength:p6,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:DN,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:p6,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+mM+".googlevideo.com/videoplayback?expire="+XL+"&ei="+y+"&ip="+Tj+"&id=o-AF"+iW+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+pm+"&mn="+VM+"&ms="+VM+"&mv="+$V+"&mvi="+Js+"&pl="+hc+"&initcwndbps="+p6+"&siu="+Js+"&spc="+a+"&vprv="+Js+"&svpuc="+Js+"&mime=audio%2Fwebm&ns="+
gB+"&gir="+bH+"&clen="+p6+"&dur="+Gj+"&lmt="+gJ+"&mt="+XL+"&fvip=3&keepalive="+bH+"&c=WEB&txp="+p6+"&n="+nL+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'audio/webm; codecs="opus"',bitrate:DN,initRange:{start:"0",end:"265"},indexRange:{start:o6,end:YV},lastModified:gJ,contentLength:p6,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:DN,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:p6,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+mM+".googlevideo.com/videoplayback?expire="+XL+"&ei="+y+"&ip="+Tj+"&id=o-AF"+iW+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+pm+"&mn="+VM+"&ms="+VM+"&mv="+$V+"&mvi="+Js+"&pl="+hc+"&initcwndbps="+p6+"&siu="+Js+"&spc="+a+"&vprv="+Js+"&svpuc="+Js+"&mime=audio%2Fwebm&ns="+gB+"&gir="+bH+"&clen="+Gj+"&dur="+Gj+"&lmt="+gJ+"&mt="+XL+"&fvip=3&keepalive="+bH+"&c=WEB&txp="+
p6+"&n="+nL+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+V+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+t,mimeType:'audio/webm; codecs="opus"',bitrate:NN,initRange:{start:"0",end:"265"},indexRange:{start:o6,end:YV},lastModified:gJ,contentLength:Gj,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:NN,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:p6,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="+qQ+"&docid="+b+"&ei="+y+"&feature="+T+"&fexp="+U0+"&ns="+zO+"&plid="+F+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+$V+"&el="+QM+"&len="+YV+"&of="+uJ+
"&uga="+hc+"&vm="+wJ},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+qQ+"&docid="+b+"&ei="+y+"&feature="+T+"&fexp="+U0+"&ns="+zO+"&plid="+F+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+$V+"&el="+QM+"&len="+YV+"&of="+uJ+"&uga="+hc+"&vm="+wJ},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+qQ+"&docid="+b+"&ei="+y+"&feature="+T+"&fexp="+U0+"&ns="+zO+"&plid="+F+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
$V+"&el="+QM+"&len="+YV+"&of="+uJ+"&uga="+hc+"&vm="+wJ},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+y+"&m="+ir+"&oid="+uJ+"&plid="+F+"&pltype="+dB+"&ptchn="+uJ+"&ptk="+l+"&video_id="+b},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+qQ+"&docid="+b+"&ei="+y+"&event="+ko+"&feature="+T+"&fexp="+U0+"&ns="+zO+"&plid="+F+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+$V},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+b+"&ei="+y+"&feature="+
T+"&len="+YV+"&ns="+zO+"&plid="+F+"&ver="+Js,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+b+"&caps="+bH+"&opi="+qQ+"&xoaf="+Js+"&hl="+zO+"&ip="+Tj+"&ipbits="+Js+"&expire="+XL+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+Tj+"&key="+bH+"&lang="+xe,name:{simpleText:k3},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+b+"&caps="+bH+"&opi="+qQ+"&xoaf="+Js+"&hl="+zO+"&ip="+Tj+"&ipbits="+Js+"&expire="+XL+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+Tj+"&key="+bH+"&kind="+bH+"&lang="+zO,name:{simpleText:XP},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:XP,title:nL,lengthSeconds:"1155",keywords:[My,k3,XP,nL],
channelId:gB,isOwnerViewing:!1,shortDescription:QM,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+b+"/hqdefault.jpg?sqp=-oaymwE"+$T+"G&rs="+K_,width:168,height:94},{url:"https://i.ytimg.com/vi/"+b+"/hqdefault.jpg?sqp=-oaymwE"+$T+"G&rs="+K_,width:196,height:110},{url:"https://i.ytimg.com/vi/"+b+"/hqdefault.jpg?sqp=-oaymwE"+$T+"G&rs="+H,width:246,height:138},{url:"https://i.ytimg.com/vi/"+b+"/hqdefault.jpg?sqp=-oaymwE"+$T+"G&rs="+H,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
b+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:p6,author:MF,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:p6,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+uJ+"/featured_channel.jpg?v="+MQ,width:40,height:40}]},trackingParams:tc+"=",navigationEndpoint:{clickTrackingParams:mJ,commandMetadata:{webCommandMetadata:{url:"/channel/"+gB,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:gB}},channelName:MF,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:nL}]},subscribed:!1,enabled:!0,type:"FREE",channelId:gB,showPreferences:!1,subscribedButtonText:{runs:[{text:dB}]},unsubscribedButtonText:{runs:[{text:dB}]},trackingParams:tc+"=",unsubscribeButtonText:{runs:[{text:aF}]},serviceEndpoints:[{clickTrackingParams:mJ,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[gB],params:MQ}},{clickTrackingParams:mJ,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:mJ,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:tc+"=",dialogMessages:[{runs:[{text:aF},{text:My},{text:k3}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:k3}]},serviceEndpoint:{clickTrackingParams:mJ,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[gB],params:MQ}},accessibility:{label:MQ},trackingParams:tc+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:My}]},accessibility:{label:aF},trackingParams:tc+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:My}},unsubscribeAccessibility:{accessibilityData:{label:gR}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:Gj},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:mJ,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:mJ,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[gB],params:MQ}},unsubscribeCommand:{clickTrackingParams:mJ,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[gB],params:MQ}},addToWatchLaterCommand:{clickTrackingParams:mJ,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:XP,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:mJ,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:XP}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+b+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+$T+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
b+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+XP,width:1280,height:720},title:{simpleText:MQ},description:{simpleText:Hb},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+MQ,externalChannelId:gB,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:p6,category:"Travel & Events",publishDate:cn,ownerChannelName:MF,uploadDate:cn}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:Re},trackingParams:tc+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:mJ,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:tc+"="}}],headerText:{simpleText:CB},icon:{infoCardIconRenderer:{trackingParams:tc+"="}},closeButton:{infoCardIconRenderer:{trackingParams:tc+"="}},trackingParams:tc+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:tc+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+XP+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:TM,interpreterSafeUrl:(Eb.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+CJ+".js",Eb),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:dB},{text:nL,bold:!0}]},endpoint:{clickTrackingParams:mJ,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:tc+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:XP}]},actionButton:{buttonRenderer:{text:{runs:[{text:S3}]},navigationEndpoint:{clickTrackingParams:mJ,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+b,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
b,target:"TARGET_NEW_WINDOW"}},trackingParams:tc+"="}},trackingParams:tc+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+ur+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+ur+"=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:p6,endMs:p6,title:{accessibility:{accessibilityData:{label:MQ}},simpleText:ko},metadata:{simpleText:gR},callToAction:{simpleText:Re},dismiss:{simpleText:nL},endpoint:{clickTrackingParams:mJ,commandMetadata:{webCommandMetadata:{url:"/channel/"+gB,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:gB}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:MF}]},subscribed:!1,enabled:!0,type:"FREE",channelId:gB,showPreferences:!1,
subscribedButtonText:{runs:[{text:f9}]},unsubscribedButtonText:{runs:[{text:Hb}]},trackingParams:tc+"=",unsubscribeButtonText:{runs:[{text:aF}]},serviceEndpoints:[{clickTrackingParams:mJ,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[gB],params:MQ}},{clickTrackingParams:mJ,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:mJ,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:tc+
"=",dialogMessages:[{runs:[{text:XP},{text:S3},{text:MF}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:nL}]},serviceEndpoint:{clickTrackingParams:mJ,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[gB],params:MQ}},accessibility:{label:nL},trackingParams:tc+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:My}]},
accessibility:{label:Re},trackingParams:tc+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:nL}},unsubscribeAccessibility:{accessibilityData:{label:ko}}}},trackingParams:tc+"=",isSubscribe:!0,id:Wn}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+b+"/hqdefault.jpg?sqp=-oaymwE"+$T+"G&rs="+H,width:168,height:94},{url:"https://i.ytimg.com/vi/"+b+"/hqdefault.jpg?sqp=-oaymwE"+$T+"G&rs="+K_,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+b+"/hqdefault.jpg?sqp=-oaymwE"+$T+"G&rs="+H,width:246,height:138},{url:"https://i.ytimg.com/vi/"+b+"/hqdefault.jpg?sqp=-oaymwE"+$T+"G&rs="+H,width:336,height:188},{url:"https://i.ytimg.com/vi/"+b+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:p6,endMs:p6,title:{accessibility:{accessibilityData:{label:ko}},simpleText:k3},metadata:{simpleText:gR},endpoint:{clickTrackingParams:mJ,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
XP,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:XP,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+mM+".googlevideo.com/videoplayback?source=youtube&oeis="+Js+"&c=WEB&oad="+YV+"&ovd="+YV+"&oaad="+LJ+"&oavd="+LJ+"&ocs="+o6+"&oewis="+Js+"&oputc="+Js+"&ofpcc="+Js+"&siu="+Js+"&msp="+Js+"&odepv="+Js+
"&id=o-AF"+iW+"&ip="+Tj+"&initcwndbps="+p6+"&mt="+XL+"&oweuc="+U0}}}}},trackingParams:tc+"=",id:Wn,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:Re}},simpleText:CB},style:"DEFAULT"}}]}}],startMs:p6,trackingParams:tc+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:Js,offsetEndMilliseconds:LJ},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+qQ+";dc_trk_cid="+qQ+";dc_dbm_token="+t+";ord="+XL+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Js+";dc_rui="+Js+";dc_exteid="+Wn+";dc_av="+o6+";dc_sk="+Js+";dc_ctype="+hc+";dc_ref=http://www.youtube.com/video/"+XP+";dc_pubid="+Js+";dc_btype=23?gclid="+SD+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
S+"____________"+w+"AxAA&sigh="+XP+"&cid="+M+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+Js+"&ns="+Js+"&event="+Js+"&device="+Js+"&content_v="+b+"&el="+QM+"&ei="+y+"&devicever="+O+"&bti="+p6+"&format="+eZ+"&break_type="+Js+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+Js+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+Tj+"&slot_pos="+Js+"&slot_len="+Js+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+pm+"&ad_len="+LJ+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
XP+"&aqi="+y+"&ad_rmp="+Js+"&sli="+Js}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+w+"AxAA&sigh="+b+"&cid="+M+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+w+"AxAA&sigh="+b+"&cid="+M+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Js+";dc_exteid="+Wn+";met="+Js+";ecn"+Js+"="+Js+
";etm1="+Js+";eid1="+hc+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+w+"AxAA&sigh="+b+"&cid="+M+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Js+";dc_exteid="+Wn+";met="+Js+";ecn"+Js+"="+Js+";etm1="+Js+";eid1="+eZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
S+"____________"+w+"AxAA&sigh="+b+"&cid="+M+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Js+";dc_exteid="+Wn+";met="+Js+";ecn"+Js+"="+Js+";etm1="+Js+";eid1="+hc+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+w+"AxAA&sigh="+b+"&cid="+M+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+w+"AxAA&sigh="+b+"&cid="+M+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Js+";dc_exteid="+Wn+";met="+Js+";ecn"+Js+"="+Js+";etm1="+Js+";eid1="+hc+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+w+"AxAA&sigh="+b+"&cid="+M+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Js+";dc_exteid="+Wn+";met="+Js+";ecn"+Js+"="+Js+";etm1="+Js+";eid1="+p6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+w+"AxAA&sigh="+b+"&cid="+M+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
S+"____________"+w+"AxAA&sigh="+b+"&cid="+M+"&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"+S+"____________"+w+"AxAA&ase=2&num="+Js+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+hE+"&ctype="+o6+"&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"+
S+"____________"+w+"AxAA&ase=2&num="+Js+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+hE+"&label=video_engaged_view&ctype="+o6+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Js+";dc_exteid="+Wn+";met="+Js+";ecn"+Js+"="+Js+";etm1="+Js+";eid1="+eZ+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
qQ+";dc_trk_cid="+qQ+";dc_dbm_token="+t+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Js+";ord="+qQ+";dc_rui="+Js+";dc_exteid="+hk+";dc_av="+Js+";dc_sk="+Js+";dc_ctype="+hc+";dc_pubid="+Js+";dc_btype=3?gclid="+SD+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+w+"AxAA&sigh="+b+"&cid="+M+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Js+";dc_exteid="+Wn+";met="+Js+";ecn"+Js+"="+Js+";etm1="+Js+";eid1="+hc+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+E+"&sig="+cf+"&ad_cpn=[AD_CPN]&id="+My+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+My+"&dc_pubid="+Js+"&dc_exteid="+Wn+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+w+"AxAA&sigh="+b+"&cid="+M+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+E+"&sig="+cf+"&ad_cpn=[AD_CPN]&id="+My+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+Js},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+My+"&avm="+Js+"&dc_pubid="+Js+"&dc_exteid="+
Wn+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+w+"AxAA&sigh="+b+"&cid="+M+"&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="+Js+";dc_exteid="+Wn+";met="+Js+";ecn"+Js+"="+Js+";etm1="+Js+";eid1="+hc+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
E+"&sig="+cf+"&ad_cpn=[AD_CPN]&id="+My+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+Js},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+My+"&dc_pubid="+Js+"&dc_exteid="+Wn+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Js+";dc_exteid="+Wn+";met="+Js+";ecn"+Js+"="+Js+";etm1="+Js+";eid1="+hc+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Js+";dc_exteid="+Wn+";met="+Js+";ecn"+Js+"="+Js+";etm1="+Js+";eid1="+eZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Js+";dc_exteid="+Wn+";met="+Js+";ecn"+Js+"="+Js+";etm1="+Js+";eid1="+hc+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Js+";dc_exteid="+Wn+";met="+Js+";ecn"+Js+"="+Js+";etm1="+Js+";eid1="+eZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+w+"AxAA&sigh="+b+"&cid="+M+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Js+";dc_exteid="+Wn+";met="+Js+";ecn"+Js+"="+Js+";etm1="+Js+";eid1="+hc+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:mJ,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+w+"AxAA&ase=2&num="+Js+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+hE+"&label=video_click_to_advertiser_site&ctype="+o6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+w+"AxAA&ase=2&num="+Js+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+hE+"&label=video_click_to_advertiser_site&ctype="+
o6+"&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/"+b+"/mqdefault.jpg",width:320,height:180}]},trackingParams:tc+"="},trackingParams:tc+
"=",templatedCountdown:{templatedAdText:{text:QM,isTemplated:!0,trackingParams:tc+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:k3,isTemplated:!1,trackingParams:tc+"="},trackingParams:tc+"="}},trackingParams:tc+"=",skipOffsetMilliseconds:5E3}},trackingParams:tc+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:Re},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:mJ,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
S+"____________"+w+"AxAA&ase=2&num="+Js+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+hE+"&label=video_click_to_advertiser_site&ctype="+o6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+w+"AxAA&ase=2&num="+Js+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+hE+"&label=video_click_to_advertiser_site&ctype="+o6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:tc+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:QM,isTemplated:!1,trackingParams:tc+"="},trackingParams:tc+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:dB,isTemplated:!0,trackingParams:tc+"="}},trackingParams:tc+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:mJ,openPopupAction:{popup:{aboutThisAdRenderer:{url:(kz.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+R+"&hl="+zO+"&origin=www.youtube.com&ata_theme="+CB,kz),trackingParams:tc+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:tc+"="}},hoverText:{runs:[{text:nL}]},trackingParams:tc+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+U$+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:tc+"="},headline:{text:f9,isTemplated:!1,trackingParams:tc+"="},description:{text:dB,
trackingParams:tc+"="},actionButton:{buttonRenderer:{text:{simpleText:Hb},navigationEndpoint:{clickTrackingParams:mJ,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+qQ+";dc_trk_cid="+qQ+";dc_dbm_token="+t+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Js+";ord="+qQ+";dc_rui="+Js+";dc_exteid="+Wn+";dc_av="+Js+";dc_sk="+Js+";dc_ctype="+hc+";dc_pubid="+Js+";dc_btype=3?gclid="+SD+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
S+"____________"+w+"AxAA&ase=2&num="+Js+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+hE+"&label=video_click_to_advertiser_site&ctype="+o6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+w+"AxAA&ase=2&num="+Js+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+hE+"&label=video_click_to_advertiser_site&ctype="+o6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:tc+"="}},startMs:Js,trackingParams:tc+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:ko},elementId:ru}},elementId:MQ,trackingParams:tc+"=",legacyInfoCardVastExtension:aF,sodarExtensionData:{siub:ru,bgub:f9,scs:Re,bgp:CB},externalVideoId:XP,adLayoutLoggingData:{serializedAdServingDataEntry:aF},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+U$+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:tc+"="},
headline:{text:My,isTemplated:!1,trackingParams:tc+"="},description:{text:dB,isTemplated:!1,trackingParams:tc+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:MF},navigationEndpoint:{clickTrackingParams:mJ,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+qQ+";dc_trk_cid="+qQ+";dc_dbm_token="+t+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Js+";ord="+qQ+";dc_rui="+Js+";dc_exteid="+
Wn+";dc_av="+Js+";dc_sk="+Js+";dc_ctype="+hc+";dc_pubid="+Js+";dc_btype=3?gclid="+SD+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+w+"AxAA&ase=2&num="+Js+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+hE+"&label=video_click_to_advertiser_site&ctype="+o6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+w+"AxAA&ase=2&num="+
Js+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+hE+"&label=video_click_to_advertiser_site&ctype="+o6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:tc+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:tc+"="}},navigationEndpoint:{clickTrackingParams:mJ,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+qQ+";dc_trk_cid="+
qQ+";dc_dbm_token="+t+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Js+";ord="+qQ+";dc_rui="+Js+";dc_exteid="+Wn+";dc_av="+Js+";dc_sk="+Js+";dc_ctype="+hc+";dc_pubid="+Js+";dc_btype=3?gclid="+SD+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+w+"AxAA&sigh="+b+"&cid="+M+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+
w+"AxAA&ase=2&num="+Js+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+hE+"&label=video_click_to_advertiser_site&ctype="+o6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+w+"AxAA&ase=2&num="+Js+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+hE+"&label=video_click_to_advertiser_site&ctype="+o6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:tc+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:tc+"="},abandonCommands:{commands:[{clickTrackingParams:mJ,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+w+"AxAA&sigh="+b+"&cid="+M+"&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="+Js+";dc_exteid="+Wn+";met="+Js+";ecn"+
Js+"="+Js+";etm1="+Js+";eid1="+hc+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:mJ,commandExecutorCommand:{commands:[{clickTrackingParams:mJ,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+w+"AxAA&sigh="+b+"&cid="+M+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:dB,isTemplated:!1,trackingParams:tc+
"="},trackingParams:tc+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:S3},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+w+"AxAA&sigh="+b+"&cid="+M+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Js+";dc_exteid="+Wn+";met="+Js+";ecn"+Js+"="+Js+";etm1="+Js+";eid1="+p6+";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="+qQ+";dc_trk_cid="+qQ+";ord="+XL+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Js+";dc_rui="+Js+";dc_exteid="+Wn+";dc_av="+o6+";dc_sk="+Js+";dc_ctype="+hc+";dc_ref=http://www.youtube.com/video/"+XP+";dc_pubid="+Js+";dc_btype=23?gclid="+SD+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+S+"____________"+w+"AxAA&sigh="+XP+"&cid="+M+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+Js+"&ns="+Js+"&event="+Js+"&device="+Js+"&content_v="+b+"&el="+QM+"&ei="+y+"&devicever="+O+"&bti="+p6+"&format="+eZ+"&break_type="+Js+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+Js+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+Tj+"&slot_pos="+Js+"&slot_len="+Js+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
pm+"&ad_len="+LJ+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+XP+"&aqi="+y+"&ad_rmp="+Js+"&sli="+Js}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+w+"AxAA&sigh="+XP+"&cid="+M+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+w+"AxAA&sigh="+XP+"&cid="+M+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Js+";dc_exteid="+Wn+";met="+Js+";ecn"+Js+"="+Js+";etm1="+Js+";eid1="+hc+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+w+"AxAA&sigh="+XP+"&cid="+M+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Js+";dc_exteid="+Wn+";met="+Js+";ecn"+Js+"="+Js+";etm1="+Js+";eid1="+eZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+w+"AxAA&sigh="+XP+"&cid="+M+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Js+";dc_exteid="+Wn+";met="+Js+";ecn"+Js+"="+Js+";etm1="+Js+";eid1="+hc+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+w+"AxAA&sigh="+XP+"&cid="+
M+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+w+"AxAA&sigh="+XP+"&cid="+M+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Js+";dc_exteid="+Wn+";met="+Js+";ecn"+Js+"="+Js+";etm1="+Js+";eid1="+hc+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
S+"____________"+w+"AxAA&sigh="+XP+"&cid="+M+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Js+";dc_exteid="+Wn+";met="+Js+";ecn"+Js+"="+Js+";etm1="+Js+";eid1="+p6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+w+"AxAA&sigh="+XP+"&cid="+M+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+w+"AxAA&sigh="+XP+"&cid="+M+"&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"+S+"____________"+w+"AxAA&ase=2&num="+Js+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+hE+"&ctype="+o6+"&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"+S+"____________"+w+"AxAA&ase=2&num="+Js+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+hE+"&label=video_engaged_view&ctype="+o6+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Js+";dc_exteid="+Wn+";met="+Js+";ecn"+Js+"="+Js+";etm1="+Js+";eid1="+eZ+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+w+"AxAA&sigh="+XP+"&cid="+M+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Js+";dc_exteid="+Wn+";met="+Js+";ecn"+Js+"="+Js+";etm1="+Js+";eid1="+hc+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+E+"&sig="+cf+"&ad_cpn=[AD_CPN]&id="+
My+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+My+"&dc_pubid="+Js+"&dc_exteid="+Wn+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+w+"AxAA&sigh="+XP+"&cid="+M+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+E+
"&sig="+cf+"&ad_cpn=[AD_CPN]&id="+My+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+Js},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+My+"&avm="+Js+"&dc_pubid="+Js+"&dc_exteid="+Wn+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+w+"AxAA&sigh="+XP+"&cid="+M+"&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="+Js+";dc_exteid="+Wn+";met="+Js+";ecn"+Js+"="+Js+";etm1="+Js+";eid1="+hc+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+E+"&sig="+cf+"&ad_cpn=[AD_CPN]&id="+My+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+Js},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+My+"&dc_pubid="+Js+"&dc_exteid="+Wn+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Js+";dc_exteid="+Wn+";met="+Js+";ecn"+Js+"="+Js+";etm1="+Js+";eid1="+hc+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Js+";dc_exteid="+Wn+";met="+Js+";ecn"+Js+"="+Js+";etm1="+Js+";eid1="+eZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
Js+";dc_exteid="+Wn+";met="+Js+";ecn"+Js+"="+Js+";etm1="+Js+";eid1="+hc+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Js+";dc_exteid="+Wn+";met="+Js+";ecn"+Js+"="+Js+";etm1="+Js+";eid1="+eZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+w+"AxAA&sigh="+XP+"&cid="+M+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Js+";dc_exteid="+Wn+";met="+Js+";ecn"+Js+"="+Js+";etm1="+Js+";eid1="+hc+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:mJ,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+w+"AxAA&ase=2&num="+Js+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+hE+"&label=video_click_to_advertiser_site&ctype="+
o6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+w+"AxAA&ase=2&num="+Js+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+hE+"&label=video_click_to_advertiser_site&ctype="+o6+"&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/"+b+"/mqdefault.jpg",width:320,height:180}]},trackingParams:tc+"="},trackingParams:tc+"=",templatedCountdown:{templatedAdText:{text:MQ,isTemplated:!0,trackingParams:tc+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:MQ,isTemplated:!1,trackingParams:tc+"="},trackingParams:tc+"="}},
trackingParams:tc+"=",skipOffsetMilliseconds:5E3}},trackingParams:tc+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:XP},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:mJ,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+w+"AxAA&ase=2&num="+Js+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+hE+"&label=video_click_to_advertiser_site&ctype="+o6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+w+"AxAA&ase=2&num="+Js+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+hE+"&label=video_click_to_advertiser_site&ctype="+o6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:tc+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:nL,isTemplated:!1,trackingParams:tc+"="},trackingParams:tc+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:QM,
isTemplated:!0,trackingParams:tc+"="}},trackingParams:tc+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:mJ,openPopupAction:{popup:{aboutThisAdRenderer:{url:(TG.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+R+"&hl="+zO+"&origin=www.youtube.com&ata_theme="+CB,TG),trackingParams:tc+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:tc+"="}},hoverText:{runs:[{text:f9}]},trackingParams:tc+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+eD+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:tc+"="},headline:{text:Re,isTemplated:!1,trackingParams:tc+"="},description:{text:nL,trackingParams:tc+"="},actionButton:{buttonRenderer:{text:{simpleText:gR},navigationEndpoint:{clickTrackingParams:mJ,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
S+"____________"+w+"AxAA&ase=2&num="+Js+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+hE+"&label=video_click_to_advertiser_site&ctype="+o6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+w+"AxAA&ase=2&num="+Js+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+hE+"&label=video_click_to_advertiser_site&ctype="+o6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:tc+"="}},startMs:Js,trackingParams:tc+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:nL},elementId:MF}},elementId:MQ,trackingParams:tc+"=",legacyInfoCardVastExtension:Re,sodarExtensionData:{siub:k3,bgub:MF,scs:Hb,bgp:MF},externalVideoId:XP,adLayoutLoggingData:{serializedAdServingDataEntry:nL},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+eD+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:tc+"="},headline:{text:CB,
isTemplated:!1,trackingParams:tc+"="},description:{text:k3,isTemplated:!1,trackingParams:tc+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:XP},navigationEndpoint:{clickTrackingParams:mJ,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+w+"AxAA&ase=2&num="+Js+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+hE+"&label=video_click_to_advertiser_site&ctype="+o6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+w+"AxAA&ase=2&num="+Js+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+hE+"&label=video_click_to_advertiser_site&ctype="+o6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:tc+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:tc+"="}},navigationEndpoint:{clickTrackingParams:mJ,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
S+"____________"+w+"AxAA&sigh="+XP+"&cid="+M+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+w+"AxAA&ase=2&num="+Js+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+hE+"&label=video_click_to_advertiser_site&ctype="+o6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+w+"AxAA&ase=2&num="+
Js+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+hE+"&label=video_click_to_advertiser_site&ctype="+o6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:tc+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:tc+"="},abandonCommands:{commands:[{clickTrackingParams:mJ,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+w+"AxAA&sigh="+XP+"&cid="+M+"&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="+Js+";dc_exteid="+Wn+";met="+Js+";ecn"+Js+"="+Js+";etm1="+Js+";eid1="+hc+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:mJ,commandExecutorCommand:{commands:[{clickTrackingParams:mJ,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+w+"AxAA&sigh="+XP+"&cid="+M+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:k3,isTemplated:!1,trackingParams:tc+"="},trackingParams:tc+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:MQ},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+w+"AxAA&sigh="+XP+"&cid="+M+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+Js+";dc_exteid="+Wn+";met="+Js+";ecn"+Js+"="+Js+";etm1="+Js+";eid1="+
p6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:My}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:QM}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:LJ,offsetEndMilliseconds:eZ},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+y+"&m_pos="+hc+"&token=ALHj"+z+"&index="+Js+"&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="+O+"&m_pos_ms="+LJ}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Re}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:eZ,offsetEndMilliseconds:eZ},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+y+"&m_pos="+o6+"&token=ALHj"+z+"&index="+Js+"&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="+
O+"&m_pos_ms="+eZ}},adSlotLoggingData:{serializedSlotAdServingDataEntry:ru}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:eZ,offsetEndMilliseconds:eZ},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+y+"&m_pos="+o6+"&token=ALHj"+z+"&index="+Js+"&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="+
O+"&m_pos_ms="+eZ}},adSlotLoggingData:{serializedSlotAdServingDataEntry:aF}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:eZ,offsetEndMilliseconds:eZ},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+y+"&m_pos="+o6+"&token=ALHj"+z+"&index="+Js+"&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="+
O+"&m_pos_ms="+eZ}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Re}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:eZ,offsetEndMilliseconds:hc},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+y+"&m_pos="+o6+"&token=ALHj"+z+"&index="+Js+"&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="+
O+"&m_pos_ms="+eZ}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Re}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:hc,offsetEndMilliseconds:hc},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+y+"&m_pos="+hc+"&token=ALHj"+z+"&index="+Js+"&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="+
O+"&m_pos_ms="+hc}},adSlotLoggingData:{serializedSlotAdServingDataEntry:ru}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:XP,isTemplated:!1,trackingParams:tc+"="},description:{text:f9,isTemplated:!1,trackingParams:tc+"="},actionButton:{buttonRenderer:{text:{simpleText:CB},navigationEndpoint:{clickTrackingParams:mJ,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
qQ+";dc_trk_cid="+qQ+";dc_dbm_token="+t+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Js+";ord="+qQ+";dc_rui="+Js+";dc_exteid="+Wn+";dc_av="+Js+";dc_sk="+Js+";dc_ctype="+hc+";dc_pubid="+Js+";dc_btype=3?gclid="+SD+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+w+"AxAA&ase=2&num="+Js+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+hE+"&label=video_click_to_advertiser_site&ctype="+o6+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+w+"AxAA&ase=2&num="+Js+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+hE+"&label=video_click_to_advertiser_site&ctype="+o6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:tc+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+U$+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:tc+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+gu+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:tc+"="},navigationEndpoint:{clickTrackingParams:mJ,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+qQ+";dc_trk_cid="+qQ+";dc_dbm_token="+t+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Js+";ord="+qQ+
";dc_rui="+Js+";dc_exteid="+Wn+";dc_av="+Js+";dc_sk="+Js+";dc_ctype="+hc+";dc_pubid="+Js+";dc_btype=3?gclid="+SD+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+w+"AxAA&ase=2&num="+Js+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+hE+"&label=video_click_to_advertiser_site&ctype="+o6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
S+"____________"+w+"AxAA&ase=2&num="+Js+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+hE+"&label=video_click_to_advertiser_site&ctype="+o6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:tc+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:mJ,openPopupAction:{popup:{aboutThisAdRenderer:{url:(vWe.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+R+"&hl="+zO+"&origin=www.youtube.com&ata_theme="+CB,vWe),trackingParams:tc+"="}},popupType:"DIALOG"}},trackingParams:tc+"="}},hoverText:{runs:[{text:MQ}]},trackingParams:tc+"="}},adVideoId:XP,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+w+"AxAA&sigh="+b+"&cid="+M+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:QM},associatedCompositePlayerBytesLayoutId:nL}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:CB}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:f9,isTemplated:!1,trackingParams:tc+"="},description:{text:f9,isTemplated:!1,trackingParams:tc+"="},actionButton:{buttonRenderer:{text:{simpleText:ru},navigationEndpoint:{clickTrackingParams:mJ,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+
w+"AxAA&ase=2&num="+Js+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+hE+"&label=video_click_to_advertiser_site&ctype="+o6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+w+"AxAA&ase=2&num="+Js+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+hE+"&label=video_click_to_advertiser_site&ctype="+o6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:tc+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+eD+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:tc+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+BX+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:tc+"="},navigationEndpoint:{clickTrackingParams:mJ,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+w+"AxAA&ase=2&num="+
Js+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+hE+"&label=video_click_to_advertiser_site&ctype="+o6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+w+"AxAA&ase=2&num="+Js+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+hE+"&label=video_click_to_advertiser_site&ctype="+o6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:tc+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:mJ,openPopupAction:{popup:{aboutThisAdRenderer:{url:(VK.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+R+"&hl="+zO+"&origin=www.youtube.com&ata_theme="+CB,VK),trackingParams:tc+"="}},popupType:"DIALOG"}},trackingParams:tc+"="}},
hoverText:{runs:[{text:dB}]},trackingParams:tc+"="}},adVideoId:XP,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+w+"AxAA&sigh="+XP+"&cid="+M+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:S3},associatedCompositePlayerBytesLayoutId:nL}},adSlotLoggingData:{serializedSlotAdServingDataEntry:XP}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:My,
isTemplated:!1,trackingParams:tc+"="},description:{text:k3,isTemplated:!1,trackingParams:tc+"="},actionButton:{buttonRenderer:{text:{simpleText:ko},navigationEndpoint:{clickTrackingParams:mJ,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+qQ+";dc_trk_cid="+qQ+";dc_dbm_token="+t+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Js+";ord="+qQ+";dc_rui="+Js+";dc_exteid="+Wn+";dc_av="+Js+";dc_sk="+Js+";dc_ctype="+
hc+";dc_pubid="+Js+";dc_btype=3?gclid="+SD+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+w+"AxAA&ase=2&num="+Js+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+hE+"&label=video_click_to_advertiser_site&ctype="+o6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+w+"AxAA&ase=2&num="+Js+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+
H+"&adurl="+hE+"&label=video_click_to_advertiser_site&ctype="+o6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:tc+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+U$+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:tc+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+gu+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:tc+
"="},navigationEndpoint:{clickTrackingParams:mJ,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+qQ+";dc_trk_cid="+qQ+";dc_dbm_token="+t+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+Js+";ord="+qQ+";dc_rui="+Js+";dc_exteid="+Wn+";dc_av="+Js+";dc_sk="+Js+";dc_ctype="+hc+";dc_pubid="+Js+";dc_btype=3?gclid="+SD+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
S+"____________"+w+"AxAA&ase=2&num="+Js+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+hE+"&label=video_click_to_advertiser_site&ctype="+o6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+S+"____________"+w+"AxAA&ase=2&num="+Js+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+H+"&adurl="+hE+"&label=video_click_to_advertiser_site&ctype="+o6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:tc+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:mJ,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Eh.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+R+"&hl="+zO+"&origin=www.youtube.com&ata_theme="+CB,Eh),trackingParams:tc+"="}},popupType:"DIALOG"}},trackingParams:tc+
"="}},hoverText:{runs:[{text:MF}]},trackingParams:tc+"="}},adVideoId:XP,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+S+"____________"+w+"AxAA&sigh="+b+"&cid="+M+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:XP},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:nL}},adSlotLoggingData:{serializedSlotAdServingDataEntry:dB}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:CJ,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:CJ,command:{innertubeCommand:{clickTrackingParams:mJ,ypcGetOfflineUpsellEndpoint:{params:VS}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:tc+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:XL,nanos:MN}}}},IVu=JSON.stringify(nV),tH=performance.now()-A;return{objectRepresentation:nV,jsonRepresentation:IVu,generationTime:tH}};
YL_=function(A,L){if(A===L)return!0;if(!A||!L||typeof A!==typeof L)return!1;if(A instanceof Array&&L instanceof Array){if(A.length!==L.length)return!1;for(var O=0;O<A.length;O++)if(!YL_(A[O],L[O]))return!1;return!0}if(typeof A==="object"&&typeof L==="object"&&A&&L){for(O in A)if(!(O in L&&YL_(A[O],L[O])))return!1;for(var X in L)if(!(X in A))return!1;return!0}return!1};
_.un=function(){if(!Yc){Yc=new Dg(new uyy);var A=_.PO("client_streamz_web_flush_count",-1);A!==-1&&(Yc.invocationLimit=A)}return Yc};
Tm=function(A,L,O,X){if(A===L)return!0;if(Array.isArray(A)&&Array.isArray(L)){if(A.length!==L.length)return!1;for(var x=0;x<A.length;x++)if(!Tm(A[x],L[x],O,X))return!1;return!0}if(A instanceof Set||L instanceof Set){if(A instanceof Set&&L instanceof Set){if(A.size!==L.size)return!1;X=_.d(A.values());for(x=X.next();!x.done;x=X.next())if(!L.has(x.value))return!1;return!0}return!1}if(A instanceof Function){if(X)return!0;A.name===""&&_.C7(Error("Hf"),"ERROR");return!1}if(A instanceof Date&&L instanceof
Date)return A.getTime()===L.getTime();if(A instanceof Object&&L instanceof Object){if(TDe(A)&&TDe(L))try{return A.equals(L)}catch(Y){_.C7(Error("If`"+Y),"ERROR")}x=Object.getOwnPropertyNames(A).filter(function(Y){return O?A[Y]!==void 0:!0});
var J=Object.getOwnPropertyNames(L).filter(function(Y){return O?L[Y]!==void 0:!0});
if(x.length!==J.length)return!1;x=_.d(x);for(J=x.next();!J.done;J=x.next())if(J=J.value,!Tm(A[J],L[J],O,X))return!1;return!0}return!1};
TDe=function(A){A=Object.getPrototypeOf(A).equals;return A instanceof Function&&A.length===1};
_.eGr=function(){return _.u(function(A){if(A.nextAddress==1)return Vbp!==2?A.jumpTo(2):A.yield(DUs(),3);A.nextAddress!=2&&(Vbp=A.yieldResult);return A.return(Vbp)})};
_.tbJ=function(){return _.u(function(A){if(A.nextAddress==1)return _.h("ab_pl_man")?Ers!==2?A.jumpTo(2):A.yield(nrd(),3):A.return(1);A.nextAddress!=2&&(Ers=A.yieldResult);return A.return(Ers)})};
SL_=function(){return _.u(function(A){if(A.nextAddress==1)return _.h("ab_fk_sk_cl")?blJ!==2?A.jumpTo(2):A.yield(hGu(),3):A.return(1);A.nextAddress!=2&&(blJ=A.yieldResult);return A.return(blJ)})};
_.wLD=function(){return _.u(function(A){if(A.nextAddress==1)return _.h("ab_det_apb_b")?qLu!==2?A.jumpTo(2):A.yield(grd(),3):A.return(1);A.nextAddress!=2&&(qLu=A.yieldResult);return A.return(qLu)})};
NDM=function(){var A;return _.u(function(L){if(L.nextAddress==1)return L.yield(Promise.all([_.eGr(),_.wLD(),_.tbJ(),SL_()]),2);if(L.nextAddress!=3)return pL_()?L.return(!0):L.yield(_.ils(),3);A=L.yieldResult;return L.return(A===0)})};
pL_=function(){var A=!1,L=function(O,X){r3J.increment(X,O);O===0&&(A=!0)};
L(_.KQe(),"j.s_");L(Vbp,"f.i_");L(qLu,"a.b_");L(Ers,"p.m_");L(blJ,"i.f_");Gcd===2&&(Gcd=_.l1e(c3p));L(Gcd,"e.h_");_.h("ks_det_gpbl")||L(_.Cje(),"p.i_");_.h("ks_get_o_pp")||L(_.FQO(),"g.o_");_.h("ab_deg_unex_thr")||L(_.RGD(),"a.o_");L(Qfe,"s.t_");_.h("ab_det_sc_inj_enf")&&L(_.mUu(),"s.i_");L(f1M,"d.p_");L(_.I1s(_.VH),"o.p_");L(_.y3u()===0?0:_.Zls(),"o.a_");return _.h("debug_sk_em_precheck")?!0:A};
WQe=function(){var A=[].concat(_.le(jfu));try{var L=dM();A.push({jsonRepresentation:L.jsonRepresentation,objectRepresentation:L.objectRepresentation})}catch(O){A=[].concat(_.le(jfu))}return A};
Hld=function(){var A=["adPlacements","adSlots"];try{return A.filter(function(){return!0}).length!==A.length?0:1}catch(L){return 0}};
_.FQO=function(){if(Hld()===0)return 0;var A=dM(),L=A.objectRepresentation,O=(0,_.lW.unsafeClone)(L),X=[];if(L&&typeof L==="object")for(var x in L)X.push(x);else return 4;A=A.objectRepresentation.adPlacements;if(!(A&&A.length>0))return 4;try{if(!YL_(X,Object.getOwnPropertyNames(L)))return 0}catch(J){return 0}return YL_(O,L)?1:0};
_.I1s=function(A){if(!A||!A.length||typeof A==="string")return 0;for(var L=Object.getOwnPropertyNames(Object.prototype),O=0;O<A.length;O++)for(var X=_.xc(A[O]),x=_.d(L),J=x.next();!J.done;J=x.next())if(X===J.value)return 0;return 1};
zGJ=function(A){var L=_.xc(A[1]);if(A[0]===null)return L;A=A[0];for(var O={},X=0;X<A.length;X++){var x=_.xc(A[X]);if(X===0)O[x]=L;else{var J={};J[x]=O;O=J}}return O};
_.y3u=function(){for(var A=_.D9,L=0;L<A.length;L++){var O=zGJ(A[L]),X=[];X.push(O);if(X.length===0)return 0}return 1};
_.Zls=function(){for(var A=_.D9,L={},O=0;O<A.length;L={pTm:void 0},O++){var X=[zGJ(A[O])];L.pTm=[];X.forEach(function(x){return function(J){x.pTm[x.pTm.length]=J}}(L));
if(L.pTm.length===0)return 0}return 1};
_.KQe=function(){for(var A=_.d(WQe()),L=A.next();!L.done;L=A.next()){var O=L.value;L=O.jsonRepresentation;O=O.objectRepresentation;try{var X=JSON.parse(L);if(!Tm(X,O,!1,!1))return 0}catch(x){return 0}}return 1};
_.mUu=function(){try{var A=_.Y$("ab_det_sc_inj_val");A.length===1&&A[0]===""&&(A=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var L=document.querySelectorAll("script"),O=_.d(L),X=O.next();!X.done;X=O.next())for(var x=X.value,J=_.d(A),Y=J.next();!Y.done;Y=J.next()){var T=Y.value;L=void 0;if((L=x.textContent)==null?0:L.includes(T))return 0}}catch(V){return 4}return 1};
_.ils=function(){var A,L,O,X,x,J,Y;return _.u(function(T){switch(T.nextAddress){case 1:_.e4(T,2),A=_.d(jfu),L=A.next();case 4:if(L.done)return T.return(1);X=O=L.value;x=X.jsonRepresentation;J=X.objectRepresentation;return T.yield((new Response(x,{status:200})).json(),7);case 7:Y=T.yieldResult;if(!Tm(Y,J,!1,!1))return T.return(0);L=A.next();T.jumpTo(4);break;case 2:return _.S4(T),T.return(4)}})};
_.RGD=function(){try{btoa("abc")}catch(A){return 0}return 1};
DUs=function(){var A,L,O,X,x,J,Y,T,V,E,n;return _.u(function(t){switch(t.nextAddress){case 1:_.e4(t,2),A=_.d(WQe()),L=A.next();case 4:if(L.done)return t.return(1);X=O=L.value;x=X.jsonRepresentation;J=X.objectRepresentation;Y=btoa(x);T="data:application/json;base64,"+Y;V=new Request(T);Object.defineProperty(V,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(V,"method",{get:function(){return"POST"}});
Object.defineProperty(V,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(V,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(V,"body",{get:function(){return new ReadableStream}});
return t.yield(fetch(V),7);case 7:return E=t.yieldResult,t.yield(E.json(),8);case 8:n=t.yieldResult;if(!Tm(n,J,!1,!1))return t.return(0);L=A.next();t.jumpTo(4);break;case 2:return _.S4(t),t.return(4)}})};
_.l1e=function(A){if(!A||!A.length||typeof A==="string")return 0;for(var L=function(x){return _.xc(x)},O=2,X=0;X<A.length&&(O=_.BD_(_.PjD(A[X],L)),O!==0);X++);
return O};
_.BD_=function(A){var L=_.d(A);A=L.next().value;L=L.next().value;try{var O=document.createElement("div");document.body.appendChild(O);var X=getComputedStyle(O).display;document.body.removeChild(O);if(X==="none")return 4;var x=getComputedStyle(L).display==="none"?0:1;document.body.removeChild(A);return x}catch(J){return 4}};
hGu=function(){var A,L,O;return _.u(function(X){A=new _.EP;L=document.createElement("button");L.classList.add("ytp-ad-skip-button");L.style.opacity="0";L.style.height="0px";L.style.width="0px";L.style.padding="0px";L.style.border="none";O=function(){L.parentElement&&L.parentElement.removeChild(L)};
L.onclick=function(){A.resolve(0);O()};
document.body.appendChild(L);setTimeout(function(){O();A.resolve(1)},50);
return X.return(A.promise)})};
nrd=function(){var A,L,O,X,x,J,Y;return _.u(function(T){A=new _.EP;L=document.createElement("ytd-player");try{document.body.prepend(L)}catch(V){return T.return(4)}O=function(){L.parentElement&&L.parentElement.removeChild(L)};
L.getElementsByTagName("div").length>0?X=L.getElementsByTagName("div")[0]:(X=document.createElement("div"),L.appendChild(X));x=document.createElement("div");X.appendChild(x);J=document.createElement("video");Y=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"});J.src=_.G2(_.Qo(Y));J.ontimeupdate=function(){O();A.resolve(0)};
x.appendChild(J);J.classList.add("html5-main-video");setTimeout(function(){x.classList.add("ad-interrupting")},200);
setTimeout(function(){O();A.resolve(1)},5E3);
return T.return(A.promise)})};
MbD=function(A,L){var O,X;return _.u(function(x){switch(x.nextAddress){case 1:O=[],X=0;case 2:if(!(X<3)){x.jumpTo(4);break}return x.yield(fetch(A,{cache:"no-store",method:L}).then(function(J){O.push(J.status)}).catch(function(){O.push(-1)}),3);
case 3:X++;x.jumpTo(2);break;case 4:return x.return(O)}})};
$UP=function(A){return A.domainLookupStart===0&&A.domainLookupEnd===0&&A.connectStart===0&&A.connectEnd===0};
a1D=function(A,L,O){O=O===void 0?"GET":O;var X,x,J,Y,T,V,E,n,t,b;return _.u(function(S){if(S.nextAddress==1)return S.yield(Promise.all([MbD(A,O),MbD(L,O)]),2);X=S.yieldResult;x=_.d(X);J=x.next().value;Y=x.next().value;T=J;V=Y;if(Math.min.apply(Math,_.le(V))!==Math.max.apply(Math,_.le(V))||Math.min.apply(Math,_.le(T))!==Math.max.apply(Math,_.le(T)))return S.return(2);if(Math.min.apply(Math,_.le(V))===Math.min.apply(Math,_.le(T)))return S.return(1);n=(E=performance.getEntriesByName(A))==null?void 0:
E[0];b=(t=performance.getEntriesByName(L))==null?void 0:t[0];return n&&b?$UP(b)?S.return(1):$UP(n)?S.return(0):S.return(1):S.return(2)})};
grd=function(){var A;return _.u(function(L){var O=[];var X;var x,J,Y;(x=X=(x=dM().objectRepresentation.streamingData)==null?void 0:(J=x.formats)==null?void 0:(Y=J[0])==null?void 0:Y.url)&&x&&!X.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(x=x.replace("initcwndbps","ctier=L&initcwndbps"),x=x.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),X={testUrl:x,baseUrl:X,method:"GET"}):X=void 0;X&&O.push(X);_.h("ab_net_tp_e")&&O.push({testUrl:_.Ou.location.origin+"/ad_companion",baseUrl:_.Ou.location.origin+
"/generate_204",method:"OPTIONS"});if(_.h("ad_net_pb_ab")){var T;b:{X=/api\/stats\/ads/;var V,E,n,t;x=(T=dM().objectRepresentation.adPlacements)==null?void 0:(V=T[0])==null?void 0:(E=V.adPlacementRenderer)==null?void 0:(n=E.renderer)==null?void 0:(t=n.linearAdSequenceRenderer)==null?void 0:t.linearAds;if(x!=null&&x.length&&(T=_.q(x[0],kcp))&&(T=T.pings,T!=null&&T.impressionPings))for(V=[].concat(_.le(T.impressionPings)),T.progressPings&&(V=[].concat(_.le(V),_.le(T.progressPings))),T=_.d(V),V=T.next();!V.done;V=
T.next())if(V=V.value,V.baseUrl&&X.test(V.baseUrl)){T=V.baseUrl.replace("https://www.youtube.com","");break b}T=void 0}T&&O.push({testUrl:_.Ou.location.origin+T,baseUrl:_.Ou.location.origin+"/feed/download",method:"GET"})}if(_.h("ad_net_pb_pbp")){var b;b:{T=/api\/stats\/qoe/;if(V=dM().objectRepresentation.playbackTracking){E=[];E.push(V==null?void 0:(b=V.videostatsPlaybackUrl)==null?void 0:b.baseUrl);var S;E.push(V==null?void 0:(S=V.videostatsDelayplayUrl)==null?void 0:S.baseUrl);var w;E.push(V==
null?void 0:(w=V.videostatsWatchtimeUrl)==null?void 0:w.baseUrl);var l;E.push(V==null?void 0:(l=V.ptrackingUrl)==null?void 0:l.baseUrl);var F;E.push(V==null?void 0:(F=V.qoeUrl)==null?void 0:F.baseUrl);var R;E.push(V==null?void 0:(R=V.atrUrl)==null?void 0:R.baseUrl);b=_.d(E);for(S=b.next();!S.done;S=b.next())if((S=S.value)&&T.test(S)){b=S.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}b=void 0}b&&O.push({testUrl:_.Ou.location.origin+b,baseUrl:_.Ou.location.origin+
"/feed/download",method:"GET"})}O=O.length!==0?O[Math.floor(Math.random()*O.length)]:void 0;return(A=O)?L.return(a1D(A.testUrl,A.baseUrl,A.method)):L.return(4)})};
_.Cje=function(){if(_.Ou.wn1===void 0||_.Ou.wn1===null||typeof _.Ou.wn1!=="function")return 2;try{return _.Ou.wn1()===!0?0:1}catch(A){return 0}};
UUO=function(A){switch(A){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.ZN(A,"unknown result type")}};
_.vrM=function(A,L){var O=Number(_.ms("CATSTAT",0));if(L.vVw===void 0)return O;L=L.vVw;A=UUO(A);return O&~(3<<L)|A<<L};
oru=function(A){var L,O;if((A=(L=A.auxiliaryUi)==null?void 0:(O=L.messageRenderers)==null?void 0:O.bkaEnforcementMessageViewModel)&&A.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return A};
L9r=function(){for(var A=_.d(Object.values(_.A2u)),L=A.next();!L.done;L=A.next())L=L.value,L.isAsync&&L.vVw&&_.QT("CATSTAT",_.vrM(2,L))};
_.hi=function(A,L){A=_.n3("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",A);(L===void 0?0:L)?_.OEu(A,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.ti(_.bn(),A,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
xqs=function(){if(!XW_){if(Polymer.Base){var A=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{A.apply(this,arguments)}catch(t){_.IO(t)}};
var L=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{L.apply(this,arguments)}catch(t){_.IO(t)}};
var O=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{O.apply(this,arguments)}catch(t){_.IO(t)}};
var X=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{X.apply(this,arguments)}catch(t){_.IO(t)}};
var x=Polymer.Base._listen,J=new WeakMap;Polymer.Base._listen=function(t,b,S){var w=function(){try{S.apply(this,arguments)}catch(l){_.IO(l)}};
J.set(S,w);x.call(this,t,b,w)};
var Y=Polymer.Base._unlisten;Polymer.Base._unlisten=function(t,b,S){Y.call(this,t,b,J.get(S))}}if(Polymer.Async){var T=Polymer.Async,V=T._atEndOfMicrotask;
T._atEndOfMicrotask=function(){try{V.apply(T,arguments)}catch(t){_.IO(t)}}}if(Polymer.RenderStatus){var E=Polymer.RenderStatus,n=E.afterNextRender;
E.afterNextRender=function(t,b,S){n.call(E,t,function(){try{b.apply(this,arguments)}catch(w){_.IO(w)}},S)}}XW_=!0}};
_.SQ=function(A){var L=A?_.eh(A):"";if(L){if(L.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(L.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(L.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(L.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(L.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.h("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(L.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";L=L.toLowerCase();if(L==="/")return"home";if(L==="/channel_memberships")return"channel-memberships-shopfront";if(L.indexOf("/feed/trending")===0)return"trending";if(L.indexOf("/feed/explore")===0)return"explore";if(L.indexOf("/live")===0)return"live";if(L.indexOf("/results")===0)return"search";if(L.indexOf("/sports")===0)return"sports";if(L.indexOf("/fashion")===0||L.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(L))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(L))return _.h("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(L.indexOf("/channel/")===0||L.indexOf("/user/")===0||L.indexOf("/gaming")===0||L.indexOf("/post/")===0)return"channel";if(sWO(A))return"show";if(L==="/playlist"||L.indexOf("/playlist/")===0||L==="/view_play_list"||L.indexOf("/view_play_list/")===0||L.indexOf("/show/")===0)return"playlist";if(L==="/feed/history"||L.indexOf("/feed/history/")===0)return"history";if(L===
"/new")return"labs";if(L==="/feed/subscriptions")return"subscriptions";if(L.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(L==="/history_controls")return"standalone";if(L.indexOf("/account")===0||L==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(L.indexOf("/paid_memberships")===0||L.indexOf("/refund")===0||L.indexOf("/purchases")===0||L.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(L.indexOf("/product")===0)return"yts-products";if(L.indexOf("/premium")===
0||L.indexOf("/musicpremium")===0)return L.indexOf("/premium/offers")===0||L.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(L==="/cart/checkout"||L==="/cart")return"ypc-checkout";if(L.indexOf("/feed/downloads")===0||L.indexOf("/redeem")===0||L.indexOf("/reporthistory")===0)return"browse";if(L.indexOf("/hashtag")===0)return"hashtag-landing-page";if(L.indexOf("/handle")===0)return"handle";if(L.indexOf("/source")===0)return"audio-pivot";if(L.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";
if(L.indexOf("/playables")===0)return"playables";if(L.indexOf("/create/live/join")===0)return"open-in-app";if(L.indexOf("/shorts")===0)return"shorts";if(L.indexOf("/feed/channels")===0)return"subscriptions-channels";(L=A?_.eh(A):"")&&L.indexOf("/watch")===0&&_.h("web_watch_enable_learning_journey")?(A=_.$L(A),A=!!A.list&&A.list.indexOf("LJPP")===0):A=!1;if(A)return"learning_journey_watch"}};
_.qT=function(A){var L,O;(A=(O=_.q(A==null?void 0:A.commandMetadata,_.LM))==null?void 0:O.url)&&(L=_.SQ(A));return L};
sWO=function(A){var L=A?_.eh(A):"";if(!L)return!1;L=L.toLowerCase();return L.indexOf("/show/")===0||L.indexOf("/playlist")===0&&(A=_.$L(A),A.list&&A.list.indexOf("EL")===0)?!0:!1};
p3=function(A){var L="unknown",O;var X=((O=_.q(A==null?void 0:A.commandMetadata,_.LM))==null?void 0:O.webPageType)||"";X?(O=X.toLowerCase(),O.startsWith("web_page_type_")&&(O=O.slice(14))):O=X;O&&J2u[O.toUpperCase()]?L=J2u[O.toUpperCase()]:_.q(A,_.gM)||_.q(A,PRO)?L="browse":_.q(A,_.wM)?L="search":_.q(A,_.$O)&&(L="watch");L==="watch"&&_.qT(A||null)==="learning_journey_watch"&&(L="learning_journey_watch");L==="unknown"&&_.Rv(Error("Kf`"+JSON.stringify({clickTrackingParams:A==null?void 0:A.clickTrackingParams,
commandMetadata:A==null?void 0:A.commandMetadata,allEndpointKeys:Object.keys(A||[])})));return L};
_.NT=function(A){if(!_.dq9||A)_.dq9=_.hD();return _.dq9};
_.Yod=function(A){return!!_.q(A,_.$O)||!!_.q(A,_.rM)&&_.h("kevlar_enable_shorts_prefetch")};
_.uCM=function(A,L){A=_.q(A,_.$O)||_.q(A,_.rM);return"v"+A.videoId+(A.playlistId?"-pl"+A.playlistId:"")+(L?"-an1":"")+(A.params?"-pr"+A.params:"")};
K3=function(A){return function(){return new A}};
Gm=function(A){var L=_.X5();return function(){return L.resolve(A)}};
VR_=function(A){var L=_.PO("web_pbj_log_warning_rate",0);L=L>0&&Math.random()<L;if(!_.q(A,_.rM))return L&&_.Rv(Error("Nf")),!1;var O;return _.h("shorts_controller_retrieve_seedless_sequence_v2")&&((O=_.q(A,_.rM))==null?void 0:O.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:TUD(A)?!0:(L&&_.Rv(Error("Of")),!1)};
TUD=function(A){var L=(_.q(A,_.$O)||_.q(A,_.rM)).videoId;if(!L||!Dqd.test(L))return!1;var O;return(A=(O=_.q(A.commandMetadata,_.LM))==null?void 0:O.url)&&(A.includes(L)||A.startsWith("/clip"))?!0:!1};
_.EHp=function(){var A=_.qG();return A.getFlag(192)?A.getFlag(190):!(_.h("web_watch_cinematics_disabled_by_default")||_.h("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&e6y())};
_.ln=function(A,L,O){var X={};X.currentUrl=L;X.vis=A.vis!==void 0?A.vis:0;X.splay=!1;L=_.qG();X.autoCaptionsDefaultOn=L.getFlag(66);L.getFlag(141)?L.getFlag(140)?X.autonavState="STATE_OFF":X.autonavState="STATE_ON":X.autonavState="STATE_NONE";X.html5Preference="HTML5_PREF_WANTS";isNaN(_.ms("STS"))||(X.signatureTimestamp=_.ms("STS"));A.autonav&&(X.autoplay=!0,X.autonav=!0);A.mutedAutoplay&&(X.autoplay=!0,X.mutedAutoplay=!0);A.inlinePlayback&&(X.autoplay=!0,X.autonav=!1,X.isInlineUnmutedPlayback=!!A.inlineUnmuted);
X.referer=O;X.lactMilliseconds=A.lact!==void 0?A.lact.toString():"-1";_.h("enable_unknown_lact_fix_on_html5")&&X.lactMilliseconds==="-1"&&_.Rv(new _.pe("Unknown LACT is set in playbackContext.",{"lact in tempData":A.lact||"undefined",autonav:A.autonav||"undefined"}));A={};L.getFlag(194)&&(A.hasShownAmbientMode=!0);L.getFlag(192)&&(A.hasToggledOffAmbientMode=!0);_.EHp()&&(A.watchAmbientModeEnabled=!0);X.watchAmbientModeContext=A;return X};
nHr=function(A){var L={},O=A.pbis||0;O&&(L.playbackBeginsInSeconds=O);A.prefetch_reason&&A.prefetch_reason==="hc_pbis"&&(L.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return L};
_.C3=function(A){A=A===void 0?!1:A;var L=_.qG(),O="USER_INTERFACE_THEME_LIGHT";L.getFlag(165)?O="USER_INTERFACE_THEME_DARK":L.getFlag(174)?O="USER_INTERFACE_THEME_LIGHT":_.cy()&&(O="USER_INTERFACE_THEME_DARK");return A?O:tRO()||O};
_.bEe=function(){return!_.h("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.cy=function(){return _.bEe()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.FZ=function(){var A=_.qG();return _.bEe()&&!A.getFlag(165)&&!A.getFlag(174)};
tRO=function(){var A=A===void 0?window.location.href:A;if(_.h("kevlar_disable_theme_param"))return null;var L=_.eh(A);if(_.h6r(L))return"USER_INTERFACE_THEME_DARK";try{var O=_.$L(A).theme;return SoM.get(O)||null}catch(X){}return null};
_.h6r=function(A){return _.h("enable_dark_theme_only_on_shorts")?!(A==null||!A.startsWith("/shorts/")):!1};
_.wW_=function(A,L,O,X,x){L=L===void 0?!1:L;O=O===void 0?!1:O;var J=_.ms("INNERTUBE_CONTEXT");if(!J)return _.C7(Error("Rf")),{};J=(0,_.lW.unsafeClone)(J);_.h("web_no_tracking_params_in_shell_killswitch")||delete J.clickTracking;J.client||(J.client={});var Y=J.client;Y.clientName==="MWEB"&&Y.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(Y.clientFormFactor=_.ms("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");Y.screenWidthPoints=window.innerWidth;Y.screenHeightPoints=window.innerHeight;Y.screenPixelDensity=
Math.round(window.devicePixelRatio||1);Y.screenDensityFloat=window.devicePixelRatio||1;Y.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());Y.userInterfaceTheme=_.C3();if(!L){var T=_.Ths();T&&(Y.connectionType=T);_.h("web_log_effective_connection_type")&&(T=Dau())&&(J.client.effectiveConnectionType=T)}var V;if(_.h("web_log_memory_total_kbytes")&&((V=_.Ou.navigator)==null?0:V.deviceMemory)){var E;V=(E=_.Ou.navigator)==null?void 0:E.deviceMemory;J.client.memoryTotalKbytes=""+V*1E6}L&&X&&!_.h("web_it_context_set_original_url_ks")&&
(Y.originalUrl=qoe(_.Ou.location.href,X).toString());_.h("web_gcf_hashes_innertube")&&(T=wyp())&&(E=T.coldConfigData,V=T.coldHashData,T=T.hotHashData,J.client.configInfo=J.client.configInfo||{},E&&(J.client.configInfo.coldConfigData=E),V&&(J.client.configInfo.coldHashData=V),T&&(J.client.configInfo.hotHashData=T));E=_.$L(_.Ou.location.href);!_.h("web_populate_internal_geo_killswitch")&&E.internalcountrycode&&(Y.internalGeo=E.internalcountrycode);!_.h("web_populate_client_screen_killswitch")&&x&&(Y.clientScreen=
x);Y.clientName==="MWEB"||Y.clientName==="WEB"?(Y.mainAppWebInfo||(Y.mainAppWebInfo={}),Y.mainAppWebInfo.graftUrl=X||_.Ou.location.href,_.h("kevlar_woffle")&&_.Ra.instance&&(X=_.Ra.instance,Y.mainAppWebInfo.pwaInstallabilityStatus=!X.appInstalledEventFired&&X.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),Y.mainAppWebInfo.webDisplayMode=EcP(),Y.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):Y.clientName==="TVHTML5"&&
(!_.h("web_lr_app_quality_killswitch")&&(X=_.ms("LIVING_ROOM_APP_QUALITY"))&&(Y.tvAppInfo=Object.assign(Y.tvAppInfo||{},{appQuality:X})),X=_.ms("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(Y.tvAppInfo=Object.assign(Y.tvAppInfo||{},{certificationScope:X}));!_.h("web_populate_time_zone_itc_killswitch")&&(X=Yes())&&(Y.timeZone=X);(X=GZr())?Y.experimentsToken=X:delete Y.experimentsToken;Y=lQp();X=_.gH9();X=(0,_.lW.getValues)(X.tokenJars);J.request=Object.assign({},J.request,{internalExperimentFlags:Y,consistencyTokenJars:X});
!_.h("web_prequest_context_killswitch")&&(Y=_.ms("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(J.request.externalPrequestContext=Y);X=_.qG();Y=X.getFlag(58);X=X.get("gsml","");J.user=Object.assign({},J.user);Y&&(J.user.enableSafetyMode=Y);X&&(J.user.lockedSafetyMode=!0);_.h("warm_op_csn_cleanup")?O&&(L=_.Fn())&&(J.clientScreenNonce=L):!L&&(L=_.Fn())&&(J.clientScreenNonce=L);A&&(J.clickTracking={clickTrackingParams:A});if(A=_.WY("yt.mdx.remote.remoteClient_"))J.remoteClient=A;_.QH.getInstance().setLocationOnInnerTubeContext(J);
try{var n=ZM_(),t=n.bid;delete n.bid;J.adSignalsInfo={params:[],bid:t};for(var b=_.d(Object.entries(n)),S=b.next();!S.done;S=b.next()){var w=_.d(S.value),l=w.next().value,F=w.next().value;n=l;t=F;A=void 0;(A=J.adSignalsInfo.params)==null||A.push({key:n,value:""+t})}var R,y;if(((R=J.client)==null?void 0:R.clientName)==="TVHTML5"||((y=J.client)==null?void 0:y.clientName)==="TVHTML5_UNPLUGGED"){var M=_.ms("INNERTUBE_CONTEXT");M.adSignalsInfo&&(J.adSignalsInfo.advertisingId=M.adSignalsInfo.advertisingId,
J.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",J.adSignalsInfo.limitAdTracking=M.adSignalsInfo.limitAdTracking)}}catch(H){_.C7(H)}return J};
_.pWP=function(A){var L=new mu(_.ms("ONE_PICK_URL",""));L.urlParamMap_.set("hostId",A);(A=_.ms("GAPI_LOCALE"))&&L.urlParamMap_.set("hl",A);(A=_.ms("SESSION_INDEX"))&&L.urlParamMap_.set("authuser",A);(A=_.ms("DELEGATED_SESSION_ID"))&&L.urlParamMap_.set("groupId",A);return L};
NUD=function(){var A=_.X5(),L=A.resolve(_.f3);A=A.resolve(_.Ia);return new iEd(L,A)};
K9u=function(A){if(window.IntersectionObserver)return new r2r(A,400);throw new TypeError("Yf");};
lmD=function(){var A=Hammer.TouchAction,L=A.prototype.preventDefaults;A.prototype.preventDefaults=function(O){var X=this.actions.indexOf("pan-down")>-1;if(!X)return L.call(this,O);if(!GUe){var x=O.srcEvent;O=O.direction;var J;if((J=this.manager)==null?0:J.session.prevented)x.preventDefault();else if(X&&O&Hammer.DIRECTION_DOWN)return this.preventSrc(x)}}};
c2D=function(A){if(!A||A.size===0)return Hammer.DIRECTION_ALL;if(A.size===2){if(A.has("up")&&A.has("down"))return Hammer.DIRECTION_VERTICAL;if(A.has("right")&&A.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(A.size===1){if(A.has("up"))return Hammer.DIRECTION_UP;if(A.has("down"))return Hammer.DIRECTION_DOWN;if(A.has("right"))return Hammer.DIRECTION_RIGHT;if(A.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.F9D=function(){return CRs?Promise.resolve(CRs):new Promise(function(A,L){var O=self.indexedDB.open("swpushnotificationsdb");O.onerror=L;O.onsuccess=function(){var X=O.result;if(X.objectStoreNames.contains("swpushnotificationsstore"))CRs=X,A(CRs);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.F9D()};
O.onupgradeneeded=R6r})};
R6r=function(A){A=A.target.result;A.objectStoreNames.contains("swpushnotificationsstore")&&A.deleteObjectStore("swpushnotificationsstore");A.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
mqe=function(A){var L=QWP(),O;return _.u(function(X){switch(X.nextAddress){case 1:return _.e4(X,2),X.yield(A.match(L,{cacheName:"yt-appshell-assets"}),4);case 4:O=X.yieldResult;_.zA(X,3);break;case 2:_.S4(X);case 3:return X.return(O)}})};
QWP=function(){var A=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?fmr.registration.scope:Imy;A.endsWith("/")&&(A=A.slice(0,-1));return A+"/app_shell_home"};
y2O=function(A){A.map(function(L){return L.source}).join("|")};
_.ZEe=function(A){return _.u(function(L){return L.return(mqe(A))})};
jWM=function(){var A=window.caches,L;return _.u(function(O){if(O.nextAddress==1)return O.yield(_.ZEe(A),2);L=O.yieldResult;return O.return(!!L)})};
amu=function(){_.u(function(A){if(A.nextAddress==1){if(W9J)return A.jumpTo(0);W9J=!0;if(_.h("enable_system_health_primes_monitoring"))return _.Vr(HE_,3E4),z6u(),A.return();if(!(Math.random()<_.PO("web_system_health_fraction")))return A.jumpTo(0);BUu={heightPixels:screen.height,widthPixels:screen.width};yH&&!isNaN(yH.jsHeapSizeLimit)&&(BUu.memoryTotalKbytes=String(Math.round(yH.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(BUu.devicePixelRatio=window.devicePixelRatio);return A.yield(MR9(),4)}_.Vr(HE_,
3E4);return A.yield($qD(),0)})};
MR9=function(){return _.u(function(A){if(A.nextAddress==1)return Z9.intersectionObserverPresent="IntersectionObserver"in window,Z9.serviceWorkerPresent="serviceWorker"in navigator,Z9.webSharePresent="share"in navigator,Z9.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,Z9.cacheStoragePresent="caches"in window,Z9.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,Z9.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
Z9.webkitTemporaryStoragePresent="webkitTemporaryStorage"in jQ&&jQ.webkitTemporaryStorage&&"queryUsageAndQuota"in jQ.webkitTemporaryStorage,Z9.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",A.yield(WCe(),2);Z9.indexedDbPresent=A.yieldResult;Z9.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;Z9.broadcastChannelPresent="BroadcastChannel"in window;Z9.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(Z9.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,Z9.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.qo(A)})};
HE_=function(){var A=9E4+Math.random()*2E3;_.xw()>A||(_.h("enable_system_health_primes_monitoring")?z6u():$qD())};
$qD=function(){var A;return _.u(function(L){if(L.nextAddress==1)return L.yield(kUs(),2);A=L.yieldResult;_.lg("systemHealthCaptured",A);_.qo(L)})};
z6u=function(){var A={metric:{}},L=Uqs();L.networkEvents.length&&(A.metric.networkEvents=vHO(L));_.lg("systemHealthCaptured",A)};
kUs=function(){var A,L,O,X,x,J,Y,T,V,E;return _.u(function(n){switch(n.nextAddress){case 1:A={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)};L=window.screen;_.h("enable_is_extended_monitoring")&&L&&"isExtended"in L&&(A.isExtended=!!L.isExtended);O={metric:{staticContext:BUu,dynamicContext:A,webMetric:oHJ,webApiSupport:Z9}};
if(X=_.Fn())O.csn=X;yH&&(O.metric.webMetric.currentHeapKbytes=Math.round(yH.usedJSHeapSize/1E3));window.matchMedia&&(O.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,O.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,O.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in jQ&&typeof jQ.getBattery==="function")){n.jumpTo(2);break}return n.yield(jQ.getBattery(),3);case 3:if(x=
n.yieldResult)O.metric.dynamicContext.chargingStatus=x.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(O.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(Z9.storageEstimatePresent)return n.yield(navigator.storage.estimate(),8);if(!Z9.webkitTemporaryStoragePresent){n.jumpTo(5);break}return n.yield(A$y(),7);case 7:J=n.yieldResult;n.jumpTo(5);break;case 8:J=n.yieldResult;case 5:return O.metric.dynamicContext.deviceStorageQuotaMbytes=((Y=J)==null?0:Y.quota)?String(Math.round(J.quota/
1048576/10)*10):"-1",O.metric.dynamicContext.deviceStorageUsageMbytes=((T=J)==null?0:T.usage)?String(Math.round(J.usage/1048576/10)*10):"-1",V=O.metric.dynamicContext,n.yield(jWM(),9);case 9:return V.hasAppShell=n.yieldResult,E=Uqs(),E.networkEvents.length&&(O.metric.networkEvents=vHO(E)),n.return(O)}})};
A$y=function(){return new Promise(function(A){var L;Z9.webkitTemporaryStoragePresent&&(L=jQ.webkitTemporaryStorage)!=null&&L.queryUsageAndQuota?jQ.webkitTemporaryStorage.queryUsageAndQuota(function(O,X){A({usage:O,quota:X})}):A(void 0)})};
_.Wy=function(A){A&=16777215;A=[(A&16711680)>>16,(A&65280)>>8,A&255];return LLe(A[0],A[1],A[2])};
_.Hy=function(A){A=[(A&16711680)>>>16,(A&65280)>>>8,A&255,(A&4278190080)>>>24];var L=_.OPe(A,function(O){return O==(O&255)});
A[3]=(A[3]/255).toFixed(3);if(!L)throw Error("Zf`"+A.join(","));return"rgba("+A.join(",")+")"};
_.XkO=function(A){return[(A&16711680)>>>16,(A&65280)>>>8,A&255]};
_.xfM=function(A){A=A.map(function(L){L/=255;return L<=.03928?L/12.92:Math.pow((L+.05)/1.05,2.4)});
return A[0]*.2126+A[1]*.7152+A[2]*.0722};
zm=function(A,L){A=_.XkO(A);return"rgba("+A[0]+", "+A[1]+", "+A[2]+", "+L+")"};
_.s49=function(){try{return!!self.localStorage}catch(A){return!1}};
Ydu=function(){if(J$D())_.Rv(Error("$f"));else{var A=document.createElement("iframe");A.style.display="none";var L=L===void 0?window.location.href:L;var O=_.CH(_.ms("PERSIST_IDENTITY_IFRAME_URL"));L=O?O:(new URL(L)).host.indexOf("studio")===0?_.JD(PxM,"persist_identity"):_.JD(dfe,"persist_identity");_.s9d(A,1,L);A.id="persist_identity";var X;(X=document.body)==null||X.appendChild(A)}};
J$D=function(){var A=uHP;A||(A=document.querySelector("#persist_identity"));return A};
TIp=function(){var A=!1;try{A=!!window.sessionStorage.getItem("session_logininfo")}catch(L){A=!0}return(_.ms("INNERTUBE_CLIENT_NAME")==="WEB"||_.ms("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&A};
VSp=function(A,L){if(!TIp())return!1;L||(L=_.ms("LOGIN_INFO"));return L?(A.session_logininfo=L,!0):!1};
ev9=function(A,L){A=A===void 0?!1:A;if((L===void 0||!L)&&DfM!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.fB("LOG_STICKINESS",!1)){L=_.Fn();var O=_.Ch(),X={identityStickinessData:{initialState:DfM}};L&&O&&_.kK(L,O,X)}if(L=J$D())if(O=L.src?(new URL(L.src)).origin:"*",A){var x;(x=L.contentWindow)==null||x.postMessage({action:"clear"},O)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(A=window.sessionStorage.getItem("session_logininfo"))){var J;(J=L.contentWindow)==null||J.postMessage({loginInfo:A},O)}};
_.By=function(A){A=A===void 0?!0:A;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.QT("LOGIN_INFO",""),A&&window.sessionStorage.setItem("from_switch_account","1"),ev9(!0,A)}catch(L){}};
EZ_=function(A){A&&(A.startsWith("https://accounts.google.com/AddSession")?_.By():A.startsWith("https://accounts.google.com/ServiceLogin")?_.By():A.startsWith("https://myaccount.google.com")&&_.jV(A).getPath().endsWith("/youtubeoptions")&&_.By())};
MT=function(A,L){EZ_(A);if(_.fB("LOGGED_IN",!0)&&TIp()){var O=J_e(A);O==null&&(O={});VSp(O,L)&&_.oF(A,O)}};
nZp=function(){function A(L){for(L=L.target;L&&L.nodeName!=="A";)if(L=L.parentNode,!(L&&L instanceof HTMLElement))return;if(L&&!L.hasAttribute("download")&&L.getAttribute("rel")!=="external"&&L.href)return L.href}
document.addEventListener("mousedown",function(L){L.button!==0&&(L=A(L))&&MT(L)});
document.addEventListener("click",function(L){(L=A(L))&&MT(L)})};
hvu=function(){var A=new tSe;try{if(_.fB("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(T){A.increment(5,!1);return}if(_.ms("LOGIN_INFO")){var L=bPM?bPM:window.location;_.ms("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&Ydu();var O=J_e(L.href);O==null&&(O={});var X=O.session_logininfo,x=Number(window.sessionStorage.getItem("stickiness_reload")),J=X===_.ms("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
x>=2||J)x>=2?A.increment(2,J):J?A.increment(7,J):window.sessionStorage.getItem("session_logininfo")||(A.increment(3,J),DfM="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.ms("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.ms("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))A.increment(4,J),window.sessionStorage.removeItem("stickiness_reload");
else if(x<2){window.sessionStorage.setItem("stickiness_reload",String(x+1));var Y=L.href;Y=_.Az(Y,"sttick");MT(Y,window.sessionStorage.getItem("session_logininfo"));Y=_.aO(Y,{sttick:x});A.increment(x,J);_.V4y(L,Y)}}else A.increment(6,!1)}else _.By(!1)}catch(T){}};
_.$c=function(A,L,O,X,x){L=L===void 0?{}:L;O=O===void 0?"":O;X=X===void 0?window:X;A=_.kL(A,L);MT(A);O=_.RP(A+O,x);_.V4y(X.location,O)};
_.Sdu=function(A,L,O,X,x){x=x===void 0?!1:x;O&&_.oF(A,O);O=_.RP(A);var J=_.G2(O);A!=J&&_.HY(Error("ag`"+A));A=J;L=L||jf(A).toString(36);try{if(x)return x=A,x=bTu(x),MT(x),_.z2(window,x,L,"attributionsrc")}catch(Y){_.IO(Y)}MT(A);return _.z2(window,O,L,X)};
qdd=function(A){if(A.urlEndpoint){if(A=_.$L(A.urlEndpoint.url),A.adurl)return Le(A.adurl)}else if(A.watchEndpoint)return"//www.youtube.com/watch?v="+A.watchEndpoint.videoId;return null};
gZu=function(A){if(!A||!A.reportingPings)return null;var L={};A.reportingPings.forEach(function(O){O.pingType in L?L[O.pingType].push(O.url):L[O.pingType]=[O.url]});
return{adpings:EKd(L)}};
_.aa=function(){return{isShellLoad:_.fB("IS_SHELL_LOAD",!1)}};
pkp=function(){navigator.serviceWorker.getRegistrations().then(function(A){A.forEach(wk9)})};
wk9=function(A){A&&_.iPM(NI_,A.scope)};
_.iPM=function(A,L){L={scope:L||_.dN("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.ww(A),L)};
kc=function(A,L,O,X){if(L&&L.serializedYpcCujLoggingParams){if(O){var x={};x.transactionErrorType=O;X&&(x.errorMessage=X);L.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:x}}}O={};O.ypcCujContext=L;A=_.n3("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",A,O);_.ti(_.bn(),A,"FLOW_TYPE_YPC_ACQUISITION")}};
_.r$r=function(A,L,O,X){var x={};x.serializedTransactionFlowLoggingParams=L;O&&(x.errorType=O);X&&(x.errorMessage=X);_.lg(A,x);_.ch()};
_.KLJ=function(A){A&&_.r$r("transactionFlowStarted",A)};
_.GwD=function(A){A&&_.r$r("transactionFlowCancelled",A)};
_.UP=function(A,L,O){L&&_.r$r("transactionFlowFailed",L,A,O)};
lke=function(A){var L=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");L&&(L.inert=A)};
_.vy=function(){this.megabloxUrl_=null};
_.oa=function(A){try{var L=c$9==null?void 0:c$9.composedPath(A)}catch(O){L=A.composedPath?A.composedPath():[]}return L&&L.length>0?L:A.composedPath?A.composedPath():[]};
_.AT=function(A){return _.oa(A)[0]};
_.L4=function(A){if(!(A instanceof Element))return null;A=A.classList?Array.from(A.classList):void 0;if(!A)return null;var L=A.indexOf("style-scope");return L>-1&&L+1<A.length?A[L+1]:null};
Ob=function(A){if(!(A instanceof HTMLElement))return null;var L=A&&(A.$$||A.polymerController)?A.tagName.toLowerCase():null;return L?L:_.L4(A)};
CxP=function(A,L){return A.replace(/[^a-z]*[^\s]+/g,function(O){return O+".style-scope."+L})};
FLD=function(A,L){return L?A.split(",").map(function(O){return CxP(O.trim(),L)}).join(", "):A};
_.XS=function(A){var L,O,X,x;return(x=(X=(O=(L=A.root)!=null?L:A.shadowRoot)!=null?O:A.__shady_native_shadowRoot)!=null?X:A.__shady_shadowRoot)!=null?x:A};
xJ=function(A){return A instanceof ShadowRoot?ShadowRoot:A instanceof DocumentFragment?DocumentFragment:A instanceof Document?Document:HTMLElement};
RvJ=function(A){var L,O,X;return(X=(O=(L=A.parentElement)!=null?L:A.__shady_native_parentElement)!=null?O:A.__shady_parentElement)!=null?X:null};
Q4u=function(A){var L,O,X;return(X=(O=(L=A.parentNode)!=null?L:A.__shady_native_parentNode)!=null?O:A.__shady_parentNode)!=null?X:null};
mfM=function(A){var L,O,X;return(X=(O=(L=A.__shady_parentNode)!=null?L:A.__shady_native_parentNode)!=null?O:A.parentNode)!=null?X:null};
fku=function(A){var L,O;return(O=(L=Q4u(A))!=null?L:A.host)!=null?O:null};
Ike=function(A){var L,O,X;return(X=(O=(L=A.nextSibling)!=null?L:A.__shady_native_nextSibling)!=null?O:A.__shady_nextSibling)!=null?X:null};
y$_=function(A){var L,O,X;return(X=(O=(L=A.previousSibling)!=null?L:A.__shady_native_previousSibling)!=null?O:A.__shady_previousSibling)!=null?X:null};
ZP_=function(A){var L,O,X;return(X=(O=(L=A.nextElementSibling)!=null?L:A.__shady_native_nextElementSibling)!=null?O:A.__shady_nextElementSibling)!=null?X:null};
j4J=function(A){var L,O,X;return(X=(O=(L=A.previousElementSibling)!=null?L:A.__shady_native_previousElementSibling)!=null?O:A.__shady_previousElementSibling)!=null?X:null};
WLu=function(A){var L,O,X;return new Set([].concat(_.le((L=A.children)!=null?L:[]),_.le((O=A.__shady_native_children)!=null?O:[]),_.le((X=A.__shady_children)!=null?X:[])))};
HPO=function(A){var L,O,X;return new Set([].concat(_.le((L=A.childNodes)!=null?L:[]),_.le((O=A.__shady_native_childNodes)!=null?O:[]),_.le((X=A.__shady_childNodes)!=null?X:[])))};
zve=function(A){if(!A)return null;var L=_.L4(A);if(!L){var O;return(O=Node.prototype.getRootNode)==null?void 0:O.call(A)}L=L.toUpperCase();for(A=RvJ(A);A&&A.tagName!==L;)A=RvJ(A);return A?_.XS(A):null};
BI_=function(A){for(;A&&!(A instanceof HTMLElement);)A=fku(A);return A};
MSP=function(A){var L=BI_(A);return A===L?_.L4(A):L?Ob(L):null};
$fs=function(A){return(A=BI_(A))?Ob(A):null};
aku=function(A){if(A instanceof Comment)return!1;if(A instanceof Text){var L,O;if(((O=(L=A.textContent)==null?void 0:L.trim())!=null?O:"")==="")return!1}return!0};
sb=function(A,L,O){var X=L(A);for(O=O===void 0?$fs(A):O;X&&(MSP(X)!==O||!aku(X));)A=X,X=L(A);return X};
kwu=function(A,L,O){if(!L)return null;A=$fs(A);return MSP(L)===A&&aku(L)?L:sb(L,O,A)};
UfJ=function(A){return sb(A,mfM,_.L4(A))};
vZP=function(A){return sb(A,ZP_)};
oZp=function(A){return sb(A,Ike)};
ANd=function(A){return sb(A,j4J)};
LPJ=function(A){return sb(A,y$_)};
O0s=function(A){return kwu(A,A.firstChild||A.__shady_native_firstChild||A.__shady_firstChild||null,Ike)};
XQr=function(A){var L,O,X;var x=(X=(O=(L=A.firstElementChild)!=null?L:A.__shady_native_firstElementChild)!=null?O:A.__shady_firstElementChild)!=null?X:null;return kwu(A,x,ZP_)};
xL9=function(A){var L,O,X;var x=(X=(O=(L=A.lastChild)!=null?L:A.__shady_native_lastChild)!=null?O:A.__shady_lastChild)!=null?X:null;return kwu(A,x,y$_)};
sEJ=function(A){var L,O,X;var x=(X=(O=(L=A.lastElementChild)!=null?L:A.__shady_native_lastElementChild)!=null?O:A.__shady_lastElementChild)!=null?X:null;return kwu(A,x,j4J)};
JNr=function(A){var L=$fs(A);return Array.from(HPO(A)).filter(function(O){return MSP(O)===L})};
PGr=function(A){var L=Ob(A);return Array.from(WLu(A)).filter(function(O){return _.L4(O)===L})};
_.JT=function(A,L,O){if(A instanceof HTMLElement&&_.L4(A)===O){var X=Array.from(A.classList).indexOf("style-scope");if(X===-1)A.classList.add("style-scope"),A.classList.add(L);else if(!(X+1>=A.classList.length)){X=A.classList[X+1];var x,J;A==null||(x=A.classList)==null||(J=x.replace)==null||J.call(x,X,L)}}if(A instanceof HTMLElement||A instanceof DocumentFragment)for(x=_.d(WLu(A)),J=x.next();!J.done;J=x.next())_.JT(J.value,L,O);return A};
PD=function(A,L){if(A instanceof HTMLElement&&_.L4(A)===L){var O=Array.from(A.classList).indexOf("style-scope");O===-1||O+1>=A.classList.length||A.classList.remove("style-scope",A.classList[O+1])}if(A instanceof HTMLElement||A instanceof DocumentFragment){O=_.d(A.children);for(var X=O.next();!X.done;X=O.next())PD(X.value,L)}return A};
_.dLs=function(A,L){return xJ(A).prototype.appendChild.call(A,L)};
Y8e=function(A,L){if(A===L)return!0;A=HPO(A);return Array.from(A).some(function(O){return Y8e(O,L)})};
_.YJ=function(A,L){if(A instanceof dd)return A;(L==null?0:L.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(A,"ownerDocument")&&Object.defineProperty(A,"ownerDocument",{get:function(){return window.document}});
return new dd(A)};
Tny=function(){var A=dd.prototype,L=[].concat(_.le(u79?[]:["getRootNode"]),["setAttribute","removeAttribute"]);L=_.d(L);for(var O=L.next(),X={};!O.done;X={method$jscomp$52:void 0},O=L.next())X.method$jscomp$52=O.value,A[X.method$jscomp$52]=function(x){return function(){return this.host[x.method$jscomp$52].apply(this.host,arguments)}}(X)};
DLO=function(){var A=dd.prototype,L=[].concat(_.le(u79?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.le(VCe?[]:["querySelector","querySelectorAll"]));L=_.d(L);for(var O=L.next(),X={};!O.done;X={method$jscomp$53:void 0},O=L.next())X.method$jscomp$53=O.value,A[X.method$jscomp$53]=function(x){return function(){return this.root[x.method$jscomp$53].apply(this.root,arguments)}}(X)};
n6p=function(){var A=dd.prototype,L=[].concat(_.le(eKP?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.le(E6s?[]:["parentNode"]));L=_.d(L);for(var O=L.next(),X={};!O.done;X={prop$jscomp$62:void 0},O=L.next())X.prop$jscomp$62=O.value,Object.defineProperty(A,X.prop$jscomp$62,{get:function(x){return function(){return this.host[x.prop$jscomp$62]}}(X),
configurable:!0})};
hKu=function(){var A=dd.prototype,L=["activeElement"].concat(_.le(eKP?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.le(tCp?[]:["children"]),_.le(b0r?[]:["lastChild"]));L=_.d(L);for(var O=L.next(),X={};!O.done;X={prop$jscomp$63:void 0},O=L.next())X.prop$jscomp$63=O.value,Object.defineProperty(A,X.prop$jscomp$63,{get:function(x){return function(){return this.root[x.prop$jscomp$63]}}(X),
configurable:!0})};
S8y=function(){for(var A=dd.prototype,L=_.d(["innerHTML","textContent"]),O=L.next(),X={};!O.done;X={prop$jscomp$64:void 0},O=L.next())X.prop$jscomp$64=O.value,Object.defineProperty(A,X.prop$jscomp$64,{get:function(x){return function(){return this.root[x.prop$jscomp$64]}}(X),
set:function(x){return function(J){this.root[x.prop$jscomp$64]=J}}(X),
configurable:!0})};
q8d=function(A){var L=dd.prototype;A=_.d(Object.entries(A));for(var O=A.next(),X={};!O.done;X={fn$jscomp$388:void 0},O=A.next()){var x=_.d(O.value);O=x.next().value;x=x.next().value;X.fn$jscomp$388=x;L[O]=function(J){return function(){return J.fn$jscomp$388.apply(null,[this.host.node||this.host].concat(_.le(arguments)))}}(X)}};
wQu=function(){for(var A=dd.prototype,L=_.d(Object.entries(g6D)),O=L.next(),X={};!O.done;X={fn$jscomp$389:void 0},O=L.next()){var x=_.d(O.value);O=x.next().value;x=x.next().value;X.fn$jscomp$389=x;Object.defineProperty(A,O,{get:function(J){return function(){return J.fn$jscomp$389.apply(null,[this.host.node||this.host].concat(_.le(arguments)))}}(X),
configurable:!0})}};
_.uy=function(A){return A instanceof pQ_||A instanceof Document?A:new pQ_(A)};
i0O=function(){for(var A=pQ_.prototype,L=_.d("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),O=L.next(),X={};!O.done;X={method$jscomp$54:void 0},O=L.next())X.method$jscomp$54=O.value,A[X.method$jscomp$54]=function(x){return function(){return HTMLElement.prototype[x.method$jscomp$54].call.apply(HTMLElement.prototype[x.method$jscomp$54],[this.node].concat(_.le(arguments)))}}(X)};
Nns=function(){for(var A=pQ_.prototype,L=_.d("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),O=L.next(),X={};!O.done;X={prop$jscomp$65:void 0},O=L.next())X.prop$jscomp$65=O.value,Object.defineProperty(A,X.prop$jscomp$65,{get:function(x){return function(){var J;return(J=this.node["__shady_native_"+x.prop$jscomp$65])!=null?J:this.node[x.prop$jscomp$65]}}(X),
configurable:!0})};
_.TK=function(A,L,O){O===void 0&&(O=!A.classList.contains(L));O?A.classList.add(L):A.classList.remove(L)};
_.VU=function(A,L,O){O===void 0&&(O=!A.hasAttribute(L));if(L==="class")throw Error("eg");O?_.uy(A).setAttribute(L,""):_.uy(A).removeAttribute(L)};
rNr=function(A){return(A.localName!=="slot"?[]:(0,_.DB)(A).assignedNodes({flatten:!0})).filter(function(L){return L.nodeType===Node.ELEMENT_NODE})};
_.KPu=function(A){return(A=_.YJ(A).querySelector("slot"))&&A.localName==="slot"?rNr(A):[]};
_.eq=function(A,L){window.ShadyCSS&&window.ShadyCSS.styleSubtree(A,L)};
n4=function(A,L){var O=L.bind(A);return function(X){O(X,X.detail)}};
_.tT=function(A,L){var O=GGr.get(A);O||(O=new WeakMap,GGr.set(A,O));if(O.has(L))return O.get(L);if(_.h("web_fi_listen_disable_bound_fn_helper")){var X=L.bind(A);A=function(x){X(x,x==null?void 0:x.detail)}}else A=n4(A,L);
O.set(L,A);return A};
CGO=function(A,L){lRd(A);A.created[cNO].push(L)};
lRd=function(A){if(!A.created||!A.created[cNO]){var L=A.created,O=L?[L]:[];A.created=function(){for(var X=_.d(O),x=X.next();!x.done;x=X.next())x.value.apply(this)};
A.created[cNO]=O}};
FPJ=function(A){return function(){var L=_.f_.apply(0,arguments);return function(O,X,x){A.apply(null,_.le(L))(O,X,x)}}};
RKu=function(){return function(){var A=_.f_.apply(0,arguments);return function(L,O,X){w69.apply(null,_.le(A))(L,O,X)}}};
_.N=function(A){return RKu()(A)};
_.r=function(){return FPJ(rVu).apply(null,_.le(_.f_.apply(0,arguments)))};
_.by=function(A){return _.h("pbcm_fi_listen_decorators")?QEu(A):FPJ(i5p)(A)};
QEu=function(A){return function(L,O){CGO(L,function(){var X=this[O],x=_.h("web_fi_listen_disable_bound_fn_helper")?function(J){X(J,J.detail)}.bind(this):n4(this,X);
mLe.has(A)?Cd(this.hostElement,A,x):this.hostElement.addEventListener(A,x)})}};
_.hT=function(){return FPJ(NkM).apply(null,_.le(_.f_.apply(0,arguments)))};
_.K=function(A){A=A===void 0?{}:A;return FPJ(p6P)(A)};
_.Sq=function(A){if(A.hostElement&&A!==A.hostElement){var L=_.ii(A.hostElement);L=A.renderIdom?L:L.shadowRoot}L||(A=A.root,L=A instanceof Node?_.ii(A):null);return L};
_.qR=function(A){return fRe?IRe(A):function(L,O){Object.defineProperty(L,O,{get:function(){var X;return(X=_.Sq(this))==null?void 0:X.querySelector(A)},
enumerable:!0,configurable:!0})}};
IRe=function(A){return function(L,O){Object.defineProperty(L,O,{get:function(){var X,x=(X=_.YJ(this.hostElement))==null?void 0:X.querySelector(A);if(x)return x;var J;return(J=_.Sq(this))==null?void 0:J.querySelector(A)},
enumerable:!0,configurable:!0})}};
_.gd=function(A){return fRe?yND(A):function(L,O){Object.defineProperty(L,O,{get:function(){var X;return(X=_.Sq(this))==null?void 0:X.querySelectorAll(A)},
enumerable:!0,configurable:!0})}};
yND=function(A){return function(L,O){Object.defineProperty(L,O,{get:function(){var X,x=(X=_.YJ(this.hostElement))==null?void 0:X.querySelectorAll(A);if(x==null?0:x.length)return x;var J;return(J=_.Sq(this))==null?void 0:J.querySelectorAll(A)},
enumerable:!0,configurable:!0})}};
Z0u=function(A){return function(L){if(![_.oU,_.G].includes(Object.getPrototypeOf(L.prototype).constructor))throw Error("fg");EjJ(Object.assign({},typeof A!=="string"?A:{is:A,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(L)}};
_.p4=function(){var A=A===void 0?{}:A;return function(L){if(![A9,_.wd].includes(Object.getPrototypeOf(L.prototype).constructor))throw Error("gg");nje(Object.assign({},A,{disableInheritanceCheck:!0}))(L)}};
WPd=function(A,L){jE9[A]!=null||(jE9[A]=new Set);jE9[A].add(L)};
_.iy=function(){var A=_.hT.apply(null,_.le(_.f_.apply(0,arguments)));return function(L,O){WPd(L.is,O);A(L,O)}};
K4=function(A,L,O){if(NR(A)&&!H0s.has(L)){L=L.replace(/^JSC\$[\d]+_/,"");L=L.replace(/\.\d+(\.|$)/g,function(J,Y){return".#"+Y});
rd[A]!=null||(rd[A]={});var X,x;(X=rd[A])[x=L]!=null||(X[x]=new Set);rd[A][L].has(O)||(rd[A][L].add(O),_.lg("polymerPropertyAccessEvent",{componentName:A,propertyName:L,accessType:O}))}};
zKO=function(){return _.h("polymer_property_access_logging_debug")||_.h("polymer_enable_property_access_logging")};
NR=function(A){if(_.h("polymer_property_access_logging_debug"))return!0;if(!_.h("polymer_enable_property_access_logging"))return!1;Bne||(Bne=Date.now());return(jf(A)+Bne)%100<_.PO("polymer_property_access_logging_percent")};
MCO=function(A,L){return NR(L)&&A.hostElement.loggingStatus?new Proxy(A,{get:function(O,X,x){if(O.hostElement.loggingStatus.bypassProxyController)return O[X];O.hostElement.loggingStatus.isExternalGet=!0;var J=O[X];O.hostElement.loggingStatus.isExternalGet=!1;if(J instanceof Function)return function(){var Y=_.f_.apply(0,arguments);try{return O.hostElement.loggingStatus.currentExternalCall=X,K4(L,X,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),J.apply(this===x?O:this,Y)}finally{O.hostElement.loggingStatus.currentExternalCall=
void 0}};
K4(L,X,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return J},
set:function(O,X,x){if(O.hostElement.loggingStatus.bypassProxyController)return O[X]=x,!0;O.hostElement.loggingStatus.isRendererStamper?K4(L,X,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):O.hostElement.loggingStatus.isDeclarativeExternal||K4(L,X,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{O.hostElement.loggingStatus.currentExternalSet=X,O[X]=x}finally{O.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):A};
$Ld=function(A,L){A&&A.loggingStatus&&!A.loggingStatus.isDeclarativeExternal&&!A.loggingStatus.isExternalGet&&A.loggingStatus.currentExternalSet!==L&&K4(A.tagName.toLowerCase(),L,"PROPERTY_ACCESS_GET_INTERNAL")};
GK=function(A,L,O){A&&(O||A.loggingStatus&&!A.loggingStatus.isInitializing&&!A.loggingStatus.isDefiningPropertyAccessor&&A.loggingStatus.currentExternalSet!==L)&&K4(A.tagName.toLowerCase(),L,"PROPERTY_ACCESS_SET_INTERNAL")};
aRM=function(){return{_definePropertyAccessor:function(A,L){var O=this,X=O.hostElement.loggingStatus;X&&(X.isDefiningPropertyAccessor=!0);var x=O[A];x!==void 0&&(O.__data?O._setPendingProperty(A,x):(O.__dataProto!=null||(O.__dataProto={}),O.__dataProto[A]=x));X&&(X.isDefiningPropertyAccessor=!1);Object.defineProperty(this,A,{get:function(){$Ld(O.hostElement,A);return this.__data[A]},
set:function(J){L||this._setPendingProperty(A,J,!0)&&this._invalidateProperties()}})},
created:function(){var A=this._setPendingProperty.bind(this);this._setPendingProperty=function(L,O,X){GK(this.hostElement,L);return A.apply(this,[L,O,X])}}}};
kGp=function(A){zKO()&&_.N(C4.prototype)(A.prototype,"__templateBindingLoggingBehavior")};
ULe=function(A,L){if(L.resolvedFactories.length!==A.resolvedFactories.length)return!0;L=_.d(L.resolvedFactories.entries());for(var O=L.next();!O.done;O=L.next()){var X=_.d(O.value);O=X.next().value;X=X.next().value;if(X.providerClass){if(X.providerClass!==A.resolvedFactories[O].providerClass)return!0}else if(X.providerValue){if(X.providerValue!==A.resolvedFactories[O].providerValue)return!0}else if(X.factory!==A.resolvedFactories[O].factory)return!0}return!1};
v6M=function(A,L){A=_.d(A);for(var O=A.next();!O.done;O=A.next())if(O=O.value,O.constructor===Array)v6M(O,L);else{var X=L;X.has(O)||(O.inject&&X.add(O),O.behaviors&&v6M(O.behaviors,X))}};
FS=function(A,L){var O=A[L];A[L]=function(){var X=_.f_.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(O)return O.apply(this,X)}};
ORD=function(){_.RJ.Class=function(O,X){O=o6u(O,X);FS(O.prototype,"created");return O};
FS(QU.prototype,"_initializeProperties");FS(_.mi.prototype,"_initializeProperties");if(AZJ)FS(Lp_,"created");else{var A=function(){FS(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))A();else{var L=customElements.define;customElements.define=function(O,X,x){L.call(customElements,O,X,x);O==="tp-yt-iron-list"&&(A(),customElements.define=L)}}}};
xpu=function(A,L){A.prototype.behaviors=A.prototype.behaviors||[];A.prototype.behaviors.unshift(XtD.InjectBehavior);A.prototype.provide=L};
_.yU=function(A){return function(L){if(!A.disableElementRegistration){A.noInjection||xpu(L,A.providers);var O=L.prototype;O.__templateHelpers||w69(f4.prototype)(O,"__templateHelpers");O=A.is;s0u||(s0u=Date.now());(jf(O)+s0u)%100<_.PO("polymer_log_prop_change_observer_percent")&&w69(IJ.prototype)(L.prototype,"__propertyObserverObserver");L.prototype.behaviors=L.prototype.behaviors||[];L.prototype.behaviors.unshift(_.JZu.YtHostElementBehavior);kGp(L);Z0u({is:A.is,notifyObserversOnUndefined:A.notifyObserversOnUndefined!==
!1,fastInit:A.fastInit,template:A.template,disableEnforceFastDefaultValuesCheck:!0})(L)}}};
_.Q=function(A){return _.yU({is:A.is,template:A.template,disableElementRegistration:A.disableElementRegistration,cssBuildOptOut:A.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
Ypu=function(A,L){if(PmD){A=new A;for(var O=_.d(Object.getOwnPropertyNames(A)),X=O.next();!X.done;X=O.next())X=X.value,L[X]=A[X];for(O=L;O&&O!==Object.prototype;O=Object.getPrototypeOf(O)){X=_.d(Object.getOwnPropertyNames(O));for(var x=X.next();!x.done;x=X.next())x=x.value,A.hasOwnProperty(x)||Object.defineProperty(A,x,dp_(L,x))}}else A.apply(L)};
dp_=function(A,L){return{get:function(){var O=A[L];return O instanceof Function?O.bind(A):O},
set:function(O){A[L]=O}}};
T3p=function(A,L){for(var O=A._noAccessors,X=_.d(Object.getOwnPropertyNames(A)),x=X.next();!x.done;x=X.next())if(x=x.value,!ucd.has(x))if(O)L[x]=A[x];else{var J=Object.getOwnPropertyDescriptor(A,x);J&&(J.configurable=!0,Object.defineProperty(L,x,J))}};
VGp=function(A,L,O){return function(X){if(O){var x=O();X.model=x}if(A[L])A[L](X,X.detail)}};
ZB=function(A){var L=[];if(typeof A==="string")A.length>0&&L.push.apply(L,_.le(A.split(".")));else{A=_.d(A);for(var O=A.next();!O.done;O=A.next())O=O.value,typeof O==="string"?L.push.apply(L,_.le(O.split("."))):L.push(O)}return L};
DpO=function(A,L){if(L[L.length-1]!=="*"&&L[L.length-1]!=="splices"){for(var O=0;O<L.length;O++){if(!A)return;A=A[L[O]]}return A}};
eN9=function(A,L){if(A.length>L.length)return!1;for(var O=0;O<A.length;O++)if(A[O]!==L[O])return!1;return!0};
nmp=function(A,L,O){if(L.type==="compute"){var X=L.getter.bind(O);var x=L.args}else X=function(){return O[L.method.methodName].apply(O,_.le(_.f_.apply(0,arguments)))},x=L.method.args;
Emr(A,L.propertyKey,X,x,L.value)};
bRu=function(A,L){if(L.readOnly){var O=Object.getOwnPropertyDescriptor(A.model,L.propertyKey);Object.defineProperty(A.model,L.propertyKey,{get:O.get,set:function(){}});
A.model[tG9(L.propertyKey)]=O.set}};
hN9=function(A,L,O){if(O){var X=L.propertyKey,x=L.selector;L=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.le(L.selectorArgs.map(function(J){return{type:"path",path:J}})));
Emr(A,X,function(J){var Y=_.f_.apply(1,arguments);return x.apply(null,[O.getState()].concat(_.le(Y)))},L)}};
qpd=function(A,L,O){var X=_.t9(L.propertyKey)+"-changed";Sp_(A,function(x){var J={value:x.value,queueProperty:!0};x.path.split(".").length>1&&(J.path=x.path);O.dispatchEvent(new CustomEvent(X,{detail:J}))},[{type:"wildcard",
path:L.propertyKey}])};
gme=function(A,L,O){Sp_(A,function(){O[L.method.methodName].apply(O,_.le(_.f_.apply(0,arguments)))},L.method.args)};
tG9=function(A){return"_set"+(A.charAt(0).toUpperCase()+A.slice(1))};
pte=function(){return _.h("enable_track_defined_via_mutable_signal")||wtO};
iRJ=function(){var A,L=Kr(function(O){A=O},!1);
return[A,L]};
lCD=function(A){A=A.trim().replace(N3d,",").replace(rZp,"$1");var L=A[0];L==="-"&&(L=A[1]);if(L>="0"&&L<="9")return{type:"literal",value:Number(A)};if(L==="'"||L==='"')return{type:"literal",value:A.slice(1,-1)};if(L=A.match(Kps)){L=L[1];var O=Gx9[L];if(O)return{type:O,path:A.slice(0,-(L.length+1))}}return{type:"path",path:A}};
RNO=function(A){var L=A.match(cZM);if(L)return A={methodName:L[1],args:Cmy},L[2].trim()&&(L=L[2].replace(Fpp,"&comma;").split(","),A.args=L.map(lCD)),A};
Q0M=function(A,L,O,X){X=X===void 0?!1:X;L=_.t9(L);var x=hl;x&&(O=x(O,L,"attribute",A));jq(A,O,L,X)};
jq=function(A,L,O,X){L=mp_(L,X===void 0?!1:X);L===void 0?A.removeAttribute(O):A.setAttribute(O,L)};
mp_=function(A,L){switch(typeof A){case "object":case "function":if(A instanceof Date)return A.toString();if(A){if((L===void 0?0:L)&&!_.h("polymer_reflect_objects_as_boolean_killswitch"))return A?"":void 0;L=window.trustedTypes?window.trustedTypes.isHTML(A)||window.trustedTypes.isScript(A)||window.trustedTypes.isScriptURL(A):void 0;if(L)return A;try{return JSON.stringify(A)}catch(O){_.Rv(Error("Cg`"+A))}}break;case "boolean":return A?"":void 0;default:return A!==null&&A!==void 0?A.toString():void 0}};
fCu=function(A){if(A===void 0)throw Error("Dg");return A};
Wpr=function(A,L,O,X){var x=ICp(X);if(x.length){X=O;var J="property";yZp.test(O)?J="attribute":O[O.length-1]==="$"&&(O=O.slice(0,-1),J="attribute");var Y=ZRr(x);Y&&J==="attribute"&&(O==="class"&&A.hasAttribute("class")&&(Y+=" "+A.getAttribute(O)),jq(A,Y,O));J==="attribute"&&X==="disable-upgrade$"&&A.setAttribute("disable-upgrade","");A.localName==="input"&&X==="value"&&A.setAttribute("value","");A.removeAttribute(X);J==="property"&&(O=_.bi(O));L=fCu(L);j0r(L,J,O,x);return!0}return O.slice(0,3)===
"on-"?(A.removeAttribute(O),(J=L).events!=null||(J.events=[]),L.events.push({name:O.slice(3),value:X}),!0):O==="id"?(L.id=X,!0):!1};
ICp=function(A){for(var L=[],O=0,X;(X=HRu.exec(A))!==null;){X.index>O&&L.push({type:"literal",value:A.slice(O,X.index)});var x=X[1][0];O=!!X[2];X=X[3].trim();if(x==="{")throw Error("Eg");(x=RNO(X))?L.push({type:"method",negate:O,signature:x}):L.push({type:"path",negate:O,path:X});O=HRu.lastIndex}O&&O<A.length&&(A=A.substring(O))&&L.push({type:"literal",value:A});return L};
ZRr=function(A){for(var L="",O=0;O<A.length;O++){var X=A[O];X.type==="literal"&&(L+=X.value)}return L};
j0r=function(A,L,O,X){A.bindings!=null||(A.bindings=[]);A.bindings.push({kind:L,target:O,parts:X})};
aC_=function(A,L,O){var X=!1;if(A.localName==="template"){X=O;var x=L.stripWhitespace;x=zNO(A,x===void 0?!1:x);var J=A.content.ownerDocument.createDocumentFragment();x.content=J;J.appendChild(A.content);X&&(X.templateInfo=x);X=!0}else A.localName==="slot"&&(L.hasInsertionPoint=!0);if(A.firstChild&&(x=O,A.localName!=="script"&&A.localName!=="style")){J=0;for(var Y=A.firstChild;Y;){var T=Y;if(T.localName==="template"){var V=T.getAttribute("is");if((Y=V==="dom-if")||V==="dom-repeat"){T.removeAttribute("is");
V=T.ownerDocument.createElement("ps-"+V);T.parentNode.replaceChild(V,T);V.appendChild(T);var E=Array.from(T.attributes);E=_.d(E);for(var n=E.next();!n.done;n=E.next())n=n.value,Y?B3r.has(n.name)&&jq(V,n.value,n.name):MGM.has(n.name)?jq(V,n.value,n.name):$pr.has(n.name),T.removeAttribute(n.name);Y=V}else Y=T}if(Y.nodeType===Node.TEXT_NODE){T=void 0;V=A;for(E=Y;((T=E.nextSibling)==null?void 0:T.nodeType)===Node.TEXT_NODE;)n=void 0,(n=E).textContent!=null||(n.textContent=""),E.nextSibling.textContent&&
(E.textContent+=E.nextSibling.textContent),V.removeChild(E.nextSibling);if(L.stripWhitespace&&Y.textContent&&!Y.textContent.trim()){A.removeChild(Y);Y=Y.nextSibling;continue}}aC_(Y,L,{parentIndex:J,parentInfo:x});Y.parentNode&&J++;Y=Y.nextSibling}}var t;if((t=A.hasAttributes)==null?0:t.call(A)){t=O=fCu(O);x=!1;J=Array.from(A.attributes);J=_.d(J);for(T=J.next();!T.done;T=J.next())T=T.value,x=Wpr(A,t,T.name,T.value)||x;X=x||X}A.nodeType===Node.TEXT_NODE&&(t=ICp(A.textContent),t.length&&(A.textContent=
ZRr(t)||" ",O=fCu(O),j0r(O,"text","textContent",t),X=!0));O&&X&&(O.infoIndex=L.nodeInfoList.push(O)-1)};
zNO=function(A,L){L={nodeInfoList:[],stripWhitespace:(L===void 0?!1:L)||A.hasAttribute("strip-whitespace")};aC_(A.content,L);return L};
kxp=function(A){Object.assign(A,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
vms=function(A,L,O){L.signalCache!=null||(L.signalCache={});var X=L.signalCache[O];if(!X){var x=O.split(".");X=!UpJ(A,x[0]);if(x.length>1&&X){var J=A.getPathMutationSignal(x);X=function(){var Y=cu(A.owner,function(){return A.getWithPath([x[0]])}),T,V=(T=J())==null?void 0:T.value;
return{rootWasDefined:Y!==void 0,value:V}}}else X=function(){var Y=A.getWithPath(x);
return{rootWasDefined:Y!==void 0,value:Y}};
L.signalCache[O]=X}return X()};
Am9=function(A,L,O,X,x){L=L.parts.map(function(Y,T){if(Y.type==="literal"){O.partWasDefined!=null||(O.partWasDefined=[]);var V;(V=O.partWasDefined)[T]||(V[T]=Y.value!==void 0);return Y.value}var E;if(Y.type==="method"){var n,t=(n=(E=O.partWasDefined)==null?void 0:E[T])!=null?n:!1;t||(t=Y.signature.args.every(function(w){return w.type==="literal"}));
var b=!1,S=!0;E=Y.signature.args.map(function(w){if(w.type==="literal")return w.value;if(w.type!=="path")throw Error("Fg`"+w.type);var l=vms(A,O,w.path);w=l.value;l=l.rootWasDefined;b||(b=l);S&&(S=l);return w});
t||(t=x===1?S:b);O.partWasDefined!=null||(O.partWasDefined={});O.partWasDefined[T]=t;if(!t)return;E=(T=vms(A,O,Y.signature.methodName).value)&&typeof T==="function"?T.apply(X,E):void 0}else n=vms(A,O,Y.path),E=n.value,O.partWasDefined!=null||(O.partWasDefined={}),(t=O.partWasDefined)[T]||(t[T]=E!==void 0||n.rootWasDefined);Y.negate&&(E=!E);return E});
if(L.length===1){var J;return((J=O.partWasDefined)==null?0:J[0])?L[0]:omP}return L.join("")};
LmP=function(A){return typeof A==="object"&&!!A&&"notifyPath"in A&&"canNotifyPath"in A};
Opy=function(A){return typeof A==="object"&&!!A&&"notifyPath"in A};
XAP=function(A){return"polymerController"in A};
xtP=function(A,L){L=""+ZB(L)[0];if(LmP(A))return A.canNotifyPath(L);if(XAP(A)&&LmP(A.polymerController))return A.polymerController.canNotifyPath(L);if(Opy(A)){var O;return!((O=A.properties)==null||!O[L])}if(XAP(A)&&Opy(A.polymerController)){var X;return!((X=A.polymerController.properties)==null||!X[L])}return!1};
sxu=function(A,L,O){LmP(A)||Opy(A)?A.notifyPath(L,O):XAP(A)&&(LmP(A.polymerController)||Opy(A.polymerController))&&A.polymerController.notifyPath(L,O)};
PZp=function(A,L,O){if(O!==omP){A.kind==="attribute"||A.target!=="textContent"&&(A.target!=="value"||L.localName!=="input"&&L.localName!=="textarea")||(O=O===void 0?"":O);var X,x=(X=Jmr.Polymer)==null?void 0:X.sanitizeDOMValue;x&&(O=x(O,A.target,A.kind,L));if(A.kind==="attribute"){A=A.target;if(A==="class"||A==="name"||A==="slot")L=(0,_.DB)(L);jq(L,O,A)}else if(A=A.target,O!==L[A]||typeof O==="object")L.loggingStatus&&(L.loggingStatus.isDeclarativeExternal=!0,K4(L.localName,A,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
L[A]=O,L.loggingStatus&&(L.loggingStatus.isDeclarativeExternal=!1)}};
dte=function(A,L,O,X){var x=L.parts[0];if(L.parts.length!==1||x.type!=="path"||!xtP(O,L.target))return!1;var J=_.d(x.path.split(".")),Y=J.next().value,T=MY(J);if(UpJ(A,Y))return!1;X.signalCache!=null||(X.signalCache={});J=X.signalCache[x.path];var V;J=(V=J)==null?void 0:V().value;if((J==null?void 0:J.path)!==void 0){X=ZB(J.path);var E=ZB(x.path);X=[L.target].concat(_.le(X.slice(E.length-1)));sxu(O,X,x.negate?!J.value:J.value);return!0}var n=WD(A,Y);var t=n.getChangeRecordSignal(T),b=!1;J=function(){if(!b){var w=
cu(A.owner,function(){return n.getWithPath([])});
b||(b=w!==void 0)}return{value:t(),rootWasDefined:b}};
X.signalCache[x.path]=J;X.partWasDefined!=null||(X.partWasDefined={});J=J();(E=X.partWasDefined)[0]||(E[0]=J.rootWasDefined);var S=cu(A.owner,function(){return n.getWithPath(T)});
X.partWasDefined[0]&&cu(A.owner,function(){return void PZp(L,O,x.negate?!S:S)});
return!0};
YWd=function(A,L,O,X,x,J){if(!dte(A,L,O,X)){var Y=Am9(A,L,X,x,J);cu(A.owner,function(){return void PZp(L,O,Y)})}};
u1u=function(A,L,O,X,x,J){O=_.d(O);for(var Y=O.next(),T={};!Y.done;T={infoIndex:void 0},Y=O.next()){Y=Y.value;var V=Y.bindings;T.infoIndex=Y.infoIndex;Y=Y.parentInfo;if(V){V=_.d(V);for(var E=V.next(),n={};!E.done;n={b$jscomp$253:void 0,bindingCtx$jscomp$4:void 0},E=V.next()){n.b$jscomp$253=E.value;if(T.infoIndex===void 0)throw Error("Gg");n.bindingCtx$jscomp$4={};A.effect(function(t,b){return function(){x&&!x()||YWd(A,t.b$jscomp$253,L[b.infoIndex],t.bindingCtx$jscomp$4,X,J)}}(n,T))}}Y&&u1u(A,L,[Y],
X,x,J)}};
T2u=function(A,L){A=(L.parentInfo?T2u(A,L.parentInfo):A).firstChild;for(var O=0;A;A=A.nextSibling)if(L.parentIndex===O++)return A;throw Error("Hg");};
Dtd=function(A,L,O,X){A=document.importNode(A.content,!0);A.__noInsertionPoint=!(X==null?0:X.hasInsertionPoint);for(var x=Array(L.length),J={},Y=0;Y<L.length;Y++){var T=L[Y],V=T2u(A,T);x[Y]=V;T.id&&(J[T.id]=V);if(T.templateInfo){var E=V.parentElement;E&&(E.templateInfo=T.templateInfo,E.parentSignalProxy=O,E.eventListenerHost=X.eventListenerHost,E.stampingEnabled=X.enabledSignal)}E=void 0;if((E=T.events)==null?0:E.length)for(E=0;E<T.events.length;E++){var n=T.events[E];ViO(X.eventListenerHost,V,n.name,
n.value,X.getModel)}}u1u(O,x,L,X.thisCtx,X.enabledSignal,X.methodInvocationRequirement);return{root:A,nodes:x,nodesById:J}};
EPd=function(A,L){A=A();var O;(O=ehy.ShadyCSS)==null||O.prepareTemplate(A,L);L=zNO(A);return{template:A,nodeInfoList:L.nodeInfoList,hasInsertionPoint:L.hasInsertionPoint}};
bpP=function(){nPD=!1;for(var A=HD.length,L=0;L<A;L++){var O=HD[L];if(O)try{O()}catch(X){Promise.resolve().then(function(){throw X;})}}HD.splice(0,A);
tiM+=A};
gPr=function(A){nPD||(nPD=!0,hhO.textContent=(SWp++).toString());HD.push(A);return qWD++};
_.MR=function(A,L,O){zK++;A=L?new wAy(zK,A,L,O):new pA9(zK,A);BD.set(zK,A);return zK};
ipu=function(A){(A=BD.get(A))&&A.cancel()};
rmP=function(A,L){A=N2M.get(A);return A?(L=A.get(L))?L:null:null};
_.$J=function(A,L,O,X){var x=rmP(A,L);if(!x){x=new Kme;var J=N2M.get(A);J||(J=new Map,N2M.set(A,J));J.set(L,x)}A=O.bind(A);x.run(A,X,void 0)};
_.GL9=function(A,L){var O;(O=rmP(A,L))==null||O.cancel()};
l0p=function(A){var L;(L=rmP(A,"doRender"))==null||L.flush()};
aJ=function(A){var L;return(L=A.hostElement)!=null?L:A};
cmO=function(A){var L=A.indexOf(".");return L===-1?A:A.slice(0,L)};
CZp=function(A,L,O,X,x,J){J=(x=(X=J?cmO(L):L)?L:null)?A.get(x):A.__data[L];x&&J===void 0&&(J=O[L]);_.P4(A.hostElement,Xgp(X)+"-changed",{value:J,queueProperty:!0,path:x!=null?x:void 0},{bubbles:!1,composed:!1})};
FmM=function(A,L){A.__isReflecting=!0;Q0M(A.hostElement,L,A.__data[L]);A.__isReflecting=!1};
RhP=function(A){if(A._onIronRequestResizeNotifications){var L=A._onIronRequestResizeNotifications.bind(A);A._onIronRequestResizeNotifications=function(O){_.AT(O)!==A.hostElement&&L(O)}}A._ariaActiveAttributeChanged&&(A._ariaActiveAttributeChanged=A._ariaActiveAttributeChanged.bind(A.hostElement));
A._activeChanged&&(A._activeChanged=function(O){A.toggles?jq(A.hostElement,O?"true":"false",A.ariaActiveAttribute):A.hostElement.removeAttribute(A.ariaActiveAttribute);A._changedButtonState()});
A._asyncClick&&(A._asyncClick=function(){_.MR(function(){A.hostElement.click()},1)});
!A.keyEventTarget||A.keyEventTarget instanceof EventTarget||(A.keyEventTarget=aJ(A.keyEventTarget));A._disabledChanged&&(A._disabledChanged=A._disabledChanged.bind(A.hostElement));A._observeItems&&(A._observeItems=function(O){var X=aJ(O);return _.ii(X).observeNodes(function(x){A._updateItems();A._updateSelected();_.P4(X,"iron-items-changed",x,{bubbles:!1,cancelable:!1})})});
A._updateItems&&A._updateItems===_.kJ._updateItems&&(A._updateItems=function(){var O=_.ii(A.hostElement).queryDistributedElements(A.selectable||"*");O=Array.prototype.filter.call(O,A._bindFilterItem);A._setItems(O)});
A._computeKeyboardClass&&(A._computeKeyboardClass=function(O){_.TK(A.hostElement,"keyboard-focus",O)});
A.ensureRipple&&(A.ensureRipple=function(O){if(A.hasRipple&&!A.hasRipple()){if(!A._createRipple)return;A._ripple=A._createRipple();A._ripple.noink=A.noink;var X=A._rippleContainer||A.hostElement;X&&_.YJ(X).appendChild(A._ripple)}var x;if(O&&((x=A._ripple)==null?0:x.uiDownAction)){X=_.YJ(A._rippleContainer||A.hostElement);var J;x=(J=O.composedPath())==null?void 0:J[0];X.contains(x)&&A._ripple.uiDownAction(O)}});
A._updateMultiselectable&&(A._updateMultiselectable=function(O){O?A.hostElement.setAttribute("aria-multiselectable","true"):A.hostElement.removeAttribute("aria-multiselectable")})};
QxP=function(A,L,O){O=_.d(O);for(var X=O.next();!X.done;X=O.next())Ypu(X.value.constructor,A);Ypu(L.constructor,A)};
f0P=function(A,L){A=_.d(A);for(var O=A.next();!O.done;O=A.next())if(O=O.value,O.type==="signal"){var X=O.propertyKey;if(L.hasOwnProperty(X)&&L[X]!=null&&O.attributeType===Object){a:{X=L[X].constructor;for(var x=_.d(mtr),J=x.next();!J.done;J=x.next())if(J=J.value,X===J){X=J;break a}X=Object}O.attributeType=X}}};
I0D=function(){};
ymy=function(A){var L;return(L=A.hostElement)!=null?L:A};
Zp9=function(){throw Error("Lg");};
jxM=function(A,L){A.constructor.prototype.useSignals=!0;var O=new A.constructor;QxP(O,A,L.behaviors);f0P(L.reactiveSchemas,O);O={};for(var X=_.d(L.reactiveSchemas),x=X.next();!x.done;x=X.next())x=x.value,x.type==="signal"&&(O[x.propertyKey]=x.attributeType);var J={copyPropertiesToProto:Zp9,didRegister:!1,typesForSignals:O},Y=["disable-upgrade"].concat(_.le(L.observedAttributes)),T=function(V){Ub.call(this,A,L,J,V)};
_.g(T,Ub);_.v2.Object.defineProperties(T,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return Y}}});
J.copyPropertiesToProto=function(){for(var V=0;V<L.behaviors.length;V++)T3p(L.behaviors[V],T.prototype);T3p(A,T.prototype)};
L.legacyOptimizations||J.copyPropertiesToProto();T.prototype.is=A.is;return T};
WmM=function(A,L){if(Object.getPrototypeOf(L.prototype).constructor!==_.G)throw Error("Mg");L.prototype.is=A.is;return jxM(L.prototype,A)};
Hps=function(A){return A.type==="compute"||A.type==="computeWithMethod"};
zhs=function(A){for(var L=A.reactiveSchemas.filter(Hps),O=new Map,X=new Map,x=new Map,J=_.d(L),Y=J.next();!Y.done;Y=J.next())Y=Y.value,O.set(Y.propertyKey,Y),X.set(Y.propertyKey,[]),x.set(Y.propertyKey,0);J=0;L=_.d(L);for(Y=L.next();!Y.done;Y=L.next()){Y=Y.value;for(var T=_.d(Y.type==="computeWithMethod"?Y.method.args:Y.args),V=T.next();!V.done;V=T.next())V=V.value,V.type!=="literal"&&(V=V.path.split(".")[0],X.has(V)&&(X.get(V).push(Y.propertyKey),x.set(Y.propertyKey,x.get(Y.propertyKey)+1),J++))}Y=
[].concat(_.le(X.keys())).filter(function(E){return x.get(E)===0});
for(L=[];Y.length;)for(T=Y.shift(),L.push(O.get(T)),T=_.d(X.get(T)),V=T.next();!V.done;V=T.next())V=V.value,x.set(V,x.get(V)-1),J--,x.get(V)===0&&Y.push(V);O=A.reactiveSchemas.filter(function(E){return!Hps(E)});
A.reactiveSchemas=[].concat(_.le(O),_.le(L))};
B2_=function(A,L){if(L.properties)for(var O=_.d(Object.entries(L.properties)),X=O.next();!X.done;X=O.next()){var x=_.d(X.value);X=x.next().value;x=x.next().value;A.properties[X]=typeof x==="function"?{type:x}:x}L.observers&&A.observers.push.apply(A.observers,_.le(L.observers));L.disabledPolySiReactions&&A.disabledPolySiReactions.push.apply(A.disabledPolySiReactions,_.le(L.disabledPolySiReactions))};
Miy=function(A,L){for(var O=L.length-1;O>=0;O--){var X=L[O];Array.isArray(X)?Miy(A,X):A.indexOf(X)<0&&A.unshift(X)}};
$tP=function(A,L){A.reactiveSchemas=A.reactiveSchemas.filter(function(O){return O.type==="observe"&&L.includes(O.method.methodName)||Hps(O)&&L.includes(O.propertyKey)?!1:!0})};
kLd=function(A,L){var O=L.prototype,X,x,J={is:A.is,reactiveSchemas:[],observedAttributes:[],behaviors:[XtD.InjectBehavior,f4.prototype],disableElementRegistration:A.disableElementRegistration,provide:(X=A.providers)!=null?X:[],reactivityMode:A.reactivityMode,signalProperties:(x=O.signalProperties)!=null?x:[]};"template"in L?J.templateGetter=function(){return L.template}:A.getTemplate&&(J.templateGetter=A.getTemplate);
O.behaviors&&Miy(J.behaviors,O.behaviors);a0u(J,L);return J};
a0u=function(A,L){for(var O=L.prototype,X={properties:{},observers:[],disabledPolySiReactions:[]},x=_.d(A.behaviors),J=x.next();!J.done;J=x.next())B2_(X,J.value);B2_(X,O);if(A.signalProperties)for(O=_.d(A.signalProperties),x=O.next();!x.done;x=O.next())delete X.properties[x.value];O=_.d(Object.entries(X.properties));for(x=O.next();!x.done;x=O.next()){J=_.d(x.value);x=J.next().value;J=J.next().value;var Y=void 0;if((Y=A.signalProperties)==null||!Y.includes(x)){Y=void 0;var T=A,V=J.type;if(!V)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{V=Reflect.getMetadata("design:type",L,x);for(var E=_.d(UtP),n=E.next();!n.done;n=E.next())if(n=n.value,V===n){V=n;break a}V=Object}else V=String;J.computed||J.selector||(T.reactiveSchemas.push({type:"signal",propertyKey:x,value:J.value,attributeType:V,readOnly:J.readOnly}),T.observedAttributes.push(_.t9(x)));J.reflectToAttribute&&T.reactiveSchemas.push({type:"reflect",propertyKey:x});if(J.computed){V=RNO(J.computed);if(!V)throw Error("Ng");T.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:x,method:V,value:J.value})}J.observer&&T.reactiveSchemas.push({type:"observe",method:{methodName:J.observer,args:[{type:"path",path:x}]}});J.notify&&T.reactiveSchemas.push({type:"notify",propertyKey:x});J.selector&&T.reactiveSchemas.push({type:"redux",propertyKey:x,selector:J.selector,selectorArgs:(Y=J.selectorArgs)!=null?Y:[]})}}vP_&&zhs(A);L=_.d(X.observers);for(x=L.next();!x.done;x=L.next())O=A,x=x.value,(J=RNO(x))?O.reactiveSchemas.push({type:"observe",method:J}):console.log('Warning: unable to parse observe declaration: "'+
x+'"');$tP(A,X.disabledPolySiReactions)};
oP_=function(A,L){for(var O=0;O<L.length;O++){var X=L[O],x=void 0;(x=X).showHideApi!=null||(x.showHideApi={});x=void 0;!!A!==!((x=X.showHideApi)==null||!x.hideTemplateChildren)&&(X.nodeType===Node.TEXT_NODE?A?(X.showHideApi.polymerTextContent=X.textContent,X.textContent=""):(x=void 0,X.textContent=(x=X.showHideApi.polymerTextContent)!=null?x:null):X instanceof Element&&X.localName==="slot"?A?(X.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.DB)((0,_.DB)(X).parentNode).replaceChild(X.showHideApi.polymerReplaced,
X)):(x=X.showHideApi.polymerReplaced)&&(0,_.DB)((0,_.DB)(x).parentNode).replaceChild(X,x):X instanceof HTMLElement&&X.style&&(A?(X.showHideApi.polymerDisplay=X.style.display,X.style.display="none"):X.style.display=X.showHideApi.polymerDisplay));X.showHideApi.hideTemplateChildren=A;X.showHideChildren&&X.showHideChildren(A)}};
LXu=function(){if(!Ap_){var A=document.createElement("style");A.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(A);Ap_=!0}};
vD=function(){return _.h("disable_hidden_dom_if_using_stamper")};
OxO=function(A,L){var O=_.oJ().getState();return L?A.apply(null,[O].concat(_.le(L))):A(O)};
sc_=function(){if(X7M)return X7M;var A=_.d(_.uQ(0,void 0,"Nl6eIe")),L=A.next().value;A.next();var O=A.next().value;_.oJ().subscribe(function(){xWy(O)});
return X7M=L};
xWy=function(A){_.h("delay_redux_signal_update_killswitch")?A(function(L){return L+1}):JpD||(JpD=!0,Promise.resolve().then(function(){A(function(L){return L+1});
JpD=!1}))};
_.oJ=function(){return PYD.getAppStore()};
dWP=function(A,L){return PYD.getSelectFn()(A,L)};
_.At=function(A){PYD.getDispatchFn()(A)};
Ylu=function(A,L){var O={},X;for(X in A)O[X]=L(A[X],X);return O};
_.LT=function(A,L){return function(){var O;return(O=_.GV(A))!=null?O:L}};
_.OY=function(A,L){var O=Object.assign({},A),X;for(X in L)L.hasOwnProperty(X)&&(O[X]=_.LT(A[X],L[X]));return O};
u3r=function(A,L,O){A instanceof Element&&(O.debugName||(O.debugName="<"+A.tagName.toLowerCase()+(A.tagName.includes("-")?">":"."+A.className+">")),_.h("ytwiz_enable_debug_component_props")&&(A.debugProps||(A.debugProps=Ylu(L,function(X){return function(){return X()}}))))};
Ts9=function(A){var L;if(!(L=XI.traceAllComponents)){var O;L=(O=ok)==null?void 0:O.activeSpan;L=(L==null?void 0:L.name)!=="ytComponent"}return L?f2_("ytComponent",{},A):A()};
_.xa=function(A,L){var O=function(X){return Ts9(function(x){var J=Vj9={};var Y;if(((Y=O)==null?0:Y.idomCompat)&&X.renderedFromIdom){var T;Y=typeof O.idomCompat==="object"?(T=O)==null?void 0:T.idomCompat.callbacks:{};Y=_.d(DWO(X,Y,O.debugName));T=Y.next().value;Y.next();Y=Y.next().value;var V=eHp(A,T);J.privateValue=V;Vj9=void 0;u3r(V,T,O);J={debugName:O.debugName};x&&J&&Object.assign(x.attributes,J);x=zLJ(V);x=Array.isArray(x)?x[0]:x;x[TD]||(x[TD]={});x[TD].updateSignalsFromIdomProps=Y;EUM(T,V);return V}Y=
Ylu(X,nUu);T=eHp(A,Y);J.privateValue=T;Vj9=void 0;u3r(T,Y,O);J={debugName:O.debugName};x&&J&&Object.assign(x.attributes,J);EUM(Y,T);return T})};
O.debugName=L===void 0?"":L;return O};
eHp=function(A,L){A=A(L);return nB(A)};
tjD=function(A,L){A[L]||(A=new _.pe("IDOM interop setter undefined. Key:",L),_.C7(A))};
nUu=function(A,L){return L==="children"||L==="ref"||typeof A==="function"||A===void 0?A:function(){return _.GV(A)}};
DWO=function(A,L,O){var X={},x={},J={},Y={},T;for(T in A){Y={key$jscomp$923:Y.key$jscomp$923};Y.key$jscomp$923=T;var V=A[Y.key$jscomp$923];if(Y.key$jscomp$923==="children"||Y.key$jscomp$923==="ref")X[Y.key$jscomp$923]=V;else if(typeof V==="function")Y.key$jscomp$923 in L||V.length>0?(J[Y.key$jscomp$923]=V,X[Y.key$jscomp$923]=function(n){return function(){return J[n.key$jscomp$923].apply(J,_.le(_.f_.apply(0,arguments)))}}(Y)):X[Y.key$jscomp$923]=V;
else if(!(A[Y.key$jscomp$923]===void 0&&Y.key$jscomp$923 in L)){var E=_.d(_.uQ(A[Y.key$jscomp$923],{debugName:Y.key$jscomp$923+":cwis:"+O},"rvrjQe"));V=E.next().value;E=E.next().value;X[Y.key$jscomp$923]=V;x[Y.key$jscomp$923]=E}}return[X,x,function(n){var t={},b;for(b in n)t={key$jscomp$924:t.key$jscomp$924,val$jscomp$121:void 0},t.key$jscomp$924=b,t.val$jscomp$121=n[t.key$jscomp$924],t.key$jscomp$924!=="children"&&t.key$jscomp$924!=="ref"&&(typeof t.val$jscomp$121==="function"?t.key$jscomp$924 in
L?J[t.key$jscomp$924]=t.val$jscomp$121:t.val$jscomp$121.length>0&&(J[t.key$jscomp$924]=t.val$jscomp$121,_.Rv(new _.pe("Callback detected that was not set in the idomCompat callbacks map. Key:",t.key$jscomp$924))):t.key$jscomp$924 in L&&t.val$jscomp$121===void 0||(tjD(x,t.key$jscomp$924),nr(function(S){return function(){x[S.key$jscomp$924](S.val$jscomp$121)}}(t))))}]};
SlP=function(A,L,O){var X=Tku(A.prototype,bxM,A.prototype.behaviors);X.prototype.is=L;X.prototype.localName=L;O&&hHM(X,O);return function(x){x&&(X.prototype.hostElement=x);var J=new X;J.root=J;J.hostElement=x;return J}};
hHM=function(A,L){var O;Object.defineProperty(A.prototype,"_template",{get:function(){O===void 0&&(O=L());return O},
set:function(X){O=X},
configurable:!0,enumerable:!0})};
ixu=function(A,L,O,X){function x(){if(!S){for(var w=new Set,l=_.d(n),F=l.next();!F.done;F=l.next()){F=F.value;for(var R=_.d(Object.getOwnPropertyNames(F)),y=R.next();!y.done;y=R.next()){y=y.value;var M=void 0,H=(M=Object.getOwnPropertyDescriptor(F,y))==null?void 0:M.value;H&&H instanceof Function&&!sY(y)&&(!T[y]||_.h("polymer_forward_method_killswitch"))&&w.add(y)}}l=_.d(Object.entries(Object.getOwnPropertyDescriptors(A.prototype)));for(F=l.next();!F.done;F=l.next())R=_.d(F.value),F=R.next().value,
R=R.next().value,R.value instanceof Function&&!sY(F)&&w.add(F);S=w}return S}
qlp(A,L,X==null?void 0:X.providers);VuO(A.prototype,A,!0);var J=SlP(A,L,O),Y,T=(Y=A.prototype.properties)!=null?Y:{},V,E,n=(E=(V=A.prototype.behaviors)==null?void 0:V.flat(Infinity))!=null?E:[];O=_.d(n);for(Y=O.next();!Y.done;Y=O.next())T=Object.assign({},Y.value.properties,T);var t=[].concat(_.le(gUu),_.le(Object.keys(T).map(function(w){return _.t9(w)}))),b=!1,S;
return{ctor:function(w,l){var F=J(w),R,y;w=[].concat(_.le((R=X==null?void 0:X.allowedProps)!=null?R:[]),_.le((y=X==null?void 0:X.allowedPropsFromBehaviors)!=null?y:[]));F.allowedProps=w.length>0?w:void 0;R={};y=_.d(t);for(w=y.next();!w.done;w=y.next())w=w.value,R[w]=_.bi(w);F.__dataAttributes=R;var M=F.ready.bind(F);F.ready=function(){l.beforeReady();M();if(NR(L)&&!b){var H=F.__templateInfo;if(H==null?0:H.hostProps){H=_.d(Object.keys(H.hostProps));for(var z=H.next();!z.done;z=H.next())K4(L,z.value,
"PROPERTY_ACCESS_GET_INTERNAL")}b=!0}};
F._overrideLegacyUndefined=!0;return F},
props:T,observedAttributes:t,getInitialMethods:x,getPropsToForwardBeforeRegister:function(){for(var w=[],l=new Set,F=_.d(Object.keys(T)),R=F.next();!R.done;R=F.next())R=R.value,w.push([R,T[R].readOnly]),l.add(R);F=x();R=_.d(Object.keys(Object.getOwnPropertyDescriptors(A.prototype)));for(var y=R.next();!y.done;y=R.next())y=y.value,!w7u(y)||F.has(y)||l.has(y)||(w.push([y,!1]),l.add(y));l=_.d(p7e);for(F=l.next();!F.done;F=l.next())w.push([F.value,!0]);return w},
getPropsToForwardBeforeReady:function(w){for(var l=[],F=_.d(Object.entries(w)),R=F.next();!R.done;R=F.next()){var y=_.d(R.value);R=y.next().value;y=y.next().value;if(w7u(R)&&!(y instanceof Function)&&(l.push([R,!1]),NR(L))){var M=y=void 0;(M=(y=w)._createPropertyAccessor)==null||M.call(y,R)}}return l},
shouldForwardProp:w7u,shouldLog:NR}};
qlp=function(A,L,O){xpu(A,O);A.prototype.behaviors.unshift(NsO);if(zKO()){if(NR(L)){var X;(X=A.prototype).behaviors!=null||(X.behaviors=[]);A.prototype.behaviors.unshift(aRM())}kGp(A)}_.N(f4.prototype)(A.prototype,"__templateHelpers")};
sY=function(A){return rp9.has(A)||A.startsWith("__compute__")};
w7u=function(A){return!sY(A)&&!A.startsWith("_")&&!A.endsWith("_")};
CYs=function(A,L){function O(){var b=V();b=_.d(b);for(var S=b.next();!S.done;S=b.next()){var w=_.d(S.value);S=w.next().value;w=w.next().value;KXJ(t.prototype,S,w)}X=!0}
var X=!1,x=A.ctor,J=A.getInitialMethods,Y=A.observedAttributes,T=A.getPropsToForwardBeforeReady,V=A.getPropsToForwardBeforeRegister,E=A.shouldForwardProp,n=A.shouldLog,t=function(){var b=HTMLElement.call(this)||this;b.didForwardDynamicProps=!1;b.loggingStatus={};X||O();b.inst=x(b,{beforeReady:function(){b.didForwardDynamicProps||(b.forwardDynamicProps(),b.didForwardDynamicProps=!0)}});
b.controllerProxy=MCO(b.inst,L);b.forwardMethods();return b};
_.g(t,HTMLElement);t.prototype.forwardMethods=function(){for(var b=this,S=_.d(this.inst.getExtraMethodsToForward()),w=S.next(),l={};!w.done;l={method$jscomp$64:void 0},w=S.next()){var F=_.d(w.value);w=F.next().value;F=F.next().value;l.method$jscomp$64=F;this[w]=function(R){return function(){return R.method$jscomp$64.call.apply(R.method$jscomp$64,[b.inst].concat(_.le(_.f_.apply(0,arguments))))}}(l)}S=_.d(J());
for(l=S.next();!l.done;l=S.next())l=l.value,E(l)&&GpO(this,l),n(L)&&!sY(l)&&ls9(this.inst,l)};
t.prototype.forwardDynamicProps=function(){var b=T(this.inst);b=_.d(b);for(var S=b.next();!S.done;S=b.next()){var w=_.d(S.value);S=w.next().value;w=w.next().value;KXJ(this,S,w);n(L)&&!sY(S)&&cp9(this.inst,S)}};
t.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
t.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
t.prototype.attributeChangedCallback=function(b,S,w){this.inst.attributeChangedCallbackWrapper(b,S,w)};
_.v2.Object.defineProperties(t.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return L}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.v2.Object.defineProperties(t,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return Y}}});
customElements.define(L,t)};
KXJ=function(A,L,O){A.hasOwnProperty(L)||Object.defineProperty(A,L,{get:function(){var X,x=((X=A.is)!=null?X:A.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||K4(x,L,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,X=this.polymerController[L],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,X},
set:function(X){if(!O){var x,J=((x=A.is)!=null?x:A.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||K4(J,L,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=L,this.loggingStatus.bypassProxyController=!0,this.polymerController[L]!==X&&(x={},this.polymerController.setProperties((x[L]=X,x)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
GpO=function(A,L,O){var X=A.polymerController;A[L]=function(){var x=_.f_.apply(0,arguments);A.loggingStatus.currentExternalCall=L;A.loggingStatus.bypassProxyController=!0;var J,Y=((J=A.is)!=null?J:A.tagName).toLowerCase();K4(Y,L,"PROPERTY_ACCESS_CALL_EXTERNAL");var T;J=(T=O!=null?O:X[L])==null?void 0:T.call.apply(T,[X].concat(_.le(x)));A.loggingStatus.currentExternalCall=void 0;A.loggingStatus.bypassProxyController=!1;return J}};
ls9=function(A,L){var O=A.hostElement,X=A[L];A[L]=function(){var x=_.f_.apply(0,arguments);if(O.loggingStatus.currentExternalCall!==L){var J,Y=((J=O.is)!=null?J:O.tagName).toLowerCase();K4(Y,L,"PROPERTY_ACCESS_CALL_INTERNAL")}return X==null?void 0:X.apply(A,x)}};
cp9=function(A,L){var O=Object.getOwnPropertyDescriptor(A,L);O&&!O.get&&Object.defineProperty(A,L,{get:function(){$Ld(A.hostElement,L);return O.value},
set:function(X){GK(A.hostElement,L);O.value=X}})};
FXe=function(A){return _.h("poly_si_dom_repeat_detached_fix_killswitch")||A.tagName!=="PS-DOM-REPEAT"?A.tagName==="DOM-REPEAT":!0};
QcO=function(A,L){var O=RHs(A);A instanceof Element&&O.unshift(A);A=_.d(O.filter(FXe));for(var X=A.next();!X.done;X=A.next()){var x=void 0;X=_.d((x=X.value.__instances)!=null?x:[]);for(x=X.next();!x.done;x=X.next())if(x=x.value,x.root){x=Array.from(x.root.children);x=_.d(x);for(var J=x.next();!J.done;J=x.next())O.push.apply(O,_.le(QcO(J.value,L)))}}return O.filter(function(Y){return Y.usePatchedLifecycles&&Y.lifecycleIsConnected===L})};
RHs=function(A){var L=null;A instanceof Element?L=Element.prototype.querySelectorAll:A instanceof DocumentFragment&&(L=DocumentFragment.prototype.querySelectorAll);return L?Array.from(L.call(A,"*")):[]};
Jt=function(A){YN(function(){for(var L=_.d(QcO(A,!1)),O=L.next();!O.done;O=L.next()){O=O.value;O.lifecycleIsConnected=!0;try{var X=void 0,x=void 0,J=void 0,Y=void 0;(X=(Y=O.polymerController)!=null?Y:O)==null||(J=(x=X).connectedCallback)==null||J.call(x)}catch(T){_.C7(T)}}})};
PR=function(A){YN(function(){for(var L=_.d(QcO(A,!0)),O=L.next();!O.done;O=L.next()){O=O.value;O.lifecycleIsConnected=!1;try{var X=void 0,x=void 0,J=void 0,Y=void 0;(X=(Y=O.polymerController)!=null?Y:O)==null||(J=(x=X).disconnectedCallback)==null||J.call(x)}catch(T){_.C7(T)}}})};
WXp=function(){if(!mW_){mW_=!0;var A=[Node];dW&&A.push(dW.Wrapper);var L=Node.prototype.insertBefore,O=Node.prototype.removeChild;A=_.d(A);for(var X=A.next(),x={};!X.done;x={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},X=A.next())X=X.value,x.nativeInsertBefore=X.prototype.insertBefore,X.prototype.insertBefore=function(Y){return function(T,V){if(T instanceof DocumentFragment){var E=Array.from(T.children);T=Y.nativeInsertBefore.call(this,T,V);
if(this.isConnected&&Y.nativeInsertBefore===L)for(V=_.d(E),E=V.next();!E.done;E=V.next())Jt(E.value);return T}E=T instanceof Element&&T.isConnected;V=Y.nativeInsertBefore.call(this,T,V);E&&PR(T);this.isConnected&&Jt(T);return V}}(x),x.nativeAppendChild=X.prototype.appendChild,X.prototype.appendChild=function(Y){return function(T){if(T instanceof DocumentFragment){var V=Array.from(T.children);
T=Y.nativeAppendChild.call(this,T);if(this.isConnected){V=_.d(V);for(var E=V.next();!E.done;E=V.next())Jt(E.value)}return T}V=T instanceof Element&&T.isConnected;E=Y.nativeAppendChild.call(this,T);V&&PR(T);this.isConnected&&Jt(T);return E}}(x),x.nativeRemoveChild=X.prototype.removeChild,X.prototype.removeChild=function(Y){return function(T){var V=T instanceof Element&&T.isConnected,E=Y.nativeRemoveChild.call(this,T);
V&&O===Y.nativeRemoveChild&&PR(T);return E}}(x),x.nativeReplaceChild=X.prototype.replaceChild,X.prototype.replaceChild=function(Y){return function(T,V){if(T instanceof DocumentFragment){var E=Array.from(T.children);
T=Y.nativeReplaceChild.call(this,T,V);if(this.isConnected)for(PR(V),V=_.d(E),E=V.next();!E.done;E=V.next())Jt(E.value);return T}E=T instanceof Element&&T.isConnected;var n=this.isConnected,t=Y.nativeReplaceChild.call(this,T,V);n&&PR(V);E&&PR(T);n&&Jt(T);return t}}(x);
A=[Element];dW&&A.push(dW.Wrapper);A=_.d(A);X=A.next();for(x={};!X.done;x={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},X=A.next())X=X.value,X.prototype.before=fsu(X.prototype.before),X.prototype.after=fsu(X.prototype.after),x.nativeReplaceWith=X.prototype.replaceWith,X.prototype.replaceWith=function(Y){return function(){var T=_.f_.apply(0,arguments),V=_.d(Isu(T)),E=V.next().value,
n=V.next().value;V=this.isConnected;Y.nativeReplaceWith.apply(this,T);T=_.d(n);for(n=T.next();!n.done;n=T.next())PR(n.value);if(V)for(PR(this),E=_.d(E),V=E.next();!V.done;V=E.next())V=V.value,V instanceof Element&&Jt(V)}}(x),x.nativeRemove=X.prototype.remove,X.prototype.remove=function(Y){return function(){var T=this.isConnected;
Y.nativeRemove.call(this);T&&PR(this)}}(x),x.nativeInsertAdjacentElement=X.prototype.insertAdjacentElement,X.prototype.insertAdjacentElement=function(Y){return function(T,V){var E=V.isConnected;
T=Y.nativeInsertAdjacentElement.call(this,T,V);E&&PR(V);T.isConnected&&Jt(T);return T}}(x),x.nativeSetAttribute=X.prototype.setAttribute,X.prototype.setAttribute=function(Y){return function(T,V){var E=ypO(this);
if(!E.usePatchedLifecycles)return Y.nativeSetAttribute.call(this,T,V);var n=this.getAttribute(T);Y.nativeSetAttribute.call(this,T,V);V=this.getAttribute(T);Zx_(E,T,n,V)}}(x),x.nativeRemoveAttribute=X.prototype.removeAttribute,X.prototype.removeAttribute=function(Y){return function(T){var V=ypO(this);
if(!V.usePatchedLifecycles)return Y.nativeRemoveAttribute.call(this,T);var E=this.getAttribute(T);Y.nativeRemoveAttribute.call(this,T);E!==null&&Zx_(V,T,E,null)}}(x),x.nativeToggleAttribute=X.prototype.toggleAttribute,X.prototype.toggleAttribute=function(Y){return function(T,V){var E=ypO(this);
if(!this.usePatchedLifecycles)return Y.nativeToggleAttribute.call(this,T,V);var n=this.getAttribute(T),t=n!==null;V=Y.nativeToggleAttribute.call(this,T,V);V!==t&&Zx_(E,T,n,V?"":null);return V}}(x);
A=[Document,DocumentFragment,Element,ShadowRoot];dW&&A.push(dW.Wrapper);A=_.d(A);for(x=A.next();!x.done;x=A.next())x=x.value,x.prototype.prepend=fsu(x.prototype.prepend),x.prototype.append=fsu(x.prototype.append);(dW==null?void 0:dW.noPatch)===!0&&jcs();document.readyState==="complete"?Jt(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&Jt(document.body)});
var J=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");J&&J.get&&J.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:J.enumerable,configurable:!0,get:J.get,set:function(Y){Y||PR(this);J.set.call(this,Y);return Y}})}};
fsu=function(A){return function(){var L=_.f_.apply(0,arguments),O=_.d(Isu(L)),X=O.next().value;O=O.next().value;A.apply(this,L);L=_.d(O);for(O=L.next();!O.done;O=L.next())PR(O.value);if(this.isConnected)for(X=_.d(X),L=X.next();!L.done;L=X.next())L=L.value,L instanceof Element&&Jt(L)}};
jcs=function(){for(var A=_.d(Hxu),L=A.next();!L.done;L=A.next()){L=L.value.prototype;for(var O=_.d(zHs),X=O.next();!X.done;X=O.next()){X=X.value;var x=Object.getOwnPropertyDescriptor(L,X);x&&Object.defineProperty(L,"__shady_native_"+X,x)}}};
Zx_=function(A,L,O,X){var x,J;if((x=A.polymerController)==null?0:(J=x.observedAttributes)==null?0:J.includes(L))if(A=A.polymerController,A.attributeChangedCallbackWrapper)A.attributeChangedCallbackWrapper.call(A,L,O,X);else{var Y;(Y=A.attributeChangedCallback)==null||Y.call(A,L,O,X)}};
Isu=function(A){var L=[],O=[];A=_.d(A);for(var X=A.next();!X.done;X=A.next())X=X.value,X instanceof Element&&X.isConnected&&O.push(X),X instanceof DocumentFragment?L.push.apply(L,_.le(Array.from(X.children))):L.push(X);return[L,O]};
ypO=function(A){return!(A instanceof Element)&&A.node instanceof Element?A.node:A};
Bs9=function(A,L){var O=L?["children"].concat(_.le(L)):["children"];L=[];O=_.d(O);for(var X=O.next();!X.done;X=O.next()){var x=X.value;if(A.hasOwnProperty(x)){X=A[x];X=typeof X==="function"?X():X;X=Array.isArray(X)?X:[X];X=nB(X).flat();if(x!=="children"){x=Xgp(x);for(var J=_.d(X),Y=J.next();!Y.done;Y=J.next())Y=Y.value,Y instanceof Element&&Y.setAttribute("slot",x)}L.push(X)}}L.length===0?A=[]:(A=nB(_.D("div",null,L)),A=Array.from(A.childNodes));return A};
$We=function(A,L,O){var X={};_.lQ(function(){var x={},J;for(J in L)if(L.hasOwnProperty(J)){var Y=void 0,T=void 0;if(!(((Y=O.slotProps)==null?0:Y.includes(J))||J==="children"||((T=O.callbackProps)==null?0:T.includes(J))||J==="ref")&&(Y=_.GV(L[J]),X[J]!==Y)){X[J]=Y;T=void 0;var V=(T=A.hostElement)!=null?T:A;MjJ.has(J)&&(V[J]=Y);x[J]=Y}}nr(function(){if(A.setProperties)A.setProperties(x);else for(var E=_.d(Object.entries(x)),n=E.next();!n.done;n=E.next()){var t=_.d(n.value);n=t.next().value;t=t.next().value;
A[n]=t}})})};
kpy=function(A,L,O,X){var x=Bs9(O,X.slotProps),J=(0,_.DB)(A);x=_.d(x);for(var Y=x.next();!Y.done;Y=x.next())J.appendChild(Y.value);$We(L,O,X);X=_.d(X.callbackProps||[]);x=X.next();for(J={};!x.done;J={kebabEventName:void 0,eventListener:void 0},x=X.next())Y=x=x.value,String(x).substring(0,2)==="on"&&O[Y]?(J.kebabEventName=Xgp(String(x).substring(2)),J.eventListener=O[Y],A.addEventListener(J.kebabEventName,J.eventListener),_.rF(function(n){return function(){A.removeEventListener(n.kebabEventName,n.eventListener)}}(J))):
L[Y]=O[Y];
if(O.ref){O=_.d(asJ(O.ref));var T=O.next().value,V=O.next().value,E=L.attached.bind(L);L.attached=function(){T(A);E()};
_.rF(function(){V()})}};
asJ=function(A){if(typeof A==="function"){var L;return[function(O){L=A(O)},
function(){var O;(O=L)==null||O()}]}if(!A.onRender||!A.onUnmount)throw Error("Rg");
return[A.onRender,A.onUnmount]};
AUe=function(A,L,O,X,x){X=X===void 0?{}:X;var J=UWp,Y=!1;J?(Y=!0,UWp=void 0):(vUe=L,J=document.createElement(L),vUe=void 0);var T=J;T.usePatchedLifecycles=!0;T.lifecycleIsConnected=!1;J.loggingStatus={};var V=oU_(A,L,J,X,x);_.rF(function(){T.lifecycleIsConnected&&(T.lifecycleIsConnected=!1,V.disconnectedCallback())});
Y||(_.h("sink_wrapper_disable_runtime_shadycss")&&(J.__noInsertionPoint=!0),kpy(J,V,O,X));return J};
oU_=function(A,L,O,X,x){x=x===void 0?ixu:x;LFy[L]!=null||(LFy[L]=x(A,L,X==null?void 0:X.getTemplate,X));var J=LFy[L],Y=J.ctor;x=J.getInitialMethods;var T=J.getPropsToForwardBeforeReady;A=J.getPropsToForwardBeforeRegister;X=J.shouldForwardProp;var V=J.observedAttributes,E=J.shouldLog,n=Y(O,{beforeReady:function(){var t=n;t._takeAttributes?t._takeAttributes():t.setPropertiesFromInitialAttributeValues&&t.setPropertiesFromInitialAttributeValues();t=_.d(T(O.polymerController));for(var b=t.next();!b.done;b=
t.next()){var S=_.d(b.value);b=S.next().value;S=S.next().value;KXJ(O,b,S);E(L)&&!sY(b)&&cp9(O.polymerController,b)}O.polymerController=MCO(n,L)}});
O.polymerController=n;O.polymerController.observedAttributes=V;J=_.d(n.getExtraMethodsToForward());for(Y=J.next();!Y.done;Y=J.next())V=_.d(Y.value),Y=V.next().value,V=V.next().value,GpO(O,Y,V);x=_.d(x());for(J=x.next();!J.done;J=x.next())J=J.value,X(J)&&GpO(O,J),E(L)&&!sY(J)&&ls9(n,J);A=_.d(A());for(X=A.next();!X.done;X=A.next())x=_.d(X.value),X=x.next().value,x=x.next().value,KXJ(O,X,x);return n};
XZr=function(A,L){return Ya===L?(A.isInert=!0,Ya="",!0):Ozs===L?(A.isInert=!0,Ozs="",!0):!1};
xMD=function(A){var L=uV;uV=A;return L};
JUP=function(A){if(Ti.has(A))Ozs=A;else if(Vz.has(A)&&uV&&sYD(uV)===A){var L;(L=uV)._numRenders!=null||(L._numRenders=0);uV._numRenders++;if(uV._numRenders>1)throw Error("Sg");return uV}};
P$d=function(A){Ti.has(sYD(A))?Ozs=sYD(A):Vz.has(sYD(A))&&uV!==A&&(A._isInert=!0)};
sYD=function(A){var L;return(L=A==null?void 0:A.tagName.toLowerCase())!=null?L:""};
dM9=function(A,L){if(A.componentType===gF)throw Error("Tg");Vz.add(L);var O=function(){var X=HTMLElement.call(this)||this;X.is=L;if(vUe===L)return X.isInert=!0,X;X.createElement();return X};
_.g(O,HTMLElement);O.prototype.createElement=function(){if(!this.isInert){UWp=this;var X=_.d(_.Efu(function(){return _.D(A,null)})).next().value;
UWp=void 0;kxp(this);return X}};
customElements.define(L,O)};
uOe=function(A,L,O,X,x){A.prototype.is=L;(X==null?0:X.useSink)?YVM(A,L,O,X,x):(O=ixu(A,L,O,X),CYs(O,L));return A};
YVM=function(A,L,O,X,x){WXp();var J=_.xa(function(Y){return AUe(A,L,Y,Object.assign({},X,{getTemplate:O}),x)},"a");
J.debugName=L+" (CoW wrapped)";dM9(J,L);return J};
Vku=function(A){return!Tcs.has(A)};
Els=function(A,L,O,X){function x(){if(!t){for(var b=new Set(DMu),S=_.d(J.behaviors),w=S.next();!w.done;w=S.next()){w=w.value;for(var l=_.d(Object.getOwnPropertyNames(w)),F=l.next();!F.done;F=l.next()){F=F.value;var R=void 0,y=(R=Object.getOwnPropertyDescriptor(w,F))==null?void 0:R.value;y&&y instanceof Function&&(!E[F]||_.h("polymer_forward_method_killswitch"))&&b.add(F)}}S=_.d(Object.entries(Object.getOwnPropertyDescriptors(A.prototype)));for(w=S.next();!w.done;w=S.next())l=_.d(w.value),w=l.next().value,
l=l.next().value,l.value instanceof Function&&b.add(w);t=b}return t}
var J=kLd({is:L,disableElementRegistration:!1,getTemplate:O,providers:X==null?void 0:X.providers,reactivityMode:X==null?void 0:X.reactivityMode},A);if((X==null?0:X.allowedProps)||(X==null?0:X.allowedPropsFromBehaviors)){var Y,T;J.allowedProps=[].concat(_.le((Y=X.allowedProps)!=null?Y:[]),_.le((T=X.allowedPropsFromBehaviors)!=null?T:[]))}var V=WmM(J,A);L=V.observedAttributes;var E={};O=_.d(J.reactiveSchemas);for(X=O.next();!X.done;X=O.next())if(X=X.value,X.type==="signal")E[X.propertyKey]={readOnly:X.readOnly},
X.readOnly&&(E[tG9(X.propertyKey)]={readOnly:!0});else if(X.type==="compute"||X.type==="computeWithMethod"||X.type==="redux")E[X.propertyKey]={readOnly:!0};var n=J.reactiveSchemas.length,t;return{ctor:function(b,S){b=new V(b);b.beforeReady=S.beforeReady;return b},
props:E,observedAttributes:L,getInitialMethods:x,getPropsToForwardBeforeRegister:function(){for(var b=[],S=new Set,w=_.d(edM),l=w.next();!l.done;l=w.next())l=l.value,b.push([l,l!=="observers"&&l!=="properties"]),S.add(l);w=_.d(Object.keys(E));for(l=w.next();!l.done;l=w.next())l=l.value,b.push([l,E[l].readOnly]),S.add(l);w=x();l=_.d(Object.keys(Object.getOwnPropertyDescriptors(A.prototype)));for(var F=l.next();!F.done;F=l.next())F=F.value,!Vku(F)||w.has(F)||S.has(F)||(b.push([F,!1]),S.add(F));b.push(["allowedProps",
!0]);return b},
getPropsToForwardBeforeReady:function(b){var S=[];b=_.d(Object.keys(b));for(var w=b.next();!w.done;w=b.next()){w=w.value;var l=x();Vku(w)&&!l.has(w)&&S.push([w,!1])}b=_.d(J.reactiveSchemas.slice(n));for(w=b.next();!w.done;w=b.next())w=w.value,w.type!=="compute"&&w.type!=="computeWithMethod"&&w.type!=="redux"&&w.type!=="signal"||S.push([w.propertyKey,w.type==="signal"?w.readOnly:!0]);return S},
shouldForwardProp:Vku,shouldLog:NR}};
_.m=function(A,L,O,X){var x,J,Y=(J=(x=X)==null?void 0:x.mode)!=null?J:0;X!=null||(X={});var T;(T=X).reactivityMode!=null||(T.reactivityMode=0);Y===1&&_.Y$("creator_poly_si_disable_list").includes(L)&&(Y=2);return Y===1?uOe(A,L,O,Object.assign({},X,{useSink:!0}),Els):uOe(A,L,O,Object.assign({},X,{useSink:Y===2}))};
_.DX=function(){return function(A,L,O,X){var x,J,Y=(J=(x=X)==null?void 0:x.mode)!=null?J:2;X!=null||(X={});var T;(T=X).reactivityMode!=null||(T.reactivityMode=0);if(Y===0)throw Error("Ug`"+Y);return YVM(A,L,O,X,Y===1?Els:void 0)}};
_.e5=function(A){return _.h("creator_poly_si_killswitch")?!1:_.h("force_all_poly_si_batches")&&(A==="poly_si_all_on_test_check"||A==="creator_poly_si_batch_050"?0:A)||document.documentElement.hasAttribute("use-signals")?!0:!A||_.h(A+"_holdback_enabled")&&_.h("kevlar_polysi_holdback")?!1:_.h(A)};
EY=function(A){return A?A.icon?A.icon.iconType.toLowerCase():A.customThumbnail?"member":"":""};
nle=function(A){if(!A)return"";A=_.d(A);for(var L=A.next();!L.done;L=A.next())if((L=L.value)&&L.liveChatAuthorBadgeRenderer&&(L=EY(L.liveChatAuthorBadgeRenderer))&&L!=="verified")return L;return""};
tke=function(A,L){if(!A)return null;var O;return((O=A.find(function(X){return X&&X.liveChatAuthorBadgeRenderer?EY(X.liveChatAuthorBadgeRenderer)===L:!1}))==null?void 0:O.liveChatAuthorBadgeRenderer)||null};
_.wZd=function(A){var L=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;A=bz9(A);L=bz9(L);var O=hde(A.hex);L=hde(L.hex);var X=L[0]/255;var x=L[1]/255,J=L[2]/255,Y=Math.max(X,x,J),T=Math.min(X,x,J),V=0,E=0,n=.5*(Y+T);Y!=T&&(Y==X?V=60*(x-J)/(Y-T):Y==x?V=60*(J-X)/(Y-T)+120:Y==J&&(V=60*(X-x)/(Y-T)+240),E=0<n&&n<=.5?(Y-T)/(2*n):(Y-T)/(2-2*n));X=[Math.round(V+360)%360,E,n];O=SVe(O,L);for(A=qVJ(A.hex);O<4.5;){A=X[2]>=.5?A.darker((4.5-O)/2):A.brighter((4.5-O)/2);O=A.toString();
x=glp(O);if(!x.length)throw Error("Rd`"+O);O=x;O=SVe(O,L)}return A.hex()};
SVe=function(A,L){A=_.xfM(A);L=_.xfM(L);return(Math.max(A,L)+.05)/(Math.min(A,L)+.05)};
_.nT=function(A){return"#"+("000000"+(A&16777215).toString(16)).slice(-6)};
_.pZu=function(A){for(var L=0,O=0;O<A.length;O++)L=A.charCodeAt(O)+((L<<5)-L);A="#";for(O=0;O<3;O++)A+=("00"+(L>>O*8&255).toString(16)).slice(-2);return A};
izM=function(A){A=(A||"").split(":");A.length===1&&A.unshift("yt-icons");A[1]=A[1].toLowerCase();return A};
cUO=function(A,L){var O=(L=L===void 0?!1:L)?NcP:rUr,X=L?KFu:Gzp;A.getIconNames().forEach(function(x){x=L?x:x.substring(x.indexOf(":")+1);A.name==="yt-icons"?lGu.add(x):x.includes("-filled")?O.add(x):X.add(x)})};
tt=function(A,L,O,X){O=O===void 0?!1:O;X=X===void 0?!1:X;var x,J,Y;return _.u(function(T){if(T.nextAddress==1)return T.yield(C$u,2);if(X)return T.return(lGu.has(A));x=O?NcP:rUr;J=O?KFu:Gzp;return L?(Y=A.includes("-filled")?A:A.concat("-filled"),T.return(x.has(Y))):T.return(J.has(A))})};
_.QYP=function(A){if(FFy(A))return A;var L=A=A.toLowerCase();(A=RdO.get(A))&&(L=A);return L};
_.bV=function(A){if(FFy(A))return A.toString();var L=mMs.get(A);if(L)return L;L=A.toLowerCase();var O="yt-icons",X=L.replace(/_/g,"-");switch(A){case "MY_CHANNEL":L="account_circle";break;case "ADD_TO_LIBRARY":L="add";break;case "ALERT_WARN_RED":L="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":L="person_music";break;case "BLOCK_USER":L="block";break;case "CAPTIONS":L="closed_caption";break;case "CLOSED_CAPTION":O="av";L="closed-caption";break;case "COLLECTION":O="maps";L="layers";break;case "CONTACT":O=
"icons";L="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":O="ytcp-icons";L=X.split("creator-studio-")[1];break;case "DISMISSAL":L="close";break;case "DO_NOT_DISTURB":L="block";break;case "DOGFOOD":O="icons";L="pets";break;case "DRAFT":L="paper_corner_folded";break;
case "EMPTY_LIKE":L="like_outline";break;case "EXIT_APP":L="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":L=X;break;case "GAMES":O="ytg";L="my-games";break;case "GO_TO_PAGE":L="arrow-forward";break;case "GROUP":O="social";break;case "HIDE":L="not_interested";break;case "INPUT_COMPONENT":O="icons";L="settings-input-component";break;case "KIDS_BLOCK":L="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":O="ytg";L="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":O=
"ytg";L="membership-post-purchase";break;case "MULTIVIEW":L="screen_multi_view";break;case "MY_LOCATION":O="maps";L=X;break;case "NOTIFICATIONS_INBOX":L="NOTIFICATIONS";break;case "NEXT":L="chevron_right";break;case "OFFLINE":L="power-settings-new";break;case "PAUSE":O="miniplayer";break;case "PAYMENT":O="icons";break;case "PHONE_DOWNLOAD":L="phone_download";break;case "PREMIUM_STANDALONE":O="yt-logos";L="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":O="yt-logos";L="premium_standalone_cairo";
break;case "QUESTION_ANSWER":L="question_answer";break;case "REDEEM":O="icons";L="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":L="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":L="library_add";break;case "SCHOOL":O="yt-sys-icons";L="creator_academy";break;case "SETTINGS_LIGHT":L="settings_applications";break;case "SETTINGS_MATERIAL":L="settings";break;case "SEARCH_HISTORY":L="watch_history";break;case "SHOPPING_BAG":L="bag";break;case "SOCIAL":case "PEOPLE":O=
"yt-icons";L="people";break;case "STAFF_PICK":O="ytg";L="spotlight";break;case "START_DVR":L="add";break;case "STOP_DVR":O="av";L="stop";break;case "TAB_LIKED":L="like";break;case "TAB_INBOX":L="mail";break;case "TERMS_OF_SERVICE":O="icons";L="description";break;case "TRENDING":L="fire";break;case "UNBLOCK_USER":L="remove";break;case "UNPLUGGED_DARK_THEME":O="image";L="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":L="live";break;case "UNPLUGGED_SPORTS":O="ytu";L="visibility-off";break;
case "VIDEOS":O="av";L="play-circle-filled";break;case "YOUTUBE":O="yt-logos";L="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":O="yt-logos-ext";L="yt-logo-red-updated";break;case "YOUTUBE_LOGO":O="yt-logos-ext";L="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":O="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":O="shorts";L=X;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":O="yt-sys-icons";L="youtube_improve_tv";break;case "OUTLINE_BAG":O=
"yt-sys-icons";L="bag";break;case "QUEUE_PLAY_LAST":O="yt-sys-icons";L="list_queue_last";break;case "SLASH_CIRCLE_LEFT":L="slash_circle_left";break;case "SPEED_1_POINT_2X":L="1_point_2x";break;case "SPEED_1_POINT_5X":L="1_point_5x";break;case "SPEED_1_POINT_8X":L="1_point_8x";break;case "SPEED_POINT_2X":L="point_2x";break;case "SPEED_POINT_5X":L="point_5x";break;case "SPEED_POINT_8X":L="point_8x";break;case "SPEED_1X":L="1x";break;case "SPEED_2X":L="2x";break;case "TAB_BOOKMARK":L="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":O="yt-sys-icons";L="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":O="yt-sys-icons";L="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":O="yt-sys-icons",L="tic_tac_toe"}L=O+":"+L;mMs.set(A,L);return L};
FFy=function(A){var L;_.h("kevlar_use_wil_icons")?L=!!_.X5().resolve(_.ht).resolveIcon({iconName:A.toString()}):L=!1;return L};
_.qb=function(A,L,O,X){O=O===void 0?{}:O;X=X===void 0?!1:X;O===null&&(O={});var x=_.Y$("kevlar_command_handler_command_banlist");x=_.d(x);for(var J=x.next();!J.done;J=x.next())if(J=A?A.hasOwnProperty(J.value):void 0,J)return!1;x=_.q(A.commandMetadata,_.LM);return X&&x!=null&&x.url?!1:!L.disableCommandHandlerOverride&&_.S5.instance?(X=_.S5.instance,O.form||(O.form={element:L}),O.form.element||(O.form.element=L),!O.clickedVisualElement&&L.visualElement&&(O.clickedVisualElement=L.visualElement),X.resolveCommand(A,
O),!0):!1};
fGM=function(A,L){A=gW(A);for(var O=_.d(A.visibilityMonitorKeys||[]),X=O.next();!X.done;X=O.next())L.unobserveByKey(X.value);A.visibilityMonitorKeys=void 0};
jYe=function(A,L){if(_.Fn()){if(_.h("kevlar_vimio_use_shared_monitor"))IGu(A,L.data);else if(!IGu(A,L.data))return;var O=L.data,X=yUO(O);if(_.h("enable_client_ve_spec_logging"))fGM(A,L.observer);else{var x=gW(A);x.trackedParams&&x.trackedParams!==X&&fGM(A,L.observer)}x=gW(A);!O||x.data&&x.data===O||(x.data=O);Zzy(A,L);x.trackedParams=X}};
Zzy=function(A,L){var O=L.observer;if(!O&&_.h("web_skip_missing_vimio_observer")){var X,x;_.Rv(new _.pe("VisibilityObserver is not defined.",A.tagName,A.trackedParams,(X=L.data)==null?void 0:X.trackingParams,(x=L.data)==null?void 0:x.loggingDirectives))}else{var J=L.layer,Y=L.visibilityCallback||function(){},T=L.prescanCallback,V=gW(A);
X=[];L.showOption&&X.push(O.observe(A,function(){L.skipLogging&&L.skipLogging()||_.wW().reportShown(V,void 0,J);Y(!0)},L.showOption));
L.hideOption&&X.push(O.observe(A,function(){_.wW().reportHidden(V,void 0,J);Y(!1)},L.hideOption));
L.prescanOption&&T&&X.push(O.observe(A,function(){T()},L.prescanOption));
V.visibilityMonitorKeys=X}};
IGu=function(A,L){A=gW(A);if(A.visualElement&&!L)return!0;if(!L)return!1;var O=!1;if(_.h("enable_client_ve_spec_logging")){var X,x;O=!!((X=L.loggingDirectives)==null?0:(x=X.clientVeSpec)==null?0:x.uiType)}X=yUO(L);if(!X&&!O)return!1;_.h("mweb_component_visibility_logging")&&(A.veContainer||(A.veContainer={}),A.veContainer.trackingParams=X);if(A.trackedParams&&A.trackedParams===X)return!1;var J;if(_.h("enable_client_ve_spec_logging")&&((J=A.visualElement)==null?0:J.isClientVe())){var Y;J=(Y=A.visualElement)==
null?void 0:Y.getAsJspb();var T,V,E,n;if(_.x8(J,2)===((T=L.loggingDirectives)==null?void 0:(V=T.clientVeSpec)==null?void 0:V.uiType)&&_.x8(J,3,-1)===((E=L.loggingDirectives)==null?void 0:(n=E.clientVeSpec)==null?void 0:n.elementIndex))return!1}if(_.h("enable_client_ve_spec_logging")){var t,b;!A.visualElement&&((t=L.loggingDirectives)==null?0:(b=t.clientVeSpec)==null?0:b.uiType)&&(T=L.loggingDirectives.clientVeSpec,L=T.uiType,Y=T.elementIndex,T=T.clientYoutubeData,A.visualElement=_.pT(_.iV(),{veType:L,
elementIndex:Y,clientYouTubeData:T}))}return!0};
yUO=function(A){if(A==null?0:A.rendererContext){var L=_.q(A.rendererContext,_.Nb);if(L==null?0:L.loggingDirectives)return L.loggingDirectives.trackingParams}return(A==null?0:A.loggingDirectives)?A.loggingDirectives.trackingParams:A==null?void 0:A.trackingParams};
gW=function(A){var L;return(L=A.polymerController)!=null?L:A};
Bce=function(A){_.wW();if(_.j6(rW().JSC$13531_elementShouldLogGesture).bind(rW())(A,4)){WFM(A);var L=Hzs(A);zdD.set(A,L)}};
WFM=function(A){zdD.has(A)&&(zdD.get(A).cancel("untrack hover element"),zdD.delete(A))};
Hzs=function(A){var L,O=[],X=!1,x=new _.eJ(function(J,Y){KT(A,"mouseenter",_.j6(function(){var T,V,E;return _.u(function(n){if(n.nextAddress==1)return L=(0,_.O$)(),T=MkP(A),O.push(T),V=$MO(A,function(){X=!0;Y(Error("Vg"))}),n.yield(T,2);
if(n.nextAddress!=3)return V&&Gi(V),E=aGe(A),O.push(E),n.yield(E,3);J();_.qo(n)})}))});
x.then(function(){var J=(0,_.O$)()-L;J=Math.round(J);if(!(500>J||6E5<=J)){var Y=A.getScreenLayer?A.getScreenLayer():void 0;Y=_.Fn(Y)||"";var T=kzs(_.wW(),A);_.ak(Y,A.visualElement?A.visualElement:_.lV(T),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:J}})}Bce(A)},function(){cR&&(cR(),cR=null);
X&&(WFM(A),Bce(A))});
return x};
MkP=function(A){var L;return(new _.eJ(function(O,X){cR=function(){X(Error("Wg"))};
L=_.c1.debounce(_.j6(function(){Gi(x);O()}),1,100);
var x=_.CT(A,"mousemove",L)})).thenCatch(function(){var O=_.c1.cancelDebouncedJobMap.get(L);
O&&_.c1.cancelJob(O)})};
aGe=function(A){var L;return(new _.eJ(function(O,X){cR=function(){X(Error("Xg"))};
L=KT(A,"mouseleave",_.j6(function(){O()}))})).thenCatch(function(){Gi(L)})};
$MO=function(A,L){return KT(A,"mouseleave",_.j6(L))};
vlu=function(A){UMu&&_.FI.cancel(UMu);UMu=_.FI.run(function(){_.P4(A,"yt-visibility-refresh");UMu=0})};
olu=function(A){A=Number(A);return"rgba("+[A>>16&255,A>>8&255,A&255,(A>>24&255)/255].join()+")"};
LwJ=function(A){if(!A)return!1;if(_.q(A,_.A6_))return!0;var L;if(A=(L=_.q(A,_.em))==null?void 0:L.commands)for(L=_.d(A),A=L.next();!A.done;A=L.next())if(_.q(A.value,_.A6_))return!0;return!1};
Ojs=function(A){var L=!0;L=L===void 0?!0:L;if(!A.useSignals&&!A.experimentalPropertiesChanged||_.h("experimental_templating_behavior_nopatch_killswitch")){var O=A._propertiesChanged;A._propertiesChanged=function(X,x,J){L?A.debounceRender():A.doRender();O&&O.call(A,X,x,J)}}};
XvP=function(A,L){if(A.useSignals||A.experimentalPropertiesChanged)if(_.h("experimental_templating_behavior_nopatch_killswitch"))A.experimentalPropertiesChanged=function(){};
else return;var O=new Set,X=[A].concat(_.le(A.behaviors));X=_.d(X);for(var x=X.next();!x.done;x=X.next()){x=x.value;for(var J in x.properties)O.has(J)||(A._addPropertyEffect(J,"function",L),O.add(J))}};
x3O=function(){var A=Polymer.Element,L=A._prepareTemplate;A._prepareTemplate=function(){L.call(this);var O=this.prototype;if(O.experimentalTemplatingInUse&&O.experimentalTemplatingInUse()&&O.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.C7(Error("Yg"));else{O=this.template.content.childNodes;for(var X=O.length-1;X>=0;X--){var x=O[X];x.nodeName!=="STYLE"&&x.nodeName!=="LINK"&&x.nodeName!=="SCRIPT"&&x.nodeName!=="#comment"&&x.remove()}}}};
sXu=function(A){var L=!0;L=L===void 0?!0:L;x3O();var O=A.ready;A.ready=function(){this._template=null;O.call(this)};
XvP(A,L?A.debounceRender:A.doRender)};
P09=function(A,L,O){if(O===null||O===void 0)return O;var X=x79(A.tagName.toLowerCase(),L,function(){throw Error("Ob");});
if(X===null)return O;X=J6u[X];var x;if((x=X.isUnwrappable)==null?0:x.call(X,O)){if(X.unwrap)return X.unwrap(O);throw Error("ah");}return X.filterString?X.filterString(A.tagName,L,String(O)):O};
d3_=function(A,L,O){var X=L[L.length-1]!=="$",x=P09(A,L,O);if(X)if(typeof x==="function"&&L.startsWith("reactiveon")&&L===L.toLowerCase()){var J=k8;D7y(A,L.slice(8),function(Y){cu(J,function(){x(Y)})})}else A[L]=x;
else O=x==null?null:String(x),QO(A,L.slice(0,-1),O)};
Qz=function(A){Y6e.length===0&&requestAnimationFrame(function(){setTimeout(function(){var L=Y6e.slice();Y6e.length=0;L=_.d(L);for(var O=L.next();!O.done;O=L.next()){O=O.value;try{O()}catch(X){_.Ry(X)}}})});
Y6e.push(A)};
uQp=function(A){if(A){var L=A.component;if(L){var O;L==null||(O=L.events)==null||O.publish("DISCONNECTED");var X;L==null||(X=L.onDisconnected)==null||X.call(L)}var x,J;(x=A.__spec)==null||(J=x.didUnmount)==null||J.call(x);for(L=0;L<A.childNodes.length;L++)uQp(A.childNodes[L])}};
fT=function(A,L,O){var X=L&&L.key,x=$N;x[0]=A;x[1]=X;x[2]=void 0;for(var J in L)L.hasOwnProperty(J)&&(A=L[J],X=ae,X.push(J),X.push(A));L=$N;a:{if(J=$N[2])for(A=0;A<J.length;A+=2)if(J[A]==="nonce"){J=J[A+1];break a}J=""}J=NVe(L[0],L[1],J);A=fr(J);X=L[2];if(!A.staticsApplied&&(A.staticsApplied=!0,X&&X.length))if((x=A._attrsArr)&&x.length){for(x=0;x<X.length;x+=2)me[X[x]]=x+1;x=A._attrsArr||(A._attrsArr=Vv9(0));for(var Y=0,T=0;T<x.length;T+=2){var V=x[T],E=x[T+1],n=me[V];n?X[n]===E&&delete me[V]:(x[Y]=
V,x[Y+1]=E,Y+=2)}Fx(x,Y);for(var t in me)bd_(J,t,X[me[t]],ov),delete me[t]}else for(t=0;t<X.length;t+=2)bd_(J,X[t],X[t+1],ov);F2J(J,A,ov);Fx(L,0);O&&O(Ie);rle()};
Tvr=function(A){var L=A.toString().toLowerCase();return function(O,X){fT(L,O,X)}};
_.Iy=function(A,L,O){O===void 0?delete A[L.name]:A[L.name]=O};
_.yz=function(A){var L={androidIncludeFontPadding:!1},O=0,X=[],x=[],J=[];if(A.simpleText)return L.content=A.simpleText,L;if(A.runs===void 0)return L.content="",L;A=_.d(A.runs);for(var Y=A.next();!Y.done;Y=A.next()){Y=Y.value;var T=Y.text,V=void 0,E=(V=T)==null?void 0:V.length;if(T&&E){X.push(T);if(Y.bold||Y.italics||Y.strikethrough||Y.underline||Y.textColor!=null&&Y.textColor!==0||Y.deemphasize){T=x;V=T.push;var n={startIndex:O,length:E};Y.bold&&(n.weightLabel="FONT_WEIGHT_MEDIUM");Y.italics&&(n.italic=
!0);Y.strikethrough&&(n.strikethrough="LINE_STYLE_SINGLE");Y.underline&&(n.underline="LINE_STYLE_SINGLE");Y.textColor!=null&&Y.textColor!==0?document.documentElement.hasAttribute("dark")?n.fontColor=Y.darkModeTextColor||Y.textColor:n.fontColor=Y.textColor:Y.deemphasize&&(document.documentElement.hasAttribute("dark")?n.fontColor=parseInt("ff"+Veu("#aaa").substring(1),16):n.fontColor=parseInt("ff"+Veu("#606060").substring(1),16));V.call(T,n)}Y.navigationEndpoint&&(T=J,V=T.push,n={startIndex:O,length:E,
onTap:{innertubeCommand:Y.navigationEndpoint}},Y.loggingDirectives&&_.Iy(n,D3e,Y.loggingDirectives),V.call(T,n));O+=E}}L.content=X.join("");L.styleRuns=x.length?x:void 0;L.commandRuns=J.length?J:void 0;return L};
Ebe=function(A){if(A==null||!A.runs)return!0;A=_.d(A.runs);for(var L=A.next();!L.done;L=A.next())if(L=L.value,L.bracket||L.errorUnderline||L.deemphasize||_.q(L,ZX)||_.q(L,e$r))return!1;return!0};
nbr=function(A,L){return function(O){var X=L.unit;if(X!==O)throw Error("dh`"+A+"`"+X+"`"+O);return L}};
j5=function(A){if(!((A==null?0:A.value)&&(A==null?0:A.unit)))return"";switch(A.unit){case "DIMENSION_UNIT_FRACTION":var L="%";break;default:L="px"}A=A.value;L==="%"&&(A*=100);return""+A+L};
teJ=function(A){try{return A()}catch(L){_.Rv(L)}};
_.HR=function(A){var L=_.q(A,_.WR);if(L)return L;if((L=_.q(A,bju))&&L.commands)return h$M(L.commands);if((L=_.q(A,S6D))&&L.commands)return h$M(L.commands);if((A=_.q(A,q6r))&&A.identifier&&A.command&&(gbD||(gbD=[]),!gbD.includes(A.identifier)))return gbD.push(A.identifier),_.q(A.command,_.WR)};
h$M=function(A){if(A.length!==0){var L=[];A=_.d(A);for(var O=A.next();!O.done;O=A.next())(O=_.HR(O.value))&&L.push(O);return{commandExecutorCommand:{commands:L}}}};
_.BR=function(A){var L=A.defaultTarget,O=A.elementConfig,X=A.elementsCommand,x=A.skipOnClick,J=A.forceNewState,Y=A.additionalCommandArgs,T=A.innertubeCommand||_.HR(X);if(T){A={};var V=wvp(T);X=V.navigatingCommand;V=V.href;X&&V?(A.href$=V,pvy(A,X,V,L),_.h("web_atagconfig_pointerdown")&&ijd(A,X),J&&(A["force-new-state$"]=!0)):(A.role$="button",A.href$="javascript:void(0);");_.q(T,Nve)&&(A["aria-haspopup$"]=!0);x||(A.onclick=function(E){var n={};if(r6u(E)){var t=(Y==null?void 0:Y.clickedVisualElement)||
(Y==null?void 0:Y.getClickedVisualElement)&&Y.getClickedVisualElement();t&&(n={clickedVisualElement:t});n=Object.assign({},{form:{element:E.target,event:E,createScreenConfig:n}},Y);E.preventDefault();_.zi(T,n)}});
return Object.assign({},O,A)}};
Kwu=function(A){if(A.length){if(A.length===1)return A[0];var L={};_.Iy(L,_.em,{commands:A});return L}};
Mb=function(A){return A&&A.href$!=="javascript:void(0);"};
wvp=function(A){var L,O=((L=_.q(A,_.em))==null?void 0:L.commands)||[A];A=_.d(O);for(L=A.next();!L.done;L=A.next()){L=L.value;var X=void 0,x=void 0;O=(x=_.q((X=L)==null?void 0:X.commandMetadata,_.LM))==null?void 0:x.url;_.h("web_remove_web_navigation_endpoint_data")||(X=void 0,O=O||((X=_.q(L,G$_))==null?void 0:X.url));if(O&&O!=="/service_ajax"){if(X=C_(O,liJ))return A=_.G2(X),{navigatingCommand:L,href:A};_.Rv(new _.pe("AttributedString URL could not be sanitized",O))}}return{}};
r6u=function(A){return A.button!==void 0?A.button===0&&!(A.shiftKey||A.altKey||A.metaKey||A.ctrlKey):!(A.shiftKey||A.altKey||A.metaKey||A.ctrlKey)};
pvy=function(A,L,O,X){O=!Aj(O);var x,J,Y;if((x=_.q(L,_.gM))!=null&&x.nofollow||(J=_.q(L,_.$O))!=null&&J.nofollow||(Y=_.q(L,_.Hh))!=null&&Y.nofollow||O)A.rel$="nofollow";var T;L=((T=_.q(L,_.Hh))==null?void 0:T.target)==="TARGET_NEW_WINDOW"?"_blank":X===void 0?"":X;A.target$=L};
ijd=function(A,L){L.clickTrackingParams&&(A.params={itct:L.clickTrackingParams});A.onpointerdown=function(O){c6J(O)};
A._data=L};
C0r=function(A){(A.loggingUrls||[]).forEach(function(L){W1(L.baseUrl,L.attributionSrcMode)})};
FwD=function(A){A.currentTarget._data&&C0r(A.currentTarget._data)};
c6J=function(A){var L=A.currentTarget;A=teJ(function(){return L.href});
var O=L.params;A&&_.oF(A,O||{},8,!0)};
R$d=function(A,L){if(L=_.q(L,_.Hh))(L==null?void 0:L.target)==="TARGET_NEW_WINDOW"&&(A.target="_blank"),L.nofollow&&(A.rel="nofollow")};
QXM=function(A){A=_.q(A==null?void 0:A.commandMetadata,_.LM);return(A==null?0:A.url)?A.url:null};
_.$a=function(A,L){(A=_.HR(A))&&_.zi(A,L)};
_.zi=function(A,L){rzu(function(O){L?O.resolveCommand(A,L):O.resolveCommand(A)})};
y6J=function(A,L){var O=["yt-core-attributed-string__link"];L!=null&&L.noLinkColor||((L==null?0:L.isOverlay)?O.push("yt-core-attributed-string__link--overlay-call-to-action-color"):O.push("yt-core-attributed-string__link--call-to-action-color"),(L==null?0:L.linkInheritColor)&&O.push("yt-core-attributed-string--link-inherit-color"));O={className:O.join(" "),tabindex$:"0"};var X=A.onTap||A.onLongPress;if(!X)return O;var x=m3u(A);x&&(O["aria-label$"]=x);L=_.BR({elementsCommand:X,elementConfig:O,skipOnClick:!(L==
null||!L.skipOnClick),forceNewState:!0});A.onLongPress&&(X=new fir(function(){var J=_.HR(A.onLongPress);J&&_.X5().resolve(_.x$).resolveCommand(J)}),L&&IiO(X,L));
return L||O};
m3u=function(A){var L,O;return(L=A.onTapOptions)==null?void 0:(O=L.accessibilityInfo)==null?void 0:O.accessibilityLabel};
Zjp=function(A){var L=A;A<=16777215&&(L+=parseInt("ff000000",16));return _.Hy(L)};
jXd=function(A){var L=A.isDarkTheme;var O=A.extension;A=A.runColor;var X=void 0;if(O=O==null?void 0:O.colorMap){L=L?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";O=_.d(O);for(var x=O.next();!x.done;x=O.next())if(x=x.value,L===x.key){X=x.value;break}}X==null&&A&&(X=A);if(X)return Zjp(X)};
ay=function(A){var L=A.config;var O=A.image;var X=A.imageConfig;var x=A.imageWrapperConfig;var J=A.run;var Y=A.tag;var T=A.textLength;var V=A.startIndex===void 0?0:A.startIndex;A=A.length;V===void 0&&(V=0);J={run:J,startIndex:V,endIndex:A!==void 0?V+A:T,tag:Y};O&&(J.image=O);X&&(J.imageConfig=X);x&&(J.imageWrapperConfig=x);L&&(J.config=L);return J};
Hjs=function(A,L){var O=[];O.push("yt-core-attributed-string");(L==null?0:L.className)&&O.push(L==null?void 0:L.className);(L==null?0:L.ellipsisTruncate)?O.push("yt-core-attributed-string--ellipsis-truncate"):(L==null?0:L.noWrap)?O.push("yt-core-attributed-string--white-space-no-wrap"):(L==null?0:L.noPreWrap)||O.push("yt-core-attributed-string--white-space-pre-wrap");(L==null?0:L.linkInheritColor)&&O.push("yt-core-attributed-string--link-inherit-color");A.alignment&&O.push(Wwe(A.alignment));A.lineBreakMode&&
O.push("yt-core-attributed-string--word-wrapping");return O.join(" ")};
z$M=function(A){if(A.weight)return A.weight;switch(A.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}};
Bv9=function(A){switch(A){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"}};
Wwe=function(A){switch(A){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"}};
vR=function(A,L,O){var X=L;A.content&&O&&(O=A.content.indexOf("\n"),O!==-1&&(X=Math.min(L,O)));if(!A.content||A.content.length<=X)L=A;else if(A.attachmentRuns||A.commandRuns||A.decorationRuns||A.styleRuns||A.paragraphStyleRuns){L=ka(A.content,X);O=X;var x=A.attachmentRuns;if(x){var J=[];x=_.d(x);for(var Y=x.next();!Y.done;Y=x.next())Y=Object.assign({},Y.value),Y.startIndex===void 0||Y.startIndex>=O||(Y.length||(Y.length=0),Y.length+Y.startIndex>O&&(Y.length=O-Y.startIndex),J.push(Y));O=J}else O=void 0;
J=MeD(X,A.commandRuns);x=X;var T=A.decorationRuns;if(T){Y=[];T=_.d(T);for(var V=T.next();!V.done;V=T.next()){V=V.value;var E=_.q(V.textDecorator,UY);if(E&&E.startIndex!==void 0&&!(E.startIndex>=x)){V=Object.assign({},V,{textDecorator:{highlightTextDecorator:Object.assign({},E)}});E=_.q(V.textDecorator,UY);if(!E.length||E.length+E.startIndex>x)E.length=x-E.startIndex;Y.push(V)}}x=Y}else x=void 0;Y=MeD(X,A.styleRuns);if(T=A.paragraphStyleRuns)for(A=[],T=_.d(T),V=T.next();!V.done;V=T.next()){var n=V.value;
V=Object.assign({},n);if(!(V.startIndex===void 0||V.startIndex>=X)){if(!V.length||V.length+V.startIndex>X)V.length=X-V.startIndex;E=[];var t=void 0,b=void 0;if((t=n)==null?0:(b=t.listGroup)==null?0:b.listItems)for(n=_.d(n.listGroup.listItems),t=n.next();!t.done;t=n.next())if(t=Object.assign({},t.value),!(t.startIndex===void 0||t.startIndex>=X)){if(!t.length||t.length+t.startIndex>X)t.length=X-t.startIndex;E.push(t)}E.length>0&&(V.listGroup||(V.listGroup={}),V.listGroup=Object.assign({},V.listGroup,
{listItems:E}));A.push(V)}}else A=void 0;L={content:L,attachmentRuns:O,commandRuns:J,decorationRuns:x,styleRuns:Y,paragraphStyleRuns:A}}else L=Object.assign({},A,{content:ka(A.content,X)});return L};
MeD=function(A,L){if(L){var O=[];L=_.d(L);for(var X=L.next();!X.done;X=L.next())if(X=Object.assign({},X.value),!(X.startIndex===void 0||X.startIndex>=A)){if(!X.length||X.length+X.startIndex>A)X.length=A-X.startIndex;O.push(X)}return O}};
ka=function(A,L){var O=L,X;if(X=O>0)X=A.charCodeAt(O-1),X=X>=55296&&X<=56319;X&&(O=A.charCodeAt(O),X=O>=56320&&O<=57343);X&&--L;return A.substring(0,L)};
U39=function(A,L,O){O=O===void 0?$3r:O;if(A){var X=_.X5().resolve(Ld);X||_.h("mweb_no_observer_killswitch")?jYe(A,{data:L,observer:X,visibilityCallback:O,hideOption:aiP,showOption:k$O,layer:A.layer}):_.Rv(new _.pe("Warning: monitorVisibility called with null observer",A.tagName,L==null?void 0:L.loggingDirectives,L==null?void 0:L.trackingParams))}else _.Rv(new _.pe("Warning: monitorVisibility called with null element",L==null?void 0:L.loggingDirectives,L==null?void 0:L.trackingParams,L==null?void 0:
L.rendererContext))};
x$J=function(A,L){var O=[],X=A.content.length,x,J=(x=_.X5().resolve(_.Ot(_.oy)))==null?void 0:x();if(A.paragraphStyleRuns){x=_.d(A.paragraphStyleRuns);for(var Y=x.next();!Y.done;Y=x.next()){var T=O.push,V=T.apply;var E=void 0;Y=Y.value;if((E=Y.listGroup)!=null&&E.listItems){E=[];b:switch(Y.listGroup.listType){case "LIST_TYPE_BULLET":var n="ul";break b;default:n="span"}E.push(ay({run:Y,textLength:X,tag:n,config:{className:"yt-core-attributed-string__list-group"},startIndex:Y.startIndex,length:Y.length}));
n=_.d(Y.listGroup.listItems);for(var t=n.next();!t.done;t=n.next()){t=t.value;b:switch(Y.listGroup.listType){case "LIST_TYPE_BULLET":var b="li";break b;default:b="span"}E.push(ay({run:Y,textLength:X,tag:b,startIndex:t.startIndex,length:t.length}))}Y=E}else Y=[];V.call(T,O,_.le(Y))}}if(A.styleRuns&&(L==null||!L.noStyleRuns))for(x=_.d(A.styleRuns),T=x.next();!T.done;T=x.next()){T=T.value;V=jXd({extension:_.q(T.styleRunExtensions,vbs),isDarkTheme:J===void 0?!1:J,runColor:T.fontColor});E=[];V&&E.push("yt-core-attributed-string--link-inherit-color");
T.italic&&E.push("yt-core-attributed-string--italicized");T.underline&&T.strikethrough?E.push("yt-core-attributed-string--underline-strikethrough",Bv9(T.underline)):T.underline?E.push("yt-core-attributed-string--underlined",Bv9(T.underline)):T.strikethrough&&E.push("yt-core-attributed-string--strikethrough",Bv9(T.strikethrough));if(T.baselineOffset){a:switch(T.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":Y="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":Y=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:Y="yt-core-attributed-string--baseline-offset-unknown"}E.push(Y)}Y=E.join(" ");E=T;n={};if(E.weight||E.weightLabel)n.fontWeight=z$M(E).toString();V&&(n.color=V);O.push(ay({run:T,textLength:X,tag:"span",config:{className:Y,style:n},startIndex:T.startIndex,length:T.length}))}if(A.decorationRuns)for(x=_.d(A.decorationRuns),T=x.next();!T.done;T=x.next())T=T.value,V={},T.textDecorator&&(n=T.textDecorator,Y=J===void 0?!1:J,t=[],E=
_.q(n,UY),n=_.q(n,obr),E?(n=t,t=n.concat,b=[],(Y=jXd({extension:_.q(E.highlightTextDecoratorExtensions,Ao9),isDarkTheme:Y,runColor:E.backgroundColor}))&&b.push("background-color: "+Y+";"),E.backgroundCornerRadius!==void 0&&b.push("border-radius: "+E.backgroundCornerRadius+"px;"),E.leftPadding!==void 0&&b.push("padding-left: "+E.leftPadding+"px;"),E.rightPadding!==void 0&&b.push("padding-right: "+E.rightPadding+"px;"),E.topPadding!==void 0&&b.push("padding-top: "+E.topPadding+"px;"),E.bottomPadding!==
void 0&&b.push("padding-bottom: "+E.bottomPadding+"px;"),t=t.call(n,b)):n&&(E=t,t=E.concat,Y=Y?"#2ba640":"#107516",Y=n.color?Zjp(n.color):Y,Y=["padding: 2px;","border-top: solid "+Y+" 2px;","border-bottom: solid "+Y+" 2px;","background: linear-gradient(135deg, "+Y+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+Y+" 3px, rgba(0, 0, 0, 0) 3px);"],t=t.call(E,Y)),Y=t.join(" "),V.style$=Y,Y=T.textDecorator,E=[],n=_.q(Y,obr),_.q(Y,UY)?E.push("yt-core-attributed-string--highlight-text-decorator"):
n&&E.push("yt-core-attributed-string--bracket-text-decorator"),Y=E.join(" "),V.className=Y,V.dir="auto"),Y=_.q(T.textDecorator,UY),E=_.q(T.textDecorator,obr),n=_.q(T.textDecorator,UY),t=_.q(T.textDecorator,obr),O.push(ay({run:T,textLength:X,tag:"span",config:V,startIndex:(Y==null?void 0:Y.startIndex)||(E==null?void 0:E.startIndex)||0,length:(n==null?void 0:n.length)||(t==null?void 0:t.length)||0}));if(A.commandRuns&&(L==null||!L.noEndpoints))for(J=_.d(A.commandRuns),x=J.next();!x.done;x=J.next())x=
x.value,T=y6J(x,L),O.push(ay({run:x,textLength:X,tag:"a",config:T,startIndex:x.startIndex,length:x.length}));if(A.attachmentRuns)for(A=_.d(A.attachmentRuns),J=A.next();!J.done;J=A.next()){J=J.value;V=T=void 0;x={className:"yt-core-attributed-string--inline-block-mod"};if((V=J.element)==null?0:V.properties){V=(T=J.element)==null?void 0:T.properties;T=[];V=_.q(V,LVp);if(V==null?0:V.margin)V=V.margin,V.left&&T.push("margin-left: "+j5(V.left)+";"),V.right&&T.push("margin-right: "+j5(V.right)+";"),V.top&&
T.push("margin-top: "+j5(V.top)+";"),V.bottom&&T.push("margin-bottom: "+j5(V.bottom)+";");T=T.length!==0?T.join(" "):void 0;x.style$=T}Y=void 0;T={alt:"",preserveHeight:!0,preserveWidth:!0};V=["yt-core-attributed-string__image-element"];if(J.alignment){a:switch(J.alignment){case "ALIGNMENT_BASELINE":E="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":E="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:E=
"yt-core-attributed-string__image-element--image-alignment-bottom"}V.push(E)}if((Y=J.element)==null?0:Y.properties)Y=[],E=_.q(J.element.properties,LVp),(E==null?0:E.height)&&Y.push("height: "+j5(E.height)+";"),(E==null?0:E.width)&&Y.push("width: "+j5(E.width)+";"),Y=Y.length!==0?Y.join(" "):void 0,T.style$=Y,E=void 0,Y=((E=_.q(J.element.properties,OFd))==null?void 0:E.label)||"",T.alt=Y;T.className=V.join(" ");V=void 0;n=E=void 0;Y=((n=J.element)==null?0:n.type)?(E=_.q(J.element.type,X09))==null?
void 0:E.image:void 0;O.push(ay({run:J,textLength:X,tag:"img",image:Y,imageConfig:T,imageWrapperConfig:x,startIndex:J.startIndex,length:(V=J.length)!=null?V:0}))}if(L==null?0:L.headerRuns)for(L=_.d(L.headerRuns),A=L.next();!A.done;A=L.next())if(A=A.value,A.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(A.headerMapping)){a:{switch(A.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":J=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":J="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":J="yt-core-attributed-string--heading-3";break a}J=void 0}O.push(ay({run:A,textLength:X,tag:"span",config:J?{className:J}:void 0,startIndex:A.startIndex,length:A.length}))}return O};
_.AF=function(A){return(A==null?void 0:A.content)!==void 0};
sKs=function(A){return _.AF(A)?A:_.yz(A)};
Joe=function(A){return A.image!==void 0&&A.imageConfig!==void 0};
PLu=function(A,L){if(L==null?0:L.userInput)for(A=_.d(A),L=A.next();!L.done;L=A.next())if(L=L.value,L.tag!=="a"&&L.tag!=="li"){var O=void 0;(O=L).config||(O.config={});L.config.dir=L.tag==="ul"?_.X5().resolve(_.Ly):"auto"}};
d$M=function(A){return function(L){var O=A.run;(O.onTap!==void 0||O.onLongPress!==void 0)&&_.q(O,D3e)&&U39(L,{loggingDirectives:_.q(O,D3e)})}};
YGe=function(A){return function(L){for(var O in A)(ov[O]||ov[mv["default"]])(L,O,A[O])}};
D$u=function(A,L){uYr(L);var O={data:null,start:0,end:A.length,parts:[]};L=_.d(L);for(var X=L.next();!X.done;X=L.next())X=X.value,T5_(O,X.startIndex,X.endIndex,X);VFM(A,O);return O};
T5_=function(A,L,O,X){for(var x=_.d(A.parts),J=x.next();!J.done;J=x.next()){J=J.value;if(typeof J==="string")throw Error("fh");if(J.start<=L&&O<=J.end){T5_(J,L,O,X);return}}A.parts.push({data:X,parts:[],start:L,end:O})};
VFM=function(A,L){for(var O=L.parts.length;O>=0;O--){var X=L.parts[O],x=L.parts[O-1],J=O===L.parts.length?L.end:X.start;x=O===0?L.start:x.end;J!==x&&L.parts.splice(O,0,A.slice(x,J));X&&VFM(A,X)}};
uYr=function(A){A.sort(function(L,O){if(L.startIndex<O.startIndex)return-1;if(O.startIndex<L.startIndex)return 1;L=L.endIndex-L.startIndex;O=O.endIndex-O.startIndex;return L>O?-1:O>L?1:0})};
_.eVD=function(A){var L=A.thumbnails;if(L){A={sources:[]};L=_.d(L);for(var O=L.next();!O.done;O=L.next()){O=O.value;var X={};X.url=O.url;X.width=O.width;X.height=O.height;A.sources.push(X)}return A}};
ERM=function(A,L,O,X){if(!L)return A.length>=1?A[A.length-1]:null;if(X)for(var x=_.d(A),J=x.next();!J.done;J=x.next()){J=J.value;var Y=void 0,T=(Y=J.url)==null?void 0:Y.indexOf(X);if(T!==void 0&&T>=0)return J}X=_.d(A);for(x=X.next();!x.done;x=X.next())if(x=x.value,x.width&&x.height&&(O&&x.width>=L||!O&&x.height>=L))return x;for(L=A.length-1;L>=0;L--)if(O&&A[L].width||!O&&A[L].height)return A[L];return A[0]};
_.nR9=function(A){var L;return(A=(L=A.sources)==null?void 0:L[0])?A.width/A.height:0};
_.tFr=function(A){if(A.sources){A=_.d(A.sources);for(var L=A.next();!L.done;L=A.next()){L=L.value;var O=void 0;if((O=L.clientResource)==null?0:O.imageName)return L}}};
bF_=function(A){var L;if((L=A.clientResource)!=null&&L.imageColor)return _.Hy(A.clientResource.imageColor)};
_.SGe=function(A,L,O,X,x,J,Y){if(!L||L.length===0||L[0].clientResource)return null;if(O&&L[0].url)return L[0].url;X===void 0&&(X=!0);if(X){var T;A=hVd*(x||(A==null?void 0:(T=A.getBoundingClientRect())==null?void 0:T.width)||0)}else{var V;A=hVd*(J||(A==null?void 0:(V=A.getBoundingClientRect())==null?void 0:V.height)||0)}L=ERM(L,A,X,Y);return(L==null?0:L.url)?L.url:(L==null?0:L.imageData)?L.imageData:null};
qGD=function(A,L,O){O=O?[O]:[];A.opacity&&O.push("opacity: "+A.opacity+";");L&&A.placeholderColor?(A=_.Hy(A.placeholderColor),O.push("background-color: "+A+";")):O.push("background-color: transparent;");return O.join(" ")};
gRO=function(A,L,O,X,x){var J=["yt-core-image"];L&&J.push(L);O||J.push("yt-core-image--fill-parent-height");X||J.push("yt-core-image--fill-parent-width");switch(A.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":J.push("yt-core-image--content-mode-scale-aspect-fit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":J.push("yt-core-image--content-mode-scale-aspect-fill");break;case "CONTENT_MODE_CENTER":J.push("yt-core-image--content-mode-center");break;default:J.push("yt-core-image--content-mode-scale-to-fill")}A.flipForRtlLayout&&
J.push("yt-core-image--flip-rtl");switch(x){case "TOP_START":var Y;J.push(((Y=document.body)==null?void 0:Y.getAttribute("dir"))==="rtl"?"yt-core-image--object-position-top-right":"yt-core-image--object-position-top-left")}return J.join(" ")};
p0O=function(A){var L;if(A==null?0:(L=A.clientResource)==null?0:L.imageName){var O;A=(O=A.clientResource)==null?void 0:O.imageName;a:{switch(A){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":O="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":O="yt-logos-ext:yt-logo-updated";break a}O=void 0}return O||w0O.get(A)||A}};
rou=function(A){return _.h("mweb_wiz_skip_render")?iFD(A):N5d(A)};
iFD=function(A){return function(L){var O=NVe("wink-root");MD();rle();alr(O,_.D(A,L))}};
N5d=function(A){var L=L===void 0?!1:L;return function(O){if(!L||!_.h("mweb_skip_keto_to_c3_if_no_data")||O.data!==void 0){var X=xL(!1);try{var x=O.children;_.h("mweb_render_outside_patch_killswitch")||Ie?x?vh(_.D(A,O,x)):vh(_.D(A,O)):_.Rv(new _.pe("ketoToC3 called outside of a patch",{tagName:A.TAG_NAME}))}finally{xL(X)}}}};
KV_=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
lvu=function(A,L){A.onViewportEntered=L;Ghy.observe(A)};
coJ=function(){var A={rootMargin:"10%",threshold:.01};_.h("mweb_enable_set_io_root_to_null_safari")?A.root=null:_.h("mweb_enable_set_io_root_to_body_safari")&&(A.root=document.body);return new IntersectionObserver(function(L,O){L.filter(function(X){return X.intersectionRect.height>0}).forEach(function(X){X=X.target;
if(!_.h("mweb_enable_only_update_image_when_connected")||X.isConnected!==!1){var x;(x=X.onViewportEntered)==null||x.call(X);O.unobserve(X)}})},A)};
CLy=function(A,L,O,X,x){function J(){if(X){var T=X.loadedClass,V=X.notifyOnUnloaded;T&&_.OC(A,T);V&&A.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function Y(){var T=O(L,A);T&&A.getAttribute("src")!==T&&(_.h("mweb_enable_only_update_image_when_connected")&&A.isConnected===!1||T===A.src||(A.src=T),J())}
x=x===void 0?!0:x;A.removeAttribute("src");J();L&&(x?lvu(A,Y):Y())};
FVD=function(A,L,O){if(!L)return!1;L=O(L,A);O=A.getAttribute("src");return L&&L===O&&A.complete};
RVM=function(A,L){for(var O in L)O==="className"?A.className=L[O]:(ov[O]||ov[mv.default])(A,O,L[O])};
QKr=function(A,L,O,X){rou(_.XV)({contentMode:L.contentMode,loadedClass:L.loadedClass,isPreloaded:L.isPreloaded,notifyOnLoaded:L.notifyOnLoaded,notifyOnUnloaded:L.notifyOnUnloaded,preferredThumbnail:L.preferredThumbnail,preserveHeight:L.preserveHeight,preserveWidth:L.preserveWidth,objectPosition:L.objectPosition,targetWidth:L.targetWidth,targetHeight:L.targetHeight,shouldShowPlaceholder:L.shouldShowPlaceholder,useWidth:L.useWidth,isToggled:L.isToggled,alt:L.alt,className:L.className,onerror:L.onerror,
onload:L.onload,style$:L.style$,color:L.color,width:L.width,height:L.height,"aria-hidden$":L["aria-hidden$"],draggable:L.draggable,"data-disabled$":L["data-disabled$"],data:A,callback:O,renderLazy:X===void 0?!0:X,hideOn404:!1})};
fvs=function(A,L,O){O=O===void 0?!1:O;var X=A.sources!==void 0?A:_.eVD(A);if(X){var x=L.onload;L.onload=function(V){var E=V.target;O&&E.naturalWidth===120||_.x4(E,"yt-core-image--loaded");L.notifyOnLoaded&&E.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));x==null||x(V)};
L.targetWidth&&L.preserveWidth&&(L.width=L.targetWidth);L.targetHeight&&L.preserveHeight&&(L.height=L.targetHeight);var J=_.tFr(X),Y=J&&p0O(J);if(Y)return(A=bF_(J))&&(L.color=A),{type:"icon",iconName:Y,config:Object.assign({},L,L.alt?{}:{"aria-hidden$":"true"},{"aria-label$":L.alt,role:"img"})};if(A.sources===void 0){L.alt=A.accessibility&&A.accessibility.accessibilityData&&A.accessibility.accessibilityData.label||L.alt;L.style$=qGD(A,L.shouldShowPlaceholder,L.style$);var T;L.isPreloaded=!((T=_.q(A,
m$M))==null||!T.isPreloaded)}L.contentMode&&!X.contentMode&&(X.contentMode=L.contentMode);L.className=gRO(X,L.className,L.preserveHeight,L.preserveWidth,L.objectPosition);L.loadedClass="yt-core-image--loaded";return{type:"image",image:X,config:L}}};
_.sC=function(){var A=_.f_.apply(0,arguments);return _.kw(Ivp,function(L){var O=A.map(function(X){return X==null?void 0:X(L)});
return function(){return void O.forEach(function(X){return void(X==null?void 0:X())})}})};
JF=function(A,L){var O=L==null?void 0:L.initial;return _.E4(function(){_.GV(!0);return O=A(O)},{equals:L==null?void 0:L.isEqual},"rSlKsc")};
yo9=function(A,L){if(A===L)return!0;if(A===void 0||L===void 0)return!1;var O,X,x,J,Y,T,V,E;return A.content===L.content&&((O=A.styleRuns)==null?void 0:O.length)===((X=L.styleRuns)==null?void 0:X.length)&&((x=A.commandRuns)==null?void 0:x.length)===((J=L.commandRuns)==null?void 0:J.length)&&((Y=A.attachmentRuns)==null?void 0:Y.length)===((T=L.attachmentRuns)==null?void 0:T.length)&&((V=A.decorationRuns)==null?void 0:V.length)===((E=L.decorationRuns)==null?void 0:E.length)};
WVu=function(A,L){if(A){var O=sKs(A);if(O!=null&&O.content)if(_.h("attr_string_reactive"))rou(ZF9)({text:A,config:L});else{var X=!(L==null||!L.ariaLabel)||!(O.commandRuns&&O.commandRuns.length!==0||O.paragraphStyleRuns&&O.paragraphStyleRuns.length!==0);A=X?L==null?void 0:L.ariaLabel:null;X=X?"text":null;fT("span",{className:Hjs(O,L),dir$:(L==null?0:L.userInput)?"auto":void 0,"aria-label$":A,role$:X},function(){if(O.styleRuns||O.commandRuns||O.attachmentRuns||O.decorationRuns){var x=x$J(O,L);PLu(x,
L);x=D$u(O.content,x);x=_.d(x.parts);for(var J=x.next();!J.done;J=x.next())jKe(J.value)}else oe(O.content)})}}};
jKe=function(A){typeof A==="string"?oe(A):Joe(A.data)?fT("span",A.data.imageWrapperConfig,function(){QKr(A.data.image,A.data.imageConfig)}):fT(A.data.tag,A.data.config,function(L){d$M(A.data)(L);
L=_.d(A.parts);for(var O=L.next();!O.done;O=L.next())jKe(O.value)})};
zVy=function(A){return A.parts.map(HFJ)};
HFJ=function(A){if(typeof A==="string")return A;A=Joe(A.data)?_.D("span",{el:_.sC(YGe(A.data.imageWrapperConfig))},_.D(_.XV,Object.assign({},{data:A.data.image},A.data.imageConfig))):_.D(A.data.tag,{el:_.sC(d$M(A.data),YGe(A.data.config))},A.parts.map(HFJ));return nB(A)};
B5M=function(A,L){return A===L?!0:A===void 0||L===void 0?!1:A.noStyleRuns===L.noStyleRuns&&A.noLinkColor===L.noLinkColor&&A.noEndpoints===L.noEndpoints&&A.headerRuns===L.headerRuns&&A.isOverlay===L.isOverlay&&A.linkInheritColor===L.linkInheritColor&&A.userInput===L.userInput};
MFr=function(A){return function(){var L,O,X,x,J,Y,T,V,E,n,t,b,S,w;return{ariaLabel:(L=A.ariaLabel)==null?void 0:L.call(A),className:(O=A.className)==null?void 0:O.call(A),ellipsisTruncate:(X=A.ellipsisTruncate)==null?void 0:X.call(A),isOverlay:(x=A.isOverlay)==null?void 0:x.call(A),linkInheritColor:(J=A.linkInheritColor)==null?void 0:J.call(A),noEndpoints:(Y=A.noEndpoints)==null?void 0:Y.call(A),noStyleRuns:(T=A.noStyleRuns)==null?void 0:T.call(A),noLinkColor:(V=A.noLinkColor)==null?void 0:V.call(A),
noPreWrap:(E=A.noPreWrap)==null?void 0:E.call(A),noWrap:(n=A.noWrap)==null?void 0:n.call(A),skipOnClick:(t=A.skipOnClick)==null?void 0:t.call(A),stopPropagation:(b=A.stopPropagation)==null?void 0:b.call(A),userInput:(S=A.userInput)==null?void 0:S.call(A),headerRuns:(w=A.headerRuns)==null?void 0:w.call(A)}}};
$$e=function(A){return A.value===""||A.value==="true"?!0:A.value==="false"?!1:isNaN(Number(A.value))?A.value:Number(A.value)};
Px=function(A,L){A=new avJ(A,L);_.C7(A);throw A;};
khM=function(A,L,O){var X=xMD(A);A._numRenders=0;try{var x=_.Efu(function(){return _.D(L,Object.assign({},O))})}catch(Y){var J=function(T){T.args||(T.args=[]);
T.args.push("Error in web component wrapper");T.args.push(A.tagName.toLowerCase());return T};
_.FJ(Y instanceof Error?J(Y):new avJ("Wiz rendering error",A.tagName.toLowerCase()));throw Y;}finally{xMD(X)}return x};
_.Y4=function(A,L,O){function X(n){var t={};n=_.d(n);for(var b=n.next();!b.done;b=n.next()){b=b.value;var S=void 0,w=void 0,l=void 0,F=_.bi((l=(w=(S=b).getAttribute)==null?void 0:w.call(S,"slot"))!=null?l:"children");if(S=t[F])S.push(b);else if(F in J||F==="children")t[F]=[b]}n=_.d(Object.keys(t));F=n.next();for(b={};!F.done;b={content$jscomp$57:void 0},F=n.next())F=F.value,F!=="children"&&(b.content$jscomp$57=t[F],t[F]=function(R){return function(){return R.content$jscomp$57}}(b));
return t}
O=O===void 0?{}:O;A.componentType!==gF||Px("Components must be marked reactive to be used from web component wrapper.",L);Ti.has(L)&&Px("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",L);var x,J=(x=O.props)!=null?x:{};Vz.add(L);var Y=U$D();x=function(){var n=Y.apply(this,arguments)||this;n.rawProps={};n.queuingRender=!1;n.dispose=function(){};
n.isWebComponentWrapper=!0;n.isReparenting=!1;n.hasRendered=!1;return n};
_.g(x,Y);x.prototype.render=function(){this.hasRendered=!0;for(var n=_.d([].concat(_.le(this.attributes))),t=n.next();!t.done;t=n.next())t=t.value,t.name!=="slot"&&t.name!=="hidden"&&this.removeAttribute(t.name);n=Object.assign({},this.componentProps,this.slotProps);t=_.d(khM(this,A,n));n=t.next().value;t=t.next().value;!(n[0]instanceof Element)||n.length>1?Px("Wrapped Wiz components must return a single root element.",L):(n=n[0].tagName.toLowerCase(),n!==L&&Px("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(n+" !== '"+L),L),this.dispose=t)};
x.prototype.setUpProps=function(){for(var n=this.rawProps,t=this.attributes,b=_.d(Object.keys(J)),S=b.next();!S.done;S=b.next()){S=S.value;var w=void 0;((w=this)==null?0:w[S])&&this[S]!==vRu&&n[S]===void 0&&(n[S]=this[S],(w=Object.getOwnPropertyDescriptor(this.constructor.prototype,S))&&Object.defineProperty(this,S,w))}b=_.d(t);for(S=b.next();!S.done;S=b.next()){w=S.value;S=_.bi(w.name);var l=S==="class"&&!t.getNamedItem("class-name");if(S in J||l)w=$$e(w),S!=="class"||n.className?n[S]=w:n.className=
w}t={};for(var F in J)J[F]!==_.dl&&J[F]!==oR9&&(n[F]instanceof Function&&Px("Function props must be configured as STATIC, not SIGNAL.",L),S=_.d(_.uQ(n[F],void 0,"Ri8MSe")),b=S.next().value,S=S.next().value,t[F]=S,n[F]=b);n=_.d([n,t]);this.componentProps=n.next().value;this.setters=n.next().value;this.slotProps=X(this.childNodes)};
x.prototype.connectedCallback=function(){Ya===L&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in J&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
x.prototype.disconnectedCallback=function(){if(!this._isInert){var n;a:{if(_.AJs)for(n=this;n;){if(_.L3r.has(n)){n=!0;break a}n=n.parentElement}n=!1}if(n)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){n=_.d([].concat(_.le(this.attributes)));for(var t=n.next();!t.done;t=n.next()){t=t.value;var b=void 0;t.name==="slot"||t.name==="hidden"&&((b=O.unsafeExternallySettableAttributes)==null?0:b.has("hidden"))||this.removeAttribute(t.name)}}this.innerText="";kxp(this)}}};
x.prototype._setPendingPropertyOrPath=function(){};
x.prototype.notifyPath=function(){};
_.v2.Object.defineProperties(x.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var T=_.d(Object.keys(J)),V=T.next(),E={};!V.done;E={prop$jscomp$104:void 0},V=T.next())E.prop$jscomp$104=V.value,V=void 0,((V=O.legacyPolymer)==null?0:V.forwardHostProps)&&MjJ.has(E.prop$jscomp$104)||Object.defineProperty(x.prototype,E.prop$jscomp$104,{set:function(n){return function(t){var b=this;this._isInert||(this.setters?nr(function(){var S,w;return void((w=(S=b.setters)[n.prop$jscomp$104])==null?void 0:w.call(S,t))}):(this.rawProps[n.prop$jscomp$104]=t,this.queuingRender&&n.prop$jscomp$104===
"data"&&t!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(E),
get:Owu.has(E.prop$jscomp$104)?void 0:function(){return vRu}});
customElements.define(L,x)};
_.XEO=function(A,L){return(A=_.uB(A,L))?_.G2(_.RP(A)):null};
_.TJ=function(A){if(A=_.uB(A,Number.MAX_VALUE,void 0,"width"))return _.RP(A)};
_.uB=function(A,L,O,X){X=X===void 0?"width":X;if(!A||!A.length)return null;if(_.h("kevlar_tuner_should_always_use_device_pixel_ratio")){var x=window.devicePixelRatio;_.h("kevlar_tuner_should_clamp_device_pixel_ratio")?x=Math.min(x,_.PO("kevlar_tuner_clamp_device_pixel_ratio")):_.h("kevlar_tuner_should_use_thumbnail_factor")&&(x=_.PO("kevlar_tuner_thumbnail_factor"));xuy=x}else xuy||(xuy=window.devicePixelRatio);x=xuy;_.h("kevlar_tuner_should_always_use_device_pixel_ratio")?L*=x:x>1&&(L*=x);if(_.h("kevlar_tuner_min_thumbnail_quality"))return A[0].url||
null;x=A.length;if(_.h("kevlar_tuner_max_thumbnail_quality"))return A[x-1].url||null;if(O)for(var J=0;J<x;J++)if(A[J].url.indexOf(O)>=0)return A[J].url||null;for(O=0;O<x;O++)if(A[O][X]>=L)return A[O].url||null;for(L=x-1;L>0;L--)if(A[L][X])return A[L].url||null;return A[0].url||null};
P7u=function(){V3.size?setTimeout(function(){Dr(s2u)},0):JJe=0};
s2u=function(){var A=(0,_.O$)(),L=null,O=!1;V3.forEach(function(x){x.loaded=!0;x.loadTime=A;x.pendingPaint=!1;var J=dur.get(x);J&&J.resolve(A);L=x;O||!x.ftlEligible&&x.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(O=!0)});
var X;((X=L)==null?0:X.markDirty)&&L.markDirty();V3.clear();JJe=0;O&&YFD(A)};
u$u=function(A){V3.add(A);A.pendingPaint=!0;JJe||(JJe=_.et(_.c1,P7u))};
T7O=function(A){A.loaded=!1;A.loadTime=Infinity;var L=dur.get(A);L&&(L.reject(Error("lh")),dur.delete(A));A.pendingPaint&&(V3.delete(A),A.pendingPaint=!1)};
_.VyD=function(A){var L=A.indexOf(":");return L===-1?{originalName:A}:{originalName:A.substring(0,L),datasyncId:A.substring(L+1)}};
_.ete=function(){return _.u(function(A){if(Dup!==void 0)return A.return(Dup);Dup=new Promise(function(L){var O;return _.u(function(X){switch(X.nextAddress){case 1:return _.e4(X,2),X.yield(_.EC.open("test-only"),4);case 4:return X.yield(_.EC.delete("test-only"),5);case 5:_.zA(X,3);break;case 2:if(O=_.S4(X),O instanceof Error&&O.name==="SecurityError")return L(!1),X.return();case 3:L("caches"in window),_.qo(X)}})});
return A.return(Dup)})};
tye=function(){return _.u(function(A){if(A.nextAddress==1)return A.yield(_.ete(),2);if(!A.yieldResult)return A.return(void 0);Ene||(Ene=new nne);return A.return(Ene)})};
bwd=function(A){var L,O,X,x;return _.u(function(J){switch(J.nextAddress){case 1:return J.yield(tye(),2);case 2:L=J.yieldResult;if(!L)throw Error("nh");return J.yield(L.open("yt-player-local-img"),3);case 3:return O=J.yieldResult,J.yield(O.match(A),4);case 4:X=J.yieldResult;if(!X)throw Error("oh");return J.yield(X.blob(),5);case 5:return x=J.yieldResult,J.return(x)}})};
hts=function(A,L){for(var O in A)if(A.hasOwnProperty(O)&&L[O])return O;return null};
SFe=function(A){return"stamp"+A.replace("-","_")+"_"};
qFy=function(A){var L=A.match(/\[\[([\w\.]+)\]\]/);if(L&&L.length>1)return L[1];_.C7(Error("qh`"+A));return null};
gnJ=function(A){return A===void 0?_.fB("REUSE_COMPONENTS",!1):A||!1};
iwM=function(A,L,O){O&&(L.is?(wEP.has(L)&&(A=wEP.get(L),O=A.listener,delete L[A.property],O.type==="element"&&L.removeEventListener(O.eventName,O.handler),wEP.delete(L)),pEd(L)):L.__proto__==HTMLElement.prototype&&(L=new _.pe("Rendererstamper removed a non custom element","Stamper: "+A+" element: "+(L&&L.nodeName)),_.Rv(L)))};
N7M=function(A,L,O,X){var x=L.node?L.node:L;_.YJ(O).parentNode===x&&(L.removeChild(O),iwM(A,O,X));if(A=ny.get(O))ny.delete(O),_.c1.cancelJob(A);O.hidden=!1};
rJO=function(A,L,O,X){if(L&&L.children&&(O=L.children[O]))if(_.fB("DEFERRED_DETACH"))for(;O&&!ny.has(O);){var x=A,J=L,Y=O,T=X;Y.hidden=!0;x=_.p7(_.c1,N7M.bind(null,x,J,Y,T),0);ny.set(Y,x);O=O.nextElementSibling}else for(;(Y=L.lastElementChild)&&(L.removeChild(Y),iwM(A,Y,X),Y!=O););};
K3D=function(A){var L=_.av("__slot-el");_.GD(function(){for(var O=_.d(A.slotContent),X=O.next();!X.done;X=O.next())L.value.appendChild(X.value)});
return _.D("__slot-el",{el:L,skip:!0})};
_.tF=function(A,L,O){O=O===void 0?GH9:O;Ti.add(L);var X;(X=O).propNames!=null||(X.propNames=[]);var x=new Set(O.propNames),J=U$D();X=function(){var E=J.call(this)||this;E.props={};E.isUpdating=!1;E.hasAttached=!1;E.isInert=!1;E.updateQueued=!1;E.initialClasses=[];XZr(E,L);return E};
_.g(X,J);X.prototype.forwardKebabCaseProp=function(E,n){E=_.bi(E);if(x.has(E)||E==="children")this.props[E]=n};
X.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var E=_.d(this.initialClasses),n=E.next();!n.done;n=E.next())(n=n.value)&&this.classList.add(n);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
X.prototype.handleSlottedContent=function(){for(var E=new Map,n=_.d(this.children),t=n.next();!t.done;t=n.next()){t=t.value;var b=void 0,S=(b=t.getAttribute("slot"))!=null?b:"children";(b=E.get(S))?b.push(t):E.set(S,[t]);if(!t.getAttribute("key")){var w=void 0,l=void 0;t.setAttribute("key",S+"_"+((l=(w=b)==null?void 0:w.length)!=null?l:0))}}E=_.d(E);for(n=E.next();!n.done;n=E.next())t=_.d(n.value),n=t.next().value,t=t.next().value,this.forwardKebabCaseProp(n,_.D(K3D,{slotContent:t}))};
X.prototype.connectedCallback=function(){var E=this;if(!XZr(this,L)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var n=_.d(this.attributes),t=n.next();!t.done;t=n.next())t=t.value,this.forwardKebabCaseProp(t.name,$$e(t));this.handleSlottedContent();O.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){E.afterFirstPatch()});
this.hasAttached=!0}};
X.prototype.attributeChangedCallback=function(E,n,t){this.isInert||this.isUpdating||this.isConnected||E!=="class"||this.initialClasses.push.apply(this.initialClasses,_.le(t.split(" ")))};
X.prototype.disconnectedCallback=function(){CiO(this)};
X.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var E,n;alr(this,_.D(A,Object.assign({},this.props,{idomKey:(n=(E=this.__incrementalDOMData)==null?void 0:E.key)!=null?n:L})),!0)}catch(b){var t=b instanceof Error?b:new _.pe("Wiz rendering error");t.args||(t.args=[]);t.args.push("Error in deprecated web component wrapper");t.args.push(L.toLowerCase());_.C7(t);throw b;}finally{this.updateQueued=this.isUpdating=!1}}};
X.prototype.enqueueUpdate=function(){var E=this;return _.u(function(n){if(O.synchronous)return E.update(),n.return();if(E.updateQueued)return n.return();E.updateQueued=!0;return n.return(Promise.resolve().then(function(){E.update()}))})};
X.prototype.notifyPath=function(){O.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.v2.Object.defineProperties(X,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var Y=_.d(O.propNames),T=Y.next(),V={};!T.done;V={prop$jscomp$106:void 0},T=Y.next())V.prop$jscomp$106=T.value,Object.defineProperty(X.prototype,V.prop$jscomp$106,{set:function(E){return function(n){this.isInert||n===this.props[E.prop$jscomp$106]||(this.props[E.prop$jscomp$106]=n,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(V)});
customElements.define(L,X)};
_.ljp=function(A,L){return _.eM(A.entities,"markersEngagementPanelSyncEntity",L)};
cJJ=function(A,L){return _.eM(A.entities,"fantasyWinProbabilityEntity",L)};
C7P=function(A,L){return _.eM(A.entities,"fantasyTeamEntity",L)};
F3O=function(A,L){return _.eM(A.entities,"fantasyPlayerEntity",L)};
Rtp=function(A,L){return _.eM(A.entities,"booleanEntity",L)};
Q2s=function(A,L){return _.eM(A.entities,"qrCodeEntity",L)};
mud=function(A){return _.eM(A.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
fjp=function(){if(bB)return bB;if(window.lottie)return bB=Promise.resolve(window.lottie);var A=_.CH(_.ms("LOTTIE_URL"));return A?bB=new Promise(function(L,O){var X=document.createElement("script");X.addEventListener("load",function(){L(lottie)});
X.addEventListener("error",function(x){var J="Lottie library failed to load.";x?x.message&&(J+=" Original description: "+x.message,_.Q$(x,J)):x=Error(J);_.Rv(x);O(x)});
X.setAttribute("async","");_.UB(X,A);document.head.appendChild(X)}):Promise.reject(Error("rh"))};
Ijs=function(){return bB?bB:fjp()};
yJM=function(A){if(A)switch(A){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.h("kevlar_use_wil_icons"))return A=(A=mud(_.Ai().getState()))&&A.animationLightUrl&&A.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:A.animationLightUrl,pathDarkTheme:A.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,A?A:hF.get("LIKE");break;case "LIKE_DELHI_PLAYER":return hF.get("LIKE_DELHI_PLAYER")}};
ZwO=function(A){var L=yJM(A);if(L)return L;switch(A){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return hF.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return hF.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return hF.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return hF.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return hF.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return hF.get("NOTIFICATION_BELL")}};
j2J=function(A,L){if(!A.closest)return!1;L=!!yJM(L);return _.ms("ID_TOKEN")&&L?!!A.closest("segmented-like-dislike-button-view-model")||!!A.closest("yt-player-quick-action-buttons"):!1};
HwO=function(A,L){if(!A||W3J)L=!1;else{var O;if(!(O=j2J(A,L)))if(A.closest)if(O=!_.ms("ID_TOKEN"),A=A.closest("ytd-subscription-notification-toggle-button-renderer-next"),O||!A)O=!1;else{var X;O=((X=A.data)==null?void 0:X.targetId)==="notification-bell"&&L!=="EXPAND_MORE"}else O=!1;L=O}return L};
ztr=function(A){var L,O;return _.u(function(X){switch(X.nextAddress){case 1:return _.e4(X,2),X.yield(fetch(A),4);case 4:return L=X.yieldResult,X.yield(L.json(),5);case 5:return X.return(X.yieldResult);case 2:O=_.S4(X),_.Rv(O),_.qo(X)}})};
B7O=function(A,L){var O,X,x;return _.u(function(J){if(J.nextAddress==1)return(O=L?A.pathDarkTheme:A.path)?J.yield(Promise.all([ztr(O),fjp()]),2):J.return();X=J.yieldResult;x=X[0];St.set(O,x);_.qo(J)})};
_.qn=function(){for(var A=_.f_.apply(0,arguments),L=!0,O=_.d(A),X=O.next();!X.done;X=O.next())if(typeof X.value!=="string"){L=!1;break}return L?A.join(" ").trim()||void 0:function(){for(var x="",J=_.d(A),Y=J.next();!Y.done;Y=J.next())if(Y=Y.value,typeof Y==="function"&&(Y=Y()),Y)if(typeof Y==="string")x+=" "+Y;else for(var T in Y)if(Y.hasOwnProperty(T)){var V=Y[T];typeof V==="function"&&(V=V());V&&(x+=" "+T)}x=x.trim()||void 0;return _.GV(x)}};
$up=function(A,L,O,X){function x(Y,T){if(L.value===T&&A!=null&&A.value){for(;A.value.firstChild;)A.value.removeChild(A.value.firstChild);A.value.classList.add("yt-spec-icon-shape");Y(A.value,X)}}
O=_.Myr(_.X5().resolve(_.ht),O);if(typeof O==="function")L.value=null,x(O,null);else{var J=new _.eJ(O.then,O);L.value=J;J.then(function(Y){x(Y,J)})}};
kHu=function(A,L){var O=document.createElement("div"),X=_.NE(O,function(){return _.D(_.e,{cond:A,then:function(x){return _.D(ajP,{data:x,options:L})}})});
return[O,X]};
_.gl=function(){for(var A=[],L=_.d(_.f_.apply(0,arguments)),O=L.next();!O.done;O=L.next())if(O=O.value)if(typeof O==="string")A.push(O);else{O=_.d(Object.entries(O));for(var X=O.next();!X.done;X=O.next()){var x=_.d(X.value);X=x.next().value;(x=x.next().value)&&A.push(X)}}return A.join(" ")};
AdD=function(A){var L=_.av("animated-rolling-character"),O=cY(),X=UI(A.character)||UI(A.previousCharacter);vOe(function(){if(A.marginMultiplier){var x;(x=O.value)==null||x.cancel();X?(x=A.previousCharacter?Number(A.previousCharacter)+10:A.rollUp?0:30,A.shouldAnimate||(x-=Uup(A,x))):(x=A.rollUp?0:2,A.shouldAnimate||(x-=A.rollUp?-1:1));L.value.style.marginTop="-"+x*A.marginMultiplier+"px";A.shouldAnimate?O.value=vnP(L.value,A,x,X):L.value.style.display=A.character?"":"none"}});
return _.D("animated-rolling-character",{el:L,class:"animated-rolling-character-wiz"},an(X,function(){for(var x=[],J=1;J<30;J++)x.push(_.D("div",null,J%10));return _.D(_.Xs,null,_.D("div",null,"\u00a0"),x,_.D("div",null,"\u00a0"))},function(){return onu(A.character)}))};
onu=function(A){return _.D(_.Xs,null,_.D("div",null,"\u00a0"),_.D(_.Xs,null,an(!A||_.Ye(A),function(){return _.D("div",null,"\u00a0")},function(){return _.D("div",null,A)})),_.D("div",null,"\u00a0"))};
vnP=function(A,L,O,X){O=new Animation(new KeyframeEffect(A,[{transform:"translateY(0px)"},{transform:"translateY("+(X?Uup(L,O):L.rollUp?-1:1)*L.marginMultiplier+"px)"}],LEu),document.timeline);L.character?(A.style.display="",O.onfinish=null):O.onfinish=function(){A.style.display="none"};
O.play();return O};
Uup=function(A,L){var O=Number(A.character)+10;if(A.previousCharacter)if(A.character){var X=Number(A.character),x=Number(A.previousCharacter);A=A.rollUp?x<X?O:O+10:x<X?O-10:O}else A=A.rollUp?30:0;else A=A.character==="0"?O:A.rollUp?O-10:O+10;return L-A};
_.wl=function(A,L){return function(O){var X={},x;for(x in O){var J=void 0,Y=void 0;((J=L)==null?0:(Y=J.callbacks)==null?0:Y[x])||(X[x]=O[x])}return _.D(eOu,null,function(){for(var T in X)O[T]=_.GV(X[T]);O.disableReactiveLogging=!0;return _.D(A,Object.assign({},O))})}};
x2u=function(A,L,O,X,x,J,Y){O=new Animation(new KeyframeEffect(A,[{transform:"translateY(0px)"},{transform:"translateY("+(J?OGr(L,O,X,x):X?-1:1)*Y+"px)"}],XaM),document.timeline);L?(A.style.display="",O.onfinish=null):O.onfinish=function(){A.style.display="none"};
O.play();return O};
OGr=function(A,L,O,X){var x=Number(A)+10;L?A?(A=Number(A),L=Number(L),O=O?L<A?x:x+10:L<A?x-10:x):O=O?30:0:O=A==="0"?x:O?x-10:x+10;return X-O};
JdO=function(A){var L=cY(),O=cY();_.KB(function(){L.value=A.numberText;O.value=A.numberValue},[A.numberText]);
var X=A.fontSizeMultiplier?A.heightPx*A.fontSizeMultiplier:A.heightPx,x=P3e(function(){if(A.numberText){var Y=A.numberText;var T=A.forceRollUp||!O.value||!A.numberValue||O.value<A.numberValue;var V=!!A.shouldAnimate,E=L.value,n=[],t=0,b=0,S=(E?E.replace(/\D/g,"").length:0)-(Y?Y.replace(/\D/g,"").length:0);E=E?E.split(/(\d)/).filter(Boolean):[];for(Y=Y.split(/(\d)/).filter(Boolean);S<0;){var w=Y[b];n.push({character:w,rollUp:T,marginMultiplier:X,shouldAnimate:V});b++;UI(w)&&S++}for(;t<S;)w=E[t],n.push({previousCharacter:w,
rollUp:T,marginMultiplier:X,shouldAnimate:V}),t++,UI(w)||S++;for(;b<Y.length;)S=Y[b],w=E[t],UI(S)===UI(w)?(b++,t++):UI(S)?(t++,S=void 0):UI(w)&&(b++,w=void 0),n.push({character:S,previousCharacter:w,rollUp:T,marginMultiplier:X,shouldAnimate:V});T=n}else T=[];return T},[A.numberText]),J=A.numberText?["height: "+X+"px;",
"line-height: "+A.heightPx+"px;"].join(" "):"";return _.D("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:J,dir:"ltr","aria-hidden":"true"},x.map(function(Y){return _.D(s1u,Object.assign({},Y))}))};
d2p=function(A){var L;return(L=Pop[A])!=null?L:"EVENT_SPAN_TYPE_UNKNOWN"};
Y_u=function(A){var L=A.nodeName;if(A.id)return L+="#"+A.id;if(A.classList)for(var O=_.d(A.classList),X=O.next();!X.done;X=O.next())L+="."+X.value;A.parentElement&&(L=Y_u(A.parentElement)+" > "+L);return L};
uBs=function(A){return function(L){var O=d2p(L.type);return O==="EVENT_SPAN_TYPE_UNKNOWN"?A(L):f2_("event",{type:O,nodepath:L.target instanceof Element?Y_u(L.target):void 0},function(){return A(L)})}};
_.py=function(A){A&&F1u("event")&&(A=uBs(A));return zT_(function(L){var O,X=(O=A)==null?void 0:O(L);return typeof X==="boolean"?X:!0})};
iB=function(A){return function(){return A()?A():void 0}};
TKu=function(A){return new KeyframeEffect(A,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
VAM=function(A){return new KeyframeEffect(A,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.Nn=function(A){var L=JF(function(O){O=O?YN(O[0]):void 0;return _.uQ(A(O),void 0,"AwTxXe")},{isEqual:function(O,X){return YN(O[0])===YN(X[0])}});
return[function(){return L()[0]()},
function(O){return void L()[1](O)}]};
_.rl=function(A){return function(){var L="",O;for(O in A){for(var X=A[O];typeof X==="function";)X=X();X!==void 0&&X!==null&&(L+="; "+O+": "+X)}return L.length>0?_.GV(L.slice(2)):_.GV()}};
D2J=function(A){switch(A){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"}};
tAd=function(A,L,O,X,x,J){var Y=ey_(A),T=Y.disabled,V=Y.iconPosition,E=Y.style,n=Y.focused,t=function(){return!!w()&&V()==="icon-only"},b=function(){return!!w()&&V()==="icon-only-40"},S=function(){return!!w()&&V()==="icon-with-label"},w=function(){return!!L||!(X==null||!X())};
return{type:function(){return E()==="call-to-action-inverse"?"text":E()==="overlay-dark"&&A().type!=="filled"&&A().type!=="tonal"?"tonal":A().type},
shouldFocus:function(){return(n()||(J==null?void 0:J()))&&!T()},
hasIconLeading:function(){return!!w()&&V()==="leading"},
hasIconTrailing:function(){return!!w()&&V()==="trailing"},
hasIconLeadingTrailing:function(){return!!w()&&!!(O||x!=null&&x())&&V()==="leading-trailing"},
hasIconOnly:t,hasIconOnly40:b,hasIconWithLabel:S,iconButton:function(){return t()||b()||S()},
visiblyDisabled:function(){return(T()?"disabled":A().state)==="disabled"||T()},
overrideSmallSizeIcon:function(){return!A().ignoreIconSizeOverride&&ES_(A(),w())},
iconToRender:L?L:function(){return _.D(_.Ky,{icon:X,size:function(){return GJ(A(),!0,A().ignoreIconSizeOverride)},
active:function(){return A().toggled},
iconFilter:function(){return nSu(A())}})},
secondaryIconToRender:O?O:function(){return _.D(_.Ky,{icon:x,size:function(){return GJ(A(),!0,A().ignoreIconSizeOverride)},
active:function(){return A().toggled},
iconFilter:function(){return nSu(A())}})}}};
ey_=function(A){return{size:function(){return A().size},
style:function(){return A().style},
focused:function(){return A().focused},
disabled:function(){return A().disabled},
onTap:function(L){var O,X;return(X=(O=A()).onTap)==null?void 0:X.call(O,L)},
alignByText:function(){return A().alignByText},
aTagConfig:function(){return A().aTagConfig},
customColors:function(){return A().customColors},
segmentedPosition:function(){return A().segmentedPosition},
toggled:function(){return A().toggled},
toggleable:function(){return A().toggleable},
accessibilityLabel:function(){return A().accessibilityLabel},
onToggle:function(L){var O,X;return(X=(O=A()).onToggle)==null?void 0:X.call(O,L)},
iconPosition:function(){return A().iconPosition},
oneOffCustomTextWrap:function(){return A().oneOffCustomTextWrap},
disableTextEllipsis:function(){return A().disableTextEllipsis},
disableBackdropFilter:function(){return A().disableBackdropFilter},
tooltipText:function(){return A().tooltipText},
ariaHidden:function(){return A().ariaHidden},
tabIndex:function(){return A().tabIndex},
buttonText:function(){return A().buttonText},
formattedButtonText:function(){return A().formattedButtonText},
animatedTextProps:function(){return A().animatedTextProps}}};
bGd=function(A){return A.style==="overlay-dark"?4:A.style==="overlay"?A.type==="filled"?4:3:A.type==="filled"||A.style==="call-to-action-inverse"||A.style==="mono-inverse"?2:1};
ES_=function(A,L){L=(A.iconPosition==="icon-only"||A.iconPosition==="icon-only-40"||A.iconPosition==="icon-with-label")&&L;return!A.segmentedPosition&&L&&A.size==="S"};
hys=function(){return!_.h("web_disable_backdrop_filter")};
GJ=function(A,L,O){switch(A.size){case "XS":return 16;case "S":return!O&&ES_(A,L)?24:16;default:return 24}};
S_J=function(A){switch(A){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"}};
q_e=function(A){switch(A){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"}};
gSu=function(A){switch(A){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"}};
nSu=function(A){if(A.style==="overlay-dark"&&A.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
waM=function(A){if(!A)return{};var L=A.color,O=A.backgroundColor;A=A.borderColor;var X="";L&&(X+="color: "+L+";");O&&(X+="background-color: "+O+";");A&&(X+="border-color: "+A+";");return{style:X}};
KEp=function(A,L,O){var X=A.buttonText,x=A.formattedButtonText,J=A.formattedButtonTextLegacy,Y=A.animatedTextProps,T=A.style,V=A.size,E=A.focused,n=A.disabled,t=A.onTap,b=A.alignByText,S=A.aTagConfig,w=A.customColors,l=A.segmentedPosition,F=A.toggled,R=A.toggleable,y=A.accessibilityLabel,M=A.onToggle,H=A.iconPosition,z=A.oneOffCustomTextWrap,a=A.disableTextEllipsis,xe=A.disableBackdropFilter,ur=A.tooltipText,eD=A.ariaHidden,gu=A.tabIndex,ir=A.ignoreIconSizeOverride,SD=A.state,HJ=A.type;T==="call-to-action-inverse"&&
(HJ="text");T==="overlay-dark"&&HJ!=="filled"&&HJ!=="tonal"&&(HJ="tonal");var mM=!!L&&H==="leading",Vu=!!L&&H==="trailing",cn=!!L&&!!O&&H==="leading-trailing",Tj=!!L&&H==="icon-only",Uu=!!L&&H==="icon-only-40",Eg=!!L&&H==="icon-with-label",DN=Tj||Uu||Eg;n&&(SD="disabled");var NN=SD==="disabled"||n;ir=!ir&&ES_(A,!!L);SD={};var bJ=(SD["yt-spec-button-shape-next"]=!0,SD[S_J(HJ)]=!0,SD[q_e(T)]=!NN,SD["yt-spec-button-shape-next--disabled"]=!!NN,SD[gSu(V)]=!0,SD["yt-spec-button-shape-next--focused"]=!!E&&
!n,SD["yt-spec-button-shape-next--icon-trailing"]=Vu,SD["yt-spec-button-shape-next--icon-leading"]=mM,SD["yt-spec-button-shape-next--icon-leading-trailing"]=cn,SD["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=cn&&!(X||x),SD["yt-spec-button-shape-next--icon-button"]=Tj||Eg,SD["yt-spec-button-shape-next--icon-only-default"]=Uu,SD["yt-spec-button-shape-next--align-by-text"]=!!b,SD["yt-spec-button-shape-next--segmented-start"]=l==="start",SD["yt-spec-button-shape-next--segmented-end"]=l===
"end",SD["yt-spec-button-shape-next--override-small-size-icon"]=ir,SD["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=!!z,SD["yt-spec-button-shape-next--disable-text-ellipsis"]=!!a,SD["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=!xe&&hys(),SD),MN=function(){if(Y)rou(_.paP)(Y);else if(J)J(H==="icon-with-label"||z?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",textAlignment:"TEXT_ALIGNMENT_CENTER"}:{});else if(x){var Wn=H==="icon-with-label"||z;WVu(Object.assign({},
x,Wn?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:{}),{noLinkColor:!0,noWrap:!Wn})}else X&&oe(X)},Js=function(Wn){t==null||t(Wn);
R&&(M==null||M(Wn))},XL=S?iG_:NKr,gJ=S?"aria-current$":"aria-pressed$",hk=function(){L&&(mM||cn||DN)&&function(){lB({className:"yt-spec-button-shape-next__icon",
"aria-hidden$":!0},function(){L()})}();
(X||x||J||Y)&&!DN&&function(){lB({className:"yt-spec-button-shape-next__button-text-content"},function(){MN()})}();
Vu&&function(){lB({className:"yt-spec-button-shape-next__icon"},function(){L()})}();
cn&&function(){lB({className:"yt-spec-button-shape-next__secondary-icon"},function(){O()})}();
n||rou(_.cx)({model:{color:bGd(A)}})},hc=function(){var Wn={};
XL(Object.assign({},(Wn.className=_.gl(bJ),Wn.onclick=S?void 0:Js,Wn.disabled=n,Wn["aria-disabled$"]=NN,Wn.style=n&&S?"pointer-events:none":void 0,Wn[gJ]=R?!!F:void 0,Wn["aria-label$"]=y,Wn.title$=ur!=null?ur:"",Wn["aria-hidden$"]=eD,Wn.tabindex$=gu,Wn),S,waM(w)),function(){hk()})};
Eg?(V={},T=(V["yt-spec-button-shape-with-label"]=!0,V["yt-spec-button-shape-with-label--is-overlay"]=T==="overlay"||T==="overlay-dark",V),rdu({className:_.gl(T)},function(){hc();lB({"aria-hidden$":!0,className:"yt-spec-button-shape-with-label__label"},MN)})):hc()};
l$D=function(A,L){if(!k8){var O;L2P(function(){return O=VEe(A,L)});
return O}A.parent=_.GWO();return VEe(A,L)};
_.GWO=function(){var A=_.vq(k8||void 0,Yfs);return _.gop(A)?void 0:A};
Cy=function(A){return A&&A.endsWith("px")?Number(A.slice(0,-2)):0};
FEJ=function(A){var L=L===void 0?{}:L;A=_.d(_.Nn(A));var O=A.next().value;return[function(X){var x=_.E4(function(){var T,V,E,n;return{text:(T=O())!=null?T:"",location:(V=L.location)!=null?V:"bottom",offset:(E=L.offset)!=null?E:16,delay:(n=L.delay)!=null?n:500}},void 0,"MgTrkc");
_.ND(function(){var T=x();YN(function(){_.c1.addJob(function(){FV.notify(X,T)},4)})},"WlsgZc");
var J=function(){cdr(X,x())},Y=function(){Cos()};
X.addEventListener("mouseenter",J);X.addEventListener("focus",J);X.addEventListener("mouseleave",Y);X.addEventListener("blur",Y);X.addEventListener("tap",Y);_.rF(function(){X.removeEventListener("mouseenter",J);X.removeEventListener("mouseleave",Y);X.removeEventListener("focus",J);X.removeEventListener("blur",Y);X.removeEventListener("tap",Y);Cos()})},
A.next().value]};
RQ=function(A,L){_.zi(A,Object.assign({},L,{forceClickLogging:!0}))};
Q1u=function(A,L){var O=_.HR(A==null?void 0:A.onTap),X={};O&&(X.getClickedVisualElement=function(){var x;return Rys(A,O,L==null?void 0:(x=L.value)==null?void 0:x.visualElement)});
X=_.BR({elementsCommand:A.onTap,forceNewState:!0,additionalCommandArgs:X});return Mb(X)?X:void 0};
m2y=function(A,L,O,X){RQ(A,Object.assign({},{form:{element:L,event:O}},X))};
f$u=function(A,L,O,X,x){var J=void 0;return function(Y){var T=_.HR(O?A==null?void 0:A.onDisabledTap:A==null?void 0:A.onTap);if(T){var V;J=(V=J)!=null?V:L==null?void 0:L.value;if(T)if(_.h("web_button_vm_click_client_ve_killswitch"))m2y(T,J,Y);else{var E;V=Rys(A,T,(E=J)==null?void 0:E.visualElement);if(x){m2y(T,x,Y,{clickedVisualElement:V,form:{element:x}});return}m2y(T,J,Y,{clickedVisualElement:V})}}X&&X(Y)}};
Rys=function(A,L,O){L=L==null?void 0:L.clickTrackingParams;var X,x;A=A==null?void 0:(X=A.loggingDirectives)==null?void 0:(x=X.clientVeSpec)==null?void 0:x.uiType;if(O&&A&&!L)return O};
I$u=function(A){switch(A){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"}};
ydO=function(A){switch(A){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"}};
ZGJ=function(A){switch(A){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"}};
j1s=function(A){switch(A){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"}};
WEy=function(A,L){return _.eM(A.entities,"engagementToolbarStateEntityPayload",L)};
zye=function(A){(A=_.lV(A))&&_.HG9(A)};
_.HG9=function(A){var L=_.Fn();L&&_.zZ(L,A)};
BKd=function(A,L,O){_.dQ(A,"yt-open-popup-action",[L,O||A])};
MAP=function(A,L){var O=_.Fs(A,"endpoint"),X=_.Fs(A,"action");return(O=X?X:O)&&L&&(O=L.navigationEndpointPopupMap[O])&&(A=_.WY(O,A),(O=_.Fs(A,"renderer"))&&L.supportedPopups.hasOwnProperty(O))?{openPopupAction:{popupType:L.popupTypeMap[O],popup:A}}:null};
$2s=function(A,L,O,X){if(X){var x;O=O==null?void 0:(x=O.data)==null?void 0:x.contents;(x=O instanceof Array&&O.length?O[0]:O)&&(O=_.Fs(x,"renderer"))&&X.supportedPopups.hasOwnProperty(O)&&(L.stopPropagation(),BKd(A,{openPopupAction:{popupType:X.popupTypeMap[O],popup:x}}))}};
U2y=function(A,L,O,X){X=X===void 0?!1:X;var x=a$y(L);if(x){x.href&&MT(x.href);var J=L.button;J=J!==void 0?J===0&&!Q3(L):!Q3(L);x.data&&J&&kWe(A,x,L,O,X)}};
kWe=function(A,L,O,X,x){x=x===void 0?!1:x;var J=_.PO("pbj_navigate_limit",-1)===0;vS9(L);_.X5().resolve(_.Ot(Wh));var Y=L.data;if(Object.keys(Y).length!==0)if(!_.h("unplugged_web_disable_actions_for_cec_endpoint")&&_.q(Y,_.em))_.h("endpoint_behavior_command_executor_fix_killswitch")||(O.preventDefault(),O.stopPropagation()),_.VN(A,[Y],A);else if(X=MAP(Y,X))Y.loggingUrls&&Y.loggingUrls.forEach(function(V){V.baseUrl&&_.jY(V.baseUrl)}),O.preventDefault(),O.stopPropagation(),BKd(A,X,L);
else{var T=oSp(0,L.data,O);if(A=L.getForm)A=A(),T.tempData=T.tempData||{},T.tempData=Object.assign({},T.tempData,A);A=_.oa(O);if(X=A.find(function(V){return!!V.visualElement}))T.createScreenConfig=T.createScreenConfig||{},T.createScreenConfig.clickedVisualElement=X.visualElement;
if(!J)if(O.preventDefault(),O.stopPropagation(),_.q(Y,_.A1e)&&!x&&_.S5.instance)_.S5.instance.resolveCommand(Y,T);else if(_.h("kevlar_command_handler_formatted_string")&&!x&&_.S5.instance&&L_y(Y))x=A.find(function(V){return!!V.is})||O.target,O={form:Object.assign({},T,{event:O,
element:x,originatingNode:L})},_.S5.instance.resolveCommand(Y,O);else{Y=_.oa(O);O=[];for(x=0;x<Y.length;x++)(J=Y[x].is)&&O.push(J);rIe({parents:O.join(","),text:L.innerText},function(){_.P4(L,"yt-navigate",T)})}}};
Ood=function(A){if(A=a$y(A))vS9(A),EZ_(A.href)};
a$y=function(A){A=_.oa(A);for(var L,O=0;O<A.length;O++)if(L=A[O],L.tagName==="A"&&L.classList.contains("yt-simple-endpoint")){if(!L.data)break;return L}return null};
Q3=function(A){return A.shiftKey||A.altKey||A.metaKey||A.ctrlKey};
XKe=function(A,L){var O={itct:L.clickTrackingParams};_.h("kevlar_client_side_screens")&&(!_.q(L,_.rM)||_.h("kevlar_exclude_endpoint_killswitch"))&&(O.endpoint=JSON.stringify(L));_.h("enable_unknown_lact_fix_on_html5")&&_.X5().resolve(_.Ot(_.m4))&&(O.lact=_.xw());VSp(O);_.oF(A,O)};
vS9=function(A){A.href&&Object.keys(A.data).length!==0&&XKe(A.href,A.data)};
L_y=function(A){for(var L=_.d(xx_),O=L.next();!O.done;O=L.next())if(A[O.value])return!1;return!0};
_.fy=function(A,L){if(L){var O={};spD.forEach(function(X){X=J1J(L,X,"--yt-lightsource-");Object.assign(O,X)});
P9D.forEach(function(X){X=J1J(L,X,"--yt-basic-");Object.assign(O,X)});
_.eq(A,O)}};
J1J=function(A,L,O){var X={};X[O+_.t9(L)]=A&&A[L]?_.Hy(A[L]):"";return X};
_.y3=function(A,L,O){IQ[A]||(IQ[A]={});IQ[A][L]=O};
_.Zr=function(A){IQ[A]||(IQ[A]={});return IQ[A]};
dxy=function(A){if(!A)return{};var L=A.foregroundTitleColor,O=A.backgroundColor;A=A.borderColor;var X="text";A?X="outline":O&&(X="filled");return{type:X,customColors:{color:L?_.Hy(L):void 0,backgroundColor:O?_.Hy(O):void 0,borderColor:A?_.Hy(A):void 0}}};
DxM=function(A){var L=A.renderer;var O=A.element;var X=A.commandController;var x=A.onTapCallback;var J=A.skipCommandHandling;var Y=A.overrides;var T=A.forceIcon;var V=A.forceModernIconButton;var E=A.forceDisabled;var n=A.isSubscribe===void 0?!1:A.isSubscribe;var t=A.isPressed===void 0?!1:A.isPressed;var b=A.useButtonSize===void 0?!1:A.useButtonSize;A=Y2M(L);n&&(A.style="mono",A.type="filled");T=!L.icon||!T&&L.text?L.icon?L.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:V?"icon-only":"icon-only-40";T==="icon-only-40"&&(A.type="text");var S;V=Object;n=V.assign;b=uA9(L,b);t=!!L.isSelected||!_.h("web_propagate_is_pressed_killswitch")&&!!t;var w=L.isSelected!==void 0;E=E===void 0?L.isDisabled:E;var l=L.text?_.yz(L.text):void 0;var F,R,y,M=((F=L.accessibilityData)==null?void 0:(R=F.accessibilityData)==null?void 0:R.label)||((y=L.accessibility)==null?void 0:y.label);F=M?M:_.vG(L.text);O=TPD(L,O,X,x,J);X=VWr(L);X!=null&&X.length?(X=_.BR({innertubeCommand:Kwu(X),
forceNewState:!0}),X=Mb(X)?X:void 0):X=void 0;return n.call(V,{},A,b,{iconPosition:T},Y,{focused:!1,toggled:t,toggleable:w,disabled:E,formattedButtonText:l,accessibilityLabel:F,onTap:O,aTagConfig:X},dxy((S=L.colorData)==null?void 0:S.basicColorPaletteData),{oneOffCustomTextWrap:L.oneOffCustomTextWrap})};
TPD=function(A,L,O,X,x){return function(J){var Y=VWr(A);X(Y,J);if(!x){Y=_.d(Y);for(var T=Y.next();!T.done;T=Y.next())RQ(T.value,{form:{element:L,event:J},commandController:O})}}};
VWr=function(A){var L=[];A.command&&L.push(A.command);A.serviceEndpoint&&L.push(A.serviceEndpoint);A.navigationEndpoint&&L.push(A.navigationEndpoint);return L};
uA9=function(A,L){if(L)switch(A.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(A.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
Y2M=function(A){switch(A.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"}}};
ew9=function(A,L){return typeof A!=="object"||A===null?!1:Object.keys(L).every(function(O){return O in A})};
EQP=function(A,L,O){return u8O(O,function(X,x){return function(J){var Y=_.f_.apply(1,arguments);return ew9(J,A)?x.apply(null,[J[L]].concat(_.le(Y))):x.apply(null,[J].concat(_.le(Y)))}})};
_.jt=function(A){return A!=null&&A.watch?A.watch.isTheaterMode:!1};
_.Wx=function(A){return A!=null&&A.watch?A.watch.isWatchFullscreen:!1};
_.Hx=function(A){A=_.nQu(A);return _.h("web_watch_enable_single_column_grid_view")?A:!1};
_.nQu=function(A){return A.watch.isWatchNarrowWidth};
_.tWu=function(A){return A.watch.openEngagementPanels};
_.zJ=function(A){return _.E4(function(){sc_()();return dWP(A)},{debugName:"d8B62c"},"wfRQAb")};
Bx=function(A,L){return _.eM(A.entities,"likeStatusEntity",L)};
bop=function(A,L){return _.eM(A.entities,"likeCountEntity",L)};
_.hwu=function(A,L){return _.eM(A.entities,"stringEntity",L)};
S2O=function(A,L){if(!A)return!1;var O,X=(O=_.q(A,_.nM))==null?void 0:O.signal;if(X&&L.signalEndpointMap)return!!L.signalEndpointMap[X];var x;if((O=(x=_.q(A,_.Mn))==null?void 0:x.request)&&L.continuationEndpointMap)return!!L.continuationEndpointMap[O];for(var J in A)if(L.commandEndpointMap[J])return!0;return!1};
q2d=function(A,L){if(L.streamingEndpointMap)for(var O in A)if(L.streamingEndpointMap[O]&&(A=L.streamingEndpointMap[O]))return A()};
gQu=function(A,L){var O,X=(O=_.q(A,_.nM))==null?void 0:O.signal;if(X&&L.signalEndpointMap&&(O=L.signalEndpointMap[X]))return O();var x;if((O=(x=_.q(A,_.Mn))==null?void 0:x.request)&&L.continuationEndpointMap&&(x=L.continuationEndpointMap[O]))return x();for(var J in A)if(L.commandEndpointMap[J]&&(A=L.commandEndpointMap[J]))return A()};
wK_=function(A){var L={"Content-Type":"application/json"};_.ms("EOM_VISITOR_DATA")?L["X-Goog-EOM-Visitor-Id"]=_.ms("EOM_VISITOR_DATA"):_.ms("VISITOR_DATA")&&(L["X-Goog-Visitor-Id"]=_.ms("VISITOR_DATA"));L["X-Youtube-Bootstrap-Logged-In"]=_.ms("LOGGED_IN",!1);_.ms("DEBUG_SETTINGS_METADATA")&&(L["X-Debug-Settings-Metadata"]=_.ms("DEBUG_SETTINGS_METADATA"));A!=="cors"&&((A=_.ms("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(L["X-Youtube-Client-Name"]=A),(A=_.ms("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(L["X-Youtube-Client-Version"]=
A),(A=_.ms("CHROME_CONNECTED_HEADER"))&&(L["X-Youtube-Chrome-Connected"]=A),(A=_.ms("DOMAIN_ADMIN_STATE"))&&(L["X-Youtube-Domain-Admin-State"]=A),_.fB("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(A=_.ms("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(L["X-YouTube-Lava-Device-Context"]=A));return L};
pKu=function(A,L){L.watchNextResponse||L.reelItemWatchResponse?L.watchNextResponse?A.content=L.watchNextResponse:A.content=L.reelItemWatchResponse:L.playerResponse?A.player=L.playerResponse:L.reelWatchSequenceResponse&&(A.reelSequence=L.reelWatchSequenceResponse)};
_.$4=function(A){if(!A)return null;for(var L=[],O=0;O<A.textSegments.length;O++){var X=A.textSegments[O];X.text?L.push(X):X.emojiId&&L.push({emoji_id:X.emojiId})}return{text_segments:L}};
GqP=function(A,L,O,X,x,J,Y){J=J===void 0?[]:J;var T=new _.aQ;T.endpoint=O;if(!O)return _.FJ(new _.pe("handle undefined endpoint",L.tagName)),T;var V=mVM(O);V.length&&(_.VN(A,V,L,X),T.actions=V);O.loggingUrls&&O.loggingUrls.forEach(function(n){n.baseUrl&&W1(n.baseUrl,n.attributionSrcMode)});
V=!_.h("web_skip_impression_click_killswitch")&&X&&X.impression;if(O.clickTrackingParams&&!ioP(O)&&!NPe(L)&&!V&&(V=_.iV(),!_.k4(V,L))){var E=L.getScreenLayer&&L.getScreenLayer();E?V.clickCommand(O,null,E):V.clickCommand(O,null)}V=!1;for(E=0;E<J.length;E++)if((0,J[E])(L,O,X)){V=!0;break}!V&&r1u(O)&&(T.ajaxPromise=K_e(A,L,O,X,x,Y));return T};
NPe=function(A){var L;return(A=(L=A.data)==null?void 0:L.navigationEndpoint)&&!!A.clickTrackingParams};
ioP=function(A){var L=_.q(A,_.nM);if(L&&(L=L.signal)&&lue.indexOf(L)>=0)return!0;for(var O in A)if(c1d.indexOf(O)>=0)return!0;return!1};
r1u=function(A){var L;if(((L=_.q(A,_.nM))==null?void 0:L.signal)==="CLIENT_SIGNAL")return!1;for(var O in A)if(C9r.indexOf(O)>=0)return!1;A=Object.keys(A);return A.length===1&&A[0]==="loggingUrls"?!1:!0};
Zop=function(A,L,O,X,x,J,Y){var T=_.UC.instance;if(T&&_.vx(T,X))var V=_.oQ(T,X,x).then(function(n){return(n==null?0:n.data)?n:{data:n}});
else V=A.requestDataForServiceEndpoint(X,x),_.q(X,F_D)||_.q(X,Rwy)||_.q(X,_.QpD)||_.q(X,mx_)||_.Rv(new _.pe("No RequestBuilder for endpoint",X));var E=_.AI();E.promise.thenCatch(function(){var n=_.Fs(X,"action")||_.Fs(X,"command")||_.Fs(X,"endpoint");n&&(n=X[n],n.hasOwnProperty("onFailureAction")?_.VN(L,[n.onFailureAction],O):n.hasOwnProperty("onFailureCommand")&&_.VN(L,n.onFailureCommand,O));V.cancel("Resolver promise rejected")});
V.then(function(n){if(n){var t=n.error;if(t){if(J&&J.onServerError)J.onServerError(X,n);E.reject(new _.pe("Response error",X,t))}else if(n=n.data)if(t=n.error){if(J&&J.onServerError)J.onServerError(X,n);E.reject(new _.pe("Returned error",X,t))}else{fue(L,O,n,X);Iud(n);if(t=QDM(n))for(var b=_.d(t),S=b.next();!S.done;S=b.next()){S=S.value;var w=_.X5().resolve(_.Ot(y1p))||Lu;if(!_.UC.instance||!w.some(function(F){return!!_.q(X,F)})||_.h("kevlar_response_processor_allowlist_killswitch")){var l=w=void 0;
((l=_.q((w=S)==null?void 0:w.commandMetadata,_.LM))==null?0:l.sendPost)?_.TZ(L,[S]):_.VN(L,[S],O)}}(b=_.q(n==null?void 0:n.frameworkUpdates,Ok))&&Y&&Y(b);if(J&&J.onSuccess)J.onSuccess(X,n);E.resolve(new _.Xi(n,t))}}else E.reject(new _.pe("Invalid service endpoint provided",X))},function(n){E.reject(n)});
return E.promise};
Iud=function(A){var L;(A=(L=_.q(A==null?void 0:A.onResponseReceivedCommand,_.jps))==null?void 0:L.continuationItems)&&(A==null?void 0:A.length)===1&&_.q(A[0],W_d)&&_.Rk("so_r",void 0,"search_overview_answer")};
K_e=function(A,L,O,X,x,J){var Y;return(Y=L.getNetworkManager&&L.getNetworkManager()?L.getNetworkManager():_.X5().resolve(_.Ot(_.f3)))?Zop(Y,A,L,O,X,x,J):_.Ry("No network manager.")};
fue=function(A,L,O,X){if(O=O.trackingParams||O.loggingDirectives&&O.loggingDirectives.trackingParams){var x;(_.q(X,HoM)||_.q(X,zwP)||_.q(X,BPM))&&X.clickTrackingParams?x=_.lV(X.clickTrackingParams):_.h("web_graft_to_parent_command")&&X.clickTrackingParams&&(x=_.lV(X.clickTrackingParams));var J;X=(J=L.getScreenLayer)==null?void 0:J.call(L);L=_.iV().graftServerVe(O,x,X);_.YK(A,"yt-store-grafted-ve-action",[L])}};
_.MWu=function(A){var L=new Image;return new _.eJ(function(O,X){L.addEventListener("load",function(){O()});
L.addEventListener("error",function(){X()});
L.src=A})};
$xp=function(A){return!!A};
auD=function(A){return!!A};
kqP=function(A,L,O){var X=A.rowIndex;X!==void 0&&_.YK(A.hostElement,"yt-section-reactive-dismissal",[X,L,O])};
_.xu=function(A,L,O){A=_.d(A);for(var X=A.next();!X.done;X=A.next()){X=X.value;if(X===L)break;for(var x=_.d(O),J=x.next();!J.done;J=x.next())if(J=J.value,X.tagName===J||!_.h("web_event_button_role_check_killswitch")&&X.role==="button"&&J==="BUTTON")return!0}return!1};
_.sk=function(A,L,O){A=_.d(A);for(var X=A.next();!X.done;X=A.next()){X=X.value;if(X===L)break;for(var x=_.d(O),J=x.next();!J.done;J=x.next())if(X.id===J.value)return!0}return!1};
Ux_=function(A){switch(A){case 0:return 16/9;case 1:return 2/3;case 2:return.75;case 3:return 1;case 4:return.5625;default:return 0}};
vQd=function(A,L){if(!A&&!L)return"medium";A=Math.max(A||0,L||0);return A>=256?"large":A>=96?"medium":"small"};
oQe=function(A){switch(A){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.d0=function(){var A=_.X5().resolve(_.Ot(_.JI));return A?(A=A.getCurrentPage())?_.Pm(A):null:null};
_.Yu=function(){var A=_.d0();if(!A){var L=_.X5().resolve(_.Ot(_.JI)),O=L?typeof L:"no page manager";L=L?L.getCurrentPage():null;O=new _.pe("Player is missing when requested.",O,L?L.tagName:"no page");_.C7(O)}return A};
_.Pm=function(A){return A&&A.getPlayer?A.getPlayer():null};
AGp=function(A,L){A={args:{raw_player_response:A}};L&&(A.args=Object.assign({},A.args,L));return A};
LAJ=function(A){if(A.args){if(A.args.raw_player_response)return A.args.raw_player_response;if(A.args.player_response)return JSON.parse(A.args.player_response)}};
_.Oge=function(A,L){var O={url:"/watch?v="+A.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};A.playlistId&&(O.url+="&list="+A.playlistId);A.playerParams&&(O.url+="&pp="+A.playerParams);A={watchEndpoint:A,commandMetadata:{webCommandMetadata:O}};L&&(A.clickTrackingParams=L);return A};
x8_=function(){return X5p||!!_.WY("yt.player.Application")};
JGr=function(){return s5D||!!document.querySelector("link#player-css")};
d8s=function(){function A(){X5p=!0;Pcu.resolve()}
var L,O;return _.u(function(X){Pcu||(Pcu=new _.EP,x8_()?A():(L=document.createElement("script"),L.addEventListener("load",A),O=_.rX(_.ms("PLAYER_JS_URL")),_.UB(L,O),document.head.appendChild(L)));return X.return(Pcu.promise)})};
ubs=function(){function A(){s5D=!0;Y5J.resolve()}
if(!Y5J)if(Y5J=new _.EP,JGr())A();else{var L=document.createElement("link");L.id="player-css";L.addEventListener("load",A);var O=_.rX(_.ms("PLAYER_CSS_URL"));_.An(L,O,"stylesheet");document.head.appendChild(L)}return Y5J.promise};
TLu=function(){return x8_()&&JGr()?Promise.resolve([]):Promise.all([d8s(),ubs()])};
VB_=function(A,L,O){var X={args:{}};A&&(X.args.raw_player_response=A);L&&(X.args.raw_watch_next_response=L);O&&(X.args=Object.assign({},X.args,O));return X};
nEu=function(A,L,O){var X=!1;X=X===void 0?!0:X;A=typeof A==="string"?_.uS(document,A):A;var x=D8e+"_"+_.$e(A),J=e5d[x];if(J&&X)return EEJ(L,O)?J.api.loadVideoByPlayerVars(L.args||null):J.loadNewVideoConfig(L),J.api;J=new TP(A,x,L,O,void 0);e5d[x]=J;J.addOnDisposeCallback(function(){delete e5d[J.getId()]});
return J.api};
EEJ=function(A,L){return L&&L.serializedExperimentFlags?L.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):A&&A.args&&A.args.fflags?A.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
tBu=function(){var A=new _.EP;A.resolved=!1;var L=A.resolve;A.resolve=function(O){A.resolved=!0;L(O)};
return A};
h5_=function(A){var L={};bgy().install((L.document_disposed={callback:A},L))};
Vd=function(A,L){if(!A&&Math.random()<=_.PO("kevlar_unified_player_logging_threshold")){A=Error("th`"+(L?L:"Unspecified error"));if(_.h("kevlar_unified_player_throw_errors"))throw A;_.Rv(A)}};
_.S5e=function(){var A=_.WY("ytDebugData.callbacks");A||(A={},_.oZ("ytDebugData.callbacks",A));return A};
gEu=function(A,L){var O=_.S5e();if(_.h("web_dd_iu")||q5e.includes(A))O[A]=L};
w5M=function(){return _.u(function(A){return A.return({isLeader:_.vq9(_.Ai().getState()),c:_.ms("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.ms("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
p5u=function(){var A;_.u(function(L){if(L.nextAddress==1)return gEu("APP_STATE",w5M),L.yield(_.X5().resolve(_.Dl),2);A=L.yieldResult;gEu("PI",function(){return _.u(function(O){return O.return(A.getVideoStats())})});
_.qo(L)})};
ig9=function(A){var L=_.v3(_.W3(_.Ou.location.href));A=_.v3(_.W3(A));return _.h("kevlar_clear_non_displayable_url_params")?L==e8(A):e8(L)==e8(A)};
e8=function(A){var L=_.NL9(A);A=A.slice(0);var O=["frags"];_.h("kevlar_hide_pp_url_param")&&O.push("pp");_.h("kevlar_hide_time_continue_url_param")&&O.push("time_continue");O=_.d(O);for(var X=O.next();!X.done;X=O.next())X=X.value,A=_.Az(_.v3(A),X);return _.v3(A)+(L?"#"+L:"")};
Ek=function(A,L){L=Number(L)*1E3;var O=Math.round((0,_.O$)()),X=O.toString();A={innertubeResponse:A,serverDateTimestampMs:X,lastModifiedTimestampMs:X,expireTimestampMs:(O+L).toString()};if(L=_.ms("INNERTUBE_CONTEXT_CLIENT_NAME"))A.clientName=L;return A};
KAy=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++rGe};
_.GgP=function(){var A=_.Ch(),L=_.Fn();L&&A&&_.MG(L,[A],!0)};
cGP=function(A){return A&&l3e.some(function(L){return A.includes(L)})};
f3u=function(A){var L=_.q(A,_.Hh);if(!L)return!1;var O=L.url,X=L.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!O)return _.C7(Error("yh")),!1;if(L.target==="TARGET_NEW_WINDOW"){var x={};_.h("resolve_url_parent_tracking_params")&&(!_.vY(O)||oO(window.location.href,O))&&(x={endpoint:A,itct:A.clickTrackingParams});VSp(x);A=null;try{if(X)return A=_.Sdu(O,"_blank",x,void 0,X),Ccp(_.X5().resolve(FAu),A,O),!0}catch(b){_.C7(b)}_.oF(O,x);L={target:"_blank",noopener:_.h("set_window_noopener_ks")&&
!L.allowOpener};A=window;X=rw(O)?O:_.RP(typeof O.href!="undefined"?O.href:String(O));x=self.crossOriginIsolated!==void 0;var J="strict-origin-when-cross-origin";window.Request&&(J=(new Request("/")).referrerPolicy);var Y=L.noreferrer;if(x&&Y&&J==="unsafe-url")throw Error("pe");J=Y&&!x;Y=L.target||O.target;var T=[],V=[],E=!1;for(t in L){var n=L[t];switch(t){case "width":case "height":case "top":case "left":T.push(t+"="+n);break;case "target":break;case "noopener":case "noreferrer":n?V.push(t):(E=!0,
V.push(t+"=false"));break;case "attributionsrc":T.push(t+(n?"="+n:""));break;default:T.push(t+"="+(n?1:0))}}var t=Y!==void 0&&!["_blank","_self","_top","_parent",""].includes(Y);t=Ny()&&t;R5_&&x&&T.length===0&&V.length>0&&!t&&!E?(V.length===2&&(V=["noreferrer"]),_.z2(A,X,Y,V[0]),A=Q5u()):(t=T.join(","),_.lr()&&A.navigator&&A.navigator.standalone&&Y&&Y!="_self"?(t=_.tg("A"),yo(t,X),t.target=Y,J&&(t.rel="noreferrer"),((L=L.attributionsrc)||L==="")&&t.setAttribute("attributionsrc",L),L=document.createEvent("MouseEvent"),
L.initMouseEvent("click",!0,!0,A,1),t.dispatchEvent(L),A=Q5u()):J?(A=_.z2(A,"",Y,t),L=_.G2(X),A&&(A.opener=null,L===""&&(L="javascript:''"),L='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+nu(L)+'">',L=jg(L),(X=A.document)&&X.write&&(X.write(Wf(L)),X.close()))):((A=_.z2(A,X,Y,t))&&L.noopener&&(A.opener=null),A&&L.noreferrer&&(A.opener=null)));Ccp(_.X5().resolve(FAu),A,O);return!0}L=_.eh(O);L=cGP(L)||O==="https://studio.youtube.com/";X=!(!_.vY(O)||oO(window.location.href,
O));t=O.indexOf("disable_polymer=1")>=0;if(X||t||L)MT(O),c4(),_.$c(O,void 0,void 0,window.top,m89);else return _.Rv(new _.pe("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",A)),!1;return!0};
_.ZgP=function(A,L){L=L===void 0?0:L;if(!(_.q(A,I3u)||_.q(A,yGd)||_.q(A,_.Hh)&&_.q(A,_.Hh).url))return!1;var O,X=(O=_.q(A,_.Hh))==null?void 0:O.url;O=X?{externalLinkData:{url:X}}:null;return _.iV().clickCommand(A,O,L)};
j5y=function(A,L){return _.eM(A.entities,"subscriptionStateEntity",L)};
WAO=function(A,L){return _.eM(A.entities,"subscriptionNotificationStateEntity",L)};
HgJ=function(A,L){return _.eM(A.entities,"upcomingEventReminderStateEntity",L)};
z5e=function(A,L){return _.eM(A.entities,"engagementToolbarSurfaceEntityPayload",L)};
BLJ=function(A,L){return _.eM(A.entities,"triStateButtonStateEntityPayload",L)};
MBu=function(A,L){return _.eM(A.entities,"commerceCartCheckoutButtonEntity",L)};
_.$8r=function(A,L){return _.eM(A.entities,"playlistLoopStateEntity",L)};
a3u=function(A,L){return _.eM(A.entities,"commandEntity",L)};
U8J=function(A,L,O,X,x){x=x===void 0?{}:x;return function(J){var Y,T;var V=((Y=A.loggingDirectives)==null?0:(T=Y.clientVeSpec)==null?0:T.uiType)?_.tI(A.loggingDirectives.clientVeSpec.uiType):void 0;x.clickedVisualElement||(x.clickedVisualElement=V);V=kgO(A,L);O(V,J);V=_.d(V);for(Y=V.next();!Y.done;Y=V.next()){Y=Y.value;T=X;var E=J,n=x;n.form?n.form.event=E:n.form={element:T,event:E};RQ(Y,n)}}};
kgO=function(A,L){var O=[];L?(A.toggledCommand&&O.push(A.toggledCommand),A.toggledServiceEndpoint&&O.push(A.toggledServiceEndpoint)):(A.defaultCommand&&O.push(A.defaultCommand),A.defaultServiceEndpoint&&O.push(A.defaultServiceEndpoint),A.defaultNavigationEndpoint&&O.push(A.defaultNavigationEndpoint));return O};
vEp=function(A,L){var O=A.toggledStyle||A.style,X;switch((X=L?O:A.style)==null?void 0:X.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"}}};
_.bS=function(){return _.u(function(A){return A.nextAddress==1?A.yield(_.X5().resolve(_.Dl),2):A.return(_.X5().resolve(oEs)())})};
_.hI=function(){return _.X5().resolve(oEs)()};
_.S8=function(){return lk(function(){return{lottieEl:void 0}})};
APe=function(A,L){return A.startsWith(L.uniqueId)};
LWe=function(A){var L,O;_.u(function(X){if(X.nextAddress==1)return X.yield(_.bS(),2);L=X.yieldResult;if((O=L)==null||!O.addEventListener)return qV(),X.return();L.addEventListener("onCueRangeEnter",A);_.qo(X)})};
OkD=function(A){var L,O;_.u(function(X){if(X.nextAddress==1)return X.yield(_.bS(),2);L=X.yieldResult;if((O=L)==null||!O.removeEventListener)return qV(),X.return();L.removeEventListener("onCueRangeEnter",A);_.qo(X)})};
XoO=function(A){var L,O,X,x,J;_.u(function(Y){if(Y.nextAddress==1)return Y.yield(_.bS(),2);L=Y.yieldResult;if((O=L)==null||!O.addCueRange)return qV(),Y.return();X=_.d(A.timings);for(x=X.next();!x.done;x=X.next())J=x.value,L.addCueRange(A.uniqueId+"-"+J,J/1E3,(J+100)/1E3);_.qo(Y)})};
x9_=function(A){var L,O,X,x,J;_.u(function(Y){if(Y.nextAddress==1)return Y.yield(_.bS(),2);L=Y.yieldResult;if((O=L)==null||!O.removeCueRange)return qV(),Y.return();X=_.d(A.timings);for(x=X.next();!x.done;x=X.next())J=x.value,L.removeCueRange(A.uniqueId+"-"+J);_.qo(Y)})};
s8u=function(){var A,L,O;return _.u(function(X){if(X.nextAddress==1)return X.yield(_.bS(),2);A=X.yieldResult;if((L=A)==null||!L.getPlayerState)return qV(),X.return();O=A.getPlayerState();return X.return(O===2)})};
qV=function(){_.Rv(new _.pe("Smartimation player does not exist or is corrupted"))};
JPP=function(){try{var A;return(A=window.CSS)!=null&&A.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(L){return _.Rv(new _.pe("Smartimation CSS.supports threw an error")),!1}};
D9u=function(A,L,O,X,x){var J=A.playlistId?PTr:d99;L=L();O=O();x=!!A.videoId&&x()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.wh(L))return Y3d({data:A,actionType:J,disabled:x},O);if(A.videoId&&X())return um9({data:A,actionType:J,disabled:x});switch(L){case "TRANSFER_STATE_UNKNOWN":return um9({data:A,actionType:J,disabled:x});case "TRANSFER_STATE_FAILED":return A.videoId?Tar({data:A,actionType:J,disabled:x}):VLP({data:A,actionType:J,disabled:x});case "TRANSFER_STATE_COMPLETE":return VLP({data:A,
actionType:J,disabled:x});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return Y3d({data:A,actionType:J,disabled:x},O);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return A.videoId?Tar({data:A,actionType:J,disabled:x}):um9({data:A,actionType:J,disabled:x});default:return um9({data:A,actionType:J,disabled:x})}};
e2r=function(A,L){var O=A.onTapCommand,X=_.HR(O);if(A.videoId&&_.q(X,_.g0))return _.q(X,_.g0).action=L,O;A.playlistId&&_.q(X,_.w0)&&(_.q(X,_.w0).action=L);return O};
um9=function(A){var L=A.data;var O=A.actionType;A=A.disabled;return{text:ECr,iconType:"OFFLINE_DOWNLOAD",onTap:e2r(L,O.ACTION_ADD),disabled:A}};
Y3d=function(A,L){var O=A.data;var X=A.actionType;A=A.disabled;var x="OFFLINE_DOWNLOAD";L>=0&&L<=.1?x="OFFLINE_DOWNLOADING_ZERO":L>.1&&L<=.3?x="OFFLINE_DOWNLOADING_TWENTY":L>.3&&L<=.5?x="OFFLINE_DOWNLOADING_FORTY":L>.5&&L<=.7?x="OFFLINE_DOWNLOADING_SIXTY":L>.7&&L<1?x="OFFLINE_DOWNLOADING_EIGHTY":L===1&&(x="OFFLINE_PIN");return{text:nCu,iconType:x,onTap:e2r(O,X.ACTION_REMOVE_WITH_PROMPT),disabled:A}};
VLP=function(A){var L=A.data;var O=A.actionType;A=A.disabled;return{text:tLr,iconType:"OFFLINE_PIN",onTap:e2r(L,O.ACTION_REMOVE_WITH_PROMPT),disabled:A}};
Tar=function(A){var L=A.data;var O=A.actionType;A=A.disabled;return{text:bks,iconType:"OFFLINE_DOWNLOAD",onTap:e2r(L,O.ACTION_RETRY),disabled:A}};
gCs=function(A){var L=h2M;S3e.push(A);q3J||(L(function(){for(var O=_.d(S3e),X=O.next();!X.done;X=O.next())X=X.value,X();S3e.length=0;q3J=!1}),q3J=!0)};
h2M=function(A){Promise.resolve().then(A)};
pu=function(A){A=_.d(PId(A));var L=A.next().value,O=A.next().value,X=!1;_.GD(function(){return function(){X=!0}});
return[L,function(x){gCs(function(){X&&!_.h("cow_prevent_state_setter_after_cleanup_killswitch")||O(x)})}]};
_.iS=function(A,L){var O=sc_();return _.E4(function(){O();return dWP(A,[_.GV(L)||""])},{debugName:"LUZslf"},"qYSKAc")};
wou=function(A){var L=_.iS(_.yi,function(){return A().videoId}),O=_.iS(_.Zn,function(){return A().playlistId});
return function(){return A().videoId?L:A().playlistId?O:_.d(_.uQ("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
poy=function(A){var L=_.iS(jM,function(){return A().videoId}),O=_.iS(_.UBO,function(){return A().playlistId});
return function(){return A().videoId?L:A().playlistId?O:_.d(_.uQ(0,void 0,"K4tgOc")).next().value}};
ikJ=function(A){var L=_.iS(_.Jas,function(){return A().videoId});
return function(){return A().videoId?L:_.d(_.uQ(!1,void 0,"Oaxwcf")).next().value}};
NaO=function(A){var L=_.iS(Aae,function(){return A().videoId});
return function(){return A().videoId?L:_.d(_.uQ("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
rPp=function(){return{}};
KWD=function(){var A,L;return(L=(A=_.X5().resolve(_.Ot(_.oy)))==null?void 0:A())!=null?L:!1};
lLp=function(A,L){A=A===void 0?GsD:A;switch(L.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},A,{isOpen:L.payload});default:return A}};
CTu=function(A,L){A=A===void 0?cPO:A;switch(L.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},A,{isAllowed:L.payload});default:return A}};
R2u=function(A,L){A=A===void 0?FWJ:A;switch(L.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},A,{errorMessage:L.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},A,{title:L.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},A,{privacy:L.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},A,{isDisabled:L.payload});default:return A}};
m9r=function(A,L){A=A===void 0?Q8r:A;switch(L.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},A,{isOpen:L.payload});default:return A}};
ILy=function(A,L){A=A===void 0?fLP:A;switch(L.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},A,{isFullscreen:L.payload});case "SET_NAVIGATION_BUTTON":var O=L.payload.targetId,X=Object.assign({},A.navigationButtons);X[O]=L.payload.button;return Object.assign({},A,{navigationButtons:X});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},A,{topPanelId:L.payload});case "SET_SECONDARY_HEADER":return O=L.payload.panelId,X=Object.assign({},A.secondaryHeader),X[O]=L.payload.secondaryHeader,
Object.assign({},A,{secondaryHeader:X});default:return A}};
WWu=function(){return EI(Object.assign({},{entities:d1e,voiceSearch:Bfe,engagementPanel:ILy,bottomSheet:lLp,cinematicSetting:CTu,shorts:AMr,drawerLayout:m9r,createPlaylist:R2u,locationCollection:yP_,reportChannel:ZkO,reportForm:j8e},Lny))};
Hkd=function(A,L){_.c1.addLowPriorityJob(function(){var O,X,x;return _.u(function(J){switch(J.nextAddress){case 1:return _.e4(J,2),J.yield(fjp(),4);case 4:return J.yield(fetch(A),5);case 5:return O=J.yieldResult,J.yield(O.json(),6);case 6:X=J.yieldResult;St.set(A,X);requestAnimationFrame(function(){L(X)});
_.zA(J,0);break;case 2:x=_.S4(J),_.Rv(x),_.qo(J)}})})};
z2P=function(A){var L={animationConfig:{},listeners:{}},O=function(){A(!0)};
L.listeners.data_failed=O;L.listeners.error=O;L.listeners.data_ready=function(){A(!1)};
return L};
$9_=function(A){var L=A.model;var O=A.subscribed;var X=A.isOverlay;var x=A.element;var J=A.commandController;var Y=A.notificationState;if(O){var T,V;var E=(L==null?void 0:(T=L.buttonStyle)==null?void 0:T.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:L==null?void 0:(V=L.unsubscribeButtonContent)==null?void 0:V.buttonText}else{var n;E=L==null?void 0:(n=L.subscribeButtonContent)==null?void 0:n.buttonText}a:{var t;switch(L==null?void 0:(t=L.buttonStyle)==
null?void 0:t.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":T="S";break a;default:T="M"}}a:if(X)X="overlay";else switch(L.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":X="overlay";break a;default:X="mono"}a:if(O)var b="tonal";else switch((b=L.buttonStyle)==
null?void 0:b.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":b="tonal";break a;default:b="filled"}return{style:X,type:b,state:L.disableSubscribeButton?"disabled":"active",size:T,focused:A.focused,toggled:O,accessibilityLabel:Bay(L,O,Y),buttonText:E,iconPosition:L.disableNotificationBell?"none":"leading-trailing",onTap:MLO(L,O,x,J),disableTextEllipsis:!!A.disableTextEllipsis}};
MLO=function(A,L,O,X){return function(x){if(L){var J;var Y=A.disableNotificationBell?_.HR(A==null?void 0:(J=A.unsubscribeButtonContent)==null?void 0:J.onTapCommand):_.HR(A==null?void 0:A.onShowSubscriptionOptions)}else{var T;Y=_.HR(A==null?void 0:(T=A.subscribeButtonContent)==null?void 0:T.onTapCommand)}Y&&RQ(Y,{form:{element:O==null?void 0:O.value},commandController:X});x.stopPropagation()}};
Bay=function(A,L,O){if(L){if(A==null?0:A.disableNotificationBell){var X;return A==null?void 0:(X=A.unsubscribeButtonContent)==null?void 0:X.accessibilityText}switch(O){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var x;return A==null?void 0:(x=A.bellAccessibilityData)==null?void 0:x.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var J;return A==null?void 0:(J=A.bellAccessibilityData)==null?void 0:J.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var Y;return A==null?void 0:(Y=
A.bellAccessibilityData)==null?void 0:Y.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var T;return A==null?void 0:(T=A.bellAccessibilityData)==null?void 0:T.disabledLabel;default:var V;return A==null?void 0:(V=A.unsubscribeButtonContent)==null?void 0:V.accessibilityText}}else{var E;return A==null?void 0:(E=A.subscribeButtonContent)==null?void 0:E.accessibilityText}};
aLM=function(A){if(A){switch(A){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":A="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":A="NOTIFICATIONS_OFF";break;default:A="NOTIFICATIONS_NONE"}return A}};
ksy=function(A,L,O){O.subscribed!==L&&((O=O.key)&&_.At(_.NV("subscriptionStateEntity",O,{key:O,subscribed:L})),A.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:L})),L||_.dQ(A,"yt-unsubscribe-action"))};
vCM=function(A){A=_.q(_.HR(A),_.r0);var L,O,X,x;return(x=_.q(A==null?void 0:(L=A.panelLoadingStrategy)==null?void 0:(O=L.inlineContent)==null?void 0:(X=O.sheetViewModel)==null?void 0:X.content,U9M))==null?void 0:x.listItems};
oCe=function(A,L){if(A.onShowSubscriptionOptions&&L&&(A=vCM(A.onShowSubscriptionOptions),A!=null&&A.length)){var O=aLM(L);A.forEach(function(X){X=_.q(X,_.Ku);var x,J,Y,T,V=X==null?void 0:(x=X.leadingImage)==null?void 0:(J=x.sources)==null?void 0:(Y=J[0])==null?void 0:(T=Y.clientResource)==null?void 0:T.imageName;X&&V&&(X.isSelected=V===O)})}};
A5r=function(A,L,O,X){L&&O?A.style.width=O+"px":!L&&X&&(A.style.width=X+"px")};
Lbu=function(A,L,O){var X;(X=A.lottieEl)==null||X.goToAndPlay(0);var x;(x=L.lottieEl)==null||x.goToAndPlay(0);_.GP(_.c1,function(){var J;(J=O.lottieEl)==null||J.goToAndPlay(0)},300)};
lS=function(){return _.X5().resolve(_.Ot(OI_))||{}};
Xde=function(A){return typeof A==="function"};
_.cm=function(A){Object.keys(A);var L=function(O,X){var x=L.mapping||A;if(!O)return _.D(_.Xs,null);if(Array.isArray(O)&&(O=xcO(x,L,O),Array.isArray(O))){if(!O.length)return _.D(_.Xs,null);if(O.length>1){for(var J=!1,Y=!1,T=[],V={},E=0;E<O.length;V={data$jscomp$1918:void 0},E++)if(V.data$jscomp$1918=O[E],V.data$jscomp$1918){var n=sRD(V.data$jscomp$1918,x),t=n.mappingEntry;n=n.rendererName;t&&n&&(t&&(!Xde(t)&&J5O(t)&&(Y=!0),!Xde(t)&&t.asyncId||(J=!0)),T.push(Pfe(V.data$jscomp$1918,t,n,L,X)))}return Y&&
!J?_.D(_.Xs,null,dc9()):_.D(_.Xs,null,T)}O=O[0]}if(!O)return _.D(_.Xs,null);O=xcO(x,L,[O])[0];if(!O)return _.D(_.Xs,null);J=sRD(O,x);x=J.mappingEntry;J=J.rendererName;return x&&J?_.D(_.Xs,null,Pfe(O,x,J,L,X)):_.D(_.Xs,null)};
L.mapping=A;return L};
_.YE_=function(A){var L=void 0,O;for(O in A)if(A.hasOwnProperty(O)){L=O;break}return L};
xcO=function(A,L,O){var X,x=(X=lS().preProcessOptions)==null?void 0:X.idomOptions;if(!x)return O;lS();return x.preProcessPropsIdom(A,O,L.triggerRerender)};
sRD=function(A,L){return(A=_.YE_(A))?{mappingEntry:L[A],rendererName:A}:{mappingEntry:void 0,rendererName:void 0}};
Pfe=function(A,L,O,X,x){if(!L)return _.D(_.Xs,null);var J={};x&&x[O]&&(J=Object.assign({},x[O]));A[O]!==void 0&&(J.data=A[O]);if(Xde(L))return L.debugName||(L.debugName=O),_.D(L,J);L.asyncId&&(X.pendingIdsMap=X.pendingIdsMap||{},X.pendingIdsMap[O]=L.asyncId);return L.templateFn?L.templateFn(J):J5O(L)?dc9():_.D(_.Xs,null)};
J5O=function(A){var L;return(L=A.showPlaceholder)!=null?L:lS().defaultShowPlaceholder};
dc9=function(){var A=lS().placeholder;return A()};
udJ=function(A){A=_.q(A,_.Cu);return(A==null?void 0:A.iconName)&&!(A==null?0:A.title)};
Dce=function(A,L,O){var X;return _.D(_.Xs,null,A==null?void 0:(X=A.actions)==null?void 0:X.map(function(x){return _.D("div",{class:function(){var J={"yt-flexible-actions-view-model-wiz__action":!0};J["yt-flexible-actions-view-model-wiz__action--row-action"]=L;J["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1;if(udJ(x))var Y=!0;else if(Y=_.q(x,_.Fi),(Y==null?0:Y.isToggled)&&udJ(Y==null?void 0:Y.toggledButtonViewModel)||(Y==null||!Y.isToggled)&&udJ(Y==null?void 0:Y.defaultButtonViewModel))Y=
!0;else{var T;Y=((T=_.q(x,T8p))==null?0:T.playlistId)?!0:!1}J=(J["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=Y,J["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=O,J);return _.gl(J)}},V1D([x],{subscribeButtonViewModel:{isOverlay:!1,
animateWidth:!L}}))}))};
eue=function(A){var L=A.layout===1,O,X=((O=A.data)==null?void 0:O.style)==="FLEXIBLE_ACTIONS_STYLE_SCROLLING";O={};X=(O["yt-flexible-actions-view-model-wiz"]=!0,O["yt-flexible-actions-view-model-wiz--inline"]=!L,O["yt-flexible-actions-view-model-wiz--scrollable"]=X,O);var x,J;return _.D("yt-flexible-actions-view-model",{class:_.gl(A.className,X)},(x=A.data)==null?void 0:(J=x.actionsRows)==null?void 0:J.map(function(Y){if(L){var T;return _.D("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},
Dce(Y,L,!((T=A.data)==null||!T.respectActionIntrinsicWidth)))}return Dce(Y,L,!1)}))};
E2D=function(A,L){L=L===void 0?{shouldPersist:!0}:L;return{useUpdatableData:function(O,X){var x=[],J=_.d(_.Nn(function(){var E=O();if(X!=null&&X.length&&x){var n=x.length>0;for(var t=!1,b=0;b<X.length;b++){var S=X[b]();n&&S!==x[b]&&(t=!0);x[b]=S}n=t}else n=!1;if(n)_.RD.remove(V());else if(n=_.RD.get(V()))return n;return E})),Y=J.next().value,T=J.next().value,V=_.E4(function(){return A(O())},void 0,"VFraLb");
_.ND(function(){if(V()!=null){Qd.set(V(),[Y,T,!1]);var E=V();_.rF(function(){Qd.delete(E)})}},"Fdafud");
return[Y,function(E){T(E);L.shouldPersist&&_.RD.set(V(),E)}]},
getData:function(O){var X;return(X=Qd.get(A(O)))==null?void 0:X[0]()},
updateData:function(O,X){O=A(O);var x=Qd.get(O);if(!x)return!1;var J=_.d(x);x=J.next().value;J=J.next().value;X=X(x());J(X);L.shouldPersist&&_.RD.set(O,X);return!0},
useUpdatableDataIdom:function(O,X){var x=A(O),J=_.RD.get(x),Y=_.d(pu(J!=null?J:O)),T=Y.next().value,V=Y.next().value,E=cY(J!=null?J:O);_.KB(function(){if(x!=null)return Qd.set(x,[function(){return E.value},
function(n){V(n);E.value=n},
Qd.has(x)]),_.c1.addJob(function(){_.fu(_.c1,function(){var n=Qd.get(x);n&&(n[2]=!1)},0)},8),function(){var n;
((n=Qd.get(x))==null?0:n[2])||Qd.delete(x)}},[x]);
_.KB(function(){T!==O&&(V(O),E.value=O)},X?[].concat(_.le(X),[x]):[x]);
return[T,V]}}};
n2u=function(A){var L=_.d(_.uQ(!0,void 0,"bKtO6d")),O=L.next().value;L.next();return function(){var X=nB(A.children());return _.D(_.e,{cond:O,then:function(){return X},
else:A.fallback})}()};
_.ID=function(A){var L=t1D(A),O=L.data,X=L.mapping,x=L.wrapper;L=L.pendingFallback;var J=function(){return bID(_.GV(O))},Y=function(){var T=J(),V=[];
T=_.d(T);for(var E=T.next();!E.done;E=T.next()){var n=void 0;E=E.value;var t=void 0;for(n in E)if(!(!E).hasOwnProperty(n)){t=n;break}(n=t)&&V.push(n)}return V};
return A.data?_.D(n2u,{fallback:L},function(){return _.D(_.g9,{each:Y},function(T,V){var E=x?function(t){return x(function(){return X[T](t,V)},n,V)}:function(t){return X[T](t,V)};
E.debugName||(E.debugName=String(T));if(!X[String(T)])return document.createComment("");E.componentType!==gF&&huu(String(T));var n=SEu(J,T,V);return _.D(E,{data:n})})}):_.D(_.Xs,null)};
t1D=function(A){var L=A.targetId||qEr(A.children);if(!A.data||!L||_.h("mweb_new_replaceables_killswitch"))return Object.assign({},A,{mapping:A.children,wrapper:void 0});var O="stamper-"+g2_++,X=function(){var T;return(T=typeof A.targetId==="function"?A.targetId(O):A.targetId)!=null?T:O};
L=_.d(wde(function(){var T=bID(A.data());T.targetId=X;return T})).next().value;
var x=Object.assign({},lS().replaceableMapping,A.children);if(A.replacementWrapper){var J=x.notificationTextRenderer,Y=x.notificationMultiActionRenderer;J&&(x.notificationTextRenderer=function(T,V){return A.replacementWrapper(J({data:T.data},V))});
Y&&(x.notificationMultiActionRenderer=function(T,V){return A.replacementWrapper(Y({data:T.data},V))})}return Object.assign({},A,{data:L,
mapping:x,wrapper:function(T,V,E){return l$D({targetId:X,stamperIndex:E},T)}})};
SEu=function(A,L,O){var X;return _.E4(function(){var x=A()[O()];if(x)X=x[L];else return _.Rv(new _.pe("Stamper failed to find "+String(L)+" at index "+O()+" of data array of length "+(A().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),X;return x[L]},void 0,"wgRPHd")};
qEr=function(A){A=_.d(Object.keys(A));for(var L=A.next();!L.done;L=A.next())if(L=L.value,pdu.includes(L)||iI9.includes(L)||N8J.includes(L))return!0;return!1};
bID=function(A){return A?Array.isArray(A)?A:[A]:[]};
huu=function(A){if(_.h("web_enable_renderer_logger")){var L;(L=_.X5().resolve(_.Ot(r5r)))!=null&&L.loggingEnabled&&!L.ids.has(A)&&L.ids.add(A)}};
Kbu=function(A){return!(A==null||!A.iconName||(A==null?0:A.title))};
GQO=function(A,L,O,X){O&&_.c1.cancelJob(O);O=_.c1.addLowPriorityJob(function(){X(void 0)},5E3);
X(O);L&&A!==(L.likeStatus==="LIKE")&&L.key&&_.At(_.NV("likeStatusEntity",L.key,{key:L.key,likeStatus:A?"LIKE":"INDIFFERENT",hadUserInteraction:A}))};
_.l89=function(A,L){return _.eM(A.entities,"accountLinkStatusEntity",L)};
c5J=function(A,L){return _.eM(A.entities,"hatsSurveyEntity",L)};
Cfe=function(A,L){return _.eM(A.entities,"hatsSurveyStateEntity",L)};
FbO=function(A,L){return _.eM(A.entities,"quantityIncrementerEntity",L)};
Ru9=function(A){switch(A){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_PREMIUM":return 6;case "BADGE_STYLE_TYPE_SIMPLE":return 0;case "BADGE_STYLE_TYPE_AD":return 2;case "BADGE_STYLE_TYPE_YPC":return 9;case "BADGE_STYLE_TYPE_FEATURED":return 5;case "BADGE_STYLE_TYPE_THUMBNAIL_OVERLAY_SPECIAL":return 19;default:return 0}};
QRP=function(A){switch(A){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}};
mcu=function(A){switch(A){case 2:return"badge-shape-wiz--ad";case 1:return"badge-shape-wiz--media";case 3:return"badge-shape-wiz--promoted";case 4:return"badge-shape-wiz--promoted-inverted";case 5:return"badge-shape-wiz--timely";case 6:return"badge-shape-wiz--premium";case 7:return"badge-shape-wiz--sale";case 8:return"badge-shape-wiz--membership";case 9:return"badge-shape-wiz--commerce";case 11:return"badge-shape-wiz--live";case 12:return"badge-shape-wiz--status-new";case 13:return"badge-shape-wiz--status-complete";
case 14:return"badge-shape-wiz--status-warning";case 15:return"badge-shape-wiz--status-error";case 16:return"badge-shape-wiz--status-default";case 17:return"badge-shape-wiz--thumbnail-default";case 18:return"badge-shape-wiz--thumbnail-live";case 19:return"badge-shape-wiz--thumbnail-special";default:return"badge-shape-wiz--default"}};
_.I8_=function(A){var L=_.PO("web_generic_client_event_wait_period ",0);L||(L=3E5);var O=f8d.get(A);!_.h("enable_web_client_experiment_event_timeout_killswitch")&&O&&(0,_.O$)()-O<L||(f8d.set(A,(0,_.O$)()),_.lg("genericClientExperimentEvent",{eventType:A}))};
y59=function(A){switch(A){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""}};
ZIJ=function(A){if(!A)return"";var L,O=(L=_.X5().resolve(_.Ot(_.oy)))==null?void 0:L(),X;if(!O&&((X=A.vibrantColorPalette)==null?0:X.iconInactiveColor))return zm(A.vibrantColorPalette.iconInactiveColor,"1");var x;return O&&((x=A.darkColorPalette)==null?0:x.iconInactiveColor)?zm(A.darkColorPalette.iconInactiveColor,"1"):A.color?zm(A.color,"1"):A.sampledThumbnailColor?(A=A.sampledThumbnailColor,"rgba("+A.red+","+A.green+","+A.blue+");"):""};
_.yd=function(A,L){if(!A.includes("DATE_PLACEHOLDER"))return A;var O=new Date(0);O.setUTCSeconds(L);return A.replace("DATE_PLACEHOLDER",jRJ(O))};
WbP=function(A,L,O){return function(X){var x=A.command;x&&(RQ(x,{form:{element:O}}),L([x],X))}};
zur=function(A,L,O,X,x){return function(J){var Y=HIM(A,L);Y&&RQ(Y,{form:{element:O},commandController:X});x&&J.stopPropagation()}};
HIM=function(A,L){if(A.signInEndpoint&&!_.h("web_subscribe_sign_in_endpoint_killswitch"))return A.signInEndpoint;if(L){if(A.serviceEndpoints)return A.serviceEndpoints[1];if(A.onUnsubscribeEndpoints)return A.onUnsubscribeEndpoints[0]}else{if(A.serviceEndpoints)return A.serviceEndpoints[0];if(A.onSubscribeEndpoints)return A.onSubscribeEndpoints[0]}};
B8y=function(A,L){var O,X,x,J;L=L&&((O=A.unsubscribeAccessibility)==null?void 0:(X=O.accessibilityData)==null?void 0:X.label)||((x=A.subscribeAccessibility)==null?void 0:(J=x.accessibilityData)==null?void 0:J.label);return A.longSubscriberCountText?[L,_.vG(A.longSubscriberCountText)].filter(function(Y){return Y}).join(" "):L};
Zl=function(A,L){return L||(A==null?0:A.isChannelDelegate)?"disabled":"active"};
M1O=function(A,L){var O;switch((O=A.style)==null?void 0:O.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:Zl(A)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:Zl(A)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:Zl(A,!0)};case "OVERLAY":return L?{style:"overlay",type:"tonal",state:Zl(A)}:{style:"overlay",type:"filled",state:Zl(A)};default:return L?{style:"mono",type:"tonal",state:Zl(A)}:{style:"mono",type:"filled",state:Zl(A)}}};
$cr=function(A){switch(A){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
a8e=function(A){switch(A){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
kQu=function(A,L){var O=A.map(function(X){return X.toString()});
return _.py(function(X){if(O.includes(X.key)){L&&X.preventDefault();var x;(x=X.currentTarget)==null||x.click()}})};
_.Ucs=function(){return kQu(["Enter"])};
_.v2d=function(){return kQu(["Enter"," "],!0)};
_.j8=function(A){if(A.composedPath)return A.composedPath();if(!A.__composedPath){for(var L=[],O=A.target;O;)L.push(O),O=O.parentNode;L.push(window);A.__composedPath=L}return A.__composedPath};
_.Wm=function(A,L,O){A=_.d(A);for(var X=A.next();!X.done;X=A.next()){X=X.value;if(X===L)break;for(var x=_.d(O),J=x.next();!J.done;J=x.next())if(J=J.value,X.tagName===J||X.role==="button"&&J==="BUTTON")return!0}return!1};
AbM=function(A,L){var O,X=(O=L.observer)!=null?O:_.X5().resolve(Ld);if(A){O=o2_(A);var x=[];L.showOption&&x.push(X.observe(A,function(){L.visibilityCallback(!0,A)},L.showOption));
L.hideOption&&x.push(X.observe(A,function(){L.visibilityCallback(!1,A)},L.hideOption));
L.prescanOption&&L.prescanCallback&&x.push(X.observe(A,function(){L.prescanCallback()},L.prescanOption));
var J;O.visibilityMonitorKeys=((J=O.visibilityMonitorKeys)!=null?J:[]).concat(x)}};
o2_=function(A){var L;return(L=A.polymerController)!=null?L:A};
_.zP=function(A){return!!_.Hm(A)};
_.Bm=function(A,L,O,X,x){return function(J){var Y=_.GWO();_.ND(function(){if(J){_.Lre(J,A(),x);var T=_.Oa9(J,A(),L,O,X,Y);_.rF(T)}},"nr377e")}};
_.Lre=function(A,L,O){var X=XUM(L),x=x4_(L);L=X&&swy;var J=x&&Jbr;(X||x)&&AbM(A,{visibilityCallback:function(Y){var T=_.X5().resolve(_.x$);Y&&X?T.resolveCommand(X,{form:{element:O?A:void 0},disableClickTracking:!0}):!Y&&x&&T.resolveCommand(x,{form:{element:O?A:void 0},disableClickTracking:!0})},
showOption:L,hideOption:J})};
_.Oa9=function(A,L,O,X,x,J){var Y=new Map;if(L=_.Hm(L)){var T;A=(X==null?void 0:(T=X.onTap)==null?void 0:T.value)||A;O=Pqp(L,A,O==null?void 0:O.onTap,x,J);A.addEventListener("click",O);Y.set("click",O)}return function(){for(var V=_.d(Y),E=V.next();!E.done;E=V.next()){var n=_.d(E.value);E=n.next().value;n=n.next().value;A.removeEventListener(E,n)}}};
_.Hm=function(A){var L;return(A=(L=_.q(A,d4p))==null?void 0:L.onTap)&&_.HR(A)};
XUM=function(A){var L;return(A=(L=_.q(A,d4p))==null?void 0:L.onVisible)&&_.HR(A)};
x4_=function(A){var L;return(A=(L=_.q(A,d4p))==null?void 0:L.onHidden)&&_.HR(A)};
Pqp=function(A,L,O,X,x){var J=function(T){_.X5().resolve(_.x$).resolveCommand(A,T)},Y=function(T){X&&_.Wm(_.j8(T),L,X)||J(T.target?{form:{element:T.target,
sourceData:A,mutationContext:x}}:void 0)};
O&&(Y=function(T){O(T,J)});
return Y};
YK_=function(A){switch(A){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}};
ukp=function(A){var L=A.numAvatarsInCluster;switch(A.clusterSize){case "small":return L===2?22:18;case "40":return L===2?24:22;default:return L===2?24:20}};
Tgs=function(A,L){return function(O){var X=Object.keys(L);_.ND(function(){if(A!=null&&A()){for(var x=_.d(X),J=x.next();!J.done;J=x.next())J=J.value,O.addEventListener(J,L[J]);_.rF(function(){for(var Y=_.d(X),T=Y.next();!T.done;T=Y.next())T=T.value,O.removeEventListener(T,L[T])})}},"bXZGfe")}};
VUM=function(A){switch(ukp(A)){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""}};
D4s=function(A){switch(A){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""}};
e99=function(A){switch(ukp(A)){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""}};
E_D=function(A){switch(A){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""}};
n__=function(A){switch(A){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}};
tUp=function(A){return A==="medium"||A==="48"||A==="large"||A==="extra-large"||A==="extra-extra-large"||A==="giant"};
baM=function(A){return!!((A==null?0:A.includes(3))||(A==null?0:A.includes(5)))};
SKd=function(A){return{size:h9e(A.data.avatarImageSize),onTap:A.onTap,decorations:A.decorations||[],badgeText:A.badgeText,accessibilityText:A.accessibilityText,avatarButtonCustomClassName:A.avatarButtonCustomClassName,clusterLayoutConfig:A.clusterLayoutConfig}};
h9e=function(A){switch(A){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"}};
qKu=function(A){switch(A){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}};
g_p=function(A){switch(A){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""}};
wUP=function(A){var L=A.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",O,X=A.avatars&&A.avatars.length>0?(O=_.q(A.avatars[0],_.MV))==null?void 0:O.avatarImageSize:"AVATAR_SIZE_UNKNOWN";O=qKu(X)||0;if(L){var x,J=(x=A.avatarClusterSize)!=null?x:"AVATAR_SIZE_M";L=qKu(J);var Y,T,V=Math.min((T=(Y=A.avatars)==null?void 0:Y.length)!=null?T:0,4),E;return{avatars:((E=A.avatars)==null?void 0:E.slice(0,4))||[],avatarSizeInPx:O,avatarStackStyle:{width:L+"px",height:L+"px",position:"relative"},avatarStyle:function(t){var b=
ukp({clusterSize:h9e(J),numAvatarsInCluster:V,avatarIndex:t});var S=qKu(J);V===3&&t===2?(S=(S-b)/2,S=(_.ms("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*S):S=void 0;return{position:"absolute",top:V===2&&t===1||V===3&&t===2||V===4&&t>=2?"0":void 0,bottom:V===2&&t===0||V>2&&t<2?"0":void 0,left:V===2&&t===1||V>2&&(t===1||t===3)?"0":void 0,right:V<=3&&t===0||V===4&&(t===0||t===2)?"0":void 0,transform:S?"translateX("+S+"px)":void 0,width:b+"px",height:b+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(t){return{clusterSize:h9e(A.avatarClusterSize),numAvatarsInCluster:V,avatarIndex:t}},
avatarButtonCustomClassName:void 0}}var n;return{avatars:((n=A.avatars)==null?void 0:n.slice())||[],avatarSizeInPx:O,avatarStackClass:"yt-avatar-stack-view-model-wiz__avatars",avatarClass:g_p(X),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button"}};
pU_=function(A,L,O){return function(){RQ(A,{form:{element:L},commandController:O})}};
iau=function(A){switch(A){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
Ngu=function(A){switch(A){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"}};
rby=function(A){var L=A.data;A=A.hidden===void 0?!1:A.hidden;var O={};A={class:_.gl("yt-page-indicator-view-model",(O["yt-page-indicator-view-model__indicator--hidden"]=!L.indicatorCount,O)),hidden:A};if(L.indicatorCount){O=[];for(var X=0;X<L.indicatorCount;X++){var x={};x=_.gl("yt-page-indicator-view-model__indicator",(x["yt-page-indicator-view-model__indicator--selected"]=L.selectedIndex===X,x));O.push(_.D("div",{class:x}))}L=_.D(_.Xs,null,O)}else L=_.D(_.Xs,null);return _.D("yt-page-indicator-view-model",
A,L)};
G3d=function(A){A&&(KrO(A)?delete A.inlinePlayerData:"inlinePlaybackEndpoint"in A&&delete A.inlinePlaybackEndpoint)};
l6d=function(A){if("accessibilityText"in A)return A.accessibilityText||"";if("title"in A){var L,O,X;return((L=A.title)==null?void 0:(O=L.accessibility)==null?void 0:(X=O.accessibilityData)==null?void 0:X.label)||""}if("accessibility"in A){var x,J;return((x=A.accessibility)==null?void 0:(J=x.accessibilityData)==null?void 0:J.label)||""}return""};
KrO=function(A){return"inlinePlayerData"in A};
$u=function(A){return new cbJ(A)};
Cqp=function(A){var L=A.data;A=_.py(function(){var x=_.q(L.onTap,_.WR);x&&_.X5().resolve(_.x$).resolveCommand(x);return!1});
var O={sources:[{url:L.thumbnailUrl,width:120,height:90}]},X=L.rating&&L.ratingA11yLabel&&L.reviewsCount&&L.reviewsCountA11yLabel;return _.D("place-data-view-model",null,L.placeName&&L.placeCategory?_.D("div",{class:"yt-spec-place-data-view-model-shape","on:click":A},_.D(_.XV,{data:O,alt:"",targetWidth:120,targetHeight:90,className:"yt-spec-place-data-view-model-shape__thumbnail"}),_.D(_.aD,{className:"yt-spec-place-data-view-model-shape__place-link",command:L.onTap},_.D("h3",{class:"yt-spec-place-data-view-model-shape__name",
title:L.placeName},L.placeName)),_.D("div",{class:"yt-spec-place-data-view-model-shape__metadata"},X?_.D("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"},_.D("span",{class:"score",title:L.ratingA11yLabel},L.rating),_.D("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-star-icon"},_.D(_.Ky,{icon:"STAR",active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.D("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-reviews",
title:L.reviewsCountA11yLabel},L.reviewsCount)):_.D("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"}),_.D("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-categories"},_.D("span",{class:"category",title:L.placeCategory},L.placeCategory)))):null)};
FrP=function(A){return function(L){A&&(A.thumbnailElRef=L.thumbnailElRef,A.thumbnail=L.thumbnail,A.thumbnailOverlays=L.thumbnailOverlays,A.thumbnailSize=L.thumbnailSize)}};
R99=function(A){var L;return(L=A.sharedUi)==null?void 0:L.animatedThumbnailEnabled};
Qwy=function(A){var L;return(L=A.sharedUi)==null?void 0:L.inlinePreviewEnabled};
_.m4J=function(A){var L;return(L=A.sharedUi)==null?void 0:L.currentPageSubType};
f6p=function(A){switch(A){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"}};
ybu=function(A){var L=_.d(_.uQ(!1,void 0,"RIOonf")),O=L.next().value,X=L.next().value;_.GD(function(){var x=A==null?void 0:A();if(x){var J=_.X5().resolve(_.Ot(I6J));if(J){var Y={triggeringElement:x,onDwellTriggeredFn:function(){X(!0)},
onDwellEndFn:function(){X(!1)}};
J.registerElement(Y);_.rF(function(){_.ku(J,Y)})}}});
return O};
Zau=function(A,L,O){O?O(L):_.$a(L,A.target?{form:{element:A.target}}:void 0)};
_.Uk=function(A,L,O){return function(X){_.ND(function(){var x=new Map,J,Y=(J=A())==null?void 0:J.onTap;Y&&(J=function(T){a:{var V=T.composedPath();V=_.d(V);for(var E=V.next();!E.done;E=V.next()){E=E.value;if(E===X)break;if(E.className.indexOf("HostIsClickableAdComponent")>=0||E.tagName==="A".toString()||E.tagName==="BUTTON".toString()){V=!0;break a}}V=!1}V||Zau(T,Y,L)},(O==null?0:O())||_.h("enable_web_home_top_landscape_image_layout_level_click")?(X.addEventListener("tap",J),x.set("tap",J)):(X.addEventListener("click",
J),x.set("click",J)));
_.rF(function(){for(var T=_.d(x),V=T.next();!V.done;V=T.next()){var E=_.d(V.value);V=E.next().value;E=E.next().value;X.removeEventListener(V,E)}})},"NMyqj")}};
jw_=function(A,L){var O,X=(O=A.interaction)==null?void 0:O.onTap;if(A=_.BR({elementsCommand:X,forceNewState:!0,skipOnClick:!0}))return A.onclick=function(x){r6u(x)&&(x.preventDefault(),X&&Zau(x,X,L))},Mb(A)?A:void 0};
Wrp=function(A){switch(A){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
Har=function(A){switch(A){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"}};
z9p=function(A){switch(A){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"}};
_.Bgu=function(A){return _.h("rich_grid_enable_dynamic_offset")&&A?Math.max(Math.round((A-_.PO("rich_grid_dynamic_offset_anchor_width",1300))/100*_.PO("rich_grid_dynamic_offset_offset_per_100",10)),_.PO("rich_grid_dynamic_offset_lower_bound",-60)):0};
MUy=function(A,L){switch(L){case 4:return 16;case 1:return A<528?16:A<1024?32:48;case 2:return(A>=528?16:8)/2;case 3:return(A<528?16:A<1024?32:48)+(A>=528?16:8)/2;default:return 0}};
$4y=function(A){var L=A.originalContainerWidth;var O=A.sizing;var X=A.standardUnit;if(A.isCompactList&&L<528)return 1;switch(O){case "STANDARD":return X;case "COMPACT":return X+1;case "EXTRA_COMPACT":return _.h("web_responsive_extra_compact_2x")?X*2:_.h("web_responsive_current")?X===1?2:X%2===0?X/2*3:X+2:X<4?X*2:Math.ceil(X*3/2);case "MINI":return X>1?X*2:3;default:return X}};
k3u=function(A){var L=A.containerWidth;var O=A.peek;var X=A.gutter;var x=A.numItems;A=A.ignoreMaxWidthLimit;L=O?Math.max((L-O-X*x)/x,0):Math.max((L-X*(x-1))/x,0);return A?L:Math.min(L,a6u)};
_.oD=function(A){var L=A.containerWidth;var O=A.hasPeek;var X=A.sizing;var x=A.marginSettings;var J=A.isCompactList;var Y=A.enableFullBleedForSingleCol;var T=A.standardUnitMinWidth;X=X||"STANDARD";O=!!O;A=L>=528?16:8;var V=O?L>=528?48:24:0;x=MUy(L,x);var E=Math.max(L-x*2,0);T=_.h("kevlar_disable_min_width_override")?void 0:T;T=Math.min(Math.max(Math.floor((E-V+A)/((T!=null?T:U4r)+_.Bgu(L)+A)),1),6);var n=(Y=!!Y&&T===1)||T===1&&X!=="STANDARD";O=O||n?E:Math.min(E,(a6u+A)*T-A);X=$4y({originalContainerWidth:L,
sizing:X,standardUnit:T,isCompactList:J});return{itemWidth:k3u({containerWidth:O,peek:V,gutter:A,numItems:X,ignoreMaxWidthLimit:n}),gutter:A,maxContainerWidth:O,numItems:X,margin:Y?0:x,contentMargin:MUy(L,1),typographyBump:k3u({containerWidth:O,peek:V,gutter:A,numItems:T,ignoreMaxWidthLimit:n})>400&&!(J&&L<528),standardUnit:T}};
v_e=function(A){switch(A){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.o_p=function(A){if(A){var L;if((L=A.responsiveContainerConfiguration)==null?0:L.responsiveSize)return v_e(A.responsiveContainerConfiguration.responsiveSize);if(A.layoutSizing)switch(A.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"}}};
Ah_=function(A){if(A.fullbleed)return 1;switch(A.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
xZ_=function(A,L,O,X,x,J,Y,T){a:if(A===4&&X==="LOCKUP_CONTENT_TYPE_SOURCE")var V=1;else switch(A){case 3:V=1;break a;default:V=0}a:switch(A){case 4:J=!!(J&&J<100);break a;default:J=!1}a:switch(A){case 3:case 4:var E=X==="LOCKUP_CONTENT_TYPE_CHANNEL"||X==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:E=!1}a:switch(A){case 5:var n=!0;break a;case 4:n=!1;break a;default:n=!1}return{isOverlay:n,isCard:Lqd(X,Y),sizing:L!=null?L:"STANDARD",typographyBump:O!=null?O:!1,isTiny:J,isCentered:E,isCollection:OW9(X),
arrangement:V,addMarginForFullbleed:A===1&&X!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:A===1&&X==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:Xe_(X,x,T),disableRounding:A===5||Lqd(X,Y)||A===1&&X==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:OW9(X)?2:0,useLegacyTypography:!(T==null||!T.useLegacyTypography),useRichGridLegacyTypography:!(T==null||!T.useRichGridLegacyTypography)&&!_.h("web_enable_typography_bump"),compactMetadata:V===0&&X==="LOCKUP_CONTENT_TYPE_VIDEO"}};
OW9=function(A){switch(A){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}};
Lqd=function(A,L){if(L&&A==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(A){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
Xe_=function(A,L,O){if(L&&(O==null||!O.alwaysRespectPodcastShowAspectRatio||A!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(A){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}};
sud=function(A){switch(A){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"}};
Jhu=function(A){switch(A){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 9;case "BADGE_STATUS_NEW":return 12;case "BADGE_PREMIUM":return 6;case "BADGE_PROMOTED":return 3;case "BADGE_PROMOTED_INVERTED":return 4;default:return 0}};
PM_=function(A){switch(A){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}};
_.AC=function(A){if(A){var L;return((L=_.X5().resolve(_.Ot(_.oy)))==null?0:L())?A.darkThemeImage:A.image}};
uNO=function(A,L,O,X,x,J){if(x&&J&&L==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:x,height:J};if(!O)return{};x=O.size;O=O.allowFullWidth;if(L==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&O)return{fullWidth:!0};if(x===void 0)return{};switch(A){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:x,height:x};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:x,height:1/dZe*x};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:x*
YZe,height:x};default:return(X==null?0:X.height)&&(X==null?0:X.width)?X.width/X.height>1?{maxWidth:x*YZe}:{maxWidth:x}:{maxWidth:x}}};
TGp=function(A){var L;return A&&((L=_.AC(A.themedImage))!=null?L:A.image)};
VPD=function(A){var L;return A==null?void 0:(L=A.sources)==null?void 0:L[0]};
DZd=function(A){switch(A){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"}};
_.ezu=function(A){if(A)return"content-id-"+A};
Ek9=function(A){switch(A.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"}}};
nku=function(A){var L=_.m4J(_.oJ().getState())||"";return A?A+L:""};
tPD=function(A){switch(A){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
hz_=function(A){var L=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],O=_.d(_.uQ(void 0,void 0,"JrqNsb")),X=O.next().value,x=O.next().value,J=_.d(_.uQ(void 0,void 0,"rWytse"));O=J.next().value;var Y=J.next().value;J=_.d(_.uQ(void 0,void 0,"DHRqxe"));var T=J.next().value,V=J.next().value;return{touchFeedbackEvents:{pointerUpEvent:X,pointerDownEvent:O,pointerLeaveEvent:T},touchFeedbackOnPointerUp:_.py(function(E){bWJ(_.j8(E),L)||(x(E),Y(void 0),V(void 0))}),
touchFeedbackOnPointerDown:_.py(function(E){A==null||A(E);bWJ(_.j8(E),L)||(Y(E),x(void 0),V(void 0))}),
touchFeedbackOnPointerLeave:_.py(function(E){bWJ(_.j8(E),L)||(V(E),Y(void 0),x(void 0))})}};
bWJ=function(A,L){L=L===void 0?[]:L;L=[].concat(_.le(L),["BUTTON".toString()]);A=_.d(A);for(var O=A.next();!O.done;O=A.next()){O=O.value;for(var X=_.d(L),x=X.next();!x.done;x=X.next())if(O.tagName===x.value)return!0}return!1};
SZu=function(A){switch(A){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"}};
qZ9=function(A){return A.scrollHeight-A.offsetHeight>1};
gkP=function(A,L){var O;return vR(A,((O=A.content)==null?void 0:O.length)||0,!L)};
weD=function(A,L){L=gkP(A,L);var O,X;return(((O=A.content)==null?void 0:O.length)||0)>(((X=L.content)==null?void 0:X.length)||0)};
iWM=function(A,L,O,X,x,J){if(!L||Lv){var Y;return vR(A,((Y=A.content)==null?void 0:Y.length)||0,!0)}L=X.value;if(!O.value||!L||!A.content)return A;O=0;X=A.content.length;Y=0;peD||(peD=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var T=peD;for(x=x*J*T;O<=X;)J=Math.floor(O+(X-O)/2),T=vR(A,J)||A,L.firstChild&&(L.firstChild.textContent=T.content),L.scrollHeight>x?X=J-1:(Y=J,O=J+1);return vR(A,Y)};
NGu=function(A,L){var O,X;return(((O=A.content)==null?void 0:O.length)||0)>(((X=L.content)==null?void 0:X.length)||0)};
rhP=function(A){var L=A.isTruncated;var O=A.isAbsoluteButton;var X=A.lineHeight;var x=A.contentRef.value,J=A.placeholderTruncationTextRef.value,Y=A.truncationTextRef.value;A=A.appDirection==="rtl";if(x&&J){var T=J.offsetLeft;A&&(T=x.offsetWidth-J.offsetWidth-J.offsetLeft);if(L){L=J.offsetWidth;J=x.offsetWidth;var V=O?J-L-70:T-70;X="linear-gradient(\n      to top, transparent 0%,\n      transparent "+X+"rem,\n      #000 "+X+"rem,\n      #000 100%), linear-gradient(\n      to "+((A?"left":"right")+
",\n      #000 0px,\n      #000 "+V+"px,\n      transparent "+(O?J-L:V+70)+"px)");x.style.setProperty("-webkit-mask-image",X);x.style.setProperty("mask-image",X)}else x.style.setProperty("-webkit-mask-image",""),x.style.setProperty("mask-image","");O?A?(Y.style.setProperty("left","0"),Y.style.setProperty("right","unset")):(Y.style.setProperty("left",""),Y.style.setProperty("right","0")):A?(Y.style.setProperty("left","unset"),Y.style.setProperty("right",T+"px")):(Y.style.setProperty("left",T+"px"),
Y.style.setProperty("right","unset"))}};
Kqu=function(A,L,O,X,x){var J=_.av("truncated-text-content"),Y=_.av("truncated-text-content"),T=_.av("button"),V=_.av("button"),E=_.av("button"),n=_.X5().resolve(_.Ly),t=_.d(pu(gkP(A,x))),b=t.next().value,S=t.next().value;t=_.d(pu(_.h("enable_truncated_text_max_lines")?NGu(A,b):weD(A,x)));var w=t.next().value,l=t.next().value,F=cY(null);_.KB(function(){function R(){if(J.value&&T.value&&E.value)if(_.h("enable_truncated_text_max_lines")){var H=iWM(A,x,J,Y,L,O);S(H);X||requestAnimationFrame(function(){if(J.value&&
T.value&&E.value){var z=qZ9(J.value)||NGu(A,H);l(z);rhP({isTruncated:z,isAbsoluteButton:qZ9(J.value),lineHeight:O,contentRef:J,placeholderTruncationTextRef:T,truncationTextRef:E,appDirection:n})}})}else S(gkP(A,x)),requestAnimationFrame(function(){if(J.value&&T.value&&E.value)if(qZ9(J.value))l(!0),X||rhP({isTruncated:!0,
isAbsoluteButton:!0,lineHeight:O,contentRef:J,placeholderTruncationTextRef:T,truncationTextRef:E,appDirection:n});else{var z=weD(A,x);l(z);X||rhP({isTruncated:z,isAbsoluteButton:!1,lineHeight:O,contentRef:J,placeholderTruncationTextRef:T,truncationTextRef:E,appDirection:n})}})}
var y,M;(y=F.value)==null||(M=y.stop)==null||M.call(y);y=new _.Of(R,17);R();F.value=y},[A.content,
L,O,n,X,x]);_.GD(function(){var R=function(){peD=void 0;var M,H;(M=F.value)==null||(H=M.fire)==null||H.call(M)};
if(window.ResizeObserver){var y=new ResizeObserver(R);y.observe(J.value);return function(){var M,H;(M=F.value)==null||(H=M.stop)==null||H.call(M);y.disconnect()}}window.addEventListener("resize",R);
return function(){var M,H;(M=F.value)==null||(H=M.stop)==null||H.call(M);window.removeEventListener("resize",R)}});
return{isTruncated:w,displayText:b,contentRef:J,hiddenRef:Y,placeholderTruncationTextRef:T,hiddenTruncationTextRef:V,truncationTextRef:E}};
GEe=function(A){var L=A.text;var O=A.alwaysShowTruncationText;var X=A.truncationText;var x=A.onTextClick;var J=A.maxLines===void 0?2:A.maxLines;var Y=A.disableTextMask===void 0?!1:A.disableTextMask;var T=A.textStyle===void 0?"default":A.textStyle;var V=A.accessibilityLabel===void 0?"":A.accessibilityLabel;var E=A.textSize===void 0?"small":A.textSize;var n=A.alwaysTruncateAtMaxLines===void 0?!1:A.alwaysTruncateAtMaxLines;var t=A.expandOnClick===void 0?!1:A.expandOnClick;A=_.d(pu(!1));var b=A.next().value,
S=A.next().value;A=_.py(function(){t&&S(!b);x==null||x()});
a:switch(E){case "medium":var w=2;break a;case "large":w=2.2;break a;default:w=1.8}var l=Kqu(L,b?Infinity:J,w,Y,n),F=l.isTruncated;L=l.displayText;n=l.contentRef;var R=l.hiddenRef,y=l.placeholderTruncationTextRef,M=l.hiddenTruncationTextRef;l=l.truncationTextRef;var H={};O=_.gl((H["truncated-text-wiz__absolute-button"]=!Y,H["truncated-text-wiz__bottom-button"]=Y,H["truncated-text-wiz--hidden"]=!(!b&&(O||F)),H));Y={};T=_.gl((Y["truncated-text-wiz"]=!0,Y["truncated-text-wiz--overlay"]=T==="overlay",
Y["truncated-text-wiz--medium-text"]=E==="medium",Y["truncated-text-wiz--large-text"]=E==="large",Y["truncated-text-wiz--primary-text"]=T==="primary-text",Y));E={};E=_.gl((E["truncated-text-wiz__truncated-text-content"]=!0,E["truncated-text-wiz__truncated-text-content--hidden-text-content"]=!0,E));return _.D("truncated-text",{class:T,"on:click":A,style:"line-height: "+w+"rem;"},_.D("truncated-text-content",{class:"truncated-text-wiz__truncated-text-content",el:n,style:b?"":"max-height: "+J*w+"rem;"},
_.D(_.Xg,{text:L}),_.D("button",{"aria-disabled":!0,disabled:!0,class:"truncated-text-wiz__inline-button",el:y,style:"line-height: "+w+"rem;"},_.D(_.Xg,{text:X}))),_.D("truncated-text-content",{class:E,el:R,style:b?"":"max-height: "+J*w+"rem;","aria-hidden":"true"},_.D(_.Xg,{text:L}),_.D("button",{"aria-disabled":!0,disabled:!0,class:"truncated-text-wiz__inline-button",el:M,style:"line-height: "+w+"rem;"},_.D(_.Xg,{text:X}))),_.D("button",{"aria-label":V,class:O,el:l,style:"line-height: "+w+"rem;"},
_.D(_.Xg,{text:X})))};
lo_=function(A){return A.scrollHeight-A.offsetHeight>1};
chs=function(A,L){var O;return vR(A,((O=A.content)==null?void 0:O.length)||0,!L)};
CMr=function(A,L){L=chs(A,L);var O,X;return(((O=A.content)==null?void 0:O.length)||0)>(((X=L.content)==null?void 0:X.length)||0)};
Rzu=function(A,L,O,X,x,J){if(!L||Lv){var Y;return vR(A,((Y=A.content)==null?void 0:Y.length)||0,!0)}L=X.value;if(!O.value||!L||!A.content)return A;O=0;X=A.content.length;Y=0;FqP||(FqP=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var T=FqP;for(x=x*J*T;O<=X;)J=Math.floor(O+(X-O)/2),T=vR(A,J)||A,L.firstChild&&(L.firstChild.textContent=T.content),L.scrollHeight>x?X=J-1:(Y=J,O=J+1);return vR(A,Y)};
Qu_=function(A,L){var O,X;return(((O=A.content)==null?void 0:O.length)||0)>(((X=L.content)==null?void 0:X.length)||0)};
mZO=function(A){var L=A.isTruncated;var O=A.isAbsoluteButton;var X=A.lineHeight;var x=A.contentRef.value,J=A.placeholderTruncationTextRef.value,Y=A.truncationTextRef.value;A=A.appDirection==="rtl";if(x&&J){var T=J.offsetLeft;A&&(T=x.offsetWidth-J.offsetWidth-J.offsetLeft);if(L){L=J.offsetWidth;J=x.offsetWidth;var V=O?J-L-70:T-70;X="linear-gradient(\n      to top, transparent 0%,\n      transparent "+X+"rem,\n      #000 "+X+"rem,\n      #000 100%), linear-gradient(\n      to "+((A?"left":"right")+
",\n      #000 0px,\n      #000 "+V+"px,\n      transparent "+(O?J-L:V+70)+"px)");x.style.setProperty("-webkit-mask-image",X);x.style.setProperty("mask-image",X)}else x.style.setProperty("-webkit-mask-image",""),x.style.setProperty("mask-image","");O?A?(Y.style.setProperty("left","0"),Y.style.setProperty("right","unset")):(Y.style.setProperty("left",""),Y.style.setProperty("right","0")):A?(Y.style.setProperty("left","unset"),Y.style.setProperty("right",T+"px")):(Y.style.setProperty("left",T+"px"),
Y.style.setProperty("right","unset"))}};
fos=function(A,L,O,X,x){var J=_.av("truncated-text-content"),Y=_.av("truncated-text-content"),T=_.av("button"),V=_.av("button"),E=_.av("button"),n=_.X5().resolve(_.Ly),t=_.d(_.Nn(function(){return chs(A(),x())})),b=t.next().value,S=t.next().value;
t=_.d(_.Nn(function(){return _.h("enable_truncated_text_max_lines")?Qu_(A(),b()):CMr(A(),x())}));
var w=t.next().value,l=t.next().value,F=null;_.ND(function(){function R(){if(J.value&&T.value&&E.value)if(_.h("enable_truncated_text_max_lines")){var H=Rzu(A(),x(),J,Y,L(),O());S(H);X()||requestAnimationFrame(function(){if(J.value&&T.value&&E.value){var z=lo_(J.value)||Qu_(A(),H);l(z);mZO({isTruncated:z,isAbsoluteButton:lo_(J.value),lineHeight:O(),contentRef:J,placeholderTruncationTextRef:T,truncationTextRef:E,appDirection:n})}})}else S(chs(A(),x())),requestAnimationFrame(function(){if(J.value&&T.value&&
E.value){var z=A();
L();var a=O(),xe=X(),ur=x();lo_(J.value)?(l(!0),xe||mZO({isTruncated:!0,isAbsoluteButton:!0,lineHeight:a,contentRef:J,placeholderTruncationTextRef:T,truncationTextRef:E,appDirection:n})):(z=CMr(z,ur),l(z),xe||mZO({isTruncated:z,isAbsoluteButton:!1,lineHeight:a,contentRef:J,placeholderTruncationTextRef:T,truncationTextRef:E,appDirection:n}))}})}
var y,M;(y=F)==null||(M=y.stop)==null||M.call(y);y=new _.Of(R,17);R();F=y},"EujZId");
_.GD(function(){S(chs(A(),x()));l(_.h("enable_truncated_text_max_lines")?Qu_(A(),b()):CMr(A(),x()));var R=function(){FqP=void 0;var M,H;(M=F)==null||(H=M.fire)==null||H.call(M)};
if(window.ResizeObserver){var y=new ResizeObserver(R);y.observe(J.value);_.rF(function(){var M,H;(M=F)==null||(H=M.stop)==null||H.call(M);y.disconnect()})}else window.addEventListener("resize",R),_.rF(function(){var M,H;
(M=F)==null||(H=M.stop)==null||H.call(M);window.removeEventListener("resize",R)})});
return{isTruncated:w,displayText:b,contentRef:J,hiddenRef:Y,placeholderTruncationTextRef:T,hiddenTruncationTextRef:V,truncationTextRef:E}};
_.IoO=function(A,L,O,X,x,J){var Y=function(E){E.preventDefault()},T=function(){var E=A.value;
if(E)return(E._data=L)?(E.addEventListener("touchstart",c6J,{passive:!0}),E.addEventListener("click",FwD),L.clickTrackingParams&&(E.params={itct:L.clickTrackingParams}),R$d(E,L),yo(E,QXM(L)||"")):E.addEventListener("click",Y),function(){L?(E.removeEventListener("touchstart",c6J,{passive:!0}),E.removeEventListener("click",FwD)):E.removeEventListener("click",Y)}},V=function(){var E=A.value;
if(E){var n=_.BR({innertubeCommand:L,elementsCommand:O,forceNewState:X,stopPropagation:J});if(n)return E._data=n._data,n["aria-haspopup$"]&&E.setAttribute("aria-haspopup",n["aria-haspopup$"].toString()),n["force-new-state$"]&&E.setAttribute("force-new-state",n["force-new-state$"].toString()),n.href$&&yo(E,n.href$),n.rel$&&(E.rel=n.rel$),n.role$&&E.setAttribute("role",n.role$),n.target$&&(E.target=n.target$),E.params=n.params,n.onclick&&E.addEventListener("click",n.onclick),n.onpointerdown&&E.addEventListener("onpointerdown",
n.onpointerdown),function(){n.onclick&&E.removeEventListener("click",n.onclick);n.onpointerdown&&E.removeEventListener("onpointerdown",n.onpointerdown)}}};
_.KB(x?V:T,[L,O])};
yhs=function(A){var L=A.children;var O=A.className;var X=A.dir;var x=A.style;var J=A.role;var Y=A.ariaSelected;var T=A.ariaLabel;var V=A.ariaHidden;var E=A.ariaLabelledby;var n=A.ariaDescribedby;var t=A.command;var b=A.elementsCommand;var S=A.forceNewState;var w=A.isPlaceholder;var l=A.tabIdentifier;var F=A.target;var R=A.tabIndex;var y=A.useATagConfig;var M=A.stopPropagation;A=_.av("a");_.IoO(A,t,b,S,y,M);return _.D("a",{el:A,"on:click":_.py(function(){return M===!1}),
class:O,style:x,dir:X,role:J?J:t?void 0:"group","aria-hidden":V?!0:void 0,"aria-label":T,"aria-labelledby":E,"aria-describedby":n,"aria-selected":Y,tabindex:R!==void 0?R:void 0,target:F,"tab-identifier":l,"force-new-state":S?!0:void 0,"is-placeholder":w?!0:void 0},L)};
ZWM=function(A){return{content:A!=null?A:""}};
juM=function(A){return _.HR(A.onTap)||_.Hm(A.rendererContext)};
zzs=function(A){var L=A.data;A={class:A.className};a:switch(L.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(L.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var X="yt-video-attribute-view-model--image-small";break a;default:X="yt-video-attribute-view-model--image-large"}a:switch(L.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var x="yt-video-attribute-view-model--image-square";
break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":x="yt-video-attribute-view-model--image-avatar";break a;default:x=""}a:switch(L.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var J="yt-video-attribute-view-model--metadata-header";break a;default:J=""}a:switch(L.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var Y="yt-video-attribute-view-model--container-card";break a;default:Y=""}O=["yt-video-attribute-view-model",O,X,x,J,Y,juM(L)?"yt-video-attribute-view-model--clickable":
""].join(" ");if(L.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var T="";else X=L.lightColorPalette,x=L.darkColorPalette,J=((T=_.X5().resolve(_.Ot(_.oy)))==null?0:T())&&x?x:X,T=(T=J==null?void 0:J.section2Color)?_.Hy(T):"";return _.D("yt-video-attribute-view-model",A,_.D("div",{class:O,style:_.rl({"background-color":T})},juM(L)||!_.h("web_video_attribute_view_model_a11y_fix")?_.D(yhs,{className:"yt-video-attribute-view-model__content-container",useATagConfig:!0,stopPropagation:!1,command:juM(L),
role:"group",ariaLabel:L.title,forceNewState:!0},L.heroText||L.image?_.D(Wqr,{data:L}):null,_.D(HW9,{data:L,sizeSmall:L.imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"})):_.D("div",{class:"yt-video-attribute-view-model__content-container"},L.heroText||L.image?_.D(Wqr,{data:L}):null,_.D(HW9,{data:L,sizeSmall:L.imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}))))};
BGP=function(A){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:A.overflowMenuA11yLabel,onTap:function(L){L.preventDefault();L.stopPropagation();if(A.overflowMenuOnTap){var O=_.BR({elementsCommand:A.overflowMenuOnTap,forceNewState:!0});if(O==null?0:O.onclick)O.onclick(L)}}}};
Wqr=function(A){A=A.data;var L,O=((L=_.X5().resolve(_.Ot(_.oy)))==null?0:L())&&A.darkThemeImage?A.darkThemeImage:A.image;L=BGP(A);return _.D("div",{class:"yt-video-attribute-view-model__hero-section"},O?_.D(_.XV,{data:O,className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}):A.heroText?_.D("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.D("span",{class:"yt-video-attribute-view-model__hero-text"},A.heroText)):null,A.overflowMenuOnTap?
_.D("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.D(_.xf,{data:L,iconName:"MORE_VERT"})):null)};
HW9=function(A){var L=A.data;A=A.sizeSmall;var O=L.containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD",X=juM(L);X=_.BR({innertubeCommand:X});X=Mb(X);var x={};A={class:_.gl("yt-video-attribute-view-model__metadata",(x["yt-video-attribute-view-model--small-font"]=A,x)),role:X?"link":"group"};X=_.D("h1",{class:"yt-video-attribute-view-model__title"},L.title);O=L.subtitle?_.D("h4",{class:"yt-video-attribute-view-model__subtitle"},O?_.D(MPu,{text:ZWM(L.subtitle),truncationText:ZWM(L.subtitleTruncationText),
maxLines:2}):_.D("span",null,L.subtitle)):null;if(L.secondarySubtitle){x=L.secondarySubtitle;if(x!=null&&x.attachmentRuns){for(var J=[],Y=_.d(x.attachmentRuns),T=Y.next();!T.done;T=Y.next())T=T.value,T.element&&J.push(Object.assign({},T,{element:Object.assign({},T.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));x=Object.assign({},x,{attachmentRuns:J})}x=_.D("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},
_.D(_.Xg,{text:x}))}else x=null;return _.D("div",A,X,O,x,L.buttonViewModel?$ZP(L.buttonViewModel,{buttonViewModel:{className:"yt-video-attribute-view-model__button"}}):null)};
aoD=function(A){return{content:A!=null?A:""}};
kEs=function(A){return _.HR(A.onTap)||_.Hm(A.rendererContext)};
UZd=function(A){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:A.overflowMenuA11yLabel,onTap:function(L){L.preventDefault();L.stopPropagation();if(A.overflowMenuOnTap){var O=_.BR({elementsCommand:A.overflowMenuOnTap,forceNewState:!0});if(O==null?0:O.onclick)O.onclick(L)}}}};
_.sf=function(A,L,O,X,x){X=X===void 0?{}:X;if(!x||Math.random()<5E-4){L=L||null;O=O||null;A=A instanceof Error?A:new _.pe(A);if(A.args)for(var J=_.d(A.args),Y=J.next();!Y.done;Y=J.next())Y=Y.value,Y instanceof Object&&(X=Object.assign({},Y,X));X.category="H5 Ads Control Flow";L&&(X.slot=L?"slot:  "+L.slotType:"");O&&(X.layout=O?"layout:  "+O.layoutType:"",X.layoutId=O.layoutId);x&&(X.known_error_aggressively_sampled=!0);A.args=[X];_.Rv(A)}};
_.vku=function(A,L){_.dQ(A,"yt-open-popup-action",[_.OP(L),A])};
_.JC=function(A,L){_.vku(A,_.Ue(L))};
AfM=function(A){if(!A)return"";if(oke[A])return oke[A];PC||(PC=_.tg("A"));PC.href!==A&&yo(PC,A);var L=PC.pathname;oke[A]=L.startsWith("/")?L:"/"+L;return oke[A]};
LOD=function(){var A=AfM(window.location.href);if(A==="/")return"home";if(A.startsWith("/results"))return"search";if(A.startsWith("/watch"))return"watch";if(A.startsWith("/shorts"))return"shorts";if(A.startsWith("/hashtag"))return"hashtag";if(A.startsWith("/create_channel"))return"create_channel";if(A.startsWith("/@")||A.startsWith("/user/")||A.startsWith("/channel/"))return"channel";if(A.startsWith("/experiments"))return"experiments";if(A.startsWith("/sponsor_channel"))return"sponsorship";if(A.startsWith("/select_site"))return"settings";
if(A.startsWith("/locate"))return"locate";if(A.startsWith("/redeem"))return"redeem";if(A.startsWith("/musicpremium")||A.startsWith("/premium")||A.startsWith("/red"))return"premium";if(A.startsWith("/paid_memberships"))return"paid_memberships";if(A.startsWith("/oops"))return"oops";if(A.startsWith("/clip"))return"clip";var L;return(d1==null?void 0:(L=d1.response)==null?void 0:L.page)==="404"?"404":A.startsWith("/feed/history")?"history":A.startsWith("/feed/library")?"library":A.startsWith("/feed/subscriptions")?
"subscriptions":A.startsWith("/feed/trending")?"trending":A.startsWith("/feed/news_destination")?"news":A.startsWith("/playlist")?"playlist":A.startsWith("/minor_moment")?"minor_moment":A.startsWith("/playable/")||A.match("^/playables/(?!saved).")?"mini_app":A.startsWith("/playables")?"playables":A.startsWith("/create/live/join")?"open_in_app":A.startsWith("/feed/explore")?"explore":"browse"};
_.siu=function(){var A=d1==null?void 0:d1.response,L=A==null?void 0:A.endpoint;if(!L)return(A==null?void 0:A.page)==="watch"?"watch":LOD();var O;A=(O=_.q(L==null?void 0:L.commandMetadata,_.LM))==null?void 0:O.webPageType;O=!1;if(A&&!OSu.includes(A))switch(A){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 X;return((X=_.q(L==null?void 0:L.commandMetadata,_.LM))==null?0:X.url)&&AfM(_.q(L.commandMetadata,_.LM).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var x;return(L=(x=_.q(L,_.gM))==null?void 0:x.browseId)?Xjr[L]||"browse":"browse";default:O=!0}if(_.q(L,_.Yf)||_.q(L,xj_))return"sponsorship";x=AfM(window.location.href);if(x.startsWith("/experiments"))return"experiments";if(x.startsWith("/create_channel"))return"create_channel";
if(_.q(L,_.Hh)&&x.startsWith("/shorts"))return"shorts";if(_.q(L,_.Hh)&&x.startsWith("/watch"))return"watch";O&&(L=new _.pe("Unsupported mWeb page type",{pathname:x,webPageType:A}),_.C7(L));return"browse"};
uI=function(A,L,O,X){return A&&L?A!==O||L!==X?(_.sf(Error("Gh"),void 0,void 0,{"stored-slot":A,"stored-layout":L,"latest-slot":O,"latest-layout":X}),!1):!0:!1};
JfO=function(A,L,O){return A({targetId:L},function(X){return O.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},X,{header:O.continuationItems?O.continuationItems[0]:void 0}):Object.assign({},X,{contents:O.continuationItems?O.continuationItems:[]})})};
PtM=function(A,L,O,X){if(L=L.trackingParams){var x,J=(x=O.getScreenLayer)==null?void 0:x.call(O);O=_.Fn(J);x=_.Ch(J);if(O&&x){var Y=_.lV(L);_.h("combine_ve_grafts")?A.graftServerVe(L,x,J):_.W4(O,x,Y);X==null||X(Y)}}};
YHy=function(A){var L;return((L=dju.get(A))==null?void 0:L.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
Vd9=function(A,L){var O={type:L.slotType,controlFlowManagerLayer:uKs.get(L.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};L.slotEntryTrigger&&(O.entryTriggerType=L.slotEntryTrigger.triggerType);L.slotPhysicalPosition!==1&&(O.slotPhysicalPosition=L.slotPhysicalPosition);if(A){O.debugData={slotId:L.slotId};if(A=L.slotEntryTrigger)O.debugData.slotEntryTriggerData=TZ_(A);A=L.slotFulfillmentTriggers;O.debugData.fulfillmentTriggerData=[];A=_.d(A);for(var X=A.next();!X.done;X=A.next())O.debugData.fulfillmentTriggerData.push(TZ_(X.value));
L=L.slotExpirationTriggers;O.debugData.expirationTriggerData=[];L=_.d(L);for(A=L.next();!A.done;A=L.next())O.debugData.expirationTriggerData.push(TZ_(A.value))}return O};
TZ_=function(A,L){var O={type:A.triggerType};L!=null&&(O.category=L);A.triggeringSlotId!=null&&(O.triggerSourceData||(O.triggerSourceData={}),O.triggerSourceData.associatedSlotId=A.triggeringSlotId);A.triggeringLayoutId!=null&&(O.triggerSourceData||(O.triggerSourceData={}),O.triggerSourceData.associatedLayoutId=A.triggeringLayoutId);return O};
Dje=function(A,L,O,X){L={opportunityType:L};A&&(X||O)&&(X=_.cT(X||[],function(x){return Vd9(A,x)}),L.debugData=Object.assign({},O&&O.length>0?{associatedSlotId:O}:{},X.length>0?{slots:X}:{}));
return L};
eXJ=function(A){return TR(A.opportunityAdapterMap).concat(TR(A.triggerAdapterMap)).concat(TR(A.fulfillmentAdapterFactoryMap)).concat(TR(A.slotAdapterFactoryMap)).concat(TR(A.layoutRenderingAdapterFactoryMap))};
TR=function(A){var L=[];A=_.d(A.values());for(var O=A.next();!O.done;O=A.next())O=O.value,O.isAdsControlFlowEventListener&&L.push(O);return L};
DE=function(A){var L=A.slotId,O=A.slotType,X=A.slotPhysicalPosition;return L===void 0?new VZ("Cannot construct a slot due to the missing id.",{adSlotMetadata:A}):O===void 0?new VZ("Cannot construct a slot due to the missing type.",{adSlotMetadata:A}):X===void 0?new VZ("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:A}):{slotId:L,slotType:O,slotPhysicalPosition:X,managerLayer:"external",adSlotLoggingData:A.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new EMP}};
nMu=function(A){var L=A.layoutId,O=A.layoutType;return L===void 0?new eE("Cannot construct a layout due to the missing id.",{adLayoutMetadata:A}):O===void 0?new eE("Cannot construct a layout due to the missing type.",{adLayoutMetadata:A}):{layoutId:L,layoutType:O,managerLayer:"external",adLayoutLoggingData:A.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new EMP,interactionLoggingAdsClientData:{}}};
td_=function(A){if(A.querySelector("img")){var L=A.querySelector("img");L.addEventListener("error",function(){bwd(L.src).then(function(O){(O=_.Qo(O).toString())?L.src=O:L.removeAttribute("src")}).catch(function(){L.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
nv=function(A,L){if(L&&(bSM(L.viewableCommand)||bSM(L.endOfSessionCommand))){var O=hXu(L==null?void 0:L.viewableCommand);L=hXu(L==null?void 0:L.endOfSessionCommand);if(!Ef){var X=_.PO("custom_active_view_tos_timeout_ms");Ef=X>0&&X!==36E5?new SHy(qHe(),X):new SHy(qHe())}gMr(Ef,A);wjP(Ef,A,O,L)}};
tC=function(A){Ef&&gMr(Ef,A)};
qHe=function(){var A=_.ms("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(A==null?void 0:A.length)===2?A[1]:null};
bSM=function(A){A=_.HR(A);return!(A==null||!A.loggingUrls)&&A.loggingUrls.length>0};
hXu=function(A){if(!A)return[];var L=[],O,X;((X=(O=_.HR(A))==null?void 0:O.loggingUrls)!=null?X:[]).forEach(function(x){x.baseUrl&&L.push(x.baseUrl)});
return L};
pjJ=function(A){if(_.h("stop_av_measurement_on_detach"))return function(){tC(A)}};
iSs=function(A){return function(){_.h("stop_av_measurement_on_detach")&&tC(A)}};
NZs=function(A){if(_.h("stop_av_measurement_on_detach"))return function(){tC(A)}};
rfr=function(A){return A.shorts.isDesktopSmallWidth};
_.KOJ=function(A){return A.shorts.isShortsActive};
_.Gty=function(A){return A.shorts.isWatchWhileMode};
_.bI=function(A){return A.shorts.isFullscreen};
_.hC=function(A){return A.shorts.isShortsPipActive};
cfd=function(A){var L,O;if(A=(L=_.q(A.reelsAdCardButtoned,ldO))==null?void 0:(O=L.animatedRenderingConfig)==null?void 0:O.easeOutSeconds)return A+"s"};
FO9=function(A,L,O){return _.u(function(X){return X.return(new Promise(function(x){var J=new Image;J.onload=function(){x(new Ct_(A,L,O,J.naturalWidth,J.naturalHeight))};
J.src=O.toString()}))})};
RXu=function(A,L){return Math.round(A/1E-5)===Math.round(L/1E-5)};
Qie=function(A,L){return Math.round(A/1E-5)===Math.round(L/1E-5)};
mj9=function(A,L){return A.year===L.year&&A.month===L.month&&A.day===L.day};
fdO=function(A,L){return A.year!==L.year?A.year<L.year:A.month!==L.month?A.month<L.month:A.day<L.day};
yf9=function(A){return A.day===Ide(A.year,A.month)?A.month===11?{year:A.year+1,month:0,day:1}:{year:A.year,month:A.month+1,day:1}:{year:A.year,month:A.month,day:A.day+1}};
ZSO=function(){var A=new Date,L={year:A.getFullYear(),month:A.getMonth(),day:A.getDate()};return{start:L,end:{year:A.getFullYear()+2,month:A.getMonth(),day:A.getDate()},selectedDate:yf9(L)}};
jiD=function(A){return(new am(2)).format(new Date(A.year,A.month,A.day))};
WOP=function(A){return{year:A.getFullYear(),month:A.getMonth(),day:A.getDate()}};
HSd=function(A,L){A=(A+(Number(L.utcOffsetSec)+(new Date(A*1E3)).getTimezoneOffset()*60))*1E3;L=WOP(new Date(A));return{date:L,secondsSinceMidnight:Math.floor((A-(new Date(L.year,L.month,L.day)).getTime())/1E3)}};
zXp=function(A,L){L=L.months.findIndex(function(O){return O.year===A.year&&O.month===A.month});
return L>=0?L:void 0};
BZp=function(A){if(!A)return!1;try{if(A.host&&A.host.tagName==="YT-FORMATTED-STRING"&&A.host.id==="contenteditable-textarea"||A.nodeType===Node.ELEMENT_NODE&&A.tagName==="YTD-COMMENTBOX")return!0}catch(L){return!1}return BZp(A.parentNode)};
SE=function(A){return A?!(A.tagName!=="A"||!A.href||!A.classList.contains("yt-simple-endpoint")):!1};
Md_=function(A){return A?A.tagName==="IMG"&&A.classList.contains("emoji"):!1};
$jJ=function(A,L,O){if(!A)return null;var X=SE(A);if(X&&O)return L=A.pathname.substring(A.pathname.indexOf("/channel/")+9),document.createTextNode("@"+L);if(X&&!O)return document.createTextNode("");if(Md_(A))return O=A.alt,A=A.dataset.emojiId,!A&&L&&(L=_.qw(L,O))&&L.isCustomEmoji&&(A=L.emojiId),A?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+A+">"):document.createTextNode(O);X=A.cloneNode(!1);for(var x=0;x<A.childNodes.length;++x){var J=$jJ(A.childNodes[x],L,O);J&&X.appendChild(J)}return X};
g1=function(A){return A?SE(A)?A:g1(A.lastChild):null};
ade=function(A){return A?SE(A)?A:ade(A.firstChild):null};
ktD=function(A){if(!A)return null;for(var L=A.previousSibling;L;)if(L.nodeType===Node.ELEMENT_NODE&&L.nodeName==="BR")L=L.previousSibling;else if(L.nodeType===Node.TEXT_NODE&&/\s+/.test(L.textContent))L=L.previousSibling;else break;(L=g1(L))?A=L:A=(A=A.parentNode)?g1(A.previousElementSibling):null;return A};
Uju=function(A){if(!A)return null;for(var L=A.nextSibling;L;)if(L.nodeType===Node.ELEMENT_NODE&&L.nodeName==="BR")L=L.nextSibling;else if(L.nodeType===Node.TEXT_NODE&&/\s+/.test(L.textContent))L=L.nextSibling;else break;return(L=ade(L))?L:Uju(A.parentNode)};
vMM=function(A){var L=_.w1(),O=L.JSC$12313_getStartNode();if(!BZp(O.parentNode))return null;L=L.JSC$12313_getStartOffset();if(O.nodeType===Node.TEXT_NODE){var X=_.my(O,SE);if(X){if(A&&L===0||!A&&L===O.length)return X}else{if(A&&L===O.length)return!O||O.nodeName==="BR"||O.nextElementSibling&&_.pv(O.nextElementSibling,"display")==="block"?null:ade(O.nextElementSibling);if(!A&&L===0)return O?g1(O.previousElementSibling):null}}if(O.nodeType===Node.ELEMENT_NODE)if(A){if(0<=L&&L<O.childNodes.length)return ade(O.childNodes[L])}else if(0<
L&&L<=O.childNodes.length)return g1(O.childNodes[L-1]);return null};
oMp=function(A,L,O){if(!A)return null;if(A.nodeType===Node.TEXT_NODE)if(O){var X=ktD(A);if(X&&!/^\s+\S/.test(A.wholeText.substr(0,L)))return X}else if((X=Uju(A))&&!/\S\s+/.test(A.wholeText.substr(L,A.wholeText.length)))return X;return A.nodeType===Node.ELEMENT_NODE?O?ktD(A.childNodes[L]):Uju(A.childNodes[L]):oMp(A.parentNode,L,O)};
AXr=function(A){if(A.hasChildNodes())switch(A.tagName){case "DIV":case "A":case "SPAN":var L="";for(A=A.firstChild;A;A=A.nextSibling)L+=AXr(A);return L;default:return""}else switch(A.nodeType){case 3:return A.textContent;default:return""}};
iI=function(A,L){return A.year===L.year&&A.month===L.month&&A.day===L.day};
Nw=function(A,L){return A.year!==L.year?A.year<L.year:A.month!==L.month?A.month<L.month:A.day<L.day};
LId=function(A){return{year:A.getFullYear(),month:A.getMonth(),day:A.getDate()}};
OND=function(A){var L=E1_;L=L===void 0?E1_:L;L(new Date(A.year,A.month,A.day))};
r1=function(A){return LId(new Date(Number(A.seconds)*1E3))};
Xrd=function(A){return A.year!==void 0&&A.month!==void 0&&A.day!==void 0};
xgJ=function(A){return A.start!==void 0&&A.end!==void 0};
szM=function(A){return xgJ(A)?A.start:A};
JXM=function(A){return xgJ(A)?A.end:void 0};
dgu=function(A,L){for(var O=[],X=new Date(A.start.year,A.start.month);X.getFullYear()<A.end.year||X.getFullYear()===A.end.year&&X.getMonth()<=A.end.month;){var x=O,J=x.push,Y=X.getFullYear(),T=X.getMonth(),V=A,E=L,n=void 0,t=[],b=Object.freeze({extraCssClass:"invisible"}),S=new Date(Y,T),w=LId(S);S=S.getDay();for(var l=LId(new Date);w.month===T;){S!==PCe&&n||(n=Array.from({length:7}).fill(b),t.push(n));var F={date:{year:Y,month:T,day:w.day},extraCssClass:"",debugClass:""};F.extraCssClass=E(F.date,
w,l,V).trim();n[(S-PCe+7)%7]=F;w=w.day===Ide(w.year,w.month)?w.month===11?{year:w.year+1,month:0,day:1}:{year:w.year,month:w.month+1,day:1}:{year:w.year,month:w.month,day:w.day+1};S=(S+1)%7}J.call(x,{weeks:t,monthLabel:Kv.SHORTMONTHS[T]+" "+Y,year:Y,month:T,monthLabelExtraCssClass:t[0][2]===b?"shift-down-label":""});X.setMonth(X.getMonth()+1)}return O};
YDJ=function(A,L){L=L.months.findIndex(function(O){return O.year===A.year&&O.month===A.month});
return L>=0?L:void 0};
T$O=function(A,L){a:{var O=O===void 0?[2,3]:O;O=_.d(O);for(var X=O.next();!X.done;X=O.next()){var x=new Date;if((new ufP(X.value)).parse(L,x,{validate:!0})){x.setHours(0,0,0,0);L=x;break a}}L=null}if(!L)return{isValid:!1,value:void 0};L=LId(L);O=A.end;return Nw(L,A.start)||Nw(O,L)?{isValid:!1,value:void 0}:{isValid:!0,value:L}};
ni9=function(A){var L=Vce;L=L===void 0?Dgd:L;var O=A.columnsToShow||[],X=eMu(A.columnDimensions,A.columnsToShow,A.leftFloatingColumns,L);return O.map(function(x,J){var Y=A.columns[x];if(Y===void 0)throw Error("Mh");var T=X?X[J]:"";var V=A.getCustomTooltip?A.getCustomTooltip(x,Y.headerTooltipParagraphs):Y.headerTooltipParagraphs;var E=EiJ(A,x);return{type:x,index:J,style:T,classes:E,headerName:Y.headerName||"",headerIcon:Y.headerIcon,headerTooltipParagraphs:V||[],headerTooltipHelpContext:Y.headerTooltipHelpContext,
sortOrders:Y.sortOrders||[],selectionState:Y.isSelectionCheckbox?A.selectionState:void 0}})};
EiJ=function(A,L){var O=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],X=A.columns[L];if(X===void 0)return"";var x=O.includes("DEFAULTS")&&X.cssClass?[X.cssClass]:[];if(O.includes("SORTING")){X.sortOrders&&X.sortOrders.length&&x.push("sortable");if(A.sorting&&A.sorting.columnType===L)a:switch(A.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var J="column-sorted";break a;default:J=""}else J="";J&&x.push(J)}O.includes("FLOATING")&&(L=A.columnsToShow.indexOf(L),A.leftFloatingColumns&&L<A.leftFloatingColumns&&
x.push("floating-column"),A.leftFloatingColumns&&L===A.leftFloatingColumns-1&&x.push("last-floating-column"));O.includes("RIGHT_ALIGN")&&X.rightAlignHeader&&x.push("right-align");return x.filter(function(Y){return Y}).join(" ")};
eMu=function(A,L,O,X){O=O===void 0?0:O;X=X===void 0?Dgd:X;if(A){var x=[],J=0;tcs(A,L,X).forEach(function(Y,T){var V="min-width:"+Y.minWidth+"px;padding-left:"+Y.paddingLeft+"px;padding-right:"+Y.paddingRight+"px;flex:"+Y.flexGrow+" 0 "+Y.minWidth+"px;";Y.maxWidth!==Infinity&&(V=[V,"max-width:"+Y.maxWidth+"px;"].join(""));J>0&&T<O&&(V=[V,"left:"+J+"px;"].join(""));x.push(V);J+=Y.minWidth+Y.paddingLeft+Y.paddingRight});
return x}};
tcs=function(A,L,O){O=O===void 0?Dgd:O;return L.map(function(X,x){X=A&&A[X]||{};var J=x===0?O.paddingLeftFirstColumn:O.padding;X.paddingLeft!==void 0&&(J=X.paddingLeft);x=x===L.length-1?O.paddingRightLastColumn:O.padding;X.paddingRight!==void 0&&(x=X.paddingRight);return{paddingLeft:J,paddingRight:x,minWidth:X.minWidth!==void 0?X.minWidth:O.minWidth,maxWidth:X.maxWidth!==void 0?X.maxWidth:O.maxWidth,flexGrow:X.flexGrow!==void 0?X.flexGrow:O.flexGrow}})};
bND=function(A){var L=A.reduce(function(X,x){var J=x.columnId,Y={};x.headerText&&(Y.headerName=_.vG(x.headerText));x.rightAlignHeader&&(Y.rightAlignHeader=x.rightAlignHeader);var T;if((T=x.headerIcon)==null?0:T.iconType)Y.headerIcon=_.bV(x.headerIcon.iconType);X[J]=Y;return X},{}),O=A.filter(function(X){return!X.hideColumn}).map(function(X){return X.columnId});
A=A.filter(function(X){return!!X.dimensions}).reduce(function(X,x){X[x.columnId]=x.dimensions;
return X},{});
return{columns:L,columnsToShow:O,columnDimensions:A}};
_.hMy=function(A){return A?A.simpleText?A.simpleText:A.runs?A.runs.map(function(L){return L.text}).join(""):"":""};
prD=function(A){var L=A.data;var O=A.onTap;var X=A.isSelected;var x=A.onFocusIn;if(!L)return{};A=SDM(L);X===void 0&&(X=L==null?void 0:L.isSelected);var J;return{text:qDM(L,A),startIcon:(J=L.icon)==null?void 0:J.iconType,state:X?0:2,type:0,onTap:gi9(L,O),accessibilityLabel:wrM(L,A),onFocusIn:function(){return x==null?void 0:x()}}};
qDM=function(A,L){if(!L)return A.text?_.hMy(A.text):void 0};
gi9=function(A,L){return function(O){L==null||L(O,A)}};
SDM=function(A){A=A.style&&A.style.styleType;return!Lv&&A==="STYLE_EXPLORE_LAUNCHER_CHIP"};
wrM=function(A,L){if(L){var O,X,x;return(x=(O=A.accessibilityData)==null?void 0:(X=O.accessibilityData)==null?void 0:X.label)!=null?x:qDM(A,!1)}};
GR=function(A){return{signalAction:{signal:A}}};
rXd=function(){return _.ms("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?iNr:_.N$u};
KIe=function(A,L){A=A===void 0?"SOFT_RELOAD_PAGE":A;L=L===void 0?49504:L;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.Xl(_.b3("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:L}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:A}}]}}}};
G8p=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.Xl(_.b3("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:rXd()}};
lq9=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.Xl(_.b3("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:rXd()}};
cXd=function(A,L){var O=_.Xl(_.b3("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),X=_.Xl(_.b3("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),x={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.Xl(_.b3("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};x.serviceEndpoint=A?A:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[GR("SOFT_RELOAD_PAGE")]}};return{title:O,bodyText:X,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:x},
style:{value:L!=null?L:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
FIe=function(A){A=A===void 0?{}:A;return{title:_.Xl(A.localizedZeroStateTitleText===void 0?"":A.localizedZeroStateTitleText),bodyText:_.Xl(A.localizedZeroStateMessage===void 0?"":A.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Xl(A.localizedZeroStateButtonText===void 0?"":A.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[CCP]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
Qze=function(A){A=A===void 0?{}:A;return{title:_.Xl(A.localizedOptInBannerTitleText===void 0?"":A.localizedOptInBannerTitleText),titleLength:19,subtitle:_.Xl(A.localizedOptInMessage===void 0?"":A.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Xl(_.b3("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:_.Xl(_.b3("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:[RMO]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
Iq_=function(A,L){var O=L=L===void 0?{}:L;L=O.offlineTitleText===void 0?"":O.offlineTitleText;var X=O.offlineDescriptionText===void 0?"":O.offlineDescriptionText,x=O.formattedSupplementalText,J=O.actionButtonText===void 0?"":O.actionButtonText,Y=O.titleText===void 0?"":O.titleText;O=O.descriptionText===void 0?"":O.descriptionText;var T={style:"STYLE_PRIMARY",size:"SIZE_DEFAULT",text:_.Xl(J),isDisabled:!1,navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://www.youtube.com/premium",
webPageType:"WEB_PAGE_TYPE_PROMO"}},urlEndpoint:{url:"https://www.youtube.com/premium"}},loggingDirectives:{clientVeSpec:{uiType:266213}}};A||(Y=L,O=X,T={style:"STYLE_MONO_TONAL",size:"SIZE_DEFAULT",text:_.Xl(J),isDisabled:!0,loggingDirectives:{clientVeSpec:{uiType:266213}}});return{title:_.Xl(Y),titleLength:Y.length,overrideTitleMaxFontSize:30,subtitle:_.Xl(O),supplementalText:x,primaryButton:{buttonRenderer:T},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},
tileImage:{thumbnails:[mgp]},darkTileImage:{thumbnails:[fqu]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.jzJ=function(A,L,O,X,x,J,Y,T,V,E,n){x=x===void 0?!1:x;J=J===void 0?!1:J;Y=Y===void 0?0:Y;T=T===void 0?-Infinity:T;V=V===void 0?!1:V;E=E===void 0?!1:E;n=n===void 0?!1:n;var t=[],b=_.Xl(_.b3("SMART_DOWNLOADS",void 0,"Smart downloads")),S=_.Xl(yXP(Y,T,A.length));T=Y=void 0;E?Y={statementBannerRenderer:Iq_(n,X)}:x?A.length>0?T=ZND(A,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.h("kevlar_manual_downloads_above"),b,S):V?T={alertBannerViewModel:{heading:{content:O.localizedOptInBannerTitleText===
void 0?"":O.localizedOptInBannerTitleText},body:{content:O.localizedPromptMessage===void 0?"":O.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.b3("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.b3("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:_.Gee}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:J&&(T={backgroundPromoRenderer:{bodyText:_.Xl(_.b3("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"}}}):
J&&(T={alertBannerViewModel:{heading:{content:O.localizedOptInBannerTitleText===void 0?"":O.localizedOptInBannerTitleText},body:{content:O.localizedOptInMessage===void 0?"":O.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.b3("TURN_ON",void 0,"Turn on"),accessibilityText:_.b3("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}}}}}});O=_.Xl(_.b3("YOUR_DOWNLOADS",void 0,"Your downloads"));X=void 0;L.length>0?(X=void 0,_.h("kevlar_display_downloads_numbers")&&(X=_.Xl(_.hz("VIDEO_COUNT",L.length))),X=ZND(L,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,O,X)):x||A.length||
E||(X={backgroundPromoRenderer:{bodyText:_.Xl(_.b3("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}}}});Y?t.push({richSectionRenderer:{content:Y}}):T&&!_.h("kevlar_manual_downloads_above")&&t.push({richSectionRenderer:{content:T,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
X&&t.push({richSectionRenderer:{content:X,loggingDirectives:{clientVeSpec:{uiType:51721}}}});T&&_.h("kevlar_manual_downloads_above")&&t.push({richSectionRenderer:{content:T,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(L.length>0||x&&A.length>0&&!E)&&t.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.Xl(_.b3("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:t}};
_.HNJ=function(A){return WIP(A,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.zMe=function(A){return WIP(A,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
WIP=function(A,L){var O=[];A=ZND(A,L,!0);O.push({richSectionRenderer:{content:A}});return{contents:O}};
ZND=function(A,L,O,X,x){O=O===void 0?!1:O;var J="RESPONSIVE_SIZE_STANDARD";_.h("kevlar_modern_downloads_compact")?J="RESPONSIVE_SIZE_COMPACT":_.h("kevlar_modern_downloads_extra_compact")&&(J="RESPONSIVE_SIZE_EXTRA_COMPACT");A={isExpanded:O,contents:lI(A),entitySelectorType:L,responsiveContainerConfiguration:{responsiveSize:J}};X&&(A.title=X);x&&(A.subtitle=x);O||(_.h("kevlar_smart_downloads_show_more_button")?(A.showMoreButton={buttonRenderer:{accessibility:{label:_.b3("SHOW_MORE",void 0,"Show more")},
icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.Xl(_.b3("SHOW_MORE",void 0,"Show more"))}},A.showLessButton={buttonRenderer:{accessibility:{label:_.b3("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.Xl(_.b3("SHOW_LESS",void 0,"Show less"))}}):(A.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.b3("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}}}},A.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.b3("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}}}},A.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.b3("VIEW_ALL",void 0,"View all"),accessibilityText:_.b3("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:LY("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:A}};
lI=function(A){var L=[];A=_.d(A);for(var O=A.next();!O.done;O=A.next())if(O=O.value,V9s(O)){var X=L,x=X.push;var J=void 0;if(O==null?0:(J=O.videoEntity)==null?0:J.videoId){J=WG(_.Ai().getState(),O.videoEntity.videoId);var Y=_.Ai().getState();var T=_.Dn(O.videoEntity.videoId,"mainVideoEntity");Y=!!_.KY(Y.entities)[T];Y={videoId:O.videoEntity.videoId,title:xB(O.videoEntity.title),shortBylineText:xB(O.channelEntity.title),thumbnail:O.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:Y&&_.h("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:W1s(O.videoEntity.videoId,J,O.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.b3("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};O.videoEntity.lengthSeconds&&(Y.thumbnailOverlays=Rls(O.videoEntity.lengthSeconds,J));Y.isWatched=J>0;_.h("kevlar_modern_downloads_page")&&(Y.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:O.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.b3("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},Y.badges=void 0);O=Y}else O={};x.call(X,{richItemRenderer:{content:{videoRenderer:O},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(Tmu(O)){X=L;x=X.push;var V=T=J=void 0,E=void 0,n=void 0,t=void 0,b=void 0,S=void 0,w=void 0,l=void 0,F=void 0,R=void 0;Y=O.mainPlaylistEntity.playlistId;var y=O==null?void 0:(R=O.mainPlaylistEntity)==null?void 0:(F=R.thumbnailStyleData)==null?void 0:(l=F[0])==null?void 0:(w=l.value)==null?void 0:(S=w.collageThumbnail)==
null?void 0:S.coverThumbnail;if(Y&&y){S=HCe(Y);!_.h("enable_offline_playlist_page")&&(O==null?0:(b=O.mainPlaylistEntity)==null?0:b.videos)&&(b=O==null?void 0:(t=O.mainPlaylistEntity)==null?void 0:(n=t.videos)==null?void 0:n[0],n=_.dh(b).entityId,n=JSON.parse(n).videoId,n!==void 0&&(t=WG(_.Ai().getState(),n),S=_.Oe(n,Y,void 0,void 0,t)));n=[];if(O==null?0:(E=O.mainPlaylistEntity)==null?0:(V=E.videos)==null?0:V.length)n=[el_(),Object.assign({},(T=Dvs(O==null?void 0:O.mainPlaylistEntity.videos.length))!=
null?T:{})];O={playlistId:Y,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:y}},navigationEndpoint:S,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:n,title:xB(O.mainPlaylistEntity.title),shortBylineText:xB(O==null?void 0:(J=O.channelEntity)==null?void 0:J.title),badges:[{metadataBadgeRenderer:{label:_.b3("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.h("kevlar_modern_downloads_page")&&(O.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:B$r,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:Y,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.b3("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},O.badges=void 0)}else O=void 0;x.call(X,{richItemRenderer:{content:{playlistRenderer:O},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return L};
yXP=function(A,L,O){A=A?Mcd(A):"";L!==void 0&&isFinite(L)?L===0?L=_.b3("UPDATING",void 0,"Updating..."):(L=Fk_(new Date(L),new Date),L=_.b3("UPDATED_TIME",{relative_time:L},"Updated "+L)):L="";var X="";A&&L&&(X=" \u2022 ");if(O&&_.h("kevlar_display_downloads_numbers")){O=_.hz("VIDEO_COUNT",O);if(A||L)X=" \u2022 ";return O+X+A+X+L}return A+X+L};
$gd=function(A){return X_M(A.entities).length};
_.aqe=function(A,L){var O=v_e(A.responsiveSize),X;A=!((X=A.responsiveMap)==null||!X.some(function(x){return x.containerSize==="CONTAINER_SIZE_NARROW"&&x.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:L,sizing:O,enableFullBleedForSingleCol:!1,isCompactList:O==="COMPACT"&&A}};
k8y=function(A,L){return _.eM(A.entities,"votingEntity",L)};
Uge=function(A){if(A){var L;return((L=_.X5().resolve(_.Ot(_.oy)))==null?0:L())?A.darkTheme:A.lightTheme}};
viu=function(A,L){if(A.simpleText)return Object.assign({},A,{simpleText:ka(A.simpleText,L)});if(!A.runs)return A;for(var O=Object.assign({},A,{runs:[]}),X=0,x=_.d(A.runs),J=x.next();!J.done;J=x.next())if(J=J.value,J.text)if(X+J.text.length<=L)O.runs.push(J),X+=J.text.length;else return O.runs.push(Object.assign({},J,{text:ka(J.text,L-X)})),O;return A};
oir=function(A,L){return _.eM(A.entities,"chipBarStateEntity",L)};
AHM=function(A,L){return _.eM(A.entities,"chipEntity",L)};
OVr=function(A,L,O,X){return function(){var x=L8e.has(A.displayType)&&A.selected,J=x&&A.deselectCommand?A.deselectCommand:A.tapCommand;!J||x&&X||_.$a(J,{form:{element:L==null?void 0:L.value}});O==null||O()}};
XSp=function(A){switch(A){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""}};
xeu=function(A,L){return{triggeringElement:A,onDwellTriggeredFn:function(){var O={triggeringElement:A,loadVideoPreviewEventData:L},X=document.querySelector(".video-preview");X&&X.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:O}))},
onDwellEndFn:function(){var O=document.querySelector(".video-preview");O&&O.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
sCp=function(A,L){var O=_.X5().resolve(_.Ot(I6J)),X=function(){var x=L();return O&&x?xeu(A.value,x):null};
_.ND(function(){var x=X();O&&x&&Promise.resolve().then(function(){O.registerElement(x)});
_.rF(function(){O&&x&&Promise.resolve().then(function(){_.ku(O,x)})})},"csPUge")};
Pud=function(A){var L=A.dataset.resizeObserverId;if(L)return L;L=""+JHu++;return A.dataset.resizeObserverId=L};
der=function(A,L){var O=Pud(A);cC.has(O)||cC.set(O,new Set);cC.get(O).add(L);Cv.has(O)&&L(Object.assign({},{target:A},Cv.get(O)))};
Yhy=function(A){A=_.d(A);for(var L=A.next();!L.done;L=A.next()){L=L.value;var O=Pud(L.target),X=Object.assign({},{target:L.target},Cv.get(O));if(X!=null&&X.contentRect?X.contentRect.width!==L.contentRect.width||X.contentRect.height!==L.contentRect.height:1)for(Cv.set(O,{borderBoxSize:L.borderBoxSize,contentBoxSize:L.contentBoxSize,contentRect:L.contentRect,devicePixelContentBoxSize:L.devicePixelContentBoxSize}),O=_.d(cC.get(O)||[]),X=O.next();!X.done;X=O.next())X=X.value,X(L)}};
TEe=function(){return Fg?Fg:Fg=new ur_(Yhy)};
VNJ=function(A,L){var O=Pud(A);cC.has(O)&&(cC.get(O).delete(L),cC.get(O).size===0&&(cC.delete(O),Cv.delete(O),Fg.unobserve(A),delete A.dataset.resizeObserverId));cC.size===0&&Fg&&(Fg.disconnect(),Fg=void 0)};
eI9=function(A,L){var O=_.X5().resolve(Ld);return DeO.map(function(X){return O.observe(A,L,X)})};
E7d=function(A){var L=_.X5().resolve(Ld);A.forEach(function(O){L.unobserveByKey(O)})};
_.bVy=function(A,L){var O=Object.assign({},n7M,L);L=_.d(ryd());var X=L.next().value,x=L.next().value,J=function(Y){var T=Y.contentRect.height;if((Y=Y.contentRect.width)||T||O.canHaveZeroSize)X.width()===Y&&X.height()===T||x(X,{height:T,width:Y})};
_.GD(function(){var Y=A instanceof HTMLElement?A:A.value,T=tN_(J,O.throttleMs),V=[];O.useVisibilityObserver&&(V=eI9(Y,function(E,n){requestAnimationFrame(function(){n==="visible"?(der(Y,T),TEe().observe(Y)):VNJ(Y,T)})}));
V.length||(der(Y,T),TEe().observe(Y));_.rF(function(){V.length&&(E7d(V),V.length=0);VNJ(Y,T)})});
return X};
ShD=function(A){var L=A.data;var O=A.callback;var X=A.enableSingleChipSelection;var x=A.disableChipsScrollAnimation;var J=_.kw("div"),Y=cY(!1),T=cY(0);A={};A=_.d(pu(L.autoselectedChipIndex!=null?(A[L.autoselectedChipIndex]=!0,A):{}));var V=A.next().value,E=A.next().value,n=function(){var ur=J.value;return ur==null||ur.scrollLeft-1<=0},t=function(){var ur=J.value;
return ur==null?!1:ur.scrollLeft+1>=(ur==null?NaN:ur.scrollWidth)-(ur==null?NaN:ur.clientWidth)};
A=_.d(pu(n()));var b=A.next().value,S=A.next().value;A=_.d(pu(t()));var w=A.next().value,l=A.next().value;A=L.isHorizontallyScrollable;var F=function(ur){J.value!=null&&(_.ms("HTML_DIR")==="rtl"&&(ur=-ur),J.value.scrollBy({left:ur,behavior:x?"instant":"smooth"}))},R=function(){F(-320)},y=function(){F(320)},M=_.py(function(ur){Y.value=!0;
T.value=ur.clientX}),H=_.py(function(ur){if(Y.value){ur=ur.clientX;
var eD=ur-T.value;T.value=ur;var gu;(gu=J.value)==null||gu.scrollBy({left:-eD})}}),z=_.py(function(){var ur=n(),eD=t();
ur!==b&&S(ur);eD!==w&&l(eD)});
Al("pointerup",function(){Y.value&&(Y.value=!1)});
var a={},xe={};return _.D("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},an(L.title,function(){return _.D("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.D("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},L.title),hIr(L.overflowButton))}),_.D("div",{class:"ytChipsShelfViewModelChipsShelfContent"},an(L.previousButton!=null,function(){var ur={};
return _.D("div",{class:_.gl("ytChipsShelfViewModelLeftArrowContainer",(ur.ytChipsShelfViewModelLeftArrowContainerIsHidden=b,ur))},hIr(L.previousButton,{buttonViewModel:{className:"ytChipsShelfViewModelLeftArrow",onClick:R}}))}),_.D("div",{el:J,
"on:pointerdown":M,"on:pointermove":H,"on:scroll":z,class:_.gl("ytChipsShelfViewModelChipsScrollContainer",(a.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=!!A,a))},_.D("div",{class:_.gl("ytChipsShelfViewModelChipsContainer",(xe.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=!!A,xe.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!!A&&!1,xe)),role:"tablist"},(L.contents||[]).map(function(ur,eD){return _.D("div",{class:"ytChipsShelfViewModelChipWrapper"},
hIr(ur,{chipViewModel:{callback:function(gu,ir){if(X){var SD={};E((SD[eD]=ir,SD))}else SD={},E(Object.assign({},V,(SD[eD]=ir,SD)));O==null||O(gu,ir,eD)},
disableDeselection:X,selected:!!V[eD]}}))}))),an(L.nextButton!=null,function(){var ur={};
return _.D("div",{class:_.gl("ytChipsShelfViewModelRightArrowContainer",(ur.ytChipsShelfViewModelRightArrowContainerIsHidden=w,ur))},hIr(L.nextButton,{buttonViewModel:{className:"ytChipsShelfViewModelRightArrow",onClick:y}}))})))};
g7r=function(A,L,O,X,x){A=L?A.switchOffCommand:A.switchOnCommand;if(X&&x)qhM(A,O,x);else{var J,Y;(J=_.BR({elementsCommand:A}))==null||(Y=J.onclick)==null||Y.call(J,O)}};
qhM=function(A,L,O){A=_.BR({elementsCommand:A,additionalCommandArgs:{commandController:{onSuccess:function(){O(!1)},
onServerError:function(){O(!1)}}}});
if(A==null?0:A.onclick)A.onclick(L),O(!0)};
pSM=function(A){if(A)return _.q(A,wSD)};
G4M=function(A,L,O){if(L)return[iVe];switch(A){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[RG];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return O?[RG]:[NEu,RG];case "TRANSFER_STATE_PAUSED_BY_USER":return[rHs,RG];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[K8u,RG];default:return[iVe]}};
lhu=function(A,L,O,X){return G4M(A,L,X).map(function(x){var J=x.text,Y=x.iconType,T=x.videoAction;x=x.playlistAction;J=J?{content:J}:void 0;Y=Y&&{sources:[{clientResource:{imageName:Y}}]};var V=(0,_.lW.unsafeClone)(O);if(V){var E=_.q(V,_.g0),n=_.q(V,_.w0);E&&T?E.action=T:n&&x&&(n.action=x)}return{title:J,leadingImage:Y,rendererContext:V&&{commandContext:{onTap:{innertubeCommand:V}}}}})};
cH_=function(A){A=_.Hm(A.rendererContext);var L;return(L=_.q(A,_.w0))==null?void 0:L.playlistId};
Cuu=function(A){var L;return(L=A.listItems)==null?void 0:L.some(function(O){var X;return _.zP((X=_.q(O,_.Ku))==null?void 0:X.rendererContext)})};
QCy=function(A){var L;return(L=A.listItems)==null?void 0:L.some(function(O){var X,x,J=(x=(X=_.q(O,F8D))==null?void 0:X.defaultListItem)!=null?x:O;O=_.q(J,_.Ku);return!!_.q(O==null?void 0:O.leadingAccessory,RIP)})};
IhM=function(A){var L=A.element;var O=A.veType;var X=A.storedVisualElement===void 0?null:A.storedVisualElement;var x=A.elementIndex===void 0?0:A.elementIndex;A=A.clientYouTubeData;var J=_.Fn();J!==meD&&(fhJ.clear(),meD=J);if(L.visualElement&&fhJ.has(L.visualElement))return null;if(X&&fhJ.has(X))return L.visualElement=X,null;O=_.pT(_.iV(),{veType:O,elementIndex:x,clientYouTubeData:A});if(!O)return null;L.visualElement=O;fhJ.add(O);return O};
_.QZ=function(A,L,O,X){O=O===void 0?null:O;X=X===void 0?$3r:X;var x=x===void 0?null:x;Qz(function(){if(L){O instanceof Function&&(O=O());var J=IhM({element:L,veType:A,storedVisualElement:O,clientYouTubeData:void 0});J&&(U39(L,x),X(J))}})};
mB=function(A,L){if(A){switch(L){case 0:A=A.primaryTitleColor;break;case 1:A=A.secondaryTitleColor;break;case 2:A=A.surgeColor;break;case 3:A=A.section2Color;break;case 4:A=A.section3Color;break;default:return}if(A)return _.Wy(A)}};
yHu=function(A){return A?_.Hy(A):""};
ZVs=function(A){return(A==null?void 0:A.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
jCp=function(A,L){var O;return"linear-gradient(to bottom, "+((O=L==null?void 0:L.map(function(X){var x=A?X.darkThemeColor:X.lightThemeColor;return x?_.Hy(x)+" "+((X==null?void 0:X.startLocation)||0)*100+"%":"transparent"}))==null?void 0:O.join(", "))+")"};
W8u=function(A,L,O,X,x){if(!((X==null?0:X.height)&&(X==null?0:X.width)))return{size:0};var J=X.width;X=X.height;if(x)return L==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||L==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&J>X?{size:312/YZe}:L==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(O!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||A!==1&&A!==2||L!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&L!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&L!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(L==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||L==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||X===J)switch(A){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(L==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||X>J)switch(A){case 1:case 3:return{size:240*dZe};default:return{size:360*dZe}}switch(A){case 1:case 2:return{size:1/YZe*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.HVr=function(A){if(!("matchMedia"in window))return _.HY(Error("Nh")),function(){return!1};
var L=window.matchMedia(A);A=_.d(_.uQ(L.matches,void 0,"jLJc8e"));var O=A.next().value,X=A.next().value,x=function(J){X(J.matches)};
L.addEventListener?(L.addEventListener("change",x),_.rF(function(){L.removeEventListener("change",x)})):L.addListener&&(L.addListener(x),_.rF(function(){L.removeListener(x)}));
return O};
zIy=function(A){return A==="IMAGE_BANNER_STYLE_INSET"||A==="IMAGE_BANNER_STYLE_UNKNOWN"};
BEO=function(){if(!("matchMedia"in window))return _.HY(Error("Nh")),function(){return 0};
var A=lk(function(){return window.matchMedia("(max-width: 527.9px)")}),L=lk(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),O=lk(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),X=lk(function(){return window.matchMedia("(min-width: 1024px)")}),x=_.d(_.uQ(A.matches,void 0,"og9kEc")),J=x.next().value,Y=x.next().value;
x=_.d(_.uQ(L.matches,void 0,"ybDWCb"));var T=x.next().value,V=x.next().value;x=_.d(_.uQ(O.matches,void 0,"o0Gfh"));var E=x.next().value,n=x.next().value;x=_.d(_.uQ(X.matches,void 0,"yqUUgd"));var t=x.next().value,b=x.next().value,S=lk(function(){return function(R){Y(R.matches)}}),w=lk(function(){return function(R){V(R.matches)}}),l=lk(function(){return function(R){n(R.matches)}}),F=lk(function(){return function(R){b(R.matches)}});
_.GD(function(){A.addEventListener?(A.addEventListener("change",S),L.addEventListener("change",w),O.addEventListener("change",l),X.addEventListener("change",F)):A.addListener&&(A.addListener(S),L.addListener(w),O.addListener(l),X.addListener(F));_.rF(function(){A.removeEventListener?(A.removeEventListener("change",S),L.removeEventListener("change",w),O.removeEventListener("change",l),X.removeEventListener("change",F)):A.removeListener&&(A.removeListener(S),L.removeListener(w),O.removeListener(l),
X.removeListener(F))})});
return function(){return J()?1:T()?2:E()?3:t()?4:0}};
MNy=function(A){var L=0;A=_.d([A.title,A.metadata,A.actions,A.description,A.attribution]);for(var O=A.next();!O.done;O=A.next())O.value&&L++;return L};
$eD=function(A){return A===1||A===2?1:0};
k4e=function(A){var L,O=((L=_.X5().resolve(_.Ot(_.oy)))==null?0:L())&&A.data.darkThemeImage?A.data.darkThemeImage:A.data.image;L=_.D("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.D("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},O?_.D(_.XV,{data:O,alt:"",className:"ytwSearchFrictionViewModelHostImage"}):null),ahe(A.data.overflowMenuButton,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostMenuButton"}}));O=_.D(_.Xg,{text:A.data.title,className:"ytwSearchFrictionViewModelHostTitle"});
var X=A.data;if(X.bodyText){var x=[];X=_.d(X.bodyText);for(var J=X.next();!J.done;J=X.next())x.push(_.D(_.Xg,{text:J.value,className:"ytwSearchFrictionViewModelHostBodyText"}))}else x=_.D(_.Xs,null);return _.D("ytw-search-friction-view-model",{class:"ytwSearchFrictionViewModelHost"},L,O,x,ahe(A.data.actions,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostButton"}}),_.D(_.Xg,{text:A.data.disclaimer,className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.D(_.Xg,{text:A.data.attribution,
className:"ytwSearchFrictionViewModelHostAttribution"}))};
v7D=function(A){A=(new Ue_).parse(A);return(new Dx).render(A).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(L){var O=L.split(":").map(Number),X=0,x=0;if(O.length===3)O=_.d(O),X=O.next().value,x=O.next().value,O=O.next().value;else if(O.length===2)O=_.d(O),x=O.next().value,O=O.next().value;else if(O.length===1)O=_.d(O).next().value;else throw Error("Oh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(X*3600+x*60+O)+'" role="button">'+L+"</span>"})};
o7p=function(A){A=_.d(A.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var L=A.next(),O={};!L.done;O={clickHandler$jscomp$4:void 0},L=A.next()){L=L.value;O.clickHandler$jscomp$4=function(x){x=Number(x.target.getAttribute("data-time"));if(isNaN(x))throw Error("Ph");var J;(J=_.hI())==null||J.seekTo(x,!0)};
var X=function(x){return function(J){J.key!=="Enter"&&J.key!=="Space"||(0,x.clickHandler$jscomp$4)(J)}}(O);
L.setAttribute("tabindex","0");L.removeEventListener("click",O.clickHandler$jscomp$4);L.removeEventListener("keydown",X);L.addEventListener("click",O.clickHandler$jscomp$4);L.addEventListener("keydown",X)}};
AxD=function(){return _.D("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.D(fv,{percentWidth:100}),_.D(fv,{animationDelay:200}),_.D(fv,{animationDelay:400}),_.D(fv,{animationDelay:600}),_.D(fv,{animationDelay:800,percentWidth:60}),_.D("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.D(fv,{percentWidth:100}),_.D(fv,{animationDelay:200}),_.D(fv,{animationDelay:400}),_.D(fv,{animationDelay:600,percentWidth:50}))};
fv=function(A){return _.D("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(A.percentWidth===void 0?100:A.percentWidth)+"%"},_.D("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(A.animationDelay===void 0?0:A.animationDelay)+"ms"}))};
LHu=function(){var A=_.d(_.uQ(function(){return""},void 0,"v2wS5e")),L=A.next().value;
return[function(){return L()()},
A.next().value]};
O8P=function(A,L){A=A?Mcd(A):"";L!==void 0&&isFinite(L)?L===0?L=_.b3("UPDATING",void 0,"Updating..."):(L=Fk_(new Date(L),new Date),L=_.b3("UPDATED_TIME",{relative_time:L},"Updated "+L)):L="";var O="";A&&L&&(O=" \u2022 ");return _.Xl(A+O+L)};
sTO=function(A,L,O,X,x,J){L=L===void 0?0:L;var Y=Xsy[L],T=Y.title,V=Y.iconType,E=Y.topButtonRenderer,n=Y.sectionClientVE;Y=Y.videoClientVE;var t;if(L!==1||A.length){O=[];A=_.d(A);for(X=A.next();!X.done;X=A.next()){var b=X.value;if(V9s(b))O.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:b.videoEntity.videoId,title:xB(b.videoEntity.title),shortBylineText:xB(b.channelEntity.title),thumbnail:b.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:b.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.b3("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:Y}}}}}});else if(Tmu(b)){X=O;var S=X.push;var w=void 0,l=void 0,F=void 0,R=void 0,y=void 0,M=void 0,H=void 0,z=void 0,a=b.mainPlaylistEntity.playlistId,xe=b==null?void 0:(z=b.mainPlaylistEntity)==null?void 0:(H=z.thumbnailStyleData)==null?void 0:(M=H[0])==null?void 0:(y=M.value)==null?void 0:(R=y.collageThumbnail)==null?void 0:R.coverThumbnail;R=HCe(a);if(!_.h("enable_offline_playlist_page")&&
(b==null?0:(F=b.mainPlaylistEntity)==null?0:F.videos)){b:{F=b==null?void 0:(l=b.mainPlaylistEntity)==null?void 0:l.videos;l=_.Ai().getState().entities;if(F!=null&&F.length&&l)for(F=_.d(F),y=F.next();!y.done;y=F.next())if(y=_.dh(y.value).entityId,(y=JSON.parse(y).videoId)&&L0s(l,y)==="TRANSFER_STATE_COMPLETE"){l=y;break b}l=""}l!==void 0&&(R=WG(_.Ai().getState(),l),R=_.Oe(l,a,void 0,void 0,R))}l=Bqu(_.b3("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),HCe(a));b=a&&xe&&l?{playlistId:a,navigationEndpoint:R,
viewPlaylistText:l,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:xe}},title:xB(b.mainPlaylistEntity.title),shortBylineText:xB(b==null?void 0:(w=b.channelEntity)==null?void 0:w.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:xPe,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:a,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.b3("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:Y}}}:
void 0;S.call(X,{gridPlaylistRenderer:b})}}Y={gridRenderer:{items:O}};L===1&&(t=O8P(x,J))}else if(X){var ur=_.Xl((S=O==null?void 0:O.localizedPromptMessage)!=null?S:"");Y={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Xl(_.b3("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.Gee}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Xl(_.b3("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};t=O8P(x,J)}else ur=_.Xl(_.b3("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
Y={};return{contents:[{shelfRenderer:{title:T,titleAnnotation:t,icon:{iconType:V},subtitle:ur,content:Y,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:E}]}}}}],loggingDirectives:{clientVeSpec:{uiType:n}}}};
JxO=function(A,L,O,X,x,J,Y,T,V,E,n){O=O===void 0?{}:O;X=X===void 0?{}:X;x=x===void 0?!1:x;J=J===void 0?!1:J;Y=Y===void 0?!1:Y;T=T===void 0?!1:T;V=V===void 0?!1:V;E=E===void 0?0:E;n=n===void 0?-Infinity:n;if(!(L.length||A.length||x||T))return J?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:FIe(O)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.Xl(_.b3("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 t=[];A.length&&t.push(sTO(A,0));T?t.push({contents:[{statementBannerRenderer:Iq_(V,X)}]}):x?t.push(sTO(L,1,O,Y,E,n)):J&&t.push({contents:[{statementBannerRenderer:Qze(O)}]});(x&&L.length||A.length)&&t.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.Xl(_.b3("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 t.map(function(b){return{itemSectionRenderer:b}})};
IG=function(A,L){if(typeof A!=="object")return null;A=_.d(Object.entries(A));for(var O=A.next();!O.done;O=A.next()){var X=_.d(O.value);O=X.next().value;X=X.next().value;if(O===L)return O;if(X=IG(X,L))return O+"."+X}return null};
yZ=function(A){var L=A.content;return(A=A.styleRuns)&&L?{runs:A.map(function(O){var X={text:L.slice(O.startIndex,O.startIndex+O.length)};O.fontColor&&(X.textColor=O.fontColor);return X})}:{simpleText:L}};
Y9M=function(A,L,O,X){var x=Pwr;X&&(A.quantity=X);if(!A.quantity||!A.maxQuantity)return{};X=A.minusButton;var J=A.plusButton,Y,T,V,E;return{value:A.quantity,maxValue:A.maxQuantity,onChangeCallback:function(n){x(A,n)},
minusLabel:(Y=_.q(X,dPr))==null?void 0:Y.label,minimumReachedLabel:(T=_.q(X,dPr))==null?void 0:T.limitReachedLabel,plusLabel:(V=_.q(J,dPr))==null?void 0:V.label,maximumReachedLabel:(E=_.q(J,dPr))==null?void 0:E.limitReachedLabel,disabled:L,onRemoveCommand:O}};
Pwr=function(A,L){var O=A.quantityIncrementerEntityKey;if(O){var X={};X.quantity=L;_.At(_.ZE("quantityIncrementerEntity",O,X));A.onChangeCommand&&_.$a(A.onChangeCommand)}};
Vny=function(A,L){(A=uaD(A))&&(L?Tie.push({command:A,sourceData:{},commandContext:void 0}):_.X5().resolve(_.x$).resolveCommand(A))};
uaD=function(A){return _.q(A,_.WR)};
DPe=function(){var A=window.performance.timeOrigin+window.performance.now(),L=(new _.jE).setSeconds(A/1E9);return _.$X(L,2,_.vn(A%1E9),0)};
EsJ=function(A,L){var O;A=(O=_.q(_.q(A,_.WR),eRJ))==null?void 0:O.methodName;var X,x;(O=window.youtubewebview||((X=window.webkit)==null?void 0:(x=X.messageHandlers)==null?void 0:x.youtubewebview))&&A&&(X=new WC,A=_.gz(X,1,A),A=_.NQ(A.JSC$13356_serializeBinary()),L=_.NQ(L),O.postMessage(A+","+L))};
HC=function(A,L){var O=_.q(_.q(A,_.WR),eRJ);O&&(L&&(O.serializedAdditionalMetadata=_.NQ(L)),Vny(A,!0))};
nsO=function(A){switch(A){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"}};
tnu=function(){return!!_.ms("ID_TOKEN")};
S9O=function(A){return A instanceof Error&&A.cause instanceof b8O&&A.cause.rpcErrorCode!==void 0?!hR_.includes(A.cause.rpcErrorCode):!0};
gsM=function(){return _.kL(q9e,{authuser:""+(_.ms("SESSION_INDEX")||0)})};
zR=function(A,L,O,X){O=O===void 0?"MINI_APP_SDK_API_UNSPECIFIED":O;X=X===void 0?"":X;var x=new _.pe;O={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:X,sdkApi:O};A instanceof Error&&(x.message=A.message,x.name=A.name,A.cause instanceof b8O&&A.cause.rpcErrorCode!==void 0&&(O.rpcErrorCode=A.cause.rpcErrorCode));var J;(J=L.onError)==null||J.call(L,{loggingError:x,metadata:O})};
psu=function(A,L,O,X){switch(A){case "MINI_APP_SOURCE_GAMESNACKS":return new BC(L,O,X);default:return new wss(L,O,X)}};
i8D=function(A){switch(A){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"}};
NiM=function(A){switch(A){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"}};
rxe=function(A){switch(A){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"}};
KHM=function(){return Math.floor(Math.random()*4)+1};
Gbs=function(A,L,O,X){A=_.d(Object.entries(A));for(var x=A.next(),J={};!x.done;J={message$jscomp$995:void 0},x=A.next()){var Y=_.d(x.value);x=Y.next().value;Y=Y.next().value;J.message$jscomp$995=Y;L.push(setTimeout(function(T){return function(){X(!1);O(T.message$jscomp$995.text)}}(J),J.message$jscomp$995.delayMs));
Number(x)>0&&L.push(setTimeout(function(){X(!0)},J.message$jscomp$995.delayMs-400))}};
lwJ=function(A,L){var O=O===void 0?$3r:O;_.h("mweb_fix_monitor_visibility_after_render")?A&&Qz(function(){U39(A,L,O)}):Qz(function(){U39(A,L,O)})};
FHu=function(A){var L=A.data;var O=A.uniqueId;A=A.overrides;var X,x=((X=L.timedAnimationData)==null?void 0:X.animationTiming)||[];return _.D("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.D(cxP,{settings:{uniqueId:O,timings:x,experimentEnabled:x.length>0,enabled:x.length>0}},CwD(L.buttonRenderer,{buttonRenderer:{buttonOverrides:A}})))};
fw_=function(A){RRu||(RRu=QTp(new _.z1(1,void 0,void 0,mPe),0));var L=RRu.format(Math.floor(A));L=_.HG==="be"||_.HG==="bg"||_.HG==="es"||_.HG==="et"||_.HG==="hu"||_.HG==="ka"||_.HG==="lv"||_.HG==="pl"||_.HG==="pt-PT"||_.HG==="sq"?L.replace(new RegExp("^(\\d)"+mPe.GROUP_SEP.replace(".","\\.")+"(\\d+("+mPe.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):L;return A>=1E3&&A<=9999&&L[1]==="."&&(_.HG==="sl"||_.HG==="it")?L.replace(".",""):L};
Iwr=function(A,L){fT("ytd-button-renderer",{data:A,className:L?L.className:"",overrides:L==null?void 0:L.buttonOverrides},MD)};
jTM=function(A,L,O,X){if(A)return X=X||A.likeStatus,L?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:X==="LIKE",isDisabled:!A.likesAllowed,defaultIcon:{iconType:O},defaultText:X==="LIKE"?A.likeCountWithUnlikeText:A.likeCountText,toggledText:X==="LIKE"?A.likeCountText:A.likeCountWithLikeText,defaultNavigationEndpoint:yxp(A,"LIKE"),defaultServiceEndpoint:Z8e(A,"LIKE"),toggledServiceEndpoint:Z8e(A,"INDIFFERENT"),defaultTooltip:_.vG(A.likeCountTooltipText),toggledTooltip:_.vG(A.likeCountTooltipText),
targetId:A.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:X==="DISLIKE",isDisabled:!A.likesAllowed,defaultIcon:{iconType:O},defaultText:X==="DISLIKE"?A.dislikeCountWithUndislikeText:A.dislikeCountText,toggledText:X==="DISLIKE"?A.dislikeCountText:A.dislikeCountWithDislikeText,defaultNavigationEndpoint:yxp(A,"DISLIKE"),defaultServiceEndpoint:Z8e(A,"DISLIKE"),toggledServiceEndpoint:Z8e(A,"INDIFFERENT"),defaultTooltip:_.vG(A.dislikeCountTooltipText),
toggledTooltip:_.vG(A.dislikeCountTooltipText)}};
yxp=function(A,L){if(L==="LIKE")return A.likeCommand;if(L==="DISLIKE")return A.dislikeNavigationEndpoint};
Z8e=function(A,L){var O;return(O=A.serviceEndpoints)==null?void 0:O.find(function(X){var x;return((x=_.q(X,_.Mw))==null?void 0:x.status)===L})};
_.zRe=function(A,L,O){return window.spf&&!_.h("web_disable_spfjs_client")?WHM(A,L,O):H8u(A,L)};
WHM=function(A,L,O){var X=null,x=(new _.eJ(function(J,Y){var T={};if(L){T.method=L.method;var V=L.postParams||{};HM9(A,L)&&(V[_.ms("XSRF_FIELD_NAME")]=_.ms("XSRF_TOKEN"));T.postData=_.ne(V);L.type&&(T.type=L.type);V=L.headers}T.headers=fQp(A,V);_.h("debug_forward_web_query_parameters")&&(A=_.jkp(A,window.location.search));T.experimental_headers=T.headers;T.onError=function(E){E.err&&E.xhr&&(E.err.params={url:E.xhr.responseURL,response:E.xhr.responseText.substr(0,64)});Y(E.err)};
T.onPartDone=function(E){O&&O.call(null,E.part)};
T.onDone=function(E){var n=Biu(E.response,"xsrf_token");oO(window.location.href,A)&&n&&_.QT("XSRF_TOKEN",n);if(n=Biu(E.response,"service_worker_killswitch"))_.QT("SERVICE_WORKER_KILLSWITCH",n),pkp();J(E.response)};
X=spf.request(A,T)})).then(Mnp);
x.thenCatch(function(J){var Y=J instanceof _.$f,T=J&&J.hasOwnProperty("params")&&J.params.response?J.params.response:"";J instanceof Error&&(T?Y?N0M(J):T===')]}\'\n{"reload":"now"}'?N0M(J):($Pu(J,A,T),awM(J,T)?_.Rv(J):_.C7(J)):N0M(J));X&&X.abort()});
return x};
Mnp=function(A){if(A.type==="multipart"){var L=A.timing;A=A.parts.reduce(function(O,X){Object.assign(O,X);return O},{});
A.timing=A.timing||{};Object.assign(A.timing,L);A.type="reduced"}return A};
H8u=function(A,L){L=L===void 0?{}:L;var O=null,X=new _.eJ(function(x,J){L.onFinish=function(Y){if(Y.readyState===XMLHttpRequest.DONE)if(Y.status===200){if(Y.responseType!=="json"){var T=Y.response;T.substring(0,5)===")]}'\n"&&(T=T.substring(5));try{var V=JSON.parse(T)}catch(E){V=E}}else V=Y.response;V instanceof Error?J(V):(T=Biu(V,"xsrf_token"),oO(window.location.href,A)&&T&&_.QT("XSRF_TOKEN",T),Y=Y.responseURL,window.performance&&window.performance.getEntriesByName?(T=window.performance.getEntriesByName(Y).pop())?
Y={responseStart:(0,_.O$)()-(T.responseEnd-T.responseStart)}:(Math.random()<.01&&(T=Error("ai"),T.params=Y,_.Rv(T)),Y={responseStart:-1}):Y={responseStart:0},V.timing=V.timing||{},Object.assign(V.timing,Y),x(V))}else J(Error("$h`"+Y.status))};
(O=_.Et(A,L))||J(Error("$h`"+O.status))});
X.thenCatch(function(x){x instanceof Error&&($Pu(x,A),awM(x)&&(x.level="WARNING"))});
_.h("cancel_pending_navs")&&X.thenCatch(function(){O.abort()});
return X};
Biu=function(A,L){var O=A[L],X=A.parts;A.type==="multipart"&&X&&(O=(A=X.find(function(x){return L in x}))&&A[L]);
return O};
$Pu=function(A,L,O){var X=A.message||"";L={original:X,url:L};if(O)if(X=X.match(/position:?\s*(\d+)/)){X=X&&Number(X[1])?Number(X[1]):0;var x=Math.max(X-25,0);L.position=X;L.response=O.substring(x,X+25)}else L.response=O.substring(0,50);_.Q$(A,L);try{A.message="JSON parse error"}catch(J){}};
awM=function(A,L){A=A.message||"";A=!!(A.indexOf("<")>=0||A.indexOf("end of ")>=0||A.indexOf("Unterminated string")>=0||A.indexOf("Unexpected EOF"));if(!A&&L)for(var O=L.length,X=!1,x=0;x<O;x++)if(X&&L[x]==="\\")x++;else if(L[x]==='"')X=!X;else if(L[x]==="<"&&!X){A=!0;break}return A};
kb9=function(){return document.documentElement.hasAttribute("dark")};
_.UPJ=function(A,L){if(A!=="GFEEDBACK"&&A!=="GUIDED_HELP")_.IO(Error("bi`"+A));else{var O=_.X5().resolve(_.Ot(_.JI));if(O&&(O=O.getCurrentPage())&&O.getServiceTrackingParams&&(O=O.getServiceTrackingParams()))for(var X=0,x;x=O[X++];)if(x.service===A){if(A=x.params)for(O=0;X=A[O++];)L[X.key]=X.value;break}}};
_.vs_=function(A){var L=_.d0();L&&(L=L.getPlayer())&&(L.pauseVideo(),A.playback_id=L.getVideoData().cpn,A.eid=L.getVideoData().eventId,Object.assign(A,L.getFeedbackProductData()))};
oss=function(){var A={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.ms("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(A.enableAnonymousFeedback=!0);_.ms("SESSION_INDEX")&&(A.authuser=String(_.ms("SESSION_INDEX")));_.h("enable_pageid_for_feedback")&&_.ms("DELEGATED_SESSION_ID")&&(A.pageId=String(_.ms("DELEGATED_SESSION_ID")));return A};
_.aG=function(A){_.h("enable_ypc_spinners")&&_.dQ(A,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},A])};
_.kf=function(A){_.h("enable_ypc_spinners")&&_.dQ(A,"yt-close-popup-action",["yt-loading-renderer"])};
AKu=function(A){return new Promise(function(L,O){_.zi({verifyCommand:{recaptchaToken:A.recaptchaResponse}},{commandController:{onSuccess:function(X,x){x||O("ChallengeService did not return a response.");var J;L({challengeCompleted:(J=x.verified)!=null?J:!1})},
onServerError:function(X,x){O(x)}}})})};
Lar=function(A,L,O,X){L({recaptchaResponse:X}).then(function(x){x.challengeCompleted?_.qO()?(O(3),_.X5().resolve(_.x$).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:A}})):O(2):O(4)},function(){O(4)})};
XHu=function(A,L,O){_.Zx(_.JD(O1s,_.ms("HL")),function(){var X;(X=window.grecaptcha)==null||X.ready(function(){var x=window.grecaptcha;x?(O(x.render(A,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:Lar.bind(null,A,AKu,L)})),L(1)):L(4)})})};
xme=function(A,L){return function(){switch(L()){case 0:return A().captchaLoadingMessage;case 1:return A().challengeReason;case 3:return A().captchaSuccessfulMessage;case 2:return A().captchaCookieSetFailureMessage;case 4:return A().captchaFailedMessage;default:return A().challengeReason}}()};
_.Uf=function(){if(!sVJ){var A=document.querySelector("#player.skeleton");A&&(_.hg(A),sVJ=!0)}};
_.PzM=function(){return JK_=pL_()};
u9D=function(){return _.u(function(A){return dmp!==void 0?A.return():A.yield(Yyy(),0)})};
Yyy=function(){return _.u(function(A){if(A.nextAddress==1)return A.yield(NDM(),2);JK_=A.yieldResult;dmp=_.c1.addLowPriorityJob(Yyy,5E3);_.qo(A)})};
nAr=function(A){var L=L===void 0?Tby:L;var O,X,x=(O=A.responseContext)==null?void 0:(X=O.mainAppWebResponseContext)==null?void 0:X.trackingParam;if(!x){L.increment("MISSING");var J,Y,T,V,E,n;_.Rv(new _.pe("282054944_a",{bX3:!!((J=A.responseContext)==null?0:(Y=J.mainAppWebResponseContext)==null?0:Y.loggedOut),zqI:((T=A.responseContext)==null?void 0:T.mainAppWebResponseContext)===void 0,veq:A.responseContext===void 0,cp:(V=A.playabilityStatus)==null?void 0:V.contextParams,qbs:(((E=A.streamingData)==
null?void 0:E.formats)||[]).length>0,ujJ:(((n=A.streamingData)==null?void 0:n.adaptiveFormats)||[]).length>0,os:!!A.offlineState,cotn:A.cotn}));return 2}O="";try{O=VzM(x)}catch(S){return L.increment("C_ERROR"),_.C7(S),2}try{var t=_.Dmd(O);var b=eaD(t)}catch(S){return L.increment("P_ERROR"),_.C7(S),2}b=_.OT(b,EAd,1,_.Xq());x=[];b=_.d(b);for(t=b.next();!t.done;t=b.next())X=t.value,t=X.getPath(),O=(0,_.lW.getValueByKeys)(A,t.split(".")),O=String(O===void 0||O===null?"":O),X=X.getValue()||"",J=/[+\-\/_]/g,
O.replace(J,"")!==X.replace(J,"")&&(L.increment("MISMATCH"),_.h("ab_mis_log_err")&&(O=new _.pe("282054944_p",{mDT:t,g:String(O),e:String(X)}),_.C7(O)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(t)||(t.match(/enforcementMessageViewModel/i)?x.push(3):x.push(2)));if(x.length>0)return Math.max.apply(Math,_.le(x));L.increment("SUCCESS");return 1};
hau=function(A){var L=new vC;if(A.interpreterJavascript){var O=_.hBM(A.interpreterJavascript);O=JnM(O).toString();var X=new tz9;_.gz(X,6,O);_.eg(L,1,X,lH)}else A.interpreterUrl&&(O=_.CH(A.interpreterUrl),O=_.ww(O).toString(),X=new _.b1O,_.gz(X,4,O),_.eg(L,2,X,lH));A.interpreterHash&&_.oG(L,3,A.interpreterHash,lH);A.program&&_.oG(L,4,A.program,lH);A.globalName&&_.oG(L,5,A.globalName,lH);A.clientExperimentsStateBlob&&_.oG(L,7,A.clientExperimentsStateBlob,lH);return L};
AR=function(A){var L={};A=_.d(A.split("&"));for(var O=A.next();!O.done;O=A.next())O=O.value.split("="),O.length===2&&(L[O[0]]=O[1]);return L};
Syu=function(A){return Number(A.t)||7200};
KsO=function(){if(_.h("bg_st_hr"))return"havuokmhhs-0";var A,L=((A=performance)==null?void 0:A.timeOrigin)||0;return"havuokmhhs-"+Math.floor(L)};
qy_=function(){return new Promise(function(A){var L=window;L.ntpevasrs!==void 0?A(new Lq(L.ntpevasrs)):(L.ntpqfbel===void 0&&(L.ntpqfbel=[]),L.ntpqfbel.push(function(O){A(new Lq(O))}))})};
gAy=function(A){var L=A.pDY.bind(A);_.oZ("yt.aba.att",L);A=A.tpi.bind(A);_.oZ("yt.aba.att2",A)};
pHu=function(A){switch(_.eh(A.input)){case _.L3(wHd):var L={};return L.encryptedVideoId=A.innerTubeRequest.externalVideoId,L}return{}};
rKu=function(A){switch(_.eh(A.input)){case _.L3(wHd):if(_.h("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.L3(i1s):if(_.h("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.L3(Or):if(_.h("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&A.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.L3(NbO):var L,O;if(_.h("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((O=_.q((L=A.config)==null?void 0:L.command,HoM))==null?0:O.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.G5p=function(A){var L;if(A.playlistVideoRenderer&&((L=A.playlistVideoRenderer)==null?0:L.engagementBar))return Kae(A.playlistVideoRenderer.engagementBar);if(_.q(A,X2)){var O;if(A=(O=_.q(A,X2))==null?void 0:O.engagementBar)return Kae(A)}return""};
Kae=function(A){if(!A)return"";A=_.q(A,_.laM);if(A==null||!A.actions)return"";A=_.d(A.actions);for(A=A.next();!A.done;A=A.next()){A=_.q(A.value,_.cKP);var L=void 0;if((L=A)==null||!L.itemId)break;return A.itemId}return""};
_.CzJ=function(A){var L;if(A.playlistVideoRenderer&&((L=A.playlistVideoRenderer)==null?0:L.videoId))return A.playlistVideoRenderer.videoId;if(_.q(A,X2)){var O,X;if(A=(O=_.q(A,X2))==null?void 0:(X=O.playlistItemData)==null?void 0:X.videoId)return A}return""};
_.FaP=function(A){var L;if(A.playlistVideoRenderer&&((L=A.playlistVideoRenderer)==null?0:L.voteCount))return A.playlistVideoRenderer.voteCount;if(_.q(A,X2)){var O,X;if(A=(O=_.q(A,X2))==null?void 0:(X=O.playlistItemData)==null?void 0:X.voteCount)return A}return 0};
_.xD=function(A,L){return _.eM(A.entities,"flowStateEntity",L)};
QVp=function(A,L,O,X){var x=void 0;A=_.d(A[L.iconName]||[]);for(var J=A.next();!J.done;J=A.next()){J=J.value;var Y=L.iconSize;var T=L.iconStyle;Y=!Y||Y===J[2];var V=RaM[J[0]];X&&X!==J[1]||!Y||T&&T!==V?T=!1:x?(T=RaM[J[0]],T=!!L.iconStyle||T==="youtube_outline",Y=x.version<=J[1],T=(!!L.iconSize||J[2]===24)&&T&&Y):T=!0;T&&(x={name:L.iconName,style:RaM[J[0]],size:J[2],version:J[1],allowMirroring:!!J[3],url:O(L.iconName,J)})}return x};
mmD=function(A,L,O,X){return A+(""+RaM[O[0]]+((X===void 0?0:X)?"_experimental":"")+"/"+L+"/v"+O[1]+"/")+(O[2]+"px.svg")};
fas=function(A){return _.ms("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"?"bookmark":A};
Iae=function(A,L){return mmD("https://fonts.gstatic.com/s/i/",A,L)};
yKd=function(A,L){return mmD("https://fonts.gstatic.com/s/i/",A,L,!0)};
Z1_=function(A,L){return mmD("https://www.gstatic.com/youtube/img/icons/web/",A,L)};
Wau=function(A){var L=A.enabled;var O=A.itemPlaybackModel;var X=A.thumbnailElRef;var x=A.containerElRef;var J=A.options;var Y;_.ND(function(){var T=x==null?void 0:x.value;var V,E=(V=X())==null?void 0:V.value;V=O();var n=J();if(L&&V&&T&&E&&(n==null?0:n.thumbnail)){var t={data:V,hostElement:T},b,S,w=_.h("web_explore_hub_on_hover")||_.h("web_client_explore_hub_on_hover")?[].concat(_.le((b=n.thumbnailOverlays)!=null?b:[]),_.le((S=V.overlays)!=null?S:[])):n.thumbnailOverlays||[],l,F;T={mediaRenderer:t,
lockupElement:T,thumbnailElement:E,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.HR((l=V.inlinePlayerData)==null?void 0:l.onVisible),navigationEndpoint:_.HR((F=V.inlinePlayerData)==null?void 0:F.onSelect),thumbnail:n.thumbnail,thumbnailOverlays:w,accessibilityText:n.accessibilityText||""},thumbnailSize:n.thumbnailSize,enableRounding:n.enableRounding}}}else T=void 0;if(l=T){var R;(R=Y)==null||sr(R);Y=$u(l);var y,M;((y=O())==null?0:(M=y.inlinePlayerData)==null?0:M.forceImpAutoplay)&&
jVe(Y)}},"B33dEc");
_.rF(function(){var T;(T=Y)==null||sr(T)})};
H1d=function(A){A=atob(A);for(var L=[],O=0;O<A.length;O++)L.push(A.charCodeAt(O));return new Blob([new Uint8Array(L)],{type:"image/png"})};
Bbp=function(A,L,O,X){X=X===void 0?"INSERTION_POSITION_UNSPECIFIED":X;return A({targetId:L},function(x){var J,Y=(J=x.contents)!=null?J:[];J=O!=null?O:[];var T=zas(Y);switch(X){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},x,{contents:[].concat(_.le(Y.slice(0,T)),_.le(J),_.le(Y.slice(T+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},x,{contents:[].concat(_.le(J),_.le(Y))});case "INSERTION_POSITION_LAST":return Object.assign({},x,{contents:[].concat(_.le(Y),_.le(J))});
default:return x}})};
$me=function(A,L,O,X,x){x=x===void 0?"RELATIVE_INSERTION_POSITION_AFTER":x;return A({targetId:L},function(J){var Y,T=(Y=J.contents)!=null?Y:[];Y=Mzs(T,O);if(Y<0)return J;Y=x==="RELATIVE_INSERTION_POSITION_BEFORE"?Y:Y+1;return Object.assign({},J,{contents:[].concat(_.le(T.slice(0,Y)),_.le(X),_.le(T.slice(Y)))})})};
zas=function(A){var L=A.findIndex(function(O){return _.q(O,_.JR)});
return L>=0?L:A.length};
Mzs=function(A,L){return A.findIndex(function(O){a:{O=_.d(Object.values(O));for(var X=O.next();!X.done;X=O.next())if((X=X.value)&&X.targetId){O=X.targetId;break a}O=""}return O===L})};
k5J=function(A,L,O){return A({targetId:L},function(X){var x,J=(x=X.contents)!=null?x:[];return Object.assign({},X,{contents:aar(J,O)})})};
aar=function(A,L){return A.filter(function(O){var X=L.includes;a:{O=_.d(Object.values(O));for(var x=O.next();!x.done;x=O.next())if((x=x.value)&&x.targetId){O=x.targetId;break a}O=""}return!X.call(L,O||"")})};
_.Umr=function(A,L){return{engagementPanelSectionListRenderer:{panelIdentifier:A,identifier:L,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
_.oA9=function(A){var L,O=(L=A.getOption("captions","tracklist",{includeAsr:!0}))!=null?L:[];return O=vA_(O,A)};
ALd=function(A){return A.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
vA_=function(A,L){L=ALd(L);if(L==null||!L.length)return A;var O=L.filter(function(Y){return Y});
L=A.filter(function(Y){return Y.languageCode.startsWith("en")});
O=_.d(O);for(var X=O.next();!X.done;X=O.next())if(X=X.value,L.length){var x=L[0],J=Object.assign({},x);x.languageCode!==X.languageCode&&(J.displayName=x.languageName+" >> "+X.languageName,J.translationLanguage=X,A.push(J))}return A};
LoM=function(A,L,O){A=_.oA9(A);if(A.length)return O?A.find(function(X){if(typeof(X==null?void 0:X.translationLanguage)==="object"){var x;return((x=X.translationLanguage)==null?void 0:x.languageCode)===L}return!1}):A==null?void 0:A.find(function(X){return X.languageCode===L})};
Oty=function(A){return A.getOption("captions","tracklist",{includeAsr:!0})};
XVe=function(A){return A.getOption("captions","tracklist",{includeAsr:!0})};
xiP=function(A){var L=XVe(A);if(L==null?0:L.length)return L;A.loadModule("captions");return XVe(A)};
sqD=function(A){var L=A.getOption("captions","track");if(L)return L;A.loadModule("captions");return A.getOption("captions","track")};
PFp=function(A){var L=xiP(A);if(L!=null&&L.length){var O=sqD(A),X;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.b3("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(O==null?0:O.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.le(L.map(function(x){return{listItemViewModel:{title:{content:x.displayName},
isSelected:x.displayName===(O==null?void 0:O.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:x.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.b3("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!O.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!O.translationLanguage&&{selectionText:{content:(O==null?void 0:(X=O.translationLanguage)==null?void 0:X.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[JLu(A)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
JLu=function(A){var L=ALd(A);if(L==null||!L.length)throw Error("Ai");var O=sqD(A);A=L.filter(function(X){return!X.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.le(A.map(function(X){var x;return{listItemViewModel:{title:{content:X.languageName},isSelected:X.languageName===(O==null?void 0:(x=O.translationLanguage)==null?void 0:x.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:X.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
TOu=function(A){return new Promise(function(L,O){if(A===void 0)_.C7(Error("Ei"),"ERROR"),O(Error("Ei"));else{O=new _.diD;var X=_.Ymd();O=O.init();var x=_.uwP(_.ms("YPC_MB_URL"),!0);Promise.all([O,x]).then(function(){var J=payments.business.integration.ClientTokenFactory.createClientToken(A,X);L(J)})}})};
e_u=function(A,L,O,X,x,J,Y){var T=_.AI();O=O.replace(/-/g,"+").replace(/_/g,"/");var V=_.qG().get("hl"),E=_.Pw(_.vy),n=L==null?void 0:L.element;n&&_.aG(n);VHr(L,!0);_.Dir(E,O,T.resolve,function(){n&&_.kf(n)},function(t){n&&_.kf(n);
T.reject(t)},V,X?function(t){X&&_.oQ(A,X,{backend_analytics:t})}:void 0,T.resolve,x,J,Y);
return T.promise};
VHr=function(A,L){!(A=A==null?void 0:A.element)||A.tagName!=="YT-BUTTON-RENDERER"&&A.tagName!=="YTD-BUTTON-RENDERER"||(A.disabled=L)};
EhP=function(){var A=_.b3("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.Xl(A),actionButton:{buttonRenderer:lq9()}}},popupType:"TOAST"}};
nhD=function(){var A=_.b3("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.Xl(A),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
tHp=function(A){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:A}]}}};
YD=function(A,L,O,X){var x;return _.u(function(J){if(J.nextAddress==1)return _.e4(J,2),J.yield(A,4);if(J.nextAddress!=2)return(x=_.iN(L.getState().entities).length>0)?J.return({title:_.Xl(_.b3("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.Xl(_.b3("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:G8p()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
J.return(cXd(O,X));_.S4(J);return J.return(cXd(O,X))})};
btM=function(A,L){return L?L==="PPSV"||xBp(A,L):!1};
h_r=function(A){A.responseContext||(A.responseContext={});A.responseContext.maxAgeSeconds=0;return A};
T_=function(A){var L;return _.u(function(O){return O.nextAddress==1?O.yield(SmP(A,"service:topbar:fallback"),2):(L=O.yieldResult)&&_.uE(L)?O.return(h_r(_.uE(L))):O.return()})};
qm_=function(A){var L;return _.u(function(O){return O.nextAddress==1?O.yield(SmP(A,"service:downloads_settings:fallback"),2):(L=O.yieldResult)&&_.uE(L)?O.return(L):O.return()})};
SmP=function(A,L){var O;return _.u(function(X){if(X.nextAddress==1)return A?X.yield(A.get(L),2):X.return();O=X.yieldResult;return!O||!_.uE(O)||!isNaN(Number(O.data.expireTimestampMs))&&O.isExpired()?X.return():X.return(O)})};
ghJ=function(A){var L=_.X5().resolve(V7).getState().entities;return A.playlistId?btM(L,A.playlistId):!1};
wVJ=function(A,L){var O;if(L==null?0:(O=L.requestTemplate)==null?0:O.panelId)A.panelId=L.requestTemplate.panelId;var X;if(L==null?0:(X=L.requestTemplate)==null?0:X.params)A.params=L.requestTemplate.params};
itr=function(){if(pVP)return pVP();var A=!_.h("idb_response_store_auth_killswitch"),L={};pVP=LH("yt-it-response-store",{objectStores:(L.ResponseStore={addedAtVersion:1},L),shared:!A,upgrade:function(O,X){X(1)&&(O=IN(O,"ResponseStore",{keyPath:["key","clientName"]}),yb(O,"byExpiration","expireTimestampMs"),yb(O,"byInterface","clientName"))},
version:1});return pVP()};
NOe=function(A){return _.MO(itr(),A)};
KoD=function(A,L){var O;return _.u(function(X){return X.nextAddress==1?X.yield(_.A4(),2):(O=X.yieldResult)?X.return(new rLu(A,L,O)):X.return()})};
GdJ=function(A){var L=Object.keys(A)[0];if(L)return A.screenExit&&(L=L+";"+A.screenExit.screen),L};
lfe=function(A){var L=new Map;A=_.d(A);for(var O=A.next();!O.done;O=A.next())O=O.value,O!=null&&(L.has(O.taskType)||L.set(O.taskType,[]),L.get(O.taskType).push(O));return L};
cLy=function(A){return!isNaN(A)&&A>0};
CFJ=function(A){A=[].concat(_.le(A)).sort(function(O,X){return O-X});
var L=Math.floor(A.length/2);return A.length%2?A[L]:(A[L-1]+A[L])/2};
QqP=function(A,L){A=A===void 0?T0D:A;L=L===void 0?{}:L;_.oZ("yt.logging.errors.log",_.C7);YkM();For(nue(),L);window.onerror=A;R_P=ui_;window.addEventListener("unhandledrejection",function(O){if(O.reason instanceof Error){var X=O.reason;_.Q$(X,{source:"unhandledrejection"});X.name==="AbortError"&&(X.level="WARNING")}ui_(O.reason);O.preventDefault()})};
_.mie=function(A){return A.a11y.ephemeralAction||null};
_.ffD=function(A){var L,O,X,x,J,Y,T,V,E,n,t,b,S,w,l,F,R,y,M,H,z,a,xe,ur,eD,gu,ir,SD,HJ,mM,Vu,cn,Tj,Uu,Eg,DN,NN,bJ,MN,Js;return _.u(function(XL){if(XL.nextAddress==1)return XL.yield(_.SM(A,{mode:"readonly",enableRetries:!0},function(gJ){return qa(gJ,"playbackData").then(function(hk){var hc=hk.map(function(YV){return YV.transfer}).filter(function(YV){return!!YV}),Wn=hk.map(function(YV){return YV.offlineVideoPolicy}).filter(function(YV){return!!YV}),X0=hk.filter(function(YV){return!!YV.key}).map(function(YV){return _.Dn(_.dh(YV.key).entityId,
"downloadStatusEntity")});
hc=qa(gJ,"transfer",hc);Wn=qa(gJ,"offlineVideoPolicy",Wn);X0=qa(gJ,"downloadStatusEntity",X0);var o6=hc.then(function(YV){YV=YV.reduce(function(LJ,eZ){(eZ==null?0:eZ.offlineVideoStreams)&&LJ.push.apply(LJ,_.le(eZ.offlineVideoStreams));return LJ},[]).filter(function(LJ){return!!LJ});
return qa(gJ,"offlineVideoStreams",YV)});
return yr.all([hc,Wn,o6,X0]).then(function(YV){var LJ=_.d(YV);YV=LJ.next().value;var eZ=LJ.next().value;var p6=LJ.next().value;LJ=LJ.next().value;return[hk,YV,eZ,p6,LJ]})})}),2);
if(XL.nextAddress!=3)return L=XL.yieldResult,XL.yield(_.SM(A,{mode:"readonly",enableRetries:!0},function(gJ){return qa(gJ,"mainDownloadsListEntity").then(function(hk){var hc,Wn;return(Wn=(hc=hk[0])==null?void 0:hc.downloads)!=null?Wn:[]})}),3);
O=XL.yieldResult;X=_.d(L);x=X.next().value;J=X.next().value;Y=X.next().value;T=X.next().value;V=X.next().value;E=x;n=J;t=Y;b=T;S=V;w={};l={};F={};R={};y={};M=[];H=_.d(n);for(z=H.next();!z.done;z=H.next())(a=z.value)&&(w[a.key]=a);xe=_.d(t);for(ur=xe.next();!ur.done;ur=xe.next())(eD=ur.value)&&(l[eD.key]=eD);gu=_.d(S);for(ir=gu.next();!ir.done;ir=gu.next())(SD=ir.value)&&(F[SD.key]=SD);HJ=_.d(b);for(mM=HJ.next();!mM.done;mM=HJ.next())(Vu=mM.value)&&(R[Vu.key]=Vu);cn=_.d(O);for(Tj=cn.next();!Tj.done;Tj=
cn.next())Uu=Tj.value,Eg=void 0,y[(Eg=Uu.videoItem)!=null?Eg:""]=!0,Uu.videoItem&&(NN=DN=void 0,bJ=(NN=(DN=_.dh(Uu.videoItem))==null?void 0:DN.entityId)!=null?NN:"",M.push({externalVideoId:bJ}));MN=E.filter(function(gJ){if(!gJ||!gJ.key||!gJ.offlineVideoPolicy)return!1;gJ=_.dh(gJ.key).entityId;gJ=_.Dn(gJ,"downloadStatusEntity");var hk;return!(gJ&&((hk=F[gJ])==null?void 0:hk.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
Js=MN.map(function(gJ){var hk=w[gJ.transfer],hc=[];if(hk==null?0:hk.offlineVideoStreams)for(var Wn=_.d(hk.offlineVideoStreams),X0=Wn.next();!X0.done;X0=Wn.next())(X0=R[X0.value])&&hc.push(X0);Wn=l[gJ.offlineVideoPolicy];X0=y;var o6=gJ==null?void 0:gJ.playerResponseTimestamp,YV=_.dh(Wn.key).entityId;gJ=_.Dn(YV,"mainVideoEntity");if(Wn.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var LJ="OFFLINE_VIDEO_STATE_DISABLED";Wn.expirationTimestamp&&Number(Wn.expirationTimestamp)<Date.now()/1E3&&(LJ="OFFLINE_VIDEO_STATE_EXPIRED")}else if(Wn.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")LJ="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(hk==null?void 0:hk.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":LJ="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":LJ="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":LJ="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":LJ="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":LJ="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":LJ="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:LJ="OFFLINE_VIDEO_STATE_UNKNOWN"}if(LJ==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(hk==null?void 0:hk.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":LJ="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":LJ="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":LJ=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}YV={id:YV,videoState:LJ};if(hk==null?0:hk.cotn)YV.cotn=hk.cotn;if(hk==null?0:hk.maximumDownloadQuality)YV.selectedVideoQuality=hk==null?void 0:hk.maximumDownloadQuality;if(hk==null?0:hk.lastProgressTimeMs)YV.lastProgressTimeMs=hk.lastProgressTimeMs;o6&&(YV.playerResponseSavedTimeMs=String(Number(o6)*1E3));hk=String;o6=0;hc=_.d(hc);for(LJ=hc.next();!LJ.done;LJ=hc.next())if(LJ=LJ.value,LJ.streamsProgress){LJ=_.d(LJ.streamsProgress);for(var eZ=LJ.next();!eZ.done;eZ=
LJ.next()){var p6=void 0;o6+=Number((p6=eZ.value.numBytesDownloaded)!=null?p6:0)}}YV.downloadedBytes=hk(o6);YV.selectedOfflineMode=X0[gJ]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";Wn.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(YV.offlinePlaybackDisabledReason=Wn.offlinePlaybackDisabledReason);return YV});
return XL.return({offlineVideos:Js,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:M}}})})};
IfD=function(){var A;return _.u(function(L){return L.nextAddress==1?L.yield(_.tY(),2):(A=L.yieldResult)?L.return(_.ffD(A)):L.return({state:"PES Unavailable"})})};
jqJ=function(){var A,L,O,X;return _.u(function(x){if(x.nextAddress==1)return x.yield(_.tY(),2);if(x.nextAddress!=3)return(A=x.yieldResult)?x.yield(yLe(A),3):x.return({state:"PES Unavailable"});L=x.yieldResult;O={};X=L.reduce(function(J,Y){J[Y.key]=Y;return J},O);
return x.return(ZtJ(X))})};
ZtJ=function(A){for(var L={},O=[],X=_.d(Object.keys(A)),x=X.next();!x.done;x=X.next()){var J=x.value;x=A[J];var Y=void 0;if(((Y=x)==null?void 0:Y.entityType)==="mainVideoEntity"){delete A[J];var T=x.data;x={};if(T){var V=void 0;Y=(V=T.videoId)!=null?V:"vid-"+J;J=A;x.video=T;delete x.video.formattedDescription;delete x.video.thumbnail;T.owner&&(V=J[T.owner],V==null?0:V.data)&&(delete J[V.key],x.video.owner=V.data,delete x.video.owner.avatar);if(T=T.downloadState)if(V=J[T],V==null?0:V.data)if(delete J[T],
T=V.data.playbackData)if(V=J[T],V!=null&&V.data){delete J[T];T=V.data;delete T.playerResponseJson;x.playbackData=T;if(T.transfer&&(V=J[T.transfer],V==null?0:V.data)){delete J[V.key];var E=V.data;x.transfer=E;V=[];E=_.d(E.offlineVideoStreams||[]);for(var n=E.next();!n.done;n=E.next())if(n=J[n.value])delete J[n.key],V.push(n.data);V&&(x.streams=V)}(T=T.offlineVideoPolicy)&&(T=J[T])&&T.data&&(delete J[T.key],x.offlineVideoPolicy=T.data)}L[Y]=x}}else x&&x.entityType==="offlineOrchestrationActionWrapperEntity"&&
x.data&&(delete A[x.key],Y=x.data,J=void 0,O.push({id:Y.rootActionId,type:((J=Y.actionProto)==null?void 0:J.actionType)||"",entity:x}))}L.wrapperEntities=O;Object.keys(A).length>0&&(L.unknownKeys=A);return L};
Wop=function(){var A,L,O,X,x,J,Y,T,V;return _.u(function(E){if(E.nextAddress==1)return A=!!(new _.mg("")).expiringStorage_,X=!!((L=_.Ou.crypto)==null?0:(O=L.subtle)==null?0:O.importKey),x=!!_.Ou.BroadcastChannel,J=!!_.Ou.navigator.locks,E.yield(WCe(),2);Y=E.yieldResult;T=A&&X&&x&&J&&Y;V={isSupported:T};if(T)return E.return(V);V.missingBrowserFeatures=[];Y||V.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");A||V.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
X||V.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");x||V.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");J||V.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return E.return(V)})};
HtD=function(){var A;return!((A=D7?D7:null)==null||!A.window)};
_.BOu=function(A){if(_.K9()&&_.ePy("Chromium")>=120){var L=_.z_9().mediaSession;try{L.setActionHandler("enterpictureinpicture",function(){A()})}catch(O){}}};
MHJ=function(A){for(var L=[],O=_.d(document.styleSheets),X=O.next(),x={};!X.done;x={node$jscomp$727:void 0},X=O.next())x.node$jscomp$727=X.value.ownerNode,x.node$jscomp$727&&(x.node$jscomp$727 instanceof HTMLStyleElement||x.node$jscomp$727 instanceof HTMLLinkElement)&&L.push(new Promise(function(J){return function(Y){var T=J.node$jscomp$727.cloneNode(!0);T.onload=function(){Y()};
T.onerror=function(){_.Rv(Error("gj"));Y()};
A.document.head.appendChild(T)}}(x)));
return Promise.all(L)};
XIJ=function(A){var L=[_.xT($ir),_.xT(af9),_.xT(kdD)];Uiu(window.document.documentElement,A.document.documentElement,[_.xT(vhO),_.xT(ohO),_.xT(Ae9),_.xT(Lc9),_.xT(OZ_)]);Uiu(window.document.body,A.document.body,L)};
Uiu=function(A,L,O){A=_.d(A.attributes);for(var X=A.next();!X.done;X=A.next())if(X=X.value)try{_.oP(O,L,X.name,X.value)}catch(x){}};
s_e=function(A,L){A=new _.eO(A.document.documentElement);A.start(xXd,L);return A};
Jee=function(A){var L=A.document.documentElement;L.addEventListener("click",function(O){U2y(L,O)});
L.addEventListener("touchstart",function(O){Ood(O)});
L.addEventListener("mousedown",function(O){Ood(O)})};
dXP=function(A,L,O,X){X=X===void 0?!1:X;L=new PUs(L||A,O||A);return{x:A.x+((X===void 0?0:X)?L.lengthX*-1:L.lengthX)*.2,y:A.y+((X===void 0?0:X)?L.lengthY*-1:L.lengthY)*.2}};
YnP=function(A){if(!A)return!1;var L=A.status==="OK"||A.status==="LIVE_STREAM_OFFLINE",O,X,x,J=(x=(O=A.errorScreen)==null?void 0:O.playerLegacyDesktopYpcTrailerRenderer)!=null?x:(X=A.errorScreen)==null?void 0:X.ypcTrailerRenderer;return!!L||!!J};
_.uDr=function(A,L){if(!A)return!1;var O,X=(O=A.errorScreen)==null?void 0:O.playerLegacyDesktopYpcOfferRenderer,x;L=!!(L==null?0:(x=L.playerOverlayRenderer)==null?0:x.gatedActionsOverlayRenderer);return!!YnP(A)||!!X||!!L};
DXe=function(A){return TCu(A,0,"gclid",A.search(VwP))>=0||TCu(A,0,"gad_source",A.search(VwP))>=0};
eed=function(A){var L=[],O=0;return{clear:function(){O=L.length=0},
push:function(X){L[O]=X;O=(O+1)%A},
iterate:function(){return function x(){var J,Y,T,V;return _.Er(x,function(E){switch(E.nextAddress){case 1:_.be(E,2),J=L.length,Y=0;case 4:if(!(Y<J)){E.jumpTo(2);break}T=O+Y;V=_.nq;return E.yield(L[T%J],7);case 7:V(E.yieldResult);Y++;E.jumpTo(4);break;case 2:_.tn(E),_.hn(E,0)}})}()}}};
ngp=function(){var A=EgO,L=XI.bufferSize;A||(A=[]);A=A.map(d2p);var O=new Set(A),X=eed(L);return{flush:function(){var x=Array.from(X.iterate());X.clear();x=x.map(function(J){return{name:J.name,timestamp:J.startTime,attributes:J.attributes}});
return JSON.stringify(x)},
onSpanStart:function(x){x.name==="event"&&O.has(x.attributes.type)||X.push(x)}}};
twP=function(){var A=ngp(),L=A.flush;RCD({onSpanStart:A.onSpanStart});qku.subscribe("handleError",function(O){try{O.params.breadcrumbs=L()}catch(X){_.C7(X,"WARNING")}})};
bZu=function(A,L,O){var X=A.endTime;if(X==null)throw Error("ij");var x=A.name,J={};X-=A.startTime;var Y=A.startTime;J={webTracing:(J[x]=A.attributes,J)};O=_.j6(a__)(x,X,Y,J,O,L);if(A.children)for(A=_.d(A.children),x=A.next();!x.done;x=A.next())bZu(x.value,L,O)};
Sn_=function(){for(var A={},L=_.d(XI.enabledSpansArray),O=L.next();!O.done;O=L.next())A[O.value]=!0;(XI.exportToCsi||XI.exportBreadcrumbs)&&Che({sessionId:e1d(),enabledSpans:A});XI.exportBreadcrumbs&&twP();XI.exportToCsi&&RCD(hed);if(XI.exportToDevTools){var X=[];RCD({onSpanEnd:function(x){X.push(x)===1&&setTimeout(function(){var J=X.map(Qhu);X.length=0;window.postMessage({type:"telemetry",spans:J},"*")},1E3)}})}};
qns=function(A){return new Promise(function(L){window.setTimeout(L,A)})};
gge=function(A){var L={bicf:function(J){A.aro=J},
blc:function(){return A.getLatestChallengeResponse()},
bcr:function(J){A.m2O.push(J)}},O=window;
O.ntpevasrs=L;if(O.ntpqfbel!==void 0)for(var X=_.d(O.ntpqfbel),x=X.next();!x.done;x=X.next())x=x.value,x(L);O.ntpqfbel=void 0};
wIe=function(A){return _.u(function(L){if(L.nextAddress==1)return _.e4(L,2),L.yield(A.gPo(),4);if(L.nextAddress!=2)return _.zA(L,0);_.S4(L);_.qo(L)})};
pIe=function(A){var L,O;(L=A.ytcsi)==null||(O=L.tick)==null||O.call(L,"pot_ist")};
iZr=function(A){if(A instanceof Error){var L=_.WY("yt.logging.errors.log");L&&L(A,"WARNING")}};
NC9=function(A){try{var L=JSON.parse(A);if(L.bgChallenge)return L}catch(O){}};
Kcp=function(){var A=window,L={networkStatusManagerPromise:_.X5().resolve(new NQs(_.H1)),initialChallengeSli:_.h("wpo_att_sli")?new _.FDO("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};A=A===void 0?window:A;var O=A.ytAtR,X;L==null||(X=L.initialChallengeSli)==null||_.tR(X);if(O){if(O=NC9(O)){var x;L==null||(x=L.initialChallengeSli)==null||_.bE(x,"SUCCESS");reM(O,L)}A.ytAtR=void 0}else A.ytAtRC=function(J){if(J=NC9(J)){var Y;L==null||(Y=L.initialChallengeSli)==null||
_.bE(Y,"SUCCESS");reM(J,L);A.ytAtRC=void 0}}};
ceO=function(){if(G9u)return G9u;try{var A=_.tg("IFRAME");_.Hf(A,_.JD(lHp));A.sandbox.add("allow-same-origin");A.style.display="none";document.body.appendChild(A);return G9u=A}catch(L){A=new _.pe("Failed to create sandbox iframe"),_.C7(A)}};
CUe=function(A){var L,O;return(O=A==null?void 0:(L=A.contentWindow)==null?void 0:L.fetch)!=null?O:window.fetch};
FcO=function(A){var L,O;return(O=A==null?void 0:(L=A.contentWindow)==null?void 0:L.JSON.parse)!=null?O:JSON.parse};
Rep=function(A){var L,O;return(O=A==null?void 0:(L=A.contentWindow)==null?void 0:L.Request)!=null?O:window.Request};
Q_e=function(A){var L,O;return(O=A==null?void 0:(L=A.contentWindow)==null?void 0:L.TextDecoder)!=null?O:window.TextDecoder};
mXO=function(){return function(A,L){_.ms("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[A]=L}};
fHO=function(){return function(A,L){var O={};O[A]=L;A=_.j6(_.M0e)(O);Object.keys(A).length>0&&_.CM(A)}};
ZZu=function(){if(RkJ()==="hidden")var A="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else RkJ()==="visible"&&(A="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",IHs=null);A&&yes(A)};
yes=function(A){if(A==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||A==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(j_D===A)return;j_D=A}var L=9E4+Math.random()*2E3;if(A!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.xw()>L)&&RkJ()==="visible"){L=-1;IHs&&(L=Math.round((0,_.O$)()-IHs));var O=String;var X=_.WY("_fact",window);X=X==null||X==-1?-1:Math.max(Date.now()-X,0);_.lg("foregroundHeartbeat",{firstActivityMs:O(X),clientDocumentNonce:Exs,index:String(Wcu),lastEventDeltaMs:String(L),trigger:A});
_.oZ("_fact",-1,window);Wcu++;IHs=(0,_.O$)()}};
_.HZp=function(){try{return!!self.sessionStorage}catch(A){return!1}};
zer=function(){var A=navigator;return new Promise(function(L,O){var X;(X=A.webkitTemporaryStorage)!=null&&X.queryUsageAndQuota?A.webkitTemporaryStorage.queryUsageAndQuota(function(x,J){L({usage:x,quota:J})},function(x){O(x)}):O(Error("qj"))})};
BCe=function(A,L){var O={errorSeverity:L.errorSeverity.toString(),wizFeatureFlags:Object.entries(L.featureFlags).join("\n")};dVM(L,O);L=L.errorSeverity;L===3?_.C7(A,"ERROR",void 0,void 0,void 0,O):L===2&&_.C7(A,"WARNING",void 0,void 0,void 0,O);_.h("cow_if_errors_in_popup")&&L===3&&A.message.indexOf("<If>")!==-1&&window.alert(A.message)};
Mwp=function(A,L){var O=v4.get(A)||{layerNode:L};O.layerNode=L;cAD(A,O);A.getScreenLayer=function(){return hR(O.layerNode)}};
$Xe=function(A){var L;A=A.parentNode;for(var O;A&&((L=v4.get(A))==null||!L.isRenderer)&&!((O=A.polymerController)!=null?O:A).isRenderer_;)A=A.parentNode||A.host;if(L=A)return v4.get(L)};
aHD=function(A){if(A){v4.delete(A);var L=_.X5().resolve(Ld);fGM(A,L)}};
UXJ=function(A,L,O){if(O===void 0?0:O){if(O=A.getAttribute("client-ve-type"),L.data&&!L.disableReactiveLogging||O)_.lQ(function(){k9s(A,_.GV(L.data))}),_.rF(function(){return void aHD(A)})}else typeof L.data!=="function"&&k9s(A,L.data)};
k9s=function(A,L){vgu++;oge(A,L)&&_.c1.addJob(function(){_.fu(_.c1,function(){if(oge(A,L)&&A.ownerDocument.documentElement===document.documentElement&&A){var O;if(A.getAttribute("layer")){var X=O=Number(A.getAttribute("layer")),x=v4.get(A);x?x.layerNode.layer=X:Mwp(A,new AOP(X));(X=$Xe(A))&&(x=v4.get(A))!=null&&(x.layerNode.parent=X.layerNode)}else if(O=v4.get(A))O=hR(O.layerNode);else{O=hR;X=new AOP;if(x=$Xe(A))X.parent=x.layerNode;Mwp(A,X);O=O(X)}O!=null||(O=0);X=A.getAttribute("client-ve-type");
x=Number(X);var J=!1;X=!1;var Y=v4.get(A),T;if((T=Y)&&!(T=Y[L6P]!==L)&&(T=x)){var V;T=((V=v4.get(A))==null?void 0:V.clientVeType)===void 0}T&&(Y[L6P]=L,J=X=Y.isRenderer=!0);v4.has(A)&&(v4.get(A).clientVeType=x);A.visualElement&&(X=!0);if(_.h("wiz_next_ld_fix_client_ve_spec")){var E;V=((E=_.q(L==null?void 0:L.rendererContext,_.Nb))==null?void 0:E.loggingDirectives)||(L==null?void 0:L.loggingDirectives)}else V=L==null?void 0:L.loggingDirectives;V&&V.clientVeSpec&&(E=OK9(_.wW(),A),E=_.XcP(_.iV(),V,E||
void 0,O))&&(A.visualElement=E);!A.visualElement&&x&&J&&(A.veType=x,E=void 0,_.h("wiz_next_client_ve_parent_fix")&&(E=OK9(_.wW(),A)),E=_.pT(_.iV(),A,E,O),A.visualElement=E);X&&(E=_.X5().resolve(Ld),jYe(A,{data:L,observer:E,layer:O,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
oge=function(A,L){return(L==null?0:L.trackingParams)||(L==null?0:L.loggingDirectives)||_.q(L==null?void 0:L.rendererContext,_.Nb)||A.getAttribute("client-ve-type")?!0:!1};
xHP=function(A,L,O){A.componentType!==gF&&O instanceof HTMLElement&&L&&!_.h("cow_logging_in_component_wrapper")&&UXJ(O,L,!0)};
uUy=function(){if(!s39){s39=!0;var A=Object.assign({},{enableLazyTsx:_.h("mweb_enable_wiz_lazy_tsx")||_.h("kevlar_enable_wiz_lazy_tsx")||_.h("creator_enable_wiz_lazy_tsx")||JOu,flushRenderEffectsDuringRender:!0},{handleError:BCe,enableComponentStacksInErrorMessages:!1});Object.assign(Lr,A);ihd=PdJ;dH_();lx_=JUP;r9M=P$d;_.h("ytwiz_enable_debug_component_props")&&(A=document.body.firstElementChild,window.ng||A.__ngContext__||(A.__ngContext__={},A.setAttribute("ng-version","0.0.0-PLACEHOLDER"),window.ng=
YXP))}};
dH_=function(){_.h("cow_logging_in_component_wrapper")?(EUM=function(A,L){L instanceof HTMLElement&&UXJ(L,A,!0)},eFD=function(){}):(EUM=function(){},eFD=xHP)};
Tyu=function(A,L,O){L=L===void 0?{}:L;var X,x=(X=_.q(A.commandMetadata,_.LM))==null?void 0:X.url;X=L.form||{};!O||X.element||X.skipDefaultElement||(L.form=L.form||{},L.form.element=O);if(x&&x!=="/service_ajax")return{type:0,command:A,form:L.form};if(_.h("kevlar_service_command_check")){if(_.vx(_.X5().resolve(_.Ia),A))return Object.assign({},{type:1,command:A},L)}else{var J;if((J=_.q(A.commandMetadata,_.LM))==null?0:J.apiUrl)return Object.assign({},{type:1,command:A},L)}return{type:2,command:A,form:L.form}};
V$_=function(A){if(A.form){var L=A.form,O=Object.assign({},L);L=L.element;O=(delete O.element,O);if(L)return[_.TZ(L,[A.command,O,A.commandController])]}return[]};
DH9=function(A){if(A.form){var L=A.form,O=Object.assign({},L);L=L.element;O=(delete O.element,O);L&&_.VN(L,[A.command],L,O)}};
E0p=function(A,L,O){var X=new e4u(A,L),x=new SO(A,L,O);A={"/youtubei/v1/browse":new ql(A,L,O),"/youtubei/v1/player":X,"/youtubei/v1/navigation/resolve_url":new go,"/youtubei/v1/next":x,"/youtubei/v1/guide":new wo(O),"/youtubei/v1/search":new ro(A,L,O),"/youtubei/v1/reel/reel_item_watch":new Kq(A,L,O),"/youtubei/v1/get_watch":new G_(X,x)};A["/youtubei/v1/account/account_menu"]=new lE;A["/youtubei/v1/notification/get_notification_menu"]=new cw;return A};
F2=function(){var A=_.X5().resolve(Cq);return Promise.resolve(n0r(A,_.Ou.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
t$O=function(A){return A&&(A=_.RI(_.NL9(A)))?(new URLSearchParams(A)).get("service"):null};
fq=function(A,L){_.et(_.Q7(),function(){_.Rk("adl")});
_.X5().resolve(bKJ)(L);A=A.root;A.loadData&&A.loadData(L);(L==null?0:L.response)?_.bE(mzO(),"SUCCESS"):_.Rv(new _.pe("Lifecycle: No response in data",_.fB("IS_SHELL_LOAD"),L?L.page:"NO_PAGE",L?L.endpoint:"NO_ENDPOINT"));A.polymerController.$["page-manager"].lazyPrepareCriticalPages((L==null?void 0:L.page)||"",L.endpoint);var O,X;((X=_.q(L==null?void 0:(O=L.endpoint)==null?void 0:O.commandMetadata,_.LM))==null?0:X.webPageType)&&_.Ai().dispatch(_.mz(_.q(L.endpoint.commandMetadata,_.LM).webPageType))};
h4_=function(){var A,L;return _.u(function(O){switch(O.nextAddress){case 1:A=window;if(!A.getDataPromise){O.jumpTo(2);break}_.e4(O,3);return O.yield(A.getDataPromise(),5);case 5:return O.return(O.yieldResult);case 3:return _.S4(O),O.yield(F2(),6);case 6:return O.return(O.yieldResult);case 2:if(A.getInitialData)return L=A.getInitialData(),A.getInitialData=void 0,O.return(L);throw Error("sj`"+_.Ou.location.href);}})};
qXM=function(){_.QT("CSI_SERVICE_NAME","youtube");_.CM({loadType:"cold"});_.h("kevlar_log_lcp")&&SXu(function(A){_.Rk("lcp",A.value)})};
g0p=function(){var A=_.yI(document.location.href,"enable");A&&A.indexOf("scraper")>-1&&_.QT("ADD_SCRAPER_ATTRIBUTES",!0)};
rOp=function(A){var L=A.root;A=[wcd,pcu,_.II];_.h("web_feedback_endpoint_autolog_allowlist_killswitch")&&A.push(_.y7,iKD);Nye(function(O,X){return Tyu(O,X,L)},function(O){if(!O.command)return[];
var X;((X=O.form)==null?0:X.element)?O.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},O.form,{endpoint:O.command})})):L.handleNavigate(O);return[]},A);
_.X5().addProvider({provide:_.x$,useValue:_.S5.instance})};
Gre=function(){var A={},L={},O;for(O in K6p){var X=_.d(_.uQ(K6p[O],void 0,"NBH2te"));A[O]=X.next().value;L[O]=X.next().value}return[A,function(x){for(var J in x){var Y=void 0;(Y=L[J])==null||Y(x[J])}}]};
_.Cd_=function(A,L){var O=!1;O=O===void 0?!1:O;var X=_.lW.getValueByKeys(A,"contents","twoColumnWatchNextResults","results","results","contents"),x=_.lW.getValueByKeys(A,"contents","twoColumnWatchNextResults","playlist","playlist")||null;O&&(x=null);var J=O=null;if(x)O=_.lW.getValueByKeys(x,"titleText"),J=_.lW.unsafeClone(_.lW.getValueByKeys(x,"longBylineText")),X="",J&&(X=_.vG(J)),J=_.Ue(X);else if(X){X=_.d(X);for(var Y=X.next();!Y.done;Y=X.next())Y=Y.value,Y.videoPrimaryInfoRenderer&&(O=_.lW.getValueByKeys.apply(_.lW,
[Y].concat(_.le(l5D)))),Y.videoSecondaryInfoRenderer&&(J=_.lW.getValueByKeys.apply(_.lW,[Y].concat(_.le(cOu))))}else _.HY(Error("xj"));var T;A.currentVideoEndpoint?T=A.currentVideoEndpoint:_.HY(Error("yj"));var V;L&&(V=_.lW.getValueByKeys(L,"playabilityStatus","miniplayer","miniplayerRenderer"));A={miniplayerTitle:O,miniplayerSubtitle:J,watchEndpoint:T,playlistData:x};V&&(A.miniplayerRenderer=V);return A};
F6p=function(A){if(A)return _.yz(A)};
_.R4y=function(){return{isFullscreen:function(){throw Error("zj");},
toggleFullscreen:function(){throw Error("Aj");},
exitFullscreen:function(){throw Error("Bj");},
isAutonavEnabled:function(){throw Error("Cj");},
setAutonavEnabled:function(){throw Error("Dj");},
isAutoplaySetExplicitly:function(){throw Error("Ej");}}};
Q3e=function(A){return A.videoDuration?A.numTaps>1&&A.tapDirection!==0?_.Z7(A.draggedTime/A.videoDuration,0,1):_.Z7((A.playedTime||0)/A.videoDuration,0,1):0};
mHe=function(A){return A.videoDuration?A.isDragging||A.numTaps>1&&A.tapDirection!==0?_.Z7(A.draggedTime/A.videoDuration,0,1):_.Z7((A.playedTime||0)/A.videoDuration,0,1):0};
I5e=function(A){var L,O,X;return _.q(A==null?void 0:(L=A.markersMap)==null?void 0:(O=L.find(function(x){return x.key==="HEATSEEKER"}))==null?void 0:(X=O.value)==null?void 0:X.heatmap,f5r)};
yOJ=function(A){var L,O;return(O=(L=I5e(A))==null?void 0:L.heatMarkersDecorations)!=null?O:[]};
ZKJ=function(A){if(_.h("mweb_supported_chapters_killswitch"))return!0;var L;return!!(A==null?0:(L=A.markersMap)==null?0:L.find(function(O){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(O.key)}))};
_.j3u=function(A){var L=Object,O=L.assign,X;A={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(X=A==null?void 0:A.getPlayerState())!=null?X:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return O.call(L,{},{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},A,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
W69=function(A){return function(L){var O=A(),X,x=(X=O.playerApi)==null?void 0:X.getPlayerState();L&&L!==O.playerState&&(L===1||L===2)&&O.setState({playerState:x})}};
z4u=function(A){return function(L){var O=A(),X=O.playerApi;X&&(L==null?void 0:L.type)==="newdata"&&(HKs&&(clearTimeout(HKs),HKs=void 0),_.h("web_shorts_use_progress_state_for_gapless")?(L=X==null?void 0:X.getProgressState(L==null?void 0:L.playertype),L=L.seekableEnd-L.seekableStart):L=X==null?void 0:X.getDuration(L==null?void 0:L.playertype),O.setState({playedTime:0,videoDuration:L}))}};
Bys=function(A){return function(L){var O=A(),X=O.playerApi;if(X){var x=X.getPresentingPlayerType();_.h("web_shorts_use_progress_state_for_gapless")?(X=X.getProgressState(x),X=X.seekableEnd-X.seekableStart):X=X.getDuration(x);O.setState({playedTime:L,videoDuration:X})}}};
$H9=function(A){_.QZ(112394,A,function(){return M$J},function(L){M$J=L})};
UHP=function(A,L){if(!A)return[];var O,X,x;A=((O=A.markersMap)==null?void 0:(X=O.find(function(J){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(J.key)}))==null?void 0:(x=X.value)==null?void 0:x.chapters)||[];
!a5u(A)||(L==null?0:L.ignoreStub)||(A=[krJ()].concat(_.le(A)));return A};
krJ=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
a5u=function(A){if(A.length===0)return!1;var L;return((L=_.q(A[0],jO))==null?void 0:L.timeRangeStartMillis)!==0};
Ww=function(A){return A?A.timeRangeStartMillis||0:0};
o0s=function(A,L){if(A.isDragging&&L)return A=v0e(A,L),A===-1?krJ():UHP(L)[A]};
v0e=function(A,L){return A.isDragging&&L?UHP(L,{ignoreStub:!0}).findIndex(function(O,X,x){O=Av_(A);return L5M(O,x,X).scrubberHovering}):-1};
Av_=function(A){return Object.assign({},A,{videoDuration:A.videoDuration*1E3,playedTime:A.playedTime*1E3,draggedTime:A.draggedTime*1E3})};
L5M=function(A,L,O){var X=Ww(_.q(L[O],jO));L=Ww(_.q(L[O+1],jO))||A.videoDuration;O=A.isDragging;var x;if(x=A.isDragging)x=A.draggedTime,x=x!==null&&x>=X&&x<L;var J=A.playedTime;return J!==null&&J>=X&&J<L?{videoPosition:"active",isScrubbing:O,scrubberHovering:x}:A.playedTime<X?{videoPosition:"pending",isScrubbing:O,scrubberHovering:x}:{videoPosition:"seen",isScrubbing:O,scrubberHovering:x}};
Oir=function(A,L){return A.videoPosition==="seen"||(L===void 0?0:L)>0};
X8e=function(A,L,O){L=A/L.storyboardInterval;var X=UHP(O);if(!X.length)return-L*72;O=0;X=_.d(X);for(var x=X.next();!x.done;x=X.next())if(Ww(_.q(x.value,jO))/1E3<A)O++;else break;return-(L*72)-O*56};
xhO=function(A){return A?A.width/A.columns:0};
sbu=function(A){return A.isHovering?A.hoveredTime:A.draggedTime};
JvJ=function(A,L){A=A.draggedTime*1E3;return A>=L.visibleTimeRangeStartMillis&&A<=L.visibleTimeRangeEndMillis};
_.Ppe=function(A){if(A===void 0||Number.isNaN(A))return"--:--";var L=Math.abs(Math.floor(A)),O=Math.floor(L/86400),X=Math.floor(L%86400/3600),x=Math.floor(L%3600/60);L=Math.floor(L%60);var J="";O>0&&(J+=O+":",X<10&&(J+="0"));if(O>0||X>0)J+=X+":",x<10&&(J+="0");J+=x+":";L<10&&(J+="0");J+=L;return A>=0?J:"-"+J};
dhJ=function(A,L){return function(){var O=sbu(A());var X=L();var x=A().playerApi;if(x&&x.getNumberOfStoryboardLevels()!==0){var J=x.getStoryboardFrameIndex(O,1);J!==-1?X=x.getStoryboardFrame(J,1):(O=x.getStoryboardFrameIndex(O,0),x=x.getStoryboardFrame(O,0),X&&x&&(x.height*=3,x.width*=3),X=x)}else X=null;if(!X)return null;L()&&(X.width=90*X.columns,X.height=160*X.rows);return X}};
_.Hw=function(A){if(!A||A.getVideoData)return A};
Yxu=function(){var A;return{playerApi:(A=_.hI())!=null?A:void 0}};
uvP=function(A){var L;_.u(function(O){if(O.nextAddress==1)return O.yield(_.bS(),2);if(L=O.yieldResult)L.unMute(!0),L.setVolume(A,!0);_.qo(O)})};
TeO=function(A,L){A&&(A.value=""+L,A.style.setProperty("--gradient-percent",L+"%"))};
Var=function(A){var L;return(L=A==null?void 0:A.value)!=null?L:0};
Dhr=function(){var A;_.u(function(L){if(L.nextAddress==1)return L.yield(_.bS(),2);A=L.yieldResult;if(!A)return L.return();A.isMuted()?A.unMute(!0):A.mute(!0);_.qo(L)})};
exr=function(A){var L=_.X5().resolve(_.z_).getPlayerElement();L&&A&&(A===1?L.pause():L.play())};
Evd=function(A){_.YK(A,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
nve=function(A){_.YK(A,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
biD=function(A){return _.NE(A.document.body,function(){return _.D(tad,null)})};
hxu=function(){var A=window.performance.getEntriesByType("navigation");return A?A.map(function(L){return L.type}).includes("reload"):!1};
rvp=function(){Bw(Bw(Bw(Bw(Bw(Bw(Bw(_.X5().resolve(_.Ml),_.Sxy),_.qxp),_.gvu),_.w8d),_.p8u),_.iir),_.Nee)};
K5D=function(A,L){L=L===void 0?!1:L;var O,X,x,J;return _.u(function(Y){if(Y.nextAddress==1)return L||!_.h("kevlar_shorts_seedless_retry_initial_load")||(O=window,X=!(!O.getDataPromise&&!O.getInitialData),X)?Y.yield(h4_(),2):(setTimeout(K5D.bind(window,A,!0),1E3),Y.return());if(Y.nextAddress!=3)return x=Y.yieldResult,Y.yield(GTM(x),3);J=Y.yieldResult;fq(A,J);_.qo(Y)})};
GTM=function(A){var L;if((L=A.response)==null||!L.replacementEndpoint)return _.DQ(A);L=_.X5().resolve(Cq);A=A.response;_.q(A.replacementEndpoint,_.rM)&&A.sequenceContinuation&&(_.q(A.replacementEndpoint,_.rM).sequenceParams=A.sequenceContinuation);return $D(L,A.replacementEndpoint,{},_.Ou.location.href,"shorts",function(){},function(){return!1})};
cvp=function(A){var L=_.X5().resolve(lA9);A.playerResponse&&L.handleResponse(A.playerResponse);A.response&&L.handleResponse(A.response)};
CpP=function(A){var L=_.Ai(),O,X=_.q((O=A.response)==null?void 0:O.frameworkUpdates,Ok),x;O=_.q((x=A.playerResponse)==null?void 0:x.frameworkUpdates,Ok);var J;A=_.q((J=A.reelWatchSequenceResponse)==null?void 0:J.frameworkUpdates,Ok);X&&_.hY(X,L);O&&_.hY(O,L);A&&_.hY(A,L)};
F5s=function(A){var L;_.h("enable_redirect_linking_for_desktop_web_client")&&((L=window.location.hash)==null?0:L.includes("redirect_state"))&&A.url&&(A.url=A.url.toString()+window.location.hash)};
mhu=function(A){var L=_.X5(),O=L.resolve(Cq);L=L.resolve(_.Rx_);A.endpoint&&(O=Qbu(O,A.endpoint),O.content&&A.response&&_.aI(L,A.response,O.content),O.player&&A.playerResponse&&_.aI(L,A.playerResponse,O.player),O.reelSequence&&A.reelWatchSequenceResponse&&_.aI(L,A.reelWatchSequenceResponse,O.reelSequence))};
kD=function(A,L){_.h("web_service_params_response_processor")&&cvp(L);CpP(L);var O;(L==null?0:L.url)&&((O=window.location.hash)==null?0:O.includes("redirect_state"))&&(F5s(L),(O=t$O(L.url))&&_.dQ(A.root,"yt-initialize-third-party",[O,L]));mhu(L);O=_.X5();var X=O.resolve(fA9);L.playerResponse&&O.resolve(IAp).handleResponse(L.playerResponse);if(L.playerResponse){O=void 0;if(_.h("ab_v_vid_sig")&&L.endpoint){var x,J=(x=_.q(L.endpoint,_.$O))!=null?x:_.q(L.endpoint,_.rM);J&&(O=J.videoId)}yvM(X,L.playerResponse,
O)}L.playerResponse&&oru(L.playerResponse)&&_.h("web_enable_ab_rsp_cl")?u9D().then(function(){Zir(X,L.playerResponse);fq(A,L)}):fq(A,L)};
W5e=function(A){if(A=A.root.data){var L=_.X5().resolve(jbe);A.endpoint&&(A.response&&L.handleResponse(A.response,void 0,document.querySelector("ytd-app")),A.playerResponse&&L.handleResponse(A.playerResponse),A.reelWatchSequenceResponse&&L.handleResponse(A.reelWatchSequenceResponse))}};
Hiu=function(A){var L,O,X,x,J,Y;return _.u(function(T){switch(T.nextAddress){case 1:L=window;if(!L.getDataPromise){T.jumpTo(2);break}_.e4(T,3);return T.yield(L.getDataPromise(),5);case 5:O=T.yieldResult;kD(A,O);_.zA(T,4);break;case 3:return _.S4(T),T.yield(F2(),6);case 6:X=T.yieldResult,fq(A,X);case 4:return T.return();case 2:if(!_.h("sw_nav_preload_pbj")){T.jumpTo(7);break}L.fetchInitialData=function(){var V;return _.u(function(E){if(E.nextAddress==1)return E.yield(F2(),2);V=E.yieldResult;fq(A,V);
_.qo(E)})};
if(L.getInitialData){L.loadInitialData=function(V){kD(A,V)};
x=L.getInitialData();L.getInitialData=void 0;kD(A,x);T.jumpTo(8);break}L.fetchInitialData=void 0;return T.yield(F2(),9);case 9:J=T.yieldResult,fq(A,J);case 8:return T.return();case 7:L.getInitialData?(Y=L.getInitialData(),L.getInitialData=void 0,kD(A,Y)):L.loadInitialData=function(V){kD(A,V)},_.qo(T)}})};
zxM=function(A){var L=0;return function(){return L<A.length?{done:!1,value:A[L++]}:{done:!0}}};
BeM=typeof Object.defineProperties=="function"?Object.defineProperty:function(A,L,O){if(A==Array.prototype||A==Object.prototype)return A;A[L]=O.value;return A};
Mau=function(A){A=["object"==typeof globalThis&&globalThis,A,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var L=0;L<A.length;++L){var O=A[L];if(O&&O.Math==Math)return O}throw Error("a");};
_.v2=Mau(this);Ur=function(A,L){if(L)a:{var O=_.v2;A=A.split(".");for(var X=0;X<A.length-1;X++){var x=A[X];if(!(x in O))break a;O=O[x]}A=A[A.length-1];X=O[A];L=L(X);L!=X&&L!=null&&BeM(O,A,{configurable:!0,writable:!0,value:L})}};
Ur("Symbol",function(A){if(A)return A;var L=function(J,Y){this.$jscomp$symbol$id_=J;BeM(this,"description",{configurable:!0,writable:!0,value:Y})};
L.prototype.toString=function(){return this.$jscomp$symbol$id_};
var O="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",X=0,x=function(J){if(this instanceof x)throw new TypeError("b");return new L(O+(J||"")+"_"+X++,J)};
return x});
Ur("Symbol.iterator",function(A){if(A)return A;A=Symbol("c");for(var L="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),O=0;O<L.length;O++){var X=_.v2[L[O]];typeof X==="function"&&typeof X.prototype[A]!="function"&&BeM(X.prototype,A,{configurable:!0,writable:!0,value:function(){return $hp(zxM(this))}})}return A});
Ur("Symbol.asyncIterator",function(A){return A?A:Symbol("d")});
var $hp=function(A){A={next:A};A[Symbol.iterator]=function(){return this};
return A},aAu=typeof Object.create=="function"?Object.create:function(A){var L=function(){};
L.prototype=A;return new L},kTO=function(){function A(){function O(){}
new O;Reflect.construct(O,[],function(){});
return new O instanceof O}
if(typeof Reflect!="undefined"&&Reflect.construct){if(A())return Reflect.construct;var L=Reflect.construct;return function(O,X,x){O=L(O,X);x&&Reflect.setPrototypeOf(O,x.prototype);return O}}return function(O,X,x){x===void 0&&(x=O);
x=aAu(x.prototype||Object.prototype);return Function.prototype.apply.call(O,x,X)||x}}(),Uh_;
if(typeof Object.setPrototypeOf=="function")Uh_=Object.setPrototypeOf;else{var vvs;a:{var ov9={a:!0},AuM={};try{AuM.__proto__=ov9;vvs=AuM.a;break a}catch(A){}vvs=!1}Uh_=vvs?function(A,L){A.__proto__=L;if(A.__proto__!==L)throw new TypeError("e`"+A);return A}:null}vw=Uh_;
_.g=function(A,L){A.prototype=aAu(L.prototype);A.prototype.constructor=A;if(vw)vw(A,L);else for(var O in L)if(O!="prototype")if(Object.defineProperties){var X=Object.getOwnPropertyDescriptor(L,O);X&&Object.defineProperty(A,O,X)}else A[O]=L[O];A.superClass_=L.prototype};
_.d=function(A){var L=typeof Symbol!="undefined"&&Symbol.iterator&&A[Symbol.iterator];if(L)return L.call(A);if(typeof A.length=="number")return{next:zxM(A)};throw Error("f`"+String(A));};
MY=function(A){for(var L,O=[];!(L=A.next()).done;)O.push(L.value);return O};
_.le=function(A){return A instanceof Array?A:MY(_.d(A))};
_.AW=function(A){return oI(A,A)};
oI=function(A,L){A.raw=L;Object.freeze&&(Object.freeze(A),Object.freeze(L));return A};
Ls=function(A,L){return Object.prototype.hasOwnProperty.call(A,L)};
Ltu=typeof Object.assign=="function"?Object.assign:function(A,L){for(var O=1;O<arguments.length;O++){var X=arguments[O];if(X)for(var x in X)Ls(X,x)&&(A[x]=X[x])}return A};
Ur("Object.assign",function(A){return A||Ltu});
var Oi=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},OUp=function(A){if(A.isRunning_)throw new TypeError("h");
A.isRunning_=!0};
Oi.prototype.JSC$9747_next_=function(A){this.yieldResult=A};
var Xlu=function(A,L){A.abruptCompletion_={exception:L,isException:!0};A.nextAddress=A.catchAddress_||A.finallyAddress_};
Oi.prototype.return=function(A){this.abruptCompletion_={return:A};this.nextAddress=this.finallyAddress_};
Oi.prototype.yield=function(A,L){this.nextAddress=L;return{value:A}};
Oi.prototype.jumpTo=function(A){this.nextAddress=A};
_.qo=function(A){A.nextAddress=0};
_.e4=function(A,L,O){A.catchAddress_=L;O!=void 0&&(A.finallyAddress_=O)};
_.be=function(A,L){A.catchAddress_=0;A.finallyAddress_=L||0};
_.zA=function(A,L,O){A.nextAddress=L;A.catchAddress_=O||0};
_.S4=function(A,L){A.catchAddress_=L||0;L=A.abruptCompletion_.exception;A.abruptCompletion_=null;return L};
_.tn=function(A,L,O,X){X?A.finallyContexts_[X]=A.abruptCompletion_:A.finallyContexts_=[A.abruptCompletion_];A.catchAddress_=L||0;A.finallyAddress_=O||0};
_.hn=function(A,L,O){O=A.finallyContexts_.splice(O||0)[0];(O=A.abruptCompletion_=A.abruptCompletion_||O)?O.isException?A.nextAddress=A.catchAddress_||A.finallyAddress_:O.jumpTo!=void 0&&A.finallyAddress_<O.jumpTo?(A.nextAddress=O.jumpTo,A.abruptCompletion_=null):A.nextAddress=A.finallyAddress_:A.nextAddress=L};
xsp=function(A){this.JSC$9752_context_=new Oi;this.program_=A};
Jur=function(A,L){OUp(A.JSC$9752_context_);var O=A.JSC$9752_context_.yieldAllIterator_;if(O)return sgu(A,"return"in O?O["return"]:function(X){return{value:X,done:!0}},L,A.JSC$9752_context_.return);
A.JSC$9752_context_.return(L);return Xu(A)};
sgu=function(A,L,O,X){try{var x=L.call(A.JSC$9752_context_.yieldAllIterator_,O);if(!(x instanceof Object))throw new TypeError("g`"+x);if(!x.done)return A.JSC$9752_context_.isRunning_=!1,x;var J=x.value}catch(Y){return A.JSC$9752_context_.yieldAllIterator_=null,Xlu(A.JSC$9752_context_,Y),Xu(A)}A.JSC$9752_context_.yieldAllIterator_=null;X.call(A.JSC$9752_context_,J);return Xu(A)};
Xu=function(A){for(;A.JSC$9752_context_.nextAddress;)try{var L=A.program_(A.JSC$9752_context_);if(L)return A.JSC$9752_context_.isRunning_=!1,{value:L.value,done:!1}}catch(O){A.JSC$9752_context_.yieldResult=void 0,Xlu(A.JSC$9752_context_,O)}A.JSC$9752_context_.isRunning_=!1;if(A.JSC$9752_context_.abruptCompletion_){L=A.JSC$9752_context_.abruptCompletion_;A.JSC$9752_context_.abruptCompletion_=null;if(L.isException)throw L.exception;return{value:L.return,done:!0}}return{value:void 0,done:!0}};
P29=function(A){this.next=function(L){OUp(A.JSC$9752_context_);A.JSC$9752_context_.yieldAllIterator_?L=sgu(A,A.JSC$9752_context_.yieldAllIterator_.next,L,A.JSC$9752_context_.JSC$9747_next_):(A.JSC$9752_context_.JSC$9747_next_(L),L=Xu(A));return L};
this.throw=function(L){OUp(A.JSC$9752_context_);A.JSC$9752_context_.yieldAllIterator_?L=sgu(A,A.JSC$9752_context_.yieldAllIterator_["throw"],L,A.JSC$9752_context_.JSC$9747_next_):(Xlu(A.JSC$9752_context_,L),L=Xu(A));return L};
this.return=function(L){return Jur(A,L)};
this[Symbol.iterator]=function(){return this}};
_.Er=function(A,L){L=new P29(new xsp(L));vw&&A.prototype&&vw(L,A.prototype);return L};
ds_=function(A){function L(X){return A.next(X)}
function O(X){return A.throw(X)}
return new Promise(function(X,x){function J(Y){Y.done?X(Y.value):Promise.resolve(Y.value).then(L,O).then(J,x)}
J(A.next())})};
_.u=function(A){return ds_(new P29(new xsp(A)))};
_.EJ=function(A){var L=A[Symbol.asyncIterator];return L!==void 0?L.call(A):new Yq_(_.d(A))};
Yq_=function(A){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return A};
this.next=function(L){return Promise.resolve(A.next(L))};
this["throw"]=function(L){return new Promise(function(O,X){var x=A["throw"];x!==void 0?O(x.call(A,L)):(O=A["return"],O!==void 0&&O.call(A),X(new TypeError("i")))})};
A["return"]!==void 0&&(this["return"]=function(L){return Promise.resolve(A["return"](L))})};
_.f_=function(){for(var A=Number(this),L=[],O=A;O<arguments.length;O++)L[O-A]=arguments[O];return L};
_.nq=function(A){return A};
Ur("globalThis",function(A){return A||_.v2});
Ur("Reflect",function(A){return A?A:{}});
Ur("Reflect.construct",function(){return kTO});
Ur("Reflect.setPrototypeOf",function(A){return A?A:vw?function(L,O){try{return vw(L,O),!0}catch(X){return!1}}:null});
Ur("Promise",function(A){function L(){this.batch_=null}
function O(Y){return Y instanceof x?Y:new x(function(T){T(Y)})}
if(A&&(typeof _.v2.PromiseRejectionEvent!=="undefined"||!_.v2.Promise||_.v2.Promise.toString().indexOf("[native code]")===-1))return A;L.prototype.asyncExecute=function(Y){if(this.batch_==null){this.batch_=[];var T=this;this.asyncExecuteFunction(function(){T.executeBatch_()})}this.batch_.push(Y)};
var X=_.v2.setTimeout;L.prototype.asyncExecuteFunction=function(Y){X(Y,0)};
L.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var Y=this.batch_;this.batch_=[];for(var T=0;T<Y.length;++T){var V=Y[T];Y[T]=null;try{V()}catch(E){this.asyncThrow_(E)}}}this.batch_=null};
L.prototype.asyncThrow_=function(Y){this.asyncExecuteFunction(function(){throw Y;})};
var x=function(Y){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var T=this.createResolveAndReject_();try{Y(T.resolve,T.reject)}catch(V){T.reject(V)}};
x.prototype.createResolveAndReject_=function(){function Y(E){return function(n){V||(V=!0,E.call(T,n))}}
var T=this,V=!1;return{resolve:Y(this.resolveTo_),reject:Y(this.JSC$9780_reject_)}};
x.prototype.resolveTo_=function(Y){if(Y===this)this.JSC$9780_reject_(new TypeError("m"));else if(Y instanceof x)this.settleSameAsPromise_(Y);else{a:switch(typeof Y){case "object":var T=Y!=null;break a;case "function":T=!0;break a;default:T=!1}T?this.resolveToNonPromiseObj_(Y):this.fulfill_(Y)}};
x.prototype.resolveToNonPromiseObj_=function(Y){var T=void 0;try{T=Y.then}catch(V){this.JSC$9780_reject_(V);return}typeof T=="function"?this.settleSameAsThenable_(T,Y):this.fulfill_(Y)};
x.prototype.JSC$9780_reject_=function(Y){this.settle_(2,Y)};
x.prototype.fulfill_=function(Y){this.settle_(1,Y)};
x.prototype.settle_=function(Y,T){if(this.state_!=0)throw Error("n`"+Y+"`"+T+"`"+this.state_);this.state_=Y;this.result_=T;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
x.prototype.scheduleUnhandledRejectionCheck_=function(){var Y=this;X(function(){if(Y.notifyUnhandledRejection_()){var T=_.v2.console;typeof T!=="undefined"&&T.error(Y.result_)}},1)};
x.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var Y=_.v2.CustomEvent,T=_.v2.Event,V=_.v2.dispatchEvent;if(typeof V==="undefined")return!0;typeof Y==="function"?Y=new Y("unhandledrejection",{cancelable:!0}):typeof T==="function"?Y=new T("unhandledrejection",{cancelable:!0}):(Y=_.v2.document.createEvent("CustomEvent"),Y.initCustomEvent("unhandledrejection",!1,!0,Y));Y.promise=this;Y.reason=this.result_;return V(Y)};
x.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var Y=0;Y<this.onSettledCallbacks_.length;++Y)J.asyncExecute(this.onSettledCallbacks_[Y]);this.onSettledCallbacks_=null}};
var J=new L;x.prototype.settleSameAsPromise_=function(Y){var T=this.createResolveAndReject_();Y.callWhenSettled_(T.resolve,T.reject)};
x.prototype.settleSameAsThenable_=function(Y,T){var V=this.createResolveAndReject_();try{Y.call(T,V.resolve,V.reject)}catch(E){V.reject(E)}};
x.prototype.then=function(Y,T){function V(b,S){return typeof b=="function"?function(w){try{E(b(w))}catch(l){n(l)}}:S}
var E,n,t=new x(function(b,S){E=b;n=S});
this.callWhenSettled_(V(Y,E),V(T,n));return t};
x.prototype.catch=function(Y){return this.then(void 0,Y)};
x.prototype.callWhenSettled_=function(Y,T){function V(){switch(E.state_){case 1:Y(E.result_);break;case 2:T(E.result_);break;default:throw Error("o`"+E.state_);}}
var E=this;this.onSettledCallbacks_==null?J.asyncExecute(V):this.onSettledCallbacks_.push(V);this.isRejectionHandled_=!0};
x.resolve=O;x.reject=function(Y){return new x(function(T,V){V(Y)})};
x.race=function(Y){return new x(function(T,V){for(var E=_.d(Y),n=E.next();!n.done;n=E.next())O(n.value).callWhenSettled_(T,V)})};
x.all=function(Y){var T=_.d(Y),V=T.next();return V.done?O([]):new x(function(E,n){function t(w){return function(l){b[w]=l;S--;S==0&&E(b)}}
var b=[],S=0;do b.push(void 0),S++,O(V.value).callWhenSettled_(t(b.length-1),n),V=T.next();while(!V.done)})};
return x});
var xz=function(A,L,O){if(A==null)throw new TypeError("p`"+O);if(L instanceof RegExp)throw new TypeError("q`"+O);return A+""};
Ur("String.prototype.startsWith",function(A){return A?A:function(L,O){var X=xz(this,L,"startsWith"),x=X.length,J=L.length;O=Math.max(0,Math.min(O|0,X.length));for(var Y=0;Y<J&&O<x;)if(X[O++]!=L[Y++])return!1;return Y>=J}});
Ur("Object.setPrototypeOf",function(A){return A||vw});
Ur("Symbol.dispose",function(A){return A?A:Symbol("r")});
Ur("SuppressedError",function(A){function L(O,X,x){if(!(this instanceof L))return new L(O,X,x);x=Error(x);"stack"in x&&(this.stack=x.stack);this.message=x.message;this.error=O;this.suppressed=X}
if(A)return A;_.g(L,Error);L.prototype.name="SuppressedError";return L});
var uXO=function(A,L,O){A instanceof String&&(A=String(A));for(var X=A.length,x=0;x<X;x++){var J=A[x];if(L.call(O,J,x,A))return{i:x,v:J}}return{i:-1,v:void 0}};
Ur("Array.prototype.find",function(A){return A?A:function(L,O){return uXO(this,L,O).v}});
Ur("WeakMap",function(A){function L(){}
function O(V){var E=typeof V;return E==="object"&&V!==null||E==="function"}
function X(V){if(!Ls(V,J)){var E=new L;BeM(V,J,{value:E})}}
function x(V){var E=Object[V];E&&(Object[V]=function(n){if(n instanceof L)return n;Object.isExtensible(n)&&X(n);return E(n)})}
if(function(){if(!A||!Object.seal)return!1;try{var V=Object.seal({}),E=Object.seal({}),n=new A([[V,2],[E,3]]);if(n.get(V)!=2||n.get(E)!=3)return!1;n.delete(V);n.set(E,4);return!n.has(V)&&n.get(E)==4}catch(t){return!1}}())return A;
var J="$jscomp_hidden_"+Math.random();x("freeze");x("preventExtensions");x("seal");var Y=0,T=function(V){this.JSC$9787_id_=(Y+=Math.random()+1).toString();if(V){V=_.d(V);for(var E;!(E=V.next()).done;)E=E.value,this.set(E[0],E[1])}};
T.prototype.set=function(V,E){if(!O(V))throw Error("s");X(V);if(!Ls(V,J))throw Error("t`"+V);V[J][this.JSC$9787_id_]=E;return this};
T.prototype.get=function(V){return O(V)&&Ls(V,J)?V[J][this.JSC$9787_id_]:void 0};
T.prototype.has=function(V){return O(V)&&Ls(V,J)&&Ls(V[J],this.JSC$9787_id_)};
T.prototype.delete=function(V){return O(V)&&Ls(V,J)&&Ls(V[J],this.JSC$9787_id_)?delete V[J][this.JSC$9787_id_]:!1};
return T});
Ur("Map",function(A){if(function(){if(!A||typeof A!="function"||!A.prototype.entries||typeof Object.seal!="function")return!1;try{var T=Object.seal({x:4}),V=new A(_.d([[T,"s"]]));if(V.get(T)!="s"||V.size!=1||V.get({x:4})||V.set({x:4},"t")!=V||V.size!=2)return!1;var E=V.entries(),n=E.next();if(n.done||n.value[0]!=T||n.value[1]!="s")return!1;n=E.next();return n.done||n.value[0].x!=4||n.value[1]!="t"||!E.next().done?!1:!0}catch(t){return!1}}())return A;
var L=new WeakMap,O=function(T){this[0]={};this[1]=J();this.size=0;if(T){T=_.d(T);for(var V;!(V=T.next()).done;)V=V.value,this.set(V[0],V[1])}};
O.prototype.set=function(T,V){T=T===0?0:T;var E=X(this,T);E.list||(E.list=this[0][E.id]=[]);E.entry?E.entry.value=V:(E.entry={next:this[1],previous:this[1].previous,head:this[1],key:T,value:V},E.list.push(E.entry),this[1].previous.next=E.entry,this[1].previous=E.entry,this.size++);return this};
O.prototype.delete=function(T){T=X(this,T);return T.entry&&T.list?(T.list.splice(T.index,1),T.list.length||delete this[0][T.id],T.entry.previous.next=T.entry.next,T.entry.next.previous=T.entry.previous,T.entry.head=null,this.size--,!0):!1};
O.prototype.clear=function(){this[0]={};this[1]=this[1].previous=J();this.size=0};
O.prototype.has=function(T){return!!X(this,T).entry};
O.prototype.get=function(T){return(T=X(this,T).entry)&&T.value};
O.prototype.entries=function(){return x(this,function(T){return[T.key,T.value]})};
O.prototype.keys=function(){return x(this,function(T){return T.key})};
O.prototype.values=function(){return x(this,function(T){return T.value})};
O.prototype.forEach=function(T,V){for(var E=this.entries(),n;!(n=E.next()).done;)n=n.value,T.call(V,n[1],n[0],this)};
O.prototype[Symbol.iterator]=O.prototype.entries;var X=function(T,V){var E=V&&typeof V;E=="object"||E=="function"?L.has(V)?E=L.get(V):(E=""+ ++Y,L.set(V,E)):E="p_"+V;var n=T[0][E];if(n&&Ls(T[0],E))for(T=0;T<n.length;T++){var t=n[T];if(V!==V&&t.key!==t.key||V===t.key)return{id:E,list:n,index:T,entry:t}}return{id:E,list:n,index:-1,entry:void 0}},x=function(T,V){var E=T[1];
return $hp(function(){if(E){for(;E.head!=T[1];)E=E.previous;for(;E.next!=E.head;)return E=E.next,{done:!1,value:V(E)};E=null}return{done:!0,value:void 0}})},J=function(){var T={};
return T.previous=T.next=T.head=T},Y=0;
return O});
Ur("Set",function(A){if(function(){if(!A||typeof A!="function"||!A.prototype.entries||typeof Object.seal!="function")return!1;try{var O=Object.seal({x:4}),X=new A(_.d([O]));if(!X.has(O)||X.size!=1||X.add(O)!=X||X.size!=1||X.add({x:4})!=X||X.size!=2)return!1;var x=X.entries(),J=x.next();if(J.done||J.value[0]!=O||J.value[1]!=O)return!1;J=x.next();return J.done||J.value[0]==O||J.value[0].x!=4||J.value[1]!=J.value[0]?!1:x.next().done}catch(Y){return!1}}())return A;
var L=function(O){this.JSC$9801_map_=new Map;if(O){O=_.d(O);for(var X;!(X=O.next()).done;)this.add(X.value)}this.size=this.JSC$9801_map_.size};
L.prototype.add=function(O){O=O===0?0:O;this.JSC$9801_map_.set(O,O);this.size=this.JSC$9801_map_.size;return this};
L.prototype.delete=function(O){O=this.JSC$9801_map_.delete(O);this.size=this.JSC$9801_map_.size;return O};
L.prototype.clear=function(){this.JSC$9801_map_.clear();this.size=0};
L.prototype.has=function(O){return this.JSC$9801_map_.has(O)};
L.prototype.entries=function(){return this.JSC$9801_map_.entries()};
L.prototype.values=function(){return this.JSC$9801_map_.values()};
L.prototype.keys=L.prototype.values;L.prototype[Symbol.iterator]=L.prototype.values;L.prototype.forEach=function(O,X){var x=this;this.JSC$9801_map_.forEach(function(J){return O.call(X,J,J,x)})};
return L});
Ur("Math.log2",function(A){return A?A:function(L){return Math.log(L)/Math.LN2}});
Ur("Object.values",function(A){return A?A:function(L){var O=[],X;for(X in L)Ls(L,X)&&O.push(L[X]);return O}});
Ur("Object.is",function(A){return A?A:function(L,O){return L===O?L!==0||1/L===1/O:L!==L&&O!==O}});
Ur("Array.prototype.includes",function(A){return A?A:function(L,O){var X=this;X instanceof String&&(X=String(X));var x=X.length;O=O||0;for(O<0&&(O=Math.max(O+x,0));O<x;O++){var J=X[O];if(J===L||Object.is(J,L))return!0}return!1}});
Ur("String.prototype.includes",function(A){return A?A:function(L,O){return xz(this,L,"includes").indexOf(L,O||0)!==-1}});
Ur("Array.from",function(A){return A?A:function(L,O,X){O=O!=null?O:function(T){return T};
var x=[],J=typeof Symbol!="undefined"&&Symbol.iterator&&L[Symbol.iterator];if(typeof J=="function"){L=J.call(L);for(var Y=0;!(J=L.next()).done;)x.push(O.call(X,J.value,Y++))}else for(J=L.length,Y=0;Y<J;Y++)x.push(O.call(X,L[Y],Y));return x}});
Ur("Object.entries",function(A){return A?A:function(L){var O=[],X;for(X in L)Ls(L,X)&&O.push([X,L[X]]);return O}});
Ur("Number.isFinite",function(A){return A?A:function(L){return typeof L!=="number"?!1:!isNaN(L)&&L!==Infinity&&L!==-Infinity}});
Ur("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
Ur("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
Ur("Number.isInteger",function(A){return A?A:function(L){return Number.isFinite(L)?L===Math.floor(L):!1}});
Ur("Number.isSafeInteger",function(A){return A?A:function(L){return Number.isInteger(L)&&Math.abs(L)<=Number.MAX_SAFE_INTEGER}});
Ur("String.prototype.endsWith",function(A){return A?A:function(L,O){var X=xz(this,L,"endsWith");O===void 0&&(O=X.length);O=Math.max(0,Math.min(O|0,X.length));for(var x=L.length;x>0&&O>0;)if(X[--O]!=L[--x])return!1;return x<=0}});
var TYs=function(A,L){A instanceof String&&(A+="");var O=0,X=!1,x={next:function(){if(!X&&O<A.length){var J=O++;return{value:L(J,A[J]),done:!1}}X=!0;return{done:!0,value:void 0}}};
x[Symbol.iterator]=function(){return x};
return x};
Ur("Array.prototype.entries",function(A){return A?A:function(){return TYs(this,function(L,O){return[L,O]})}});
Ur("Math.trunc",function(A){return A?A:function(L){L=Number(L);if(isNaN(L)||L===Infinity||L===-Infinity||L===0)return L;var O=Math.floor(Math.abs(L));return L<0?-O:O}});
Ur("Number.isNaN",function(A){return A?A:function(L){return typeof L==="number"&&isNaN(L)}});
Ur("Array.prototype.keys",function(A){return A?A:function(){return TYs(this,function(L){return L})}});
Ur("Array.prototype.values",function(A){return A?A:function(){return TYs(this,function(L,O){return O})}});
Ur("Array.prototype.fill",function(A){return A?A:function(L,O,X){var x=this.length||0;O<0&&(O=Math.max(0,x+O));if(X==null||X>x)X=x;X=Number(X);X<0&&(X=Math.max(0,x+X));for(O=Number(O||0);O<X;O++)this[O]=L;return this}});
var si=function(A){return A?A:Array.prototype.fill};
Ur("Int8Array.prototype.fill",si);Ur("Uint8Array.prototype.fill",si);Ur("Uint8ClampedArray.prototype.fill",si);Ur("Int16Array.prototype.fill",si);Ur("Uint16Array.prototype.fill",si);Ur("Int32Array.prototype.fill",si);Ur("Uint32Array.prototype.fill",si);Ur("Float32Array.prototype.fill",si);Ur("Float64Array.prototype.fill",si);
Ur("Object.fromEntries",function(A){return A?A:function(L){var O={};if(!(Symbol.iterator in L))throw new TypeError("u`"+L);L=L[Symbol.iterator].call(L);for(var X=L.next();!X.done;X=L.next()){X=X.value;if(Object(X)!==X)throw new TypeError("v");O[X[0]]=X[1]}return O}});
Ur("String.prototype.replaceAll",function(A){return A?A:function(L,O){if(L instanceof RegExp&&!L.global)throw new TypeError("w");return L instanceof RegExp?this.replace(L,O):this.replace(new RegExp(String(L).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),O)}});
Ur("Object.getOwnPropertySymbols",function(A){return A?A:function(){return[]}});
Ur("String.prototype.repeat",function(A){return A?A:function(L){var O=xz(this,null,"repeat");if(L<0||L>1342177279)throw new RangeError("x");L|=0;for(var X="";L;)if(L&1&&(X+=O),L>>>=1)O+=O;return X}});
Ur("Array.prototype.findIndex",function(A){return A?A:function(L,O){return uXO(this,L,O).i}});
Ur("Array.prototype.flatMap",function(A){return A?A:function(L,O){var X=[];Array.prototype.forEach.call(this,function(x,J){x=L.call(O,x,J,this);Array.isArray(x)?X.push.apply(X,x):X.push(x)});
return X}});
Ur("String.prototype.codePointAt",function(A){return A?A:function(L){var O=xz(this,null,"codePointAt"),X=O.length;L=Number(L)||0;if(L>=0&&L<X){L|=0;var x=O.charCodeAt(L);if(x<55296||x>56319||L+1===X)return x;L=O.charCodeAt(L+1);return L<56320||L>57343?x:(x-55296)*1024+L+9216}}});
Ur("String.fromCodePoint",function(A){return A?A:function(L){for(var O="",X=0;X<arguments.length;X++){var x=Number(arguments[X]);if(x<0||x>1114111||x!==Math.floor(x))throw new RangeError("y`"+x);x<=65535?O+=String.fromCharCode(x):(x-=65536,O+=String.fromCharCode(x>>>10&1023|55296),O+=String.fromCharCode(x&1023|56320))}return O}});
Ur("String.prototype.trimLeft",function(A){function L(){return this.replace(/^[\s\xa0]+/,"")}
return A||L});
Ur("String.prototype.trimStart",function(A){return A||String.prototype.trimLeft});
Ur("String.prototype.padStart",function(A){return A?A:function(L,O){var X=xz(this,null,"padStart");L-=X.length;O=O!==void 0?String(O):" ";return(L>0&&O?O.repeat(Math.ceil(L/O.length)).substring(0,L):"")+X}});
Ur("Promise.prototype.finally",function(A){return A?A:function(L){return this.then(function(O){return Promise.resolve(L()).then(function(){return O})},function(O){return Promise.resolve(L()).then(function(){throw O;
})})}});
Ur("Math.imul",function(A){return A?A:function(L,O){L=Number(L);O=Number(O);var X=L&65535,x=O&65535;return X*x+((L>>>16&65535)*x+X*(O>>>16&65535)<<16>>>0)|0}});
Ur("Object.hasOwn",function(A){return A?A:function(L,O){return Object.prototype.hasOwnProperty.call(L,O)}});
Ur("Math.sign",function(A){return A?A:function(L){L=Number(L);return L===0||isNaN(L)?L:L>0?1:-1}});
Ur("Array.prototype.flat",function(A){return A?A:function(L){L=L===void 0?1:L;var O=[];Array.prototype.forEach.call(this,function(X){Array.isArray(X)&&L>0?(X=Array.prototype.flat.call(X,L-1),O.push.apply(O,X)):O.push(X)});
return O}});
Ur("String.raw",function(A){return A?A:function(L,O){if(L==null)throw new TypeError("z");for(var X=L.raw,x=X.length,J="",Y=0;Y<x;++Y)J+=X[Y],Y+1<x&&Y+1<arguments.length&&(J+=String(arguments[Y+1]));return J}});
Ur("Reflect.ownKeys",function(A){return A?A:function(L){var O=[],X=Object.getOwnPropertyNames(L);L=Object.getOwnPropertySymbols(L);for(var x=0;x<X.length;x++)(X[x].substring(0,14)=="jscomp_symbol_"?L:O).push(X[x]);return O.concat(L)}});
Ur("Object.getOwnPropertyDescriptors",function(A){return A?A:function(L){for(var O={},X=Reflect.ownKeys(L),x=0;x<X.length;x++)O[X[x]]=Object.getOwnPropertyDescriptor(L,X[x]);return O}});
Ur("WeakSet",function(A){if(function(){if(!A||!Object.seal)return!1;try{var O=Object.seal({}),X=Object.seal({}),x=new A([O]);if(!x.has(O)||x.has(X))return!1;x.delete(O);x.add(X);return!x.has(O)&&x.has(X)}catch(J){return!1}}())return A;
var L=function(O){this.JSC$9808_map_=new WeakMap;if(O){O=_.d(O);for(var X;!(X=O.next()).done;)this.add(X.value)}};
L.prototype.add=function(O){this.JSC$9808_map_.set(O,!0);return this};
L.prototype.has=function(O){return this.JSC$9808_map_.has(O)};
L.prototype.delete=function(O){return this.JSC$9808_map_.delete(O)};
return L});
Ur("Promise.allSettled",function(A){function L(X){return{status:"fulfilled",value:X}}
function O(X){return{status:"rejected",reason:X}}
return A?A:function(X){var x=this;X=Array.from(X,function(J){return x.resolve(J).then(L,O)});
return x.all(X)}});
Ur("Number.parseInt",function(A){return A||parseInt});
_._DumpException=window._DumpException||function(A){throw A;};
window._DumpException=_._DumpException;var V2r,JW,PM,dA,Ds_,e8u,EYe,nYd,pJ,t2p;V2r=V2r||{};_.Ou=this||self;_.oZ=function(A,L,O){A=A.split(".");O=O||_.Ou;for(var X;A.length&&(X=A.shift());)A.length||L===void 0?O[X]&&O[X]!==Object.prototype[X]?O=O[X]:O=O[X]={}:O[X]=L};
JW=function(A,L){var O=_.WY("WIZ_global_data.oxN3nb");A=O&&O[A];return A!=null?A:L};
PM=_.Ou._F_toggles_default_kevlar_base||[];dA=function(){};
dA.get=function(){return null};
_.WY=function(A,L){A=A.split(".");L=L||_.Ou;for(var O=0;O<A.length;O++)if(L=L[A[O]],L==null)return null;return L};
_.Yz=function(A){A.instance_=void 0;A.getInstance=function(){return A.instance_?A.instance_:A.instance_=new A}};
_.Hn=function(A){var L=typeof A;return L!="object"?L:A?Array.isArray(A)?"array":L:"null"};
_.jD=function(A){var L=_.Hn(A);return L=="array"||L=="object"&&typeof A.length=="number"};
_.BJ=function(A){var L=typeof A;return L=="object"&&A!=null||L=="function"};
_.$e=function(A){return Object.prototype.hasOwnProperty.call(A,Ds_)&&A[Ds_]||(A[Ds_]=++e8u)};
Ds_="closure_uid_"+(Math.random()*1E9>>>0);e8u=0;EYe=function(A,L,O){return A.call.apply(A.bind,arguments)};
nYd=function(A,L,O){if(!A)throw Error();if(arguments.length>2){var X=Array.prototype.slice.call(arguments,2);return function(){var x=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(x,X);return A.apply(L,x)}}return function(){return A.apply(L,arguments)}};
_.is=function(A,L,O){_.is=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?EYe:nYd;return _.is.apply(null,arguments)};
_.Sm=function(A,L){var O=Array.prototype.slice.call(arguments,1);return function(){var X=O.slice();X.push.apply(X,arguments);return A.apply(this,X)}};
_.u1=function(){return Date.now()};
pJ=function(A){return A};
_.Ty=function(A,L){function O(){}
O.prototype=L.prototype;A.superClass_=L.prototype;A.prototype=new O;A.prototype.constructor=A;A.base=function(X,x,J){for(var Y=Array(arguments.length-2),T=2;T<arguments.length;T++)Y[T-2]=arguments[T];return L.prototype[x].apply(X,Y)}};
t2p=function(A){return A};var bUD,h8P;_.I=function(A,L,O,X){var x=arguments.length,J=x<3?L:X===null?X=Object.getOwnPropertyDescriptor(L,O):X,Y;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")J=Reflect.decorate(A,L,O,X);else for(var T=A.length-1;T>=0;T--)if(Y=A[T])J=(x<3?Y(J):x>3?Y(L,O,J):Y(L,O))||J;x>3&&J&&Object.defineProperty(L,O,J)};
_.Z=function(A,L){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(A,L)};
bUD=function(A,L){if(L!==null&&L!==void 0){if(typeof L!=="object"&&typeof L!=="function")throw new TypeError("A");if(O===void 0){if(!Symbol.dispose)throw new TypeError("C");var O=L[Symbol.dispose]}if(typeof O!=="function")throw new TypeError("D");A.stack.push({value:L,dispose:O,async:!1})}return L};
h8P=function(A){function L(J){A.error=A.hasError?new SuppressedError(J,A.error,"An error was suppressed during disposal."):J;A.hasError=!0}
function O(){for(;X=A.stack.pop();)try{if(!X.async&&x===1)return x=0,A.stack.push(X),Promise.resolve().then(O);if(X.dispose){var J=X.dispose.call(X.value);if(X.async)return x|=2,Promise.resolve(J).then(O,function(Y){L(Y);return O()})}else x|=1}catch(Y){L(Y)}if(x===1)return A.hasError?Promise.reject(A.error):Promise.resolve();
if(A.hasError)throw A.error;}
var X,x=0;O()};_.Ty(_.As,Error);_.As.prototype.name="CustomError";var SqP;var qqJ=void 0,gYJ,wlP=typeof TextDecoder!=="undefined",XJs,O9_=typeof String.prototype.isWellFormed==="function",LMu=typeof TextEncoder!=="undefined";var ply;_.wX=function(A){for(var L=[],O=0,X=0;X<A.length;X++){var x=A.charCodeAt(X);x<128?L[O++]=x:(x<2048?L[O++]=x>>6|192:((x&64512)==55296&&X+1<A.length&&(A.charCodeAt(X+1)&64512)==56320?(x=65536+((x&1023)<<10)+(A.charCodeAt(++X)&1023),L[O++]=x>>18|240,L[O++]=x>>12&63|128):L[O++]=x>>12|224,L[O++]=x>>6&63|128),L[O++]=x&63|128)}return L};
ply=function(A){for(var L=[],O=0,X=0;O<A.length;){var x=A[O++];if(x<128)L[X++]=String.fromCharCode(x);else if(x>191&&x<224){var J=A[O++];L[X++]=String.fromCharCode((x&31)<<6|J&63)}else if(x>239&&x<365){J=A[O++];var Y=A[O++],T=A[O++];x=((x&7)<<18|(J&63)<<12|(Y&63)<<6|T&63)-65536;L[X++]=String.fromCharCode(55296+(x>>10));L[X++]=String.fromCharCode(56320+(x&1023))}else J=A[O++],Y=A[O++],L[X++]=String.fromCharCode((x&15)<<12|(J&63)<<6|Y&63)}return L.join("")};var De=String.prototype.trim?function(A){return A.trim()}:function(A){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(A)[1]},iU9=/&/g,NYe=/</g,ruy=/>/g,Ktr=/"/g,Gl9=/'/g,lpe=/\x00/g,cur=/[\x00&<>"']/;var Vt=!!(PM[0]>>15&1),C2e=!!(PM[0]&1024),Ftp=!!(PM[0]>>16&1),R8d=!!(PM[0]&8),Qgy=!!(PM[0]&2),msJ=!!(PM[0]&4),fps=!!(PM[0]&16),Ipd=!!(PM[0]&128);var yus=JW(1,!0),br=Vt?Ftp:JW(610401301,!1),ZUu=Vt?R8d:JW(772657768,!1),jgp=Vt?Qgy:JW(513659523,!1),Wtu=Vt?C2e||!msJ:JW(568333945,yus),R5_=Vt?fps:JW(1331761403,!1),EXp=Vt?C2e||!Ipd:JW(748402147,yus);var hs,HUs=_.Ou.navigator;hs=HUs?HUs.userAgentData||null:null;var B1;_.Q_=function(A,L){return Array.prototype.indexOf.call(A,L,void 0)};
_.BY=function(A,L,O){Array.prototype.forEach.call(A,L,O)};
_.DF=function(A,L,O){return Array.prototype.filter.call(A,L,O)};
_.cT=function(A,L,O){return Array.prototype.map.call(A,L,O)};
B1=function(A,L,O){return Array.prototype.some.call(A,L,O)};
_.OPe=function(A,L,O){return Array.prototype.every.call(A,L,O)};var eX=function(A){eX[" "](A);return A};
eX[" "]=function(){};
var pTp=function(A,L){try{return eX(A[L]),!0}catch(O){}return!1},tYs=function(A,L,O,X){X=X?X(L):L;
return Object.prototype.hasOwnProperty.call(A,X)?A[X]:A[X]=O(L)};var z8e,Ut,BYy,M2M,apr,klO,A_u,UsM,vY_,oYP,Lv,LYe,OQd,JqJ,PDy,dCd;_.z_9=function(){return _.Ou.navigator||null};
z8e=Prs();_.Ei=dyy();Ut=qy("Edge");BYy=Ut||_.Ei;_.ns=qy("Gecko")&&!(_.V_(_.n9(),"WebKit")&&!qy("Edge"))&&!(qy("Trident")||qy("MSIE"))&&!qy("Edge");_.tW=_.V_(_.n9(),"WebKit")&&!qy("Edge");M2M=_.tW&&qy("Mobile");_.$sd=_.tDP();apr=_.b9e();klO=(GO()?hs.platform==="Linux":qy("Linux"))||_.hP_();A_u=_.Ees();UsM=neM();vY_=qy("iPad");oYP=qy("iPod");_.Aqe=_.lr();Lv=_.V_(_.n9(),"KaiOS");LYe=function(){var A=_.Ou.document;return A?A.documentMode:void 0};
a:{var Xpp="",xCr=function(){var A=_.n9();if(_.ns)return/rv:([^\);]+)(\)|;)/.exec(A);if(Ut)return/Edge\/([\d\.]+)/.exec(A);if(_.Ei)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(A);if(_.tW)return/WebKit\/(\S+)/.exec(A);if(z8e)return/(?:Version)[ \/]?(\S+)/.exec(A)}();
xCr&&(Xpp=xCr?xCr[1]:"");if(_.Ei){var sAe=LYe();if(sAe!=null&&sAe>parseFloat(Xpp)){OQd=String(sAe);break a}}OQd=Xpp}JqJ=OQd;PDy={};_.b1=function(A){return tYs(PDy,A,function(){return _.Eu(JqJ,A)>=0})};
if(_.Ou.document&&_.Ei){var YAe=LYe();dCd=YAe?YAe:parseInt(JqJ,10)||void 0}else dCd=void 0;_.ujr=dCd;var qey,gBu,THe;_.hW=Ny();qey=neM()||qy("iPod");gBu=qy("iPad");THe=_.Tue();_.SX=_.K9();_.fe=_.upe()&&!_.lr();var VTd,qK,jos,sfe,ere,DCp;VTd={};qK=null;jos=_.ns||_.tW||typeof _.Ou.btoa=="function";_.NQ=function(A,L){L===void 0&&(L=0);DCp();L=VTd[L];for(var O=Array(Math.floor(A.length/3)),X=L[64]||"",x=0,J=0;x<A.length-2;x+=3){var Y=A[x],T=A[x+1],V=A[x+2],E=L[Y>>2];Y=L[(Y&3)<<4|T>>4];T=L[(T&15)<<2|V>>6];V=L[V&63];O[J++]=E+Y+T+V}E=0;V=X;switch(A.length-x){case 2:E=A[x+1],V=L[(E&15)<<2]||X;case 1:A=A[x],O[J]=L[A>>2]+L[(A&3)<<4|E>>4]+V+X}return O.join("")};
sfe=function(A){var L="";ere(A,function(O){L+=String.fromCharCode(O)});
return L};
_.Dmd=function(A){var L=[];ere(A,function(O){L.push(O)});
return L};
_.ke=function(A){var L=A.length,O=L*3/4;O%3?O=Math.floor(O):_.TO("=.",A[L-1])&&(O=_.TO("=.",A[L-2])?O-2:O-1);var X=new Uint8Array(O),x=0;ere(A,function(J){X[x++]=J});
return x!==O?X.subarray(0,x):X};
ere=function(A,L){function O(V){for(;X<A.length;){var E=A.charAt(X++),n=qK[E];if(n!=null)return n;if(!_.Ye(E))throw Error("H`"+E);}return V}
DCp();for(var X=0;;){var x=O(-1),J=O(0),Y=O(64),T=O(64);if(T===64&&x===-1)break;L(x<<2|J>>4);Y!=64&&(L(J<<4&240|Y>>2),T!=64&&L(Y<<6&192|T))}};
DCp=function(){if(!qK){qK={};for(var A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),L=["+/=","+/","-_=","-_.","-_"],O=0;O<5;O++){var X=A.concat(L[O].split(""));VTd[O]=X;for(var x=0;x<X.length;x++){var J=X[x];qK[J]===void 0&&(qK[J]=x)}}}};var zPD=typeof Uint8Array!=="undefined",FMu=!_.Ei&&typeof btoa==="function",RPs=/[-_.]/g,csu={"-":"+",_:"/",".":"="},iH={};var qN,nGM;qN=function(A,L){if(L!==iH)throw Error("J");this.JSC$9838_value_=A;if(A!=null&&A.length===0)throw Error("I");};
_.rJ=function(){return EGd||(EGd=new qN(null,iH))};
nGM=function(A){return new Uint8Array(fSe(A)||0)};
qN.prototype.isEmpty=function(){return this.JSC$9838_value_==null};
qN.prototype.sizeBytes=function(){var A=fSe(this);return A?A.length:0};
var fSe=function(A){if(iH!==iH)throw Error("J");var L=A.JSC$9838_value_;L==null||zPD&&L!=null&&L instanceof Uint8Array||(typeof L==="string"?L=QdM(L):(_.Hn(L),L=null));return L==null?L:A.JSC$9838_value_=L},EGd;var feO=void 0;var Og=typeof Symbol==="function"&&typeof Symbol()==="symbol",tTu=Ac("jas",void 0,!0),R7D=Ac(void 0,"0di"),a7=Ac(void 0,"1oa"),iJ=Ac(void 0,Symbol()),UNp=Ac(void 0,"0ub"),oVe=Ac(void 0,"0ubs"),tgp=Ac(void 0,"0ubsb"),tZP=Ac(void 0,"0actk"),nJ=Ac("m_m","messagePrototypeMarker",!0),Yzy=Ac(void 0,"vps"),$N_=Ac();var Z9M,ysr,yM,bQy;Z9M={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};ysr=Object.defineProperties;_.sg=Og?tTu:"internalArrayState";bQy=[];Jc(bQy,7);yM=Object.freeze(bQy);var tk={},uH={},hre=function(A,L,O){this.iterable=A;this.mapper=L;this.thisArg=O};
hre.prototype.next=function(){var A=this.iterable.next();A.done||(A.value=this.mapper.call(this.thisArg,A.value));return A};
hre.prototype[Symbol.iterator]=function(){return this};
var SAe=Object.freeze({}),lH={};_.qA9=FL(function(A){return A!==null&&A!==void 0});var UyO=FL(function(A){return typeof A==="number"}),kOy=FL(function(A){return typeof A==="string"}),oe9=FL(function(A){return typeof A==="boolean"}),gGu=FL(function(A){return A!=null&&typeof A==="object"&&typeof A.then==="function"}),zn9=FL(function(A){return typeof A==="function"}),O4=FL(function(A){return!!A&&(typeof A==="object"||typeof A==="function")});var vey=typeof _.Ou.BigInt==="function"&&typeof _.Ou.BigInt(0)==="bigint";var Kls=FL(function(A){return vey?A>=wpe&&A<=ppM:A[0]==="-"?AcJ(A,iQe):AcJ(A,NHd)}),iQe=Number.MIN_SAFE_INTEGER.toString(),wpe=vey?BigInt(Number.MIN_SAFE_INTEGER):void 0,NHd=Number.MAX_SAFE_INTEGER.toString(),ppM=vey?BigInt(Number.MAX_SAFE_INTEGER):void 0;var rqJ=typeof Uint8Array.prototype.slice==="function",Qu=0,ml=0,SBe;var XM,Jk,zj,PX,TJO;XM=typeof BigInt==="function"?BigInt.asIntN:void 0;_.YX=typeof BigInt==="function"?BigInt.asUintN:void 0;Jk=Number.isSafeInteger;zj=Number.isFinite;PX=Math.trunc;TJO=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var uMJ={};var z7D={},KYr=function(){try{var A=function(){return kTO(Map,[],this.constructor)};
_.g(A,Map);eX(new A);return!1}catch(L){return!0}}(),gA=function(){this.JSC$9858_map_=new Map};
_.P=gA.prototype;_.P.get=function(A){return this.JSC$9858_map_.get(A)};
_.P.set=function(A,L){this.JSC$9858_map_.set(A,L);this.size=this.JSC$9858_map_.size;return this};
_.P.delete=function(A){A=this.JSC$9858_map_.delete(A);this.size=this.JSC$9858_map_.size;return A};
_.P.clear=function(){this.JSC$9858_map_.clear();this.size=this.JSC$9858_map_.size};
_.P.has=function(A){return this.JSC$9858_map_.has(A)};
_.P.entries=function(){return this.JSC$9858_map_.entries()};
_.P.keys=function(){return this.JSC$9858_map_.keys()};
_.P.values=function(){return this.JSC$9858_map_.values()};
_.P.forEach=function(A,L){return this.JSC$9858_map_.forEach(A,L)};
gA.prototype[Symbol.iterator]=function(){return this.entries()};
var KJ=function(){if(KYr)return Object.setPrototypeOf(gA.prototype,Map.prototype),Object.defineProperties(gA.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),gA;var A=function(){return kTO(Map,[],this.constructor)};
_.g(A,Map);return A}(),SZ=function(A,L,O,X){O=O===void 0?yce:O;
X=X===void 0?yce:X;var x=KJ.call(this)||this;x.arrayState=A[_.sg]|0;x.valueCtor=L;x.keyToApi=O;x.valueToApi=x.valueCtor?j6r:X;for(var J=0;J<A.length;J++){var Y=A[J],T=O(Y[0],!1,!0),V=Y[1];L?V===void 0&&(V=null):V=X(Y[1],!1,!0,void 0,void 0,x.arrayState);KJ.prototype.set.call(x,T,V)}return x};
_.g(SZ,KJ);var GSu=function(A){if(A.arrayState&2)throw Error("N");};
_.P=SZ.prototype;_.P.clear=function(){GSu(this);KJ.prototype.clear.call(this)};
_.P.delete=function(A){GSu(this);return KJ.prototype.delete.call(this,this.keyToApi(A,!0,!1))};
_.P.entries=function(){if(this.valueCtor){var A=KJ.prototype.keys.call(this);A=new hre(A,Wl9,this)}else A=KJ.prototype.entries.call(this);return A};
_.P.values=function(){if(this.valueCtor){var A=KJ.prototype.keys.call(this);A=new hre(A,SZ.prototype.get,this)}else A=KJ.prototype.values.call(this);return A};
_.P.forEach=function(A,L){this.valueCtor?KJ.prototype.forEach.call(this,function(O,X,x){A.call(L,x.get(X),X,x)}):KJ.prototype.forEach.call(this,A,L)};
_.P.set=function(A,L){GSu(this);A=this.keyToApi(A,!0,!1);return A==null?this:L==null?(KJ.prototype.delete.call(this,A),this):KJ.prototype.set.call(this,A,this.valueToApi(L,!0,!0,this.valueCtor,!1,this.arrayState))};
_.P.has=function(A){return KJ.prototype.has.call(this,this.keyToApi(A,!1,!1))};
_.P.get=function(A){A=this.keyToApi(A,!1,!1);var L=KJ.prototype.get.call(this,A);if(L!==void 0){var O=this.valueCtor;return O?(O=this.valueToApi(L,!1,!0,O,this.callToMutableOnAccess,this.arrayState),O!==L&&KJ.prototype.set.call(this,A,O),O):L}};
SZ.prototype[Symbol.iterator]=function(){return this.entries()};
SZ.prototype.toJSON=void 0;var H69;var XXp=function(){},L$e=function(A,L){for(var O in A)!isNaN(O)&&L(A,+O,A[O])},xQu=function(A){var L=new XXp;
L$e(A,function(O,X,x){L[X]=yu(x)});
L.reviveUnknownFields=A.reviveUnknownFields;return L},aNJ={reviveIntoImmutable:!0};var OJe;var TBr,VZs;var lOP,HX,EN,SJ,cqr,l1,bg,CDu,FYd,RH,Rrs,Qt,ZF,jX;lOP=_.R6(0);_.wA={};_.ps=function(A,L,O,X,x){L=HX(A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,L,O,x);if(L!==null||X&&A.noLegacyNull!==uH)return L};
HX=function(A,L,O,X){if(L===-1)return null;var x=L+(O?0:-1),J=A.length-1;if(!(J<1+(O?0:-1))){if(x>=J){var Y=A[J];if(Y!=null&&typeof Y==="object"&&Y.constructor===Object){O=Y[L];var T=!0}else if(x===J)O=Y;else return}else O=A[x];if(X&&O!=null){X=X(O);if(X==null)return X;if(!Object.is(X,O))return T?Y[L]=X:A[x]=X,X}return O}};
_.J4=function(A,L,O,X){R7(A);var x=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;I7(x,x[_.sg]|0,L,O,X);return A};
_.i1=function(A,L,O){A=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return CJs(A,A[_.sg]|0,L,O)!==void 0};
_.NK=function(A,L,O,X){var x=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return CJs(x,x[_.sg]|0,L,SJ(A,X,O))!==void 0};
_.Xq=function(A){return A===SAe?2:4};
_.rA=function(A,L){A=_.ps(A,L,void 0,void 0,NBp);return A==null?_.rJ():A};
EN=function(A,L,O,X){R7(A);var x=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,J=x[_.sg]|0;if(X==null){var Y=Gnu(x);if(lSs(Y,x,J,O)===L)Y.set(O,0);else return A}else J=ck_(x,J,O,L);I7(x,J,L,X);return A};
_.Ks=function(A,L,O,X){var x=A[_.sg]|0,J=C6(x);x=ck_(A,x,O,L,J);I7(A,x,L,X,J)};
SJ=function(A,L,O){return _.Gy(A,L)===O?O:-1};
_.Gy=function(A,L){A=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return lSs(Gnu(A),A,void 0,L,void 0)};
cqr=function(A,L,O){var X=A[_.sg]|0,x=C6(X),J=HX(A,O,x);if(J!=null&&J[nJ]===tk){if(!e3(J))return FM(J),J.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var Y=J.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(J)&&(Y=J);if(Y){var T=Y[_.sg]|0;T&2&&(Y=cX(Y,T))}Y=eS_(Y,L,!0);Y!==J&&I7(A,X,O,Y,x);return Y};
_.ET=function(A,L,O,X){var x=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,J=x[_.sg]|0;L=CJs(x,J,L,O,X);if(L==null)return L;J=x[_.sg]|0;if(!e3(A,J)){var Y=Z6_(L);Y!==L&&(FM(A)&&(x=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,J=x[_.sg]|0),L=Y,J=I7(x,J,O,L,X),fJ(x,J))}return L};
_.OT=function(A,L,O,X){var x=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return F$r(A,x,x[_.sg]|0,L,O,X,!1,!0)};
_.eg=function(A,L,O,X){O=RSd(O);_.J4(A,L,O,X);O&&!e3(O)&&fJ(A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return A};
_.EB=function(A,L,O,X){X=RSd(X);EN(A,L,O,X);X&&!e3(X)&&fJ(A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return A};
l1=function(A,L,O){R7(A);var X=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,x=X[_.sg]|0;if(O==null)return I7(X,x,L),A;for(var J=O===yM?7:O[_.sg]|0,Y=J,T=WX(J),V=T||Object.isFrozen(O),E=!0,n=!0,t=0;t<O.length;t++){var b=O[t];T||(b=e3(b),E&&(E=!b),n&&(n=b))}T||(J=E?13:5,J=n?J&-4097:J|4096);V&&J===Y||(O=yu(O),Y=0,J=ZS(J,x));J!==Y&&Jc(O,J);x=I7(X,x,L,O);2&J||!(4096&J||16&J)||fJ(X,x);return A};
bg=function(A,L,O,X){mQM(A,L,O,X);return A};
CDu=function(A,L,O){mQM(A,L,cM,void 0,O,1,!0);return A};
_.Cs=function(A,L,O){A=_.ps(A,L,void 0,O);L=typeof A;A=A==null?A:L==="bigint"?_.R6((0,_.YX)(64,A)):_.Bn(A)?L==="string"?_.rce(A):_.i6p(A):void 0;return A};
_.Fu=function(A,L){var O=O===void 0?!1:O;var X;return(X=_.uLe(_.ps(A,L)))!=null?X:O};
_.x8=function(A,L,O){O=O===void 0?0:O;var X;return(X=_.Ak(_.ps(A,L)))!=null?X:O};
FYd=function(A,L){var O=O===void 0?0:O;A=_.DNe(_.ps(A,L));return A!=null?A:O};
RH=function(A,L,O){O=O===void 0?lOP:O;var X;return(X=_.ccJ(_.ps(A,L)))!=null?X:O};
Rrs=function(A){var L=L===void 0?lOP:L;var O;return(O=_.Cs(A,23))!=null?O:L};
Qt=function(A,L){var O=O===void 0?0:O;var X;return(X=_.ps(A,L,void 0,void 0,_.dNp))!=null?X:O};
_.mT=function(A,L,O,X){O=O===void 0?"":O;var x;return(x=_.Ez(_.ps(A,L,X)))!=null?x:O};
_.IH=function(A,L){var O=O===void 0?0:O;var X;return(X=_.kV(_.ps(A,L)))!=null?X:O};
ZF=function(A,L){var O=O===void 0?"0":O;A=lNr(_.ps(A,L),!0);return A!=null?A:O};
jX=function(A,L,O){return _.mT(A,SJ(A,O,L))};
_.WM=function(A,L,O,X){return _.ET(A,L,SJ(A,X,O),void 0)};
_.n$=function(A,L){return _.Ez(_.ps(A,L,void 0,_.wA))};
_.dX=function(A,L,O){return _.J4(A,L,Yg_(O))};
_.GN=function(A,L,O){return _.$X(A,L,Yg_(O),!1)};
_.HM=function(A,L,O){return _.J4(A,L,_.vn(O))};
_.gT=function(A,L,O){return _.J4(A,L,sz(O))};
_.gz=function(A,L,O){return _.J4(A,L,DS(O))};
_.oG=function(A,L,O,X){return _.$X(A,L,DS(O),"",X)};
_.s$=function(A,L,O){return _.J4(A,L,O==null?O:_.a6(O))};
_.zy=function(A,L,O){return _.$X(A,L,O==null?O:_.a6(O),0)};var kX=function(A,L,O){this.buffer=A;if(O&&!L)throw Error();this.JSC$9870_isImmutable=L};var QAD=function(A,L,O,X){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$9873_start_=0;this.init(A,L,O,X)},BM,fOe,IOu,ZQ9,JEO,mCy;
_.P=QAD.prototype;_.P.init=function(A,L,O,X){var x=X===void 0?{}:X;X=x.aliasBytesFields===void 0?!1:x.aliasBytesFields;x=x.treatNewDataAsImmutable===void 0?!1:x.treatNewDataAsImmutable;this.aliasBytesFields=X;this.treatNewDataAsImmutable=x;A&&(A=ISe(A,this.treatNewDataAsImmutable),this.bytes_=A.buffer,this.bytesAreImmutable_=A.JSC$9870_isImmutable,this.JSC$9873_start_=L||0,this.end_=O!==void 0?this.JSC$9873_start_+O:this.bytes_.length,this.cursor_=this.JSC$9873_start_)};
_.P.free=function(){this.clear();mCy.length<100&&mCy.push(this)};
_.P.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$9873_start_=0;this.aliasBytesFields=!1};
_.P.reset=function(){this.cursor_=this.JSC$9873_start_};
_.P.atEnd=function(){return this.cursor_==this.end_};
_.MK=function(A,L){var O=0,X=0,x=0,J=A.bytes_,Y=A.cursor_;do{var T=J[Y++];O|=(T&127)<<x;x+=7}while(x<32&&T&128);if(x>32)for(X|=(T&127)>>4,x=3;x<32&&T&128;x+=7)T=J[Y++],X|=(T&127)<<x;BM(A,Y);if(!(T&128))return L(O>>>0,X>>>0);throw Error();};
BM=function(A,L){A.cursor_=L;if(L>A.end_)throw Error();};
_.$z=function(A){var L=A.bytes_,O=A.cursor_,X=L[O++],x=X&127;if(X&128&&(X=L[O++],x|=(X&127)<<7,X&128&&(X=L[O++],x|=(X&127)<<14,X&128&&(X=L[O++],x|=(X&127)<<21,X&128&&(X=L[O++],x|=X<<28,X&128&&L[O++]&128&&L[O++]&128&&L[O++]&128&&L[O++]&128&&L[O++]&128)))))throw Error();BM(A,O);return x};
_.aH=function(A){var L=A.bytes_,O=A.cursor_,X=L[O],x=L[O+1],J=L[O+2];L=L[O+3];BM(A,A.cursor_+4);return(X<<0|x<<8|J<<16|L<<24)>>>0};
fOe=function(A){var L=_.aH(A);A=_.aH(A);return Xnd(L,A)};
IOu=function(A){var L=_.aH(A),O=_.aH(A);A=(O>>31)*2+1;var X=O>>>20&2047;L=4294967296*(O&1048575)+L;return X==2047?L?NaN:A*Infinity:X==0?A*4.9E-324*L:A*Math.pow(2,X-1075)*(L+4503599627370496)};
_.yqe=function(A){for(var L=0,O=A.cursor_,X=O+10,x=A.bytes_;O<X;){var J=x[O++];L|=J;if((J&128)===0)return BM(A,O),!!(L&127)}throw Error();};
ZQ9=function(A,L){if(L<0)throw Error();var O=A.cursor_;L=O+L;if(L>A.end_)throw Error();A.cursor_=L;return O};
JEO=function(A,L){if(L==0)return _.rJ();var O=ZQ9(A,L);A.aliasBytesFields&&A.bytesAreImmutable_?O=A.bytes_.subarray(O,O+L):(A=A.bytes_,L=O+L,O=O===L?new Uint8Array(0):rqJ?A.slice(O,L):new Uint8Array(A.subarray(O,L)));return O.length==0?_.rJ():new qN(O,iH)};
mCy=[];var jAM=function(A,L,O,X){if(mCy.length){var x=mCy.pop();x.init(A,L,O,X);A=x}else A=new QAD(A,L,O,X);this.decoder_=A;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;this.setOptions(X)},XfM,sPe,HQu,WYp;
jAM.prototype.setOptions=function(A){A=A===void 0?{}:A;this.discardUnknownFields=A.discardUnknownFields===void 0?!1:A.discardUnknownFields};
var YBy=function(A,L,O,X){if(WYp.length){var x=WYp.pop();x.setOptions(X);x.decoder_.init(A,L,O,X);return x}return new jAM(A,L,O,X)};
jAM.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;WYp.length<100&&WYp.push(this)};
jAM.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
XfM=function(A){if(A.decoder_.atEnd())return!1;A.fieldCursor_=A.decoder_.cursor_;var L=_.$z(A.decoder_)>>>0,O=L>>>3;L&=7;if(!(L>=0&&L<=5))throw Error();if(O<1)throw Error();A.nextField_=O;A.nextWireType_=L;return!0};
sPe=function(A){switch(A.nextWireType_){case 0:A.nextWireType_!=0?sPe(A):_.yqe(A.decoder_);break;case 1:A=A.decoder_;BM(A,A.cursor_+8);break;case 2:if(A.nextWireType_!=2)sPe(A);else{var L=_.$z(A.decoder_)>>>0;A=A.decoder_;BM(A,A.cursor_+L)}break;case 5:A=A.decoder_;BM(A,A.cursor_+4);break;case 3:L=A.nextField_;do{if(!XfM(A))throw Error();if(A.nextWireType_==4){if(A.nextField_!=L)throw Error();break}sPe(A)}while(1);break;default:throw Error();}};
HQu=function(A,L,O){var X=A.decoder_.end_,x=_.$z(A.decoder_)>>>0;x=A.decoder_.cursor_+x;var J=x-X;J<=0&&(A.decoder_.end_=x,O(L,A,void 0,void 0,void 0),J=x-A.decoder_.cursor_);if(J)throw Error();A.decoder_.cursor_=x;A.decoder_.end_=X};
_.zrp=function(A){var L=_.$z(A.decoder_)>>>0;A=A.decoder_;var O=ZQ9(A,L);A=A.bytes_;if(wlP){var X=A,x;(x=gYJ)||(x=gYJ=new TextDecoder("utf-8",{fatal:!0}));L=O+L;X=O===0&&L===X.length?X:X.subarray(O,L);try{var J=x.decode(X)}catch(E){if(qqJ===void 0){try{x.decode(new Uint8Array([128]))}catch(n){}try{x.decode(new Uint8Array([97])),qqJ=!0}catch(n){qqJ=!1}}!qqJ&&(gYJ=void 0);throw E;}}else{J=O;L=J+L;O=[];for(var Y=null,T,V;J<L;)T=A[J++],T<128?O.push(T):T<224?J>=L?L9():(V=A[J++],T<194||(V&192)!==128?(J--,
L9()):O.push((T&31)<<6|V&63)):T<240?J>=L-1?L9():(V=A[J++],(V&192)!==128||T===224&&V<160||T===237&&V>=160||((x=A[J++])&192)!==128?(J--,L9()):O.push((T&15)<<12|(V&63)<<6|x&63)):T<=244?J>=L-2?L9():(V=A[J++],(V&192)!==128||(T<<28)+(V-144)>>30!==0||((x=A[J++])&192)!==128||((X=A[J++])&192)!==128?(J--,L9()):(T=(T&7)<<18|(V&63)<<12|(x&63)<<6|X&63,T-=65536,O.push((T>>10&1023)+55296,(T&1023)+56320))):L9(),O.length>=8192&&(Y=AsD(Y,O),O.length=0);J=AsD(Y,O)}return J};
_.BHp=function(A){var L=_.$z(A.decoder_)>>>0;return JEO(A.decoder_,L)};
_.MTr=function(A,L,O){var X=_.$z(A.decoder_)>>>0;for(X=A.decoder_.cursor_+X;A.decoder_.cursor_<X;)O.push(L(A.decoder_))};
WYp=[];var $Cs=function(A,L){this.JSC$9880_lo=A>>>0;this.JSC$9880_hi=L>>>0},kS_=function(A){if(!A)return aOe||(aOe=new $Cs(0,0));
if(!/^\d+$/.test(A))return null;PH_(A);return new $Cs(Qu,ml)},aOe,pfd=function(A,L){this.JSC$9882_lo=A>>>0;
this.JSC$9882_hi=L>>>0},gW9=function(A){if(!A)return UC9||(UC9=new pfd(0,0));
if(!/^-?\d+$/.test(A))return null;PH_(A);return new pfd(Qu,ml)},UC9;var Ui=function(){this.JSC$9884_buffer_=[]},wfe,vGD;
Ui.prototype.length=function(){return this.JSC$9884_buffer_.length};
Ui.prototype.end=function(){var A=this.JSC$9884_buffer_;this.JSC$9884_buffer_=[];return A};
wfe=function(A,L,O){for(;O>0||L>127;)A.JSC$9884_buffer_.push(L&127|128),L=(L>>>7|O<<25)>>>0,O>>>=7;A.JSC$9884_buffer_.push(L)};
vGD=function(A,L){for(;L>127;)A.JSC$9884_buffer_.push(L&127|128),L>>>=7;A.JSC$9884_buffer_.push(L)};
_.i_O=function(A,L){if(L>=0)vGD(A,L);else{for(var O=0;O<9;O++)A.JSC$9884_buffer_.push(L&127|128),L>>=7;A.JSC$9884_buffer_.push(1)}};
Ui.prototype.writeUint8=function(A){this.JSC$9884_buffer_.push(A>>>0&255)};
_.dw=function(A,L){A.JSC$9884_buffer_.push(L>>>0&255);A.JSC$9884_buffer_.push(L>>>8&255);A.JSC$9884_buffer_.push(L>>>16&255);A.JSC$9884_buffer_.push(L>>>24&255)};
Ui.prototype.writeInt8=function(A){this.JSC$9884_buffer_.push(A>>>0&255)};var oGu,L_,rEM,lDr;oGu=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new Ui};
L_=function(A,L){L.length!==0&&(A.blocks_.push(L),A.totalLength_+=L.length)};
_.W$_=function(A,L){_.JE(A,L,2);L=A.encoder_.end();L_(A,L);L.push(A.totalLength_);return L};
_.HJJ=function(A,L){var O=L.pop();for(O=A.totalLength_+A.encoder_.length()-O;O>127;)L.push(O&127|128),O>>>=7,A.totalLength_++;L.push(O);A.totalLength_++};
_.JE=function(A,L,O){vGD(A.encoder_,L*8+O)};
rEM=function(A,L,O){if(O!=null){switch(typeof O){case "string":kS_(O)}_.JE(A,L,1);switch(typeof O){case "number":A=A.encoder_;Lle(O);_.dw(A,Qu);_.dw(A,ml);break;case "bigint":O=BigInt.asUintN(64,O);O=new $Cs(Number(O&BigInt(4294967295)),Number(O>>BigInt(32)));A=A.encoder_;L=O.JSC$9880_hi;_.dw(A,O.JSC$9880_lo);_.dw(A,L);break;default:O=kS_(O),A=A.encoder_,L=O.JSC$9880_hi,_.dw(A,O.JSC$9880_lo),_.dw(A,L)}}};
lDr=function(A,L,O){_.JE(A,L,2);vGD(A.encoder_,O.length);L_(A,A.encoder_.end());L_(A,O)};var yku,Of9,XNs,JSu,PXu;yku=Uz();_.ASr=Uz();_.LjD=Uz();Of9=Uz();XNs=Uz();_.xk9=Uz();_.vM=Uz();_.sBr=Uz();JSu=Uz();PXu=Uz();_.dk9=Uz();_.Ywy=Uz();_.AE=function(A,L,O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A,L,O)};
_.AE.prototype.toJSON=function(){return Gn(this)};
_.AE.prototype.serialize=function(A){return JSON.stringify(Gn(this,A))};
var IDp=function(A,L){if(L==null||L=="")return new A;L=JSON.parse(L);if(!Array.isArray(L))throw Error("V");return new A(H9d(L))};
_.AE.prototype.getExtension=function(A){vVe(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,A.fieldIndex);kjP(this,A.fieldIndex);return A.ctor?A.isRepeated?A.getExtensionFn(this,A.ctor,A.fieldIndex,_.Xq(),A.JSC$9895_hasMessageId):A.getExtensionFn(this,A.ctor,A.fieldIndex,A.JSC$9895_hasMessageId):A.isRepeated?A.getExtensionFn(this,A.fieldIndex,_.Xq(),A.JSC$9895_hasMessageId):A.getExtensionFn(this,A.fieldIndex,A.defaultValue,A.JSC$9895_hasMessageId)};
_.AE.prototype.clone=function(){var A=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,L=A[_.sg]|0;return gXD(this,A,L)?qzp(this,A,!0):new this.constructor(cX(A,L,!1))};
_.AE.prototype[nJ]=tk;_.AE.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var vX=function(A,L,O){this.$$binaryReaderFn=A;this.$$binaryWriterFn=L;A=pJ(yku);this.$$isMsg=!!A&&O===A||!1},aSP=ZJy(function(A,L,O,X,x){if(A.nextWireType_!==2)return!1;
HQu(A,cqr(L,X,O),x);return!0},zSe),knu=ZJy(function(A,L,O,X,x){if(A.nextWireType_!==2)return!1;
HQu(A,cqr(L,X,O),x);return!0},zSe),Twy=Symbol(),oXp=Symbol(),O_u=Symbol(),e3u=Symbol(),Par=Symbol(),BB9,MZe;var QPM,uRu,T4e,V_e,DkJ,e0d,Eye,nyu,t_p,bfr,h0J,qw9,gye,pN9,ifd;QPM=function(A,L){var O=new oGu;EWJ(A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,O,o7(Twy,uPu,Vgy,L));L_(O,O.encoder_.end());A=new Uint8Array(O.totalLength_);L=O.blocks_;for(var X=L.length,x=0,J=0;J<X;J++){var Y=L[J];A.set(Y,x);x+=Y.length}O.blocks_=[A];return A};
uRu=_.xW(function(A,L,O){if(A.nextWireType_!==1)return!1;_.sB(L,O,IOu(A.decoder_));return!0},qBs,PXu);
T4e=_.xW(function(A,L,O,X){if(A.nextWireType_!==1)return!1;_.Ks(L,O,X,IOu(A.decoder_));return!0},qBs,PXu);
V_e=_.xW(function(A,L,O,X){if(A.nextWireType_!==5)return!1;var x=_.aH(A.decoder_);A=(x>>31)*2+1;var J=x>>>23&255;x&=8388607;_.Ks(L,O,X,J==255?x?NaN:A*Infinity:J==0?A*1.401298464324817E-45*x:A*Math.pow(2,J-150)*(x+8388608));return!0},function(A,L,O){L=_.dNp(L);
L!=null&&(_.JE(A,O,5),A=A.encoder_,O=SBe||(SBe=new DataView(new ArrayBuffer(8))),O.setFloat32(0,+L,!0),ml=0,Qu=O.getUint32(0,!0),_.dw(A,Qu))},JSu);
_.oH=_.xW(function(A,L,O){if(A.nextWireType_!==0)return!1;_.sB(L,O,_.MK(A.decoder_,xN9));return!0},_.YW,_.vM);
DkJ=_.xW(function(A,L,O){if(A.nextWireType_!==0)return!1;A=_.MK(A.decoder_,xN9);_.sB(L,O,A===0?void 0:A);return!0},_.YW,_.vM);
e0d=_.xW(function(A,L,O,X){if(A.nextWireType_!==0)return!1;_.Ks(L,O,X,_.MK(A.decoder_,xN9));return!0},_.YW,_.vM);
_.AV=_.xW(function(A,L,O){if(A.nextWireType_!==0)return!1;_.sB(L,O,_.$z(A.decoder_));return!0},Nw_,Of9);
Eye=_.xW(function(A,L,O){if(A.nextWireType_!==0)return!1;A=_.$z(A.decoder_);_.sB(L,O,A===0?void 0:A);return!0},Nw_,Of9);
nyu=_.xW(function(A,L,O,X){if(A.nextWireType_!==0)return!1;_.Ks(L,O,X,_.$z(A.decoder_));return!0},Nw_,Of9);
t_p=_.xW(function(A,L,O){if(A.nextWireType_!==1)return!1;_.sB(L,O,fOe(A.decoder_));return!0},_.KJr,_.sBr);
bfr=_.h3_(function(A,L,O){if(A.nextWireType_!==1&&A.nextWireType_!==2)return!1;L=_.K$_(L,L[_.sg]|0,O);A.nextWireType_==2?_.MTr(A,fOe,L):L.push(fOe(A.decoder_));return!0},function(A,L,O){L=_.b_d(Flr,L,!1);
if(L!=null)for(var X=0;X<L.length;X++)rEM(A,O,L[X])},_.sBr);
_.L5=_.xW(function(A,L,O){if(A.nextWireType_!==0)return!1;_.sB(L,O,_.yqe(A.decoder_));return!0},_.G2e,_.ASr);
h0J=_.xW(function(A,L,O,X){if(A.nextWireType_!==0)return!1;_.Ks(L,O,X,_.yqe(A.decoder_));return!0},_.G2e,_.ASr);
_.Ov=_.xW(function(A,L,O){if(A.nextWireType_!==2)return!1;_.sB(L,O,_.zrp(A));return!0},_.cEu,_.LjD);
_.Swp=_.xW(function(A,L,O,X){if(A.nextWireType_!==2)return!1;_.Ks(L,O,X,_.zrp(A));return!0},_.cEu,_.LjD);
qw9=_.h3_(function(A,L,O){if(A.nextWireType_!==2)return!1;A=_.zrp(A);_.K$_(L,L[_.sg]|0,O).push(A);return!0},function(A,L,O){L=_.b_d(_.Ez,L,!0);
if(L!=null)for(var X=0;X<L.length;X++){var x=A,J=O,Y=L[X];Y!=null&&lDr(x,J,xyd(Y))}},_.LjD);
gye=void 0;gye=gye===void 0?yku:gye;_.X4=new vX(function(A,L,O,X,x){if(A.nextWireType_!==2)return!1;X=eS_(void 0,X,!0);_.K$_(L,L[_.sg]|0,O).push(X);HQu(A,X,x);return!0},function(A,L,O,X,x){if(Array.isArray(L))for(var J=0;J<L.length;J++)CaD(A,L[J],O,X,x)},gye);
_.xj=ZJy(function(A,L,O,X,x,J){if(A.nextWireType_!==2)return!1;var Y=L[_.sg]|0;ck_(L,Y,J,O,C6(Y));L=cqr(L,X,O);HQu(A,L,x);return!0},CaD);
_.wNe=_.xW(function(A,L,O){if(A.nextWireType_!==2)return!1;_.sB(L,O,_.BHp(A));return!0},_.FJu,_.dk9);
pN9=_.xW(function(A,L,O,X){if(A.nextWireType_!==2)return!1;_.Ks(L,O,X,_.BHp(A));return!0},_.FJu,_.dk9);
ifd=_.xW(function(A,L,O,X){if(A.nextWireType_!==0)return!1;_.Ks(L,O,X,_.$z(A.decoder_)>>>0);return!0},function(A,L,O){L=_.DNe(L);
L!=null&&L!=null&&(_.JE(A,O,0),vGD(A.encoder_,L))},XNs);
_.sv=_.xW(function(A,L,O){if(A.nextWireType_!==0)return!1;_.sB(L,O,_.$z(A.decoder_));return!0},_.R3O,_.Ywy);var Kjy=function(){var A=N4p,L=rSp;this.fieldIndex=175237375;this.ctor=L;this.isRepeated=0;this.getExtensionFn=_.ET;this.defaultValue=void 0;this.JSC$9895_hasMessageId=A.messageId!=null?lH:void 0};
Kjy.prototype.register=function(){eX(this)};var GBO=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(GBO,_.AE);var lye=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(lye,_.AE);var jPd=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(jPd,_.AE);var cSe=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(cSe,_.AE);var CXp=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(CXp,_.AE);var Fj_=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(Fj_,_.AE);var R0y=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(R0y,_.AE);R0y.prototype.getData=function(){return _.rA(this,2)};var QBu=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(QBu,_.AE);var mkp=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(mkp,_.AE);mkp.prototype.getStyle=function(){return _.ET(this,GBO,1)};var DD=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(DD,_.AE);DD.prototype.getPayloadCase=function(){return _.Gy(this,n_)};
DD.prototype.getStyle=function(){return _.WM(this,mkp,6,n_)};
var fyD=function(){var A=new DD,L=new CXp;return _.EB(A,7,n_,L)},Iyu=function(){var A=new DD,L=new Fj_;
return _.EB(A,8,n_,L)},n_=[1,
2,3,4,5,6,7,8];var ySp=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(ySp,_.AE);var Zfu=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(Zfu,_.AE);var jBs=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(jBs,_.AE);var WjJ=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(WjJ,_.AE);var Hfr=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(Hfr,_.AE);var z0y=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(z0y,_.AE);var B4D=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(B4D,_.AE);var M_u=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(M_u,_.AE);M_u.prototype.getData=function(){return _.rA(this,2)};var $kO=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g($kO,_.AE);var Z_d=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(Z_d,_.AE);Z_d.prototype.getPayloadCase=function(){return _.Gy(this,JV)};
var JV=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var P6=function(A,L){A=Error.call(this,A);this.message=A.message;"stack"in A&&(this.stack=A.stack);this.code=L===void 0?2:L};
_.g(P6,Error);var ayJ=Promise;var kBp=function(A){this.channelPromise=A};
kBp.prototype.send=function(A,L,O){this.channelPromise.then(function(X){X.send(A,L,O)})};var Uku=function(A,L){this.data=A;this.channel=L};
Uku.prototype.reply=function(A,L,O){this.channel.send(A,L,O)};var vyP=function(A){this.JSC$9961_port_=A};
vyP.prototype.send=function(A,L,O){O=O===void 0?[]:O;var X=new MessageChannel;oyp(X.port1,L);this.JSC$9961_port_.postMessage(A,[X.port2].concat(O))};
var As3=function(A,L){oyp(A,L);return new vyP(A)},oyp=function(A,L){L&&(A.onmessage=function(O){L(new Uku(O.data,As3(O.ports[0])))})};var LMg=function(A){this.verifier_=A};
LMg.prototype.verify=function(A){return this.verifier_(A)};
var O9u=function(A){var L=Object.create(null);(typeof A==="string"?[A]:A).forEach(function(O){if(O==="null")throw Error("X");L[O]=!0});
return function(O){return L[O]===!0}};_.XJc=function(){if(!_.Ou.addEventListener||!Object.defineProperty)return!1;var A=!1,L=Object.defineProperty({},"passive",{get:function(){A=!0}});
try{var O=function(){};
_.Ou.addEventListener("test",O,L);_.Ou.removeEventListener("test",O,L)}catch(X){}return A}();var xy6;_.dk=function(A){var L=A.destination;var O=A.iframe;var X=A.origin;var x=A.channelName===void 0?"ZNWN1d":A.channelName;var J=A.onMessage===void 0?void 0:A.onMessage;A=A.onEstablished===void 0?void 0:A.onEstablished;return xy6({destination:L,getSource:function(){return O.contentWindow},
originVerifier:X instanceof LMg?X:typeof X==="function"?new LMg(X):new LMg(O9u(X)),channelName:x,onMessage:J,onEstablished:A})};
xy6=function(A){var L=A.destination;var O=A.getSource;var X=A.originVerifier;var x=A.token===void 0?void 0:A.token;var J=A.channelName;var Y=A.onMessage===void 0?void 0:A.onMessage;var T=A.onEstablished===void 0?void 0:A.onEstablished;return new kBp(new ayJ(function(V,E){var n=function(t){t.source&&t.source===O()&&X.verify(t.origin)&&(t.data.n||t.data)===J&&(L.removeEventListener("message",n,!1),x&&t.data.t!==x?E(Error("Y`"+J+"`"+x+"`"+t.data.t)):(V(As3(t.ports[0],Y)),T&&T(t)))};
L.addEventListener("message",n,!1)}))};var sdc=function(A){try{A()}catch(L){Xp(L)}};var Prc=function(A){var L=this;var O=A.getMessageType;var X=A.onUnregisteredMessage===void 0?function(){}:A.onUnregisteredMessage;
var x=A.onBeforeRegisteredMessage===void 0?function(){}:A.onBeforeRegisteredMessage;
A=A.onAfterRegisteredMessage===void 0?function(){}:A.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=O;this.onUnregisteredMessage_=X;this.onBeforeRegisteredMessage_=x;this.onAfterRegisteredMessage_=A;this.onMessage=function(J){return Jsu(L,J)}};
Prc.prototype.register=function(A,L){this.registry_.set(A,L);return this};
var Jsu=function(A,L){var O=A.getMessageType_(L.data),X=A.registry_.get(O);X?(sdc(function(){return A.onBeforeRegisteredMessage_(L,O)}),sdc(function(){return X(L)}),sdc(function(){return A.onAfterRegisteredMessage_(L,O)})):sdc(function(){return A.onUnregisteredMessage_(L,O)})};var dyN=function(A){this.JSC$9978_channel_=A},upV,TuN;
dyN.prototype.send=function(A,L,O){this.JSC$9978_channel_.send(Gn(A),L,O)};
_.YuL=function(A,L){return function(O){var X=new A(O.data);return L(new Uku(X,O.channel))}};
upV=function(A){return function(L){return A(new Uku(L.data,new dyN(L.channel)))}};
TuN=function(A,L){return upV(_.YuL(A,L))};var VD7=function(A,L,O,X){this.registry=A;this.delegate=L;this.receiveMessageConstructor=O;this.createInitMessage=X;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},yEe=function(A){var L=new Prc({getMessageType:A.getPayloadCase});
return new VD7(L,new dyN(_.dk({iframe:A.child,destination:window,origin:A.origin,channelName:A.channelName,onMessage:TuN(A.receiveMessageConstructor,L.onMessage)})),A.receiveMessageConstructor,A.createInitMessage)},Dyc=function(A,L){A.createInitMessage=L};
VD7.prototype.send=function(A){if(!this.initialised)throw new P6("Attempted to send a message before initialisation.");this.delegate.send(A)};
var ePN=function(A,L){return _.u(function(O){if(!A.initialised)throw new P6("Attempted to send a message before initialisation.");return O.return(new Promise(function(X){A.delegate.send(L,TuN(A.receiveMessageConstructor,X))}))})};
VD7.prototype.init=function(){var A=this;return _.u(function(L){if(A.initialised)throw new P6("Attempted to initialise twice. The SDK can only be initialised once.");if(A.createInitMessage!==void 0){var O=A.delegate,X=O.send,x=A.createInitMessage;var J=new lye;var Y=[].concat(_.le(A.features));J=_.zn(J,1,Y,_.a6);X.call(O,x.call(A,J))}A.initialised=!0;_.qo(L)})};
var Yj=function(A,L){if(A.initialised)throw new P6('Attempted to set up API "'+L+'" after initialisation. All APIs must be set up before initialising the SDK.');A.features.add(L);return A.registry};
_.v2.Object.defineProperties(VD7.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var Eec=function(A){this.channel=A;this.registered=!1};
Eec.prototype.update=function(A){if(this.channel.isInitialised){if(!this.registered)throw new P6("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var L=new DD;var O=new cSe;O=_.dX(O,1,A);L=_.EB(L,2,n_,O);this.channel.send(L)}else this.register();this.JSC$9992_audioEnabled=A};
Eec.prototype.register=function(){Yj(this.channel,1);this.registered=!0};
Eec.prototype.isAudioEnabled=function(){return this.JSC$9992_audioEnabled};var nel=function(A){this.channel=A};
_.P=nel.prototype;_.P.onFirstFrameReady=function(A){Yj(this.channel,2).register(11,function(L){L=_.WM(L.data,ySp,11,JV);if(!L)throw new P6("Unexpectedly nonexistent GameFirstFrameReadyEvent");A(_.mT(L,1))})};
_.P.onReady=function(A){Yj(this.channel,2).register(4,function(L){L=_.WM(L.data,jBs,4,JV);if(!L)throw new P6("Unexpectedly nonexistent GameReadyEvent");A(_.mT(L,1))})};
_.P.onLevelComplete=function(A){Yj(this.channel,2).register(5,function(L){L=_.WM(L.data,WjJ,5,JV);if(!L)throw new P6("Unexpectedly nonexistent LevelCompleteEvent");A(_.mT(L,1),_.x8(L,2))})};
_.P.onGameOver=function(A){Yj(this.channel,2).register(6,function(L){L=_.WM(L.data,Zfu,6,JV);if(!L)throw new P6("Unexpectedly nonexistent GameOverEvent");A(_.mT(L,1))})};
_.P.pause=function(){var A=this;if(!this.channel.isInitialised)return Yj(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new P6("Using unregistered Game Feature: pause.");var L=fyD();return new Promise(function(O){return _.u(function(X){if(X.nextAddress==1)return X.yield(ePN(A.channel,L),2);O();_.qo(X)})})};
_.P.resume=function(){var A=this;if(!this.channel.isInitialised)return Yj(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new P6("Using unregistered Game Feature: resume.");var L=Iyu();return new Promise(function(O){return _.u(function(X){if(X.nextAddress==1)return X.yield(ePN(A.channel,L),2);O();_.qo(X)})})};var tD7=function(A){this.channel=A};
tD7.prototype.onReady=function(A){Yj(this.channel,5).register(8,function(L){if(!_.WM(L.data,Hfr,8,JV))throw new P6("Unexpectedly nonexistent PageReadyEvent");A()})};var b9V=function(A){this.channel=A};
b9V.prototype.onChange=function(A){Yj(this.channel,3).register(7,function(L){L=_.WM(L.data,z0y,7,JV);if(!L)throw new P6("Unexpectedly nonexistent ScoreEvent");A(_.mT(L,1),_.x8(L,2))})};var hPu={load:function(){throw new P6("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new P6("Storage used, but storage.onSave() listener not set!");}},SuH=function(A){this.channel=A;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},quu=function(A){Yj(A.channel,4).register(2,hPu.load).register(3,hPu.save);
A.initialSetupDone=!0};
SuH.prototype.onLoad=function(A){this.initialSetupDone||quu(this);this.loadRegistered||(this.loadRegistered=!0,Yj(this.channel,4).register(2,function(L){var O,X,x;return _.u(function(J){if(J.nextAddress==1){O=_.WM(L.data,B4D,2,JV);if(!O)throw new P6("Unexpectedly nonexistent StorageLoad");X=_.mT(O,1);return J.yield(A(X),2)}x=J.yieldResult;var Y=L.reply,T=new DD;var V=new R0y;V=_.gz(V,1,X);V=_.J4(V,2,_.K6(x,!1));T=_.EB(T,3,n_,V);Y.call(L,T);_.qo(J)})}))};
SuH.prototype.onSave=function(A){this.initialSetupDone||quu(this);this.saveRegistered||(this.saveRegistered=!0,Yj(this.channel,4).register(3,function(L){var O,X,x;return _.u(function(J){if(J.nextAddress==1){O=_.WM(L.data,M_u,3,JV);if(!O)throw new P6("Unexpectedly nonexistent StorageSave");X=_.mT(O,1);x=nGM(O.getData());return J.yield(A(X,x),2)}var Y=L.reply,T=new DD;var V=new QBu;V=_.gz(V,1,X);T=_.EB(T,4,n_,V);Y.call(L,T);_.qo(J)})}))};var geL=function(A){this.channel=A};
geL.prototype.update=function(A){if(!this.channel.features.has(6))throw new P6("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var L=new DD,O=new mkp;A=_.eg(O,1,A);L=_.EB(L,6,n_,A);this.channel.send(L)};
geL.prototype.register=function(){Yj(this.channel,6)};var wJH=function(A){this.channel=A;this.userActivityLoggingIntervalMs=0};
wJH.prototype.onUserActivity=function(A,L){this.userActivityLoggingIntervalMs=L;Yj(this.channel,7).register(9,function(O){if(!_.WM(O.data,$kO,9,JV))throw new P6("Unexpectedly nonexistent ClickEvent");A()})};var pJj=function(A){var L=this;this.channel=A;this.init=this.channel.init.bind(this.channel);this.page=new tD7(this.channel);this.game=new nel(this.channel);this.audio=new Eec(this.channel);this.score=new b9V(this.channel);this.storage=new SuH(this.channel);this.style=new geL(this.channel);this.userActivity=new wJH(this.channel);Dyc(this.channel,function(O){var X=new jPd;O=_.eg(X,1,O);O=_.HM(O,3,L.userActivity.userActivityLoggingIntervalMs);X=L.audio.isAudioEnabled();X!==void 0&&_.dX(O,2,X);X=new DD;
return _.EB(X,5,n_,O)})};var i9H=function(){this.timedFunctionContext=0};
i9H.prototype.timeExecution=function(A,L){var O=this;return function(){var X=_.f_.apply(0,arguments);O.timedFunctionContext=A;return L.apply(null,_.le(X))}};var Nu6=function(){var A={};this.priorityTasks=(A[3]=[],A[2]=[],A[1]=[],A);this.isFlushing=!1},EO=function(A,L,O){var X=rsg(A,O);
A.priorityTasks[O].push(L);X&&A.priorityTasks[O].length===1&&A.flush()},rsg=function(A,L){return Object.keys(A.priorityTasks).map(function(O){return Number(O)}).filter(function(O){return!isNaN(O)&&O>L}).every(function(O){return A.priorityTasks[O].length===0})};
Nu6.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(A){return A.length>0});)KMg(this,3),KMg(this,2),KMg(this,1)}catch(A){throw Object.values(this.priorityTasks).forEach(function(L){return void L.splice(0,L.length)}),A;
}finally{this.isFlushing=!1}}};
var KMg=function(A,L){for(;rsg(A,L)&&A.priorityTasks[L].length>0;)A.priorityTasks[L][0](),A.priorityTasks[L].shift()};
_.v2.Object.defineProperties(Nu6.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(A){return A.length>0})}}});var aDD={};var GOj=globalThis.trustedTypes,H_D=GOj,Bwd;var q0=function(A){this.privateDoNotAccessOrElseWrappedResourceUrl=A};
q0.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var lel,csJ,Crj,FMg,RPc,Qdl,my7,fej;lel=_.AW([""]);csJ=oI(["\x00"],["\\0"]);Crj=oI(["\n"],["\\n"]);FMg=oI(["\x00"],["\\u0000"]);RPc=_.AW([""]);Qdl=oI(["\x00"],["\\0"]);my7=oI(["\n"],["\\n"]);fej=oI(["\x00"],["\\u0000"]);_.Ieg=$0O(function(A){return A(lel)})||$0O(function(A){return A(csJ)})||$0O(function(A){return A(Crj)})||$0O(function(A){return A(FMg)});
_.ysH=_.p_(RPc)&&_.p_(Qdl)&&_.p_(my7)&&_.p_(fej);var FP;_.ia=function(A,L){this.privateDoNotAccessOrElseWrappedUrl=L};
_.ia.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.Z9l=N0("about:blank");FP=N0("about:invalid#zClosurez");var k2u=function(A){this.isValid=A},jdH=new k2u(function(A){return/^[^:]*([/?#]|$)/.test(A)}),WMn=la("data"),H96=la("http"),zP3=la("https"),Buu=la("ftp"),MDu=la("mailto"),$yl=la("intent"),aeL=la("vnd.youtube"),U0J=[WMn,
H96,zP3,MDu,Buu,jdH],An_=ba(function(){return typeof URL==="function"}),kON=["data:",
"http:","https:","mailto:","ftp:"],OL9=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var ZD=function(A){this.privateDoNotAccessOrElseWrappedHtml=A};
ZD.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var eZ9=ba(function(){return new ZD(GOj?GOj.emptyHTML:"")});var Uyj={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"},xoM=function(A,L){var O=Error.call(this,A+" cannot be used with intent "+Uyj[L]);this.message=O.message;"stack"in O&&(this.stack=O.stack);this.type=A;this.intent=L;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.g(xoM,Error);_.M0=function(A){this.privateDoNotAccessOrElseWrappedScript=A};
_.M0.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var doO=function(A){this.privateDoNotAccessOrElseWrappedAttributePrefix=A};
doO.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var YJO="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var Eu9=function(A){var L=_.WY("window.location.href");A==null&&(A='Unknown Error of type "null/undefined"');if(typeof A==="string")return{message:A,name:"Unknown error",lineNumber:"Not available",fileName:L,stack:"Not available"};var O=!1;try{var X=A.lineNumber||A.line||"Not available"}catch(Y){X="Not available",O=!0}try{var x=A.fileName||A.filename||A.sourceURL||_.Ou.$googDebugFname||L}catch(Y){x="Not available",O=!0}L=veN(A);if(!(!O&&A.lineNumber&&A.fileName&&A.stack&&A.message&&A.name)){O=A.message;
if(O==null){if(A.constructor&&A.constructor instanceof Function){if(A.constructor.name)O=A.constructor.name;else if(O=A.constructor,u_[O])O=u_[O];else{O=String(O);if(!u_[O]){var J=/function\s+([^\(]+)/m.exec(O);u_[O]=J?J[1]:"[Anonymous]"}O=u_[O]}O='Unknown Error of type "'+O+'"'}else O="Unknown Error of unknown type";typeof A.toString==="function"&&Object.prototype.toString!==A.toString&&(O+=": "+A.toString())}return{message:O,name:A.name||"UnknownError",lineNumber:X,fileName:x,stack:L||"Not available"}}return{message:A.message,
name:A.name,lineNumber:A.lineNumber,fileName:A.fileName,stack:L}},veN=function(A,L){L||(L={});
L[oe6(A)]=!0;var O=A.stack||"",X=A.cause;X&&!L[oe6(X)]&&(O+="\nCaused by: ",X.stack&&X.stack.indexOf(X.toString())==0||(O+=typeof X==="string"?X:X.message+"\n"),O+=veN(X,L));A=A.errors;if(Array.isArray(A)){X=1;var x;for(x=0;x<A.length&&!(X>4);x++)L[oe6(A[x])]||(O+="\nInner error "+X++ +": ",A[x].stack&&A[x].stack.indexOf(A[x].toString())==0||(O+=typeof A[x]==="string"?A[x]:A[x].message+"\n"),O+=veN(A[x],L));x<A.length&&(O+="\n... "+(A.length-x)+" more inner errors")}return O},oe6=function(A){var L=
"";
typeof A.toString==="function"&&(L=""+A);return L+A.stack},u_={};var Acn,Le,nu,O6H,Xn6,LlV,Zg,jf,s6V;Acn=function(A,L){for(var O=A.split("%s"),X="",x=Array.prototype.slice.call(arguments,1);x.length&&O.length>1;)X+=O.shift()+x.shift();return X+O.join("%s")};
_.zD=function(A){return encodeURIComponent(String(A))};
Le=function(A){return decodeURIComponent(A.replace(/\+/g," "))};
nu=function(A){cur.test(A)&&(A.indexOf("&")!=-1&&(A=A.replace(iU9,"&amp;")),A.indexOf("<")!=-1&&(A=A.replace(NYe,"&lt;")),A.indexOf(">")!=-1&&(A=A.replace(ruy,"&gt;")),A.indexOf('"')!=-1&&(A=A.replace(Ktr,"&quot;")),A.indexOf("'")!=-1&&(A=A.replace(Gl9,"&#39;")),A.indexOf("\x00")!=-1&&(A=A.replace(lpe,"&#0;")));return A};
O6H=function(A){var L={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var O=_.Ou.document.createElement("div");return A.replace(LlV,function(X,x){var J=L[X];if(J)return J;x.charAt(0)=="#"&&(x=Number("0"+x.slice(1)),isNaN(x)||(J=String.fromCharCode(x)));J||(_.vf(O,jg(X+" ")),J=O.firstChild.nodeValue.slice(0,-1));return L[X]=J})};
Xn6=function(A){return A.replace(/&([^;]+);/g,function(L,O){switch(O){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return O.charAt(0)!="#"||(O=Number("0"+O.slice(1)),isNaN(O))?L:String.fromCharCode(O)}})};
LlV=/&([^;\s<&]+);?/g;_.ftJ=function(A){return String(A).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.xN6=String.prototype.repeat?function(A,L){return A.repeat(L)}:function(A,L){return Array(L+1).join(A)};
_.Tv=function(A,L){if(!Number.isFinite(A))return String(A);A=String(A);var O=A.indexOf(".");O===-1&&(O=A.length);var X=A[0]==="-"?"-":"";X&&(A=A.substring(1));return X+(0,_.xN6)("0",Math.max(0,L-O))+A};
Zg=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.u1()).toString(36)};
jf=function(A){for(var L=0,O=0;O<A.length;++O)L=31*L+A.charCodeAt(O)>>>0;return L};
_.bi=function(A){return String(A).replace(/\-([a-z])/g,function(L,O){return O.toUpperCase()})};
_.t9=function(A){return String(A).replace(/([A-Z])/g,"-$1").toLowerCase()};
s6V=function(A){return A.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(L,O,X){return O+X.toUpperCase()})};var Jcj=function(){this.names=new Map};
Jcj.prototype.getName=function(A){var L=this.names.get(A);if(L)return L;var O;L=(O=A.description)!=null?O:Zg();this.names.set(A,L);return L};var PHu=function(A){var L=Error.call(this,A?A.length+" errors occurred during unsubscription:\n"+A.map(function(O,X){return X+1+") "+O.toString()}).join("\n  "):"");
this.message=L.message;"stack"in L&&(this.stack=L.stack);this.errors=A;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.g(PHu,Error);var x3=function(A){this.initialTeardown=A;this.closed=!1;this._teardowns=this._parentage=null};
_.P=x3.prototype;
_.P.unsubscribe=function(){if(!this.closed){this.closed=!0;var A=this._parentage;if(Array.isArray(A))for(var L=_.d(A),O=L.next();!O.done;O=L.next())O.value.remove(this);else A==null||A.remove(this);L=this.initialTeardown;if(OJ(L))try{L()}catch(J){var X=J instanceof PHu?J.errors:[J]}var x=this._teardowns;if(x)for(this._teardowns=null,L=_.d(x),O=L.next();!O.done;O=L.next()){O=O.value;try{OJ(O)?O():O.unsubscribe()}catch(J){O=void 0,X=(O=X)!=null?O:[],J instanceof PHu?X=[].concat(_.le(X),_.le(J.errors)):
X.push(J)}}if(X)throw new PHu(X);}};
_.P.add=function(A){if(A&&A!==this)if(this.closed)OJ(A)?A():A.unsubscribe();else{if(A instanceof x3){if(A.closed||A._hasParent(this))return;A._addParent(this)}var L;(this._teardowns=(L=this._teardowns)!=null?L:[]).push(A)}};
_.P._hasParent=function(A){var L=this._parentage;return L===A||Array.isArray(L)&&L.includes(A)};
_.P._addParent=function(A){var L=this._parentage;this._parentage=Array.isArray(L)?(L.push(A),L):L?[L,A]:A};
_.P._removeParent=function(A){var L=this._parentage;L===A?this._parentage=null:Array.isArray(L)&&Doe(L,A)};
_.P.remove=function(A){var L=this._teardowns;L&&Doe(L,A);A instanceof x3&&A._removeParent(this)};
var dNL=new x3;dNL.closed=!0;x3.JSC$10088_EMPTY=dNL;var E39=function(){setTimeout.apply(null,_.le(_.f_.apply(0,arguments)))};var V5=function(A){x3.call(this);this.JSC$10093_isStopped=!1;this.destination=A instanceof V5?A:new DV(!A||OJ(A)?{next:A!=null?A:void 0}:A);eoe(A)&&A.add(this)};
_.g(V5,x3);V5.JSC$10088_EMPTY=x3.JSC$10088_EMPTY;V5.create=function(A,L,O){return new eu(A,L,O)};
_.P=V5.prototype;_.P.next=function(A){this.JSC$10093_isStopped||this._next(A)};
_.P.error=function(A){this.JSC$10093_isStopped||(this.JSC$10093_isStopped=!0,this._error(A))};
_.P.complete=function(){this.JSC$10093_isStopped||(this.JSC$10093_isStopped=!0,this._complete())};
_.P.unsubscribe=function(){this.closed||(this.JSC$10093_isStopped=!0,x3.prototype.unsubscribe.call(this))};
_.P._next=function(A){this.destination.next(A)};
_.P._error=function(A){this.destination.error(A);this.unsubscribe()};
_.P._complete=function(){this.destination.complete();this.unsubscribe()};
var DV=function(A){this.partialObserver=A};
DV.prototype.next=function(A){var L=this.partialObserver;if(L.next)try{L.next(A)}catch(O){Jn(O)}};
DV.prototype.error=function(A){var L=this.partialObserver;if(L.error)try{L.error(A)}catch(O){Jn(O)}else Jn(A)};
DV.prototype.complete=function(){var A=this.partialObserver;if(A.complete)try{A.complete()}catch(L){Jn(L)}};
var eu=function(A,L,O){V5.call(this);var X;OJ(A)||!A?X={next:A!=null?A:void 0,error:L!=null?L:void 0,complete:O!=null?O:void 0}:X=A;this.destination=new DV(X)};
_.g(eu,V5);eu.JSC$10088_EMPTY=V5.JSC$10088_EMPTY;eu.create=V5.create;var ue=typeof Symbol==="function"&&Symbol.observable||"@@observable";var Y3=function(A){A&&(this._subscribe=A)};
_.P=Y3.prototype;_.P.lift=function(A){var L=new Y3;L.source=this;L.operator=A;return L};
_.P.subscribe=function(A,L,O){A=A&&A instanceof V5||A&&OJ(A.next)&&OJ(A.error)&&OJ(A.complete)&&eoe(A)?A:new eu(A,L,O);L=this.operator;O=this.source;A.add(L?L.call(A,O):O?this._subscribe(A):this._trySubscribe(A));return A};
_.P._trySubscribe=function(A){try{return this._subscribe(A)}catch(L){A.error(L)}};
_.P.forEach=function(A,L){var O=this;L=t4P(L);return new L(function(X,x){var J=O.subscribe(function(Y){try{A(Y)}catch(T){x(T),J==null||J.unsubscribe()}},x,X)})};
_.P._subscribe=function(A){var L;return(L=this.source)==null?void 0:L.subscribe(A)};
Y3.prototype[ue]=function(){return this};
Y3.prototype.pipe=function(){var A=_.f_.apply(0,arguments);return A.length?n3e(A)(this):this};
Y3.create=function(A){return new Y3(A)};var Ygu=function(){var A=Error.call(this,"object unsubscribed");this.message=A.message;"stack"in A&&(this.stack=A.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.g(Ygu,Error);var uW=function(){this.observers=[];this.hasError=this.JSC$10109_isStopped=this.closed=!1;this.thrownError=null};
_.g(uW,Y3);_.P=uW.prototype;_.P.lift=function(A){var L=new n5(this,this);L.operator=A;return L};
_.P._throwIfClosed=function(){if(this.closed)throw new Ygu;};
_.P.next=function(A){this._throwIfClosed();if(!this.JSC$10109_isStopped){var L=this.observers.slice();L=_.d(L);for(var O=L.next();!O.done;O=L.next())O.value.next(A)}};
_.P.error=function(A){this._throwIfClosed();if(!this.JSC$10109_isStopped){this.hasError=this.JSC$10109_isStopped=!0;this.thrownError=A;for(var L=this.observers;L.length;)L.shift().error(A)}};
_.P.complete=function(){this._throwIfClosed();if(!this.JSC$10109_isStopped){this.JSC$10109_isStopped=!0;for(var A=this.observers;A.length;)A.shift().complete()}};
_.P.unsubscribe=function(){this.JSC$10109_isStopped=this.closed=!0;this.observers=null};
_.P._trySubscribe=function(A){this._throwIfClosed();return Y3.prototype._trySubscribe.call(this,A)};
_.P._subscribe=function(A){this._throwIfClosed();this._checkFinalizedStatuses(A);return this._innerSubscribe(A)};
_.P._innerSubscribe=function(A){var L=this,O=this.JSC$10109_isStopped,X=this.observers;return this.hasError||O?x3.JSC$10088_EMPTY:(X.push(A),new x3(function(){return Doe(L.observers,A)}))};
_.P._checkFinalizedStatuses=function(A){var L=this.thrownError,O=this.JSC$10109_isStopped;this.hasError?A.error(L):O&&A.complete()};
uW.create=function(A,L){return new n5(A,L)};
var n5=function(A,L){uW.call(this);this.destination=A;this.source=L};
_.g(n5,uW);n5.create=uW.create;n5.prototype.next=function(A){var L,O;(L=this.destination)==null||(O=L.next)==null||O.call(L,A)};
n5.prototype.error=function(A){var L,O;(L=this.destination)==null||(O=L.error)==null||O.call(L,A)};
n5.prototype.complete=function(){var A,L;(A=this.destination)==null||(L=A.complete)==null||L.call(A)};
n5.prototype._subscribe=function(A){var L,O;return(O=(L=this.source)==null?void 0:L.subscribe(A))!=null?O:x3.JSC$10088_EMPTY};var Z4=function(A){uW.call(this);this._value=A};
_.g(Z4,uW);Z4.create=uW.create;Z4.prototype._subscribe=function(A){var L=uW.prototype._subscribe.call(this,A);!L.closed&&A.next(this._value);return L};
Z4.prototype.getValue=function(){var A=this.thrownError,L=this._value;if(this.hasError)throw A;this._throwIfClosed();return L};
Z4.prototype.next=function(A){uW.prototype.next.call(this,this._value=A)};
_.v2.Object.defineProperties(Z4.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var QP=new Y3(function(A){return A.complete()});var qJe=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var Np_=function(A){return A&&typeof A.length==="number"&&typeof A!=="function"};var uLV={now:function(){return(uLV.delegate||Date).now()},
delegate:void 0};var vz=function(A,L,O){A=A===void 0?Infinity:A;L=L===void 0?Infinity:L;O=O===void 0?uLV:O;uW.call(this);this.bufferSize=A;this.windowTime=L;this.timestampProvider=O;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=L===Infinity;this.bufferSize=Math.max(1,A);this.windowTime=Math.max(1,L)};
_.g(vz,uW);vz.create=uW.create;vz.prototype.next=function(A){var L=this.buffer,O=this.infiniteTimeWindow,X=this.timestampProvider,x=this.windowTime;this.JSC$10109_isStopped||(L.push(A),!O&&L.push(X.now()+x));TJj(this);uW.prototype.next.call(this,A)};
vz.prototype._subscribe=function(A){this._throwIfClosed();TJj(this);for(var L=this._innerSubscribe(A),O=this.infiniteTimeWindow,X=this.buffer.slice(),x=0;x<X.length&&!A.closed;x+=O?1:2)A.next(X[x]);this._checkFinalizedStatuses(A);return L};
var TJj=function(A){var L=A.bufferSize,O=A.timestampProvider,X=A.buffer;A=A.infiniteTimeWindow;var x=(A?1:2)*L;L<Infinity&&x<X.length&&X.splice(0,X.length-x);if(!A){L=O.now();O=0;for(A=1;A<X.length&&X[A]<=L;A+=2)O=A;O&&X.splice(0,O+1)}};var DNN=function(A,L){L=L===void 0?V3u:L;this.schedulerActionCtor=A;this.now=L};
DNN.prototype.schedule=function(A,L,O){L=L===void 0?0:L;return(new this.schedulerActionCtor(this,A)).schedule(O,L)};
var V3u=uLV.now;var bmp=function(){var A=Error.call(this,"no elements in sequence");this.message=A.message;"stack"in A&&(this.stack=A.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.g(bmp,Error);var rp=function(A,L,O,X,x){V5.call(this,A);this.onUnsubscribe=x;L&&(this._next=function(J){try{L(J)}catch(Y){this.destination.error(Y)}});
O&&(this._error=function(J){try{O(J)}catch(Y){this.destination.error(Y)}this.unsubscribe()});
X&&(this._complete=function(){try{X()}catch(J){this.destination.error(J)}this.unsubscribe()})};
_.g(rp,V5);rp.JSC$10088_EMPTY=V5.JSC$10088_EMPTY;rp.create=V5.create;rp.prototype.unsubscribe=function(){var A;this.closed||(A=this.onUnsubscribe)!=null&&A.call(this);V5.prototype.unsubscribe.call(this)};var a9=function(A,L){this.source=A;this.subjectFactory=L;this._subject=null;this._refCount=0;this._connection=null};
_.g(a9,Y3);a9.create=Y3.create;a9.prototype._subscribe=function(A){return e7j(this).subscribe(A)};
var e7j=function(A){var L=A._subject;if(!L||L.JSC$10109_isStopped)A._subject=A.subjectFactory();return A._subject};
a9.prototype._teardown=function(){this._refCount=0;var A=this._connection;this._subject=this._connection=null;A==null||A.unsubscribe()};
a9.prototype.connect=function(){var A=this,L=this._connection;if(!L){L=this._connection=new x3;var O=e7j(this);L.add(this.source.subscribe(new rp(O,void 0,function(X){A._teardown();O.error(X)},function(){A._teardown();
O.complete()},function(){return A._teardown()})));
L.closed&&(this._connection=null,L=x3.JSC$10088_EMPTY)}return L};var IMe=Array.isArray;var ZLu=Array.isArray,EVj=Object,j9d=EVj.getPrototypeOf,WhJ=EVj.prototype,HLu=EVj.keys;var CL=function(A,L,O){V5.call(this,A);this._next=L;this.shouldComplete=O};
_.g(CL,V5);CL.JSC$10088_EMPTY=V5.JSC$10088_EMPTY;CL.create=V5.create;CL.prototype._complete=function(){this.shouldComplete()?V5.prototype._complete.call(this):this.unsubscribe()};var o3O=["addListener","removeListener"],v3s=["addEventListener","removeEventListener"],Lys=["on","off"];var tV=function(){x3.call(this)};
_.g(tV,x3);tV.JSC$10088_EMPTY=x3.JSC$10088_EMPTY;tV.prototype.schedule=function(){return this};var nVJ=function(A,L){return setInterval.apply(null,[A,L].concat(_.le(_.f_.apply(2,arguments))))};var b_=function(A,L){x3.call(this);this.scheduler=A;this.work=L;this.pending=!1};
_.g(b_,tV);b_.JSC$10088_EMPTY=tV.JSC$10088_EMPTY;b_.prototype.schedule=function(A,L){L=L===void 0?0:L;if(this.closed)return this;this.state=A;A=this.id;var O=this.scheduler;A!=null&&(this.id=t36(this,A,L));this.pending=!0;this.delay=L;this.id=this.id||this.requestAsyncId(O,this.id,L);return this};
b_.prototype.requestAsyncId=function(A,L,O){O=O===void 0?0:O;return nVJ(A.flush.bind(A,this),O)};
var t36=function(A,L,O){O=O===void 0?0:O;if(O!=null&&A.delay===O&&A.pending===!1)return L;clearInterval(L)};
b_.prototype.execute=function(A,L){if(this.closed)return Error("ha");this.pending=!1;if(A=this._execute(A,L))return A;this.pending===!1&&this.id!=null&&(this.id=t36(this,this.id,null))};
b_.prototype._execute=function(A){var L=!1;try{this.work(A)}catch(X){L=!0;var O=!!X&&X||Error(X)}if(L)return this.unsubscribe(),O};
b_.prototype.unsubscribe=function(){if(!this.closed){var A=this.id,L=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;Doe(L,this);A!=null&&(this.id=t36(this,A,null));this.delay=null;tV.prototype.unsubscribe.call(this)}};var b6n=function(A,L){L=L===void 0?V3u:L;DNN.call(this,A,L);this.actions=[];this.active=!1;this.scheduled=void 0};
_.g(b6n,DNN);b6n.prototype.flush=function(A){var L=this.actions;if(this.active)L.push(A);else{var O;this.active=!0;do if(O=A.execute(A.state,A.delay))break;while(A=L.shift());this.active=!1;if(O){for(;A=L.shift();)A.unsubscribe();throw O;}}};var rz=new Y3(sJ);var Ome=Array.isArray;var hV=function(A,L){b_.call(this,A,L);this.scheduler=A;this.work=L};
_.g(hV,b_);hV.JSC$10088_EMPTY=b_.JSC$10088_EMPTY;hV.prototype.schedule=function(A,L){L=L===void 0?0:L;if(L>0)return b_.prototype.schedule.call(this,A,L);this.delay=L;this.state=A;this.scheduler.flush(this);return this};
hV.prototype.execute=function(A,L){return L>0||this.closed?b_.prototype.execute.call(this,A,L):this._execute(A,L)};
hV.prototype.requestAsyncId=function(A,L,O){O=O===void 0?0:O;return O!=null&&O>0||O==null&&this.delay>0?b_.prototype.requestAsyncId.call(this,A,L,O):A.flush(this)};var h7V=function(){b6n.apply(this,arguments)};
_.g(h7V,b6n);var mod=new h7V(hV);var SgV=function(){this.performanceMonitor=new i9H;this.queue=new Nu6;this.internalSymbol=Symbol();this.debugNames=new Jcj};
SgV.prototype.getOnBackgrounded=function(){return rz};
_.v2.Object.defineProperties(SgV.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var Su=function(A,L){L=Error.call(this,L?A+": "+L:String(A));this.message=L.message;"stack"in L&&(this.stack=L.stack);this.code=A;this.__proto__=Su.prototype;this.name=String(A)};
_.g(Su,Error);var Km=function(A){Su.call(this,1E3,'sfr:"'+A+'"');this.measurementStrategyFailureReason=A;this.__proto__=Km.prototype};
_.g(Km,Su);var G0=function(){Su.call(this,1003);this.__proto__=G0.prototype};
_.g(G0,Su);var qS=function(){Su.call(this,1009);this.__proto__=qS.prototype};
_.g(qS,Su);var qgg=function(){Su.call(this,1011);this.__proto__=qgg.prototype};
_.g(qgg,Su);var gVL=function(){Su.call(this,1007);this.__proto__=G0.prototype};
_.g(gVL,Su);var wz=function(A){Su.call(this,1004,String(A));this.inputObservableIndex=A;this.__proto__=wz.prototype};
_.g(wz,Su);var Csd=function(A){Su.call(this,1010,A);this.__proto__=FKd.prototype};
_.g(Csd,Su);var FKd=function(A){Su.call(this,1005,A);this.__proto__=FKd.prototype};
_.g(FKd,Su);var wnV=function(A){var L=_.f_.apply(1,arguments),O=this;this.orderedFactories=[];this.orderedFactories.push(A);L.forEach(function(X){O.orderedFactories.push(X)})};
wnV.prototype.isSupported=function(A){return this.orderedFactories.some(function(L){return L.isSupported(A)})};
wnV.prototype.makeBeacon=function(A,L){for(var O=0;O<this.orderedFactories.length;O++)if(this.orderedFactories[O].isSupported(L))return this.orderedFactories[O].makeBeacon(A,L);throw new qS;};var q4u=Symbol("ia"),pnH=Symbol("ja"),yP=function(A,L){this.value=A;this.timeline=L},I9=function(A,L){if(L.timeline!==A.timeline)throw new gVL;
return A.value-L.value};
_.P=yP.prototype;_.P.equals=function(A){return I9(this,A)===0};
_.P.maximum=function(A){if(A.timeline!==this.timeline)throw new gVL;return this.value>=A.value?this:A};
_.P.round=function(){return new yP(Math.round(this.value),this.timeline)};
_.P.add=function(A){return new yP(this.value+A,this.timeline)};
_.P.toString=function(){return String(this.value)};var gk=function(A,L){this.context=A;this.JSC$10215_pinger=L};
gk.prototype.isSupported=function(A){return this.JSC$10215_pinger.isSupported(A)};
gk.prototype.makeBeacon=function(A,L){if(!this.isSupported(L))throw new qS;return new wk(this.context,this.JSC$10215_pinger,L!=null?L:void 0,A)};
var wk=function(A,L,O,X){var x=this;this.JSC$10221_pinger=L;this.properties=O;this.url=X;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var J;this.method=(J=O==null?void 0:O.beaconMethod)!=null?J:"GET";this.backgroundedSubscription=A.getOnBackgrounded().subscribe(function(){x.sendNow()})};
wk.prototype.deactivate=function(){this.internalIsPending=!1};
wk.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$10221_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var A,L;this.JSC$10221_pinger.pingWithHeadersAndBody((A=this.properties)!=null?A:{},this.customHeaders,(L=this.body)!=null?L:"",this.url)}else this.JSC$10221_pinger.ping(this.url);this.internalIsPending=!1}catch(O){}else this.internalIsPending=!1};
wk.prototype.setHeader=function(A,L){this.customHeaders.set(A,L)};
_.v2.Object.defineProperties(wk.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var NJc=function(){for(var A=_.d(_.f_.apply(0,arguments)),L=A.next();!L.done;L=A.next())if(L=L.value,L.available()){this.timeProvider=L;return}this.timeProvider=new i6L};
_.P=NJc.prototype;_.P.available=function(){return this.timeProvider.available()};
_.P.now=function(){return this.timeProvider.now()};
_.P.setTimeout=function(A,L){return this.timeProvider.setTimeout(A,L)};
_.P.clearTimeout=function(A){this.timeProvider.clearTimeout(A)};
_.P.interval=function(A,L){var O=this.intervalObservable(A).subscribe(L);return function(){return void O.unsubscribe()}};
_.P.intervalObservable=function(A){return this.timeProvider.intervalObservable(A)};
_.v2.Object.defineProperties(NJc.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var i6L=function(){this.timeline=Symbol()};
_.P=i6L.prototype;_.P.available=function(){return!1};
_.P.now=function(){return new yP(0,this.timeline)};
_.P.setTimeout=function(){return 0};
_.P.clearTimeout=function(){};
_.P.interval=function(){return function(){}};
_.P.intervalObservable=function(){return rz};var p5=function(A,L){this.intrinsicFunctionNamespace=A;this.performanceMonitor=L};
_.P=p5.prototype;_.P.setTimeout=function(A,L){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,A),L)};
_.P.clearTimeout=function(A){this.intrinsicFunctionNamespace.clearTimeout(A)};
_.P.interval=function(A,L){var O=this.intervalObservable(A).subscribe(L);return function(){return void O.unsubscribe()}};
_.P.intervalObservable=function(A){var L=this;return new Y3(function(O){var X=0,x=L.intrinsicFunctionNamespace.setInterval(function(){O.next(X++)},A);
return function(){L.intrinsicFunctionNamespace.clearInterval(x)}})};
_.P.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var rcV=function(A,L){p5.call(this,A,L);this.timeline=pnH};
_.g(rcV,p5);rcV.prototype.now=function(){return new yP(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
rcV.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&p5.prototype.available.call(this)};var Klc=function(A,L){p5.call(this,A,L);this.timeline=q4u};
_.g(Klc,p5);Klc.prototype.now=function(){return new yP(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
Klc.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&p5.prototype.available.call(this)};var lNH=function(A){this.context=A;if(GjN===void 0)a:{var L,O,X=(L=A.global)==null?void 0:(O=L.document)==null?void 0:O.createElement("meta");if(X)try{X.httpEquiv="origin-trial";X.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";A.global.document.head.append(X);GjN=X;break a}catch(x){}GjN=void 0}},
GjN;
lNH.prototype.isSupported=function(A){return VxO(this.context)!==void 0&&!(A==null||!A.endOfSession)&&!i_(this.context)&&!(A==null?0:A.attributionEnabled)&&!(A==null?0:A.customHeaders)&&!(A==null?0:A.customBody)};
lNH.prototype.makeBeacon=function(A,L){if(!this.isSupported(L))throw new qS;return new NS(this.context,A,L)};
var NS=function(A,L,O){this.context=A;this.properties=O;this.JSC$10248_urlWithoutToken=L;var X;this.beaconMethod=(X=O==null?void 0:O.beaconMethod)!=null?X:"GET";A=VxO(this.context);if(A===void 0)throw Error();this.fetchLater=A;ccn(this,CHL(this))},ccn=function(A,L){A.beaconResult&&A.beaconResult.activated||(A.beaconAbort=new AbortController,A.beaconResult=A.fetchLater(L,{method:A.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:A.beaconAbort.signal,activateAfter:96E4}))},CHL=function(A){A=A.JSC$10248_urlWithoutToken;
return(A.slice(-1)[0]==="&"?A:A+"&")+"flapi=1"};
NS.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
NS.prototype.sendNow=function(){};
NS.prototype.setHeader=function(){};
_.v2.Object.defineProperties(NS.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$10248_urlWithoutToken},
set:function(A){this.JSC$10248_urlWithoutToken=A;A=CHL(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);ccn(this,A)}},
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 FlH=function(A){this.context=A};
FlH.prototype.isSupported=function(){return!i_(this.context)&&!!this.context.global.fetch};
FlH.prototype.ping=function(){var A=this;return mh.apply(null,_.le(_.f_.apply(0,arguments).map(function(L){return DM(A.context.global.fetch(L,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(GM(function(O){return O.status===200}))}))).pipe(hEM(function(L){return L}),qOy())};
FlH.prototype.pingWithHeadersAndBody=function(A,L,O){for(var X=_.f_.apply(3,arguments),x=this,J=new Headers,Y=_.d(L.entries()),T=Y.next();!T.done;T=Y.next()){var V=_.d(T.value);T=V.next().value;V=V.next().value;J.set(T,V)}var E,n=(E=A.keepAlive)!=null?E:!1;mh.apply(null,_.le(X.map(function(t){return DM(x.context.global.fetch(t,Object.assign({},{method:String(A.beaconMethod),cache:"no-cache"},n?{keepalive:!0}:{},{mode:"no-cors",headers:J,body:O}))).pipe(GM(function(b){return b.status===200}))}))).pipe(hEM(function(t){return t}),
qOy())};var R73,tN_;_.rk=function(){};
_.Rd=function(A){return A};
R73=function(A){var L=L||0;return function(){return A.apply(this,Array.prototype.slice.call(arguments,0,L))}};
_.K5=function(A){var L=!1,O;return function(){L||(O=A(),L=!0);return O}};
_.Gv=function(A,L){var O=0;return function(X){_.Ou.clearTimeout(O);var x=arguments;O=_.Ou.setTimeout(function(){A.apply(void 0,x)},L)}};
tN_=function(A,L){var O=0,X=!1,x=[],J=function(){O=0;X&&(X=!1,Y())},Y=function(){O=_.Ou.setTimeout(J,L);
var T=x;x=[];A.apply(void 0,T)};
return function(T){x=arguments;O?X=!0:Y()}};var mNJ=function(){return br&&hs?hs.mobile:!Q6l()&&(qy("iPod")||qy("iPhone")||qy("Android")||qy("IEMobile"))},Q6l=function(){return br&&hs?!hs.mobile&&(qy("iPad")||qy("Android")||qy("Silk")):qy("iPad")||qy("Android")&&!qy("Mobile")||qy("Silk")};var fNV;_.lW={};fNV="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.lW.add=function(A,L,O){if(A!==null&&L in A)throw Error("la`"+L);A[L]=O};
_.lW.clear=function(A){for(var L in A)delete A[L]};
_.lW.clone=function(A){var L={},O;for(O in A)L[O]=A[O];return L};
_.lW.contains=function(A,L){return rDJ(A,L)};
_.lW.containsKey=function(A,L){return A!==null&&L in A};
_.lW.containsValue=rDJ;_.lW.create=l4_;_.lW.createImmutableView=function(A){var L=A;Object.isFrozen&&!Object.isFrozen(A)&&(L=Object.create(A),Object.freeze(L));return L};
_.lW.createSet=cDu;_.lW.equals=function(A,L){for(var O in A)if(!(O in L)||A[O]!==L[O])return!1;for(var X in L)if(!(X in A))return!1;return!0};
_.lW.every=function(A,L,O){for(var X in A)if(!L.call(O,A[X],X,A))return!1;return!0};
_.lW.extend=function(A,L){for(var O,X,x=1;x<arguments.length;x++){X=arguments[x];for(O in X)A[O]=X[O];for(var J=0;J<fNV.length;J++)O=fNV[J],Object.prototype.hasOwnProperty.call(X,O)&&(A[O]=X[O])}};
_.lW.filter=function(A,L,O){var X={},x;for(x in A)L.call(O,A[x],x,A)&&(X[x]=A[x]);return X};
_.lW.findKey=Kyu;_.lW.findValue=function(A,L,O){return(L=Kyu(A,L,O))&&A[L]};
_.lW.forEach=function(A,L,O){for(var X in A)L.call(O,A[X],X,A)};
_.lW.get=function(A,L,O){return A!==null&&L in A?A[L]:O};
_.lW.getAllPropertyNames=function(A,L,O){if(!A)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return Nzu(A);for(var X={};A&&(A!==Object.prototype||L)&&(A!==Function.prototype||O);){for(var x=Object.getOwnPropertyNames(A),J=0;J<x.length;J++)X[x[J]]=!0;A=Object.getPrototypeOf(A)}return Nzu(X)};
_.lW.getAnyKey=function(A){for(var L in A)return L};
_.lW.getAnyValue=function(A){for(var L in A)return A[L]};
_.lW.getCount=function(A){var L=0,O;for(O in A)L++;return L};
_.lW.getKeys=Nzu;_.lW.getSuperClass=function(A){return(A=Object.getPrototypeOf(A.prototype))&&A.constructor};
_.lW.getValueByKeys=function(A,L){var O=_.jD(L),X=O?L:arguments;for(O=O?0:1;O<X.length;O++){if(A==null)return;A=A[X[O]]}return A};
_.lW.getValues=function(A){var L=[],O=0,X;for(X in A)L[O++]=A[X];return L};
_.lW.isEmpty=function(A){for(var L in A)return!1;return!0};
_.lW.isImmutableView=function(A){return!!Object.isFrozen&&Object.isFrozen(A)};
_.lW.map=function(A,L,O){var X={},x;for(x in A)X[x]=L.call(O,A[x],x,A);return X};
_.lW.remove=function(A,L){var O;(O=L in A)&&delete A[L];return O};
_.lW.set=function(A,L,O){A[L]=O};
_.lW.setIfUndefined=function(A,L,O){return L in A?A[L]:A[L]=O};
_.lW.setWithReturnValueIfNotSet=function(A,L,O){if(L in A)return A[L];O=O();return A[L]=O};
_.lW.some=function(A,L,O){for(var X in A)if(L.call(O,A[X],X,A))return!0;return!1};
_.lW.transpose=function(A){var L={},O;for(O in A)L[A[O]]=O;return L};
_.lW.unsafeClone=G0_;var l_=function(A,L,O,X,x){this.allowedElements=A;this.elementPolicies=L;this.allowedGlobalAttributes=O;this.globalAttributePolicies=X;this.globallyAllowedAttributePrefixes=x},INl=function(A,L,O){O=A.elementPolicies.get(O);
return(O==null?0:O.has(L))?O.get(L):A.allowedGlobalAttributes.has(L)?{policyAction:1}:(O=A.globalAttributePolicies.get(L))?O:A.globallyAllowedAttributePrefixes&&[].concat(_.le(A.globallyAllowedAttributePrefixes)).some(function(X){return L.indexOf(X)===0})?{policyAction:1}:{policyAction:0}};var ycV="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(" "),
Z6u=[["A",new Map([["href",{policyAction:7}]])],["AREA",new Map([["href",{policyAction:7}]])],["LINK",new Map([["href",{policyAction:5,conditions:new Map([["rel",new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])],["SOURCE",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["IMG",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["VIDEO",new Map([["src",
{policyAction:5}]])],["AUDIO",new Map([["src",{policyAction:5}]])]],j6H="title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked cite color cols colspan controls controlslist coords crossorigin datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden inert ismap label lang loop max maxlength media minlength min multiple muted nonce open playsinline placeholder poster preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type usemap valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
Wl6=[["dir",{policyAction:3,conditions:ba(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:ba(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:ba(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:ba(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],H66=new l_(new Set(ycV),new Map(Z6u),new Set(j6H),new Map(Wl6)),z73=new l_(new Set(ycV.concat(["BUTTON",
"INPUT"])),new Map(Z6u),new Set(ba(function(){return j6H.concat(["class","id","name"])})),new Map(ba(function(){return Wl6.concat([["style",
{policyAction:1}]])})));var BJ6,M3H,aNn;BJ6=function(A,L,O,X,x){this.JSC$10308_sanitizerTable=A;this.styleElementSanitizer=L;this.styleAttributeSanitizer=O;this.JSC$10308_resourceUrlPolicy=X;this.JSC$10308_navigationUrlPolicy=x;this.changes=[]};
_.$Nu=function(A,L){var O=document.implementation.createHTMLDocument("");A=M3H(A,L,O);O=O.body;O.appendChild(A);O=(new XMLSerializer).serializeToString(O);O=O.slice(O.indexOf(">")+1,O.lastIndexOf("</"));return jg(O)};
M3H=function(A,L,O){L=Fyp(L,O);L=document.createTreeWalker(L,5,function(T){if(T.nodeType===3)T=1;else if(QoP(T))if(T=REs(T),T===null)T=2;else{var V=A.JSC$10308_sanitizerTable;T=T!=="FORM"&&(V.allowedElements.has(T)||V.elementPolicies.has(T))?1:2}else T=2;return T});
for(var X=L.nextNode(),x=O.createDocumentFragment(),J=x;X!==null;){var Y=void 0;if(X.nodeType===3)A.styleElementSanitizer&&J.nodeName==="STYLE"?(X=A.styleElementSanitizer(X.data),Y=A.createTextNode(X)):Y=A.createTextNode(X.data);else if(QoP(X))Y=aNn(A,X,O);else throw Error("Z");J.appendChild(Y);if(X=L.firstChild())J=Y;else for(;!(X=L.nextSibling())&&(X=L.parentNode());)J=J.parentNode}return x};
BJ6.prototype.createTextNode=function(A){return document.createTextNode(A)};
aNn=function(A,L,O){var X,x=REs(L);O=O.createElement(x);L=L.attributes;for(var J=_.d(L),Y=J.next();!Y.done;Y=J.next()){var T=Y.value;Y=T.name;T=T.value;var V=INl(A.JSC$10308_sanitizerTable,Y,x);a:{if(X=V.conditions){X=_.d(X);for(var E=X.next();!E.done;E=X.next()){var n=_.d(E.value);E=n.next().value;n=n.next().value;var t=void 0;if((E=(t=L.getNamedItem(E))==null?void 0:t.value)&&!n.has(E)){X=!1;break a}}}X=!0}if(X)switch(V.policyAction){case 1:sO(O,Y,T);break;case 2:throw Error();case 3:sO(O,Y,T.toLowerCase());
break;case 4:A.styleAttributeSanitizer?(T=A.styleAttributeSanitizer(T),sO(O,Y,T)):sO(O,Y,T);break;case 5:A.JSC$10308_resourceUrlPolicy?(V={type:2,attributeName:Y,elementName:x},T=CWs(T),(T=A.JSC$10308_resourceUrlPolicy(T,V))&&sO(O,Y,T.toString())):sO(O,Y,T);break;case 6:if(A.JSC$10308_resourceUrlPolicy){V={type:2,attributeName:Y,elementName:x};X=[];T=_.d(T.split(","));for(E=T.next();!E.done;E=T.next())n=_.d(E.value.trim().split(/\s+/,2)),E=n.next().value,n=n.next().value,X.push({url:E,descriptor:n});
T={parts:[]};X=_.d(X);for(E=X.next();!E.done;E=X.next())E=E.value,n=CWs(E.url),(n=A.JSC$10308_resourceUrlPolicy(n,V))&&T.parts.push({url:n.toString(),descriptor:E.descriptor});sO(O,Y,mFu(T))}else sO(O,Y,T);break;case 7:V=T;if(A.JSC$10308_navigationUrlPolicy){V={type:2,attributeName:Y,elementName:x};T=CWs(T);T=A.JSC$10308_navigationUrlPolicy(T,V);if(T===null)break;V=T.toString()}T=V;V=_.Lh9(T);V=V!==void 0&&kON.indexOf(V.toLowerCase())!==-1?T:"about:invalid#zClosurez";sO(O,Y,V)}}return O};
_.kj7=ba(function(){return new BJ6(H66)});
_.UNL=ba(function(){return new BJ6(z73)});var vVV=function(){this.calledBuild=!1;this.JSC$10320_sanitizerTable=H66},oVV=function(){vVV.apply(this,arguments)};
_.g(oVV,vVV);oVV.prototype.build=function(){if(this.calledBuild)throw Error("na");this.calledBuild=!0;return new BJ6(this.JSC$10320_sanitizerTable,void 0,void 0,this.JSC$10320_resourceUrlPolicy,this.JSC$10320_navigationUrlPolicy)};var Ak7=/[^#]*/;var OJV=function(A){var L=L$V;if(L)for(var O in L)Object.prototype.hasOwnProperty.call(L,O)&&A(L[O],O,L)},XXL=function(){var A=[];
OJV(function(L){A.push(L)});
return A},L$V={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"},xQg=_.K5(function(){return XXL()}),Jk6=function(){var A=s7J("IFRAME"),
L={};
_.BY(xQg(),function(O){A.sandbox&&A.sandbox.supports&&A.sandbox.supports(O)&&(L[O]=!0)});
return L},s7J=function(A,L){L=L===void 0?document:L;
return L.createElement(String(A).toLowerCase())};var c6;_.Z7=function(A,L,O){return Math.min(Math.max(A,L),O)};
c6=function(A,L,O){return A+O*(L-A)};_.Cm=function(A,L){this.x=A!==void 0?A:0;this.y=L!==void 0?L:0};
_.P=_.Cm.prototype;_.P.clone=function(){return new _.Cm(this.x,this.y)};
_.P.equals=function(A){return A instanceof _.Cm&&(this==A?!0:this&&A?this.x==A.x&&this.y==A.y:!1)};
_.P.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.P.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.P.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.P.translate=function(A,L){A instanceof _.Cm?(this.x+=A.x,this.y+=A.y):(this.x+=Number(A),typeof L==="number"&&(this.y+=L));return this};
_.P.scale=function(A,L){this.x*=A;this.y*=typeof L==="number"?L:A;return this};_.bW=function(A,L){this.width=A;this.height=L};
_.P=_.bW.prototype;_.P.clone=function(){return new _.bW(this.width,this.height)};
_.P.area=function(){return this.width*this.height};
_.P.aspectRatio=function(){return this.width/this.height};
_.P.isEmpty=function(){return!this.area()};
_.P.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.P.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.P.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.P.scale=function(A,L){this.width*=A;this.height*=typeof L==="number"?L:A;return this};var mx=function(A,L){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=A===bu_&&L||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=PJ7};
mx.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var dQn=function(A){return A instanceof mx&&A.constructor===mx&&A.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===PJ7?A.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},PJ7={},bu_={};
new mx(bu_,"");var qF,SV,F4,YzN,VZc,TBH,FT,eSu,nX6,EXL,f5,tZ7,pXJ,wX7,gX3,iJ6,NBL,rku,K$u,fXe,Gng,cku,CJc,lSc,C5;qF=function(A){return A?new C5(_.Ro(A)):SqP||(SqP=new C5)};
_.uS=function(A,L){return typeof L==="string"?A.getElementById(L):L};
SV=function(A,L){return(L||document).getElementsByTagName(String(A))};
_.uMn=function(A){return YzN("yt-formatted-string","paper-input-input",A)};
F4=function(A,L,O,X){A=X||A;return(L=L&&L!="*"?String(L).toUpperCase():"")||O?A.querySelectorAll(L+(O?"."+O:"")):A.getElementsByTagName("*")};
YzN=function(A,L,O){var X=document,x=A&&A!="*"?String(A).toUpperCase():"";return x||L?(O||X).querySelector(x+(L?"."+L:"")):F4(X,A,L,O)[0]||null};
VZc=function(A,L){_.lW.forEach(L,function(O,X){X=="style"?A.style.cssText=O:X=="class"?A.className=O:X=="for"?A.htmlFor=O:TBH.hasOwnProperty(X)?A.setAttribute(TBH[X],O):_.su(X,"aria-")||_.su(X,"data-")?A.setAttribute(X,O):A[X]=O})};
TBH={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"};_.hD=function(A){A=(A||window).document;A=A.compatMode=="CSS1Compat"?A.documentElement:A.body;return new _.bW(A.clientWidth,A.clientHeight)};
_.DQ7=function(A){var L=_.RS(A);A=A.defaultView;return new _.Cm(A.pageXOffset||L.scrollLeft,A.pageYOffset||L.scrollTop)};
_.RS=function(A){return A.scrollingElement?A.scrollingElement:_.tW||A.compatMode!="CSS1Compat"?A.body||A.documentElement:A.documentElement};
FT=function(A){return A?A.defaultView:window};
_.Q5=function(A,L,O){return eSu(document,arguments)};
eSu=function(A,L){var O=L[1],X=EXL(A,String(L[0]));O&&(typeof O==="string"?X.className=O:Array.isArray(O)?X.className=O.join(" "):VZc(X,O));L.length>2&&nX6(A,X,L,2);return X};
nX6=function(A,L,O,X){function x(T){T&&L.appendChild(typeof T==="string"?A.createTextNode(T):T)}
for(;X<O.length;X++){var J=O[X];if(!_.jD(J)||_.BJ(J)&&J.nodeType>0)x(J);else{a:{if(J&&typeof J.length=="number"){if(_.BJ(J)){var Y=typeof J.item=="function"||typeof J.item=="string";break a}if(typeof J==="function"){Y=typeof J.item=="function";break a}}Y=!1}_.BY(Y?_.Ze(J):J,x)}}};
_.tg=function(A){return EXL(document,A)};
EXL=function(A,L){L=String(L);A.contentType==="application/xhtml+xml"&&(L=L.toLowerCase());return A.createElement(L)};
_.mR=function(){return document.createTextNode("\n")};
f5=function(A){if(A.nodeType!=1)return!1;switch(A.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};
tZ7=function(A,L){nX6(_.Ro(A),A,arguments,1)};
_.IS=function(A){for(var L;L=A.firstChild;)A.removeChild(L)};
_.y5=function(A,L){L.parentNode&&L.parentNode.insertBefore(A,L)};
_.ZV=function(A,L){L.parentNode&&L.parentNode.insertBefore(A,L.nextSibling)};
_.hg=function(A){return A&&A.parentNode?A.parentNode.removeChild(A):null};
_.bJu=function(A,L){var O=L.parentNode;O&&O.replaceChild(A,L)};
_.hSN=function(A){var L,O=A.parentNode;if(O&&O.nodeType!=11)if(A.removeNode)A.removeNode(!1);else{for(;L=A.firstChild;)O.insertBefore(L,A);_.hg(A)}};
_.ju=function(A){return A.children!=void 0?A.children:Array.prototype.filter.call(A.childNodes,function(L){return L.nodeType==1})};
_.qzL=function(A){return A.nextElementSibling!==void 0?A.nextElementSibling:_.Sz7(A.nextSibling,!0)};
_.Sz7=function(A,L){for(;A&&A.nodeType!=1;)A=L?A.nextSibling:A.previousSibling;return A};
_.aN=function(A){return _.BJ(A)&&A.nodeType==1};
_.In=function(A,L){if(!A||!L)return!1;if(A.contains&&L.nodeType==1)return A==L||A.contains(L);if(typeof A.compareDocumentPosition!="undefined")return A==L||!!(A.compareDocumentPosition(L)&16);for(;L&&A!=L;)L=L.parentNode;return L==A};
pXJ=function(A,L){if(A==L)return 0;if(A.compareDocumentPosition)return A.compareDocumentPosition(L)&2?1:-1;if("sourceIndex"in A||A.parentNode&&"sourceIndex"in A.parentNode){var O=A.nodeType==1,X=L.nodeType==1;if(O&&X)return A.sourceIndex-L.sourceIndex;var x=A.parentNode,J=L.parentNode;return x==J?gX3(A,L):!O&&_.In(x,L)?-1*wX7(A,L):!X&&_.In(J,A)?wX7(L,A):(O?A.sourceIndex:x.sourceIndex)-(X?L.sourceIndex:J.sourceIndex)}X=_.Ro(A);O=X.createRange();O.selectNode(A);O.collapse(!0);A=X.createRange();A.selectNode(L);
A.collapse(!0);return O.compareBoundaryPoints(_.Ou.Range.START_TO_END,A)};
wX7=function(A,L){var O=A.parentNode;if(O==L)return-1;for(;L.parentNode!=O;)L=L.parentNode;return gX3(L,A)};
gX3=function(A,L){for(;L=L.previousSibling;)if(L==A)return-1;return 1};
iJ6=function(A){var L,O=arguments.length;if(!O)return null;if(O==1)return arguments[0];var X=[],x=Infinity;for(L=0;L<O;L++){for(var J=[],Y=arguments[L];Y;)J.unshift(Y),Y=Y.parentNode;X.push(J);x=Math.min(x,J.length)}J=null;for(L=0;L<x;L++){Y=X[0][L];for(var T=1;T<O;T++)if(Y!=X[T][L])return J;J=Y}return J};
_.Ro=function(A){return A.nodeType==9?A:A.ownerDocument||A.document};
NBL=function(A){return A.contentDocument||A.contentWindow.document};
_.W6=function(A,L){if("textContent"in A)A.textContent=L;else if(A.nodeType==3)A.data=String(L);else if(A.firstChild&&A.firstChild.nodeType==3){for(;A.lastChild!=A.firstChild;)A.removeChild(A.lastChild);A.firstChild.data=String(L)}else _.IS(A),A.appendChild(_.Ro(A).createTextNode(String(L)))};
rku={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};K$u={IMG:" ",BR:"\n"};fXe=function(A){var L;A.tagName=="A"&&A.hasAttribute("href")||A.tagName=="INPUT"||A.tagName=="TEXTAREA"||A.tagName=="SELECT"||A.tagName=="BUTTON"?L=!A.disabled&&(!A.hasAttribute("tabindex")||Gng(A)):L=A.hasAttribute("tabindex")&&Gng(A);return L};
Gng=function(A){A=A.tabIndex;return typeof A==="number"&&A>=0&&A<32768};
cku=function(A){var L=[];lSc(A,L,!0);A=L.join("");A=A.replace(/ \xAD /g," ").replace(/\xAD/g,"");A=A.replace(/\u200B/g,"");A=A.replace(/ +/g," ");A!=" "&&(A=A.replace(/^\s*/,""));return A};
CJc=function(A){var L=[];lSc(A,L,!1);return L.join("")};
lSc=function(A,L,O){if(!(A.nodeName in rku))if(A.nodeType==3)O?L.push(String(A.nodeValue).replace(/(\r\n|\r|\n)/g,"")):L.push(A.nodeValue);else if(A.nodeName in K$u)L.push(K$u[A.nodeName]);else for(A=A.firstChild;A;)lSc(A,L,O),A=A.nextSibling};
_.F$H=function(A,L,O){if(!L&&!O)return null;var X=L?String(L).toUpperCase():null;return _.my(A,function(x){return(!X||x.nodeName==X)&&(!O||typeof x.className==="string"&&_.Id(x.className.split(/\s+/),O))},!0)};
_.my=function(A,L,O){A&&!O&&(A=A.parentNode);for(O=0;A;){if(L(A))return A;A=A.parentNode;O++}return null};
C5=function(A){this.JSC$10345_document_=A||_.Ou.document||document};
_.P=C5.prototype;_.P.getElement=function(A){return _.uS(this.JSC$10345_document_,A)};
_.P.$=C5.prototype.getElement;_.P.getElementsByTagName=function(A,L){return(L||this.JSC$10345_document_).getElementsByTagName(String(A))};
_.P.getElementsByTagNameAndClass=function(A,L,O){return F4(this.JSC$10345_document_,A,L,O)};
_.P.$$=C5.prototype.getElementsByTagNameAndClass;_.P.setProperties=VZc;_.P.JSC$10347_createDom=function(A,L,O){return eSu(this.JSC$10345_document_,arguments)};
_.P.createElement=function(A){return EXL(this.JSC$10345_document_,A)};
_.P.createTextNode=function(A){return this.JSC$10345_document_.createTextNode(String(A))};
_.P.getWindow=function(){return this.JSC$10345_document_.defaultView};
var Sx=function(A){return _.DQ7(A.JSC$10345_document_)};
_.P=C5.prototype;_.P.appendChild=function(A,L){A.appendChild(L)};
_.P.append=tZ7;_.P.canHaveChildren=f5;_.P.removeNode=_.hg;_.P.getChildren=_.ju;_.P.contains=_.In;_.P=dz.prototype;_.P.getWidth=function(){return this.right-this.left};
_.P.getHeight=function(){return this.bottom-this.top};
_.P.clone=function(){return new dz(this.top,this.right,this.bottom,this.left)};
_.P.contains=function(A){return this&&A?A instanceof dz?A.left>=this.left&&A.right<=this.right&&A.top>=this.top&&A.bottom<=this.bottom:A.x>=this.left&&A.x<=this.right&&A.y>=this.top&&A.y<=this.bottom:!1};
_.P.expand=function(A,L,O,X){_.BJ(A)?(this.top-=A.top,this.right+=A.right,this.bottom+=A.bottom,this.left-=A.left):(this.top-=A,this.right+=Number(L),this.bottom+=Number(O),this.left-=Number(X));return this};
_.P.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};
_.P.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};
_.P.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
_.P.translate=function(A,L){A instanceof _.Cm?(this.left+=A.x,this.right+=A.x,this.top+=A.y,this.bottom+=A.y):(this.left+=A,this.right+=A,typeof L==="number"&&(this.top+=L,this.bottom+=L));return this};
_.P.scale=function(A,L){L=typeof L==="number"?L:A;this.left*=A;this.right*=A;this.top*=L;this.bottom*=L;return this};var H6=function(A,L,O,X){this.left=A;this.top=L;this.width=O;this.height=X};
_.P=H6.prototype;_.P.clone=function(){return new H6(this.left,this.top,this.width,this.height)};
_.P.boundingRect=function(A){var L=Math.max(this.left+this.width,A.left+A.width),O=Math.max(this.top+this.height,A.top+A.height);this.left=Math.min(this.left,A.left);this.top=Math.min(this.top,A.top);this.width=L-this.left;this.height=O-this.top};
_.P.contains=function(A){return A instanceof _.Cm?A.x>=this.left&&A.x<=this.left+this.width&&A.y>=this.top&&A.y<=this.top+this.height:this.left<=A.left&&this.left+this.width>=A.left+A.width&&this.top<=A.top&&this.top+this.height>=A.top+A.height};
_.P.distance=function(A){var L=A.x<this.left?this.left-A.x:Math.max(A.x-(this.left+this.width),0);A=A.y<this.top?this.top-A.y:Math.max(A.y-(this.top+this.height),0);return Math.sqrt(L*L+A*A)};
_.P.getSize=function(){return new _.bW(this.width,this.height)};
_.P.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.P.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.P.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.P.translate=function(A,L){A instanceof _.Cm?(this.left+=A.x,this.top+=A.y):(this.left+=A,typeof L==="number"&&(this.top+=L));return this};
_.P.scale=function(A,L){L=typeof L==="number"?L:A;this.left*=A;this.width*=A;this.top*=L;this.height*=L;return this};var Q7V,MS,Y4d,B6,ykJ,ISV,ZJN,KRd,j7u,HJn;_.zv=function(A,L,O){if(typeof L==="string")(L=_.RS6(A,L))&&(A.style[L]=O);else for(var X in L){O=A;var x=L[X],J=_.RS6(O,X);J&&(O.style[J]=x)}};
Q7V={};_.RS6=function(A,L){var O=Q7V[L];if(!O){var X=_.bi(L);O=X;A.style[X]===void 0&&(X=(_.tW?"Webkit":_.ns?"Moz":null)+s6V(X),A.style[X]!==void 0&&(O=X));Q7V[L]=O}return O};
_.pv=function(A,L){var O=_.Ro(A);return O.defaultView&&O.defaultView.getComputedStyle&&(A=O.defaultView.getComputedStyle(A,null))?A[L]||A.getPropertyValue(L)||"":""};
_.f$=function(A,L){return _.pv(A,L)||(A.currentStyle?A.currentStyle[L]:null)||A.style&&A.style[L]};
_.mQl=function(A){return _.f$(A,"position")};
MS=function(A,L,O){if(L instanceof _.Cm){var X=L.x;L=L.y}else X=L,L=O;A.style.left=B6(X,!1);A.style.top=B6(L,!1)};
Y4d=function(A){try{return A.getBoundingClientRect()}catch(L){return{left:0,top:0,right:0,bottom:0}}};
_.QS=function(A){var L=_.Ro(A),O=new _.Cm(0,0);if(A==(L?_.Ro(L):document).documentElement)return O;A=Y4d(A);L=Sx(qF(L));O.x=A.left+L.x;O.y=A.top+L.y;return O};
_.fSN=function(A,L,O){if(L instanceof _.bW)O=L.height,L=L.width;else if(O==void 0)throw Error("oa");A.style.width=B6(L,!0);A.style.height=B6(O,!0)};
B6=function(A,L){typeof A=="number"&&(A=(L?Math.round(A):A)+"px");return A};
ykJ=function(A){return ISV(A)};
ISV=function(A){var L=ZJN;if(_.f$(A,"display")!="none")return L(A);var O=A.style,X=O.display,x=O.visibility,J=O.position;O.visibility="hidden";O.position="absolute";O.display="inline";A=L(A);O.display=X;O.position=J;O.visibility=x;return A};
ZJN=function(A){var L=A.offsetWidth,O=A.offsetHeight,X=_.tW&&!L&&!O;return(L===void 0||X)&&A.getBoundingClientRect?(A=Y4d(A),new _.bW(A.right-A.left,A.bottom-A.top)):new _.bW(L,O)};
KRd=function(A){var L=_.QS(A);A=ISV(A);return new H6(L.x,L.y,A.width,A.height)};
j7u=function(A,L){A=A.style;"opacity"in A?A.opacity=L:"MozOpacity"in A?A.MozOpacity=L:"filter"in A&&(A.filter=L===""?"":"alpha(opacity="+Number(L)*100+")")};
_.zX=function(A,L){A.style.display=L?"":"none"};
_.W$u=function(A){return"rtl"==_.f$(A,"direction")};
HJn=function(A){var L=_.pv(A,"marginLeft"),O=_.pv(A,"marginRight"),X=_.pv(A,"marginTop");A=_.pv(A,"marginBottom");return new dz(parseFloat(X),parseFloat(O),parseFloat(A),parseFloat(L))};
_.zSV=function(A){var L=_.pv(A,"borderLeftWidth"),O=_.pv(A,"borderRightWidth"),X=_.pv(A,"borderTopWidth");A=_.pv(A,"borderBottomWidth");return new dz(parseFloat(X),parseFloat(O),parseFloat(A),parseFloat(L))};var aS=function(A){this.context=A};
aS.prototype.isSupported=function(A){return(A==null?0:A.attributionEnabled)||(A==null?void 0:A.beaconMethod)==="POST"||(A==null?0:A.customHeaders)||(A==null?0:A.customBody)||(A==null?0:A.keepAlive)?!1:!i_(this.context)};
aS.prototype.ping=function(){var A=this;return wp(_.f_.apply(0,arguments).map(function(L){try{var O=A.context.global,X=!1;X=X===void 0?!1:X;O.google_image_requests||(O.google_image_requests=[]);var x=s7J("IMG",O.document);X&&(x.attributionSrc="");x.src=L;O.google_image_requests.push(x);return!0}catch(J){return!1}}).every(function(L){return L}))};
aS.prototype.pingWithHeadersAndBody=function(A,L,O){this.ping.apply(this,_.le(_.f_.apply(3,arguments)))};var BB6=function(A){this.context=A};
BB6.prototype.isSupported=function(A){return MZN&&!i_(this.context)&&I4M(this.context)!==void 0&&!(A==null?0:A.attributionEnabled)&&(A==null?void 0:A.beaconMethod)!=="POST"&&!(A==null?0:A.customHeaders)&&!(A==null?0:A.customBody)};
BB6.prototype.makeBeacon=function(A,L){if(!this.isSupported(L))throw new qS;return new kj(this.context,A)};
var MZN=!1,kj=function(A,L){this.context=A;this.JSC$10366_urlWithoutToken=L;A=I4M(this.context);if(A===void 0)throw Error();this.wrappedBeacon=new A($QH(this),{})},$QH=function(A){A=A.JSC$10366_urlWithoutToken;
return(A.slice(-1)[0]==="&"?A:A+"&")+"pbapi=1"};
kj.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
kj.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
kj.prototype.setHeader=function(){};
_.v2.Object.defineProperties(kj.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$10366_urlWithoutToken},
set:function(A){this.JSC$10366_urlWithoutToken=A;this.wrappedBeacon.setURL($QH(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(A){if(A!=="GET")throw new qS;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var aS7=function(A){this.context=A};
aS7.prototype.isSupported=function(A){if((A==null?0:A.attributionEnabled)||(A==null?void 0:A.beaconMethod)==="GET"||(A==null?0:A.customHeaders)||(A==null?0:A.customBody)||(A==null?0:A.keepAlive))return!1;var L;return!i_(this.context)&&((L=this.context.global.navigator)==null?void 0:L.sendBeacon)!==void 0};
aS7.prototype.ping=function(){var A=this;return wp(_.f_.apply(0,arguments).map(function(L){var O;return(O=A.context.global.navigator)==null?void 0:O.sendBeacon(L)}).every(function(L){return L}))};
aS7.prototype.pingWithHeadersAndBody=function(A,L,O){this.ping.apply(this,_.le(_.f_.apply(3,arguments)))};var nm=function(A){this.value=A},ao=function(A,L){return wp(A.value).pipe(D4(L))},UO=new nm(!1),qsD=new nm(!0);var fm=function(A){this.value=A;this.releasedSubject=new uW};
fm.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.v2.Object.defineProperties(fm.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$10379_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var vTJ=["FRAME","IMG","IFRAME"],Bzs=/^[01](px)?$/,UFp=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},k0_=function(){var A=new UFp;
A.crossDomainLoadedDefault=!0;A.pendingImagesBlockLoad=!0;return A};var knJ=function(A,L){var O=snd(A);if(O)if(O.onCreativeLoad)O.onCreativeLoad(L);else{var X=L?[L]:[],x=function(J){for(var Y=0;Y<X.length;++Y)try{X[Y](1,J)}catch(T){}X={push:function(T){T(1,J)}}};
O.onCreativeLoad=function(J){X.push(J)};
O.setAttribute("data-creative-load-listener","");O.addEventListener("creativeLoad",function(J){x(J.detail)});
_.Ou.addEventListener("message",function(J){xYO(O,x,J)})}};var Uv=function(A,L){var O=this;this.global=A;this.parentContext=L;this.JSC$10390_onVisibilityChange=this.document?mh(wp(!0),R9(this.document,"visibilitychange")).pipe(j4(this.parentContext.performanceMonitor,748),GM(function(){return O.getVisibilityState()}),Mo()):wp("visible");
this.document?R9(this.document,"DOMContentLoaded").pipe(j4(this.parentContext.performanceMonitor,739),Bz(1)):wp(HmM("DOMContentLoaded"))},SsJ=function(A){return A.document!==null&&A.document.visibilityState!==void 0};
Uv.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
Uv.prototype.querySelector=function(A){return this.document?this.document.querySelector(A):null};
Uv.prototype.querySelectorAll=function(A){return this.document?_.Ze(this.document.querySelectorAll(A)):[]};
Uv.prototype.elementFromPoint=function(A,L){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;A=this.document.elementFromPoint(A,L);return A===null?null:new fm(A)};
var YsP=function(A,L,O){O=O===void 0?!1:O;if(L.ref===void 0||!A.document)return wp(L).pipe(j4(A.parentContext.performanceMonitor,749));var X=new vz(1),x=function(){X.next(L)};
O||knJ(L.ref,x);oT_(L.ref,x);return X.pipe(j4(A.parentContext.performanceMonitor,749),Bz(1))};
_.v2.Object.defineProperties(Uv.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return pTp(this.global,"document")?this.global.document||null:null}}});var Jgu=_.AW(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),PsP=_.AW(["./reach_worklet.js"]),dYP=_.AW(["./reach_worklet.js"]),UQN=_.AW(["./reach_worklet.html"]),vXu=_.AW(["./reach_worklet.js"]),oXL=_.AW(["./reach_worklet.js"]);_.JD(UQN);_.JD(vXu);_.JD(oXL);var jx={left:0,top:0,width:0,height:0};var AEN,LJ7,O_J,Xfl,oO,sPV,JEj,PaH,TCu,VwP,uPJ,TwN;AEN=function(A,L,O,X,x,J,Y){var T="";A&&(T+=A+":");O&&(T+="//",L&&(T+=L+"@"),T+=O,X&&(T+=":"+X));x&&(T+=x);J&&(T+="?"+J);Y&&(T+="#"+Y);return T};
LJ7=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.Us=function(A){return A.match(LJ7)};
_.RI=function(A,L){return A?L?decodeURI(A):decodeURIComponent(A):A};
O_J=function(A){A=_.Us(A)[1]||null;!A&&_.Ou.self&&_.Ou.self.location&&(A=_.Ou.self.location.protocol.slice(0,-1));return A?A.toLowerCase():""};
_.vY=function(A){return _.RI(_.Us(A)[3]||null,!0)};
_.eh=function(A){return _.RI(_.Us(A)[5]||null,!0)};
_.NL9=function(A){var L=A.indexOf("#");return L<0?null:A.slice(L+1)};
Xfl=function(A){A=_.Us(A);return AEN(A[1],A[2],A[3],A[4])};
_.x06=function(A){A=_.Us(A);return AEN(A[1],null,A[3],A[4])};
_.W3=function(A){A=_.Us(A);return AEN(null,null,null,null,A[5],A[6],A[7])};
_.v3=function(A){var L=A.indexOf("#");return L<0?A:A.slice(0,L)};
oO=function(A,L){A=_.Us(A);L=_.Us(L);return A[3]==L[3]&&A[1]==L[1]&&A[4]==L[4]};
sPV=function(A,L){if(A){A=A.split("&");for(var O=0;O<A.length;O++){var X=A[O].indexOf("="),x=null;if(X>=0){var J=A[O].substring(0,X);x=A[O].substring(X+1)}else J=A[O];L(J,x?Le(x):"")}}};
JEj=function(A){var L=A.indexOf("#");L<0&&(L=A.length);var O=A.indexOf("?");if(O<0||O>L){O=L;var X=""}else X=A.substring(O+1,L);return[A.slice(0,O),X,A.slice(L)]};
PaH=function(A,L){return L?A?A+"&"+L:L:A};
_.d0j=function(A,L){if(!L)return A;A=JEj(A);A[1]=PaH(A[1],L);return A[0]+(A[1]?"?"+A[1]:"")+A[2]};
_.YBN=function(A,L,O){if(Array.isArray(L))for(var X=0;X<L.length;X++)_.YBN(A,String(L[X]),O);else L!=null&&O.push(A+(L===""?"":"="+_.zD(L)))};
_.ne=function(A){var L=[],O;for(O in A)_.YBN(O,A[O],L);return L.join("&")};
_.kL=function(A,L){L=_.ne(L);return _.d0j(A,L)};
_.v6=function(A,L,O){O=O!=null?"="+_.zD(O):"";return _.d0j(A,L+O)};
TCu=function(A,L,O,X){for(var x=O.length;(L=A.indexOf(O,L))>=0&&L<X;){var J=A.charCodeAt(L-1);if(J==38||J==63)if(J=A.charCodeAt(L+x),!J||J==61||J==38||J==35)return L;L+=x+1}return-1};
VwP=/#|$/;_.yI=function(A,L){var O=A.search(VwP),X=TCu(A,0,L,O);if(X<0)return null;var x=A.indexOf("&",X);if(x<0||x>O)x=O;X+=L.length+1;return Le(A.slice(X,x!==-1?x:0))};
uPJ=/[?&]($|#)/;_.Az=function(A,L){for(var O=A.search(VwP),X=0,x,J=[];(x=TCu(A,X,L,O))>=0;)J.push(A.substring(X,x)),X=Math.min(A.indexOf("&",x)+1||O,O);J.push(A.slice(X));return J.join("").replace(uPJ,"$1")};
_.y$=function(A,L,O){return _.v6(_.Az(A,L),L,O)};
TwN=function(A){var L=JEj(window.location.href),O=L[1],X=[];O&&O.split("&").forEach(function(x){var J=x.indexOf("=");J=J>=0?x.slice(0,J):x;A.hasOwnProperty(J)||X.push(x)});
L[1]=PaH(X.join("&"),_.ne(A));return L[0]+(L[1]?"?"+L[1]:"")+L[2]};var KK9=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(KK9,_.AE);KK9.prototype.getVersion=function(){return _.mT(this,2)};var rgD=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(rgD,_.AE);var qTM=function(A,L){return _.gz(A,2,L)},NXp=function(A,L){return _.gz(A,3,L)};
rgD.prototype.getModel=function(){return _.mT(this,4)};
var wqr=function(A,L){return _.gz(A,4,L)},STu=function(A,L){return _.gz(A,5,L)},i$M=function(A,L){return _.gz(A,9,L)},hYJ=function(A,L){return l1(A,10,L)},b$d=function(A,L){return _.dX(A,11,L)},g8D=function(A,L){return _.gz(A,1,L)},pq9=function(A,L){return _.dX(A,7,L)};var n8e="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var kT=function(A,L,O,X){A=A===void 0?window:A;L=L===void 0?null:L;O=O===void 0?new i9H:O;X=X===void 0?YTD():X;SgV.call(this);var x=this;this.global=A;this.debugChannel=L;this.performanceMonitor=O;this.onPageHide=Uoy(function(){return R9(x.global,"pagehide")}).pipe(j4(this.performanceMonitor,941));
this.onLoad=Uoy(function(){return R9(x.global,"load")}).pipe(j4(this.performanceMonitor,738),Bz(1));
this.onResize=Uoy(function(){return R9(x.global,"resize")}).pipe(j4(this.performanceMonitor,741));
this.onMessage=Uoy(function(){return R9(x.global,"message")}).pipe(j4(this.performanceMonitor,740));
this.document=new Uv(this.global,this);this.timeProvider=new NJc(new Klc(this.intrinsicFunctionNamespace,this.performanceMonitor),new rcV(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new wnV(new lNH(this),new BB6(this),new gk(this,new FlH(this)),new gk(this,new aS7(this)),new gk(this,new aS(this)))};
_.g(kT,SgV);var i_=function(A){var L=A.global;return!!A.global.HTMLFencedFrameElement&&!!L.fence&&typeof L.fence.reportEvent==="function"};
_.P=kT.prototype;_.P.reportFencedFrameEvent=function(A){i_(this)&&this.global.fence.reportEvent(A)};
_.P.getOnBackgrounded=function(){return this.onPageHide.pipe(j4(this.performanceMonitor,942),D4(this.queue),GM(function(){}))};
_.P.postMessage=function(A,L,O){O=O===void 0?[]:O;this.global.postMessage(A,L,O)};
_.P.getWidth=function(){return imu(this.global)?this.global.width:0};
_.P.getHeight=function(){return imu(this.global)?this.global.height:0};
_.P.isMobile=function(){return Q6l()||mNJ()};
var Io=function(A,L){try{var O=DYu(L,A.global,A.isMobile());return{left:O.left,top:O.top,width:O.getWidth(),height:O.getHeight()}}catch(X){return jx}};
kT.prototype.validate=function(){var A=this.beaconFactory.isSupported()||i_(this);return this.global&&this.timeProvider.available()&&A};
var Zmp=function(A){return(A=lgO(A.global))?DM(A):null};
_.v2.Object.defineProperties(kT.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(A){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!imu(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}}});_.VgN=!_.Ei&&!_.upe();var gLJ=function(A){return A};var pYJ=function(A){return A.pipe(fL(function(L){var O=L.endOfSessionReason;var X;return((X=L.viewable)==null?void 0:X.extrapolateToNow().value)||O!=void 0}),Bz(1),Hz())};var fgJ=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},Ige=function(A){var L=A.sequenceNumber.toString(10).padStart(2,"0");
L=""+A.startTime+L;A.sequenceNumber<99&&A.sequenceNumber++;return L};var hfd=dp(XT(function(A){return A.endOfSessionReason===void 0}),GM(function(A){return Object.assign({},A,{timestamps:NF(A)})}),fL(function(A){var L=A.viewable;
A=A.timestamps;var O;return(O=L==null?void 0:L.extrapolateUsingTimestampMap(A).value)!=null?O:!1}),GM(function(A){var L=A.beaconFactory;
var O=A.timestampedExposureHistory;var X=A.timeOnScreen;var x=A.binaryContext;A=A.timestamps;if(L===void 0||O===void 0||X===void 0||x===void 0)return!1;if(X.extrapolateUsingTimestampMap(A).value.every(function(J){return J>=0}))return!0;
O=O.map(function(J){return J.timestamp+":"+J.value}).join(",");
X=ygu({bin:x,tos:X},A);L.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+X+("&eh="+O)).sendNow();return!0}),XT(function(A){return!A}),Hz());var jnu=function(A){return{id:A.pingId,mcvt:A.maxConsecutiveViewTime,p:A.creativePosition,asp:A.adSpeedPosition,tm:A.totalMeasurementTime,tu:A.totalUnviewedTime,mtos:A.maxTimeOnScreen,tos:A.timeOnScreen,v:A.binaryVersion,bin:A.binaryContext,avms:A.measurementStrategy,bs:A.browserSize,mc:A.maximumExposure,"if":A.crossDomainIframeState,vu:A.delayedImpressionJsState,app:A.inApp,mse:A.mraidError,mtop:A.mraidSituation,itpl:A.injectedTemplateId,adk:A.adKey,exk:A.awbidKey,rs:A.requestSource,la:A.isLargeAd,
cr:A.isContentRecommendationAd,uach:A.userAgentClientHints,vs:A.viewState,r:A.reasonCode,pay:A.hasCpmavUrl,co:A.clientPingOrderCounter,rst:A.adRenderStartTime,rpt:A.adRenderPeriodTime,isd:A.initialScrollDepth,lsd:A.loadedScrollDepth,context:A.errorContext,msg:A.errorMessage,stack:A.errorStack,name:A.errorName,ec:A.hasElementChanged,sfr:A.strategyFailureReasons,met:A.creativeSearchResult,wmsd:A.webMeasurementStartDiagnostic,pv:A.pageVisible,epv:A.eosPageVisible,pbe:A.inStatefulBeaconExperiment,fle:A.inFetchLaterBeaconExperiment,
vae:A.inViewableAttributionExperiment,spb:A.supportsPendingBeacon,sfl:A.supportsFetchLater,ffslot:A.isFencedFrameSlotTurtlex,reach:A.sharedStorageReachMode,io2:A.v2VisibilityBitVector,rxdbg:A.rxDebugger,omida:A.omidAppId,omidp:A.omidPartner,omidpv:A.omidPartnerVersion,omidor:A.omidOcclusionReasons,omidv:A.omidVersion,omids:A.omidSessionType,omidam:A.omidAccessMode,omidct:A.omidCreativeType,omidia:A.omidInApp,omiddc:A.omidDeviceCategory,omidlat:A.omidLastActivity,omiddit:A.omidDeviceIdleTime,qid:A.errorEscapedQueryId}};var wYJ=function(A){var L=[];return A.pipe(GM(function(O){var X=O.beaconFactory,x=O.fetchBeaconFactory,J=O.timeOnScreen,Y=O.timeOnScreenUrlPrefixes,T=O.payloadMapper,V=O.timeOnScreenPingId,E=O.timeOnScreenReason,n=O.urlSerializer,t=O.viewable,b=O.hasImpressionFired,S=O.inStatefulBeaconExperiment,w=O.supportsPendingBeacon,l=O.supportsFetchLater,F=O.turtlexReportEventData;if(!O.geometryMeasurable||!b||O.maxTimeOnScreen===void 0||J===void 0||Y===void 0||T===void 0||V===void 0||n===void 0||X===void 0)return!1;
if(O.isTurtlex){if(E===void 0)return!1;Y=O.reportFencedFrameEvent;if(!Y)return!1;Y({eventType:"active-view-time-on-screen",eventData:F!=null?F:"",destination:["buyer"]});return!0}if(!(S||l||E))return!1;F=NF(O);var R;t=(R=t==null?void 0:t.extrapolateUsingTimestampMap(F).value)!=null?R:!1;R=n(Object.assign({},O,{pingId:V,viewState:t?4:3,reasonCode:E!=null?E:"u",payloadMapper:T,urlPrefixes:Y}),F);if(S){for(;L.length>Y.length;)O=void 0,(O=L.shift())==null||O.deactivate();R.forEach(function(M,H){H>=L.length?
L.push(X.makeBeacon(M)):L[H].url=M});
return w&&x&&E!==void 0?(R.forEach(function(M){x.makeBeacon(M).sendNow()}),!0):E!==void 0}if(w&&x&&E!==void 0)return R.forEach(function(M){x.makeBeacon(M).sendNow()}),!0;
if(l&&x){for(;L.length>Y.length;)w=void 0,(w=L.shift())==null||w.deactivate();var y=n(Object.assign({},O,{pingId:V,viewState:t?4:3,reasonCode:E!=null?E:"u",payloadMapper:T,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),F)[0];R.forEach(function(M,H){H>=L.length?L.push(X.makeBeacon(y,{endOfSession:!0})):L[H].url=y});
return E!==void 0?(R.forEach(function(M){x.makeBeacon(M).sendNow()}),!0):E!==void 0}return E!==void 0?(R.forEach(function(M){X.makeBeacon(M).sendNow()}),!0):!1}),XT(function(O){return!O}),Hz())};var iBM=dp(fL(function(A){return A.immediateUrlPrefixes!==void 0&&A.payloadMapper!==void 0&&A.urlSerializer!==void 0&&A.inferredPingId!==void 0&&A.beaconFactory!==void 0}),fL(function(A){return kXJ(A)!==null}),$Y_(function(A){return A.activeViewUnmeasurableEvent},function(A){return A.emit}),GM(function(A){if(A.isTurtlex){var L=A.reportFencedFrameEvent;
if(L){var O;L({eventType:"active-view-unmeasurable",eventData:(O=A.turtlexReportEventData)!=null?O:"",destination:["buyer"]})}}else{O=void 0;var X=kXJ(A);if(X==="x"){var x,J=(x=A.geometricMeasurementErrors)!=null?x:A.contextValidationErrors;J&&(L=J.stack,O=J.message)}A.urlSerializer(Object.assign({},A,{urlPrefixes:A.immediateUrlPrefixes,payloadMapper:A.payloadMapper,pingId:A.inferredPingId,viewState:2,reasonCode:X,errorMessage:O,errorStack:L}),NF(A)).forEach(function(Y){A.beaconFactory.makeBeacon(Y).sendNow()})}}),
Bz(1),Hz());var UYp=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var bBr=dp(fL(function(A){return A.payloadMapper!==void 0&&A.immediateUrlPrefixes!==void 0&&A.urlSerializer!==void 0&&A.inferredPingId!==void 0&&A.beaconFactory!==void 0}),GM(function(A){return Object.assign({},A,{timestamps:NF(A)})}),fL(function(A){var L=A.viewable;
var O=A.hasImpressionFired;A=A.timestamps;var X;return!!O&&((X=L==null?void 0:L.extrapolateUsingTimestampMap(A).value)!=null?X:!1)}),$Y_(function(A){return A.activeViewViewableEvent},function(A){return A.emit}),GM(function(A){var L=A.beaconFactory,O=A.turtlexReportEventData;
if(A.isTurtlex){var X=A.reportFencedFrameEvent;if(!X)return!1;X({eventType:"active-view-viewable",eventData:O!=null?O:"",destination:["buyer"]});return!0}O=A.urlSerializer(Object.assign({},A,{urlPrefixes:A.immediateUrlPrefixes,payloadMapper:A.payloadMapper,pingId:A.inferredPingId,viewState:4,reasonCode:"v"}),A.timestamps);(X=A.cpmavUrls)&&X.length>0&&A.viewUrlSerializer&&A.viewUrlSerializer(X,A).forEach(function(x){L.makeBeacon(x).sendNow()});
(X=A.viewableRelayUrls)&&X.length>0&&A.viewUrlSerializer&&A.viewUrlSerializer(X,A).forEach(function(x){L.makeBeacon(x).sendNow()});
O.forEach(function(x){L.makeBeacon(x,{attributionEnabled:A.isViewableAttributionEnabled}).sendNow()});
return!0}),XT(function(A){return!A}),Hz());var jer=GM(function(A){return[A.value.topWindowViewportExternalGeometry.width,A.value.topWindowViewportExternalGeometry.height]});var yS=function(A,L){this.callback=A;this.options=L;this.intersectionObserverV2=this.intersectionObserverV1=null},wur=function(A,L){L?A.intersectionObserverV2||(L=Object.assign({},A.options,{delay:100,
trackVisibility:!0}),A.intersectionObserverV2=new IntersectionObserver(A.callback,L)):A.intersectionObserverV1||(A.intersectionObserverV1=new IntersectionObserver(A.callback,A.options))},D0J=function(A,L){A=L?A.intersectionObserverV2:A.intersectionObserverV1;
if(!A)throw new qgg;return A};
yS.prototype.observe=function(A,L){D0J(this,A).observe(L)};
yS.prototype.unobserve=function(A,L){D0J(this,A).unobserve(L)};
yS.prototype.disconnect=function(A){D0J(this,A).disconnect()};
yS.prototype.takeRecords=function(A){return D0J(this,A).takeRecords()};var TFu={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:jx,topWindowViewportExternalGeometry:jx,measurementRequests:new uW,elementGeometrySourceName:"ns",elementGeometry:jx,intersectionGeometry:jx,viewportLocalAppOffset:{x:0,y:0}};var lW9=WT(dp(GM(function(A){var L;return(L=A.exposureOverride)!=null?L:irD(A)}),GM(function(A){return isFinite(A)?A:0}))),fWP=WT(dp(GM(function(A){var L;
return(L=A.exposureOverride)!=null?L:irD(A)}),GM(function(A){return isFinite(A)?A:-1})));var oS=function(A,L){this.a=A;this.b=L;if(A.clock.timeline!==L.clock.timeline)throw Error();};
oS.prototype.equivalentTo=function(A){return A instanceof oS?this.a.equivalentTo(A.a)&&this.b.equivalentTo(A.b):!1};
oS.prototype.extrapolateToTime=function(A){var L=this.a.extrapolateToTime(A).value,O=this.b.extrapolateToTime(A).value;return{timestamp:A,value:[L,O]}};
_.v2.Object.defineProperties(oS.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 A=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),L=this.a.lastMeasurement.timestamp.equals(A)?this.a.lastMeasurement.value:this.a.extrapolateToTime(A).value,O=this.b.lastMeasurement.timestamp.equals(A)?this.b.lastMeasurement.value:this.b.extrapolateToTime(A).value;return{timestamp:A,value:[L,O]}}}});var AQ=function(A,L){this.input=A;this.mapFunction=L;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
AQ.prototype.equivalentTo=function(A){return A instanceof AQ?this.input.equivalentTo(A.input)&&this.mapFunction===A.mapFunction:!1};
AQ.prototype.extrapolateToTime=function(A){A=this.input.extrapolateToTime(A);return{timestamp:A.timestamp,value:this.mapFunction(A.value)}};
_.v2.Object.defineProperties(AQ.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var Lc=function(){};
Lc.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
Lc.prototype.extrapolateUsingTimestampMap=function(A){var L=this.clock.timeline,O,X=(O=A.get(L))!=null?O:this.clock.now();A.set(L,X);return this.extrapolateToTime(X)};
Lc.prototype.map=function(A){return new e3J(this,A)};
Lc.prototype.joinWith=function(A){return new EWn(this,A)};
var EWn=function(){oS.apply(this,arguments);this.map=Lc.prototype.map;this.joinWith=Lc.prototype.joinWith;this.extrapolateToNow=Lc.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Lc.prototype.extrapolateUsingTimestampMap};
_.g(EWn,oS);var e3J=function(){AQ.apply(this,arguments);this.map=Lc.prototype.map;this.joinWith=Lc.prototype.joinWith;this.extrapolateToNow=Lc.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Lc.prototype.extrapolateUsingTimestampMap};
_.g(e3J,AQ);var z0=function(A,L){this.lastMeasurement=L;this.extrapolateToNow=Lc.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Lc.prototype.extrapolateUsingTimestampMap;this.map=Lc.prototype.map;this.joinWith=Lc.prototype.joinWith;this.clock=A};
z0.prototype.equivalentTo=function(A){return A.active};
z0.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.v2.Object.defineProperties(z0.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var ZrM=GM(function(A){if(A.value.viewportGeometrySourceName==="omid"){if(A.value.elementGeometrySourceName==="nio")return"omio";if(A.value.elementGeometrySourceName==="geo")return"omgeo"}return A.value.elementGeometrySourceName==="geo"||A.value.elementGeometrySourceName==="nio"?A.value.viewportGeometrySourceName:A.value.elementGeometrySourceName});var r0e=dp(fL(function(A){return!isNaN(A)}),AD(function(A,L){return isNaN(A)?L:Math.min(A,L)},NaN),Mo());var c0O=WT(dp(GM(function(A){return A.intersectionGeometry.width*A.intersectionGeometry.height/(A.exposedViewportLocalGeometry.width*A.exposedViewportLocalGeometry.height)}),GM(function(A){return isFinite(A)?Math.min(1,A):0})));var y0p=dp(WT(GM(function(A){A=A.exposureOverride?A.elementGeometry.width*A.elementGeometry.height*A.exposureOverride/(A.topWindowViewportExternalGeometry.width*A.topWindowViewportExternalGeometry.height):A.intersectionGeometry.width*A.intersectionGeometry.height/(A.topWindowViewportExternalGeometry.width*A.topWindowViewportExternalGeometry.height);return isFinite(A)?A:0})));var zUp=function(A,L){var O=this;this.timeProvider=A;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=L.pipe(Mo()).subscribe(function(X){MIr(O);O.measurementRequestObserver=X})},$De=function(A,L){MIr(A);
A.lastMeasurementRequest=A.timeProvider.setTimeout(function(){var O;return void((O=A.measurementRequestObserver)==null?void 0:O.next())},L)},MIr=function(A){A.lastMeasurementRequest!==null&&A.timeProvider.clearTimeout(A.lastMeasurementRequest);
A.lastMeasurementRequest=null};
zUp.prototype.dispose=function(){MIr(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var nWV=function(){};var ELp=function(A,L){this.context=A;this.strategies=L};
_.g(ELp,nWV);ELp.prototype.buildGeometrySource=function(A,L){var O=this.strategies.map(function(J){return J.buildGeometrySource(A,L)}),X=oNy(O.map(function(J){return J.geometrySource})),x=X.capturedErrors.pipe(tgL());
return{geometrySource:X.chain.pipe(D4(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:x,strategyErrors:X.capturedErrors}].concat(_.le(O.map(function(J){return J.additionalOutputs}))))}};
var tgL=function(){return AD(function(A,L){L instanceof Km?A.push(L.measurementStrategyFailureReason):A.push(-1);return A},[])};var t6d=function(A,L){this.context=A;this.poller=L};
_.g(t6d,nWV);t6d.prototype.buildGeometrySource=function(A,L){var O=A8D(OBP(this.context,this.poller),VI_(this.context,L.requestSource));return{geometrySource:vN9(A.measurableCreative.pipe(O),L.inApp),additionalOutputs:{}}};var nLs=function(A,L,O){O=O===void 0?brP(A,L):O;this.context=A;this.intersectionObserverStrategy=O};
_.g(nLs,nWV);nLs.prototype.buildGeometrySource=function(A,L){var O=this.intersectionObserverStrategy(L.useV2);return{geometrySource:vN9(A.measurableCreative.pipe(O,hUy(this.context)),L.inApp),additionalOutputs:{}}};var b_6=function(A,L,O){var X=X===void 0?Symbol():X;this.element=A;this.immediateUrls=L;this.timeOnScreenUrls=O;this.symbol=X};var Hr_=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),Pkd=Object.freeze([1,.75,Hr_.exposureThreshold,Hr_.largeAdExposureThreshold,0]);var SHy=function(A,L){L=L===void 0?36E5:L;var O=O===void 0?!0:O;this.creatives=new uW;this.elementsToUnregister=new uW;this.elementMap=new Map;var X=new kT(window,null);X.beaconFactory=new gk(X,new aS(X));efs(X,this.creatives,this.elementsToUnregister,A,L,O).subscribe()},wjP=function(A,L,O,X){if(!A.elementMap.has(L)){var x=new fm(L);
A.elementMap.set(L,x);A.creatives.next(new b_6(x,O,X))}},gMr=function(A,L){A.elementsToUnregister.next(L);
var O=A.elementMap.get(L);O!==void 0&&(O.release(),A.elementMap.delete(L))};var Db_=function(A){var L=A.url;A=A.uaDataValues;this.JSC$10495_url_=L;this.uaDataValues_=A;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var O=/[?&]([^&=]+)=([^&]*)/g;A=O.exec(L);)this.urlParamValues_[A[1]]=A[2]},ek9=function(A){A=A.uaDataValues_;
if(!A)return"";var L=vT("uap",A.platform)+vT("uapv",A.platformVersion)+vT("uafv",A.uaFullVersion)+vT("uaa",A.architecture)+vT("uam",A.model)+vT("uab",A.bitness);A.fullVersionList&&(L+="&uafvl="+encodeURIComponent(A.fullVersionList.map(function(O){return encodeURIComponent(O.brand)+";"+encodeURIComponent(O.version)}).join("|")));
A.wow64!=null&&(L+="&uaw="+Number(A.wow64));return L.slice(1)};var h3u=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(h3u,_.AE);h3u.prototype.getId=function(){return _.mT(this,1)};var OM=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(OM,_.AE);OM.prototype.getSeconds=function(){return RH(this,1)};
OM.prototype.setSeconds=function(A){return _.$X(this,1,sz(A),"0")};_.jE=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(_.jE,_.AE);_.jE.prototype.getSeconds=function(){return RH(this,1)};
_.jE.prototype.setSeconds=function(A){return _.$X(this,1,sz(A),"0")};
_.SBV=function(A){var L=Number(ZF(A,1));A=_.x8(A,2);return new Date(L*1E3+A/1E6)};var Xe=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(Xe,_.AE);_.P=Xe.prototype;_.P.getUrl=function(){return _.mT(this,1)};
_.P.setUrl=function(A){return _.oG(this,1,A)};
_.P.getHeight=function(){return _.x8(this,2)};
_.P.setHeight=function(A){return _.$X(this,2,_.vn(A),0)};
_.P.getWidth=function(){return _.x8(this,3)};var xF=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(xF,_.AE);xF.prototype.getAspectRatio=function(){return Qt(this,1)};
xF.prototype.setAspectRatio=function(A){return _.$X(this,1,_.j3(A),0)};
xF.prototype.getDuration=function(){return _.ET(this,OM,2)};var qBc=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(qBc,_.AE);var gW6=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(gW6,_.AE);var wfV=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(wfV,_.AE);var pf6=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(pf6,_.AE);var i_j=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(i_j,_.AE);var Nwu=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(Nwu,_.AE);var rEl=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(rEl,_.AE);var KJH=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(KJH,_.AE);var G2N=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(G2N,_.AE);var sM=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(sM,_.AE);var JQ=[2,4,5,6,7];var lDH=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(lDH,_.AE);var cM=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(cM,_.AE);_.P=cM.prototype;_.P.getId=function(){return _.ET(this,h3u,1)};
_.P.getName=function(){return _.mT(this,2)};
_.P.setDescription=function(A){return _.oG(this,3,A)};
_.P.getUrl=function(){return _.mT(this,8)};
_.P.setUrl=function(A){return _.oG(this,8,A)};
var Pb=function(A){return _.OT(A,Xe,10,_.Xq())};
cM.prototype.getOwner=function(A){var L=_.jZ(this,40,_.Ez,3,!0);Bu_(L,A);return L[A]};
cM.prototype.getVersion=function(){return RH(this,45)};
var d_=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(d_,_.AE);_.cEJ=[0,DkJ,Eye];_.Ca3=[0,DkJ,Eye];var FJg=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(FJg,_.AE);var YF=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(YF,_.AE);YF.prototype.getStatus=function(){return _.IH(this,1)};
YF.prototype.removeItem=function(A){return CDu(this,2,A)};var R3j=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(R3j,_.AE);R3j.prototype.getName=function(){return _.mT(this,8)};var ub=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(ub,_.AE);ub.prototype.getCommand=function(){return _.IH(this,1)};
ub.prototype.getSource=function(){return _.ET(this,R3j,2)};
ub.prototype.setVisible=function(A){return _.GN(this,5,A)};
ub.prototype.removeItem=function(A){return CDu(this,7,A)};var QPl=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(QPl,_.AE);QPl.prototype.getCommand=function(){return _.IH(this,1)};
QPl.prototype.removeItem=function(A){return CDu(this,4,A)};
var m07=_.Vo(QPl);var TI=function(A,L,O){O=O===void 0?Error():O;var X=Error.call(this);this.message=X.message;"stack"in X&&(this.stack=X.stack);this.code=A;L+=":";O instanceof Error?(this.message=L+O.message,this.stack=O.stack||""):(this.message=L+String(O),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.g(TI,Error);_.p$=function(){this.JSC$10553_disposed_=this.JSC$10553_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.p$.prototype.JSC$10553_disposed_=!1;_.p$.prototype.isDisposed=function(){return this.JSC$10553_disposed_};
_.p$.prototype.dispose=function(){this.JSC$10553_disposed_||(this.JSC$10553_disposed_=!0,this.disposeInternal())};
_.p$.prototype[Symbol.dispose]=function(){this.dispose()};
_.VI=function(A,L){A.addOnDisposeCallback(_.Sm(_.oo,L))};
_.p$.prototype.addOnDisposeCallback=function(A,L){this.JSC$10553_disposed_?L!==void 0?A.call(L):A():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),L&&(A=A.bind(L)),this.onDisposeCallbacks_.push(A))};
_.p$.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var Ve=function(A){_.p$.call(this);this.wpc=A};
_.g(Ve,_.p$);Ve.prototype.gPo=function(){return this.wpc.f()};
Ve.prototype.r5o=function(A){return this.wpc.c(A)};
Ve.prototype.w3=function(A){return this.wpc.m(lJe(A))};
Ve.prototype.erf=function(A){return this.wpc.mws(lJe(A))};
var L$=function(A){_.p$.call(this);var L=this;this.vm=A;this.l26="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.emv=void 0;this.mqw=this.vm.p;this.fvw=this.h4Y.bind(this);this.addOnDisposeCallback(function(){return void fDg(L)})};
_.g(L$,_.p$);var IDL=function(A){var L;return _.u(function(O){if(O.nextAddress==1){if(!A.vm.wpc)throw new TI(30,"NWA");return A.kOn?O.return(A.kOn):O.yield(A.vm.wpc(),2)}L=O.yieldResult;A.kOn=new Ve(L);return O.return(A.kOn)})};
L$.prototype.snapshot=function(A){return this.vm.s(Object.assign({},A.eN&&{c:A.eN},A.aUr&&{s:A.aUr},A.gjO!==void 0&&{p:A.gjO}))};
L$.prototype.h4Y=function(A){this.vm.e(A)};
L$.prototype.tXq=function(A,L){return this.vm.c(A,L,!1)};
var fDg=function(A){A.emv!==void 0&&(A.l26.forEach(function(L){var O;(O=A.emv)==null||O.removeEventListener(L,A.fvw)}),A.emv=void 0)};
L$.prototype.nBc=function(){return this.vm.l()};var Dt=function(){_.p$.apply(this,arguments);this.mfc=1};
_.g(Dt,_.p$);Dt.prototype.share=function(){if(this.isDisposed())throw Error("pa");this.mfc++;return this};
Dt.prototype.dispose=function(){--this.mfc||_.p$.prototype.dispose.call(this)};var yEV=function(A){this.bEt=A;A.addNewEventMetric("/client_streamz/bg/frs",_.Pq("mk"))};
yEV.prototype.record=function(A,L){this.bEt.record("/client_streamz/bg/frs",A,L)};
var Z_6=function(A){this.omb=A;A.addNewEventMetric("/client_streamz/bg/wrl",_.Pq("mn"),Jg("ac"),Jg("sc"),_.Pq("rk"),_.Pq("mk"))};
Z_6.prototype.record=function(A,L,O,X,x,J){this.omb.record("/client_streamz/bg/wrl",A,L,O,X,x,J)};
var jP6=function(A){this.nmz=A;A.addNewCounter("/client_streamz/bg/ec",_.Pq("en"),_.Pq("mk"))};
jP6.prototype.increment=function(A,L){this.nmz.JSC$10807_incrementCounter("/client_streamz/bg/ec",A,L)};
var WJl=function(A){this.mAc=A;A.addNewEventMetric("/client_streamz/bg/el",_.Pq("en"),_.Pq("mk"))};
WJl.prototype.record=function(A,L,O){this.mAc.record("/client_streamz/bg/el",A,L,O)};
var H_3=function(A){this.w0i=A;A.addNewCounter("/client_streamz/bg/cec",Jg("ec"),_.Pq("mk"))};
H_3.prototype.increment=function(A,L){this.w0i.JSC$10807_incrementCounter("/client_streamz/bg/cec",A,L)};
var z36=function(A){this.p0i=A;A.addNewCounter("/client_streamz/bg/po/csc",Jg("cs"),_.Pq("mk"))};
z36.prototype.increment=function(A,L){this.p0i.JSC$10807_incrementCounter("/client_streamz/bg/po/csc",A,L)};
var Bw6=function(A){this.y6C=A;A.addNewCounter("/client_streamz/bg/po/ctav",_.Pq("av"),_.Pq("mk"))};
Bw6.prototype.increment=function(A,L){this.y6C.JSC$10807_incrementCounter("/client_streamz/bg/po/ctav",A,L)};
var Mg7=function(A){this.r6N=A;A.addNewCounter("/client_streamz/bg/po/cwsc",_.Pq("su"),_.Pq("mk"))};
Mg7.prototype.increment=function(A,L){this.r6N.JSC$10807_incrementCounter("/client_streamz/bg/po/cwsc",A,L)};var sZr=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(sZr,_.AE);var xOs=function(A,L){return _.zn(A,3,L,V3_)};var $0j=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g($0j,_.AE);var aD3=[1,2,3];var k2g=[0,aD3,_.Swp,nyu,h0J];var U0n=[0,_.X4,[0,uRu,_.oH]];var vWN=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(vWN,_.AE);var oWV=[1,2,3];var Anu=[0,oWV,e0d,T4e,_.xj,U0n];var Lh6=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(Lh6,_.AE);var OL6=[0,_.X4,k2g,Anu];var XzL=[0,_.Ov];var xol=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(xol,_.AE);var s96=[0,_.Ov,-1,_.L5];var Jnl=[0,_.Ov,-1,_.AV,_.L5];var Pe7=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(Pe7,_.AE);var doj=[1,2,3];var YJj=[0,doj,_.xj,s96,_.xj,Jnl,_.xj,XzL];var u06=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(u06,_.AE);u06.prototype.JSC$10627_serializeBinary=m0P([0,_.Ov,YJj,qw9,_.X4,OL6,t_p,bfr]);var Tpj=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(Tpj,_.AE);var eoN=function(A){var L=new u06;L=_.gz(L,1,A.JSC$10743_metricName);var O=V4N(A);L=_.zn(L,3,O,_.Tn);O=[];for(var X=[],x=_.d(A.cellMap.keys()),J=x.next();!J.done;J=x.next())X.push(J.value.split(","));for(x=0;x<X.length;x++){J=X[x];for(var Y=A.cellType,T=A.getCells(J)||[],V=[],E=0;E<T.length;E++){var n=T[E],t=n&&n.cellValue;n=new vWN;switch(Y){case 3:t=Number(t);Number.isFinite(t)&&EN(n,1,oWV,sz(t));break;case 2:EN(n,2,oWV,_.j3(Number(t)))}V.push(n)}Y=V;for(T=0;T<Y.length;T++){V=Y[T];E=new Lh6;V=_.eg(E,
2,V);E=[];n=DoV(A);for(t=0;t<n.length;t++){var b=n[t],S=J[t],w=new $0j;switch(b){case 3:EN(w,1,aD3,DS(String(S)));break;case 2:b=Number(S);Number.isFinite(b)&&EN(w,2,aD3,_.vn(b));break;case 1:EN(w,3,aD3,Yg_(S==="true"))}E.push(w)}l1(V,1,E);O.push(V)}}l1(L,4,O);return L};var E36=function(A){if(!A)return"";if(/^about:(?:blank|srcdoc)$/.test(A))return window.origin||"";A.indexOf("blob:")===0&&(A=A.substring(5));A=A.split("#")[0].split("?")[0];A=A.toLowerCase();A.indexOf("//")==0&&(A=window.location.protocol+A);/^[\w\-]*:\/\//.test(A)||(A=window.location.href);var L=A.substring(A.indexOf("://")+3),O=L.indexOf("/");O!=-1&&(L=L.substring(0,O));O=A.substring(0,A.indexOf("://"));if(!O)throw Error("qa`"+A);if(O!=="http"&&O!=="https"&&O!=="chrome-extension"&&O!=="moz-extension"&&
O!=="file"&&O!=="android-app"&&O!=="chrome-search"&&O!=="chrome-untrusted"&&O!=="chrome"&&O!=="app"&&O!=="devtools")throw Error("ra`"+O);A="";var X=L.indexOf(":");if(X!=-1){var x=L.substring(X+1);L=L.substring(0,X);if(O==="http"&&x!=="80"||O==="https"&&x!=="443")A=":"+x}return O+"://"+L+A};var t47=function(A,L,O){var X=String(_.Ou.location.href);return X&&A&&L?[L,n3V(E36(X),A,O||null)].join(" "):null},n3V=function(A,L,O){var X=[],x=[];
if((Array.isArray(O)?2:1)==1)return x=[L,A],_.BY(X,function(T){x.push(T)}),bLl(x.join(" "));
var J=[],Y=[];_.BY(O,function(T){Y.push(T.key);J.push(T.value)});
O=Math.floor((new Date).getTime()/1E3);x=J.length==0?[O,L,A]:[J.join(":"),O,L,A];_.BY(X,function(T){x.push(T)});
A=bLl(x.join(" "));A=[O,A];Y.length==0||A.push(Y.join(""));return A.join("_")},bLl=function(A){var L=IJD();
L.update(A);return L.digestString().toLowerCase()};var e7=function(A){this.JSC$10638_document_=A||{cookie:""}},hoj;
_.P=e7.prototype;_.P.isEnabled=function(){if(!_.Ou.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{maxAge:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0};
_.P.set=function(A,L,O){var X=!1;if(typeof O==="object"){var x=O.sameSite;X=O.secure||!1;var J=O.domain||void 0;var Y=O.path||void 0;var T=O.maxAge}if(/[;=\s]/.test(A))throw Error("sa`"+A);if(/[;\r\n]/.test(L))throw Error("ta`"+L);T===void 0&&(T=-1);O=J?";domain="+J:"";Y=Y?";path="+Y:"";X=X?";secure":"";T=T<0?"":T==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+T*1E3)).toUTCString();this.JSC$10638_document_.cookie=A+"="+L+O+Y+T+X+(x!=null?";samesite="+x:"")};
_.P.get=function(A,L){for(var O=A+"=",X=(this.JSC$10638_document_.cookie||"").split(";"),x=0,J;x<X.length;x++){J=De(X[x]);if(J.lastIndexOf(O,0)==0)return J.slice(O.length);if(J==A)return""}return L};
_.P.remove=function(A,L,O){var X=this.containsKey(A);this.set(A,"",{maxAge:0,path:L,domain:O});return X};
_.P.getKeys=function(){return hoj(this).keys};
_.P.getValues=function(){return hoj(this).values};
_.P.isEmpty=function(){return!this.JSC$10638_document_.cookie};
_.P.getCount=function(){return this.JSC$10638_document_.cookie?(this.JSC$10638_document_.cookie||"").split(";").length:0};
_.P.containsKey=function(A){return this.get(A)!==void 0};
_.P.containsValue=function(A){for(var L=hoj(this).values,O=0;O<L.length;O++)if(L[O]==A)return!0;return!1};
_.P.clear=function(){for(var A=hoj(this).keys,L=A.length-1;L>=0;L--)this.remove(A[L])};
hoj=function(A){A=(A.JSC$10638_document_.cookie||"").split(";");for(var L=[],O=[],X,x,J=0;J<A.length;J++)x=De(A[J]),X=x.indexOf("="),X==-1?(L.push(""),O.push(x)):(L.push(x.substring(0,X)),O.push(x.substring(X+1)));return{keys:L,values:O}};
_.hj=new e7(typeof document=="undefined"?null:document);var oxp,SJn;oxp=function(){var A=_.Ou.__SAPISID||_.Ou.__APISID||_.Ou.__3PSAPISID||_.Ou.__1PSAPISID||_.Ou.__OVERRIDE_SID;if(A)return!0;typeof document!=="undefined"&&(A=new e7(document),A=A.get("SAPISID")||A.get("APISID")||A.get("__Secure-3PAPISID")||A.get("__Secure-1PAPISID"));return!!A};
SJn=function(A,L,O,X){(A=_.Ou[A])||typeof document==="undefined"||(A=(new e7(document)).get(L));return A?t47(A,O,X):null};
_.WiJ=function(A){var L=E36(_.Ou==null?void 0:_.Ou.location.href),O=[];if(oxp()){L=L.indexOf("https:")==0||L.indexOf("chrome-extension:")==0||L.indexOf("chrome-untrusted://new-tab-page")==0||L.indexOf("moz-extension:")==0;var X=L?_.Ou.__SAPISID:_.Ou.__APISID;X||typeof document==="undefined"||(X=new e7(document),X=X.get(L?"SAPISID":"APISID")||X.get("__Secure-3PAPISID"));(X=X?t47(X,L?"SAPISIDHASH":"APISIDHASH",A):null)&&O.push(X);L&&((L=SJn("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",A))&&O.push(L),
(A=SJn("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",A))&&O.push(A))}return O.length==0?null:O.join(" ")};var qJV=function(){this.minSize=1024};
qJV.prototype.compress=function(A){var L,O,X,x;return _.u(function(J){switch(J.nextAddress){case 1:return L=new CompressionStream("gzip"),O=(new Response(L.readable)).arrayBuffer(),X=L.writable.getWriter(),J.yield(X.write((new TextEncoder).encode(A)),2);case 2:return J.yield(X.close(),3);case 3:return x=Uint8Array,J.yield(O,4);case 4:return J.return(new x(J.yieldResult))}})};
qJV.prototype.isSupported=function(A){return A<this.minSize?!1:typeof CompressionStream!=="undefined"};var g33=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(g33,_.AE);var EM=function(A,L){this.intervalMs=A;this.callback=L;this.enabled=!1;this.nowFn=function(){return _.u1()};
this.lastTimeMs=this.nowFn()};
EM.prototype.setInterval=function(A){this.intervalMs=A;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
EM.prototype.start=function(){var A=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){A.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
EM.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
EM.prototype.tick=function(){var A=this;if(this.enabled){var L=Math.max(this.nowFn()-this.lastTimeMs,0);L<this.intervalMs*.8?this.timer=setTimeout(function(){A.tick()},this.intervalMs-L):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var wzJ=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(wzJ,_.AE);var pzL=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(pzL,_.AE);var iLH=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(iLH,_.AE);iLH.prototype.getTransmissionType=function(){return _.IH(this,1)};var WsM=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(WsM,_.AE);WsM.prototype.getVersion=function(){return _.mT(this,2)};var nc=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(nc,_.AE);var jOs=function(A){l1(HBu,1,A)};
nc.prototype.getModel=function(){return _.mT(this,6)};
var Npu=_.Vo(nc);var rng=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(rng,_.AE);var y8u=["platform","platformVersion","architecture","model","uaFullVersion"],HBu=new nc,ZB_=null;var tQ=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(tQ,_.AE);var KhV=function(A){return _.s$(A,1,1)};var GM6=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A,4)};
_.g(GM6,_.AE);_.bb=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A,36)};
_.g(_.bb,_.AE);_.bb.prototype.getExperimentIds=function(){return _.ET(this,g33,16)};var lM3=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A,19)};
_.g(lM3,_.AE);lM3.prototype.setLogSource=function(A){return _.s$(this,2,A)};
lM3.prototype.setScheduler=function(A){return _.s$(this,10,A)};var Ce3=function(A,L){this.isServiceWorkerScope=L=L===void 0?!1:L;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new lM3;Number.isInteger(A)&&this.logRequest.setLogSource(A);L||(this.locale=document.documentElement.getAttribute("lang"));cnV(this,new tQ)};
Ce3.prototype.setLogSource=function(A){this.logRequest.setLogSource(A);return this};
var cnV=function(A,L){_.eg(A.logRequest,1,L);_.IH(L,1)||KhV(L);A.isServiceWorkerScope||(L=hQ(A),_.mT(L,5)||_.gz(L,5,A.locale));A.uach&&(L=hQ(A),_.ET(L,nc,9)||_.eg(L,9,A.uach))},FhN=function(A,L){A.transmissionType=L},Rol=function(A){var L=L===void 0?y8u:L;
var O=A.isServiceWorkerScope?void 0:FT();O?zfs(O,L).then(function(X){A.uach=Npu(X!=null?X:"[]");X=hQ(A);_.eg(X,9,A.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},hQ=function(A){var L=_.ET(A.logRequest,tQ,1);
L||(L=new tQ,cnV(A,L));A=L;L=_.ET(A,rng,11);L||(L=new rng,_.eg(A,11,L));return L};
Ce3.prototype.build=function(A,L,O,X,x,J){L=L===void 0?0:L;O=O===void 0?0:O;X=X===void 0?null:X;x=x===void 0?0:x;J=J===void 0?0:J;if(!this.isServiceWorkerScope){var Y=hQ(this);var T=new iLH;T=_.s$(T,1,this.transmissionType);T=_.dX(T,2,this.isFinal);O=_.HM(T,3,O>0?O:void 0);O=_.HM(O,4,x>0?x:void 0);O=_.HM(O,5,J>0?J:void 0);x=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;J=x[_.sg]|0;O=e3(O,J)?O:gXD(O,x,J)?qzp(O,x):new O.constructor(cX(x,J,!0));_.eg(Y,10,O)}Y=this.logRequest.clone();O=Date.now().toString();
Y=_.J4(Y,4,sz(O));A=A.slice();A=l1(Y,3,A);X&&(Y=new wzJ,X=_.HM(Y,13,X),Y=new pzL,X=_.eg(Y,2,X),Y=new GM6,X=_.eg(Y,1,X),X=_.s$(X,2,9),_.eg(A,18,X));L&&_.gT(A,14,L);return A};Y8.prototype.currBackoffCount_=0;Y8.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
Y8.prototype.getValue=function(){return this.currValue_};
var Q9j=function(A){A.currBaseValue_=Math.min(A.maxValue_,A.currBaseValue_*A.backoffFactor_);A.currValue_=Math.min(A.maxValue_,A.currBaseValue_+(A.randomFactor_?Math.round(A.randomFactor_*(Math.random()-.5)*2*A.currBaseValue_):0));A.currBackoffCount_++};var N4p=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A,8)};
_.g(N4p,_.AE);var mo6=_.Vo(N4p);var rSp=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(rSp,_.AE);var S7;S7=new Kjy;var qJ=function(A){_.p$.call(this);var L=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$10716_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$10716_sendBeaconApiEnabled=!1;this.logSource=A.logSource;this.getAuthHeaderValue=
A.getAuthHeaderValue||function(){};
this.logRequestBuilder=new Ce3(A.logSource,A.isServiceWorkerScope);this.network=A.network||null;this.productID=A.productID||null;this.bufferSize=1E3;this.clearcutUrl=A.urlOverride||null;this.sessionIndex=A.sessionIndex||null;this.disableAutomaticFlush=A.disableAutomaticFlush||!1;this.withCredentials=!A.disableWithCredentials;this.isServiceWorkerScope=A.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!FT()&&!!FT().navigator&&FT().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(fMN())).searchParams&&!!(new URL(fMN())).searchParams.set;var O=KhV(new tQ);cnV(this.logRequestBuilder,O);this.flushBackoff=new Y8(1E4,3E5,.1);A=IMV(this,A.backgroundJobDeferrer);this.JSC$10716_flushTimer=new EM(this.flushBackoff.getValue(),A);this.backupTimer=new EM(6E5,A);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){ynJ(L);
var X;(X=L.metalogService)==null||X.flush()}}),document.addEventListener("pagehide",function(){ynJ(L);
var X;(X=L.metalogService)==null||X.flush()}))};
_.g(qJ,_.p$);var IMV=function(A,L){return A.isBrowserSupported?L?function(){L().then(function(){A.flush()})}:function(){A.flush()}:function(){}};
qJ.prototype.disposeInternal=function(){ynJ(this);this.JSC$10716_flushTimer.stop();this.backupTimer.stop();_.p$.prototype.disposeInternal.call(this)};
var ZLJ=function(A){A.clearcutUrl||(A.clearcutUrl=fMN());try{return(new URL(A.clearcutUrl)).toString()}catch(L){return(new URL(A.clearcutUrl,FT().location.origin)).toString()}};
qJ.prototype.dispatch=function(A){if(A instanceof _.bb)this.log(A);else try{var L=new _.bb,O=A.serialize();var X=_.gz(L,8,O);this.log(X)}catch(x){g_(this,4,1)}};
var g_=function(A,L,O){A.metalogService&&A.metalogService.increment(L,O)};
qJ.prototype.log=function(A){g_(this,2,1);if(this.isBrowserSupported){A=A.clone();var L=this.sequencePosition++;A=_.gT(A,21,L);this.componentId&&_.gz(A,26,this.componentId);L=A;if(lNr(_.ps(L,1))==null){var O=Date.now();O=Number.isFinite(O)?O.toString():"0";_.J4(L,1,sz(O))}_.Gje(_.ps(L,15))!=null||_.gT(L,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(O=this.experimentIds.clone(),_.eg(L,16,O));g_(this,1,1);L=this.pendingEvents.length-this.bufferSize+1;L>0&&(this.pendingEvents.splice(0,L),
this.numLogsDroppedSinceLastFlush+=L,g_(this,3,L));this.pendingEvents.push(A);this.disableAutomaticFlush||this.JSC$10716_flushTimer.enabled||this.JSC$10716_flushTimer.start()}};
qJ.prototype.flush=function(A,L){var O=this;if(this.pendingEvents.length===0)A&&A();else if(this.JSC$10716_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,j96(this);else{var X=Date.now();if(this.noFlushUntilMs>X&&this.startWaitingMs<X)L&&L("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?FhN(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var x=this.pendingEvents.length,
J=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),Y=this.getAuthHeaderValue();if(Y&&this.lastFailedAuth===Y)L&&L("stale-auth-token");else{this.pendingEvents=[];this.JSC$10716_flushTimer.enabled&&this.JSC$10716_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;X=J.serialize();var T;this.JSC$10716_compressor&&this.JSC$10716_compressor.isSupported(X.length)&&
(T=this.JSC$10716_compressor.compress(X));var V=Whn(this,X,Y),E=function(b){O.flushBackoff.reset();O.JSC$10716_flushTimer.setInterval(O.flushBackoff.getValue());if(b){var S=null;try{var w=JSON.stringify(JSON.parse(b.replace(")]}'\n","")));S=mo6(w)}catch(l){}S&&(b=Number(RH(S,1,_.R6("-1"))),b>0&&(O.startWaitingMs=Date.now(),O.noFlushUntilMs=O.startWaitingMs+b),vVe(S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,S7.fieldIndex),kjP(S,S7.fieldIndex),S=S7.ctor?S7.getExtensionFn(S,S7.ctor,S7.fieldIndex,
S7.JSC$9895_hasMessageId):S7.getExtensionFn(S,S7.fieldIndex,null,S7.JSC$9895_hasMessageId),S=S===null?void 0:S)&&(S=_.x8(S,1,-1),S!==-1&&(O.flushBackoff=new Y8(S<1?1:S,3E5,.1),O.JSC$10716_flushTimer.setInterval(O.flushBackoff.getValue())))}A&&A();O.numRetriesSinceLastSuccessfulFlush=0},n=function(b,S){var w=_.OT(J,_.bb,3,_.Xq());
var l=Number(RH(J,14));Q9j(O.flushBackoff);O.JSC$10716_flushTimer.setInterval(O.flushBackoff.getValue());b===401&&Y&&(O.lastFailedAuth=Y);l&&(O.numLogsDroppedSinceLastFlush+=l);S===void 0&&(S=O.isRetryable(b));S&&(O.pendingEvents=w.concat(O.pendingEvents),O.disableAutomaticFlush||O.JSC$10716_flushTimer.enabled||O.JSC$10716_flushTimer.start());g_(O,7,1);L&&L("net-send-failed",b);++O.numRetriesSinceLastSuccessfulFlush},t=function(){O.network&&O.network.send(V,E,n)};
T?T.then(function(b){g_(O,5,x);V.requestHeaders["Content-Encoding"]="gzip";V.requestHeaders["Content-Type"]="application/binary";V.body=b;V.bodyType=2;t()},function(){g_(O,6,x);
t()}):t()}}}};
var Whn=function(A,L,O){O=O===void 0?null:O;var X=X===void 0?A.withCredentials:X;var x={},J=new URL(ZLJ(A));O&&(x.Authorization=O);A.sessionIndex&&(x["X-Goog-AuthUser"]=A.sessionIndex,J.searchParams.set("authuser",A.sessionIndex));A.pageId&&(Object.defineProperty(x,"X-Goog-PageId",{value:A.pageId}),J.searchParams.set("pageId",A.pageId));return{url:J.toString(),body:L,bodyType:1,requestHeaders:x,requestType:"POST",withCredentials:X,timeoutMillis:A.timeoutMillis}},ynJ=function(A){A.logRequestBuilder.isFinal=
!0;
A.flush();A.logRequestBuilder.isFinal=!1},j96=function(A){HLg(A,function(L,O){L=new URL(L);
L.searchParams.set("format","json");var X=!1;try{X=FT().navigator.sendBeacon(L.toString(),O.serialize())}catch(x){}X||(A.isSendBeaconSupported=!1);return X})},HLg=function(A,L){if(A.pendingEvents.length!==0){var O=new URL(ZLJ(A));
O.searchParams.delete("format");var X=A.getAuthHeaderValue();X&&O.searchParams.set("auth",X);O.searchParams.set("authuser",A.sessionIndex||"0");for(X=0;X<10&&A.pendingEvents.length;++X){var x=A.pendingEvents.slice(0,32),J=A.logRequestBuilder.build(x,A.numLogsDroppedSinceLastFlush,A.numRetriesSinceLastSuccessfulFlush,A.productID,A.persistedLogRecoveredCount,A.persistedLogExpiredCount);if(!L(O.toString(),J)){++A.numRetriesSinceLastSuccessfulFlush;break}A.numLogsDroppedSinceLastFlush=0;A.numRetriesSinceLastSuccessfulFlush=
0;A.persistedLogRecoveredCount=0;A.persistedLogExpiredCount=0;A.pendingEvents=A.pendingEvents.slice(x.length)}A.JSC$10716_flushTimer.enabled&&A.JSC$10716_flushTimer.stop()}};
qJ.prototype.isRetryable=function(A){return 500<=A&&A<600||A===401||A===0};
var fMN=function(){return"https://play.google.com/log?format=json&hasfast=true"};var zo3=function(){this.abortSupported=typeof AbortController!=="undefined"};
zo3.prototype.send=function(A,L,O){var X=this,x,J,Y,T,V,E,n,t,b,S;return _.u(function(w){switch(w.nextAddress){case 1:return J=(x=X.abortSupported?new AbortController:void 0)?setTimeout(function(){x.abort()},A.timeoutMillis):void 0,_.e4(w,2,3),Y=Object.assign({},{method:A.requestType,
headers:Object.assign({},A.requestHeaders)},A.body&&{body:A.body},A.withCredentials&&{credentials:"include"},{signal:A.timeoutMillis&&x?x.signal:null}),w.yield(fetch(A.url,Y),5);case 5:T=w.yieldResult;if(T.status!==200){(V=O)==null||V(T.status);w.jumpTo(3);break}if((E=L)==null){w.jumpTo(7);break}return w.yield(T.text(),8);case 8:E(w.yieldResult);case 7:case 3:_.tn(w);clearTimeout(J);_.hn(w,0);break;case 2:n=_.S4(w);switch((t=n)==null?void 0:t.name){case "AbortError":(b=O)==null||b(408);break;default:(S=
O)==null||S(400)}w.jumpTo(3)}})};
zo3.prototype.getTransmissionType=function(){return 4};_.TX=function(A,L){L=L===void 0?"0":L;_.p$.call(this);this.logSource=A;this.sessionIndex=L;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$10734_clearExperimentIds=this.productID=null;this.JSC$10734_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.g(_.TX,_.p$);var L7s=function(A,L){A.buildLabel=L;return A},AjP=function(A,L){A.network=L;
return A},XOO=function(A,L){A.JSC$10734_clearExperimentIds=L},oLd=function(A){A.JSC$10734_sendBeaconApiEnabled=!0;
return A};
_.TX.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.TX.prototype.build=function(){this.network||(this.network=new zo3);var A=new qJ({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.WiJ,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.VI(this,A);if(this.buildLabel){var L=this.buildLabel,O=
hQ(A.logRequestBuilder);_.gz(O,7,L)}A.JSC$10716_compressor=new qJV;this.componentId&&(A.componentId=this.componentId);this.productID&&(A.productID=this.productID);this.pageId&&(A.pageId=this.pageId);this.JSC$10734_clearExperimentIds&&((O=this.JSC$10734_clearExperimentIds)?(A.experimentIds||(A.experimentIds=new g33),L=A.experimentIds,O=O.serialize(),_.gz(L,4,O)):A.experimentIds&&_.J4(A.experimentIds,4));this.JSC$10734_sendBeaconApiEnabled&&(A.JSC$10716_sendBeaconApiEnabled=A.isSendBeaconSupported);
Rol(A.logRequestBuilder);this.bufferSize&&(A.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(A);return A};var Jje=function(A,L,O,X,x,J,Y){A=A===void 0?-1:A;L=L===void 0?"":L;O=O===void 0?"":O;X=X===void 0?!1:X;x=x===void 0?"":x;_.p$.call(this);this.logSource=A;this.componentId=L;J?L=J:(A=new _.TX(A,"0"),A.componentId=L,_.VI(this,A),O!==""&&(A.destinationUrl=O),X&&(A.serviceWorkerScopeEnabled=!0),x&&L7s(A,x),Y&&AjP(A,Y),L=A.build());this.JSC$10738_transport=L};
_.g(Jje,_.p$);Jje.prototype.flush=function(A){A=A||[];if(A.length){for(var L=new Tpj,O=[],X=0;X<A.length;X++){var x=A[X],J=eoN(x);O.push(J);x.clear()}l1(L,1,O);this.JSC$10738_transport.dispatch(L);this.JSC$10738_transport.flush()}};var Bp6=function(A){this.cellValue=A};var w_=function(A,L,O){this.JSC$10743_metricName=A;this.cellType=L;this.fields=O||[];this.cellMap=new Map},DoV=function(A){return A.fields.map(function(L){return L.fieldType})},V4N=function(A){return A.fields.map(function(L){return L.fieldName})};
_.P=w_.prototype;_.P.addCell=function(A){var L=_.f_.apply(1,arguments),O=this.getCells(L);O?O.push(new Bp6(A)):this.JSC$10743_setCell(A,L)};
_.P.JSC$10743_setCell=function(A){var L=this.JSC$10743_getKey(_.f_.apply(1,arguments));this.cellMap.set(L,[new Bp6(A)])};
_.P.getCells=function(){var A=this.JSC$10743_getKey(_.f_.apply(0,arguments));return this.cellMap.has(A)?this.cellMap.get(A):void 0};
_.P.getCell=function(){var A=this.getCells(_.f_.apply(0,arguments));return A&&A.length?A[0]:void 0};
_.P.clear=function(){this.cellMap.clear()};
_.P.JSC$10743_getKey=function(){var A=_.f_.apply(0,arguments);return A?A.join(","):"key"};var M4l=function(A,L){w_.call(this,A,3,L)};
_.g(M4l,w_);M4l.prototype.JSC$10746_incrementCounterBy=function(A){var L=_.f_.apply(1,arguments),O=0,X=this.getCell(L);X&&(O=X.cellValue);this.JSC$10743_setCell(O+A,L)};var $o6=function(A,L){w_.call(this,A,2,L)};
_.g($o6,w_);$o6.prototype.record=function(A){this.addCell(A,_.f_.apply(1,arguments))};_.pc=function(A){this.id=A};
_.pc.prototype.toString=function(){return this.id};_.ib=function(A,L){this.type=A instanceof _.pc?String(A):A;this.currentTarget=this.target=L;this.defaultPrevented=this.propagationStopped_=!1};
_.ib.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.ib.prototype.preventDefault=function(){this.defaultPrevented=!0};_.NJ=function(A,L){_.ib.call(this,A?A.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;A&&this.init(A,L)};
_.Ty(_.NJ,_.ib);
_.NJ.prototype.init=function(A,L){var O=this.type=A.type,X=A.changedTouches&&A.changedTouches.length?A.changedTouches[0]:null;this.target=A.target||A.srcElement;this.currentTarget=L;L=A.relatedTarget;L||(O=="mouseover"?L=A.fromElement:O=="mouseout"&&(L=A.toElement));this.relatedTarget=L;X?(this.clientX=X.clientX!==void 0?X.clientX:X.pageX,this.clientY=X.clientY!==void 0?X.clientY:X.pageY,this.screenX=X.screenX||0,this.screenY=X.screenY||0):(this.offsetX=_.tW||A.offsetX!==void 0?A.offsetX:A.layerX,
this.offsetY=_.tW||A.offsetY!==void 0?A.offsetY:A.layerY,this.clientX=A.clientX!==void 0?A.clientX:A.pageX,this.clientY=A.clientY!==void 0?A.clientY:A.pageY,this.screenX=A.screenX||0,this.screenY=A.screenY||0);this.button=A.button;this.keyCode=A.keyCode||0;this.key=A.key||"";this.charCode=A.charCode||(O=="keypress"?A.keyCode:0);this.ctrlKey=A.ctrlKey;this.altKey=A.altKey;this.shiftKey=A.shiftKey;this.metaKey=A.metaKey;this.pointerId=A.pointerId||0;this.pointerType=A.pointerType;this.state=A.state;
this.timeStamp=A.timeStamp;this.event_=A;A.defaultPrevented&&_.NJ.superClass_.preventDefault.call(this)};
_.NJ.prototype.stopPropagation=function(){_.NJ.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.NJ.prototype.preventDefault=function(){_.NJ.superClass_.preventDefault.call(this);var A=this.event_;A.preventDefault?A.preventDefault():A.returnValue=!1};var aM3="closure_listenable_"+(Math.random()*1E6|0),r_=function(A){return!(!A||!A[aM3])};var kM7=0;var UoN=function(A,L,O,X,x){this.listener=A;this.proxy=null;this.src=L;this.type=O;this.capture=!!X;this.handler=x;this.key=++kM7;this.removed=this.callOnce=!1},v3c=function(A){A.removed=!0;
A.listener=null;A.proxy=null;A.src=null;A.handler=null};us.prototype.add=function(A,L,O,X,x){var J=A.toString();A=this.listeners[J];A||(A=this.listeners[J]=[],this.typeCount_++);var Y=o3j(A,L,X,x);Y>-1?(L=A[Y],O||(L.callOnce=!1)):(L=new UoN(L,this.src,J,!!X,x),L.callOnce=O,A.push(L));return L};
us.prototype.remove=function(A,L,O,X){A=A.toString();if(!(A in this.listeners))return!1;var x=this.listeners[A];L=o3j(x,L,O,X);return L>-1?(v3c(x[L]),_.wJr(x,L),x.length==0&&(delete this.listeners[A],this.typeCount_--),!0):!1};
var AD6=function(A,L){var O=L.type;if(!(O in A.listeners))return!1;var X=_.y_(A.listeners[O],L);X&&(v3c(L),A.listeners[O].length==0&&(delete A.listeners[O],A.typeCount_--));return X};
us.prototype.removeAll=function(A){A=A&&A.toString();var L=0,O;for(O in this.listeners)if(!A||O==A){for(var X=this.listeners[O],x=0;x<X.length;x++)++L,v3c(X[x]);delete this.listeners[O];this.typeCount_--}return L};
us.prototype.getListener=function(A,L,O,X){A=this.listeners[A.toString()];var x=-1;A&&(x=o3j(A,L,O,X));return x>-1?A[x]:null};
us.prototype.hasListener=function(A,L){var O=A!==void 0,X=O?A.toString():"",x=L!==void 0;return _.lW.some(this.listeners,function(J){for(var Y=0;Y<J.length;++Y)if(!(O&&J[Y].type!=X||x&&J[Y].capture!=L))return!0;return!1})};
var o3j=function(A,L,O,X){for(var x=0;x<A.length;++x){var J=A[x];if(!J.removed&&J.listener==L&&J.capture==!!O&&J.handler==X)return x}return-1};var Lyc,OmV,XTV,soj,JD3,KT,Gi,YOH,PWN,dFu,Kc,uTc,xFH;Lyc="closure_lm_"+(Math.random()*1E6|0);OmV={};XTV=0;_.CT=function(A,L,O,X,x){if(X&&X.once)return KT(A,L,O,X,x);if(Array.isArray(L)){for(var J=0;J<L.length;J++)_.CT(A,L[J],O,X,x);return null}O=xFH(O);return r_(A)?A.listen(L,O,_.BJ(X)?!!X.capture:!!X,x):soj(A,L,O,!1,X,x)};
soj=function(A,L,O,X,x,J){if(!L)throw Error("va");var Y=_.BJ(x)?!!x.capture:!!x,T=Kc(A);T||(A[Lyc]=T=new us(A));O=T.add(L,O,X,Y,J);if(O.proxy)return O;X=JD3();O.proxy=X;X.src=A;X.listener=O;if(A.addEventListener)_.XJc||(x=Y),x===void 0&&(x=!1),A.addEventListener(L.toString(),X,x);else if(A.attachEvent)A.attachEvent(PWN(L.toString()),X);else if(A.addListener&&A.removeListener)A.addListener(X);else throw Error("wa");XTV++;return O};
JD3=function(){var A=dFu,L=function(O){return A.call(L.src,L.listener,O)};
return L};
KT=function(A,L,O,X,x){if(Array.isArray(L)){for(var J=0;J<L.length;J++)KT(A,L[J],O,X,x);return null}O=xFH(O);return r_(A)?A.listenOnce(L,O,_.BJ(X)?!!X.capture:!!X,x):soj(A,L,O,!0,X,x)};
_.GI=function(A,L,O,X,x){if(Array.isArray(L))for(var J=0;J<L.length;J++)_.GI(A,L[J],O,X,x);else X=_.BJ(X)?!!X.capture:!!X,O=xFH(O),r_(A)?A.unlisten(L,O,X,x):A&&(A=Kc(A))&&(L=A.getListener(L,O,X,x))&&Gi(L)};
Gi=function(A){if(typeof A==="number"||!A||A.removed)return!1;var L=A.src;if(r_(L))return AD6(L.eventTargetListeners_,A);var O=A.type,X=A.proxy;L.removeEventListener?L.removeEventListener(O,X,A.capture):L.detachEvent?L.detachEvent(PWN(O),X):L.addListener&&L.removeListener&&L.removeListener(X);XTV--;(O=Kc(L))?(AD6(O,A),O.typeCount_==0&&(O.src=null,L[Lyc]=null)):v3c(A);return!0};
YOH=function(A,L,O,X,x){O=xFH(O);X=!!X;return r_(A)?A.getListener(L,O,X,x):A?(A=Kc(A))?A.getListener(L,O,X,x):null:null};
PWN=function(A){return A in OmV?OmV[A]:OmV[A]="on"+A};
dFu=function(A,L){if(A.removed)A=!0;else{L=new _.NJ(L,this);var O=A.listener,X=A.handler||A.src;A.callOnce&&Gi(A);A=O.call(X,L)}return A};
Kc=function(A){A=A[Lyc];return A instanceof us?A:null};
uTc="__closure_events_fn_"+(Math.random()*1E9>>>0);xFH=function(A){if(typeof A==="function")return A;A[uTc]||(A[uTc]=function(L){return A.handleEvent(L)});
return A[uTc]};_.lb=function(){_.p$.call(this);this.eventTargetListeners_=new us(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.Ty(_.lb,_.p$);_.lb.prototype[aM3]=!0;_.P=_.lb.prototype;_.P.setParentEventTarget=function(A){this.parentEventTarget_=A};
_.P.addEventListener=function(A,L,O,X){_.CT(this,A,L,O,X)};
_.P.removeEventListener=function(A,L,O,X){_.GI(this,A,L,O,X)};
_.P.dispatchEvent=function(A){var L,O=this.parentEventTarget_;if(O)for(L=[];O;O=O.parentEventTarget_)L.push(O);O=this.actualEventTarget_;var X=A.type||A;if(typeof A==="string")A=new _.ib(A,O);else if(A instanceof _.ib)A.target=A.target||O;else{var x=A;A=new _.ib(X,O);_.lW.extend(A,x)}x=!0;var J;if(L)for(J=L.length-1;!A.propagationStopped_&&J>=0;J--){var Y=A.currentTarget=L[J];x=TzJ(Y,X,!0,A)&&x}A.propagationStopped_||(Y=A.currentTarget=O,x=TzJ(Y,X,!0,A)&&x,A.propagationStopped_||(x=TzJ(Y,X,!1,A)&&
x));if(L)for(J=0;!A.propagationStopped_&&J<L.length;J++)Y=A.currentTarget=L[J],x=TzJ(Y,X,!1,A)&&x;return x};
_.P.disposeInternal=function(){_.lb.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.P.listen=function(A,L,O,X){return this.eventTargetListeners_.add(String(A),L,!1,O,X)};
_.P.listenOnce=function(A,L,O,X){return this.eventTargetListeners_.add(String(A),L,!0,O,X)};
_.P.unlisten=function(A,L,O,X){return this.eventTargetListeners_.remove(String(A),L,O,X)};
_.P.removeAllListeners=function(A){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(A):0};
var TzJ=function(A,L,O,X){L=A.eventTargetListeners_.listeners[String(L)];if(!L)return!0;L=L.concat();for(var x=!0,J=0;J<L.length;++J){var Y=L[J];if(Y&&!Y.removed&&Y.capture==O){var T=Y.listener,V=Y.handler||Y.src;Y.callOnce&&AD6(A.eventTargetListeners_,Y);x=T.call(V,X)!==!1&&x}}return x&&!X.defaultPrevented};
_.lb.prototype.getListener=function(A,L,O,X){return this.eventTargetListeners_.getListener(String(A),L,O,X)};
_.lb.prototype.hasListener=function(A,L){return this.eventTargetListeners_.hasListener(A!==void 0?String(A):void 0,L)};var cb=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(A){return A&&AsyncContext.Snapshot.wrap(A)}:function(A){return A};var Vxj=function(A,L){this.create_=A;this.reset_=L;this.occupants_=0;this.JSC$10778_head_=null};
Vxj.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var A=this.JSC$10778_head_;this.JSC$10778_head_=A.next;A.next=null}else A=this.create_();return A};
Vxj.prototype.put=function(A){this.reset_(A);this.occupants_<100&&(this.occupants_++,A.next=this.JSC$10778_head_,this.JSC$10778_head_=A)};var DFH=function(){this.workTail_=this.workHead_=null};
DFH.prototype.add=function(A,L){var O=M6D.get();O.set(A,L);this.workTail_?this.workTail_.next=O:this.workHead_=O;this.workTail_=O};
DFH.prototype.remove=function(){var A=null;this.workHead_&&(A=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),A.next=null);return A};
var M6D=new Vxj(function(){return new eEN},function(A){return A.reset()}),eEN=function(){this.next=this.scope=this.fn=null};
eEN.prototype.set=function(A,L){this.fn=A;this.scope=L;this.next=null};
eEN.prototype.reset=function(){this.next=this.scope=this.fn=null};var ETu,$E9,B9O,nTg;$E9=!1;B9O=new DFH;_.Cc=function(A,L){ETu||nTg();$E9||(ETu(),$E9=!0);B9O.add(A,L)};
nTg=function(){var A=Promise.resolve(void 0);ETu=function(){A.then(aJu)}};var txu=function(A){A.prototype.$goog_Thenable=!0},bmL=function(A){if(!A)return!1;
try{return!!A.$goog_Thenable}catch(L){return!1}};var hEl,SOV,qON,wTH,pTL,imJ,G0u,CWc,mFJ,REc,R_P;_.eJ=function(A,L){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(A!=_.rk)try{var O=this;A.call(L,function(X){O.resolve_(2,X)},function(X){O.resolve_(3,X)})}catch(X){this.resolve_(3,X)}};
hEl=function(){this.next=this.context=this.JSC$10789_onRejected=this.JSC$10789_onFulfilled=this.child=null;this.always=!1};
hEl.prototype.reset=function(){this.context=this.JSC$10789_onRejected=this.JSC$10789_onFulfilled=this.child=null;this.always=!1};
SOV=new Vxj(function(){return new hEl},function(A){A.reset()});
qON=function(A,L,O){var X=SOV.get();X.JSC$10789_onFulfilled=A;X.JSC$10789_onRejected=L;X.context=O;return X};
_.DQ=function(A){if(A instanceof _.eJ)return A;var L=new _.eJ(_.rk);L.resolve_(2,A);return L};
_.Ry=function(A){return new _.eJ(function(L,O){O(A)})};
wTH=function(A,L,O){gT6(A,L,O,null)||_.Cc(_.Sm(L,A))};
_.Fe=function(A){return new _.eJ(function(L,O){var X=A.length,x=[];if(X)for(var J=function(E,n){X--;x[E]=n;X==0&&L(x)},Y=function(E){O(E)},T,V=0;V<A.length;V++)T=A[V],wTH(T,_.Sm(J,V),Y);
else L(x)})};
pTL=function(A){return new _.eJ(function(L){var O=A.length,X=[];if(O)for(var x=function(T,V,E){O--;X[T]=V?{fulfilled:!0,value:E}:{fulfilled:!1,reason:E};O==0&&L(X)},J,Y=0;Y<A.length;Y++)J=A[Y],wTH(J,_.Sm(x,Y,!0),_.Sm(x,Y,!1));
else L(X)})};
imJ=function(A){return new _.eJ(function(L,O){var X=A.length,x=[];if(X)for(var J=function(E){L(E)},Y=function(E,n){X--;
x[E]=n;X==0&&O(x)},T,V=0;V<A.length;V++)T=A[V],wTH(T,J,_.Sm(Y,V));
else L(void 0)})};
_.AI=function(){var A,L,O=new _.eJ(function(X,x){A=X;L=x});
return new NzJ(O,A,L)};
_.eJ.prototype.then=function(A,L,O){return rDn(this,cb(typeof A==="function"?A:null),cb(typeof L==="function"?L:null),O)};
txu(_.eJ);G0u=function(A,L,O,X){KyJ(A,qON(L||_.rk,O||null,X))};
_.R$=function(A,L){L=cb(L);L=qON(L,L);L.always=!0;KyJ(A,L);return A};
_.eJ.prototype.finally=function(A){var L=this;A=cb(A);return new _.eJ(function(O,X){G0u(L,function(x){A();O(x)},function(x){A();
X(x)})})};
_.eJ.prototype.thenCatch=function(A,L){return rDn(this,null,cb(A),L)};
_.eJ.prototype.catch=_.eJ.prototype.thenCatch;_.eJ.prototype.cancel=function(A){if(this.state_==0){var L=new _.$f(A);_.Cc(function(){l4u(this,L)},this)}};
var l4u=function(A,L){if(A.state_==0)if(A.parent_){var O=A.parent_;if(O.callbackEntries_){for(var X=0,x=null,J=null,Y=O.callbackEntries_;Y&&(Y.always||(X++,Y.child==A&&(x=Y),!(x&&X>1)));Y=Y.next)x||(J=Y);x&&(O.state_==0&&X==1?l4u(O,L):(J?(X=J,X.next==O.callbackEntriesTail_&&(O.callbackEntriesTail_=X),X.next=X.next.next):cDg(O),CWc(O,x,3,L)))}A.parent_=null}else A.resolve_(3,L)},KyJ=function(A,L){A.callbackEntries_||A.state_!=2&&A.state_!=3||FyL(A);
A.callbackEntriesTail_?A.callbackEntriesTail_.next=L:A.callbackEntries_=L;A.callbackEntriesTail_=L},rDn=function(A,L,O,X){var x=qON(null,null,null);
x.child=new _.eJ(function(J,Y){x.JSC$10789_onFulfilled=L?function(T){try{var V=L.call(X,T);J(V)}catch(E){Y(E)}}:J;
x.JSC$10789_onRejected=O?function(T){try{var V=O.call(X,T);V===void 0&&T instanceof _.$f?Y(T):J(V)}catch(E){Y(E)}}:Y});
x.child.parent_=A;KyJ(A,x);return x.child};
_.eJ.prototype.unblockAndFulfill_=function(A){this.state_=0;this.resolve_(2,A)};
_.eJ.prototype.unblockAndReject_=function(A){this.state_=0;this.resolve_(3,A)};
_.eJ.prototype.resolve_=function(A,L){this.state_==0&&(this===L&&(A=3,L=new TypeError("xa")),this.state_=1,gT6(L,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=L,this.state_=A,this.parent_=null,FyL(this),A!=3||L instanceof _.$f||REc(this,L)))};
var gT6=function(A,L,O,X){if(A instanceof _.eJ)return G0u(A,L,O,X),!0;if(bmL(A))return A.then(L,O,X),!0;if(_.BJ(A))try{var x=A.then;if(typeof x==="function")return Qo7(A,x,L,O,X),!0}catch(J){return O.call(X,J),!0}return!1},Qo7=function(A,L,O,X,x){var J=!1,Y=function(V){J||(J=!0,O.call(x,V))},T=function(V){J||(J=!0,X.call(x,V))};
try{L.call(A,Y,T)}catch(V){T(V)}},FyL=function(A){A.executing_||(A.executing_=!0,_.Cc(A.executeCallbacks_,A))},cDg=function(A){var L=null;
A.callbackEntries_&&(L=A.callbackEntries_,A.callbackEntries_=L.next,L.next=null);A.callbackEntries_||(A.callbackEntriesTail_=null);return L};
_.eJ.prototype.executeCallbacks_=function(){for(var A;A=cDg(this);)CWc(this,A,this.state_,this.result_);this.executing_=!1};
CWc=function(A,L,O,X){if(O==3&&L.JSC$10789_onRejected&&!L.always)for(;A&&A.hadUnhandledRejection_;A=A.parent_)A.hadUnhandledRejection_=!1;if(L.child)L.child.parent_=null,mFJ(L,O,X);else try{L.always?L.JSC$10789_onFulfilled.call(L.context):mFJ(L,O,X)}catch(x){R_P.call(null,x)}SOV.put(L)};
mFJ=function(A,L,O){L==2?A.JSC$10789_onFulfilled.call(A.context,O):A.JSC$10789_onRejected&&A.JSC$10789_onRejected.call(A.context,O)};
REc=function(A,L){A.hadUnhandledRejection_=!0;_.Cc(function(){A.hadUnhandledRejection_&&R_P.call(null,L)})};
R_P=Xp;_.$f=function(A){_.As.call(this,A)};
_.Ty(_.$f,_.As);_.$f.prototype.name="cancel";var NzJ=function(A,L,O){this.promise=A;this.resolve=L;this.reject=O};var Qe;_.xO=function(A,L){_.lb.call(this);this.JSC$10801_interval_=A||1;this.timerObject_=L||_.Ou;this.boundTick_=(0,_.is)(this.tick_,this);this.last_=_.u1()};
_.Ty(_.xO,_.lb);_.P=_.xO.prototype;_.P.enabled=!1;_.P.JSC$10803_timer_=null;_.P.setInterval=function(A){this.JSC$10801_interval_=A;this.JSC$10803_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$10803_timer_&&this.stop()};
_.P.tick_=function(){if(this.enabled){var A=_.u1()-this.last_;A>0&&A<this.JSC$10801_interval_*.8?this.JSC$10803_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$10801_interval_-A):(this.JSC$10803_timer_&&(this.timerObject_.clearTimeout(this.JSC$10803_timer_),this.JSC$10803_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.P.start=function(){this.enabled=!0;this.JSC$10803_timer_||(this.JSC$10803_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$10801_interval_),this.last_=_.u1())};
_.P.stop=function(){this.enabled=!1;this.JSC$10803_timer_&&(this.timerObject_.clearTimeout(this.JSC$10803_timer_),this.JSC$10803_timer_=null)};
_.P.disposeInternal=function(){_.xO.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
Qe=function(A,L,O){if(typeof A==="function")O&&(A=(0,_.is)(A,O));else if(A&&typeof A.handleEvent=="function")A=(0,_.is)(A.handleEvent,A);else throw Error("ya");return Number(L)>2147483647?-1:_.Ou.setTimeout(A,L||0)};
_.f4V=function(A){var L=null;return(new _.eJ(function(O,X){L=Qe(function(){O(void 0)},A);
L==-1&&X(Error("za"))})).thenCatch(function(O){_.Ou.clearTimeout(L);
throw O;})};var Dg=function(A){_.p$.call(this);this.streamzLogger=A;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$10807_flushTimer=new _.xO(this.flushInterval);this.JSC$10807_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.VI(this,this.JSC$10807_flushTimer)};
_.g(Dg,_.p$);Dg.prototype.sendIsolatedPayload=function(A){this.shouldSendIsolatedPayload=A;this.invocationLimit=1};
var I4l=function(A){A.JSC$10807_flushTimer.enabled||A.JSC$10807_flushTimer.start();A.invocationCount++;A.invocationCount>=A.invocationLimit&&A.snapshotAndFlush()};
Dg.prototype.snapshotAndFlush=function(){var A=this.metricMap.values();A=[].concat(_.le(A)).filter(function(L){return L.cellMap.size});
A.length&&this.streamzLogger.flush(A,this.shouldSendIsolatedPayload);yD6(A);this.invocationCount=0;this.JSC$10807_flushTimer.enabled&&this.JSC$10807_flushTimer.stop()};
Dg.prototype.addNewCounter=function(A){var L=_.f_.apply(1,arguments);this.metricMap.has(A)||this.metricMap.set(A,new M4l(A,L))};
Dg.prototype.addNewEventMetric=function(A){var L=_.f_.apply(1,arguments);this.metricMap.has(A)||this.metricMap.set(A,new $o6(A,L))};
var ZmL=function(A,L){return A.disabledMetrics.has(L)?void 0:A.metricMap.get(L)};
Dg.prototype.JSC$10807_incrementCounter=function(A){this.JSC$10807_incrementCounterBy(A,1,_.f_.apply(1,arguments))};
Dg.prototype.JSC$10807_incrementCounterBy=function(A,L){var O=_.f_.apply(2,arguments),X=ZmL(this,A);X&&X instanceof M4l&&(X.JSC$10746_incrementCounterBy(L,O),I4l(this))};
Dg.prototype.record=function(A,L){var O=_.f_.apply(2,arguments),X=ZmL(this,A);X&&X instanceof $o6&&(X.record(L,O),I4l(this))};
var yD6=function(A){for(var L=0;L<A.length;L++)A[L].clear()};_.mS=function(A,L,O){O=O===void 0?{}:O;L=Error.call(this,L);this.message=L.message;"stack"in L&&(this.stack=L.stack);this.code=A;this.metadata=O;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.g(_.mS,Error);_.mS.prototype.toString=function(){var A="RpcError("+(UEu(this.code)||String(this.code))+")";this.message&&(A+=": "+this.message);return A};_.joc=_.Ou.JSON.parse;_.fc=_.Ou.JSON.stringify;_.Kh=_.Ou.JSON.parse;_.Wyu=function(A){switch(A){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 Hml=function(A){switch(A){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var zEj,Bzc=function(){};
_.Ty(Bzc,_.vLM);Bzc.prototype.createInstance=function(){return new XMLHttpRequest};
zEj=new Bzc;_.I$=function(A){_.lb.call(this);this.headers=new Map;this.JSC$10816_xmlHttpFactory_=A||null;this.JSC$10816_active_=!1;this.JSC$10816_xhr_=null;this.JSC$10816_lastUri_="";this.JSC$10816_lastErrorCode_=0;this.JSC$10816_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$10816_timeoutId_=null;this.responseType_="";this.JSC$10816_withCredentials_=!1};
_.Ty(_.I$,_.lb);var Mxl=/^https?$/i,$FV=["POST","PUT"],a4u=[],ODr=function(A,L,O,X,x,J,Y){var T=new _.I$;a4u.push(T);L&&T.listen("complete",L);T.listenOnce("ready",T.cleanupSend_);J&&(T.timeoutInterval_=Math.max(0,J));Y&&(T.JSC$10816_withCredentials_=Y);T.send(A,O,X,x)};
_.I$.prototype.cleanupSend_=function(){this.dispose();_.y_(a4u,this)};
_.I$.prototype.send=function(A,L,O,X){if(this.JSC$10816_xhr_)throw Error("Aa`"+this.JSC$10816_lastUri_+"`"+A);L=L?L.toUpperCase():"GET";this.JSC$10816_lastUri_=A;this.JSC$10816_lastError_="";this.JSC$10816_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$10816_active_=!0;this.JSC$10816_xhr_=this.createXhr();this.JSC$10816_xhr_.onreadystatechange=cb((0,_.is)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$10816_xhr_.open(L,String(A),!0),this.inOpen_=!1}catch(Y){k0u(this,Y);return}A=
O||"";O=new Map(this.headers);if(X)if(Object.getPrototypeOf(X)===Object.prototype)for(var x in X)O.set(x,X[x]);else if(typeof X.keys==="function"&&typeof X.get==="function"){x=_.d(X.keys());for(var J=x.next();!J.done;J=x.next())J=J.value,O.set(J,X.get(J))}else throw Error("Ba`"+String(X));X=Array.from(O.keys()).find(function(Y){return"content-type"==Y.toLowerCase()});
x=_.Ou.FormData&&A instanceof _.Ou.FormData;!_.Id($FV,L)||X||x||O.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");L=_.d(O);for(X=L.next();!X.done;X=L.next())O=_.d(X.value),X=O.next().value,O=O.next().value,this.JSC$10816_xhr_.setRequestHeader(X,O);this.responseType_&&(this.JSC$10816_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$10816_xhr_&&this.JSC$10816_xhr_.withCredentials!==this.JSC$10816_withCredentials_&&(this.JSC$10816_xhr_.withCredentials=this.JSC$10816_withCredentials_);
try{this.JSC$10816_timeoutId_&&(clearTimeout(this.JSC$10816_timeoutId_),this.JSC$10816_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$10816_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$10816_xhr_.send(A),this.inSend_=!1}catch(Y){k0u(this,Y)}};
_.I$.prototype.createXhr=function(){return this.JSC$10816_xmlHttpFactory_?this.JSC$10816_xmlHttpFactory_.createInstance():zEj.createInstance()};
_.I$.prototype.timeout_=function(){typeof V2r!="undefined"&&this.JSC$10816_xhr_&&(this.JSC$10816_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$10816_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var k0u=function(A,L){A.JSC$10816_active_=!1;A.JSC$10816_xhr_&&(A.inAbort_=!0,A.JSC$10816_xhr_.abort(),A.inAbort_=!1);A.JSC$10816_lastError_=L;A.JSC$10816_lastErrorCode_=5;UFL(A);vTn(A)},UFL=function(A){A.errorDispatched_||(A.errorDispatched_=!0,A.dispatchEvent("complete"),A.dispatchEvent("error"))};
_.I$.prototype.abort=function(A){this.JSC$10816_xhr_&&this.JSC$10816_active_&&(this.JSC$10816_active_=!1,this.inAbort_=!0,this.JSC$10816_xhr_.abort(),this.inAbort_=!1,this.JSC$10816_lastErrorCode_=A||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),vTn(this))};
_.I$.prototype.disposeInternal=function(){this.JSC$10816_xhr_&&(this.JSC$10816_active_&&(this.JSC$10816_active_=!1,this.inAbort_=!0,this.JSC$10816_xhr_.abort(),this.inAbort_=!1),vTn(this,!0));_.I$.superClass_.disposeInternal.call(this)};
_.I$.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)oTu(this);else this.onReadyStateChangeEntryPoint_()};
_.I$.prototype.onReadyStateChangeEntryPoint_=function(){oTu(this)};
var oTu=function(A){if(A.JSC$10816_active_&&typeof V2r!="undefined")if(A.inSend_&&_.ye(A)==4)setTimeout(A.onReadyStateChange_.bind(A),0);else if(A.dispatchEvent("readystatechange"),A.isComplete()){A.JSC$10816_active_=!1;try{if(A.isSuccess())A.dispatchEvent("complete"),A.dispatchEvent("success");else{A.JSC$10816_lastErrorCode_=6;try{var L=_.ye(A)>2?A.JSC$10816_xhr_.statusText:""}catch(O){L=""}A.JSC$10816_lastError_=L+" ["+A.getStatus()+"]";UFL(A)}}finally{vTn(A)}}},vTn=function(A,L){if(A.JSC$10816_xhr_){A.JSC$10816_timeoutId_&&
(clearTimeout(A.JSC$10816_timeoutId_),A.JSC$10816_timeoutId_=null);
var O=A.JSC$10816_xhr_;A.JSC$10816_xhr_=null;L||A.dispatchEvent("ready");try{O.onreadystatechange=null}catch(X){}}};
_.I$.prototype.isActive=function(){return!!this.JSC$10816_xhr_};
_.I$.prototype.isComplete=function(){return _.ye(this)==4};
_.I$.prototype.isSuccess=function(){var A=this.getStatus(),L;if(!(L=Hml(A))){if(A=A===0)A=O_J(String(this.JSC$10816_lastUri_)),A=!Mxl.test(A);L=A}return L};
_.ye=function(A){return A.JSC$10816_xhr_?A.JSC$10816_xhr_.readyState:0};
_.P=_.I$.prototype;_.P.getStatus=function(){try{return _.ye(this)>2?this.JSC$10816_xhr_.status:-1}catch(A){return-1}};
_.P.getResponseText=function(){try{return this.JSC$10816_xhr_?this.JSC$10816_xhr_.responseText:""}catch(A){return""}};
_.P.getResponse=function(){try{if(!this.JSC$10816_xhr_)return null;if("response"in this.JSC$10816_xhr_)return this.JSC$10816_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$10816_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$10816_xhr_)return this.JSC$10816_xhr_.mozResponseArrayBuffer}return null}catch(A){return null}};
_.P.getAllResponseHeaders=function(){return this.JSC$10816_xhr_&&_.ye(this)>=2?this.JSC$10816_xhr_.getAllResponseHeaders()||"":""};
_.P.getLastError=function(){return typeof this.JSC$10816_lastError_==="string"?this.JSC$10816_lastError_:String(this.JSC$10816_lastError_)};var Oey=function(){};
Oey.prototype.send=function(A,L,O){L=L===void 0?function(){}:L;
O=O===void 0?function(){}:O;
ODr(A.url,function(X){X=X.target;X.isSuccess()?L(X.getResponseText()):O(X.getStatus())},A.requestType,A.body,A.requestHeaders,A.timeoutMillis,A.withCredentials)};
Oey.prototype.getTransmissionType=function(){return 1};var Ag6=function(A,L){this.t8z=A;this.event=L;this.startTime=eV()},dO_;
Ag6.prototype.done=function(){this.t8z.cH(this.event,eV()-this.startTime)};
var Zt=function(){Dt.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.g(Zt,Dt);_.j7=function(A,L,O){var X=eV();L=L();A.cH(O,eV()-X);return L};
dO_=function(){Zt.apply(this,arguments)};
_.g(dO_,Zt);_.P=dO_.prototype;_.P.zBY=function(){};
_.P.eX=function(){};
_.P.cH=function(){};
_.P.logError=function(){};
_.P.xd=function(){};
_.P.zdq=function(){};
_.P.lFY=function(){};
_.P.ikP=function(){};
var LK3=function(A){Zt.call(this);var L=this;this.rO=A;this.TEST_ONLY={g8g:function(){return L.rO},
getExperimentIds:function(){return L.rO.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void L.rO.dispose()})};
_.g(LK3,Zt);_.P=LK3.prototype;_.P.update=function(A){this.rO.dispose();this.rO=A};
_.P.eX=function(A){this.rO.eX(A)};
_.P.cH=function(A,L){this.rO.cH(A,L)};
_.P.logError=function(A){this.rO.logError(A)};
_.P.xd=function(){this.rO.xd()};
_.P.zdq=function(A){this.rO.zdq(A)};
_.P.lFY=function(A){this.rO.lFY(A)};
_.P.ikP=function(A){this.rO.ikP(A)};
_.P.zBY=function(A){this.rO.zBY(A)};
var O$N=function(A,L){_.p$.call(this);var O=this;this.callback=A;this.zej=L;this.yP4=-L;this.addOnDisposeCallback(function(){return void clearTimeout(O.timer)})};
_.g(O$N,_.p$);var XqV=function(A){if(A.timer===void 0){var L=Math.max(0,A.yP4+A.zej-eV());A.timer=setTimeout(function(){try{A.callback()}finally{A.yP4=eV(),A.timer=void 0}},L)}},xYj=function(A,L){Zt.call(this);
this.metrics=A;this.kn=L};
_.g(xYj,Zt);_.P=xYj.prototype;_.P.zBY=function(A){this.metrics.y3i.record(A,this.kn)};
_.P.eX=function(A){this.metrics.eventCount.increment(A,this.kn)};
_.P.cH=function(A,L){this.metrics.ro4.record(L,A,this.kn)};
_.P.logError=function(A){this.metrics.errorCount.increment(A,this.kn)};
_.P.zdq=function(A){this.metrics.mFi.increment(A,this.kn)};
_.P.lFY=function(A){this.metrics.enw.increment(A,this.kn)};
_.P.ikP=function(A){this.metrics.nfJ.increment(A,this.kn)};
var u59=function(A,L){L=L===void 0?[]:L;var O={kn:A.kn||"_",vpY:A.vpY||[],xtV:A.xtV|0,destinationUrl:A.destinationUrl,disableClearcutCredentialBinding:A.disableClearcutCredentialBinding,txY:A.txY||function(){},
qIa:A.qIa||function(J,Y){return PKe(J,Y,O.txY,O.destinationUrl,O.disableClearcutCredentialBinding)}},X=O.qIa("50",O.vpY.concat(L));
xYj.call(this,{y3i:new yEV(X),errorCount:new H_3(X),eventCount:new jP6(X),ro4:new WJl(X),haI:new Z_6(X),mFi:new z36(X),enw:new Bw6(X),nfJ:new Mg7(X)},O.kn);var x=this;this.TEST_ONLY={getExperimentIds:function(){return x.options.vpY.concat(x.z6N).sort(function(J,Y){return J-Y})}};
this.options=O;this.service=X;this.nEN=!A.qIa;this.flushDebouncer=new O$N(function(){return void x.service.snapshotAndFlush()},O.xtV);
this.addOnDisposeCallback(function(){x.flushDebouncer.dispose();x.nEN&&x.service.dispose()});
(this.z6N=L.slice()).sort(_.rsu)};
_.g(u59,xYj);u59.prototype.xd=function(){XqV(this.flushDebouncer)};var tz9=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(tz9,_.AE);_.b1O=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(_.b1O,_.AE);var vC=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A,0,vC.messageId)};
_.g(vC,_.AE);var sn6=_.fDu(vC);vC.messageId="bfkj";var Ytu=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(Ytu,_.AE);var Rfd=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(Rfd,_.AE);var Jgg=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(Jgg,_.AE);var Ps7=_.Vo(Jgg);_.EP=function(){var A=this;this.promise=new Promise(function(L,O){A.resolve=L;A.reject=O})};_.Wb=function(A){_.p$.call(this);var L=this;this.nPS=Math.floor(Math.random()*200);this.dWr=new Jgg;if("challenge"in A&&sn6(A.challenge)){var O=_.mT(A.challenge,4,void 0,lH);var X=_.mT(A.challenge,5,void 0,lH);_.mT(A.challenge,7,void 0,lH)&&(this.dWr=Ps7(_.mT(A.challenge,7,void 0,lH)))}else O=A.program,X=A.globalName;this.addOnDisposeCallback(function(){var w,l,F;return _.u(function(R){if(R.nextAddress==1)return R.yield(L.kSY,2);w=R.yieldResult;l=w.xWq;(F=l)==null||F();_.qo(R)})});
this.m3=TNd(A.gwq||{},this.dWr);_.VI(this,this.m3);var x=new _.EP;this.kSY=x.promise;this.m3.eX("t");var J=this.m3.share(),Y=new Ag6(J,"t"),T=function(w,l,F,R){if(!L.m3.isDisposed()){var y="k";l?y="h":F&&(y="u");y!=="k"?R!==0&&(L.m3.eX(y),L.m3.cH(y,w)):L.nPS<=0?(L.m3.eX(y),L.m3.cH(y,w),L.nPS=Math.floor(Math.random()*200)):L.nPS--}},V=function(w,l,F,R){Promise.resolve().then(function(){Y.done();
J.xd();J.dispose();x.resolve({a0N:w,xWq:l,sYg:F,dEP:R})})};
if(!_.Ou[X])throw this.m3.logError(25),Error("Ca");if(!_.Ou[X].a)throw this.m3.logError(26),Error("Da");try{var E=_.Ou[X].a;X=[];for(var n=[],t=QOr(this.dWr),b=0;b<t.length;b++)X.push(t[b]),n.push(1);var S=mEu(this.dWr);for(t=0;t<S.length;t++)X.push(S[t]),n.push(2);this.qcg=_.d(E(O,V,!0,A.ji0,T,[X,n],_.mT(this.dWr,5))).next().value;this.mqw=x.promise.then(function(){})}catch(w){throw this.m3.logError(28),w;
}};
_.g(_.Wb,_.p$);_.Wb.prototype.snapshot=function(A){if(this.isDisposed())throw Error("Ea");this.m3.eX("n");var L=this.m3.share();return this.kSY.then(function(O){var X=O.a0N;return new Promise(function(x){var J=new Ag6(L,"n");X(function(Y){J.done();L.zBY(Y.length);L.xd();L.dispose();x(Y)},[A.eN,
A.aUr,A.f1c,A.gjO])})})};
_.Wb.prototype.h4Y=function(A){this.kSY.then(function(L){var O;(O=L.sYg)==null||O(A)})};
_.Wb.prototype.tXq=function(A,L){return this.kSY.then(function(O){var X;return(X=O.dEP)==null?void 0:X(A,L,!1)})};
_.Wb.prototype.nBc=function(){return this.m3.share()};var dY7=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(dY7,_.AE);var aZr=_.fDu(dY7);var YT3=function(){this.promises={};this.nhS=null},uq6=function(){YT3.instance||(YT3.instance=new YT3);
return YT3.instance},VVL=function(A,L){return TX7(A,_.ET(L,tz9,1,lH),_.ET(L,_.b1O,2,lH),_.mT(L,3,void 0,lH))},TX7=function(A,L,O,X){if(!L&&!O)return Promise.resolve();
if(!X)return n$P(L,O);var x;(x=A.promises)[X]||(x[X]=new Promise(function(J,Y){n$P(L,O).then(function(){A.nhS=X;J()},function(T){delete A.promises[X];
Y(T)})}));
return A.promises[X]};var DYJ=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(DYJ,_.AE);var eYN=function(A,L){return _.oG(A,1,L)},E8j=function(A,L){return _.oG(A,2,L)};var zI=function(A){_.p$.call(this);var L=this;this.options=A;this.r53=new _.EP;this.mqw=this.r53.promise;this.fvi=new _.EP;this.kCo=1;this.qga=new _.EP;this.yei=[];this.aHq=A.aHq||function(){};
this.ex3=new LK3(TNd(A.gwq||{}));n8V(this,A.rT,A.oeW,A.dUi,A.ya1,Object.assign({},tV7,A.pUY||{}));this.addOnDisposeCallback(function(){return void b$6(L)})};
_.g(zI,_.p$);zI.prototype.snapshot=function(A){var L=this;return _.u(function(O){switch(O.nextAddress){case 1:if(L.isDisposed())throw Error("Ea");if(L.pK||L.ohj){O.jumpTo(2);break}return O.yield(L.fvi.promise,2);case 2:if(!L.pK){O.jumpTo(4);break}return O.yield(L.pK.snapshot(A),5);case 5:return O.return(O.yieldResult);case 4:throw L.ohj;}})};
var hYn=function(A){var L;return _.u(function(O){if(A.isDisposed())throw Error("Ea");(L=A.zx)!=null&&(L.endTimeMs=0,L.resolver(1));return O.yield(A.qga.promise,0)})},b$6=function(A){A.ohj=Error("Ga");
A.fvi.resolve();fJD(A.r53.promise);A.r53.reject(Error("Ga"));A.ex3.dispose();Promise.all(A.yei).then(function(){var O;return _.u(function(X){(O=A.pK)==null||O.dispose();A.pK=void 0;_.qo(X)})});
A.yei=[];var L;(L=A.zx)!=null&&(L.endTimeMs=0,L.resolver(1));fJD(A.qga.promise);A.qga.reject(Error("Ga"))};
zI.prototype.h4Y=function(A){var L,O;(L=this.pK)==null||(O=L.h4Y)==null||O.call(L,A)};
zI.prototype.tXq=function(A,L){var O,X,x;return(x=(O=this.pK)==null?void 0:(X=O.tXq)==null?void 0:X.call(O,A,L))!=null?x:Promise.resolve()};
var STJ=function(A,L){var O=A.aHq;A.aHq=function(){O();L()}},qTl=function(A,L){A.isDisposed()||(A.pK=L,A.ex3.update(L.nBc()),A.fvi.resolve(),A.r53.resolve(void 0),A.aHq())};
zI.prototype.handleError=function(A){if(!this.isDisposed()){this.ohj=A;this.fvi.resolve();var L,O;(O=(L=this.options).rCc)==null||O.call(L,A)}};
var g83=function(A,L){L&&(Promise.all(A.yei).then(function(){return void L.dispose()}),A.yei=[])},Bb=function(A,L){A.kCo=L;
var O,X;(X=(O=A.options).yyJ)==null||X.call(O,L)},wqH=function(A){A.isDisposed()||(A.qga.resolve(),A.qga=new _.EP)},n8V=function(A,L,O,X,x,J){X=X===void 0?uq6():X;
x=x===void 0?Promise.resolve(void 0):x;var Y,T,V,E,n,t,b,S,w,l,F,R;_.u(function(y){switch(y.nextAddress){case 1:return y.yield(0,3);case 3:T=null;if(!Y){y.jumpTo(6);break}Bb(A,7);_.e4(y,7);return y.yield(qY(Y.snapshot({}),J.wFC,function(){return Promise.resolve("E:CTO")}),9);
case 9:T=y.yieldResult;_.zA(y,6);break;case 7:_.S4(y),T="E:UCE";case 6:V=void 0,E=Y?J.bi0:J.oOj,n=new Y8(E,J.nOb,J.m6N,J.vOP),t=1;case 10:if(!(t<=J.maxAttempts)){y.jumpTo(12);break}if(t===1){y.jumpTo(13);break}Bb(A,0);A.zx=new pq6(n.getValue(),J.r9c,J.qMb);return y.yield(A.zx.promise,14);case 14:b=y.yieldResult,A.zx=void 0,b===1?(t=1,n.reset()):Q9j(n);case 13:_.e4(y,15);S=void 0;if(O){S=O;y.jumpTo(17);break}Bb(A,5);w=X.nhS;return y.yield(qY(i$l(L,w,T),J.nFc,function(){return Promise.reject(Error("Ha"))}),
18);
case 18:S=y.yieldResult;case 17:return Bb(A,3),y.yield(qY(VVL(X,S),J.gAm,function(){return Promise.reject(Error("Ia"))}),19);
case 19:return Bb(A,8),y.yield(x,20);case 20:return l=new _.Wb({challenge:S,gwq:A.options.gwq,ji0:A.options.ji0}),y.yield(qY(l.mqw,J.k6I,function(){return Promise.reject(Error("Ja"))}),21);
case 21:V=l;y.jumpTo(12);break;case 15:F=_.S4(y),A.handleError(F),wqH(A);case 11:t++;y.jumpTo(10);break;case 12:if(A.isDisposed()){y.jumpTo(5);break}V&&(O=void 0,g83(A,Y),Y=V,qTl(A,V),wqH(A));Bb(A,2);A.zx=new pq6(J.wcC,J.r9c,J.qMb);return y.yield(A.zx.promise,22);case 22:A.zx=void 0;if(A.isDisposed()){y.jumpTo(5);break}y.jumpTo(3);break;case 5:(R=Y)==null||R.dispose(),_.qo(y)}})};
zI.prototype.nBc=function(){return this.ex3.share()};
var tV7={wcC:432E5,r9c:3E5,qMb:10,wFC:1E4,nFc:3E4,gAm:3E4,k6I:6E4,oOj:1E3,bi0:6E4,nOb:6E5,m6N:.25,vOP:2,maxAttempts:10},pq6=function(A,L,O){var X=this;this.endTimeMs=Date.now()+A;this.promise=new Promise(function(J){X.resolver=J});
var x=function(){var J=X.endTimeMs-Date.now();J<=O?X.resolver(0):setTimeout(x,Math.min(J,L))};
x()};var NXL,hnD=(NXL=Math.imul)!=null?NXL:function(A,L){return A*L|0},gX=[196,
200,224,18],MJ=function(A,L,O){O=O===void 0?[]:O;this.maxItems=A;this.zZ=L===void 0?0:L;this.mf=O},rg3=function(A){var L=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!L)return new MJ(A);var O=L.split(",");if(O.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new MJ(A);L=O.slice(1);L.length===1&&L[0]===""&&(L=[]);O=Number(O[0]);return isNaN(O)||O<0||O>L.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new MJ(A)):new MJ(A,O,L)};
MJ.prototype.serialize=function(){return String(this.zZ)+","+this.mf.join()};
MJ.prototype.insert=function(A,L){var O=void 0;if(this.mf[this.zZ]!==A){var X=this.mf.indexOf(A);X!==-1?(this.mf.splice(X,1),X<this.zZ&&this.zZ--,this.mf.splice(this.zZ,0,A)):(O=this.mf[this.zZ],this.mf[this.zZ]=A)}this.zZ=(this.zZ+1)%this.maxItems;A=thP("iU5q-!O9@$",this.serialize());O&&A&&L(O);return A};
var KK6=function(A,L){this.yFP=L;try{var O=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(X){O=!1}O&&(this.index=rg3(A))},GX3=function(A,L,O,X,x){var J=A.index?_.j7(A.yFP,function(){return wOJ(A.index,qtO(L),O,X,x)},"W"):"u";
A.yFP.ikP(J)},lgj=function(A,L,O){var X=_.d(A.index?_.j7(A.yFP,function(){return pOy(qtO(L),O)},"R"):["u"]),x=X.next().value;
X=X.next().value;A.yFP.lFY(x);return X};var cgL={toString:function(A){var L=[],O=0;A-=-2147483648;L[O++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(A%52);for(A=Math.floor(A/52);A>0;)L[O++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(A%62),A=Math.floor(A/62);return L.join("")}};var RYg=function(A){A=Cs6(A);for(var L=2654435769,O=2654435769,X=314159265,x=A.length,J=x,Y=0,T=function(){L-=O;L-=X;L^=X>>>13;O-=X;O-=L;O^=L<<8;X-=L;X-=O;X^=O>>>13;L-=O;L-=X;L^=X>>>12;O-=X;O-=L;O^=L<<16;X-=L;X-=O;X^=O>>>5;L-=O;L-=X;L^=X>>>3;O-=X;O-=L;O^=L<<10;X-=L;X-=O;X^=O>>>15};J>=12;J-=12,Y+=12)L+=FK6(A,Y),O+=FK6(A,Y+4),X+=FK6(A,Y+8),T();
X+=x;switch(J){case 11:X+=A[Y+10]<<24;case 10:X+=A[Y+9]<<16;case 9:X+=A[Y+8]<<8;case 8:O+=A[Y+7]<<24;case 7:O+=A[Y+6]<<16;case 6:O+=A[Y+5]<<8;case 5:O+=A[Y+4];case 4:L+=A[Y+3]<<24;case 3:L+=A[Y+2]<<16;case 2:L+=A[Y+1]<<8;case 1:L+=A[Y]}T();return cgL.toString(X)},Cs6=function(A){for(var L=[],O=0;O<A.length;O++)L.push(A.charCodeAt(O));
return L},FK6=function(A,L){return A[L]+(A[L+1]<<8)+(A[L+2]<<16)+(A[L+3]<<24)};var $F=function(A){_.p$.call(this);this.xc=A;this.nif=new _.EP};
_.g($F,_.p$);var QnL=function(A,L){var O=setTimeout(function(){A.nif.resolve()},L);
A.addOnDisposeCallback(function(){return void clearTimeout(O)})};
$F.prototype.erf=function(A,L){var O=this.w3(A);L==null||L(O);return _.j7(this.xc,function(){return _.NQ(O,2)},this.p6r)};
var mYg=function(A,L,O,X){return _.j7(A.xc,function(){return O?A.erf(L,X):A.w3(L,X)},A.lfw)},fgn=function(A,L,O,X){$F.call(this,A);
this.bXW=L;this.nUN=O;this.lfw="m";this.p6r="x";this.oU6=0;QnL(this,X)};
_.g(fgn,$F);fgn.prototype.w3=function(A,L){var O=this;this.xc.eX(this.lfw);++this.oU6>=this.nUN&&this.nif.resolve();var X=A();A=_.j7(this.xc,function(){return O.bXW(X)},"C");
if(A===void 0)throw new TI(17,"YNJ:Undefined");if(!(A instanceof Uint8Array))throw new TI(18,"ODM:Invalid");L==null||L(A);return A};
var IgN=function(A,L,O){$F.call(this,A);this.vFb=L;this.lfw="f";this.p6r="z";QnL(this,O)};
_.g(IgN,$F);IgN.prototype.w3=function(){return this.vFb};
var ygg=function(A,L,O){$F.call(this,A);this.sWi=L;this.lfw="w";this.p6r="z";QnL(this,O)};
_.g(ygg,$F);ygg.prototype.w3=function(){var A=this;return _.j7(this.xc,function(){return _.ke(A.sWi)},"d")};
ygg.prototype.erf=function(){return this.sWi};
var Z$c=function(A,L){$F.call(this,A);this.error=L;this.lfw="e";this.p6r="y"};
_.g(Z$c,$F);var jnJ=function(A,L){var O=(L(A.error.message)+":"+L(A.error.stack)).substring(0,2048);L=O.length+1;O=W7D(O);var X=new Uint8Array(4+O.length);X.set([42,L&127|128,L>>7,A.error.code]);X.set(O,4);return X};
Z$c.prototype.w3=function(){if(this.xTz)return this.xTz;this.xTz=jnJ(this,function(A){return"_"+RYg(A)});
return jnJ(this,function(A){return A})};
var WKg=function(A,L,O){$F.call(this,A);this.yrz=L;this.clientState=O;this.lfw="S";this.p6r="q"};
_.g(WKg,$F);WKg.prototype.w3=function(){var A=Math.floor(Date.now()/1E3),L=[Math.random()*255,Math.random()*255],O=L.concat([this.yrz&255,this.clientState],[A>>24&255,A>>16&255,A>>8&255,A&255]);A=new Uint8Array(2+O.length);A[0]=34;A[1]=O.length;A.set(O,2);O=A.subarray(2);for(var X=L=L.length;X<O.length;++X)O[X]^=O[X%L];this.xc.zdq(this.clientState);return A};var H$L={wNP:3E4,r38:2E4},a$=function(A){_.p$.call(this);var L=this;this.dmm=new _.EP;this.ldg=0;this.f4=void 0;this.state=2;this.vm=A.vm;this.rT=A.rT;this.pUY=Object.assign({},H$L,A.pUY||{});this.mX=A.vm.nBc();var O;this.onError=(O=A.onError)!=null?O:function(){};
this.nSz=A.nSz||!1;if(zYc(A)){var X=this.vm;this.lIj=function(){return hYn(X).catch(function(Y){Y=L.reportError(new TI(L.yq?20:32,"TRG:Disposed",Y));L.f4=Y;var T;(T=L.yq)==null||T.dispose();L.yq=void 0;L.dmm.reject(Y)})};
STJ(X,function(){return void BX6(L)});
X.kCo===2&&BX6(this)}else this.lIj=A.bJ1,BX6(this);var x=this.mX.share();x.eX("o");var J=new Ag6(x,"o");this.dmm.promise.then(function(){J.done();x.xd();x.dispose()},function(){return void x.dispose()});
this.addOnDisposeCallback(function(){L.yq?(L.yq.dispose(),L.yq=void 0):L.f4?L.mX.xd():(L.f4=L.reportError(new TI(32,"TNP:Disposed")),L.mX.xd(),L.dmm.reject(L.f4))});
_.VI(this,this.mX)};
_.g(a$,_.p$);a$.prototype.gPo=function(){return this.dmm.promise};
var MVL=function(A,L){if(!(L instanceof TI))if(L instanceof _.mS){var O=Error(L.toString());O.stack=L.stack;L=new TI(11,"EBH:Error",O)}else L=new TI(12,"BSO:Unknown",L);return A.reportError(L)},BX6=function(A){var L,O,X,x,J,Y,T,V,E,n,t,b,S,w,l;
return _.u(function(F){switch(F.nextAddress){case 1:L=void 0;A.ldg++;O=new _.EP;A.vm instanceof zI&&A.vm.yei.push(O.promise);if(!A.nSz){F.jumpTo(2);break}X=new _.EP;setTimeout(function(){return void X.resolve()});
return F.yield(X.promise,2);case 2:return x=A.mX.share(),_.e4(F,4,5),A.state=5,J={},Y=[],F.yield(qY(A.vm.snapshot({eN:J,f1c:Y}),A.pUY.r38,function(){return Promise.reject(new TI(15,"MDA:Timeout"))}),7);
case 7:T=F.yieldResult;if(A.isDisposed())throw new TI(A.yq?20:32,"MDA:Disposed");V=Y[0];A.state=6;return F.yield(qY($Yu(A.rT,T),A.pUY.wNP,function(){return Promise.reject(new TI(10,"BWB:Timeout"))}),8);
case 8:E=F.yieldResult;if(A.isDisposed())throw new TI(A.yq?20:32,"BWB:Disposed");A.state=7;L=_.j7(x,function(){var y=agV(A,E,O,V);y.nif.promise.then(function(){return void A.lIj()});
return y},"i");
case 5:_.tn(F);x.dispose();_.hn(F,6);break;case 4:n=_.S4(F);(t=L)==null||t.dispose();if(!A.f4){b=MVL(A,n);O.resolve();var R;if(R=A.vm instanceof zI&&A.ldg<2)a:if(n instanceof TI)R=n.code!==32&&n.code!==20&&n.code!==10;else{if(n instanceof _.mS)switch(n.code){case 2:case 13:case 14:case 4:break;default:R=!1;break a}R=!0}if(R)return S=(1+Math.random()*.25)*(A.yq?6E4:1E3),w=setTimeout(function(){return void A.lIj()},S),A.addOnDisposeCallback(function(){return void clearTimeout(w)}),F.return();
A.f4=b}x.logError(A.yq?13:14);A.dmm.reject(A.f4);return F.return();case 6:A.state=8,A.ldg=0,(l=A.yq)==null||l.dispose(),A.yq=L,A.dmm.resolve(),_.qo(F)}})},agV=function(A,L,O,X){var x=FYd(L,2)*1E3;
if(x<=0)throw new TI(31,"TTM:Invalid");if(_.mT(L,4))return new ygg(A.mX,_.mT(L,4),x);if(!FYd(L,3))return new IgN(A.mX,nGM(_.rA(L,1)),x);if(!X)throw new TI(4,"PMD:Undefined");X=X(nGM(_.rA(L,1)));if(!(X instanceof Function))throw new TI(16,"APF:Failed");A.aZj=Math.floor((Date.now()+x)/1E3);A=new fgn(A.mX,X,FYd(L,3),x);A.addOnDisposeCallback(function(){return void O.resolve()});
return A};
a$.prototype.w3=function(A){return kXn(this,Object.assign({},A),!1)};
a$.prototype.erf=function(A){return kXn(this,Object.assign({},A),!0)};
a$.prototype.r5o=function(A){if(A>150)return!1;try{return this.cache=new KK6(A,this.mX),!0}catch(L){return this.reportError(new TI(22,"GBJ:init",L)),!1}};
a$.prototype.reportError=function(A){this.mX.logError(A.code);this.onError(A);return A};
var UYL=function(A,L){L=L instanceof TI?L:new TI(5,"TVD:error",L);return A.reportError(L)},kXn=function(A,L,O){try{if(A.isDisposed())throw new TI(21,"BNT:disposed");
if(!A.yq&&A.f4)throw A.f4;var X,x;return(x=(X=v8n(A,L,O))!=null?X:o8H(A,L,O))!=null?x:A0u(A,L,O)}catch(J){if(!L.yT1)throw UYL(A,J);return Lv7(A,O,J)}},v8n=function(A,L,O){var X;
return(X=A.yq)==null?void 0:mYg(X,function(){return OrH(A,L)},O,function(x){var J;
if(A.yq instanceof fgn&&((J=L.mx)==null?0:J.vhi))try{var Y;(Y=A.cache)==null||GX3(Y,OrH(A,L),x,L.mx.p3r,A.aZj-120)}catch(T){A.reportError(new TI(24,"ELX:write",T))}})},o8H=function(A,L,O){var X;
if((X=L.mx)!=null&&X.gET)try{var x,J=(x=A.cache)==null?void 0:lgj(x,OrH(A,L),L.mx.p3r);return J?O?_.j7(A.mX,function(){return _.NQ(J,2)},"a"):J:void 0}catch(Y){A.reportError(new TI(23,"RXO:read",Y))}},A0u=function(A,L,O){var X={stack:[],
error:void 0,hasError:!1};try{if(!L.pMo)throw new TI(29,"SDF:notready");return mYg(bUD(X,new WKg(A.mX,0,A.state)),function(){return OrH(A,L)},O)}catch(x){X.error=x,X.hasError=!0}finally{h8P(X)}},Lv7=function(A,L,O){var X={stack:[],
error:void 0,hasError:!1};try{var x=UYL(A,O);return mYg(bUD(X,new Z$c(A.mX,x)),function(){return[]},L)}catch(J){X.error=J,X.hasError=!0}finally{h8P(X)}},OrH=function(A,L){return L.joi?L.joi:L.eN?_.j7(A.mX,function(){return L.joi=W7D(L.eN)},"c"):[]},zYc=function(A){return FL(function(L){if(!O4(L))return!1;
for(var O=_.d(Object.entries(A)),X=O.next();!X.done;X=O.next()){var x=_.d(X.value);X=x.next().value;x=x.next().value;if(!(X in L)){if(x.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!x(L[X]))return!1}return!0})}({vm:function(A){return FL(function(L){return L instanceof A})}(zI)},"");var Xuu=function(){var A=_.un();this.JSC$10936_streamzService=A;A.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",sT("cookie_enabled"),sT("cookie_3p_enabled"),_.Pq("browser"))};
Xuu.prototype.increment=function(A,L,O){this.JSC$10936_streamzService.JSC$10807_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",A,L,O)};
var tSe=function(){var A=_.un();this.JSC$10960_streamzService=A;A.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",Jg("tick"),sT("from_st_cookie"))};
tSe.prototype.increment=function(A,L){this.JSC$10960_streamzService.JSC$10807_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",A,L)};
var xDn=function(){var A=_.un();this.JSC$10966_streamzService=A;A.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.Pq("status"))};
xDn.prototype.increment=function(A){this.JSC$10966_streamzService.JSC$10807_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",A)};
var seN=function(){var A=_.un();this.JSC$10969_streamzService=A;A.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.Pq("stage"),sT("is_using_ytd_player"),sT("has_expandable_tiles"))};
seN.prototype.increment=function(A,L,O){this.JSC$10969_streamzService.JSC$10807_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",A,L,O)};
var J06=function(){var A=_.un();this.JSC$10972_streamzService=A;A.addNewCounter("/client_streamz/youtube/web/response_signature",_.Pq("check_status"))};
J06.prototype.increment=function(A){this.JSC$10972_streamzService.JSC$10807_incrementCounter("/client_streamz/youtube/web/response_signature",A)};
var PQJ=function(){var A=_.un();this.JSC$10975_streamzService=A;A.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.Pq("sig"),Jg("de"))};
PQJ.prototype.increment=function(A,L){this.JSC$10975_streamzService.JSC$10807_incrementCounter("/client_streamz/youtube/web/e_sig_log",A,L)};
var dDj=function(){var A=_.un();this.JSC$10978_streamzService=A;A.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.Pq("sig"),Jg("de"))};
dDj.prototype.increment=function(A,L){this.JSC$10978_streamzService.JSC$10807_incrementCounter("/client_streamz/youtube/web/e_sig_en",A,L)};
_.Y46=function(){var A=_.un();this.JSC$10981_streamzService=A;A.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.Pq("action"))};
_.Y46.prototype.increment=function(A){this.JSC$10981_streamzService.JSC$10807_incrementCounter("/client_streamz/youtube/web/enforcement_intent",A)};var kF=window;var ux6=(new Date).getTime();_.lW.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.lW.createSet("action","cite","data","formaction","href","manifest","poster","src");var TFJ=function(A){this.servicePromise_=A;A.then((0,_.is)(function(){},this),function(){},this)},VIu=function(A,L,O){A.servicePromise_.then(function(X){var x=X[L];
if(!x)throw Error("Ka`"+L);return x.apply(X,O)})},ENH=function(A,L,O){for(var X=Array(arguments.length-2),x=2;x<arguments.length;x++)X[x-2]=arguments[x];
x=DDn(A,L).then(function(J){return J.apply(null,X)},function(J){J=Error("La`"+L+"`"+A,{cause:J});
delete eU3[L];return _.Ry(J)});
return new TFJ(x)},eU3={},DDn=function(A,L){var O=eU3[L];
if(O)return O;O=(O=_.WY(L))?_.DQ(O):(new _.eJ(function(X,x){var J=(new C5(document)).createElement("SCRIPT");J.async=!0;_.UB(J,_.gw(dQn(A)));J.onload=J.onreadystatechange=function(){J.readyState&&J.readyState!="loaded"&&J.readyState!="complete"||X()};
J.onerror=function(Y){x(Error("Ma`"+L+"`"+A,{cause:Y}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(J)})).then(function(){var X=_.WY(L);
if(!X)throw Error("Na`"+L+"`"+A);return X});
return eU3[L]=O};var nNV={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},br7=function(){var A=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=HeD(function(){return _.u(function(L){if(L.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?L.return(Promise.resolve()):L.yield(tI6(A),2);A.rsaForList.length>
0&&document.addEventListener("click",A.requestAccessForHelpPanel);_.qo(L)})});
this.requestAccessForHelpPanel=function(){if(!(A.rsaForPromises.length>0)){for(var L=_.d(A.rsaForList),O=L.next();!O.done;O=L.next()){O=O.value;try{A.rsaForPromises.push(document.requestStorageAccessFor(O))}catch(X){}}Promise.all(A.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){A.reset()})}}};
br7.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var tI6=function(A){var L,O,X,x;return _.u(function(J){switch(J.nextAddress){case 1:L=_.d(Object.values(nNV)),O=L.next();case 2:if(O.done){J.jumpTo(0);break}X=O.value;_.e4(J,5);return J.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:X}),7);case 7:x=J.yieldResult;x.state!=="granted"&&A.rsaForList.push(X);_.zA(J,3);break;case 5:_.S4(J);J.jumpTo(0);break;case 3:O=L.next(),J.jumpTo(2)}})};(new br7).initialize();var hUN=function(A){this.JSC$10995_loader_=A};
hUN.prototype.startHelp=function(A){VIu(this.JSC$10995_loader_,"startHelp",arguments)};
hUN.prototype.JSC$10997_loadChatSupport=function(A){VIu(this.JSC$10995_loader_,"loadChatSupport",arguments)};
var q4J=function(A,L){L=L||{};A=ENH(S46,"help.service.Lazy.create",A,{apiKey:L.apiKey||L.apiKey,asxUiUri:L.asxUiUri||L.asxUiUri,environment:L.environment||L.environment,flow:L.flow||L.flow,frdProductData:L.frdProductData||L.frdProductData,frdProductDataSerializedJspb:L.frdProductDataSerializedJspb||L.frdProductDataSerializedJspb,helpCenterPath:L.helpCenterPath||L.helpCenterPath,locale:L.locale||L.locale||"en-US".replace(/-/g,"_"),nonce:L.nonce||L.nonce,productData:L.productData||L.productData,receiverUri:L.receiverUri||
L.receiverUri,renderApiUri:L.renderApiUri||L.renderApiUri,theme:L.theme||L.theme,window:L.window||L.window});return new hUN(A)},S46=new mx(bu_,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var gNJ=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(gNJ,_.AE);var wuH=_.Vo(gNJ);_.puu=new function(A,L,O,X){this.configType=A;this.flagName=O;this.defaultValue=X;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 NF3=function(){this.retriever=_.X5().resolve(ir3)};BNO(Node);BNO(Element);var r0V=BNO(HTMLElement);BNO(SVGElement);var KvH,GVN,o$,lW6;KvH=function(A){return typeof A.className=="string"?A.className:A.getAttribute&&A.getAttribute("class")||""};
GVN=function(A){return A.classList?A.classList:KvH(A).match(/\S+/g)||[]};
_.UM=function(A,L){typeof A.className=="string"?A.className=L:A.setAttribute&&A.setAttribute("class",L)};
_.vb=function(A,L){return A.classList?A.classList.contains(L):_.Id(GVN(A),L)};
_.x4=function(A,L){if(A.classList)A.classList.add(L);else if(!_.vb(A,L)){var O=KvH(A);_.UM(A,O+(O.length>0?" "+L:L))}};
o$=function(A,L){if(A.classList)Array.prototype.forEach.call(L,function(x){_.x4(A,x)});
else{var O={};Array.prototype.forEach.call(GVN(A),function(x){O[x]=!0});
Array.prototype.forEach.call(L,function(x){O[x]=!0});
L="";for(var X in O)L+=L.length>0?" "+X:X;_.UM(A,L)}};
_.OC=function(A,L){A.classList?A.classList.remove(L):_.vb(A,L)&&_.UM(A,Array.prototype.filter.call(GVN(A),function(O){return O!=L}).join(" "))};
lW6=function(A,L){A.classList?Array.prototype.forEach.call(L,function(O){_.OC(A,O)}):_.UM(A,Array.prototype.filter.call(GVN(A),function(O){return!_.Id(L,O)}).join(" "))};var c0j=function(A){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=A.document},RUc=function(A,L){CQ6(A);
var O=document.createElement("div"),X;(X=L.parentNode)==null||X.insertBefore(O,L);O.tabIndex=0;O.id="fc-focus-trap-pre-div";O=document.createElement("div");var x;(x=L.parentNode)==null||x.insertBefore(O,L.nextSibling);O.tabIndex=0;O.id="fc-focus-trap-post-div";var J=FvH(A,L),Y=FvH(A,L,!0);J&&Y&&(A.focusChangeHandler=function(){var T=A.document.activeElement;if(T)if(_.In(L,T))A.previouslyFocusedElement=T;else if(T===A.document.activeElement)switch(A.previouslyFocusedElement){case J:Y.focus();A.previouslyFocusedElement=
Y;break;default:J.focus(),A.previouslyFocusedElement=J}},A.document.addEventListener("focus",A.focusChangeHandler,!0),A.document.addEventListener("focusin",A.focusChangeHandler))},CQ6=function(A){A.focusChangeHandler&&(document.removeEventListener("focus",A.focusChangeHandler,!0),document.removeEventListener("focusin",A.focusChangeHandler),A.focusChangeHandler=null);
var L;(L=document.getElementById("fc-focus-trap-pre-div"))==null||L.remove();var O;(O=document.getElementById("fc-focus-trap-post-div"))==null||O.remove()},QeN=function(A,L,O,X,x){O=O===void 0?!0:O;
var J;x=(J=x===void 0?null:x)!=null?J:FvH(A,L,X===void 0?!1:X);x!==null&&(x.focus(),O&&RUc(A,L))};
c0j.prototype.disableButton=function(A,L){L=L===void 0?null:L;A.disabled=!0;L&&_.x4(A,L)};
var FvH=function(A,L,O){O=O===void 0?!1:O;if(fXe(L)&&!O)return L;var X=O?[].slice.call(L.children,0).reverse():L.children;X=_.d(X);for(var x=X.next();!x.done;x=X.next())if(x=x.value,r0V(x)&&(x=FvH(A,x,O)))return x;return fXe(L)&&O?L:null};var mDL=function(A){this.originalBodyOverflow="";this.JSC$11021_domHelper=qF(A)};
mDL.prototype.enableScrolling=function(){this.JSC$11021_domHelper.JSC$10345_document_.body.style.overflow=this.originalBodyOverflow};_.Ty(_.NY,_.p$);_.P=_.NY.prototype;_.P.JSC$11024_id_=0;_.P.disposeInternal=function(){_.NY.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$11022_listener_;delete this.handler_};
_.P.start=function(A){this.stop();this.JSC$11024_id_=Qe(this.callback_,A!==void 0?A:this.JSC$11022_interval_)};
_.P.stop=function(){this.isActive()&&_.Ou.clearTimeout(this.JSC$11024_id_);this.JSC$11024_id_=0};
_.P.fire=function(){this.stop();this.JSC$11024_doAction_()};
_.P.isActive=function(){return this.JSC$11024_id_!=0};
_.P.JSC$11024_doAction_=function(){this.JSC$11024_id_=0;this.JSC$11022_listener_&&this.JSC$11022_listener_.call(this.handler_)};_.sI=function(A){_.p$.call(this);this.handler_=A;this.JSC$11025_keys_={}};
_.Ty(_.sI,_.p$);var fW7=[];_.sI.prototype.listen=function(A,L,O,X){Array.isArray(L)||(L&&(fW7[0]=L.toString()),L=fW7);for(var x=0;x<L.length;x++){var J=_.CT(A,L[x],O||this.handleEvent,X||!1,this.handler_||this);if(!J)break;this.JSC$11025_keys_[J.key]=J}return this};
_.sI.prototype.listenOnce=function(A,L,O,X){return IWN(this,A,L,O,X)};
var IWN=function(A,L,O,X,x,J){if(Array.isArray(O))for(var Y=0;Y<O.length;Y++)IWN(A,L,O[Y],X,x,J);else{L=KT(L,O,X||A.handleEvent,x,J||A.handler_||A);if(!L)return A;A.JSC$11025_keys_[L.key]=L}return A};
_.sI.prototype.unlisten=function(A,L,O,X,x){if(Array.isArray(L))for(var J=0;J<L.length;J++)this.unlisten(A,L[J],O,X,x);else if(A=YOH(A,L,O||this.handleEvent,_.BJ(X)?!!X.capture:!!X,x||this.handler_||this))Gi(A),delete this.JSC$11025_keys_[A.key];return this};
_.sI.prototype.removeAll=function(){_.lW.forEach(this.JSC$11025_keys_,function(A,L){this.JSC$11025_keys_.hasOwnProperty(L)&&Gi(A)},this);
this.JSC$11025_keys_={}};
_.sI.prototype.disposeInternal=function(){_.sI.superClass_.disposeInternal.call(this);this.removeAll()};
_.sI.prototype.handleEvent=function(){throw Error("Oa");};var Aw=function(){_.p$.call(this);this.services_={}};
_.Ty(Aw,_.p$);Aw.prototype.connect=function(A){A&&A()};
Aw.prototype.isConnected=function(){return!0};
Aw.prototype.registerService=function(A,L,O){this.services_[A]={callback:L,objectPayload:!!O}};
Aw.prototype.getService=function(A,L){var O=this.services_[A];return O?O:this.defaultService_?{callback:_.Sm(this.defaultService_,A),objectPayload:_.BJ(L)}:null};
var y0L=function(A,L){if(L&&typeof A==="string")try{return JSON.parse(A)}catch(O){return null}else if(!L&&typeof A!=="string")return(0,_.fc)(A);return A};
Aw.prototype.disposeInternal=function(){Aw.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 Ln=function(A,L){this.sequence_=[];this.onCancelFunction_=A;this.defaultScope_=L||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};
Ln.prototype.cancel=function(A){if(this.fired_)this.result_ instanceof Ln&&this.result_.cancel();else{if(this.parent_){var L=this.parent_;delete this.parent_;A?L.cancel(A):(L.branches_--,L.branches_<=0&&L.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new O1(this))}};
Ln.prototype.continue_=function(A,L){this.blocked_=!1;Zrl(this,A,L)};
var Zrl=function(A,L,O){A.fired_=!0;A.result_=O;A.hadError_=!L;jeH(A)},Hru=function(A){if(A.fired_){if(!A.silentlyCanceled_)throw new WvJ(A);
A.silentlyCanceled_=!1}};
Ln.prototype.callback=function(A){Hru(this);Zrl(this,!0,A)};
Ln.prototype.errback=function(A){Hru(this);Zrl(this,!1,A)};
var zUL=function(A,L,O){X_(A,L,null,O)};
Ln.prototype.finally=function(A){var L=this;return BF6(new Promise(function(O,X){X_(L,function(x){A();O(x)},function(x){A();
X(x)})}))};
var X_=function(A,L,O,X){var x=A.fired_;x||(L===O?L=O=cb(L):(L=cb(L),O=cb(O)));A.sequence_.push([L,O,X]);x&&jeH(A)};
Ln.prototype.then=function(A,L,O){var X,x,J=new _.eJ(function(Y,T){x=Y;X=T});
X_(this,x,function(Y){Y instanceof O1?J.cancel():X(Y);return MIH},this);
return J.then(A,L,O)};
txu(Ln);var $DN=function(A,L){L instanceof Ln?zUL(A,(0,_.is)(L.branch,L)):zUL(A,function(){return L})};
Ln.prototype.branch=function(A){var L=new Ln;X_(this,L.callback,L.errback,L);A&&(L.parent_=this,this.branches_++);return L};
Ln.prototype.isError=function(A){return A instanceof Error};
var aWJ=function(A){return B1(A.sequence_,function(L){return typeof L[1]==="function"})},MIH={},jeH=function(A){if(A.unhandledErrorId_&&A.fired_&&aWJ(A)){var L=A.unhandledErrorId_,O=kVL[L];
O&&(_.Ou.clearTimeout(O.JSC$11042_id_),delete kVL[L]);A.unhandledErrorId_=0}A.parent_&&(A.parent_.branches_--,delete A.parent_);L=A.result_;for(var X=O=!1;A.sequence_.length&&!A.blocked_;){var x=A.sequence_.shift(),J=x[0],Y=x[1];x=x[2];if(J=A.hadError_?Y:J)try{var T=J.call(x||A.defaultScope_,L);T===MIH&&(T=void 0);T!==void 0&&(A.hadError_=A.hadError_&&(T==L||A.isError(T)),A.result_=L=T);if(bmL(L)||typeof _.Ou.Promise==="function"&&L instanceof _.Ou.Promise)X=!0,A.blocked_=!0}catch(V){L=V,A.hadError_=
!0,aWJ(A)||(O=!0)}}A.result_=L;X&&(T=(0,_.is)(A.continue_,A,!0),X=(0,_.is)(A.continue_,A,!1),L instanceof Ln?(X_(L,T,X),L.blocking_=!0):L.then(T,X));O&&(L=new UDV(L),kVL[L.JSC$11042_id_]=L,A.unhandledErrorId_=L.JSC$11042_id_)},BF6=function(A){var L=new Ln;
A.then(function(O){L.callback(O)},function(O){L.errback(O)});
return L},WvJ=function(){_.As.call(this)};
_.Ty(WvJ,_.As);WvJ.prototype.message="Deferred has already fired";WvJ.prototype.name="AlreadyCalledError";var O1=function(){_.As.call(this)};
_.Ty(O1,_.As);O1.prototype.message="Deferred was canceled";O1.prototype.name="CanceledError";var UDV=function(A){this.JSC$11042_id_=_.Ou.setTimeout((0,_.is)(this.throwError,this),0);this.JSC$11042_error_=A};
UDV.prototype.throwError=function(){delete kVL[this.JSC$11042_id_];throw this.JSC$11042_error_;};
var kVL={};var vN6={1:"NativeMessagingTransport"},oNN=["pu","lru","pru","lpu","ppu"],LsL=function(){for(var A=10,L=A83,O=L.length,X="";A-- >0;)X+=L.charAt(Math.floor(Math.random()*O));return X},A83="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var xI=function(A){_.p$.call(this);this.JSC$11045_domHelper_=A||qF()};
_.Ty(xI,_.p$);xI.prototype.transportType=0;xI.prototype.getWindow=function(){return this.JSC$11045_domHelper_.getWindow()};
xI.prototype.getName=function(){return vN6[String(this.transportType)]||""};var s1=function(A,L,O,X,x){xI.call(this,O);this.JSC$11048_channel_=A;this.protocolVersion_=x||2;this.peerHostname_=L||"*";this.JSC$11048_eventHandler_=new _.sI(this);this.maybeAttemptToConnectTimer_=new _.xO(100,this.getWindow());this.oneSidedHandshake_=!!X;this.setupAckReceived_=new Ln;this.setupAckSent_=new Ln;this.JSC$11048_connected_=new Ln;this.endpointId_=LsL();this.peerEndpointId_=null;this.oneSidedHandshake_?OB7(this.JSC$11048_channel_)==1?$DN(this.JSC$11048_connected_,this.setupAckReceived_):
$DN(this.JSC$11048_connected_,this.setupAckSent_):($DN(this.JSC$11048_connected_,this.setupAckReceived_),this.protocolVersion_==2&&$DN(this.JSC$11048_connected_,this.setupAckSent_));zUL(this.JSC$11048_connected_,this.notifyConnected_,this);this.JSC$11048_connected_.callback(!0);this.JSC$11048_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.Ty(s1,xI);s1.prototype.peerProtocolVersion_=null;s1.prototype.initialized_=!1;s1.prototype.transportType=1;var XYL={};s1.prototype.sendTimerId_=0;
var J8u=function(A){var L=A.event_.data;if(typeof L!=="string")return!1;var O=L.indexOf("|"),X=L.indexOf(":");if(O==-1||X==-1)return!1;var x=L.substring(0,O);O=L.substring(O+1,X);L=L.substring(X+1);if(X=Jw[x])return X.xpcDeliver(O,L,A.event_.origin),!0;X=xEg(L)[0];for(var J in Jw){var Y=Jw[J];if(OB7(Y)==1&&!Y.isConnected()&&O=="tp"&&(X=="SETUP"||X=="SETUP_NTPV2")&&sO7(Y,A.event_.origin))return delete Jw[Y.name],Y.name=x,Jw[x]=Y,Y.xpcDeliver(O,L),!0}return!1},Pk6=function(A){A.protocolVersion_!=2||
A.peerProtocolVersion_!=null&&A.peerProtocolVersion_!=2||A.send("tp","SETUP_NTPV2,"+A.endpointId_);
A.peerProtocolVersion_!=null&&A.peerProtocolVersion_!=1||A.send("tp","SETUP")},dEV=function(A,L){if(A.protocolVersion_!=2||A.peerProtocolVersion_!=null&&A.peerProtocolVersion_!=2||L!=2){if(A.peerProtocolVersion_!=null&&A.peerProtocolVersion_!=1||L!=1)return;
A.send("tp","SETUP_ACK")}else A.send("tp","SETUP_ACK_NTPV2");A.setupAckSent_.fired_||A.setupAckSent_.callback(!0)},Ys7=function(A,L){L>A.peerProtocolVersion_&&(A.peerProtocolVersion_=L);
A.peerProtocolVersion_==1&&(A.setupAckSent_.fired_||A.oneSidedHandshake_||A.setupAckSent_.callback(!0),A.peerEndpointId_=null)};
_.P=s1.prototype;_.P.connect=function(){var A=this.getWindow(),L=_.$e(A),O=XYL[L];typeof O!=="number"&&(O=0);O==0&&_.CT(A.postMessage?A:A.document,"message",J8u,!1,s1);XYL[L]=O+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.P.maybeAttemptToConnect_=function(){var A=OB7(this.JSC$11048_channel_)==0;this.oneSidedHandshake_&&A||this.JSC$11048_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),Pk6(this))};
_.P.send=function(A,L){var O=this.JSC$11048_channel_.peerWindowObject_;O&&(this.send=function(X,x){var J=this,Y=this.JSC$11048_channel_.name;this.sendTimerId_=Qe(function(){J.sendTimerId_=0;try{var T=O.postMessage?O:O.document;T.postMessage&&T.postMessage(Y+"|"+X+":"+x,J.peerHostname_)}catch(V){}},0)},this.send(A,L))};
_.P.notifyConnected_=function(){var A=this.JSC$11048_channel_,L=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;A.isConnected()||A.connectionDelay_&&A.connectionDelay_.isActive()||(A.state_=2,_.oo(A.connectionDelay_),L!==void 0?(A.connectionDelay_=new _.NY(A.connectCb_,L),A.connectionDelay_.start()):(A.connectionDelay_=null,A.connectCb_()))};
_.P.disposeInternal=function(){if(this.initialized_){var A=this.getWindow(),L=_.$e(A),O=XYL[L];XYL[L]=O-1;O==1&&_.GI(A.postMessage?A:A.document,"message",J8u,!1,s1)}this.sendTimerId_&&(_.Ou.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.oo(this.JSC$11048_eventHandler_);delete this.JSC$11048_eventHandler_;_.oo(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$11048_connected_.cancel();delete this.JSC$11048_connected_;delete this.send;s1.superClass_.disposeInternal.call(this)};
var xEg=function(A){A=A.split(",");A[1]=A[1]||null;return A};var T9g;_.P9=function(A){if(A.getValues&&typeof A.getValues=="function")return A.getValues();if(typeof Map!=="undefined"&&A instanceof Map||typeof Set!=="undefined"&&A instanceof Set)return Array.from(A.values());if(typeof A==="string")return A.split("");if(_.jD(A)){for(var L=[],O=A.length,X=0;X<O;X++)L.push(A[X]);return L}return _.lW.getValues(A)};
_.usl=function(A){if(A.getKeys&&typeof A.getKeys=="function")return A.getKeys();if(!A.getValues||typeof A.getValues!="function"){if(typeof Map!=="undefined"&&A instanceof Map)return Array.from(A.keys());if(!(typeof Set!=="undefined"&&A instanceof Set)){if(_.jD(A)||typeof A==="string"){var L=[];A=A.length;for(var O=0;O<A;O++)L.push(O);return L}return _.lW.getKeys(A)}}};
T9g=function(A,L,O){if(A.forEach&&typeof A.forEach=="function")A.forEach(L,O);else if(_.jD(A)||typeof A==="string")Array.prototype.forEach.call(A,L,O);else for(var X=_.usl(A),x=_.P9(A),J=x.length,Y=0;Y<J;Y++)L.call(O,x[Y],X&&X[Y],A)};var qoe,er,nn,bBH,V6J,efc,DEH,t66,ELL;
_.kO=function(A,L){this.JSC$11053_domain_=this.userInfo_=this.scheme_="";this.JSC$11053_port_=null;this.fragment_=this.JSC$11053_path_="";this.JSC$11053_ignoreCase_=!1;var O;A instanceof _.kO?(this.JSC$11053_ignoreCase_=L!==void 0?L:A.JSC$11053_ignoreCase_,_.dr(this,A.scheme_),this.userInfo_=A.userInfo_,_.YI(this,A.JSC$11053_domain_),_.u5(this,A.JSC$11053_port_),_.T7(this,A.getPath()),_.Vv(this,A.JSC$11053_queryData_.clone()),_.DP(this,A.fragment_)):A&&(O=_.Us(String(A)))?(this.JSC$11053_ignoreCase_=
!!L,_.dr(this,O[1]||"",!0),this.userInfo_=er(O[2]||""),_.YI(this,O[3]||"",!0),_.u5(this,O[4]),_.T7(this,O[5]||"",!0),_.Vv(this,O[6]||"",!0),_.DP(this,O[7]||"",!0)):(this.JSC$11053_ignoreCase_=!!L,this.JSC$11053_queryData_=new _.E1(null,this.JSC$11053_ignoreCase_))};
_.kO.prototype.toString=function(){var A=[],L=this.scheme_;L&&A.push(nn(L,V6J,!0),":");var O=this.JSC$11053_domain_;if(O||L=="file")A.push("//"),(L=this.userInfo_)&&A.push(nn(L,V6J,!0),"@"),A.push(_.zD(O).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),O=this.JSC$11053_port_,O!=null&&A.push(":",String(O));if(O=this.getPath())this.JSC$11053_domain_&&O.charAt(0)!="/"&&A.push("/"),A.push(nn(O,O.charAt(0)=="/"?DEH:efc,!0));(O=this.JSC$11053_queryData_.toString())&&A.push("?",O);(O=this.fragment_)&&A.push("#",
nn(O,ELL));return A.join("")};
_.kO.prototype.resolve=function(A){var L=this.clone(),O=!!A.scheme_;O?_.dr(L,A.scheme_):O=!!A.userInfo_;O?L.userInfo_=A.userInfo_:O=!!A.JSC$11053_domain_;O?_.YI(L,A.JSC$11053_domain_):O=A.JSC$11053_port_!=null;var X=A.getPath();if(O)_.u5(L,A.JSC$11053_port_);else if(O=!!A.JSC$11053_path_){if(X.charAt(0)!="/")if(this.JSC$11053_domain_&&!this.JSC$11053_path_)X="/"+X;else{var x=L.getPath().lastIndexOf("/");x!=-1&&(X=L.getPath().slice(0,x+1)+X)}x=X;if(x==".."||x==".")X="";else if(_.TO(x,"./")||_.TO(x,
"/.")){X=_.su(x,"/");x=x.split("/");for(var J=[],Y=0;Y<x.length;){var T=x[Y++];T=="."?X&&Y==x.length&&J.push(""):T==".."?((J.length>1||J.length==1&&J[0]!="")&&J.pop(),X&&Y==x.length&&J.push("")):(J.push(T),X=!0)}X=J.join("/")}else X=x}O?_.T7(L,X):O=A.JSC$11053_queryData_.toString()!=="";O?_.Vv(L,A.JSC$11053_queryData_.clone()):O=!!A.fragment_;O&&_.DP(L,A.fragment_);return L};
_.kO.prototype.clone=function(){return new _.kO(this)};
_.dr=function(A,L,O){A.scheme_=O?er(L,!0):L;A.scheme_&&(A.scheme_=A.scheme_.replace(/:$/,""));return A};
_.YI=function(A,L,O){A.JSC$11053_domain_=O?er(L,!0):L;return A};
_.u5=function(A,L){if(L){L=Number(L);if(isNaN(L)||L<0)throw Error("Pa`"+L);A.JSC$11053_port_=L}else A.JSC$11053_port_=null;return A};
_.kO.prototype.getPath=function(){return this.JSC$11053_path_};
_.T7=function(A,L,O){A.JSC$11053_path_=O?er(L,!0):L;return A};
_.Vv=function(A,L,O){L instanceof _.E1?(A.JSC$11053_queryData_=L,nLc(A.JSC$11053_queryData_,A.JSC$11053_ignoreCase_)):(O||(L=nn(L,t66)),A.JSC$11053_queryData_=new _.E1(L,A.JSC$11053_ignoreCase_));return A};
_.Hq=function(A,L,O){A.JSC$11053_queryData_.set(L,O);return A};
_.Wq=function(A,L){return A.JSC$11053_queryData_.get(L)};
_.DP=function(A,L,O){A.fragment_=O?er(L):L;return A};
_.tw=function(A){_.Hq(A,"zx",Zg());return A};
_.jV=function(A,L){return A instanceof _.kO?A.clone():new _.kO(A,L)};
qoe=function(A,L){A instanceof _.kO||(A=_.jV(A));L instanceof _.kO||(L=_.jV(L));return A.resolve(L)};
er=function(A,L){return A?L?decodeURI(A.replace(/%25/g,"%2525")):decodeURIComponent(A):""};
nn=function(A,L,O){return typeof A==="string"?(A=encodeURI(A).replace(L,bBH),O&&(A=A.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),A):null};
bBH=function(A){A=A.charCodeAt(0);return"%"+(A>>4&15).toString(16)+(A&15).toString(16)};
V6J=/[#\/\?@]/g;efc=/[#\?:]/g;DEH=/[#\?]/g;t66=/[#\?@]/g;ELL=/#/g;_.E1=function(A,L){this.count_=this.keyMap_=null;this.encodedQuery_=A||null;this.JSC$11054_ignoreCase_=!!L};
_.b5=function(A){A.keyMap_||(A.keyMap_=new Map,A.count_=0,A.encodedQuery_&&sPV(A.encodedQuery_,function(L,O){A.add(Le(L),O)}))};
_.P=_.E1.prototype;_.P.getCount=function(){_.b5(this);return this.count_};
_.P.add=function(A,L){_.b5(this);this.encodedQuery_=null;A=hw(this,A);var O=this.keyMap_.get(A);O||this.keyMap_.set(A,O=[]);O.push(L);this.count_+=1;return this};
_.P.remove=function(A){_.b5(this);A=hw(this,A);return this.keyMap_.has(A)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(A).length,this.keyMap_.delete(A)):!1};
_.P.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.P.isEmpty=function(){_.b5(this);return this.count_==0};
_.P.containsKey=function(A){_.b5(this);A=hw(this,A);return this.keyMap_.has(A)};
_.P.containsValue=function(A){var L=this.getValues();return _.Id(L,A)};
_.P.forEach=function(A,L){_.b5(this);this.keyMap_.forEach(function(O,X){O.forEach(function(x){A.call(L,x,X,this)},this)},this)};
_.P.getKeys=function(){_.b5(this);for(var A=Array.from(this.keyMap_.values()),L=Array.from(this.keyMap_.keys()),O=[],X=0;X<L.length;X++)for(var x=A[X],J=0;J<x.length;J++)O.push(L[X]);return O};
_.P.getValues=function(A){_.b5(this);var L=[];if(typeof A==="string")this.containsKey(A)&&(L=L.concat(this.keyMap_.get(hw(this,A))));else{A=Array.from(this.keyMap_.values());for(var O=0;O<A.length;O++)L=L.concat(A[O])}return L};
_.P.set=function(A,L){_.b5(this);this.encodedQuery_=null;A=hw(this,A);this.containsKey(A)&&(this.count_-=this.keyMap_.get(A).length);this.keyMap_.set(A,[L]);this.count_+=1;return this};
_.P.get=function(A,L){if(!A)return L;A=this.getValues(A);return A.length>0?String(A[0]):L};
_.hf6=function(A,L,O){A.remove(L);O.length>0&&(A.encodedQuery_=null,A.keyMap_.set(hw(A,L),_.Ze(O)),A.count_+=O.length)};
_.E1.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var A=[],L=Array.from(this.keyMap_.keys()),O=0;O<L.length;O++){var X=L[O],x=_.zD(X);X=this.getValues(X);for(var J=0;J<X.length;J++){var Y=x;X[J]!==""&&(Y+="="+_.zD(X[J]));A.push(Y)}}return this.encodedQuery_=A.join("&")};
_.E1.prototype.clone=function(){var A=new _.E1;A.encodedQuery_=this.encodedQuery_;this.keyMap_&&(A.keyMap_=new Map(this.keyMap_),A.count_=this.count_);return A};
var hw=function(A,L){L=String(L);A.JSC$11054_ignoreCase_&&(L=L.toLowerCase());return L},nLc=function(A,L){L&&!A.JSC$11054_ignoreCase_&&(_.b5(A),A.encodedQuery_=null,A.keyMap_.forEach(function(O,X){var x=X.toLowerCase();
X!=x&&(this.remove(X),_.hf6(this,x,O))},A));
A.JSC$11054_ignoreCase_=L};
_.E1.prototype.extend=function(A){for(var L=0;L<arguments.length;L++)T9g(arguments[L],function(O,X){this.add(X,O)},this)};var Sr=function(A,L){Aw.call(this);for(var O=0,X;X=oNN[O];O++)if(X in A&&!/^https?:\/\//.test(A[X]))throw Error("Ra`"+A[X]+"`"+X);this.cfg_=A;this.name=this.cfg_.cn||LsL();this.JSC$11049_domHelper_=L||qF();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.sI(this);A.lpu=A.lpu||Xfl(this.JSC$11049_domHelper_.getWindow().location.href)+"/robots.txt";A.ppu=A.ppu||Xfl(A.pu||"")+"/robots.txt";Jw[this.name]=this;YOH(window,"unload",Ssn)||KT(window,"unload",Ssn)};
_.Ty(Sr,Aw);var qs3=RegExp("^%*tp$"),gLn=RegExp("^%+tp$");_.P=Sr.prototype;_.P.connectionDelay_=null;_.P.peerWindowDeferred_=null;_.P.transport_=null;_.P.state_=1;_.P.isConnected=function(){return this.state_==2};
_.P.peerWindowObject_=null;_.P.iframeElement_=null;_.P.connect=function(A){this.connectCb_=A||_.rk;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?zUL(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.P.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$11049_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var A=this.iframeElement_.contentWindow;A||(A=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=A}if(!this.peerWindowObject_){if(window==window.top)throw Error("Ta");this.peerWindowObject_=window.parent}if(!this.transport_){this.cfg_.tp||(this.cfg_.tp=typeof document.postMessage==="function"||typeof window.postMessage===
"function"?1:0);if(typeof this.cfg_.tp==="function")this.transport_=new this.cfg_.tp(this,this.JSC$11049_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new s1(this,this.cfg_.ph,this.JSC$11049_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Sa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.P.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.oo(this.transport_);this.connectCb_=this.transport_=null;_.oo(this.connectionDelay_);this.connectionDelay_=null};
_.P.send=function(A,L){if(this.isConnected()){try{var O=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(x){O=!1}if(O){_.BJ(L)&&(L=(0,_.fc)(L));O=this.transport_;var X=O.send;qs3.test(A)&&(A="%"+A);A=A.replace(/[%:|]/g,encodeURIComponent);X.call(O,A,L)}else this.close()}};
_.P.xpcDeliver=function(A,L,O){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.is)(this.xpcDeliver,this,A,L,O));else if(sO7(this,O)&&!this.isDisposed()&&this.state_!=3)if(A&&A!="tp")this.isConnected()&&(A=A.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),A=gLn.test(A)?A.substring(1):A,A=this.getService(A,L))&&(L=y0L(L,A.objectPayload),L!=null&&A.callback(L));else switch(A=this.transport_,O=xEg(L),L=O[1],O[0]){case "SETUP_ACK":Ys7(A,1);A.setupAckReceived_.fired_||A.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":A.protocolVersion_==2&&(Ys7(A,2),A.setupAckReceived_.fired_||A.setupAckReceived_.callback(!0));break;case "SETUP":Ys7(A,1);dEV(A,1);break;case "SETUP_NTPV2":A.protocolVersion_==2&&(O=A.peerProtocolVersion_,Ys7(A,2),dEV(A,2),O!=1&&A.peerEndpointId_==null||A.peerEndpointId_==L||Pk6(A),A.peerEndpointId_=L)}};
var OB7=function(A){var L=A.cfg_.role;return typeof L==="number"?L:window.parent==A.peerWindowObject_?1:0},sO7=function(A,L){var O=A.cfg_.ph;
return _.Ye(L==null?"":String(L))||_.Ye(O==null?"":String(O))||L==A.cfg_.ph};
Sr.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete Jw[this.name];_.oo(this.peerLoadHandler_);delete this.peerLoadHandler_;Sr.superClass_.disposeInternal.call(this)};
var Ssn=function(){for(var A in Jw)_.oo(Jw[A])},Jw={};var pYn=function(A,L){this.JSC$11063_win=A;this.allowAdsHttpEndpoint=L;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$11063_domHelper=qF(A);this.scrollManager=new mDL(A);this.accessibilityManager=new c0j(A);wYn(this)},wYn=function(A){var L=function(){A.allowAdsPopup&&A.allowAdsPopup.style.setProperty("display","none","important");
A.wallElement.style.setProperty("display","","important");CQ6(A.accessibilityManager);QeN(A.accessibilityManager,A.wallElement.querySelector(".fc-dialog-container"),!1,!1,A.wallElement.querySelector(".fc-button-whitelist"));A.scrollManager.enableScrolling()};
A.allowAdsPopup=A.JSC$11063_domHelper.JSC$10347_createDom("DIV",{"class":"fc-whitelist-root"});A.allowAdsPopup.style.setProperty("display","none","important");A.JSC$11063_domHelper.appendChild(A.JSC$11063_domHelper.JSC$10345_document_.body,A.allowAdsPopup);var O=A.JSC$11063_domHelper.JSC$10347_createDom("DIV",{"class":"fc-dialog-overlay"});A.JSC$11063_domHelper.appendChild(A.allowAdsPopup,O);var X=A.JSC$11063_domHelper.JSC$10347_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:L});A.JSC$11063_domHelper.appendChild(A.allowAdsPopup,
X);O=A.JSC$11063_domHelper.JSC$10347_createDom("IFRAME");O.className="fc-whitelist-dialog";O.frameBorder="0";O.id="fc-whitelist-iframe";O.tabIndex="0";_.Hf(O,A.allowAdsHttpEndpoint);A.JSC$11063_domHelper.appendChild(X,O);X={};X.pu=_.ww(A.allowAdsHttpEndpoint).toString();X.tp=1;X.cn="fc-whitelist-channel";X.ifrid=O.id;X.osh=!0;A.allowAdsCrossPageChannel=new Sr(X);A.allowAdsCrossPageChannel.registerService("close",L);A.allowAdsCrossPageChannel.registerService("refresh",function(){A.JSC$11063_win.location.reload()});
A.allowAdsCrossPageChannel.registerService("resize",function(x){if(x){var J=A.allowAdsPopup.querySelector(".fc-whitelist-dialog");x.width&&J.style.setProperty("width",x.width,"important");x.height&&J.style.setProperty("height",x.height,"important")}},!0);
A.allowAdsCrossPageChannel.connect()};
pYn.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$11063_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var gr=window,wr=document,iBl=gr.location,N96=function(){},r86=/\[native code\]/,pn=function(A,L,O){return A[L]=A[L]||O},Ksj=function(A){A=A.sort();
for(var L=[],O=void 0,X=0;X<A.length;X++){var x=A[X];x!=O&&L.push(x);O=x}return L},i5=function(){var A;
if((A=Object.create)&&r86.test(A))A=A(null);else{A={};for(var L in A)A[L]=void 0}return A},NI=pn(gr,"gapi",{});var rr={};rr=pn(gr,"___jsl",i5());pn(rr,"I",0);pn(rr,"hel",10);var GDj=function(){var A=iBl.href;if(rr.dpo)var L=rr.h;else{L=rr.h;var O=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),X=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(A=A&&(O.exec(A)||X.exec(A)))try{L=decodeURIComponent(A[2])}catch(x){}}return L},lJV=function(A){var L=pn(rr,"PQ",[]);
rr.PQ=[];var O=L.length;if(O===0)A();else for(var X=0,x=function(){++X===O&&A()},J=0;J<O;J++)L[J](x)},c8l=function(A){return pn(pn(rr,"H",i5()),A,i5())};var CkH=function(A){this.JSC$11065_obj_=A};
_.P=CkH.prototype;_.P.value=function(){return this.JSC$11065_obj_};
_.P.getWidth=function(){return this.JSC$11065_obj_.width};
_.P.setHeight=function(A){this.JSC$11065_obj_.height=A;return this};
_.P.getHeight=function(){return this.JSC$11065_obj_.height};
_.P.getStyle=function(){return this.JSC$11065_obj_.style};var FsL=function(A){this.JSC$11068_obj_=A||{}};
_.P=FsL.prototype;_.P.value=function(){return this.JSC$11068_obj_};
_.P.setUrl=function(A){this.JSC$11068_obj_.url=A;return this};
_.P.getUrl=function(){return this.JSC$11068_obj_.url};
_.P.getStyle=function(){return this.JSC$11068_obj_.style};
_.P.getId=function(){return this.JSC$11068_obj_.id};
_.P.getContext=function(){return this.JSC$11068_obj_.context};
var Rf6=function(A){A.JSC$11068_obj_.attributes=A.JSC$11068_obj_.attributes||{};return new CkH(A.JSC$11068_obj_.attributes)};var QOH=function(){FsL.apply(this,arguments)};
_.g(QOH,FsL);var mEg=pn(rr,"perf",i5());pn(mEg,"g",i5());var fJ3=pn(mEg,"i",i5());pn(mEg,"r",[]);i5();i5();var y8g=function(A,L,O){L&&L.length>0&&(L=IJ3(L),O&&O.length>0&&(L+="___"+IJ3(O)),L.length>28&&(L=L.substr(0,28)+(L.length-28)),O=L,L=pn(fJ3,"_p",i5()),pn(L,O,i5())[A]=(new Date).getTime(),L=mEg.r,typeof L==="function"?L(A,"_p",O):L.push([A,"_p",O]))},IJ3=function(A){return A.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var ZBu=i5(),jOc=[],Kn=function(A){throw Error("Ua`"+A);};
jOc.push(["jsl",function(A){for(var L in A)if(Object.prototype.hasOwnProperty.call(A,L)){var O=A[L];typeof O=="object"?rr[L]=pn(rr,L,[]).concat(O):pn(rr,L,O)}if(L=A.u)A=pn(rr,"us",[]),A.push(L),(L=/^https:(.*)$/.exec(L))&&A.push("http:"+L[1])}]);
var Wsl=/^(\/[a-zA-Z0-9_\-]+)+$/,HBg=[/\/amp\//,/\/amp$/,/^\/amp$/],zfc=/^[a-zA-Z0-9\-_\.,!]+$/,B9j=/^gapi\.loaded_[0-9]+$/,M63=/^[a-zA-Z0-9,._-]+$/,UEg=function(A,L,O,X,x){var J=A.split(";"),Y=J.shift(),T=ZBu[Y],V=null;T?V=T(J,L,O,X):Kn("no hint processor for: "+Y);V||Kn("failed to generate load url");L=V;O=L.match($E6);(X=L.match(aJg))&&X.length===1&&kDN.test(L)&&O&&O.length===1||Kn("failed sanity: "+A);try{A="?";if(x&&x.length>0){Nud(x);var E=x.join(",");V=V+"?le="+E;A="&"}if(rr.rol){var n=rr.ol;
n&&n.length&&(V=""+V+A+"ol="+n.length)}}catch(t){}return V},Aj7=function(A,L,O,X){A=vLl(A);
B9j.test(O)||Kn("invalid_callback");L=oL6(L);X=X&&X.length?oL6(X):null;var x=function(J){return encodeURIComponent(J).replace(/%2C/g,",")};
return[encodeURIComponent(A.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",x(A.version),"/m=",x(L),X?"/exm="+x(X):"","/rt=j/sv=1/d=1/ed=1",A.activeMods?"/am="+x(A.activeMods):"",A.resourceSig?"/rs="+x(A.resourceSig):"",A.zcms?"/t="+x(A.zcms):"","/cb=",x(O)].join("")},vLl=function(A){A.charAt(0)!=="/"&&Kn("relative path");
for(var L=A.substring(1).split("/"),O=[];L.length;){A=L.shift();if(!A.length||A.indexOf(".")==0)Kn("empty/relative directory");else if(A.indexOf("=")>0){L.unshift(A);break}O.push(A)}A={};for(var X=0,x=L.length;X<x;++X){var J=L[X].split("="),Y=decodeURIComponent(J[0]),T=decodeURIComponent(J[1]);J.length==2&&Y&&T&&(A[Y]=A[Y]||T)}L="/"+O.join("/");Wsl.test(L)||Kn("invalid_prefix");O=0;for(X=HBg.length;O<X;++O)HBg[O].test(L)&&Kn("invalid_prefix");O=L7c(A,"k",!0);X=L7c(A,"am");x=L7c(A,"rs");A=L7c(A,"t");
return{pathPrefix:L,version:O,activeMods:X,resourceSig:x,zcms:A}},oL6=function(A){for(var L=[],O=0,X=A.length;O<X;++O){var x=A[O].replace(/\./g,"_").replace(/-/g,"_");
M63.test(x)&&L.push(x)}return L.join(",")},L7c=function(A,L,O){A=A[L];
!A&&O&&Kn("missing: "+L);if(A){if(zfc.test(A))return A;Kn("invalid: "+L)}return null},kDN=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,aJg=/\/cb=/g,$E6=/\/\//g;
ZBu.m=function(A,L,O,X){(A=A[0])||Kn("missing_hint");return"https://apis.google.com"+Aj7(A,L,O,X)};
var OeN=decodeURI("%73cript"),XOj=/^[-+_0-9\/A-Za-z]+={0,2}$/,xOc=function(A,L){for(var O=[],X=0;X<A.length;++X){var x=A[X],J;if(J=x){a:{for(J=0;J<L.length;J++)if(L[J]===x)break a;J=-1}J=J<0}J&&O.push(x)}return O},sZH=function(){var A=rr.nonce;
return A!==void 0?A&&A===String(A)&&A.match(XOj)?A:rr.nonce=null:wr.querySelector?(A=wr.querySelector("script[nonce]"))?(A=A.nonce||A.getAttribute("nonce")||"",A&&A===String(A)&&A.match(XOj)?rr.nonce=A:rr.nonce=null):null:null},dOu=function(A){if(wr.readyState!="loading")JjV(A);
else{var L=sZH(),O="";L!==null&&(O=' nonce="'+L+'"');A="<"+OeN+' src="'+encodeURI(A)+'"'+O+"></"+OeN+">";wr.write(PKV?PKV.createHTML(A):A)}},JjV=function(A){var L=wr.createElement(OeN);
L.setAttribute("src",PKV?PKV.createScriptURL(A):A);A=sZH();A!==null&&L.setAttribute("nonce",A);L.async="true";(A=wr.getElementsByTagName(OeN)[0])?A.parentNode.insertBefore(L,A):(wr.head||wr.body||wr.documentElement).appendChild(L)},u56=function(A,L,O){YtJ(function(){var X=L===GDj()?pn(NI,"_",i5()):i5();
X=pn(c8l(L),"_",X);A(X)},O)},eQ_=function(A,L){var O=L||{};
typeof L=="function"&&(O={},O.callback=L);var X=(L=O)&&L._c;if(X)for(var x=0;x<jOc.length;x++){var J=jOc[x][0],Y=jOc[x][1];Y&&Object.prototype.hasOwnProperty.call(X,J)&&Y(X[J],A,L)}L=[];A?L=A.split(":"):O.features&&(L=O.features);if(!(A=O.h)&&(A=GDj(),!A))throw Error("Va");TN6(L||[],O,A)},TN6=function(A,L,O){A=Ksj(A)||[];
var X=L.callback,x=L.config,J=L.timeout,Y=L.ontimeout,T=L.onerror,V=void 0;typeof T=="function"&&(V=T);var E=null,n=!1;if(J&&!Y||!J&&Y)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";T=pn(c8l(O),"r",[]).sort();var t=pn(c8l(O),"L",[]).sort(),b=rr.le||[],S=[].concat(T),w=function(M,H){if(n)return 0;gr.clearTimeout(E);t.push.apply(t,l);var z=((NI||{}).config||{}).update;z?z(x):x&&pn(rr,"cu",[]).push(x);if(H){y8g("me0",M,S);try{u56(H,O,V)}finally{y8g("me1",M,S)}}return 1};
J>0&&(E=gr.setTimeout(function(){n=!0;Y()},J));
var l=xOc(A,t);if(l.length){l=xOc(A,T);var F=pn(rr,"CP",[]),R=F.length;F[R]=function(M){if(!M)return 0;y8g("ml1",l,S);var H=function(a){F[R]=null;w(l,M)&&lJV(function(){X&&X();a()})},z=function(){var a=F[R+1];
a&&a()};
R>0&&F[R-1]?F[R]=function(){H(z)}:H(z)};
if(l.length){var y="loaded_"+rr.I++;NI[y]=function(M){F[R](M);NI[y]=null};
A=UEg(O,l,"gapi."+y,T,b);T.push.apply(T,l);y8g("ml0",l,S);L.sync||gr.___gapisync?dOu(A):JjV(A)}else F[R](N96)}else w(l)&&X&&X()},Vh3;
var DON=null,enc=_.Ou.trustedTypes;if(enc&&enc.createPolicy){try{DON=enc.createPolicy("goog#gapi",{createHTML:t2p,createScript:t2p,createScriptURL:t2p})}catch(A){_.Ou.console&&_.Ou.console.error(A.message)}Vh3=DON}else Vh3=DON;var PKV=Vh3,YtJ=function(A,L){if(rr.hee&&rr.hel>0)try{return A()}catch(O){L&&L(O),rr.hel--,eQ_("debug_error",function(){try{window.___jsl.hefn(O)}catch(X){throw O;}})}else try{return A()}catch(O){throw L&&L(O),O;
}},E$7=NI.load;
E$7&&pn(rr,"ol",[]).push(E$7);NI.load=function(A,L){return YtJ(function(){return eQ_(A,L)})};var UOs;var th7=function(A,L){var O=O||[];this.serviceId_=A;this.moduleId_=L||null;this.dependencies_=[];n$7(this,O)};
th7.prototype.toString=function(){return this.serviceId_};
th7.prototype.getModuleId=function(){return this.moduleId_};
var n$7=function(A,L){var O=!1;O=O===void 0?!1:O;A.dependencies_=A.dependencies_.concat(L);if(O){if(!A.moduleId_)throw Error("Wa`"+A.serviceId_);L.map(function(X){return X.getModuleId()}).forEach(function(X){v$p(function(x){x.addExtraEdge(A.moduleId_,X)})})}};var AzM=new th7("MpJwZc","MpJwZc");var OM_=new _.pc("a"),Lfr=function(A,L,O){_.ib.call(this,A,L);this.node=L;this.kind=O};
_.g(Lfr,_.ib);var beJ=function(){this.JSC$11081_keys_={};this.urlPrefix_="";this.JSC$11081_queryData_={}};
beJ.prototype.toString=function(){var A=this.urlPrefix_+hn3(this),L=_.ne(this.JSC$11081_queryData_),O="";L!=""&&(O="?"+L);return A+O};
var St7=function(A){A=G7(A,"md");return!!A&&A!=="0"},hn3=function(A){var L=[],O=(0,_.is)(function(X){this.JSC$11081_keys_[X]!==void 0&&L.push(X+"="+this.JSC$11081_keys_[X])},A);
St7(A)?(O("md"),O("k"),O("ck"),O("am"),O("rs"),O("gssmodulesetproto"),O("slk"),O("dti")):(O("sdch"),O("k"),O("ck"),O("am"),O("rt"),"d"in A.JSC$11081_keys_||l5(A,"d","0"),O("d"),O("exm"),O("excm"),(A.JSC$11081_keys_.excm||A.JSC$11081_keys_.exm)&&L.push("ed=1"),O("im"),O("dg"),O("sm"),G7(A,"br")!="1"&&G7(A,"br")!="0"||O("br"),O("br-d"),G7(A,"rb")=="1"&&O("rb"),G7(A,"zs")!=="0"&&O("zs"),qtj(A)!==""&&O("wt"),O("gssmodulesetproto"),O("ujg"),O("sp"),O("rs"),O("cb"),O("ee"),O("slk"),O("dti"),O("m"));return L.join("/")},
G7=function(A,L){return A.JSC$11081_keys_[L]?A.JSC$11081_keys_[L]:null},l5=function(A,L,O){O?A.JSC$11081_keys_[L]=O:delete A.JSC$11081_keys_[L]},g$l=function(A,L){A.urlPrefix_=L},wOn=function(A,L){L&&L.length>0?(L.sort(),l5(A,"exm",L.join(","))):l5(A,"exm",null)},pON=function(A,L){L&&L.length>0?(L.sort(),l5(A,"excm",L.join(","))):l5(A,"excm",null)},ieN=function(A){return(A=G7(A,"m"))?A.split(","):[]},qtj=function(A){switch(G7(A,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},NNg=function(A,L){var O=Object.keys(L).filter(function(X){return!!Object.keys(L[X]).length}).map(function(X){var x=Object.keys(L[X]);
x.length>1&&x.sort();return X+":"+x.join(",")});
O.sort();l5(A,"ee",O.join(";"))},Wge=function(A){var L=G7(A,"ee");
if(!L)return{};A={};L=_.d(L.split(";"));for(var O=L.next();!O.done;O=L.next()){var X=_.d(O.value.split(":"));O=X.next().value;X=X.next().value;A[O]={};X=_.d(X.split(","));for(var x=X.next();!x.done;x=X.next())A[O][x.value]=!0}return A},rju=function(A){delete A.JSC$11081_keys_.m;
delete A.JSC$11081_keys_.exm;delete A.JSC$11081_keys_.ed};
beJ.prototype.clone=function(){var A=new beJ;A.JSC$11081_keys_=Object.assign({},this.JSC$11081_keys_);A.urlPrefix_=this.urlPrefix_;A.JSC$11081_queryData_=Object.assign({},this.JSC$11081_queryData_);return A};
var HHO=function(A,L){L=L===void 0?!0:L;var O=K7N(A),X=new beJ,x=_.Us(O)[5];_.lW.forEach(GAl,function(Y){var T=x.match("/"+Y+"=([^/]+)");T&&l5(X,Y,T[1])});
var J="";J=A.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";g$l(X,A.substr(0,A.indexOf(J)+J.length));if(!L)return X;(A=_.Us(O)[6]||null)&&sPV(A,function(Y,T){X.JSC$11081_queryData_[Y]=T});
return X},y4e=function(A){A=_.eh(K7N(A));
return A===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(A)?/\/k=/.test(A):!1},K7N=function(A){return A.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?A.substr(65):A},GAl={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"},lKJ=RegExp("^loaded_(g|h)?[_\\d]+$");_.c9=function(A){this.JSC$11093_id_=A;this.opts={}};
_.c9.prototype.JSC$11095_setLabel=function(A){this.label_=A||void 0;return this};
_.c9.prototype.setOptions=function(A){this.opts=A;return this};
_.c9.prototype.addUploadMetadata=function(A,L){var O=this.opts.data||{};O[A]=L;this.opts.data=O;return this};
var cjH=function(A){var L=_.lW.filter(A.opts,function(O){return O!==null});
L=_.lW.isEmpty(L)?null:L;A=[A.JSC$11093_id_,A.label_,L];L=qu_(A);return A=A.slice(0,L+1)};
_.c9.prototype.toString=function(){var A=cjH(this);return"("+_.cT(A,function(L){return JSON.stringify(L)}).join(",")+")"};
_.c9.prototype.getId=function(){return this.JSC$11093_id_};
_.c9.prototype.getOptions=function(){return _.lW.clone(this.opts)};var Cn=function(){_.c9.call(this,"image-search")};
_.g(Cn,_.c9);Cn.prototype.setSize=function(A){this.opts.imgsz=A;return this};
Cn.prototype.JSC$11095_setLabel=function(A){_.c9.prototype.JSC$11095_setLabel.call(this,A);return this};
Cn.prototype.addUploadMetadata=function(A,L){_.c9.prototype.addUploadMetadata.call(this,A,L);return this};var F_=function(){_.c9.call(this,"maps")};
_.g(F_,_.c9);F_.prototype.setZoom=function(A){this.opts.zoom=A;return this};
F_.prototype.JSC$11095_setLabel=function(A){_.c9.prototype.JSC$11095_setLabel.call(this,A);return this};
F_.prototype.addUploadMetadata=function(A,L){_.c9.prototype.addUploadMetadata.call(this,A,L);return this};_.RL=function(){_.c9.call(this,"photos")};
_.g(_.RL,_.c9);_.RL.prototype.JSC$11095_setLabel=function(A){_.c9.prototype.JSC$11095_setLabel.call(this,A);return this};
_.RL.prototype.addUploadMetadata=function(A,L){_.c9.prototype.addUploadMetadata.call(this,A,L);return this};var Qv=function(){_.c9.call(this,"url")};
_.g(Qv,_.c9);var CK3=function(){var A=new Qv;A.opts.type="video";A.opts.site="youtube.com";return A};
Qv.prototype.JSC$11095_setLabel=function(A){_.c9.prototype.JSC$11095_setLabel.call(this,A);return this};
Qv.prototype.addUploadMetadata=function(A,L){_.c9.prototype.addUploadMetadata.call(this,A,L);return this};var mZ=function(){_.c9.call(this,"video-search")};
_.g(mZ,_.c9);var F7N=function(){var A=new mZ;A.opts.site="youtube.com";return A};
mZ.prototype.JSC$11095_setLabel=function(A){_.c9.prototype.JSC$11095_setLabel.call(this,A);return this};
mZ.prototype.addUploadMetadata=function(A,L){_.c9.prototype.addUploadMetadata.call(this,A,L);return this};var Rnc=function(){_.c9.call(this,"web")};
_.g(Rnc,_.c9);Rnc.prototype.JSC$11095_setLabel=function(A){_.c9.prototype.JSC$11095_setLabel.call(this,A);return this};
Rnc.prototype.addUploadMetadata=function(A,L){_.c9.prototype.addUploadMetadata.call(this,A,L);return this};var fn=function(){this.items_=[];this.opts={}},QZL=function(A){switch(A){case "image-search":return new Cn;
case "maps":return new F_;case "photos":return new _.RL;case "url":return new Qv;case "video-search":return new mZ;case "web":return new Rnc}return new _.c9(A)};
fn.prototype.addView=function(A){this.items_.push(typeof A==="string"?QZL(A):A);return this};
var mO6=function(A){return"("+_.cT(A.items_,function(L){return L.toString()}).join(",")+")"};
fn.prototype.toString=function(){return mO6(this)};
fn.prototype.getViews=function(A,L){L=L===void 0?[]:L;for(var O=this.items_,X=0;X<O.length;X++){var x=O[X];x instanceof fn?x.getViews(A,L):x.getId()==A&&L.push(x)}return L};
fn.prototype.getOptions=function(){return _.lW.clone(this.opts)};var QI=function(A){this.basePickerUrl_=A||"https://docs.google.com/picker";this.nav_=new fn};
QI.prototype.nav_=null;QI.prototype.addView=function(A){this.nav_.addView(A);return this};
QI.prototype.getBaseUrl=function(){return this.basePickerUrl_};
QI.prototype.getViews=function(A){return this.nav_.getViews(A)};
_.fKN=function(A,L){A.callback_=L;return A};var IKV=new Map;IKV.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");IKV.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");IKV.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var yju=new Set;yju.add("application/vnd.google-apps.kix");yju.add("application/vnd.google-apps.ritz");yju.add("application/vnd.google-apps.punch");var v$L=function(A,L,O){var X=O&&_.mT(O,1);O=Zeg(O);var x=A[0].getId();switch(_.IH(x,2)){case 13:return jZu(A,L,X,O);case 3:return W73(A,L,X,O);case 10:return He3(A,L,X,O);case 27:return He3(A,L,X,O);case 12:return zn6(A,L);case 2:return BNj(A,L,X,O);case 5:return Mh6(A,L,X,O);case 9:return $On(A,L,X,O);case 6:return aK3(A,L,X,O);case 25:return kAJ(A,L,X,O);case 1:return _.i1(A[0],qBc,26)?UOc(A,L,X,O):He3(A,L,X,O);default:return{}}},aK3=function(A,L,O,X){A=A.map(function(x){return{id:x.getId().getId(),
serviceId:"youtube",name:x.getName(),description:_.mT(x,3),type:IL(x),lastEditedUtc:_.SBV(_.ET(x,_.jE,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:x.getUrl(),embedUrl:_.mT(x,13),thumbnails:yv(Pb(x))}});
return{action:L,docs:A,viewToken:X,view:O||"youtube",v2Translated:!0}},BNj=function(A,L,O,X){var x=A.map(function(J){var Y=J.getId().getId(),T=_.mT(J,7),V=J.getName(),E=IL(J),n=_.SBV(_.ET(J,_.jE,12)).getTime(),t=J.getUrl(),b=Number(Rrs(J)),S=_.mT(J,3),w=_.mT(J,11),l=yv(Pb(J));
var F=_.ET(J,d_,21);F=_.Fu(F,1);var R=_.ET(J,d_,21);R=_.mT(R,10);var y=_.mT(J,13);var M=_.ET(J,d_,21);M=_.Fu(M,9);var H=_.ET(J,d_,21);H=_.mT(H,11);Y={id:Y,serviceId:"docs",mimeType:T,name:V,type:E,lastEditedUtc:n,url:t,sizeBytes:b,description:S,iconUrl:w,thumbnails:l,isShared:F,downloadUrl:R,embedUrl:y,copyable:M,resourceKey:H};T=_.ET(J,d_,21);_.Fu(T,12)&&(Y.uploadState="success",Y.isNew=!0);T=_.ET(J,d_,21);_.i1(T,xF,3)&&(J=_.ET(J,d_,21),J=_.ET(J,xF,3),_.i1(J,OM,2)&&(T=Fq(J.getDuration().getSeconds()),
V=J.getDuration(),V=_.x8(V,2),Y.duration=T+V/1E9),Y.aspectRatio=J.getAspectRatio());return Y});
return{action:L,docs:x,viewToken:X,view:O||"all",extraUserInputs:o$3(A),v2Translated:!0}},Mh6=function(A,L,O,X){A=A.map(function(x){var J=_.ET(x,lDH,15);
J=_.ET(J,Xe,1);bg(x,10,Xe,J);return{id:x.getId().getId(),serviceId:"web",mimeType:_.mT(x,7),name:x.getName(),type:IL(x),url:x.getUrl(),description:_.mT(x,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:yv(Pb(x))}});
return{action:L,docs:A,viewToken:X,view:O||"image-search",v2Translated:!0}},$On=function(A,L,O,X){A=A.map(function(x){return{serviceId:"url",
name:Pb(x)[0].getUrl().split("/").pop(),type:IL(x),mimeType:_.mT(x,7),url:x.getUrl(),description:_.mT(x,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:yv(Pb(x))}});
return{action:L,docs:A,viewToken:X,view:O||"url",v2Translated:!0}},UOc=function(A,L,O,X){A=A.map(function(x){return{id:x.getId().getId(),
serviceId:"picasa",name:x.getName(),type:IL(x),description:_.mT(x,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:yv(Pb(x))}});
return{action:L,docs:A,viewToken:X,view:O||"webcam",v2Translated:!0}},He3=function(A,L,O,X){return{action:L,
docs:A.map(A4H),viewToken:X,view:Lgg(O||"upload",A),extraUserInputs:o$3(A),v2Translated:!0}},Lgg=function(A,L){return L.some(function(O){var X;
return((X=_.ET(O,sM,30))==null?void 0:_.IH(X,3))===9})?A+"/gmailphotos":A},W73=function(A,L,O,X){var x=A.map(function(J){var Y={id:J.getId().getId(),
serviceId:"picasa",mimeType:_.mT(J,7),name:J.getName(),type:IL(J),lastEditedUtc:_.SBV(_.ET(J,_.jE,12)).getTime(),url:J.getUrl(),sizeBytes:Number(Rrs(J)),description:_.mT(J,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:yv(Pb(J)),mediaKey:J.getId().getId(),parentId:_.mT(J,4)},T,V=(T=_.ET(J,pf6,18))==null?void 0:_.ET(T,wfV,3);V&&(Y.latitude=Qt(V,1),Y.longitude=Qt(V,2));var E;J=(E=_.ET(J,pf6,18))==null?void 0:RH(E,6);E=J!=null?Fq(J):void 0;E&&(Y.version=
E);return Y});
return{action:L,docs:x,viewToken:X,view:O||"photos",extraUserInputs:o$3(A),v2Translated:!0}},jZu=function(A,L,O,X){A=A.map(function(x){return{id:x.getId().getId(),
serviceId:"et",name:Pb(x)[0].getUrl().split("/").pop(),description:_.mT(x,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:yv(Pb(x),"etjpg")}});
return{action:L,docs:A,viewToken:X,view:O||"et",v2Translated:!0}},kAJ=function(A,L,O,X){A=A.map(function(x){var J=x.getId().getId(),Y=X["2"];
return{id:J,serviceId:Y.type!=="gmail_themes"&&Y.parent==="6226252643674576769"?"picasa":"static_themes",name:x.getName(),mimeType:_.mT(x,7),type:IL(x),description:_.mT(x,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:x.getUrl(),embedUrl:x.getUrl(),thumbnails:yv(Pb(x))}});
return{action:L,docs:A,viewToken:X,view:O||"photos",v2Translated:!0}},zn6=function(A,L){A=A.map(function(O){var X=_.ET(O,gW6,27);
X=_.jZ(X,1,_.Ez,_.Xq())[0];return{id:O.getId().getId(),serviceId:"contacts",mimeType:_.mT(O,7),name:O.getName(),description:_.mT(O,3),url:"mailto:"+X,thumbnail:[{url:_.mT(O,11)}],email:X}});
return{action:L,docs:A,view:"contacts",v2Translated:!0}},Zeg=function(A){if(!A)return{};
var L=_.mT(A,3);L=L&&JSON.parse(L)||{};return{0:_.mT(A,1),1:_.mT(A,2),2:L}},yv=function(A,L){L=L===void 0?"":L;
if(!A.length)return null;L=="etjpg"&&(A=A.filter(function(O){return O.getUrl().includes("w1200-h300")}));
return A.map(function(O){return{url:O.getUrl(),height:O.getHeight(),width:O.getWidth(),type:L}})},o$3=function(A){return{isAttachment:A.some(function(L){return _.Fu(L,31)})}},A4H=function(A){var L,O={id:(L=A.getId())==null?void 0:L.getId(),
serviceId:OHg(A),mimeType:_.mT(A,7),name:A.getName(),type:IL(A),sizeBytes:Number(Rrs(A)),description:_.mT(A,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:yv(Pb(A)),isNew:!0};if(L=_.ET(A,sM,30)){O.dataUrl=_.mT(L,1)||null;a:{var X=_.ET(A,sM,30);switch(_.IH(X,3)){case 9:X=_.WM(X,KJH,2,JQ);X={remoteRefs:X&&_.mT(X,1)};break a;case 10:case 15:X=_.WM(X,rEl,4,JQ);var x=Pb(A);X={photo_id:X&&_.mT(X,1),media_key:A.getId().getId(),media_type:_.IH(A,6)===1?1:2,image_url:x&&
x[0].getUrl(),width:x&&String(x[0].getWidth()),height:x&&String(x[0].getHeight())};break a}X=null}O.uploadMetadata=X;O.uploadId=_.mT(L,9)||null;O.uploadState=X1N(L)||null}(X=L&&_.WM(L,rEl,4,JQ))&&(O.id=_.mT(X,1));(X=L&&_.WM(L,G2N,5,JQ))&&(O.contentId=_.mT(X,1));(X=L&&_.WM(L,i_j,7,JQ))&&(O.contentId=_.mT(X,1));(X=L&&_.WM(L,Nwu,6,JQ))&&(O.contentId=_.mT(X,1));(L==null?void 0:_.IH(L,3))===1&&(O.mediaKey=A.getId().getId());return O},OHg=function(A){var L;
switch(((L=_.ET(A,sM,30))==null?void 0:_.IH(L,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},IL=function(A){switch(_.IH(A,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 _.mT(A,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},X1N=function(A){switch(A==null?void 0:_.IH(A,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 P8g,x6g,sNn,J4J;_.d6J=function(A,L){var O=L||{};L=O.document||document;var X=_.ww(A).toString(),x=(new C5(L)).createElement("SCRIPT"),J={script_:x,timeout_:void 0},Y=new Ln(x6g,J),T=null,V=O.timeout!=null?O.timeout:5E3;V>0&&(T=window.setTimeout(function(){sNn(x,!0);Y.errback(new J4J(1,"Timeout reached for loading script "+X))},V),J.timeout_=T);
x.onload=x.onreadystatechange=function(){x.readyState&&x.readyState!="loaded"&&x.readyState!="complete"||(sNn(x,O.cleanupWhenDone||!1,T),Y.callback(null))};
x.onerror=function(){sNn(x,!0,T);Y.errback(new J4J(0,"Error while loading script "+X))};
J=O.attributes||{};_.lW.extend(J,{type:"text/javascript",charset:"UTF-8"});VZc(x,J);_.UB(x,A);P8g(L).appendChild(x);return Y};
P8g=function(A){var L=SV("HEAD",A);return L&&L.length!==0?L[0]:A.documentElement};
x6g=function(){if(this&&this.script_){var A=this.script_;A&&A.tagName=="SCRIPT"&&sNn(A,!0,this.timeout_)}};
sNn=function(A,L,O){O!=null&&_.Ou.clearTimeout(O);A.onload=function(){};
A.onerror=function(){};
A.onreadystatechange=function(){};
L&&window.setTimeout(function(){_.hg(A)},0)};
J4J=function(A,L){var O="Jsloader error (code #"+A+")";L&&(O+=": "+L);_.As.call(this,O);this.code=A};
_.Ty(J4J,_.As);var Y$6=_.AW(["https://apis.google.com/js/api.js"]),uWJ=_.JD(Y$6),eZ6=function(A,L){var O=!1,X=TR6(A,L).then(function(J){O=!0;return J}),x=_.f4V(5E3).then(function(){return O?TR6(A,L):VYH(L).then(function(J){return D6H(J,A)})});
return imJ([X,x])},TR6=function(A,L){return EoN(L).then(function(O){return D6H(O,A)})},D6H=function(A,L){var O=_.su(L,"gapi.")?L.slice(5):L;
return A[O]?_.DQ(A[O]):new _.eJ(function(X,x){var J=Qe(function(){x(Error("Ya"))},3E4);
A.load(L,{callback:function(){_.Ou.clearTimeout(J);X(A[O])},
onerror:function(Y){_.Ou.clearTimeout(J);x(Y)}})})},EoN=function(A){return A.gapi&&A.gapi.load?_.DQ(A.gapi):VYH(A)},VYH=function(A){return _.d6J(uWJ,{document:A.document}).then(function(){return A.gapi})},noJ=function(){};
noJ.prototype.load=function(A,L){L=L===void 0?window:L;var O=Date.now();return eZ6(A,L).then(function(X){var x=Date.now();return{library:X,loadStartMs:O,loadEndMs:x}},function(X){throw X instanceof Error?X:Error(String(X));
})};var uWu=function(){_.p$.call(this);this.gapiLoader_=new noJ;this.origin_=null;this.gapiPickerIframeResolver_=_.AI();this.gapiIframesResolver_=_.AI();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.g(uWu,_.p$);var tYc=function(A,L){var O=_.WY("gapi.iframes",L);return O?(A=Date.now(),_.DQ({library:O,loadStartMs:A,loadEndMs:A})):A.gapiLoader_.load("gapi.iframes",L)},bHc=function(A,L,O,X,x,J){var Y=!1;
Y=Y===void 0?!1:Y;tYc(A,FT(L.ownerDocument)).then(function(T){var V=T.library;A.gapiIframesResolver_.resolve(V);T=A.gapiPickerIframeResolver_;var E=T.resolve,n=Y;n=n===void 0?!1:n;var t={};t["host-message-handler"]=O;A.hostMessageHandlerInternal_=t;var b=_.jV(X);b=_.jV(b);b=_.u5(_.YI(_.dr(new _.kO,b.scheme_),b.JSC$11053_domain_),b.JSC$11053_port_).toString();A.origin_=b;b=(new QOH).setUrl(X);b.JSC$11068_obj_.where=L;b.JSC$11068_obj_.allowPost=n;b.JSC$11068_obj_.messageHandlers=t;n=_.WY("makeWhiteListIframesFilter",
V)([A.origin_]);b.JSC$11068_obj_.messageHandlersFilter=n;x!=null&&(b.JSC$11068_obj_.id=x);J!=null&&(b.JSC$11068_obj_.rpctoken=J);n=Rf6(b);n.JSC$11065_obj_.style={display:"block","min-width":"100%",width:"1px"};n.setHeight("100%");Rf6(b).value().allow="camera 'src' "+A.origin_;V=V.getContext().openChild(b.value());E.call(T,V)},function(T){A.gapiIframesResolver_.reject(T);
A.gapiPickerIframeResolver_.reject(T)});
return A.gapiPickerIframeResolver_.promise},hZJ=function(A,L){return _.Fe([A.gapiIframesResolver_.promise,
A.gapiPickerIframeResolver_.promise]).then(function(O){var X=_.d(O);O=X.next().value;return(X=X.next().value)?X.send("picker-message-handler",L,void 0,_.WY("makeWhiteListIframesFilter",O)([A.origin_])):_.Ry(Error("Za"))})};
uWu.prototype.disposeInternal=function(){S$L(this);_.p$.prototype.disposeInternal.call(this)};
var S$L=function(A){A.gapiPickerIframeResolver_.promise.then(function(L){L&&(L.unregister("host-message-handler"),delete A.hostMessageHandlerInternal_["host-message-handler"])})};var q$V=function(){this.JSC$11155_nextId=0};var w1l=function(A,L){switch(A.action){case "select-contacts":A=goL(A.contacts);break;case "visibility":A=A.visible;var O=new ub;A=_.zy(O,1,7).setVisible(A);O={};O["iframe-command"]=A.serialize();A=O;break;default:A=null}return A?hZJ(L,A):_.DQ()},goL=function(A){if(!A||A.length==0)return null;
var L=new ub;_.zy(L,1,11);var O=new q$V;A.forEach(function(X){if(X.email){var x=new cM;x=_.oG(x,2,X.name?X.name:X.email);var J=new gW6;X=_.Q7e(J,1,_.Tn,X.email,_.Ez);X=_.eg(x,27,X);x=new h3u;J=":"+(O.JSC$11155_nextId++).toString(36);x=_.oG(x,1,J);x=_.zy(x,2,12);X=_.eg(X,1,x)}else X=null;X&&bg(L,7,cM,X)});
A={};A["iframe-command"]=L.serialize();return A};_.p1N=function(){if(apr){var A=/Windows NT ([0-9.]+)/;return(A=A.exec(_.n9()))?A[1]:"0"}return _.$sd?(A=/1[0|1][_.][0-9_.]+/,(A=A.exec(_.n9()))?A[0].replace(/_/g,"."):"10"):A_u?(A=/Android\s+([^\);]+)(\)|;)/,(A=A.exec(_.n9()))?A[1]:""):UsM||vY_||oYP?(A=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(A=A.exec(_.n9()))?A[1].replace(/_/g,"."):""):""}();var ZP;ZP=function(A){return(A=A.exec(_.n9()))?A[1]:""};
_.iHc=function(){if(_.hW)return ZP(/Firefox\/([0-9.]+)/);if(_.Ei||Ut||z8e)return JqJ;if(_.SX){if(_.lr()||_.tDP()){var A=ZP(/CriOS\/([0-9.]+)/);if(A)return A}return ZP(/Chrome\/([0-9.]+)/)}if(_.fe&&!_.lr())return ZP(/Version\/([0-9.]+)/);if(qey||gBu){if(A=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.n9()))return A[1]+"."+A[2]}else if(THe)return(A=ZP(/Android\s+([0-9.]+)/))?A:ZP(/Version\/([0-9.]+)/);return""}();var NRN=function(){};
_.Yz(NRN);NRN.prototype.nextId_=0;_.jr=function(A){return":"+(A.nextId_++).toString(36)};var W9=function(A){_.lb.call(this);this.JSC$11163_dom_=A||qF();this.JSC$11163_id_=null;this.inDocument_=!1;this.JSC$11163_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.Ty(W9,_.lb);W9.prototype.idGenerator_=NRN.getInstance();W9.prototype.getId=function(){return this.JSC$11163_id_||(this.JSC$11163_id_=_.jr(this.idGenerator_))};
W9.prototype.getElement=function(){return this.JSC$11163_element_};
var H9=function(A){A.googUiComponentHandler_||(A.googUiComponentHandler_=new _.sI(A));return A.googUiComponentHandler_},r4V=function(A,L){if(A==L)throw Error("$a");
var O;if(O=L&&A.parent_&&A.JSC$11163_id_){O=A.parent_;var X=A.JSC$11163_id_;O=O.childIndex_&&X?_.lW.get(O.childIndex_,X)||null:null}if(O&&A.parent_!=L)throw Error("$a");A.parent_=L;W9.superClass_.setParentEventTarget.call(A,L)};
W9.prototype.getParent=function(){return this.parent_};
W9.prototype.setParentEventTarget=function(A){if(this.parent_&&this.parent_!=A)throw Error("ab");W9.superClass_.setParentEventTarget.call(this,A)};
W9.prototype.JSC$11165_createDom=function(){this.JSC$11163_element_=this.JSC$11163_dom_.createElement("DIV")};
W9.prototype.render=function(A){KgH(this,A)};
var KgH=function(A,L,O){if(A.inDocument_)throw Error("bb");A.JSC$11163_element_||A.JSC$11165_createDom();L?L.insertBefore(A.JSC$11163_element_,O||null):A.JSC$11163_dom_.JSC$10345_document_.body.appendChild(A.JSC$11163_element_);A.parent_&&!A.parent_.inDocument_||A.enterDocument()};
_.P=W9.prototype;_.P.decorate=function(A){if(this.inDocument_)throw Error("bb");if(A&&this.canDecorate(A)){this.wasDecorated_=!0;var L=_.Ro(A);this.JSC$11163_dom_&&this.JSC$11163_dom_.JSC$10345_document_==L||(this.JSC$11163_dom_=qF(A));this.decorateInternal(A);this.enterDocument()}else throw Error("cb");};
_.P.canDecorate=function(){return!0};
_.P.decorateInternal=function(A){this.JSC$11163_element_=A};
_.P.enterDocument=function(){this.inDocument_=!0;GYN(this,function(A){!A.inDocument_&&A.getElement()&&A.enterDocument()})};
_.P.exitDocument=function(){GYN(this,function(A){A.inDocument_&&A.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.P.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);GYN(this,function(A){A.dispose()});
!this.wasDecorated_&&this.JSC$11163_element_&&_.hg(this.JSC$11163_element_);this.parent_=this.model_=this.JSC$11163_element_=this.childIndex_=this.children_=null;W9.superClass_.disposeInternal.call(this)};
_.P.getModel=function(){return this.model_};
_.P.addChild=function(A,L){var O=this.children_?this.children_.length:0;if(A.inDocument_&&(L||!this.inDocument_))throw Error("bb");if(O<0||O>(this.children_?this.children_.length:0))throw Error("db");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);A.getParent()==this?(_.lW.set(this.childIndex_,A.getId(),A),_.y_(this.children_,A)):_.lW.add(this.childIndex_,A.getId(),A);r4V(A,this);_.i9r(this.children_,O,0,A);A.inDocument_&&this.inDocument_&&A.getParent()==this?(L=this.getContentElement(),
(L.childNodes[O]||null)!=A.getElement()&&(A.getElement().parentElement==L&&L.removeChild(A.getElement()),O=L.childNodes[O]||null,L.insertBefore(A.getElement(),O))):L?(this.JSC$11163_element_||this.JSC$11165_createDom(),O=this.children_?this.children_[O+1]||null:null,KgH(A,this.getContentElement(),O?O.JSC$11163_element_:null)):this.inDocument_&&!A.inDocument_&&A.JSC$11163_element_&&A.JSC$11163_element_.parentNode&&A.JSC$11163_element_.parentNode.nodeType==1&&A.enterDocument()};
_.P.getContentElement=function(){return this.JSC$11163_element_};
var GYN=function(A,L){A.children_&&A.children_.forEach(L,void 0)};
W9.prototype.removeChild=function(A,L){if(A){var O=typeof A==="string"?A:A.getId();A=this.childIndex_&&O?_.lW.get(this.childIndex_,O)||null:null;O&&A&&(_.lW.remove(this.childIndex_,O),_.y_(this.children_,A),L&&(A.exitDocument(),A.JSC$11163_element_&&_.hg(A.JSC$11163_element_)),r4V(A,null))}if(!A)throw Error("eb");return A};_.Ty(Lgu,A4r);_.Ty(OHu,A4r);var lcJ;_.lW.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var c43=function(A,L){L?A.setAttribute("role",L):A.removeAttribute("role")},z7=function(A,L,O){Array.isArray(O)&&(O=O.join(" "));
var X="aria-"+L;O===""||O==void 0?(lcJ||(O={},lcJ=(O.atomic=!1,O.autocomplete="none",O.dropeffect="none",O.haspopup=!1,O.live="off",O.multiline=!1,O.multiselectable=!1,O.orientation="vertical",O.readonly=!1,O.relevant="additions text",O.required=!1,O.sort="none",O.busy=!1,O.disabled=!1,O.hidden=!1,O.invalid="false",O)),O=lcJ,L in O?A.setAttribute(X,O[L]):A.removeAttribute(X)):A.setAttribute(X,O)};var C8j;_.B9=function(A,L,O){_.lb.call(this);this.target=A;this.handle=L||A;this.limits=O||new H6(NaN,NaN,NaN,NaN);this.JSC$11168_document_=_.Ro(A);this.JSC$11168_eventHandler_=new _.sI(this);_.VI(this,this.JSC$11168_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;_.CT(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=C8j};
_.Ty(_.B9,_.lb);C8j=_.Ou.document&&_.Ou.document.documentElement&&!!_.Ou.document.documentElement.setCapture&&!!_.Ou.document.releaseCapture;_.Fgj=function(A,L){A.hysteresisDistanceSquared_=Math.pow(L,2)};
_.P=_.B9.prototype;_.P.setEnabled=function(A){this.enabled_=A};
_.P.disposeInternal=function(){_.B9.superClass_.disposeInternal.call(this);_.GI(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$11168_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$11168_document_.releaseCapture();this.handle=this.target=null};
_.P.startDrag=function(A){var L=A.type=="mousedown";if(!this.enabled_||this.dragging_||L&&(A.event_.button!=0||_.$sd&&A.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new MI("start",this,A.clientX,A.clientY,A)))this.dragging_=!0,L&&A.preventDefault();else return;else L&&A.preventDefault();L=this.JSC$11168_document_;var O=L.documentElement,X=!this.useSetCapture_;this.JSC$11168_eventHandler_.listen(L,["touchmove","mousemove"],this.handleMove_,
{capture:X,passive:!1});this.JSC$11168_eventHandler_.listen(L,["touchend","mouseup"],this.endDrag,X);this.useSetCapture_?(O.setCapture(!1),this.JSC$11168_eventHandler_.listen(O,"losecapture",this.endDrag)):this.JSC$11168_eventHandler_.listen(FT(L),"blur",this.endDrag);this.scrollTarget_&&this.JSC$11168_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,X);this.clientX=this.startX=A.clientX;this.clientY=this.startY=A.clientY;this.screenX=A.screenX;this.screenY=A.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=Sx(qF(this.JSC$11168_document_))}};
_.P.endDrag=function(A,L){this.JSC$11168_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$11168_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new MI("end",this,A.clientX,A.clientY,A,RZL(this,this.deltaX),QN6(this,this.deltaY),L||A.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.P.handleMove_=function(A){if(this.enabled_){var L=A.clientX-this.clientX,O=A.clientY-this.clientY;this.clientX=A.clientX;this.clientY=A.clientY;this.screenX=A.screenX;this.screenY=A.screenY;if(!this.dragging_){var X=this.startX-this.clientX,x=this.startY-this.clientY;if(X*X+x*x>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new MI("start",this,A.clientX,A.clientY,A)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(A);return}}O=m6g(this,L,O);L=O.x;O=O.y;this.dragging_&&this.dispatchEvent(new MI("beforedrag",
this,A.clientX,A.clientY,A,L,O))&&(fc6(this,A,L,O),A.preventDefault())}};
var m6g=function(A,L,O){var X=Sx(qF(A.JSC$11168_document_));L+=X.x-A.pageScroll.x;O+=X.y-A.pageScroll.y;A.pageScroll=X;A.deltaX+=L;A.deltaY+=O;return new _.Cm(RZL(A,A.deltaX),QN6(A,A.deltaY))};
_.B9.prototype.onScroll_=function(A){var L=m6g(this,0,0);A.clientX=this.clientX;A.clientY=this.clientY;fc6(this,A,L.x,L.y)};
var fc6=function(A,L,O,X){A.target.style.left=O+"px";A.target.style.top=X+"px";A.dispatchEvent(new MI("drag",A,L.clientX,L.clientY,L,O,X))},RZL=function(A,L){var O=A.limits;
A=isNaN(O.left)?null:O.left;O=isNaN(O.width)?0:O.width;return Math.min(A!=null?A+O:Infinity,Math.max(A!=null?A:-Infinity,L))},QN6=function(A,L){var O=A.limits;
A=isNaN(O.top)?null:O.top;O=isNaN(O.height)?0:O.height;return Math.min(A!=null?A+O:Infinity,Math.max(A!=null?A:-Infinity,L))};
_.B9.prototype.isDragging=function(){return this.dragging_};
var MI=function(A,L,O,X,x,J,Y){_.ib.call(this,A);this.clientX=O;this.clientY=X;this.browserEvent=x;this.left=J!==void 0?J:L.deltaX;this.top=Y!==void 0?Y:L.deltaY};
_.Ty(MI,_.ib);var $I=function(A){this.JSC$11175_map_=new Map;var L=arguments.length;if(L>1){if(L%2)throw Error("ka");for(var O=0;O<L;O+=2)this.set(arguments[O],arguments[O+1])}else A&&this.addAll(A)};
_.P=$I.prototype;_.P.getCount=function(){return this.JSC$11175_map_.size};
_.P.getValues=function(){return Array.from(this.JSC$11175_map_.values())};
_.P.getKeys=function(){return Array.from(this.JSC$11175_map_.keys())};
_.P.containsKey=function(A){return this.JSC$11175_map_.has(A)};
_.P.containsValue=function(A){return this.getValues().some(function(L){return L==A})};
_.P.equals=function(A,L){var O=this;L=L===void 0?function(X,x){return X===x}:L;
return this===A?!0:this.JSC$11175_map_.size!=A.getCount()?!1:this.getKeys().every(function(X){return L(O.JSC$11175_map_.get(X),A.get(X))})};
_.P.isEmpty=function(){return this.JSC$11175_map_.size==0};
_.P.clear=function(){this.JSC$11175_map_.clear()};
_.P.remove=function(A){return this.JSC$11175_map_.delete(A)};
_.P.get=function(A,L){return this.JSC$11175_map_.has(A)?this.JSC$11175_map_.get(A):L};
_.P.set=function(A,L){this.JSC$11175_map_.set(A,L);return this};
_.P.addAll=function(A){if(A instanceof $I){A=_.d(A.JSC$11175_map_);for(var L=A.next();!L.done;L=A.next()){var O=_.d(L.value);L=O.next().value;O=O.next().value;this.JSC$11175_map_.set(L,O)}}else if(A)for(A=_.d(Object.entries(A)),L=A.next();!L.done;L=A.next())O=_.d(L.value),L=O.next().value,O=O.next().value,this.JSC$11175_map_.set(L,O)};
_.P.forEach=function(A,L){var O=this;L=L===void 0?this:L;this.JSC$11175_map_.forEach(function(X,x){return A.call(L,X,x,O)})};
_.P.clone=function(){return new $I(this)};(function(){for(var A=["ms","moz","webkit","o"],L,O=0;L=A[O]&&!_.Ou.requestAnimationFrame;++O)_.Ou.requestAnimationFrame=_.Ou[L+"RequestAnimationFrame"],_.Ou.cancelAnimationFrame=_.Ou[L+"CancelAnimationFrame"]||_.Ou[L+"CancelRequestAnimationFrame"];if(!_.Ou.requestAnimationFrame){var X=0;_.Ou.requestAnimationFrame=function(x){var J=(new Date).getTime(),Y=Math.max(0,16-(J-X));X=J+Y;return _.Ou.setTimeout(function(){x(J+Y)},Y)};
_.Ou.cancelAnimationFrame||(_.Ou.cancelAnimationFrame=function(x){clearTimeout(x)})}})();
var Icc=[[],[]],y4V=0,ZHj=!1,jNu=0,HHj=function(A,L){var O=jNu++,X={measureTask:{id:O,fn:A.measure,context:L},mutateTask:{id:O,fn:A.mutate,context:L},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(X.args||(X.args=[]),X.args.length=0,X.args.push.apply(X.args,arguments),X.args.push(X.state)):X.args&&X.args.length!=0?(X.args[0]=X.state,X.args.length=1):X.args=[X.state];X.isScheduled||(X.isScheduled=!0,Icc[y4V].push(X));ZHj||(ZHj=!0,window.requestAnimationFrame(WgV))}},WgV=
function(){ZHj=!1;
var A=Icc[y4V],L=A.length;y4V=(y4V+1)%2;for(var O,X=0;X<L;++X){O=A[X];var x=O.measureTask;O.isScheduled=!1;x.fn&&x.fn.apply(x.context,O.args)}for(X=0;X<L;++X)O=A[X],x=O.mutateTask,O.isScheduled=!1,x.fn&&x.fn.apply(x.context,O.args),O.state={};A.length=0};var zZu=_.AW(["about:blank"]),BRN=_.AW(["javascript:undefined"]),MY7=_.JD(zZu);_.ww(MY7);var $6L=_.JD(BRN);_.ww($6L);var aL=function(A){_.lb.call(this);this.JSC$11181_element_=A;this.listenKeyIn_=_.CT(this.JSC$11181_element_,"focus",this,!0);this.listenKeyOut_=_.CT(this.JSC$11181_element_,"blur",this,!0)};
_.Ty(aL,_.lb);aL.prototype.handleEvent=function(A){var L=new _.NJ(A.event_);L.type=A.type=="focusin"||A.type=="focus"?"focusin":"focusout";this.dispatchEvent(L)};
aL.prototype.disposeInternal=function(){aL.superClass_.disposeInternal.call(this);Gi(this.listenKeyIn_);Gi(this.listenKeyOut_);delete this.JSC$11181_element_};var ac6=function(A,L){this.JSC$11184_element_=A;this.JSC$11184_dom_=L};var kI=function(A,L){W9.call(this,L);this.useIframeMask_=!!A;this.lastFocus_=null;this.resizeBackgroundTask_=HHj({mutate:this.resizeBackground_},this);HHj({mutate:this.updateModalAndBackground_},this)};
_.Ty(kI,W9);_.P=kI.prototype;_.P.focusHandler_=null;_.P.visible_=!1;_.P.bgEl_=null;_.P.bgIframeEl_=null;_.P.tabCatcherElement_=null;_.P.backwardTabWrapInProgress_=!1;_.P.getCssClass=function(){return"goog-modalpopup"};
_.P.getBackgroundElement=function(){return this.bgEl_};
_.P.JSC$11165_createDom=function(){kI.superClass_.JSC$11165_createDom.call(this);var A=this.getElement(),L=De(this.getCssClass()).split(" ");o$(A,L);A.tabIndex=0;_.zX(A,!1);kYu(this);U66(this)};
var kYu=function(A){if(A.useIframeMask_&&!A.bgIframeEl_){var L=A.JSC$11163_dom_.JSC$10347_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.Hf(L,MY7);A.bgIframeEl_=L;A.bgIframeEl_.className=A.getCssClass()+"-bg";_.zX(A.bgIframeEl_,!1);j7u(A.bgIframeEl_,0)}A.bgEl_||(A.bgEl_=A.JSC$11163_dom_.JSC$10347_createDom("DIV",A.getCssClass()+"-bg"),_.zX(A.bgEl_,!1))},U66=function(A){A.tabCatcherElement_||(A.tabCatcherElement_=A.JSC$11163_dom_.createElement("SPAN"),_.zX(A.tabCatcherElement_,
!1),A.tabCatcherElement_.tabIndex=0,A.tabCatcherElement_.style.position="absolute")};
_.P=kI.prototype;_.P.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.P.canDecorate=function(A){return!!A&&A.tagName=="DIV"};
_.P.decorateInternal=function(A){kI.superClass_.decorateInternal.call(this,A);A=De(this.getCssClass()).split(" ");o$(this.getElement(),A);kYu(this);U66(this);this.getElement().tabIndex=0;_.zX(this.getElement(),!1)};
_.P.enterDocument=function(){this.bgIframeEl_&&_.y5(this.bgIframeEl_,this.getElement());_.y5(this.bgEl_,this.getElement());kI.superClass_.enterDocument.call(this);_.ZV(this.tabCatcherElement_,this.getElement());this.focusHandler_=new aL(this.JSC$11163_dom_.JSC$10345_document_);H9(this).listen(this.focusHandler_,"focusin",this.onFocus);vou(this,!1)};
_.P.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.oo(this.focusHandler_);kI.superClass_.exitDocument.call(this);_.hg(this.bgIframeEl_);_.hg(this.bgEl_);_.hg(this.tabCatcherElement_)};
_.P.setVisible=function(A){if(A!=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_&&vou(this,A),A){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$11163_dom_.JSC$10345_document_.activeElement}catch(x){}this.updateModalAndBackground_();H9(this).listen(this.JSC$11163_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$11163_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);ooH(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)KT(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){H9(this).unlisten(this.JSC$11163_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$11163_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)KT(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var L=this.JSC$11163_dom_,O=L.JSC$10345_document_.body,X=L.JSC$10345_document_.activeElement||O;if(!this.lastFocus_||this.lastFocus_==O){this.lastFocus_=null;break a}(X==O||L.contains(this.getElement(),X))&&this.lastFocus_.focus()}catch(x){}this.lastFocus_=
null}}};
var vou=function(A,L){A.modalAriaVisibilityHelper_||(A.modalAriaVisibilityHelper_=new ac6(A.JSC$11163_element_,A.JSC$11163_dom_));A=A.modalAriaVisibilityHelper_;if(L){A.hiddenElements_||(A.hiddenElements_=[]);L=A.JSC$11184_dom_.getChildren(A.JSC$11184_dom_.JSC$10345_document_.body);for(var O=0;O<L.length;O++){var X=L[O],x;if(x=X!=A.JSC$11184_element_)x=X.getAttribute("aria-hidden"),x=!(x==null||x==void 0?0:String(x));x&&(z7(X,"hidden",!0),A.hiddenElements_.push(X))}}else if(A.hiddenElements_){for(L=
0;L<A.hiddenElements_.length;L++)A.hiddenElements_[L].removeAttribute("aria-hidden");A.hiddenElements_=null}};
kI.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var ooH=function(A,L){A.bgIframeEl_&&_.zX(A.bgIframeEl_,L);A.bgEl_&&_.zX(A.bgEl_,L);_.zX(A.getElement(),L);_.zX(A.tabCatcherElement_,L)};
_.P=kI.prototype;_.P.onShow=function(){this.dispatchEvent("show")};
_.P.onHide=function(){ooH(this,!1);this.dispatchEvent("hide")};
_.P.isVisible=function(){return this.visible_};
_.P.focus=function(){this.focusElement_()};
_.P.resizeBackground_=function(){this.bgIframeEl_&&_.zX(this.bgIframeEl_,!1);this.bgEl_&&_.zX(this.bgEl_,!1);var A=this.JSC$11163_dom_.JSC$10345_document_;var L=_.hD(FT(this.JSC$11163_dom_.JSC$10345_document_)||window);var O=Math.max(L.width,Math.max(A.body.scrollWidth,A.documentElement.scrollWidth));A=Math.max(L.height,Math.max(A.body.scrollHeight,A.documentElement.scrollHeight));this.bgIframeEl_&&(_.zX(this.bgIframeEl_,!0),_.fSN(this.bgIframeEl_,O,A));this.bgEl_&&(_.zX(this.bgEl_,!0),_.fSN(this.bgEl_,
O,A))};
_.P.reposition=function(){var A;if(_.mQl(this.getElement())=="fixed")var L=A=0;else L=Sx(this.JSC$11163_dom_),A=L.x,L=L.y;var O=ykJ(this.getElement());var X=_.hD(FT(this.JSC$11163_dom_.JSC$10345_document_)||window);A=Math.max(A+X.width/2-O.width/2,0);L=Math.max(L+X.height/2-O.height/2,0);MS(this.getElement(),A,L);MS(this.tabCatcherElement_,A,L)};
_.P.onFocus=function(A){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():A.target==this.tabCatcherElement_&&Qe(this.focusElement_,0,this)};
_.P.focusElement_=function(){try{this.getElement().focus()}catch(A){}};
_.P.disposeInternal=function(){_.oo(this.popupShowTransition_);this.popupShowTransition_=null;_.oo(this.popupHideTransition_);this.popupHideTransition_=null;_.oo(this.bgShowTransition_);this.bgShowTransition_=null;_.oo(this.bgHideTransition_);this.bgHideTransition_=null;kI.superClass_.disposeInternal.call(this)};var Rn=function(A,L,O){kI.call(this,L,O);this.JSC$11194_class_=A||"modal-dialog";this.buttons_=(new U1).addButton(Ayn,!0).addButton(LxN,!1,!0)};
_.Ty(Rn,kI);_.P=Rn.prototype;_.P.escapeToCancel_=!0;_.P.hasTitleCloseButton_=!0;_.P.modal_=!0;_.P.draggable_=!0;_.P.backgroundElementOpacity_=.5;_.P.title_="";_.P.JSC$11196_dragger_=null;_.P.JSC$11196_disposeOnHide_=!1;_.P.titleEl_=null;_.P.titleTextEl_=null;_.P.titleTextId_=null;_.P.titleCloseEl_=null;_.P.contentEl_=null;_.P.buttonEl_=null;_.P.getCssClass=function(){return this.JSC$11194_class_};
_.P.setTitle=function(A){this.title_=A;this.titleTextEl_&&_.W6(this.titleTextEl_,A)};
_.P.getTitle=function(){return this.title_};
_.P.getContent=function(){return""};
_.P.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var O7N=function(A){A.getElement()||A.render();return A.getElement()};
Rn.prototype.getBackgroundElement=function(){this.getElement()||this.render();return Rn.superClass_.getBackgroundElement.call(this)};
var Xhl=function(A,L){A.backgroundElementOpacity_=L;A.getElement()&&(L=A.getBackgroundElement())&&j7u(L,A.backgroundElementOpacity_)};
Rn.prototype.setDraggable=function(A){this.draggable_=A;xdL(this,A&&this.inDocument_)};
Rn.prototype.JSC$11196_handleDrag=function(){};
var xdL=function(A,L){var O=De(A.JSC$11194_class_+"-title-draggable").split(" ");A.getElement()&&(L?o$(A.titleEl_,O):lW6(A.titleEl_,O));L&&!A.JSC$11196_dragger_?(L=new _.B9(A.getElement(),A.titleEl_),A.JSC$11196_dragger_=L,o$(A.titleEl_,O),_.CT(A.JSC$11196_dragger_,"start",A.setDraggerLimits_,!1,A),_.CT(A.JSC$11196_dragger_,"drag",A.JSC$11196_handleDrag,!1,A)):!L&&A.JSC$11196_dragger_&&(A.JSC$11196_dragger_.dispose(),A.JSC$11196_dragger_=null)};
_.P=Rn.prototype;
_.P.JSC$11165_createDom=function(){Rn.superClass_.JSC$11165_createDom.call(this);var A=this.getElement(),L=this.JSC$11163_dom_;this.titleTextId_=this.getId();var O=this.getId()+".contentEl";this.titleEl_=L.JSC$10347_createDom("DIV",this.JSC$11194_class_+"-title",this.titleTextEl_=L.JSC$10347_createDom("SPAN",{className:this.JSC$11194_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=L.JSC$10347_createDom("SPAN",this.JSC$11194_class_+"-title-close"));tZ7(A,this.titleEl_,this.contentEl_=
L.JSC$10347_createDom("DIV",{className:this.JSC$11194_class_+"-content",id:O}),this.buttonEl_=L.JSC$10347_createDom("DIV",this.JSC$11194_class_+"-buttons"));c43(this.titleTextEl_,"heading");c43(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;z7(this.titleCloseEl_,"label","Close");c43(A,"dialog");z7(A,"labelledby",this.titleTextId_||"");_.zX(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(A=this.buttons_,A.JSC$11197_element_=this.buttonEl_,A.render());_.zX(this.buttonEl_,!!this.buttons_);
Xhl(this,this.backgroundElementOpacity_)};
_.P.decorateInternal=function(A){Rn.superClass_.decorateInternal.call(this,A);A=this.getElement();var L=this.JSC$11194_class_+"-content";this.contentEl_=F4(document,null,L,A)[0];this.contentEl_||(this.contentEl_=this.JSC$11163_dom_.JSC$10347_createDom("DIV",L),A.appendChild(this.contentEl_));L=this.JSC$11194_class_+"-title";var O=this.JSC$11194_class_+"-title-text",X=this.JSC$11194_class_+"-title-close";(this.titleEl_=F4(document,null,L,A)[0])?(this.titleTextEl_=F4(document,null,O,this.titleEl_)[0],
this.titleCloseEl_=F4(document,null,X,this.titleEl_)[0]):(this.titleEl_=this.JSC$11163_dom_.JSC$10347_createDom("DIV",L),A.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=cku(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.Q5("SPAN",{className:O,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;z7(A,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$11163_dom_.JSC$10347_createDom("SPAN",X),this.titleEl_.appendChild(this.titleCloseEl_));_.zX(this.titleCloseEl_,this.hasTitleCloseButton_);L=this.JSC$11194_class_+"-buttons";(this.buttonEl_=F4(document,null,L,A)[0])?(this.buttons_=new U1(this.JSC$11163_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$11163_dom_.JSC$10347_createDom("DIV",L),A.appendChild(this.buttonEl_),this.buttons_&&(A=this.buttons_,A.JSC$11197_element_=this.buttonEl_,A.render()),_.zX(this.buttonEl_,
!!this.buttons_));Xhl(this,this.backgroundElementOpacity_)};
_.P.enterDocument=function(){Rn.superClass_.enterDocument.call(this);H9(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);H9(this).listen(this.buttonEl_,"click",this.onButtonClick_);xdL(this,this.draggable_);H9(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var A=this.getElement();c43(A,"dialog");this.titleTextEl_.id!==""&&z7(A,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){A=this.JSC$11163_dom_;
var L=this.getBackgroundElement();A.removeNode(this.bgIframeEl_);A.removeNode(L)}this.isVisible()&&vou(this,!1)}};
_.P.exitDocument=function(){this.isVisible()&&this.setVisible(!1);xdL(this,!1);Rn.superClass_.exitDocument.call(this)};
_.P.setVisible=function(A){A!=this.isVisible()&&(this.inDocument_||this.render(),Rn.superClass_.setVisible.call(this,A))};
_.P.onShow=function(){Rn.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.P.onHide=function(){Rn.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$11196_disposeOnHide_&&this.dispose()};
_.P.setDraggerLimits_=function(){var A=this.JSC$11163_dom_.JSC$10345_document_,L=_.hD(FT(A)||window),O=Math.max(A.body.scrollWidth,L.width);A=Math.max(A.body.scrollHeight,L.height);var X=ykJ(this.getElement());_.mQl(this.getElement())=="fixed"?this.JSC$11196_dragger_.limits=new H6(0,0,Math.max(0,L.width-X.width),Math.max(0,L.height-X.height)):this.JSC$11196_dragger_.limits=new H6(0,0,O-X.width,A-X.height)};
_.P.onTitleCloseClick_=function(){svV(this)};
var svV=function(A){if(A.hasTitleCloseButton_){var L=A.buttons_,O=L&&L.cancelButton_;O?(L=L.get(O),A.dispatchEvent(new v9(O,L))&&A.setVisible(!1)):A.setVisible(!1)}},JyN=function(A){A.hasTitleCloseButton_=!1;
A.titleCloseEl_&&_.zX(A.titleCloseEl_,A.hasTitleCloseButton_)};
Rn.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;Rn.superClass_.disposeInternal.call(this)};
Rn.prototype.onButtonClick_=function(A){a:{for(A=A.target;A!=null&&A!=this.buttonEl_;){if(A.tagName=="BUTTON")break a;A=A.parentNode}A=null}if(A&&!A.disabled){A=A.name;var L=this.buttons_.get(A);this.dispatchEvent(new v9(A,L))&&this.setVisible(!1)}};
Rn.prototype.onKey_=function(A){var L=!1,O=!1,X=this.buttons_,x=A.target;if(A.type=="keydown")if(this.escapeToCancel_&&A.keyCode==27){var J=X&&X.cancelButton_;x=x.tagName=="SELECT"&&!x.disabled;J&&!x?(O=!0,L=X.get(J),L=this.dispatchEvent(new v9(J,L))):x||(L=!0)}else{if(A.keyCode==9&&A.shiftKey&&x==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(n){}Qe(this.resetBackwardTabWrap_,0,this)}}else if(A.keyCode==13){if(x.tagName=="BUTTON"&&!x.disabled)J=x.name;
else if(x==this.titleCloseEl_)svV(this);else if(X){var Y=X.defaultButton_,T;if(T=Y)a:{T=SV("BUTTON",X.JSC$11197_element_);for(var V,E=0;V=T[E];E++)if(V.name==Y||V.id==Y){T=V;break a}T=null}x=(x.tagName=="TEXTAREA"||x.tagName=="SELECT"||x.tagName=="A")&&!x.disabled;!T||T.disabled||x||(J=Y)}J&&X&&(O=!0,L=this.dispatchEvent(new v9(J,String(X.get(J)))))}else x!=this.titleCloseEl_||A.keyCode!=32&&A.key!=" "||svV(this);if(L||O)A.stopPropagation(),A.preventDefault();L&&this.setVisible(!1)};
var v9=function(A,L){this.type="dialogselect";this.key=A;this.caption=L};
_.Ty(v9,_.ib);var U1=function(A){$I.call(this);A||qF();this.cancelButton_=this.JSC$11197_element_=this.defaultButton_=null};
_.Ty(U1,$I);_.P=U1.prototype;_.P.clear=function(){$I.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.P.set=function(A,L,O,X){$I.prototype.set.call(this,A,L);O&&(this.defaultButton_=A);X&&(this.cancelButton_=A);return this};
_.P.addButton=function(A,L,O){return this.set(A.key,A.caption,L,O)};
_.P.render=function(){if(this.JSC$11197_element_){_.vf(this.JSC$11197_element_,eZ9);var A=qF(this.JSC$11197_element_);this.forEach(function(L,O){L=A.JSC$10347_createDom("BUTTON",{name:O},L);O==this.defaultButton_&&(L.className="goog-buttonset-default");this.JSC$11197_element_.appendChild(L)},this)}};
_.P.decorate=function(A){if(A&&A.nodeType==1){this.JSC$11197_element_=A;A=SV("BUTTON",this.JSC$11197_element_);for(var L,O,X,x=0;L=A[x];x++)if(O=L.name||L.id,X=cku(L)||L.value,O){var J=x==0;this.set(O,X,J,L.name=="cancel");J&&_.x4(L,"goog-buttonset-default")}}};
_.P.getElement=function(){return this.JSC$11197_element_};
var Ayn={key:"ok",caption:"OK"},LxN={key:"cancel",caption:"Cancel"},PgH={key:"yes",caption:"Yes"},ddl={key:"no",caption:"No"},YNn={key:"save",caption:"Save"},uJJ={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new U1).addButton(Ayn,!0,!0),(new U1).addButton(Ayn,!0).addButton(LxN,!1,!0),(new U1).addButton(PgH,!0).addButton(ddl,!1,!0),(new U1).addButton(PgH).addButton(ddl,!0).addButton(LxN,!1,!0),(new U1).addButton(uJJ).addButton(YNn).addButton(LxN,!0,!0));_.Ty(X1y,Rn);_.Ty(x6u,QI);var TTJ=_.AW(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),VJN=_.AW(["//apis.google.com/js/rpc.js"]),D6r=_.JD(TTJ),VYr=_.JD(VJN),J4u=null;var mK=function(A,L){_.lb.call(this);this.JSC$11206_element_=A;A=_.aN(this.JSC$11206_element_)?this.JSC$11206_element_:this.JSC$11206_element_?this.JSC$11206_element_.body:null;this.isRtl_=!!A&&_.W$u(A);this.listenKey_=_.CT(this.JSC$11206_element_,_.ns?"DOMMouseScroll":"mousewheel",this,L)};
_.Ty(mK,_.lb);mK.prototype.handleEvent=function(A){var L=0,O=0,X=A.event_;X.type=="mousewheel"?(A=Ddl(-X.wheelDelta),X.wheelDeltaX!==void 0?(L=Ddl(-X.wheelDeltaX),O=Ddl(-X.wheelDeltaY)):O=A):(A=X.detail,A>100?A=3:A<-100&&(A=-3),X.axis!==void 0&&X.axis===X.HORIZONTAL_AXIS?L=A:O=A);typeof this.maxDeltaX_==="number"&&(L=_.Z7(L,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(O=_.Z7(O,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(L=-L);L=new egN(A,X,L,O);this.dispatchEvent(L)};
var Ddl=function(A){return _.tW&&(_.$sd||klO)&&A%40!=0?A:A/40};
mK.prototype.disposeInternal=function(){mK.superClass_.disposeInternal.call(this);Gi(this.listenKey_);this.listenKey_=null};
var egN=function(A,L,O,X){_.NJ.call(this,L);this.type="mousewheel";this.detail=A;this.deltaX=O;this.deltaY=X};
_.Ty(egN,_.NJ);_.Pw=function(A){var L="instance_";if(A.instance_&&A.hasOwnProperty(L))return A.instance_;L=new A;return A.instance_=L};var TR9;var Ewj=_.AW(["https://about:blank"]),nwJ=_.AW(['javascript:""']),tJl=_.AW(["about:blank"]);_.Ty(Bq,X1y);_.P=Bq.prototype;_.P.JSC$11214_url_="";_.P.JSC$11214_iframe_=null;_.P.iframeLoaded_=!1;_.P.loadedFired_=!1;_.P.callback_=function(){};
_.P.enterDocument=function(){Bq.superClass_.enterDocument.call(this);Y$d(this.getBackgroundElement(),H9(this))};
_.P.render=function(A){var L=this;Bq.superClass_.render.call(this,A);this.useGapi_?tYc(this.iframeManager_,window).then(function(){return b7N(L)}).then(null,function(){L.callback_({action:"error"})}):hgl(this)};
var b7N=function(A){var L=A.JSC$11163_dom_.JSC$10347_createDom("div",["picker-dialog-content","picker-frame"]);_.zX(L,!1);A.getContentElement().appendChild(L);return bHc(A.iframeManager_,L,function(O){var X=m07(O["iframe-command"]);switch(X.getCommand()){case 1:O=A.callback_;X=_.ET(X,YF,2);var x="";switch(X.getStatus()){case 2:x="cancel";break;case 1:x="picked";break;case 3:x="error"}var J=_.OT(X,cM,2,_.Xq(SAe));X=J.length===0?{action:x}:v$L(J,x,_.ET(X,FJg,7));O.call(A,X);A.setVisible(!1);break;case 4:JyN(A);
A.callback_({action:"loaded"});break;case 7:case 8:O=A.callback_;a:{x=X.getCommand();J=_.ET(X,YF,2);switch(x){case 7:x="uploadScheduled";break;case 8:x="uploadStateChange";break;default:X={};break a}X=_.OT(J,cM,2,_.Xq(SAe));if(X.length===0)X={action:x};else{var Y=_.ET(J,FJg,7);J=Y&&_.mT(Y,1);Y=Zeg(Y);X=He3(X,x,J,Y)}}O.call(A,X)}},A.JSC$11214_url_,A.targetId_,A.rpcToken_).then(function(O){A.JSC$11214_iframe_=O.getIframeEl();
SNH(A);_.zX(A.JSC$11214_iframe_.parentElement,!0);_.x4(A.getElement(),"picker-dialog");qNn(A);return O})},hgl=function(A){A.JSC$11214_iframe_=A.JSC$11163_dom_.JSC$10347_createDom("IFRAME",{id:A.targetId_,
name:A.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.Hf(A.JSC$11214_iframe_,gw3(A));_.x4(A.getElement(),"picker-dialog");A.getContentElement().appendChild(A.JSC$11214_iframe_);H9(A).listen(A.JSC$11214_iframe_,"load",function(){return void SNH(A)});
A.JSC$11214_iframe_.src=A.JSC$11214_url_;qNn(A)},ph6=function(A){wh3(A,(0,_.is)(function(L){L.setAuthToken(this.targetId_,this.rpcToken_)},A))},qNn=function(A){var L=_.Wq(_.jV(A.JSC$11214_url_),"title");
L&&A.setTitle(L)},gw3=function(A){return _.ePy("Internet Explorer")>=7&&_.su(A.JSC$11214_url_,"https")?_.JD(Ewj):_.Ei?_.JD(nwJ):_.JD(tJl)},SNH=function(A){ph6(A);
A.iframeLoaded_=!0;A.JSC$11214_iframe_.tabIndex=0;A.isVisible()&&A.focus()};
Bq.prototype.handleKeydown_=function(A){A.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),A.stopPropagation(),A.preventDefault())};
var wh3=function(A,L){var O=A.JSC$11212_gadgetsDomHelper_;P8u(function(){L(O.getWindow().gadgets.rpc)},O)};
Bq.prototype.setUrl=function(A){A=_.Hq(new _.kO(A),"rpcService",this.targetId_);_.Hq(A,"rpctoken",this.rpcToken_);_.DP(A,"rpctoken="+this.rpcToken_);_.dr(A,"https");this.JSC$11214_url_=A.toString();this.JSC$11214_iframe_&&(this.JSC$11214_iframe_.src=this.JSC$11214_url_)};
var i76=function(A,L){A.callback_=L;wh3(A,(0,_.is)(function(O){O.register(this.targetId_,(0,_.is)(this.handlePickerAction_,this))},A))};
Bq.prototype.handlePickerAction_=function(A){var L=A.action;L=="loaded"&&(this.loadedFired_=!0,this.sendCommand(new OHu(this.isVisible())),NT6(this),JyN(this),H9(this).unlisten(this.JSC$11163_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$11214_iframe_.tabIndex=0);L!="picked"&&L!="cancel"||this.setVisible(!1);this.callback_(A)};
var NT6=function(A){A.JSC$11214_appId_&&A.sendCommand(new Lgu(A.JSC$11214_appId_,window.location.protocol+"//"+window.location.host))};
_.P=Bq.prototype;_.P.setRelayUrl=function(A){wh3(this,(0,_.is)(function(L){L.setRelayUrl(this.targetId_,A)},this))};
_.P.sendCommand=function(A){var L=this;this.useGapi_&&w1l(A,this.iframeManager_).then(null,function(){L.callback_({action:"error"})});
wh3(this,(0,_.is)(function(O){O.call(this.targetId_,"picker",null,A)},this))};
_.P.resizePicker_=function(){var A=FT(this.JSC$11163_dom_.JSC$10345_document_)||window;if(_.Wq(_.jV(this.JSC$11214_url_),"ignoreLimits")=="true")A=new _.bW(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.Wq(_.jV(this.JSC$11214_url_),"shadeDialog")=="true"){var L=O7N(this);L=HJn(L);var O=_.hD(A);A=O.width-80;O=O.height-40;L&&(A-=L.left?L.left:0,A-=L.right?L.right:0,O-=L.top?L.top:0,O-=L.bottom?L.bottom:0);A=new _.bW(A>0?A:0,O>0?O:0)}else(L=this.preferredDialogWidth_)?(L=Math.max(320,
Math.min(1051,L)),(O=this.preferredDialogHeight_)||(O=_.hD(A).height*.85),O=Math.max(480,Math.min(650,O))):(L=_.hD(A),O=L.width*.618,O=O<L.height?Math.round(Math.max(480,Math.min(650,O*.85))):Math.round(Math.max(480,Math.min(650,L.height*.85))),L=Math.round(O/.618)),A=_.hD(A),L=Math.min(L,Math.max(A.width,320)),O=Math.min(O,Math.max(A.height,480)),A=new _.bW(L,O);_.fSN(this.getContentElement(),A);this.reposition()};
_.P.reposition=function(){if(_.Wq(_.jV(this.JSC$11214_url_),"shadeDialog")=="true"){var A=ykJ(this.getElement()),L=_.hD(this.JSC$11163_dom_.getWindow());A=Math.floor(L.width/2-A.width/2);L=O7N(this);if(L=HJn(L)){var O=L.left?L.left:0;O+=L.right?L.right:0;A=Math.floor(A-O/2)}A=A>0?A:0;L=Sx(this.JSC$11163_dom_).y;MS(this.getElement(),A,L)}else Bq.superClass_.reposition.call(this)};
_.P.setVisible=function(A){if(A!=this.isVisible()&&this.autoSizeDialog_){var L=this.JSC$11163_dom_.getWindow();A?(this.resizePicker_(),H9(this).listen(L,"resize",this.resizePicker_),this.iframeLoaded_||H9(this).listen(L,"keydown",this.handleKeydown_)):(H9(this).unlisten(L,"resize",this.resizePicker_),this.iframeLoaded_||H9(this).unlisten(L,"keydown",this.handleKeydown_))}Bq.superClass_.setVisible.call(this,A);this.sendCommand(new OHu(A))};
_.P.focus=function(){Bq.superClass_.focus.call(this);if(this.JSC$11214_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$11214_iframe_.focus()}catch(A){}};var mu=function(A,L){L=L===void 0?Bq:L;QI.call(this,A);this.pickerConstructor=L;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(A=window.location.origin)||(A=window.location.protocol+"//"+window.location.host);A&&this.urlParamMap_.set("origin",A);this.postProcessors_=[]};
_.g(mu,x6u);mu.prototype.JSC$11219_disposeOnHide_=!1;
mu.prototype.build=function(){this.JSC$11120_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$11120_appId_);this.getRelayUrl()||this.setRelayUrl(_.T7(_.DP(_.Vv(_.jV(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("fb");var A=new this.pickerConstructor(ry6(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);A.JSC$11196_disposeOnHide_=this.JSC$11219_disposeOnHide_;
A.JSC$11214_appId_=this.JSC$11120_appId_;A.loadedFired_&&NT6(A);i76(A,this.callback_);return A};
var Kx3=function(A){A.urlParamMap_.set("multiselectEnabled","true");return A};
_.P=mu.prototype;_.P.getHeight=function(){return this.dialogHeight_};
_.P.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.P.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.P.getTitle=function(){return this.urlParamMap_.get("title")};
_.P.getWidth=function(){return this.dialogWidth_};
var Gun=function(A){A.JSC$11219_disposeOnHide_=void 0;return A};
mu.prototype.setRelayUrl=function(A){this.urlParamMap_.set("parent",A);return this};
var lzj=function(A,L){A.urlParamMap_.set("selectButtonLabel",L);return A};
mu.prototype.setSize=function(A,L){this.dialogWidth_=A;this.dialogHeight_=L;return this};
mu.prototype.setTitle=function(A){this.urlParamMap_.set("title",A);return this};
var ry6=function(A){A.postProcessors_.length&&A.urlParamMap_.set("pp",JSON.stringify(A.postProcessors_));A.urlParamMap_.set("nav",mO6(A.nav_));var L=new _.kO(A.getBaseUrl());A.urlParamMap_.forEach(function(O,X){_.Hq(L,X,O)});
return L};var FxN=function(A,L){A.name!==void 0?(this.name=A.name,this.code=cyn[A.name]):(this.code=A=A.code,this.name=Cg6(A));_.As.call(this,Acn("%s %s",this.name,L))};
_.Ty(FxN,_.As);var Cg6=function(A){var L=_.lW.findKey(cyn,function(O){return A==O});
if(L===void 0)throw Error("hb`"+A);return L},oL={},cyn=(oL.AbortError=3,oL.EncodingError=5,oL.InvalidModificationError=9,oL.InvalidStateError=7,oL.NotFoundError=1,oL.NotReadableError=4,oL.NoModificationAllowedError=6,oL.PathExistsError=12,oL.QuotaExceededError=10,oL.SecurityError=2,oL.SyntaxError=8,oL.TypeMismatchError=11,oL);var Rg3=function(A,L){_.ib.call(this,A.type,L);this.event_=A};
_.Ty(Rg3,_.ib);var Qvc=function(A,L,O){O===void 0&&(O=A.size);return A.slice?A.slice(L,O):null};var nou=new WeakMap,Eoy=function(A,L){A=[A];for(var O=L.length-1;O>=0;--O)A.push(typeof L[O],L[O]);return A.join("\v")};_.bHs(function(){if(!_.Ou.Blob)return!1;var A=new Uint8Array(100);try{var L=new Blob([A])}catch(O){return!1}return L.size!=100?!1:!0});
var mdg=_.bHs(function(){if(!_.Ou.Blob)return!1;var A=new Uint8Array(100);try{var L=new Blob([A])}catch(O){return!1}return Qvc(L,0,1)===null?!1:!0});_.Ou.U3bHHf!=null||(_.Ou.U3bHHf=0);_.Ou.U3bHHf++;_.fz6=new WeakMap;_.Izj=new WeakMap;var hZu={};var k8=void 0;var q$e=Symbol("pb");var RZp=on("WizInjectionContext_Dispatcher");var Os=Symbol("qb");var Es,qE;Es=function(){this.afterRenderCallbacks=null};
_.Mfy=Symbol("rb");qE=function(A){this.props=A;this.__unmounted=!1};
qE.prototype.didPatch=function(){};
qE.prototype.didMount=function(){};
qE.prototype.didUnmount=function(){};
qE.prototype.didUpdate=function(){};_.GYe=on("WizInjectionContext_RootElement");var c4D=on("WizInjectionContext_AppContext"),lcu=on("WizInjectionContext_ModelRootElement"),C8O=on("WizInjectionContext_RendererData"),FgO=on("WizInjectionContext_InjectingConstructor"),Kgr=on("WizInjectionContext_AsyncDeps"),QNd={};var jN_=!1;var BRy={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:jgp,enableLazyTsx:Wtu,enablePerformanceTiming:!1,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:ZUu,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var Lr=Object.assign({},{attributes:{},handleError:function(A){throw A;}},BRy);var yyH=Symbol("vb"),t0=Symbol("wb"),Qvs=Symbol("xb"),Fxe=Symbol("yb"),Wxp=FL(function(A){return O4(A)&&yyH in A});var oor=Symbol("zb"),Ar={},U6d=(Ar[oor]=!0,Ar.debugName="[component]",Ar.getComponentStack=function(){for(var A=[],L=this;L;)AyJ(L)&&A.push(L.debugName),L=L.parent;return A},Ar.registerSignal=function(){},Ar.registerEffect=function(){},Ar);var Xx=null,s4=!1,xdp=1,dF=Symbol("Ab"),eI={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1},
producerRecomputeValue:function(){},
consumerMarkedDirty:function(){},
consumerOnSignalRead:function(){}};var LD=Symbol("Bb"),Oa=Symbol("Cb"),Pu=Symbol("Db"),VJy=Object.assign({},eI,{value:LD,dirty:!0,error:null,equal:Lxy,kind:"computed",producerMustRecompute:function(A){return A.value===LD||A.value===Oa},
producerRecomputeValue:function(A){if(A.value===Oa)throw Error("Z");var L=A.value;A.value=Oa;var O=YNJ(A),X=!1;try{var x=A.computation();xN(null);X=L!==LD&&L!==Pu&&x!==Pu&&A.equal(L,x)}catch(J){x=Pu,A.error=J}finally{TTu(A,O)}X?A.value=L:(A.value=x,A.version++)}});var nwu=function(){throw Error();};var b7y=null,ege=Object.assign({},eI,{equal:Lxy,value:void 0,kind:"signal"});Object.assign({},eI,{value:LD,dirty:!0,error:null,equal:Lxy,kind:"linkedSignal",producerMustRecompute:function(A){return A.value===LD||A.value===Oa},
producerRecomputeValue:function(A){if(A.value===Oa)throw Error("Z");var L=A.value;A.value=Oa;var O=YNJ(A);try{var X=A.source();var x=A.computation(X,L===LD||L===Pu?void 0:{source:A.sourceValue,value:L});A.sourceValue=X}catch(J){x=Pu,A.error=J}finally{TTu(A,O)}L!==LD&&x!==Pu&&A.equal(L,x)?A.value=L:(A.value=x,A.version++)}});Object.assign({},eI,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(A){A.schedule!==null&&A.schedule(A.ref)},
hasRun:!1,cleanupFn:function(){}});var SNr=Symbol("Eb"),TV=Symbol("Fb");var VO=Array.isArray;var GuJ;var Z73={},cyJ=KxD(Object.assign({},{consumerAllowSignalWrites:!0},Z73)),t8=KxD(Object.assign({},{consumerAllowSignalWrites:!0},Z73));var bQ=0,h0=!1,X8=function(){this.queue=new Set};
X8.prototype.remove=function(A){this.queue.delete(A)};
X8.prototype.clear=function(){this.queue.clear()};
var jv7=function(){X8.apply(this,arguments)};
_.g(jv7,X8);jv7.prototype.schedule=function(A){this.queue.add(A)};
jv7.prototype.flush=function(){if(this.queue.size){h0=!0;try{for(var A=_.d(this.queue),L=A.next();!L.done;L=A.next()){var O=L.value;this.queue.delete(O);try{O.run()}catch(X){WxL(X)}}}finally{h0=!1}}};
var H7u=new jv7,xx=function(){X8.apply(this,arguments)};
_.g(xx,X8);var zgV=function(){xx.apply(this,arguments)};
_.g(zgV,xx);zgV.prototype.schedule=function(A){A.hasRun?this.queue.add(A):A.run()};
zgV.prototype.flush=function(){if(this.queue.size)if(Lr.flushRenderEffectsDuringRender){var A=this.queue;this.queue=new Set;H7_(A)}else H7_(this.queue)};
var Cg9=new zgV,BT6=function(){xx.apply(this,arguments)};
_.g(BT6,xx);BT6.prototype.schedule=function(A){var L=this;return _.u(function(O){if(O.nextAddress==1)return A.hasRun?O.jumpTo(2):O.yield(Promise.resolve(),3);if(O.nextAddress!=2)return A.run(),O.return();L.queue.add(A);_.qo(O)})};
BT6.prototype.flush=function(){var A=this;return _.u(function(L){if(L.nextAddress==1)return A.queue.size?L.yield(Promise.resolve(),2):L.return();H7_(A.queue);_.qo(L)})};
var mdu=new BT6,MJN=function(){xx.apply(this,arguments)};
_.g(MJN,xx);MJN.prototype.schedule=function(A){this.queue.add(A)};
MJN.prototype.flush=function(){this.queue.size&&H7_(this.queue)};
var RgD=new MJN,Z7D=[Cg9,H7u,RgD,mdu],$dV=[Cg9,RgD,mdu],IzO=[];b7y=function(){jvP();for(var A=_.d(IzO),L=A.next();!L.done;L=A.next())L=L.value,L()};
var WxL=Xp;var gF=Symbol("Kb");var qD=null,MJy,$de=null,azd;var sa={},az6=Object.assign({},eI,(sa[yyH]=!0,sa.effectType=t0,sa.isResettableContext=!0,sa.hasRun=!1,sa.effectFn=null,sa.consumerIsAlwaysLive=!0,sa.consumerAllowSignalWrites=!0,sa.consumerMarkedDirty=fzd,sa.kind="effect",sa.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(s4)throw Error("Lb");this.dirty=!1;if(!this.hasRun||sve(this)){this.hasRun=!0;r4e(this);var A=_.UT(this),L=YNJ(this);$6p("effectRun",this.debugName);try{iQ(this.effectFn,this.componentStack,this)}catch(O){throw Lr.enableContextBasedComponentStacks&&
pr(O),O;}finally{acd("effectRun",this.debugName),TTu(this,L),_.UT(A)}}}},sa.componentStack=void 0,sa.debugName="[effect]",sa[Symbol.dispose]=function(){if(J0(this))for(var A=this.producers;A!==void 0;)A=uJu(A);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;A=_.d($dV);for(var L=A.next();!L.done;L=A.next())L.value.remove(this);NRe(this)},sa));var vwP=Object.assign({},az6,{effectType:Qvs});var ow_=Symbol("Mb");var AlJ=Object.assign({},az6,{effectType:t0});var RL9=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 X2u={align:1,alt:1,"aria-activedescendant":10,"aria-atomic":1,"aria-autocomplete":1,"aria-busy":1,"aria-checked":1,"aria-controls":10,"aria-current":1,"aria-describedby":10,"aria-disabled":1,"aria-dropeffect":1,"aria-expanded":1,"aria-haspopup":1,"aria-hidden":1,"aria-invalid":1,"aria-label":1,"aria-labelledby":10,"aria-level":1,"aria-live":1,"aria-multiline":1,"aria-multiselectable":1,"aria-orientation":1,"aria-owns":10,"aria-posinset":1,"aria-pressed":1,"aria-readonly":1,"aria-relevant":1,"aria-required":1,
"aria-selected":1,"aria-setsize":1,"aria-sort":1,"aria-valuemax":1,"aria-valuemin":1,"aria-valuenow":1,"aria-valuetext":1,async:8,autocapitalize:1,autocomplete:1,autocorrect:1,autofocus:1,autoplay:1,bgcolor:1,border:1,cellpadding:1,cellspacing:1,checked:1,cite:1,"class":1,color:1,cols:1,colspan:1,contenteditable:1,controls:1,controlslist:1,coords:1,crossorigin:1,datetime:1,dir:8,disabled:1,download:1,draggable:1,enctype:1,face:1,"for":10,formenctype:1,frameborder:1,height:1,hidden:1,href:4,hreflang:1,
id:10,inert:1,ismap:1,itemid:1,itemprop:1,itemref:1,itemscope:1,itemtype:1,label:1,lang:1,list:10,loading:8,loop:1,max:1,maxlength:1,media:1,min:1,minlength:1,multiple:1,muted:1,name:10,nonce:1,open:1,placeholder:1,playsinline:1,poster:1,preload:1,rel:1,required:1,reversed:1,role:1,rows:1,rowspan:1,selected:1,shape:1,size:1,sizes:1,slot:1,span:1,spellcheck:1,src:4,srcset:12,start:1,step:1,style:5,summary:1,tabindex:1,target:8,title:1,translate:1,type:1,usemap:1,valign:1,value:1,width:1,wrap:1},Ode=
{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}]}},GId={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},Jld=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],sUM={"*":{async:1,dir:0,loading:2,target:3}};var kuH=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,Jr={},d7r=(Jr[1]=null,Jr[2]=function(A,L){return L instanceof ZD?Wf(L):FP.toString()},Jr[3]=function(A,L){return rw(L)?_.G2(L):kuH.test(String(L))?String(L):FP.toString()},Jr[4]=function(A,L){return L instanceof q0?_.ww(L):FP.toString()},Jr[5]=function(A,L){return String(L)},Jr[7]=null,Jr[8]=null,Jr[10]=null,Jr);var vuP=Symbol("Pb");var Mcd=function(A){var L=Ud6,O=A,X="",x="",J=1;A<0&&(A=-A);if(A===Infinity)A=(Infinity*Math.sign(O)).toString();else{for(var Y=0;Y<vw7.length;Y++){var T=vw7[Y];J=L[T];if(A>=J||J<=1&&A>.1*J){X=T;break}}X?(X+="B",x=" "):J=1;A=Math.round(O/J*10)/10+x+X}return A},vw7="Y Z E P T G M K  m u n".split(" "),Ud6={"":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};_.owu=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 d9={};RegExp.prototype.hasOwnProperty("sticky");var m7d=function(A){A=String(A);for(var L=function(X,x,J){for(var Y=Math.min(x.length-J,X.length),T=0;T<Y;T++){var V=x[J+T];if(X[T]!==("A"<=V&&V<="Z"?V.toLowerCase():V))return!1}return!0},O=0;(O=A.indexOf("<",O))!=-1;){if(L("\x3c/script",A,O)||L("\x3c!--",A,O))return"zSoyz";
O+=1}return A};var mv={default:"__default"};var eLp=Object.prototype.hasOwnProperty;TVp.prototype=Object.create(null);var ov=tvs();var kN=null;var K2D=function(A){this.created=[];this.deleted=[];this.node=A};var Gky=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var A=this,L=A;A;)L=A,A=A.parentNode;return L};var hLJ=function(A,L){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=A;this.key=L;this.text=void 0};var Wu=null,Hu=null,Ie=null,Bu=null,p2_=[],w2e=qjp,$N=[],ae=[],UVd=function(A){return lZs(function(L,O,X){Ie=Hu=L;Hu=null;O(X);gd9(null);Hu=Ie;Ie=Ie.parentNode;return L},A)}(),kPu=function(A){return lZs(function(L,O,X){var x={nextSibling:L};
Hu=x;O(X);Ie&&gd9(L.nextSibling);return x===Hu?null:Hu},A)}();var U4=[],CO_=0;var vu=new TVp;var me=new TVp;var Aln=tvs(),yls=Aln[mv.default],IZO=Aln.style,QUJ=["focusin","focusout"],W2u="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var ihd=function(){},eFD=function(){},lx_=function(){},r9M=function(){};var LB=Symbol("Wb");var $7y,MvM=BVD;var TD=Symbol("Xb");var GNp=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(" ")),
KUd=new Set(["a","font","script","style","title"]);var uk={setUp:Pie,tearDown:Pie,log:Pie,logNodeRange:Pie,graft:function(A,L){L()}};var bk={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var h8=null,S6=function(A,L){qE.call(this,A);var O=this;this.functionComponent=L;this.hooks=[];this.hookCounter=0;this.disposeEffects=Kr(function(X){O.effectContext=X;_.rF(function(){bhe(O,O.el)})},Lr.alwaysTrackContexts||!!k8)};
_.g(S6,qE);S6.prototype.render=function(A){var L=h8;h8=this;this.hookCounter=0;var O=xN(t8),X=_.UT(this.effectContext);try{return $6p("render",this.componentName),this.functionComponent(A)}finally{acd("render",this.componentName),_.UT(X),xN(O),h8=L}};
_.v2.Object.defineProperties(S6.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return zge(this.functionComponent)}}});var c9P=Symbol("kc"),w3y=function(A,L,O){this.afterRenderCallbacks=null;this.kind=A;this.props=L;this.children=O};
_.g(w3y,Es);w3y.prototype.render=function(){var A=gOd(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var L=_.d(this.afterRenderCallbacks),O=L.next();!O.done;O=L.next())O=O.value,A=O(A);return A};
w3y.prototype.getChildren=function(){return this.children};var FU_=[];nwu=function(A){throw Error("ob`"+A.debugName);};
(function(){var A=kN;kN=function(L){A==null||A(L);RFP(L)}})();var L27=new WeakMap,OdN=0;var X2J=void 0,x76={},sUl=new WeakMap,YXP={getComponent:function(A){if(A.hasAttribute("ng-version"))return x76;if(!A.__wizComponent)return null;A=A.__wizComponent;sUl.set(A.propsAndState,A);return A.propsAndState},
getDirectiveMetadata:function(A){if(A===x76)return{framework:"wiz",name:"<Root>",props:{}};A=sUl.get(A);if(!A)throw Error("lc");return{framework:"wiz",name:A.name,props:Object.fromEntries(Object.keys(A.props).map(function(L){return[L,L]}))}},
"\u0275setProfiler":function(A){var L;(L=X2J)==null||L();X2J=yyr(function(){A(2)})},
getInjector:function(A){return A.__wizComponent},
"\u0275getSignalGraph":function(A){var L;A=(L=A.effects)!=null?L:[];var O=QFu(A),X=Array.from(O.keys());L=[];A=[];for(var x=new Map,J=0;J<X.length;J++)x.set(X[J],J);O=_.d(O.entries());for(X=O.next();!X.done;X=O.next()){J=_.d(X.value);X=J.next().value;var Y=J.next().value;J=X;X=x.get(J);var T=L27.get(J);T||(T=OdN.toString(),L27.set(J,T),OdN++);var V=void 0,E=((V=J.debugName)!=null?V:"").replace(/@.+/,"");if(J.kind==="computed"){V=J.computation;var n=void 0;L.push({label:E,value:J.value,kind:J.kind,
epoch:J.version,debuggableFn:(n=V.userFn)!=null?n:V,id:T})}else if(J.kind==="signal")L.push({label:E,value:J.value,kind:J.kind,epoch:J.version,debuggableFn:J.debugFn,id:T});else if(J.kind==="effect"){n=void 0;V=(n=J.effectFn)!=null?n:void 0;var t=n=void 0;L.push({label:E,kind:J.kind,epoch:J.version,debuggableFn:(t=(n=V)==null?void 0:n.userFn)!=null?t:V,id:T})}else L.push({label:E,kind:J.kind,epoch:J.version,id:T});J=_.d(Y);for(Y=J.next();!Y.done;Y=J.next())A.push({consumer:X,producer:x.get(Y.value)})}return{nodes:L,
edges:A}},
isSignal:function(A){return typeof A==="function"&&A[dF]!==void 0}};Object.assign({},az6,{effectType:t0,hasRun:!0,elementRef:null,attributes:null,effectFn:function(){var A=this.elementRef;var L;A.element!=null||(A.element=(L=A.document.getElementById(A.value))!=null?L:void 0);A=A.element;for(L=this.attributes;L;){var O=L.signal();O!==L.prevValue&&(L.prevValue=O,RL9.has(L.name)?QO(A,L.name,O?"":null):QO(A,L.name,O));L=L.next}}});Object.assign({},az6,{effectType:t0,hasRun:!0});_.e.debugName="RlDudd";var mAM={nonNullableCondIsNull:function(){return Error("qc")}};var WUJ=function(){this.map=new Map};
WUJ.prototype.push=function(A,L){var O=this.map;O.has(A)&&(this.multi||(this.multi=new Map),this.multi.set(L,O.get(A)));O.set(A,L)};
WUJ.prototype.pop=function(A){var L=this.map,O=L.get(A),X;O!==void 0&&((X=this.multi)==null?0:X.has(O))?(L.set(A,this.multi.get(O)),this.multi.delete(O)):L.delete(A);return O};_.g9.debugName="nsTGHd";_.w9.debugName="tbhMcf";_.pB.debugName="zyMFzb";_.ik.debugName="vI1rtf";_.ax_={OUT_OF_ORDER_HOOK_CALL:function(A){return Error("rc`"+A)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("sc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("tc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("uc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(A,L){return Error("vc`"+((L===void 0?0:L)?"IDOM":"Reactive")+"`"+A)},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(A,L){return Error("wc`"+A+"`"+L)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(A){return Error("xc`"+A)},
USE_ELEMENT_NOT_ASSIGNED:function(A){return Error("yc`"+String(A))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(A){return Error("zc`"+String(A))}};$7y=p3P;var X4J=Symbol("Ac");nOP({beforeRender:function(A){var L=_.UT(A.effectContext);try{var O;((O=A.__syncEffects)==null?0:O.length)&&sku(A.__syncEffects)}finally{_.UT(L)}},
didPatch:function(A){var L=_.UT(A.effectContext);try{var O;((O=A.__syncEffects)==null?0:O.length)&&sku(A.__syncEffects)}finally{_.UT(L)}},
didUnmount:function(A){var L;((L=A.hooks)==null?0:L.length)&&A.hooks.forEach(xG_)}});var Jl6,PO6,d7H;Jl6=_.Ou.window;_.RO=(Jl6==null?void 0:(PO6=Jl6.yt)==null?void 0:PO6.config_)||(Jl6==null?void 0:(d7H=Jl6.ytcfg)==null?void 0:d7H.data_)||{};_.oZ("yt.config_",_.RO);var Yjn={},Y0D=[];_.pe=function(A){var L=_.f_.apply(1,arguments);var O=Error.call(this,A);this.message=O.message;"stack"in O&&(this.stack=O.stack);this.args=[].concat(_.le(L));Object.setPrototypeOf(this,this.constructor.prototype)};
_.g(_.pe,Error);var D_u=function(A,L,O){this.actionName=A;this.optionalAction=L===void 0?!1:L;this.args=O===void 0?null:O;this.returnValue=[]};_.PF=function(A){this.name=A};_.jJ=new _.PF("signalAction");var S0u=/^[\w.]*$/,eAJ={q:!0,search_query:!0},DGM=String(Vm9);var dx;dx=Symbol("Bc");_.Yx=function(A){this.name=A};
_.Yx.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var q0O=function(A){this.key=A},NQs=function(A){this.deferredKey=A},w4u=function(){var A=this;
this.providers=new Map;this.JSC$11471_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(A.providers)}}};
w4u.prototype.addProvider=function(A){this.providers.set(A.provide,A);var L=this.JSC$11471_deferred.get(A.provide);if(L)try{L.resolver(this.resolve(A.provide))}catch(O){L.rejector(O)}};
w4u.prototype.resolve=function(A){return A instanceof NQs?uhL(this,A):A instanceof q0O?TVL(this,A.key,[],!0):TVL(this,A,[])};
var uhL=function(A,L){L=L.deferredKey;if(A.JSC$11471_deferred.has(L))return A.JSC$11471_deferred.get(L).promise;var O={};O.promise=new Promise(function(X,x){O.resolver=X;O.rejector=x});
A.JSC$11471_deferred.set(L,O);return O.promise},TVL=function(A,L,O,X){X=X===void 0?!1:X;
if(O.indexOf(L)>-1)throw Error("Cc`"+L);if(A.cachedValues.has(L))return A.cachedValues.get(L);if(!A.providers.has(L)){if(X)return;throw Error("Dc`"+L);}X=A.providers.get(L);O.push(L);if(X.useValue!==void 0)var x=X.useValue;else if(X.useFactory)x=X[dx]?Vv6(A,X[dx],O):[],x=X.useFactory.apply(X,_.le(x));else if(X.useClass){x=X.useClass;var J=x[dx]?Vv6(A,x[dx],O):[];x=new (Function.prototype.bind.apply(x,[null].concat(_.le(J))))}else throw Error("Ec`"+L);O.pop();X.skipCache||A.cachedValues.set(L,x);return x},
Vv6=function(A,L,O){return L?L.map(function(X){return X instanceof q0O?TVL(A,X.key,O,!0):TVL(A,X,O)}):[]};var gK9;var Wh=new _.Yx("ENDPOINT_HANDLER_TOKEN");_.Hh=new _.PF("urlEndpoint");var D7N=function(){this.data=[];this.cachedPackedInt52=-1};
D7N.prototype.set=function(A,L){L=L===void 0?!0:L;0<=A&&A<52&&Number.isInteger(A)&&this.data[A]!==L&&(this.data[A]=L,this.cachedPackedInt52=-1)};
D7N.prototype.get=function(A){return!!this.data[A]};
var eLL=function(A){A.cachedPackedInt52===-1&&(A.cachedPackedInt52=A.data.reduce(function(L,O,X){return L+(O?Math.pow(2,X):0)},0));
return A.cachedPackedInt52};var ZM_=function(A){var L=Edc;A=A===void 0?_.WY("yt.ads.biscotti.lastId_")||"":A;var O=Object,X=O.assign,x={};x.dt=ux6;x.flash="0";a:{try{var J=L.JSC$11477_win_.top.location.href}catch(xe){J=2;break a}J=J?J===L.doc_.location.href?0:1:2}x=(x.frm=J,x);try{x.u_tz=-(new Date).getTimezoneOffset();try{var Y=kF.history.length}catch(xe){Y=0}x.u_his=Y;var T;x.u_h=(T=kF.screen)==null?void 0:T.height;var V;x.u_w=(V=kF.screen)==null?void 0:V.width;var E;x.u_ah=(E=kF.screen)==null?void 0:E.availHeight;var n;x.u_aw=
(n=kF.screen)==null?void 0:n.availWidth;var t;x.u_cd=(t=kF.screen)==null?void 0:t.colorDepth}catch(xe){}Y=L.JSC$11477_win_;try{var b=Y.screenX;var S=Y.screenY}catch(xe){}try{var w=Y.outerWidth;var l=Y.outerHeight}catch(xe){}try{var F=Y.innerWidth;var R=Y.innerHeight}catch(xe){}try{var y=Y.screenLeft;var M=Y.screenTop}catch(xe){}try{F=Y.innerWidth,R=Y.innerHeight}catch(xe){}try{var H=Y.screen.availWidth;var z=Y.screen.availTop}catch(xe){}b=[y,M,b,S,H,z,w,l,F,R];S=VVp(!1,L.JSC$11477_win_.top);w={};
var a=a===void 0?_.Ou:a;l=new D7N;"SVGElement"in a&&"createElementNS"in a.document&&l.set(0);F=Jk6();F["allow-top-navigation-by-user-activation"]&&l.set(1);F["allow-popups-to-escape-sandbox"]&&l.set(2);a.crypto&&a.crypto.subtle&&l.set(3);"TextDecoder"in a&&"TextEncoder"in a&&l.set(4);a=eLL(l);L=(w.bc=a,w.bih=S.height,w.biw=S.width,w.brdim=b.join(),w.vis=XYp(L.doc_),w.wgl=!!kF.WebGLRenderingContext,w);O=X.call(O,x,L);O.ca_type="image";A&&(O.bid=A);return O},Edc=new function(){var A=window.document;
this.JSC$11477_win_=window;this.doc_=A};
_.oZ("yt.ads_.signals_.getAdSignalsString",function(A){return EKd(ZM_(A))});_.u1();navigator.userAgent.indexOf(" (CrKey ");var czr="XMLHttpRequest"in _.Ou?function(){return new XMLHttpRequest}:null;var nd7="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),tvc=[].concat(_.le(nd7),["client_dev_set_cookie"]);var yzO={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"},RAM="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(_.le(nd7)),kZ_=!1,mGJ=_.jkp,Mmd=IQe;var t8p=[{messageFn:function(A){return"Cannot read property '"+A.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(A){return"Cannot call '"+A.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(A){return A.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var bdu={messageWeights:[],callbackWeights:[{callback:AYr,weight:500},{callback:LCu,weight:500}]};var hLn=function(){this.callbackWeights=[];this.messageWeights=[]},Sj3,nue=function(){if(!Sj3){var A=Sj3=new hLn;
A.messageWeights.length=0;A.callbackWeights.length=0;For(A,bdu)}return Sj3},For=function(A,L){L.messageWeights&&A.messageWeights.push.apply(A.messageWeights,L.messageWeights);
L.callbackWeights&&A.callbackWeights.push.apply(A.callbackWeights,L.callbackWeights)};_.Ty(_.tj,_.p$);_.tj.prototype.subscribe=function(A,L,O){var X=this.topics_[A];X||(X=this.topics_[A]=[]);var x=this.JSC$11501_key_;this.subscriptions_[x]=A;this.subscriptions_[x+1]=L;this.subscriptions_[x+2]=O;this.JSC$11501_key_=x+3;X.push(x);return x};
var qjL=function(A){var L=qku,O=!1,X=L.subscribe("handleError",function(x){O||(O=!0,this.unsubscribeByKey(X),A.apply(void 0,arguments))},L)};
_.tj.prototype.unsubscribe=function(A,L,O){if(A=this.topics_[A]){var X=this.subscriptions_;if(A=A.find(function(x){return X[x+1]==L&&X[x+2]==O}))return this.unsubscribeByKey(A)}return!1};
_.tj.prototype.unsubscribeByKey=function(A){var L=this.subscriptions_[A];if(L){var O=this.topics_[L];this.publishDepth_!=0?(this.pendingKeys_.push(A),this.subscriptions_[A+1]=function(){}):(O&&_.y_(O,A),delete this.subscriptions_[A],delete this.subscriptions_[A+1],delete this.subscriptions_[A+2])}return!!L};
_.tj.prototype.publish=function(A,L){var O=this.topics_[A];if(O){var X=Array(arguments.length-1),x=arguments.length,J;for(J=1;J<x;J++)X[J-1]=arguments[J];if(this.async_)for(J=0;J<O.length;J++)x=O[J],gd6(this.subscriptions_[x+1],this.subscriptions_[x+2],X);else{this.publishDepth_++;try{for(J=0,x=O.length;J<x&&!this.isDisposed();J++){var Y=O[J];this.subscriptions_[Y+1].apply(this.subscriptions_[Y+2],X)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;O=this.pendingKeys_.pop();)this.unsubscribeByKey(O)}}return J!=
0}return!1};
var gd6=function(A,L,O){_.Cc(function(){A.apply(L,O)})};
_.tj.prototype.clear=function(A){if(A){var L=this.topics_[A];L&&(L.forEach(this.unsubscribeByKey,this),delete this.topics_[A])}else this.subscriptions_.length=0,this.topics_={}};
_.tj.prototype.getCount=function(A){if(A){var L=this.topics_[A];return L?L.length:0}A=0;for(L in this.topics_)A+=this.getCount(L);return A};
_.tj.prototype.disposeInternal=function(){_.tj.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var qku=new _.tj;var P1=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(P1,_.AE);P1.prototype.getColdHashData=function(){return _.mT(this,3)};
P1.prototype.getHotHashData=function(){return _.mT(this,5)};
P1.prototype.setHotHashData=function(A){return _.gz(this,5,A)};var ec_=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(ec_,_.AE);var jQO=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(jQO,_.AE);_.P=jQO.prototype;_.P.getDeviceId=function(){return _.mT(this,6)};
_.P.getExperimentIds=function(A){var L=_.jZ(this,9,_.Ak,3,!0);Bu_(L,A);return L[A]};
_.P.getPlayerType=function(){return _.IH(this,36)};
_.P.setHomeGroupInfo=function(A){return _.eg(this,81,A)};
_.P.clearLocationPlayabilityToken=function(){return _.J4(this,89)};var ty=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(ty,_.AE);ty.prototype.setKey=function(A){return _.gz(this,1,A)};
ty.prototype.getValue=function(){return jX(this,2,HyD)};
var HyD=[2,3,4,5,6];var w2V=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(w2V,_.AE);w2V.prototype.setTrackingParams=function(A){return _.J4(this,1,_.K6(A,!1))};var W4D=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(W4D,_.AE);var tQs=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(tQs,_.AE);tQs.prototype.getExperimentIds=function(A){var L=_.jZ(this,5,_.DNe,3,!0);Bu_(L,A);return L[A]};var qd=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(qd,_.AE);qd.prototype.getToken=function(){return _.n$(this,2)};
qd.prototype.setToken=function(A){return _.gz(this,2,A)};var hy=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(hy,_.AE);hy.prototype.setSafetyMode=function(A){return _.s$(this,5,A)};var n7=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(n7,_.AE);n7.prototype.setClient=function(A){return _.eg(this,1,A)};var nc_={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 EcP;_.Ra=function(){var A=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.Ou.addEventListener("beforeinstallprompt",function(L){L.preventDefault();A.deferredInstallPrompt=L});
_.Ou.addEventListener("appinstalled",function(){A.appInstalledEventFired=!0},{once:!0})};
EcP=function(){if(!_.Ou.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.Ou.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.Ou.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.Ou.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.Ou.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(A){return"WEB_DISPLAY_MODE_UNKNOWN"}};var SPP=function(){this.syncHeaders=!0},qPy=function(A){var L={},O=[];
"USER_SESSION_ID"in _.RO&&O.push({key:"u",value:_.ms("USER_SESSION_ID")});if(O=_.WiJ(O))L.Authorization=O,O=A=A==null?void 0:A.sessionIndex,O===void 0&&(O=Number(_.ms("SESSION_INDEX",0)),O=isNaN(O)?0:O),_.h("voice_search_auth_header_removal")||(L["X-Goog-AuthUser"]=O.toString()),"INNERTUBE_HOST_OVERRIDE"in _.RO||(L["X-Origin"]=window.location.origin),A===void 0&&"DELEGATED_SESSION_ID"in _.RO&&(L["X-Goog-PageId"]=_.ms("DELEGATED_SESSION_ID"));return L};var p2u={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var uA=_.WY("ytglobal.prefsUserPrefsPrefs_")||{},id6;_.oZ("ytglobal.prefsUserPrefsPrefs_",uA);_.Ta=function(){this.cookieName=_.ms("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.ms("ALT_PREF_COOKIE_DOMAIN","youtube.com");var A=_.hj.get(this.cookieName,void 0);A&&this.parse(A)};
_.qG=function(){id6||(id6=new _.Ta);return id6};
_.Ta.prototype.get=function(A,L){NVN(A);rlV(A);A=uA[A]!==void 0?uA[A].toString():null;return A!=null?A:L?L:""};
_.Ta.prototype.set=function(A,L){NVN(A);rlV(A);if(L==null)throw Error("Hc");uA[A]=L.toString()};
_.Ta.prototype.getFlag=function(A){return!!((K23("f"+(Math.floor(A/31)+1))||0)&1<<A%31)};
_.gQ=function(A,L,O){A="f"+(Math.floor(L/31)+1);L=1<<L%31;var X=K23(A)||0;X=O?X|L:X&~L;X===0?delete uA[A]:(O=X.toString(16),uA[A]=O.toString())};
_.Ta.prototype.remove=function(A){NVN(A);rlV(A);delete uA[A]};
_.Ta.prototype.save=function(){var A=!0;_.h("web_secure_pref_cookie_killswitch")&&(A=!1);_.Sh(this.cookieName,this.dump(),63072E3,this.cookieDomain,A)};
_.Ta.prototype.clear=function(){_.lW.clear(uA)};
_.Ta.prototype.dump=function(){var A=[],L;for(L in uA)uA.hasOwnProperty(L)&&A.push(L+"="+encodeURIComponent(String(uA[L])));return A.join("&")};
var rlV=function(A){if(/^f([1-9][0-9]*)$/.test(A))throw Error("Ic`"+A);},NVN=function(A){if(!/^\w+$/.test(A))throw Error("Jc`"+A);
},K23=function(A){A=uA[A]!==void 0?uA[A].toString():null;
return A!=null&&/^[A-Fa-f0-9]+$/.test(A)?parseInt(A,16):null};
_.Ta.prototype.parse=function(A){A=decodeURIComponent(A).split("&");for(var L=0;L<A.length;L++){var O=A[L].split("="),X=O[0];(O=O[1])&&(uA[X]=O.toString())}};var uld={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"},b3P={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},hcO={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},VMr={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var Dr;_.Vx=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.p7=function(A,L,O){return A.addJob(L,0,O)};
_.Vx.prototype.addLowPriorityJob=function(A,L){return this.addJob(A,1,L)};
_.GP=function(A,L,O){return A.addJob(L,2,O)};
_.fu=function(A,L,O){return A.addJob(L,3,O)};
_.et=function(A,L,O){return A.addJob(L,4,O)};
Dr=function(A){var L=_.WY("yt.scheduler.instance.addImmediateJob");L?L(A):A()};
_.Vx.prototype.debounce=function(A,L,O){var X=this,x=0,J=function(){x&&X.cancelJob(x);x=X.addJob(A,L,O);X.cancelDebouncedJobMap.set(J,x)};
return J};
_.Vx.prototype.cancelThrottle=function(A){(A=this.cancelThrottledJobMap.get(A))&&A()};var DI=function(){_.Vx.apply(this,arguments)};
_.g(DI,_.Vx);_.Q7=function(){DI.instance||(DI.instance=new DI);return DI.instance};
DI.prototype.addJob=function(A,L,O){O!==void 0&&Number.isNaN(Number(O))&&(O=void 0);var X=_.WY("yt.scheduler.instance.addJob");return X?X(A,L,O):O===void 0?(A(),NaN):_.TA(A,O||0)};
DI.prototype.cancelJob=function(A){if(A===void 0||!Number.isNaN(Number(A))){var L=_.WY("yt.scheduler.instance.cancelJob");L?L(A):_.DK(A)}};
DI.prototype.start=function(){var A=_.WY("yt.scheduler.instance.start");A&&A()};
DI.prototype.pause=function(){var A=_.WY("yt.scheduler.instance.pause");A&&A()};
_.c1=_.Q7();_.iK.prototype.set=function(A,L){L===void 0?this.mechanism.remove(A):this.mechanism.set(A,(0,_.fc)(L))};
_.iK.prototype.get=function(A){try{var L=this.mechanism.get(A)}catch(O){return}if(L!==null)try{return JSON.parse(L)}catch(O){throw"Storage: Invalid value was encountered";}};
_.iK.prototype.remove=function(A){this.mechanism.remove(A)};var ep=function(A){this.mechanism=A};
_.Ty(ep,_.iK);var GkN=function(A){this.data=A},lZc=function(A){return A===void 0||A instanceof GkN?A:new GkN(A)};
ep.prototype.set=function(A,L){ep.superClass_.set.call(this,A,lZc(L))};
ep.prototype.getWrapper=function(A){A=ep.superClass_.get.call(this,A);if(A===void 0||A instanceof Object)return A;throw"Storage: Invalid value was encountered";};
ep.prototype.get=function(A){if(A=this.getWrapper(A)){if(A=A.data,A===void 0)throw"Storage: Invalid value was encountered";}else A=void 0;return A};_.Ty(NO,ep);_.clu=function(A){var L=A.creation;A=A.expiration;return!!A&&A<_.u1()||!!L&&L>_.u1()};
NO.prototype.set=function(A,L,O){if(L=lZc(L)){if(O){if(O<_.u1()){NO.prototype.remove.call(this,A);return}L.expiration=O}L.creation=_.u1()}NO.superClass_.set.call(this,A,L)};
NO.prototype.getWrapper=function(A,L){var O=NO.superClass_.getWrapper.call(this,A);if(O)if(!L&&_.clu(O))NO.prototype.remove.call(this,A);else return O};var Ea=function(){};
Ea.prototype.next=function(){return nD};
var nD={done:!0,value:void 0},tr=function(A){return{value:A,done:!1}};
Ea.prototype.__iterator__=function(){return this};
_.COu=function(A){if(A instanceof Ea)return A;if(typeof A.__iterator__=="function")return A.__iterator__(!1);if(_.jD(A)){var L=0,O=new Ea;O.next=function(){for(;;){if(L>=A.length)return nD;if(L in A)return tr(A[L++]);L++}};
return O}throw Error("Kc");};var F2n=function(A){if(A instanceof bA||A instanceof hr||A instanceof Sp)return A;if(typeof A.next=="function")return new bA(function(){return A});
if(typeof A[Symbol.iterator]=="function")return new bA(function(){return A[Symbol.iterator]()});
if(typeof A.__iterator__=="function")return new bA(function(){return A.__iterator__()});
throw Error("Lc");},bA=function(A){this.func_=A};
bA.prototype.__iterator__=function(){return new hr(this.func_())};
bA.prototype[Symbol.iterator]=function(){return new Sp(this.func_())};
bA.prototype.toEs6=function(){return new Sp(this.func_())};
var hr=function(A){this.JSC$11585_iter_=A};
_.g(hr,Ea);hr.prototype.next=function(){return this.JSC$11585_iter_.next()};
hr.prototype[Symbol.iterator]=function(){return new Sp(this.JSC$11585_iter_)};
hr.prototype.toEs6=function(){return new Sp(this.JSC$11585_iter_)};
var Sp=function(A){bA.call(this,function(){return A});
this.JSC$11588_iter_=A};
_.g(Sp,bA);Sp.prototype.next=function(){return this.JSC$11588_iter_.next()};var RL6=function(){};var qz=function(){};
_.Ty(qz,RL6);qz.prototype.getCount=function(){for(var A=0,L=_.d(this),O=L.next();!O.done;O=L.next())A++;return A};
qz.prototype[Symbol.iterator]=function(){return F2n(this.__iterator__(!0)).toEs6()};
qz.prototype.clear=function(){var A=Array.from(this);A=_.d(A);for(var L=A.next();!L.done;L=A.next())this.remove(L.value)};_.Ty(rN,qz);_.P=rN.prototype;_.P.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var A=this.storage_;if(A)try{A.setItem("__sak","1");A.removeItem("__sak");var L=!0}catch(O){L=O instanceof DOMException&&(O.name==="QuotaExceededError"||O.code===22||O.code===1014||O.name==="NS_ERROR_DOM_QUOTA_REACHED")&&A&&A.length!==0}else L=!1;this.cachedIsStorageAvailable_=L}return this.cachedIsStorageAvailable_};
_.P.set=function(A,L){gx(this);try{this.storage_.setItem(A,L)}catch(O){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.P.get=function(A){gx(this);A=this.storage_.getItem(A);if(typeof A!=="string"&&A!==null)throw"Storage mechanism: Invalid value was encountered";return A};
_.P.remove=function(A){gx(this);this.storage_.removeItem(A)};
_.P.getCount=function(){gx(this);return this.storage_.length};
_.P.__iterator__=function(A){gx(this);var L=0,O=this.storage_,X=new Ea;X.next=function(){if(L>=O.length)return nD;var x=O.key(L++);if(A)return tr(x);x=O.getItem(x);if(typeof x!=="string")throw"Storage mechanism: Invalid value was encountered";return tr(x)};
return X};
_.P.clear=function(){gx(this);this.storage_.clear()};
_.P.key=function(A){gx(this);return this.storage_.key(A)};
var gx=function(A){if(A.storage_==null)throw Error("Mc");A.isAvailable()||Xp(Error("Mc"))};_.Ty(eDO,rN);_.Ty(EBd,rN);_.Ty(Ke,qz);Ke.prototype.set=function(A,L){this.mechanism_.set(this.JSC$11603_prefix_+A,L)};
Ke.prototype.get=function(A){return this.mechanism_.get(this.JSC$11603_prefix_+A)};
Ke.prototype.remove=function(A){this.mechanism_.remove(this.JSC$11603_prefix_+A)};
Ke.prototype.__iterator__=function(A){var L=this.mechanism_[Symbol.iterator](),O=this,X=new Ea;X.next=function(){var x=L.next();if(x.done)return x;for(x=x.value;x.slice(0,O.JSC$11603_prefix_.length)!=O.JSC$11603_prefix_;){x=L.next();if(x.done)return x;x=x.value}return tr(A?x.slice(O.JSC$11603_prefix_.length):O.mechanism_.get(x))};
return X};_.mg=function(A){this.expiringStorage_=(A=_.nBd(A))?new NO(A):null;this.JSC$11607_domain_=document.domain||window.location.hostname};
_.mg.prototype.set=function(A,L,O,X){O=O||31104E3;this.remove(A);if(this.expiringStorage_)try{this.expiringStorage_.set(A,L,Date.now()+O*1E3);return}catch(J){}var x="";if(X)try{x=escape((0,_.fc)(L))}catch(J){return}else x=escape(L);_.Sh(A,x,O,this.JSC$11607_domain_)};
_.mg.prototype.get=function(A,L){var O=void 0,X=!this.expiringStorage_;if(!X)try{O=this.expiringStorage_.get(A)}catch(x){X=!0}if(X&&(O=_.hj.get(A,void 0))&&(O=unescape(O),L))try{O=JSON.parse(O)}catch(x){this.remove(A),O=void 0}return O};
_.mg.prototype.remove=function(A){this.expiringStorage_&&this.expiringStorage_.remove(A);_.PND(A,"/",this.JSC$11607_domain_)};
_.mg.prototype.getCreationTime=function(A){return this.expiringStorage_&&(A=(this.expiringStorage_.getWrapper(A)||{}).creation,typeof A==="number")?A:null};var bYu=function(){var A;return function(){A||(A=new _.mg("ytidb"));return A}}();var See;_.lK=[];See=!1;var Ind=qey||gBu;var wx={},QUn=(wx.AUTH_INVALID="No user identifier specified.",wx.EXPLICIT_ABORT="Transaction was explicitly aborted.",wx.IDB_NOT_SUPPORTED="IndexedDB is not supported.",wx.MISSING_INDEX="Index not created.",wx.MISSING_OBJECT_STORES="Object stores not created.",wx.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",wx.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",wx.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",wx.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",wx.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",wx.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",wx.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",wx),pD={},m76=(pD.AUTH_INVALID="ERROR",pD.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",pD.EXPLICIT_ABORT="IGNORED",
pD.IDB_NOT_SUPPORTED="ERROR",pD.MISSING_INDEX="WARNING",pD.MISSING_OBJECT_STORES="ERROR",pD.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",pD.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",pD.QUOTA_EXCEEDED="WARNING",pD.QUOTA_MAYBE_EXCEEDED="WARNING",pD.UNKNOWN_ABORT="WARNING",pD.INCOMPATIBLE_DB_VERSION="WARNING",pD),iA={},fZj=(iA.AUTH_INVALID=!1,iA.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,iA.EXPLICIT_ABORT=!1,iA.IDB_NOT_SUPPORTED=!1,iA.MISSING_INDEX=!1,iA.MISSING_OBJECT_STORES=!1,iA.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,iA.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,iA.QUOTA_EXCEEDED=!1,iA.QUOTA_MAYBE_EXCEEDED=!0,iA.UNKNOWN_ABORT=!0,iA.INCOMPATIBLE_DB_VERSION=!1,iA),m7=function(A,L,O,X,x){L=L===void 0?{}:L;O=O===void 0?QUn[A]:O;X=X===void 0?m76[A]:X;x=x===void 0?fZj[A]:x;_.pe.call(this,O,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:A},L));this.type=A;this.message=O;this.level=X;this.retryable=x;Object.setPrototypeOf(this,m7.prototype)};
_.g(m7,_.pe);var IZj=function(A,L){m7.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:L,foundObjectStores:A},QUn.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,IZj.prototype)};
_.g(IZj,m7);var pGe=function(A,L){var O=Error.call(this);this.message=O.message;"stack"in O&&(this.stack=O.stack);this.index=A;this.objectStore=L;Object.setPrototypeOf(this,pGe.prototype)};
_.g(pGe,Error);var iYJ=["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 ZK=function(A){this.executor=A},yr=function(A){var L=this;
this.state={status:"PENDING"};this.JSC$11635_onFulfilled=[];this.JSC$11635_onRejected=[];A=A.executor;var O=function(x){if(L.state.status==="PENDING"){L.state={status:"FULFILLED",value:x};x=_.d(L.JSC$11635_onFulfilled);for(var J=x.next();!J.done;J=x.next())J=J.value,J()}},X=function(x){if(L.state.status==="PENDING"){L.state={status:"REJECTED",
reason:x};x=_.d(L.JSC$11635_onRejected);for(var J=x.next();!J.done;J=x.next())J=J.value,J()}};
try{A(O,X)}catch(x){X(x)}};
yr.all=function(A){return new yr(new ZK(function(L,O){var X=[],x=A.length;x===0&&L(X);for(var J={i$jscomp$463:0};J.i$jscomp$463<A.length;J={i$jscomp$463:J.i$jscomp$463},++J.i$jscomp$463)yr.resolve(A[J.i$jscomp$463]).then(function(Y){return function(T){X[Y.i$jscomp$463]=T;x--;x===0&&L(X)}}(J)).catch(function(Y){O(Y)})}))};
yr.resolve=function(A){return new yr(new ZK(function(L,O){A instanceof yr?A.then(L,O):L(A)}))};
yr.reject=function(A){return new yr(new ZK(function(L,O){O(A)}))};
yr.prototype.then=function(A,L){var O=this,X=A!=null?A:KCe,x=L!=null?L:rYu;return new yr(new ZK(function(J,Y){O.state.status==="PENDING"?(O.JSC$11635_onFulfilled.push(function(){ylc(O,O,X,J,Y)}),O.JSC$11635_onRejected.push(function(){ZdJ(O,O,x,J,Y)})):O.state.status==="FULFILLED"?ylc(O,O,X,J,Y):O.state.status==="REJECTED"&&ZdJ(O,O,x,J,Y)}))};
yr.prototype.catch=function(A){return this.then(void 0,A)};
var ylc=function(A,L,O,X,x){try{if(A.state.status!=="FULFILLED")throw Error("Pc");var J=O(A.state.value);J instanceof yr?jU3(A,L,J,X,x):X(J)}catch(Y){x(Y)}},ZdJ=function(A,L,O,X,x){try{if(A.state.status!=="REJECTED")throw Error("Qc");
var J=O(A.state.reason);J instanceof yr?jU3(A,L,J,X,x):X(J)}catch(Y){x(Y)}},jU3=function(A,L,O,X,x){L===O?x(new TypeError("Rc")):O.then(function(J){J instanceof yr?jU3(A,L,J,X,x):X(J)},function(J){x(J)})};var Nz;Nz=window;_.O$=Nz.ytcsi&&Nz.ytcsi.now?Nz.ytcsi.now:Nz.performance&&Nz.performance.timing&&Nz.performance.now&&Nz.performance.timing.navigationStart?function(){return Nz.performance.timing.navigationStart+Nz.performance.now()}:function(){return(new Date).getTime()};var WO=function(A,L){this.JSC$11647_wrapped=A;this.options=L;this.transactionCount=0;this.startedMs=Math.round((0,_.O$)());this.hasUnknownAbortedTransaction=!1},rx=function(){return _.h("idb_immediate_commit")},zLn,BV3,lA,aZH;
WO.prototype.add=function(A,L,O){return _.$$(this,[A],{mode:"readwrite",enableRetries:!0,commit:rx()},function(X){return X.objectStore(A).add(L,O)})};
WO.prototype.clear=function(A){return _.$$(this,[A],{mode:"readwrite",enableRetries:!0},function(L){return L.objectStore(A).clear()})};
WO.prototype.close=function(){this.JSC$11647_wrapped.close();var A;((A=this.options)==null?0:A.closed)&&this.options.closed()};
WO.prototype.count=function(A,L){return _.$$(this,[A],{mode:"readonly",enableRetries:!0,commit:rx()},function(O){return O.objectStore(A).count(L)})};
var IN=function(A,L,O){A=A.JSC$11647_wrapped.createObjectStore(L,O);return new KD(A)};
WO.prototype.delete=function(A,L){return _.$$(this,[A],{mode:"readwrite",enableRetries:!0,commit:rx()&&!(L instanceof IDBKeyRange)},function(O){return O.objectStore(A).delete(L)})};
var W2g=function(A,L){return _.$$(A,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(O){return O.objectStore("ResponseStore").index("byInterface").delete(L)})};
WO.prototype.get=function(A,L){return _.$$(this,[A],{mode:"readonly",enableRetries:!0,commit:rx()},function(O){return O.objectStore(A).get(L)})};
WO.prototype.getAll=function(A,L,O){return _.$$(this,[A],{mode:"readonly",enableRetries:!0},function(X){return X.objectStore(A).getAll(L,O)})};
WO.prototype.put=function(A,L,O){return _.$$(this,[A],{mode:"readwrite",enableRetries:!0,commit:rx()},function(X){return X.objectStore(A).put(L,O)})};
WO.prototype.objectStoreNames=function(){return Array.from(this.JSC$11647_wrapped.objectStoreNames)};
_.$$=function(A,L,O,X){var x,J,Y,T,V,E,n,t,b,S,w,l;return _.u(function(F){switch(F.nextAddress){case 1:var R={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof O==="string"?R.mode=O:Object.assign(R,O);x=R;A.transactionCount++;J=x.enableRetries?3:1;Y=0;case 2:if(T){F.jumpTo(4);break}Y++;V=Math.round((0,_.O$)());_.e4(F,5);E=A.JSC$11647_wrapped.transaction(L,x.mode);R=F.yield;var y=!!x.commit;var M=new HO(E);y=HdH(M,X,y);return R.call(F,y,7);case 7:return n=F.yieldResult,t=Math.round((0,_.O$)()),
zLn(A,V,t,Y,void 0,L.join(),x),F.return(n);case 5:b=_.S4(F);S=Math.round((0,_.O$)());w=Nhe(b,A.JSC$11647_wrapped.name,L.join(),A.JSC$11647_wrapped.version);if((l=w instanceof m7&&!w.retryable)||Y>=J)zLn(A,V,S,Y,w,L.join(),x),T=w;F.jumpTo(2);break;case 4:return F.return(Promise.reject(T))}})};
zLn=function(A,L,O,X,x,J,Y){L=O-L;x?(x instanceof m7&&(x.type==="QUOTA_EXCEEDED"||x.type==="QUOTA_MAYBE_EXCEEDED")&&Ce("QUOTA_EXCEEDED",{dbName:RZ(A.JSC$11647_wrapped.name),objectStoreNames:J,transactionCount:A.transactionCount,transactionMode:Y.mode}),x instanceof m7&&x.type==="UNKNOWN_ABORT"&&(O-=A.startedMs,O<0&&O>=2147483648&&(O=0),Ce("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:J,transactionDuration:L,transactionCount:A.transactionCount,dbDuration:O}),A.hasUnknownAbortedTransaction=!0),
BV3(A,!1,X,J,L,Y.tag),_.cO(x)):BV3(A,!0,X,J,L,Y.tag)};
BV3=function(A,L,O,X,x,J){Ce("TRANSACTION_ENDED",{objectStoreNames:X,connectionHasUnknownAbortedTransaction:A.hasUnknownAbortedTransaction,duration:x,isSuccessful:L,tryCount:O,tag:J===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":J})};
WO.prototype.getVersion=function(){return this.JSC$11647_wrapped.version};
WO.prototype.getName=function(){return this.JSC$11647_wrapped.name};
var KD=function(A){this.JSC$11662_wrapped=A};
KD.prototype.add=function(A,L){return jh(this.JSC$11662_wrapped.add(A,L))};
KD.prototype.autoIncrement=function(){return this.JSC$11662_wrapped.autoIncrement};
KD.prototype.clear=function(){return jh(this.JSC$11662_wrapped.clear()).then(function(){})};
var yb=function(A,L,O){A.JSC$11662_wrapped.createIndex(L,O,{unique:!1})};
KD.prototype.count=function(A){return jh(this.JSC$11662_wrapped.count(A))};
var Mvl=function(A,L){return k$(A,{query:L},function(O){return O.delete().then(function(){return O.continue()})}).then(function(){})};
KD.prototype.delete=function(A){return A instanceof IDBKeyRange?Mvl(this,A):jh(this.JSC$11662_wrapped.delete(A))};
KD.prototype.get=function(A){return jh(this.JSC$11662_wrapped.get(A))};
KD.prototype.getAll=function(A,L){return"getAll"in IDBObjectStore.prototype?jh(this.JSC$11662_wrapped.getAll(A,L)):$7N(this,A,L)};
var $7N=function(A,L,O){var X=[];return k$(A,{query:L},function(x){if(!(O!==void 0&&X.length>=O))return X.push(x.getValue()),x.continue()}).then(function(){return X})};
KD.prototype.index=function(A){try{return new Ga(this.JSC$11662_wrapped.index(A))}catch(L){if(L instanceof Error&&L.name==="NotFoundError")throw new pGe(A,this.JSC$11662_wrapped.name);throw L;}};
KD.prototype.getName=function(){return this.JSC$11662_wrapped.name};
KD.prototype.keyPath=function(){return this.JSC$11662_wrapped.keyPath};
KD.prototype.put=function(A,L){return jh(this.JSC$11662_wrapped.put(A,L))};
var k$=function(A,L,O){A=A.JSC$11662_wrapped.openCursor(L.query,L.direction);return aZH(A).then(function(X){return cYy(X,O)})},HO=function(A){var L=this;
this.JSC$11670_wrapped=A;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(O,X){L.JSC$11670_wrapped.addEventListener("complete",function(){O()});
L.JSC$11670_wrapped.addEventListener("error",function(x){x.currentTarget===x.target&&X(L.JSC$11670_wrapped.error)});
L.JSC$11670_wrapped.addEventListener("abort",function(){var x=L.JSC$11670_wrapped.error;if(x)X(x);else if(!L.aborted){x=m7;for(var J=L.JSC$11670_wrapped.objectStoreNames,Y=[],T=0;T<J.length;T++){var V=J.item(T);if(V===null)throw Error("Sc");Y.push(V)}x=new x("UNKNOWN_ABORT",{objectStoreNames:Y.join(),dbName:L.JSC$11670_wrapped.db.name,mode:L.JSC$11670_wrapped.mode});X(x)}})})},HdH=function(A,L,O){var X=new Promise(function(x,J){try{var Y=L(A);
O&&A.commit();Y.then(function(T){x(T)}).catch(J)}catch(T){J(T),A.abort()}});
return Promise.all([X,A.done]).then(function(x){return _.d(x).next().value})};
HO.prototype.abort=function(){this.JSC$11670_wrapped.abort();this.aborted=!0;throw new m7("EXPLICIT_ABORT");};
HO.prototype.commit=function(){if(!this.aborted){var A,L;(L=(A=this.JSC$11670_wrapped).commit)==null||L.call(A)}};
HO.prototype.objectStore=function(A){A=this.JSC$11670_wrapped.objectStore(A);var L=this.objectStoreCache.get(A);L||(L=new KD(A),this.objectStoreCache.set(A,L));return L};
var Ga=function(A){this.JSC$11672_wrapped=A};
Ga.prototype.count=function(A){return jh(this.JSC$11672_wrapped.count(A))};
Ga.prototype.delete=function(A){return _.XW(this,{query:A},function(L){return L.delete().then(function(){return L.continue()})})};
Ga.prototype.get=function(A){return jh(this.JSC$11672_wrapped.get(A))};
Ga.prototype.getAll=function(A,L){return"getAll"in IDBIndex.prototype?jh(this.JSC$11672_wrapped.getAll(A,L)):kkg(this,A,L)};
var kkg=function(A,L,O){var X=[];return _.XW(A,{query:L},function(x){if(!(O!==void 0&&X.length>=O))return X.push(x.getValue()),x.continue()}).then(function(){return X})};
Ga.prototype.keyPath=function(){return this.JSC$11672_wrapped.keyPath};
Ga.prototype.unique=function(){return this.JSC$11672_wrapped.unique};
_.XW=function(A,L,O){A=A.JSC$11672_wrapped.openCursor(L.query===void 0?null:L.query,L.direction===void 0?"next":L.direction);return aZH(A).then(function(X){return cYy(X,O)})};
lA=function(A,L){this.request=A;this.cursor=L};
aZH=function(A){return jh(A).then(function(L){return L?new lA(A,L):null})};
lA.prototype.continue=function(A){this.cursor.continue(A);return aZH(this.request)};
lA.prototype.delete=function(){return jh(this.cursor.delete()).then(function(){})};
lA.prototype.getValue=function(){return this.cursor.value};
lA.prototype.update=function(A){return jh(this.cursor.update(A))};var cF=function(A,L){this.name=A;this.options=L;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},U7l;
cF.prototype.openDb=function(A,L,O){O=O===void 0?{}:O;return FCy(A,L,O)};
cF.prototype.delete=function(A){A=A===void 0?{}:A;return _.BO(this.name,A)};
U7l=function(A,L){return new m7("INCOMPATIBLE_DB_VERSION",{dbName:A.name,oldVersion:A.options.version,newVersion:L})};
_.MO=function(A,L){if(!L)throw IZ("openWithToken",RZ(A.name));return A.open()};
cF.prototype.open=function(){var A=this;if(!this.isCompatible)throw U7l(this);if(this.connectionPromise)return this.connectionPromise;var L,O=function(){A.connectionPromise===L&&(A.connectionPromise=void 0)},X={blocking:function(J){J.close()},
closed:O,terminated:O,upgrade:this.options.upgrade},x=function(){var J,Y,T,V,E,n,t,b,S,w;return _.u(function(l){switch(l.nextAddress){case 1:return Y=(J=Error().stack)!=null?J:"",_.e4(l,2),l.yield(A.openDb(A.name,A.options.version,X),4);case 4:for(var F=T=l.yieldResult,R=A.options,y=[],M=_.d(Object.keys(R.objectStores)),H=M.next();!H.done;H=M.next()){H=H.value;var z=R.objectStores[H],a=z.removedAtVersion===void 0?Number.MAX_VALUE:z.removedAtVersion;!(F.JSC$11647_wrapped.version>=z.addedAtVersion)||
F.JSC$11647_wrapped.version>=a||F.JSC$11647_wrapped.objectStoreNames.contains(H)||y.push(H)}V=y;if(V.length===0){l.jumpTo(5);break}E=Object.keys(A.options.objectStores);n=T.objectStoreNames();if(A.timesReopenedToFixMissingObjectStore<_.PO("ytidb_reopen_db_retries",0))return A.timesReopenedToFixMissingObjectStore++,T.close(),_.cO(new m7("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:A.name,expectedObjectStores:E,foundObjectStores:n})),l.return(x());if(!(A.timesDeletedToFixMissingObjectStore<_.PO("ytidb_remake_db_retries",
1))){l.jumpTo(6);break}A.timesDeletedToFixMissingObjectStore++;return l.yield(A.delete(),7);case 7:return _.cO(new m7("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:A.name,expectedObjectStores:E,foundObjectStores:n})),l.return(x());case 6:throw new IZj(n,E);case 5:return l.return(T);case 2:t=_.S4(l);if(t instanceof DOMException?t.name!=="VersionError":"DOMError"in self&&t instanceof DOMError?t.name!=="VersionError":!(t instanceof Object&&"message"in t)||t.message!=="An attempt was made to open a database using a lower version than the existing version."){l.jumpTo(8);
break}return l.yield(A.openDb(A.name,void 0,Object.assign({},X,{upgrade:void 0})),9);case 9:b=l.yieldResult;S=b.getVersion();if(A.options.version!==void 0&&S>A.options.version+1)throw b.close(),A.isCompatible=!1,U7l(A,S);return l.return(b);case 8:throw O(),t instanceof Error&&!_.h("ytidb_async_stack_killswitch")&&(t.stack=t.stack+"\n"+Y.substring(Y.indexOf("\n")+1)),Nhe(t,A.name,"",(w=A.options.version)!=null?w:-1);}})};
return this.connectionPromise=L=x()};var RD_=new cF("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(A,L){L(1)&&IN(A,"databases",{keyPath:"actualName"})}});var jmp,yYe=new function(){}(new function(){});new _.EP;var vdj=function(A,L){cF.call(this,A,L);this.options=L;F5(A)};
_.g(vdj,cF);var vBe=function(A,L){var O;return function(){O||(O=new vdj(A,L));return O}};
vdj.prototype.openDb=function(A,L,O){O=O===void 0?{}:O;return(this.options.shared?MMu:Bhp)(A,L,Object.assign({},O))};
vdj.prototype.delete=function(A){A=A===void 0?{}:A;return(this.options.shared?Uap:$au)(this.name,A)};var odn={},oBu=LH("ytGcfConfig",{objectStores:(odn.coldConfigStore={addedAtVersion:1},odn.hotConfigStore={addedAtVersion:1},odn),shared:!1,upgrade:function(A,L){L(1)&&(yb(IN(A,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),yb(IN(A,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var A9l=function(){_.p$.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var A=_.WY("yt.gcf.config.hotUpdateCallbacks");A?(this.localHotConfigJobQueue=[].concat(_.le(A)),this.sharedHotConfigJobQueue=A):(this.sharedHotConfigJobQueue=[],_.oZ("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.g(A9l,_.p$);A9l.prototype.disposeInternal=function(){for(var A=_.d(this.localHotConfigJobQueue),L=A.next();!L.done;L=A.next()){var O=this.sharedHotConfigJobQueue;L=O.indexOf(L.value);L>=0&&O.splice(L,1)}this.localHotConfigJobQueue.length=0;_.p$.prototype.disposeInternal.call(this)};var ig=function(){var A=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new A9l;this.TEST_ONLY={initializeConfigDb:function(){A.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return A.coldGlobalConfigGroup},
setHotConfigGroup:function(L){LUJ(A,L)},
setHotHashData:function(L){A.setHotHashData(L)},
setColdConfigGroup:function(L){OhJ(A,L)},
getColdHashData:function(){return A.coldHashData},
getHotHashData:function(){return A.hotHashData},
getHotConfigGroup:function(){return A.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return X3l()},
getExportedHotConfigGroup:function(){return CD()},
getExportedColdHashData:function(){return _.WY("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.WY("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){xAc(A)},
resetInstance:function(){A.setHotHashData(void 0);sF7(A);delete ig.instance},
setDebounceTimer:function(L){A.debounceTimer=L},
getDebounceTimer:function(){return A.debounceTimer}}},J9j=function(){if(!ig.instance){var A=new ig;
ig.instance=A}return ig.instance},YIN=function(A){var L;
_.u(function(O){if(O.nextAddress==1)return _.h("start_client_gcf")||_.h("delete_gcf_config_db")?_.h("start_client_gcf")?O.yield(_.A4(),3):O.jumpTo(2):O.return();O.nextAddress!=2&&((L=O.yieldResult)&&_.wN()&&!_.h("delete_gcf_config_db")?(A.isConfigDbInitialized=!0,xAc(A)):(PiN(A),dAL(A)));return _.h("delete_gcf_config_db")?O.yield(sas(),0):O.jumpTo(0)})},Nd=function(){var A;
return(A=CD())!=null?A:_.ms("RAW_HOT_CONFIG_GROUP")},un3=function(A){var L,O,X,x,J,Y;
return _.u(function(T){switch(T.nextAddress){case 1:if(A.hotGlobalConfigGroup)return T.return(CD());if(!A.isConfigDbInitialized)return L=IZ("getHotConfig IDB not initialized"),_.HY(L),T.return(Promise.reject(L));O=vO();X=_.ms("TIME_CREATED_MS");if(!O){x=IZ("getHotConfig token error");_.HY(x);T.jumpTo(2);break}return T.yield(xTu(O),3);case 3:if((J=T.yieldResult)&&J.timestamp>X)return LUJ(A,J.config),A.setHotHashData(J.hashData),T.return(CD());case 2:dAL(A);if(!(O&&A.hotGlobalConfigGroup&&A.hotHashData)){T.jumpTo(4);
break}return T.yield(Lue(A.hotGlobalConfigGroup,A.hotHashData,O,X),4);case 4:return A.hotGlobalConfigGroup?T.return(CD()):(Y=new _.pe("Config not available in ytConfig"),_.HY(Y),T.return(Promise.reject(Y)))}})},Vfc=function(A){var L,O,X,x,J,Y;
return _.u(function(T){switch(T.nextAddress){case 1:if(A.coldGlobalConfigGroup)return T.return(X3l());if(!A.isConfigDbInitialized)return L=IZ("getColdConfig IDB not initialized"),_.HY(L),T.return(Promise.reject(L));O=vO();X=_.ms("TIME_CREATED_MS");if(!O){x=IZ("getColdConfig");_.HY(x);T.jumpTo(2);break}return T.yield(XyD(O),3);case 3:if((J=T.yieldResult)&&J.timestamp>X)return OhJ(A,J.config),T6N(A,J.configData),sF7(A,J.hashData),T.return(X3l());case 2:PiN(A);if(!(O&&A.coldGlobalConfigGroup&&A.coldHashData&&
A.configData)){T.jumpTo(4);break}return T.yield(O3P(A.coldGlobalConfigGroup,A.coldHashData,A.configData,O,X),4);case 4:return A.coldGlobalConfigGroup?T.return(X3l()):(Y=new _.pe("Config not available in ytConfig"),_.HY(Y),T.return(Promise.reject(Y)))}})},xAc=function(A){if(!A.hotGlobalConfigGroup||!A.coldGlobalConfigGroup){if(!vO()){var L=IZ("scheduleGetConfigs");
_.HY(L)}A.initJob||(A.initJob=_.c1.addLowPriorityJob(function(){return _.u(function(O){switch(O.nextAddress){case 1:return _.e4(O,2),O.yield(un3(A),4);case 4:_.zA(O,3);break;case 2:_.S4(O);case 3:return _.e4(O,5),O.yield(Vfc(A),7);case 7:_.zA(O,6);break;case 5:_.S4(O);case 6:A.initJob&&(A.initJob=0),_.qo(O)}})},100))}},LNd=function(A,L,O){var X,x,J;
return _.u(function(Y){switch(Y.nextAddress){case 1:if(!_.h("start_client_gcf")){Y.jumpTo(0);break}O&&LUJ(A,O);A.setHotHashData(L);X=vO();if(!X){Y.jumpTo(3);break}if(O){Y.jumpTo(4);break}return Y.yield(xTu(X),5);case 5:x=Y.yieldResult,O=(J=x)==null?void 0:J.config;case 4:return Y.yield(Lue(O,L,X),3);case 3:if(O)for(var T=O,V=_.d(A.configUpdateService.sharedHotConfigJobQueue),E=V.next();!E.done;E=V.next())E=E.value,E(T);_.qo(Y)}})},Ouu=function(A,L,O){var X,x,J,Y;
return _.u(function(T){if(T.nextAddress==1){if(!_.h("start_client_gcf"))return T.jumpTo(0);sF7(A,L);return(X=vO())?O?T.jumpTo(4):T.yield(XyD(X),5):T.jumpTo(0)}T.nextAddress!=4&&(x=T.yieldResult,O=(J=x)==null?void 0:J.config);if(!O)return T.jumpTo(0);Y=O.configData;return T.yield(O3P(O,L,Y,X),0)})},wyp=function(){var A=J9j(),L=(0,_.O$)()-A.debounceTimer;
if(!(A.debounceTimer!==0&&L<_.PO("send_config_hash_timer"))){L=_.WY("yt.gcf.config.coldConfigData");var O=_.WY("yt.gcf.config.hotHashData"),X=_.WY("yt.gcf.config.coldHashData");L&&O&&X&&(A.debounceTimer=(0,_.O$)());return{coldConfigData:L,hotHashData:O,coldHashData:X}}},PiN=function(A){OhJ(A,_.ms("RAW_COLD_CONFIG_GROUP"));
sF7(A,_.ms("SERIALIZED_COLD_HASH_DATA"));var L;T6N(A,(L=A.coldGlobalConfigGroup)==null?void 0:L.configData)},dAL=function(A){LUJ(A,_.ms("RAW_HOT_CONFIG_GROUP"));
A.setHotHashData(_.ms("SERIALIZED_HOT_HASH_DATA"))},LUJ=function(A,L){A.hotGlobalConfigGroup=L;
_.oZ("yt.gcf.config.hotConfigGroup",A.hotGlobalConfigGroup||null)},OhJ=function(A,L){A.coldGlobalConfigGroup=L;
_.oZ("yt.gcf.config.coldConfigGroup",A.coldGlobalConfigGroup||null)};
ig.prototype.setHotHashData=function(A){this.hotHashData=A;_.oZ("yt.gcf.config.hotHashData",this.hotHashData||null)};
var sF7=function(A,L){A.coldHashData=L;_.oZ("yt.gcf.config.coldHashData",A.coldHashData||null)},T6N=function(A,L){A.configData=L;
_.oZ("yt.gcf.config.coldConfigData",A.configData||null)},CD=function(){return _.WY("yt.gcf.config.hotConfigGroup")},X3l=function(){return _.WY("yt.gcf.config.coldConfigGroup")};var Vb={},DAN=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";Vb.assign=function(A){for(var L=Array.prototype.slice.call(arguments,1);L.length;){var O=L.shift();if(O){if(typeof O!=="object")throw new TypeError("Vc`"+O);for(var X in O)Object.prototype.hasOwnProperty.call(O,X)&&(A[X]=O[X])}}return A};
Vb.shrinkBuf=function(A,L){if(A.length===L)return A;if(A.subarray)return A.subarray(0,L);A.length=L;return A};
var eF3={arraySet:function(A,L,O,X,x){if(L.subarray&&A.subarray)A.set(L.subarray(O,O+X),x);else for(var J=0;J<X;J++)A[x+J]=L[O+J]},
flattenChunks:function(A){var L,O;var X=O=0;for(L=A.length;X<L;X++)O+=A[X].length;var x=new Uint8Array(O);X=O=0;for(L=A.length;X<L;X++){var J=A[X];x.set(J,O);O+=J.length}return x}},EOL={arraySet:function(A,L,O,X,x){for(var J=0;J<X;J++)A[x+J]=L[O+J]},
flattenChunks:function(A){return[].concat.apply([],A)}};
Vb.setTyped=function(){DAN?(Vb.Buf8=Uint8Array,Vb.Buf16=Uint16Array,Vb.Buf32=Int32Array,Vb.assign(Vb,eF3)):(Vb.Buf8=Array,Vb.Buf16=Array,Vb.Buf32=Array,Vb.assign(Vb,EOL))};
Vb.setTyped();var nO7=!0;try{new Uint8Array(1)}catch(A){nO7=!1}
var xRM=function(A){var L,O,X=A.length,x=0;for(L=0;L<X;L++){var J=A.charCodeAt(L);if((J&64512)===55296&&L+1<X){var Y=A.charCodeAt(L+1);(Y&64512)===56320&&(J=65536+(J-55296<<10)+(Y-56320),L++)}x+=J<128?1:J<2048?2:J<65536?3:4}var T=new Vb.Buf8(x);for(L=O=0;O<x;L++)J=A.charCodeAt(L),(J&64512)===55296&&L+1<X&&(Y=A.charCodeAt(L+1),(Y&64512)===56320&&(J=65536+(J-55296<<10)+(Y-56320),L++)),J<128?T[O++]=J:(J<2048?T[O++]=192|J>>>6:(J<65536?T[O++]=224|J>>>12:(T[O++]=240|J>>>18,T[O++]=128|J>>>12&63),T[O++]=
128|J>>>6&63),T[O++]=128|J&63);return T};var zcP={};zcP=function(A,L,O,X){var x=A&65535|0;A=A>>>16&65535|0;for(var J;O!==0;){J=O>2E3?2E3:O;O-=J;do x=x+L[X++]|0,A=A+x|0;while(--J);x%=65521;A%=65521}return x|A<<16|0};for(var N6={},F8,tfN=[],bhN=0;bhN<256;bhN++){F8=bhN;for(var hFu=0;hFu<8;hFu++)F8=F8&1?3988292384^F8>>>1:F8>>>1;tfN[bhN]=F8}N6=function(A,L,O,X){O=X+O;for(A^=-1;X<O;X++)A=A>>>8^tfN[(A^L[X])&255];return A^-1};var nH={};nH={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 FuP=[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],Qar=[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],XDy=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],WuJ=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],SY=Array(576);dR(SY);var q6=Array(60);dR(q6);var eY=Array(512);dR(eY);var Dc=Array(256);dR(Dc);var Rcs=Array(29);dR(Rcs);var mTd=Array(30);dR(mTd);var ATJ,LiD,O4d,ocD=!1;var l8;
l8=[new GY(0,0,0,0,function(A,L){var O=65535;for(O>A.pending_buf_size-5&&(O=A.pending_buf_size-5);;){if(A.lookahead<=1){rR(A);if(A.lookahead===0&&L===0)return 1;if(A.lookahead===0)break}A.strstart+=A.lookahead;A.lookahead=0;var X=A.block_start+O;if(A.strstart===0||A.strstart>=X)if(A.lookahead=A.strstart-X,A.strstart=X,wR(A,!1),A.strm.avail_out===0)return 1;if(A.strstart-A.block_start>=A.w_size-262&&(wR(A,!1),A.strm.avail_out===0))return 1}A.insert=0;if(L===4)return wR(A,!0),A.strm.avail_out===0?3:
4;A.strstart>A.block_start&&wR(A,!1);return 1}),
new GY(4,4,8,4,BMJ),new GY(4,5,16,8,BMJ),new GY(4,6,32,32,BMJ),new GY(4,4,16,16,KH),new GY(8,16,32,32,KH),new GY(8,16,128,128,KH),new GY(8,32,128,256,KH),new GY(32,128,258,1024,KH),new GY(32,258,258,4096,KH)];var vcM={};vcM=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 sJp=Object.prototype.toString;
UTu.prototype.push=function(A,L){var O=this.strm,X=this.options.chunkSize;if(this.ended)return!1;var x=L===~~L?L:L===!0?4:0;typeof A==="string"?O.input=xRM(A):sJp.call(A)==="[object ArrayBuffer]"?O.input=new Uint8Array(A):O.input=A;O.next_in=0;O.avail_in=O.input.length;do{O.avail_out===0&&(O.output=new Vb.Buf8(X),O.next_out=0,O.avail_out=X);A=km_(O,x);if(A!==1&&A!==0)return SIn(this,A),this.ended=!0,!1;if(O.avail_out===0||O.avail_in===0&&(x===4||x===2))if(this.options.to==="string"){var J=Vb.shrinkBuf(O.output,
O.next_out);L=J;J=J.length;if(J<65537&&(L.subarray&&nO7||!L.subarray))L=String.fromCharCode.apply(null,Vb.shrinkBuf(L,J));else{for(var Y="",T=0;T<J;T++)Y+=String.fromCharCode(L[T]);L=Y}this.chunks.push(L)}else L=Vb.shrinkBuf(O.output,O.next_out),this.chunks.push(L)}while((O.avail_in>0||O.avail_out===0)&&A!==1);if(x===4)return(O=this.strm)&&O.state?(X=O.state.status,X!==42&&X!==69&&X!==73&&X!==91&&X!==103&&X!==113&&X!==666?A=t4(O,-2):(O.state=null,A=X===113?t4(O,-3):0)):A=-2,SIn(this,A),this.ended=
!0,A===0;x===2&&(SIn(this,0),O.avail_out=0);return!0};
var SIn=function(A,L){L===0&&(A.result=A.options.to==="string"?A.chunks.join(""):Vb.flattenChunks(A.chunks));A.chunks=[];A.err=L;A.msg=A.strm.msg};var qIg=typeof TextEncoder!=="undefined"?new TextEncoder:null,RBO=qIg?function(A){return qIg.encode(A)}:function(A){A=_.wX(A);
for(var L=new Uint8Array(A.length),O=0;O<L.length;O++)L[O]=A[O];return L};var d5u={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},ute={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var RM=function(A,L){this.version=A;this.args=L};
RM.prototype.serialize=function(){return{version:this.version,args:this.args}};var uS9=function(A,L){this.topic=A;this.dataClass=L};
uS9.prototype.toString=function(){return this.topic};var gO6=_.WY("ytPubsub2Pubsub2Instance")||new _.tj;_.tj.prototype.subscribe=_.tj.prototype.subscribe;_.tj.prototype.unsubscribeByKey=_.tj.prototype.unsubscribeByKey;_.tj.prototype.publish=_.tj.prototype.publish;_.tj.prototype.clear=_.tj.prototype.clear;_.oZ("ytPubsub2Pubsub2Instance",gO6);var Ybe=_.WY("ytPubsub2Pubsub2SubscribedKeys")||{};_.oZ("ytPubsub2Pubsub2SubscribedKeys",Ybe);var VqP=_.WY("ytPubsub2Pubsub2TopicToKeys")||{};_.oZ("ytPubsub2Pubsub2TopicToKeys",VqP);
var Td_=_.WY("ytPubsub2Pubsub2IsAsync")||{};_.oZ("ytPubsub2Pubsub2IsAsync",Td_);_.oZ("ytPubsub2Pubsub2SkipSubKey",null);var gJe=void 0,Sbe=void 0;var lBu=_.PO("max_body_size_to_compress",5E5),cTe=_.PO("min_body_size_to_compress",500),FW=!0,fBD=0,RN=0,mRu=_.PO("compression_performance_threshold_lr",250),IBy=_.PO("slow_compressions_before_abandon_count",4),i4D=!1,NdM=new Map,Fi_=1,CyJ=!0;_.Ty(Qb,jJJ);Qb.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 w3N=function(A,L,O){O||(O=0);var X=A.W_;if(typeof L==="string")for(var x=0;x<16;x++)X[x]=L.charCodeAt(O)<<24|L.charCodeAt(O+1)<<16|L.charCodeAt(O+2)<<8|L.charCodeAt(O+3),O+=4;else for(x=0;x<16;x++)X[x]=L[O]<<24|L[O+1]<<16|L[O+2]<<8|L[O+3],O+=4;for(L=16;L<80;L++)O=X[L-3]^X[L-8]^X[L-14]^X[L-16],X[L]=(O<<1|O>>>31)&4294967295;L=A.chain_[0];O=A.chain_[1];x=A.chain_[2];for(var J=A.chain_[3],Y=A.chain_[4],T,V,E=0;E<80;E++)E<40?E<20?(T=J^O&(x^J),V=1518500249):(T=O^x^J,V=1859775393):E<60?(T=O&x|J&(O|x),
V=2400959708):(T=O^x^J,V=3395469782),T=(L<<5|L>>>27)+T+Y+V+X[E]&4294967295,Y=J,J=x,x=(O<<30|O>>>2)&4294967295,O=L,L=T;A.chain_[0]=A.chain_[0]+L&4294967295;A.chain_[1]=A.chain_[1]+O&4294967295;A.chain_[2]=A.chain_[2]+x&4294967295;A.chain_[3]=A.chain_[3]+J&4294967295;A.chain_[4]=A.chain_[4]+Y&4294967295};
Qb.prototype.update=function(A,L){if(A!=null){L===void 0&&(L=A.length);for(var O=L-this.blockSize,X=0,x=this.buf_,J=this.inbuf_;X<L;){if(J==0)for(;X<=O;)w3N(this,A,X),X+=this.blockSize;if(typeof A==="string")for(;X<L;){if(x[J]=A.charCodeAt(X),++J,++X,J==this.blockSize){w3N(this,x);J=0;break}}else for(;X<L;)if(x[J]=A[X],++J,++X,J==this.blockSize){w3N(this,x);J=0;break}}this.inbuf_=J;this.total_+=L}};
Qb.prototype.digest=function(){var A=[],L=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var O=this.blockSize-1;O>=56;O--)this.buf_[O]=L&255,L/=256;w3N(this,this.buf_);for(O=L=0;O<5;O++)for(var X=24;X>=0;X-=8)A[L]=this.chain_[O]>>X&255,++L;return A};var zB9;var mD=function(A){var L=this;this.bypassDbTokenDependency=this.initialized=!1;this.potentialEsfErrorCounter=this.intervalJob=0;this.handleError=function(){};
this.handleWarning=function(){};
this.now=Date.now;this.disableYtIdbTransactions=!1;this.TEST_ONLY={setDbToken:function(n){L.databaseToken=n},
triggerThrottle:function(){L.throttledSend()},
cancelThrottle:function(){L.cancelThrottledSend()},
immediateSend:function(n){return _.u(function(t){return t.yield(L.immediateSend(n),0)})},
requestWithinAgeLimit:function(n,t){return L.requestWithinAgeLimit(n,t)},
retryQueuedRequests:function(){L.retryQueuedRequests()}};
var O;this.throttleTimeout=(O=A.throttleTimeout)!=null?O:100;var X;this.retryMaxAttempts=(X=A.retryMaxAttempts)!=null?X:1;var x;this.requestAgeLimitMs=(x=A.requestAgeLimitMs)!=null?x:2592E6;var J;this.queuedRequestAgeLimitMs=(J=A.queuedRequestAgeLimitMs)!=null?J:12E4;var Y;this.retryDelayMs=(Y=A.retryDelayMs)!=null?Y:5E3;var T;this.databaseToken=(T=A.databaseToken)!=null?T:void 0;this.enableCleaning=!!A.enableCleaning;var V;this.cleaningRate=(V=A.cleaningRate)!=null?V:.1;var E;this.potentialEsfErrorLimit=
(E=A.potentialEsfErrorLimit)!=null?E:10;A.handleError&&(this.handleError=A.handleError);A.handleWarning&&(this.handleWarning=A.handleWarning);A.disableYtIdbTransactions&&(this.disableYtIdbTransactions=A.disableYtIdbTransactions);A.bypassDbTokenDependency&&(this.bypassDbTokenDependency=A.bypassDbTokenDependency);this.getBooleanFlag=A.getBooleanFlag;this.jobManager=A.jobManager;this.logsStore=A.logsStore;this.networkManager=A.networkManager;this.sendFn=A.sendFn;this.onlineEvent=A.onlineEvent;this.offlineEvent=
A.offlineEvent;Qx(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&p37(this)},p37=function(A){Qx(A)&&!A.disableYtIdbTransactions&&(A.initialized=!0,A.enableCleaning&&Math.random()<=A.cleaningRate&&A.logsStore.cleanLogsStore(A.databaseToken),A.retryQueuedRequests(),A.networkManager.isNetworkAvailable()&&A.throttledSend(),A.networkManager.listen(A.onlineEvent,A.throttledSend.bind(A)),A.networkManager.listen(A.offlineEvent,A.cancelThrottledSend.bind(A)))};
_.P=mD.prototype;_.P.writeThenSend=function(A,L){var O=this;L=L===void 0?{}:L;if(Qx(this)&&this.initialized){var X={url:A,options:L,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(X,this.databaseToken).then(function(x){X.id=x;O.networkManager.isNetworkAvailable()&&O.immediateSend(X)}).catch(function(x){O.immediateSend(X);
ih6(O,x)})}else this.sendFn(A,L)};
_.P.sendThenWrite=function(A,L,O){var X=this;L=L===void 0?{}:L;if(Qx(this)&&this.initialized){var x={url:A,options:L,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(x.skipRetry=O);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!x.skipRetry){if(!x.skipRetry){var J=L.onError?L.onError:function(){};
L.onError=function(Y,T){return _.u(function(V){if(V.nextAddress==1)return V.yield(X.logsStore.set(x,X.databaseToken).catch(function(E){ih6(X,E)}),2);
J(Y,T);_.qo(V)})}}this.sendFn(A,L,x.skipRetry)}else this.logsStore.set(x,this.databaseToken).catch(function(Y){X.sendFn(A,L,x.skipRetry);
ih6(X,Y)})}else this.sendFn(A,L,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&O)};
_.P.sendAndWrite=function(A,L){var O=this;L=L===void 0?{}:L;if(Qx(this)&&this.initialized){var X={url:A,options:L,timestamp:this.now(),status:"NEW",sendCount:0},x=!1,J=L.onSuccess?L.onSuccess:function(){};
X.options.onSuccess=function(Y,T){X.id!==void 0?O.logsStore.deleteRequest(X.id,O.databaseToken):x=!0;O.networkManager.networkStatusHint&&O.getBooleanFlag&&O.getBooleanFlag("vss_network_hint")&&O.networkManager.networkStatusHint(!0);J(Y,T)};
this.sendFn(X.url,X.options,void 0,!0);this.logsStore.set(X,this.databaseToken).then(function(Y){X.id=Y;x&&O.logsStore.deleteRequest(X.id,O.databaseToken)}).catch(function(Y){ih6(O,Y)})}else this.sendFn(A,L,void 0,!0)};
_.P.throttledSend=function(){var A=this;if(!Qx(this))throw Error("Yc");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var L;return _.u(function(O){if(O.nextAddress==1)return O.yield(A.logsStore.getMostRecentByStatus("NEW",A.databaseToken),2);if(O.nextAddress!=3)return L=O.yieldResult,L?O.yield(A.immediateSend(L),3):(A.cancelThrottledSend(),O.return());A.intervalJob&&(A.intervalJob=0,A.throttledSend());_.qo(O)})},this.throttleTimeout))};
_.P.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.P.immediateSend=function(A){var L=this,O;return _.u(function(X){switch(X.nextAddress){case 1:if(!Qx(L))throw Error("Zc");if(A.id===void 0){X.jumpTo(2);break}return X.yield(L.logsStore.markAsQueued(A.id,L.databaseToken),3);case 3:(O=X.yieldResult)||L.handleWarning(Error("$c"));case 2:if(L.requestWithinAgeLimit(A,L.requestAgeLimitMs)){X.jumpTo(4);break}L.handleWarning(Error("ad"));if(A.id===void 0){X.jumpTo(5);break}return X.yield(L.logsStore.deleteRequest(A.id,L.databaseToken),5);case 5:return X.return();
case 4:A.skipRetry||(A=N6g(L,A));if(!A){X.jumpTo(0);break}if(!A.skipRetry||A.id===void 0){X.jumpTo(8);break}return X.yield(L.logsStore.deleteRequest(A.id,L.databaseToken),8);case 8:L.sendFn(A.url,A.options,!!A.skipRetry),_.qo(X)}})};
var N6g=function(A,L){if(!Qx(A))throw Error("bd");var O=L.options.onError?L.options.onError:function(){};
L.options.onError=function(x,J){var Y,T,V,E;return _.u(function(n){switch(n.nextAddress){case 1:Y=kKr(J);(T=URJ(J))&&A.getBooleanFlag&&A.getBooleanFlag("web_enable_error_204")&&A.handleError(Error("cd"),L.url,J);if(!(A.getBooleanFlag&&A.getBooleanFlag("nwl_consider_error_code")&&Y||A.getBooleanFlag&&!A.getBooleanFlag("nwl_consider_error_code")&&A.potentialEsfErrorCounter<=A.potentialEsfErrorLimit)){n.jumpTo(2);break}if(!A.networkManager.sendNetworkCheckRequest){n.jumpTo(3);break}return n.yield(A.networkManager.sendNetworkCheckRequest(),
3);case 3:if(A.networkManager.isNetworkAvailable()){n.jumpTo(2);break}O(x,J);if(!A.getBooleanFlag||!A.getBooleanFlag("nwl_consider_error_code")||((V=L)==null?void 0:V.id)===void 0){n.jumpTo(6);break}return n.yield(A.logsStore.resetRequest(L.id,A.databaseToken,!1),6);case 6:return n.return();case 2:if(A.getBooleanFlag&&A.getBooleanFlag("nwl_consider_error_code")&&!Y&&A.potentialEsfErrorCounter>A.potentialEsfErrorLimit)return n.return();A.potentialEsfErrorCounter++;if(((E=L)==null?void 0:E.id)===void 0){n.jumpTo(8);
break}return L.sendCount<A.retryMaxAttempts?n.yield(A.logsStore.resetRequest(L.id,A.databaseToken,!0,T?!1:void 0),12):n.yield(A.logsStore.deleteRequest(L.id,A.databaseToken),8);case 12:A.jobManager.addLowPriorityJob(function(){A.networkManager.isNetworkAvailable()&&A.throttledSend()},A.retryDelayMs);
case 8:O(x,J),_.qo(n)}})};
var X=L.options.onSuccess?L.options.onSuccess:function(){};
L.options.onSuccess=function(x,J){var Y;return _.u(function(T){if(T.nextAddress==1)return((Y=L)==null?void 0:Y.id)===void 0?T.jumpTo(2):T.yield(A.logsStore.deleteRequest(L.id,A.databaseToken),2);A.networkManager.networkStatusHint&&A.getBooleanFlag&&A.getBooleanFlag("vss_network_hint")&&A.networkManager.networkStatusHint(!0);X(x,J);_.qo(T)})};
return L};
mD.prototype.requestWithinAgeLimit=function(A,L){A=A.timestamp;return this.now()-A>=L?!1:!0};
mD.prototype.retryQueuedRequests=function(){var A=this;if(!Qx(this))throw Error("dd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(L){L&&!A.requestWithinAgeLimit(L,A.queuedRequestAgeLimitMs)?A.jobManager.addLowPriorityJob(function(){return _.u(function(O){if(O.nextAddress==1)return L.id===void 0?O.jumpTo(2):O.yield(A.logsStore.resetRequest(L.id,A.databaseToken),2);A.retryQueuedRequests();_.qo(O)})}):A.networkManager.isNetworkAvailable()&&A.throttledSend()})};
var ih6=function(A,L){A.writeError&&!A.networkManager.isNetworkAvailable()?A.writeError(L):A.handleError(L)},Qx=function(A){return!!A.databaseToken||A.bypassDbTokenDependency};var vJd;var sDs={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73,
visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88,
spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153,
vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,
mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,
kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387,
transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,
ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,
ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221,
accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245,
musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270,
yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296,
notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,
tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,
iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,
mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,
mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,
clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,
mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,
mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,
cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,
startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,
keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515,
adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527};var r9l={},dbM=LH("ServiceWorkerLogsDatabase",{objectStores:(r9l.SWHealthLog={addedAtVersion:1},r9l),shared:!0,upgrade:function(A,L){L(1)&&yb(IN(A,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var na_={},Ea9=0;var SYu;var fD=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},zY=function(){if(!fD.instance){var A=_.WY("yt.networkRequestMonitor.instance")||new fD;
_.oZ("yt.networkRequestMonitor.instance",A);fD.instance=A}return fD.instance};
fD.prototype.requestComplete=function(A,L){L&&(this.anyRequestHasSucceeded=!0);A=this.removeParams(A);this.requestMap.get(A)||this.requestMap.set(A,L)};
fD.prototype.isEndpointCFR=function(A){A=this.removeParams(A);return(A=this.requestMap.get(A))?!1:A===!1&&this.anyRequestHasSucceeded?!0:null};
fD.prototype.removeParams=function(A){return A.split("?")[0]};
fD.prototype.removeParams=fD.prototype.removeParams;fD.prototype.isEndpointCFR=fD.prototype.isEndpointCFR;fD.prototype.requestComplete=fD.prototype.requestComplete;fD.getInstance=zY;var IM=function(A){_.lb.call(this);var L=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=A!=null?A:{addLowPriorityJob:function(x,J){return setTimeout(x,J)},
cancelJob:function(x){clearTimeout(x)}};
var O,X;this.isOnline=(X=(O=window.navigator)==null?void 0:O.onLine)!=null?X:!0;this.onNavigatorChange=function(){return _.u(function(x){return x.yield(KU6(L),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||GNL(this)};
_.g(IM,_.lb);IM.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete IM.instance};
IM.prototype.isNetworkAvailable=function(){return this.isOnline};
var GNL=function(A){A.pollingJob=A.jobManager.addLowPriorityJob(function(){var L;return _.u(function(O){if(O.nextAddress==1)return A.isOnline?((L=window.navigator)==null?0:L.onLine)?O.jumpTo(3):O.yield(KU6(A),3):O.yield(KU6(A),3);GNL(A);_.qo(O)})},3E4)},KU6=function(A,L){return A.networkRequestPromise?A.networkRequestPromise:A.networkRequestPromise=new Promise(function(O){var X,x,J,Y;
return _.u(function(T){switch(T.nextAddress){case 1:return X=window.AbortController?new window.AbortController:void 0,J=(x=X)==null?void 0:x.signal,Y=!1,_.e4(T,2,3),X&&(A.abortTimeoutKey=A.jobManager.addLowPriorityJob(function(){X.abort()},L||2E4)),T.yield(fetch("/generate_204",{method:"HEAD",
signal:J}),5);case 5:Y=!0;case 3:_.tn(T);A.networkRequestPromise=void 0;A.abortTimeoutKey&&(A.jobManager.cancelJob(A.abortTimeoutKey),A.abortTimeoutKey=0);Y!==A.isOnline&&(A.isOnline=Y,A.isOnline?A.dispatchEvent("networkstatus-online"):A.dispatchEvent("networkstatus-offline"));O(Y);_.hn(T,0);break;case 2:_.S4(T),Y=!1,T.jumpTo(3)}})})};var yx=function(){_.lb.call(this);var A=this;this.shouldFlushErrors=!1;IM.instance||(IM.instance=new IM(_.c1));this.sharedNetworkStatusManager=IM.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(A.shouldFlushErrors&&_.h("offline_error_handling")){var L=qYM().get("errors",!0);if(L){for(var O in L)if(L[O]){var X=new _.pe(O,"sent via offline_errors");X.name=L[O].name;X.stack=L[O].stack;X.level=L[O].level;_.IO(X)}qYM().set("errors",{},2592E3,!0)}}})};
_.g(yx,_.lb);var lxu=function(){if(!yx.instance){var A=_.WY("yt.networkStatusManager.instance")||new yx;_.oZ("yt.networkStatusManager.instance",A);yx.instance=A}return yx.instance};
_.P=yx.prototype;_.P.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.P.networkStatusHint=function(A){this.sharedNetworkStatusManager.isOnline=A};
_.P.getWindowStatus=function(){var A=window.navigator.onLine;return A===void 0?!0:A};
_.P.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.P.listen=function(A,L){return this.sharedNetworkStatusManager.listen(A,L)};
_.P.sendNetworkCheckRequest=function(A){A=KU6(this.sharedNetworkStatusManager,A);A.then(function(L){_.h("use_cfr_monitor")&&zY().requestComplete("generate_204",L)});
return A};
yx.prototype.sendNetworkCheckRequest=yx.prototype.sendNetworkCheckRequest;yx.prototype.listen=yx.prototype.listen;yx.prototype.enableErrorFlushing=yx.prototype.enableErrorFlushing;yx.prototype.getWindowStatus=yx.prototype.getWindowStatus;yx.prototype.networkStatusHint=yx.prototype.networkStatusHint;yx.prototype.isNetworkAvailable=yx.prototype.isNetworkAvailable;yx.getInstance=lxu;_.H1=function(A){A=A===void 0?{}:A;_.lb.call(this);var L=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=lxu();var O=_.WY("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);O&&(A.rateLimit?(this.rateLimit=A.rateLimit,O("networkstatus-online",function(){c97(L,"publicytnetworkstatus-online")}),O("networkstatus-offline",function(){c97(L,"publicytnetworkstatus-offline")})):(O("networkstatus-online",function(){L.dispatchEvent("publicytnetworkstatus-online")}),O("networkstatus-offline",
function(){L.dispatchEvent("publicytnetworkstatus-offline")})))};
_.g(_.H1,_.lb);_.H1.prototype.isNetworkAvailable=function(){var A=_.WY("yt.networkStatusManager.instance.isNetworkAvailable");return A?A.bind(this.nsmInstance)():!0};
_.H1.prototype.networkStatusHint=function(A){var L=_.WY("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);L&&L(A)};
_.H1.prototype.sendNetworkCheckRequest=function(A){var L=this,O;return _.u(function(X){O=_.WY("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(L.nsmInstance);return _.h("skip_network_check_if_cfr")&&zY().isEndpointCFR("generate_204")?X.return(new Promise(function(x){var J;L.networkStatusHint(((J=window.navigator)==null?void 0:J.onLine)||!0);x(L.isNetworkAvailable())})):O?X.return(O(A)):X.return(!0)})};
var c97=function(A,L){A.rateLimit?A.lastJobTime?(_.c1.cancelJob(A.schedulerJob),A.schedulerJob=_.c1.addLowPriorityJob(function(){A.lastPublicSignalSent!==L&&(A.dispatchEvent(L),A.lastPublicSignalSent=L,A.lastJobTime=(0,_.O$)())},A.rateLimit-((0,_.O$)()-A.lastJobTime))):(A.dispatchEvent(L),A.lastPublicSignalSent=L,A.lastJobTime=(0,_.O$)()):A.dispatchEvent(L)};var NWp,ZI=function(){mD.call(this,{logsStore:{cleanLogsStore:Jt_,deleteRequest:syu,getMostRecentByStatus:OTO,markAsQueued:XRM,resetRequest:xb_,set:LeD},networkManager:_.rtD(),handleError:function(A,L,O){var X,x=O==null?void 0:(X=O.error)==null?void 0:X.code;if(x===400||x===415){var J;A=new _.pe(A.message,L,O==null?void 0:(J=O.error)==null?void 0:J.code);_.HY(A,void 0,void 0,void 0,!0)}else _.IO(A)},
handleWarning:_.HY,sendFn:pR9,now:_.O$,writeError:gae,jobManager:_.Q7(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.PO("potential_esf_error_limit",10),getBooleanFlag:_.h,disableYtIdbTransactions:!(_.wN()&&_.Ked())});this.initializationPromise=new _.EP;_.h("networkless_immediately_drop_all_requests")&&PVu();Uap("LogsDatabaseV2")};
_.g(ZI,mD);_.FUu=function(){var A=_.WY("yt.networklessRequestController.instance");A||(A=new ZI,_.oZ("yt.networklessRequestController.instance",A),_.h("networkless_logging")&&_.A4().then(function(L){A.databaseToken=L;p37(A);A.initializationPromise.resolve();A.enableCleaning&&Math.random()<=A.cleaningRate&&A.databaseToken&&uIp(A.databaseToken);_.h("networkless_immediately_drop_sw_health_store")&&Cij(A)}));
return A};
ZI.prototype.writeThenSend=function(A,L){L||(L={});L=iTr(A,L);_.wN()||(this.initialized=!1);mD.prototype.writeThenSend.call(this,A,L)};
ZI.prototype.sendThenWrite=function(A,L,O){L||(L={});L=iTr(A,L);_.wN()||(this.initialized=!1);mD.prototype.sendThenWrite.call(this,A,L,O)};
ZI.prototype.sendAndWrite=function(A,L){L||(L={});L=iTr(A,L);_.wN()||(this.initialized=!1);mD.prototype.sendAndWrite.call(this,A,L)};
ZI.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var Cij=function(A){var L;_.u(function(O){if(!A.databaseToken)throw L=IZ("clearSWHealthLogsDb"),L;return O.return(TWe(A.databaseToken).catch(function(X){A.handleError(X)}))})};_.lXu=!1;_.GiP=_.Ou.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.lXu};_.oZ("ytNetworklessLoggingInitializationOptions",_.GiP);var Gu=function(A){var L=this;this.config_=null;A?this.config_=A:JiJ()&&(this.config_=_.xo());_.p7(_.c1,function(){aBM(L)},5E3)};
Gu.prototype.isReady=function(){!this.config_&&JiJ()&&(this.config_=_.xo());return!!this.config_};
var $Rs=function(A,L,O,X){!_.ms("VISITOR_DATA")&&L!=="visitor_id"&&Math.random()<.01&&_.HY(new _.pe("Missing VISITOR_DATA when sending innertube request.",L,O,X));if(!A.isReady()){var x=new _.pe("innertube xhrclient not ready",L,O,X);_.IO(x);throw x;}var J={headers:X.headers||{},method:"POST",postParams:O,postBody:X.postBody,postBodyFormat:X.postBodyFormat||"JSON",onTimeout:function(){X.onTimeout()},
onFetchTimeout:X.onTimeout,onSuccess:function(t,b){if(X.onSuccess)X.onSuccess(b)},
onFetchSuccess:function(t){if(X.onSuccess)X.onSuccess(t)},
onProgress:function(t){if(X.onProgress)X.onProgress(t)},
onError:function(t,b){if(X.onError)X.onError(b)},
onFetchError:function(t){if(X.onError)X.onError(t)},
timeout:X.timeout,withCredentials:!0,compress:X.compress};J.headers["Content-Type"]||(J.headers["Content-Type"]="application/json");var Y="";(x=A.config_.innertubeHostOverride)&&(Y=x);var T=A.config_.innertubeUseThirdPartyAuth||!1,V=_.gc9(T,Y,X);Object.assign(J.headers,V);J.headers.Authorization&&!Y&&T&&(J.headers["x-origin"]=window.location.origin);var E=_.aO(Y+("/youtubei/"+A.config_.innertubeApiVersion+"/"+L),{alt:"json"}),n=function(t){t=t===void 0?!1:t;var b;if(X.retry&&Y!="www.youtube-nocookie.com"&&
(t||_.h("skip_ls_gel_retry")||J.headers["Content-Type"]!=="application/json"||(b=Bd9(L,O,V,T)),b)){var S=J.onSuccess,w=J.onFetchSuccess;J.onSuccess=function(R,y){MqP(b);S(R,y)};
O.onFetchSuccess=function(R,y){MqP(b);w(R,y)}}try{if(t&&X.retry&&!X.networklessOptions.bypassNetworkless)J.method="POST",X.networklessOptions.writeThenSend?_.FUu().writeThenSend(E,J):_.FUu().sendAndWrite(E,J);
else if(X.compress){var l=!X.networklessOptions.writeThenSend;if(J.postBody){var F=J.postBody;typeof F!=="string"&&(F=JSON.stringify(J.postBody));QJu(E,F,J,_.Et,l)}else QJu(E,JSON.stringify(J.postParams),J,WfM,l)}else _.h("web_all_payloads_via_jspb")?_.Et(E,J):WfM(E,J)}catch(R){if(R.name==="InvalidAccessError")b&&(MqP(b),b=0),_.HY(Error("ed"));else throw R;}b&&_.p7(_.c1,function(){aBM(A)},5E3)};
_.ctJ()?WCe().then(function(t){n(t)}):n(!1)};var QjJ=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(QjJ,_.AE);var RF7=0,Fer=_.tW?"webkit":_.ns?"moz":_.Ei?"ms":z8e?"o":"";_.oZ("ytDomDomGetNextId",_.WY("ytDomDomGetNextId")||function(){return++RF7});var QFg={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},Ay=function(A){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(A=
A||window.event){this.event=A;for(var L in A)L in QFg||(this[L]=A[L]);this.scale=A.scale;this.rotation=A.rotation;var O=A.target||A.srcElement;O&&O.nodeType==3&&(O=O.parentNode);this.target=O;var X=A.relatedTarget;if(X)try{X=X.nodeName?X:null}catch(x){X=null}else this.type=="mouseover"?X=A.fromElement:this.type=="mouseout"&&(X=A.toElement);this.relatedTarget=X;this.clientX=A.clientX!=void 0?A.clientX:A.pageX;this.clientY=A.clientY!=void 0?A.clientY:A.pageY;this.keyCode=A.keyCode?A.keyCode:A.which;
this.charCode=A.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=A.altKey;this.ctrlKey=A.ctrlKey;this.shiftKey=A.shiftKey;this.metaKey=A.metaKey;this.pageX_=A.pageX;this.pageY_=A.pageY}}catch(x){}},mAl=function(A){if(document.body&&document.documentElement){var L=document.body.scrollTop+document.documentElement.scrollTop;
A.pageX_=A.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);A.pageY_=A.clientY+L}};
Ay.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
Ay.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
Ay.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var v1=_.Ou.ytEventsEventsListeners||{};_.oZ("ytEventsEventsListeners",v1);var ytp=_.Ou.ytEventsEventsCounter||{count:0};_.oZ("ytEventsEventsCounter",ytp);var ZTD=_.K5(function(){var A=!1;try{var L=Object.defineProperty({},"capture",{get:function(){A=!0}});
window.addEventListener("test",null,L)}catch(O){}return A});_.Ty(ON,_.p$);ON.prototype.onMouseMove_=function(A){A.pageX_===void 0&&mAl(A);var L=A.pageX_;A.pageY_===void 0&&mAl(A);this.position_=new _.Cm(L,A.pageY_)};
ON.prototype.checkPosition_=function(){if(this.position_){var A=(0,_.O$)();if(this.previousTime_!=0){var L=this.previousPosition_,O=this.position_,X=L.x-O.x;L=L.y-O.y;X=Math.sqrt(X*X+L*L)/(A-this.previousTime_);this.cycles_[this.index_]=Math.abs((X-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(O=L=0;O<4;O++)L+=this.cycles_[O]||0;L>=3&&this.callback_();this.previousVelocity_=X}this.previousTime_=A;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
ON.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.jyO(this.mouseListenerKey_)};var BW_={};var AIP=new _.PF("rawColdConfigGroup");var o4M=new _.PF("rawHotConfigGroup");var fxL=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(fxL,_.AE);var RQD=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(RQD,_.AE);var wT=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A,500)};
_.g(wT,_.AE);wT.prototype.getPayloadCase=function(){return _.Gy(this,IxV)};
wT.prototype.getContext=function(){return _.ET(this,RQD,33)};
var IxV=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525,527];var Mte=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(Mte,_.AE);var g4_=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(g4_,_.AE);g4_.prototype.setVideoId=function(A){return EN(this,1,wxJ,DS(A))};
g4_.prototype.getPlaylistId=function(){return _.n$(this,SJ(this,wxJ,2))};
var wxJ=[1,2];var ZyM=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(ZyM,_.AE);ZyM.prototype.getContext=function(){return _.ET(this,n7,1)};
ZyM.prototype.getTier=function(){return _.IH(this,7)};var y96,Jy,Ph;y96=_.Ou.ytPubsubPubsubInstance||new _.tj;Jy=_.Ou.ytPubsubPubsubSubscribedKeys||{};Ph=_.Ou.ytPubsubPubsubTopicToKeys||{};_.M5y=_.Ou.ytPubsubPubsubIsSynchronous||{};_.tj.prototype.subscribe=_.tj.prototype.subscribe;_.tj.prototype.unsubscribeByKey=_.tj.prototype.unsubscribeByKey;_.tj.prototype.publish=_.tj.prototype.publish;_.tj.prototype.clear=_.tj.prototype.clear;_.oZ("ytPubsubPubsubInstance",y96);_.oZ("ytPubsubPubsubTopicToKeys",Ph);_.oZ("ytPubsubPubsubIsSynchronous",_.M5y);
_.oZ("ytPubsubPubsubSubscribedKeys",Jy);var Yw=window;var jp=_.h("web_enable_lifecycle_monitoring")&&vae()!==0,Zh6=_.h("web_enable_lifecycle_monitoring");var jF7=function(A){var L=this;var O=O===void 0?0:O;var X=X===void 0?_.Q7():X;this.JSC$11869_defaultPriority=O;this.scheduler=X;this.completedResolver=new _.EP;this.scheduledPayloads=A;for(A={i$jscomp$487:0};A.i$jscomp$487<this.scheduledPayloads.length;A={payload$jscomp$19:void 0,i$jscomp$487:A.i$jscomp$487},A.i$jscomp$487++)A.payload$jscomp$19=this.scheduledPayloads[A.i$jscomp$487],O=function(x){return function(){x.payload$jscomp$19.job();L.scheduledPayloads[x.i$jscomp$487].processed=!0;L.scheduledPayloads.every(function(J){return J.processed===
!0})&&L.completedResolver.resolve()}}(A),X=this.getPriority(A.payload$jscomp$19),X=this.scheduler.addJob(O,X),this.scheduledPayloads[A.i$jscomp$487]=Object.assign({},A.payload$jscomp$19,{job:O,
jobId:X})};
jF7.prototype.flushJobs=function(){var A=this,L=Array.from(this.scheduledPayloads.keys()).sort(function(X,x){return A.getPriority(A.scheduledPayloads[x])-A.getPriority(A.scheduledPayloads[X])});
L=_.d(L);for(var O=L.next();!O.done;O=L.next())O=this.scheduledPayloads[O.value],O.jobId===void 0||O.processed||(this.scheduler.cancelJob(O.jobId),this.scheduler.addJob(O.job,10))};
jF7.prototype.cancel=function(){for(var A=_.d(this.scheduledPayloads),L=A.next();!L.done;L=A.next())L=L.value,L.jobId===void 0||L.processed||this.scheduler.cancelJob(L.jobId),L.processed=!0;this.completedResolver.resolve()};
jF7.prototype.getPriority=function(A){var L;return(L=A.priority)!=null?L:this.JSC$11869_defaultPriority};var WF=function(A){this.state=A;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};jp&&oa9(this.state)};
WF.prototype.install=function(A){this.plugins.push(A);return this};
WF.prototype.uninstall=function(){var A=this;_.f_.apply(0,arguments).forEach(function(L){L=A.plugins.indexOf(L);L>-1&&A.plugins.splice(L,1)})};
WF.prototype.transition=function(A,L){var O=this;jp&&AFJ(this.state);var X=this.transitions.find(function(J){return Array.isArray(J.from)?J.from.find(function(Y){return Y===O.state&&J.to===A}):J.from===O.state&&J.to===A});
if(X){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);WUn(this,A,L);this.state=A;jp&&oa9(this.state);X=X.action.bind(this);var x=this.plugins.filter(function(J){return J[A]}).map(function(J){return J[A]});
X(Hhg(this,x),L)}else throw Error("fd`"+this.state+"`"+A);};
var Hhg=function(A,L){var O=L.filter(function(x){return zFc(A,x)===10}),X=L.filter(function(x){return zFc(A,x)!==10});
return A.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var x=_.f_.apply(0,arguments);return _.u(function(J){if(J.nextAddress==1)return J.yield(A.runImmediateJobsAsync.apply(A,[O].concat(_.le(x))),2);A.setJobSetWithScheduledJobs.apply(A,[X].concat(_.le(x)));_.qo(J)})}:function(){var x=_.f_.apply(0,arguments);
A.runImmediateJobsSync.apply(A,[O].concat(_.le(x)));A.setJobSetWithScheduledJobs.apply(A,[X].concat(_.le(x)))}};
WF.prototype.runImmediateJobsSync=function(A){var L=_.f_.apply(1,arguments);_.Q7();for(var O=_.d(A),X=O.next(),x={};!X.done;x={lifecycle$jscomp$2:void 0},X=O.next())x.lifecycle$jscomp$2=X.value,Dr(function(J){return function(){B6L(J.lifecycle$jscomp$2.name);OyJ(function(){return J.lifecycle$jscomp$2.callback.apply(J.lifecycle$jscomp$2,_.le(L))});
HF(J.lifecycle$jscomp$2.name)}}(x))};
WF.prototype.runImmediateJobsAsync=function(A){var L=_.f_.apply(1,arguments),O,X,x,J;return _.u(function(Y){Y.nextAddress==1&&(_.Q7(),O=_.d(A),X=O.next(),x={});if(Y.nextAddress!=3){if(X.done)return Y.jumpTo(0);x.lifecycle$jscomp$3=X.value;x.asyncJobCompletion=void 0;J=function(T){return function(){B6L(T.lifecycle$jscomp$3.name);var V=OyJ(function(){return T.lifecycle$jscomp$3.callback.apply(T.lifecycle$jscomp$3,_.le(L))});
gGu(V)?T.asyncJobCompletion=_.h("web_lifecycle_error_handling_killswitch")?V.then(function(){HF(T.lifecycle$jscomp$3.name)}):V.then(function(){HF(T.lifecycle$jscomp$3.name)},function(E){L4J(E);
HF(T.lifecycle$jscomp$3.name)}):HF(T.lifecycle$jscomp$3.name)}}(x);
Dr(J);return x.asyncJobCompletion?Y.yield(x.asyncJobCompletion,3):Y.jumpTo(3)}x={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};X=O.next();return Y.jumpTo(2)})};
WF.prototype.setJobSetWithScheduledJobs=function(A){var L=_.f_.apply(1,arguments),O=this,X=A.map(function(x){return{job:function(){B6L(x.name);OyJ(function(){return x.callback.apply(x,_.le(L))});
HF(x.name)},
priority:zFc(O,x)}});
X.length&&(this.jobSet=new jF7(X))};
var zFc=function(A,L){var O,X;return(X=(O=A.overridePriority)!=null?O:L.priority)!=null?X:0},B6L=function(A){jp&&A&&oa9(A)},HF=function(A){jp&&A&&AFJ(A)},WUn=function(A,L,O){Zh6&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+A.constructor.name+"] '"+A.state+"' to '"+L+"'"),console.log("with message: ",O),console.groupEnd())};
_.v2.Object.defineProperties(WF.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var MfN=function(A){WF.call(this,A===void 0?"none":A);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(){}}]},$A6;
_.g(MfN,WF);MfN.prototype.runApplicationNavigationBegin=function(A,L){var O=this;this.navigationTimer=_.p7(_.c1,function(){O.currentState==="application_navigating"&&O.transition("none")},5E3);
A(L==null?void 0:L.event)};
MfN.prototype.runApplicationNavigationEnd=function(A,L){this.navigationTimer&&(_.c1.cancelJob(this.navigationTimer),this.navigationTimer=null);A(L==null?void 0:L.event)};
_.v4r=function(){$A6||($A6=new MfN);return $A6};var Unp=[];_.oZ("yt.logging.transport.getScrapedGelPayloads",function(){return Unp});var ug=function(){var A=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return A.totalEntries}}};
ug.prototype.storePayload=function(A,L){A=Xx9(A);this.store[A]?this.store[A].push(L):(this.memoizedKeySequences={},this.store[A]=[L]);this.totalEntries++;_.h("more_accurate_gel_parser")&&(L=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(L));return A};
ug.prototype.smartExtractMatchingEntries=function(A){if(!A.keys.length)return[];for(var L=axu(this,A.keys.splice(0,1)[0]),O=[],X=0;X<L.length;X++)this.store[L[X]]&&A.sizeLimit&&(this.store[L[X]].length<=A.sizeLimit?(O.push.apply(O,_.le(this.store[L[X]])),delete this.store[L[X]]):O.push.apply(O,_.le(this.store[L[X]].splice(0,A.sizeLimit))));this.totalEntries-=O.length;(A==null?0:A.sizeLimit)&&O.length<(A==null?void 0:A.sizeLimit)&&(A.sizeLimit-=O.length,O.push.apply(O,_.le(this.smartExtractMatchingEntries(A))));
return O};
ug.prototype.extractMatchingEntries=function(A){A=axu(this,A);for(var L=[],O=0;O<A.length;O++)this.store[A[O]]&&(L.push.apply(L,_.le(this.store[A[O]])),delete this.store[A[O]]);this.totalEntries-=L.length;return L};
ug.prototype.getSequenceCount=function(A){A=axu(this,A);for(var L=0,O=0;O<A.length;O++){var X=void 0;L+=((X=this.store[A[O]])==null?void 0:X.length)||0}return L};
var axu=function(A,L){var O=Xx9(L);if(A.memoizedKeySequences[O])return A.memoizedKeySequences[O];var X=Object.keys(A.store)||[];if(X.length<=1&&Xx9(L)===X[0])return X;for(var x=[],J=0;J<X.length;J++){var Y=X[J].split("/");if(kNu(L.auth,Y[0])){var T=L.isJspb;kNu(T===void 0?"undefined":T?"true":"false",Y[1])&&kNu(L.cttAuthInfo,Y[2])&&(T=L.tier,T=T===void 0?"undefined":JSON.stringify(T),kNu(T,Y[3])&&x.push(X[J]))}}return A.memoizedKeySequences[O]=x},kNu=function(A,L){return A===void 0||A==="undefined"?
!0:A===L};
ug.prototype.getSequenceCount=ug.prototype.getSequenceCount;ug.prototype.extractMatchingEntries=ug.prototype.extractMatchingEntries;ug.prototype.smartExtractMatchingEntries=ug.prototype.smartExtractMatchingEntries;ug.prototype.storePayload=ug.prototype.storePayload;var CBM,lre,F4O,Dz,UAL,xVs,Xm9,GJy,K4s,ttu,cFJ,arr,iyy;CBM=_.PO("initial_gel_batch_timeout",2E3);lre=_.PO("gel_queue_timeout_max_ms",6E4);F4O=_.PO("gel_min_batch_size",5);Dz=void 0;UAL=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
xVs=new UAL;Xm9=new UAL;GJy=new UAL;K4s=new UAL;cFJ=!0;arr=1;_.$nO=new Map;iyy=_.Ou.ytLoggingTransportTokensToCttTargetIds_||{};_.oZ("ytLoggingTransportTokensToCttTargetIds_",iyy);var pxy=_.Ou.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.oZ("ytLoggingTransportTokensToJspbCttTargetIds_",pxy);var V$={};var rT=_.Ou.ytLoggingGelSequenceIdObj_||{};_.oZ("ytLoggingGelSequenceIdObj_",rT);var PSe=[];var hTM=new Set,V8M=0,wmu=0,gud=0,eTp=[],DVy=[],pmp=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var fl_=function(){};
fl_.prototype.getUrl=function(A,L){L=L===void 0?!1:L;return A.hasOwnProperty("shareEndpoint")?null:_.KN9(A,null,L)};
var oSp=function(A,L,O){A={endpoint:L,actions:[]};O=(O.path?O.path[0]:O.target).icon||"";L=O.indexOf(":");L>0&&(O=O.substr(L+1));O&&A.actions.push(O);return A};var RTp=/Command$/,FNr=/Endpoint$/,llu=new Map;var vOV,oOH;vOV=1;_.zu=function(){this.actionRoutingMap=new Map};
_.zu.prototype.triggerAction=function(A){var L=new D_u(A,!1,_.f_.apply(1,arguments));this.handleAction(L);return L.returnValue};
_.zu.prototype.triggerOptionalAction=function(A){var L=new D_u(A,!0,_.f_.apply(1,arguments));this.handleAction(L);return L.returnValue};
_.za=function(A,L,O){L.forEach(function(X){var x=CS_(X);x&&A.triggerOptionalAction(x,X,O,void 0)})};
_.zu.prototype.handleAction=function(A){var L=this.actionRoutingMap.get(A.actionName);L&&oOH(A,L);A.optionalAction||A.returnValue.length!==0||(A=new _.pe("Unhandled action",A.actionName),_.HY(A))};
oOH=function(A,L){L.forEach(function(O){var X=null;O?X=O.apply(null,A.args):(O=Error("gd"),O.params=A.actionName,_.IO(O));A.returnValue.push(X)})};
_.Bh=function(A,L,O){O||(O=vOV++);for(var X=_.d(Object.keys(L)),x=X.next();!x.done;x=X.next()){x=x.value;var J=A.actionRoutingMap.get(x);J||(J=new Map,A.actionRoutingMap.set(x,J));A.registerActionHandler(O,x,L[x],J)}return O};
_.zu.prototype.registerActionHandler=function(A,L,O,X){X.set(A,_.j6(O))};
_.Md=function(A,L,O){L=_.d(Object.keys(L));for(var X=L.next();!X.done;X=L.next())(X=A.actionRoutingMap.get(X.value))&&X.delete(O)};
_.Yz(_.zu);var Zu9=function(A,L){var O=_.zu.getInstance();_.GD(function(){var X={},x=_.Bh(O,(X[A]=L,X));_.rF(function(){var J={};_.Md(O,(J[A]="",J),x)})})};var Ivp=Symbol("id");$7y=p3P;var XCM=new Set(["For","If","Match","Watch"]),Azl={},LfH=(Azl[mv.default]=function(){return Zdu},Azl.style=function(){return Zdu},Azl),OMu;
for(OMu in LfH)Lr.attributes[OMu]=LfH[OMu](Lr.attributes[OMu]);var Ld=new _.Yx("VISIBILITY_OBSERVER");var DwD={retrieve:function(A){return this.id.\u0275prov.token===A.\u0275prov.token?this.contextValue:this?_.vq(this,this.id):q$e}};var PdJ=function(A,L,O){if(A!==UN)return!1;A=UVd(document.createElement("div"),function(){var X=xL(!1);try{O[0]()}finally{xL(X)}});
A=Array.from(A.childNodes);A.length===1&&(A=A[0]);return A};var X4n=function(A){A=A.clone();rju(A);l5(A,"dg",null);l5(A,"d","0");wOn(A,null);pON(A,null);return A},xGu=!0,skg=function(A,L,O){var X=O===void 0?{}:O;
O=X.cssRowKey===void 0?void 0:X.cssRowKey;var x=X.combinedSignature===void 0?void 0:X.combinedSignature;var J=X.extraEdges===void 0?void 0:X.extraEdges;X=X.callback===void 0?void 0:X.callback;l5(A,"m",L.join(","));J&&NNg(A,J);O&&(l5(A,"ck",O),x?l5(A,"rs",x):xGu&&(xGu=!1));if(X){if(X!=null&&!lKJ.test(X))throw Error("Xa`"+X);l5(A,"cb",X)}A=A.toString();_.su(A,"/")&&(A=Xfl(document.location.href)+A);return _.gw(A)};var P3N=function(A){return Jz6(A).then(function(L){return JSON.parse(L.responseText)})},Jz6=function(A){var L={},O=L.xmlHttpFactory?L.xmlHttpFactory.createInstance():zEj.createInstance();
return(new _.eJ(function(X,x){var J;try{O.open("GET",A,!0)}catch(V){x(new BF("Error opening XHR: "+V.message,A,O))}O.onreadystatechange=function(){if(O.readyState==4){_.Ou.clearTimeout(J);var V;!(V=Hml(O.status))&&(V=O.status===0)&&(V=O_J(A),V=!(V=="http"||V=="https"||V==""));V?X(O):x(new dG6(O.status,A,O))}};
O.onerror=function(){x(new BF("Network error",A,O))};
if(L.headers)for(var Y in L.headers){var T=L.headers[Y];T!=null&&O.setRequestHeader(Y,T)}L.withCredentials&&(O.withCredentials=L.withCredentials);L.responseType&&(O.responseType=L.responseType);L.mimeType&&O.overrideMimeType(L.mimeType);L.timeoutMs>0&&(J=_.Ou.setTimeout(function(){O.onreadystatechange=function(){};
O.abort();x(new Y03(A,O))},L.timeoutMs));
try{O.send(null)}catch(V){O.onreadystatechange=function(){},_.Ou.clearTimeout(J),x(new BF("Error sending XHR: "+V.message,A,O))}})).thenCatch(function(X){X instanceof _.$f&&O.abort();
throw X;})},BF=function(A,L,O){_.As.call(this,A+", url="+L);
this.url=L;this.xhr=O};
_.Ty(BF,_.As);BF.prototype.name="XhrError";var dG6=function(A,L,O){BF.call(this,"Request Failed, status="+A,L,O);this.status=A};
_.Ty(dG6,BF);dG6.prototype.name="XhrHttpError";var Y03=function(A,L){BF.call(this,"Request timed out",A,L)};
_.Ty(Y03,BF);Y03.prototype.name="XhrTimeoutError";dA=dA||{};var Mz=function(){_.p$.call(this)};
_.Ty(Mz,_.p$);Mz.prototype.initialize=function(){};var uzH=function(A,L){this.fn_=A;this.handler_=L};
uzH.prototype.execute=function(A){this.fn_&&(this.fn_.call(this.handler_||null,A),this.fn_=this.handler_=null)};
uzH.prototype.abort=function(){this.handler_=this.fn_=null};var $x=function(A,L){_.p$.call(this);this.deps_=A;this.JSC$11996_id_=L;this.onloadCallbacks_=[];this.JSC$11996_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.Ty($x,_.p$);$x.prototype.moduleConstructor_=Mz;$x.prototype.module_=null;$x.prototype.getId=function(){return this.JSC$11996_id_};
$x.prototype.registerCallback=function(A,L){return TQ7(this.onloadCallbacks_,A,L)};
var Vm6=function(A,L){TQ7(A.JSC$11996_onErrorCallbacks_,L)},TQ7=function(A,L,O){L=new uzH(L,O);
A.push(L);return L};
$x.prototype.isLoaded=function(){return!!this.module_};
$x.prototype.onLoad=function(A){var L=new this.moduleConstructor_;L.initialize(A());this.module_=L;L=(L=DGl(this.earlyOnloadCallbacks_,A()))||DGl(this.onloadCallbacks_,A());L||(this.JSC$11996_onErrorCallbacks_.length=0);return L};
$x.prototype.onError=function(A){(A=DGl(this.JSC$11996_onErrorCallbacks_,A))&&Xp(Error("md`"+A));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var DGl=function(A,L){for(var O=[],X=0;X<A.length;X++)try{A[X].execute(L)}catch(x){Xp(x),O.push(x)}A.length=0;return O.length?O:null};
$x.prototype.disposeInternal=function(){$x.superClass_.disposeInternal.call(this);_.oo(this.module_)};var eAn,S0g,bMJ,hAN,nKN,tm7,iMH,w4J,p4c;
_.kx=function(A,L,O,X,x){X=X===void 0?!1:X;x=x===void 0?!1:x;var J=J===void 0?!0:J;this.scsReferenceUrl_=HHO(_.ww(A).toString(),J);this.cssRowKey_=L;this.combinedSignature_=O;this.useNegativeLoading_=X;this.requestedModuleMap_={};this.JSC$11999_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(A=G7(this.scsReferenceUrl_,"excm"))?A.split(","):[];this.shouldScanForCss_=x;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;zZ_();_.aM(this,ieN(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
eAn=function(A,L){if(L.href||L.getAttribute("data-href"))if(L=L.href||L.getAttribute("data-href"),y4e(L)&&!HHO(L).urlPrefix_.endsWith("_/js/")){L=ieN(HHO(L));L=_.d(L);for(var O=L.next();!O.done;O=L.next())O=O.value,A.loadedCssModuleList_.includes(O)||A.loadedCssModuleList_.push(O)}};
_.kx.prototype.JSC$12001_loadModules=function(A,L,O){var X=O===void 0?{}:O;O=X.extraEdges;var x=X.onError;var J=X.onSuccess;X=X.forceReload;this.JSC$11999_moduleInfoMap_=L;if(!A)throw Error("nd");if(this.shouldScanForCss_){L=_.d(document.getElementsByTagName("style"));for(var Y=L.next();!Y.done;Y=L.next())eAn(this,Y.value);L=_.d(document.getElementsByTagName("link"));for(Y=L.next();!Y.done;Y=L.next())eAn(this,Y.value)}EK6(this,nKN(this,A),O,x,J,X)};
var EK6=function(A,L,O,X,x,J){X=X===void 0?function(){}:X;
x=x===void 0?function(){}:x;
J=J===void 0?!1:J;tm7(A,L,function(Y,T,V){V=V===void 0?T:V;A.enableFallbackFetch&&J?A.loadWithFetch(Y,T,X,x,V):A.load(Y,T,X,x,V,O)},O)||X(-1)};
_.kx.prototype.loadWithFetch=function(){_.u(function(){throw Error("od");})};
_.kx.prototype.maybeSetAdditionalFields=function(){};
S0g=function(A,L,O){if(A.useNegativeLoading_){var X=A.scsReferenceUrl_;A={cssRowKey:A.cssRowKey_,combinedSignature:A.combinedSignature_,extraEdges:O,requestedModuleIds:bMJ(A),requestedCssModuleIds:hAN(A)};var x=A===void 0?{}:A;A=x.requestedModuleIds===void 0?[]:x.requestedModuleIds;O=x.requestedCssModuleIds===void 0?[]:x.requestedCssModuleIds;var J=x.cssRowKey===void 0?void 0:x.cssRowKey;var Y=x.combinedSignature===void 0?void 0:x.combinedSignature;var T=x.extraEdges===void 0?void 0:x.extraEdges;
x=x.callback===void 0?void 0:x.callback;X=X4n(X);l5(X,"d","1");wOn(X,A);pON(X,O);L=skg(X,L,{cssRowKey:J,combinedSignature:Y,extraEdges:T,callback:x})}else X=A.scsReferenceUrl_,A={cssRowKey:A.cssRowKey_,combinedSignature:A.combinedSignature_,requestedModuleIds:bMJ(A),requestedCssModuleIds:hAN(A)},T=A===void 0?{}:A,A=T.requestedCssModuleIds===void 0?[]:T.requestedCssModuleIds,O=T.cssRowKey===void 0?void 0:T.cssRowKey,J=T.combinedSignature===void 0?void 0:T.combinedSignature,Y=T.extraEdges===void 0?
void 0:T.extraEdges,T=T.callback===void 0?void 0:T.callback,X=X4n(X),pON(X,A),L=skg(X,L,{cssRowKey:O,combinedSignature:J,extraEdges:Y,callback:T});return L};
_.aM=function(A,L){for(var O=!1,X=[],x=0;x<L.length;++x){var J=L[x];A.requestedModuleMap_[J]||(A.requestedModuleMap_[J]=!0,A.requestedModuleList_.push(J),O=!0,X.push(J))}O&&(A.requestedModuleListSorted_=!1)};
_.Ua=function(A,L){for(var O=[],X=0;X<L.length;++X){var x=L[X];A.requestedModuleMap_[x]&&(delete A.requestedModuleMap_[x],_.y_(A.requestedModuleList_,x),O.push(x))}};
_.kx.prototype.load=function(A,L,O,X,x){x=x===void 0?L:x;_.ww(A);var J=this.useCors_,Y=this.corsMode_,T=this.fetchPriority,V=_.tg("SCRIPT");_.UB(V,A);J&&(V.crossOrigin=Y);V.async=!1;T&&V.setAttribute("fetchpriority",T);_.aM(this,L);_.q0j(this,A,V,L,O,X,x)};
_.q0j=function(A,L,O,X,x,J,Y){Y=Y===void 0?X:Y;A.lastScript_=O;A.insertPos.insertBefore(O,A.insertPos.firstChild);_.gK6(O,X,function(){O.parentElement.removeChild(O);A.lastScript_==O&&(A.lastScript_=null);var T=new Set;X.map(function(E){return T.add(E)});
for(var V in A.JSC$11999_moduleInfoMap_)A.JSC$11999_moduleInfoMap_[V].isLoaded()&&T.add(V);Array.from(T);J()},function(T){O.parentElement.removeChild(O);
A.lastScript_==O&&(A.lastScript_=null);_.Ua(A,T);A.pendingModuleGraphUpdate_?A.pendingModuleGraphUpdate_.then(function(){x(-1,L)}):x(-1,L)},Y)};
_.gK6=function(A,L,O,X,x){x=x===void 0?L:x;var J=L.length,Y=function(){J=0;A.onload=null;A.onerror=null;T=function(){}},T=function(){Y();
var E=x.filter(function(n){return!ls().getModuleInfo(n).isLoaded()});
E.length!==0?X(E,"Response was successful but was missing module(s) "+E+"."):O()},V=function(){J--;
J==0&&T()};
L.forEach(function(E){E=ls().getModuleInfo(E);E.isLoaded()?V():(TQ7(E.earlyOnloadCallbacks_,V),Vm6(E,V))});
A.onload=function(){return T()};
A.onerror=function(){Y();X(L)}};
bMJ=function(A){A.requestedModuleListSorted_||(A.requestedModuleListSorted_=!0,A.requestedModuleList_.sort());return A.requestedModuleList_};
hAN=function(A){A=A.loadedCssModuleList_;A.sort();return A};
nKN=function(A,L){return L.filter(function(O){return!A.requestedModuleMap_[O]})};
tm7=function(A,L,O,X){if(A.pendingModuleGraphUpdate_)return A.pendingModuleGraphUpdate_.then(function(){tm7(A,L,O,X)}),!0;
if(!A.useNegativeLoading_){var x=[],J=Object.assign({},A.requestedModuleMap_);w4J(A,L,function(n){x.push(n.getId())},X,function(n){return!n.isLoaded()},J);
L=x}for(J=0;J<L.length;){for(var Y=L.length-J,T=J==0?L:L.slice(J,L.length),V=S0g(A,T,X),E=_.ww(V).toString();E.length>A.urlMaxLength;)if(Y>1)Y-=Math.ceil((E.length-A.urlMaxLength)/6),Y=Math.max(Y,1),T=L.slice(J,J+Y),V=S0g(A,T,X),E=_.ww(V).toString();else return A.useNegativeLoading_?(A.useNegativeLoading_=!1,A.pendingModuleGraphUpdate_=p4c(A).then(function(n){iMH(A,n,X)}),tm7(A,L.slice(J),O,X)):!1;
J+=Y;A.useNegativeLoading_?O(V,T):O(V,T,J===L.length?L:[])}return!0};
iMH=function(A,L,O){ls().setAllModuleInfoString((L||{}).moduleGraph);w4J(A,bMJ(A),function(X){_.aM(A,[X.getId()])},O);
A.pendingModuleGraphUpdate_=null};
w4J=function(A,L,O,X,x,J){J=J===void 0?{}:J;var Y=ls();L=_.d(L);for(var T=L.next();!T.done;T=L.next()){T=T.value;var V=Y.getModuleInfo(T);if(!(J[T]||x&&!x(V))){J[T]=!0;var E=V.deps_||[];if(X){var n=[];X[T]&&(n=Object.keys(X[T]));E=E.concat(n)}w4J(A,E,O,X,x,J);O(V)}}};
p4c=function(A){A=A.scsReferenceUrl_.clone();rju(A);l5(A,"dg",null);l5(A,"md","1");return P3N(A.toString())};var nfr=new Uint8Array(123);var NQc=[];var rzg=function(){this.JSC$11075_loader_=null};
_.P=rzg.prototype;_.P.setBatchModeEnabled=function(){};
_.P.setAllModuleInfoString=function(){};
_.P.addExtraEdge=function(){throw Error("pd");};
_.P.removeExtraEdge=function(){throw Error("qd");};
_.P.getModuleContext=function(){return null};
_.P.isActive=function(){return!1};
_.P.isUserActive=function(){return!1};
_.P.registerCallback=function(){};var vF=function(A,L,O,X,x){var J=Error.call(this);this.message=J.message;"stack"in J&&(this.stack=J.stack);this.name="ModuleLoadFailure";this.type=A;this.status=L;this.requestedModuleIds=O;this.url=X;this.cause=x;this.message=this.toString()};
_.g(vF,Error);vF.prototype.toString=function(){return Kf7(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var Kf7=function(A){switch(A.type){case vF.Type.UNAUTHORIZED:return"Unauthorized";case vF.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case vF.Type.TIMEOUT:return"Timed out";case vF.Type.OLD_CODE_GONE:return"Out of date module id";case vF.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+A.type}};
dA.ModuleLoadFailure=vF;dA.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var oM=function(){this.moduleIds_=this.JSC$11075_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$12014_extraEdges_={};this.JSC$12014_callbackMap_={};this.JSC$12014_currentlyLoadingModule_=this.baseModuleInfo_=new $x([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new Ln;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.Ty(oM,rzg);var GZH=function(A,L){_.As.call(this,"Error loading "+A+": "+L)};
_.Ty(GZH,_.As);oM.prototype.setBatchModeEnabled=function(A){this.batchModeEnabled_=A};
oM.prototype.setAllModuleInfoString=function(A,L){if(!(this instanceof oM))this.setAllModuleInfoString(A,L);else if(typeof A==="string"){if(A.startsWith("d$")){A=A.substring(2);for(var O=[],X=0,x=A.indexOf("/"),J=0,Y=!1,T=0;;){var V=Y?A.substring(J):A.substring(J,x);if(V.length===0)X++,J="sy"+X.toString(36),V=[];else{var E=V.indexOf(":");if(E<0)J=V,V=[];else if(E===V.length-1)J=V.substring(0,E),V=Array(O[T-1]);else{J=V.substring(0,E);V=V.substring(E+1).split(",");E=T;for(var n=0;n<V.length;n++)E-=
V[n].length===0?1:Number(V[n]),V[n]=O[E]}E=0;if(J.length===0)E=1;else if(J.charAt(0)==="+"||J.charAt(0)==="-")E=Number(J);E!==0&&(X+=E,J="sy"+X.toString(36))}O.push(J);lQL(this,J,V);if(Y)break;J=x+1;x=A.indexOf("/",J);x===-1&&(Y=!0);T++}this.moduleIds_=O}else if(A.startsWith("p$"))czH(this,A);else{A=A.split("/");O=[];for(X=0;X<A.length;X++){T=A[X].split(":");x=T[0];Y=[];if(T[1])for(Y=T[1].split(","),T=0;T<Y.length;T++)Y[T]=O[parseInt(Y[T],36)];O.push(x);lQL(this,x,Y)}this.moduleIds_=O}L&&L.length?
(_.WJ(this.loadingModuleIds_,L),this.lastInitialModuleId_=_.cJ(L)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$12014_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$12014_currentlyLoadingModule_=null,(L=this.baseModuleInfo_.onLoad((0,_.is)(this.getModuleContext,this)))&&L.length&&C3J(this,new dA.ModuleLoadFailure(dA.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,L[0])),A_(this))}};
var czH=function(A,L){var O=L.substring(2);for(L=0;L<64;L++)nfr["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(L)]=L;var X={buf:O,pos:0};xd(X);var x=xd(X),J=xd(X)+1;L=Array(x);var Y=Array(x),T=Array(x);J=Array(J);var V=0,E=0,n=X.pos,t=X.buf.indexOf("|",X.pos);X.pos=t+1;for(t=0;t<x;t++){var b=xd(X),S=b&2,w=b&1;b>>>=2;w?(V+=b>>>1^-(b&1),b="sy"+V.toString(36)):(w=n,n+=b,b=O.substring(w,n));L[t]=b;S&&(J[E++]=b)}J[E]="";X.pos++;E=x&-2;O=x&1;for(V=0;V<E;V+=2)n=tEr(X),T[V]=
n&7,T[V+1]=n>>>3&7;O&&(O=tEr(X),T[E]=O&7);X.pos++;for(E=0;E<x;E++)T[E]===7&&(T[E]=xd(X));X.pos++;for(O=E=0;O<x;O++){V=T[O];n=V===0?NQc:Array(V);Y[O]=n;t=E;for(S=0;S<V;S++)t-=xd(X),n[S]=J[t];J[E]===L[O]&&E++}for(X=0;X<L.length;X++)lQL(A,L[X],Y[X]);A.moduleIds_=L};
_.P=oM.prototype;_.P.getModuleInfo=function(A){return this.moduleInfoMap[A]};
_.P.addExtraEdge=function(A,L){var O=this.getModuleInfo(A);O&&O.isLoaded()?this.load(L):(this.JSC$12014_extraEdges_[A]||(this.JSC$12014_extraEdges_[A]={}),this.JSC$12014_extraEdges_[A][L]=!0)};
_.P.removeExtraEdge=function(A,L){if(this.JSC$12014_extraEdges_[A]){delete this.JSC$12014_extraEdges_[A][L];for(var O in this.JSC$12014_extraEdges_[A])return;delete this.JSC$12014_extraEdges_[A]}};
_.P.isActive=function(){return this.loadingModuleIds_.length>0};
_.P.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var A_=function(A){var L=A.lastActive_,O=A.isActive();O!=L&&(A.executeCallbacks_(O?"active":"idle"),A.lastActive_=O);L=A.isUserActive();L!=A.userLastActive_&&(A.executeCallbacks_(L?"userActive":"userIdle"),A.userLastActive_=L)},lQL=function(A,L,O){A.moduleInfoMap[L]?(A=A.moduleInfoMap[L].deps_,A!=O&&A.splice.apply(A,[0,
A.length].concat(_.le(O)))):A.moduleInfoMap[L]=new $x(O,L)},RAl=function(A,L,O){var X=[];
Nud(L,X);L=[];for(var x={},J=0;J<X.length;J++){var Y=X[J],T=A.getModuleInfo(Y);if(!T)throw Error("rd`"+Y);var V=new Ln;x[Y]=V;T.isLoaded()?V.callback(null):(Ff6(A,Y,T,!!O,V),A.isModuleLoading(Y)||L.push(Y))}L.length>0&&(A.loadingModuleIds_.length===0?A.loadModules_(L):(A.requestedModuleIdsQueue_.push(L),A_(A)));return x},Ff6=function(A,L,O,X,x){O.registerCallback(x.callback,x);
Vm6(O,function(J){x.errback(new GZH(L,J))});
A.isModuleLoading(L)?X&&(Qkj(A,L),A_(A)):X&&Qkj(A,L)};
oM.prototype.loadModules_=function(A,L,O){var X=this;L||(this.consecutiveFailures_=0);var x=mGn(this,A);this.loadingModuleIds_=x;this.requestedLoadingModuleIds_=this.batchModeEnabled_?A:_.Ze(x);A_(this);if(x.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,x);if(Object.keys(this.JSC$12014_extraEdges_).length>0&&!this.JSC$11075_loader_.supportsExtraEdges)throw Error("sd");A=(0,_.is)(this.JSC$11075_loader_.JSC$12001_loadModules,this.JSC$11075_loader_,_.Ze(x),this.moduleInfoMap,
{extraEdges:this.JSC$12014_extraEdges_,forceReload:!!O,onError:function(J,Y){var T=X.requestedLoadingModuleIds_;J=J!=null?J:void 0;X.consecutiveFailures_++;var V=_.Ze(x);X.requestedLoadingModuleIds_=T;x.forEach(_.Sm(_.y_,X.requestedModuleIds_),X);J==401?(C3J(X,new dA.ModuleLoadFailure(dA.ModuleLoadFailure.Type.UNAUTHORIZED,J)),X.requestedModuleIdsQueue_.length=0):J==410?(fQL(X,new dA.ModuleLoadFailure(dA.ModuleLoadFailure.Type.OLD_CODE_GONE,J)),IQN(X)):X.consecutiveFailures_>=3?(fQL(X,new dA.ModuleLoadFailure(dA.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
J,V,Y)),IQN(X)):X.loadModules_(X.requestedLoadingModuleIds_,!0,J==8001||!1)},
onTimeout:(0,_.is)(this.handleLoadTimeout_,this)});(L=Math.pow(this.consecutiveFailures_,2)*5E3)?_.Ou.setTimeout(A,L):A()}};
var mGn=function(A,L){L=L.filter(function(x){return A.moduleInfoMap[x].isLoaded()?(_.Ou.setTimeout(function(){return Error("td`"+x)},0),!1):!0});
for(var O=[],X=0;X<L.length;X++)O=O.concat(yzj(A,L[X]));Nud(O);return!A.batchModeEnabled_&&O.length>1?(L=O.shift(),A.requestedModuleIdsQueue_=O.map(function(x){return[x]}).concat(A.requestedModuleIdsQueue_),[L]):O},yzj=function(A,L){var O=_.lW.createSet(A.requestedModuleIds_),X=[];
O[L]||X.push(L);L=[L];for(var x=0;x<L.length;x++)for(var J=A.getModuleInfo(L[x]).deps_,Y=J.length-1;Y>=0;Y--){var T=J[Y];A.getModuleInfo(T).isLoaded()||O[T]||(X.push(T),L.push(T))}X.reverse();Nud(X);return X};
oM.prototype.JSC$12009_setLoaded=function(){if(this.JSC$12014_currentlyLoadingModule_){var A=this.JSC$12014_currentlyLoadingModule_.getId(),L=[];if(this.JSC$12014_extraEdges_[A]){for(var O=_.d(Object.keys(this.JSC$12014_extraEdges_[A])),X=O.next();!X.done;X=O.next()){X=X.value;var x=this.getModuleInfo(X);x&&!x.isLoaded()&&(this.removeExtraEdge(A,X),L.push(X))}this.loadMultiple(L)}this.isDisposed()||((L=this.moduleInfoMap[A].onLoad((0,_.is)(this.getModuleContext,this)))&&L.length&&C3J(this,new dA.ModuleLoadFailure(dA.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,L[0])),_.y_(this.userInitiatedLoadingModuleIds_,A),_.y_(this.loadingModuleIds_,A),this.loadingModuleIds_.length===0&&IQN(this),this.lastInitialModuleId_&&A==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),A_(this),this.JSC$12014_currentlyLoadingModule_=null)}};
oM.prototype.isModuleLoading=function(A){if(_.Id(this.loadingModuleIds_,A))return!0;for(var L=0;L<this.requestedModuleIdsQueue_.length;L++)if(_.Id(this.requestedModuleIdsQueue_[L],A))return!0;return!1};
oM.prototype.load=function(A,L){return RAl(this,[A],L)[A]};
oM.prototype.loadMultiple=function(A){return RAl(this,A)};
var Qkj=function(A,L){_.Id(A.userInitiatedLoadingModuleIds_,L)||A.userInitiatedLoadingModuleIds_.push(L)};
oM.prototype.beforeLoadModuleCode=function(A){var L=this;this.JSC$12014_currentlyLoadingModule_&&this.JSC$12014_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$12009_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[A]&&ZMu(this,this.moduleInfoMap[A].deps_||[],function(O){O.module_=new Mz;_.y_(L.loadingModuleIds_,O.getId())},function(O){return!O.isLoaded()});
this.JSC$12014_currentlyLoadingModule_=this.getModuleInfo(A)};
oM.prototype.handleLoadTimeout_=function(){fQL(this,new dA.ModuleLoadFailure(dA.ModuleLoadFailure.Type.TIMEOUT));IQN(this)};
var fQL=function(A,L){A.requestedLoadingModuleIds_.length>1?A.requestedModuleIdsQueue_=A.requestedLoadingModuleIds_.map(function(O){return[O]}).concat(A.requestedModuleIdsQueue_):C3J(A,L)},C3J=function(A,L){var O=A.requestedLoadingModuleIds_;
A.loadingModuleIds_.length=0;for(var X=[],x=0;x<A.requestedModuleIdsQueue_.length;x++){var J=A.requestedModuleIdsQueue_[x].filter(function(V){var E=yzj(this,V);return B1(O,function(n){return _.Id(E,n)})},A);
_.WJ(X,J)}for(x=0;x<O.length;x++)_.gep(X,O[x]);for(x=0;x<X.length;x++){for(J=0;J<A.requestedModuleIdsQueue_.length;J++)_.y_(A.requestedModuleIdsQueue_[J],X[x]);_.y_(A.userInitiatedLoadingModuleIds_,X[x])}if(x=A.JSC$12014_callbackMap_.error)for(J=0;J<x.length;J++)for(var Y=x[J],T=0;T<X.length;T++)Y("error",X[T],L);for(X=0;X<O.length;X++)if(A.moduleInfoMap[O[X]])A.moduleInfoMap[O[X]].onError(L);A.requestedLoadingModuleIds_.length=0;A_(A)},IQN=function(A){for(;A.requestedModuleIdsQueue_.length;){var L=
A.requestedModuleIdsQueue_.shift().filter(function(O){return!this.getModuleInfo(O).isLoaded()},A);
if(L.length>0){A.loadModules_(L);return}}A_(A)};
oM.prototype.registerCallback=function(A,L){Array.isArray(A)||(A=[A]);for(var O=0;O<A.length;O++){var X=A[O],x=L,J=this.JSC$12014_callbackMap_;J[X]||(J[X]=[]);J[X].push(x)}};
oM.prototype.executeCallbacks_=function(A){for(var L=this.JSC$12014_callbackMap_[A],O=0;L&&O<L.length;O++)L[O](A)};
var ZMu=function(A,L,O,X,x){X=X===void 0?function(){return!0}:X;
x=x===void 0?{}:x;L=_.d(L);for(var J=L.next();!J.done;J=L.next()){J=J.value;var Y=A.getModuleInfo(J);!x[J]&&X(Y)&&(x[J]=!0,ZMu(A,Y.deps_||[],O,X,x),O(Y))}};
oM.prototype.dispose=function(){_.Ag(_.lW.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$12014_callbackMap_={};this.isDisposed_=!0};
oM.prototype.isDisposed=function(){return this.isDisposed_};
_.GX=function(){return new oM};var jkL=[5E3,2E4],Wfl=function(){this.JSC$11075_loader_=null;this.JSC$12022_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$12022_queue_=[];this.JSC$12022_extraEdges_=Object.create(null);this.JSC$12022_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.g(Wfl,rzg);_.P=Wfl.prototype;_.P.setAllModuleInfoString=function(){this.JSC$12022_currentlyLoadingModule_&&this.JSC$12022_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$12009_setLoaded()};
_.P.getModuleInfo=function(A){var L=this.JSC$12022_moduleInfoMap_[A];L||(L=new $x([],A),this.JSC$12022_moduleInfoMap_[A]=L);return L};
_.P.addExtraEdge=function(A,L){this.getModuleInfo(A).isLoaded()?this.load(L):(this.JSC$12022_extraEdges_[A]||(this.JSC$12022_extraEdges_[A]={}),this.JSC$12022_extraEdges_[A][L]=!0)};
_.P.removeExtraEdge=function(A,L){if(this.JSC$12022_extraEdges_[A]){delete this.JSC$12022_extraEdges_[A][L];for(var O in this.JSC$12022_extraEdges_[A])return;delete this.JSC$12022_extraEdges_[A]}};
_.P.isModuleLoading=function(A){return!!this.loadingModules_[A]};
_.P.load=function(A){HM6(this,[A]);return zAV(this,A)};
_.P.loadMultiple=function(A){var L=this,O=Object.create(null),X=[];A.forEach(function(x){O[x]||(O[x]=zAV(L,x),X.push(x))});
HM6(this,X);return O};
_.P.beforeLoadModuleCode=function(A){var L;((L=this.JSC$12022_currentlyLoadingModule_)==null?void 0:L.getId())==="synthetic_module_overhead"&&this.JSC$12009_setLoaded();var O,X;BQg(this,(X=(O=this.JSC$12022_moduleInfoMap_[A])==null?void 0:O.deps_)!=null?X:[],function(x){x.module_=new Mz},function(x){return!x.isLoaded()});
this.JSC$12022_currentlyLoadingModule_=this.getModuleInfo(A)};
_.P.JSC$12009_setLoaded=function(){if(this.JSC$12022_currentlyLoadingModule_){var A=this.JSC$12022_currentlyLoadingModule_.getId(),L=[];if(this.JSC$12022_extraEdges_[A]){for(var O=_.d(Object.keys(this.JSC$12022_extraEdges_[A])),X=O.next();!X.done;X=O.next())X=X.value,this.getModuleInfo(X).isLoaded()||(this.removeExtraEdge(A,X),L.push(X));this.loadMultiple(L)}this.JSC$12022_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$12022_currentlyLoadingModule_=null;(!this.isModuleLoading(A)&&/^sy[0-9a-z]{0,4}$/.test(A)||A==="synthetic_module_overhead")&&delete this.JSC$12022_moduleInfoMap_[A];this.unsetModulesAsLoading(A)}};
_.P.setModulesAsLoading=function(){var A=this;_.f_.apply(0,arguments).forEach(function(L){A.loadingModules_[L]=!0})};
_.P.unsetModulesAsLoading=function(){var A=this;_.f_.apply(0,arguments).forEach(function(L){delete A.loadingModules_[L]})};
var zAV=function(A,L){return new _.eJ(function(O,X){var x=A.getModuleInfo(L);x.isLoaded()?O(null):(x.registerCallback(function(){O(null)}),Vm6(x,function(J){var Y="Error loading "+L+": "+J;
J instanceof dA.ModuleLoadFailure&&J.url&&(Y=Y+", requested url: "+J.url.toString());X(Error(Y))}))})},HM6=function(A,L){L=L.filter(function(O){return!A.isModuleLoading(O)&&!A.getModuleInfo(O).isLoaded()});
L.length>0&&(A.setModulesAsLoading.apply(A,_.le(L)),A.JSC$12022_queue_.push(L),Mm6(A))},Mm6=function(A){for(var L={};A.activeLoads_<Infinity&&A.JSC$12022_queue_.length>0;L={finishLoad:void 0,
ids$jscomp$37:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})L.ids$jscomp$37=A.JSC$12022_queue_.shift().filter(function(O){return!A.getModuleInfo(O).isLoaded()}),L.ids$jscomp$37.length>0&&(A.activeLoads_++,L.finishLoad=function(O){return function(){A.activeLoads_--;
Mm6(A);O.finishLoad=function(){}}}(L),_.Fe(L.ids$jscomp$37.map(function(O){return zAV(A,O)})).then(function(O){return function(){(0,O.finishLoad)()}}(L)),L.attempt$jscomp$6=0,L.load$jscomp$1=function(O){return function(){if(Object.keys(A.JSC$12022_extraEdges_).length>0&&!A.JSC$11075_loader_.supportsExtraEdges)throw Error("sd");
A.JSC$11075_loader_.JSC$12001_loadModules(O.ids$jscomp$37,A.JSC$12022_moduleInfoMap_,{extraEdges:A.JSC$12022_extraEdges_,onError:function(X,x){var J=jkL[O.attempt$jscomp$6++];J!==void 0?setTimeout(function(){(0,O.load$jscomp$1)()},J):(A.unsetModulesAsLoading.apply(A,_.le(O.ids$jscomp$37)),(0,O.finishLoad)(),O.ids$jscomp$37.forEach(function(Y){Y=A.getModuleInfo(Y);
if(!Y.isLoaded())Y.onError(new dA.ModuleLoadFailure(dA.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,X,O.ids$jscomp$37,x))}))}})}}(L),(0,L.load$jscomp$1)())},BQg=function(A,L,O,X,x){X=X===void 0?function(){return!0}:X;
x=x===void 0?{}:x;L=_.d(L);for(var J=L.next();!J.done;J=L.next()){J=J.value;var Y=A.getModuleInfo(J);!x[J]&&X(Y)&&(x[J]=!0,BQg(A,Y.deps_||[],O,X,x),O(Y))}};var $GN=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var hO9=Symbol("vd");window.JSCompiler_renameProperty=function(A){return A};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var aQl=!$GN||HTMLElement.es5Shimmed||_.Ou.Reflect===void 0||_.Ou.customElements===void 0||_.Ou.customElements.polyfillWrapFlushCallback||!1,kZu,U$D=function(){var A=HTMLElement;if(aQl)return A;if(kZu!==void 0)return kZu;var L=_.Ou.Reflect,O=function(){return L.construct(A,[],this.constructor)};
O.prototype=A.prototype;O.prototype.constructor=O;O.es5Shimmed=!0;Object.setPrototypeOf(O,A);return kZu=O},UG6=!1;aQl||UG6||(UG6=!0,_.Ou.HTMLElement=U$D());/*

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 pCO=/(url\()([^)]*)(\))/g,gfJ=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,wCs,sj;var IU=!window.ShadyDOM||!window.ShadyDOM.inUse,vKj=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),oKN=!window.customElements.polyfillWrapFlushCallback,AYH;if(AYH=IU&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var LCg=new CSSStyleSheet;LCg.replaceSync("");var OYu=document.createElement("div");OYu.attachShadow({mode:"open"});OYu.shadowRoot.adoptedStyleSheets=[LCg];AYH=OYu.shadowRoot.adoptedStyleSheets[0]===LCg}catch(A){AYH=!1}
var XG3=AYH,xac=window.Polymer&&window.Polymer.rootPath||N1O(document.baseURI||window.location.href),hl=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,Rqe=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,W2=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,smH=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,fd=window.Polymer&&window.Polymer.legacyOptimizations||!1,jv=window.Polymer&&window.Polymer.legacyWarnings||!1,JYj=window.Polymer&&window.Polymer.syncInitialRender||
!1,q7=window.Polymer&&window.Polymer.legacyUndefined||!1,PN3=window.Polymer&&window.Polymer.orderedComputed||!1,LX=window.Polymer&&window.Polymer.removeNestedTemplates||!1,OS=window.Polymer&&window.Polymer.fastDomIf||!1,Xo=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,da6=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,Yec=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var x9={},ul6={},wV=function(){return HTMLElement.apply(this,arguments)||this};
_.g(wV,HTMLElement);wV.import=function(A,L){return A?(A=x9[A]||ul6[A.toLowerCase()])&&L?A.querySelector(L):A:null};
wV.prototype.attributeChangedCallback=function(A,L,O){L!==O&&this.register()};
wV.prototype.register=function(A){if(A=A||this.id){if(W2&&(x9[A]||ul6[A.toLowerCase()])!==void 0)throw x9[A]=ul6[A.toLowerCase()]=null,Error("wd`"+A);this.id=A;x9[A]=ul6[A.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.v2.Object.defineProperties(wV.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var A=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;A=_.Jl(this.getAttribute("assetpath")||"",A.baseURI);this.__assetpath=N1O(A)}return this.__assetpath}}});
_.v2.Object.defineProperties(wV,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
wV["import"]=wV.import;wV.prototype.modules=x9;customElements.define("dom-module",wV);var Thc=0,KBP=0,P2=[],VMH=0,rCM=!1,DaJ=document.createTextNode(""),eDj,QL;(new window.MutationObserver(GRd)).observe(DaJ,{characterData:!0});_.sS={after:function(A){return{run:function(L){return window.setTimeout(L,A)},
cancel:function(L){window.clearTimeout(L)}}},
run:function(A,L){return window.setTimeout(A,L)},
cancel:function(A){window.clearTimeout(A)}};
_.FI={run:function(A){return window.requestAnimationFrame(A)},
cancel:function(A){window.cancelAnimationFrame(A)}};
eDj={run:function(A){return window.requestIdleCallback?window.requestIdleCallback(A):window.setTimeout(A,16)},
cancel:function(A){window.cancelIdleCallback?window.cancelIdleCallback(A):window.clearTimeout(A)}};
QL={run:function(A){rCM||(rCM=!0,DaJ.textContent=VMH++);P2.push(A);return Thc++},
cancel:function(A){var L=A-KBP;if(L>=0){if(!P2[L])throw Error("xd`"+A);P2[L]=null}}};var EB6=0,J_=function(A){var L=A.__mixinApplications;L||(L=new WeakMap,A.__mixinApplications=L);var O=EB6++;return function(X){var x=X.__mixinSet;if(x&&x[O])return X;var J=L,Y=J.get(X);Y||(Y=A(X),J.set(X,Y),X=Object.create(Y.__mixinSet||x||null),X[O]=!0,Y.__mixinSet=X);return Y}};_.bO=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(A){return ShadyDOM.patch(A)}:function(A){return A};var nB6=J_(function(A){var L=function(){var O=A.call(this)||this;O.__dataEnabled=!1;O.__dataReady=!1;O.__dataInvalid=!1;O.__data={};O.__dataPending=null;O.__dataOld=null;O.__dataInstanceProps=null;O.__dataCounter=0;O.__serializing=!1;O._initializeProperties();return O};
_.g(L,A);L.createProperties=function(O){var X=this.prototype,x;for(x in O)x in X||X._createPropertyAccessor(x)};
L.attributeNameForProperty=function(O){return O.toLowerCase()};
L.typeForProperty=function(){};
L.prototype._createPropertyAccessor=function(O,X){this._addPropertyToAttributeMap(O);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[O]||(this.__dataHasAccessor[O]=!0,this._definePropertyAccessor(O,X))};
L.prototype._addPropertyToAttributeMap=function(O){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var X=this.__dataAttributes[O];X||(X=this.constructor.attributeNameForProperty(O),this.__dataAttributes[X]=O);return X};
L.prototype._definePropertyAccessor=function(O,X){Object.defineProperty(this,O,{get:function(){return this.__data[O]},
set:X?function(){}:function(x){this._setPendingProperty(O,x,!0)&&this._invalidateProperties()}})};
L.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
L.prototype._initializeProperties=function(){for(var O in this.__dataHasAccessor)this.hasOwnProperty(O)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[O]=this[O],delete this[O])};
L.prototype._initializeInstanceProperties=function(O){Object.assign(this,O)};
L.prototype._setProperty=function(O,X){this._setPendingProperty(O,X)&&this._invalidateProperties()};
L.prototype._getProperty=function(O){return this.__data[O]};
L.prototype._setPendingProperty=function(O,X){var x=this.__data[O],J=this._shouldPropertyChange(O,X,x);J&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||O in this.__dataOld||(this.__dataOld[O]=x),this.__data[O]=X,this.__dataPending[O]=X);return J};
L.prototype._isPropertyPending=function(O){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(O))};
L.prototype._invalidateProperties=function(){var O=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,QL.run(function(){O.__dataInvalid&&(O.__dataInvalid=!1,O._flushProperties())}))};
L.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
L.prototype._flushProperties=function(){this.__dataCounter++;var O=this.__data,X=this.__dataPending,x=this.__dataOld;this._shouldPropertiesChange(O,X,x)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(O,X,x));this.__dataCounter--};
L.prototype._shouldPropertiesChange=function(O,X){return!!X};
L.prototype._propertiesChanged=function(){};
L.prototype._shouldPropertyChange=function(O,X,x){return x!==X&&(x===x||X===X)};
L.prototype.attributeChangedCallback=function(O,X,x,J){X!==x&&this._attributeToProperty(O,x);A.prototype.attributeChangedCallback&&A.prototype.attributeChangedCallback.call(this,O,X,x,J)};
L.prototype._attributeToProperty=function(O,X,x){if(!this.__serializing){var J=this.__dataAttributes;O=J&&J[O]||O;this[O]=this._deserializeValue(X,x||this.constructor.typeForProperty(O))}};
L.prototype._propertyToAttribute=function(O,X,x){this.__serializing=!0;x=arguments.length<3?this[O]:x;this._valueToNodeAttribute(this,x,X||this.constructor.attributeNameForProperty(O));this.__serializing=!1};
L.prototype._valueToNodeAttribute=function(O,X,x){X=this._serializeValue(X);if(x==="class"||x==="name"||x==="slot")O=(0,_.bO)(O);X===void 0?O.removeAttribute(x):O.setAttribute(x,X===""&&window.trustedTypes?window.trustedTypes.emptyScript:X)};
L.prototype._serializeValue=function(O){switch(typeof O){case "boolean":return O?"":void 0;default:return O!=null?O.toString():void 0}};
L.prototype._deserializeValue=function(O,X){switch(X){case Boolean:return O!==null;case Number:return Number(O);default:return O}};
return L});var tML=0,lEO=[];var bYJ=J_(function(A){function L(J){J=Object.getPrototypeOf(J);return J.prototype instanceof x?J:null}
function O(J){if(!J.hasOwnProperty("__ownProperties")){var Y=null;if(J.hasOwnProperty("properties")){var T=J.properties;if(T){Y={};for(var V in T){var E=T[V];Y[V]=typeof E==="function"?{type:E}:E}}}J.__ownProperties=Y}return J.__ownProperties}
var X=nB6(A),x=function(){return X.apply(this,arguments)||this};
_.g(x,X);x.finalize=function(){if(!this.hasOwnProperty("__finalized")){var J=L(this);J&&J.finalize();this.__finalized=!0;this._finalizeClass()}};
x._finalizeClass=function(){var J=O(this);J&&this.createProperties(J)};
x.typeForProperty=function(J){return(J=this._properties[J])&&J.type};
x.prototype._initializeProperties=function(){tML++;this.constructor.finalize();X.prototype._initializeProperties.call(this)};
x.prototype.connectedCallback=function(){X.prototype.connectedCallback&&X.prototype.connectedCallback.call(this);this._enableProperties()};
x.prototype.disconnectedCallback=function(){X.prototype.disconnectedCallback&&X.prototype.disconnectedCallback.call(this)};
_.v2.Object.defineProperties(x,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var J=this;if(!this.hasOwnProperty("__observedAttributes")){cCM(this.prototype);var Y=this._properties;this.__observedAttributes=Y?Object.keys(Y).map(function(T){return J.prototype._addPropertyToAttributeMap(T)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var J=L(this);this.__properties=Object.assign({},J&&J._properties,O(this))}return this.__properties}}});
return x});var CIJ={},FBD=/-[a-z]/g,ROe=/([A-Z])/g;for(var hDN={},SeN=HTMLElement.prototype;SeN;){for(var qeN=Object.getOwnPropertyNames(SeN),gBJ=0;gBJ<qeN.length;gBJ++)hDN[qeN[gBJ]]=!0;SeN=Object.getPrototypeOf(SeN)}var wGN=window.trustedTypes?function(A){return trustedTypes.isHTML(A)||trustedTypes.isScript(A)||trustedTypes.isScriptURL(A)}:function(){return!1},pGN=J_(function(A){var L=nB6(A);
A=function(){return L.apply(this,arguments)||this};
_.g(A,L);A.createPropertiesForAttributes=function(){for(var O=this.observedAttributes,X=0;X<O.length;X++)this.prototype._createPropertyAccessor(dV(O[X]))};
A.attributeNameForProperty=function(O){return Yd(O)};
A.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);L.prototype._initializeProperties.call(this)};
A.prototype._initializeProtoProperties=function(O){for(var X in O)this._setProperty(X,O[X])};
A.prototype._ensureAttribute=function(O,X){this.hasAttribute(O)||this._valueToNodeAttribute(this,X,O)};
A.prototype._serializeValue=function(O){switch(typeof O){case "object":if(O instanceof Date)return O.toString();if(O){if(wGN(O))return O;try{return JSON.stringify(O)}catch(X){return""}}default:return L.prototype._serializeValue.call(this,O)}};
A.prototype._deserializeValue=function(O,X){switch(X){case Object:try{var x=JSON.parse(O)}catch(J){x=O}break;case Array:try{x=JSON.parse(O)}catch(J){x=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+O)}break;case Date:x=isNaN(O)?String(O):Number(O);x=new Date(x);break;default:x=L.prototype._deserializeValue.call(this,O,X)}return x};
A.prototype._definePropertyAccessor=function(O,X){if(!hDN[O]){var x=this[O];x!==void 0&&(this.__data?this._setPendingProperty(O,x):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[O]=x))}L.prototype._definePropertyAccessor.call(this,O,X)};
A.prototype._hasAccessor=function(O){return this.__dataHasAccessor&&this.__dataHasAccessor[O]};
A.prototype._isPropertyPending=function(O){return!!(this.__dataPending&&O in this.__dataPending)};
return A});var iYn={"dom-if":!0,"dom-repeat":!0},NhN=!1,rYJ=!1,KCN=function(){var A=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(L){return L}});
return function(L,O,X){O=O.getAttribute(X);A&&X.startsWith("on-")?L.setAttribute(X,A.createScript(O,X)):L.setAttribute(X,O)}}(),G1l=J_(function(A){var L=function(){return A.apply(this,arguments)||this};
_.g(L,A);L._parseTemplate=function(O,X){if(!O._templateInfo){var x=O._templateInfo={};x.nodeInfoList=[];x.nestedTemplate=!!X;x.stripWhiteSpace=X&&X.stripWhiteSpace||O.hasAttribute&&O.hasAttribute("strip-whitespace");this._parseTemplateContent(O,x,{parent:null})}return O._templateInfo};
L._parseTemplateContent=function(O,X,x){return this._parseTemplateNode(O.content,X,x)};
L._parseTemplateNode=function(O,X,x){var J=!1;O.localName!="template"||O.hasAttribute("preserve-content")?O.localName==="slot"&&(X.hasInsertionPoint=!0):J=this._parseTemplateNestedTemplate(O,X,x)||J;if(!NhN){NhN=!0;var Y=document.createElement("textarea");Y.placeholder="a";rYJ=Y.placeholder===Y.textContent}rYJ&&O.localName==="textarea"&&O.placeholder&&O.placeholder===O.textContent&&(O.textContent=null);O.firstChild&&this._parseTemplateChildNodes(O,X,x);O.hasAttributes&&O.hasAttributes()&&(J=this._parseTemplateNodeAttributes(O,
X,x)||J);return J||x.noted};
L._parseTemplateChildNodes=function(O,X,x){if(O.localName!=="script"&&O.localName!=="style")for(var J=O.firstChild,Y=0,T;J;J=T){if(J.localName=="template"){var V=J.getAttribute("is");if(V&&iYn[V])for(T=J,T.removeAttribute("is"),J=T.ownerDocument.createElement(V),T.parentNode.replaceChild(J,T),J.appendChild(T);T.attributes.length;)V=T.attributes[0].name,KCN(J,T,V),T.removeAttribute(V)}T=J.nextSibling;if(J.nodeType===Node.TEXT_NODE){for(V=T;V&&V.nodeType===Node.TEXT_NODE;)J.textContent+=V.textContent,
T=V.nextSibling,O.removeChild(V),V=T;if(X.stripWhiteSpace&&!J.textContent.trim()){O.removeChild(J);continue}}V={parentIndex:Y,parentInfo:x};this._parseTemplateNode(J,X,V)&&(V.infoIndex=X.nodeInfoList.push(V)-1);J.parentNode&&Y++}};
L._parseTemplateNestedTemplate=function(O,X,x){X=this._parseTemplate(O,X);(X.content=O.content.ownerDocument.createDocumentFragment()).appendChild(O.content);x.templateInfo=X;return!0};
L._parseTemplateNodeAttributes=function(O,X,x){for(var J=!1,Y=Array.from(O.attributes),T=Y.length-1,V;V=Y[T];T--)J=this._parseTemplateNodeAttribute(O,X,x,V.name,V.value)||J;return J};
L._parseTemplateNodeAttribute=function(O,X,x,J,Y){return J.slice(0,3)==="on-"?(O.removeAttribute(J),x.events=x.events||[],x.events.push({name:J.slice(3),value:Y}),!0):J==="id"?(x.id=Y,!0):!1};
L._contentForTemplate=function(O){var X=O._templateInfo;return X&&X.content||O.content};
L.prototype._stampTemplate=function(O,X){O&&!O.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(O);X=X||this.constructor._parseTemplate(O);var x=X.nodeInfoList;O=document.importNode(X.content||O.content,!0);O.__noInsertionPoint=!X.hasInsertionPoint;var J=O.nodeList=Array(x.length);O.$={};for(var Y=0,T=x.length,V=void 0;Y<T&&(V=x[Y]);Y++){var E=J[Y]=QGJ(O,V);V.id&&(O.$[V.id]=E);var n=E,t=V,b=X;t.templateInfo&&(n._templateInfo=t.templateInfo,n._parentTemplateInfo=
b);if(V.events&&V.events.length)for(n=0,t=V.events,b=void 0;n<t.length&&(b=t[n]);n++)this._addMethodEventListenerToNode(E,b.name,b.value,this)}return O};
L.prototype._addMethodEventListenerToNode=function(O,X,x,J){x=mwu(J||O,x);this._addEventListenerToNode(O,X,x);return x};
L.prototype._addEventListenerToNode=function(O,X,x){O.addEventListener(X,x)};
L.prototype._removeEventListenerFromNode=function(O,X,x){O.removeEventListener(X,x)};
return L});var nd=0,Sv=[],ln6={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},cYN=/[A-Z]/,CNH=function(A,L,O,X,x){var J=x?Tk(A):A;if(L=L[J])for(J=0;J<L.length;J++){var Y=L[J];if(Y.info.lastRun!==nd&&(!x||WB_(A,Y.trigger))){Y.info.lastRun=nd;Y=Y.info;for(var T=O,V=X,E=0,n=T.length-1,t=-1;E<=n;){var b=E+n>>1,S=V.get(T[b].methodInfo)-V.get(Y.methodInfo);if(S<0)E=b+1;else if(S>0)n=b-1;else{t=b;break}}t<
0&&(t=n+1);T.splice(t,0,Y)}}},xlP=[],FCN=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"),dt=J_(function(A){var L=G1l(pGN(A));
A=function(){var O=L.call(this)||this;O.__isPropertyEffectsClient=!0;return O};
_.g(A,L);A.prototype._initializeProperties=function(){L.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};
A.prototype._registerHost=function(){if(Pg.length){var O=Pg[Pg.length-1];O._enqueueClient(this);this.__dataHost=O}};
A.prototype._initializeProtoProperties=function(O){this.__data=Object.create(O);this.__dataPending=Object.create(O);this.__dataOld={}};
A.prototype._initializeInstanceProperties=function(O){var X=this.__readOnly,x;for(x in O)X&&X[x]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[x]=this.__dataPending[x]=O[x])};
A.prototype._addPropertyEffect=function(O,X,x){this._createPropertyAccessor(O,X=="__readOnly");var J=jGJ(this,X,!0)[O];J||(J=this[X][O]=[]);J.push(x)};
A.prototype._removePropertyEffect=function(O,X,x){O=jGJ(this,X,!0)[O];x=O.indexOf(x);x>=0&&O.splice(x,1)};
A.prototype._hasPropertyEffect=function(O,X){X=this[X];return!(!X||!X[O])};
A.prototype._hasReadOnlyEffect=function(O){return this._hasPropertyEffect(O,"__readOnly")};
A.prototype._hasNotifyEffect=function(O){return this._hasPropertyEffect(O,"__notifyEffects")};
A.prototype._hasReflectEffect=function(O){return this._hasPropertyEffect(O,"__reflectEffects")};
A.prototype._hasComputedEffect=function(O){return this._hasPropertyEffect(O,"__computeEffects")};
A.prototype._setPendingPropertyOrPath=function(O,X,x,J){if(J||Tk(Array.isArray(O)?O[0]:O)!==O){if(!J&&(J=Ej(this,O),O=Zvp(this,O,X),!O||!L.prototype._shouldPropertyChange.call(this,O,X,J)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(O,X,x)){if(x=this.__dataLinkedPaths)for(var Y in x)J=x[Y],VL(Y,O)?(J=DZ(Y,J,O),this._setPendingPropertyOrPath(J,X,!0,!0)):VL(J,O)&&(J=DZ(J,Y,O),this._setPendingPropertyOrPath(J,X,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[O])return this._setPendingProperty(O,
X,x);this[O]=X}return!1};
A.prototype._setUnmanagedPropertyToNode=function(O,X,x){if(x!==O[X]||typeof x=="object")X==="className"&&(O=(0,_.bO)(O)),O[X]=x};
A.prototype._setPendingProperty=function(O,X,x){var J=this.__dataHasPaths&&uO(O);if(this._shouldPropertyChange(O,X,(J?this.__dataTemp:this.__data)[O])){this.__dataPending||(this.__dataPending={},this.__dataOld={});O in this.__dataOld||(this.__dataOld[O]=this.__data[O]);J?this.__dataTemp[O]=X:this.__data[O]=X;this.__dataPending[O]=X;if(J||this.__notifyEffects&&this.__notifyEffects[O])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[O]=x;return!0}return!1};
A.prototype._setProperty=function(O,X){this._setPendingProperty(O,X,!0)&&this._invalidateProperties()};
A.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
A.prototype._enqueueClient=function(O){this.__dataPendingClients=this.__dataPendingClients||[];O!==this&&this.__dataPendingClients.push(O)};
A.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
A.prototype.__enableOrFlushClients=function(){var O=this.__dataPendingClients;if(O){this.__dataPendingClients=null;for(var X=0;X<O.length;X++){var x=O[X];x.__dataEnabled?x.__dataPending&&x._flushProperties():x._enableProperties()}}};
A.prototype._readyClients=function(){this.__enableOrFlushClients()};
A.prototype.setProperties=function(O,X){for(var x in O)!X&&this.__readOnly&&this.__readOnly[x]||this._setPendingPropertyOrPath(x,O[x],!0);this._invalidateProperties()};
A.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
A.prototype._propertiesChanged=function(O,X,x){O=this.__dataHasPaths;this.__dataHasPaths=!1;var J;if(J=this.__computeEffects)if(PN3){nd++;var Y=aEu(this),T=[],V;for(V in X)CNH(V,J,T,Y,O);for(;V=T.shift();)UwO(this,"",X,x,V)&&CNH(V.methodInfo,J,T,Y,O);Object.assign(x,this.__dataOld);Object.assign(X,this.__dataPending);this.__dataPending=null}else for(Y=X;tl(this,J,Y,x,O);)Object.assign(x,this.__dataOld),Object.assign(X,this.__dataPending),Y=this.__dataPending,this.__dataPending=null;J=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(X,x,O);this._flushClients();tl(this,this.__reflectEffects,X,x,O);tl(this,this.__observeEffects,X,x,O);if(J){Y=this.__notifyEffects;T=nd++;for(var E in J)if(J[E]){if(V=Y){var n=Y;V=T;var t=E,b=X,S=x,w=O,l=!1,F=w?Tk(t):t;if(n=n[F]){F=0;for(var R=n.length,y=void 0;F<R&&(y=n[F]);F++)y.info&&y.info.lastRun===V||w&&!WB_(t,y.trigger)||(y.info&&(y.info.lastRun=V),y.fn(this,t,b,S,y.info,w,void 0),l=!0)}V=l}if(V)var M=!0;else{if(V=O)V=E,t=X,b=Tk(V),b!==
V?(b=Yd(b)+"-changed",zOu(this,b,t[V],V),V=!0):V=!1;V&&(M=!0)}}var H;M&&(H=this.__dataHost)&&H._invalidateProperties&&H._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
A.prototype._propagatePropertyChanges=function(O,X,x){this.__propagateEffects&&tl(this,this.__propagateEffects,O,X,x);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,O,X,x)};
A.prototype._runEffectsForTemplate=function(O,X,x,J){var Y=this,T=function(V,E){tl(Y,O.propertyEffects,V,x,E,O.nodeList);for(var n=O.firstChild;n;n=n.nextSibling)Y._runEffectsForTemplate(n,V,x,E)};
O.runEffects?O.runEffects(T,X,J):T(X,J)};
A.prototype.linkPaths=function(O,X){O=ev(O);X=ev(X);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[O]=X};
A.prototype.unlinkPaths=function(O){O=ev(O);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[O]};
A.prototype.notifySplices=function(O,X){var x={path:""};O=Ej(this,O,x);dlJ(this,O,x.path,X)};
A.prototype.get=function(O,X){return Ej(X||this,O)};
A.prototype.set=function(O,X,x){x?Zvp(x,O,X):this.__readOnly&&this.__readOnly[O]||this._setPendingPropertyOrPath(O,X,!0)&&this._invalidateProperties()};
A.prototype.push=function(O){var X=_.f_.apply(1,arguments),x={path:""},J=Ej(this,O,x),Y=J.length,T=J.push.apply(J,_.le(X));X.length&&gV(this,J,x.path,Y,X.length,[]);return T};
A.prototype.pop=function(O){var X={path:""};O=Ej(this,O,X);var x=!!O.length,J=O.pop();x&&gV(this,O,X.path,O.length,0,[J]);return J};
A.prototype.splice=function(O,X,x){var J=_.f_.apply(3,arguments),Y={path:""},T=Ej(this,O,Y);X<0?X=T.length-Math.floor(-X):X&&(X=Math.floor(X));var V=arguments.length===2?T.splice(X):T.splice.apply(T,[X,x].concat(_.le(J)));(J.length||V.length)&&gV(this,T,Y.path,X,J.length,V);return V};
A.prototype.shift=function(O){var X={path:""};O=Ej(this,O,X);var x=!!O.length,J=O.shift();x&&gV(this,O,X.path,0,0,[J]);return J};
A.prototype.unshift=function(O){var X=_.f_.apply(1,arguments),x={path:""},J=Ej(this,O,x),Y=J.unshift.apply(J,_.le(X));X.length&&gV(this,J,x.path,0,X.length,[]);return Y};
A.prototype.notifyPath=function(O,X){if(arguments.length==1){var x={path:""};X=Ej(this,O,x);x=x.path}else x=Array.isArray(O)?ev(O):O;this._setPendingPropertyOrPath(x,X,!0,!0)&&this._invalidateProperties()};
A.prototype._createReadOnlyProperty=function(O,X){this._addPropertyEffect(O,"__readOnly");X&&(this["_set"+(O[0].toUpperCase()+O.substring(1))]=function(x){this._setProperty(O,x)})};
A.prototype._createPropertyObserver=function(O,X,x){var J={property:O,method:X,dynamicFn:!!x};this._addPropertyEffect(O,"__observeEffects",{fn:Hve,info:J,trigger:{name:O}});x&&this._addPropertyEffect(X,"__observeEffects",{fn:Hve,info:J,trigger:{name:X}})};
A.prototype._createMethodObserver=function(O,X){var x=JRe(O);if(!x)throw Error("yd`"+O);Oqr(this,x,"__observeEffects",kRM,null,X)};
A.prototype._createNotifyingProperty=function(O){this._addPropertyEffect(O,"__notifyEffects",{fn:B1e,info:{eventName:Yd(O)+"-changed",property:O}})};
A.prototype._createReflectedProperty=function(O){var X=this.constructor.attributeNameForProperty(O);X[0]==="-"?console.warn("Property "+O+" cannot be reflected to attribute "+X+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(O,"__reflectEffects",{fn:MEu,info:{attrName:X}})};
A.prototype._createComputedProperty=function(O,X,x){var J=JRe(X);if(!J)throw Error("zd`"+X);X=Oqr(this,J,"__computeEffects",UwO,O,x);jGJ(this,"__computeInfo")[O]=X};
A.prototype._marshalArgs=function(O,X,x){for(var J=this.__data,Y=[],T=0,V=O.length;T<V;T++){var E=O[T],n=E.name,t=E.structured,b=E.wildcard,S=E.value;E.literal||(b?(E=VL(n,X),t=PE9(J,x,E?X:n),S={path:E?X:n,value:t,base:E?Ej(J,n):t}):S=t?PE9(J,x,n):J[n]);if(q7&&!this._overrideLegacyUndefined&&S===void 0&&O.length>1)return Sv;Y[T]=S}return Y};
A.addPropertyEffect=function(O,X,x){this.prototype._addPropertyEffect(O,X,x)};
A.createPropertyObserver=function(O,X,x){this.prototype._createPropertyObserver(O,X,x)};
A.createMethodObserver=function(O,X){this.prototype._createMethodObserver(O,X)};
A.createNotifyingProperty=function(O){this.prototype._createNotifyingProperty(O)};
A.createReadOnlyProperty=function(O,X){this.prototype._createReadOnlyProperty(O,X)};
A.createReflectedProperty=function(O){this.prototype._createReflectedProperty(O)};
A.createComputedProperty=function(O,X,x){this.prototype._createComputedProperty(O,X,x)};
A.bindTemplate=function(O){return this.prototype._bindTemplate(O)};
A.prototype._bindTemplate=function(O,X){var x=this.constructor._parseTemplate(O),J=this.__preBoundTemplateInfo==x;if(!J)for(var Y in x.propertyEffects)this._createPropertyAccessor(Y);X?(x=Object.create(x),x.wasPreBound=J,this.__templateInfo?(O=O._parentTemplateInfo||this.__templateInfo,X=O.lastChild,x.parent=O,O.lastChild=x,(x.previousSibling=X)?X.nextSibling=x:O.firstChild=x):this.__templateInfo=x):this.__preBoundTemplateInfo=x;return x};
A._addTemplatePropertyEffect=function(O,X,x){(O.hostProps=O.hostProps||{})[X]=!0;O=O.propertyEffects=O.propertyEffects||{};(O[X]=O[X]||[]).push(x)};
A.prototype._stampTemplate=function(O,X){X=X||this._bindTemplate(O,!0);Pg.push(this);O=L.prototype._stampTemplate.call(this,O,X);Pg.pop();X.nodeList=O.nodeList;if(!X.wasPreBound)for(var x=X.childNodes=[],J=O.firstChild;J;J=J.nextSibling)x.push(J);O.templateInfo=X;x=X.nodeList;J=X.nodeInfoList;if(J.length)for(var Y=0;Y<J.length;Y++){var T=x[Y],V=J[Y].bindings;if(V)for(var E=0;E<V.length;E++){var n=V[E],t=T,b=n;if(b.isCompound){for(var S=t.__dataCompoundStorage||(t.__dataCompoundStorage={}),w=b.parts,
l=Array(w.length),F=0;F<w.length;F++)l[F]=w[F].literal;w=b.target;S[w]=l;b.literal&&b.kind=="property"&&(w==="className"&&(t=(0,_.bO)(t)),t[w]=b.literal)}Lzy(T,this,n)}T.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(X,this.__data,null,!1),this._flushClients());return O};
A.prototype._removeBoundDom=function(O){O=O.templateInfo;var X=O.previousSibling,x=O.nextSibling,J=O.parent;X?X.nextSibling=x:J&&(J.firstChild=x);x?x.previousSibling=X:J&&(J.lastChild=X);O.nextSibling=O.previousSibling=null;O=O.childNodes;for(X=0;X<O.length;X++)x=O[X],(0,_.bO)((0,_.bO)(x).parentNode).removeChild(x)};
A._parseTemplateNode=function(O,X,x){var J=L._parseTemplateNode.call(this,O,X,x);if(O.nodeType===Node.TEXT_NODE){var Y=this._parseBindings(O.textContent,X);Y&&(O.textContent=XwD(Y)||" ",ARP(this,X,x,"text","textContent",Y),J=!0)}return J};
A._parseTemplateNodeAttribute=function(O,X,x,J,Y){var T=this._parseBindings(Y,X);if(T){Y=J;var V="property";cYN.test(J)?V="attribute":J[J.length-1]=="$"&&(J=J.slice(0,-1),V="attribute");var E=XwD(T);E&&V=="attribute"&&(J=="class"&&O.hasAttribute("class")&&(E+=" "+O.getAttribute(J)),O.setAttribute(J,E));V=="attribute"&&Y=="disable-upgrade$"&&O.setAttribute(J,"");O.localName==="input"&&Y==="value"&&O.setAttribute(Y,"");O.removeAttribute(Y);V==="property"&&(J=dV(J));ARP(this,X,x,V,J,T,E);return!0}return L._parseTemplateNodeAttribute.call(this,
O,X,x,J,Y)};
A._parseTemplateNestedTemplate=function(O,X,x){var J=L._parseTemplateNestedTemplate.call(this,O,X,x),Y=O.parentNode,T=x.templateInfo,V=Y.localName==="dom-if",E=Y.localName==="dom-repeat";LX&&(V||E)&&(Y.removeChild(O),x=x.parentInfo,x.templateInfo=T,x.noted=!0,J=!1);O=T.hostProps;if(OS&&V)O&&(X.hostProps=Object.assign(X.hostProps||{},O),LX||(x.parentInfo.noted=!0));else for(var n in O)ARP(this,X,x,"property","_host_"+n,[{mode:"{",source:n,dependencies:[n],hostProp:!0}]);return J};
A._parseBindings=function(O,X){for(var x=[],J=0,Y;(Y=FCN.exec(O))!==null;){Y.index>J&&x.push({literal:O.slice(J,Y.index)});J=Y[1][0];var T=!!Y[2];Y=Y[3].trim();var V=!1,E="",n=-1;J=="{"&&(n=Y.indexOf("::"))>0&&(E=Y.substring(n+2),Y=Y.substring(0,n),V=!0);n=JRe(Y);var t=[];if(n){var b=n,S=b.args;b=b.methodName;for(var w=0;w<S.length;w++){var l=S[w];l.literal||t.push(l)}if((S=X.dynamicFns)&&S[b]||n.static)t.push(b),n.dynamicFn=!0}else t.push(Y);x.push({source:Y,mode:J,negate:T,customEvent:V,signature:n,
dependencies:t,event:E});J=FCN.lastIndex}J&&J<O.length&&(O=O.substring(J))&&x.push({literal:O});return x.length?x:null};
A._evaluateBinding=function(O,X,x,J,Y,T){O=X.signature?kRM(O,x,J,Y,X.signature):x!=X.source?Ej(O,X.source):T&&uO(x)?Ej(O,x):O.__data[x];X.negate&&(O=!O);return O};
_.v2.Object.defineProperties(A.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return ln6}}});
return A}),Pg=[];var RDu=window.ShadyCSS&&window.ShadyCSS.cssBuild,Y9=J_(function(A){function L(X,x,J,Y){if(!RDu){for(var T=x.content.querySelectorAll("style"),V=VOu(x),E=DlD(J),n=x.content.firstElementChild,t=0;t<E.length;t++){var b=E[t];b.textContent=X._processStyleText(b.textContent,Y);x.content.insertBefore(b,n)}for(n=E=0;n<V.length;n++)t=V[n],b=T[E],b!==t?(t=t.cloneNode(!0),b.parentNode.insertBefore(t,b)):E++,t.textContent=X._processStyleText(t.textContent,Y)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(x,
J);if(Yec&&RDu&&XG3&&(x=x.content.querySelectorAll("style"))){var S="";Array.from(x).forEach(function(w){S+=w.textContent;w.parentNode.removeChild(w)});
X._styleSheet=new CSSStyleSheet;X._styleSheet.replaceSync(S)}}
var O=bYJ(dt(A));A=function(){return O.call(this)||this};
_.g(A,O);A._finalizeClass=function(){O._finalizeClass.call(this);var X;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(X=this.__ownObservers)&&this.createObservers(X,this._properties);this._prepareTemplate()};
A._prepareTemplate=function(){var X=this.template;X&&(typeof X==="string"?(console.error("template getter must return HTMLTemplateElement"),X=null):fd||(X=X.cloneNode(!0)));this.prototype._template=X};
A.createProperties=function(X){for(var x in X){var J=this.prototype,Y=x,T=X[x],V=X;T.computed&&(T.readOnly=!0);T.computed&&(J._hasReadOnlyEffect(Y)?console.warn("Cannot redefine computed property '"+Y+"'."):J._createComputedProperty(Y,T.computed,V));T.readOnly&&!J._hasReadOnlyEffect(Y)?J._createReadOnlyProperty(Y,!T.computed):T.readOnly===!1&&J._hasReadOnlyEffect(Y)&&console.warn("Cannot make readOnly property '"+Y+"' non-readOnly.");T.reflectToAttribute&&!J._hasReflectEffect(Y)?J._createReflectedProperty(Y):
T.reflectToAttribute===!1&&J._hasReflectEffect(Y)&&console.warn("Cannot make reflected property '"+Y+"' non-reflected.");T.notify&&!J._hasNotifyEffect(Y)?J._createNotifyingProperty(Y):T.notify===!1&&J._hasNotifyEffect(Y)&&console.warn("Cannot make notify property '"+Y+"' non-notify.");T.observer&&J._createPropertyObserver(Y,T.observer,V[T.observer]);J._addPropertyToAttributeMap(Y)}};
A.createObservers=function(X,x){for(var J=this.prototype,Y=0;Y<X.length;Y++)J._createMethodObserver(X[Y],x)};
A.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);O.prototype._initializeProperties.call(this);this.rootPath=xac;this.importPath=this.constructor.importPath;var X=this.constructor;if(!X.hasOwnProperty("__propertyDefaults")){X.__propertyDefaults=null;var x=X._properties,J;for(J in x){var Y=x[J];"value"in Y&&(X.__propertyDefaults=X.__propertyDefaults||{},X.__propertyDefaults[J]=Y)}}if(X=X.__propertyDefaults)for(var T in X)x=X[T],
this._canApplyPropertyDefault(T)&&(x=typeof x.value=="function"?x.value.call(this):x.value,this._hasAccessor(T)?this._setPendingProperty(T,x,!0):this[T]=x)};
A.prototype._canApplyPropertyDefault=function(X){return!this.hasOwnProperty(X)};
A._processStyleText=function(X,x){return ive(X,x)};
A._finalizeTemplate=function(X){var x=this.prototype._template;if(x&&!x.__polymerFinalized){x.__polymerFinalized=!0;var J=this.importPath;J=J?_.Jl(J):"";L(this,x,X,J);this.prototype._bindTemplate(x)}};
A.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);O.prototype.connectedCallback.call(this)};
A.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);O.prototype.ready.call(this)};
A.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));O.prototype._readyClients.call(this)};
A.prototype._attachDom=function(X){var x=(0,_.bO)(this);if(x.attachShadow)return X?(x.shadowRoot||(x.attachShadow({mode:"open",shadyUpgradeFragment:X}),x.shadowRoot.appendChild(X),this.constructor._styleSheet&&(x.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),JYj&&window.ShadyDOM&&window.ShadyDOM.flushInitial(x.shadowRoot),x.shadowRoot):null;throw Error("Bd");};
A.prototype.updateStyles=function(X){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,X)};
A.prototype.resolveUrl=function(X,x){!x&&this.importPath&&(x=_.Jl(this.importPath));return _.Jl(X,x)};
A._parseTemplateContent=function(X,x,J){x.dynamicFns=x.dynamicFns||this._properties;return O._parseTemplateContent.call(this,X,x,J)};
A._addTemplatePropertyEffect=function(X,x,J){!jv||x in this._properties||J.info.part.signature&&J.info.part.signature.static||J.info.part.hostProp||X.nestedTemplate||console.warn("Property '"+x+"' used in template but not declared in 'properties'; attribute will not be observed.");return O._addTemplatePropertyEffect.call(this,X,x,J)};
_.v2.Object.defineProperties(A,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var X=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof X==="function"&&(X=X());if(X===void 0){if(X=this.hasOwnProperty("is")){X=this.is;var x=null;if(X&&(!W2||smH)&&(x=wV.import(X,"template"),W2&&!x))throw Error("Ad`"+X);X=x}X=X||Object.getPrototypeOf(this.prototype).constructor.template}this._template=X}return this._template},
set:function(X){this._template=X}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var X=this.importMeta;X?this._importPath=N1O(X.url):this._importPath=(X=wV.import(this.is))&&X.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return A});var Qm7=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(A){return A}}),SrM=function(A,L){ma3(A,L);
this.value=L.reduce(function(O,X,x){return O+qru(X)+A[x+1]},A[0]).toString()},ma3;
SrM.prototype.toString=function(){return this.value};
_.fnu=function(A){var L=_.f_.apply(1,arguments);ma3(A,L);var O=document.createElement("template");L=L.reduce(function(X,x,J){if(x instanceof HTMLTemplateElement)x=x.innerHTML;else if(x instanceof SrM)x=qru(x);else throw Error("Dd`"+x);return X+x+A[J+1]},A[0]);
Qm7&&(L=Qm7.createHTML(L));O.innerHTML=L;return O};
ma3=function(A,L){if(!Array.isArray(A)||!Array.isArray(A.raw)||L.length!==A.length-1)throw new TypeError("Ed");};var uP=Y9(HTMLElement);var In6=J_(function(A){var L=Y9(A);A=function(){var O=L.call(this)||this;O.__lastItems=null;O.__lastMulti=null;O.__selectedMap=null;return O};
_.g(A,L);A.prototype.__updateSelection=function(O,X){var x=X.path;x=="items"?(X=X.base||[],x=this.__lastItems,O!==this.__lastMulti&&this.clearSelection(),x&&(x=hqp(X,x),this.__applySplices(x)),this.__lastItems=X,this.__lastMulti=O):X.path=="items.splices"?this.__applySplices(X.value.indexSplices):(O=x.slice(6),X=parseInt(O,10),O.indexOf(".")<0&&O==X&&this.__deselectChangedIdx(X))};
A.prototype.__applySplices=function(O){for(var X=this,x=this.__selectedMap,J={},Y=0;Y<O.length;J={s$jscomp$108:void 0},Y++){J.s$jscomp$108=O[Y];x.forEach(function(n){return function(t,b){t<n.s$jscomp$108.index||(t>=n.s$jscomp$108.index+n.s$jscomp$108.removed.length?x.set(b,t+n.s$jscomp$108.addedCount-n.s$jscomp$108.removed.length):x.set(b,-1))}}(J));
for(var T=0;T<J.s$jscomp$108.addedCount;T++){var V=J.s$jscomp$108.index+T;x.has(this.items[V])&&x.set(this.items[V],V)}}this.__updateLinks();var E=0;x.forEach(function(n,t){n<0?(X.multi?X.splice("selected",E,1):X.selected=X.selectedItem=null,x.delete(t)):E++})};
A.prototype.__updateLinks=function(){var O=this;this.__dataLinkedPaths={};if(this.multi){var X=0;this.__selectedMap.forEach(function(x){x>=0&&O.linkPaths("items."+x,"selected."+X++)})}else this.__selectedMap.forEach(function(x){O.linkPaths("selected","items."+x);
O.linkPaths("selectedItem","items."+x)})};
A.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
A.prototype.isSelected=function(O){return this.__selectedMap.has(O)};
A.prototype.isIndexSelected=function(O){return this.isSelected(this.items[O])};
A.prototype.__deselectChangedIdx=function(O){var X=this,x=this.__selectedIndexForItemIndex(O);if(x>=0){var J=0;this.__selectedMap.forEach(function(Y,T){x==J++&&X.deselect(T)})}};
A.prototype.__selectedIndexForItemIndex=function(O){if(O=this.__dataLinkedPaths["items."+O])return parseInt(O.slice(9),10)};
A.prototype.deselect=function(O){var X=this.__selectedMap.get(O);if(X>=0){this.__selectedMap.delete(O);var x;this.multi&&(x=this.__selectedIndexForItemIndex(X));this.__updateLinks();this.multi?this.splice("selected",x,1):this.selected=this.selectedItem=null}};
A.prototype.deselectIndex=function(O){this.deselect(this.items[O])};
A.prototype.select=function(O){this.selectIndex(this.items.indexOf(O))};
A.prototype.selectIndex=function(O){var X=this.items[O];this.isSelected(X)?this.toggle&&this.deselectIndex(O):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(X,O),this.__updateLinks(),this.multi?this.push("selected",X):this.selected=this.selectedItem=X)};
_.v2.Object.defineProperties(A,{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 A}),yYN=In6(uP),TC=function(){return yYN.apply(this,arguments)||this};
_.g(TC,yYN);_.v2.Object.defineProperties(TC,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(TC.is,TC);var ZY6=window.Polymer;window.Polymer=function(A){return window.Polymer._polymerFn(A)};
ZY6&&Object.assign(Polymer,ZY6);Polymer._polymerFn=function(){throw Error("Fd");};/*

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:ive,resolveUrl:_.Jl,pathFromUrl:N1O};Polymer.DomModule=wV;Polymer.Async={timeOut:_.sS,animationFrame:_.FI,idlePeriod:eDj,microTask:QL};Polymer.dedupingMixin=J_;Polymer.wrap=_.bO;Polymer.PropertiesChanged=nB6;Polymer.telemetry={instanceCount:tML,incrementInstanceCount:function(){tML++},
registrations:lEO,register:cCM,dumpRegistrations:function(){lEO.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=bYJ;Polymer.CaseMap={dashToCamelCase:dV,camelToDashCase:Yd};Polymer.PropertyAccessors=pGN;Polymer.TemplateStamp=G1l;Polymer.Path={isPath:uO,root:Tk,isAncestor:fEM,isDescendant:VL,translate:DZ,matches:IEP,normalize:ev,split:yCp,get:Ej,set:Zvp,isDeep:uO};Polymer.Settings={useShadow:IU,useNativeCSSProperties:vKj,useNativeCustomElements:oKN,get rootPath(){return xac},setRootPath:function(A){xac=A},
get sanitizeDOMValue(){return hl},setSanitizeDOMValue:function(A){hl=A},
get passiveTouchGestures(){return Rqe},setPassiveTouchGestures:function(A){Rqe=A},
get strictTemplatePolicy(){return W2},setStrictTemplatePolicy:function(A){W2=A},
get allowTemplateFromDomModule(){return smH},setAllowTemplateFromDomModule:function(A){smH=A},
get legacyOptimizations(){return fd},setLegacyOptimizations:function(A){fd=A},
get syncInitialRender(){return JYj},setSyncInitialRender:function(A){JYj=A},
get legacyUndefined(){return q7},setLegacyUndefined:function(A){q7=A},
get legacyWarnings(){return jv},setLegacyWarnings:function(A){jv=A},
get orderedComputed(){return PN3},setOrderedComputed:function(A){PN3=A},
get fastDomIf(){return OS},setFastDomIf:function(A){OS=A},
get removeNestedTemplates(){return LX},setRemoveNestedTemplates:function(A){LX=A},
get suppressTemplateNotifications(){return Xo},setSuppressTemplateNotifications:Xo};Polymer.rootPath!==void 0&&(xac=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(hl=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(Rqe=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(W2=Polymer.strictTemplatePolicy);smH=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(fd=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(JYj=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(q7=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(jv=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(PN3=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(OS=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(LX=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(Xo=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return hl},
set:function(A){hl=A}});Polymer.PropertyEffects=dt;Polymer.StyleGather={stylesFromModules:Tos,stylesFromModule:u2J,stylesFromTemplate:VOu,stylesFromModuleImports:DlD,cssFromModules:ED_,cssFromModule:eqe,cssFromTemplate:nD_,cssFromModuleImports:function(A){return(A=wV.import(A))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(A):""}};Polymer.ElementMixin=Y9;Polymer.updateStyles=function(A){window.ShadyCSS&&window.ShadyCSS.styleDocument(A)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:hqp};Polymer.html=_.fnu;Polymer.htmlLiteral=function(A){return new SrM(A,_.f_.apply(1,arguments))};Polymer.Element=uP;Polymer.ArraySelectorMixin=In6;Polymer.ArraySelector=TC;var jmL=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,WCN=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,LRe=/@media\s(.*)/;var iq9=null,pwd=window.HTMLImports&&window.HTMLImports.whenReady||null,Nod;var HYH=null,VV=null,D_=function(){this.customStyles=[];this.enqueued=!1;rRs(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},zDn=function(A){!A.enqueued&&VV&&(A.enqueued=!0,rRs(VV))};
D_.prototype.addCustomStyle=function(A){A.__seenByShadyCSS||(A.__seenByShadyCSS=!0,this.customStyles.push(A),zDn(this))};
D_.prototype.getStyleForCustomStyle=function(A){if(A.__shadyCSSCachedStyle)return A.__shadyCSSCachedStyle;var L;A.getStyle?L=A.getStyle():L=A;return L};
D_.prototype.processStyles=function(){for(var A=this.customStyles,L=0;L<A.length;L++){var O=A[L];if(!O.__shadyCSSCachedStyle){var X=this.getStyleForCustomStyle(O);X&&(X=X.__appliedElement||X,HYH&&HYH(X),O.__shadyCSSCachedStyle=X)}}return A};
D_.prototype.addCustomStyle=D_.prototype.addCustomStyle;D_.prototype.getStyleForCustomStyle=D_.prototype.getStyleForCustomStyle;D_.prototype.processStyles=D_.prototype.processStyles;Object.defineProperties(D_.prototype,{transformCallback:{get:function(){return HYH},
set:function(A){HYH=A}},
validateCallback:{get:function(){return VV},
set:function(A){var L=!1;VV||(L=!0);VV=A;L&&zDn(this)}}});var G_u=!(window.ShadyDOM&&window.ShadyDOM.inUse),Kzd,Uj;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(Uj=window.ShadyCSS.cssBuild);var BhL=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?Kzd=window.ShadyCSS.nativeCss:window.ShadyCSS?(l7u(window.ShadyCSS),window.ShadyCSS=void 0):l7u(window.WebComponents&&window.WebComponents.flags);var vzr=Kzd;var MMJ=new D_;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(A,L){MMJ.processStyles();gDr(A,L)},
styleElement:function(){MMJ.processStyles()},
styleDocument:function(A){MMJ.processStyles();gDr(document.body,A)},
getComputedStyleValue:function(A,L){return wwM(A,L)},
flushCustomStyles:function(){},
nativeCss:vzr,nativeShadow:G_u,cssBuild:Uj,disableRuntime:BhL});window.ShadyCSS.CustomStyleInterface=MMJ;var $aJ=window.ShadyCSS.CustomStyleInterface,e0=function(){var A=HTMLElement.call(this)||this;A._style=null;$aJ.addCustomStyle(A);return A};
_.g(e0,HTMLElement);e0.prototype.getStyle=function(){if(this._style)return this._style;var A=this.querySelector("style");if(!A)return null;this._style=A;var L=A.getAttribute("include");L&&(A.removeAttribute("include"),A.textContent=ED_(L)+A.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
e0.prototype.getStyle=e0.prototype.getStyle;window.customElements.define("custom-style",e0);Polymer.CustomStyle=e0;var ES=function(){this._timer=this._callback=this._asyncModule=null},nX,k1c;
ES.prototype.setConfig=function(A,L){var O=this;this._asyncModule=A;this._callback=L;this._timer=this._asyncModule.run(function(){O._timer=null;nX.delete(O);O._callback()})};
ES.prototype.cancel=function(){this.isActive()&&(anN(this),nX.delete(this))};
var anN=function(A){A.isActive()&&(A._asyncModule.cancel(A._timer),A._timer=null)};
ES.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
ES.prototype.isActive=function(){return this._timer!=null};
_.t_=function(A,L,O){A instanceof ES?anN(A):A=new ES;A.setConfig(L,O);return A};
nX=new Set;_.bP=function(A){nX.add(A)};
k1c=function(){var A=!!nX.size;nX.forEach(function(L){try{L.flush()}catch(O){setTimeout(function(){throw O;})}});
return A};var CEP=typeof document.head.style.touchAction==="string",cRO=["mousedown","mousemove","mouseup","click"],jI_=[0,1,4,2],UaL;try{UaL=(new MouseEvent("test",{buttons:1})).buttons===1}catch(A){UaL=!1}var ZqM=UaL,Fzu=!1;(function(){try{var A=Object.defineProperty({},"passive",{get:function(){Fzu=!0}});
window.addEventListener("test",null,A);window.removeEventListener("test",null,A)}catch(L){}})();
var mly=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),f7r=[],vBV={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},AWp={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},I7e=function(A){var L=A.sourceCapabilities;if(!L||L.firesTouchEvents)if(A.__polymerGesturesHandled={skip:!0},A.type==="click"){L=!1;for(var O=Bo9(A),X=0;X<O.length;X++){if(O[X].nodeType===Node.ELEMENT_NODE)if(O[X].localName==="label")f7r.push(O[X]);
else if(vBV[O[X].localName]){var x=O[X];var J=Array.prototype.slice.call(x.labels||[]);if(!J.length){J=[];try{var Y=x.getRootNode();if(x.id){var T=Y.querySelectorAll("label[for = '"+x.id+"']");for(x=0;x<T.length;x++)J.push(T[x])}}catch(V){}}for(x=0;x<J.length;x++)L=L||f7r.indexOf(J[x])>-1}if(O[X]===oBJ)return}L||(A.preventDefault(),A.stopPropagation())}},oBJ=null,h_=null,$l_=0,a79=0,MOy=-1,k_s=!1;
document.addEventListener("touchend",function(A){h_||yRe(!0);oBJ=Bo9(A)[0];h_=_.t_(h_,_.sS.after(2500),function(){yRe();h_=oBJ=null})},Fzu?{passive:!0}:!1);
var Bo9=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(A){return A.composedPath&&A.composedPath()||[]},c2={},Gk=[];
Uld({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){Kd(this.info)},
mousedown:function(A){if(rV(A)){var L=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A),O=this;Hqp(this.info,function(X){rV(X)||(m2("up",L,X),Kd(O.info))},function(X){rV(X)&&m2("up",L,X);
Kd(O.info)});
m2("down",L,A)}},
touchstart:function(A){m2("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A),A.changedTouches[0],A)},
touchend:function(A){m2("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A),A.changedTouches[0],A)}});
Uld({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(A){this.moves.length>2&&this.moves.shift();this.moves.push(A)},
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;Kd(this.info)},
mousedown:function(A){if(rV(A)){var L=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A),O=this,X=function(x){var J=x.clientX,Y=x.clientY;vDe(O.info,J,Y)&&(O.info.state=O.info.started?x.type==="mouseup"?"end":"track":"start",O.info.state==="start"&&lO("tap"),O.info.addMove({x:J,y:Y}),rV(x)||(O.info.state="end",Kd(O.info)),L&&oDO(O.info,L,x),O.info.started=!0)};
Hqp(this.info,X,function(x){O.info.started&&X(x);Kd(O.info)});
this.info.x=A.clientX;this.info.y=A.clientY}},
touchstart:function(A){A=A.changedTouches[0];this.info.x=A.clientX;this.info.y=A.clientY},
touchmove:function(A){var L=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A);A=A.changedTouches[0];var O=A.clientX,X=A.clientY;vDe(this.info,O,X)&&(this.info.state==="start"&&lO("tap"),this.info.addMove({x:O,y:X}),oDO(this.info,L,A),this.info.state="track",this.info.started=!0)},
touchend:function(A){var L=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A);A=A.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:A.clientX,y:A.clientY}),oDO(this.info,L,A))}});
Uld({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(A){rV(A)&&(this.info.x=A.clientX,this.info.y=A.clientY)},
click:function(A){rV(A)&&LTO(this.info,A)},
touchstart:function(A){A=A.changedTouches[0];this.info.x=A.clientX;this.info.y=A.clientY},
touchend:function(A){LTO(this.info,A.changedTouches[0],A)}});var AiJ=J_(function(A){var L=function(){return A.apply(this,arguments)||this};
_.g(L,A);L.prototype._addEventListenerToNode=function(O,X,x){Cd(O,X,x)||A.prototype._addEventListenerToNode.call(this,O,X,x)};
L.prototype._removeEventListenerFromNode=function(O,X,x){Fh(O,X,x)||A.prototype._removeEventListenerFromNode.call(this,O,X,x)};
return L});var S0=J_(function(A){var L=function(){return A.apply(this,arguments)||this};
_.g(L,A);L.prototype._shouldPropertyChange=function(O,X,x){return Oss(this,O,X,x,!0)};
return L}),LuN=J_(function(A){var L=function(){return A.apply(this,arguments)||this};
_.g(L,A);L.prototype._shouldPropertyChange=function(O,X,x){return Oss(this,O,X,x,this.mutableData)};
_.v2.Object.defineProperties(L,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return L});
S0._mutablePropertyChange=Oss;var XMs=!1;var O37=AiJ(LuN(dt(HTMLElement))),q_=function(){var A=O37.call(this)||this;if(W2)throw Error("Gd");A.root=null;A.$=null;A.__children=null;return A};
_.g(q_,O37);_.P=q_.prototype;_.P.attributeChangedCallback=function(){this.mutableData=!0};
_.P.connectedCallback=function(){xKe()||(this.style.display="none");this.render()};
_.P.disconnectedCallback=function(){this.__removeChildren()};
_.P.__insertChildren=function(){(0,_.bO)((0,_.bO)(this).parentNode).insertBefore(this.root,this)};
_.P.__removeChildren=function(){if(this.__children)for(var A=0;A<this.__children.length;A++)this.root.appendChild(this.__children[A])};
_.P.render=function(){var A=this;if(!this.__children){var L=L||this.querySelector("template");if(!L){var O=new MutationObserver(function(){if(L=A.querySelector("template"))O.disconnect(),A.render();else throw Error("Hd");});
O.observe(this,{childList:!0});return}this.root=this._stampTemplate(L);this.$=this.root.$;this.__children=[];for(var X=this.root.firstChild;X;X=X.nextSibling)this.__children[this.__children.length]=X;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.v2.Object.defineProperties(q_,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",q_);Polymer.Debouncer=ES;Polymer.Gestures={gestures:c2,recognizers:Gk,deepTargetFind:zqu,addListener:Cd,removeListener:Fh,register:Uld,setTouchAction:_.RU,prevent:lO,resetMouseCanceller:function(){h_&&h_.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:Cd,remove:Fh};Polymer.GestureEventListeners=AiJ;Polymer.MutableData=S0;Polymer.OptionalMutableData=LuN;Polymer.DomBind=q_;_.gt=function(){do{var A=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var L=k1c()}while(A||L)};var sHp=null;JWy.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:JWy,writable:!0}});var emM=dt(JWy),DK_=S0(emM),Xy3=dt(function(){}),yL=function(A){var L=Xy3.call(this)||this;
L._configureProperties(A);L.root=L._stampTemplate(L.__dataHost);var O=[];L.children=O;for(var X=L.root.firstChild;X;X=X.nextSibling)O.push(X),X.__templatizeInstance=L;L.__templatizeOwner&&L.__templatizeOwner.__hideTemplateChildren__&&L._showHideChildren(!0);O=L.__templatizeOptions;(A&&O.instanceProps||!O.instanceProps)&&L._enableProperties();return L};
_.g(yL,Xy3);_.P=yL.prototype;_.P._configureProperties=function(A){if(this.__templatizeOptions.forwardHostProp)for(var L in this.__hostProps)this._setPendingProperty(L,this.__dataHost["_host_"+L]);for(var O in A)this._setPendingProperty(O,A[O])};
_.P.forwardHostProp=function(A,L){this._setPendingPropertyOrPath(A,L,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.P._addEventListenerToNode=function(A,L,O){var X=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(A,L,function(J){J.model=X;O(J)});
else{var x=this.__dataHost.__dataHost;x&&x._addEventListenerToNode(A,L,O)}};
_.P._showHideChildren=function(A){dKO(A,this.children)};
_.P._setUnmanagedPropertyToNode=function(A,L,O){A.__hideTemplateChildren__&&A.nodeType==Node.TEXT_NODE&&L=="textContent"?A.__polymerTextContent__=O:Xy3.prototype._setUnmanagedPropertyToNode.call(this,A,L,O)};
_.P.dispatchEvent=function(){return!0};
_.v2.Object.defineProperties(yL.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var A=this.__parentModel;if(!A){var L;A=this;do A=A.__dataHost.__dataHost;while((L=A.__templatizeOptions)&&!L.parentModel);this.__parentModel=A}return A}}});
var uuO=S0(yL);var wt=function(){var A=uP.call(this)||this;A.__renderDebouncer=null;A._lastIf=!1;A.__hideTemplateChildren__=!1;return A};
_.g(wt,uP);_.P=wt.prototype;_.P.__debounceRender=function(){var A=this;this.__renderDebouncer=_.t_(this.__renderDebouncer,QL,function(){return A.__render()});
_.bP(this.__renderDebouncer)};
_.P.disconnectedCallback=function(){uP.prototype.disconnectedCallback.call(this);var A=(0,_.bO)(this).parentNode;A&&(A.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.bO)(A).host)||this.__teardownInstance()};
_.P.connectedCallback=function(){uP.prototype.connectedCallback.call(this);xKe()||(this.style.display="none");this.if&&this.__debounceRender()};
_.P.__ensureTemplate=function(){var A=this;if(!this.__template){var L=this._templateInfo?this:(0,_.bO)(this).querySelector("template");if(!L){var O=new MutationObserver(function(){if((0,_.bO)(A).querySelector("template"))O.disconnect(),A.__render();else throw Error("Kd");});
O.observe(this,{childList:!0});return!1}this.__template=L}return!0};
_.P.__ensureInstance=function(){var A=(0,_.bO)(this).parentNode;if(this.__hasInstance()){var L=this.__getInstanceNodes();if(L&&L.length&&(0,_.bO)(this).previousSibling!==L[L.length-1])for(var O=0,X=void 0;O<L.length&&(X=L[O]);O++)(0,_.bO)(A).insertBefore(X,this)}else{if(!A||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(A)}return!0};
_.P.render=function(){_.gt()};
_.P.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();Xo&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.P.__hasInstance=function(){};
_.P.__getInstanceNodes=function(){};
_.P.__createAndInsertInstance=function(){};
_.P.__teardownInstance=function(){};
_.P._showHideChildren=function(){};
_.v2.Object.defineProperties(wt,{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:wt.prototype.__debounceRender},restamp:{type:Boolean,observer:wt.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var xTJ=function(){var A=wt.call(this)||this;A.__instance=null;A.__syncInfo=null;return A};
_.g(xTJ,wt);_.P=xTJ.prototype;_.P.__hasInstance=function(){return!!this.__instance};
_.P.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.P.__createAndInsertInstance=function(A){var L=this,O=this.__dataHost||this;if(W2&&!this.__dataHost)throw Error("Id");var X=O._bindTemplate(this.__template,!0);X.runEffects=function(x,J,Y){var T=L.__syncInfo;if(L.if)T&&(L.__syncInfo=null,L._showHideChildren(),J=Object.assign(T.changedProps,J)),x(J,Y);else if(L.__instance)if(T||(T=L.__syncInfo={runEffects:x,changedProps:{}}),Y)for(var V in J)x=Tk(V),T.changedProps[x]=L.__dataHost[x];else Object.assign(T.changedProps,J)};
this.__instance=O._stampTemplate(this.__template,X);(0,_.bO)(A).insertBefore(this.__instance,this)};
_.P.__syncHostProperties=function(){var A=this.__syncInfo;A&&(this.__syncInfo=null,A.runEffects(A.changedProps,!1))};
_.P.__teardownInstance=function(){var A=this.__dataHost||this;this.__instance&&(A._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.P._showHideChildren=function(){var A=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==A&&(this.__instance.__hidden=A,dKO(A,this.__instance.templateInfo.childNodes));A||this.__syncHostProperties()};
var sac=function(){var A=wt.call(this)||this;A.__ctor=null;A.__instance=null;A.__invalidProps=null;return A};
_.g(sac,wt);_.P=sac.prototype;_.P.__hasInstance=function(){return!!this.__instance};
_.P.__getInstanceNodes=function(){return this.__instance.children};
_.P.__createAndInsertInstance=function(A){this.__ctor||(this.__ctor=ZZ(this.__template,this,{mutableData:!0,forwardHostProp:function(L,O){this.__instance&&(this.if?this.__instance.forwardHostProp(L,O):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[Tk(L)]=!0))}}));
this.__instance=new this.__ctor;(0,_.bO)(A).insertBefore(this.__instance.root,this)};
_.P.__teardownInstance=function(){if(this.__instance){var A=this.__instance.children;if(A&&A.length){var L=(0,_.bO)(A[0]).parentNode;if(L){L=(0,_.bO)(L);for(var O=0,X=void 0;O<A.length&&(X=A[O]);O++)L.removeChild(X)}}this.__instance=this.__invalidProps=null}};
_.P.__syncHostProperties=function(){var A=this.__invalidProps;if(A){this.__invalidProps=null;for(var L in A)this.__instance._setPendingProperty(L,this.__dataHost[L]);this.__instance._flushProperties()}};
_.P._showHideChildren=function(){var A=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==A&&(this.__instance.__hidden=A,this.__instance._showHideChildren(A));A||this.__syncHostProperties()};
_.mi=OS?xTJ:sac;customElements.define(_.mi.is,_.mi);Polymer.enqueueDebouncer=_.bP;Polymer.flush=_.gt;Polymer.Templatize={templatize:ZZ,modelForElement:Sip};Polymer.TemplateInstanceBase=yL;Polymer.DomIf=_.mi;var Jin=LuN(uP),QU=function(){var A=Jin.call(this)||this;A.__instances=[];A.__renderDebouncer=null;A.__itemsIdxToInstIdx={};A.__chunkCount=null;A.__renderStartTime=null;A.__itemsArrayChanged=!1;A.__shouldMeasureChunk=!1;A.__shouldContinueChunking=!1;A.__chunkingId=0;A.__sortFn=null;A.__filterFn=null;A.__observePaths=null;A.__ctor=null;A.__isDetached=!0;A.template=null;return A};
_.g(QU,Jin);_.P=QU.prototype;_.P.disconnectedCallback=function(){Jin.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var A=0;A<this.__instances.length;A++)this.__detachInstance(A);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.P.connectedCallback=function(){Jin.prototype.connectedCallback.call(this);xKe()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var A=(0,_.bO)((0,_.bO)(this).parentNode),L=0;L<this.__instances.length;L++)this.__attachInstance(L,A);this.__chunkingId&&this.__render()}};
_.P.__ensureTemplatized=function(){var A=this;if(!this.__ctor){var L=this.template=this._templateInfo?this:this.querySelector("template");if(!L){var O=new MutationObserver(function(){if(A.querySelector("template"))O.disconnect(),A.__render();else throw Error("Ld");});
O.observe(this,{childList:!0});return!1}var X={};X[this.as]=!0;X[this.indexAs]=!0;X[this.itemsIndexAs]=!0;this.__ctor=ZZ(L,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:X,forwardHostProp:function(x,J){for(var Y=this.__instances,T=0,V=void 0;T<Y.length&&(V=Y[T]);T++)V.forwardHostProp(x,J)},
notifyInstanceProp:function(x,J,Y){IEP(this.as,J)&&(x=x[this.itemsIndexAs],J==this.as&&(this.items[x]=Y),J=DZ(this.as,"items."+x,J),this.notifyPath(J,Y))}})}return!0};
_.P.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.P.__functionFromPropertyValue=function(A){if(typeof A==="string"){var L=this.__getMethodHost();return function(){return L[A].apply(L,arguments)}}return A};
_.P.__sortChanged=function(A){this.__sortFn=this.__functionFromPropertyValue(A);this.items&&this.__debounceRender(this.__render)};
_.P.__filterChanged=function(A){this.__filterFn=this.__functionFromPropertyValue(A);this.items&&this.__debounceRender(this.__render)};
_.P.__computeFrameTime=function(A){return Math.ceil(1E3/A)};
_.P.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.P.__handleObservedPaths=function(A){if(this.__sortFn||this.__filterFn)if(!A)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var L=this.__observePaths,O=0;O<L.length;O++)A.indexOf(L[O])===0&&this.__debounceRender(this.__render,this.delay)};
_.P.__itemsChanged=function(A){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(A.path,A.value)||(A.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.P.__debounceRender=function(A,L){L=L===void 0?0:L;this.__renderDebouncer=_.t_(this.__renderDebouncer,L>0?_.sS.after(L):QL,A.bind(this));_.bP(this.__renderDebouncer)};
_.P.render=function(){this.__debounceRender(this.__render);_.gt()};
_.P.__render=function(){var A=this;if(this.__ensureTemplatized()){var L=this.items||[],O=this.__sortAndFilterItems(L),X=this.__calculateLimit(O.length);this.__updateInstances(L,X,O);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){A.__chunkingId=null;A.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);Xo&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.P.__sortAndFilterItems=function(A){for(var L=this,O=Array(A.length),X=0;X<A.length;X++)O[X]=X;this.__filterFn&&(O=O.filter(function(x,J,Y){return L.__filterFn(A[x],J,Y)}));
this.__sortFn&&O.sort(function(x,J){return L.__sortFn(A[x],A[J])});
return O};
_.P.__calculateLimit=function(A){var L=A,O=this.__instances.length;if(this.initialCount){var X;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(L=Math.min(A,this.initialCount),this.__chunkCount=(X=Math.max(L-O,0))||1):(X=Math.min(Math.max(A-O,0),this.__chunkCount),L=Math.min(O+X,A));this.__shouldMeasureChunk=X===this.__chunkCount;this.__shouldContinueChunking=L<A;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return L};
_.P.__continueChunking=function(){if(this.__shouldMeasureChunk){var A=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/A*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.P.__updateInstances=function(A,L,O){var X=this.__itemsIdxToInstIdx={},x;for(x=0;x<L;x++){var J=this.__instances[x],Y=O[x],T=A[Y];X[Y]=x;J?(J._setPendingProperty(this.as,T),J._setPendingProperty(this.indexAs,x),J._setPendingProperty(this.itemsIndexAs,Y),J._flushProperties()):this.__insertInstance(T,x,Y)}for(A=this.__instances.length-1;A>=x;A--)this.__detachAndRemoveInstance(A)};
_.P.__detachInstance=function(A){A=this.__instances[A];for(var L=(0,_.bO)(A.root),O=0;O<A.children.length;O++)L.appendChild(A.children[O]);return A};
_.P.__attachInstance=function(A,L){L.insertBefore(this.__instances[A].root,this)};
_.P.__detachAndRemoveInstance=function(A){this.__detachInstance(A);this.__instances.splice(A,1)};
_.P.__stampInstance=function(A,L,O){var X={};X[this.as]=A;X[this.indexAs]=L;X[this.itemsIndexAs]=O;return new this.__ctor(X)};
_.P.__insertInstance=function(A,L,O){A=this.__stampInstance(A,L,O);O=(O=this.__instances[L+1])?O.children[0]:this;(0,_.bO)((0,_.bO)(this).parentNode).insertBefore(A.root,O);return this.__instances[L]=A};
_.P._showHideChildren=function(A){for(var L=0;L<this.__instances.length;L++)this.__instances[L]._showHideChildren(A)};
_.P.__handleItemPath=function(A,L){var O=A.slice(6),X=O.indexOf(".");A=X<0?O:O.substring(0,X);if(A==parseInt(A,10)){O=X<0?"":O.substring(X+1);this.__handleObservedPaths(O);if(A=this.__instances[this.__itemsIdxToInstIdx[A]])A._setPendingPropertyOrPath(this.as+(O?"."+O:""),L,!1,!0),A._flushProperties();return!0}};
_.P.itemForElement=function(A){return(A=this.modelForElement(A))&&A[this.as]};
_.P.indexForElement=function(A){return(A=this.modelForElement(A))&&A[this.indexAs]};
_.P.modelForElement=function(A){return Sip(this.template,A)};
_.v2.Object.defineProperties(QU,{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:QU.prototype.__sortChanged},filter:{type:Function,observer:QU.prototype.__filterChanged},observe:{type:String,observer:QU.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!Xo,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.*)"]}}});
QU.prototype._setRenderedItemCount=function(){};
customElements.define(QU.is,QU);Polymer.DomRepeat=QU;var PnN=function(A,L){var O=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=A;this.callback=L;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){O._schedule()};
this.connect();this._schedule()},dTH=function(A){var L=(0,_.bO)(A);
if(H2(A))return L.assignedNodes({flatten:!0});A=[];for(var O=0;O<L.childNodes.length;O++){var X=L.childNodes[O];H2(X)?A.push.apply(A,_.le((0,_.bO)(X).assignedNodes({flatten:!0}))):A.push(X)}return A};
_.P=PnN.prototype;_.P.connect=function(){var A=this;H2(this._target)?this._listenSlots([this._target]):(0,_.bO)(this._target).children&&(this._listenSlots((0,_.bO)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(L){A._processMutations(L)}):(this._nativeChildrenObserver=new MutationObserver(function(L){A._processMutations(L)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.P.disconnect=function(){H2(this._target)?this._unlistenSlots([this._target]):(0,_.bO)(this._target).children&&(this._unlistenSlots((0,_.bO)(this._target).children),window.ShadyDOM&&this._shadyChildrenObserver?(window.ShadyDOM.unobserveChildren(this._shadyChildrenObserver),this._shadyChildrenObserver=null):this._nativeChildrenObserver&&(this._nativeChildrenObserver.disconnect(),this._nativeChildrenObserver=null));this._connected=!1};
_.P._schedule=function(){var A=this;this._scheduled||(this._scheduled=!0,QL.run(function(){return A.flush()}))};
_.P._processMutations=function(A){this._processSlotMutations(A);this.flush()};
_.P._processSlotMutations=function(A){if(A)for(var L=0;L<A.length;L++){var O=A[L];O.addedNodes&&this._listenSlots(O.addedNodes);O.removedNodes&&this._unlistenSlots(O.removedNodes)}};
_.P.flush=function(){if(!this._connected)return!1;window.ShadyDOM&&ShadyDOM.flush();this._nativeChildrenObserver?this._processSlotMutations(this._nativeChildrenObserver.takeRecords()):this._shadyChildrenObserver&&this._processSlotMutations(this._shadyChildrenObserver.takeRecords());this._scheduled=!1;for(var A={target:this._target,addedNodes:[],removedNodes:[]},L=dTH(this._target),O=hqp(L,this._effectiveNodes),X=0,x=void 0;X<O.length&&(x=O[X]);X++)for(var J=0,Y=void 0;J<x.removed.length&&(Y=x.removed[J]);J++)A.removedNodes.push(Y);
X=0;for(x=void 0;X<O.length&&(x=O[X]);X++)for(J=x.index;J<x.index+x.addedCount;J++)A.addedNodes.push(L[J]);this._effectiveNodes=L;L=!1;if(A.addedNodes.length||A.removedNodes.length)L=!0,this.callback.call(this._target,A);return L};
_.P._listenSlots=function(A){for(var L=0;L<A.length;L++){var O=A[L];H2(O)&&O.addEventListener("slotchange",this._boundSchedule)}};
_.P._unlistenSlots=function(A){for(var L=0;L<A.length;L++){var O=A[L];H2(O)&&O.removeEventListener("slotchange",this._boundSchedule)}};var pX=Element.prototype,YP7=pX.matches||pX.matchesSelector||pX.mozMatchesSelector||pX.msMatchesSelector||pX.oMatchesSelector||pX.webkitMatchesSelector,uZj=function(A,L){return YP7.call(A,L)},zk=function(A){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(A);
this.node=A},ecu;
_.P=zk.prototype;_.P.observeNodes=function(A){return new PnN(this.node,A)};
_.P.unobserveNodes=function(A){A.disconnect()};
_.P.notifyObserver=function(){};
_.P.deepContains=function(A){if((0,_.bO)(this.node).contains(A))return!0;var L=A;for(A=A.ownerDocument;L&&L!==A&&L!==this.node;)L=(0,_.bO)(L).parentNode||(0,_.bO)(L).host;return L===this.node};
_.P.getOwnerRoot=function(){return(0,_.bO)(this.node).getRootNode()};
_.P.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.bO)(this.node).assignedNodes({flatten:!0}):[]};
_.P.getDestinationInsertionPoints=function(){for(var A=[],L=(0,_.bO)(this.node).assignedSlot;L;)A.push(L),L=(0,_.bO)(L).assignedSlot;return A};
_.P.importNode=function(A,L){return(0,_.bO)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(A,L)};
_.P.getEffectiveChildNodes=function(){return dTH(this.node)};
_.P.queryDistributedElements=function(A){for(var L=this.getEffectiveChildNodes(),O=[],X=0,x=L.length,J=void 0;X<x&&(J=L[X]);X++)J.nodeType===Node.ELEMENT_NODE&&uZj(J,A)&&O.push(J);return O};
_.v2.Object.defineProperties(zk.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var A=this.node;return A._activeElement!==void 0?A._activeElement:A.activeElement}}});
var iP=function(A){this.event=A};
_.v2.Object.defineProperties(iP.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 TM6=zk;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var VQn=window.ShadyDOM.Wrapper,DTV=function(){return VQn.apply(this,arguments)||this};
_.g(DTV,VQn);Object.getOwnPropertyNames(zk.prototype).forEach(function(A){A!="activeElement"&&A!="constructor"&&(DTV.prototype[A]=zk.prototype[A])});
gzP(DTV.prototype,["classList"]);TM6=DTV;Object.defineProperties(iP.prototype,{localTarget:{get:function(){var A=this.event.currentTarget;A=A&&_.ii(A).getOwnerRoot();for(var L=this.path,O=0;O<L.length;O++){var X=L[O];if(_.ii(X).getOwnerRoot()===A)return X}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else qir(),gzP(zk.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),wMM();ecu=TM6;_.ii=function(A){A=A||document;if(A instanceof TM6)return A;if(A instanceof iP)return A;var L=A.__domApi;L||(A instanceof Event?L=new iP(A):L=new TM6(A),A.__domApi=L);return L};var Ec7=/:host\(:dir\((ltr|rtl)\)\)/g,ncu=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,tQc=/:dir\((?:ltr|rtl)\)/,b37=!(!window.ShadyDOM||!window.ShadyDOM.inUse),M7=[],N_=null,B2="",hcj=J_(function(A){b37||N_||(B2=document.documentElement.getAttribute("dir"),N_=new MutationObserver(pMr),N_.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var L=pGN(A);A=function(){var O=L.call(this)||this;O.__autoDirOptOut=!1;return O};
_.g(A,L);A._processStyleText=function(O,X){O=L._processStyleText.call(this,O,X);!b37&&tQc.test(O)&&(O=this._replaceDirInCssText(O),this.__activateDir=!0);return O};
A._replaceDirInCssText=function(O){O=O.replace(Ec7,':host([dir="$1"])');return O=O.replace(ncu,':host([dir="$2"]) $1')};
A.prototype.ready=function(){L.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
A.prototype.connectedCallback=function(){L.prototype.connectedCallback&&L.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(N_&&N_.takeRecords().length&&pMr(),M7.push(this),this.__autoDirOptOut||this.setAttribute("dir",B2))};
A.prototype.disconnectedCallback=function(){L.prototype.disconnectedCallback&&L.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var O=M7.indexOf(this);O>-1&&M7.splice(O,1)}};
A.__activateDir=!1;return A});var SP7=function(A){for(;A;){var L=Object.getOwnPropertyDescriptor(A,"observedAttributes");if(L)return L.get;A=Object.getPrototypeOf(A.prototype).constructor}return function(){return[]}};
J_(function(A){var L=Y9(A),O=SP7(L);A=function(){return L.call(this)||this};
_.g(A,L);A.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:L.prototype._initializeProperties.call(this)};
A.prototype._enableProperties=function(){this.__isUpgradeDisabled||L.prototype._enableProperties.call(this)};
A.prototype._canApplyPropertyDefault=function(X){return L.prototype._canApplyPropertyDefault.call(this,X)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(X))};
A.prototype.attributeChangedCallback=function(X,x,J,Y){X=="disable-upgrade"?this.__isUpgradeDisabled&&J==null&&(L.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.bO)(this).isConnected&&L.prototype.connectedCallback.call(this)):L.prototype.attributeChangedCallback.call(this,X,x,J,Y)};
A.prototype.connectedCallback=function(){this.__isUpgradeDisabled||L.prototype.connectedCallback.call(this)};
A.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||L.prototype.disconnectedCallback.call(this)};
_.v2.Object.defineProperties(A,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return O.call(this).concat("disable-upgrade")}}});
return A});var $d=!1,NAe=[],aU=[];var lF_=window.ShadyDOM,cW_=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",FT9):document.readyState==="interactive"||document.readyState==="complete"?FT9():window.addEventListener("DOMContentLoaded",FT9);var mKP=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=""},Rm_=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,QHp=/@import[^;]*;/gim,WTp=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,Hsp=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,zmu=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,BAD=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,Zsu=/^@[^\s]*keyframes/,
yWP=/\s+/g;var MXM={};var kyD=Promise.resolve();var qPN=new Set;var gc6=/;\s*/m,wyL=/^\s*(initial)|(inherit)\s*$/,py6=/\s*!important/,i3n=function(){this._map={}};
i3n.prototype.set=function(A,L){A=A.trim();this._map[A]={properties:L,dependants:{}}};
i3n.prototype.get=function(A){A=A.trim();return this._map[A]||null};
var NM3=null,rt=function(){this._measureElement=this._currentElement=null;this._map=new i3n};
_.P=rt.prototype;_.P.detectMixin=function(A){A=WCN.test(A)||jmL.test(A);WCN.lastIndex=0;jmL.lastIndex=0;return A};
_.P.transformTemplate=function(A,L){if(A._gatheredStyle===void 0){var O=[];for(var X=A.content.querySelectorAll("style"),x=0;x<X.length;x++){var J=X[x];if(J.hasAttribute("shady-unscoped")){if(!G_u){var Y=J.textContent;if(!qPN.has(Y)){qPN.add(Y);var T=document.createElement("style");T.setAttribute("shady-unscoped","");T.textContent=Y;document.head.appendChild(T)}J.parentNode.removeChild(J)}}else O.push(J.textContent),J.parentNode.removeChild(J)}(O=O.join("").trim())?(X=document.createElement("style"),
X.textContent=O,A.content.insertBefore(X,A.content.firstChild),O=X):O=null;A._gatheredStyle=O}return(A=A._gatheredStyle)?this.JSC$12231_transformStyle(A,L):null};
_.P.JSC$12231_transformStyle=function(A,L){L=L===void 0?"":L;var O=AVO(A);this.transformRules(O,L);A.textContent=ozP(O);return O};
_.P.transformCustomStyle=function(A){var L=this,O=AVO(A);O59(O,function(X){X.selector===":root"&&(X.selector="html");L.transformRule(X)});
A.textContent=ozP(O);return O};
_.P.transformRules=function(A,L){var O=this;this._currentElement=L;O59(A,function(X){O.transformRule(X)});
this._currentElement=null};
_.P.transformRule=function(A){A.cssText=rij(this,A.parsedCssText,A);A.selector===":root"&&(A.selector=":host > *")};
var rij=function(A,L,O){L=L.replace(jmL,function(X,x,J,Y){return A._produceCssProperties(X,x,J,Y,O)});
return A._consumeCssProperties(L,O)};
_.P=rt.prototype;_.P._getInitialValueForProperty=function(A){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(A)};
_.P._fallbacksFromPreviousRules=function(A){for(var L=this,O=A;O.parent;)O=O.parent;var X={},x=!1;O59(O,function(J){(x=x||J===A)||J.selector===A.selector&&Object.assign(X,L._cssTextToMap(J.parsedCssText))});
return X};
_.P._consumeCssProperties=function(A,L){for(var O;O=WCN.exec(A);){var X=O[0],x=O[1];O=O.index;var J=O+X.indexOf("@apply"),Y=O+X.length;X=A.slice(0,J);A=A.slice(Y);J=L?this._fallbacksFromPreviousRules(L):{};Object.assign(J,this._cssTextToMap(X));x=this._atApplyToCssProperties(x,J);A=X+x+A;WCN.lastIndex=O+x.length}return A};
_.P._atApplyToCssProperties=function(A,L){A=A.replace(gc6,"");var O=[],X=this._map.get(A);X||(this._map.set(A,{}),X=this._map.get(A));if(X){this._currentElement&&(X.dependants[this._currentElement]=!0);var x,J=X.properties;for(x in J){var Y=L&&L[x];X=[x,": var(",A,"_-_",x];Y&&X.push(",",Y.replace(py6,""));X.push(")");py6.test(J[x])&&X.push(" !important");O.push(X.join(""))}}return O.join("; ")};
_.P._replaceInitialOrInherit=function(A,L){var O=wyL.exec(L);O&&(L=O[1]?this._getInitialValueForProperty(A):"apply-shim-inherit");return L};
_.P._cssTextToMap=function(A,L){L=L===void 0?!1:L;A=A.split(";");for(var O,X,x={},J=0;J<A.length;J++)if(O=A[J])X=O.split(":"),X.length>1&&(O=X[0].trim(),X=X.slice(1).join(":"),L&&(X=this._replaceInitialOrInherit(O,X)),x[O]=X);return x};
_.P._invalidateMixinEntry=function(A){if(NM3)for(var L in A.dependants)L!==this._currentElement&&NM3(L)};
_.P._produceCssProperties=function(A,L,O,X,x){var J=this;O&&X6P(O,function(w,l){l&&J._map.get(l)&&(X="@apply "+l+";")});
if(!X)return A;var Y=this._consumeCssProperties(""+X,x);x=A.slice(0,A.indexOf("--"));var T=Y=this._cssTextToMap(Y,!0),V=this._map.get(L),E=V&&V.properties;E?T=Object.assign(Object.create(E),Y):this._map.set(L,T);var n=[],t,b=!1;for(t in T){var S=Y[t];S===void 0&&(S="initial");!E||t in E||(b=!0);n.push(L+"_-_"+t+": "+S)}b&&this._invalidateMixinEntry(V);V&&(V.properties=T);O&&(x=A+";"+x);return x+n.join("; ")+";"};
rt.prototype.detectMixin=rt.prototype.detectMixin;rt.prototype.transformStyle=rt.prototype.JSC$12231_transformStyle;rt.prototype.transformCustomStyle=rt.prototype.transformCustomStyle;rt.prototype.transformRules=rt.prototype.transformRules;rt.prototype.transformRule=rt.prototype.transformRule;rt.prototype.transformTemplate=rt.prototype.transformTemplate;rt.prototype._separator="_-_";Object.defineProperty(rt.prototype,"invalidCallback",{get:function(){return NM3},
set:function(A){NM3=A}});var KX=new rt,Kuu=function(){this.customStyleInterface=null;KX.invalidCallback=$Ke},GC=function(A){!A.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(A.customStyleInterface=window.ShadyCSS.CustomStyleInterface,A.customStyleInterface.transformCallback=function(L){KX.transformCustomStyle(L)},A.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){A.customStyleInterface.enqueued&&A.flushCustomStyles()})})};
_.P=Kuu.prototype;_.P.prepareTemplate=function(A,L){GC(this);xSD(A)===""&&(MXM[L]=A,L=KX.transformTemplate(A,L),A._styleAst=L)};
_.P.flushCustomStyles=function(){GC(this);if(this.customStyleInterface){var A=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var L=0;L<A.length;L++){var O=this.customStyleInterface.getStyleForCustomStyle(A[L]);O&&KX.transformCustomStyle(O)}this.customStyleInterface.enqueued=!1}}};
_.P.styleSubtree=function(A,L){GC(this);L&&gDr(A,L);if(A.shadowRoot)for(this.styleElement(A),A=A.shadowRoot.children||A.shadowRoot.childNodes,L=0;L<A.length;L++)this.styleSubtree(A[L]);else for(A=A.children||A.childNodes,L=0;L<A.length;L++)this.styleSubtree(A[L])};
_.P.styleElement=function(A){GC(this);var L=A.localName,O;L?L.indexOf("-")>-1?O=L:O=A.getAttribute&&A.getAttribute("is")||"":O=A.is;L=MXM[O];if(!(L&&xSD(L)!==""||!L||aFO(L))){if(aFO(L)||L._applyShimValidatingVersion!==L._applyShimNextVersion)this.prepareTemplate(L,O),UKr(L);if(A=A.shadowRoot)if(A=A.querySelector("style"))A.__cssRules=L._styleAst,A.textContent=ozP(L._styleAst)}};
_.P.styleDocument=function(A){GC(this);this.styleSubtree(document.body,A)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var lP=new Kuu,Gmu=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(A,L){lP.flushCustomStyles();lP.prepareTemplate(A,L)},
prepareTemplateStyles:function(A,L,O){window.ShadyCSS.prepareTemplate(A,L,O)},
prepareTemplateDom:function(){},
styleSubtree:function(A,L){lP.flushCustomStyles();lP.styleSubtree(A,L)},
styleElement:function(A){lP.flushCustomStyles();lP.styleElement(A)},
styleDocument:function(A){lP.flushCustomStyles();lP.styleDocument(A)},
getComputedStyleValue:function(A,L){return wwM(A,L)},
flushCustomStyles:function(){lP.flushCustomStyles()},
nativeCss:vzr,nativeShadow:G_u,cssBuild:Uj,disableRuntime:BhL};Gmu&&(window.ShadyCSS.CustomStyleInterface=Gmu)}window.ShadyCSS.ApplyShim=KX;var l9N;l9N=window.ShadyCSS;_.cg=J_(function(A){A=AiJ(Y9(A));var L=RDu?A:hcj(A),O=SP7(L),X={x:"pan-x",y:"pan-y",none:"none",all:"auto"};A=function(){return L.call(this)||this};
_.g(A,L);A.prototype.created=function(){};
A.prototype.__attributeReaction=function(x,J,Y){(this.__dataAttributes&&this.__dataAttributes[x]||x==="disable-upgrade")&&this.attributeChangedCallback(x,J,Y,null)};
A.prototype.setAttribute=function(x,J){if(da6&&!this._legacyForceObservedAttributes){var Y=this.getAttribute(x);L.prototype.setAttribute.call(this,x,J);this.__attributeReaction(x,Y,String(J))}else L.prototype.setAttribute.call(this,x,J)};
A.prototype.removeAttribute=function(x){if(da6&&!this._legacyForceObservedAttributes){var J=this.getAttribute(x);L.prototype.removeAttribute.call(this,x);this.__attributeReaction(x,J,null)}else L.prototype.removeAttribute.call(this,x)};
A.prototype._enableProperties=function(){this.__isUpgradeDisabled||L.prototype._enableProperties.call(this)};
A.prototype._canApplyPropertyDefault=function(x){return L.prototype._canApplyPropertyDefault.call(this,x)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(x))};
A.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(L.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
A.prototype.attached=function(){};
A.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(L.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
A.prototype.detached=function(){};
A.prototype.attributeChangedCallback=function(x,J,Y,T){J!==Y&&(x=="disable-upgrade"?this.__isUpgradeDisabled&&Y==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.bO)(this).isConnected&&this.connectedCallback()):(L.prototype.attributeChangedCallback.call(this,x,J,Y,T),this.attributeChanged(x,J,Y)))};
A.prototype.attributeChanged=function(){};
A.prototype._initializeProperties=function(){if(fd&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var x=Object.getPrototypeOf(this);x.hasOwnProperty("__hasRegisterFinished")||(this._registered(),x.__hasRegisterFinished=!0);L.prototype._initializeProperties.call(this);this.root=this;this.created();da6&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
A.prototype._takeAttributes=function(){for(var x=this.attributes,J=0,Y=x.length;J<Y;J++){var T=x[J];this.__attributeReaction(T.name,null,T.value)}};
A.prototype._registered=function(){};
A.prototype.ready=function(){this._ensureAttributes();L.prototype.ready.call(this)};
A.prototype._ensureAttributes=function(){};
A.prototype._applyListeners=function(){};
A.prototype.serialize=function(x){return this._serializeValue(x)};
A.prototype.deserialize=function(x,J){return this._deserializeValue(x,J)};
A.prototype.reflectPropertyToAttribute=function(x,J,Y){this._propertyToAttribute(x,J,Y)};
A.prototype.serializeValueToAttribute=function(x,J,Y){this._valueToNodeAttribute(Y||this,x,J)};
A.prototype.extend=function(x,J){if(!x||!J)return x||J;for(var Y=Object.getOwnPropertyNames(J),T=0,V=void 0;T<Y.length&&(V=Y[T]);T++){var E=Object.getOwnPropertyDescriptor(J,V);E&&Object.defineProperty(x,V,E)}return x};
A.prototype.mixin=function(x,J){for(var Y in J)x[Y]=J[Y];return x};
A.prototype.chainObject=function(x,J){x&&J&&x!==J&&(x.__proto__=J);return x};
A.prototype.instanceTemplate=function(x){x=this.constructor._contentForTemplate(x);return document.importNode(x,!0)};
A.prototype.fire=function(x,J,Y){Y=Y||{};J=J===null||J===void 0?{}:J;x=new Event(x,{bubbles:Y.bubbles===void 0?!0:Y.bubbles,cancelable:!!Y.cancelable,composed:Y.composed===void 0?!0:Y.composed});x.detail=J;(0,_.bO)(Y.node||this).dispatchEvent(x);return x};
A.prototype.listen=function(x,J,Y){x=x||this;var T=this.__boundListeners||(this.__boundListeners=new WeakMap),V=T.get(x);V||(V={},T.set(x,V));T=J+Y;V[T]||(V[T]=this._addMethodEventListenerToNode(x,J,Y,this))};
A.prototype.unlisten=function(x,J,Y){x=x||this;var T=this.__boundListeners&&this.__boundListeners.get(x);Y=J+Y;var V=T&&T[Y];V&&(this._removeEventListenerFromNode(x,J,V),T[Y]=null)};
A.prototype.setScrollDirection=function(x,J){_.RU(J||this,X[x]||"auto")};
A.prototype.$$=function(x){return this.root.querySelector(x)};
A.prototype.distributeContent=function(){var x=_.ii(this);window.ShadyDOM&&x.shadowRoot&&ShadyDOM.flush()};
A.prototype.getEffectiveChildNodes=function(){return _.ii(this).getEffectiveChildNodes()};
A.prototype.queryDistributedElements=function(x){return _.ii(this).queryDistributedElements(x)};
A.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(x){return x.nodeType===Node.ELEMENT_NODE})};
A.prototype.getEffectiveTextContent=function(){for(var x=this.getEffectiveChildNodes(),J=[],Y=0,T;T=x[Y];Y++)T.nodeType!==Node.COMMENT_NODE&&J.push(T.textContent);return J.join("")};
A.prototype.queryEffectiveChildren=function(x){return(x=this.queryDistributedElements(x))&&x[0]};
A.prototype.queryAllEffectiveChildren=function(x){return this.queryDistributedElements(x)};
A.prototype.getContentChildNodes=function(x){return(x=this.root.querySelector(x||"slot"))?_.ii(x).getDistributedNodes():[]};
A.prototype.getContentChildren=function(x){return this.getContentChildNodes(x).filter(function(J){return J.nodeType===Node.ELEMENT_NODE})};
A.prototype.isLightDescendant=function(x){return this!==x&&(0,_.bO)(this).contains(x)&&(0,_.bO)(this).getRootNode()===(0,_.bO)(x).getRootNode()};
A.prototype.isLocalDescendant=function(x){return this.root===(0,_.bO)(x).getRootNode()};
A.prototype.scopeSubtree=function(x,J){return C1J(x,J===void 0?!1:J)};
A.prototype.getComputedStyleValue=function(x){return l9N.getComputedStyleValue(this,x)};
A.prototype.debounce=function(x,J,Y){this._debouncers=this._debouncers||{};return this._debouncers[x]=_.t_(this._debouncers[x],Y>0?_.sS.after(Y):QL,J.bind(this))};
A.prototype.isDebouncerActive=function(x){this._debouncers=this._debouncers||{};x=this._debouncers[x];return!(!x||!x.isActive())};
A.prototype.flushDebouncer=function(x){this._debouncers=this._debouncers||{};(x=this._debouncers[x])&&x.flush()};
A.prototype.cancelDebouncer=function(x){this._debouncers=this._debouncers||{};(x=this._debouncers[x])&&x.cancel()};
A.prototype.async=function(x,J){return J>0?_.sS.run(x.bind(this),J):~QL.run(x.bind(this))};
A.prototype.cancelAsync=function(x){x<0?QL.cancel(~x):_.sS.cancel(x)};
A.prototype.create=function(x,J){x=document.createElement(x);if(J)if(x.setProperties)x.setProperties(J);else for(var Y in J)x[Y]=J[Y];return x};
A.prototype.elementMatches=function(x,J){return uZj(J||this,x)};
A.prototype.toggleAttribute=function(x,J){var Y=this;arguments.length===3&&(Y=arguments[2]);arguments.length==1&&(J=!Y.hasAttribute(x));if(J)return(0,_.bO)(Y).setAttribute(x,""),!0;(0,_.bO)(Y).removeAttribute(x);return!1};
A.prototype.toggleClass=function(x,J,Y){Y=Y||this;arguments.length==1&&(J=!Y.classList.contains(x));J?Y.classList.add(x):Y.classList.remove(x)};
A.prototype.transform=function(x,J){J=J||this;J.style.webkitTransform=x;J.style.transform=x};
A.prototype.translate3d=function(x,J,Y,T){this.transform("translate3d("+x+","+J+","+Y+")",T||this)};
A.prototype.arrayDelete=function(x,J){if(Array.isArray(x)){if(J=x.indexOf(J),J>=0)return x.splice(J,1)}else if(J=Ej(this,x).indexOf(J),J>=0)return this.splice(x,J,1);return null};
A.prototype._logger=function(x,J){Array.isArray(J)&&J.length===1&&Array.isArray(J[0])&&(J=J[0]);switch(x){case "log":case "warn":case "error":console[x].apply(console,_.le(J))}};
A.prototype._log=function(){this._logger("log",_.f_.apply(0,arguments))};
A.prototype._warn=function(){this._logger("warn",_.f_.apply(0,arguments))};
A.prototype._error=function(){this._logger("error",_.f_.apply(0,arguments))};
A.prototype._logf=function(x){return["[%s::%s]",this.is,x].concat(_.le(_.f_.apply(1,arguments)))};
_.v2.Object.defineProperties(A.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var x=(0,_.bO)(this).getRootNode();return x instanceof DocumentFragment?x.host:x}}});
_.v2.Object.defineProperties(A,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return da6&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],cCM(this.prototype)),this.__observedAttributes):O.call(this).concat("disable-upgrade")}}});
A.prototype.is="";return A});Polymer.FlattenedNodesObserver=PnN;Polymer.DomApi=ecu;Polymer.EventApi=iP;Polymer.dom=_.ii;Polymer.dom.matchesSelector=uZj;Polymer.dom.flush=_.gt;Polymer.dom.addDebouncer=_.bP;Polymer.DirMixin=hcj;Polymer.RenderStatus={beforeNextRender:_.Gy9,afterNextRender:_.kd,flush:function(){for(;NAe.length||aU.length;)isJ(NAe),isJ(aU);$d=!1}};Polymer.LegacyElementMixin=_.cg;var ci3;ci3=S0._mutablePropertyChange;var CnN={properties:{mutableData:Boolean},_shouldPropertyChange:function(A,L,O){return ci3(this,A,L,O,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(A,L,O){return ci3(this,A,L,O,!0)}};
Polymer.OptionalMutableDataBehavior=CnN;var sSu={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},u4O={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},Yv9=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},u4O),Fu7=(0,_.cg)(HTMLElement),o6u=function(A,L){A||console.warn("Polymer.Class requires `info` argument");L=L?L(Fu7):Fu7;L=Tku(A,L,A.behaviors);L.is=L.prototype.is=
A.is;return L};Polymer.Class=o6u;Polymer.mixinBehaviors=function(A,L){return Tku({},(0,_.cg)(L),A)};
Polymer.GenerateClassFromInfo=Tku;_.RJ=function(A){var L=typeof A==="function"?A:_.RJ.Class(A);A._legacyForceObservedAttributes&&(L.prototype._legacyForceObservedAttributes=A._legacyForceObservedAttributes);customElements.define(L.is,L);return L};
_.RJ.Class=o6u;Polymer._polymerFn=_.RJ;var Rcc=window.onLegacyPolymerFunctionDefinedCallback;Rcc&&Rcc();var Lp_={templatize:function(A,L){this._templatizerTemplate=A;this.ctor=ZZ(A,this,{mutableData:!!L,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(A){return new this.ctor(A)},
modelForElement:function(A){return Sip(this._templatizerTemplate,A)}};Polymer.Templatizer=Lp_;_.CX=(0,_.cg)(HTMLElement).prototype;Polymer.Base=_.CX;var DSy=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.oU=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.g(_.oU,PolymerFakeBaseClass);var A9=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.g(A9,PolymerFakeBaseClass);var ebu=Symbol("Md"),gje=[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 QaH=QaH||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},mT6;(function(A){function L(H,z,a){var xe=M.get(H);if(!xe){if(!a)return;xe=new R;M.set(H,xe)}H=xe.get(z);if(!H){if(!a)return;H=new R;xe.set(z,H)}return H}
function O(H,z,a){if(X(H,z,a))return!0;z=b(z);return z!==null?O(H,z,a):!1}
function X(H,z,a){z=L(z,a,!1);return z===void 0?!1:!!z.has(H)}
function x(H,z,a){if(X(H,z,a))return J(H,z,a);z=b(z);if(z!==null)return x(H,z,a)}
function J(H,z,a){z=L(z,a,!1);if(z!==void 0)return z.get(H)}
function Y(H,z){var a=T(H,z);H=b(H);if(H===null)return a;var xe=Y(H,z);if(xe.length<=0)return a;if(a.length<=0)return xe;z=new y;H=[];a=_.d(a);for(var ur=a.next();!ur.done;ur=a.next())ur=ur.value,z.has(ur)||(z.add(ur),H.push(ur));a=_.d(xe);for(xe=a.next();!xe.done;xe=a.next())xe=xe.value,z.has(xe)||(z.add(xe),H.push(xe));return H}
function T(H,z){H=L(H,z,!1);var a=[];H&&H.forEach(function(xe,ur){return a.push(ur)});
return a}
function V(H){return H===void 0}
function E(H){return typeof H==="object"?H!==null:typeof H==="function"}
function n(H){return typeof H==="function"}
function t(H){return typeof H==="symbol"?H:String(H)}
function b(H){var z=Object.getPrototypeOf(H);if(typeof H!=="function"||H===F||z!==F)return z;var a=Object.getPrototypeOf(H.prototype);if(a==null||a===Object.prototype)return z;a=a.constructor;return typeof a!=="function"||a===H?z:a}
function S(){function H(){this._keys=[];this._values=[];this._cache=z}
var z={};H.prototype={get size(){return this._keys.length},has:function(a){return a===this._cache?!0:this._find(a)>=0?(this._cache=a,!0):!1},
get:function(a){var xe=this._find(a);if(xe>=0)return this._cache=a,this._values[xe]},
set:function(a,xe){this.delete(a);this._keys.push(a);this._values.push(xe);this._cache=a;return this},
delete:function(a){a=this._find(a);return a>=0?(this._keys.splice(a,1),this._values.splice(a,1),this._cache=z,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=z},
forEach:function(a){for(var xe=this.size,ur=0;ur<xe;++ur){var eD=this._keys[ur],gu=this._values[ur];this._cache=eD;a.call(this,gu,eD,this)}},
_find:function(a){for(var xe=this._keys,ur=xe.length,eD=0;eD<ur;++eD)if(xe[eD]===a)return eD;return-1}};
return H}
function w(){function H(){this._map=new R}
H.prototype={get size(){return this._map.length},has:function(z){return this._map.has(z)},
add:function(z){this._map.set(z,z);return this},
delete:function(z){return this._map.delete(z)},
clear:function(){this._map.clear()},
forEach:function(z,a){this._map.forEach(z,a)}};
return H}
function l(){function H(){this._key=a()}
function z(SD,HJ){for(var mM=0;mM<HJ;++mM)SD[mM]=Math.random()*255|0}
function a(){do{if(ur)var SD=ur.randomBytes(16);else typeof Uint8Array==="function"?(SD=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(SD):z(SD,16)):(SD=Array(16),z(SD,16));SD[6]=SD[6]&79|64;SD[8]=SD[8]&191|128;for(var HJ="",mM=0;mM<16;++mM){var Vu=SD[mM];if(mM===4||mM===6||mM===8)HJ+="-";Vu<16&&(HJ+="0");HJ+=Vu.toString(16).toLowerCase()}SD="@@WeakMap@@"+HJ}while(eD.call(gu,SD));gu[SD]=!0;return SD}
function xe(SD,HJ){if(!eD.call(SD,ir)){if(!HJ)return;Object.defineProperty(SD,ir,{value:Object.create(null)})}return SD[ir]}
var ur=typeof global!=="undefined"&&typeof QaH==="object"&&typeof require==="function"&&require("crypto"),eD=Object.prototype.hasOwnProperty,gu={},ir=a();H.prototype={has:function(SD){return(SD=xe(SD,!1))?this._key in SD:!1},
get:function(SD){if(SD=xe(SD,!1))return SD[this._key]},
set:function(SD,HJ){xe(SD,!0)[this._key]=HJ;return this},
delete:function(SD){return(SD=xe(SD,!1))&&this._key in SD?delete SD[this._key]:!1},
clear:function(){this._key=a()}};
return H}
var F=Object.getPrototypeOf(Function),R=typeof Map==="function"?Map:S(),y=typeof Set==="function"?Set:w(),M=new (typeof WeakMap==="function"?WeakMap:l());A.decorate=function(H,z,a,xe){if(V(xe)){if(V(a)){if(!Array.isArray(H))throw new TypeError;if(!n(z))throw new TypeError;for(a=H.length-1;a>=0;--a)if(xe=(0,H[a])(z),!V(xe)){if(!n(xe))throw new TypeError;z=xe}return z}if(!Array.isArray(H))throw new TypeError;if(!E(z))throw new TypeError;a=t(a);for(xe=H.length-1;xe>=0;--xe)(0,H[xe])(z,a)}else{if(Array.isArray(H))if(E(z)){if(V(a))throw new TypeError;
if(!E(xe))throw new TypeError;}else throw new TypeError;else throw new TypeError;a=t(a);for(var ur=H.length-1;ur>=0;--ur){var eD=(0,H[ur])(z,a,xe);if(!V(eD)){if(!E(eD))throw new TypeError;xe=eD}}return xe}};
A.metadata=function(H,z){return function(a,xe){if(V(xe)){if(!n(a))throw new TypeError;L(a,void 0,!0).set(H,z)}else{if(!E(a))throw new TypeError;xe=t(xe);L(a,xe,!0).set(H,z)}}};
A.defineMetadata=function(H,z){var a;if(E(z))V(a)||(a=t(a));else throw new TypeError;L(z,a,!0).set("parameters",H)};
A.hasMetadata=function(H,z,a){if(E(z))V(a)||(a=t(a));else throw new TypeError;return O(H,z,a)};
A.hasOwnMetadata=function(H,z,a){if(E(z))V(a)||(a=t(a));else throw new TypeError;return X(H,z,a)};
A.getMetadata=function(H,z,a){if(E(z))V(a)||(a=t(a));else throw new TypeError;return x(H,z,a)};
A.getOwnMetadata=function(H,z,a){if(E(z))V(a)||(a=t(a));else throw new TypeError;return J(H,z,a)};
A.getMetadataKeys=function(H,z){if(E(H))V(z)||(z=t(z));else throw new TypeError;return Y(H,z)};
A.getOwnMetadataKeys=function(H,z){if(E(H))V(z)||(z=t(z));else throw new TypeError;return T(H,z)};
A.deleteMetadata=function(H,z,a){if(E(z))V(a)||(a=t(a));else throw new TypeError;var xe=L(z,a,!1);if(!V(xe)){if(!xe.delete(H))return!1;if(xe.size>0)return!0;H=M.get(z);H.delete(a);if(H.size>0)return!0;M.delete(z);return!0}};
(function(H){if(typeof H.Reflect!=="undefined"){if(H.Reflect!==A)for(var z in A)H.Reflect[z]=A[z]}else H.Reflect=A})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(mT6||(mT6={}));var f9c=function(){this.aborted=!1;this.onabort=null;this.target=document.createDocumentFragment?document.createDocumentFragment():document.createElement("div")};
f9c.prototype.addEventListener=function(A,L,O){this.target.addEventListener(A,L,O)};
f9c.prototype.removeEventListener=function(A,L,O){this.target.removeEventListener(A,L,O)};
f9c.prototype.dispatchEvent=function(A){if(this.onabort&&A.type==="abort")this.onabort(A);return this.target.dispatchEvent(A)};var I9V=function(){this.signal=new f9c};
I9V.prototype.abort=function(){if(!this.signal.aborted){this.signal.aborted=!0;var A=document.createEvent("Event");A.initEvent("abort",!1,!1);this.signal.dispatchEvent(A)}};var fmr=self;var yi6=[0,_.AV,_.Ov,_.AV];var Z3c=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(Z3c,_.AE);var jaN=_.ua(Z3c,[0,_.wNe,_.X4,yi6,_.Ov,_.sv]);_.Ty(_.Lh,_.p$);_.P=_.Lh.prototype;_.P.start=function(){this.stop();this.usingListeners_=!1;var A=Wun(this),L=H36(this);A&&!L&&this.JSC$12280_win_.mozRequestAnimationFrame?(this.JSC$12280_id_=_.CT(this.JSC$12280_win_,"MozBeforePaint",this.callback_),this.JSC$12280_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$12280_id_=A&&L?A.call(this.JSC$12280_win_,this.callback_):this.JSC$12280_win_.setTimeout(R73(this.callback_),20)};
_.P.stop=function(){if(this.isActive()){var A=Wun(this),L=H36(this);A&&!L&&this.JSC$12280_win_.mozRequestAnimationFrame?Gi(this.JSC$12280_id_):A&&L?L.call(this.JSC$12280_win_,this.JSC$12280_id_):this.JSC$12280_win_.clearTimeout(this.JSC$12280_id_)}this.JSC$12280_id_=null};
_.P.fire=function(){this.stop();this.JSC$12282_doAction_()};
_.P.isActive=function(){return this.JSC$12280_id_!=null};
_.P.JSC$12282_doAction_=function(){this.usingListeners_&&this.JSC$12280_id_&&Gi(this.JSC$12280_id_);this.JSC$12280_id_=null;this.JSC$12280_listener_.call(this.handler_,_.u1())};
_.P.disposeInternal=function(){this.stop();_.Lh.superClass_.disposeInternal.call(this)};
var Wun=function(A){A=A.JSC$12280_win_;return A.requestAnimationFrame||A.webkitRequestAnimationFrame||A.mozRequestAnimationFrame||A.oRequestAnimationFrame||A.msRequestAnimationFrame||null},H36=function(A){A=A.JSC$12280_win_;
return A.cancelAnimationFrame||A.cancelRequestAnimationFrame||A.webkitCancelRequestAnimationFrame||A.mozCancelRequestAnimationFrame||A.oCancelRequestAnimationFrame||A.msCancelRequestAnimationFrame||null};_.Of=function(A,L,O){_.p$.call(this);this.JSC$12283_listener_=O!=null?A.bind(O):A;this.JSC$12283_interval_=L;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$12283_timer_=null};
_.g(_.Of,_.p$);_.P=_.Of.prototype;_.P.fire=function(A){this.args_=arguments;this.JSC$12283_timer_||this.pauseCount_?this.shouldFire_=!0:zc7(this)};
_.P.stop=function(){this.JSC$12283_timer_&&(_.Ou.clearTimeout(this.JSC$12283_timer_),this.JSC$12283_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.P.pause=function(){this.pauseCount_++};
_.P.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$12283_timer_||(this.shouldFire_=!1,zc7(this))};
_.P.disposeInternal=function(){_.p$.prototype.disposeInternal.call(this);this.stop()};
var zc7=function(A){A.JSC$12283_timer_=Qe(function(){A.JSC$12283_timer_=null;A.shouldFire_&&!A.pauseCount_&&(A.shouldFire_=!1,zc7(A))},A.JSC$12283_interval_);
var L=A.args_;A.args_=null;A.JSC$12283_listener_.apply(null,L)};var BMn=function(A,L){this.childIterator_=A[_.Ou.Symbol.iterator]();this.mapFn_=L};
BMn.prototype[Symbol.iterator]=function(){return this};
BMn.prototype.next=function(){var A=this.childIterator_.next();return{value:A.done?void 0:this.mapFn_.call(void 0,A.value),done:A.done}};
var MQg=function(A,L){return new BMn(A,L)};var $Tj={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 bz9=function(A){var L=a9J(A);if(!L)throw Error("Qd`"+A);return L},a9J=function(A){var L={};
A=String(A);var O=A.charAt(0)=="#"?A:"#"+A;if(kmu.test(O))return L.hex=Veu(O),L.type="hex",L;O=glp(A);return O.length?(L.hex=LLe(O[0],O[1],O[2]),L.type="rgb",L):$Tj&&(A=$Tj[A.toLowerCase()])?(L.hex=A,L.type="named",L):null},UTg=/#(.)(.)(.)/,Veu=function(A){if(!kmu.test(A))throw Error("Sd`"+A);
A.length==4&&(A=A.replace(UTg,"#$1$1$2$2$3$3"));return A.toLowerCase()},hde=function(A){A=Veu(A);
A=parseInt(A.slice(1),16);return[A>>16,A>>8&255,A&255]},LLe=function(A,L,O){A=Number(A);
L=Number(L);O=Number(O);if(A!=(A&255)||L!=(L&255)||O!=(O&255))throw Error("Td`"+A+"`"+L+"`"+O);L=A<<16|L<<8|O;return A<16?"#"+(16777216|L).toString(16).slice(1):"#"+L.toString(16)},kmu=/^#(?:[0-9a-f]{3}){1,2}$/i,vcl=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,glp=function(A){var L=A.match(vcl);
if(L){A=Number(L[1]);var O=Number(L[2]);L=Number(L[3]);if(A>=0&&A<=255&&O>=0&&O<=255&&L>=0&&L<=255)return[A,O,L]}return[]};var oc3={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},Kv=oc3;Kv=oc3;var Ide,ATn,Li3;Ide=function(A,L){switch(L){case 1:return A%4!=0||A%100==0&&A%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
ATn=function(A,L,O,X,x){A=new Date(A,L,O);x=x||0;return A.valueOf()+(((X!==void 0?X:3)-x+7)%7-((A.getDay()+6)%7-x+7)%7)*864E5};
_.Fo=function(A,L,O){typeof A==="number"?(this.date=Li3(A,L||0,O||1),O46(this,O||1)):_.BJ(A)?(this.date=Li3(A.getFullYear(),A.getMonth(),A.getDate()),O46(this,A.getDate())):(this.date=new Date(_.u1()),A=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),O46(this,A))};
Li3=function(A,L,O){L=new Date(A,L,O);A>=0&&A<100&&L.setFullYear(L.getFullYear()-1900);return L};
_.P=_.Fo.prototype;_.P.firstDayOfWeek_=Kv.FIRSTDAYOFWEEK;_.P.firstWeekCutOffDay_=Kv.FIRSTWEEKCUTOFFDAY;_.P.clone=function(){var A=new _.Fo(this.date);A.firstDayOfWeek_=this.firstDayOfWeek_;A.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return A};
_.P.getFullYear=function(){return this.date.getFullYear()};
_.P.getYear=function(){return this.getFullYear()};
_.P.getMonth=function(){return this.date.getMonth()};
_.P.getDate=function(){return this.date.getDate()};
_.P.getTime=function(){return this.date.getTime()};
_.P.getDay=function(){return this.date.getDay()};
_.P.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.P.getUTCMonth=function(){return this.date.getUTCMonth()};
_.P.getUTCDate=function(){return this.date.getUTCDate()};
_.P.getUTCDay=function(){return this.date.getDay()};
_.P.getUTCHours=function(){return this.date.getUTCHours()};
_.P.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.P.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.P.set=function(A){this.date=new Date(A.getFullYear(),A.getMonth(),A.getDate())};
_.P.setFullYear=function(A){this.date.setFullYear(A)};
_.P.setYear=function(A){this.setFullYear(A)};
_.P.setMonth=function(A){this.date.setMonth(A)};
_.P.setDate=function(A){this.date.setDate(A)};
_.P.setTime=function(A){this.date.setTime(A)};
_.P.setUTCFullYear=function(A){this.date.setUTCFullYear(A)};
_.P.setUTCMonth=function(A){this.date.setUTCMonth(A)};
_.P.setUTCDate=function(A){this.date.setUTCDate(A)};
_.P.add=function(A){if(A.years||A.months){var L=this.getMonth()+A.months+A.years*12,O=this.getYear()+Math.floor(L/12);L%=12;L<0&&(L+=12);var X=Math.min(Ide(O,L),this.getDate());this.setDate(1);this.setFullYear(O);this.setMonth(L);this.setDate(X)}A.days&&(O=this.getYear(),L=O>=0&&O<=99?-1900:0,A=new Date((new Date(O,this.getMonth(),this.getDate(),12)).getTime()+A.days*864E5),this.setDate(1),this.setFullYear(A.getFullYear()+L),this.setMonth(A.getMonth()),this.setDate(A.getDate()),O46(this,A.getDate()))};
_.P.JSC$12296_toIsoString=function(A){var L=this.getFullYear(),O=L<0?"-":L>=1E4?"+":"";return[O+_.Tv(Math.abs(L),O?6:4),_.Tv(this.getMonth()+1,2),_.Tv(this.getDate(),2)].join(A?"-":"")};
_.P.equals=function(A){return!(!A||this.getYear()!=A.getYear()||this.getMonth()!=A.getMonth()||this.getDate()!=A.getDate())};
_.P.toString=function(){return this.JSC$12296_toIsoString()};
var O46=function(A,L){A.getDate()!=L&&A.date.setUTCHours(A.date.getUTCHours()+(A.getDate()<L?1:-1))};
_.Fo.prototype.valueOf=function(){return this.date.valueOf()};var QV=function(A,L,O,X,x){this.reversed=!!L;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!O;A&&Rj(this,A,X);this.depth=x!=void 0?x:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.Ty(QV,Ea);var Rj=function(A,L,O,X){if(A.node=L)A.tagType=typeof O==="number"?O:A.node.nodeType!=1?0:A.reversed?-1:1;typeof X==="number"&&(A.depth=X)};
_.P=QV.prototype;_.P.JSC$12311_copyFrom=function(A){this.node=A.node;this.tagType=A.tagType;this.depth=A.depth;this.reversed=A.reversed;this.constrained=A.constrained};
_.P.clone=function(){return new QV(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.P.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return nD;var A=this.node;var L=this.reversed?-1:1;if(this.tagType==L){var O=this.reversed?A.lastChild:A.firstChild;O?Rj(this,O):Rj(this,A,L*-1)}else(O=this.reversed?A.previousSibling:A.nextSibling)?Rj(this,O):Rj(this,A.parentNode,L*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(A=this.node)?tr(A):nD};
_.P.equals=function(A){return A.node==this.node&&(!this.node||A.tagType==this.tagType)};
_.P.splice=function(A){var L=this.node,O=this.reversed?1:-1;this.tagType==O&&(this.tagType=O*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;QV.prototype.next.call(this);this.reversed=!this.reversed;O=_.jD(arguments[0])?arguments[0]:arguments;for(var X=O.length-1;X>=0;X--)_.ZV(O[X],L);_.hg(L)};var XDN=function(){},md=function(A){for(var L=[],O=A.getTextRangeCount(),X=0;X<O;X++)L.push(A.getTextRange(X));
return L};
XDN.prototype.isReversed=function(){return!1};
XDN.prototype.getWindow=function(){return FT(_.Ro(this.JSC$12313_getStartNode()))};
var xRl=function(A,L){QV.call(this,A,L,!0)};
_.Ty(xRl,QV);var fX=function(A,L,O,X,x){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!x;if(A){this.startNode_=A;this.startOffset_=L;this.endNode_=O;this.endOffset_=X;if(A.nodeType==1&&A.tagName!="BR")if(A=A.childNodes,L=A[L])this.startNode_=L,this.startOffset_=0;else{A.length&&(this.startNode_=_.cJ(A));var J=!0}O.nodeType==1&&((this.endNode_=O.childNodes[X])?this.endOffset_=0:this.endNode_=O)}QV.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);J&&this.next()};
_.Ty(fX,xRl);_.P=fX.prototype;_.P.JSC$12319_getStartNode=function(){return this.startNode_};
_.P.isLast=function(){return this.started_&&(this.node!=(this.isReversed_?this.startNode_:this.endNode_)?!1:this.isReversed_?this.startOffset_?this.tagType!=-1:this.tagType==1:!this.endOffset_||this.tagType!=1)};
_.P.next=function(){return this.isLast()?nD:fX.superClass_.next.call(this)};
_.P.JSC$12311_copyFrom=function(A){this.startNode_=A.startNode_;this.endNode_=A.endNode_;this.startOffset_=A.startOffset_;this.endOffset_=A.endOffset_;this.isReversed_=A.isReversed_;fX.superClass_.JSC$12311_copyFrom.call(this,A)};
_.P.clone=function(){var A=new fX(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);A.JSC$12311_copyFrom(this);return A};var sJL=function(){};
sJL.prototype.__iterator__=function(){return new fX(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var Ij=function(A){this.range_=A};
_.Ty(Ij,sJL);var JTH=function(A){var L=_.Ro(A).createRange();if(A.nodeType==3)L.setStart(A,0),L.setEnd(A,A.length);else if(f5(A)||A.nodeType==3){for(var O,X=A;(O=X.firstChild)&&(f5(O)||O.nodeType==3);)X=O;L.setStart(X,0);for(X=A;(O=X.lastChild)&&(f5(O)||O.nodeType==3);)X=O;L.setEnd(X,X.nodeType==1?X.childNodes.length:X.length)}else O=A.parentNode,A=Array.prototype.indexOf.call(O.childNodes,A),L.setStart(O,A),L.setEnd(O,A+1);return L},Py6=function(A,L,O,X){var x=_.Ro(A).createRange();
x.setStart(A,L);x.setEnd(O,X);return x};
_.P=Ij.prototype;_.P.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.P.getContainer=function(){return this.range_.commonAncestorContainer};
_.P.compareBrowserRangeEndpoints=function(A,L,O){return this.range_.compareBoundaryPoints(O==1?L==1?_.Ou.Range.START_TO_START:_.Ou.Range.START_TO_END:L==1?_.Ou.Range.END_TO_START:_.Ou.Range.END_TO_END,A)};
_.P.isCollapsed=function(){return this.range_.collapsed};
_.P.select=function(A){this.selectInternal(FT(_.Ro(this.range_.startContainer)).getSelection(),A)};
_.P.selectInternal=function(A){A.removeAllRanges();A.addRange(this.range_)};
_.P.insertNode=function(A,L){var O=this.range_.cloneRange();O.collapse(L);O.insertNode(A);O.detach();return A};
_.P.collapse=function(A){this.range_.collapse(A)};_.Ty(OI,Ij);OI.prototype.selectInternal=function(A,L){!L||this.isCollapsed()?OI.superClass_.selectInternal.call(this,A,L):(A.collapse(this.range_.endContainer,this.range_.endOffset),A.extend(this.range_.startContainer,this.range_.startOffset))};_.Ty(Xn,Ij);Xn.prototype.compareBrowserRangeEndpoints=function(A,L,O){return Xn.superClass_.compareBrowserRangeEndpoints.call(this,A,L,O)};
Xn.prototype.selectInternal=function(A,L){L?A.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):A.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var dRu=function(A){return _.tW?new Xn(A):_.ns?new OI(A):new Ij(A)};var yV=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},YbV;
_.Ty(yV,XDN);YbV=function(A,L){var O=new yV;O.browserRangeWrapper_=A;O.isReversed_=!!L;return O};
_.uS6=function(A){A=_.tW?new Xn(JTH(A)):_.ns?new OI(JTH(A)):new Ij(JTH(A));return YbV(A)};
_.Z_=function(A,L,O,X){var x=new yV;x.isReversed_=Tdu(A,L,O,X);if(_.aN(A)&&!f5(A)){var J=A.parentNode;L=Array.prototype.indexOf.call(J.childNodes,A);A=J}_.aN(O)&&!f5(O)&&(J=O.parentNode,X=Array.prototype.indexOf.call(J.childNodes,O),O=J);x.isReversed_?(x.startNode_=O,x.startOffset_=X,x.endNode_=A,x.endOffset_=L):(x.startNode_=A,x.startOffset_=L,x.endNode_=O,x.endOffset_=X);return x};
_.P=yV.prototype;_.P.clone=function(){var A=new yV;A.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();A.startNode_=this.startNode_;A.startOffset_=this.startOffset_;A.endNode_=this.endNode_;A.endOffset_=this.endOffset_;A.isReversed_=this.isReversed_;return A};
_.P.JSC$12313_getType=function(){return"text"};
_.P.getBrowserRangeObject=function(){return j0(this).range_};
_.P.getTextRangeCount=function(){return 1};
_.P.getTextRange=function(){return this};
var j0=function(A){var L;if(!(L=A.browserRangeWrapper_)){L=A.JSC$12313_getStartNode();var O=A.JSC$12313_getStartOffset(),X=A.JSC$12313_getEndNode(),x=A.JSC$12313_getEndOffset();L=_.tW?new Xn(Py6(L,O,X,x)):_.ns?new OI(Py6(L,O,X,x)):new Ij(Py6(L,O,X,x));L=A.browserRangeWrapper_=L}return L};
_.P=yV.prototype;_.P.getContainer=function(){return j0(this).getContainer()};
_.P.JSC$12313_getStartNode=function(){return this.startNode_||(this.startNode_=j0(this).range_.startContainer)};
_.P.JSC$12313_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=j0(this).range_.startOffset};
_.P.JSC$12313_getEndNode=function(){return this.endNode_||(this.endNode_=j0(this).range_.endContainer)};
_.P.JSC$12313_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=j0(this).range_.endOffset};
_.P.isReversed=function(){return this.isReversed_};
_.P.JSC$12313_containsRange=function(A,L){if(A.JSC$12313_getType()=="text"){var O=j0(this);A=j0(A);L=L&&!A.isCollapsed();A=A.range_;O=L?O.compareBrowserRangeEndpoints(A,0,1)>=0&&O.compareBrowserRangeEndpoints(A,1,0)<=0:O.compareBrowserRangeEndpoints(A,0,0)>=0&&O.compareBrowserRangeEndpoints(A,1,1)<=0}else O=!1;return O};
_.P.isCollapsed=function(){return j0(this).isCollapsed()};
_.P.JSC$12313_getText=function(){return j0(this).range_.toString()};
_.P.__iterator__=function(){return new fX(this.JSC$12313_getStartNode(),this.JSC$12313_getStartOffset(),this.JSC$12313_getEndNode(),this.JSC$12313_getEndOffset())};
_.P.select=function(){j0(this).select(this.isReversed_)};
_.P.JSC$12313_removeContents=function(){var A=j0(this).range_;A.extractContents();if(A.startContainer.hasChildNodes()&&(A=A.startContainer.childNodes[A.startOffset])){var L=A.previousSibling;CJc(A)==""&&_.hg(A);L&&CJc(L)==""&&_.hg(L)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.P.insertNode=function(A,L){A=j0(this).insertNode(A,L);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return A};
_.P.collapse=function(A){A=this.isReversed()?!A:A;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(A);A?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var Vq7=function(){};
_.Ty(Vq7,XDN);Vq7.prototype.JSC$12313_containsRange=function(A,L){var O=md(this);A=md(A);return(L?B1:_.OPe)(A,function(X){return B1(O,function(x){return x.JSC$12313_containsRange(X,L)})})};
Vq7.prototype.insertNode=function(A,L){L?_.y5(A,this.JSC$12313_getStartNode()):_.ZV(A,this.JSC$12313_getEndNode());return A};var DRn,eB6=qF().JSC$10345_document_.documentElement;DRn=eB6.requestFullscreen?"fullscreenchange":eB6.webkitRequestFullscreen?"webkitfullscreenchange":eB6.mozRequestFullScreen?"mozfullscreenchange":eB6.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var EJ7=function(){var A=qF().JSC$10345_document_;return!!(A.webkitIsFullScreen||A.mozFullScreen||A.msFullscreenElement||A.fullscreenElement)};var Wg=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.Ty(Wg,Vq7);_.P=Wg.prototype;_.P.clone=function(){var A=new Wg;A.browserRanges_=_.Ze(this.browserRanges_);return A};
_.P.JSC$12313_getType=function(){return"mutli"};
_.P.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.P.getTextRangeCount=function(){return this.browserRanges_.length};
_.P.getTextRange=function(A){this.ranges_[A]||(this.ranges_[A]=YbV(dRu(this.browserRanges_[A])));return this.ranges_[A]};
_.P.getContainer=function(){if(!this.container_){for(var A=[],L=this.getTextRangeCount(),O=0;O<L;O++)A.push(this.getTextRange(O).getContainer());this.container_=iJ6.apply(null,A)}return this.container_};
var Hg=function(A){A.sortedRanges_||(A.sortedRanges_=md(A),A.sortedRanges_.sort(function(L,O){var X=L.JSC$12313_getStartNode();L=L.JSC$12313_getStartOffset();var x=O.JSC$12313_getStartNode();O=O.JSC$12313_getStartOffset();return X==x&&L==O?0:Tdu(X,L,x,O)?1:-1}));
return A.sortedRanges_};
_.P=Wg.prototype;_.P.JSC$12313_getStartNode=function(){return Hg(this)[0].JSC$12313_getStartNode()};
_.P.JSC$12313_getStartOffset=function(){return Hg(this)[0].JSC$12313_getStartOffset()};
_.P.JSC$12313_getEndNode=function(){return _.cJ(Hg(this)).JSC$12313_getEndNode()};
_.P.JSC$12313_getEndOffset=function(){return _.cJ(Hg(this)).JSC$12313_getEndOffset()};
_.P.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.P.JSC$12313_getText=function(){return md(this).map(function(A){return A.JSC$12313_getText()}).join("")};
_.P.__iterator__=function(){return new zC(this)};
_.P.select=function(){var A=this.getWindow().getSelection();A.removeAllRanges();for(var L=this.getTextRangeCount(),O=0;O<L;O++)A.addRange(this.getTextRange(O).getBrowserRangeObject())};
_.P.JSC$12313_removeContents=function(){md(this).forEach(function(A){A.JSC$12313_removeContents()})};
_.P.collapse=function(A){if(!this.isCollapsed()){var L=A?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;L.collapse(A);this.ranges_=[L];this.sortedRanges_=[L];this.browserRanges_=[L.getBrowserRangeObject()]}};
var zC=function(A){this.iterators_=null;this.currentIdx_=0;A&&(this.iterators_=Hg(A).map(function(L){return _.COu(L)}));
QV.call(this,A?this.JSC$12319_getStartNode():null,!1,!0)};
_.Ty(zC,xRl);_.P=zC.prototype;_.P.JSC$12319_getStartNode=function(){return this.iterators_[0].JSC$12319_getStartNode()};
_.P.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.P.next=function(){for(;this.currentIdx_<this.iterators_.length;){var A=this.iterators_[this.currentIdx_],L=A.next();if(L.done)this.currentIdx_++;else return Rj(this,A.node,A.tagType,A.depth),L}return nD};
_.P.JSC$12311_copyFrom=function(A){this.iterators_=_.Ze(A.iterators_);zC.superClass_.JSC$12311_copyFrom.call(this,A)};
_.P.clone=function(){var A=new zC(null);A.JSC$12311_copyFrom(this);return A};var nJc,Tdu;_.w1=function(){var A=window.getSelection();return A&&nJc(A)};
nJc=function(A){var L=!1;if(A.createRange)try{var O=A.createRange()}catch(x){return null}else if(A.rangeCount){if(A.rangeCount>1){O=new Wg;L=A.rangeCount;for(var X=0;X<L;X++)O.browserRanges_.push(A.getRangeAt(X));return O}O=A.getRangeAt(0);L=Tdu(A.anchorNode,A.anchorOffset,A.focusNode,A.focusOffset)}else return null;return YbV(dRu(O),L)};
_.Bg=function(A,L){return _.Z_(A,L,A,L)};
_.M_=function(A,L,O,X){return _.Z_(A,L,O,X)};
Tdu=function(A,L,O,X){if(A==O)return X<L;var x;if(A.nodeType==1&&L)if(x=A.childNodes[L])A=x,L=0;else if(_.In(A,O))return!0;if(O.nodeType==1&&X)if(x=O.childNodes[X])O=x,X=0;else if(_.In(O,A))return!1;return(pXJ(A,O)||L-X)>0};var $9=function(){_.lb.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.is)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.is)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.is)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.is)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.is)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.is)(this.dispatchProgressEvent_,this)};
_.Ty($9,_.lb);$9.prototype.abort=function(){try{this.reader_.abort()}catch(A){throw new FxN(A,"aborting read");}};
$9.prototype.getError=function(){return this.reader_.error&&new FxN(this.reader_.error,"reading file")};
$9.prototype.dispatchProgressEvent_=function(A){this.dispatchEvent(new Rg3(A,this))};
$9.prototype.disposeInternal=function(){$9.superClass_.disposeInternal.call(this);delete this.reader_};
var b46=function(A){var L=new $9,O=tq6(L);L.reader_.readAsArrayBuffer(A);return O},hBl=function(A){var L=new $9,O=tq6(L);
L.reader_.readAsDataURL(A);return O},tq6=function(A){var L=new Ln;
A.listen("loadend",_.Sm(function(O,X){var x=X.reader_.result,J=X.getError();x==null||J?O.errback(J):O.callback(x);X.dispose()},L,A));
return L};var aj=function(){_.lb.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$12353_eventHandler_=new _.sI(this);this.JSC$12353_isInitialized_=!1};
_.Ty(aj,_.lb);var SbN=new _.pc("d"),qb6=new _.pc("beforedragstart"),gJN=new _.pc("dragstart"),wDN=new _.pc("beforedragmove"),pDu=new _.pc("dragmove"),i43=new _.pc("beforedragend"),Ndl=new _.pc("dragend"),rTu=new _.pc("e");aj.prototype.isDragging=function(){return!!this.JSC$12353_dragger_};
var Kiu=function(A,L){L.dlgGrowthDirection_=0;L.dlgDragHoverClass_=void 0;L.dlgDragPermission=0;A.dragLists_.push(L)},GK6=function(A,L){A.getHandleForDragItem_=L};
aj.prototype.init=function(){if(!this.JSC$12353_isInitialized_){for(var A=this.dragLists_.length,L=0;L<A;L++)for(var O=_.ju(this.dragLists_[L]),X=O.length,x=0;x<X;++x){var J=O[x],Y=this.getHandleForDragItem_(J),T=_.$e(Y);this.dragItemForHandle_[T]=J;this.dragItemHoverClasses_&&(this.JSC$12353_eventHandler_.listen(J,"mouseover",this.handleDragItemMouseover_),this.JSC$12353_eventHandler_.listen(J,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$12353_eventHandler_.listen(Y,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$12353_eventHandler_.listen(Y,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(J);this.JSC$12353_eventHandler_.listen(Y,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$12353_isInitialized_=!0}};
aj.prototype.disposeInternal=function(){this.JSC$12353_eventHandler_.dispose();for(var A=this.dragLists_.length,L=0;L<A;L++){var O=this.dragLists_[L];O.dlgGrowthDirection_=void 0;O.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;lBJ(this);aj.superClass_.disposeInternal.call(this)};
var cTV=function(A,L){for(var O=A.dragLists_.length,X=0;X<O;X++){var x=A.dragLists_[X];x.dlgBounds_=KRd(x)}O=A.dragItems_.length;for(X=0;X<O;X++)x=A.dragItems_[X],x!=L&&(x.dlgBounds_=KRd(x))};
_.P=aj.prototype;
_.P.handlePotentialDragStart_=function(A){var L=_.$e(A.currentTarget);L=this.dragItemForHandle_[L];if(L.parentElement.dlgDragPermission!=2){this.currDragItem_=L;a:{L=this.currDragItem_;for(var O=L.cloneNode(!0),X=SV("TEXTAREA",L),x=SV("TEXTAREA",O),J=0;J<X.length;J++)x[J].value=X[J].value;switch(L.tagName){case "TR":L=_.Q5("TABLE",null,_.Q5("TBODY",null,O));break a;case "TD":case "TH":L=_.Q5("TABLE",null,_.Q5("TBODY",null,_.Q5("TR",null,O)));break a;case "TEXTAREA":O.value=L.value;default:L=O;break a}L=
void 0}this.draggerEl_=L;this.draggerElClasses_&&o$(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.Ro(this.currDragItem_).body.appendChild(this.draggerEl_);O=_.QS(this.currDragItem_);L=this.draggerEl_;X=_.QS(L);if(O instanceof _.Cm){var Y=O.y;O=O.x}MS(L,L.offsetLeft+(O-X.x),L.offsetTop+(Number(Y)-X.y));this.JSC$12353_dragger_=new _.B9(this.draggerEl_);_.Fgj(this.JSC$12353_dragger_,this.hysteresisDistance_);
_.CT(this.JSC$12353_dragger_,"start",this.handleDragStart_,!1,this);_.CT(this.JSC$12353_dragger_,"end",this.handleDragEnd_,!1,this);_.CT(this.JSC$12353_dragger_,"earlycancel",this.JSC$12355_cleanup_,!1,this);this.dispatchEvent(new k9(SbN,this,A,this.currDragItem_,this.draggerEl_,this.JSC$12353_dragger_));this.JSC$12353_dragger_.startDrag(A)}};
_.P.handleDragStart_=function(A){if(this.dispatchEvent(new k9(qb6,this,A.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.qzL(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?o$(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var L=ISV(this.draggerEl_);this.draggerEl_.halfWidth=L.width/2;this.draggerEl_.halfHeight=L.height/2;L=this.draggerEl_.getBoundingClientRect();
var O=A.clientY,X=RZL(this.JSC$12353_dragger_,A.clientX);if(X>L.right){var x=this.currDragItem_.getBoundingClientRect();this.JSC$12353_dragger_.deltaX=X-(X-x.left)/x.width*L.width}O=QN6(this.JSC$12353_dragger_,O);O>L.bottom&&(this.JSC$12353_dragger_.deltaY+=O-L.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";cTV(this,this.currDragItem_);this.currDragItem_.style.display="";_.CT(this.JSC$12353_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new k9(gJN,
this,A.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$12353_dragger_))}else A.preventDefault(),this.JSC$12355_cleanup_()};
_.P.handleDragMove_=function(A){var L=_.QS(this.draggerEl_);L=new _.Cm(L.x+this.draggerEl_.halfWidth,L.y+this.draggerEl_.halfHeight);a:{var O=null;if(this.currDragItem_.style.display!="none"){O=this.currDragItem_.parentNode;var X=KRd(O);if(Cyn(L,X))break a}X=this.dragLists_.length;for(var x=0;x<X;x++){var J=this.dragLists_[x];if(J!=O&&Cyn(L,J.dlgBounds_)){O=J;break a}}O=null}if(O){if(O==null)throw Error("Ud");X=0;x=!1;J=void 0;switch(O.dlgGrowthDirection_){case 0:X=L.y;var Y=Fiu;var T=RBj;break;case 4:x=
!0;case 2:X=L.x;Y=QJg;T=RBj;break;case 5:x=!0;case 3:X=L.x,Y=mRJ,T=fB3}for(var V=null,E,n=_.ju(O),t=n.length,b=0;b<t;b++){var S=n[b];if(S!=this.currDragItem_){var w=Y(S.dlgBounds_);if(x){var l=IBN(S,L);J===void 0&&(J=l);T(X,w)&&(E==void 0||l<J||l==J&&(T(w,E)||w==E))&&(V=S,E=w);l<J&&(J=l)}else T(X,w)&&(E==void 0||T(w,E))&&(V=S,E=w)}}Y=V!==null&&IBN(V,L)>J?null:V}else Y=null;if(!this.dispatchEvent(new k9(wDN,this,A,this.currDragItem_,this.draggerEl_,this.JSC$12353_dragger_,L,O,Y)))return!1;if(O&&O.dlgDragPermission!=
1)this.currDragItem_.parentNode==O&&_.qzL(this.currDragItem_)==Y||O.insertBefore(this.currDragItem_,Y),this.currDragItem_.style.display="",O.dlgDragHoverClass_&&_.x4(O,O.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",T=this.dragLists_.length,E=0;E<T;E++)X=this.dragLists_[E],X.dlgDragHoverClass_&&_.OC(X,X.dlgDragHoverClass_);O!=this.currHoverList_&&(this.currHoverList_=O,cTV(this,this.currDragItem_));this.dispatchEvent(new k9(pDu,this,A,this.currDragItem_,this.draggerEl_,this.JSC$12353_dragger_,
L,O,Y));return!1};
_.P.JSC$12355_cleanup_=function(){lBJ(this);this.JSC$12353_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var A=this.dragLists_.length,L=0;L<A;L++)this.dragLists_[L].dlgBounds_=null;A=this.dragItems_.length;for(L=0;L<A;L++)this.dragItems_[L].dlgBounds_=null};
_.P.handleDragEnd_=function(A){if(!this.dispatchEvent(new k9(i43,this,A,this.currDragItem_,this.draggerEl_,this.JSC$12353_dragger_)))return!1;lBJ(this);this.dispatchEvent(new k9(Ndl,this,A,this.currDragItem_,this.draggerEl_,this.JSC$12353_dragger_));this.JSC$12355_cleanup_();return!0};
var lBJ=function(A){_.oo(A.JSC$12353_dragger_);var L=A.draggerEl_&&A.draggerEl_.parentElement;A.draggerEl_&&_.hg(A.draggerEl_);A.currDragItem_&&A.currDragItem_.style.display=="none"&&(A.origList_.insertBefore(A.currDragItem_,A.origNextItem_),A.currDragItem_.style.display="");A.currDragItemClasses_&&A.currDragItem_?lW6(A.currDragItem_,A.currDragItemClasses_||[]):A.currDragItem_&&(A.currDragItem_.style.visibility="");for(var O=A.dragLists_.length,X=0;X<O;X++){var x=A.dragLists_[X];x.dlgDragHoverClass_&&
_.OC(x,x.dlgDragHoverClass_)}L&&A.dispatchEvent(new k9(rTu,A,null,A.currDragItem_,A.draggerEl_,A.JSC$12353_dragger_))};
_.P=aj.prototype;_.P.getHandleForDragItem_=function(A){return A};
_.P.handleDragItemMouseover_=function(A){o$(A.currentTarget,this.dragItemHoverClasses_||[])};
_.P.handleDragItemMouseout_=function(A){lW6(A.currentTarget,this.dragItemHoverClasses_||[])};
_.P.handleDragItemHandleMouseover_=function(A){o$(A.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.P.handleDragItemHandleMouseout_=function(A){lW6(A.currentTarget,this.dragItemHandleHoverClasses_||[])};
var Cyn=function(A,L){return A.x>L.left&&A.x<L.left+L.width&&A.y>L.top&&A.y<L.top+L.height},IBN=function(A,L){A=A.dlgBounds_;
return Math.abs(L.y-(A.top+(A.height-1)/2))},Fiu=function(A){return A.top+A.height-1},QJg=function(A){return A.left+A.width-1},mRJ=function(A){return A.left||0},RBj=function(A,L){return A<L},fB3=function(A,L){return A>L},k9=function(A,L,O,X,x,J){_.ib.call(this,A);
this.event=O;this.currDragItem=X;this.draggerEl=x;this.JSC$12357_dragger=J};
_.Ty(k9,_.ib);_.Ty(J9,_.p$);var yTV=new _.Cm(0,0);J9.prototype.JSC$12361_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
J9.prototype.JSC$12361_onMouseMove=function(A){var L=this.containerIsActuallyContent_?yTV:Sx(qF(this.containerNode_)),O=this.horizontalScrolling_?this.calculateScrollDelta(A.clientX+L.x,this.scrollBounds_.left,this.scrollBounds_.width):0,X=this.calculateScrollDelta(A.clientY+L.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=O;this.scrollDelta_.y=X;!(O=!O&&!X)&&(O=this.constrainScroll_)&&(O=A.clientX+L.x,A=A.clientY+L.y,L=this.containerBounds_,O=!(L.left<=O&&L.left+L.width>=
O&&L.top<=A&&L.top+L.height>=A));O?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
J9.prototype.calculateScrollDelta=function(A,L,O){var X=0;A<L?X=-8:A>L+O&&(X=8);return X};
J9.prototype.disposeInternal=function(){J9.superClass_.disposeInternal.call(this);this.JSC$12359_eventHandler_.dispose();this.scrollTimer_.dispose()};var Z4H={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"}}},US=Z4H;US=Z4H;var vg={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 jJn=function(){},$B=function(A){if(typeof A=="number"){var L=new jJn;
L.standardOffset_=A;var O=A;if(O==0)O="Etc/GMT";else{var X=["Etc/GMT",O<0?"-":"+"];O=Math.abs(O);X.push(Math.floor(O/60)%100);O%=60;O!=0&&X.push(":",_.Tv(O,2));O=X.join("")}L.timeZoneId_=O;O=A;O==0?O="UTC":(X=["UTC",O<0?"+":"-"],O=Math.abs(O),X.push(Math.floor(O/60)%100),O%=60,O!=0&&X.push(":",O),O=X.join(""));A=Win(A);L.tzNames_=[O,O];L.tzNamesExt_={STD_LONG_NAME_GMT:A,STD_GENERIC_LOCATION:A};L.transitions_=[];return L}L=new jJn;L.timeZoneId_=A.id;L.standardOffset_=-A.std_offset;L.tzNames_=A.names;
L.tzNamesExt_=A.names_ext;L.transitions_=A.transitions;return L},Win=function(A){var L=["GMT"];
L.push(A<=0?"+":"-");A=Math.abs(A);L.push(_.Tv(Math.floor(A/60)%100,2),":",_.Tv(A%60,2));return L.join("")},H46=function(A,L){L=Date.UTC(L.getUTCFullYear(),L.getUTCMonth(),L.getUTCDate(),L.getUTCHours(),L.getUTCMinutes())/36E5;
for(var O=0;O<A.transitions_.length&&L>=A.transitions_[O];)O+=2;return O==0?0:A.transitions_[O-1]},zB6=function(A,L){A=A.standardOffset_-H46(A,L);
return A===-1440?0:A};var am=function(A,L){this.patternParts_=[];this.JSC$12372_dateTimeSymbols_=L||Kv;typeof A=="number"?Bd6(this,A):Mq7(this,A)},$Rc=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],oj=function(A){return A.getHours?A.getHours():0},Mq7=function(A,L){for(iAu&&(L=L.replace(/\u200f/g,""));L;){for(var O=L,X=0;X<$Rc.length;++X){var x=L.match($Rc[X]);
if(x){var J=x[0];L=L.substring(J.length);X==0&&(J=="''"?J="'":(J=J.substring(1,x[1]=="'"?J.length-1:J.length),J=J.replace(/''/g,"'")));A.patternParts_.push({text:J,type:X});break}}if(O===L)throw Error("Vd`"+L);}};
am.prototype.format=function(A,L){if(!A)throw Error("Wd");var O=L?(A.getTimezoneOffset()-zB6(L,A))*6E4:0,X=O?new Date(A.getTime()+O):A,x=X;L&&X.getTimezoneOffset()!=A.getTimezoneOffset()&&(X=new Date(X.getTime()+(X.getTimezoneOffset()-A.getTimezoneOffset())*6E4),x=new Date(A.getTime()+(O+(O>0?-864E5:864E5))));O=[];for(var J=0;J<this.patternParts_.length;++J){var Y=this.patternParts_[J].text;1==this.patternParts_[J].type?O.push(aBl(this,Y,A,X,x,L)):O.push(Y)}return O.join("")};
var Bd6=function(A,L){if(L<4)var O=A.JSC$12372_dateTimeSymbols_.DATEFORMATS[L];else if(L<8)O=A.JSC$12372_dateTimeSymbols_.TIMEFORMATS[L-4];else if(L<12)O=A.JSC$12372_dateTimeSymbols_.DATETIMEFORMATS[L-8],O=O.replace("{1}",A.JSC$12372_dateTimeSymbols_.DATEFORMATS[L-8]),O=O.replace("{0}",A.JSC$12372_dateTimeSymbols_.TIMEFORMATS[L-8]);else if(L===12)O=A.JSC$12372_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(L===13)O=A.JSC$12372_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{Bd6(A,10);return}Mq7(A,O)},AA=function(A,L){L=String(L);
A=A.JSC$12372_dateTimeSymbols_||Kv;if(A.ZERODIGIT!==void 0&&!p$D){for(var O=[],X=0;X<L.length;X++){var x=L.charCodeAt(X);O.push(48<=x&&x<=57?String.fromCharCode(A.ZERODIGIT+x-48):L.charAt(X))}L=O.join("")}return L},p$D=!1,iAu=!1,URn=function(A,L,O,X){O=O.getFullYear();
O<=0&&X&&(O=1-O);return AA(A,kKH(O,L))},kKH=function(A,L){L==2&&(A%=100);
A<0&&L++;return _.Tv(A,L)},LC=function(A){if(!(A.getHours&&A.getSeconds&&A.getMinutes))throw Error("Xd");
},vJ6=function(A,L){LC(L);
L=oj(L);return A.JSC$12372_dateTimeSymbols_.AMPMS[L>=12&&L<24?1:0]},aBl=function(A,L,O,X,x,J){var Y=L.length;
switch(L.charAt(0)){case "G":return O=X.getFullYear()>0?1:0,Y>=4?A.JSC$12372_dateTimeSymbols_.ERANAMES[O]:A.JSC$12372_dateTimeSymbols_.ERAS[O];case "y":return URn(A,Y,X,!0);case "Y":return O=(new Date(ATn(X.getFullYear(),X.getMonth(),X.getDate(),A.JSC$12372_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,A.JSC$12372_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),Y==2&&(O%=100),AA(A,kKH(O,Y));case "u":return URn(A,Y,X,!1);case "M":a:switch(O=X.getMonth(),Y){case 5:Y=A.JSC$12372_dateTimeSymbols_.NARROWMONTHS[O];
break a;case 4:Y=A.JSC$12372_dateTimeSymbols_.MONTHS[O];break a;case 3:Y=A.JSC$12372_dateTimeSymbols_.SHORTMONTHS[O];break a;default:Y=AA(A,_.Tv(O+1,Y))}return Y;case "k":return LC(x),AA(A,_.Tv(oj(x)||24,Y));case "S":return AA(A,(x.getMilliseconds()/1E3).toFixed(Math.min(3,Y)).slice(2)+(Y>3?_.Tv(0,Y-3):""));case "E":return O=X.getDay(),Y>=4?A.JSC$12372_dateTimeSymbols_.WEEKDAYS[O]:A.JSC$12372_dateTimeSymbols_.SHORTWEEKDAYS[O];case "a":return vJ6(A,x);case "b":return vJ6(A,x);case "B":return vJ6(A,
x);case "h":return LC(x),AA(A,_.Tv(oj(x)%12||12,Y));case "K":return LC(x),AA(A,_.Tv(oj(x)%12,Y));case "H":return LC(x),AA(A,_.Tv(oj(x),Y));case "c":a:switch(O=X.getDay(),Y){case 5:Y=A.JSC$12372_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[O];break a;case 4:Y=A.JSC$12372_dateTimeSymbols_.STANDALONEWEEKDAYS[O];break a;case 3:Y=A.JSC$12372_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[O];break a;default:Y=AA(A,_.Tv(O,1))}return Y;case "L":a:switch(O=X.getMonth(),Y){case 5:Y=A.JSC$12372_dateTimeSymbols_.STANDALONENARROWMONTHS[O];
break a;case 4:Y=A.JSC$12372_dateTimeSymbols_.STANDALONEMONTHS[O];break a;case 3:Y=A.JSC$12372_dateTimeSymbols_.STANDALONESHORTMONTHS[O];break a;default:Y=AA(A,_.Tv(O+1,Y))}return Y;case "Q":return O=Math.floor(X.getMonth()/3),Y<4?A.JSC$12372_dateTimeSymbols_.SHORTQUARTERS[O]:A.JSC$12372_dateTimeSymbols_.QUARTERS[O];case "d":return AA(A,_.Tv(X.getDate(),Y));case "m":return LC(x),AA(A,_.Tv(x.getMinutes?x.getMinutes():0,Y));case "s":return LC(x),AA(A,_.Tv(x.getSeconds(),Y));case "v":return(J||$B(O.getTimezoneOffset())).timeZoneId_;
case "V":return A=J||$B(O.getTimezoneOffset()),Y<=2?A.timeZoneId_:H46(A,O)>0?A.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?A.tzNamesExt_.DST_GENERIC_LOCATION:A.tzNamesExt_.DST_GENERIC_LOCATION:A.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?A.tzNamesExt_.STD_GENERIC_LOCATION:A.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return O=ATn(x.getFullYear(),x.getMonth(),x.getDate(),A.JSC$12372_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,A.JSC$12372_dateTimeSymbols_.FIRSTDAYOFWEEK),AA(A,_.Tv(Math.floor(Math.round((O-(new Date((new Date(O)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,Y));case "z":return A=J||$B(O.getTimezoneOffset()),Y<4?A.tzNames_[H46(A,O)>0?2:0]:A.tzNames_[H46(A,O)>0?3:1];case "Z":return L=J||$B(O.getTimezoneOffset()),Y<4?(Y=-zB6(L,O),A=[Y<0?"-":"+"],Y=Math.abs(Y),A.push(_.Tv(Math.floor(Y/60)%100,2),_.Tv(Y%60,2)),Y=A.join("")):Y=AA(A,Win(zB6(L,O))),Y;default:return""}};var oJ3=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,At7=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,ufP=function(A){this.patternParts_=[];this.JSC$12381_dateTimeSymbols_=Kv;if(typeof A=="number"){A>11&&(A=10);if(A<4)var L=this.JSC$12381_dateTimeSymbols_.DATEFORMATS[A];else A<8?L=this.JSC$12381_dateTimeSymbols_.TIMEFORMATS[A-4]:(L=this.JSC$12381_dateTimeSymbols_.DATETIMEFORMATS[A-8],L=L.replace("{1}",this.JSC$12381_dateTimeSymbols_.DATEFORMATS[A-8]),L=L.replace("{0}",this.JSC$12381_dateTimeSymbols_.TIMEFORMATS[A-
8]));Le3(this,L)}else Le3(this,A)},Le3=function(A,L){for(var O=!1,X="",x=0;x<L.length;x++){var J=L.charAt(x);
if(oJ3.test(J))for(X.length>0&&(A.patternParts_.push({text:X,count:0,abutStart:!1,numeric:!1}),X=""),A.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});x<L.length-1&&L.charAt(x+1)==" ";)x++;else if(O)J=="'"?x+1<L.length&&L.charAt(x+1)=="'"?(X+="'",x++):O=!1:X+=J;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(J)>=0){X.length>0&&(A.patternParts_.push({text:X,count:0,abutStart:!1,numeric:!1}),X="");for(var Y=L.charAt(x),T=x+1;T<L.length&&L.charAt(T)==Y;)T++;Y=T-x;Y<=0?T=!1:(T="MydhHmsSDkK".indexOf(J),
T=T>0||T==0&&Y<3);A.patternParts_.push({text:J,count:Y,abutStart:!1,numeric:T});x+=Y-1}else J=="'"?x+1<L.length&&L.charAt(x+1)=="'"?(X+="'",x++):O=!0:X+=J}X.length>0&&A.patternParts_.push({text:X,count:0,abutStart:!1,numeric:!1});L=!1;for(O=0;O<A.patternParts_.length;O++)A.patternParts_[O].numeric?!L&&O+1<A.patternParts_.length&&A.patternParts_[O+1].numeric&&(L=!0,A.patternParts_[O].abutStart=!0):L=!1};
ufP.prototype.parse=function(A,L,O){var X=!1,x=!1;O&&(X=O.predictive||!1,x=O.validate||!1);if(X)for(O=0;O<this.patternParts_.length;O++){var J=this.patternParts_[O];if(J.count>0&&("abBhHkKm".indexOf(J.text.charAt(0))<0||J.count>2||J.abutStart))throw Error("Yd`"+J.text.charAt(0));}J=new OTj;O=[0];J.dayPeriodIndex=-1;for(var Y=0;Y<this.patternParts_.length&&!(X&&O[0]>=A.length);Y++){if(this.patternParts_[Y].count==0){a:{var T=A;var V=O,E=this.patternParts_[Y],n=X;if(E.text.match(oJ3)!=null){if(E=V[0],
XRl(T,V),V[0]>E){T=!0;break a}}else{if(T.indexOf(E.text,V[0])==V[0]){V[0]+=E.text.length;T=!0;break a}if(n&&E.text.indexOf(T.substring(V[0]))==0){V[0]+=T.length-V[0];T=!0;break a}}T=!1}if(T)continue;return 0}if(this.patternParts_[Y].abutStart){a:{V=A;E=O;n=Y;var t=E[0],b=0;for(T=n;T<this.patternParts_.length;T++){var S=this.patternParts_[T],w=S.count;if(w===0)break;if(T==n&&(w-=b,b++,w==0)){T=0;break a}var l=T>n&&S.numeric,F=E[0];if(!xbu(this,V,E,S,w,J,!1)||l&&E[0]-F<w)T=n-1,E[0]=t}T-=n}if(T<=0)return 0;
Y+=T-1}else if(!xbu(this,A,O,this.patternParts_[Y],0,J,X))return 0}a:{A=x;if(L==null)throw Error("Zd");J.era!=void 0&&J.year!=void 0&&J.era==0&&J.year>0&&(J.year=-(J.year-1));J.year!=void 0&&L.setFullYear(J.year);X=L.getDate();L.setDate(1);J.month!=void 0&&L.setMonth(J.month);J.day!=void 0?L.setDate(J.day):(x=Ide(L.getFullYear(),L.getMonth()),L.setDate(X>x?x:X));typeof L.setHours==="function"&&(J.hours==void 0&&(J.hours=L.getHours()),J.hours<12&&(J.ampm!=void 0&&J.ampm>0?J.hours+=12:J.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(J.dayPeriodName)||["night1","night2"].includes(J.dayPeriodName)&&J.hours>=6)&&(J.hours+=12)),L.setHours(J.hours));typeof L.setMinutes==="function"&&J.minutes!=void 0&&L.setMinutes(J.minutes);typeof L.setSeconds==="function"&&J.seconds!=void 0&&L.setSeconds(J.seconds);typeof L.setMilliseconds==="function"&&J.milliseconds!=void 0&&L.setMilliseconds(J.milliseconds);if(A&&(J.year&&J.year!=L.getFullYear()||J.month&&J.month!=
L.getMonth()||J.day&&J.day!=L.getDate()||J.hours&&J.hours>=24||J.minutes&&J.minutes>=60||J.seconds&&J.seconds>=60||J.milliseconds&&J.milliseconds>=1E3))L=!1;else{J.tzOffset!=void 0&&L.setTime(L.getTime()+(J.tzOffset-L.getTimezoneOffset())*60*1E3);J.ambiguousYear&&(A=new Date,A.setFullYear(A.getFullYear()-80),L.getTime()<A.getTime()&&L.setFullYear(A.getFullYear()+100));if(J.dayOfWeek!=void 0)if(J.day==void 0)J=(7+J.dayOfWeek-L.getDay())%7,J>3&&(J-=7),A=L.getMonth(),L.setDate(L.getDate()+J),L.getMonth()!=
A&&L.setDate(L.getDate()+(J>0?-7:7));else if(J.dayOfWeek!=L.getDay()){L=!1;break a}L=!0}}return L?O[0]:0};
var xbu=function(A,L,O,X,x,J,Y){XRl(L,O);if(X.numeric&&x>0&&O[0]+x>L.length)return!1;switch(X.text.charAt(0)){case "G":return OQ(L,O,[A.JSC$12381_dateTimeSymbols_.ERAS],function(T){return J.era=T}),!0;
case "M":case "L":return syJ(A,L,O,x,X,J);case "E":return OQ(L,O,[A.JSC$12381_dateTimeSymbols_.WEEKDAYS,A.JSC$12381_dateTimeSymbols_.SHORTWEEKDAYS],function(T){return J.dayOfWeek=T});
case "B":case "b":return x=[],A=[[].concat(A.JSC$12381_dateTimeSymbols_.AMPMS)],x.push("isAm"),x.push("isPm"),L=OQ(L,O,A,function(T){return J.dayPeriodIndex=T},Y),J.dayPeriodName=x[J.dayPeriodIndex],Y?L:!0;
case "a":return L=OQ(L,O,[A.JSC$12381_dateTimeSymbols_.AMPMS],function(T){return J.ampm=T},Y),Y?L:!0;
case "y":return Jtu(A,L,O,X,x,J);case "Q":return OQ(L,O,[A.JSC$12381_dateTimeSymbols_.QUARTERS,A.JSC$12381_dateTimeSymbols_.SHORTQUARTERS],function(T){J.month=T*3;J.day=1});
case "d":return Xt(A,L,O,X,x,function(T){J.day=T}),!0;
case "S":return PVg(A,L,O,x,J);case "h":case "K":case "H":case "k":return L=Xt(A,L,O,X,x,function(T){J.hours=X.text.charAt(0)==="h"&&T===12?0:T},Y),Y?L:!0;
case "m":return L=Xt(A,L,O,X,x,function(T){J.minutes=T},Y),Y?L:!0;
case "s":return Xt(A,L,O,X,x,function(T){J.seconds=T}),!0;
case "z":case "Z":case "v":return dbl(A,L,O,J);default:return!1}},Jtu=function(A,L,O,X,x,J){var Y=O[0];
x=xp(A,L,O,x);x===null&&(x=xp(A,L,O,0,!0));if(x===null)return!1;x>=0&&O[0]-Y==2&&X.count==2?(A=x,L=(new Date).getFullYear()-80,O=L%100,J.ambiguousYear=A==O,A+=Math.floor(L/100)*100+(A<O?100:0),J.year=A):J.year=x;return!0},syJ=function(A,L,O,X,x,J){return x.numeric&&Xt(A,L,O,x,X,function(Y){J.month=Y-1})?!0:OQ(L,O,[A.JSC$12381_dateTimeSymbols_.MONTHS,
A.JSC$12381_dateTimeSymbols_.STANDALONEMONTHS,A.JSC$12381_dateTimeSymbols_.SHORTMONTHS,A.JSC$12381_dateTimeSymbols_.STANDALONESHORTMONTHS],function(Y){J.month=Y})},PVg=function(A,L,O,X,x){var J=O[0];
A=xp(A,L,O,X);if(A===null)return!1;O=O[0]-J;x.milliseconds=O<3?A*Math.pow(10,3-O):Math.round(A/Math.pow(10,O-3));return!0},dbl=function(A,L,O,X){L.indexOf("GMT",O[0])==O[0]&&(O[0]+=3);
if(O[0]>=L.length)return X.tzOffset=0,!0;var x=O[0],J=xp(A,L,O,0,!0);if(J===null)return!1;if(O[0]<L.length&&L.charAt(O[0])==":"){var Y=J*60;O[0]++;J=xp(A,L,O,0);if(J===null)return!1;Y+=J}else Y=J,Y=Y<24&&O[0]-x<=3?Y*60:Y%100+Y/100*60;X.tzOffset=-Y;return!0},Xt=function(A,L,O,X,x,J,Y){Y=Y||!1;
var T=O[0];A=xp(A,L,O,x);if(A===null)return!1;if(Y&&O[0]-T<X.count){if(O[0]<L.length)return!1;A*=Math.pow(10,X.count-(O[0]-T))}J(A);return!0},OQ=function(A,L,O,X,x){x=x||!1;
for(var J,Y=0;Y<O.length;Y++){J=L;for(var T=O[Y],V=x,E=0,n=null,t=A.substring(J[0]).toLowerCase(),b=0;b<T.length;b++){var S=T[b].toLowerCase();if(V&&S.indexOf(t)==0){E=t.length;n=b;break}T[b].length>E&&t.indexOf(S)==0&&(E=T[b].length,n=b)}n!==null&&(J[0]+=E);J=n;if(J!==null)return X(J),!0}return!1},XRl=function(A,L){(A=A.substring(L[0]).match(At7))&&(L[0]+=A[0].length)},xp=function(A,L,O,X,x){L=X>0?L.substring(0,O[0]+X):L;
x=x||!1;if(A.JSC$12381_dateTimeSymbols_.ZERODIGIT){X=[];for(var J=O[0];J<L.length;J++){var Y=L.charCodeAt(J)-A.JSC$12381_dateTimeSymbols_.ZERODIGIT;X.push(0<=Y&&Y<=9?String.fromCharCode(Y+48):L.charAt(J))}L=X.join("")}else L=L.substring(O[0]);A=L.match(new RegExp("^"+(x?"[+-]?":"")+"\\d+"));if(!A)return null;O[0]+=A[0].length;return parseInt(A[0],10)},OTj=function(){};
OTj.prototype.ambiguousYear=!1;_.YYJ={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 uIL={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"},TWV=uIL,V5L=uIL;V5L=TWV=uIL;var ek6,sQ,Pi,QTp,JA,Dbu;
_.z1=function(A,L,O,X){var x;if(x=L){a:if(L&&L.length===3){for(x=0;x<3;x++){var J=L[x];if(J<"A"||J>"Z"&&J<"a"||J>"z"){x=!1;break a}}x=!0}else x=!1;x=!x}if(x)throw new TypeError("$d");this.intlCurrencyCode_=L?L.toUpperCase():null;this.currencyStyle_=O||0;this.overrideNumberFormatSymbols_=X||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_=sQ(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof A==="number")switch(A){case 1:JA(this,sQ(this).DECIMAL_PATTERN);break;case 2:JA(this,sQ(this).SCIENTIFIC_PATTERN);break;case 3:JA(this,sQ(this).PERCENT_PATTERN);break;case 4:A=sQ(this).CURRENCY_PATTERN;L=["0"];if(O=
vg[Pi(this)]){O=O[0]&7;if(O>0)for(L.push("."),X=0;X<O;X++)L.push("0");A=A.replace(/0.00/g,L.join(""))}JA(this,A);break;case 5:Dbu(this,1);break;case 6:Dbu(this,2);break;default:throw Error("ce");}else JA(this,A)};
ek6=!1;sQ=function(A){return A.overrideNumberFormatSymbols_||(ek6?V5L:TWV)};
Pi=function(A){return A.intlCurrencyCode_||sQ(A).DEF_CURRENCY_CODE};
QTp=function(A,L){if(L>308)throw Error("be`"+L);A.maximumFractionDigits_=L;return A};
JA=function(A,L){var O=[0];A.positivePrefix_=Ea6(A,L,O);for(var X=O[0],x=-1,J=0,Y=0,T=0,V=-1,E=L.length,n=!0;O[0]<E&&n;O[0]++)switch(L.charAt(O[0])){case "#":Y>0?T++:J++;V>=0&&x<0&&V++;break;case "0":if(T>0)throw Error("ie`"+L);Y++;V>=0&&x<0&&V++;break;case ",":V>0&&A.groupingArray_.push(V);V=0;break;case ".":if(x>=0)throw Error("je`"+L);x=J+Y+T;break;case "E":if(A.useExponentialNotation_)throw Error("ke`"+L);A.useExponentialNotation_=!0;A.minExponentDigits_=0;O[0]+1<E&&L.charAt(O[0]+1)=="+"&&(O[0]++,
A.useSignForPositiveExponent_=!0);for(;O[0]+1<E&&L.charAt(O[0]+1)=="0";)O[0]++,A.minExponentDigits_++;if(J+Y<1||A.minExponentDigits_<1)throw Error("le`"+L);n=!1;break;default:O[0]--,n=!1}Y==0&&J>0&&x>=0&&(Y=x,Y==0&&Y++,T=J-Y,J=Y-1,Y=1);if(x<0&&T>0||x>=0&&(x<J||x>J+Y)||V==0)throw Error("me`"+L);T=J+Y+T;A.maximumFractionDigits_=x>=0?T-x:0;x>=0&&(A.minimumFractionDigits_=J+Y-x,A.minimumFractionDigits_<0&&(A.minimumFractionDigits_=0));A.minimumIntegerDigits_=(x>=0?x:T)-J;A.useExponentialNotation_&&(A.maximumIntegerDigits_=
J+A.minimumIntegerDigits_,A.maximumFractionDigits_==0&&A.minimumIntegerDigits_==0&&(A.minimumIntegerDigits_=1));A.groupingArray_.push(Math.max(0,V));A.decimalSeparatorAlwaysShown_=x==0||x==T;X=O[0]-X;A.positiveSuffix_=Ea6(A,L,O);O[0]<L.length&&L.charAt(O[0])==";"?(O[0]++,A.multiplier_!=1&&(A.negativePercentSignExpected_=!0),A.negativePrefix_=Ea6(A,L,O),O[0]+=X,A.negativeSuffix_=Ea6(A,L,O)):(A.negativePrefix_+=A.positivePrefix_,A.negativeSuffix_+=A.positiveSuffix_)};
Dbu=function(A,L){A.compactStyle_=L;JA(A,sQ(A).DECIMAL_PATTERN);A.minimumFractionDigits_=0;QTp(A,2);if(A.minimumFractionDigits_>0)throw Error("ae");A.significantDigits_=2};
_.z1.prototype.parse=function(A,L){L=L||[0];if(this.compactStyle_!==0)throw Error("de");A=A.replace(/ |\u202f/g,"\u00a0");var O=A.indexOf(this.positivePrefix_,L[0])==L[0],X=A.indexOf(this.negativePrefix_,L[0])==L[0];O&&X&&(this.positivePrefix_.length>this.negativePrefix_.length?X=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(O=!1));O?L[0]+=this.positivePrefix_.length:X&&(L[0]+=this.negativePrefix_.length);if(A.indexOf(sQ(this).INFINITY,L[0])==L[0]){L[0]+=sQ(this).INFINITY.length;var x=
Infinity}else{x=A;var J=!1,Y=!1,T=!1,V=-1,E=1,n=sQ(this).DECIMAL_SEP,t=sQ(this).GROUP_SEP,b=sQ(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("ee");t=t.replace(/\u202f/g,"\u00a0");for(var S="";L[0]<x.length;L[0]++){var w=x.charAt(L[0]),l=nau(this,w);if(l>=0&&l<=9)S+=l,T=!0;else if(w==n.charAt(0)){if(J||Y)break;S+=".";J=!0}else if(w==t.charAt(0)&&("\u00a0"!=t.charAt(0)||L[0]+1<x.length&&nau(this,x.charAt(L[0]+1))>=0)){if(J||Y)break}else if(w==b.charAt(0)){if(Y)break;S+="E";Y=!0;V=L[0]}else if(w==
"+"||w=="-"){if(T&&V!=L[0]-1)break;S+=w}else if(this.multiplier_==1&&w==sQ(this).PERCENT.charAt(0)){if(E!=1)break;E=100;if(T){L[0]++;break}}else if(this.multiplier_==1&&w==sQ(this).PERMILL.charAt(0)){if(E!=1)break;E=1E3;if(T){L[0]++;break}}else break}this.multiplier_!=1&&(E=this.multiplier_);x=parseFloat(S)/E}if(O){if(A.indexOf(this.positiveSuffix_,L[0])!=L[0])return NaN;L[0]+=this.positiveSuffix_.length}else if(X){if(A.indexOf(this.negativeSuffix_,L[0])!=L[0])return NaN;L[0]+=this.negativeSuffix_.length}return X?
-x:x};
_.z1.prototype.format=function(A){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("fe");if(isNaN(A))return sQ(this).NAN;var L=[];var O=A;if(this.compactStyle_==0)O=dq;else{O=Math.abs(O);var X=t5N(this,O<=1?0:bTg(O)).divisorBase;O=t5N(this,X+bTg(hkV(this,Yp(O,-X)).intValue))}A=Yp(A,-O.divisorBase);(X=A<0||A==0&&1/A<0)?O.negative_prefix?L.push(O.negative_prefix):(L.push(O.prefix),L.push(this.negativePrefix_)):(L.push(O.prefix),L.push(this.positivePrefix_));if(isFinite(A))if(A*=
X?-1:1,A*=this.multiplier_,this.useExponentialNotation_){var x=A;if(x==0)SYg(this,x,this.minimumIntegerDigits_,L),qYl(this,0,L);else{var J=Math.floor(Math.log(x)/Math.log(10)+2E-15);x=Yp(x,-J);var Y=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(Y=J%this.maximumIntegerDigits_,Y<0&&(Y=this.maximumIntegerDigits_+Y),x=Yp(x,Y),J-=Y,Y=1):this.minimumIntegerDigits_<1?(J++,x=Yp(x,-1)):(J-=this.minimumIntegerDigits_-1,x=Yp(x,this.minimumIntegerDigits_-
1));SYg(this,x,Y,L);qYl(this,J,L)}}else SYg(this,A,this.minimumIntegerDigits_,L);else L.push(sQ(this).INFINITY);X?O.negative_suffix?L.push(O.negative_suffix):(isFinite(A)&&L.push(O.suffix),L.push(this.negativeSuffix_)):(isFinite(A)&&L.push(O.suffix),L.push(this.positiveSuffix_));return L.join("")};
var hkV=function(A,L){var O=Yp(L,A.maximumFractionDigits_);A.significantDigits_>0&&(O=gaV(O,A.significantDigits_,A.maximumFractionDigits_));O=Math.round(O);if(isFinite(O)){var X=Math.floor(Yp(O,-A.maximumFractionDigits_));O=Math.floor(O-Yp(X,A.maximumFractionDigits_));if(O<0||O>=Yp(1,A.maximumFractionDigits_))X=Math.round(L),O=0}else X=L,O=0;return{intValue:X,fracValue:O}},SYg=function(A,L,O,X){if(A.minimumFractionDigits_>A.maximumFractionDigits_)throw Error("fe");
X||(X=[]);L=hkV(A,L);var x=L.intValue,J=L.fracValue,Y=A.minimumFractionDigits_>0||J>0||!1;L=A.minimumFractionDigits_;Y&&(L=A.minimumFractionDigits_);for(var T="",V=x;V>1E20;)T="0"+T,V=Math.round(Yp(V,-1));T=V+T;var E=sQ(A).DECIMAL_SEP;V=sQ(A).ZERO_DIGIT.codePointAt(0);var n=T.length,t=0;if(x>0||O>0){for(x=n;x<O;x++)X.push(String.fromCodePoint(V));if(A.groupingArray_.length>=2)for(O=1;O<A.groupingArray_.length;O++)t+=A.groupingArray_[O];O=n-t;if(O>0){x=A.groupingArray_;t=n=0;for(var b,S=sQ(A).GROUP_SEP,
w=T.length,l=0;l<w;l++)if(X.push(String.fromCodePoint(V+Number(T.charAt(l)))),w-l>1)if(b=x[t],l<O){var F=O-l;(b===1||b>0&&F%b===1)&&X.push(S)}else t<x.length&&(l===O?t+=1:b===l-O-n+1&&(X.push(S),n+=b,t+=1))}else{O=T;T=A.groupingArray_;x=sQ(A).GROUP_SEP;b=O.length;S=[];for(n=T.length-1;n>=0&&b>0;n--){t=T[n];for(w=0;w<t&&b-w-1>=0;w++)S.push(String.fromCodePoint(V+Number(O.charAt(b-w-1))));b-=t;b>0&&S.push(x)}X.push.apply(X,S.reverse())}}else Y||X.push(String.fromCodePoint(V));(A.decimalSeparatorAlwaysShown_||
Y)&&X.push(E);J=String(J);Y=J.split("e+");Y.length==2&&(J=String(gaV(parseFloat(Y[0]),A.significantDigits_,1)),J=J.replace(".",""),J+=(0,_.xN6)("0",parseInt(Y[1],10)-J.length+1));A.maximumFractionDigits_+1>J.length&&(J="1"+(0,_.xN6)("0",A.maximumFractionDigits_-J.length)+J);for(A=J.length;J.charAt(A-1)=="0"&&A>L+1;)A--;for(L=1;L<A;L++)X.push(String.fromCodePoint(V+Number(J.charAt(L))))},qYl=function(A,L,O){O.push(sQ(A).EXP_SYMBOL);
L<0?(L=-L,O.push(sQ(A).MINUS_SIGN)):A.useSignForPositiveExponent_&&O.push(sQ(A).PLUS_SIGN);L=""+L;for(var X=sQ(A).ZERO_DIGIT,x=L.length;x<A.minExponentDigits_;x++)O.push(X);A=X.codePointAt(0)-wR7;for(X=0;X<L.length;X++)O.push(String.fromCodePoint(A+L.codePointAt(X)))},nau=function(A,L){L=L.codePointAt(0);
if(48<=L&&L<58)return L-48;A=sQ(A).ZERO_DIGIT.codePointAt(0);return A<=L&&L<A+10?L-A:-1},wR7="0".codePointAt(0),Ea6=function(A,L,O){for(var X="",x=!1,J=L.length;O[0]<J;O[0]++){var Y=L.charAt(O[0]);
if(Y=="'")O[0]+1<J&&L.charAt(O[0]+1)=="'"?(O[0]++,X+="'"):x=!x;else if(x)X+=Y;else switch(Y){case "#":case "0":case ",":case ".":case ";":return X;case "\u00a4":if(O[0]+1<J&&L.charAt(O[0]+1)=="\u00a4")O[0]++,X+=Pi(A);else switch(A.currencyStyle_){case 0:Y=Pi(A);X+=Y in vg?vg[Y][1]:Y;break;case 2:Y=Pi(A);var T=vg[Y];X+=T?Y==T[1]?Y:Y+" "+T[1]:Y;break;case 1:Y=Pi(A),X+=Y in vg?vg[Y][2]:Y}break;case "%":if(!A.negativePercentSignExpected_&&A.multiplier_!=1)throw Error("ge");if(A.negativePercentSignExpected_&&
A.multiplier_!=100)throw Error("he");A.multiplier_=100;A.negativePercentSignExpected_=!1;X+=sQ(A).PERCENT;break;case "\u2030":if(!A.negativePercentSignExpected_&&A.multiplier_!=1)throw Error("ge");if(A.negativePercentSignExpected_&&A.multiplier_!=1E3)throw Error("he");A.multiplier_=1E3;A.negativePercentSignExpected_=!1;X+=sQ(A).PERMILL;break;default:X+=Y}}return X},dq={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},t5N=function(A,L){A=A.compactStyle_==1?US.COMPACT_DECIMAL_SHORT_PATTERN:US.COMPACT_DECIMAL_LONG_PATTERN;A==null&&(A=US.COMPACT_DECIMAL_SHORT_PATTERN);if(L<3)return dq;L=Math.min(14,L);var O=A[Yp(1,L)];for(--L;!O&&L>=3;)O=A[Yp(1,L)],L--;if(!O)return dq;O=O.other;var X=A="",x=O.indexOf(";");x>=0&&(O=O.substring(0,x),x=O.substring(x+1))&&(X=/([^0]*)(0+)(.*)/.exec(x),A=X[1],X=X[3]);return O&&O!="0"?(O=/([^0]*)(0+)(.*)/.exec(O))?{divisorBase:L+
1-(O[2].length-1),negative_prefix:A,negative_suffix:X,prefix:O[1],suffix:O[3]}:dq:dq},bTg=function(A){if(!isFinite(A))return A>0?A:0;
for(var L=0;(A/=10)>=1;)L++;return L},Yp=function(A,L){if(!A||!isFinite(A)||L==0)return A;
A=String(A).split("e");return parseFloat(A[0]+"e"+(parseInt(A[1]||0,10)+L))},pR6=function(A,L){return A&&isFinite(A)?Yp(Math.round(Yp(A,L)),-L):A},gaV=function(A,L,O){if(!A)return A;
L=L-bTg(A)-1;return L<-O?pR6(A,-O):pR6(A,L)};var iTH=function(A){return A%10==1&&A%100!=11?"one":A%10==2&&A%100!=12?"two":A%10==3&&A%100!=13?"few":"other"},NWL=iTH;
NWL=iTH;var rt3;rt3=function(A,L){var O=A|0;if(void 0===L){L=Math;var X=L.min,x=A+"",J=x.indexOf(".");L=X.call(L,J===-1?0:x.length-J-1,3)}X=Math.pow(10,L);A={v:L,f:(A*X|0)%X};return O==1&&A.v==0?"one":"other"};
_.kB=rt3;_.kB=rt3;var Ke6,Gi7,lXJ,CVn,FeH;_.ctn=function(A){this.JSC$12424_pattern_=A;this.parsedPattern_=this.literals_=this.initialLiterals_=null;A=TWV;var L=US;if(Ke6!==A||Gi7!==L)Ke6=A,Gi7=L,lXJ=new _.z1(1);this.numberFormatter_=lXJ};
Ke6=null;Gi7=null;lXJ=null;CVn=RegExp("'([{}#].*?)'","g");FeH=RegExp("''","g");
_.ctn.prototype.format=function(A){if(this.JSC$12424_pattern_){this.initialLiterals_=[];var L=Rkn(this,this.JSC$12424_pattern_);this.parsedPattern_=Qy3(this,L);this.JSC$12424_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.Ze(this.initialLiterals_),L=[],mb7(this,this.parsedPattern_,A,!1,L),A=L.join("");this.literals_.length>0;)A=A.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else A="";return A};
var mb7=function(A,L,O,X,x){for(var J=0;J<L.length;J++)switch(L[J].type){case 4:x.push(L[J].value);break;case 3:var Y=L[J].value;var T=A,V=x,E=O[Y];E===void 0?V.push("Undefined parameter - "+Y):(T.literals_.push(E),V.push(T.buildPlaceholder_(T.literals_)));break;case 2:Y=L[J].value;T=A;V=O;E=X;var n=x,t=Y.argumentIndex;V[t]===void 0?n.push("Undefined parameter - "+t):(t=Y[V[t]],t===void 0&&(t=Y.other),mb7(T,t,V,E,n));break;case 0:Y=L[J].value;fXV(A,Y,O,_.kB,X,x);break;case 1:Y=L[J].value,fXV(A,Y,
O,NWL,X,x)}},fXV=function(A,L,O,X,x,J){var Y=L.argumentIndex,T=L.argumentOffset,V=+O[Y];
isNaN(V)?J.push("Undefined or invalid parameter - "+Y):(T=V-T,Y=L[O[Y]],Y===void 0&&(X=X(Math.abs(T)),Y=L[X],Y===void 0&&(Y=L.other)),L=[],mb7(A,Y,O,x,L),O=L.join(""),x?J.push(O):(A=A.numberFormatter_.format(T),J.push(O.replace(/#/g,A))))},Rkn=function(A,L){var O=A.initialLiterals_,X=A.buildPlaceholder_.bind(A);
L=L.replace(FeH,function(){O.push("'");return X(O)});
return L=L.replace(CVn,function(x,J){O.push(J);return X(O)})},IXN=function(A){var L=0,O=[],X=[],x=/[{}]/g;
x.lastIndex=0;for(var J;J=x.exec(A);){var Y=J.index;J[0]=="}"?(O.pop(),O.length==0&&(J={type:1},J.value=A.substring(L,Y),X.push(J),L=Y+1)):(O.length==0&&(L=A.substring(L,Y),L!=""&&X.push({type:0,value:L}),L=Y+1),O.push("{"))}A=A.substring(L);A!=""&&X.push({type:0,value:A});return X},ytL=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,ZT3=/^\s*(\w+)\s*,\s*selectordinal\s*,/,jyj=/^\s*(\w+)\s*,\s*select\s*,/,Qy3=function(A,L){var O=[];
L=IXN(L);for(var X=0;X<L.length;X++){var x={};if(0==L[X].type)x.type=4,x.value=L[X].value;else if(1==L[X].type){var J=L[X].value;switch(ytL.test(J)?0:ZT3.test(J)?1:jyj.test(J)?2:/^\s*\w+\s*/.test(J)?3:5){case 2:x.type=2;x.value=WeN(A,L[X].value);break;case 0:x.type=0;x.value=HTn(A,L[X].value);break;case 1:x.type=1;x.value=zk3(A,L[X].value);break;case 3:x.type=3,x.value=L[X].value}}O.push(x)}return O},WeN=function(A,L){var O="";
L=L.replace(jyj,function(T,V){O=V;return""});
var X={};X.argumentIndex=O;L=IXN(L);for(var x=0;x<L.length;){var J=L[x].value;x++;var Y=void 0;1==L[x].type&&(Y=Qy3(A,L[x].value));X[J.replace(/\s/g,"")]=Y;x++}return X},HTn=function(A,L){var O="",X=0;
L=L.replace(ytL,function(V,E,n){O=E;n&&(X=parseInt(n,10));return""});
var x={};x.argumentIndex=O;x.argumentOffset=X;L=IXN(L);for(var J=0;J<L.length;){var Y=L[J].value;J++;var T=void 0;1==L[J].type&&(T=Qy3(A,L[J].value));x[Y.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=T;J++}return x},zk3=function(A,L){var O="";
L=L.replace(ZT3,function(T,V){O=V;return""});
var X={};X.argumentIndex=O;X.argumentOffset=0;L=IXN(L);for(var x=0;x<L.length;){var J=L[x].value;x++;var Y=void 0;1==L[x].type&&(Y=Qy3(A,L[x].value));X[J.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=Y;x++}return X};
_.ctn.prototype.buildPlaceholder_=function(A){return"\ufddf_"+(A.length-1).toString(10)+"_"};var BWu;
BWu={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 Kks=function(){this.rdtfSymbols_=M5N||BWu;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
Kks.prototype.format=function(A,L){a:{L=$bn(this,L);switch(this.style_){case 2:if(L.NARROW!=void 0){L=L.NARROW;break a}case 1:if(L.SHORT!=void 0){L=L.SHORT;break a}default:L=L.LONG;break a}L=void 0}if(!this.alwaysNumeric_&&L&&L.R&&L.R[""+A])A=L.R[""+A];else if(L){var O=Math.abs(A);A=(new _.ctn("{N,plural,"+(A>0||A==0&&1/A==Infinity?L.F:L.P)+"}")).format({N:O})}else A="";return A};
var $bn=function(A,L){switch(L){default:case 0:return A.rdtfSymbols_.YEAR;case 1:return A.rdtfSymbols_.QUARTER;case 2:return A.rdtfSymbols_.MONTH;case 3:return A.rdtfSymbols_.WEEK;case 4:return A.rdtfSymbols_.DAY;case 5:return A.rdtfSymbols_.HOUR;case 6:return A.rdtfSymbols_.MINUTE;case 7:return A.rdtfSymbols_.SECOND}};var aX6=function(A,L,O,X,x,J,Y,T){this.x0=A;this.y0=L;this.x1=O;this.y1=X;this.x2=x;this.y2=J;this.x3=Y;this.y3=T};
aX6.prototype.clone=function(){return new aX6(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
aX6.prototype.equals=function(A){return this.x0==A.x0&&this.y0==A.y0&&this.x1==A.x1&&this.y1==A.y1&&this.x2==A.x2&&this.y2==A.y2&&this.x3==A.x3&&this.y3==A.y3};
var kig=function(A,L){if(L==0)return A.x0;if(L==1)return A.x3;var O=c6(A.x0,A.x1,L),X=c6(A.x1,A.x2,L);A=c6(A.x2,A.x3,L);O=c6(O,X,L);X=c6(X,A,L);return c6(O,X,L)},Ubl=function(A,L){var O=(L-A.x0)/(A.x3-A.x0);
if(O<=0)return 0;if(O>=1)return 1;for(var X=0,x=1,J=0,Y=0;Y<8;Y++){J=kig(A,O);var T=(kig(A,O+1E-6)-J)/1E-6;if(Math.abs(J-L)<1E-6)return O;if(Math.abs(T)<1E-6)break;else J<L?X=O:x=O,O-=(J-L)/T}for(Y=0;Math.abs(J-L)>1E-6&&Y<8;Y++)J<L?(X=O,O=(O+x)/2):(x=O,O=(O+X)/2),J=kig(A,O);return O};var uh=function(){_.lb.call(this);this.JSC$12445_name_="closure_frame"+vaV++;this.iframesForDisposal_=[];oa6[this.JSC$12445_name_]=this},To;
_.Ty(uh,_.lb);var oa6={},vaV=0,AFn=function(A,L){var O=qF(A);T9g(L,function(X,x){Array.isArray(X)||(X=[X]);_.BY(X,function(J){J=O.JSC$10347_createDom("INPUT",{type:"hidden",name:x,value:J});A.appendChild(J)})})};
_.P=uh.prototype;_.P.JSC$12447_form_=null;_.P.JSC$12447_iframe_=null;_.P.iframeName_=null;_.P.nextIframeId_=0;_.P.JSC$12447_active_=!1;_.P.complete_=!1;_.P.success_=!1;_.P.lastContent_=null;_.P.JSC$12447_lastErrorCode_=0;_.P.iframeDisposalTimer_=null;
_.P.send=function(A,L,O,X){if(this.JSC$12447_active_)throw Error("ne");A=new _.kO(A);L=L?L.toUpperCase():"GET";O&&_.tw(A);To||(To=_.Q5("FORM"),To.acceptCharset="utf-8",O=To.style,O.position="absolute",O.visibility="hidden",O.top=O.left="-10px",O.width=O.height="10px",O.overflow="hidden",document.body.appendChild(To));this.JSC$12447_form_=To;L=="GET"&&AFn(this.JSC$12447_form_,A.JSC$11053_queryData_);X&&AFn(this.JSC$12447_form_,X);O=A.toString();O=Mhd(O);X=this.JSC$12447_form_;O=_.IP(N0(O));O!==void 0&&
(X.action=O);this.JSC$12447_form_.method=L;L4n(this);Oyn(this)};
_.P.abort=function(A){if(this.JSC$12447_active_){var L=V9(this);if(L)if(r_(L))L.removeAllListeners(void 0);else if(L=Kc(L)){var O=0,X;for(X in L.listeners)for(var x=L.listeners[X].concat(),J=0;J<x.length;++J)Gi(x[J])&&++O}this.success_=this.JSC$12447_active_=this.complete_=!1;this.JSC$12447_lastErrorCode_=A||7;this.dispatchEvent("abort");Xx6(this)}};
_.P.disposeInternal=function(){this.JSC$12447_active_&&this.abort();uh.superClass_.disposeInternal.call(this);this.JSC$12447_iframe_&&xnu(this);Oyn(this);this.JSC$12447_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$12447_form_=null;this.JSC$12447_lastErrorCode_=0;delete oa6[this.JSC$12445_name_]};
_.P.isComplete=function(){return this.complete_};
_.P.isSuccess=function(){return this.success_};
_.P.isActive=function(){return this.JSC$12447_active_};
_.P.getResponseText=function(){return this.lastContent_};
_.P.getLastError=function(){return _.Wyu(this.JSC$12447_lastErrorCode_)};
var L4n=function(A){A.JSC$12447_active_=!0;A.complete_=!1;A.JSC$12447_lastErrorCode_=0;A.iframeName_=A.JSC$12445_name_+"_"+(A.nextIframeId_++).toString(36);A.JSC$12447_iframe_=qF(A.JSC$12447_form_).JSC$10347_createDom("IFRAME",{name:A.iframeName_,id:A.iframeName_});var L=A.JSC$12447_iframe_.style;L.visibility="hidden";L.width=L.height="10px";L.display="none";_.tW?L.marginTop=L.marginLeft="-10px":(L.position="absolute",L.top=L.left="-10px");qF(A.JSC$12447_form_).JSC$10345_document_.body.appendChild(A.JSC$12447_iframe_);
L=A.iframeName_+"_inner";var O=NBL(A.JSC$12447_iframe_);if(document.baseURI){var X=nu(L);X='<head><base href="'+nu(document.baseURI)+'"></head><body><iframe id="'+X+'" name="'+X+'"></iframe>';X=jg(X)}else X=nu(L),X=jg('<body><iframe id="'+X+'" name="'+X+'"></iframe>');O.write(Wf(X));_.CT(O.getElementById(L),"load",A.onIframeLoaded_,!1,A);X=SV("TEXTAREA",A.JSC$12447_form_);for(var x=0,J=X.length;x<J;x++){var Y=X[x].value;CJc(X[x])!=Y&&(_.W6(X[x],Y),X[x].value=Y)}X=O.importNode(A.JSC$12447_form_,!0);
X.target=L;X.action=A.JSC$12447_form_.action;O.body.appendChild(X);x=SV("SELECT",A.JSC$12447_form_);J=SV("SELECT",X);Y=0;for(var T=x.length;Y<T;Y++)for(var V=SV("OPTION",x[Y]),E=SV("OPTION",J[Y]),n=0,t=V.length;n<t;n++)E[n].selected=V[n].selected;x=SV("INPUT",A.JSC$12447_form_);J=SV("INPUT",X);Y=0;for(T=x.length;Y<T;Y++)if(x[Y].type=="file"&&x[Y].value!=J[Y].value){A.JSC$12447_form_.target=L;X=A.JSC$12447_form_;break}try{A.errorHandled_=!1,X.submit(),O.close(),_.ns&&setTimeout(A.testForFirefoxSilentError_.bind(A),
250)}catch(b){_.GI(O.getElementById(L),"load",A.onIframeLoaded_,!1,A),O.close(),D2(A,2)}};
uh.prototype.onIframeLoaded_=function(){_.GI(V9(this),"load",this.onIframeLoaded_,!1,this);try{var A=this.JSC$12447_iframe_?NBL(V9(this)):null;this.complete_=!0;this.JSC$12447_active_=!1;try{var L=A.body;this.lastContent_=L.textContent||L.innerText}catch(x){var O=1}var X;O||typeof this.errorChecker_!="function"||(X=this.errorChecker_(A))&&(O=4);O?D2(this,O):(this.success_=!0,this.JSC$12447_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),Xx6(this))}catch(x){D2(this,1)}};
var D2=function(A,L){A.errorHandled_||(A.success_=!1,A.JSC$12447_active_=!1,A.complete_=!0,A.JSC$12447_lastErrorCode_=L,A.dispatchEvent("complete"),A.dispatchEvent("error"),Xx6(A),A.errorHandled_=!0)},Xx6=function(A){xnu(A);
Oyn(A);A.JSC$12447_form_=null;A.dispatchEvent("ready")},xnu=function(A){var L=A.JSC$12447_iframe_;
L&&(L.onreadystatechange=null,L.onload=null,L.onerror=null,A.iframesForDisposal_.push(L));A.iframeDisposalTimer_&&(clearTimeout(A.iframeDisposalTimer_),A.iframeDisposalTimer_=null);_.ns?A.iframeDisposalTimer_=setTimeout(A.disposeIframes_.bind(A),2E3):A.disposeIframes_();A.JSC$12447_iframe_=null;A.iframeName_=null};
uh.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var A=this.iframesForDisposal_.pop();_.hg(A)}};
var Oyn=function(A){A.JSC$12447_form_&&A.JSC$12447_form_==To&&_.IS(A.JSC$12447_form_)},V9=function(A){return A.JSC$12447_iframe_?NBL(A.JSC$12447_iframe_).getElementById(A.iframeName_+"_inner"):null};
uh.prototype.testForFirefoxSilentError_=function(){if(this.JSC$12447_active_){var A=this.JSC$12447_iframe_?NBL(V9(this)):null;A&&!pTp(A,"documentUri")?(_.GI(V9(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?D2(this,3):D2(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.eK=function(A){return A=="\r"||A=="\n"||A==" "||A=="\t"};var sQ7;_.EQ=function(A){this.errorMessage_=null;this.result_=[];this.JSC$12449_buffer_="";this.stack_=[];this.JSC$12449_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!A||!A.deliverMessageAsRawString)};
sQ7={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};_.EQ.prototype.isInputValid=function(){return this.streamState_!=3};
_.EQ.prototype.done=function(){return this.streamState_===2};
var nC=function(A,L,O){A.streamState_=3;A.errorMessage_="The stream is broken @"+A.JSC$12449_pos_+"/"+O+". With input:\n"+L;throw Error(A.errorMessage_);};
_.EQ.prototype.acceptsBinaryInput=function(){return!1};
_.EQ.prototype.parse=function(A){function L(){for(;b<A.length;)if(_.eK(A[b]))b++,J.JSC$12449_pos_++;else break;return b<E}
function O(){for(var w;;){w=A[b++];if(!w)break;J.JSC$12449_pos_++;switch(J.state_){case V.INIT:w==="{"?J.state_=V.OBJECT_OPEN:w==="["?J.state_=V.ARRAY_OPEN:_.eK(w)||nC(J,A,b);continue;case V.KEY_START:case V.OBJECT_OPEN:if(_.eK(w))continue;if(J.state_===V.KEY_START)Y.push(V.KEY_END);else if(w==="}"){x("{}");J.state_=X();continue}else Y.push(V.OBJECT_END);w==='"'?J.state_=V.STRING:nC(J,A,b);continue;case V.KEY_END:case V.OBJECT_END:if(_.eK(w))continue;w===":"?(J.state_===V.OBJECT_END&&(Y.push(V.OBJECT_END),
J.depth_++),J.state_=V.VALUE):w==="}"?(J.depth_--,x(),J.state_=X()):w===","?(J.state_===V.OBJECT_END&&Y.push(V.OBJECT_END),J.state_=V.KEY_START):nC(J,A,b);continue;case V.ARRAY_OPEN:case V.VALUE:if(_.eK(w))continue;if(J.state_===V.ARRAY_OPEN)if(J.depth_++,J.state_=V.VALUE,w==="]"){J.depth_--;if(J.depth_===0){J.state_=V.ARRAY_END;return}x("[]");J.state_=X();continue}else Y.push(V.ARRAY_END);w==='"'?J.state_=V.STRING:w==="{"?J.state_=V.OBJECT_OPEN:w==="["?J.state_=V.ARRAY_OPEN:w==="t"?J.state_=V.TRUE1:
w==="f"?J.state_=V.FALSE1:w==="n"?J.state_=V.NULL1:w!=="-"&&("0123456789".indexOf(w)!==-1?J.state_=V.NUM_DIGIT:nC(J,A,b));continue;case V.ARRAY_END:if(w===",")Y.push(V.ARRAY_END),J.state_=V.VALUE,J.depth_===1&&(t=b);else if(w==="]"){J.depth_--;if(J.depth_===0)return;x();J.state_=X()}else if(_.eK(w))continue;else nC(J,A,b);continue;case V.STRING:var l=b;a:for(;;){for(;J.unicodeCount_>0;)if(w=A[b++],J.unicodeCount_===4?J.unicodeCount_=0:J.unicodeCount_++,!w)break a;if(w==='"'&&!J.slashed_){J.state_=
X();break}if(w==="\\"&&!J.slashed_&&(J.slashed_=!0,w=A[b++],!w))break;if(J.slashed_)if(J.slashed_=!1,w==="u"&&(J.unicodeCount_=1),w=A[b++])continue;else break;T.lastIndex=b;w=T.exec(A);if(!w){b=A.length+1;break}b=w.index+1;w=A[w.index];if(!w)break}J.JSC$12449_pos_+=b-l;continue;case V.TRUE1:if(!w)continue;w==="r"?J.state_=V.TRUE2:nC(J,A,b);continue;case V.TRUE2:if(!w)continue;w==="u"?J.state_=V.TRUE3:nC(J,A,b);continue;case V.TRUE3:if(!w)continue;w==="e"?J.state_=X():nC(J,A,b);continue;case V.FALSE1:if(!w)continue;
w==="a"?J.state_=V.FALSE2:nC(J,A,b);continue;case V.FALSE2:if(!w)continue;w==="l"?J.state_=V.FALSE3:nC(J,A,b);continue;case V.FALSE3:if(!w)continue;w==="s"?J.state_=V.FALSE4:nC(J,A,b);continue;case V.FALSE4:if(!w)continue;w==="e"?J.state_=X():nC(J,A,b);continue;case V.NULL1:if(!w)continue;w==="u"?J.state_=V.NULL2:nC(J,A,b);continue;case V.NULL2:if(!w)continue;w==="l"?J.state_=V.NULL3:nC(J,A,b);continue;case V.NULL3:if(!w)continue;w==="l"?J.state_=X():nC(J,A,b);continue;case V.NUM_DECIMAL_POINT:w===
"."?J.state_=V.NUM_DIGIT:nC(J,A,b);continue;case V.NUM_DIGIT:if("0123456789.eE+-".indexOf(w)!==-1)continue;else b--,J.JSC$12449_pos_--,J.state_=X();continue;default:nC(J,A,b)}}}
function X(){var w=Y.pop();return w!=null?w:V.VALUE}
function x(w){J.depth_>1||(w||(w=t===-1?J.JSC$12449_buffer_+A.substring(n,b):A.substring(t,b)),J.deliverMessageAsRawString_?J.result_.push(w):J.result_.push(JSON.parse(w)),t=b)}
for(var J=this,Y=J.stack_,T=J.stringInputPattern_,V=sQ7,E=A.length,n=0,t=-1,b=0;b<E;)switch(J.streamState_){case 3:return nC(J,A,b),null;case 2:return L()&&nC(J,A,b),null;case 0:if(L()){var S=A[b++];J.JSC$12449_pos_++;if(S==="["){J.streamState_=1;n=b;J.state_=V.ARRAY_OPEN;continue}else nC(J,A,b)}return null;case 1:return O(),J.depth_===0&&J.state_==V.ARRAY_END?(J.streamState_=2,J.JSC$12449_buffer_=A.substring(b)):J.JSC$12449_buffer_=t===-1?J.JSC$12449_buffer_+A.substring(n):A.substring(t),J.result_.length>
0?(S=J.result_,J.result_=[],S):null}return null};_.Ty(_.P3,NO);d6.prototype.getValue=function(){return this.JSC$12457_value_};
d6.prototype.clone=function(){return new d6(this.JSC$12457_key_,this.JSC$12457_value_)};var tA=function(A){this.nodes_=[];if(A)a:{if(A instanceof tA){var L=A.getKeys();A=A.getValues();if(this.getCount()<=0){for(var O=this.nodes_,X=0;X<L.length;X++)O.push(new d6(L[X],A[X]));break a}}else L=_.lW.getKeys(A),A=_.lW.getValues(A);for(O=0;O<L.length;O++)this.insert(L[O],A[O])}};
_.P=tA.prototype;_.P.insert=function(A,L){var O=this.nodes_;O.push(new d6(A,L));A=O.length-1;L=this.nodes_;for(O=L[A];A>0;){var X=A-1>>1;if(L[X].JSC$12457_key_>O.JSC$12457_key_)L[A]=L[X],A=X;else break}L[A]=O};
_.P.remove=function(){var A=this.nodes_,L=A.length,O=A[0];if(!(L<=0)){if(L==1)A.length=0;else{A[0]=A.pop();A=0;L=this.nodes_;for(var X=L.length,x=L[A];A<X>>1;){var J=A*2+1,Y=A*2+2;J=Y<X&&L[Y].JSC$12457_key_<L[J].JSC$12457_key_?Y:J;if(L[J].JSC$12457_key_>x.JSC$12457_key_)break;L[A]=L[J];A=J}L[A]=x}return O.getValue()}};
_.P.peek=function(){var A=this.nodes_;if(A.length!=0)return A[0].getValue()};
_.P.getValues=function(){for(var A=this.nodes_,L=[],O=A.length,X=0;X<O;X++)L.push(A[X].getValue());return L};
_.P.getKeys=function(){for(var A=this.nodes_,L=[],O=A.length,X=0;X<O;X++)L.push(A[X].JSC$12457_key_);return L};
_.P.containsValue=function(A){return this.nodes_.some(function(L){return L.getValue()==A})};
_.P.containsKey=function(A){return this.nodes_.some(function(L){return L.JSC$12457_key_==A})};
_.P.clone=function(){return new tA(this)};
_.P.getCount=function(){return this.nodes_.length};
_.P.isEmpty=function(){return this.nodes_.length===0};
_.P.clear=function(){this.nodes_.length=0};_.bh=function(A,L){this.JSC$12463_map_={};this.JSC$12463_keys_=[];this.version_=this.size=0;var O=arguments.length;if(O>1){if(O%2)throw Error("ka");for(var X=0;X<O;X+=2)this.set(arguments[X],arguments[X+1])}else A&&this.addAll(A)};
_.P=_.bh.prototype;_.P.getCount=function(){return this.size};
_.P.getValues=function(){hA(this);for(var A=[],L=0;L<this.JSC$12463_keys_.length;L++)A.push(this.JSC$12463_map_[this.JSC$12463_keys_[L]]);return A};
_.P.getKeys=function(){hA(this);return this.JSC$12463_keys_.concat()};
_.P.containsKey=function(A){return this.has(A)};
_.P.has=function(A){return SK(this.JSC$12463_map_,A)};
_.P.containsValue=function(A){for(var L=0;L<this.JSC$12463_keys_.length;L++){var O=this.JSC$12463_keys_[L];if(SK(this.JSC$12463_map_,O)&&this.JSC$12463_map_[O]==A)return!0}return!1};
_.P.equals=function(A,L){if(this===A)return!0;if(this.size!=A.getCount())return!1;L=L||JFn;hA(this);for(var O,X=0;O=this.JSC$12463_keys_[X];X++)if(!L(this.get(O),A.get(O)))return!1;return!0};
var JFn=function(A,L){return A===L};
_.bh.prototype.isEmpty=function(){return this.size==0};
_.bh.prototype.clear=function(){this.JSC$12463_map_={};this.version_=this.size=this.JSC$12463_keys_.length=0};
_.bh.prototype.remove=function(A){return this.delete(A)};
_.bh.prototype.delete=function(A){return SK(this.JSC$12463_map_,A)?(delete this.JSC$12463_map_[A],--this.size,this.version_++,this.JSC$12463_keys_.length>2*this.size&&hA(this),!0):!1};
var hA=function(A){if(A.size!=A.JSC$12463_keys_.length){for(var L=0,O=0;L<A.JSC$12463_keys_.length;){var X=A.JSC$12463_keys_[L];SK(A.JSC$12463_map_,X)&&(A.JSC$12463_keys_[O++]=X);L++}A.JSC$12463_keys_.length=O}if(A.size!=A.JSC$12463_keys_.length){L={};for(X=O=0;O<A.JSC$12463_keys_.length;){var x=A.JSC$12463_keys_[O];SK(L,x)||(A.JSC$12463_keys_[X++]=x,L[x]=1);O++}A.JSC$12463_keys_.length=X}};
_.P=_.bh.prototype;_.P.get=function(A,L){return SK(this.JSC$12463_map_,A)?this.JSC$12463_map_[A]:L};
_.P.set=function(A,L){SK(this.JSC$12463_map_,A)||(this.size+=1,this.JSC$12463_keys_.push(A),this.version_++);this.JSC$12463_map_[A]=L};
_.P.addAll=function(A){if(A instanceof _.bh)for(var L=A.getKeys(),O=0;O<L.length;O++)this.set(L[O],A.get(L[O]));else for(L in A)this.set(L,A[L])};
_.P.forEach=function(A,L){for(var O=this.getKeys(),X=0;X<O.length;X++){var x=O[X],J=this.get(x);A.call(L,J,x,this)}};
_.P.clone=function(){return new _.bh(this)};
_.P.transpose=function(){for(var A=new _.bh,L=0;L<this.JSC$12463_keys_.length;L++){var O=this.JSC$12463_keys_[L];A.set(this.JSC$12463_map_[O],O)}return A};
_.P.keys=function(){return F2n(this.__iterator__(!0)).toEs6()};
_.P.values=function(){return F2n(this.__iterator__(!1)).toEs6()};
_.P.entries=function(){var A=this;return MQg(this.keys(),function(L){return[L,A.get(L)]})};
_.P.__iterator__=function(A){hA(this);var L=0,O=this.version_,X=this,x=new Ea;x.next=function(){if(O!=X.version_)throw Error("oe");if(L>=X.JSC$12463_keys_.length)return nD;var J=X.JSC$12463_keys_[L++];return tr(A?J:X.JSC$12463_map_[J])};
return x};
var SK=function(A,L){return Object.prototype.hasOwnProperty.call(A,L)};var dnl=function(){this.JSC$12466_map_=new _.bh;this.JSC$12466_head_=new PBl("");this.JSC$12466_head_.next=this.JSC$12466_head_.prev=this.JSC$12466_head_},YCg=function(A,L){if(L=A.JSC$12466_map_.get(L))L.remove(),A.insert_(L);
return L};
_.P=dnl.prototype;_.P.get=function(A,L){return(A=YCg(this,A))?A.value:L};
_.P.set=function(A,L){var O=YCg(this,A);O?O.value=L:(O=new PBl(A,L),this.JSC$12466_map_.set(A,O),this.insert_(O))};
_.P.peek=function(){return this.JSC$12466_head_.next.value};
_.P.shift=function(){return uVJ(this,this.JSC$12466_head_.next)};
_.P.pop=function(){return uVJ(this,this.JSC$12466_head_.prev)};
_.P.remove=function(A){return(A=this.JSC$12466_map_.get(A))?(this.removeNode(A),!0):!1};
_.P.removeNode=function(A){A.remove();this.JSC$12466_map_.remove(A.key)};
_.P.getCount=function(){return this.JSC$12466_map_.getCount()};
_.P.isEmpty=function(){return this.JSC$12466_map_.isEmpty()};
_.P.getKeys=function(){return this.map(function(A,L){return L})};
_.P.getValues=function(){return this.map(function(A){return A})};
_.P.contains=function(A){return this.some(function(L){return L==A})};
_.P.containsKey=function(A){return this.JSC$12466_map_.containsKey(A)};
_.P.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$12466_head_.prev)};
_.P.forEach=function(A,L){for(var O=this.JSC$12466_head_.next;O!=this.JSC$12466_head_;O=O.next)A.call(L,O.value,O.key,this)};
_.P.map=function(A,L){for(var O=[],X=this.JSC$12466_head_.next;X!=this.JSC$12466_head_;X=X.next)O.push(A.call(L,X.value,X.key,this));return O};
_.P.some=function(A,L){for(var O=this.JSC$12466_head_.next;O!=this.JSC$12466_head_;O=O.next)if(A.call(L,O.value,O.key,this))return!0;return!1};
_.P.every=function(A,L){for(var O=this.JSC$12466_head_.next;O!=this.JSC$12466_head_;O=O.next)if(!A.call(L,O.value,O.key,this))return!1;return!0};
_.P.insert_=function(A){A.next=this.JSC$12466_head_.next;A.prev=this.JSC$12466_head_;this.JSC$12466_head_.next=A;for(A.next.prev=A;this.getCount()>100;)this.removeNode(this.JSC$12466_head_.prev)};
var uVJ=function(A,L){A.JSC$12466_head_!=L&&A.removeNode(L);return L.value},PBl=function(A,L){this.key=A;
this.value=L};
PBl.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var Tlc=function(){tA.apply(this,arguments)};
_.g(Tlc,tA);Tlc.prototype.enqueue=function(A,L){this.insert(A,L)};var VtN=function(){var A=Error();A.name="SecurityError";throw A;},Q5u=function(){return{get opener(){return null},
get closed(){return!0},get location(){VtN()},get document(){VtN()},postMessage:function(){},
close:function(){},
focus:function(){}}};var GvD={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 C_e={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 Dn7={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(C_e).join("|");var epn=function(){function A(T){T.substr(-1)!==";"&&(T+=";");return Y(T)}
for(var L=Object.keys(Dn7).sort(cVu),O=Object.keys(C_e).sort(cVu),X=0,x=0;X<O.length;X++)L[x]===O[X]?(O[X]+=";?",x++):O[X]+=";";var J=new RegExp("&(?:"+O.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),Y=FRy();return function(T){return String(T).replace(J,A)}}();/*

 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 E4j={};var n46=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"),ttg=/[\\&]/,byn=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),hpl=RegExp('[&<>"]',"g"),SC3=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),qCJ=function(A){return A.charCodeAt(0)===92?A.charAt(1):epn(A)},g4u=function(A){return ttg.test(A)?A.replace(byn,qCJ):A},wxn=function(A){try{var L,O="";
if(typeof x!=="string"){var X=x;var x=";/?:@&=+$,-_.!~*'()#"}typeof X==="undefined"&&(X=!0);var J,Y=E4j[x];if(Y)var T=Y;else{Y=E4j[x]=[];for(J=0;J<128;J++){var V=String.fromCharCode(J);/^[0-9a-z]$/i.test(V)?Y.push(V):Y.push("%"+("0"+J.toString(16).toUpperCase()).slice(-2))}for(J=0;J<x.length;J++)Y[x.charCodeAt(J)]=x[J];T=Y}var E=0;for(L=A.length;E<L;E++){var n=A.charCodeAt(E);if(X&&n===37&&E+2<L&&/^[0-9a-f]{2}$/i.test(A.slice(E+1,E+3)))O+=A.slice(E,E+3),E+=2;else if(n<128)O+=T[n];else if(n>=55296&&
n<=57343){if(n>=55296&&n<=56319&&E+1<L){var t=A.charCodeAt(E+1);if(t>=56320&&t<=57343){O+=encodeURIComponent(A[E]+A[E+1]);E++;continue}}O+="%EF%BF%BD"}else O+=encodeURIComponent(A[E])}return O}catch(b){return A}},pxN=function(A){switch(A){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return A}},q5=function(A,L){return hpl.test(A)?L?A.replace(SC3,pxN):A.replace(hpl,pxN):A};/*

 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 gq;if(String.fromCodePoint)gq=function(A){try{return String.fromCodePoint(A)}catch(L){if(L instanceof RangeError)return String.fromCharCode(65533);throw L;}};
else{var iyN=String.fromCharCode,NlL=Math.floor;gq=function(){var A=[],L=-1,O=arguments.length;if(!O)return"";for(var X="";++L<O;){var x=Number(arguments[L]);if(!isFinite(x)||x<0||x>1114111||NlL(x)!==x)return String.fromCharCode(65533);if(x<=65535)A.push(x);else{x-=65536;var J=(x>>10)+55296;x=x%1024+56320;A.push(J,x)}if(L+1===O||A.length>16384)X+=iyN.apply(null,A),A.length=0}return X}};var rF6=function(A){this.root=this.current=A;this.entering=!0};
rF6.prototype.next=function(){var A=this.current,L=this.entering;if(A===null)return null;a:switch(A._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 O=!0;break a;default:O=!1}L&&O?A._firstChild?(this.current=A._firstChild,this.entering=!0):this.entering=!1:A===this.root?this.current=null:A._next===null?(this.current=
A._parent,this.entering=!1):(this.current=A._next,this.entering=!0);return{entering:L,node:A}};
var Vq=function(A,L){this._type=A;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=L;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};
Vq.prototype.appendChild=function(A){A.unlink();A._parent=this;this._lastChild?(this._lastChild._next=A,A._prev=this._lastChild):this._firstChild=A;this._lastChild=A};
Vq.prototype.unlink=function(){this._prev?this._prev._next=this._next:this._parent&&(this._parent._firstChild=this._next);this._next?this._next._prev=this._prev:this._parent&&(this._parent._lastChild=this._prev);this._prev=this._next=this._parent=null};
var K4c=function(A,L){L.unlink();L._next=A._next;L._next&&(L._next._prev=L);L._prev=A;A._next=L;L._parent=A._parent;L._next||(L._parent._lastChild=L)};
Vq.prototype.insertBefore=function(A){A.unlink();A._prev=this._prev;A._prev&&(A._prev._next=A);A._next=this;this._prev=A;A._parent=this._parent;A._prev||(A._parent._firstChild=A)};
_.v2.Object.defineProperties(Vq.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(A){this._literal=A}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(A){this._destination=A}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(A){this._title=A}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(A){this._info=A}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(A){this._level=A}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(A){this._listData.type=A}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(A){this._listData.tight=A}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(A){this._listData.start=A}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(A){this._onEnter=A}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(A){this._onExit=A}}});var Rbr=/[ \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,
QSr={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 GJN=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]/),
lrV=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),cFn=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),CBl=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),F4j=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),Rp3=/`+/,QQc=/^`+/,mnL=/\.\.\./g,fr6=/--+/g,Irj=/^<([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])?)*)>/,
yFn=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,Zyl=/^ *(?:\n *)?/,jQj=/^[ \t\n\x0b\x0c\x0d]/,W43=/[ \t\n\x0b\x0c\x0d]+/g,Hy3=/^\s/,zpc=/ *$/,BlN=/^ */,MtN=/^ *(?:\n|$)/,$nj=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),arH=/^[^\n`\[\]\\!<&*_'"]+/m,wq=function(A){var L=new Vq("text");L._literal=A;return L},pC=function(A){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=A||{}};
pC.prototype.match=function(A){A=A.exec(this.subject.slice(this.pos));if(A===null)return null;this.pos+=A.index+A[0].length;return A[0]};
pC.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var ih=function(A){A.match(Zyl);return!0},kJN=function(A,L,O){var X=0;
var x=A.pos;if(L===39||L===34)X++,A.pos++;else for(;A.peek()===L;)X++,A.pos++;if(X===0)X=null;else{var J=x===0?"\n":A.subject.charAt(x-1);var Y=A.peek();Y=Y===-1?"\n":gq(Y);var T=Hy3.test(Y);Y=GJN.test(Y);var V=Hy3.test(J);var E=GJN.test(J);J=!T&&!(Y&&!V&&!E);T=!V&&!(E&&!T&&!Y);L===95?(V=J&&(!T||E),Y=T&&(!J||Y)):(V=L===39||L===34?J&&!T:J,Y=T);A.pos=x;X={numdelims:X,can_open:V,can_close:Y}}if(!X)return!1;x=X.numdelims;Y=A.pos;A.pos+=x;Y=L===39?"\u2019":L===34?"\u201c":A.subject.slice(Y,A.pos);Y=wq(Y);
O.appendChild(Y);A.delimiters={cc:L,numdelims:x,origdelims:x,node:Y,previous:A.delimiters,next:null,can_open:X.can_open,can_close:X.can_close};A.delimiters.previous!==null&&(A.delimiters.previous.next=A.delimiters);return!0},UnL=function(A,L){L.previous!==null&&(L.previous.next=L.next);
L.next===null?A.delimiters=L.previous:L.next.previous=L.previous},v4H=function(A,L){var O,X,x=[],J=!1;
x[95]=L;x[42]=L;x[39]=L;x[34]=L;for(O=A.delimiters;O!==null&&O.previous!==L;)O=O.previous;for(;O!==null;){var Y=O.cc;if(O.can_close){var T=O.previous;for(X=!1;T!==null&&T!==L&&T!==x[Y];){J=(O.can_open||T.can_close)&&(T.origdelims+O.origdelims)%3===0;if(T.cc===O.cc&&T.can_open&&!J){X=!0;break}T=T.previous}var V=O;if(Y===42||Y===95)if(X){var E=O.numdelims>=2&&T.numdelims>=2?2:1;var n=T.node;var t=O.node;T.numdelims-=E;O.numdelims-=E;n._literal=n._literal.slice(0,n._literal.length-E);t._literal=t._literal.slice(0,
t._literal.length-E);var b=new Vq(E===1?"emph":"strong");for(E=n._next;E&&E!==t;){var S=E._next;E.unlink();b.appendChild(E);E=S}K4c(n,b);E=T;S=O;E.next!==S&&(E.next=S,S.previous=E);T.numdelims===0&&(n.unlink(),UnL(A,T));O.numdelims===0&&(t.unlink(),T=O.next,UnL(A,O),O=T)}else O=O.next;else Y===39?(O.node._literal="\u2019",X&&(T.node._literal="\u2018"),O=O.next):Y===34&&(O.node._literal="\u201d",X&&(T.node.literal="\u201c"),O=O.next);X||J||(x[Y]=V.previous,V.can_open||UnL(A,V))}else O=O.next}for(;A.delimiters!==
null&&A.delimiters!==L;)UnL(A,A.delimiters)},o4l=function(A){A=A.match(lrV);
return A===null?null:g4u(A.substr(1,A.length-2))},AI7=function(A){var L=A.match(cFn);
if(L===null){L=A.pos;for(var O=0,X;(X=A.peek())!==-1;)if(X===92)A.pos+=1,A.peek()!==-1&&(A.pos+=1);else if(X===40)A.pos+=1,O+=1;else if(X===41)if(O<1)break;else A.pos+=1,--O;else if(jQj.exec(gq(X))!==null)break;else A.pos+=1;L=A.subject.substr(L,A.pos-L);return wxn(g4u(L))}return wxn(g4u(L.substr(1,L.length-2)))},LN6=function(A){A=A.match($nj);
return A===null||A.length>1001?0:A.length},OuJ=function(A,L,O,X){A.brackets!==null&&(A.brackets.bracketAfter=!0);
A.brackets={node:L,previous:A.brackets,previousDelimiter:A.delimiters,index:O,image:X,active:!0}},Xm6=function(A,L){var O;
return(O=A.match(arH))?(A.options.smart?L.appendChild(wq(O.replace(mnL,"\u2026").replace(fr6,function(X){var x=0,J=0;X.length%3===0?J=X.length/3:X.length%2===0?x=X.length/2:X.length%3===2?(x=1,J=(X.length-2)/3):(x=2,J=(X.length-4)/3);X="";var Y;for(Y=0;Y<J;Y++)X+="\u2014";for(Y=0;Y<x;Y++)X+="\u2013";return X}))):L.appendChild(wq(O)),!0):!1},xVc=function(A,L,O){A.subject=L;
A.pos=0;L=A.pos;var X=LN6(A);if(X===0)return 0;var x=A.subject.substr(0,X);if(A.peek()===58)A.pos++;else return A.pos=L,0;ih(A);X=AI7(A);if(X===null||X.length===0)return A.pos=L,0;var J=A.pos;ih(A);var Y=o4l(A);Y===null&&(Y="",A.pos=J);var T=!0;A.match(MtN)===null&&(Y===""?T=!1:(Y="",A.pos=J,T=A.match(MtN)!==null));if(!T)return A.pos=L,0;x=mSy(x);if(x==="")return A.pos=L,0;O[x]||(O[x]={destination:X,title:Y});return A.pos-L},sDc=function(A,L){var O,X=A.peek();
if(X===-1)return!1;switch(X){case 10:A.pos+=1;if((O=L._lastChild)&&O.type==="text"&&O._literal[O._literal.length-1]===" "){var x=O._literal[O._literal.length-2]===" ";O._literal=O._literal.replace(zpc,"");L.appendChild(new Vq(x?"linebreak":"softbreak"))}else L.appendChild(new Vq("softbreak"));A.match(BlN);O=!0;break;case 92:O=A.subject;A.pos+=1;A.peek()===10?(A.pos+=1,O=new Vq("linebreak"),L.appendChild(O)):CBl.test(O.charAt(A.pos))?(L.appendChild(wq(O.charAt(A.pos))),A.pos+=1):L.appendChild(wq("\\"));
O=!0;break;case 96:a:if(O=A.match(QQc),O===null)O=!1;else{x=A.pos;for(var J;(J=A.match(Rp3))!==null;)if(J===O){J=new Vq("code");J._literal=A.subject.slice(x,A.pos-O.length).trim().replace(W43," ");L.appendChild(J);O=!0;break a}A.pos=x;L.appendChild(wq(O));O=!0}break;case 42:case 95:O=kJN(A,X,L);break;case 39:case 34:O=A.options.smart&&kJN(A,X,L);break;case 91:O=A.pos;A.pos+=1;x=wq("[");L.appendChild(x);OuJ(A,x,O,!1);O=!0;break;case 33:O=A.pos;A.pos+=1;A.peek()===91?(A.pos+=1,x=wq("!["),L.appendChild(x),
OuJ(A,x,O+1,!0)):L.appendChild(wq("!"));O=!0;break;case 93:var Y,T=!1,V;A.pos+=1;var E=A.pos;x=A.brackets;if(x===null)L.appendChild(wq("]"));else if(x.active){O=x.image;var n=A.pos;A.peek()===40&&(A.pos++,ih(A)&&(J=AI7(A))!==null&&ih(A)&&(jQj.test(A.subject.charAt(A.pos-1))&&(Y=o4l(A)),1)&&ih(A)&&A.peek()===41?(A.pos+=1,T=!0):A.pos=n);if(!T){var t=A.pos,b=LN6(A);b>2?V=A.subject.slice(t,t+b):x.bracketAfter||(V=A.subject.slice(x.index,E));b===0&&(A.pos=n);V&&(V=A.refmap[mSy(V)])&&(J=V.destination,Y=
V.title,T=!0)}if(T){E=new Vq(O?"image":"link");E._destination=J;E._title=Y||"";for(J=x.node._next;J;)Y=J._next,J.unlink(),E.appendChild(J),J=Y;L.appendChild(E);v4H(A,x.previousDelimiter);A.brackets=A.brackets.previous;x.node.unlink();if(!O)for(x=A.brackets;x!==null;)x.image||(x.active=!1),x=x.previous}else A.brackets=A.brackets.previous,A.pos=E,L.appendChild(wq("]"))}else L.appendChild(wq("]")),A.brackets=A.brackets.previous;O=!0;break;case 60:(O=A.match(Irj))?(O=O.slice(1,O.length-1),x=new Vq("link"),
x._destination=wxn("mailto:"+O),x._title="",x.appendChild(wq(O)),L.appendChild(x),O=!0):(O=A.match(yFn))?(O=O.slice(1,O.length-1),x=new Vq("link"),x._destination=wxn(O),x._title="",x.appendChild(wq(O)),L.appendChild(x),O=!0):O=!1;O||(O=A.match(n46),O===null?O=!1:(x=new Vq("html_inline"),x._literal=O,L.appendChild(x),O=!0));break;case 38:(O=A.match(F4j))?(L.appendChild(wq(epn(O))),O=!0):O=!1;break;default:O=Xm6(A,L)}O||(A.pos+=1,L.appendChild(wq(gq(X))));return!0};
pC.prototype.parseInlines=function(A){this.subject=A._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;sDc(this,A););A._string_content=null;v4H(this,null)};
pC.prototype.parse=pC.prototype.parseInlines;var JIj=[/./,/^<(?: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")],PSV=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],dVl=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,Ykl=/^[#`~*+_=<>0-9-\|]|\|/,uiu=/[^ \t\f\v\r\n]/,T03=/^[*+-]/,V8l=/^(\d{1,9})([.)])/,DVN=/^#{1,6}(?:[ \t]+|$)/,eTL=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,Eu6=/^(?:`{3,}|~{3,})(?= *$)/,nuN=/^(?:=+|-+)[ \t]*$/,t8L=/\r\n|\n|\r/,yV9=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,Z5d=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,buu={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(A){return A!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(A,L){for(A=L._firstChild;A;){if(fVP(A)&&A._next){L._listData.tight=!1;break}for(var O=A._firstChild;O;){if(fVP(O)&&(A._next||O._next)){L._listData.tight=!1;break}O=O._next}A=A._next}},
canContain:function(A){return A==="item"},
acceptsLines:!1},block_quote:{continue:function(A){var L=A.currentLine;if(A.indented||ui(L,A.nextNonspace)!==62)return 1;N5(A);rq(A,1,!1);YO(ui(L,A.offset))&&rq(A,1,!0);return 0},
finalize:function(){},
canContain:function(A){return A!=="item"},
acceptsLines:!1},item:{continue:function(A,L){if(A.blank){if(L._firstChild==null)return 1;N5(A)}else if(A.indent>=L._listData.markerOffset+L._listData.padding)rq(A,L._listData.markerOffset+L._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(A){return A!=="item"&&!jSJ(A)},
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(A,L){var O=A.currentLine,X=A.indent;if(L._isFenced){if((X=X<=3&&O.charAt(A.nextNonspace)===L._fenceChar&&O.slice(A.nextNonspace).match(Eu6))&&X[0].length>=L._fenceLength)return A.finalize(L,A.lineNumber),2;for(L=L._fenceOffset;L>0&&YO(ui(O,A.offset));)rq(A,1,!0),L--}else if(X>=4)rq(A,4,!0);else if(A.blank)N5(A);else return 1;return 0},
finalize:function(A,L){if(L._isFenced){var O=L._string_content,X=O.indexOf("\n");A=O.slice(0,X);O=O.slice(X+1);L.info=g4u(A.trim());L._literal=O}else L._literal=L._string_content.replace(/(\n *)+$/,"\n");L._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(A,L){return!A.blank||L._htmlBlockType!==6&&L._htmlBlockType!==7?0:1},
finalize:function(A,L){L._literal=L._string_content.replace(/(\n *)+$/,"");L._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(A){return A.blank?1:0},
finalize:function(A,L){for(var O,X=!1;ui(L._string_content,0)===91&&(O=xVc(A.inlineParser,L._string_content,A.refmap));)L._string_content=L._string_content.slice(O),X=!0;X&&!uiu.test(L._string_content)&&L.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(A){return TN(A.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(A){return A=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(A,L){if(!L._rowIsDelimiter){A=L._isHeader?"th":"td";for(var O=L._parent._tableColumns,X=L._string_content,x=0,J="",Y,T=L._sourcepos[0][0];x<X.length;){switch(X[x]){case "|":Y&&(Y._string_content=J.trim(),J="",Y=null,O--,O<=0&&(x=X.length));break;default:if(!Y){Y=new Vq(A,[[T,x],[T,x]]);var V=L._parent._columnAlignment,E=L._parent._tableColumns-O;V&&E<=V.length&&E>=0&&(Y._alignment=V[E]);L.appendChild(Y)}J+=X[x];Y._sourcepos[1][1]=x}x++}Y&&(Y._string_content=J.trim());L._string_content=
""}},
canContain:function(A){return A!=="row"},
acceptsLines:!1}},hTl=[function(A){if(A.indented||ui(A.currentLine,A.nextNonspace)!==62)return 0;N5(A);rq(A,1,!1);YO(ui(A.currentLine,A.offset))&&rq(A,1,!0);KC(A);A.addChild("block_quote",A.nextNonspace);return 1},
function(A){var L;if(!A.indented&&(L=A.currentLine.slice(A.nextNonspace).match(DVN))){N5(A);rq(A,L[0].length,!1);KC(A);var O=A.addChild("heading",A.nextNonspace);O.level=L[0].trim().length;O._string_content=A.currentLine.slice(A.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");rq(A,A.currentLine.length-A.offset);return 2}return 0},
function(A){var L;if(!A.indented&&(L=A.currentLine.slice(A.nextNonspace).match(eTL))){var O=L[0].length;KC(A);var X=A.addChild("code_block",A.nextNonspace);X._isFenced=!0;X._fenceLength=O;X._fenceChar=L[0][0];X._fenceOffset=A.indent;N5(A);rq(A,O,!1);return 2}return 0},
function(A,L){if(!A.indented&&ui(A.currentLine,A.nextNonspace)===60){var O=A.currentLine.slice(A.nextNonspace),X;for(X=1;X<=7;X++)if(JIj[X].test(O)&&(X<7||L.type!=="paragraph"))return KC(A),A.addChild("html_block",A.offset)._htmlBlockType=X,2}return 0},
function(A,L){var O;if(!A.indented&&L.type==="paragraph"&&(O=A.currentLine.slice(A.nextNonspace).match(nuN))){KC(A);var X=new Vq("heading",L.sourcepos);X.level=O[0][0]==="="?1:2;X._string_content=L._string_content;K4c(L,X);L.unlink();A.tip=X;rq(A,A.currentLine.length-A.offset,!1);return 2}return 0},
function(A){return!A.indented&&dVl.test(A.currentLine.slice(A.nextNonspace))?(KC(A),A.addChild("thematic_break",A.nextNonspace),rq(A,A.currentLine.length-A.offset,!1),2):0},
function(A,L){var O,X;if(!(X=A.indented&&L.type!=="list")){a:{var x=L,J=A.currentLine.slice(A.nextNonspace);X={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:A.indent};if(O=J.match(T03))X.type="bullet",X.bulletChar=O[0][0];else{if(!(O=J.match(V8l))||x.type==="paragraph"&&O[1]!=="1"){O=null;break a}X.type="ordered";X.start=parseInt(O[1],10);X.delimiter=O[2]}var Y=ui(A.currentLine,A.nextNonspace+O[0].length);if(Y!==-1&&Y!==9&&Y!==32||x.type==="paragraph"&&!A.currentLine.slice(A.nextNonspace+
O[0].length).match(uiu))O=null;else{N5(A);rq(A,O[0].length,!0);x=A.column;J=A.offset;do rq(A,1,!0),Y=ui(A.currentLine,A.offset);while(A.column-x<5&&YO(Y));Y=ui(A.currentLine,A.offset)===-1;var T=A.column-x;T>=5||T<1||Y?(X.padding=O[0].length+1,A.column=x,A.offset=J,YO(ui(A.currentLine,A.offset))&&rq(A,1,!0)):X.padding=O[0].length+T;O=X}}X=!O}if(X)return 0;KC(A);(X=A.tip.type!=="list")||(L=L._listData,X=!(L.type===O.type&&L.delimiter===O.delimiter&&L.bulletChar===O.bulletChar));X&&(L=A.addChild("list",
A.nextNonspace),L._listData=O);L=A.addChild("item",A.nextNonspace);L._listData=O;return 1},
function(A){var L;return((L=A.options.shouldParseIndentAsCodeBlock)!=null?L:1)&&A.indented&&A.tip.type!=="paragraph"&&!A.blank?(rq(A,4,!0),KC(A),A.addChild("code_block",A.offset),2):0},
function(A,L){var O=TN(A.currentLine),X=TN(A.lookahead);if(O!==0&&X<0&&Math.abs(O)==Math.abs(X)&&!jSJ(L.type)){KC(A);L=A.addChild("table",A.nextNonspace);L._tableRows=1;L._tableColumns=Math.abs(O);O=A.lookahead;if(Z5d.test(O)){X=[];for(var x=0,J=!1,Y=0,T=void 0;x<O.length;){var V=Y>=3;switch(O[x]){case "-":Y++;break;case "|":J&&(X.push(T),T=void 0,Y=0);J=!0;break;case ":":T||V||(T="left"),!T&&V&&(T="right"),T==="left"&&V&&(T="center")}x++}O=X}else O=void 0;L._columnAlignment=O;L=A.addChild("row",
A.nextNonspace);L._isHeader=!0;rq(A,A.currentLine.length-A.offset,!1);L._string_content=A.currentLine;return 1}return 0},
function(A,L){if(L.type=="table"&&TN(A.currentLine)!==0){KC(A);var O=L;L=A.addChild("row",A.nextNonspace);TN(A.currentLine)<0?L._rowIsDelimiter=!0:O._tableRows+=1;rq(A,A.currentLine.length-A.offset,!1);L._string_content=A.currentLine;return 2}return 0}],Ue_=function(){var A={shouldParseIndentAsCodeBlock:!1};
A=A===void 0?{}:A;this.lastMatchedContainer=this.doc=WRr();this.refmap={};this.lastLineLength=0;this.inlineParser=new pC(A);this.options=A;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=buu;this.blockStarts=hTl},Sk6=function(A){A.partiallyConsumedTab&&(A.offset+=1,A.tip._string_content+=" ".repeat(4-A.column%
4));
A.tip._string_content+=A.currentLine.slice(A.offset)+"\n"};
Ue_.prototype.addChild=function(A,L){for(;!this.blocks[this.tip.type].canContain(A);)this.finalize(this.tip,this.lineNumber-1);A=new Vq(A,[[this.lineNumber,L+1],[0,0]]);A._string_content="";this.tip.appendChild(A);return this.tip=A};
var KC=function(A){if(!A.allClosed){for(;A.oldtip!==A.lastMatchedContainer;){var L=A.oldtip._parent;A.finalize(A.oldtip,A.lineNumber-1);A.oldtip=L}A.allClosed=!0}},rq=function(A,L,O){for(var X=A.currentLine,x,J;L>0&&(J=X[A.offset]);)J==="\t"?(x=4-A.column%4,O?(A.partiallyConsumedTab=x>L,x=x>L?L:x,A.column+=x,A.offset+=A.partiallyConsumedTab?0:1,L-=x):(A.partiallyConsumedTab=!1,A.column+=x,A.offset+=1,--L)):(A.partiallyConsumedTab=!1,A.offset+=1,A.column+=1,--L)},N5=function(A){A.offset=A.nextNonspace;
A.column=A.nextNonspaceColumn;A.partiallyConsumedTab=!1},qkJ=function(A){for(var L=A.currentLine,O=A.offset,X=A.column,x;(x=L.charAt(O))!=="";)if(x===" ")O++,X++;
else if(x==="\t")O++,X+=4-X%4;else break;A.blank=x==="\n"||x==="\r"||x==="";A.nextNonspace=O;A.nextNonspaceColumn=X;A.indent=A.nextNonspaceColumn-A.column;A.indented=A.indent>=4};
Ue_.prototype.finalize=function(A,L){var O=A._parent;A._open=!1;A.sourcepos[1]=[L,this.lastLineLength];this.blocks[A.type].finalize(this,A);this.tip=O};
Ue_.prototype.parse=function(A){this.tip=this.doc=WRr();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!A)return this.doc;this.options.time&&console.time("preparing input");var L=A.split(t8L),O=L.length;A.charCodeAt(A.length-1)===10&&--O;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(A=0;A<O;A++)a:{var X=void 0,x=L[A],J=L[A+1],Y=!0,T=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;x.indexOf("\x00")!==-1&&(x=x.replace(/\0/g,"\ufffd"));this.currentLine=x;for(this.lookahead=J;(X=T._lastChild)&&X._open;){T=X;qkJ(this);switch(this.blocks[T.type].continue(this,T)){case 0:break;case 1:Y=!1;break;case 2:this.lastLineLength=x.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!Y){T=T._parent;break}}this.allClosed=T===this.oldtip;this.lastMatchedContainer=
T;X=T.type!=="paragraph"&&buu[T.type].acceptsLines;J=this.blockStarts;for(Y=J.length;!X;){qkJ(this);if(!this.indented&&!Ykl.test(x.slice(this.nextNonspace))){N5(this);break}for(var V=0;V<Y;){var E=J[V](this,T);if(E===1){T=this.tip;break}else if(E===2){T=this.tip;X=!0;break}else V++}if(V===Y){N5(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){KC(this);this.blank&&T.lastChild&&(T.lastChild._lastLineBlank=!0);X=T.type;J=this.blank&&!(X==="block_quote"||X==="code_block"&&T._isFenced||
X==="item"&&!T._firstChild&&T.sourcepos[0][0]===this.lineNumber);for(Y=T;Y;)Y._lastLineBlank=J,Y=Y._parent;this.blocks[X].acceptsLines?(Sk6(this),X==="html_block"&&T._htmlBlockType>=1&&T._htmlBlockType<=5&&PSV[T._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(T,this.lineNumber)):this.offset<x.length&&!this.blank&&(this.addChild("paragraph",this.offset),N5(this),Sk6(this))}else Sk6(this);this.lastLineLength=x.length}for(;this.tip;)this.finalize(this.tip,O);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");x=new rF6(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;O=x.next();)L=O.node,A=L.type,O.entering||A!=="paragraph"&&A!=="heading"&&A!=="th"&&A!="td"||this.inlineParser.parse(L);this.options.time&&console.timeEnd("inline parsing");return this.doc};H5r.prototype.render=function(A){A=new rF6(A);var L;this.buffer="";for(this.lastOut="\n";L=A.next();){var O=L.node.type;if(this[O])this[O](L.node,L.entering)}return this.buffer};
H5r.prototype.out=function(A){Go(this,A)};
var Go=function(A,L){A.buffer+=L;A.lastOut=L};
H5r.prototype.cr=function(){this.lastOut!=="\n"&&Go(this,"\n")};var gu6=/^javascript:|vbscript:|file:|data:/i,wmJ=/^data:image\/(?:png|gif|jpeg|webp)/i,pmL=function(A){return gu6.test(A)&&!wmJ.test(A)};
Dx.prototype=Object.create(H5r.prototype);_.P=Dx.prototype;_.P.text=function(A){this.out(A.literal)};
_.P.html_inline=function(A){this.options.safe?Go(this,"\x3c!-- raw HTML omitted --\x3e"):Go(this,A.literal)};
_.P.html_block=function(A){this.cr();this.options.safe?Go(this,"\x3c!-- raw HTML omitted --\x3e"):Go(this,A.literal);this.cr()};
_.P.softbreak=function(){Go(this,this.options.softbreak)};
_.P.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.P.link=function(A,L){var O=this.attrs(A);L?(this.options.safe&&pmL(A.destination)||O.push(["href",q5(A.destination,!0)]),A.title&&O.push(["title",q5(A.title,!0)]),this.tag("a",O)):this.tag("/a")};
_.P.image=function(A,L){L?(this.disableTags===0&&(this.options.safe&&pmL(A.destination)?Go(this,'<img src="" alt="'):Go(this,'<img src="'+q5(A.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(A.title&&Go(this,'" title="'+q5(A.title,!0)),Go(this,'" />')))};
_.P.emph=function(A,L){this.tag(L?"em":"/em")};
_.P.strong=function(A,L){this.tag(L?"strong":"/strong")};
_.P.paragraph=function(A,L){var O=A.parent.parent;A=this.attrs(A);O!==null&&O.type==="list"&&O.listTight||(L?(this.cr(),this.tag("p",A)):(this.tag("/p"),this.cr()))};
_.P.heading=function(A,L){var O="h"+A.level;A=this.attrs(A);L?(this.cr(),this.tag(O,A)):(this.tag("/"+O),this.cr())};
_.P.code=function(A){this.tag("code");this.out(A.literal);this.tag("/code")};
_.P.code_block=function(A){var L=A.info?A.info.split(/\s+/):[],O=this.attrs(A);L.length>0&&L[0].length>0&&O.push(["class","language-"+q5(L[0],!0)]);this.cr();this.tag("pre");this.tag("code",O);this.out(A.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.P.thematic_break=function(A){A=this.attrs(A);this.cr();this.tag("hr",A,!0);this.cr()};
_.P.block_quote=function(A,L){A=this.attrs(A);L?(this.cr(),this.tag("blockquote",A)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.P.list=function(A,L){var O=A.listType==="bullet"?"ul":"ol",X=this.attrs(A);L?(A=A.listStart,A!==null&&A!==1&&X.push(["start",A.toString()]),this.cr(),this.tag(O,X)):(this.cr(),this.tag("/"+O));this.cr()};
_.P.item=function(A,L){A=this.attrs(A);L?this.tag("li",A):(this.tag("/li"),this.cr())};
_.P.custom_inline=function(A,L){L&&A.onEnter?Go(this,A.onEnter):!L&&A.onExit&&Go(this,A.onExit)};
_.P.custom_block=function(A,L){this.cr();L&&A.onEnter?Go(this,A.onEnter):!L&&A.onExit&&Go(this,A.onExit);this.cr()};
_.P.table=function(A,L){A=this.attrs(A);L?(this.cr(),this.tag("table",A)):(this.tag("/table"),this.cr())};
_.P.row=function(A,L){A._rowIsDelimiter||(A=this.attrs(A),L?this.tag("tr",A):this.tag("/tr"))};
_.P.td=function(A,L){var O=this.attrs(A);A._alignment&&O.push(["align",A._alignment]);L?this.tag("td",O):this.tag("/td")};
_.P.th=function(A,L){var O=this.attrs(A);A._alignment&&O.push(["align",A._alignment]);L?this.tag("th",O):this.tag("/th")};
_.P.out=function(A){Go(this,q5(A,!1))};
_.P.tag=function(A,L,O){if(!(this.disableTags>0)){this.buffer+="<"+A;if(L&&L.length>0){A=0;for(var X;(X=L[A])!==void 0;)this.buffer+=" "+X[0]+'="'+X[1]+'"',A++}O&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.P.attrs=function(A){var L=[];this.options.sourcepos&&(A=A.sourcepos)&&L.push(["data-sourcepos",String(A[0][0])+":"+String(A[0][1])+"-"+String(A[1][0])+":"+String(A[1][1])]);return L};
Dx.prototype.text=Dx.prototype.text;Dx.prototype.html_inline=Dx.prototype.html_inline;Dx.prototype.html_block=Dx.prototype.html_block;Dx.prototype.softbreak=Dx.prototype.softbreak;Dx.prototype.linebreak=Dx.prototype.linebreak;Dx.prototype.link=Dx.prototype.link;Dx.prototype.image=Dx.prototype.image;Dx.prototype.emph=Dx.prototype.emph;Dx.prototype.strong=Dx.prototype.strong;Dx.prototype.paragraph=Dx.prototype.paragraph;Dx.prototype.heading=Dx.prototype.heading;Dx.prototype.code=Dx.prototype.code;
Dx.prototype.code_block=Dx.prototype.code_block;Dx.prototype.thematic_break=Dx.prototype.thematic_break;Dx.prototype.block_quote=Dx.prototype.block_quote;Dx.prototype.list=Dx.prototype.list;Dx.prototype.item=Dx.prototype.item;Dx.prototype.custom_inline=Dx.prototype.custom_inline;Dx.prototype.custom_block=Dx.prototype.custom_block;Dx.prototype.table=Dx.prototype.table;Dx.prototype.row=Dx.prototype.row;Dx.prototype.td=Dx.prototype.td;Dx.prototype.th=Dx.prototype.th;Dx.prototype.out=Dx.prototype.out;
Dx.prototype.tag=Dx.prototype.tag;Dx.prototype.attrs=Dx.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 iuj,N0l,qVJ;(function(){function A(C,c){return C<c?-1:C>c?1:C>=c?0:NaN}
function L(C){return function(c,f){return A(C(c),f)}}
function O(){for(var C=0,c=arguments.length,f={},v;C<c;++C){if(!(v=arguments[C]+"")||v in f)throw Error("qe`"+v);f[v]=[]}return new X(f)}
function X(C){this._=C}
function x(C,c){return C.trim().split(/^|\s+/).map(function(f){var v="",du=f.indexOf(".");du>=0&&(v=f.slice(du+1),f=f.slice(0,du));if(f&&!c.hasOwnProperty(f))throw Error("re`"+f);return{type:f,name:v}})}
function J(C,c,f){for(var v=0,du=C.length;v<du;++v)if(C[v].name===c){C[v]=kCJ;C=C.slice(0,v).concat(C.slice(v+1));break}f!=null&&C.push({name:c,value:f});return C}
function Y(C){var c=C,f=c.indexOf(":");f>=0&&(c=C.slice(0,f))!=="xmlns"&&(C=C.slice(f+1));return pq.hasOwnProperty(c)?{space:pq[c],local:C}:C}
function T(C){return function(){var c=this.ownerDocument,f=this.namespaceURI;return f==="http://www.w3.org/1999/xhtml"&&c.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?c.createElement(C):c.createElementNS(f,C)}}
function V(C){return function(){return this.ownerDocument.createElementNS(C.space,C.local)}}
function E(C){C=Y(C);return(C.local?V:T)(C)}
function n(){}
function t(C){return C==null?n:function(){return this.querySelector(C)}}
function b(C){return Array(C.length)}
function S(C,c){this.ownerDocument=C.ownerDocument;this.namespaceURI=C.namespaceURI;this._next=null;this._parent=C;this.__data__=c}
function w(C){return function(){return C}}
function l(C,c,f,v,du,ts){for(var wu=0,C9,L6=c.length,vJ=ts.length;wu<vJ;++wu)(C9=c[wu])?(C9.__data__=ts[wu],v[wu]=C9):f[wu]=new S(C,ts[wu]);for(;wu<L6;++wu)if(C9=c[wu])du[wu]=C9}
function F(C,c,f,v,du,ts,wu){var C9,L6,vJ={},xV=c.length,n6=ts.length,Ug=Array(xV),wB;for(C9=0;C9<xV;++C9)if(L6=c[C9])Ug[C9]=wB="$"+wu.call(L6,L6.__data__,C9,c),wB in vJ?du[C9]=L6:vJ[wB]=L6;for(C9=0;C9<n6;++C9)wB="$"+wu.call(C,ts[C9],C9,ts),(L6=vJ[wB])?(v[C9]=L6,L6.__data__=ts[C9],vJ[wB]=null):f[C9]=new S(C,ts[C9]);for(C9=0;C9<xV;++C9)(L6=c[C9])&&vJ[Ug[C9]]===L6&&(du[C9]=L6)}
function R(C,c){return C<c?-1:C>c?1:C>=c?0:NaN}
function y(C){return function(){this.removeAttribute(C)}}
function M(C){return function(){this.removeAttributeNS(C.space,C.local)}}
function H(C,c){return function(){this.setAttribute(C,c)}}
function z(C,c){return function(){this.setAttributeNS(C.space,C.local,c)}}
function a(C,c){return function(){var f=c.apply(this,arguments);f==null?this.removeAttribute(C):this.setAttribute(C,f)}}
function xe(C,c){return function(){var f=c.apply(this,arguments);f==null?this.removeAttributeNS(C.space,C.local):this.setAttributeNS(C.space,C.local,f)}}
function ur(C){return function(){this.style.removeProperty(C)}}
function eD(C,c,f){return function(){this.style.setProperty(C,c,f)}}
function gu(C,c,f){return function(){var v=c.apply(this,arguments);v==null?this.style.removeProperty(C):this.style.setProperty(C,v,f)}}
function ir(C,c){return C.style.getPropertyValue(c)||(C.ownerDocument&&C.ownerDocument.defaultView||C.document&&C||C.defaultView).getComputedStyle(C,null).getPropertyValue(c)}
function SD(C){return function(){delete this[C]}}
function HJ(C,c){return function(){this[C]=c}}
function mM(C,c){return function(){var f=c.apply(this,arguments);f==null?delete this[C]:this[C]=f}}
function Vu(){this.textContent=""}
function cn(C){return function(){this.textContent=C}}
function Tj(C){return function(){var c=C.apply(this,arguments);this.textContent=c==null?"":c}}
function Uu(){this.innerHTML=""}
function Eg(C){return function(){this.innerHTML=C}}
function DN(C){return function(){var c=C.apply(this,arguments);this.innerHTML=c==null?"":c}}
function NN(){return null}
function bJ(){var C=this.parentNode;C&&C.removeChild(this)}
function MN(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function Js(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function XL(C,c,f){C=gJ(C,c,f);return function(v){var du=v.relatedTarget;du&&(du===this||du.compareDocumentPosition(this)&8)||C.call(this,v)}}
function gJ(C,c,f){return function(){C.call(this,this.__data__,c,f)}}
function hk(C){return C.trim().split(/^|\s+/).map(function(c){var f="",v=c.indexOf(".");v>=0&&(f=c.slice(v+1),c=c.slice(0,v));return{type:c,name:f}})}
function hc(C){return function(){var c=this.__on;if(c){for(var f=0,v=-1,du=c.length,ts;f<du;++f)(ts=c[f],C.type&&ts.type!==C.type||ts.name!==C.name)?c[++v]=ts:this.removeEventListener(ts.type,ts.listener,ts.capture);++v?c.length=v:delete this.__on}}}
function Wn(C,c,f){var v=zsN.hasOwnProperty(C.type)?XL:gJ;return function(du,ts,wu){du=this.__on;var C9;ts=v(c,ts,wu);if(du){wu=0;for(var L6=du.length;wu<L6;++wu)if((C9=du[wu]).type===C.type&&C9.name===C.name){this.removeEventListener(C9.type,C9.listener,C9.capture);this.addEventListener(C9.type,C9.listener=ts,C9.capture=f);C9.value=c;return}}this.addEventListener(C.type,ts,f);C9={type:C.type,name:C.name,value:c,listener:ts,capture:f};du?du.push(C9):this.__on=[C9]}}
function X0(C,c,f){var v=C.ownerDocument&&C.ownerDocument.defaultView||C.document&&C||C.defaultView,du=v.CustomEvent;typeof du==="function"?du=new du(c,f):(du=v.document.createEvent("Event"),f?(du.initEvent(c,f.bubbles,f.cancelable),du.detail=f.detail):du.initEvent(c,!1,!1));C.dispatchEvent(du)}
function o6(C,c){return function(){return X0(this,C,c)}}
function YV(C,c){return function(){return X0(this,C,c.apply(this,arguments))}}
function LJ(C,c){this._groups=C;this._parents=c}
function eZ(){return new LJ([[document.documentElement]],U_J)}
function p6(){this._="@"+(++v9X).toString(36)}
function Gj(C,c,f){C.prototype=c.prototype=f;f.constructor=C}
function qQ(C,c){C=Object.create(C.prototype);for(var f in c)C[f]=c[f];return C}
function TM(){}
function VM(C){var c;C=(C+"").trim().toLowerCase();return(c=o9M.exec(C))?(c=parseInt(c[1],16),new OB(c>>8&15|c>>4&240,c>>4&15|c&240,(c&15)<<4|c&15,1)):(c=AA$.exec(C))?pm(parseInt(c[1],16)):(c=L1n.exec(C))?new OB(c[1],c[2],c[3],1):(c=OCS.exec(C))?new OB(c[1]*255/100,c[2]*255/100,c[3]*255/100,1):(c=Xik.exec(C))?U0(c[1],c[2],c[3],c[4]):(c=x5B.exec(C))?U0(c[1]*255/100,c[2]*255/100,c[3]*255/100,c[4]):(c=shX.exec(C))?gR(c[1],c[2]/100,c[3]/100,1):(c=JAz.exec(C))?gR(c[1],c[2]/100,c[3]/100,c[4]):Bmu.hasOwnProperty(C)?
pm(Bmu[C]):C==="transparent"?new OB(NaN,NaN,NaN,0):null}
function pm(C){return new OB(C>>16&255,C>>8&255,C&255,1)}
function U0(C,c,f,v){v<=0&&(C=c=f=NaN);return new OB(C,c,f,v)}
function $V(C){C instanceof TM||(C=VM(C));if(!C)return new OB;C=C.rgb();return new OB(C.r,C.g,C.b,C.opacity)}
function QM(C,c,f,v){return arguments.length===1?$V(C):new OB(C,c,f,v==null?1:v)}
function OB(C,c,f,v){this.r=+C;this.g=+c;this.b=+f;this.opacity=+v}
function XP(C){C=Math.max(0,Math.min(255,Math.round(C)||0));return(C<16?"0":"")+C.toString(16)}
function gR(C,c,f,v){v<=0?C=c=f=NaN:f<=0||f>=1?C=c=NaN:c<=0&&(C=NaN);return new Re(C,c,f,v)}
function MF(C){if(C instanceof Re)return new Re(C.h,C.s,C.l,C.opacity);C instanceof TM||(C=VM(C));if(!C)return new Re;if(C instanceof Re)return C;C=C.rgb();var c=C.r/255,f=C.g/255,v=C.b/255,du=Math.min(c,f,v),ts=Math.max(c,f,v),wu=NaN,C9=ts-du,L6=(ts+du)/2;C9?(wu=c===ts?(f-v)/C9+(f<v)*6:f===ts?(v-c)/C9+2:(c-f)/C9+4,C9/=L6<.5?ts+du:2-ts-du,wu*=60):C9=L6>0&&L6<1?0:wu;return new Re(wu,C9,L6,C.opacity)}
function ko(C,c,f,v){return arguments.length===1?MF(C):new Re(C,c,f,v==null?1:v)}
function Re(C,c,f,v){this.h=+C;this.s=+c;this.l=+f;this.opacity=+v}
function nL(C,c,f){return(C<60?c+(f-c)*C/60:C<180?f:C<240?c+(f-c)*(240-C)/60:c)*255}
function aF(C){if(C instanceof ru)return new ru(C.l,C.a,C.b,C.opacity);if(C instanceof wJ){if(isNaN(C.h))return new ru(C.l,0,0,C.opacity);var c=C.h*M9j;return new ru(C.l,Math.cos(c)*C.c,Math.sin(c)*C.c,C.opacity)}C instanceof OB||(C=$V(C));var f=uJ(C.r),v=uJ(C.g),du=uJ(C.b);c=f9(.2225045*f+.7168786*v+.0606169*du);if(f===v&&v===du)var ts=f=c;else ts=f9((.4360747*f+.3850649*v+.1430804*du)/.96422),f=f9((.0139322*f+.0971045*v+.7141733*du)/.82521);return new ru(116*c-16,500*(ts-c),200*(c-f),C.opacity)}
function ru(C,c,f,v){this.l=+C;this.a=+c;this.b=+f;this.opacity=+v}
function f9(C){return C>PhM?Math.pow(C,1/3):C/$Bc+aTV}
function zO(C){return C>O2?C*C*C:$Bc*(C-aTV)}
function S3(C){return 255*(C<=.0031308?12.92*C:1.055*Math.pow(C,1/2.4)-.055)}
function uJ(C){return(C/=255)<=.04045?C/12.92:Math.pow((C+.055)/1.055,2.4)}
function cf(C){if(C instanceof wJ)return new wJ(C.h,C.c,C.l,C.opacity);C instanceof ru||(C=aF(C));if(C.a===0&&C.b===0)return new wJ(NaN,0,C.l,C.opacity);var c=Math.atan2(C.b,C.a)*keH;return new wJ(c<0?c+360:c,Math.sqrt(C.a*C.a+C.b*C.b),C.l,C.opacity)}
function gB(C,c,f,v){return arguments.length===1?cf(C):new wJ(C,c,f,v==null?1:v)}
function wJ(C,c,f,v){this.h=+C;this.c=+c;this.l=+f;this.opacity=+v}
function bH(C,c,f,v){if(arguments.length===1){var du=C;if(du instanceof CJ)du=new CJ(du.h,du.s,du.l,du.opacity);else{du instanceof OB||(du=$V(du));var ts=du.g/255,wu=du.b/255,C9=(UBj*wu+du.r/255*-1.7884503806-3.5172982438*ts)/(UBj+-1.7884503806-3.5172982438);wu-=C9;var L6=(1.97294*(ts-C9)- -.29227*wu)/-.90649;wu=(ts=Math.sqrt(L6*L6+wu*wu)/(1.97294*C9*(1-C9)))?Math.atan2(L6,wu)*keH-120:NaN;du=new CJ(wu<0?wu+360:wu,ts,C9,du.opacity)}}else du=new CJ(C,c,f,v==null?1:v);return du}
function CJ(C,c,f,v){this.h=+C;this.s=+c;this.l=+f;this.opacity=+v}
function K_(C,c,f,v,du){var ts=C*C,wu=ts*C;return((1-3*C+3*ts-wu)*c+(4-6*ts+3*wu)*f+(1+3*C+3*ts-3*wu)*v+wu*du)/6}
function tc(C){return function(){return C}}
function $T(C,c){return function(f){return C+f*c}}
function CB(C,c,f){return C=Math.pow(C,f),c=Math.pow(c,f)-C,f=1/f,function(v){return Math.pow(C+v*c,f)}}
function mJ(C,c){var f=c-C;return f?$T(C,f>180||f<-180?f-360*Math.round(f/360):f):tc(isNaN(C)?c:C)}
function iW(C){return(C=+C)===1?U$:function(c,f){return f-c?CB(c,f,C):tc(isNaN(c)?f:c)}}
function U$(C,c){var f=c-C;return f?$T(C,f):tc(isNaN(C)?c:C)}
function Hb(C){return function(c){var f=c.length,v=Array(f),du=Array(f),ts=Array(f),wu;for(wu=0;wu<f;++wu){var C9=QM(c[wu]);v[wu]=C9.r||0;du[wu]=C9.g||0;ts[wu]=C9.b||0}v=C(v);du=C(du);ts=C(ts);C9.opacity=1;return function(L6){C9.r=v(L6);C9.g=du(L6);C9.b=ts(L6);return C9+""}}}
function My(C,c){return C=+C,c-=C,function(f){return C+c*f}}
function dB(C){return function(){return C}}
function BX(C){return function(c){return C(c)+""}}
function MQ(C,c){var f=OO9.lastIndex=XPs.lastIndex=0,v,du,ts,wu=-1,C9=[],L6=[];C+="";for(c+="";(v=OO9.exec(C))&&(du=XPs.exec(c));)(ts=du.index)>f&&(ts=c.slice(f,ts),C9[wu]?C9[wu]+=ts:C9[++wu]=ts),(v=v[0])===(du=du[0])?C9[wu]?C9[wu]+=du:C9[++wu]=du:(C9[++wu]=null,L6.push({i:wu,x:My(v,du)})),f=XPs.lastIndex;f<c.length&&(ts=c.slice(f),C9[wu]?C9[wu]+=ts:C9[++wu]=ts);return C9.length<2?L6[0]?BX(L6[0].x):dB(c):(c=L6.length,function(vJ){for(var xV=0,n6;xV<c;++xV)C9[(n6=L6[xV]).i]=n6.x(vJ);return C9.join("")})}
function VS(C,c,f,v,du,ts){var wu,C9,L6;if(wu=Math.sqrt(C*C+c*c))C/=wu,c/=wu;if(L6=C*f+c*v)f-=C*L6,v-=c*L6;if(C9=Math.sqrt(f*f+v*v))f/=C9,v/=C9,L6/=C9;C*v<c*f&&(C=-C,c=-c,L6=-L6,wu=-wu);return{translateX:du,translateY:ts,rotate:Math.atan2(c,C)*vq6,skewX:Math.atan(L6)*vq6,scaleX:wu,scaleY:C9}}
function k3(C,c,f,v){function du(vJ){return vJ.length?vJ.pop()+" ":""}
function ts(vJ,xV,n6,Ug,wB,Sg){vJ!==n6||xV!==Ug?(wB=wB.push("translate(",null,c,null,f),Sg.push({i:wB-4,x:My(vJ,n6)},{i:wB-2,x:My(xV,Ug)})):(n6||Ug)&&wB.push("translate("+n6+c+Ug+f)}
function wu(vJ,xV,n6,Ug){vJ!==xV?(vJ-xV>180?xV+=360:xV-vJ>180&&(vJ+=360),Ug.push({i:n6.push(du(n6)+"rotate(",null,v)-2,x:My(vJ,xV)})):xV&&n6.push(du(n6)+"rotate("+xV+v)}
function C9(vJ,xV,n6,Ug){vJ!==xV?Ug.push({i:n6.push(du(n6)+"skewX(",null,v)-2,x:My(vJ,xV)}):xV&&n6.push(du(n6)+"skewX("+xV+v)}
function L6(vJ,xV,n6,Ug,wB,Sg){vJ!==n6||xV!==Ug?(wB=wB.push(du(wB)+"scale(",null,",",null,")"),Sg.push({i:wB-4,x:My(vJ,n6)},{i:wB-2,x:My(xV,Ug)})):n6===1&&Ug===1||wB.push(du(wB)+"scale("+n6+","+Ug+")")}
return function(vJ,xV){var n6=[],Ug=[];vJ=C(vJ);xV=C(xV);ts(vJ.translateX,vJ.translateY,xV.translateX,xV.translateY,n6,Ug);wu(vJ.rotate,xV.rotate,n6,Ug);C9(vJ.skewX,xV.skewX,n6,Ug);L6(vJ.scaleX,vJ.scaleY,xV.scaleX,xV.scaleY,n6,Ug);vJ=xV=null;return function(wB){for(var Sg=-1,ZM=Ug.length,pL;++Sg<ZM;)n6[(pL=Ug[Sg]).i]=pL.x(wB);return n6.join("")}}}
function hE(C){return function(c,f){var v=C((c=ko(c)).h,(f=ko(f)).h),du=U$(c.s,f.s),ts=U$(c.l,f.l),wu=U$(c.opacity,f.opacity);return function(C9){c.h=v(C9);c.s=du(C9);c.l=ts(C9);c.opacity=wu(C9);return c+""}}}
function Eb(C){return function(c,f){var v=C((c=gB(c)).h,(f=gB(f)).h),du=U$(c.c,f.c),ts=U$(c.l,f.l),wu=U$(c.opacity,f.opacity);return function(C9){c.h=v(C9);c.c=du(C9);c.l=ts(C9);c.opacity=wu(C9);return c+""}}}
function kz(C){return function v(f){function du(ts,wu){var C9=C((ts=bH(ts)).h,(wu=bH(wu)).h),L6=U$(ts.s,wu.s),vJ=U$(ts.l,wu.l),xV=U$(ts.opacity,wu.opacity);return function(n6){ts.h=C9(n6);ts.s=L6(n6);ts.l=vJ(Math.pow(n6,f));ts.opacity=xV(n6);return ts+""}}
f=+f;du.gamma=v;return du}(1)}
function TG(){return CR||(oqN(vWe),CR=nt.now()+iey)}
function vWe(){CR=0}
function VK(){this._call=this._time=this._next=null}
function Eh(C,c,f){var v=new VK;v.restart(C,c,f);return v}
function nV(){CR=(NNu=nt.now())+iey;XA=tL=0;try{TG();++XA;for(var C=rj_,c;C;)(c=CR-C._time)>=0&&C._call.call(null,c),C=C._next;--XA}finally{XA=0;C=rj_;for(var f=Infinity;C;)if(C._call){f>C._time&&(f=C._time);var v=C;C=C._next}else c=C._next,C._next=null,C=v?v._next=c:rj_=c;bF=v;tH(f);CR=0}}
function IVu(){var C=nt.now(),c=C-NNu;c>1E3&&(iey-=c,NNu=C)}
function tH(C){XA||(tL&&(tL=clearTimeout(tL)),C-CR>24?(C<Infinity&&(tL=setTimeout(nV,C-nt.now()-iey)),hL&&(hL=clearInterval(hL))):(hL||(NNu=nt.now(),hL=setInterval(IVu,1E3)),XA=1,oqN(nV)))}
function AaV(C,c,f){var v=new VK;c=c==null?0:+c;v.restart(function(du){v.stop();C(du+c)},c,f);
return v}
function xr9(C,c,f,v,du,ts){var wu=C.__transition;if(!wu)C.__transition={};else if(f in wu)return;d5z(C,f,{name:c,index:v,group:du,on:YQM,tween:utX,time:ts.time,delay:ts.delay,duration:ts.duration,ease:ts.ease,timer:null,state:0})}
function sre(C,c){C=qI(C,c);if(C.state>0)throw Error("se");return C}
function Fc(C,c){C=qI(C,c);if(C.state>2)throw Error("te");return C}
function qI(C,c){C=C.__transition;if(!C||!(C=C[c]))throw Error("ue");return C}
function d5z(C,c,f){function v(L6){var vJ,xV;if(f.state!==1)return ts();for(Ug in wu){var n6=wu[Ug];if(n6.name===f.name){if(n6.state===3)return AaV(v);n6.state===4?(n6.state=6,n6.timer.stop(),n6.on.call("interrupt",C,C.__data__,n6.index,n6.group),delete wu[Ug]):+Ug<c&&(n6.state=6,n6.timer.stop(),delete wu[Ug])}}AaV(function(){f.state===3&&(f.state=4,f.timer.restart(du,f.delay,f.time),du(L6))});
f.state=2;f.on.call("start",C,C.__data__,f.index,f.group);if(f.state===2){f.state=3;C9=Array(xV=f.tween.length);var Ug=0;for(vJ=-1;Ug<xV;++Ug)if(n6=f.tween[Ug].value.call(C,C.__data__,f.index,f.group))C9[++vJ]=n6;C9.length=vJ+1}}
function du(L6){L6=L6<f.duration?f.ease.call(null,L6/f.duration):(f.timer.restart(ts),f.state=5,1);for(var vJ=-1,xV=C9.length;++vJ<xV;)C9[vJ].call(null,L6);f.state===5&&(f.on.call("end",C,C.__data__,f.index,f.group),ts())}
function ts(){f.state=6;f.timer.stop();delete wu[c];for(var L6 in wu)return;delete C.__transition}
var wu=C.__transition,C9;wu[c]=f;f.timer=Eh(function(L6){f.state=1;f.timer.restart(v,f.delay,f.time);f.delay<=L6&&v(L6-f.delay)},0,f.time)}
function TqX(C,c){var f,v;return function(){var du=Fc(this,C),ts=du.tween;if(ts!==f){v=f=ts;ts=0;for(var wu=v.length;ts<wu;++ts)if(v[ts].name===c){v=v.slice();v.splice(ts,1);break}}du.tween=v}}
function VKB(C,c,f){var v,du;if(typeof f!=="function")throw Error();return function(){var ts=Fc(this,C),wu=ts.tween;if(wu!==v){du=(v=wu).slice();wu={name:c,value:f};for(var C9=0,L6=du.length;C9<L6;++C9)if(du[C9].name===c){du[C9]=wu;break}C9===L6&&du.push(wu)}ts.tween=du}}
function JMe(C,c,f){var v=C._id;C.each(function(){var du=Fc(this,v);(du.value||(du.value={}))[c]=f.apply(this,arguments)});
return function(du){return qI(du,v).value[c]}}
function Lk6(C,c){var f;return(typeof c==="number"?My:c instanceof VM?OAu:(f=VM(c))?(c=f,OAu):MQ)(C,c)}
function D5Z(C){return function(){this.removeAttribute(C)}}
function eCZ(C){return function(){this.removeAttributeNS(C.space,C.local)}}
function EpS(C,c,f){var v,du;return function(){var ts=this.getAttribute(C);return ts===f?null:ts===v?du:du=c(v=ts,f)}}
function npX(C,c,f){var v,du;return function(){var ts=this.getAttributeNS(C.space,C.local);return ts===f?null:ts===v?du:du=c(v=ts,f)}}
function tKS(C,c,f){var v,du,ts;return function(){var wu=f(this);if(wu==null)return void this.removeAttribute(C);var C9=this.getAttribute(C);return C9===wu?null:C9===v&&wu===du?ts:ts=c(v=C9,du=wu)}}
function bCQ(C,c,f){var v,du,ts;return function(){var wu=f(this);if(wu==null)return void this.removeAttributeNS(C.space,C.local);var C9=this.getAttributeNS(C.space,C.local);return C9===wu?null:C9===v&&wu===du?ts:ts=c(v=C9,du=wu)}}
function hCJ(C,c){function f(){var v=this,du=c.apply(v,arguments);return du&&function(ts){v.setAttributeNS(C.space,C.local,du(ts))}}
f._value=c;return f}
function SQS(C,c){function f(){var v=this,du=c.apply(v,arguments);return du&&function(ts){v.setAttribute(C,du(ts))}}
f._value=c;return f}
function qQM(C,c){return function(){sre(this,C).delay=+c.apply(this,arguments)}}
function gpz(C,c){return c=+c,function(){sre(this,C).delay=c}}
function wiX(C,c){return function(){Fc(this,C).duration=+c.apply(this,arguments)}}
function piX(C,c){return c=+c,function(){Fc(this,C).duration=c}}
function iCB(C,c){if(typeof c!=="function")throw Error();return function(){Fc(this,C).ease=c}}
function Nq7(C){return(C+"").trim().split(/^|\s+/).every(function(c){var f=c.indexOf(".");f>=0&&(c=c.slice(0,f));return!c||c==="start"})}
function rAn(C,c,f){var v,du,ts=Nq7(c)?sre:Fc;return function(){var wu=ts(this,C),C9=wu.on;if(C9!==v)(du=(v=C9).copy()).on(c,f);wu.on=du}}
function K1Z(C){return function(){var c=this.parentNode,f;for(f in this.__transition)if(+f!==C)return;c&&c.removeChild(this)}}
function GoS(C,c){var f,v,du;return function(){var ts=ir(this,C),wu=(this.style.removeProperty(C),ir(this,C));return ts===wu?null:ts===f&&wu===v?du:du=c(f=ts,v=wu)}}
function l2M(C){return function(){this.style.removeProperty(C)}}
function cAZ(C,c,f){var v,du;return function(){var ts=ir(this,C);return ts===f?null:ts===v?du:du=c(v=ts,f)}}
function ChS(C,c,f){var v,du,ts;return function(){var wu=ir(this,C),C9=f(this);C9==null&&(C9=(this.style.removeProperty(C),ir(this,C)));return wu===C9?null:wu===v&&C9===du?ts:ts=c(v=wu,du=C9)}}
function F1z(C,c,f){function v(){var du=this,ts=c.apply(du,arguments);return ts&&function(wu){du.style.setProperty(C,ts(wu),f)}}
v._value=c;return v}
function RCZ(C){return function(){this.textContent=C}}
function Qhz(C){return function(){var c=C(this);this.textContent=c==null?"":c}}
function Q4(C,c,f,v){this._groups=C;this._parents=c;this._name=f;this._id=v}
function PvP(C){return{type:C}}
function drP(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function K7y(){}
function X$V(C,c){var f=new K7y;if(C instanceof K7y)C.each(function(wu,C9){f.set(C9,wu)});
else if(Array.isArray(C)){var v=-1,du=C.length,ts;if(c==null)for(;++v<du;)f.set(v,C[v]);else for(;++v<du;)f.set(c(ts=C[v],v,C),ts)}else if(C)for(v in C)f.set(v,C[v]);return f}
function GAM(){}
function xv3(C){return function(c){for(var f={},v=0;v<C.length;v++)f[C[v]]=c[v]||"";return f}}
function m5M(C,c){var f=xv3(C);return function(v,du){return c(f(v),du,C)}}
function f2M(C){var c=Object.create(null),f=[];C.forEach(function(v){for(var du in v)du in c||f.push(c[du]=du)});
return f}
function slV(C){function c(wu,C9){function L6(){if(Sg)return YRu;if(ZM)return ZM=!1,Jac;var f7,yO=n6,YB;if(wu.charCodeAt(yO)===34){for(;n6++<xV&&wu.charCodeAt(n6)!==34||wu.charCodeAt(++n6)===34;);(f7=n6)>=xV?Sg=!0:(YB=wu.charCodeAt(n6++))===10?ZM=!0:YB===13&&(ZM=!0,wu.charCodeAt(n6)===10&&++n6);return wu.slice(yO+1,f7-1).replace(/""/g,'"')}for(;n6<xV;){if((YB=wu.charCodeAt(f7=n6++))===10)ZM=!0;else if(YB===13)ZM=!0,wu.charCodeAt(n6)===10&&++n6;else if(YB!==ts)continue;return wu.slice(yO,f7)}return Sg=
!0,wu.slice(yO,xV)}
var vJ=[],xV=wu.length,n6=0,Ug=0,wB,Sg=xV<=0,ZM=!1;wu.charCodeAt(xV-1)===10&&--xV;for(wu.charCodeAt(xV-1)===13&&--xV;(wB=L6())!==YRu;){for(var pL=[];wB!==Jac&&wB!==YRu;)pL.push(wB),wB=L6();C9&&(pL=C9(pL,Ug++))==null||vJ.push(pL)}return vJ}
function f(wu){return wu.map(v).join(C)}
function v(wu){return wu==null?"":du.test(wu)?'"'+wu.replace(/"/g,'""')+'"':wu}
var du=new RegExp('["'+C+"\n\r]"),ts=C.charCodeAt(0);return{parse:function(wu,C9){var L6,vJ;wu=c(wu,function(xV,n6){if(L6)return L6(xV,n6-1);vJ=xV;L6=C9?m5M(xV,C9):xv3(xV)});
wu.columns=vJ||[];return wu},
parseRows:c,format:function(wu,C9){C9==null&&(C9=f2M(wu));return[C9.map(v).join(C)].concat(wu.map(function(L6){return C9.map(function(vJ){return v(L6[vJ])}).join(C)})).join("\n")},
formatRows:function(wu){return wu.map(f).join("\n")}}}
function I2X(C){if(!C.ok)throw Error("ve`"+C.status+"`"+C.statusText);return C.text()}
function P6l(C){return function(c,f,v){arguments.length===2&&typeof f==="function"&&(v=f,f=void 0);return fetch(c,f).then(I2X).then(function(du){return C(du,v)})}}
function dvN(C,c,f,v){if(isNaN(c)||isNaN(f))return C;var du,ts=C._root;v={data:v};var wu=C._x0,C9=C._y0,L6=C._x1,vJ=C._y1,xV,n6,Ug,wB,Sg;if(!ts)return C._root=v,C;for(;ts.length;)if((Ug=c>=(xV=(wu+L6)/2))?wu=xV:L6=xV,(wB=f>=(n6=(C9+vJ)/2))?C9=n6:vJ=n6,du=ts,!(ts=ts[Sg=wB<<1|Ug]))return du[Sg]=v,C;var ZM=+C._x.call(null,ts.data);var pL=+C._y.call(null,ts.data);if(c===ZM&&f===pL)return v.next=ts,du?du[Sg]=v:C._root=v,C;do du=du?du[Sg]=Array(4):C._root=Array(4),(Ug=c>=(xV=(wu+L6)/2))?wu=xV:L6=xV,(wB=
f>=(n6=(C9+vJ)/2))?C9=n6:vJ=n6;while((Sg=wB<<1|Ug)===(Ug=(pL>=n6)<<1|ZM>=xV));return du[Ug]=ts,du[Sg]=v,C}
function ly(C,c,f,v,du){this.node=C;this.x0=c;this.y0=f;this.x1=v;this.y1=du}
function yAS(C){return C[0]}
function ZCz(C){return C[1]}
function uFe(C,c,f,v,du,ts){this._x=C;this._y=c;this._x0=f;this._y0=v;this._x1=du;this._y1=ts;this._root=void 0}
function YcN(C){for(var c={data:C.data},f=c;C=C.next;)f=f.next={data:C.data};return c}
function lKu(C,c){if((c=(C=c?C.toExponential(c-1):C.toExponential()).indexOf("e"))<0)return null;var f=C.slice(0,c);return[f.length>1?f[0]+f.slice(2):f,+C.slice(c+1)]}
function jhS(C){return C=lKu(Math.abs(C)),C?C[1]:NaN}
function W1k(C,c){return function(f,v){for(var du=f.length,ts=[],wu=0,C9=C[0],L6=0;du>0&&C9>0;){L6+C9+1>v&&(C9=Math.max(1,v-L6));ts.push(f.substring(du-=C9,du+C9));if((L6+=C9+1)>v)break;C9=C[wu=(wu+1)%C.length]}return ts.reverse().join(c)}}
function HCX(C){return function(c){return c.replace(/[0-9]/g,function(f){return C[+f]})}}
function Tjd(C){return new Vsd(C)}
function Vsd(C){if(!(c=zCz.exec(C)))throw Error("we`"+C);var c;this.fill=c[1]||" ";this.align=c[2]||">";this.sign=c[3]||"-";this.symbol=c[4]||"";this.zero=!!c[5];this.width=c[6]&&+c[6];this.comma=!!c[7];this.precision=c[8]&&+c[8].slice(1);this.trim=!!c[9];this.type=c[10]||""}
function u6l(C,c){c=lKu(C,c);if(!c)return C+"";C=c[0];c=c[1];return c<0?"0."+Array(-c).join("0")+C:C.length>c+1?C.slice(0,c+1)+"."+C.slice(c+1):C+Array(c-C.length+2).join("0")}
function Tf6(C){return C}
function BqB(C){function c(C9){function L6(aP){var oN=YB,m$=mN,tE,Pf;if(yO==="c")m$=ZW(aP)+m$,aP="";else{aP=+aP;var rB=aP<0;aP=ZW(Math.abs(aP),pL);if(f7){var yT=aP.length,iO=1,Iv=-1;a:for(;iO<yT;++iO)switch(aP[iO]){case ".":Iv=tE=iO;break;case "0":Iv===0&&(Iv=iO);tE=iO;break;default:if(!+aP[iO])break a;Iv>0&&(Iv=0)}aP=Iv>0?aP.slice(0,Iv)+aP.slice(tE+1):aP}rB&&+aP===0&&(rB=!1);oN=(rB?n6==="("?n6:"-":n6==="-"||n6==="("?"":n6)+oN;m$=(yO==="s"?Vl3[8+Dvc/3]:"")+m$+(rB&&n6==="("?")":"");if(bs)for(rB=-1,
tE=aP.length;++rB<tE;)if(Pf=aP.charCodeAt(rB),48>Pf||Pf>57){m$=(Pf===46?du+aP.slice(rB+1):aP.slice(rB))+m$;aP=aP.slice(0,rB);break}}ZM&&!wB&&(aP=f(aP,Infinity));Pf=oN.length+aP.length+m$.length;rB=Pf<Sg?Array(Sg-Pf+1).join(vJ):"";ZM&&wB&&(aP=f(rB+aP,rB.length?Sg-m$.length:Infinity),rB="");switch(xV){case "<":aP=oN+aP+m$+rB;break;case "=":aP=oN+rB+aP+m$;break;case "^":aP=rB.slice(0,Pf=rB.length>>1)+oN+aP+m$+rB.slice(Pf);break;default:aP=rB+oN+aP+m$}return ts(aP)}
C9=Tjd(C9);var vJ=C9.fill,xV=C9.align,n6=C9.sign,Ug=C9.symbol,wB=C9.zero,Sg=C9.width,ZM=C9.comma,pL=C9.precision,f7=C9.trim,yO=C9.type;yO==="n"?(ZM=!0,yO="g"):elu[yO]||(pL==null&&(pL=12),f7=!0,yO="g");if(wB||vJ==="0"&&xV==="=")wB=!0,vJ="0",xV="=";var YB=Ug==="$"?v[0]:Ug==="#"&&/[boxX]/.test(yO)?"0"+yO.toLowerCase():"",mN=Ug==="$"?v[1]:/[%p]/.test(yO)?wu:"",ZW=elu[yO],bs=/[defgprs%]/.test(yO);pL=pL==null?6:/[gprs]/.test(yO)?Math.max(1,Math.min(21,pL)):Math.max(0,Math.min(20,pL));L6.toString=function(){return C9+
""};
return L6}
var f=C.grouping&&C.thousands?W1k(C.grouping,C.thousands):Tf6,v=C.currency,du=C.decimal,ts=C.numerals?HCX(C.numerals):Tf6,wu=C.percent||"%";return{format:c,formatPrefix:function(C9,L6){var vJ=c((C9=Tjd(C9),C9.type="f",C9));C9=Math.max(-8,Math.min(8,Math.floor(jhS(L6)/3)))*3;var xV=Math.pow(10,-C9),n6=Vl3[8+C9/3];return function(Ug){return vJ(xV*Ug)+n6}}}}
function Ev(){this.reset()}
function E1u(C,c,f){var v=C.s=c+f,du=v-c;C.t=c-(v-du)+(f-du)}
function cjr(C){return C>1?iE:C<-1?-iE:Math.asin(C)}
function MKM(){}
function n1n(C){var c=C[0];C=C[1];var f=Nl(C);return[f*Nl(c),f*eQ(c),eQ(C)]}
function tlN(C,c){return[C[1]*c[2]-C[2]*c[1],C[2]*c[0]-C[0]*c[2],C[0]*c[1]-C[1]*c[0]]}
function bA6(C){var c=CKD(C[0]*C[0]+C[1]*C[1]+C[2]*C[2]);C[0]/=c;C[1]/=c;C[2]/=c}
function $5B(){var C=[],c;return{point:function(f,v){c.push([f,v])},
lineStart:function(){C.push(c=[])},
lineEnd:MKM,rejoin:function(){C.length>1&&C.push(C.pop().concat(C.shift()))},
result:function(){var f=C;C=[];c=null;return f}}}
function F7y(C,c,f,v){this.x=C;this.z=c;this.o=f;this.e=v;this.v=!1;this.n=this.p=null}
function a2X(C,c,f,v,du){var ts=[],wu=[];C.forEach(function(n6){if(!((Ug=n6.length-1)<=0)){var Ug,wB=n6[0],Sg=n6[Ug],ZM=wB;if(mn(ZM[0]-Sg[0])<1E-6&&mn(ZM[1]-Sg[1])<1E-6){du.lineStart();for(C9=0;C9<Ug;++C9)du.point((wB=n6[C9])[0],wB[1]);du.lineEnd()}else ts.push(Ug=new F7y(wB,n6,null,!0)),wu.push(Ug.o=new F7y(wB,null,Ug,!1)),ts.push(Ug=new F7y(Sg,n6,null,!1)),wu.push(Ug.o=new F7y(Sg,null,Ug,!0))}});
if(ts.length){wu.sort(c);hlc(ts);hlc(wu);var C9=0;for(C=wu.length;C9<C;++C9)wu[C9].e=f=!f;f=ts[0];for(var L6;;){for(var vJ=f,xV=!0;vJ.v;)if((vJ=vJ.n)===f)return;c=vJ.z;du.lineStart();do{vJ.v=vJ.o.v=!0;if(vJ.e){if(xV)for(C9=0,C=c.length;C9<C;++C9)du.point((L6=c[C9])[0],L6[1]);else v(vJ.x,vJ.n.x,1,du);vJ=vJ.n}else{if(xV)for(c=vJ.p.z,C9=c.length-1;C9>=0;--C9)du.point((L6=c[C9])[0],L6[1]);else v(vJ.x,vJ.p.x,-1,du);vJ=vJ.p}vJ=vJ.o;c=vJ.z;xV=!xV}while(!vJ.v);du.lineEnd()}}}
function hlc(C){if(c=C.length){for(var c,f=0,v=C[0],du;++f<c;)v.n=du=C[f],du.p=v,v=du;v.n=du=C[0];du.p=v}}
function koB(C){return C.length>1}
function U5X(C,c){return((C=C.x)[0]<0?C[1]-iE-1E-6:iE-C[1])-((c=c.x)[0]<0?c[1]-iE-1E-6:iE-c[1])}
function DrJ(){}
function Sc6(C){return function(c,f){var v=Nl(c),du=Nl(f);v=C(v*du);return[v*du*eQ(c),v*eQ(f)]}}
function SH(C){return function(c,f){var v=CKD(c*c+f*f),du=C(v),ts=eQ(du);du=Nl(du);return[qc3(c*ts,v*du),cjr(v&&f*ts/v)]}}
function vpM(C){var c=0,f=C.children,v=f&&f.length;if(v)for(;--v>=0;)c+=f[v].value;else c=1;C.value=c}
function g1N(C,c){var f=new qi(C);C=+C.value&&(f.value=C.value);var v,du=[f],ts,wu,C9,L6;for(c==null&&(c=opZ);v=du.pop();)if(C&&(v.value=+v.data.value),(wu=c(v.data))&&(L6=wu.length))for(v.children=Array(L6),C9=L6-1;C9>=0;--C9)du.push(ts=v.children[C9]=new qi(wu[C9])),ts.parent=v,ts.depth=v.depth+1;return f.eachBefore(ABn)}
function opZ(C){return C.children}
function LGS(C){C.data=C.data.data}
function ABn(C){var c=0;do C.height=c;while((C=C.parent)&&C.height<++c)}
function qi(C){this.data=C;this.depth=this.height=0;this.parent=null}
function s0(C,c,f,v){function du(ts){return C(ts=new Date(+ts)),ts}
du.floor=du;du.ceil=function(ts){return C(ts=new Date(ts-1)),c(ts,1),C(ts),ts};
du.round=function(ts){var wu=du(ts),C9=du.ceil(ts);return ts-wu<C9-ts?wu:C9};
du.offset=function(ts,wu){return c(ts=new Date(+ts),wu==null?1:Math.floor(wu)),ts};
du.range=function(ts,wu,C9){var L6=[],vJ;ts=du.ceil(ts);C9=C9==null?1:Math.floor(C9);if(!(ts<wu&&C9>0))return L6;do L6.push(vJ=new Date(+ts)),c(ts,C9),C(ts);while(vJ<ts&&ts<wu);return L6};
du.filter=function(ts){return s0(function(wu){if(wu>=wu)for(;C(wu),!ts(wu);)wu.setTime(wu-1)},function(wu,C9){if(wu>=wu)if(C9<0)for(;++C9<=0;)for(;c(wu,-1),!ts(wu););
else for(;--C9>=0;)for(;c(wu,1),!ts(wu););})};
f&&(du.count=function(ts,wu){eWu.setTime(+ts);E5D.setTime(+wu);C(eWu);C(E5D);return Math.floor(f(eWu,E5D))},du.every=function(ts){ts=Math.floor(ts);
return isFinite(ts)&&ts>0?ts>1?du.filter(v?function(wu){return v(wu)%ts===0}:function(wu){return du.count(0,wu)%ts===0}):du:null});
return du}
function R0(C){return s0(function(c){c.setDate(c.getDate()-(c.getDay()+7-C)%7);c.setHours(0,0,0,0)},function(c,f){c.setDate(c.getDate()+f*7)},function(c,f){return(f-c-(f.getTimezoneOffset()-c.getTimezoneOffset())*6E4)/6048E5})}
function Qw(C){return s0(function(c){c.setUTCDate(c.getUTCDate()-(c.getUTCDay()+7-C)%7);c.setUTCHours(0,0,0,0)},function(c,f){c.setUTCDate(c.getUTCDate()+f*7)},function(c,f){return(f-c)/6048E5})}
function ObS(C){if(0<=C.y&&C.y<100){var c=new Date(-1,C.m,C.d,C.H,C.M,C.S,C.L);c.setFullYear(C.y);return c}return new Date(C.y,C.m,C.d,C.H,C.M,C.S,C.L)}
function Rns(C){if(0<=C.y&&C.y<100){var c=new Date(Date.UTC(-1,C.m,C.d,C.H,C.M,C.S,C.L));c.setUTCFullYear(C.y);return c}return new Date(Date.UTC(C.y,C.m,C.d,C.H,C.M,C.S,C.L))}
function gO(C){return{y:C,m:0,d:1,H:0,M:0,S:0,L:0}}
function XBz(C){function c(m$,tE){return function(Pf){var rB=[],yT=-1,iO=0,Iv=m$.length,st,JB;for(Pf instanceof Date||(Pf=new Date(+Pf));++yT<Iv;)if(m$.charCodeAt(yT)===37){rB.push(m$.slice(iO,yT));(iO=w$j[st=m$.charAt(++yT)])!=null?st=m$.charAt(++yT):iO=st==="e"?" ":"0";if(JB=tE[st])st=JB(Pf,iO);rB.push(st);iO=yT+1}rB.push(m$.slice(iO,yT));return rB.join("")}}
function f(m$,tE){return function(Pf){var rB=gO(1900);if(v(rB,m$,Pf,0)!=Pf.length)return null;if("Q"in rB)return new Date(rB.Q);"p"in rB&&(rB.H=rB.H%12+rB.p*12);if("V"in rB){if(rB.V<1||rB.V>53)return null;"w"in rB||(rB.w=1);if("Z"in rB){Pf=Rns(gO(rB.y));var yT=Pf.getUTCDay();Pf=yT>4||yT===0?n5_.ceil(Pf):n5_(Pf);Pf=p$3.offset(Pf,(rB.V-1)*7);rB.y=Pf.getUTCFullYear();rB.m=Pf.getUTCMonth();rB.d=Pf.getUTCDate()+(rB.w+6)%7}else Pf=tE(gO(rB.y)),yT=Pf.getDay(),Pf=yT>4||yT===0?tsP.ceil(Pf):tsP(Pf),Pf=iAg.offset(Pf,
(rB.V-1)*7),rB.y=Pf.getFullYear(),rB.m=Pf.getMonth(),rB.d=Pf.getDate()+(rB.w+6)%7}else if("W"in rB||"U"in rB)"w"in rB||(rB.w="u"in rB?rB.u%7:"W"in rB?1:0),yT="Z"in rB?Rns(gO(rB.y)).getUTCDay():tE(gO(rB.y)).getDay(),rB.m=0,rB.d="W"in rB?(rB.w+6)%7+rB.W*7-(yT+5)%7:rB.w+rB.U*7-(yT+6)%7;return"Z"in rB?(rB.H+=rB.Z/100|0,rB.M+=rB.Z%100,Rns(rB)):tE(rB)}}
function v(m$,tE,Pf,rB){for(var yT=0,iO=tE.length,Iv=Pf.length,st;yT<iO;){if(rB>=Iv)return-1;st=tE.charCodeAt(yT++);if(st===37){if(st=tE.charAt(yT++),st=oN[st in w$j?tE.charAt(yT++):st],!st||(rB=st(m$,Pf,rB))<0)return-1}else if(st!=Pf.charCodeAt(rB++))return-1}return rB}
var du=C.dateTime,ts=C.date,wu=C.time,C9=C.periods,L6=C.days,vJ=C.shortDays,xV=C.months,n6=C.shortMonths,Ug=wO(C9),wB=pt(C9),Sg=wO(L6),ZM=pt(L6),pL=wO(vJ),f7=pt(vJ),yO=wO(xV),YB=pt(xV),mN=wO(n6),ZW=pt(n6),bs={a:function(m$){return vJ[m$.getDay()]},
A:function(m$){return L6[m$.getDay()]},
b:function(m$){return n6[m$.getMonth()]},
B:function(m$){return xV[m$.getMonth()]},
c:null,d:Nfc,e:Nfc,f:x1Z,H:stJ,I:JBJ,j:Pln,L:ra3,m:d1X,M:Y7Q,p:function(m$){return C9[+(m$.getHours()>=12)]},
Q:Kkc,s:G6V,S:uEz,u:TSz,U:Vo$,V:D1J,w:eiJ,W:EtM,x:null,X:null,y:ntX,Y:toX,Z:bbX,"%":lYL},aP={a:function(m$){return vJ[m$.getUTCDay()]},
A:function(m$){return L6[m$.getUTCDay()]},
b:function(m$){return n6[m$.getUTCMonth()]},
B:function(m$){return xV[m$.getUTCMonth()]},
c:null,d:ca6,e:ca6,f:hiB,H:S7M,I:q7n,j:gtM,L:C63,m:wBJ,M:pBJ,p:function(m$){return C9[+(m$.getUTCHours()>=12)]},
Q:Kkc,s:G6V,S:ibZ,u:NSS,U:rBB,V:KGJ,w:GF7,W:lUB,x:null,X:null,y:cBQ,Y:ClS,Z:FGJ,"%":lYL},oN={a:function(m$,tE,Pf){return(tE=pL.exec(tE.slice(Pf)))?(m$.w=f7[tE[0].toLowerCase()],Pf+tE[0].length):-1},
A:function(m$,tE,Pf){return(tE=Sg.exec(tE.slice(Pf)))?(m$.w=ZM[tE[0].toLowerCase()],Pf+tE[0].length):-1},
b:function(m$,tE,Pf){return(tE=mN.exec(tE.slice(Pf)))?(m$.m=ZW[tE[0].toLowerCase()],Pf+tE[0].length):-1},
B:function(m$,tE,Pf){return(tE=yO.exec(tE.slice(Pf)))?(m$.m=YB[tE[0].toLowerCase()],Pf+tE[0].length):-1},
c:function(m$,tE,Pf){return v(m$,du,tE,Pf)},
d:Fku,e:Fku,f:RiZ,H:Rlc,I:Rlc,j:Qtn,L:m1Z,m:fUn,M:IUz,p:function(m$,tE,Pf){return(tE=Ug.exec(tE.slice(Pf)))?(m$.p=wB[tE[0].toLowerCase()],Pf+tE[0].length):-1},
Q:yBM,s:ZbM,S:jtQ,u:WGk,U:Hb$,V:zi7,w:BSS,W:MoS,x:function(m$,tE,Pf){return v(m$,ts,tE,Pf)},
X:function(m$,tE,Pf){return v(m$,wu,tE,Pf)},
y:$17,Y:aUS,Z:kFz,"%":U1Q};bs.x=c(ts,bs);bs.X=c(wu,bs);bs.c=c(du,bs);aP.x=c(ts,aP);aP.X=c(wu,aP);aP.c=c(du,aP);return{format:function(m$){var tE=c(m$,bs);tE.toString=function(){return m$};
return tE},
parse:function(m$){var tE=f(m$,ObS);tE.toString=function(){return m$};
return tE},
utcFormat:function(m$){var tE=c(m$,aP);tE.toString=function(){return m$};
return tE},
utcParse:function(m$){var tE=f(m$,Rns);tE.toString=function(){return m$};
return tE}}}
function VT(C,c,f){var v=C<0?"-":"";C=(v?-C:C)+"";var du=C.length;return v+(du<f?Array(f-du+1).join(c)+C:C)}
function vt7(C){return C.replace(otJ,"\\$&")}
function wO(C){return new RegExp("^(?:"+C.map(vt7).join("|")+")","i")}
function pt(C){for(var c={},f=-1,v=C.length;++f<v;)c[C[f].toLowerCase()]=f;return c}
function BSS(C,c,f){return(c=uN.exec(c.slice(f,f+1)))?(C.w=+c[0],f+c[0].length):-1}
function WGk(C,c,f){return(c=uN.exec(c.slice(f,f+1)))?(C.u=+c[0],f+c[0].length):-1}
function Hb$(C,c,f){return(c=uN.exec(c.slice(f,f+2)))?(C.U=+c[0],f+c[0].length):-1}
function zi7(C,c,f){return(c=uN.exec(c.slice(f,f+2)))?(C.V=+c[0],f+c[0].length):-1}
function MoS(C,c,f){return(c=uN.exec(c.slice(f,f+2)))?(C.W=+c[0],f+c[0].length):-1}
function aUS(C,c,f){return(c=uN.exec(c.slice(f,f+4)))?(C.y=+c[0],f+c[0].length):-1}
function $17(C,c,f){return(c=uN.exec(c.slice(f,f+2)))?(C.y=+c[0]+(+c[0]>68?1900:2E3),f+c[0].length):-1}
function kFz(C,c,f){return(c=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(c.slice(f,f+6)))?(C.Z=c[1]?0:-(c[2]+(c[3]||"00")),f+c[0].length):-1}
function fUn(C,c,f){return(c=uN.exec(c.slice(f,f+2)))?(C.m=c[0]-1,f+c[0].length):-1}
function Fku(C,c,f){return(c=uN.exec(c.slice(f,f+2)))?(C.d=+c[0],f+c[0].length):-1}
function Qtn(C,c,f){return(c=uN.exec(c.slice(f,f+3)))?(C.m=0,C.d=+c[0],f+c[0].length):-1}
function Rlc(C,c,f){return(c=uN.exec(c.slice(f,f+2)))?(C.H=+c[0],f+c[0].length):-1}
function IUz(C,c,f){return(c=uN.exec(c.slice(f,f+2)))?(C.M=+c[0],f+c[0].length):-1}
function jtQ(C,c,f){return(c=uN.exec(c.slice(f,f+2)))?(C.S=+c[0],f+c[0].length):-1}
function m1Z(C,c,f){return(c=uN.exec(c.slice(f,f+3)))?(C.L=+c[0],f+c[0].length):-1}
function RiZ(C,c,f){return(c=uN.exec(c.slice(f,f+6)))?(C.L=Math.floor(c[0]/1E3),f+c[0].length):-1}
function U1Q(C,c,f){return(C=A7J.exec(c.slice(f,f+1)))?f+C[0].length:-1}
function yBM(C,c,f){return(c=uN.exec(c.slice(f)))?(C.Q=+c[0],f+c[0].length):-1}
function ZbM(C,c,f){return(c=uN.exec(c.slice(f)))?(C.Q=+c[0]*1E3,f+c[0].length):-1}
function Nfc(C,c){return VT(C.getDate(),c,2)}
function stJ(C,c){return VT(C.getHours(),c,2)}
function JBJ(C,c){return VT(C.getHours()%12||12,c,2)}
function Pln(C,c){return VT(1+iAg.count(xQ(C),C),c,3)}
function ra3(C,c){return VT(C.getMilliseconds(),c,3)}
function x1Z(C,c){return ra3(C,c)+"000"}
function d1X(C,c){return VT(C.getMonth()+1,c,2)}
function Y7Q(C,c){return VT(C.getMinutes(),c,2)}
function uEz(C,c){return VT(C.getSeconds(),c,2)}
function TSz(C){C=C.getDay();return C===0?7:C}
function Vo$(C,c){return VT(L0k.count(xQ(C),C),c,2)}
function D1J(C,c){var f=C.getDay();C=f>=4||f===0?bOd(C):bOd.ceil(C);return VT(bOd.count(xQ(C),C)+(xQ(C).getDay()===4),c,2)}
function eiJ(C){return C.getDay()}
function EtM(C,c){return VT(tsP.count(xQ(C),C),c,2)}
function ntX(C,c){return VT(C.getFullYear()%100,c,2)}
function toX(C,c){return VT(C.getFullYear()%1E4,c,4)}
function bbX(C){C=C.getTimezoneOffset();return(C>0?"-":(C*=-1,"+"))+VT(C/60|0,"0",2)+VT(C%60,"0",2)}
function ca6(C,c){return VT(C.getUTCDate(),c,2)}
function S7M(C,c){return VT(C.getUTCHours(),c,2)}
function q7n(C,c){return VT(C.getUTCHours()%12||12,c,2)}
function gtM(C,c){return VT(1+p$3.count(s2(C),C),c,3)}
function C63(C,c){return VT(C.getUTCMilliseconds(),c,3)}
function hiB(C,c){return C63(C,c)+"000"}
function wBJ(C,c){return VT(C.getUTCMonth()+1,c,2)}
function pBJ(C,c){return VT(C.getUTCMinutes(),c,2)}
function ibZ(C,c){return VT(C.getUTCSeconds(),c,2)}
function NSS(C){C=C.getUTCDay();return C===0?7:C}
function rBB(C,c){return VT(O2J.count(s2(C),C),c,2)}
function KGJ(C,c){var f=C.getUTCDay();C=f>=4||f===0?hWO(C):hWO.ceil(C);return VT(hWO.count(s2(C),C)+(s2(C).getUTCDay()===4),c,2)}
function GF7(C){return C.getUTCDay()}
function lUB(C,c){return VT(n5_.count(s2(C),C),c,2)}
function cBQ(C,c){return VT(C.getUTCFullYear()%100,c,2)}
function ClS(C,c){return VT(C.getUTCFullYear()%1E4,c,4)}
function FGJ(){return"+0000"}
function lYL(){return"%"}
function Kkc(C){return+C}
function G6V(C){return Math.floor(+C/1E3)}
function ex(C){for(var c=C.length/6|0,f=Array(c),v=0;v<c;)f[v]="#"+C.slice(v*6,++v*6);return f}
function ZJ(C){return X_$(C[C.length-1])}
function QZp(C){var c=C.length;return function(f){return C[Math.max(0,Math.min(c-1,Math.floor(f*c)))]}}
function Qlg(C){this._context=C}
function mvu(C){this._curve=C}
function fYL(C,c,f){var v=C._x1-C._x0;c-=C._x1;var du=(C._y1-C._y0)/(v||c<0&&-0);C=(f-C._y1)/(c||v<0&&-0);return((du<0?-1:1)+(C<0?-1:1))*Math.min(Math.abs(du),Math.abs(C),.5*Math.abs((du*c+C*v)/(v+c)))||0}
function IYc(C,c){var f=C._x1-C._x0;return f?(3*(C._y1-C._y0)/f-c)/2:c}
function SR9(C,c,f){var v=C._x0,du=C._x1,ts=C._y1,wu=(du-v)/3;C._context.bezierCurveTo(v+wu,C._y0+wu*c,du-wu,ts-wu*f,du,ts)}
function qRu(C){this._context=C}
function yau(C){this._context=C}
function iF(C,c,f){this.k=C;this.x=c;this.y=f}
(function(C){C.length===1&&(C=L(C));return{left:function(c,f,v,du){v==null&&(v=0);du==null&&(du=c.length);for(;v<du;){var ts=v+du>>>1;C(c[ts],f)<0?v=ts+1:du=ts}return v},
right:function(c,f,v,du){v==null&&(v=0);du==null&&(du=c.length);for(;v<du;){var ts=v+du>>>1;C(c[ts],f)>0?du=ts:v=ts+1}return v}}})(A);
var kCJ={value:function(){}};
X.prototype=O.prototype={constructor:X,on:function(C,c){var f=this._,v=x(C+"",f),du,ts=-1,wu=v.length;if(arguments.length<2)for(;++ts<wu;){var C9;if(C9=du=(C=v[ts]).type){a:{C9=f[du];for(var L6=0,vJ=C9.length;L6<vJ;++L6)if((du=C9[L6]).name===C.name){du=du.value;break a}du=void 0}C9=du}if(C9)return du}else{if(c!=null&&typeof c!=="function")throw Error("xe`"+c);for(;++ts<wu;)if(du=(C=v[ts]).type)f[du]=J(f[du],C.name,c);else if(c==null)for(du in f)f[du]=J(f[du],C.name,null);return this}},
copy:function(){var C={},c=this._,f;for(f in c)C[f]=c[f].slice();return new X(C)},
call:function(C,c){if((du=arguments.length-2)>0)for(var f=Array(du),v=0,du,ts;v<du;++v)f[v]=arguments[v+2];if(!this._.hasOwnProperty(C))throw Error("re`"+C);ts=this._[C];v=0;for(du=ts.length;v<du;++v)ts[v].value.apply(c,f)},
apply:function(C,c,f){if(!this._.hasOwnProperty(C))throw Error("re`"+C);C=this._[C];for(var v=0,du=C.length;v<du;++v)C[v].value.apply(c,f)}};
var pq={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/"},ZAL=function(C){return function(){return this.matches(C)}};
if(typeof document!=="undefined"){var Ni=document.documentElement;if(!Ni.matches){var xBM=Ni.webkitMatchesSelector||Ni.msMatchesSelector||Ni.mozMatchesSelector||Ni.oMatchesSelector;ZAL=function(C){return function(){return xBM.call(this,C)}}}}var jl6=ZAL;
S.prototype={constructor:S,appendChild:function(C){return this._parent.insertBefore(C,this._next)},
insertBefore:function(C,c){return this._parent.insertBefore(C,c)},
querySelector:function(C){return this._parent.querySelector(C)},
querySelectorAll:function(C){return this._parent.querySelectorAll(C)}};
var zsN={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(zsN={mouseenter:"mouseover",mouseleave:"mouseout"}));var U_J=[null];LJ.prototype=eZ.prototype={constructor:LJ,select:function(C){typeof C!=="function"&&(C=t(C));for(var c=this._groups,f=c.length,v=Array(f),du=0;du<f;++du)for(var ts=c[du],wu=ts.length,C9=v[du]=Array(wu),L6,vJ,xV=0;xV<wu;++xV)(L6=ts[xV])&&(vJ=C.call(L6,L6.__data__,xV,ts))&&("__data__"in L6&&(vJ.__data__=L6.__data__),C9[xV]=vJ);return new LJ(v,this._parents)},
filter:function(C){typeof C!=="function"&&(C=jl6(C));for(var c=this._groups,f=c.length,v=Array(f),du=0;du<f;++du)for(var ts=c[du],wu=ts.length,C9=v[du]=[],L6,vJ=0;vJ<wu;++vJ)(L6=ts[vJ])&&C.call(L6,L6.__data__,vJ,ts)&&C9.push(L6);return new LJ(v,this._parents)},
data:function(C,c){if(!C)return wB=Array(this.size()),vJ=-1,this.each(function(yO){wB[++vJ]=yO}),wB;
var f=c?F:l,v=this._parents,du=this._groups;typeof C!=="function"&&(C=w(C));for(var ts=du.length,wu=Array(ts),C9=Array(ts),L6=Array(ts),vJ=0;vJ<ts;++vJ){var xV=v[vJ],n6=du[vJ],Ug=n6.length,wB=C.call(xV,xV&&xV.__data__,vJ,v),Sg=wB.length,ZM=C9[vJ]=Array(Sg),pL=wu[vJ]=Array(Sg);Ug=L6[vJ]=Array(Ug);f(xV,n6,ZM,pL,Ug,wB,c);n6=xV=0;for(var f7;xV<Sg;++xV)if(Ug=ZM[xV]){for(xV>=n6&&(n6=xV+1);!(f7=pL[n6])&&++n6<Sg;);Ug._next=f7||null}}wu=new LJ(wu,v);wu._enter=C9;wu._exit=L6;return wu},
enter:function(){return new LJ(this._enter||this._groups.map(b),this._parents)},
exit:function(){return new LJ(this._exit||this._groups.map(b),this._parents)},
merge:function(C){var c=this._groups;C=C._groups;for(var f=c.length,v=Math.min(f,C.length),du=Array(f),ts=0;ts<v;++ts)for(var wu=c[ts],C9=C[ts],L6=wu.length,vJ=du[ts]=Array(L6),xV,n6=0;n6<L6;++n6)if(xV=wu[n6]||C9[n6])vJ[n6]=xV;for(;ts<f;++ts)du[ts]=c[ts];return new LJ(du,this._parents)},
order:function(){for(var C=this._groups,c=-1,f=C.length;++c<f;)for(var v=C[c],du=v.length-1,ts=v[du],wu;--du>=0;)if(wu=v[du])ts&&ts!==wu.nextSibling&&ts.parentNode.insertBefore(wu,ts),ts=wu;return this},
sort:function(C){function c(n6,Ug){return n6&&Ug?C(n6.__data__,Ug.__data__):!n6-!Ug}
C||(C=R);for(var f=this._groups,v=f.length,du=Array(v),ts=0;ts<v;++ts){for(var wu=f[ts],C9=wu.length,L6=du[ts]=Array(C9),vJ,xV=0;xV<C9;++xV)if(vJ=wu[xV])L6[xV]=vJ;L6.sort(c)}return(new LJ(du,this._parents)).order()},
call:function(){var C=arguments[0];arguments[0]=this;C.apply(null,arguments);return this},
nodes:function(){var C=Array(this.size()),c=-1;this.each(function(){C[++c]=this});
return C},
node:function(){for(var C=this._groups,c=0,f=C.length;c<f;++c)for(var v=C[c],du=0,ts=v.length;du<ts;++du){var wu=v[du];if(wu)return wu}return null},
size:function(){var C=0;this.each(function(){++C});
return C},
empty:function(){return!this.node()},
each:function(C){for(var c=this._groups,f=0,v=c.length;f<v;++f)for(var du=c[f],ts=0,wu=du.length,C9;ts<wu;++ts)(C9=du[ts])&&C.call(C9,C9.__data__,ts,du);return this},
attr:function(C,c){var f=Y(C);if(arguments.length<2){var v=this.node();return f.local?v.getAttributeNS(f.space,f.local):v.getAttribute(f)}return this.each((c==null?f.local?M:y:typeof c==="function"?f.local?xe:a:f.local?z:H)(f,c))},
style:function(C,c,f){return arguments.length>1?this.each((c==null?ur:typeof c==="function"?gu:eD)(C,c,f==null?"":f)):ir(this.node(),C)},
property:function(C,c){return arguments.length>1?this.each((c==null?SD:typeof c==="function"?mM:HJ)(C,c)):this.node()[C]},
text:function(C){return arguments.length?this.each(C==null?Vu:(typeof C==="function"?Tj:cn)(C)):this.node().textContent},
html:function(C){return arguments.length?this.each(C==null?Uu:(typeof C==="function"?DN:Eg)(C)):this.node().innerHTML},
append:function(C){var c=typeof C==="function"?C:E(C);return this.select(function(){return this.appendChild(c.apply(this,arguments))})},
insert:function(C,c){var f=typeof C==="function"?C:E(C),v=c==null?NN:typeof c==="function"?c:t(c);return this.select(function(){return this.insertBefore(f.apply(this,arguments),v.apply(this,arguments)||null)})},
remove:function(){return this.each(bJ)},
clone:function(C){return this.select(C?Js:MN)},
datum:function(C){return arguments.length?this.property("__data__",C):this.node().__data__},
on:function(C,c,f){var v=hk(C+""),du=v.length,ts;if(arguments.length<2){var wu=this.node().__on;if(wu)for(var C9=0,L6=wu.length,vJ;C9<L6;++C9){var xV=0;for(vJ=wu[C9];xV<du;++xV)if((ts=v[xV]).type===vJ.type&&ts.name===vJ.name)return vJ.value}}else{wu=c?Wn:hc;f==null&&(f=!1);for(xV=0;xV<du;++xV)this.each(wu(v[xV],c,f));return this}},
dispatch:function(C,c){return this.each((typeof c==="function"?YV:o6)(C,c))}};
var v9X=0;p6.prototype=function(){return new p6}.prototype={constructor:p6,
get:function(C){for(var c=this._;!(c in C);)if(!(C=C.parentNode))return;return C[c]},
set:function(C,c){return C[this._]=c},
remove:function(C){return this._ in C&&delete C[this._]},
toString:function(){return this._}};
var J1=1/.7,o9M=/^#([0-9a-f]{3})$/,AA$=/^#([0-9a-f]{6})$/,L1n=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),OCS=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),Xik=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),x5B=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*\\)$"),
shX=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),JAz=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*\\)$"),Bmu={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};
Gj(TM,VM,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
Gj(OB,QM,qQ(TM,{brighter:function(C){C=C==null?J1:Math.pow(J1,C);return new OB(this.r*C,this.g*C,this.b*C,this.opacity)},
darker:function(C){C=C==null?.7:Math.pow(.7,C);return new OB(this.r*C,this.g*C,this.b*C,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"#"+XP(this.r)+XP(this.g)+XP(this.b)},
toString:function(){var C=this.opacity;C=isNaN(C)?1:Math.max(0,Math.min(1,C));return(C===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))+(C===1?")":", "+C+")")}}));
Gj(Re,ko,qQ(TM,{brighter:function(C){C=C==null?J1:Math.pow(J1,C);return new Re(this.h,this.s,this.l*C,this.opacity)},
darker:function(C){C=C==null?.7:Math.pow(.7,C);return new Re(this.h,this.s,this.l*C,this.opacity)},
rgb:function(){var C=this.h%360+(this.h<0)*360,c=this.l,f=c+(c<.5?c:1-c)*(isNaN(C)||isNaN(this.s)?0:this.s);c=2*c-f;return new OB(nL(C>=240?C-240:C+120,c,f),nL(C,c,f),nL(C<120?C+240:C-120,c,f),this.opacity)},
displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));
var M9j=Math.PI/180,keH=180/Math.PI,aTV=4/29,O2=6/29,$Bc=3*O2*O2,PhM=O2*O2*O2;Gj(ru,function(C,c,f,v){return arguments.length===1?aF(C):new ru(C,c,f,v==null?1:v)},qQ(TM,{brighter:function(C){return new ru(this.l+18*(C==null?1:C),this.a,this.b,this.opacity)},
darker:function(C){return new ru(this.l-18*(C==null?1:C),this.a,this.b,this.opacity)},
rgb:function(){var C=(this.l+16)/116,c=isNaN(this.a)?C:C+this.a/500,f=isNaN(this.b)?C:C-this.b/200;c=.96422*zO(c);C=1*zO(C);f=.82521*zO(f);return new OB(S3(3.1338561*c-1.6168667*C-.4906146*f),S3(-.9787684*c+1.9161415*C+.033454*f),S3(.0719453*c-.2289914*C+1.4052427*f),this.opacity)}}));
Gj(wJ,gB,qQ(TM,{brighter:function(C){return new wJ(this.h,this.c,this.l+18*(C==null?1:C),this.opacity)},
darker:function(C){return new wJ(this.h,this.c,this.l-18*(C==null?1:C),this.opacity)},
rgb:function(){return aF(this).rgb()}}));
var UBj=1.78277*-.29227-.1347134789;Gj(CJ,bH,qQ(TM,{brighter:function(C){C=C==null?J1:Math.pow(J1,C);return new CJ(this.h,this.s,this.l*C,this.opacity)},
darker:function(C){C=C==null?.7:Math.pow(.7,C);return new CJ(this.h,this.s,this.l*C,this.opacity)},
rgb:function(){var C=isNaN(this.h)?0:(this.h+120)*M9j,c=+this.l,f=isNaN(this.s)?0:this.s*c*(1-c),v=Math.cos(C);C=Math.sin(C);return new OB(255*(c+f*(-.14861*v+1.78277*C)),255*(c+f*(-.29227*v+-.90649*C)),255*(c+1.97294*v*f),this.opacity)}}));
var OAu=function f(c){function v(ts,wu){var C9=du((ts=QM(ts)).r,(wu=QM(wu)).r),L6=du(ts.g,wu.g),vJ=du(ts.b,wu.b),xV=U$(ts.opacity,wu.opacity);return function(n6){ts.r=C9(n6);ts.g=L6(n6);ts.b=vJ(n6);ts.opacity=xV(n6);return ts+""}}
var du=iW(c);v.gamma=f;return v}(1),X_$=Hb(function(c){var f=c.length-1;
return function(v){var du=v<=0?v=0:v>=1?(v=1,f-1):Math.floor(v*f),ts=c[du],wu=c[du+1];return K_((v-du/f)*f,du>0?c[du-1]:2*ts-wu,ts,wu,du<f-1?c[du+2]:2*wu-ts)}});
Hb(function(c){var f=c.length;return function(v){var du=Math.floor(((v%=1)<0?++v:v)*f);return K_((v-du/f)*f,c[(du+f-1)%f],c[du%f],c[(du+1)%f],c[(du+2)%f])}});
var OO9=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,XPs=new RegExp(OO9.source,"g"),vq6=180/Math.PI,g5p={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},rO,wPe,Wk6,mO9,ss7=k3(function(c){if(c==="none")return g5p;rO||(rO=document.createElement("DIV"),wPe=document.documentElement,Wk6=document.defaultView);rO.style.transform=c;c=Wk6.getComputedStyle(wPe.appendChild(rO),null).getPropertyValue("transform");wPe.removeChild(rO);c=c.slice(7,-1).split(",");return VS(+c[0],+c[1],+c[2],+c[3],
+c[4],+c[5])},"px, ","px)","deg)"),J7Q=k3(function(c){if(c==null)return g5p;
mO9||(mO9=document.createElementNS("http://www.w3.org/2000/svg","g"));mO9.setAttribute("transform",c);if(!(c=mO9.transform.baseVal.consolidate()))return g5p;c=c.matrix;return VS(c.a,c.b,c.c,c.d,c.e,c.f)},", ",")",")");
hE(mJ);hE(U$);Eb(mJ);Eb(U$);kz(mJ);var pP_=kz(U$),XA=0,tL=0,hL=0,rj_,bF,NNu=0,CR=0,iey=0,nt=typeof performance==="object"&&performance.now?performance:Date,oqN=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(c){setTimeout(c,17)};
VK.prototype=Eh.prototype={constructor:VK,restart:function(c,f,v){if(typeof c!=="function")throw new TypeError("ye");v=(v==null?TG():+v)+(f==null?0:+f);this._next||bF===this||(bF?bF._next=this:rj_=this,bF=this);this._call=c;this._time=v;tH()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,tH())}};
var YQM=O("start","end","interrupt"),utX=[],P4S=eZ.prototype.constructor,HA6=0,PK=eZ.prototype;Q4.prototype=function(c){return eZ().transition(c)}.prototype={constructor:Q4,
select:function(c){var f=this._name,v=this._id;typeof c!=="function"&&(c=t(c));for(var du=this._groups,ts=du.length,wu=Array(ts),C9=0;C9<ts;++C9)for(var L6=du[C9],vJ=L6.length,xV=wu[C9]=Array(vJ),n6,Ug,wB=0;wB<vJ;++wB)(n6=L6[wB])&&(Ug=c.call(n6,n6.__data__,wB,L6))&&("__data__"in n6&&(Ug.__data__=n6.__data__),xV[wB]=Ug,xr9(xV[wB],f,v,wB,xV,qI(n6,v)));return new Q4(wu,this._parents,f,v)},
filter:function(c){typeof c!=="function"&&(c=jl6(c));for(var f=this._groups,v=f.length,du=Array(v),ts=0;ts<v;++ts)for(var wu=f[ts],C9=wu.length,L6=du[ts]=[],vJ,xV=0;xV<C9;++xV)(vJ=wu[xV])&&c.call(vJ,vJ.__data__,xV,wu)&&L6.push(vJ);return new Q4(du,this._parents,this._name,this._id)},
merge:function(c){if(c._id!==this._id)throw Error();var f=this._groups;c=c._groups;for(var v=f.length,du=Math.min(v,c.length),ts=Array(v),wu=0;wu<du;++wu)for(var C9=f[wu],L6=c[wu],vJ=C9.length,xV=ts[wu]=Array(vJ),n6,Ug=0;Ug<vJ;++Ug)if(n6=C9[Ug]||L6[Ug])xV[Ug]=n6;for(;wu<v;++wu)ts[wu]=f[wu];return new Q4(ts,this._parents,this._name,this._id)},
selection:function(){return new P4S(this._groups,this._parents)},
transition:function(){for(var c=this._name,f=this._id,v=++HA6,du=this._groups,ts=du.length,wu=0;wu<ts;++wu)for(var C9=du[wu],L6=C9.length,vJ,xV=0;xV<L6;++xV)if(vJ=C9[xV]){var n6=qI(vJ,f);xr9(vJ,c,v,xV,C9,{time:n6.time+n6.delay+n6.duration,delay:0,duration:n6.duration,ease:n6.ease})}return new Q4(du,this._parents,c,v)},
call:PK.call,nodes:PK.nodes,node:PK.node,size:PK.size,empty:PK.empty,each:PK.each,on:function(c,f){var v=this._id;return arguments.length<2?qI(this.node(),v).on.on(c):this.each(rAn(v,c,f))},
attr:function(c,f){var v=Y(c),du=v==="transform"?J7Q:Lk6;return this.attrTween(c,typeof f==="function"?(v.local?bCQ:tKS)(v,du,JMe(this,"attr."+c,f)):f==null?(v.local?eCZ:D5Z)(v):(v.local?npX:EpS)(v,du,f+""))},
attrTween:function(c,f){var v="attr."+c;if(arguments.length<2)return(v=this.tween(v))&&v._value;if(f==null)return this.tween(v,null);if(typeof f!=="function")throw Error();var du=Y(c);return this.tween(v,(du.local?hCJ:SQS)(du,f))},
style:function(c,f,v){var du=c==="transform"?ss7:Lk6;return f==null?this.styleTween(c,GoS(c,du)).on("end.style."+c,l2M(c)):this.styleTween(c,typeof f==="function"?ChS(c,du,JMe(this,"style."+c,f)):cAZ(c,du,f+""),v)},
styleTween:function(c,f,v){var du="style."+c;if(arguments.length<2)return(du=this.tween(du))&&du._value;if(f==null)return this.tween(du,null);if(typeof f!=="function")throw Error();return this.tween(du,F1z(c,f,v==null?"":v))},
text:function(c){return this.tween("text",typeof c==="function"?Qhz(JMe(this,"text",c)):RCZ(c==null?"":c+""))},
remove:function(){return this.on("end.remove",K1Z(this._id))},
tween:function(c,f){var v=this._id;if(arguments.length<2){v=qI(this.node(),v).tween;for(var du=0,ts=v.length,wu;du<ts;++du)if((wu=v[du]).name===c)return wu.value;return null}return this.each((f==null?TqX:VKB)(v,c,f))},
delay:function(c){var f=this._id;return arguments.length?this.each((typeof c==="function"?qQM:gpz)(f,c)):qI(this.node(),f).delay},
duration:function(c){var f=this._id;return arguments.length?this.each((typeof c==="function"?wiX:piX)(f,c)):qI(this.node(),f).duration},
ease:function(c){var f=this._id;return arguments.length?this.each(iCB(f,c)):qI(this.node(),f).ease}};
var iOe={time:null,delay:0,duration:250,ease:function(c){return((c*=2)<=1?c*c*c:(c-=2)*c*c+2)/2}};
eZ.prototype.transition=function(c){var f;if(c instanceof Q4){var v=c._id;c=c._name}else v=++HA6,(f=iOe).time=TG(),c=c==null?null:c+"";for(var du=this._groups,ts=du.length,wu=0;wu<ts;++wu)for(var C9=du[wu],L6=C9.length,vJ,xV=0;xV<L6;++xV)if(vJ=C9[xV]){var n6=vJ,Ug=c,wB=v,Sg=xV,ZM=C9,pL;if(!(pL=f))a:{pL=void 0;for(var f7=v;!(pL=vJ.__transition)||!(pL=pL[f7]);)if(!(vJ=vJ.parentNode)){pL=(iOe.time=TG(),iOe);break a}}xr9(n6,Ug,wB,Sg,ZM,pL)}return new Q4(du,this._parents,c,v)};
["e","w"].map(PvP);["n","s"].map(PvP);"n e s w nw ne se sw".split(" ").map(PvP);drP.prototype=function(){return new drP}.prototype={constructor:drP,
moveTo:function(c,f){this._+="M"+(this._x0=this._x1=+c)+","+(this._y0=this._y1=+f)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(c,f){this._+="L"+(this._x1=+c)+","+(this._y1=+f)},
bezierCurveTo:function(c,f,v,du,ts,wu){this._+="C"+ +c+","+ +f+","+ +v+","+ +du+","+(this._x1=+ts)+","+(this._y1=+wu)},
rect:function(c,f,v,du){this._+="M"+(this._x0=this._x1=+c)+","+(this._y0=this._y1=+f)+"h"+ +v+"v"+ +du+"h"+-v+"Z"},
toString:function(){return this._}};
K7y.prototype=X$V.prototype={constructor:K7y,has:function(c){return" "+c in this},
get:function(c){return this[" "+c]},
set:function(c,f){this[" "+c]=f;return this},
remove:function(c){c=" "+c;return c in this&&delete this[c]},
clear:function(){for(var c in this)c[0]===" "&&delete this[c]},
keys:function(){var c=[],f;for(f in this)f[0]===" "&&c.push(f.slice(1));return c},
values:function(){var c=[],f;for(f in this)f[0]===" "&&c.push(this[f]);return c},
entries:function(){var c=[],f;for(f in this)f[0]===" "&&c.push({key:f.slice(1),value:this[f]});return c},
size:function(){var c=0,f;for(f in this)f[0]===" "&&++c;return c},
empty:function(){for(var c in this)if(c[0]===" ")return!1;return!0},
each:function(c){for(var f in this)f[0]===" "&&c(this[f],f.slice(1),this)}};
var mp=X$V.prototype;GAM.prototype=function(c,f){var v=new GAM;if(c instanceof GAM)c.each(function(wu){v.add(wu)});
else if(c){var du=-1,ts=c.length;if(f==null)for(;++du<ts;)v.add(c[du]);else for(;++du<ts;)v.add(f(c[du],du,c))}return v}.prototype={constructor:GAM,
has:mp.has,add:function(c){this[" "+c]=c;return this},
remove:mp.remove,clear:mp.clear,values:mp.keys,size:mp.size,empty:mp.empty,each:mp.each};var Jac={},YRu={},dBM=slV(",").parse,YUM=slV("\t").parse;P6l(dBM);P6l(YUM);var cD=function(c,f,v){f=new uFe(f==null?yAS:f,v==null?ZCz:v,NaN,NaN,NaN,NaN);return c==null?f:f.addAll(c)}.prototype=uFe.prototype;
cD.copy=function(){var c=new uFe(this._x,this._y,this._x0,this._y0,this._x1,this._y1),f=this._root,v,du;if(!f)return c;if(!f.length)return c._root=YcN(f),c;for(v=[{source:f,target:c._root=Array(4)}];f=v.pop();)for(var ts=0;ts<4;++ts)if(du=f.source[ts])du.length?v.push({source:du,target:f.target[ts]=Array(4)}):f.target[ts]=YcN(du);return c};
cD.add=function(c){var f=+this._x.call(null,c),v=+this._y.call(null,c);return dvN(this.cover(f,v),f,v,c)};
cD.addAll=function(c){var f,v,du=c.length,ts,wu,C9=Array(du),L6=Array(du),vJ=Infinity,xV=Infinity,n6=-Infinity,Ug=-Infinity;for(v=0;v<du;++v)isNaN(ts=+this._x.call(null,f=c[v]))||isNaN(wu=+this._y.call(null,f))||(C9[v]=ts,L6[v]=wu,ts<vJ&&(vJ=ts),ts>n6&&(n6=ts),wu<xV&&(xV=wu),wu>Ug&&(Ug=wu));n6<vJ&&(vJ=this._x0,n6=this._x1);Ug<xV&&(xV=this._y0,Ug=this._y1);this.cover(vJ,xV).cover(n6,Ug);for(v=0;v<du;++v)dvN(this,C9[v],L6[v],c[v]);return this};
cD.cover=function(c,f){if(isNaN(c=+c)||isNaN(f=+f))return this;var v=this._x0,du=this._y0,ts=this._x1,wu=this._y1;if(isNaN(v))ts=(v=Math.floor(c))+1,wu=(du=Math.floor(f))+1;else if(v>c||c>ts||du>f||f>wu){var C9=ts-v,L6=this._root,vJ;switch(vJ=(f<(du+wu)/2)<<1|c<(v+ts)/2){case 0:do{var xV=Array(4);xV[vJ]=L6;L6=xV}while(C9*=2,ts=v+C9,wu=du+C9,c>ts||f>wu);break;case 1:do xV=Array(4),xV[vJ]=L6,L6=xV;while(C9*=2,v=ts-C9,wu=du+C9,v>c||f>wu);break;case 2:do xV=Array(4),xV[vJ]=L6,L6=xV;while(C9*=2,ts=v+C9,
du=wu-C9,c>ts||du>f);break;case 3:do xV=Array(4),xV[vJ]=L6,L6=xV;while(C9*=2,v=ts-C9,du=wu-C9,v>c||du>f)}this._root&&this._root.length&&(this._root=L6)}else return this;this._x0=v;this._y0=du;this._x1=ts;this._y1=wu;return this};
cD.data=function(){var c=[];this.visit(function(f){if(!f.length){do c.push(f.data);while(f=f.next)}});
return c};
cD.extent=function(c){return arguments.length?this.cover(+c[0][0],+c[0][1]).cover(+c[1][0],+c[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
cD.find=function(c,f,v){var du=this._x0,ts=this._y0,wu,C9,L6,vJ,xV=this._x1,n6=this._y1,Ug=[],wB=this._root,Sg;wB&&Ug.push(new ly(wB,du,ts,xV,n6));v==null?v=Infinity:(du=c-v,ts=f-v,xV=c+v,n6=f+v,v*=v);for(;Sg=Ug.pop();)if(!(!(wB=Sg.node)||(wu=Sg.x0)>xV||(C9=Sg.y0)>n6||(L6=Sg.x1)<du||(vJ=Sg.y1)<ts))if(wB.length){Sg=(wu+L6)/2;var ZM=(C9+vJ)/2;Ug.push(new ly(wB[3],Sg,ZM,L6,vJ),new ly(wB[2],wu,ZM,Sg,vJ),new ly(wB[1],Sg,C9,L6,ZM),new ly(wB[0],wu,C9,Sg,ZM));if(wB=(f>=ZM)<<1|c>=Sg)Sg=Ug[Ug.length-1],Ug[Ug.length-
1]=Ug[Ug.length-1-wB],Ug[Ug.length-1-wB]=Sg}else if(Sg=c-+this._x.call(null,wB.data),ZM=f-+this._y.call(null,wB.data),Sg=Sg*Sg+ZM*ZM,Sg<v){var pL=Math.sqrt(v=Sg);du=c-pL;ts=f-pL;xV=c+pL;n6=f+pL;pL=wB.data}return pL};
cD.remove=function(c){if(isNaN(vJ=+this._x.call(null,c))||isNaN(xV=+this._y.call(null,c)))return this;var f,v=this._root,du,ts=this._x0,wu=this._y0,C9=this._x1,L6=this._y1,vJ,xV,n6,Ug,wB,Sg,ZM;if(!v)return this;if(v.length)for(;;){(wB=vJ>=(n6=(ts+C9)/2))?ts=n6:C9=n6;(Sg=xV>=(Ug=(wu+L6)/2))?wu=Ug:L6=Ug;if(!(f=v,v=v[ZM=Sg<<1|wB]))return this;if(!v.length)break;if(f[ZM+1&3]||f[ZM+2&3]||f[ZM+3&3]){var pL=f;var f7=ZM}}for(;v.data!==c;)if(!(du=v,v=v.next))return this;(c=v.next)&&delete v.next;if(du)return c?
du.next=c:delete du.next,this;if(!f)return this._root=c,this;c?f[ZM]=c:delete f[ZM];(v=f[0]||f[1]||f[2]||f[3])&&v===(f[3]||f[2]||f[1]||f[0])&&!v.length&&(pL?pL[f7]=v:this._root=v);return this};
cD.removeAll=function(c){for(var f=0,v=c.length;f<v;++f)this.remove(c[f]);return this};
cD.root=function(){return this._root};
cD.size=function(){var c=0;this.visit(function(f){if(!f.length){do++c;while(f=f.next)}});
return c};
cD.visit=function(c){var f=[],v,du=this._root,ts,wu,C9,L6,vJ;for(du&&f.push(new ly(du,this._x0,this._y0,this._x1,this._y1));v=f.pop();)if(!c(du=v.node,wu=v.x0,C9=v.y0,L6=v.x1,vJ=v.y1)&&du.length){v=(wu+L6)/2;var xV=(C9+vJ)/2;(ts=du[3])&&f.push(new ly(ts,v,xV,L6,vJ));(ts=du[2])&&f.push(new ly(ts,wu,xV,v,vJ));(ts=du[1])&&f.push(new ly(ts,v,C9,L6,xV));(ts=du[0])&&f.push(new ly(ts,wu,C9,v,xV))}};
cD.visitAfter=function(c){var f=[],v=[],du;for(this._root&&f.push(new ly(this._root,this._x0,this._y0,this._x1,this._y1));du=f.pop();){var ts=du.node;if(ts.length){var wu,C9=du.x0,L6=du.y0,vJ=du.x1,xV=du.y1,n6=(C9+vJ)/2,Ug=(L6+xV)/2;(wu=ts[0])&&f.push(new ly(wu,C9,L6,n6,Ug));(wu=ts[1])&&f.push(new ly(wu,n6,L6,vJ,Ug));(wu=ts[2])&&f.push(new ly(wu,C9,Ug,n6,xV));(wu=ts[3])&&f.push(new ly(wu,n6,Ug,vJ,xV))}v.push(du)}for(;du=v.pop();)c(du.node,du.x0,du.y0,du.x1,du.y1);return this};
cD.x=function(c){return arguments.length?(this._x=c,this):this._x};
cD.y=function(c){return arguments.length?(this._y=c,this):this._y};
var zCz=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;Tjd.prototype=Vsd.prototype;Vsd.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 Dvc,elu={"%":function(c,f){return(c*100).toFixed(f)},
b:function(c){return Math.round(c).toString(2)},
c:function(c){return c+""},
d:function(c){return Math.round(c).toString(10)},
e:function(c,f){return c.toExponential(f)},
f:function(c,f){return c.toFixed(f)},
g:function(c,f){return c.toPrecision(f)},
o:function(c){return Math.round(c).toString(8)},
p:function(c,f){return u6l(c*100,f)},
r:u6l,s:function(c,f){var v=lKu(c,f);if(!v)return c+"";var du=v[0];v=v[1];v=v-(Dvc=Math.max(-8,Math.min(8,Math.floor(v/3)))*3)+1;var ts=du.length;return v===ts?du:v>ts?du+Array(v-ts+1).join("0"):v>0?du.slice(0,v)+"."+du.slice(v):"0."+Array(1-v).join("0")+lKu(c,Math.max(0,f+v-1))[0]},
X:function(c){return Math.round(c).toString(16).toUpperCase()},
x:function(c){return Math.round(c).toString(16)}},Vl3="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),uGn;
(function(c){return uGn=BqB(c)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});Ev.prototype={constructor:Ev,reset:function(){this.s=this.t=0},
add:function(c){E1u(fKy,c,this.t);E1u(this,fKy.s,this.s);this.s?this.t+=fKy.t:this.s=fKy.t},
valueOf:function(){return this.s}};
var fKy=new Ev,N7=Math.PI,iE=N7/2,zlJ=N7/4,TmB=N7*2,Nj9=N7/180,mn=Math.abs,rMe=Math.atan,qc3=Math.atan2,Nl=Math.cos,eQ=Math.sin,CKD=Math.sqrt;new Ev;new Ev;new Ev;var Kn9=new Ev;(function(c,f,v,du){return function(ts){function wu(ZW,bs){c(ZW,bs)&&ts.point(ZW,bs)}
function C9(ZW,bs){wB.point(ZW,bs)}
function L6(){mN.point=C9;wB.lineStart()}
function vJ(){mN.point=wu;wB.lineEnd()}
function xV(ZW,bs){YB.push([ZW,bs]);ZM.point(ZW,bs)}
function n6(){ZM.lineStart();YB=[]}
function Ug(){xV(YB[0][0],YB[0][1]);ZM.lineEnd();var ZW=ZM.clean(),bs=Sg.result(),aP=bs.length,oN;YB.pop();f7.push(YB);YB=null;if(aP)if(ZW&1){if(aP=bs[0],(bs=aP.length-1)>0){pL||(ts.polygonStart(),pL=!0);ts.lineStart();for(ZW=0;ZW<bs;++ZW)ts.point((oN=aP[ZW])[0],oN[1]);ts.lineEnd()}}else aP>1&&ZW&2&&bs.push(bs.pop().concat(bs.shift())),yO.push(bs.filter(koB))}
var wB=f(ts),Sg=$5B(),ZM=f(Sg),pL=!1,f7,yO,YB,mN={point:wu,lineStart:L6,lineEnd:vJ,polygonStart:function(){mN.point=xV;mN.lineStart=n6;mN.lineEnd=Ug;yO=[];f7=[]},
polygonEnd:function(){mN.point=wu;mN.lineStart=L6;mN.lineEnd=vJ;var ZW=yO,bs=ZW.length;var aP=-1;for(var oN=0,m$,tE;++aP<bs;)oN+=ZW[aP].length;for(m$=Array(oN);--bs>=0;)for(tE=ZW[bs],aP=tE.length;--aP>=0;)m$[--oN]=tE[aP];yO=m$;ZW=f7;bs=du[0];oN=du[1];var Pf=eQ(oN);aP=[eQ(bs),-Nl(bs),0];tE=m$=0;Kn9.reset();Pf===1?oN=iE+1E-6:Pf===-1&&(oN=-iE-1E-6);Pf=0;for(var rB=ZW.length;Pf<rB;++Pf)if(iO=(yT=ZW[Pf]).length){var yT,iO,Iv=yT[iO-1],st=Iv[0],JB=Iv[1]/2+zlJ,IKe=eQ(JB),BfV=Nl(JB);for(JB=0;JB<iO;++JB,st=
GfD,IKe=MlL,BfV=Kt,Iv=yj_){var yj_=yT[JB],GfD=yj_[0];Kt=yj_[1]/2+zlJ;var MlL=eQ(Kt),Kt=Nl(Kt),dP=GfD-st,lbM=dP>=0?1:-1,cMe=lbM*dP,Zeu=cMe>N7;IKe*=MlL;Kn9.add(qc3(IKe*lbM*eQ(cMe),BfV*Kt+IKe*Nl(cMe)));m$+=Zeu?dP+lbM*TmB:dP;Zeu^st>=bs^GfD>=bs&&(Iv=tlN(n1n(Iv),n1n(yj_)),bA6(Iv),st=tlN(aP,Iv),bA6(st),st=(Zeu^dP>=0?-1:1)*cjr(st[2]),oN>st||oN===st&&(Iv[0]||Iv[1]))&&(tE+=Zeu^dP>=0?1:-1)}}ZW=(m$<-1E-6||m$<1E-6&&Kn9<-1E-6)^tE&1;yO.length?(pL||(ts.polygonStart(),pL=!0),a2X(yO,U5X,ZW,v,ts)):ZW&&(pL||(ts.polygonStart(),
pL=!0),ts.lineStart(),v(null,null,1,ts),ts.lineEnd());pL&&(ts.polygonEnd(),pL=!1);yO=f7=null},
sphere:function(){ts.polygonStart();ts.lineStart();v(null,null,1,ts);ts.lineEnd();ts.polygonEnd()}};
return mN}})(function(){return!0},function(c){var f=NaN,v=NaN,du=NaN,ts;
return{lineStart:function(){c.lineStart();ts=1},
point:function(wu,C9){var L6=wu>0?N7:-N7,vJ=mn(wu-f);if(mn(vJ-N7)<1E-6)c.point(f,v=(v+C9)/2>0?iE:-iE),c.point(du,v),c.lineEnd(),c.lineStart(),c.point(L6,v),c.point(wu,v),ts=0;else if(du!==L6&&vJ>=N7){mn(f-du)<1E-6&&(f-=du*1E-6);mn(wu-L6)<1E-6&&(wu-=L6*1E-6);vJ=f;var xV=v,n6=wu,Ug,wB,Sg=eQ(vJ-n6);v=mn(Sg)>1E-6?rMe((eQ(xV)*(wB=Nl(C9))*eQ(n6)-eQ(C9)*(Ug=Nl(xV))*eQ(vJ))/(Ug*wB*Sg)):(xV+C9)/2;c.point(du,v);c.lineEnd();c.lineStart();c.point(L6,v);ts=0}c.point(f=wu,v=C9);du=L6},
lineEnd:function(){c.lineEnd();f=v=NaN},
clean:function(){return 2-ts}}},function(c,f,v,du){c==null?(v*=iE,du.point(-N7,v),du.point(0,v),du.point(N7,v),du.point(N7,0),du.point(N7,-v),du.point(0,-v),du.point(-N7,-v),du.point(-N7,0),du.point(-N7,v)):mn(c[0]-f[0])>1E-6?(c=c[0]<f[0]?N7:-N7,v=v*c/2,du.point(-c,v),du.point(0,v),du.point(c,v)):du.point(f[0],f[1])},[-N7,
-iE]);new Ev;new Ev;new Ev;new Ev;DrJ.prototype={constructor:DrJ,point:function(c,f){this.stream.point(c,f)},
sphere:function(){this.stream.sphere()},
lineStart:function(){this.stream.lineStart()},
lineEnd:function(){this.stream.lineEnd()},
polygonStart:function(){this.stream.polygonStart()},
polygonEnd:function(){this.stream.polygonEnd()}};
Nl(30*Nj9);(function(c){return function(f){var v=new DrJ,du;for(du in c)v[du]=c[du];v.stream=f;return v}})({point:function(c,f){this.stream.point(c*Nj9,f*Nj9)}});
Sc6(function(c){return CKD(2/(1+c))}).invert=SH(function(c){return 2*cjr(c/2)});
Sc6(function(c){return(c=c>1?0:c<-1?N7:Math.acos(c))&&c/eQ(c)}).invert=SH(function(c){return c});
CKD(3);SH(rMe);SH(cjr);SH(function(c){return 2*rMe(c)});
qi.prototype=g1N.prototype={constructor:qi,count:function(){return this.eachAfter(vpM)},
each:function(c){var f,v=[this],du;do{var ts=v.reverse();for(v=[];f=ts.pop();)if(c(f),f=f.children){var wu=0;for(du=f.length;wu<du;++wu)v.push(f[wu])}}while(v.length);return this},
eachAfter:function(c){for(var f,v=[this],du=[],ts,wu;f=v.pop();)if(du.push(f),f=f.children)for(ts=0,wu=f.length;ts<wu;++ts)v.push(f[ts]);for(;f=du.pop();)c(f);return this},
eachBefore:function(c){for(var f,v=[this],du;f=v.pop();)if(c(f),f=f.children)for(du=f.length-1;du>=0;--du)v.push(f[du]);return this},
sum:function(c){return this.eachAfter(function(f){for(var v=+c(f.data)||0,du=f.children,ts=du&&du.length;--ts>=0;)v+=du[ts].value;f.value=v})},
sort:function(c){return this.eachBefore(function(f){f.children&&f.children.sort(c)})},
path:function(c){var f=this;var v=f;var du=c;if(v!==du){var ts=v.ancestors(),wu=du.ancestors(),C9=null;v=ts.pop();for(du=wu.pop();v===du;)C9=v,v=ts.pop(),du=wu.pop();v=C9}for(du=[f];f!==v;)f=f.parent,du.push(f);for(f=du.length;c!==v;)du.splice(f,0,c),c=c.parent;return du},
ancestors:function(){for(var c=this,f=[c];c=c.parent;)f.push(c);return f},
links:function(){var c=this,f=[];c.each(function(v){v!==c&&f.push({source:v.parent,target:v})});
return f},
copy:function(){return g1N(this).eachBefore(LGS)}};
(function(c,f){this._=c;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=f}).prototype=Object.create(qi.prototype);
var eWu=new Date,E5D=new Date,$vN=s0(function(){},function(c,f){c.setTime(+c+f)},function(c,f){return f-c});
$vN.every=function(c){c=Math.floor(c);return isFinite(c)&&c>0?c>1?s0(function(f){f.setTime(Math.floor(f/c)*c)},function(f,v){f.setTime(+f+v*c)},function(f,v){return(v-f)/c}):$vN:null};
s0(function(c){c.setTime(Math.floor(c/1E3)*1E3)},function(c,f){c.setTime(+c+f*1E3)},function(c,f){return(f-c)/1E3},function(c){return c.getUTCSeconds()});
s0(function(c){c.setTime(Math.floor(c/6E4)*6E4)},function(c,f){c.setTime(+c+f*6E4)},function(c,f){return(f-c)/6E4},function(c){return c.getMinutes()});
s0(function(c){var f=c.getTimezoneOffset()*6E4%36E5;f<0&&(f+=36E5);c.setTime(Math.floor((+c-f)/36E5)*36E5+f)},function(c,f){c.setTime(+c+f*36E5)},function(c,f){return(f-c)/36E5},function(c){return c.getHours()});
var iAg=s0(function(c){c.setHours(0,0,0,0)},function(c,f){c.setDate(c.getDate()+f)},function(c,f){return(f-c-(f.getTimezoneOffset()-c.getTimezoneOffset())*6E4)/864E5},function(c){return c.getDate()-1}),L0k=R0(0),tsP=R0(1);
R0(2);R0(3);var bOd=R0(4);R0(5);R0(6);s0(function(c){c.setDate(1);c.setHours(0,0,0,0)},function(c,f){c.setMonth(c.getMonth()+f)},function(c,f){return f.getMonth()-c.getMonth()+(f.getFullYear()-c.getFullYear())*12},function(c){return c.getMonth()});
var xQ=s0(function(c){c.setMonth(0,1);c.setHours(0,0,0,0)},function(c,f){c.setFullYear(c.getFullYear()+f)},function(c,f){return f.getFullYear()-c.getFullYear()},function(c){return c.getFullYear()});
xQ.every=function(c){return isFinite(c=Math.floor(c))&&c>0?s0(function(f){f.setFullYear(Math.floor(f.getFullYear()/c)*c);f.setMonth(0,1);f.setHours(0,0,0,0)},function(f,v){f.setFullYear(f.getFullYear()+v*c)}):null};
s0(function(c){c.setUTCSeconds(0,0)},function(c,f){c.setTime(+c+f*6E4)},function(c,f){return(f-c)/6E4},function(c){return c.getUTCMinutes()});
s0(function(c){c.setUTCMinutes(0,0,0)},function(c,f){c.setTime(+c+f*36E5)},function(c,f){return(f-c)/36E5},function(c){return c.getUTCHours()});
var p$3=s0(function(c){c.setUTCHours(0,0,0,0)},function(c,f){c.setUTCDate(c.getUTCDate()+f)},function(c,f){return(f-c)/864E5},function(c){return c.getUTCDate()-1}),O2J=Qw(0),n5_=Qw(1);
Qw(2);Qw(3);var hWO=Qw(4);Qw(5);Qw(6);s0(function(c){c.setUTCDate(1);c.setUTCHours(0,0,0,0)},function(c,f){c.setUTCMonth(c.getUTCMonth()+f)},function(c,f){return f.getUTCMonth()-c.getUTCMonth()+(f.getUTCFullYear()-c.getUTCFullYear())*12},function(c){return c.getUTCMonth()});
var s2=s0(function(c){c.setUTCMonth(0,1);c.setUTCHours(0,0,0,0)},function(c,f){c.setUTCFullYear(c.getUTCFullYear()+f)},function(c,f){return f.getUTCFullYear()-c.getUTCFullYear()},function(c){return c.getUTCFullYear()});
s2.every=function(c){return isFinite(c=Math.floor(c))&&c>0?s0(function(f){f.setUTCFullYear(Math.floor(f.getUTCFullYear()/c)*c);f.setUTCMonth(0,1);f.setUTCHours(0,0,0,0)},function(f,v){f.setUTCFullYear(f.getUTCFullYear()+v*c)}):null};
var w$j={"-":"",_:" ",0:"0"},uN=/^\s*\d+/,A7J=/^%/,otJ=/[\\^$*+?|[\]().{}]/g,jZ_;(function(c){jZ_=XBz(c);iuj=jZ_.utcFormat;N0l=jZ_.utcParse;return jZ_})({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||iuj("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||N0l("%Y-%m-%dT%H:%M:%S.%LZ");ex("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
ex("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");ex("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");ex("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");ex("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");ex("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");ex("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
ex("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");ex("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");ex("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");ex("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");ex("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var V9k=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(ex);ZJ(V9k);var DBQ=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(ex);ZJ(DBQ);var esM=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(ex);ZJ(esM);var EqM=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(ex);
ZJ(EqM);var nqS=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(ex);ZJ(nqS);var t9M=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(ex);ZJ(t9M);var b2k=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(ex);ZJ(b2k);var hsz=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(ex);ZJ(hsz);var SU7=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(ex);ZJ(SU7);var qUJ=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(ex);ZJ(qUJ);var gqX=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(ex);ZJ(gqX);var w_S=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(ex);ZJ(w_S);var p_B=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(ex);ZJ(p_B);var i2M=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(ex);ZJ(i2M);var NmJ=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(ex);ZJ(NmJ);var r7M=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(ex);ZJ(r7M);var K0B=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(ex);ZJ(K0B);var GeX=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(ex);ZJ(GeX);var lTM=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(ex);ZJ(lTM);var c7B=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(ex);ZJ(c7B);var C4z=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(ex);ZJ(C4z);var F0S=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(ex);ZJ(F0S);var RsJ=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(ex);ZJ(RsJ);var Qs$=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(ex);ZJ(Qs$);var mBn=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(ex);ZJ(mBn);var fTJ=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(ex);ZJ(fTJ);var ITJ=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(ex);ZJ(ITJ);pP_(bH(300,.5,0),bH(-240,.5,1));pP_(bH(-100,.75,.35),bH(80,1.5,.8));pP_(bH(260,.75,.35),bH(80,1.5,.8));bH();QM();QZp(ex("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
QZp(ex("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
QZp(ex("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
QZp(ex("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
Qlg.prototype={lineStart:function(){this._point=0},
lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(c,f){c=+c;f=+f;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(c,f):this._context.moveTo(c,f);break;case 1:this._point=2;default:this._context.lineTo(c,f)}}};
(function(c){function f(v){return new mvu(c(v))}
f._curve=c;return f})(function(c){return new Qlg(c)});
mvu.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(c,f){this._curve.point(f*Math.sin(c),f*-Math.cos(c))}};
qRu.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:SR9(this,this._t0,IYc(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(c,f){var v=NaN;c=+c;f=+f;if(c!==this._x1||f!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(c,f):this._context.moveTo(c,f);break;case 1:this._point=2;break;case 2:this._point=3;SR9(this,IYc(this,v=fYL(this,c,f)),v);break;default:SR9(this,this._t0,v=fYL(this,c,f))}this._x0=this._x1;this._x1=c;this._y0=this._y1;this._y1=f;this._t0=v}}};
(function(c){this._context=new yau(c)}.prototype=Object.create(qRu.prototype)).point=function(c,f){qRu.prototype.point.call(this,f,c)};
yau.prototype={moveTo:function(c,f){this._context.moveTo(f,c)},
closePath:function(){this._context.closePath()},
lineTo:function(c,f){this._context.lineTo(f,c)},
bezierCurveTo:function(c,f,v,du,ts,wu){this._context.bezierCurveTo(f,c,du,v,wu,ts)}};
iF.prototype={constructor:iF,scale:function(c){return c===1?this:new iF(this.k*c,this.x,this.y)},
translate:function(c,f){return c===0&f===0?this:new iF(this.k,this.x+this.k*c,this.y+this.k*f)},
apply:function(c){return[c[0]*this.k+this.x,c[1]*this.k+this.y]},
invert:function(c){return[(c[0]-this.x)/this.k,(c[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new iF(1,0,0);qVJ=VM;pq.svg=pq.svg;pq.xhtml=pq.xhtml;pq.xlink=pq.xlink;pq.xml=pq.xml;pq.xmlns=pq.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 rIN="hammer_"+(Math.random()*1E6|0),KN6=function(){var A=document||document;if(!A[rIN]){var L=function(){(function(O,X,x,J){function Y(ru,f9,zO){return setTimeout(b(ru,zO),f9)}
function T(ru,f9,zO){return Array.isArray(ru)?(V(ru,zO[f9],zO),!0):!1}
function V(ru,f9,zO){var S3;if(ru)if(ru.forEach)ru.forEach(f9,zO);else if(ru.length!==J){var uJ=0;for(S3=ru.length;uJ<S3;uJ++)f9.call(zO,ru[uJ],uJ,ru)}else for(uJ in ru)ru.hasOwnProperty(uJ)&&f9.call(zO,ru[uJ],uJ,ru)}
function E(ru,f9,zO){for(var S3=Object.keys(f9),uJ=0,cf=S3.length;uJ<cf;uJ++)if(!zO||zO&&ru[S3[uJ]]===J)ru[S3[uJ]]=f9[S3[uJ]];return ru}
function n(ru,f9){return E(ru,f9,!0)}
function t(ru,f9,zO){f9=f9.prototype;var S3=ru.prototype=Object.create(f9);S3.constructor=ru;S3._super=f9;zO&&E(S3,zO)}
function b(ru,f9){return function(){return ru.apply(f9,arguments)}}
function S(ru,f9){return typeof ru=="function"?ru.apply(f9?f9[0]||J:J,f9):ru}
function w(ru,f9,zO){V(F(f9),function(S3){ru.addEventListener(S3,zO,!1)})}
function l(ru,f9,zO){V(F(f9),function(S3){ru.removeEventListener(S3,zO,!1)})}
function F(ru){return ru.trim().split(/\s+/g)}
function R(ru,f9,zO){if(ru.indexOf&&!zO)return ru.indexOf(f9);for(var S3=0,uJ=ru.length;S3<uJ;S3++)if(zO&&ru[S3][zO]==f9||!zO&&ru[S3]===f9)return S3;return-1}
function y(ru,f9,zO){for(var S3=[],uJ=[],cf=0,gB=ru.length;cf<gB;cf++){var wJ=f9?ru[cf][f9]:ru[cf];R(uJ,wJ)<0&&S3.push(ru[cf]);uJ[cf]=wJ}zO&&(S3=f9?S3.sort(function(bH,CJ){return bH[f9]>CJ[f9]}):S3.sort());
return S3}
function M(ru,f9){for(var zO,S3=f9[0].toUpperCase()+f9.slice(1),uJ=0,cf=YV.length;uJ<cf;uJ++)if(zO=(zO=YV[uJ])?zO+S3:f9,zO in ru)return zO;return J}
function H(ru,f9){var zO=this;this.manager=ru;this.callback=f9;this.element=ru.element;this.target=ru.options.inputTarget;this.domHandler=function(S3){S(ru.options.enable,[ru])&&zO.handler(S3)};
this.evEl&&w(this.element,this.evEl,this.domHandler);this.evTarget&&w(this.target,this.evTarget,this.domHandler);this.evWin&&w(O,this.evWin,this.domHandler)}
function z(ru){var f9;pm?f9=HJ:U0?f9=mM:VM?f9=Vu:f9=SD;return new f9(ru,a)}
function a(ru,f9,zO){var S3=zO.pointers.length,uJ=zO.changedPointers.length,cf=f9&1&&S3-uJ===0;zO.isFirst=!!cf;zO.isFinal=!!(f9&12&&S3-uJ===0);cf&&(ru.session={});zO.eventType=f9;f9=ru.session;S3=zO.pointers;uJ=S3.length;f9.firstInput||(f9.firstInput=xe(zO));uJ>1&&!f9.firstMultiple?f9.firstMultiple=xe(zO):uJ===1&&(f9.firstMultiple=!1);cf=f9.firstInput;var gB=(uJ=f9.firstMultiple)?uJ.center:cf.center,wJ=zO.center=ur(S3);zO.timeStamp=Gj();zO.deltaTime=zO.timeStamp-cf.timeStamp;zO.angle=ir(gB,wJ);zO.distance=
gu(gB,wJ);cf=zO.center;gB=f9.offsetDelta||{};wJ=f9.prevDelta||{};var bH=f9.prevInput||{};if(zO.eventType===1||bH.eventType===4)wJ=f9.prevDelta={x:bH.deltaX||0,y:bH.deltaY||0},gB=f9.offsetDelta={x:cf.x,y:cf.y};zO.deltaX=wJ.x+(cf.x-gB.x);zO.deltaY=wJ.y+(cf.y-gB.y);zO.offsetDirection=eD(zO.deltaX,zO.deltaY);uJ?(cf=uJ.pointers,cf=gu(S3[0],S3[1],QM)/gu(cf[0],cf[1],QM)):cf=1;zO.scale=cf;uJ?(uJ=uJ.pointers,S3=ir(S3[1],S3[0],QM)-ir(uJ[1],uJ[0],QM)):S3=0;zO.rotation=S3;gB=f9.lastInterval||zO;S3=zO.timeStamp-
gB.timeStamp;zO.eventType!=8&&(S3>25||gB.velocity===J)?(cf=gB.deltaX-zO.deltaX,gB=gB.deltaY-zO.deltaY,wJ=cf/S3||0,bH=gB/S3||0,S3=wJ,uJ=bH,wJ=p6(wJ)>p6(bH)?wJ:bH,cf=eD(cf,gB),f9.lastInterval=zO):(wJ=gB.velocity,S3=gB.velocityX,uJ=gB.velocityY,cf=gB.direction);zO.velocity=wJ;zO.velocityX=S3;zO.velocityY=uJ;zO.direction=cf;f9=ru.element;a:{for(S3=zO.srcEvent.target;S3;){if(S3==f9){S3=!0;break a}S3=S3.parentNode}S3=!1}S3&&(f9=zO.srcEvent.target);zO.target=f9;ru.emit("hammer.input",zO);ru.recognize(zO);
ru.session.prevInput=zO}
function xe(ru){for(var f9=[],zO=0;zO<ru.pointers.length;zO++)f9[zO]={clientX:eZ(ru.pointers[zO].clientX),clientY:eZ(ru.pointers[zO].clientY)};return{timeStamp:Gj(),pointers:f9,center:ur(f9),deltaX:ru.deltaX,deltaY:ru.deltaY}}
function ur(ru){var f9=ru.length;if(f9===1)return{x:eZ(ru[0].clientX),y:eZ(ru[0].clientY)};for(var zO=0,S3=0,uJ=0;uJ<f9;uJ++)zO+=ru[uJ].clientX,S3+=ru[uJ].clientY;return{x:eZ(zO/f9),y:eZ(S3/f9)}}
function eD(ru,f9){return ru===f9?1:p6(ru)>=p6(f9)?ru>0?2:4:f9>0?8:16}
function gu(ru,f9,zO){zO||(zO=$V);var S3=f9[zO[0]]-ru[zO[0]];ru=f9[zO[1]]-ru[zO[1]];return Math.sqrt(S3*S3+ru*ru)}
function ir(ru,f9,zO){zO||(zO=$V);return Math.atan2(f9[zO[1]]-ru[zO[1]],f9[zO[0]]-ru[zO[0]])*180/Math.PI}
function SD(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;H.apply(this,arguments)}
function HJ(){this.evEl=MF;this.evWin=ko;H.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function mM(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};H.apply(this,arguments)}
function Vu(){H.apply(this,arguments);var ru=b(this.handler,this);this.touch=new mM(this.manager,ru);this.mouse=new SD(this.manager,ru)}
function cn(ru,f9){this.manager=ru;this.set(f9)}
function Tj(ru){if(ru.indexOf("none")>-1)return"none";var f9=ru.indexOf("pan-x")>-1,zO=ru.indexOf("pan-y")>-1;return f9&&zO?"pan-x pan-y":f9||zO?f9?"pan-x":"pan-y":ru.indexOf("manipulation")>-1?"manipulation":"auto"}
function Uu(ru){this.id=qQ++;this.manager=null;this.options=n(ru||{},this.defaults);ru=this.options.enable;this.options.enable=ru===J?!0:ru;this.state=1;this.simultaneous={};this.requireFail=[]}
function Eg(ru){return ru==16?"down":ru==8?"up":ru==2?"left":ru==4?"right":""}
function DN(ru,f9){return(f9=f9.manager)?f9.get(ru):ru}
function NN(){Uu.apply(this,arguments)}
function bJ(){NN.apply(this,arguments);this.pY=this.pX=null}
function MN(){NN.apply(this,arguments)}
function Js(){Uu.apply(this,arguments);this._input=this._timer=null}
function XL(){NN.apply(this,arguments)}
function gJ(){NN.apply(this,arguments)}
function hk(){Uu.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function hc(ru,f9){f9=f9||{};var zO=f9.recognizers;f9.recognizers=zO===J?hc.defaults.preset:zO;return new Wn(ru,f9)}
function Wn(ru,f9){f9=f9||{};this.options=n(f9,hc.defaults);this.options.inputTarget=this.options.inputTarget||ru;this.handlers={};this.session={};this.recognizers=[];this.element=ru;this.input=z(this);this.touchAction=new cn(this,this.options.touchAction);X0(this,!0);V(f9.recognizers,function(zO){var S3=this.add(new zO[0](zO[1]));zO[2]&&S3.recognizeWith(zO[2]);zO[3]&&S3.requireFailure(zO[2])},this)}
function X0(ru,f9){var zO=ru.element;V(ru.options.cssProps,function(S3,uJ){zO.style[M(zO.style,uJ)]=f9?S3:""})}
function o6(ru,f9){var zO=X.createEvent("Event");zO.initEvent(ru,!0,!0);zO.gesture=f9;f9.target.dispatchEvent(zO)}
var YV=" webkit moz MS ms o".split(" "),LJ=X.createElement("div"),eZ=Math.round,p6=Math.abs,Gj=Date.now,qQ=1,TM=/mobile|tablet|ip(ad|hone|od)|android/i,VM="ontouchstart"in O,pm=M(O,"PointerEvent")!==J,U0=VM&&TM.test(navigator.userAgent),$V=["x","y"],QM=["clientX","clientY"];H.prototype={handler:function(){},
destroy:function(){this.evEl&&l(this.element,this.evEl,this.domHandler);this.evTarget&&l(this.target,this.evTarget,this.domHandler);this.evWin&&l(O,this.evWin,this.domHandler)}};
var OB={mousedown:1,mousemove:2,mouseup:4};t(SD,H,{handler:function(ru){var f9=OB[ru.type];f9&1&&ru.button===0&&(this.pressed=!0);f9&2&&ru.which!==1&&(f9=4);this.pressed&&this.allow&&(f9&4&&(this.pressed=!1),this.callback(this.manager,f9,{pointers:[ru],changedPointers:[ru],pointerType:"mouse",srcEvent:ru}))}});
var XP={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},gR={2:"touch",3:"pen",4:"mouse",5:"kinect"},MF="pointerdown",ko="pointermove pointerup pointercancel";O.MSPointerEvent&&(MF="MSPointerDown",ko="MSPointerMove MSPointerUp MSPointerCancel");t(HJ,H,{handler:function(ru){var f9=this.store,zO=!1,S3=ru.type.toLowerCase().replace("ms","");S3=XP[S3];var uJ=gR[ru.pointerType]||ru.pointerType;S3&1&&(ru.button===0||uJ=="touch")?f9.push(ru):S3&12&&(zO=!0);var cf=R(f9,ru.pointerId,"pointerId");
cf<0||(f9[cf]=ru,this.callback(this.manager,S3,{pointers:f9,changedPointers:[ru],pointerType:uJ,srcEvent:ru}),zO&&f9.splice(cf,1))}});
var Re={touchstart:1,touchmove:2,touchend:4,touchcancel:8};t(mM,H,{handler:function(ru){var f9=Re[ru.type];var zO=Array.prototype.slice.call(ru.touches,0);var S3=this.targetIds;if(f9&3&&zO.length===1)S3[zO[0].identifier]=!0,S3=[zO,zO];else{var uJ,cf=Array.prototype.slice.call(ru.targetTouches,0),gB=Array.prototype.slice.call(ru.changedTouches,0),wJ=[];if(f9===1)for(zO=0,uJ=cf.length;zO<uJ;zO++)S3[cf[zO].identifier]=!0;zO=0;for(uJ=gB.length;zO<uJ;zO++)S3[gB[zO].identifier]&&wJ.push(gB[zO]),f9&12&&
delete S3[gB[zO].identifier];S3=wJ.length?[y(cf.concat(wJ),"identifier",!0),wJ]:void 0}S3&&this.callback(this.manager,f9,{pointers:S3[0],changedPointers:S3[1],pointerType:"touch",srcEvent:ru})}});
t(Vu,H,{handler:function(ru,f9,zO){var S3=zO.pointerType=="mouse";if(zO.pointerType=="touch")this.mouse.allow=!1;else if(S3&&!this.mouse.allow)return;f9&12&&(this.mouse.allow=!0);this.callback(ru,f9,zO)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var nL=M(LJ.style,"touchAction"),aF=nL!==J;cn.prototype={set:function(ru){ru=="compute"&&(ru=this.compute());aF&&(this.manager.element.style[nL]=ru);this.actions=ru.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var ru=[];V(this.manager.recognizers,function(f9){S(f9.options.enable,[f9])&&(ru=ru.concat(f9.getTouchAction()))});
return Tj(ru.join(" "))},
preventDefaults:function(ru){if(!aF){var f9=ru.srcEvent;ru=ru.offsetDirection;if(this.manager.session.prevented)f9.preventDefault();else{var zO=this.actions,S3=zO.indexOf("none")>-1,uJ=zO.indexOf("pan-y")>-1;zO=zO.indexOf("pan-x")>-1;if(S3||uJ&&zO||uJ&&ru&6||zO&&ru&24)return this.preventSrc(f9)}}},
preventSrc:function(ru){this.manager.session.prevented=!0;ru.preventDefault()}};
Uu.prototype={defaults:{},set:function(ru){E(this.options,ru);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(ru){if(T(ru,"recognizeWith",this))return this;var f9=this.simultaneous;ru=DN(ru,this);f9[ru.id]||(f9[ru.id]=ru,ru.recognizeWith(this));return this},
dropRecognizeWith:function(ru){if(T(ru,"dropRecognizeWith",this))return this;ru=DN(ru,this);delete this.simultaneous[ru.id];return this},
requireFailure:function(ru){if(T(ru,"requireFailure",this))return this;var f9=this.requireFail;ru=DN(ru,this);R(f9,ru)===-1&&(f9.push(ru),ru.requireFailure(this));return this},
dropRequireFailure:function(ru){if(T(ru,"dropRequireFailure",this))return this;ru=DN(ru,this);ru=R(this.requireFail,ru);ru>-1&&this.requireFail.splice(ru,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(ru){return!!this.simultaneous[ru.id]},
emit:function(ru){function f9(uJ){zO.manager.emit(zO.options.event+(uJ?S3&16?"cancel":S3&8?"end":S3&4?"move":S3&2?"start":"":""),ru)}
var zO=this,S3=this.state;S3<8&&f9(!0);f9();S3>=8&&f9(!0)},
tryEmit:function(ru){if(this.canEmit())return this.emit(ru);this.state=32},
canEmit:function(){for(var ru=0;ru<this.requireFail.length;ru++)if(!(this.requireFail[ru].state&33))return!1;return!0},
recognize:function(ru){ru=E({},ru);S(this.options.enable,[this,ru])?(this.state&56&&(this.state=1),this.state=this.process(ru),this.state&30&&this.tryEmit(ru)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
t(NN,Uu,{defaults:{pointers:1},attrTest:function(ru){var f9=this.options.pointers;return f9===0||ru.pointers.length===f9},
process:function(ru){var f9=this.state,zO=ru.eventType,S3=f9&6;ru=this.attrTest(ru);return S3&&(zO&8||!ru)?f9|16:S3||ru?zO&4?f9|8:f9&2?f9|4:2:32}});
t(bJ,NN,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var ru=this.options.direction;if(ru===30)return["none"];var f9=[];ru&6&&f9.push("pan-y");ru&24&&f9.push("pan-x");return f9},
directionTest:function(ru){var f9=this.options,zO=!0,S3=ru.distance,uJ=ru.direction,cf=ru.deltaX,gB=ru.deltaY;uJ&f9.direction||(f9.direction&6?(uJ=cf===0?1:cf<0?2:4,zO=cf!=this.pX,S3=Math.abs(ru.deltaX)):(uJ=gB===0?1:gB<0?8:16,zO=gB!=this.pY,S3=Math.abs(ru.deltaY)));ru.direction=uJ;return zO&&S3>f9.threshold&&uJ&f9.direction},
attrTest:function(ru){return NN.prototype.attrTest.call(this,ru)&&(this.state&2||!(this.state&2)&&this.directionTest(ru))},
emit:function(ru){this.pX=ru.deltaX;this.pY=ru.deltaY;var f9=Eg(ru.direction);f9&&this.manager.emit(this.options.event+f9,ru);this._super.emit.call(this,ru)}});
t(MN,NN,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(ru){return this._super.attrTest.call(this,ru)&&(Math.abs(ru.scale-1)>this.options.threshold||this.state&2)},
emit:function(ru){this._super.emit.call(this,ru);ru.scale!==1&&this.manager.emit(this.options.event+(ru.scale<1?"in":"out"),ru)}});
t(Js,Uu,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(ru){var f9=this.options,zO=ru.pointers.length===f9.pointers,S3=ru.distance<f9.threshold,uJ=ru.deltaTime>f9.time;this._input=ru;if(!S3||!zO||ru.eventType&12&&!uJ)this.reset();else if(ru.eventType&1)this.reset(),this._timer=Y(function(){this.state=8;this.tryEmit()},f9.time,this);
else if(ru.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(ru){this.state===8&&(ru&&ru.eventType&4?this.manager.emit(this.options.event+"up",ru):(this._input.timeStamp=Gj(),this.manager.emit(this.options.event,this._input)))}});
t(XL,NN,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(ru){return this._super.attrTest.call(this,ru)&&(Math.abs(ru.rotation)>this.options.threshold||this.state&2)}});
t(gJ,NN,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return bJ.prototype.getTouchAction.call(this)},
attrTest:function(ru){var f9=this.options.direction;if(f9&30)var zO=ru.velocity;else f9&6?zO=ru.velocityX:f9&24&&(zO=ru.velocityY);return this._super.attrTest.call(this,ru)&&f9&ru.direction&&p6(zO)>this.options.velocity&&ru.eventType&4},
emit:function(ru){var f9=Eg(ru.direction);f9&&this.manager.emit(this.options.event+f9,ru);this.manager.emit(this.options.event,ru)}});
t(hk,Uu,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(ru){var f9=this.options,zO=ru.pointers.length===f9.pointers,S3=ru.distance<f9.threshold,uJ=ru.deltaTime<f9.time;this.reset();if(ru.eventType&1&&this.count===0)return this.failTimeout();if(S3&&uJ&&zO){if(ru.eventType!=4)return this.failTimeout();zO=this.pTime?ru.timeStamp-this.pTime<f9.interval:!0;S3=!this.pCenter||gu(this.pCenter,ru.center)<f9.posThreshold;this.pTime=ru.timeStamp;this.pCenter=ru.center;S3&&zO?this.count+=1:this.count=1;this._input=ru;if(this.count%f9.taps===0)return this.hasRequireFailures()?
(this._timer=Y(function(){this.state=8;this.tryEmit()},f9.interval,this),2):8}return 32},
failTimeout:function(){this._timer=Y(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))}});
hc.VERSION="2.0.2";hc.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[XL,{enable:!1}],[MN,{enable:!1},["rotate"]],[gJ,{direction:6}],[bJ,{direction:6},["swipe"]],[hk],[hk,{event:"doubletap",taps:2},["tap"]],[Js]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};Wn.prototype={set:function(ru){E(this.options,ru);return this},
stop:function(ru){this.session.stopped=ru?2:1},
recognize:function(ru){var f9=this.session;if(!f9.stopped){this.touchAction.preventDefaults(ru);var zO=this.recognizers,S3=f9.curRecognizer;if(!S3||S3&&S3.state&8)S3=f9.curRecognizer=null;for(var uJ=0,cf=zO.length;uJ<cf;uJ++){var gB=zO[uJ];f9.stopped===2||S3&&gB!=S3&&!gB.canRecognizeWith(S3)?gB.reset():gB.recognize(ru);!S3&&gB.state&14&&(S3=f9.curRecognizer=gB)}}},
get:function(ru){if(ru instanceof Uu)return ru;for(var f9=this.recognizers,zO=0;zO<f9.length;zO++)if(f9[zO].options.event==ru)return f9[zO];return null},
add:function(ru){if(T(ru,"add",this))return this;var f9=this.get(ru.options.event);f9&&this.remove(f9);this.recognizers.push(ru);ru.manager=this;this.touchAction.update();return ru},
remove:function(ru){if(T(ru,"remove",this))return this;var f9=this.recognizers;ru=this.get(ru);f9.splice(R(f9,ru),1);this.touchAction.update();return this},
on:function(ru,f9){var zO=this.handlers;V(F(ru),function(S3){zO[S3]=zO[S3]||[];zO[S3].push(f9)});
return this},
off:function(ru,f9){var zO=this.handlers;V(F(ru),function(S3){f9?zO[S3].splice(R(zO[S3],f9),1):delete zO[S3]});
return this},
emit:function(ru,f9){this.options.domEvents&&o6(ru,f9);var zO=this.handlers[ru]&&this.handlers[ru].slice();if(zO&&zO.length){f9.type=ru;f9.preventDefault=function(){f9.srcEvent.preventDefault()};
ru=0;for(var S3=zO.length;ru<S3;ru++)zO[ru](f9)}},
destroy:function(){this.element&&X0(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
E(hc,{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:Wn,Input:H,TouchAction:cn,Recognizer:Uu,AttrRecognizer:NN,Tap:hk,Pan:bJ,Swipe:gJ,Pinch:MN,Rotate:XL,Press:Js,on:w,off:l,each:V,merge:n,extend:E,inherit:t,bindFn:b,prefixed:M});
O[x]=hc})(window,document,"Hammer");
return window.Hammer}.call({});
L.DOCUMENT=A;A[rIN]=L}return A[rIN]};/*

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

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 ouV;_.vu7="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");ouV=function(){var A=[],L;var O=O||_.vu7.length;for(L=0;L<8;L++)A[L]=_.vu7[0|Math.random()*O];return A.join("")};var PbD=function(){return Math.random().toString(36).substring(7).split("").join(".")},JQe="@@redux/INIT"+PbD(),ued="@@redux/REPLACE"+PbD();var T_d=typeof Symbol==="function"&&Symbol.observable||"@@observable";var AC3=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var LB3="top right bottom left width height size weight".split(" "),Ovu=typeof MutationObserver!=="undefined",XCl=AC3&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,xwV=function(){this.mutationEventsAdded_=this.JSC$12722_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=V7M(this.refresh.bind(this))},sGc=function(A,
L){var O=A.observers_;
L=O.indexOf(L);~L&&O.splice(L,1);!O.length&&A.JSC$12722_connected_&&AC3&&A.JSC$12722_connected_&&(document.removeEventListener("transitionend",A.onTransitionEnd_),window.removeEventListener("resize",A.refresh),A.mutationsObserver_&&(A.mutationsObserver_.disconnect(),XCl&&(HTMLElement.prototype.attachShadow=XCl)),A.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",A.refresh),A.mutationsObserver_=null,A.mutationEventsAdded_=!1,A.JSC$12722_connected_=!1)};
xwV.prototype.refresh=function(){JCL(this)&&this.refresh()};
var JCL=function(A){A=A.observers_.filter(function(L){return PI6(L),L.activeObservations_.length>0});
A.forEach(function(L){return dw6(L)});
return A.length>0},Yfc=function(A){if(AC3&&!A.JSC$12722_connected_){document.addEventListener("transitionend",A.onTransitionEnd_);
window.addEventListener("resize",A.refresh);if(Ovu){A.mutationsObserver_=new MutationObserver(A.refresh);var L={attributes:!0,childList:!0,characterData:!0,subtree:!0};A.mutationsObserver_.observe(document,L);XCl&&(function x(X){var J=X.shadowRoot;J&&(A.mutationsObserver_.observe(J,L),x(J));for(X=X.firstElementChild;X;)x(X),X=X.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var X=XCl.apply(this,_.f_.apply(0,arguments));
A.mutationsObserver_.observe(X,L);return X})}else document.addEventListener("DOMSubtreeModified",A.refresh),A.mutationEventsAdded_=!0;
A.JSC$12722_connected_=!0}};
xwV.prototype.onTransitionEnd_=function(A){var L=A.propertyName===void 0?"":A.propertyName;LB3.some(function(O){return!!~L.indexOf(O)})&&this.refresh()};
var ug7=null;var T1n=function(A,L){for(var O=_.d(Object.keys(L)),X=O.next();!X.done;X=O.next())X=X.value,Object.defineProperty(A,X,{value:L[X],enumerable:!1,writable:!1,configurable:!0})};var Wi=function(A){var L;return(A==null?void 0:(L=A.ownerDocument)==null?void 0:L.defaultView)||globalThis};var VEV={x:0,y:0,width:0,height:0},Dw3=typeof SVGGraphicsElement!=="undefined"?function(A){return A instanceof Wi(A).SVGGraphicsElement}:function(A){return A instanceof Wi(A).SVGElement&&typeof A.getBBox==="function"};var eOJ=function(A){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=A};
eOJ.prototype.isActive=function(){var A=this.target;if(AC3)if(Dw3(A)){var L=A.getBBox();L={x:0,y:0,width:L.width,height:L.height}}else{var O=A.clientWidth,X=A.clientHeight;if(O||X){var x=Wi(A).getComputedStyle(A);L=nh(x["padding-top"]);var J=nh(x["padding-left"]),Y=J+nh(x["padding-right"]),T=L+nh(x["padding-bottom"]),V=nh(x.width),E=nh(x.height);x.boxSizing==="border-box"&&(Math.round(V+Y)!==O&&(V-=DJu(x,"left","right")+Y),Math.round(E+T)!==X&&(E-=DJu(x,"top","bottom")+T));A!==Wi(A).document.documentElement&&
(A=Math.round(V+Y)-O,X=Math.round(E+T)-X,Math.abs(A)!==1&&(V-=A),Math.abs(X)!==1&&(E-=X));L={x:J,y:L,width:V,height:E}}else L=VEV}else L=VEV;this.contentRect_=L;return L.width!==this.broadcastWidth||L.height!==this.broadcastHeight};var Efg=function(A,L){var O=L.x;var X=L.y;var x=L.width;L=L.height;var J=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);T1n(J,{x:O,y:X,width:x,height:L,top:X,right:O+x,bottom:L+X,left:O});T1n(this,{target:A,contentRect:J})};var nfH=function(A,L){var O=ug7;this.activeObservations_=[];this.observations_=new Map;if(typeof A!=="function")throw new TypeError("Pe");this.callback_=A;this.controller_=O;this.callbackCtx_=L};
nfH.prototype.observe=function(A){if(A===void 0)throw new TypeError("Qe");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(A instanceof Wi(A).Element))throw new TypeError("Re");var L=this.observations_;L.has(A)||(L.set(A,new eOJ(A)),A=this.controller_,~A.observers_.indexOf(this)||A.observers_.push(this),A.JSC$12722_connected_||Yfc(A),this.controller_.refresh())}};
nfH.prototype.unobserve=function(A){if(A===void 0)throw new TypeError("Qe");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(A instanceof Wi(A).Element))throw new TypeError("Re");var L=this.observations_;L.has(A)&&(L.delete(A),L.size||sGc(this.controller_,this))}};
nfH.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();sGc(this.controller_,this)};
var PI6=function(A){A.activeObservations_.splice(0);A.observations_.forEach(function(L){L.isActive()&&A.activeObservations_.push(L)})},dw6=function(A){if(A.activeObservations_.length>0){var L=A.callbackCtx_,O=A.activeObservations_.map(function(X){var x=X.target,J=X.contentRect_;
X.broadcastWidth=J.width;X.broadcastHeight=J.height;return new Efg(x,J)});
A.callback_.call(L,O,L);A.activeObservations_.splice(0)}};var Hi=function(A){if(!(this instanceof Hi))throw new TypeError("Se");if(!arguments.length)throw new TypeError("Qe");ug7||(ug7=new xwV);this.observer_=new nfH(A,this)};
Hi.prototype.observe=function(A){this.observer_.observe(A)};
Hi.prototype.unobserve=function(A){this.observer_.unobserve(A)};
Hi.prototype.disconnect=function(){this.observer_.disconnect()};var ur_=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:Hi;var qMP="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(" "),SMM={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},hJ9=null,eJp=null;var gFe={},wbM=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 ltO={text:1},N_p={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var tEH=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,bvu={CONSTANT:{isUnwrappable:function(A){return A instanceof mx},
unwrap:dQn},JAVASCRIPT:{isUnwrappable:function(A){return A instanceof _.M0},
unwrap:JnM},HTML:{isUnwrappable:function(A){return A instanceof ZD},
unwrap:function(A){return Wf(A)}},
RESOURCE_URL:{isUnwrappable:function(A){return A instanceof q0},
unwrap:_.ww},STRING:{isUnwrappable:function(A){return A instanceof Object},
unwrap:function(A){return String(A)}},
STYLE:{isUnwrappable:function(A){return typeof A==="string"},
unwrap:function(A){return A}},
URL:{isUnwrappable:function(A){return rw(A)},
unwrap:_.G2}},hO6={CONSTANT:cQp,JAVASCRIPT:cQp,HTML:function(A){A=A instanceof ZD?A:jg(String(A).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return Wf(A)},
RESOURCE_URL:cQp,STRING:String,STYLE:cQp,URL:function(A,L){A=tEH.test(A)?A:void 0;return A===void 0?L:A}};var WSd=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,Cb9=/[\t\n\f\r ]+/,RJd=/[\t\n\f\r ,]+/g,mJO=function(A,L,O){return O},Sf={},Sfu=function(){var A=function(){var X={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",X):X}(),L=A.createHTML(""),O=A.createScript("");
A=A.createScriptURL("");return{INNOCUOUS_STRING:L,INNOCUOUS_SCRIPT:O,INNOCUOUS_URL:A}}(),h9=Sfu.INNOCUOUS_STRING,j$r=Sfu.INNOCUOUS_SCRIPT,Zcu=Sfu.INNOCUOUS_URL;var qfl=function(A){var L=Hc9(A);return function(O,X,x,J){return J?L(J,X,x,O):h9}}({reportHandler:function(A,L){if(A)try{throw Error(L);
}catch(O){_.C7(O)}},
safeTypesBridge:function(A,L,O){var X=bvu[L];return X.isUnwrappable(A)&&(X=X.unwrap(A,O),X!==O)?X:(0,hO6[L])(String(A),O)},
allowedIdentifierPrefixes:[""]});if(hl!==void 0)throw Error("Te");hl=qfl;if(hl!==qfl)throw Error("Ue");qA("Injectable",[]);var nID=qA("Inject",[["token",void 0]]),bne=qA("Optional",[]);qA("Injectable",[]);var hj9=qA("Self",[]),S1P=qA("SkipSelf",[]);qA("Host",[]);var gfn={},wCc=function(){};
wCc.prototype.resolve=function(){throw Error("We");};
wCc.prototype.addProvider=function(){throw Error("We");};var eju=Function;var pCj=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,ivN=function(){this._reflect=window.Reflect};
_.P=ivN.prototype;_.P.factory=function(A){return function(){return new (Function.prototype.bind.apply(A,[null].concat(_.le(_.f_.apply(0,arguments)))))}};
_.P._zipTypesAndAnnotations=function(A,L){var O=typeof A==="undefined"?Array(L.length):Array(A.length);for(var X=0;X<O.length;X++)O[X]=typeof A==="undefined"?[]:A[X]!=Object?[A[X]]:[],L&&B_d(L[X])&&(O[X]=O[X].concat(L[X]));return O};
_.P._ownParameters=function(A,L){if(pCj.exec(A.toString()))return null;if(A.parameters&&A.parameters!==L.parameters)return A.parameters;var O=A.ctorParameters;return O&&O!==L.ctorParameters?(L=typeof O==="function"?O():O,A=L.map(function(X){return X&&X.type}),L=L.map(function(X){return X&&$Js(X.decorators)}),this._zipTypesAndAnnotations(A,L)):B_d(this._reflect)&&B_d(this._reflect.getOwnMetadata)&&(L=this._reflect.getOwnMetadata("parameters",A),(O=this._reflect.getOwnMetadata("design:paramtypes",A))||
L)?this._zipTypesAndAnnotations(O,L):Array(A.length).fill(void 0)};
_.P.parameters=function(A){if(!A.prototype)return[];var L=Object.getPrototypeOf(A.prototype).constructor;(A=this._ownParameters(A,L))||L===Object||(A=this.parameters(L));return A||[]};
_.P._ownAnnotations=function(A,L){if(A.annotations&&A.annotations!==L.annotations)return A=A.annotations,typeof A==="function"&&A.annotations&&(A=A.annotations),A;if(A.decorators&&A.decorators!==L.decorators)return $Js(A.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",A)};
_.P.annotations=function(A){var L=Object.getPrototypeOf(A.prototype).constructor;A=this._ownAnnotations(A,L)||[];return(L!==Object?this.annotations(L):[]).concat(A)};
_.P._ownPropMetadata=function(A,L){if(A.propMetadata&&A.propMetadata!==L.propMetadata)return A=A.propMetadata,typeof A==="function"&&A.propMetadata&&(A=A.propMetadata),A;if(A.propDecorators&&A.propDecorators!==L.propDecorators){var O=A.propDecorators,X={};Object.keys(O).forEach(function(x){X[x]=$Js(O[x])});
return X}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",A)};
_.P.propMetadata=function(A){var L=Object.getPrototypeOf(A.prototype).constructor,O={};if(L!==Object){var X=this.propMetadata(L);Object.keys(X).forEach(function(J){O[J]=X[J]})}var x=this._ownPropMetadata(A,L);
x&&Object.keys(x).forEach(function(J){var Y=[];O.hasOwnProperty(J)&&Y.push.apply(Y,_.le(O[J]));Y.push.apply(Y,_.le(x[J]));O[J]=Y});
return O};
_.P.getter=function(A){return function(L){return L[A]}};
_.P.setter=function(A){return function(L,O){return L[A]=O}};
_.P.method=function(A){return function(L,O){if(!L[A])throw Error("Xe`"+A);return L[A].apply(L,O)}};var N1j=function(){};var rCl=function(A){this.reflectionCapabilities=A};
_.g(rCl,N1j);_.P=rCl.prototype;_.P.factory=function(A){return this.reflectionCapabilities.factory(A)};
_.P.parameters=function(A){return this.reflectionCapabilities.parameters(A)};
_.P.annotations=function(A){return this.reflectionCapabilities.annotations(A)};
_.P.propMetadata=function(A){return this.reflectionCapabilities.propMetadata(A)};
_.P.getter=function(A){return this.reflectionCapabilities.getter(A)};
_.P.setter=function(A){return this.reflectionCapabilities.setter(A)};
_.P.method=function(A){return this.reflectionCapabilities.method(A)};var X9D=new rCl(new ivN);var zo=function(A,L){this.token=A;this.id=L;if(A===void 0||A===null)throw Error("bf");};
_.v2.Object.defineProperties(zo.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return g6(this.token)}}});
_.v2.Object.defineProperties(zo,{JSC$12764_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return ph.JSC$12768_numberOfKeys}}});
var KB7=function(){this._allKeys=new Map};
KB7.prototype.get=function(A){if(A instanceof zo)return A;if(this._allKeys.has(A))return this._allKeys.get(A);var L=new zo(A,zo.JSC$12764_numberOfKeys);this._allKeys.set(A,L);return L};
_.v2.Object.defineProperties(KB7.prototype,{JSC$12768_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var ph=new KB7;var q1D=function(A,L,O){this.key=A;this.optional=L;this.visibility=O},sLO=function(A){return new q1D(A,!1,null)},P5r=[],u_9=function(A,L,O){this.key=A;
this.resolvedFactories=L;this.multiProvider=O},dIr=function(A,L,O,X){this.factory=A;
this.dependencies=L;this.providerClass=O;this.providerValue=X};var Bi={},M5=function(A,L){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=L===void 0?null:L;A=_.d(A);for(L=A.next();!L.done;L=A.next())this.addProvider(L.value)};
_.P=M5.prototype;_.P.addProvider=function(A){this.keyIdToIndex.set(A.key.id,this.keyIds.length);this.providers.push(A);this.keyIds.push(A.key.id);this.objs.push(Bi)};
_.P.resolve=function(A,L){L=L===void 0?gfn:L;return this._getByKey(ph.get(w6(A)),null,L)};
_.P._new=function(A){if(this.constructedKeyIds[A.key.id])throw AwD(this,A.key);this.constructedKeyIds[A.key.id]=!0;return this._instantiateProvider(A)};
_.P._instantiateProvider=function(A){if(A.multiProvider){for(var L=Array(A.resolvedFactories.length),O=0;O<A.resolvedFactories.length;++O)L[O]=this._instantiate(A,A.resolvedFactories[O]);return L}return this._instantiate(A,A.resolvedFactories[0])};
_.P._instantiate=function(A,L){var O=this,X=L.factory;try{var x=L.dependencies.map(function(Y){return O._getByReflectiveDependency(Y)})}catch(Y){throw Y.addKey&&Y.addKey(this,A.key),Y;
}try{var J=X.apply(null,_.le(x))}catch(Y){throw LZO(this,Y,A.key);}return J};
_.P._getByReflectiveDependency=function(A){return this._getByKey(A.key,A.visibility,A.optional?null:gfn)};
_.P._getByKey=function(A,L,O){return A===GR6?this:L instanceof hj9?this._getByKeySelf(A,O):this._getByKeyDefault(A,O,L)};
_.P._getObjByKeyId=function(A){for(var L=0;L<this.keyIds.length;L++)if(this.keyIds[L]===A)return this.objs[L]===Bi&&(this.objs[L]=this._new(this.providers[L])),this.objs[L];return Bi};
_.P._throwOrNull=function(A,L){if(L!==gfn)return L;throw oFJ(this,A);};
_.P._getByKeySelf=function(A,L){var O=this._getObjByKeyId(A.id);return O!==Bi?O:this._throwOrNull(A,L)};
_.P._getByKeyDefault=function(A,L,O){for(var X=O=O instanceof S1P?this.parent:this;O instanceof M5;){var x=O._getObjByKeyId(A.id);if(x!==Bi)return x;O=O.parent}x=void 0;if(O!==null)try{var J=O.resolve(A.token,L);if(J!==Bi)return J}catch(Y){x=Y}if(!(X instanceof M5&&w9_(A.token))){if(x)throw x;return this._throwOrNull(A,L)}for(J=X;J.parent instanceof M5;)J=J.parent;J.addProvider(Tru({provide:A.token,useClass:A.token}));return J.resolve(A.token,L)};
_.P.toString=function(){return this.displayName};
_.v2.Object.defineProperties(M5.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+gIe(this,function(A){return' "'+A.key.displayName+'" '}).join(", ")+"])"}}});
var GR6=ph.get(w6(wCc));(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 lEj=window.XRegExp;var cCl=-1,CIn=function(A){addEventListener("pageshow",function(L){L.persisted&&(cCl=L.timeStamp,A(L))},!0)};var RON=function(A,L,O){var X=FB3,x,J;return function(Y){if(L.value>=0&&(Y||O)){var T;if((J=L.value-((T=x)!=null?T:0))||x===void 0)x=L.value,L.delta=J,Y=L.value,L.rating=Y>X[1]?"poor":Y>X[0]?"needs-improvement":"good",A(L)}}};var QGn=function(A){requestAnimationFrame(function(){return requestAnimationFrame(function(){return A()})})};var mwJ=function(){var A=performance.getEntriesByType("navigation")[0];if(A&&A.responseStart>0&&A.responseStart<performance.now())return A};var fEl=function(){var A,L;return(L=(A=mwJ())==null?void 0:A.activationStart)!=null?L:0};var IE7=function(){var A=A===void 0?-1:A;var L=mwJ(),O="navigate";cCl>=0?O="back-forward-cache":L&&(document.prerendering||fEl()>0?O="prerender":document.wasDiscarded?O="restore":L.type&&(O=L.type.replace(/_/g,"-")));return{name:"LCP",value:A,rating:"good",delta:0,entries:[],id:"v5-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:O}};var inu=new WeakMap;var yCL=function(A){var L=L===void 0?{}:L;try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var O=new PerformanceObserver(function(X){Promise.resolve().then(function(){A(X.getEntries())})});
O.observe(Object.assign({},{type:"largest-contentful-paint",buffered:!0},L));return O}}catch(X){}};var ZvL=function(A){var L=!1;return function(){L||(A(),L=!0)}};var $p=-1,jGn=function(A){document.visibilityState==="hidden"&&$p>-1&&($p=A.type==="visibilitychange"?A.timeStamp:0,removeEventListener("visibilitychange",jGn,!0),removeEventListener("prerenderingchange",jGn,!0))},WBu=function(){addEventListener("visibilitychange",jGn,!0);
addEventListener("prerenderingchange",jGn,!0)},HvN=function(){if($p<0){var A=fEl(),L,O;
$p=(O=document.prerendering?void 0:(L=globalThis.performance.getEntriesByType("visibility-state").filter(function(X){return X.name==="hidden"&&X.startTime>A})[0])==null?void 0:L.startTime)!=null?O:document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
WBu();CIn(function(){setTimeout(function(){$p=document.visibilityState!=="hidden"||document.prerendering?Infinity:0;WBu()})})}return{get firstHiddenTime(){return $p}}};var zOg=function(A){document.prerendering?addEventListener("prerenderingchange",function(){return A()},!0):A()};var B1V=function(A){var L=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?A():(A=ZvL(A),document.addEventListener("visibilitychange",A,{once:!0}),L(function(){A();document.removeEventListener("visibilitychange",A)}))};var p9r=function(){};
p9r.prototype._processEntry=function(A){var L;(L=this._onBeforeProcessingEntry)==null||L.call(this,A)};var FB3=[2500,4E3],SXu=function(A){var L=L===void 0?{}:L;zOg(function(){var O=HvN(),X=IE7(),x=Nrp(L),J=function(t){L.reportAllChanges||(t=t.slice(-1));t=_.d(t);for(var b=t.next();!b.done;b=t.next())b=b.value,x._processEntry(b),b.startTime<O.firstHiddenTime&&(X.value=Math.max(b.startTime-fEl(),0),X.entries=[b],T())},Y=yCL(J);
if(Y){var T=RON(A,X,L.reportAllChanges);for(var V=ZvL(function(){J(Y.takeRecords());Y.disconnect();T(!0)}),E=_.d(["keydown",
"click","visibilitychange"]),n=E.next();!n.done;n=E.next())addEventListener(n.value,function(){return B1V(V)},{capture:!0,
once:!0});CIn(function(t){X=IE7();T=RON(A,X,L.reportAllChanges);QGn(function(){X.value=performance.now()-t.timeStamp;T(!0)})})}})};var MEg;var $wu;_.W=function(){return $wu!==void 0?$wu:$wu=document.createElement("template")};
document.head.appendChild(_.W().content);var aEg;_.RJ({_template:function(){if(aEg!==void 0)return aEg;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);
var L=A.content,O=L.insertBefore;MEg===void 0&&(MEg=document.createElement("template"));var X=MEg;O.call(L,X.content.cloneNode(!0),A.content.firstChild);return aEg=A},
is:"tp-yt-app-toolbar"});var kRl;var Uwj;_.ah=function(){};
_.ah=_.RJ({_template:function(){if(Uwj!==void 0)return Uwj;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;kRl===void 0&&(kRl=document.createElement("template"));var X=kRl;O.call(L,X.content.cloneNode(!0),A.content.firstChild);return Uwj=A},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.ah.instance||(_.ah.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(A){this._text===A&&(A+="\u00a0");this._text="";this.async(function(){this._text=A},this.timeout)},
_onIronAnnounce:function(A){A.detail&&A.detail.text&&this.announce(A.detail.text)}});
_.ah.instance=null;_.ah.requestAvailability=function(){_.ah.instance||(_.ah.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.ah.instance):document.addEventListener("load",function(){document.body.appendChild(_.ah.instance)})};var vf6;var ofl;/*

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

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 kp,JRN,PE6;kp=Element.prototype;JRN=kp.matches||kp.matchesSelector||kp.mozMatchesSelector||kp.msMatchesSelector||kp.oMatchesSelector||kp.webkitMatchesSelector;PE6=function(){};
_.YrJ=function(A){var L=dln,O=[];return L._collectTabbableNodes(A,O)?L._sortByTabIndex(O):O};
_.P=PE6.prototype;_.P._normalizedTabIndex=function(A){return(JRN.call(A,"input, select, textarea, button, object")?JRN.call(A,":not([disabled])"):JRN.call(A,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(A=A.getAttribute("tabindex")||0,Number(A)):-1};
_.P._collectTabbableNodes=function(A,L){if(A.nodeType!==Node.ELEMENT_NODE||!this._isVisible(A))return!1;var O=this._normalizedTabIndex(A),X=O>0;O>=0&&L.push(A);if(A.localName==="content"||A.localName==="slot")O=_.ii(A).getDistributedNodes();else{var x;O=((x=_.ii(A).shadowRoot)!=null?x:_.ii(A.root||A)).children}for(A=0;A<O.length;A++)X=this._collectTabbableNodes(O[A],L)||X;return X};
_.P._isVisible=function(A){var L=A.style;return L.visibility!=="hidden"&&L.display!=="none"?(L=window.getComputedStyle(A),L.visibility!=="hidden"&&L.display!=="none"):!1};
_.P._sortByTabIndex=function(A){var L=A.length;if(L<2)return A;var O=Math.ceil(L/2);L=this._sortByTabIndex(A.slice(0,O));A=this._sortByTabIndex(A.slice(O));return this._mergeSortByTabIndex(L,A)};
_.P._mergeSortByTabIndex=function(A,L){for(var O=[];A.length>0&&L.length>0;)this._hasLowerTabOrder(A[0],L[0])?O.push(L.shift()):O.push(A.shift());return O.concat(A,L)};
_.P._hasLowerTabOrder=function(A,L){A=Math.max(A.tabIndex,0);L=Math.max(L.tabIndex,0);return A===0||L===0?L>A:A>L};
var dln=new PE6;var u2n;var Toc;_.RJ({_template:function(){if(Toc!==void 0)return Toc;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;u2n===void 0&&(u2n=document.createElement("template"));var X=u2n;O.call(L,X.content.cloneNode(!0),A.content.firstChild);return Toc=A},
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&&_.ii(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.ii(this.parentNode).removeChild(this)},
_onTransitionend:function(A){A&&A.target===this&&this.complete()},
_openedChanged:function(A){A?this.prepare():(A=window.getComputedStyle(this),A.transitionDuration!=="0s"&&A.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 UQ=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;Cd(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)};
UQ.prototype._bringOverlayAtIndexToFront=function(A){var L=this._overlays[A];if(L){var O=this._overlays.length-1,X=this._overlays[O];X&&this._shouldBeBehindOverlay(L,X)&&O--;if(!(A>=O)){X=Math.max(this._getZ(_.VOJ(this)),this._minimumZ);for(this._getZ(L)<=X&&this._applyOverlayZ(L,X);A<O;)this._overlays[A]=this._overlays[A+1],A++;this._overlays[O]=L}}};
UQ.prototype.addOverlay=function(A){var L=this._overlays.indexOf(A);if(L>=0)this._bringOverlayAtIndexToFront(L);else{L=this._overlays.length;var O=this._overlays[L-1],X=Math.max(this._getZ(O),this._minimumZ),x=this._getZ(A);O&&this._shouldBeBehindOverlay(A,O)&&(this._applyOverlayZ(O,X),L--,X=Math.max(this._getZ(this._overlays[L-1]),this._minimumZ));x<=X&&this._applyOverlayZ(A,X);this._overlays.splice(L,0,A)}this.trackBackdrop()};
UQ.prototype.removeOverlay=function(A){A=this._overlays.indexOf(A);A!==-1&&(this._overlays.splice(A,1),this.trackBackdrop())};
_.VOJ=function(A){return A._overlays[A._overlays.length-1]};
_.P=UQ.prototype;_.P.trackBackdrop=function(){var A=this._overlayWithBackdrop();if(A||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(A)-1,this.backdropElement.opened=!!A,this.backdropElement.prepare()};
_.P._overlayWithBackdrop=function(){for(var A=this._overlays.length-1;A>=0;A--)if(this._overlays[A].withBackdrop)return this._overlays[A]};
_.P._getZ=function(A){var L=this._minimumZ;if(A){var O,X,x=Number(((O=A.hostElement)!=null?O:A).style.zIndex||window.getComputedStyle((X=A.hostElement)!=null?X:A).zIndex);x===x&&(L=x)}return L};
_.P._setZ=function(A,L){var O;((O=A.hostElement)!=null?O:A).style.zIndex=L};
_.P._applyOverlayZ=function(A,L){this._setZ(A,L+2)};
_.P._overlayInPath=function(A){A=A||[];for(var L=0;L<A.length;L++){var O=void 0;if(((O=A[L].polymerController)!=null?O:A[L])._manager===this)return A[L]}};
_.P._onCaptureClick=function(A){var L=this._overlays.length-1;if(L!==-1)for(var O=_.ii(A).path,X,x;(X=this._overlays[L])&&this._overlayInPath(O)!==((x=X.hostElement)!=null?x:X);)if(X._onCaptureClick(A),X.allowClickThrough)L--;else break};
_.P._onCaptureFocus=function(A){var L=_.VOJ(this);L&&L._onCaptureFocus(A)};
_.P._onCaptureKeyDown=function(A){var L=_.VOJ(this);L&&(_.lh.keyboardEventMatchesKeys(A,"esc")?L._onCaptureEsc(A):_.lh.keyboardEventMatchesKeys(A,"tab")&&L._onCaptureTab(A))};
_.P._shouldBeBehindOverlay=function(A,L){return!A.alwaysOnTop&&L.alwaysOnTop&&!L.contains(A)};
_.v2.Object.defineProperties(UQ.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 A=document.activeElement;A&&A instanceof Element!==!1||(A=document.body);for(;A.root&&_.ii(A.root).activeElement;)A=_.ii(A.root).activeElement;return A}}});
_.vi=new UQ;var rwd=0,KZu=0,G7D=null,lPd=[],NA=["wheel","mousewheel","DOMMouseScroll"],cwJ;_.h("web_no_lock_on_touchstart_killswitch")&&(NA.push("touchstart"),NA.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;_.oh={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:_.vi},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var A;return this._focusedChild||_.ii((A=this.hostElement)!=null?A:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var A;return _.YrJ((A=this.hostElement)!=null?A: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 A;this._observer=_.ii((A=this.hostElement)!=null?A:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var A;_.ii((A=this.hostElement)!=null?A:this).unobserveNodes(this._observer)}this._observer=null;for(var L in this.__rafs)this.__rafs[L]!==null&&cancelAnimationFrame(this.__rafs[L]);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(A){this.fire("iron-overlay-canceled",A,{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 A;((A=this.hostElement)!=null?A:this).style.outline="none";var L;((L=this.hostElement)!=null?L:this).style.display="none"}},
_openedChanged:function(A){if(A){var L;((L=this.hostElement)!=null?L:this).removeAttribute("aria-hidden")}else{var O;((O=this.hostElement)!=null?O: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 A;if(this.withBackdrop&&!((A=this.hostElement)!=null?A:this).hasAttribute("tabindex")){var L;((L=this.hostElement)!=null?L:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var O;((O=this.hostElement)!=null?O: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 A;((A=this.hostElement)!=null?A:this).style.display="none";var L;((L=this.hostElement)!=null?L:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var A,L;((A=this.hostElement)!=null?A:this).style.transition=((L=this.hostElement)!=null?L:this).style.webkitTransition="none";var O,X;((O=this.hostElement)!=null?O:this).style.transform=((X=this.hostElement)!=null?X:this).style.webkitTransform="none";var x;((x=this.hostElement)!=null?x:this).style.display=""},
_finishPositioning:function(){var A;((A=this.hostElement)!=null?A:this).style.display="none";this.scrollTop=this.scrollTop;var L,O;((L=this.hostElement)!=null?L:this).style.transition=((O=this.hostElement)!=null?O:this).style.webkitTransition="";var X,x;((X=this.hostElement)!=null?X:this).style.transform=((x=this.hostElement)!=null?x:this).style.webkitTransform="";var J;((J=this.hostElement)!=null?J:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var A=this._manager.deepActiveElement,L;if(!(L=A===document.body))a:{for(;A;A=A.assignedSlot||A.parentNode||A.host)if(A===this){L=!0;break a}L=!1}L&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(A){this.noCancelOnOutsideClick||this.cancel(A)},
_onCaptureFocus:function(A){if(this.withBackdrop){var L=_.ii(A).path;L.indexOf(this)===-1?(A.stopPropagation(),this._applyFocus()):this._focusedChild=L[0]}},
_onCaptureEsc:function(A){this.noCancelOnEscKey||this.cancel(A)},
_onCaptureTab:function(A){if(this.withBackdrop){this.__ensureFirstLastFocusables();var L=A.shiftKey,O=L?this.__firstFocusableNode:this.__lastFocusableNode;L=L?this.__lastFocusableNode:this.__firstFocusableNode;if(O===L)O=!0;else{var X=this._manager.deepActiveElement;O=X===O||X===this}O&&(A.preventDefault(),this._focusedChild=L,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 A=this._focusableNodes;this.__firstFocusableNode=A[0];this.__lastFocusableNode=A[A.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(A,L){var O=this.__rafs;O[A]!==null&&cancelAnimationFrame(O[A]);O[A]=requestAnimationFrame(function(){O[A]=null;L.call(this)}.bind(this))},
__updateScrollObservers:function(A,L,O){A&&L&&this.__isValidScrollAction(O)?(O==="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),cwJ=_._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()):(A=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),A!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(A,1),cwJ=_._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(IU)for(var A=this;A;)A.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&A.host&&this.__rootNodes.push(A),A=A.host||A.assignedSlot||A.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(L){L.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(A){A.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(A){return A==="lock"||A==="refit"||A==="cancel"},
__onCaptureScroll:function(A){if(!(this.__isAnimating||_.ii(A).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(A)}},
__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)}};
_.AB=[sI7,_.y9,_.oh];_.RJ({_template:function(){if(Xw3!==void 0)return Xw3;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;OqH===void 0&&(OqH=document.createElement("template"));var X=OqH;O.call(L,X.content.cloneNode(!0),A.content.firstChild);return Xw3=A},
is:"tp-yt-iron-dropdown",behaviors:[_.ci,_.lh,_.AB,M8g],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 A=_.ii(this.$.content).getDistributedNodes(),L=0,O=A.length;L<O;L++)if(A[L].nodeType===Node.ELEMENT_NODE)return A[L]},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(),_.oh._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.oh._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.oh._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var A=this.containedElement,L=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),O=0;O<L.length;O++)L[O].node=A;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(A){this._readied&&(A?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var A=this.focusTarget||this.containedElement;A&&this.opened&&!this.noAutoFocus?A.focus():_.oh._applyFocus.apply(this,arguments)}});var Dl3;var eqN;/*

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 EDu=new _.Q9({type:"iconset"});
_.RJ({_template:function(){if(eqN!==void 0)return eqN;var A=document.createElement("template");_.p(A,"\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");A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;Dl3===void 0&&(Dl3=document.createElement("template"));
var X=Dl3;O.call(L,X.content.cloneNode(!0),A.content.firstChild);return eqN=A},
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(A){A=(A||"").split(":");this._iconName=A.pop();this._iconsetName=A.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&&_.ii(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=EDu.byKey(this._iconsetName)){var A=this._iconset.applyIcon(this,this._iconName,this.theme);A&&A.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,_.ii(this.root).appendChild(this._img)}});var nDu;var tOn;_.RJ({_template:function(){if(tOn!==void 0)return tOn;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);
var L=A.content,O=L.insertBefore;nDu===void 0&&(nDu=document.createElement("template"));var X=nDu;O.call(L,X.content.cloneNode(!0),A.content.firstChild);return tOn=A},
is:"tp-yt-iron-input",behaviors:[_.fC],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(){_.ah.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.ii(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.ii(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 A=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":A=/[0-9.,e-]/}return A},_bindValueChanged:function(A,L){L&&(A===void 0?L.value=null:A!==L.value&&(this.inputElement.value=A),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:A}))},
_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(A){var L=A.keyCode==19||A.keyCode==20||A.keyCode==45||A.keyCode==46||A.keyCode==144||A.keyCode==145||A.keyCode>32&&A.keyCode<41||A.keyCode>111&&A.keyCode<124;return!(A.keyCode==8||A.keyCode==9||A.keyCode==13||A.keyCode==27)&&!(A.charCode==0&&L)},
_onKeypress:function(A){if(this.allowedPattern||this.inputElement.type==="number"){var L=this._patternRegExp;if(L&&!(A.metaKey||A.ctrlKey||A.altKey)){this._patternAlreadyChecked=!0;var O=String.fromCharCode(A.charCode);this._isPrintable(A)&&!L.test(O)&&(A.preventDefault(),this._announceInvalidCharacter("Invalid character "+O+" not entered."))}}},
_checkPatternValidity:function(){var A=this._patternRegExp;if(!A)return!0;for(var L=0;L<this.inputElement.value.length;L++)if(!A.test(this.inputElement.value[L]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var A=this.inputElement.checkValidity();A&&(this.required&&this.bindValue===""?A=!1:this.hasValidator()&&(A=_.fC.validate.call(this,this.bindValue)));this.invalid=!A;this.fire("iron-input-validate");return A},
_announceInvalidCharacter:function(A){this.fire("iron-announce",{text:A})},
_computeValue:function(A){return A}});var bq3;var hqL;var Srl=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),qrg=Srl&&Srl[1]>=8;
_.RJ({_template:function(){if(hqL!==void 0)return hqL;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;bq3===void 0&&(bq3=document.createElement("template"));var X=bq3;O.call(L,X.content.cloneNode(!0),A.content.firstChild);return hqL=A},
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:[Lp_,_.y9,_.B0u,CnN],_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 _.ii(_.ii(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var A=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,A-this._physicalCount)},set _virtualStart(A){A=this._clamp(A,0,this._maxVirtualStart);this.grid&&(A-=A%this._itemsPerRow);this._virtualStartVal=A},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(A){A%=this._physicalCount;A<0&&(A=this._physicalCount+A);this.grid&&(A-=A%this._itemsPerRow);this._physicalStartVal=A},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(A){this._physicalCountVal=A},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 A=this._firstVisibleIndexVal;if(A==null){var L=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
A=this._iterateItems(function(O,X){L+=this._getPhysicalSizeIncrement(O);if(L>this._scrollPosition)return this.grid?X-X%this._itemsPerRow:X;if(this.grid&&this._virtualCount-1===X)return X-X%this._itemsPerRow})||0}return A},
get lastVisibleIndex(){var A=this._lastVisibleIndexVal;if(A==null){if(this.grid)A=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var L=this._physicalTop+this._scrollOffset;this._iterateItems(function(O,X){L<this._scrollBottom&&(A=X);L+=this._getPhysicalSizeIncrement(O)})}this._lastVisibleIndexVal=A}return A},
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,_.FI);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(A){this.style.webkitOverflowScrolling=A===this?"touch":"";this.style.overflowY=A===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.FI)},
updateViewportBoundaries:function(){var A=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(A["padding-top"],10);this._isRTL=A.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var A=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),L=A-this._scrollPosition,O=L>=0;this._scrollPosition=A;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(L)>this._physicalSize&&this._physicalSize>0?(L-=this._scrollOffset,O=Math.round(L/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=O,this._physicalStart+=O,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(A=this._getReusables(O),O?(this._physicalTop=A.physicalTop,this._virtualStart+=A.indexes.length,this._physicalStart+=A.indexes.length):(this._virtualStart=this._virtualStart-A.indexes.length,this._physicalStart=this._physicalStart-A.indexes.length),this._update(A.indexes,O?null:A.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),QL))},
_getReusables:function(A){var L=[],O=this._hiddenContentSize*this._ratio,X=this._virtualStart,x=this._virtualEnd,J=this._physicalCount,Y=this._physicalTop+this._scrollOffset;var T=this._physicalBottom+this._scrollOffset;var V=this._scrollPosition,E=this._scrollBottom;if(A){var n=this._physicalStart;T=V-Y}else n=this._physicalEnd,T-=E;for(;;){var t=this._getPhysicalSizeIncrement(n);T-=t;if(L.length>=J||T<=O)break;if(A){if(x+L.length+1>=this._virtualCount)break;if(Y+t>=V-this._scrollOffset)break;L.push(n);
Y+=t;n=(n+1)%J}else{if(X-L.length<=0)break;if(Y+this._physicalSize-t<=E)break;L.push(n);Y-=t;n=n===0?J-1:n-1}}return{indexes:L,physicalTop:Y-this._scrollOffset}},
_update:function(A,L){if(!(A&&A.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(A);this._updateMetrics(A);if(L)for(;L.length;)A=L.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(A);this._positionItems();this._updateScrollerSize()}},
_createPool:function(A){this._ensureTemplatized();var L,O=Array(A);for(L=0;L<A;L++){var X=this.stamp(null);O[L]=X.root.querySelector("*");this._itemsParent.appendChild(X.root)}return O},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(A){A=this._clamp(this._physicalCount+A,3,this._virtualCount-this._virtualStart);A=this._convertIndexToCompleteRow(A);if(this.grid){var L=A%this._itemsPerRow;L&&A-L<=this._physicalCount&&(A+=this._itemsPerRow);A-=L}A-=this._physicalCount;L=Math.round(this._physicalCount*.5);if(!(A<0)){if(A>0){L=window.performance.now();[].push.apply(this._physicalItems,this._createPool(A));for(var O=0;O<A;O++)this._physicalSizes.push(0);this._physicalCount+=A;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=A);this._update();this._templateCost=(window.performance.now()-L)/A;L=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||L===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,L)),eDj):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,L),QL))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var A=this._getReusables(!0);this._physicalTop=A.physicalTop;this._virtualStart+=A.indexes.length;this._physicalStart+=A.indexes.length;this._update(A.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 A={__key__:!0};A[this.as]=!0;A[this.indexAs]=!0;A[this.selectedAs]=!0;A.tabIndex=!0;this._instanceProps=A;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(A,L){typeof L!=="undefined"&&(this.notifyResize(),_.gt(),A&&this._updateGridMetrics())},
_itemsChanged:function(A){if(A.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,
_.FI);else if(A.path==="items.splices"){this._adjustVirtualIndex(A.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(A.value.indexSplices.some(function(O){return O.addedCount>0||O.removed.length>0})){var L=this._getActiveElement();
this.contains(L)&&L.blur()}A=A.value.indexSplices.some(function(O){return O.index+O.addedCount>=this._virtualStart&&O.index<=this._virtualEnd},this);
this._isClientFull()&&!A||this._debounce("_render",this._render,_.FI)}else A.path!=="items.length"&&this._forwardItemPath(A.path,A.value)},
_forwardItemPath:function(A,L){A=A.slice(6);var O=A.indexOf(".");O===-1&&(O=A.length);var X,x=this.modelForElement(this._offscreenFocusedItem),J=parseInt(A.substring(0,O),10);if(X=this._isIndexRendered(J)){var Y=this._getPhysicalIndex(J);var T=this.modelForElement(this._physicalItems[Y])}else x&&(T=x);T&&T[this.indexAs]===J&&(A=A.substring(O+1),A=this.as+(A?"."+A:""),T._setPendingPropertyOrPath(A,L,!1,!0),T._flushProperties&&T._flushProperties(),X&&(this._updateMetrics([Y]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(A){A.forEach(function(L){L.removed.forEach(this._removeItem,this);L.index<this._virtualStart&&(L=Math.max(L.addedCount-L.removed.length,L.index-this._virtualStart),this._virtualStart+=L,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=L))},this)},
_removeItem:function(A){this.$.selector.deselect(A);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===A&&this._removeFocusedItem()},
_iterateItems:function(A,L){var O,X;if(arguments.length===2&&L)for(X=0;X<L.length;X++){var x=L[X];var J=this._computeVidx(x);if((O=A.call(this,x,J))!=null)return O}else{x=this._physicalStart;for(J=this._virtualStart;x<this._physicalCount;x++,J++)if((O=A.call(this,x,J))!=null)return O;for(x=0;x<this._physicalStart;x++,J++)if((O=A.call(this,x,J))!=null)return O}},
_computeVidx:function(A){return A>=this._physicalStart?this._virtualStart+(A-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+A},
_assignModels:function(A){this._iterateItems(function(L,O){var X=this._physicalItems[L],x=this.items&&this.items[O];if(x!=null){var J=this.modelForElement(X);J.__key__=null;this._forwardProperty(J,this.as,x);this._forwardProperty(J,this.selectedAs,this.$.selector.isSelected(x));this._forwardProperty(J,this.indexAs,O);this._forwardProperty(J,"tabIndex",this._focusedVirtualIndex===O?0:-1);this._physicalIndexForKey[J.__key__]=L;J._flushProperties&&J._flushProperties(!0);X.removeAttribute("hidden")}else X.setAttribute("hidden",
"")},A)},
_updateMetrics:function(A){_.gt();var L=0,O=0,X=this._physicalAverageCount,x=this._physicalAverage;this._iterateItems(function(J){O+=this._physicalSizes[J];this._physicalSizes[J]=this._physicalItems[J].offsetHeight;L+=this._physicalSizes[J];this._physicalAverageCount+=this._physicalSizes[J]?1:0},A);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(O=this._itemsPerRow===1?O:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+L-O,this._itemsPerRow=1);this._physicalAverageCount!==X&&(this._physicalAverage=Math.round((x*X+L)/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 A=this._physicalTop;if(this.grid){var L=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(O,X){var x=Math.floor(X%this._itemsPerRow*this._itemWidth+L);this._isRTL&&(x*=-1);this.translate3d(x+"px",A+"px",0,this._physicalItems[O]);this._shouldRenderNextRow(X)&&(A+=this._rowHeight)})}else this._iterateItems(function(O){this.translate3d(0,A+"px",0,this._physicalItems[O]);
A+=this._physicalSizes[O]})},
_getPhysicalSizeIncrement:function(A){return this.grid?this._computeVidx(A)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[A]},
_shouldRenderNextRow:function(A){return A%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var A=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(A!==0){this._physicalTop=this._physicalTop-A;var L=this._scrollPosition;!qrg&&L>0&&this._resetScrollPosition(L-A)}},
_resetScrollPosition:function(A){this.scrollTarget&&A>=0&&(this._scrollPosition=this._scrollTop=A)},
_updateScrollerSize:function(A){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((A=(A=(A=A||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(A){return this.scrollToIndex(this.items.indexOf(A))},
scrollToIndex:function(A){if(!(typeof A!=="number"||A<0||A>this.items.length-1)&&(_.gt(),this._physicalCount!==0)){A=this._clamp(A,0,this._virtualCount-1);if(!this._isIndexRendered(A)||A>=this._maxVirtualStart)this._virtualStart=this.grid?A-this._itemsPerRow*2:A-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var L=this._physicalStart,O=this._virtualStart,X=0,x=this._hiddenContentSize;O<A&&
X<=x;)X+=this._getPhysicalSizeIncrement(L),L=(L+1)%this._physicalCount,O++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+X);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)},_.FI)},
selectItem:function(A){return this.selectIndex(this.items.indexOf(A))},
selectIndex:function(A){if(!(A<0||A>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(A)){var L=this.modelForElement(this._physicalItems[this._getPhysicalIndex(A)]);L&&(L[this.selectedAs]=!0);this.updateSizeForIndex(A)}this.$.selector.selectIndex(A)}},
deselectItem:function(A){return this.deselectIndex(this.items.indexOf(A))},
deselectIndex:function(A){A<0||A>=this._virtualCount||(this._isIndexRendered(A)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(A)])[this.selectedAs]=!1,this.updateSizeForIndex(A)),this.$.selector.deselectIndex(A))},
toggleSelectionForItem:function(A){return this.toggleSelectionForIndex(this.items.indexOf(A))},
toggleSelectionForIndex:function(A){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(A):this.$.selector.isSelected(this.items[A]))?this.deselectIndex(A):this.selectIndex(A)},
clearSelection:function(){this._iterateItems(function(A){this.modelForElement(this._physicalItems[A])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(A){(A?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(A){var L=this.modelForElement(A.target);if(L){var O=_.ii(A).path[0];A=this._getActiveElement();var X=this._physicalItems[this._getPhysicalIndex(L[this.indexAs])];if(O.localName!=="input"&&O.localName!=="button"&&O.localName!=="select"){O=L.tabIndex;L.tabIndex=-100;var x=A?A.tabIndex:-1;L.tabIndex=O;A&&X!==A&&X.contains(A)&&x!==-100||this.toggleSelectionForItem(L[this.as])}}},
_multiSelectionChanged:function(A){this.clearSelection();this.$.selector.multi=A},
updateSizeForItem:function(A){return this.updateSizeForIndex(this.items.indexOf(A))},
updateSizeForIndex:function(A){if(!this._isIndexRendered(A))return null;this._updateMetrics([this._getPhysicalIndex(A)]);this._positionItems();return null},
_manageFocus:function(){var A=this._focusedVirtualIndex;A>=0&&A<this._virtualCount?this._isIndexRendered(A)?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(A){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(A/this._itemsPerRow)*this._itemsPerRow:A},
_isIndexRendered:function(A){return A>=this._virtualStart&&A<=this._virtualEnd},
_isIndexVisible:function(A){return A>=this.firstVisibleIndex&&A<=this.lastVisibleIndex},
_getPhysicalIndex:function(A){return(this._physicalStart+(A-this._virtualStart))%this._physicalCount},
focusItem:function(A){this._focusPhysicalItem(A)},
_focusPhysicalItem:function(A){if(!(A<0||A>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(A)||this.scrollToIndex(A);var L=this._physicalItems[this._getPhysicalIndex(A)],O=this.modelForElement(L),X;O.tabIndex=-100;L.tabIndex===-100&&(X=L);X||(X=_.ii(L).querySelector('[tabindex="-100"]'));O.tabIndex=0;this._focusedVirtualIndex=A;X&&X.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 A=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var L=this.stamp(null);this._focusBackfillItem=L.root.querySelector("*");this._itemsParent.appendChild(L.root)}this._offscreenFocusedItem=this._physicalItems[A];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[A]=this._focusBackfillItem;this._focusedPhysicalIndex=A;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var A=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),L=this._physicalItems[A];if(L){var O=this.modelForElement(L),X=this.modelForElement(this._offscreenFocusedItem);O[this.as]===X[this.as]?(this._focusBackfillItem=L,O.tabIndex=-1,this._physicalItems[A]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(A){A=this.modelForElement(A.target);var L=this.modelForElement(this._focusedItem),O=this._offscreenFocusedItem!==null,X=this._focusedVirtualIndex;A&&(L===A?this._isIndexVisible(X)||this.scrollToIndex(X):(this._restoreFocusedItem(),L&&(L.tabIndex=-1),A.tabIndex=0,this._focusedVirtualIndex=X=A[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(X),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],O&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(A){switch(A.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&A.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&&A.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(A)}},
_clamp:function(A,L,O){return Math.min(O,Math.max(L,A))},
_debounce:function(A,L,O){this._debouncers=this._debouncers||{};this._debouncers[A]=_.t_(this._debouncers[A],O,L.bind(this));_.bP(this._debouncers[A])},
_forwardProperty:function(A,L,O){A._setPendingProperty(L,O)},
_forwardHostPropV2:function(A,L){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(O){O&&this.modelForElement(O).forwardHostProp(A,L)},this)},
_notifyInstancePropV2:function(A,L,O){IEP(this.as,L)&&(A=A[this.indexAs],L==this.as&&(this.items[A]=O),this.notifyPath(DZ(this.as,"items."+A,L),O))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(A,L,O){L.indexOf(this.as+".")===0&&this.notifyPath("items."+A.__key__+"."+L.slice(this.as.length+1),O)},
_forwardParentPath:function(A,L){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(O){O&&this.modelForElement(O).notifyPath(A,L)},this)},
_forwardParentProp:function(A,L){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(O){O&&(this.modelForElement(O)[A]=L)},this)},
_getActiveElement:function(){var A=this._itemsParent.node.domHost;return _.ii(A?A.root:document).activeElement},
_scrollTargetChanged:function(A,L){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(L)if(A==="document")this.scrollTarget=this._doc;else if(typeof A==="string"){var O,X;this.scrollTarget=(L=(X=(O=this.domHost)==null?void 0:O.polymerController)!=null?X:this.domHost)&&L.$?L.$[A]:_.ii(this.ownerDocument).querySelector("#"+A)}else this._isValidScrollTarget()&&(this._oldScrollTarget=A,this._toggleScrollListener(this._shouldHaveListener,A))}});var gDH;var wwl;var pw6=function(A,L,O,X){A-=O;L-=X;return Math.sqrt(A*A+L*L)},iq6=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
C5u.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var FZe=function(A){A.maxRadius=0;A.mouseDownStart=0;A.mouseUpStart=0;A.xStart=0;A.yStart=0;A.xEnd=0;A.yEnd=0;A.containerMetrics=new C5u(A.element)};
RjD.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var A=iq6()-this.mouseDownStart;this.mouseUpStart&&(A-=this.mouseUpElapsed);return A},get mouseUpElapsed(){return this.mouseUpStart?iq6()-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 A=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(A*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-A/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 A=this.radius/(this.containerMetrics.size/2);var L=this.xNow-this.containerMetrics.width/2;var O=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+L+"px, "+O+"px)";this.waveContainer.style.transform="translate3d("+L+"px, "+O+"px, 0)";this.wave.style.webkitTransform="scale("+A+","+A+")";this.wave.style.transform="scale3d("+A+","+A+",1)"},
downAction:function(A){var L=this.containerMetrics.width/2,O=this.containerMetrics.height/2;FZe(this);this.mouseDownStart=iq6();this.center?(this.xStart=L,this.yStart=O):(this.xStart=A?A.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=A?A.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=L,this.yEnd=O);A=this.containerMetrics;L=this.xStart;O=this.yStart;this.maxRadius=Math.max(pw6(L,O,0,0),pw6(L,O,
A.width,0),pw6(L,O,0,A.height),pw6(L,O,A.width,A.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=iq6())},
remove:function(){_.ii(_.ii(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.RJ({_template:function(){if(wwl!==void 0)return wwl;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;gDH===void 0&&(gDH=document.createElement("template"));var X=gDH;O.call(L,X.content.cloneNode(!0),A.content.firstChild);return wwl=A},
is:"tp-yt-paper-ripple",behaviors:[_.lh],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(){_.ii(this).parentNode.nodeType==11?this.keyEventTarget=_.ii(this).getOwnerRoot().host:this.keyEventTarget=_.ii(this).parentNode;var A=this.keyEventTarget;this.listen(A,"up","uiUpAction");this.listen(A,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(A){A.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var A=0;A<this.ripples.length;++A)if(!this.ripples[A].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(A){this.noink||this.downAction(A)},
downAction:function(A){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(A),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(A){this.noink||this.upAction(A)},
upAction:function(A){this.holdDown||(this.ripples.forEach(function(L){L.upAction(A)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var A=0;A<this.ripples.length;++A){var L=this.ripples[A];L.isOpacityFullyDecayed&&!L.isRestingAtMaxRadius&&this.removeRipple(L)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var A=new RjD(this);_.ii(this.$.waves).appendChild(A.waveContainer);this.$.background.style.backgroundColor=A.color;this.ripples.push(A);this._setAnimating(!0);return A},
removeRipple:function(A){var L=this.ripples.indexOf(A);L<0||(this.ripples.splice(L,1),A.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var A;for(A=0;A<this.ripples.length;++A){var L=this.ripples[A];L.draw();this.$.background.style.opacity=L.outerOpacity;L.isOpacityFullyDecayed&&!L.isRestingAtMaxRadius&&this.removeRipple(L)}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(A,L){L!==void 0&&(A?this.downAction():this.upAction())}});var Lb={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(A){CC._downHandler.call(this,A);this.pressed&&this.ensureRipple(A)},
ensureRipple:function(A){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var L=this._rippleContainer||this.root;L&&_.ii(L).appendChild(this._ripple);if(A){L=_.ii(this._rippleContainer||this);var O=_.ii(A).rootTarget;L.deepContains(O)&&this._ripple.uiDownAction(A)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(A){this.hasRipple()&&(this._ripple.noink=A)}};var No6={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 A=1;this.disabled?A=0:this.active||this.pressed?A=4:this.receivedFocusFromKeyboard&&(A=3);this._setElevation(A)},
_computeKeyboardClass:function(A){this.toggleClass("keyboard-focus",A)},
_spaceKeyDownHandler:function(A){CC._spaceKeyDownHandler.call(this,A);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(A){CC._spaceKeyUpHandler.call(this,A);this.hasRipple()&&this._ripple.uiUpAction()}},rRc=[RTL,
_.ci,Lb,No6];_.Kz6={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(A){A&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=A)},
_createRipple:function(){var A=Lb._createRipple();A.id="ink";A.setAttribute("center","");A.classList.add("circle");return A}};
_.G_J=[RTL,_.ci,Lb,_.Kz6];_.l7J=[_.G_J,flu,{_checkedChanged:function(){mVl._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){Lb._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var cRj;var CE7;var FzJ=function(){};
_.P=FzJ.prototype;_.P.registered=function(){};
_.P.addOwnKeyBinding=function(){};
_.P.removeOwnKeyBindings=function(){};
_.P.keyboardEventMatchesKeys=function(){};
_.P._collectKeyBindings=function(){};
_.P._prepKeyBindings=function(){};
_.P._addKeyBinding=function(){};
_.P._resetKeyEventListeners=function(){};
_.P._listenKeyEventListeners=function(){};
_.P._unlistenKeyEventListeners=function(){};
_.P._onKeyBindingEvent=function(){};
_.P._triggerKeyHandler=function(){};
_.P._tapHandler=function(){};
_.P._focusChanged=function(){};
_.P._detectKeyboardFocus=function(){};
_.P._userActivate=function(){};
_.P._upHandler=function(){};
_.P._asyncClick=function(){};
_.P._pressedChanged=function(){};
_.P._ariaActiveAttributeChanged=function(){};
_.P._activeChanged=function(){};
_.P._controlStateChanged=function(){};
_.P._changedButtonState=function(){};
_.P._focusBlurHandler=function(){};
_.P._disabledChanged=function(){};
_.P._changedControlState=function(){};
_.P._buttonStateChanged=function(){};
_.P._downHandler=function(){};
_.P.ensureRipple=function(){};
_.P.getRipple=function(){};
_.P.hasRipple=function(){};
_.P._createRipple=function(){};
_.P._noinkChanged=function(){};
_.P._computeKeyboardClass=function(){};
_.P._spaceKeyDownHandler=function(){};
_.P._spaceKeyUpHandler=function(){};
_.P._setPressed=function(){};
_.P._setPointerDown=function(){};
_.P._setReceivedFocusFromKeyboard=function(){};
_.P._setFocused=function(){};
_.P._setElevation=function(){};
FzJ=_.RJ({_template:function(){if(CE7!==void 0)return CE7;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);
var L=A.content,O=L.insertBefore;cRj===void 0&&(cRj=document.createElement("template"));var X=cRj;O.call(L,X.content.cloneNode(!0),A.content.firstChild);return CE7=A},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[rRc],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?No6._calculateElevation.apply(this):this._setElevation(0)}});var RqV;var QIl;var mlN={hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},modern:{type:Boolean,value:!1,reflectToAttribute:!0},isAriaModal:{type:Boolean,value:!1},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)","isAriaModalChanged(isAriaModal)"],listeners:{tap:"_onDialogTap",click:"_onDialogClickWrapped"},_onDialogTap:function(A){_.h("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(A)},
_onDialogClickWrapped:function(A){_.h("dialog_behavior_no_tap_killswitch")||this._onDialogClick(A)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(A,L){L&&(A?(this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick,this.__prevNoCancelOnEscKey=this.noCancelOnEscKey,this.__prevWithBackdrop=this.withBackdrop,this.withBackdrop=this.noCancelOnEscKey=this.noCancelOnOutsideClick=!0,this.setAttribute("aria-modal","true")):(this.noCancelOnOutsideClick=this.noCancelOnOutsideClick&&this.__prevNoCancelOnOutsideClick,this.noCancelOnEscKey=this.noCancelOnEscKey&&this.__prevNoCancelOnEscKey,this.withBackdrop=this.withBackdrop&&
this.__prevWithBackdrop))},
isAriaModalChanged:function(A){A?this.setAttribute("aria-modal","true"):this.removeAttribute("aria-modal")},
_updateClosingReasonConfirmed:function(A){this.closingReason=this.closingReason||{};this.closingReason.confirmed=A},
_onDialogClick:function(A){for(var L=_.ii(A).path,O=0,X,x=L.indexOf((X=this.hostElement)!=null?X:this);O<x;O++)if(X=L[O],X.hasAttribute&&(X.hasAttribute("dialog-dismiss")||X.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(X.hasAttribute("dialog-confirm"));this.close();A.stopPropagation();break}}},f7H=[_.AB,
mlN];var I7V=document.createElement("template");_.p(I7V,'<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(I7V.content);var yRN=document.createElement("template");_.p(yRN,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(yRN.content);_.RJ({_template:function(){if(QIl!==void 0)return QIl;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);
var L=A.content,O=L.insertBefore;RqV===void 0&&(RqV=document.createElement("template"));var X=RqV;O.call(L,X.content.cloneNode(!0),A.content.firstChild);return QIl=A},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[f7H,M8g],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 Zql;var jIu;_.RJ({_template:function(){if(jIu!==void 0)return jIu;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;Zql===void 0&&(Zql=document.createElement("template"));var X=Zql;O.call(L,X.content.cloneNode(!0),A.content.firstChild);return jIu=A},
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 A,L,O;if(((A=window.ShadyDOM)==null?void 0:A.noPatch)!==!0&&((L=window.ShadyDOM)==null?void 0:L.noPatch)!=="on-demand"||((O=this.__shady_parentNode)==null?void 0:O.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(mlN)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var Wzj=_.AW(['<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>']),HqL=_.fnu(Wzj);HqL.setAttribute("style","display: none;");document.head.appendChild(HqL.content);var zqg;var Bo6;var MON;var $lu;_.RJ({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[Z2],configure:function(A){var L=A.node,O=L.getBoundingClientRect().height;return this._effect=new KeyframeEffect(L,[{height:O/2+"px"},{height:O+"px"}],this.timingFromConfig(A))}});
_.RJ({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[Z2],configure:function(A){var L=A.node,O=L.getBoundingClientRect().width;return this._effect=new KeyframeEffect(L,[{width:O/2+"px"},{width:O+"px"}],this.timingFromConfig(A))}});
_.RJ({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[Z2],configure:function(A){var L=A.node,O=L.getBoundingClientRect().width;return this._effect=new KeyframeEffect(L,[{width:O+"px"},{width:O-O/20+"px"}],this.timingFromConfig(A))}});
_.RJ({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[Z2],configure:function(A){var L=A.node,O=L.getBoundingClientRect().height;this.setPrefixedProperty(L,"transformOrigin","0 0");return this._effect=new KeyframeEffect(L,[{height:O+"px",transform:"translateY(0)"},{height:O/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(A))}});var O7={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},a76=function(){};
_.P=a76.prototype;_.P.registered=function(){};
_.P.addOwnKeyBinding=function(){};
_.P.removeOwnKeyBindings=function(){};
_.P.keyboardEventMatchesKeys=function(){};
_.P._collectKeyBindings=function(){};
_.P._prepKeyBindings=function(){};
_.P._addKeyBinding=function(){};
_.P._resetKeyEventListeners=function(){};
_.P._listenKeyEventListeners=function(){};
_.P._unlistenKeyEventListeners=function(){};
_.P._onKeyBindingEvent=function(){};
_.P._triggerKeyHandler=function(){};
_.P._focusBlurHandler=function(){};
_.P._changedControlState=function(){};
_.P._setFocused=function(){};
a76=_.RJ({_template:function(){if($lu!==void 0)return $lu;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;MON===void 0&&(MON=document.createElement("template"));var X=MON;O.call(L,X.content.cloneNode(!0),A.content.firstChild);return $lu=A},
is:"tp-yt-paper-menu-button",behaviors:[_.lh,_.ci],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:O7.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:O7.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:O7.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 A=_.ii(this.$.content).getDistributedNodes(),L=0,O=A.length;L<O;L++)if(A[L].nodeType===Node.ELEMENT_NODE)return A[L]},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(A,L){A?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):L!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(A){_.ci._disabledChanged.apply(this,arguments);A&&this.opened&&this.close()},
__onIronOverlayCanceled:function(A){var L=this.$.trigger;_.ii(A.detail).path.indexOf(L)>-1&&A.preventDefault()}});
Object.keys(O7).forEach(function(A){a76[A]=O7[A]});var k_c=_.Ft.IronButtonState,Ul6=(0,_.cg)(HTMLElement);
_.RJ({_template:function(){if(Bo6!==void 0)return Bo6;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;zqg===void 0&&(zqg=document.createElement("template"));var X=zqg;O.call(L,X.content.cloneNode(!0),A.content.firstChild);return Bo6=A},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[k_c,_.ci,Lb,_.Rh,_.fC],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(A){var L=(0,_.bO)(this);L.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:A});L.shadowRoot.appendChild(A);return Ul6.prototype._attachDom.call(this,A)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var A=this.contentElement;A&&A.selectedItem&&this._setSelectedItem(A.selectedItem)},
get contentElement(){for(var A=_.ii(this.$.content).getDistributedNodes(),L=0,O=A.length;L<O;L++)if(A[L].nodeType===Node.ELEMENT_NODE)return A[L]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(A){this._setSelectedItem(A.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(A){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A)===this&&this.open()},
_selectedItemChanged:function(A){var L="";A?L=A.label||A.getAttribute("label")||A.textContent.trim():L="";this.value=L;this._setSelectedItemLabel(L)},
_computeMenuVerticalOffset:function(A,L){return L?L:A?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var A=this.opened?"true":"false",L=this.contentElement;L&&L.setAttribute("aria-expanded",A)},
_computeLabelClass:function(A,L,O){var X="label";if(A)O&&(X+=" label-is-hidden");else if(O||L)X+=" label-is-floating";return X},
_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 vDN;var oDj;_.RJ({is:"tp-yt-paper-icon-button",_template:function(){if(oDj!==void 0)return oDj;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;vDN===void 0&&(vDN=document.createElement("template"));var X=vDN;O.call(L,X.content.cloneNode(!0),A.content.firstChild);return oDj=A},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.G_J],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(A,L){var O=this.getAttribute("aria-label");O&&L!=O||this.setAttribute("aria-label",A)}});var AWL;var LTj;_.XE=[RTL,_.ci,{hostAttributes:{role:"option",tabindex:"0"}}];_.RJ({_template:function(){if(LTj!==void 0)return LTj;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;AWL===void 0&&(AWL=document.createElement("template"));var X=AWL;O.call(L,X.content.cloneNode(!0),A.content.firstChild);return LTj=A},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.XE]});var Osc;var XMc;var xKN={attached:function(){this.fire("addon-attached")},
update:function(){}};var sHL=1,JWN=1,P1H=1,dKj=[_.ci,_.lh,{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();!uP&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(A,L){A?A=A+" "+L:A=L;return A},
_onAddonAttached:function(A){A=_.ii(A).rootTarget;if(A.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,A.id);else{var L="paper-input-add-on-"+JWN++;A.id=L;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,L)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(A){_.ci._focusBlurHandler.call(this,A);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var A=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",A);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(A){try{var L=this.inputElement.selectionStart;this.value=A;this.inputElement.selectionStart=L;this.inputElement.selectionEnd=L}catch(O){this.value=A}},
_computeAlwaysFloatLabel:function(A,L){return L||A},
_updateAriaLabelledBy:function(){var A=_.ii(this.root).querySelector("label");if(A){if(A.id)var L=A.id;else L="paper-input-label-"+sHL++,A.id=L;this._ariaLabelledBy=L}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+P1H++)},
_onChange:function(A){this.shadowRoot&&this.fire(A.type,{sourceEvent:A},{node:this,bubbles:A.bubbles,cancelable:A.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var A=document.activeElement;A instanceof HTMLElement&&A!==document.body&&A!==document.documentElement||this._focusableElement.focus()}}}];var Yiu;var uuj;_.RJ({_template:function(){if(uuj!==void 0)return uuj;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;Yiu===void 0&&(Yiu=document.createElement("template"));var X=Yiu;O.call(L,X.content.cloneNode(!0),A.content.firstChild);return uuj=A},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[xKN],properties:{_charCounterStr:{type:String,value:"0"}},update:function(A){if(A.inputElement){A.value=A.value||"";var L=A.value.toString().length.toString();A.inputElement.hasAttribute("maxlength")&&(L+="/"+A.inputElement.getAttribute("maxlength"));this._charCounterStr=L}}});var TAN;var VXV;_.RJ({_template:function(){if(VXV!==void 0)return VXV;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;TAN===void 0&&(TAN=document.createElement("template"));var X=TAN;O.call(L,X.content.cloneNode(!0),A.content.firstChild);return VXV=A},
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 dV(this.attrForValue)},get _inputElement(){return _.ii(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(A){this._addons||(this._addons=[]);A=A.target;this._addons.indexOf(A)===-1&&(this._addons.push(A),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(A){this._handleValueAndAutoValidate(A.target)},
_onValueChanged:function(A){var L=A.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,L.value===void 0||L.value===""))return;this._handleValueAndAutoValidate(A.target)},
_handleValue:function(A){var L=this._inputElementValue;L||L===0||A.type==="number"&&!A.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:A,value:L,invalid:this.invalid})},
_handleValueAndAutoValidate:function(A){this.autoValidate&&A&&(this.invalid=!(A.validate?A.validate(this._inputElementValue):A.checkValidity()));this._handleValue(A)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(A){if(this._addons)for(var L,O=0;L=this._addons[O];O++)L.update(A)},
_computeInputContentClass:function(A,L,O,X,x){var J="input-content";A?(x&&(J+=" label-is-hidden"),X&&!this.noUnfloatedLabelError&&(J+=" is-invalid")):(A=this.querySelector("label"),L||x?(J+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",X?J+=" is-invalid":O&&(J+=" label-is-highlighted")):(A&&(this.$.labelAndInputContainer.style.position="relative"),X&&!this.noUnfloatedLabelError&&(J+=" is-invalid")));O&&(J+=" focused");return J},
_computeUnderlineClass:function(A,L){var O="underline";L?O+=" is-invalid":A&&(O+=" is-highlighted");return O},
_computeAddOnContentClass:function(A,L){var O="add-on-content";L?O+=" is-invalid":A&&(O+=" is-highlighted");return O}});var DKu;var eml;_.RJ({_template:function(){if(eml!==void 0)return eml;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;DKu===void 0&&(DKu=document.createElement("template"));var X=DKu;O.call(L,X.content.cloneNode(!0),A.content.firstChild);return eml=A},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[xKN],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(A){this._setInvalid(A.invalid)}});_.RJ({is:"tp-yt-paper-input",_template:function(){if(XMc!==void 0)return XMc;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;Osc===void 0&&(Osc=document.createElement("template"));var X=Osc;O.call(L,X.content.cloneNode(!0),A.content.firstChild);return XMc=A},
behaviors:[dKj,_.Rh],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 Ezc;var nzj;_.RJ({_template:function(){if(nzj!==void 0)return nzj;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=
A.content,O=L.insertBefore;Ezc===void 0&&(Ezc=document.createElement("template"));var X=Ezc;O.call(L,X.content.cloneNode(!0),A.content.firstChild);return nzj=A},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.XE]});var tX3;var bs6;_.RJ({_template:function(){if(bs6!==void 0)return bs6;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);
var L=A.content,O=L.insertBefore;tX3===void 0&&(tX3=document.createElement("template"));var X=tX3;O.call(L,X.content.cloneNode(!0),A.content.firstChild);return bs6=A},
is:"tp-yt-paper-item-body"});var hml;var SiL;var qiH=function(){};
_.P=qiH.prototype;_.P.indexOf=function(){};
_.P.selectPrevious=function(){};
_.P.selectNext=function(){};
_.P.selectIndex=function(){};
_.P.forceSynchronousItemUpdate=function(){};
_.P._checkFallback=function(){};
_.P._addListener=function(){};
_.P._removeListener=function(){};
_.P._activateEventChanged=function(){};
_.P._updateItems=function(){};
_.P._selectSelected=function(){};
_.P._filterItem=function(){};
_.P._valueToItem=function(){};
_.P._valueToIndex=function(){};
_.P._indexToValue=function(){};
_.P._valueForItem=function(){};
_.P._observeItems=function(){};
_.P._itemActivate=function(){};
_.P.multiChanged=function(){};
_.P._updateAttrForSelected=function(){};
_.P._updateSelected=function(){};
_.P._selectMulti=function(){};
_.P._selectionChange=function(){};
_.P._toggleSelected=function(){};
_.P._valuesToItems=function(){};
_.P.registered=function(){};
_.P.addOwnKeyBinding=function(){};
_.P.removeOwnKeyBindings=function(){};
_.P.keyboardEventMatchesKeys=function(){};
_.P._collectKeyBindings=function(){};
_.P._prepKeyBindings=function(){};
_.P._addKeyBinding=function(){};
_.P._resetKeyEventListeners=function(){};
_.P._listenKeyEventListeners=function(){};
_.P._unlistenKeyEventListeners=function(){};
_.P._onKeyBindingEvent=function(){};
_.P._triggerKeyHandler=function(){};
_.P.select=function(){};
_.P._resetTabindices=function(){};
_.P._updateMultiselectable=function(){};
_.P._focusWithKeyboardEvent=function(){};
_.P._clearSearchText=function(){};
_.P._focusPrevious=function(){};
_.P._focusNext=function(){};
_.P._applySelection=function(){};
_.P._focusedItemChanged=function(){};
_.P._onIronItemsChanged=function(){};
_.P._onShiftTabDown=function(){};
_.P._onFocus=function(){};
_.P._onUpKey=function(){};
_.P._onDownKey=function(){};
_.P._onEscKey=function(){};
_.P._onKeydown=function(){};
_.P._activateHandler=function(){};
_.P._disabledChanged=function(){};
_.P._setSelectedItem=function(){};
_.P._setItems=function(){};
_.P._setSelectedItems=function(){};
_.P._setFocusedItem=function(){};
qiH=_.RJ({_template:function(){if(SiL!==void 0)return SiL;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);
var L=A.content,O=L.insertBefore;hml===void 0&&(hml=document.createElement("template"));var X=hml;O.call(L,X.content.cloneNode(!0),A.content.firstChild);return SiL=A},
is:"tp-yt-paper-listbox",behaviors:[jDV],hostAttributes:{role:"listbox"}});var gz7;var wMl;var pMH={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(A,L){return[A||L?"active":"",L?"cooldown":""].join(" ")},
__activeChanged:function(A,L){this.__setAriaHidden(!A);this.__coolingDown=!A&&L},
__altChanged:function(A){this.setAttribute("aria-label",A||"loading")},
__setAriaHidden:function(A){A?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.RJ({_template:function(){if(wMl!==void 0)return wMl;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;gz7===void 0&&(gz7=document.createElement("template"));var X=gz7;O.call(L,X.content.cloneNode(!0),A.content.firstChild);return wMl=A},
is:"tp-yt-paper-spinner",behaviors:[pMH]});var isn;var NAV;_.RJ({_template:function(){if(NAV!==void 0)return NAV;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;isn===void 0&&(isn=document.createElement("template"));var X=isn;O.call(L,X.content.cloneNode(!0),A.content.firstChild);return NAV=A},
is:"tp-yt-paper-spinner-lite",behaviors:[pMH]});var rWl;var KTN;_.RJ({_template:function(){if(KTN!==void 0)return KTN;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;rWl===void 0&&(rWl=document.createElement("template"));var X=rWl;O.call(L,X.content.cloneNode(!0),A.content.firstChild);return KTN=A},
is:"tp-yt-paper-tab",behaviors:[_.ci,_.Ft.IronButtonState,Lb],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 A=_.ii(this).parentNode;return!!A&&!!A.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(A){if(this.link){var L=this.queryEffectiveChildren("a");L&&A.target!==L&&L.click()}}});var Gy6;var lFu;var cWu=_.AW(['<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>']),C1n=_.fnu(cWu);document.head.appendChild(C1n.content);_.RJ({_template:function(){if(lFu!==void 0)return lFu;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;Gy6===void 0&&(Gy6=document.createElement("template"));var X=Gy6;O.call(L,X.content.cloneNode(!0),A.content.firstChild);return lFu=A},
is:"tp-yt-paper-tabs",behaviors:[_.y9,_.Huj],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(A){_.ii(this).querySelectorAll("tp-yt-paper-tab").forEach(A?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(A){A.setAttribute("noink","")},
_removeNoinkAttribute:function(A){A.removeAttribute("noink")},
_computeScrollButtonClass:function(A,L,O,X){return!L||O?"hidden":A?X?"hidden":"not-visible":""},
_computeTabsContentClass:function(A,L){var O="tabs-content";A&&(O+=" scrollable");if(!A||L)O+=" fit-container";return O},
_computeSelectionBarClass:function(A,L){var O="selection-bar";A?O+=" hidden":L&&(O+=" align-bottom");return O},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(A){return""+A},
_onIronSelect:function(A){this._tabChanged(A.detail.item,this._previousTab);this._previousTab=A.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();_.Ih._activateHandler.apply(this,arguments)},
_scheduleActivation:function(A,L){this._pendingActivationItem=A;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,L)},
_delayedActivationHandler:function(){var A=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;A.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(A){A.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(A,L){this.scrollable&&this._affectScroll(L&&-L.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(A){this.$.tabsContainer.scrollLeft+=A;A=this.$.tabsContainer.scrollLeft;this._leftHidden=A===0||this.hideScrollButtons;this._rightHidden=A===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(A,L){if(A){var O=this.$.tabsContent.getBoundingClientRect(),X=O.width,x=A.getBoundingClientRect();O=x.left-O.left;this._pos={width:this._calcPercent(x.width,X),left:this._calcPercent(O,X)};if(this.noSlide||L==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var J=L.getBoundingClientRect();L=this.items.indexOf(L);A=this.items.indexOf(A);this.$.selectionBar.classList.add("expand");
A=L<A;this._isRTL&&(A=!A);A?this._positionBar(this._calcPercent(x.left+x.width-J.left,X)-5,this._left):this._positionBar(this._calcPercent(J.left+J.width-x.left,X)-5,this._calcPercent(O,X)+5);this.scrollable&&this._scrollToSelectedIfNeeded(x.width,O)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(A,L){L-=this.$.tabsContainer.scrollLeft;L<0?this.$.tabsContainer.scrollLeft+=L:(L+=A-this.$.tabsContainer.offsetWidth,L>0&&(this.$.tabsContainer.scrollLeft+=L))},
_calcPercent:function(A,L){return 100*A/L},
_positionBar:function(A,L){A=A||0;L=L||0;this._width=A;this._left=L;this.transform("translateX("+L+"%) scaleX("+A/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var A=this.$.selectionBar.classList;A.contains("expand")?(A.remove("expand"),A.add("contract"),this._positionBar(this._pos.width,this._pos.left)):A.contains("contract")&&A.remove("contract")}});var FT6;var Rmu;_.RJ({_template:function(){if(Rmu!==void 0)return Rmu;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;FT6===void 0&&(FT6=document.createElement("template"));var X=FT6;O.call(L,X.content.cloneNode(!0),A.content.firstChild);return Rmu=A},
is:"tp-yt-paper-textarea",behaviors:[dKj,_.Rh],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(A){this.$.input.textarea.selectionStart=A},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(A){this.$.input.textarea.selectionEnd=A},_ariaLabelledByChanged:function(A){this._focusableElement.setAttribute("aria-labelledby",A)},
_ariaDescribedByChanged:function(A){this._focusableElement.setAttribute("aria-describedby",A)},
get _focusableElement(){return this.inputElement.textarea}});var QHL;var mK7;/*

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 fFN=function(){};
_.P=fFN.prototype;_.P.addOwnKeyBinding=function(){};
_.P.removeOwnKeyBindings=function(){};
_.P.keyboardEventMatchesKeys=function(){};
_.P._collectKeyBindings=function(){};
_.P._prepKeyBindings=function(){};
_.P._addKeyBinding=function(){};
_.P._resetKeyEventListeners=function(){};
_.P._listenKeyEventListeners=function(){};
_.P._unlistenKeyEventListeners=function(){};
_.P._onKeyBindingEvent=function(){};
_.P._triggerKeyHandler=function(){};
_.P._tapHandler=function(){};
_.P._focusChanged=function(){};
_.P._detectKeyboardFocus=function(){};
_.P._userActivate=function(){};
_.P._upHandler=function(){};
_.P._spaceKeyDownHandler=function(){};
_.P._spaceKeyUpHandler=function(){};
_.P._asyncClick=function(){};
_.P._pressedChanged=function(){};
_.P._ariaActiveAttributeChanged=function(){};
_.P._activeChanged=function(){};
_.P._controlStateChanged=function(){};
_.P._changedButtonState=function(){};
_.P._focusBlurHandler=function(){};
_.P._disabledChanged=function(){};
_.P._changedControlState=function(){};
_.P._downHandler=function(){};
_.P.ensureRipple=function(){};
_.P.getRipple=function(){};
_.P.hasRipple=function(){};
_.P._noinkChanged=function(){};
_.P._focusedChanged=function(){};
_.P.registered=function(){};
_.P._invalidChanged=function(){};
_.P.hasValidator=function(){};
_.P.validate=function(){};
_.P._getValidity=function(){};
_.P._requiredChanged=function(){};
_.P._valueChanged=function(){};
_.P._checkedChanged=function(){};
_.P._buttonStateChanged=function(){};
_.P._setPressed=function(){};
_.P._setPointerDown=function(){};
_.P._setReceivedFocusFromKeyboard=function(){};
_.P._setFocused=function(){};
fFN=_.RJ({is:"tp-yt-paper-toggle-button",_template:function(){if(mK7!==void 0)return mK7;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;QHL===void 0&&(QHL=document.createElement("template"));var X=QHL;O.call(L,X.content.cloneNode(!0),A.content.firstChild);return mK7=A},
behaviors:[_.l7J],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");_.kd(this,function(){_.RU(this,"pan-y")})},
_ontrack:function(A){A=A.detail;A.state==="start"?this._trackStart(A):A.state==="track"?this._trackMove(A):A.state==="end"&&this._trackEnd(A)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(A){A=A.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+A:A)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+A:A));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 A=Lb._createRipple();A.id="ink";A.setAttribute("recenters","");A.classList.add("circle","toggle-ink");return A}});var IFg;var yW7;_.RJ({_template:function(){if(yW7!==void 0)return yW7;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;IFg===void 0&&(IFg=document.createElement("template"));var X=IFg;O.call(L,X.content.cloneNode(!0),A.content.firstChild);return yW7=A},
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 A=_.ii(this).parentNode,L=_.ii(this).getOwnerRoot(),O;this.for?O=_.ii(L).querySelector("#"+this.for):O=A.nodeType==Node.DOCUMENT_FRAGMENT_NODE?L.host:A;return O},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(A){A==="entry"?this.show():A==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.ii(this).textContent.trim()===""){for(var A=!0,L=_.ii(this).getEffectiveChildNodes(),O=0;O<L.length;O++)if(L[O].textContent.trim()!==""){A=!1;break}if(A)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 A=this.offset;this.marginTop!=14&&this.offset==14&&(A=this.marginTop);var L=this.offsetParent.getBoundingClientRect(),O=this._target.getBoundingClientRect(),X=this.getBoundingClientRect(),x=(O.width-X.width)/2,J=(O.height-X.height)/2,Y=O.left-L.left,T=O.top-L.top;switch(this.position){case "top":var V=Y+x;var E=T-X.height-A;break;case "bottom":V=Y+x;E=T+O.height+A;break;case "left":V=Y-X.width-A;E=T+J;break;case "right":V=Y+O.width+
A,E=T+J}this.fitToVisibleBounds?(L.left+V+X.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,V)+"px",this.style.right="auto"),L.top+E+X.height>window.innerHeight?(this.style.bottom=L.height+"px",this.style.top="auto"):(this.style.top=Math.max(-L.top,E)+"px",this.style.bottom="auto")):(this.style.left=V+"px",this.style.top=E+"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(A){A!==500&&this.updateStyles({"--paper-tooltip-delay-in":A+"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(A){if(A==="entry"&&this.animationEntry!=="")return this.animationEntry;if(A==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[A]&&typeof this.animationConfig[A][0].name==="string"){if(this.animationConfig[A][0].timing&&this.animationConfig[A][0].timing.delay&&this.animationConfig[A][0].timing.delay!==0){var L=this.animationConfig[A][0].timing.delay;A==="entry"?this.updateStyles({"--paper-tooltip-delay-in":L+"ms"}):A==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":L+
"ms"})}return this.animationConfig[A][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 ZsJ=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(ZsJ,_.AE);var jHc=_.ua(ZsJ,[0,_.sv]);var xt=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(xt,_.AE);var WTL=[3,4],HsL=[5,6];var zmJ=[0,WTL,HsL,_.cEJ,-1,_.xj,_.Ca3,-1,pN9,ifd];var BA3=_.ua(xt,zmJ),MXl=_.T2(zmJ);var $KV=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g($KV,_.AE);var aFj=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(aFj,_.AE);var ky3=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(ky3,_.AE);var UKH=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(UKH,_.AE);var vzH=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(vzH,_.AE);var s7=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(s7,_.AE);s7.prototype.getSource=function(){return _.IH(this,1)};
s7.prototype.getMessage=function(){return _.mT(this,4)};
s7.prototype.getData=function(){return _.ET(this,vzH,8)};var oz7=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(oz7,_.AE);var PB=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(PB,_.AE);var dS=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(dS,_.AE);var Yt=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(Yt,_.AE);Yt.prototype.getUrl=function(){return _.mT(this,1)};
Yt.prototype.setUrl=function(A){return _.gz(this,1,A)};
Yt.prototype.hasUrl=function(){return _.Ez(_.ps(this,1))!=null};var AVj=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(AVj,_.AE);var LRV=[3];var O56=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(O56,_.AE);var ul=function(A){var L=new O56;return _.s$(L,2,A)};
O56.prototype.getLanguage=function(){return jX(this,4,TF)};
var X67=function(A){var L=ul(1);return _.EB(L,6,TF,A)},TF=[3,
4,5,6];var xS3=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(xS3,_.AE);var VF=function(A){var L=new xS3;return _.s$(L,1,A)},DU=function(A,L){return _.EB(A,2,sSg,L)},sSg=[2,
3,4,5];var JVg=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(JVg,_.AE);var eo=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(eo,_.AE);var P_c=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(P_c,_.AE);var dS6=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(dS6,_.AE);var Yv6=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(Yv6,_.AE);var u4j=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(u4j,_.AE);var Tkg=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(Tkg,_.AE);var E7=function(A){return _.ET(A,dS,5)};var Vuj=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(Vuj,_.AE);Vuj.prototype.getValue=function(){return RH(this,1)};var DSN=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(DSN,_.AE);var nb=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(nb,_.AE);nb.prototype.getMetadata=function(){return _.WM(this,Yv6,7,tB)};
nb.prototype.hasMetadata=function(){return _.NK(this,Yv6,7,tB)};
var ebJ=_.fDu(nb),tB=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var bl=function(A){this.JSC$12988_name_=A;this.files_=[];this.directories_=[];this.directoryMap_={}};
bl.prototype.getDirectory=function(A){return this.directoryMap_[A]};
bl.prototype.getName=function(){return this.JSC$12988_name_};var So=function(A,L){this.callback_=L;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new bl("");Ejn(this,A,this.rootDirectory_);hB(this)},Ejn=function(A,L,O){for(var X=0;X<L.length;X++){var x=L[X];
x.isFile?(A.fileOps_++,x.file((0,_.is)(A.handleFileSuccess_,A,O),(0,_.is)(A.handleFileError_,A))):A.unscannedDirectories_.push(new njN(x,O))}},hB=function(A){if(A.unscannedDirectories_.length>0&&A.directoryOps_<5&&!A.hasError_){A.directoryOps_++;
var L=A.unscannedDirectories_.shift(),O=L.entry,X=new bl(O.name);L=L.parent;L.directoryMap_[X.getName()]=X;L.directories_.push(X);O=O.createReader();O.readEntries((0,_.is)(A.handleDirectorySuccess_,A,O,X),(0,_.is)(A.handleDirectoryError_,A))}A.directoryOps_!=0||A.fileOps_!=0||A.unscannedDirectories_.length!=0&&!A.hasError_||A.callback_(A.rootDirectory_.files_,A.rootDirectory_.directories_,A.hasError_)};
So.prototype.handleDirectorySuccess_=function(A,L,O){Ejn(this,O,L);O.length==0?(this.directoryOps_--,hB(this)):A.readEntries((0,_.is)(this.handleDirectorySuccess_,this,A,L),(0,_.is)(this.handleDirectoryError_,this))};
So.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;hB(this)};
So.prototype.handleFileSuccess_=function(A,L){A.files_.push(L);this.fileOps_--;hB(this)};
So.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;hB(this)};
var njN=function(A,L){this.entry=A;this.parent=L};var q1=function(A){_.lb.call(this);_.CT(A,"drop",this.onObjectsDropped_,!1,this);_.CT(A,"dragenter",this.onFilesDragged_,!1,this);_.CT(A,"dragover",this.onFilesDragged_,!1,this);_.CT(A,"dragleave",this.onDragLeave_,!1,this);_.CT(A,"dragend",this.onDragLeave_,!1,this)};
_.Ty(q1,_.lb);var tuN=function(A,L){_.ib.call(this,"f");this.files=A;this.directories=L};
_.Ty(tuN,_.ib);var b56=function(){_.ib.call(this,"h")};
_.Ty(b56,_.ib);var hbu=function(){_.ib.call(this,"i")};
_.Ty(hbu,_.ib);var Svn=function(){_.ib.call(this,"g")};
_.Ty(Svn,_.ib);q1.prototype.onObjectsDropped_=function(A){var L=this;A.preventDefault();var O=A.event_.dataTransfer;if((A=O&&O.items)&&A.length>0&&A[0].webkitGetAsEntry){O=[];for(var X=[],x=0;x<A.length;x++){var J=A[x].webkitGetAsEntry();J?O.push(J):X.push(A[x])}new So(O,function(Y,T,V){V?L.dispatchEvent(new Svn("Error occurred while reading from the file system.")):L.dispatchEvent(new tuN(Y,T,X))})}else(A=O&&O.files)&&this.dispatchEvent(new tuN(Array.from(A),[]))};
q1.prototype.onFilesDragged_=function(A){A.type==="dragenter"&&this.dispatchEvent(new b56);A.preventDefault()};
q1.prototype.onDragLeave_=function(){this.dispatchEvent(new hbu)};var qv6=function(A,L){this.JSC$13011_name_=A;this.inputElement_=L};
qv6.prototype.getName=function(){return this.JSC$13011_name_};
qv6.prototype.getInputElement=function(){return this.inputElement_};var gS=function(A,L,O){L=L===void 0?"single_file":L;O=O===void 0?[]:O;_.lb.call(this);this.overlayTarget_=A;this.parentOverlay_=A!=null?A.parentNode:_.tg("scotty-overlay-parent");this.selectorType_=L;this.acceptTypes_=O;this.overlay_=gjN(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.g(gS,_.lb);
var gjN=function(A,L,O,X){var x=document.createElement("input");x.setAttribute("type","file");x.setAttribute("name","Filedata");_.CT(x,"change",A.onFilesSelected_,!1,A);O==="multiple_file"&&(x.multiple="true");O==="single_directory"&&(x.webkitdirectory="true");X.length>0&&x.setAttribute("accept",X.join(","));x.style.position="absolute";x.style.overflow="hidden";x.style.height="0px";x.style.width="0px";x.style.opacity="0";x.setAttribute("aria-hidden","true");x.setAttribute("tabIndex",-1);if(A.overlayTarget_!=
null)return x.style.height=L.offsetHeight+"px",x.style.width=L.offsetWidth+"px",A.parentOverlay_&&(A.parentOverlay_.style.position="relative"),_.ZV(x,L),MS(x,new _.Cm(L.offsetLeft,L.offsetTop)),x;A.parentOverlay_.appendChild(x);return x};
gS.prototype.click=function(){this.overlay_.click()};
gS.prototype.onFilesSelected_=function(A){a:{try{var L=(new XMLHttpRequest).upload!==void 0;break a}catch(E){}L=!1}if(L){var O;A=Array.from((O=A.target.files)!=null?O:[]);O=[];if(this.selectorType_==="single_directory"&&(_.tW||Ut||_.ns)){O=new bl("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(L=0;L<A.length;L++)for(var X=A[L],x=X.webkitRelativePath.split("/"),J=O,Y=0;Y<x.length;Y++){var T=x[Y];if(Y==x.length-1){T!="."&&J.files_.push(X);break}var V=J.getDirectory(T);V==void 0&&(T=V=
new bl(T),J.directoryMap_[T.getName()]=T,J.directories_.push(T));J=V}O=O.directories_}this.dispatchEvent(new w66(A,O,null))}else A=A.target.value,A.match(/^c:\\fakepath\\/i)&&(A=A.substring(12)),this.dispatchEvent(new w66([],[],new qv6(A,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=gjN(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var w66=function(A,L){_.ib.call(this,"j");this.files=A;this.directories=L};
_.g(w66,_.ib);var p67=function(A){this.uploadUrl_=A};var i5L=function(){_.lb.call(this)};
_.Ty(i5L,_.lb);var wS=function(A){_.ib.call(this,A)};
_.Ty(wS,_.ib);var pb=function(A){_.ib.call(this,A)};
_.Ty(pb,_.ib);var Nkl=function(A,L,O,X,x){_.lb.call(this);O=document.createElement("form");O.setAttribute("method",L);O.setAttribute("enctype","multipart/form-data");O.setAttribute("encoding","multipart/form-data");L=document.createElement("input");L.setAttribute("type","hidden");L.setAttribute("name","metadata");L.setAttribute("value",x);O.appendChild(L);O.appendChild(X);this.JSC$13028_form_=O;A=new _.kO(A);_.Hq(A,"upload_protocol","multipart");this.JSC$13028_url_=A.toString();this.JSC$13028_request_=new uh;this.state_=
"Ready";this.JSC$13028_errorDescription_=null;this.JSC$13028_eventHandler_=new _.sI(this);_.VI(this,this.JSC$13028_eventHandler_);this.JSC$13028_eventHandler_.listen(this.JSC$13028_request_,"success",this.onTransferSuccess_);this.JSC$13028_eventHandler_.listen(this.JSC$13028_request_,"error",this.onTransferError_)};
_.g(Nkl,i5L);_.P=Nkl.prototype;_.P.run=function(){this.state_="Transferring";var A=this.JSC$13028_request_,L=this.JSC$13028_form_;if(A.JSC$12447_active_)throw Error("ne");var O=new _.kO(this.JSC$13028_url_||L.action);A.JSC$12447_form_=L;L=A.JSC$12447_form_;O=_.IP(O.toString());O!==void 0&&(L.action=O);L4n(A)};
_.P.getResponseCode=function(){return null};
_.P.getResponseText=function(){return this.JSC$13028_request_&&this.JSC$13028_request_.getResponseText()||null};
_.P.JSC$31084_getErrorDescription=function(){return this.JSC$13028_errorDescription_};
_.P.cancel=function(){this.JSC$13028_request_&&this.JSC$13028_request_.abort();this.state_="Cancelled";this.dispatchEvent(new wS("o"))};
_.P.pause=function(){};
_.P.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new wS("l"))};
_.P.onTransferError_=function(){this.JSC$13028_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new wS("n"))};var il=function(){_.I$.call(this)};
_.g(il,_.I$);il.prototype.createXhr=function(){var A=_.I$.prototype.createXhr.call(this);A.upload&&(A.upload.onprogress=(0,_.is)(this.onProgress_,this));return A};
il.prototype.onProgress_=function(A){this.dispatchEvent(A)};var rVg=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},Gv3=function(A,L){var O=A.attempt_+1;
if(A.maxAttempts_>0&&O>A.maxAttempts_)return!1;O==0?L():A.delayCallId_=Qe(function(){A.delayCallId_=null;L()},KR6(A),A);
A.attempt_=O;return!0};
rVg.prototype.reset=function(){this.delayCallId_&&_.Ou.clearTimeout(this.delayCallId_);this.attempt_=-1};
var KR6=function(A){var L=250*Math.pow(2,A.attempt_);A.maxDelayMs_>=0&&(L=Math.min(L,A.maxDelayMs_));return L};var mIO=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var N1=function(){_.lb.call(this);this.JSC$13038_request_=this.state_=null;this.JSC$13038_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$13038_bytesTransferred_=0;this.retryIterator_=new rVg;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$13038_errorDescription_=null;this.JSC$13038_eventHandler_=new _.sI(this);_.VI(this,this.JSC$13038_eventHandler_);this.JSC$13038_url_=this.blob_=null;this.JSC$13038_method_=void 0;this.chunkSize_=this.JSC$13038_metadata_=
this.JSC$13038_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$13038_responseText_=this.JSC$13038_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.Ty(N1,i5L);_.P=N1.prototype;_.P.run=function(){rS(this)};
_.P.getResponseCode=function(){return this.JSC$13038_responseCode_};
_.P.getResponseText=function(){return this.JSC$13038_responseText_};
_.P.JSC$31084_getErrorDescription=function(){return this.JSC$13038_errorDescription_};
_.P.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$13038_eventHandler_.removeAll();this.JSC$13038_request_&&this.JSC$13038_request_.abort();this.retryIterator_.reset();var A=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(A==="Upload"||A==="Query")A=new il,A.JSC$10816_withCredentials_=this.JSC$13038_withCredentials_,A.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$13038_bytesTransferred_=
0;this.dispatchEvent(new wS("o"))}};
_.P.pause=function(){this.pauseRequested_=!0};
var rS=function(A){var L=A.state_;A.pauseRequested_?(A.pauseRequested_=!1,A.stateAfterUnpausing_=L,A.state_="Paused"):Gv3(A.retryIterator_,function(){switch(A.state_){case "Start":A.JSC$13038_request_=new il;var O=_.lW.clone(A.JSC$13038_headers_);A.blob_.size!=null&&(O["Content-Length"]=A.blob_.size);O=fPP(O);O["X-Goog-Upload-Protocol"]="resumable";O["X-Goog-Upload-Command"]="start";A.JSC$13038_eventHandler_.removeAll();A.JSC$13038_eventHandler_.listen(A.JSC$13038_request_,"complete",A.onStartComplete_);
A.JSC$13038_request_.JSC$10816_withCredentials_=A.JSC$13038_withCredentials_;A.JSC$13038_request_.send(A.JSC$13038_url_,A.JSC$13038_method_,A.JSC$13038_metadata_,O);A.lastCommandResponseCode_=null;A.dispatchEvent(new pb("q"));break;case "Upload":O=A.transferHandle_.uploadUrl_;var X=A.blob_.size;if(mdg()){var x=A.chunkSize_;var J=A.offset_+x>=X;X=Qvc(A.blob_,A.offset_,J?X:A.offset_+x)}else A.offset_=0,X=A.blob_,J=!0;A.JSC$13038_request_=new il;A.JSC$13038_request_.JSC$10816_withCredentials_=A.JSC$13038_withCredentials_;
A.JSC$13038_eventHandler_.removeAll();A.JSC$13038_eventHandler_.listen(A.JSC$13038_request_,"progress",A.onUploadProgress_);x=(0,_.is)(A.JSC$13040_onUploadComplete_,A,A.offset_+X.size,J);A.JSC$13038_eventHandler_.listen(A.JSC$13038_request_,"complete",x);A.lastCommandResponseCode_=null;A.dispatchEvent(new pb("q"));J=Object.assign({},A.JSC$13038_headers_||{},{"X-Goog-Upload-Command":"upload"+(J?", finalize":""),"X-Goog-Upload-Offset":A.offset_});A.JSC$13038_request_.send(O,"POST",X,J);break;case "Query":A.JSC$13038_request_=
new il;A.JSC$13038_eventHandler_.removeAll();A.JSC$13038_eventHandler_.listen(A.JSC$13038_request_,"complete",A.onQueryComplete_);O=Object.assign({},A.JSC$13038_headers_||{},{"X-Goog-Upload-Command":"query"});A.JSC$13038_request_.send(A.transferHandle_.uploadUrl_,"POST","",O);A.lastCommandResponseCode_=null;A.dispatchEvent(new pb("q"));break;default:throw Error("cf");}})||Kb(A,"Transfer encountered too many consecutive failures.")},Kb=function(A,L){A.state_="Error";
A.JSC$13038_errorDescription_=L;A.dispatchEvent(new wS("n"))};
N1.prototype.onStartComplete_=function(A){var L=A.target;this.lastCommandResponseCode_=L.getStatus();this.dispatchEvent(new pb("r"));if(lVg(L))cVJ(this,L);else if(C_N(L)){A=$8(A.target.getAllResponseHeaders());for(var O in A)_.su(O.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new wS("m"));O=r6(A,"X-Goog-Upload-URL");A=(A=r6(A,"X-Goog-Upload-Chunk-Granularity"))?parseInt(A,10):1;O===void 0||isNaN(A)||A<=0?Kb(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
A)*A,this.transferHandle_=new p67(O),this.dispatchEvent(new wS("p")),this.state_="Upload",this.retryIterator_.reset(),rS(this))}else rS(this)};
N1.prototype.onUploadProgress_=function(A){this.JSC$13038_bytesTransferred_=this.offset_+A.loaded;this.dispatchEvent(new wS("k"))};
N1.prototype.JSC$13040_onUploadComplete_=function(A,L,O){var X=this,x,J;return _.u(function(Y){switch(Y.nextAddress){case 1:x=O.target;X.lastCommandResponseCode_=x.getStatus();X.dispatchEvent(new pb("r"));if(FRN(x)||x.getStatus()==404)return X.JSC$13038_bytesTransferred_=A,cVJ(X,x),Y.return();if(C_N(x)){Y.jumpTo(2);break}if(!(J=X.detectCorruptedBlobEnabled_)){Y.jumpTo(3);break}return Y.yield(RbH(X),4);case 4:J=Y.yieldResult;case 3:if(J)return Kb(X,"Blob has been modified or corrupted."),Y.return();
X.requireUploadRequestModification_=x.getStatus()==400;X.state_="Query";rS(X);return Y.return();case 2:if(L)return Kb(X,"Got a non-final success response after issuing a finalize command."),Y.return();X.JSC$13038_bytesTransferred_=A;X.offset_=A;X.retryIterator_.reset();rS(X);return Y.return()}})};
N1.prototype.onQueryComplete_=function(A){var L=A.target;this.lastCommandResponseCode_=L.getStatus();this.dispatchEvent(new pb("r"));lVg(L)?(L.getStatus()===200&&(this.JSC$13038_bytesTransferred_=this.blob_.size),cVJ(this,L)):C_N(L)?(A=$8(A.target.getAllResponseHeaders()),A=parseInt(r6(A,"X-Goog-Upload-Size-Received"),10),isNaN(A)?Kb(this,"Server did not respond with current offset."):A<this.offset_?Kb(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
A+"."):this.requireUploadRequestModification_&&this.offset_===A?Kb(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<A&&this.retryIterator_.reset(),this.offset_=this.JSC$13038_bytesTransferred_=A,this.state_="Upload",rS(this))):rS(this)};
var cVJ=function(A,L){A.JSC$13038_responseCode_=L.getStatus();var O=$8(L.getAllResponseHeaders());IPe(O);A.JSC$13038_responseText_=L.getResponseText();A.state_="Response received";A.dispatchEvent(new wS("l"))},C_N=function(A){var L=A.getStatus();
A=$8(A.getAllResponseHeaders());A=r6(A,"X-Goog-Upload-Status");return L===200&&A==="active"},FRN=function(A){A=$8(A.getAllResponseHeaders());
return r6(A,"X-Goog-Upload-Status")==="final"},lVg=function(A){if(FRN(A))return!0;
A=A.getStatus();return A>=400&&A<500},RbH=function(A){var L;
return _.u(function(O){if(O.nextAddress==1){if(!A.blob_||A.originalBlobSize_<=0)return O.return(!1);if(A.blob_.size!==A.originalBlobSize_)return O.return(!0);_.e4(O,2);if(L=Qvc(A.blob_,0,1)){var X=O.yield,x=new $9,J=tq6(x);x.reader_.readAsBinaryString(L);O=X.call(O,J,4)}else O=O.return(!0);return O}if(O.nextAddress!=2)return O.return(A.blob_.size!==A.originalBlobSize_);_.S4(O);return O.return(!0)})};var QSH=function(A,L,O,X,x,J){_.lb.call(this);this.payload_=X;this.JSC$13041_url_=A;this.JSC$13041_method_=L;this.JSC$13041_headers_=O;this.JSC$13041_metadata_=x;this.encoding_=J||"binary";A=new _.Fo;this.boundary_="uploader-"+Zg()+"-"+A.JSC$12296_toIsoString();this.JSC$13041_responseText_=this.JSC$13041_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$13041_errorDescription_=null;this.JSC$13041_eventHandler_=new _.sI(this);_.VI(this,this.JSC$13041_eventHandler_)};
_.g(QSH,i5L);_.P=QSH.prototype;
_.P.run=function(){var A=_.lW.clone(this.JSC$13041_headers_);this.payload_.length!=null&&(A["Content-Length"]=this.payload_.length);A=fPP(A);A["X-Goog-Upload-Protocol"]="multipart";A["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new il;this.JSC$13041_eventHandler_.removeAll();this.JSC$13041_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$13041_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$13041_url_,this.JSC$13041_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$13041_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",A)};
_.P.getResponseCode=function(){return this.JSC$13041_responseCode_};
_.P.getResponseText=function(){return this.JSC$13041_responseText_};
_.P.JSC$31084_getErrorDescription=function(){return this.JSC$13041_errorDescription_};
_.P.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$13041_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new wS("o")))};
_.P.pause=function(){};
_.P.onTransferProgress_=function(){this.dispatchEvent(new wS("k"))};
_.P.onTransferComplete_=function(A){var L=A.target.getStatus();L===void 0||L===-1?(this.JSC$13041_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new wS("n"))):(this.JSC$13041_responseCode_=L,A=A.target,L=$8(A.getAllResponseHeaders()),IPe(L),this.JSC$13041_responseText_=A.getResponseText(),this.state_="Complete",this.dispatchEvent(new wS("l")))};_.mSN=function(A,L,O,X){X=X===void 0?!1:X;if(O instanceof qv6)return new Nkl(A,"POST",L,O.getInputElement(),"");if(typeof O==="string"||O instanceof String)return new QSH(A,"POST",L,O,"");var x=new N1(void 0);x.JSC$13038_url_=A;x.JSC$13038_method_="POST";x.JSC$13038_headers_=L;x.blob_=O;x.originalBlobSize_=O.size;x.JSC$13038_metadata_="";X&&(x.JSC$13038_withCredentials_=X);x.state_="Start";return x};var GF=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(GF,_.AE);_.P=GF.prototype;_.P.getEnableSsEngine=function(){return _.Fu(this,2)};
_.P.getEnableAwr=function(){return _.Fu(this,3)};
_.P.getAlohaAutoGaRollout=function(){return _.Fu(this,5)};
_.P.getEnableConfigurator=function(){return _.Fu(this,6)};
_.P.getEnableMweb=function(){return _.Fu(this,7)};
var IVg=function(){var A=fV7();return _.GN(A,7,!0)};
GF.prototype.getEnableCtlConsentCheckbox=function(){return _.Fu(this,8)};
GF.prototype.getEnableIframe=function(){return _.Fu(this,9)};
var fV7=function(){var A=new GF;A=_.GN(A,5,!0);A=_.GN(A,2,!0);A=_.GN(A,4,!1);A=_.GN(A,8,!0);return _.GN(A,9,!0)};
GF.prototype.getEnableScreenshotNudge=function(){return _.Fu(this,10)};
var yV6=function(){var A=IVg();return _.GN(A,10,!0)};
GF.prototype.getEnableWebStartupConfigEndpoint=function(){return _.Fu(this,11)};
GF.prototype.getEnableJunkNudge=function(){return _.Fu(this,12)};
var xzu=function(){var A=yV6();return _.GN(A,12,!0)};
_.P=GF.prototype;_.P.getEnableConfiguratorLocale=function(){return _.Fu(this,13)};
_.P.getEnableTinyNoPointer=function(){return _.Fu(this,14)};
_.P.getEnableSupportSessionLogging=function(){return _.Fu(this,15)};
_.P.getEnableFileUploadForScreenshot=function(){return _.Fu(this,16)};
_.P.getEnableDirectDeflectionForSingleCategory=function(){return _.Fu(this,17)};
_.P.getEnableImageSanitization=function(){return _.Fu(this,18)};
_.P.getEnableAlohaBinarySplit=function(){return _.Fu(this,19)};
_.P.getEnableDbFeedbackIntents=function(){return _.Fu(this,20)};
_.P.getEnableMarkMandatoryFieldsWithRequired=function(){return _.Fu(this,21)};
_.P.getEnableFeedbackCategoryCustomUi=function(){return _.Fu(this,22)};
_.P.getEnableRealtimeCtl=function(){return _.Fu(this,23)};var XF9=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(XF9,_.AE);var ywM=[/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 jL_="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 WZP=_.AW(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),Hnu=_.AW(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var Brp,aPs,Mry,k7u;var Z56,jSn;
Z56=function(A,L,O){A.timeOfStartCall=(new Date).getTime();var X=O||_.Ou,x=X.document,J=A.nonce||_.Bf(X.document);J&&!A.nonce&&(A.nonce=J);if(A.flow=="help"){var Y=_.WY("document.location.href",X);!A.helpCenterContext&&Y&&(A.helpCenterContext=Y.substring(0,1200));Y=!0;if(L&&JSON&&JSON.stringify){var T=JSON.stringify(L);(Y=T.length<=1200)&&(A.psdJson=T)}Y||(L={invalidPsd:!0})}L=[A,L,O];X.GOOGLE_FEEDBACK_START_ARGUMENTS=L;O=A.feedbackServerUri||"//www.google.com/tools/feedback";if(Y=X.GOOGLE_FEEDBACK_START)Y.apply(X,L);
else{X=O+"/load.js?";for(var V in A)L=A[V],L==null||_.BJ(L)||(X+=encodeURIComponent(V)+"="+encodeURIComponent(L)+"&");A=qF(x).createElement("SCRIPT");J&&A.setAttribute("nonce",J);_.UB(A,_.gw(X));x.body.appendChild(A)}};
jSn=function(A,L,O,X){var x,J;_.u(function(Y){x=O||_.Ou;var T=A.serverEnvironment==="DEV",V=O||_.Ou;V=A.nonce||_.Bf(V.document);T={integrationKeys:{productId:A.productId,feedbackBucket:A.bucket,triggerId:A.triggerId},callbacks:{onClose:A.callback,onLoad:A.onLoadCallback},formContent:{locale:A.locale,disableScreenshot:A.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:A.abuseLink,additionalDataConsent:A.additionalDataConsent},initializationData:{isLocalServer:T,nonce:V,useNightlyRelease:T,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:A.feedbackServerUri,colorScheme:A.colorScheme},extraData:{productVersion:A.productVersion,authUser:A.authuser,configuratorId:A.configuratorId,customZIndex:A.customZIndex,tinyNoPointer:A.tinyNoPointer,
allowNonLoggedInFeedback:A.allowNonLoggedInFeedback,enableAnonymousFeedback:A.enableAnonymousFeedback}};L&&(V=new Map(Object.entries(L)),T.extraData.productSpecificData=V);J=T;return Y.yield(ArO(J,X,x),0)})};
_.WRH=function(A,L,O){try{if(A.flow==="help"){var X=A.helpCenterPath.replace(/^\//,"");_.z2(O||window,"https://support.google.com/"+X)}else A.flow==="submit"?Z56(A,L,O):sMe(A.productId,A.feedbackServerUri).then(function(x){x=_.ET(x,GF,1);var J=!M2M||(x==null?void 0:x.getEnableMweb()),Y=!A.tinyNoPointer||(x==null?void 0:x.getEnableTinyNoPointer());!x||x.getAlohaAutoGaRollout()&&J&&Y?jSn(A,L,O,x):Z56(A,L,O)},function(x){x&&x.name!=="DuplicateFormError"&&Z56(A,L,O)})}catch(x){jSn(A,L,O,null)}};
_.oZ("userfeedback.api.startFeedback",_.WRH);var Jru=/https?:\/\/\S+\.\S+/,PAP=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],dzs=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var VzM=function(A){var L=A.split(""),O=[-263237435,15,L,function(X,x,J){var Y=x.length;J.forEach(function(T,V,E){this.push(E[V]=x[(x.indexOf(T)-x.indexOf(this[V])+V+Y--)%x.length])},X.split(""))},
function(X,x){X=(X%x.length+x.length)%x.length;x.splice(-X).reverse().forEach(function(J){x.unshift(J)})},
"response",function(){for(var X=64,x=[];++X-x.length-32;){switch(X){case 58:X-=14;case 91:case 92:case 93:continue;case 123:X=47;case 94:case 95:case 96:continue;case 46:X=95}x.push(String.fromCharCode(X))}return x},
null,12,1540023973,65941107,null,L,function(X,x){for(X=(X%x.length+x.length)%x.length;X--;)x.unshift(x.pop())},
695603893,function(X){for(var x=X.length;x;)X.push(X.splice(--x,1)[0])},
"'[;'[(",function(X,x){X.push(x)},
null,function(X,x,J,Y,T){return x(J,Y,T)},
"continuation",L,function(X,x){if(X.length!=0){x=(x%X.length+X.length)%X.length;var J=X[0];X[0]=X[x];X[x]=J}},
function(){for(var X=64,x=[];++X-x.length-32;){switch(X){case 91:X=44;continue;case 123:X=65;break;case 65:X-=18;continue;case 58:X=96;continue;case 46:X=95}x.push(String.fromCharCode(X))}return x},
'"),/]];'];O[7]=O;O[11]=O;O[18]=O;try{(((0,O[15])(O[21]),O[22])(O[11],O[9]),O[22])(O[new Date("1970-01-01T04:30:12.000+04:30")/1E3],O[1]),((0,O[22])(O[11],O[23]),O[4])(O[10],O[18]),(0,O[20])(O[21],O[14])<<(0,O[17])(O[18],O[1]),(0,O[4])(O[8],O[21]),(0,O[19])((0,O[19])((0,O[17])(O[7],O[9]),O[3],O[20],(0,O[6])(),O[2]),O[3],O[5],(0,O[15])(),O[2])}catch(X){return"aTlOUOubTO4AP____8P_"+A}return L.join("")};_.H5H=new _.PF("runAttestationCommand");var zbJ=new _.PF("verifyCommand");_.ll=new _.PF("accessibilityContext");var Bkg=new _.PF("accessibilityData");var Mu6=new _.PF("profileCardCommand");var yGd=new _.PF("signInEndpoint");var I3u=new _.PF("signOutEndpoint");var aV7;_.$S6=new _.PF("accountItemSectionRenderer");aV7=new _.PF("accountItemRenderer");_.kv7=new _.PF("saveCommandToSessionStorageAction");var USL=new _.PF("crossAccountChannelTransferEndpoint");var Rwy=new _.PF("getAccountMenuEndpoint");_.QpD=new _.PF("getAccountSwitcherEndpoint");var F_D=new _.PF("getAccountsListEndpoint");var vjg=new _.PF("getAccountsListInnertubeEndpoint");_.cB=new _.PF("addToToastAction");var ojg=new _.PF("hideEnclosingAction");_.Cb=new _.PF("replaceEnclosingAction");var AQc=new _.PF("buttonRefreshAction");var LSN=new _.PF("adsControlFlowOpportunityReceivedCommand");var Ocj=new _.PF("openAdAllowlistInstructionCommand");var XbL=new _.PF("videoMastheadAdPrimaryVideoRenderer");var xJj=new _.PF("displayAdRenderer");var kcp=new _.PF("instreamVideoAdRenderer");_.s$V=new _.PF("inFeedAdLayoutRenderer");var JQN=new _.PF("sequenceItemInPlayerAdLayoutRenderer");_.Pb3=new _.PF("adSlotRenderer");var dJ3=new _.PF("adAvatarViewModel");var YMH=new _.PF("adBadgeViewModel");var ue6=new _.PF("adImageViewModel");var ldO=new _.PF("reelsAdCardButtonedViewModel");var T_6=new _.PF("reelsPlayerOverlayLayoutViewModel");var V7l=new _.PF("showSchedulingPanelCommand");var DJg=new _.PF("backstageCommentsRenderer");var eJL=new _.PF("backstageImageRenderer");var EFj=new _.PF("backstagePostRenderer");var nFl=new _.PF("backstageZeroStateRenderer");var t7l=new _.PF("postRenderer");var bcl=new _.PF("sharedPostRenderer");var hJ6=new _.PF("createBackstagePostEndpoint");var SMl=new _.PF("getPostVideoPreviewEndpoint");var qM7=new _.PF("updateBackstagePostEndpoint");var gFN=new _.PF("filterChipTransformCommand");var wbl=new _.PF("insertRichSectionCommand");var pcu=new _.PF("talkToRecsDeselectCommand");var pb7=new _.PF("talkToRecsNextCommand");var wcd=new _.PF("talkToRecsSelectCommand");var icJ=new _.PF("talkToRecsUpdateTextCommand");_.gM=new _.PF("browseEndpoint");_.N_L=new _.PF("confirmDialogEndpoint");var rQ3=new _.PF("expandOnHoverCardRenderer");var KSN=new _.PF("lumiereShelfDetailsRenderer");var GI6=new _.PF("revealBusinessEmailCommand");var ltj=new _.PF("validateChannelHandleCommand");var cQL=new _.PF("channelCreationFormEndpoint");var Cb6=new _.PF("aboutChannelViewModel");var FSV=new _.PF("channelThumbnailWithLinkRenderer");var RJ6=new _.PF("channelCreationServiceEndpoint");var Q$V=new _.PF("updateChannelPageSettingsEndpoint");var FE=function(A){this.delegate=A},Rt=function(){FE.apply(this,arguments)};
_.g(Rt,FE);_.v2.Object.defineProperties(Rt.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(A){this.delegate.entityMetadata=A}}});var mJj=function(){Rt.apply(this,arguments)};
_.g(mJj,Rt);mJj.prototype.getAssociations=function(){return[]};
mJj.prototype.getTypeName=function(){return"channelHandle"};var m$M=new _.PF("webThumbnailDetailsExtensionData");var d4p=new _.PF("commandContext");var ftn=new _.PF("addVideoLinkAction");var ItN=new _.PF("banAuthorAction");var yQN=new _.PF("createCommentAction");var ZcJ=new _.PF("createCommentReplyAction");var j$H=new _.PF("createPollAction");var WS6=new _.PF("hideIdentityChipAction");var Hc6=new _.PF("openUpdateCommentDialogAction");var zJj=new _.PF("pinCommentAction");var B_6=new _.PF("removeCommentAction");var M76=new _.PF("unpinCommentAction");var QF=new _.PF("updateBackstagePollAction");var $Jc=new _.PF("updateCommentVoteAction");var at6=new _.PF("commentThreadRenderer");var kI6=function(){Rt.apply(this,arguments)};
_.g(kI6,Rt);kI6.prototype.getAssociations=function(){return[]};
kI6.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var UJN=function(){Rt.apply(this,arguments)};
_.g(UJN,Rt);UJN.prototype.getAssociations=function(){return[]};
UJN.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.vF7=new _.PF("commentDialogRenderer");var oFn=new _.PF("reloadCommentsCommand");var Aw3=new _.PF("updateCommentsSettingsEndpoint");var LZj=new _.PF("commentViewModel");var On6=new _.PF("triStateButtonViewModel");var X93=new _.PF("voiceReplyContainerViewModel");_.em=new _.PF("commandExecutorCommand");var ZX=new _.PF("emoji");var xIn=new _.PF("updateCreatorChannelInnertubeCommand");_.sLj=new _.PF("appendContinuationItemsAction");_.JwN=new _.PF("changeEngagementPanelVisibilityAction");_.Mn=new _.PF("continuationCommand");var P5H=new _.PF("hideReportedCommentAction");var dIH=new _.PF("listMutationCommand");_.mG=new _.PF("openPopupAction");var Y13=new _.PF("persistSubscriptionsDisplayPreferencesCommand");var tr6;_.u_6=new _.PF("playlistRemoveVideosAction");_.Trg=new _.PF("updatePlaylistAction");_.Vrl=new _.PF("addToPlaylistCommand");_.DIN=new _.PF("endPlaylistCommand");_.ejg=new _.PF("recoverPlaylistCommand");_.EIg=new _.PF("refreshPlaylistCommand");_.nI3=new _.PF("refreshFormCommand");tr6=new _.PF("openOnePickAddVideoModalCommand");_.jps=new _.PF("reloadContinuationItemsCommand");_.bnV=new _.PF("scrollToEngagementPanelCommand");var hj6=new _.PF("selectCountryCommand");var S17=new _.PF("showReloadUiCommand");var q13=new _.PF("undoFeedbackAction");var gIV=new _.PF("updateButtonAction");var w9u=new _.PF("updateSubscribeButtonAction");var p9H=new _.PF("updateToggleAction");var ing=new _.PF("webNativeShareCommand");_.LM=new _.PF("webCommandMetadata");_.fb=new _.PF("webHandleServiceEndpointExtension");var G$_=new _.PF("webNavigationEndpointData");var NrL=new _.PF("backgroundAudioPlaybackCommand");var rw6=new _.PF("copyLinkCommand");var KZg=new _.PF("playlistVotingRefreshPopupCommand");var G73=new _.PF("selectChipCommand");var lP6=new _.PF("setCookieCommand");var cwn=new _.PF("setLocalStorageCommand");var C5J=new _.PF("setPrefStorageEntryCommand");var mIj;_.FZN=new _.PF("settingsUpdateCheckboxCommand");_.Rj3=new _.PF("settingsUpdateTextCommand");_.QLc=new _.PF("settingsUpdateOptionsCommand");mIj=new _.PF("settingsUpdateSwitchCommand");_.fP7=new _.PF("settingsUpdateConnectedAppRendererCommand");var IPV=new _.PF("updateTextInputFormFieldRendererCommand");var ywl=new _.PF("updateToggleButtonStateCommand");var ZnN=new _.PF("updateUrlParamCommand");var jLu=new _.PF("webSubmitFormCommand");var WZ7=new _.PF("channelSwitcherPageRenderer"),HnJ=new _.PF("updateChannelSwitcherPageAction");_.JR=new _.PF("continuationItemRenderer");_.It=new _.PF("richItemRenderer");var zjN=new _.PF("richSectionRenderer");_.BrL=new _.PF("richShelfRenderer");_.MrN=new _.PF("metadataBadgeRenderer");_.$I7=new _.PF("multiPageMenuNotificationSectionRenderer");_.aPc=new _.PF("playlistLoopButtonStateRenderer");var k7J=new _.PF("claimLegacyYoutubeChannelEndpoint");var UIn=new _.PF("getNotificationMenuEndpoint");var vIj=new _.PF("getSearchInVideoCommand");_.oIH=new _.PF("getTranscriptEndpoint");_.nM=new _.PF("signalServiceEndpoint");var Arj=new _.PF("verifyAgeEndpoint");var EAd=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(EAd,_.AE);EAd.prototype.getPath=function(){return _.mT(this,1)};
EAd.prototype.getValue=function(){return _.mT(this,2)};var LDn=[0,_.Ov,-1];var ODH=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(ODH,_.AE);var eaD=_.ua(ODH,[0,_.X4,LDn]);var XF6=new _.PF("dismissalEndpoint");var xzJ=new _.PF("elementsCommand");_.WR=new _.PF("innertubeCommand");var sMV=new _.PF("multipleInlinePlaybackCommand");var D3e=new _.PF("loggingDirectives");var Jrg=new _.PF("acknowledgeChannelTouStrikeCommand");var PA7=function(){Rt.apply(this,arguments)};
_.g(PA7,Rt);PA7.prototype.getAssociations=function(){return[]};
PA7.prototype.getTypeName=function(){return"booleanEntity"};var dzc=function(){Rt.apply(this,arguments)};
_.g(dzc,Rt);dzc.prototype.getAssociations=function(){return[]};
dzc.prototype.getTypeName=function(){return"stringEntity"};var Ok=new _.PF("entityBatchUpdate");_.Ya3=new _.PF("entityUpdateCommand");var u8j=function(){Rt.apply(this,arguments)};
_.g(u8j,Rt);u8j.prototype.getAssociations=function(){var A=[];this.delegate.alternateChannel&&A.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&A.push.apply(A,_.le(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&A.push(this.delegate.oneofChannelEntity);return[].concat(_.le(new Set(A)))};
u8j.prototype.getTypeName=function(){return"fakeChannel"};var Tx6=function(){Rt.apply(this,arguments)};
_.g(Tx6,Rt);Tx6.prototype.getAssociations=function(){var A=[];this.delegate.entryCollection&&A.push(this.delegate.entryCollection);return[].concat(_.le(new Set(A)))};
Tx6.prototype.getTypeName=function(){return"fakePlaylist"};
var Vp6=function(){Rt.apply(this,arguments)};
_.g(Vp6,Rt);Vp6.prototype.getAssociations=function(){var A=[];this.delegate.parentPlaylist&&A.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var L=_.d(this.delegate.entries),O=L.next();!O.done;O=L.next())A.push.apply(A,_.le((new DzN(O.value)).getAssociations()));return[].concat(_.le(new Set(A)))};
Vp6.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var DzN=function(){FE.apply(this,arguments)};
_.g(DzN,FE);DzN.prototype.getAssociations=function(){var A=[];this.delegate.video&&A.push(this.delegate.video);return[].concat(_.le(new Set(A)))};var e16=function(){Rt.apply(this,arguments)};
_.g(e16,Rt);e16.prototype.getAssociations=function(){var A=[];this.delegate.descriptionEntity&&A.push(this.delegate.descriptionEntity);this.delegate.creators&&A.push.apply(A,_.le(this.delegate.creators));this.delegate.theBiggestFan&&A.push(this.delegate.theBiggestFan);return[].concat(_.le(new Set(A)))};
e16.prototype.getTypeName=function(){return"fakeVideo"};
var Exc=function(){Rt.apply(this,arguments)};
_.g(Exc,Rt);Exc.prototype.getAssociations=function(){return[]};
Exc.prototype.getTypeName=function(){return"fakeVideoDescription"};var nxN=new _.PF("fantasyRosterViewModel");var tpj=new _.PF("addFollowUpSurveyCommand");var bD6=new _.PF("getSurveyCommand");var h1H=new _.PF("ratingSurveyOptionRenderer");_.y7=new _.PF("feedbackEndpoint");var Sa7=new _.PF("reportHistoryTableCellRenderer"),qa3=new _.PF("reportHistoryTableTextCellRenderer"),gx6=new _.PF("reportHistoryTableReasonCellRenderer");_.wFn=new _.PF("flagEndpoint");var pFc=new _.PF("getFlowCommand");var iDl=new _.PF("submitFormWithValidationFlowCommand");var NxH=function(){Rt.apply(this,arguments)};
_.g(NxH,Rt);NxH.prototype.getAssociations=function(){return[]};
NxH.prototype.getTypeName=function(){return"flowStateEntity"};var rrn=new _.PF("flowFormState");var KDN=new _.PF("gameCardRenderer");var Ga3=new _.PF("accountLinkingStateChangedCommand");var lIj=function(){Rt.apply(this,arguments)};
_.g(lIj,Rt);lIj.prototype.getAssociations=function(){return[]};
lIj.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var crL=new _.PF("changeMiniAppPlayStateCommand");var CAj=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(CAj,_.AE);var yF=[1,2,3];var FDj=[0,yF,h0J,_.Swp,V_e];var R1n=_.ua(CAj,FDj),QM3=_.T2(FDj);var mzj=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(mzj,_.AE);var fI6=[0,_.oH,_.Ov];var IIj=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(IIj,_.AE);var yrL=[0,_.Ov,_.oH,-1];var ZU=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(ZU,_.AE);var ZD7=_.T2([0,1,fI6,_.sv,yrL]);var jML=new _.PF("miniAppScoreChallengeViewModel");var WD6=new _.PF("miniGameCardViewModel");var HDL=new _.PF("teaserCardViewModel");var z16=function(){Rt.apply(this,arguments)};
_.g(z16,Rt);z16.prototype.getAssociations=function(){return[]};
z16.prototype.getTypeName=function(){return"logoEntity"};_.Bx3=new _.PF("feedbackItemRenderer");var Mp6=function(){Rt.apply(this,arguments)};
_.g(Mp6,Rt);Mp6.prototype.getAssociations=function(){return[]};
Mp6.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.$zV=new _.PF("playerInterstitialRenderer");var aIn=new _.PF("getKidsBlocklistPickerCommand");_.kac=new _.PF("updateKidsBlacklistEndpoint");var UzH=new _.PF("learningJourneyCanvasCommand");_.Mw=new _.PF("likeEndpoint");var vxH,oxL,A_J;vxH=new _.PF("addChatItemAction");oxL=new _.PF("removeChatItemAction");A_J=new _.PF("markChatItemAsDeletedAction");_.LdH=new _.PF("setLiveChatCollapsedStateAction");var OXV=function(){Rt.apply(this,arguments)};
_.g(OXV,Rt);OXV.prototype.getAssociations=function(){return[]};
OXV.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var XgL=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(XgL,_.AE);var x_6=_.ua(XgL,[0,1,_.oH]);var sjl=new _.PF("liveChatEndpoint");var J_V=new _.PF("liveChatItemContextMenuEndpoint");var PPN=new _.PF("liveChatReplayEndpoint");_.d_7=new _.PF("emojiPickerRenderer");var YSj=new _.PF("liveChatAuthorBadgeViewModel");var uon=new _.PF("deleteLiveChatMessageCommand");var Ttc=new _.PF("liveChatActionEndpoint");var V03=new _.PF("createLiveChatPollEndpoint");var D_g=new _.PF("manageLiveChatUserEndpoint");var eQu=new _.PF("moderateLiveChatEndpoint");_.E9j=new _.PF("sendLiveChatMessageEndpoint");var n9g=new _.PF("sendLiveChatVoteEndpoint");var t0l=new _.PF("clearLocationCommand");var bX6=new _.PF("resolveLocationCommand");var hQH=new _.PF("interactionLoggingCommandMetadata");var SSL=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(SSL,_.AE);var qSg=function(A,L){return _.dX(A,1,L)};var g9c=[0,_.L5];var wg7=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(wg7,_.AE);var pg6=function(A,L){return bg(A,1,SSL,L)};wg7.prototype.JSC$13135_serializeBinary=m0P([0,_.X4,g9c]);var lIO={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 iXl={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"},
Nt7={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 $yM={GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED"};_.A6_=new _.PF("logFlowLoggingEventCommand");_.Nb=new _.PF("loggingContext");var r_u=new _.PF("captionLanguageSelectActionCommand");var KdV=new _.PF("showCaptionLanguageSelectActionCommand");var GCV=new _.PF("dismissDialogEndpoint");var l_n=new _.PF("dismissPlayerOverlayCommand");var c_n=new _.PF("hideItemSectionVideosByIdCommand");var CPg=new _.PF("showMiniplayerCommand");var Fdn=function(){Rt.apply(this,arguments)};
_.g(Fdn,Rt);Fdn.prototype.getAssociations=function(){return[]};
Fdn.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var RQ3=function(){Rt.apply(this,arguments)};
_.g(RQ3,Rt);RQ3.prototype.getAssociations=function(){return[]};
RQ3.prototype.getTypeName=function(){return"downloadStatusEntity"};var Qjn=function(){Rt.apply(this,arguments)};
_.g(Qjn,Rt);Qjn.prototype.getAssociations=function(){return[]};
Qjn.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var m_c=function(){Rt.apply(this,arguments)};
_.g(m_c,Rt);m_c.prototype.getAssociations=function(){var A=[];this.delegate.downloadsList&&A.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&A.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&A.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&A.push(this.delegate.refresh);return[].concat(_.le(new Set(A)))};
m_c.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var f_H=function(){Rt.apply(this,arguments)};
_.g(f_H,Rt);f_H.prototype.getAssociations=function(){var A=[];this.delegate.refresh&&A.push(this.delegate.refresh);if(this.delegate.downloads)for(var L=_.d(this.delegate.downloads),O=L.next();!O.done;O=L.next())A.push.apply(A,_.le((new I_g(O.value)).getAssociations()));return[].concat(_.le(new Set(A)))};
f_H.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var I_g=function(){FE.apply(this,arguments)};
_.g(I_g,FE);I_g.prototype.getAssociations=function(){var A=[];this.delegate.video&&A.push(this.delegate.video);this.delegate.playlist&&A.push(this.delegate.playlist);this.delegate.videoItem&&A.push(this.delegate.videoItem);this.delegate.playlistItem&&A.push(this.delegate.playlistItem);return[].concat(_.le(new Set(A)))};var y_J=function(){Rt.apply(this,arguments)};
_.g(y_J,Rt);y_J.prototype.getAssociations=function(){var A=[];this.delegate.localImageEntities&&A.push.apply(A,_.le(this.delegate.localImageEntities));return[].concat(_.le(new Set(A)))};
y_J.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var ZXL=function(){Rt.apply(this,arguments)};
_.g(ZXL,Rt);ZXL.prototype.getAssociations=function(){var A=[];this.delegate.playbackData&&A.push(this.delegate.playbackData);this.delegate.localImageEntities&&A.push.apply(A,_.le(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&A.push(this.delegate.videoDownloadContextEntity);return[].concat(_.le(new Set(A)))};
ZXL.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var jjH=function(){Rt.apply(this,arguments)};
_.g(jjH,Rt);jjH.prototype.getAssociations=function(){return[]};
jjH.prototype.getTypeName=function(){return"offlineabilityEntity"};var Wdc=function(){Rt.apply(this,arguments)};
_.g(Wdc,Rt);Wdc.prototype.getAssociations=function(){var A=[];this.delegate.fakeChildren&&A.push.apply(A,_.le(this.delegate.fakeChildren));return[].concat(_.le(new Set(A)))};
Wdc.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var HXV=function(){Rt.apply(this,arguments)};
_.g(HXV,Rt);HXV.prototype.getAssociations=function(){var A=[];this.delegate.video&&A.push(this.delegate.video);this.delegate.playbackData&&A.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&A.push(this.delegate.offlineVideoPolicy);return[].concat(_.le(new Set(A)))};
HXV.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var zQl=function(){Rt.apply(this,arguments)};
_.g(zQl,Rt);zQl.prototype.getAssociations=function(){return[]};
zQl.prototype.getTypeName=function(){return"continuationTokenEntity"};var BtN=function(){Rt.apply(this,arguments)};
_.g(BtN,Rt);BtN.prototype.getAssociations=function(){var A=[];this.delegate.channelOwner&&A.push(this.delegate.channelOwner);this.delegate.videos&&A.push.apply(A,_.le(this.delegate.videos));this.delegate.collaboratorChannels&&A.push.apply(A,_.le(this.delegate.collaboratorChannels));this.delegate.downloadState&&A.push(this.delegate.downloadState);this.delegate.refresh&&A.push(this.delegate.refresh);return[].concat(_.le(new Set(A)))};
BtN.prototype.getTypeName=function(){return"mainPlaylistEntity"};var M0N=function(){Rt.apply(this,arguments)};
_.g(M0N,Rt);M0N.prototype.getAssociations=function(){var A=[];this.delegate.video&&A.push(this.delegate.video);this.delegate.channelContributor&&A.push(this.delegate.channelContributor);return[].concat(_.le(new Set(A)))};
M0N.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var $_7=function(){FE.apply(this,arguments)};
_.g($_7,FE);$_7.prototype.getAssociations=function(){var A=[];this.delegate.recommendedVideoMetadata&&A.push.apply(A,_.le((new a_u(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.le(new Set(A)))};
var a_u=function(){FE.apply(this,arguments)};
_.g(a_u,FE);a_u.prototype.getAssociations=function(){var A=[];this.delegate.localImageEntities&&A.push.apply(A,_.le(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&A.push(this.delegate.videoDownloadContextEntity);return[].concat(_.le(new Set(A)))};var kCH=function(){FE.apply(this,arguments)};
_.g(kCH,FE);kCH.prototype.getAssociations=function(){var A=[];this.delegate.playbackPosition&&A.push(this.delegate.playbackPosition);return[].concat(_.le(new Set(A)))};var U_H=function(){Rt.apply(this,arguments)};
_.g(U_H,Rt);U_H.prototype.getAssociations=function(){var A=[];this.delegate.owner&&A.push(this.delegate.owner);this.delegate.downloadState&&A.push(this.delegate.downloadState);this.delegate.userState&&A.push.apply(A,_.le((new kCH(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&A.push.apply(A,_.le((new $_7(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.le(new Set(A)))};
U_H.prototype.getTypeName=function(){return"mainVideoEntity"};var v9V=function(){Rt.apply(this,arguments)};
_.g(v9V,Rt);v9V.prototype.getAssociations=function(){var A=[];this.delegate.userChannelDetails&&A.push(this.delegate.userChannelDetails);return[].concat(_.le(new Set(A)))};
v9V.prototype.getTypeName=function(){return"ytMainChannelEntity"};var o9u=function(){Rt.apply(this,arguments)};
_.g(o9u,Rt);o9u.prototype.getAssociations=function(){var A=[];this.delegate.channelOwner&&A.push(this.delegate.channelOwner);this.delegate.playbackPosition&&A.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&A.push.apply(A,_.le(this.delegate.localImageEntities));this.delegate.downloadStatus&&A.push(this.delegate.downloadStatus);return[].concat(_.le(new Set(A)))};
o9u.prototype.getTypeName=function(){return"ytMainVideoEntity"};var r7p=new _.PF("downloadsPageSmartDownloadsOptInBannerParams");var c7u=new _.PF("downloadsPageUpsellBannerParams");var AAl=function(){Rt.apply(this,arguments)};
_.g(AAl,Rt);AAl.prototype.getAssociations=function(){return[]};
AAl.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var L1j=function(){Rt.apply(this,arguments)};
_.g(L1j,Rt);L1j.prototype.getAssociations=function(){return[]};
L1j.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var OC7=function(){Rt.apply(this,arguments)};
_.g(OC7,Rt);OC7.prototype.getAssociations=function(){return[]};
OC7.prototype.getTypeName=function(){return"macroMarkerEntity"};var Xic=function(){Rt.apply(this,arguments)};
_.g(Xic,Rt);Xic.prototype.getAssociations=function(){return[]};
Xic.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var x5J=function(){Rt.apply(this,arguments)};
_.g(x5J,Rt);x5J.prototype.getAssociations=function(){return[]};
x5J.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var shn=function(){Rt.apply(this,arguments)};
_.g(shn,Rt);shn.prototype.getAssociations=function(){return[]};
shn.prototype.getTypeName=function(){return"playerStateEntity"};var JAg=function(){Rt.apply(this,arguments)};
_.g(JAg,Rt);JAg.prototype.getAssociations=function(){return[]};
JAg.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var Phu=function(){Rt.apply(this,arguments)};
_.g(Phu,Rt);Phu.prototype.getAssociations=function(){return[]};
Phu.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var d5g=function(){Rt.apply(this,arguments)};
_.g(d5g,Rt);d5g.prototype.getAssociations=function(){return[]};
d5g.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.jo=new _.PF("dislikeButtonViewModel");_.WB=new _.PF("likeButtonViewModel");var YQu=new _.PF("videoSummaryContentViewModel");var utV=new _.PF("videoSummaryParagraphViewModel");var Tqn=new _.PF("changeTimelyActionVisibilityCommand");var VKJ=new _.PF("hideEngagementPanelEndpoint");var D53=new _.PF("refreshPanelEndpoint");var eC3=new _.PF("scrollToSectionEndpoint");var Ep7=new _.PF("seekToVideoTimestampCommand");_.II=new _.PF("showEngagementPanelEndpoint");var npV=new _.PF("showTransientPlayerScrimOverlayCommand");var tK7=new _.PF("toggleEngagementPanelCommand");_.bCN=new _.PF("createBroadcastCommand");var hCH=new _.PF("metadataUpdateCommand");var SQ7=function(){Rt.apply(this,arguments)};
_.g(SQ7,Rt);SQ7.prototype.getAssociations=function(){return[]};
SQ7.prototype.getTypeName=function(){return"featuredProductsEntity"};var qQu=function(){Rt.apply(this,arguments)};
_.g(qQu,Rt);qQu.prototype.getAssociations=function(){return[]};
qQu.prototype.getTypeName=function(){return"pinnedProductEntity"};var gpg=function(){Rt.apply(this,arguments)};
_.g(gpg,Rt);gpg.prototype.getAssociations=function(){return[]};
gpg.prototype.getTypeName=function(){return"trendingOfferEntity"};_.wiV=new _.PF("merchandiseShelfRenderer");var pin=new _.PF("gridMovieRenderer");_.iCJ=new _.PF("movieRenderer");var Nq6=function(){Rt.apply(this,arguments)};
_.g(Nq6,Rt);Nq6.prototype.getAssociations=function(){var A=[];this.delegate.trackDownloadMetadatas&&A.push.apply(A,_.le(this.delegate.trackDownloadMetadatas));return[].concat(_.le(new Set(A)))};
Nq6.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var rAj=function(){Rt.apply(this,arguments)};
_.g(rAj,Rt);
rAj.prototype.getAssociations=function(){var A=[];this.delegate.downloadedTracks&&A.push.apply(A,_.le(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&A.push.apply(A,_.le(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&A.push.apply(A,_.le(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&A.push.apply(A,_.le(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&A.push.apply(A,_.le(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
A.push.apply(A,_.le(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&A.push.apply(A,_.le(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&A.push.apply(A,_.le(this.delegate.metadataOnlyTracks));return[].concat(_.le(new Set(A)))};
rAj.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var K13=function(){Rt.apply(this,arguments)};
_.g(K13,Rt);K13.prototype.getAssociations=function(){var A=[];this.delegate.trackDownloadMetadatas&&A.push.apply(A,_.le(this.delegate.trackDownloadMetadatas));return[].concat(_.le(new Set(A)))};
K13.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var Go7=function(){Rt.apply(this,arguments)};
_.g(Go7,Rt);Go7.prototype.getAssociations=function(){var A=[];this.delegate.playbackData&&A.push(this.delegate.playbackData);this.delegate.localImageEntities&&A.push.apply(A,_.le(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&A.push(this.delegate.videoDownloadContextEntity);return[].concat(_.le(new Set(A)))};
Go7.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var l2u=function(){Rt.apply(this,arguments)};
_.g(l2u,Rt);
l2u.prototype.getAssociations=function(){var A=[];this.delegate.musicLibraryStatusEntity&&A.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&A.push.apply(A,_.le(this.delegate.primaryArtists));this.delegate.details&&A.push(this.delegate.details);this.delegate.userDetails&&A.push(this.delegate.userDetails);this.delegate.tracks&&A.push.apply(A,_.le(this.delegate.tracks));this.delegate.share&&A.push(this.delegate.share);this.delegate.downloadMetadata&&A.push(this.delegate.downloadMetadata);this.delegate.refresh&&
A.push(this.delegate.refresh);return[].concat(_.le(new Set(A)))};
l2u.prototype.getTypeName=function(){return"musicAlbumRelease"};
var cA3=function(){Rt.apply(this,arguments)};
_.g(cA3,Rt);cA3.prototype.getAssociations=function(){var A=[];this.delegate.albumRelease&&A.push(this.delegate.albumRelease);this.delegate.tracks&&A.push.apply(A,_.le(this.delegate.tracks));return[].concat(_.le(new Set(A)))};
cA3.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var ChN=function(){Rt.apply(this,arguments)};
_.g(ChN,Rt);ChN.prototype.getAssociations=function(){var A=[];this.delegate.albumRelease&&A.push(this.delegate.albumRelease);return[].concat(_.le(new Set(A)))};
ChN.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var F1g=function(){Rt.apply(this,arguments)};
_.g(F1g,Rt);F1g.prototype.getAssociations=function(){var A=[];this.delegate.details&&A.push(this.delegate.details);this.delegate.userDetails&&A.push(this.delegate.userDetails);return[].concat(_.le(new Set(A)))};
F1g.prototype.getTypeName=function(){return"musicArtist"};
var RC3=function(){Rt.apply(this,arguments)};
_.g(RC3,Rt);RC3.prototype.getAssociations=function(){var A=[];this.delegate.parentArtist&&A.push(this.delegate.parentArtist);return[].concat(_.le(new Set(A)))};
RC3.prototype.getTypeName=function(){return"musicArtistDetail"};
var Qhg=function(){Rt.apply(this,arguments)};
_.g(Qhg,Rt);Qhg.prototype.getAssociations=function(){var A=[];this.delegate.parentArtist&&A.push(this.delegate.parentArtist);return[].concat(_.le(new Set(A)))};
Qhg.prototype.getTypeName=function(){return"musicArtistUserDetail"};var m5u=function(){Rt.apply(this,arguments)};
_.g(m5u,Rt);m5u.prototype.getAssociations=function(){return[]};
m5u.prototype.getTypeName=function(){return"musicLibraryEdit"};var f2u=function(){Rt.apply(this,arguments)};
_.g(f2u,Rt);f2u.prototype.getAssociations=function(){return[]};
f2u.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var I2n=function(){Rt.apply(this,arguments)};
_.g(I2n,Rt);
I2n.prototype.getAssociations=function(){var A=[];this.delegate.tracks&&A.push.apply(A,_.le(this.delegate.tracks));this.delegate.refresh&&A.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&A.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&A.push(this.delegate.details);this.delegate.downloadMetadata&&A.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&A.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&A.push(this.delegate.userDetails);this.delegate.entryCollection&&
A.push(this.delegate.entryCollection);this.delegate.share&&A.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&A.push.apply(A,_.le((new yAN(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.le(new Set(A)))};
I2n.prototype.getTypeName=function(){return"musicPlaylist"};
var yAN=function(){FE.apply(this,arguments)};
_.g(yAN,FE);yAN.prototype.getAssociations=function(){var A=[];this.delegate.creatorEntity&&A.push(this.delegate.creatorEntity);return[].concat(_.le(new Set(A)))};var ZCg=function(){Rt.apply(this,arguments)};
_.g(ZCg,Rt);ZCg.prototype.getAssociations=function(){return[]};
ZCg.prototype.getTypeName=function(){return"musicShare"};var jh7=function(){Rt.apply(this,arguments)};
_.g(jh7,Rt);
jh7.prototype.getAssociations=function(){var A=[];this.delegate.musicLibraryStatusEntity&&A.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&A.push.apply(A,_.le(this.delegate.artists));this.delegate.audioModeVersion&&A.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&A.push(this.delegate.videoModeVersion);this.delegate.userDetails&&A.push(this.delegate.userDetails);this.delegate.details&&A.push(this.delegate.details);this.delegate.albumRelease&&A.push(this.delegate.albumRelease);this.delegate.share&&
A.push(this.delegate.share);this.delegate.libraryEdit&&A.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&A.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&A.push(this.delegate.playbackPosition);this.delegate.lyrics&&A.push(this.delegate.lyrics);return[].concat(_.le(new Set(A)))};
jh7.prototype.getTypeName=function(){return"musicTrack"};
var W1c=function(){Rt.apply(this,arguments)};
_.g(W1c,Rt);W1c.prototype.getAssociations=function(){var A=[];this.delegate.parentTrack&&A.push(this.delegate.parentTrack);return[].concat(_.le(new Set(A)))};
W1c.prototype.getTypeName=function(){return"musicTrackDetail"};
var HCV=function(){Rt.apply(this,arguments)};
_.g(HCV,Rt);HCV.prototype.getAssociations=function(){var A=[];this.delegate.parentTrack&&A.push(this.delegate.parentTrack);return[].concat(_.le(new Set(A)))};
HCV.prototype.getTypeName=function(){return"musicTrackUserDetail"};var X2=new _.PF("musicResponsiveListItemRenderer");var BPM=new _.PF("addToPlaylistEndpoint");var zCg=new _.PF("captionPickerEndpoint");var BqJ=new _.PF("suggestStats");var MKu=new _.PF("backstageImageUploadEndpoint");var $5J=new _.PF("createBackstagePostDialogEndpoint");_.a2V=new _.PF("createCommentReplyDialogEndpoint");_.koJ=new _.PF("updateCommentDialogEndpoint");_.U5n=new _.PF("updateCommentReplyDialogEndpoint");var vpu=new _.PF("menuEndpoint");var Nve=new _.PF("modalEndpoint");var op3=new _.PF("playlistEditorEndpoint");var ABj=new _.PF("copyTextEndpoint");var LGN,ObN;LGN=new _.PF("shareEndpoint");ObN=new _.PF("shareEntityEndpoint");_.XBg=new _.PF("shareEntityServiceEndpoint");_.A1e=new _.PF("userFeedbackEndpoint");_.$O=new _.PF("watchEndpoint");var PRO=new _.PF("watchPlaylistEndpoint");var x13=new _.PF("addUpcomingEventReminderEndpoint");_.HB=new _.PF("getCommentsFromInboxCommand");var stH=new _.PF("notificationOptOutEndpoint");var JB6=new _.PF("recordNotificationInteractionsEndpoint");var Plj=new _.PF("removeUpcomingEventReminderEndpoint");var HoM=new _.PF("getDownloadActionCommand");_.d1V=new _.PF("offlineOrchestrationActionCommand");var Y7N=function(){Rt.apply(this,arguments)};
_.g(Y7N,Rt);Y7N.prototype.getAssociations=function(){return[]};
Y7N.prototype.getTypeName=function(){return"captionTrack"};var uEg=function(){Rt.apply(this,arguments)};
_.g(uEg,Rt);uEg.prototype.getAssociations=function(){return[]};
uEg.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var TSg=function(){Rt.apply(this,arguments)};
_.g(TSg,Rt);TSg.prototype.getAssociations=function(){return[]};
TSg.prototype.getTypeName=function(){return"offlineVideoPolicy"};var Vol=function(){Rt.apply(this,arguments)};
_.g(Vol,Rt);Vol.prototype.getAssociations=function(){return[]};
Vol.prototype.getTypeName=function(){return"offlineVideoStreams"};var D16=function(){Rt.apply(this,arguments)};
_.g(D16,Rt);D16.prototype.getAssociations=function(){var A=[];this.delegate.transfer&&A.push(this.delegate.transfer);this.delegate.adsPlaybackData&&A.push.apply(A,_.le(this.delegate.adsPlaybackData));this.delegate.drmLicense&&A.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&A.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&A.push(this.delegate.videoDownloadContextEntity);return[].concat(_.le(new Set(A)))};
D16.prototype.getTypeName=function(){return"playbackData"};var ei6=function(){Rt.apply(this,arguments)};
_.g(ei6,Rt);ei6.prototype.getAssociations=function(){return[]};
ei6.prototype.getTypeName=function(){return"refresh"};var Etu=function(){Rt.apply(this,arguments)};
_.g(Etu,Rt);Etu.prototype.getAssociations=function(){var A=[];this.delegate.offlineVideoStreams&&A.push.apply(A,_.le(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&A.push.apply(A,_.le(this.delegate.captionTrack));return[].concat(_.le(new Set(A)))};
Etu.prototype.getTypeName=function(){return"transfer"};var ntV=function(){Rt.apply(this,arguments)};
_.g(ntV,Rt);ntV.prototype.getAssociations=function(){return[]};
ntV.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var ton=new _.PF("showMoreDrawerCommand");var bbn=new _.PF("updateEngagementPanelContentCommand");var hiJ=new _.PF("getPdgBuyFlowCommand");var S7u=new _.PF("liveChatPurchaseMessageEndpoint");var q7j=new _.PF("openSuperStickerBuyFlowCommand");var gtu=new _.PF("updatePdgFeatureEnablementCommand");var wBH=function(){Rt.apply(this,arguments)};
_.g(wBH,Rt);wBH.prototype.getAssociations=function(){return[]};
wBH.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var pBH=function(){Rt.apply(this,arguments)};
_.g(pBH,Rt);pBH.prototype.getAssociations=function(){return[]};
pBH.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.ib3=new _.PF("pdgCommentChipRenderer");_.NS7=new _.PF("permissionRoleBottomBarRenderer");_.rBJ=new _.PF("updatePermissionRoleCommand");var KG6=new _.PF("prefetchWatchCommand");var GF6=new _.PF("updatePlayerErrorMessageCommand");var mx_=new _.PF("toggleCaptionsVisibilityCommand");_.lUJ=new _.PF("quickActionsViewModel");var cBN=new _.PF("playerResponse");var ClN=new _.PF("playlistRenderer");_.FGH=new _.PF("playlistVideoListRenderer");_.zF=new _.PF("playlistEditEndpoint");var Ri3=new _.PF("createImagePollCommand");var Qtj=new _.PF("createQuizCommand");var m13=new _.PF("quizRenderer");var fUj=new _.PF("uploadedVideoRenderer");var IUg=new _.PF("decorateMessageEndpoint");var yBu=new _.PF("lpOfferCardOptionViewModel");var ZbL=new _.PF("sfvAudioItemPlaybackCommand");var jtN=function(){Rt.apply(this,arguments)};
_.g(jtN,Rt);jtN.prototype.getAssociations=function(){return[]};
jtN.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.BB=new _.PF("reelNonVideoContentEndpoint");_.rM=new _.PF("reelWatchEndpoint");_.M1=new _.PF("reelItemRenderer");_.WGc=new _.PF("reelMetapanelViewModel");_.Hbl=new _.PF("reelNonVideoContentRenderer");_.zi6=new _.PF("reelPlayerOverlayRenderer");var BSN=new _.PF("shortsLockupViewModel");var Mo7=new _.PF("sponsorButtonViewModel");var $16=new _.PF("reelItemWatchResponse");var aU7=new _.PF("textBadgeRenderer");_.$t=new _.PF("buttonRenderer");_.at=new _.PF("toggleButtonRenderer");var wSD=new _.PF("switchButtonViewModel");_.kFg=new _.PF("confirmDialogRenderer");var U1N;U1N=new _.PF("menuRenderer");_.vt6=new _.PF("menuFlexibleItemRenderer");var ot6=new _.PF("pollRenderer");_.A7H=new _.PF("backgroundPromoRenderer");var O26;_.L0c=new _.PF("chipCloudRenderer");O26=new _.PF("chipCloudChipRenderer");var X_l=new _.PF("dropdownRenderer");var xBL=new _.PF("gridVideoRenderer");_.ss6=new _.PF("itemSectionRenderer");_.J7N=new _.PF("messageRenderer");var P47=new _.PF("sortFilterHeaderRenderer");_.kt=new _.PF("videoRenderer");var dBL=new _.PF("resolveUrlCommandMetadata");var YUu=function(){Rt.apply(this,arguments)};
_.g(YUu,Rt);YUu.prototype.getAssociations=function(){return[]};
YUu.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.uGj=new _.PF("getAnswerCommand");_.wM=new _.PF("searchEndpoint");var TmJ=new _.PF("genAiRichTextViewModel");var W_d=new _.PF("overviewAnswerViewModel");var V9c=new _.PF("addToPlaylistServiceEndpoint");var DBN=new _.PF("clearSearchHistoryEndpoint");var esu=new _.PF("clearWatchHistoryEndpoint");var EqL=new _.PF("webSerializedServiceEndpointExtension");_.nq7=new _.PF("createCommentEndpoint");var t9L=new _.PF("createCommentReplyEndpoint");var b2c=new _.PF("performCommentActionEndpoint");var hsg=new _.PF("updateCommentEndpoint");var SU6=new _.PF("updateCommentReplyEndpoint");_.U7=new _.PF("createPlaylistServiceEndpoint");var qUH=new _.PF("deletePlaylistEndpoint");var gqn=new _.PF("deleteVideoEndpoint");var zwP=new _.PF("getReportFormEndpoint");var w_7=new _.PF("modifyChannelNotificationPreferenceEndpoint");var PTr;_.w0=new _.PF("offlinePlaylistEndpoint");PTr={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 d99;_.g0=new _.PF("offlineVideoEndpoint");d99={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 p_J=new _.PF("pingingEndpoint");_.i2L=new _.PF("selectActiveIdentityEndpoint");var Nm6=new _.PF("setSettingEndpoint");var iKD=new _.PF("undoFeedbackEndpoint");var r7L=new _.PF("unsubscribeEndpoint");_.K0J=new _.PF("updatedMetadataEndpoint");var GeV=function(){Rt.apply(this,arguments)};
_.g(GeV,Rt);GeV.prototype.getAssociations=function(){return[]};
GeV.prototype.getTypeName=function(){return"settingEntity"};_.lTu=new _.PF("updateLocalAppSettingCommand");var c7J=new _.PF("saveImageToDeviceEndpoint");var C4g=new _.PF("shareImageCommand");var F07=new _.PF("sharingProviderDataCommand");var RsH=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(RsH,_.AE);var Qsl=[0,_.Ov,-1];RsH.prototype.JSC$13336_serializeBinary=m0P(Qsl);var mBj=_.T2(Qsl);var fT6=new _.PF("userMentionSuggestionRenderer");var IT6=new _.PF("liveChatTunnelCommand");var y7c=new _.PF("showSponsorshipsGiftOfferDialogCommand");var Z2g=new _.PF("sponsorshipsScrollableShelfViewModel");var jsn=new _.PF("updateUpcomingEventReminderButtonStateCommand");var W0N=new _.PF("upcomingEventReminderButtonStateRenderer");var H2J=new _.PF("subscribeEndpoint");var aYH=new _.PF("registerTasksCommand");var k6g=new _.PF("hideSnackbarCommand");var UvV=new _.PF("showDialogCommand");_.r0=new _.PF("showSheetCommand");var v1l=new _.PF("showSnackbarCommand");var o1u=function(){Rt.apply(this,arguments)};
_.g(o1u,Rt);o1u.prototype.getAssociations=function(){return[]};
o1u.prototype.getTypeName=function(){return"chipEntity"};var AMH=function(){Rt.apply(this,arguments)};
_.g(AMH,Rt);AMH.prototype.getAssociations=function(){return[]};
AMH.prototype.getTypeName=function(){return"dismissState"};_.MV=new _.PF("avatarViewModel");var LnN=new _.PF("badgeViewModel");_.Cu=new _.PF("buttonViewModel");_.vB=new _.PF("chipViewModel");var RIP=new _.PF("collectionThumbnailViewModel");var OO6=new _.PF("contentPreviewImageViewModel");var XPc=new _.PF("decoratedAvatarViewModel");var T8p=new _.PF("downloadButtonViewModel");_.laM=new _.PF("engagementBarViewModel");_.xr6=new _.PF("imageBannerViewModel");var srV=new _.PF("lockupContentMetadataRowExtension");_.JMV=new _.PF("lockupMetadataViewModel");_.Pv7=new _.PF("lockupViewModel");var dr7=new _.PF("avatarStackViewModel");_.YRg=new _.PF("contentMetadataViewModel");var uFV=function(){Rt.apply(this,arguments)};
_.g(uFV,Rt);uFV.prototype.getAssociations=function(){return[]};
uFV.prototype.getTypeName=function(){return"pageHeaderEntity"};_.Tj6=new _.PF("pageHeaderViewModel");var Vs6=new _.PF("snackbarViewModel");var Drn=new _.PF("thumbnailHoverOverlayToggleActionsViewModel");_.Fi=new _.PF("toggleButtonViewModel");var eWg=function(){Rt.apply(this,arguments)};
_.g(eWg,Rt);eWg.prototype.getAssociations=function(){return[]};
eWg.prototype.getTypeName=function(){return"votingEntity"};_.cKP=new _.PF("votingViewModel");var E53=new _.PF("sectionHeaderViewModel");var n5u=new _.PF("notifyDropdownOptionSelectedCommand");var U9M=new _.PF("listViewModel");_.Ku=new _.PF("listItemViewModel");var F8D=new _.PF("toggleableListItemViewModel");var ts7=new _.PF("dialogHeaderViewModel");var bO6=function(){Rt.apply(this,arguments)};
_.g(bO6,Rt);bO6.prototype.getAssociations=function(){return[]};
bO6.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var hWj=function(){Rt.apply(this,arguments)};
_.g(hWj,Rt);hWj.prototype.getAssociations=function(){return[]};
hWj.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var SR6=function(){Rt.apply(this,arguments)};
_.g(SR6,Rt);SR6.prototype.getAssociations=function(){return[]};
SR6.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.qRJ=new _.PF("transcriptSubmitCaptionCorrectionCommand");var g5L=function(){Rt.apply(this,arguments)};
_.g(g5L,Rt);g5L.prototype.getAssociations=function(){return[]};
g5L.prototype.getTypeName=function(){return"buttonEntity"};var e$r=new _.PF("unpluggedStringRunImage");var wPN=new _.PF("tabViewModel");var pPu=new _.PF("tabbedViewModel");var iON=function(){Rt.apply(this,arguments)};
_.g(iON,Rt);iON.prototype.getAssociations=function(){return[]};
iON.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.Nj6=new _.PF("updateDescriptionAction");var rMN=new _.PF("updateToggleButtonTextAction");_.Kn6=new _.PF("autoplaySwitchButtonRenderer");var jO;_.Gf3=new _.PF("multiMarkersPlayerBarRenderer");jO=new _.PF("chapterRenderer");var lbl=new _.PF("heatMarkerRenderer");var f5r=new _.PF("heatmapRenderer");var cMN=new _.PF("smartSkipPlayerScrimOverlayRenderer");var CvH=new _.PF("timedMarkerDecorationRenderer");var eRJ=new _.PF("postWebToNativeMessageCommand");var WC=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(WC,_.AE);WC.prototype.getMethodName=function(){return _.mT(this,1)};var Fnn=[0,_.Ov,-2];WC.prototype.JSC$13356_serializeBinary=m0P(Fnn);var RWJ=_.ua(WC,Fnn);var QrL=new _.PF("whitelistEditEndpoint");var mru=new _.PF("clearUrlParamCommand");var fbg=new _.PF("commerceActionCommand");_.Ib6=new _.PF("getPaymentInstrumentsParamsCommand");var yMl=new _.PF("getPaymentsClientTokenCommand");var ZON=new _.PF("googlePaymentBillingCommand");var jrV=new _.PF("googlePaymentPurchaseManagerCommand");_.Wng=new _.PF("logGtmCommand");var HOJ=new _.PF("updateCardItemOnClickCommand");_.zWN=new _.PF("ypcPauseSubscriptionCommand");_.Bj3=new _.PF("ypcResumeSubscriptionCommand");var Ms6=function(){Rt.apply(this,arguments)};
_.g(Ms6,Rt);Ms6.prototype.getAssociations=function(){return[]};
Ms6.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var $r7=function(){Rt.apply(this,arguments)};
_.g($r7,Rt);$r7.prototype.getAssociations=function(){return[]};
$r7.prototype.getTypeName=function(){return"commerceCartListEntity"};var abl=function(){Rt.apply(this,arguments)};
_.g(abl,Rt);abl.prototype.getAssociations=function(){return[]};
abl.prototype.getTypeName=function(){return"iconBadgeEntity"};var kfg=function(){Rt.apply(this,arguments)};
_.g(kfg,Rt);kfg.prototype.getAssociations=function(){return[]};
kfg.prototype.getTypeName=function(){return"pdpStateEntity"};var Urg=function(){Rt.apply(this,arguments)};
_.g(Urg,Rt);Urg.prototype.getAssociations=function(){return[]};
Urg.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var xj_=new _.PF("ypcOffersEndpoint");var v5N=new _.PF("cardItemRenderer"),o5g=new _.PF("cardItemTextRenderer");var A3u=new _.PF("commerceCartItemQuantityPickerRenderer");var LQV=new _.PF("linkCardRenderer");var dPr=new _.PF("quantityIncrementerButtonViewModel");var Ol7=new _.PF("quantityIncrementerViewModel");var XLl=new _.PF("themedImageViewModel");_.xUu=new _.PF("ypcCancelRecurrenceEndpoint");var sfV=new _.PF("ypcCompleteTransactionEndpoint");_.J3c=new _.PF("ypcGetCartEndpoint");_.Yf=new _.PF("ypcGetOffersEndpoint");_.ot=new _.PF("ypcHandleTransactionEndpoint");var Pj3=new _.PF("ypcLogWalletAnalyticDataEndpoint");_.dUJ=new _.PF("ypcRedeemCodeEndpoint");var YLu=new _.PF("ypcUpdateFopEndpoint");DU(VF(1),ul(4));As3((new MessageChannel).port2);var uyN=function(){this.register=new Map},CAO=function(A,L,O){A=A+"_"+L;
A7.register.has(A)?O=A7.register.get(A):(O=O(),A7.register.set(A,O));return O},TDN=function(A){A=_.d(A.register.values());
for(var L=A.next();!L.done;L=A.next())_.bE(L.value,"ABORTED")};
uyN.prototype.clear=function(){TDN(this);this.register.clear()};
var A7=new uyN;var Vpd=Date.now().toString();var Exs=e1d();var wFJ={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 VbL;VbL=1;_.c3=function(A){this.veData=A};
_.lV=function(A){return new _.c3({trackingParams:A})};
_.tI=function(A,L,O,X,x,J){var Y=VbL++;return new _.c3({veType:A,veCounter:Y,elementIndex:O,dataElement:L,youtubeData:X,jspbYoutubeData:x,loggingDirectives:J})};
_.P=_.c3.prototype;
_.P.getAsJson=function(){var A={};this.veData.trackingParams!==void 0?A.trackingParams=this.veData.trackingParams:(A.veType=this.veData.veType,this.veData.veCounter!==void 0&&(A.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(A.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(A.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(A.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(A.isCounterfactual=!0);
return A};
_.P.getAsJspb=function(){var A=new w2V;this.veData.trackingParams!==void 0?A.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.HM(A,2,this.veData.veType),this.veData.veCounter!==void 0&&_.HM(A,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.HM(A,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.dX(A,5,!0));if(this.veData.dataElement!==void 0){var L=this.veData.dataElement.getAsJspb();_.eg(A,7,L)}this.veData.youtubeData!==void 0&&_.eg(A,8,this.veData.jspbYoutubeData);
return A};
_.P.toString=function(){return JSON.stringify(this.getAsJson())};
_.P.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.P.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.oZ("yt_logging_screen.getRootVeType",SaP);_.oZ("yt_logging_screen.getCurrentCsn",_.Fn);_.oZ("yt_logging_screen.getCttAuthInfo",RF);_.oZ("yt_logging_screen.setCurrentScreen",_.Qq);var DUc=function(){this.events=new Map},eGH=function(A){var L=[];
A=_.d(A.events.values());for(var O=A.next();!O.done;O=A.next())L.push(O.value);return L};
DUc.prototype.clear=function(){this.events.clear()};var nr6=function(){this.logTransport=new Erc;this.loggedEventRegister=new DUc;this.unloggedEventRegister=new DUc;this.eventsCount=0;this.flushInterval=3E4;this.JSC$13393_flushTimer=new _.xO(this.flushInterval);this.JSC$13393_flushTimer.listen("tick",this.flush,!1,this)};
nr6.prototype.flush=function(){if(this.eventsCount){var A={loggedEvents:eGH(this.loggedEventRegister),unloggedEvents:eGH(this.unloggedEventRegister)};if(_.h("export_player_version_to_ytconfig")){var L;(L=_.ms("PLAYER_CLIENT_VERSION"))?(L=L.split("-")[0].replace(/\./g,""),L=isNaN(Number(L))?"0":L):L="";var O=_.ms("PLAYER_CLIENT_VERSION");if(O){O=O.split("-");var X="";O.length>1&&(X=O[O.length-1]);O=Tx9(X.startsWith("canary_experiment")?"canary":X.startsWith("canary_control")?"control":"none")}else O=
"CLIENT_CANARY_STATE_UNKNOWN";A.dimensions={playerClientVersion:L,playerCanaryState:O}}this.logTransport.flush(A);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$13393_flushTimer.enabled&&this.JSC$13393_flushTimer.stop()}};
var tbn=function(A){L2==null&&(L2=new nr6);var L=L2;var O=L.loggedEventRegister;A.dimensions=A.dimensions||{};A.dimensions.csn=_.Fn()||"";var X=Nxr(A.dimensions).join(";");if(A.records!=null)if(O.events.has(X)){var x;(x=O.events.get(X).records)==null||x.push.apply(x,_.le(A.records))}else O.events.set(X,A);L.JSC$13393_flushTimer.enabled||L.JSC$13393_flushTimer.start();L.eventsCount++;L.eventsCount>=100&&L.flush()};var Erc=function(){};
Erc.prototype.flush=function(A,L){_.h("enable_client_sli_logging")&&_.lg("sliEventBatch",A,{sendIsolatedPayload:!!L})};var L2;var hGg;hGg=function(A){var L=bln;A=A===void 0?{}:A;L=L.name;var O=crp("SUCCESS");tbn({dimensions:A,records:[{name:L,state:"SLI_STATE_END",status:O}]})};
_.FDO=function(A,L,O,X){this.name=A;this.sliId=L;this.timeoutMs=O;this.statusOnTimeout=X;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.FDO.prototype.getId=function(){return this.sliId};
_.tR=function(A,L){L=L===void 0?{}:L;A.ongoing||(A.ongoing=!0,A.dimensions=L,A.logSliId=ouV(),tbn({dimensions:A.dimensions,records:[{name:A.name,state:"SLI_STATE_START",sliId:A.logSliId}]}),A.timeoutMs>0&&(A.timeoutHandle=setTimeout(function(){_.bE(A,A.statusOnTimeout)},A.timeoutMs)))};
_.bE=function(A,L){A.ongoing&&(A.timeoutMs>0&&clearTimeout(A.timeoutHandle),A.ongoing=!1,L={dimensions:A.dimensions,records:[{name:A.name,status:crp(L),state:"SLI_STATE_END",sliId:A.logSliId}]},A7.register.delete(A.name+"_"+A.sliId),tbn(L))};var bln=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var SLu=function(){Rt.apply(this,arguments)};
_.g(SLu,Rt);SLu.prototype.getAssociations=function(){return[]};
SLu.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var Ao9=new _.PF("highlightTextDecoratorColorMapExtension");var vbs=new _.PF("styleRunColorMapExtension");var ZDP=_.AW(["data-"]),HDp={};var BxD={};var OU=function(A){this.wrappedPromise_=A===void 0?null:A;this.state_=0;this.JSC$13425_value_=null};
OU.prototype.then=function(A,L,O){return this.wrappedPromise_?this.wrappedPromise_.then(A,L,O):this.state_===1&&A?(A=A.call(O,this.JSC$13425_value_))&&typeof A.then==="function"?A:_.XG(A):this.state_===2&&L?(A=L.call(O,this.JSC$13425_value_))&&typeof A.then==="function"?A:_.qLg(A):this};
OU.prototype.getValue=function(){return this.JSC$13425_value_};
OU.prototype.isRejected=function(){return this.state_==2};
txu(OU);_.qLg=function(A){var L=new OU;A=A===void 0?null:A;L.state_=2;L.JSC$13425_value_=A===void 0?null:A;return L};
_.XG=function(A){var L=new OU;A=A===void 0?null:A;L.state_=1;L.JSC$13425_value_=A===void 0?null:A;return L};var PPe="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var gr6=["load","abort","error"],xq=function(A,L,O){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$13445_maxAspectRatio_=A;this.disableAnimation_=L===void 0?!1:L;this.disableExifRotation_=O===void 0?!1:O;this.JSC$13445_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$13445_reject_=this.resolve_=null};
xq.prototype.transform=function(A){var L=this;this.mime_=A.type;X_(hBl(A),this.dataUrlRead_,this.readError_,this);X_(b46(A.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(O,X){L.resolve_=O;L.JSC$13445_reject_=X})};
xq.prototype.dataUrlRead_=function(A){this.dataUrl_=A;this.angle_!=null&&wL3(this)};
xq.prototype.exifRead_=function(A){if(this.disableExifRotation_)this.angle_=0;else{a:if(A=new DataView(A),A.byteLength<2||A.getUint16(0)!==65496)A=-2;else{for(var L=2,O=A.byteLength;L<O;){var X=A.getUint16(L),x=A.getUint16(L+2);if(X===65505){L+=4;X=A.getUint32(L);x=A.getUint16(L+4);if(X!==1165519206||x!==0)break;L+=6;X=A.getUint16(L)===18761;L+=A.getUint32(L+4,X);x=A.getUint16(L,X);L+=2;for(var J=0;J<x;J++){if(A.getUint16(L,X)===274){L+=8;A=A.getUint16(L,X);break a}L+=12}}else if(X>>8!==255)break;
else L+=x+2}A=-1}switch(A){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&&wL3(this)};
xq.prototype.readError_=function(){this.JSC$13445_reject_()};
var wL3=function(A){KT(A.JSC$13445_image_,gr6,A.completeTransform_,!1,A);A.JSC$13445_image_.src=_.RP(A.dataUrl_).toString();A.JSC$13445_image_.src!=FP.toString()&&A.JSC$13445_image_.src.substr(0,11)==="data:image/"||A.JSC$13445_reject_()};
xq.prototype.completeTransform_=function(){if(this.JSC$13445_image_.src!=FP.toString()){var A=_.RP(this.dataUrl_),L=this.JSC$13445_image_.naturalHeight?this.JSC$13445_image_.naturalWidth/this.JSC$13445_image_.naturalHeight:null;this.invalidAspectRatio=L>this.JSC$13445_maxAspectRatio_||L<1/this.JSC$13445_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var O=this.JSC$13445_image_.naturalWidth,X=this.JSC$13445_image_.naturalHeight,x=L=0,J=this.JSC$13445_image_.naturalHeight?this.JSC$13445_image_.naturalWidth/
this.JSC$13445_image_.naturalHeight:null;J>this.JSC$13445_maxAspectRatio_?(O=this.JSC$13445_maxAspectRatio_*X,L=(O-this.JSC$13445_image_.naturalWidth)/2,this.cropped=!0):J<1/this.JSC$13445_maxAspectRatio_?(X=this.JSC$13445_maxAspectRatio_*O,x=(X-this.JSC$13445_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)J=O,O=X,X=J,J=L,L=x,x=J;switch(this.angle_){case 90:x-=O;break;case 180:L-=O;x-=X;break;case 270:L-=
X}this.cropped||this.angle_%360!==0?(A=document.createElement("canvas"),A.width=O||1,A.height=X||1,this.JSC$13445_image_.naturalWidth&&this.JSC$13445_image_.naturalHeight&&(O=A.getContext("2d"),O.rotate(Math.PI/180*this.angle_),O.drawImage(this.JSC$13445_image_,L,x,this.JSC$13445_image_.naturalWidth,this.JSC$13445_image_.naturalHeight)),this.transformedData=_.RP(A.toDataURL(this.mime_))):this.transformedData=A}else this.transformedData=A;this.resolve_(this)}};var sU=function(A,L){_.ib.call(this,A);this.value=L};
_.g(sU,_.ib);
var J7=function(A,L,O,X,x,J,Y){Y=Y===void 0?!1:Y;_.lb.call(this);var T=this;this.JSC$13450_url_=A;this.channelId_=L;this.maxFileSizeMb_=O;this.JSC$13450_maxAspectRatio_=X;this.dropZoneEl_=x;this.rejectInvalidAspectRatio_=Y;this.selectButtonEl_=J;this.JSC$13450_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new q1(this.dropZoneEl_);this.selectOverlay_=new gS(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$13450_image_=this.transfer_=null;this.handler_=new _.sI(this);_.VI(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(J,"click",function(){T.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.g(J7,_.lb);J7.prototype.disposeInternal=function(){for(var A=this.selectButtonEl_.nextSibling;A&&A.parentNode&&A.tagName=="INPUT";)A.parentNode.removeChild(A),A=this.selectButtonEl_.nextSibling;this.cancel();_.lb.prototype.disposeInternal.call(this)};
J7.prototype.uploadPromise=function(){if(this.JSC$13450_image_==null)return null;this.uploadPromise_||pLu(this);return this.uploadPromise_};
J7.prototype.cancel=function(){ilc(this);this.JSC$13450_image_=null};
var ilc=function(A){A.transfer_&&A.transfer_.cancel();A.transfer_=null;A.uploadPromise_=null;A.resolve_=null;A.JSC$13450_reject_=null},pLu=function(A){ilc(A);
A.transfer_=_.mSN(A.JSC$13450_url_,{"X-YouTube-ChannelId":A.channelId_},A.JSC$13450_image_);A.handler_.listenOnce(A.transfer_,"l",A.JSC$13452_onUploadComplete_);A.handler_.listenOnce(A.transfer_,"n",A.onUploadError_);A.transfer_.run();A.uploadPromise_=new Promise(function(L,O){A.resolve_=L;A.JSC$13450_reject_=O})};
_.P=J7.prototype;_.P.onChange_=function(A){A.files.length&&(this.JSC$13450_image_=A.files[0],this.JSC$13450_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$13450_image_=null,this.dispatchEvent(new sU("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(pLu(this),(new xq(this.JSC$13450_maxAspectRatio_)).transform(this.JSC$13450_image_).then((0,_.is)(this.onPreview_,this),(0,_.is)(this.onPreviewError_,this))))};
_.P.onPreview_=function(A){if(A.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$13450_image_=null),this.dispatchEvent(new sU("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;A.cropped&&this.dispatchEvent(new sU("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new sU("yt.comments.ImageUploadOverlay.CHANGE_EVENT",A.transformedData))};
_.P.onPreviewError_=function(){this.JSC$13450_image_=null;this.dispatchEvent(new sU("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.P.onHover_=function(A){A.stopPropagation();A.preventDefault();if(A.type==="dragover")A=!0;else if(A.type==="dragleave")A=!1;else return;this.dispatchEvent(new sU("yt.comments.ImageUploadOverlay.HOVER_EVENT",A))};
_.P.JSC$13452_onUploadComplete_=function(){var A=(0,_.joc)(this.transfer_.getResponseText());this.resolve_(A.encryptedBlobId)};
_.P.onUploadError_=function(){this.JSC$13450_reject_();ilc(this)};var NDl=function(A){A=A||{};var L={},O={};this.url=A.url||"";this.args=A.args||_.lW.clone(L);this.assets=A.assets||{};this.attrs=A.attrs||_.lW.clone(O);this.fallback=A.fallback||null;this.fallbackMessage=A.fallbackMessage||null;this.html5=!!A.html5;this.disable=A.disable||{};this.loaded=!!A.loaded;this.messages=A.messages||{}};
NDl.prototype.clone=function(){var A=new NDl,L;for(L in this)if(this.hasOwnProperty(L)){var O=this[L];_.Hn(O)=="object"?A[L]=_.lW.clone(O):A[L]=O}return A};var r3n,KQV,Gc6,Or,c3L,CjV,FQj,RG3,QfN,mUg,f1l,I1c,y3J,Zlc,jfg,WQN,Hl6,zGn,BDu,Mb3,$U7,a13,kcL,UUj,vrl,orJ,A2J,L9H,OEJ,NbO,XWu,xqc,sWj,J2g,PRj,dq6,Yo6,uCl,TU3,VRu,i1s,Dq6,e6N,EHL,nHH,tRj,bEN,h6H,Sol,qoV,gH6,wWu,pW7,iE6,NU3,r2H,P_,K9J,GUN,lm3,c23,CRc,F93,R6H,QW7,mqV,fmH,ImN,y2j,ZEN,jWl,W9n,HEu,z6g,BUJ,wHd,MR6,$q3,amJ,kUc,Uqc,vHj,oHn,A$N,LLV,OPV,Xkj,xfl,s46,J$3,Pxl,dfV,Ydg,uH7,TIL,VSL,Dfl,ev6,EZu,nZL,tSV;r3n=["account/accounts_list"];KQV=["acknowledge_channel_tou_strike"];Gc6=["notification/add_upcoming_event_reminder"];
_.l1V=["att/get"];Or=["browse","music/browse","unplugged/browse"];c3L=["channel/claim_legacy_youtube_channel"];CjV=["history/clear_search_history"];FQj=["history/clear_watch_history"];RG3=["comment/perform_comment_action"];QfN=["comment/get_comment_replies"];mUg=["ypc/commerce_action"];f1l=["backstage/create_post"];I1c=["live/create_broadcast"];y3J=["channel/create_channel"];Zlc=["comment/create_comment_reply"];jfg=["comment/create_comment"];WQN=["live_chat/create_poll"];Hl6=["playlist/create"];
zGn=["decorate_message"];BDu=["live_chat/delete_message"];Mb3=["playlist/delete"];$U7=["video/delete"];a13=["like/dislike"];kcL=["dismissal/dismiss"];UUj=["flag/flag"];vrl=["flow"];orJ=["account/account_menu"];A2J=["playlist/get_add_to_playlist"];L9H=["get_answer"];OEJ=["channel/get_channel_creation_form"];NbO=["offline/get_download_action"];XWu=["kids/get_kids_blocklist_picker"];xqc=["live_chat/get_item_context_menu"];sWj=["live_chat/get_live_chat_message_buy_flow"];J2g=["live_chat/get_live_chat_replay"];
PRj=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];dq6=["live_chat/get_live_chat_super_sticker_buy_flow"];Yo6=["notification/get_notification_menu"];uCl=["playlist/get_settings_editor"];TU3=["backstage/get_post_video_preview"];VRu=["account/get_profile_card"];i1s=["share/get_share_panel"];Dq6=["share/get_sharing_provider_data"];e6N=["get_survey"];EHL=["notification/get_unseen_count"];nHH=["get_user_mention_suggestions"];tRj=["get_watch"];bEN=["guide"];
h6H=["feedback"];Sol=["kids/update_blacklist"];qoV=["like/like"];gH6=["live_chat/live_chat_action"];wWu=["live_chat/manage_user"];pW7=["video_manager/metadata_update"];iE6=["live_chat/moderate"];NU3=["notification/modify_channel_preference"];r2H=["notification/opt_out"];P_=["get_panel","get_posts_by_host_panel"];K9J=["player"];GUN=["browse/edit_playlist"];lm3=["notification/record_interactions"];c23=["reel/reel_item_watch"];CRc=["reel/reel_watch_sequence"];F93=["like/removelike"];R6H=["notification/remove_upcoming_event_reminder"];
QW7=["flag/get_form"];mqV=["miniapp/report_value"];fmH=["navigation/resolve_url"];ImN=["channel/reveal_business_email"];y2j=["in_video/search"];ZEN=["search","sfv/search","unplugged/search"];jWl=["live_chat/send_message"];W9n=["live_chat/send_live_chat_vote"];HEu=["account/set_setting"];z6g=["submit_caption_correction"];BUJ=["subscription/subscribe"];wHd=["get_transcript"];MR6=["resolve_location","unplugged/resolve_location"];$q3=["subscription/unsubscribe"];amJ=["backstage/update_post"];kUc=["channel_edit/update_channel_page_settings"];
Uqc=["comment/update_comment_reply"];vHj=["comment/update_comment"];oHn=["comment/update_comments_settings"];A$N=["creator/update_creator_channel"];LLV=["pdg/update_enablement"];OPV=["updated_metadata"];Xkj=["channel_edit/validate_channel_handle"];xfl=["verify_age"];s46=["next","unplugged/watch_next"];J$3=["whitelist/edit"];Pxl=["ypc/cancel_recurrence"];dfV=["ypc/complete_transaction"];Ydg=["ypc/get_cart"];uH7=["ypc/get_fix_instrument_params"];TIL=["ypc/get_offers"];VSL=["ypc/get_payment_instruments_params"];
Dfl=["ypc/handle_transaction"];ev6=["ypc/log_payment_server_analytics"];EZu=["ypc/pause_subscription"];nZL=["ypc/redeem_code"];tSV=["ypc/resume_subscription"];var bPl=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,272018,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,93911,106531,257234,252598,252597,252600,252599,252596,225031,177843,27259,27262,27263,
21759,160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,74610,45707,83962,83970,46713,166591,
89711,74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,168413,
72733,107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,211411,211412,211413,
211403,184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,
136032,74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,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,272252,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,270560,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,211188,5754,264491,20445,233471,151308,151152,228067,130975,130976,247244,271622,271813,
261210,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,113746,268886,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,
222824,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,
49956,267645,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,268574,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,269990,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,170701,170702,194796,34388,
167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,267693,267694,267578,262801,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,82039];var tz=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.oZ("yt.msgs_",tz);var dm=new _.Yx("ACTION_ROUTER_TOKEN");_.Yq=function(){this.autonavState_=_.h("kevlar_is_pupi_enabled")?2:SSp()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.Yq.prototype.getState=function(){return this.autonavState_};
_.Yq.prototype.pause=function(A){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=A):this.autonavState_==1&&(this.disabledAutonavPauseReason_=A)};
_.Yq.prototype.setState=function(A,L,O){L&&(this.autoplayChangedByUser=!0);L=this.autonavState_===3||A===3;this.autonavState_!=A&&(this.autonavState_=A,A!=3&&_.qSu(A==2),A=_.h("kevlar_is_pupi_enabled")?O||L:!0,_.zu.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,A,O))};
_.Yq.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.Yz(_.Yq);var u4=function(){this.hasRun=!1};var Te={},CPu=(Te.auto_search="LATENCY_ACTION_AUTO_SEARCH",Te.ad_to_ad="LATENCY_ACTION_AD_TO_AD",Te.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",Te.app_startup="LATENCY_ACTION_APP_STARTUP",Te.browse="LATENCY_ACTION_BROWSE",Te.cast_splash="LATENCY_ACTION_CAST_SPLASH",Te.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",Te.channels="LATENCY_ACTION_CHANNELS",Te.chips="LATENCY_ACTION_CHIPS",Te.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",Te.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
Te.editor="LATENCY_ACTION_EDITOR",Te.embed="LATENCY_ACTION_EMBED",Te.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",Te.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",Te.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",Te.explore="LATENCY_ACTION_EXPLORE",Te.favorites="LATENCY_ACTION_FAVORITES",Te.home="LATENCY_ACTION_HOME",Te.inboarding="LATENCY_ACTION_INBOARDING",Te.landing="LATENCY_ACTION_LANDING",Te.learning="LATENCY_ACTION_LEARNING",
Te.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",Te.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",Te.library="LATENCY_ACTION_LIBRARY",Te.live="LATENCY_ACTION_LIVE",Te.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",Te.management="LATENCY_ACTION_MANAGEMENT",Te.mini_app="LATENCY_ACTION_MINI_APP_PLAY",Te.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",Te.onboarding="LATENCY_ACTION_ONBOARDING",Te.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
Te.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",Te.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",Te.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",Te.prebuffer="LATENCY_ACTION_PREBUFFER",Te.prefetch="LATENCY_ACTION_PREFETCH",Te.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",Te.profile_switcher="LATENCY_ACTION_LOGIN",Te.projects="LATENCY_ACTION_PROJECTS",Te.reel_watch="LATENCY_ACTION_REEL_WATCH",Te.results="LATENCY_ACTION_RESULTS",Te.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
Te.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",Te.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",Te.review="LATENCY_ACTION_REVIEW",Te.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",Te.search_ui="LATENCY_ACTION_SEARCH_UI",Te.search_suggest="LATENCY_ACTION_SUGGEST",Te.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",Te.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",Te.seek="LATENCY_ACTION_PLAYER_SEEK",Te.settings="LATENCY_ACTION_SETTINGS",Te.store="LATENCY_ACTION_STORE",
Te.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",Te.tenx="LATENCY_ACTION_TENX",Te.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",Te.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",Te.watch="LATENCY_ACTION_WATCH",Te.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",Te["watch,watch7"]="LATENCY_ACTION_WATCH",Te["watch,watch7_html5"]="LATENCY_ACTION_WATCH",Te["watch,watch7ad"]="LATENCY_ACTION_WATCH",Te["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",Te.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
Te.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",Te.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",Te.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",Te.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",Te.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",Te.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",Te.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",Te),$_P=0;var AAM=function(A,L){RM.call(this,1,arguments);this.timer=L};
_.g(AAM,RM);var o9_=new uS9("aft-recorded",AAM);var m_s=_.Ou.ytLoggingGelSequenceIdObj_||{};_.oZ("ytLoggingGelSequenceIdObj_",m_s);var VW=_.Ou.ytLoggingLatencyUsageStats_||{};_.oZ("ytLoggingLatencyUsageStats_",VW);var DT=function(){this.cleanupJob=0},y_u=function(){DT.instance||(DT.instance=new DT);
return DT.instance};
_.P=DT.prototype;_.P.baseline=function(A,L,O){e9(this,"baseline_"+A)||_.lg("latencyActionBaselined",{clientActionNonce:A},{timestamp:L,cttAuthInfo:O})};
_.P.tick=function(A,L,O,X){e9(this,"tick_"+A+"_"+L)||_.lg("latencyActionTicked",{tickName:A,clientActionNonce:L},{timestamp:O,cttAuthInfo:X})};
_.P.info=function(A,L,O){var X=Object.keys(A).join("");e9(this,"info_"+X+"_"+L)||(A=Object.assign({},A),A.clientActionNonce=L,_.lg("latencyActionInfo",A,{cttAuthInfo:O}))};
_.P.jspbInfo=function(A,L,O){for(var X="",x=0;x<Gn(A).length;x++)Gn(A)[x]!==void 0&&(X=x===0?X.concat(""+x):X.concat("_"+x));e9(this,"info_"+X+"_"+L)||(_.gz(A,2,L),L={cttAuthInfo:O},O=_.h("jspb_sparse_encoded_pivot")?new wT([{}]):new wT,_.EB(O,7,IxV,A),f_r("latencyActionInfo",O,L))};
_.P.span=function(A,L,O){var X=Object.keys(A).join("");e9(this,"span_"+X+"_"+L)||(A.clientActionNonce=L,_.lg("latencyActionSpan",A,{cttAuthInfo:O}))};
var e9=function(A,L){VW[L]=VW[L]||{count:0};var O=VW[L];O.count++;O.time=(0,_.O$)();A.cleanupJob||(A.cleanupJob=_.p7(_.c1,function(){var X=(0,_.O$)(),x;for(x in VW)VW[x]&&X-VW[x].time>6E4&&delete VW[x];A&&(A.cleanupJob=0)},5E3));
return O.count>5?(O.count===6&&Math.random()*1E5<1&&(O=new _.pe("CSI data exceeded logging limit with key",L.split("_")),L.indexOf("plev")>=0||_.Rv(O)),!0):!1};var hvJ,SdJ;hvJ=window;SdJ=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.NG=hvJ.performance||hvJ.mozPerformance||hvJ.msPerformance||hvJ.webkitPerformance||new SdJ;var v9e=!1,jjr=!1,L1O=(0,_.is)(_.NG.clearResourceTimings||_.NG.webkitClearResourceTimings||_.NG.mozClearResourceTimings||_.NG.msClearResourceTimings||_.NG.oClearResourceTimings||_.rk,_.NG);var qd6=window;qd6.ytcsi&&(qd6.ytcsi.infoGel=_.CM,qd6.ytcsi.tick=_.Rk);var D5D=function(A){RM.call(this,1,arguments);this.csn=A};
_.g(D5D,RM);var EJP=new uS9("screen-created",D5D),GoP=[],VKu=K1D,l2_=0,yN=new Map,eCD=new Map,EpP=new Map;var L6P=Symbol("uf"),v4=new WeakMap;var EU=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},rW=function(){EU.instance||(EU.instance=new EU);
return EU.instance};
_.P=EU.prototype;_.P.setClient=function(A){this.client=A};
_.P.JSC$13531_newScreen=function(){this.clear();this.csn=_.Fn()};
_.P.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.P.reportShown=function(A,L,O){var X=this.JSC$13531_getTrackingParams(A),x=A.visualElement?A.visualElement:X;L=this.shownElements.has(x);var J=this.visibleState.get(x);this.shownElements.add(x);this.visibleState.set(x,!0);A.impressionLog&&!L&&A.impressionLog();if(X||A.visualElement)if(O=gZJ(this,A,O))if(x=wk6(this,A),n2(this,A)||x){X=A.visualElement?A.visualElement:_.lV(X);var Y=A.interactionLoggingClientData;x||L?n2(this,A)&4?J||wie(this.client,O,X,Y):n2(this,A)&1&&!L&&SQP(this.client,O,X,Y):SQP(this.client,
O,X,Y)}};
_.P.reportHidden=function(A,L,O){var X=this.JSC$13531_getTrackingParams(A),x=A.visualElement?A.visualElement:X;L=this.hiddenElements.has(x);var J=this.visibleState.get(x);this.hiddenElements.add(x);this.visibleState.set(x,!1);if(J===!1)return!0;if(!X&&!A.visualElement)return!1;O=gZJ(this,A,O);if(!O||!n2(this,A)&&wk6(this,A))return!1;X=A.visualElement?A.visualElement:_.lV(X);n2(this,A)&8?piJ(this.client,O,X):n2(this,A)&2&&!L&&(A=this.client,L=Ik({cttAuthInfo:RF(O)||void 0},O),X={csn:O,ve:X.getAsJson(),
eventType:2},O==="UNDEFINED_CSN"?jm("visualElementHidden",L,X):A?K7("visualElementHidden",X,A,L):_.lg("visualElementHidden",X,L));return!0};
_.P.JSC$13531_getTrackingParams=function(A){var L=this.getData(A),O,X;if(_.h("il_use_view_model_logging_context")&&(L==null?0:(O=L.context)==null?0:(X=O.loggingContext)==null?0:X.loggingDirectives))return L.context.loggingContext.loggingDirectives.trackingParams||"";var x,J;if(L==null?0:(x=L.rendererContext)==null?0:(J=x.loggingContext)==null?0:J.loggingDirectives)return L.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(L==null?0:L.loggingDirectives)return L.loggingDirectives.trackingParams||
"";var Y;return((Y=A.veContainer)==null?0:Y.trackingParams)?A.veContainer.trackingParams:(L==null?void 0:L.trackingParams)||""};
_.P.JSC$13531_elementShouldLogGesture=function(A,L){A=this.getData(A);return!!((Math.floor(Number(A&&A.loggingDirectives&&A.loggingDirectives.gestures&&A.loggingDirectives.gestures.types||""))||0)&L)};
_.P.JSC$13531_getNearestParentVe=function(A){var L=this.JSC$13531_getTrackingParams(A);return A.visualElement?A.visualElement:L?_.lV(L):A.parentElement?this.JSC$13531_getNearestParentVe(A.parentElement):null};
var gZJ=function(A,L,O){var X=_.Fn(O);return A.csn===null||X===A.csn||O?X:(A=new _.pe("VisibilityLogger called before newScreen",{caller:L.tagName,previous_csn:A.csn,current_csn:X}),_.Rv(A),null)};
EU.prototype.getData=function(A){var L,O=A.data||((L=A.props)==null?void 0:L.data);if(!O||A.isWebComponentWrapper){var X;O=(X=v4.get(A))==null?void 0:X[L6P]}return O};
var wk6=function(A,L){var O;return!((O=A.getData(L))==null||!O.loggingDirectives)},n2=function(A,L){A=A.getData(L);
return Math.floor(Number(A&&A.loggingDirectives&&A.loggingDirectives.visibility&&A.loggingDirectives.visibility.types||""))||1};var t7;t7=function(){};
_.wW=function(){t7.instance||(t7.instance=new t7);return t7.instance};
t7.prototype.setClient=function(A){_.j6(rW().setClient).bind(rW())(A)};
_.pkL=function(){_.wW();_.j6(rW().JSC$13531_newScreen).bind(rW())()};
t7.prototype.clear=function(){_.j6(rW().clear).bind(rW())()};
t7.prototype.reportShown=function(A,L,O){_.j6(rW().reportShown).bind(rW())(A,L,O)};
t7.prototype.reportHidden=function(A,L,O){return _.j6(rW().reportHidden).bind(rW())(A,L,O)};
var kzs=function(A,L){return _.j6(rW().JSC$13531_getTrackingParams).bind(rW())(L)},OK9=function(A,L){return _.j6(rW().JSC$13531_getNearestParentVe).bind(rW())(L)};var b4,iPl;b4=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};
_.iV=function(){b4.instance||(b4.instance=new b4);return b4.instance};
b4.prototype.setClient=function(A){this.client=A};
iPl=function(A,L,O){O=O===void 0?{}:O;_.j6(function(){var X,x,J,Y=((X=_.q(L==null?void 0:L.commandMetadata,_.LM))==null?void 0:X.rootVe)||((x=_.q(L==null?void 0:L.commandMetadata,hQH))==null?void 0:(J=x.screenVisualElement)==null?void 0:J.uiType);if(Y){X=_.q(L==null?void 0:L.commandMetadata,dBL);if(X==null?0:X.parentTrackingParams){var T=_.lV(X.parentTrackingParams);if(X.parentCsn)var V=X.parentCsn}else O.clickedVisualElement?T=O.clickedVisualElement:L.clickTrackingParams&&(T=_.lV(L.clickTrackingParams));
a:{X=_.q(L,_.$O);x=_.q(L,PRO);if(X){if(x=g9s(X,"VIDEO")){X={token:x,videoId:X.videoId};break a}}else if(x&&(X=g9s(x,"PLAYLIST"))){X={token:X,playlistId:x.playlistId};break a}X=void 0}O=Object.assign({},{cttAuthInfo:X,parentCsn:V},O);if(_.h("expectation_logging")){var E;O.loggingExpectations=((E=_.q(L==null?void 0:L.commandMetadata,hQH))==null?void 0:E.loggingExpectations)||void 0}_.h7(A,Y,T,O)}else _.Rv(new _.pe("Error: Trying to create a new screen without a rootVeType",L))})()};
_.h7=function(A,L,O,X){X=X===void 0?{}:X;_.j6(function(){bPl.includes(L)||(_.Rv(new _.pe("createClientScreen() called with a non-page VE",L)),L=83769);X.isHistoryNavigation||(A.forwardHistoryStack=[],A.backHistoryStack.push({rootVe:L,key:X.key||""}));A.graftQueue=[];A.stateChangedQueue=[];X.dataPromises?NIu(A,L,O,X):r$H(A,L,O,X)})()};
_.KLn=function(A,L,O){O=O===void 0?0:O;_.j6(function(){L.then(function(X){A.pendingScreenCreation.has(O)&&A.pendingScreenFn&&A.pendingScreenFn();var x=_.Fn(O),J=_.Ch(O);if(x&&J){var Y={automatedLogEventSource:3},T;(X==null?0:(T=X.response)==null?0:T.trackingParams)&&ZQ(A.client,x,J,_.lV(X.response.trackingParams),!1,Y);var V;(X==null?0:(V=X.playerResponse)==null?0:V.trackingParams)&&ZQ(A.client,x,J,_.lV(X.playerResponse.trackingParams),!1,Y)}})})()};
b4.prototype.graftServerVe=function(A,L,O){var X=this;return _.j6(function(){var x=_.lV(A);_.S9(X,x,L,O);return x})()};
_.XcP=function(A,L,O,X){return _.h("enable_client_ve_spec")&&L.clientVeSpec?(L=_.tI(L.clientVeSpec.uiType,void 0,L.clientVeSpec.elementIndex,L.clientVeSpec.clientYoutubeData,void 0,L),_.S9(A,L,O,X)?L:null):L.trackingParams?A.graftServerVe(L.trackingParams,O,X):null};
_.pT=function(A,L,O,X){return _.j6(function(){if(!L.veType)return _.FJ(new _.pe("Error: Trying to graft a client VE without a veType.")),null;if(L.visibilityTypes){var x=L.visibilityTypes.reduce(function(J,Y){return J|Y});
x={visibility:{types:String(x)}}}x=_.tI(L.veType,L.visualElement,L.elementIndex,L.clientYouTubeData,void 0,x);return _.S9(A,x,O,X)?x:null})()};
_.S9=function(A,L,O,X){X=X===void 0?0:X;return _.j6(function(){if(A.pendingScreenCreation.has(X))return A.graftQueue.push([L,O]),!0;var x=_.Fn(X),J=O||_.Ch(X);if(x&&J){if(_.h("combine_ve_grafts")){var Y=A.cachedVisualElements.get(J.toString());Y?Y.push(L):(A.cachedRootVisualElements.set(J.toString(),J),A.cachedVisualElements.set(J.toString(),[L]));A.attachTimeout||(A.attachTimeout=_.p7(_.c1,function(){Gw3(A,x)},1200))}else ZQ(A.client,x,J,L);
return!0}return!1})()};
_.qB=function(A,L,O){O=O===void 0?0:O;var X=A.recurringGrafts.get(O)||new Map;if(_.h("smarter_ve_dedupping"))for(var x=Array.from(X.keys()),J=0;J<x.length;J++){var Y=void 0,T=void 0;var V=L;var E=x[J];E.isClientVe()&&V.isClientVe()?(Y=V.getAsJson(),T=E.getAsJson(),V=Y.veType!==T.veType||Y.elementIndex!==T.elementIndex||Y.dataElement!==T.dataElement||V.getLoggingDirectives()!==E.getLoggingDirectives()?!1:!0):V=E.veData.trackingParams!==void 0&&V.veData.trackingParams!==void 0?((T=V.veData)==null?void 0:
T.trackingParams)===((Y=E.veData)==null?void 0:Y.trackingParams):!1;if(V)return}else if(X.has(L))return;X.set(L,void 0);A.recurringGrafts.set(O,X);_.Fn(O)==="UNDEFINED_CSN"||A.pendingScreenCreation.has(O)||_.S9(A,L,void 0,O)};
_.gm=function(A,L,O,X){X=_.Fn(X===void 0?0:X);if(!X)return!1;Nqd(A.client,X,L,O);return!0};
_.wm=function(A,L,O,X){if(!L)return!1;X=_.Fn(X===void 0?0:X);if(!X)return!1;Nqd(A.client,X,_.lV(L),O);return!0};
_.k4=function(A,L){var O=L.getScreenLayer&&L.getScreenLayer();if(L.visualElement)return _.gm(A,L.visualElement,void 0,O);L=kzs(_.wW(),L);return _.wm(A,L,void 0,O)};
b4.prototype.clickCommand=function(A,L,O){return _.wm(this,A.clickTrackingParams,L,O===void 0?0:O)};
b4.prototype.stateChanged=function(A,L,O){this.visualElementStateChanged(_.lV(A),L,O===void 0?0:O)};
b4.prototype.visualElementStateChanged=function(A,L,O){O=O===void 0?0:O;O===0&&this.pendingScreenCreation.has(O)?this.stateChangedQueue.push([A,L]):this.logStateChanged(A,L,O)};
b4.prototype.logStateChanged=function(A,L,O){O=O===void 0?0:O;var X=_.Fn(O);A=A||_.Ch(O);return X&&A?(rAO(this.client,X,A,L),!0):!1};
var NIu=function(A,L,O,X){X=X===void 0?{}:X;A.pendingScreenCreation.add(X.layer||0);A.pendingScreenFn=function(){r$H(A,L,O,X);var Y=_.Ch(X.layer);if(Y){for(var T=_.d(A.graftQueue),V=T.next();!V.done;V=T.next())V=V.value,_.S9(A,V[0],V[1]||Y,X.layer);Y=_.d(A.stateChangedQueue);for(T=Y.next();!T.done;T=Y.next())T=T.value,A.logStateChanged(T[0],T[1])}};
O||_.Fn(X.layer)||A.pendingScreenFn();if(X.dataPromises)for(var x=_.d(X.dataPromises),J=x.next();!J.done;J=x.next())_.KLn(A,J.value,X.layer);else _.C7(Error("vf"))},r$H=function(A,L,O,X){X=X===void 0?{}:X;
var x=void 0;X.layer||(X.layer=0);x=X.parentLayer!==void 0?X.parentLayer:X.layer;var J=_.Fn(x);x=_.Ch(x);var Y=O||x,T;Y&&(X.parentCsn!==void 0?T={clientScreenNonce:X.parentCsn,visualElement:Y}:J&&J!=="UNDEFINED_CSN"&&(T={clientScreenNonce:J,visualElement:Y}));var V,E=_.ms("EVENT_ID");J==="UNDEFINED_CSN"&&E&&(V={servletData:{serializedServletEventId:E}});_.h("combine_ve_grafts")&&J&&Gw3(A,J);_.h("no_client_ve_attach_unless_shown")&&Y&&J&&hCr(Y,J);try{var n=_.npe(A.client,L,T,X.csnToClone,X.cttAuthInfo,
V,X.implicitGestureType,void 0,X.loggingExpectations)}catch(S){_.Q$(S,{rootVeType:L,rootVe:x,parentVisualElement:O,currentCsn:J,parentEl:T,csnToClone:X.csnToClone});_.C7(S);return}_.Qq(n,L,X.layer,X.cttAuthInfo);J&&J!=="UNDEFINED_CSN"&&x&&!pFs(J)&&piJ(A.client,J,x,!0);A.backHistoryStack[A.backHistoryStack.length-1]&&!A.backHistoryStack[A.backHistoryStack.length-1].csn&&(A.backHistoryStack[A.backHistoryStack.length-1].csn=n||"");_.CM({clientScreenNonce:n});_.pkL();var t=_.Ch(X.layer);J&&J!=="UNDEFINED_CSN"&&
t&&(_.h("web_mark_root_visible")||_.h("music_web_mark_root_visible"))&&_.zZ(n,t);A.pendingScreenCreation.delete(X.layer||0);A.pendingScreenFn=void 0;var b;(b=A.recurringGrafts.get(X.layer))==null||b.forEach(function(S,w){S?_.S9(A,w,S,X.layer):t&&_.S9(A,w,t,X.layer)});
lkV(A)},lkV=function(A){for(var L=0;L<A.afterNewScreenOneOffJobs.length;L++){var O=A.afterNewScreenOneOffJobs[L];
try{O()}catch(X){_.C7(X)}}for(L=A.afterNewScreenOneOffJobs.length=0;L<A.afterNewScreenRecurringJobs.length;L++){O=A.afterNewScreenRecurringJobs[L];try{O()}catch(X){_.C7(X)}}},Gw3=function(A,L){if(L===void 0)for(var O=gx9(),X=0;X<O.length;X++)O[X]!==void 0&&Gw3(A,O[X]);
else A.cachedVisualElements.forEach(function(x,J){(J=A.cachedRootVisualElements.get(J))&&tKP(A.client,L,J,x)}),A.cachedVisualElements.clear(),A.cachedRootVisualElements.clear(),A.attachTimeout=void 0};var p2=function(A){A=A===void 0?{layer:0}:A;this.hasRun=!1;this.createScreenConfig=A;A={};this.oFP=(A.response=!1,A.playerResponse=!1,A)};
_.g(p2,u4);p2.prototype.validate=function(A){return!(!A.data||!A.data.response&&!A.data.playerResponse)};
p2.prototype.handle=function(A){var L=_.iV(),O=this.createScreenConfig.layer;A.data.response&&A.data.response.trackingParams&&!this.oFP.response&&(L.graftServerVe(A.data.response.trackingParams,void 0,O),this.oFP.response=!0);A.data.playerResponse&&A.data.playerResponse.trackingParams&&!this.oFP.playerResponse&&(L.graftServerVe(A.data.playerResponse.trackingParams,void 0,O),this.oFP.playerResponse=!0)};var i4=function(){this.yd=_.AI();this.uB=[];this.bZa=0};
i4.prototype.processChunk=function(A){if(A){for(var L=_.d(this.uB),O=L.next();!O.done;O=L.next())O=O.value,O.validate(A)&&(O.handle(A),O.hasRun=!0);_.Rk("np"+this.bZa);this.bZa++}};var ok;var Nye,c$6,Rvn;_.S5=function(A,L,O,X,x,J,Y){Y=Y===void 0?[]:Y;this.buildCommandPayload=A;this.navigate=L;this.handleServiceRequest=O;this.sendAction=X;this.JSC$13574_screenManager=x;this.commandResolverMap=J;this.autoLogResolverAllowlist=Y;this.pendingCommands=new Set;this.isTracingEnabled=!1;c$6(this)};
Nye=function(A,L,O){var X=V$_,x=DH9,J=_.iV(),Y=Cx7;O=O===void 0?[]:O;_.S5.instance=new _.S5(A,L,X,x,J,Y,O)};
c$6=function(A){if(!A.isTracingEnabled&&F1u("command")){var L=A.resolveCommand;A.resolveCommand=function(O,X){a:{for(x in O)if(Object.prototype.hasOwnProperty.call(O,x)){var x={commandType:x};break a}x={}}return f2_("command",x,L.bind(this,O,X))};
A.isTracingEnabled=!0}};
Rvn=function(A,L,O){if(!A.commandResolverMap)return!1;var X=jhP(L,A.commandResolverMap);return X?((A.autoLogResolverAllowlist.some(function(x){return!!_.q(L,x)})||(O==null?0:O.forceClickLogging))&&FL3(A,L,O),X instanceof Promise?X.then(function(x){x.resolve(L,O)}):X.resolve(L,O),!0):!1};
_.S5.prototype.resolveCommand=function(A,L){var O=this,X=Q4J(A);if(Rvn(this,A,L))return!0;if(X)return mfl(this,A,L);if(!this.buildCommandPayload)return I2J(A,"Unhandled command by buildCommandPayload"),!1;var x=this.buildCommandPayload(A,L);if(L==null?0:L.commandController)x.commandController=L.commandController;if(x.type===0){if(!this.navigate)return yAe(A,"navigate"),!1;if(!fkg(x.command))return I2J(A,"Page requests need to specify a url"),!1;_.h("logging_avoid_blocking_during_navigation")&&_.v4r().transition("application_navigating");
A=this.navigate(x)||[];pTL(A).then(function(){O.pendingCommands.delete(x.command)});
return!0}if(x.type===1){if(!this.handleServiceRequest)return yAe(A,"handleServiceRequest"),!1;(L==null?0:L.forceClickLogging)&&FL3(this,x.command,L);A=this.handleServiceRequest(x);pTL(A).then(function(){O.pendingCommands.delete(x.command)});
return!0}if(x.type===2){if(!this.sendAction)return yAe(A,"sendAction"),!1;FL3(this,x.command,L);this.sendAction(x);return!0}return!1};
var FL3=function(A,L,O){if((O==null||!O.disableClickTracking)&&A.JSC$13574_screenManager)if(L.clickTrackingParams&&_.h("log_click_with_layer_from_element_in_command_handler")){var X;O=O==null?void 0:(X=O.form)==null?void 0:X.element;A.JSC$13574_screenManager.clickCommand(L,null,O&&O.getScreenLayer&&O.getScreenLayer())}else L.clickTrackingParams?A.JSC$13574_screenManager.clickCommand(L):!_.h("disable_clicked_visual_element_in_command_handler")&&(O==null?0:O.clickedVisualElement)&&_.gm(A.JSC$13574_screenManager,
O.clickedVisualElement)},Q4J=function(A){var L=!!_.q(A,_.em),O;
A=((O=_.q(A,_.nM))==null?void 0:O.signal)==="CLIENT_SIGNAL";return L||A},mfl=function(A,L,O){var X=_.q(L,_.em);
if(X)var x=(X==null?void 0:X.commands)||[];else{var J;if(((J=_.q(L,_.nM))==null?void 0:J.signal)==="CLIENT_SIGNAL"){var Y;x=((Y=_.q(L,_.nM))==null?void 0:Y.actions)||[]}}if(x){L=_.d(x);for(x=L.next();!x.done;x=L.next()){x=x.value;try{A.resolveCommand(x,O)}catch(T){T instanceof Error&&_.C7(T)}}return!0}I2J(L,"Could not handle the meta command");return!1},fkg=function(A){var L;
return!((L=_.q(A==null?void 0:A.commandMetadata,_.LM))==null||!L.url)};var NB=function(){u4.apply(this,arguments)};
_.g(NB,u4);NB.prototype.validate=function(A){var L,O;return!this.hasRun&&!!((L=A.data.response)==null?0:(O=L.onResponseReceivedEndpoints)==null?0:O.length)};
NB.prototype.handle=function(A){var L=_.S5.instance;A=_.d(A.data.response.onResponseReceivedEndpoints);for(var O=A.next();!O.done;O=A.next())L.resolveCommand(O.value)};var IkV,y$u,ZPu;
IkV=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=_.DQ();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.rm=function(){y$u||(y$u=new IkV);return y$u};
ZPu=function(){var A=_.rm();A.miniplayerButtonActivation=!1;A.userActivation=!1;A.playlistWatchPageActivation=!1;A.productDetailsPageActivation=!1;A.miniAppPageActivation=!1;A.playablesDestPageActivation=!1;A.lockupActivation=!1;A.showMiniplayerCommandActivation=!1;A.playlistSuggestionsShelfActivation=!1;A.mediaSessionPipActivation=!1;A.watchPipActivation=!1;A.watchWhileActivation=!1;A.shortsPipActivation=!1};
_.j4n=function(){var A=_.rm(),L=A.mediaSessionPipActivation,O=A.watchPipActivation,X=A.watchWhileActivation,x=A.playlistWatchPageActivation,J=A.lockupActivation,Y=A.showMiniplayerCommandActivation,T=A.navigatingAwayFromWatchDeletedVideo,V=A.shortsPipActivation,E=A.playlistSuggestionsShelfActivation,n=A.productDetailsPageActivation,t=A.miniAppPageActivation,b=A.playablesDestPageActivation;return!A.miniplayerButtonActivation&&!x&&!E&&!n&&!t&&!b&&!J&&!Y&&!L&&!O&&!X&&!V||T};var iNr;_.K2=LY("FEwhat_to_watch","/",3854);_.N$u=LY("FEdownloads","/feed/downloads",42352);iNr=LY("FEmusic_offline","browse/FEmusic_offline",42352);var om=function(A,L){L=L===void 0?[]:L;var O=O===void 0?[]:O;L=xJO.apply(null,[s$e.apply(null,_.le(L))].concat(_.le(O)));this.store=YMr(A,void 0,L)};
om.prototype.getState=function(){return this.store.getState()};
om.prototype.dispatch=function(A){return this.store.dispatch(A)};
om.prototype.subscribe=function(A){return this.store.subscribe(A)};
om.prototype.replaceReducer=function(A){return this.store.replaceReducer(A)};
om.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.Ge=function(A,L,O){var X=L(A.getState());return A.subscribe(function(){var x=L(A.getState());if(x!==X){var J=X;X=x;O(x,J)}})};var Cle;_.NV=function(A,L,O){return _.JY({type:"REPLACE_ENTITY",payload:{entityPayload:O,entityType:A,key:L}})};
Cle=function(A){return _.JY({type:"REPLACE_ENTITIES",payload:A})};
_.ZE=function(A,L,O,X){return _.JY({type:"UPDATE_ENTITY",payload:{entityPayload:O,entityType:A,key:L,mergeOption:X}})};var LGe=function(A){var L=this;A=A===void 0?[]:A;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;A.forEach(function(O){L.append(O)})};
_.P=LGe.prototype;_.P.getLength=function(){return this.totalLength};
_.P.append=function(A){var L=this.arrays.length===0?!1:(L=this.arrays[this.arrays.length-1])&&L.buffer===A.buffer&&L.byteOffset+L.length===A.byteOffset;L?(L=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(L.buffer,L.byteOffset,L.length+A.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(A);this.totalLength+=A.length};
_.P.split=function(A){for(var L=new LGe,O=new LGe,X=_.d(this.arrays),x=X.next();!x.done;x=X.next())x=x.value,A>=x.length?(L.append(x),A-=x.length):A?(L.append(new Uint8Array(x.buffer,x.byteOffset,A)),O.append(new Uint8Array(x.buffer,x.byteOffset+A,x.length-A)),A=0):O.append(x);return{headView:L,tailView:O}};
_.P.extract=function(A,L){return this.split(A).tailView.split(L).headView};
_.P.isFocused=function(A){return A>=this.arrayPos&&A<this.arrayPos+this.arrays[this.arrayIdx].length};
_.P.focus=function(A){if(!this.isFocused(A))for(A<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=A&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var WLJ=function(A,L){A.focus(L);return A.arrays[A.arrayIdx][L-A.arrayPos]};(function(){var A=function(X){return new Uint8Array(X)},L=function(X){for(var x=new Uint8Array(X.length),J=0;J<X.length;J++)x[J]=X[J];
return x},O=new Uint8Array([1]);
return O.length===1&&O[0]===1?A:L})();
var a2e=Array(1024),$5u=window.TextDecoder?new TextDecoder:void 0,U5J=window.TextEncoder?new TextEncoder:void 0;var ABO=function(A){this.arrayView=A;this.pos=0;this.pendingTagAndType=-1},PG=function(A){var L=WLJ(A.arrayView,A.pos);
++A.pos;if(L<128)return L;for(var O=L&127,X=1;L>=128;)L=WLJ(A.arrayView,A.pos),++A.pos,X*=128,O+=(L&127)*X;return O},Obe=function(A,L){var O=A.pendingTagAndType;
for(A.pendingTagAndType=-1;A.pos+1<=A.arrayView.totalLength;){O<0&&(O=PG(A));var X=O>>3,x=O&7;if(X===L)return!0;if(X>L){A.pendingTagAndType=O;break}O=-1;switch(x){case 0:PG(A);break;case 1:A.pos+=8;break;case 2:X=PG(A);A.pos+=X;break;case 5:A.pos+=4}}return!1};var x1D=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=opD(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},Vi=function(A,L){L=A.pos+L;
if(!(A.buf.length>=L)){for(var O=A.buf.length*2;O<L;)O*=2;A.buf=opD(O,A.wasm,A.buf.subarray(0,A.pos));A.view=new DataView(A.buf.buffer,A.buf.byteOffset,A.buf.byteLength)}},T1=function(A,L){if(L>268435455){Vi(A,4);
for(var O=L&1073741823,X=0;X<4;X++)A.view.setUint8(A.pos,O&127|128),O>>=7,A.pos+=1;L=Math.floor(L/268435456)}for(Vi(A,4);L>127;)A.view.setUint8(A.pos,L&127|128),L>>=7,A.pos+=1;A.view.setUint8(A.pos,L);A.pos+=1};for(var str={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,chipEntity:498,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,contextNoteUserRatingEntityPayload:576,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,
emojiCustomizationSetEntity:496,fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,
mainPlaylistDownloadStateEntity:373,mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,
musicShare:100,musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,selectedChipIndexEntityPayload:479,settingEntity:297,stringEntity:382,
suggestedFeedbackChipStateEntity:485,transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76,votingEntity:561,ytMainChannelEntity:152,youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},XBu={},HPj=_.d(Object.entries(str)),zvV=HPj.next();!zvV.done;zvV=HPj.next()){var BIu=_.d(zvV.value),MS7=BIu.next().value,$fc=BIu.next().value,akJ=MS7,kwg=$fc;kwg&&(XBu[kwg]=akJ)};var PlO=function(A,L){A=A===void 0?{}:A;switch(L.type){case "ENTITY_LOADED":return L.payload.reduce(function(X,x){var J,Y=(J=x.options)==null?void 0:J.persistenceOption;if(Y&&Y!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&Y!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return X;if(!x.entityKey)return _.C7(Error("zf")),X;if(x.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!x.payload)return x=new _.pe("REPLACE entity mutation is missing a payload",{entityKey:x.entityKey}),_.C7(x),X;var T=(0,_.lW.getAnyKey)(x.payload);
return Y7y(X,T,x.entityKey,x.payload[T])}if(x.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{x=x.entityKey;try{var V=_.dh(x).entityType;T=Y7y(X,V,x);break a}catch(t){if(t instanceof Error){x=new _.pe("Failed to deserialize entity key",{entityKey:x,originalMessage:t.message});_.C7(x);T=X;break a}throw t;}T=void 0}return T}if(x.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!x.payload)return x=new _.pe("UPDATE entity mutation is missing a payload",{entityKey:x.entityKey}),_.C7(x),X;T=(0,_.lW.getAnyKey)(x.payload);
var E,n;return uEu(X,T,x.entityKey,x.payload[T],(E=x.fieldMask)==null?void 0:(n=E.mergeOptions)==null?void 0:n.repeatedFieldsMergeOption)}return X},A);
case "REPLACE_ENTITY":var O=L.payload;return Y7y(A,O.entityType,O.key,O.entityPayload);case "REPLACE_ENTITIES":return Object.keys(L.payload).reduce(function(X,x){var J=L.payload[x];return Object.keys(J).reduce(function(Y,T){return Y7y(Y,x,T,J[T])},X)},A);
case "UPDATE_ENTITY":return O=L.payload,uEu(A,O.entityType,O.key,O.entityPayload,O.mergeOption);default:return A}};var TSu;var Ufn=!1,l4,c_,C2,FG,Rs,vZ7=function(A){_.p$.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!Ufn){var L,O=new Uint8Array(256),X=new Uint8Array(256);var x=1;for(L=0;L<256;L++)O[x]=L,X[L]=x,x^=x<<1^(x>>7&&283);l4=new Uint8Array(256);c_=Ee(256);C2=Ee(256);FG=Ee(256);Rs=Ee(256);for(var J=0;J<256;J++){x=J?X[255^O[J]]:0;x^=x<<1^x<<2^x<<3^x<<4;x=x&255^x>>>8^99;l4[J]=x;L=x<<1^(x>>7&&283);var Y=L^x;c_[J]=L<<24|x<<16|x<<8|Y;C2[J]=Y<<24|c_[J]>>>8;FG[J]=x<<24|C2[J]>>>
8;Rs[J]=x<<24|FG[J]>>>8}Ufn=!0}x=Ee(44);for(O=0;O<4;O++)x[O]=A[4*O]<<24|A[4*O+1]<<16|A[4*O+2]<<8|A[4*O+3];for(X=1;O<44;O++)A=x[O-1],O%4||(A=(l4[A>>16&255]^X)<<24|l4[A>>8&255]<<16|l4[A&255]<<8|l4[A>>>24],X=X<<1^(X>>7&&283)),x[O]=x[O-4]^A;this.key=x};
_.g(vZ7,_.p$);
vZ7.prototype.encrypt=function(A){var L=A.length;A=new Uint8Array(A.buffer.slice(A.byteOffset,A.byteOffset+L));for(var O=this.cipherBlock,X=0;X<L&&this.blockOffset<16;)A[X++]^=O[this.blockOffset++];for(var x=L-(L-X)%16;X<x;)oZL(this),A[X++]^=O[0],A[X++]^=O[1],A[X++]^=O[2],A[X++]^=O[3],A[X++]^=O[4],A[X++]^=O[5],A[X++]^=O[6],A[X++]^=O[7],A[X++]^=O[8],A[X++]^=O[9],A[X++]^=O[10],A[X++]^=O[11],A[X++]^=O[12],A[X++]^=O[13],A[X++]^=O[14],A[X++]^=O[15];if(X<L)for(oZL(this),this.blockOffset=0;X<L;)A[X++]^=
O[this.blockOffset++];return A};
var oZL=function(A){for(var L=A.key,O=A.counter[0]^L[0],X=A.counter[1]^L[1],x=A.counter[2]^L[2],J=A.counter[3]^L[3],Y=3;Y>=0&&!(A.counter[Y]=-~A.counter[Y]);Y--);for(var T,V,E=4;E<40;)Y=c_[O>>>24]^C2[X>>16&255]^FG[x>>8&255]^Rs[J&255]^L[E++],T=c_[X>>>24]^C2[x>>16&255]^FG[J>>8&255]^Rs[O&255]^L[E++],V=c_[x>>>24]^C2[J>>16&255]^FG[O>>8&255]^Rs[X&255]^L[E++],J=c_[J>>>24]^C2[O>>16&255]^FG[X>>8&255]^Rs[x&255]^L[E++],O=Y,X=T,x=V;A=A.cipherBlock;Y=L[40];A[0]=l4[O>>>24]^Y>>>24;A[1]=l4[X>>16&255]^Y>>16&255;A[2]=
l4[x>>8&255]^Y>>8&255;A[3]=l4[J&255]^Y&255;Y=L[41];A[4]=l4[X>>>24]^Y>>>24;A[5]=l4[x>>16&255]^Y>>16&255;A[6]=l4[J>>8&255]^Y>>8&255;A[7]=l4[O&255]^Y&255;Y=L[42];A[8]=l4[x>>>24]^Y>>>24;A[9]=l4[J>>16&255]^Y>>16&255;A[10]=l4[O>>8&255]^Y>>8&255;A[11]=l4[X&255]^Y&255;Y=L[43];A[12]=l4[J>>>24]^Y>>>24;A[13]=l4[O>>16&255]^Y>>16&255;A[14]=l4[X>>8&255]^Y>>8&255;A[15]=l4[x&255]^Y&255};var AN6=!1;(function(){var A=function(X){return new Uint8Array(X)},L=function(X){for(var x=new Uint8Array(X.length),J=0;J<X.length;J++)x[J]=X[J];
return x},O=new Uint8Array([1]);
return O.length===1&&O[0]===1?A:L})();
var QW;var XQH=function(A){a:{if(!AN6&&!Ut){if(QW){var L=QW;break a}QW=(L=window.crypto)==null?void 0:L.subtle;var O,X,x;if(((O=QW)==null?0:O.importKey)&&((X=QW)==null?0:X.sign)&&((x=QW)==null?0:x.encrypt)){L=QW;break a}QW=void 0}L=void 0}L&&(this.nativeEncryptor=new LPn(A,L));this.encryptorPolyfill=new O0c(A)};
XQH.prototype.encrypt=function(A,L){var O=this,X;return _.u(function(x){switch(x.nextAddress){case 1:if(!O.nativeEncryptor){x.jumpTo(2);break}_.e4(x,3);return x.yield(O.nativeEncryptor.encrypt(A,L),5);case 5:return x.return(x.yieldResult);case 3:X=_.S4(x),_.Rv(X),AN6=!0,O.nativeEncryptor=void 0;case 2:return x.return(O.encryptorPolyfill.encrypt(A,L))}})};
XQH.prototype.decrypt=function(A,L){return this.encrypt(A,L)};
var LPn=function(A,L){this.JSC$13647_aesKey=A;this.subtleCrypto=L};
LPn.prototype.encrypt=function(A,L){var O=this,X;return _.u(function(x){if(x.nextAddress==1)return _.e4(x,2),x.yield(xL6(O,A,L),4);if(x.nextAddress!=2)return x.return(x.yieldResult);X=_.S4(x);_.Rv(X);AN6=!0;throw X;})};
var xL6=function(A,L,O){var X,x;return _.u(function(J){switch(J.nextAddress){case 1:if(A.cryptoKey){J.jumpTo(2);break}return J.yield(A.subtleCrypto.importKey("raw",A.JSC$13647_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:A.cryptoKey=J.yieldResult;case 2:return X={name:"AES-CTR",counter:O,length:128},J.yield(A.subtleCrypto.encrypt(X,A.cryptoKey,L),4);case 4:return x=J.yieldResult,J.return(new Uint8Array(x))}})},O0c=function(A){this.JSC$13650_aesKey=A};
O0c.prototype.encrypt=function(A,L){this.encryptor||(this.encryptor=new vZ7(this.JSC$13650_aesKey));for(var O=this.encryptor,X=0;X<4;X++)O.counter[X]=L[X*4]<<24|L[X*4+1]<<16|L[X*4+2]<<8|L[X*4+3];O.blockOffset=16;return this.encryptor.encrypt(A)};
O0c.prototype.decrypt=function(A,L){return this.encrypt(A,L)};var sEn={},ei9=LH("yt-idb-pref-storage",{objectStores:(sEn.prefs={addedAtVersion:1},sEn),shared:!1,upgrade:function(A,L){L(1)&&yb(IN(A,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.m0=function(A){this.token=A};
_.m0.getInstance=function(){return _.u(function(A){return A.return(new Promise(function(L){_.A4().then(function(O){O?(_.m0.instance||(_.m0.instance=new _.m0(O)),L(_.m0.instance)):L(void 0)})}))})};
_.m0.prototype.get=function(A){var L=this,O,X,x;return _.u(function(J){if(J.nextAddress==1)return J.yield(Et_(L.token),2);if(J.nextAddress!=3)return O=J.yieldResult,J.yield(O.get("prefs",A),3);X=J.yieldResult;if(!X)return J.return();x=(0,_.O$)();return X.expirationTimestampMs<=x?J.return():J.return(X.value)})};
_.m0.prototype.set=function(A,L,O){O=O===void 0?31536E3:O;var X=this,x,J,Y;return _.u(function(T){if(T.nextAddress==1)return x=(0,_.O$)(),J={key:A,value:L,expirationTimestampMs:x+O*1E3},T.yield(Et_(X.token),2);Y=T.yieldResult;return T.yield(Y.put("prefs",J),0)})};
_.m0.prototype.remove=function(A){var L=this,O;return _.u(function(X){if(X.nextAddress==1)return X.yield(Et_(L.token),2);O=X.yieldResult;return X.yield(O.delete("prefs",A),0)})};var f2={},JNH=(f2.INVALID_ENCODER_VERSION="Invalid encoder version",f2.KEY_CREATION_FAILED="Failed to create encoder key",f2.UNKNOWN_DECODE_ERROR="Failed to decode PES data",f2.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",f2.WRONG_DATA_TYPE="Encoder cannot process the data type",f2),nY=function(A,L){L=L===void 0?{}:L;_.pe.call(this,JNH[A],Object.assign({},{name:"PESEncoderError",type:A},L));this.type=A;this.level="WARNING";Object.setPrototypeOf(this,nY.prototype)};
_.g(nY,_.pe);var Is=function(){};
Is.prototype.encode=function(A,L){try{return this.encodeImpl(A,L)}catch(O){hiu(O,toJ)}};
Is.prototype.decode=function(A,L){try{return this.decodeImpl(A,L)}catch(O){hiu(O,bbJ)}};
var PGH=function(A,L,O){var X;return _.u(function(x){if(x.nextAddress==1)return _.e4(x,2),x.yield(A.decodeAsyncImpl(L,O),4);if(x.nextAddress!=2)return x.return(x.yieldResult);X=_.S4(x);hiu(X,bbJ);_.qo(x)})};
Is.prototype.decodeAsyncImpl=function(A,L){return Promise.resolve(this.decodeImpl(A,L))};var yW=function(A,L){this.aesEncryptor=A;this.aesEncryptorAsync=L};
_.g(yW,Is);yW.prototype.encodeImpl=function(A,L){L=S7_(L);A=(new TextEncoder).encode(JSON.stringify(A));return this.aesEncryptor.encrypt(A,L)};
yW.prototype.decodeImpl=function(A,L){if(!(A instanceof Uint8Array))throw nte(1);var O=new TextDecoder;L=S7_(L);A=this.aesEncryptor.decrypt(A,L);return JSON.parse(O.decode(A))};
yW.prototype.decodeAsyncImpl=function(A,L){var O=this,X,x,J;return _.u(function(Y){if(Y.nextAddress==1){if(!(A instanceof Uint8Array))throw nte(1);X=new TextDecoder;x=S7_(L);return Y.yield(O.aesEncryptorAsync.decrypt(A,x),2)}J=Y.yieldResult;return Y.return(JSON.parse(X.decode(J)))})};var q7O={accountLinkStatusEntity:lIj,booleanEntity:PA7,buttonEntity:g5L,captionTrack:Y7N,channelHandle:mJj,chipEntity:o1u,commerceAcquisitionClientPayloadEntity:Ms6,commerceCartListEntity:$r7,contextNoteFeedEntityPayload:kI6,contextNoteUserRatingEntityPayload:UJN,continuationTokenEntity:zQl,downloadQualityPickerEntity:Fdn,downloadsPageRefreshTokenEntity:Qjn,downloadsPageViewConfigurationEntity:AAl,downloadStatusEntity:RQ3,dismissState:AMH,sfvAudioItemCurrentlyPlayingEntity:jtN,emojiFountainDataEntity:hWj,
emojiCustomizationSetEntity:bO6,fakeChannel:u8j,fakePlaylist:Tx6,fakePlaylistEntryCollection:Vp6,fakeVideo:e16,fakeVideoDescription:Exc,featuredProductsEntity:SQ7,flowStateEntity:NxH,iconBadgeEntity:abl,interstitialInteractionStateEntity:Mp6,likeButtonAnimationEntity:L1j,liveChatPollStateEntity:OXV,liveViewerLeaderboardChatEntryPointStateEntity:wBH,liveViewerLeaderboardPointsEntity:pBH,liveReactionsDataEntity:SR6,logoEntity:z16,macroMarkerEntity:OC7,mainDownloadsLibraryEntity:m_c,mainDownloadsListEntity:f_H,
mainPlaylistDownloadStateEntity:y_J,mainPlaylistEntity:BtN,mainPlaylistVideoEntity:M0N,mainVideoDownloadStateEntity:ZXL,mainVideoEntity:U_H,markersEngagementPanelSyncEntity:Xic,markersVisibilityOverrideEntity:x5J,musicAlbumReleaseDetail:cA3,musicAlbumReleaseDownloadMetadataEntity:Nq6,musicAlbumRelease:l2u,musicAlbumReleaseUserDetail:ChN,musicArtistDetail:RC3,musicArtist:F1g,musicArtistUserDetail:Qhg,musicDownloadsLibraryEntity:rAj,musicLibraryEdit:m5u,musicLibraryStatusEntity:f2u,musicPlaylist:I2n,
musicPlaylistDownloadMetadataEntity:K13,musicShare:ZCg,musicTrackDetail:W1c,musicTrackDownloadMetadataEntity:Go7,musicTrack:jh7,musicTrackUserDetail:HCV,offlineOrchestrationActionWrapperEntity:uEg,offlineVideoPolicy:TSg,offlineVideoStreams:Vol,offlineabilityEntity:jjH,orchestrationWebSamplingEntity:Wdc,pageHeaderEntity:uFV,pdpStateEntity:kfg,pinnedProductEntity:qQu,playbackData:D16,playerStateEntity:shn,quantityIncrementerEntity:Urg,refresh:ei6,saveToPlaylistListEntity:YUu,selectedChipIndexEntityPayload:JAg,
settingEntity:GeV,stringEntity:dzc,suggestedFeedbackChipStateEntity:Phu,transfer:Etu,trendingOfferEntity:gpg,videoDownloadContextEntity:ntV,videoOverviewAsyncDataEntity:SLu,videoPlaybackPositionEntity:iON,votingEntity:eWg,ytMainChannelEntity:v9V,youchatPendingResponseEntity:d5g,ytMainDownloadedVideoEntity:HXV,ytMainVideoEntity:o9u};var dLc,u76,qa,GFd,lUu,DLj,E6c,eK7,VCV;dLc=function(A,L){this.JSC$13669_wrapped=A;this.JSC$13669_encoderRegistry=L;this.changedKeys={}};
u76=function(A,L){return Y8V(A.JSC$13669_encoderRegistry,L.version).decode(L.data,L.key)};
_.TnN=function(A,L,O){return A.JSC$13669_wrapped.objectStore("EntityStore").get(L).then(function(X){if(X){if(O&&X.entityType!==O)throw Error("Af");return u76(A,X)}})};
qa=function(A,L,O){return O?(O=O.map(function(X){return _.TnN(A,X,L)}),yr.all(O)):A.JSC$13669_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(L)).then(function(X){return X.map(function(x){return u76(A,x)})})};
_.KG9=function(A,L,O){var X=JB9(L),x=Y8V(A.JSC$13669_encoderRegistry,1),J=Object.assign({},L);return A.JSC$13669_wrapped.objectStore("EntityStore").get(X).then(function(Y){if(Y){if(Y.entityType!==O)throw Error("Af");J.entityMetadata||(Y=u76(A,Y),J.entityMetadata=Y.entityMetadata)}}).then(function(){var Y={key:X,
entityType:O,data:x.encode(J,X),version:1};return yr.all([A.JSC$13669_wrapped.objectStore("EntityStore").put(Y),VCV(A,J,O)])}).then(function(){DLj(A,X,O);
return X})};
GFd=function(A,L){var O=_.dh(L).entityType;return yr.all([A.JSC$13669_wrapped.objectStore("EntityStore").delete(L),eK7(A,L)]).then(function(){DLj(A,L,O)})};
lUu=function(A,L,O,X){var x=Y8V(A.JSC$13669_encoderRegistry,1);return _.TnN(A,L,X).then(function(J){if(J){J=MK_(J,O);var Y={key:L,entityType:X,data:x.encode(J,L),version:1};return yr.all([A.JSC$13669_wrapped.objectStore("EntityStore").put(Y),VCV(A,J,X)])}}).then(function(){DLj(A,L,X);
return L})};
DLj=function(A,L,O){var X=A.changedKeys[O];X||(X=new Set,A.changedKeys[O]=X);X.add(L)};
E6c=function(A,L,O){var X=JB9(L);O=gt_(O);if(!O)return yr.resolve([]);O=new O(L);A=A.JSC$13669_wrapped.objectStore("EntityAssociationStore");L=[];O=_.d(O.getAssociations());for(var x=O.next();!x.done;x=O.next())L.push(A.put({parentEntityKey:X,childEntityKey:x.value}));return yr.all(L).then(function(J){return J.map(function(Y){return Y[1]})})};
eK7=function(A,L){return A.JSC$13669_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(L))};
VCV=function(A,L,O){var X=JB9(L);return eK7(A,X).then(function(){return E6c(A,L,O)})};var n6L=function(){};
_.g(n6L,Is);n6L.prototype.encodeImpl=function(A){return A};
n6L.prototype.decodeImpl=function(A){if(A instanceof Uint8Array)throw nte(0);return A};var ibD=function(){this.cacheMap={};this.cacheMap[0]=new n6L;if(!_.h("aes_pes_encoder_killswitch")){var A=this.cacheMap;try{var L=_.gN();var O=S7_(L);var X=new yW(new O0c(O),new XQH(O))}catch(x){throw A=x instanceof Error?new nY("KEY_CREATION_FAILED",{originalMessage:x.message}):new nY("KEY_CREATION_FAILED"),_.C7(A),A;}A[1]=X}},Y8V=function(A,L){L=L===void 0?0:L;
A=A.cacheMap[L];if(!A)throw L=new nY("INVALID_ENCODER_VERSION",{encoderVersion:L}),_.C7(L),L;return A};var bN=function(A,L){_.p$.call(this);this.token=A;this.JSC$13683_encoderRegistry=L;this.observers=[];A=new _.Ou.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.gN());A.onmessage=this.handleMessage.bind(this);this.channel=A};
_.g(bN,_.p$);_.SM=function(A,L,O){var X,x,J,Y;return _.u(function(T){if(T.nextAddress==1)return T.yield(D19(A.token),2);if(T.nextAddress!=3)return X=T.yieldResult,T.yield(_.$$(X,["EntityStore","EntityAssociationStore"],L,function(V){x=new dLc(V,A.JSC$13683_encoderRegistry);return O(x)}),3);
J=T.yieldResult;x&&(Y=x.changedKeys,Object.keys(Y).length>0&&(A.channel.postMessage(Y),tCL(A,Y)));return T.return(J)})};
bN.prototype.observe=function(A){var L=this;this.observers.push(A);return function(){var O=L.observers.indexOf(A);O>=0&&L.observers.splice(O,1)}};
var yLe=function(A){var L;return _.u(function(O){if(O.nextAddress==1)return O.yield(_.SM(A,{mode:"readonly",enableRetries:!0},function(X){return X.JSC$13669_wrapped.objectStore("EntityStore").getAll()}),2);
L=O.yieldResult;return O.return(Promise.all(L.filter(function(X){return!!X}).map(function(X){var x,J;
return _.u(function(Y){if(Y.nextAddress==1){x=X.key;J=X.entityType;var T=Y.yield;var V=PGH(Y8V(A.JSC$13683_encoderRegistry,X.version),X.data,X.key);return T.call(Y,V,2)}return Y.return({key:x,entityType:J,data:Y.yieldResult})})})))})};
bN.prototype.handleMessage=function(A){tCL(this,A.data)};
var tCL=function(A,L){A=_.d(A.observers);for(var O=A.next();!O.done;O=A.next())O=O.value,O(L)};
bN.prototype.disposeInternal=function(){this.channel.close()};
var wBr;var ZT,hKJ,kFu;ZT={};_.b0H=(ZT.mainVideoEntity="mainVideoEntityActionMetadata",ZT.mainPlaylistEntity="mainPlaylistEntityActionMetadata",ZT.musicTrack="musicTrackEntityActionMetadata",ZT.musicPlaylist="musicPlaylistEntityActionMetadata",ZT);hKJ=new _.Yx("DOWNLOADS_ENTITY_TYPE_MAP");_.G1=_.Dn("","downloadsPageViewConfigurationEntity");kFu=_.Dn("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.Gee=_.Dn("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.Dn("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.Dn("SMART_DOWNLOADS_ENABLED","settingEntity");_.Dn("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var QtO=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var WGs=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var t9p={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var j9,n1J,M5N,mPe;j9=window;_.HG=j9.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.raD=j9.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.kB;n1J=j9.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||Kv;M5N=j9.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||BWu;_.S8N=j9.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.YYJ;mPe=j9.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||V5L;$B({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 lYp=tle(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(A){return A}}}),jRJ=tle(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(A){return A}}}),qcD=new Map;var C6D=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],Nfs;var q86=function(A){return _.JY({type:"SET_EPHEMERAL_ACTION",payload:A})};var g63={ephemeralAction:null};var wQJ={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var Lny={sharedUi:function(A,L){A=A===void 0?wQJ:A;switch(L.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},A,{animatedThumbnailEnabled:L.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},A,{inlinePreviewEnabled:L.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},A,{currentPageType:L.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},A,{currentPageSubType:L.payload});default:return A}},
a11y:EI({ephemeralAction:function(A,L){A=A===void 0?g63.ephemeralAction:A;switch(L.type){case "SET_EPHEMERAL_ACTION":return L.payload;default:return A}}})};var IYs={playlistId:"",inviteLinkURL:""};var pQu={};var Mlp=EI({continuationCommand:function(A,L){A=A===void 0?pQu:A;switch(L.type){case "SET_CONTINUATION_COMMAND":return L.payload.continuationCommand;default:return A}}});var ZAp={currentFormId:"",commandsMap:{}};var $ve=EI({isLeaderTab:function(A,L){A=A===void 0?!0:A;switch(L.type){case "SET_IS_LEADER_TAB":var O,X;return(X=L==null?void 0:(O=L.payload)==null?void 0:O.isLeaderTab)!=null?X:A;default:return A}}});var Nnc;_.i0j=function(A){return _.JY({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:A}})};
Nnc=function(A){return _.JY({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:A}})};var AMr=EI({isDesktopSmallWidth:function(A,L){switch(L.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return L.payload.isDesktopSmallWidth;default:return A===void 0?!1:A}},
isShortsActive:function(A,L){switch(L.type){case "SET_IS_SHORTS_ACTIVE":return L.payload.isShortsActive;default:return A===void 0?!1:A}},
isWatchWhileMode:function(A,L){switch(L.type){case "SET_IS_WATCH_WHILE_MODE":return L.payload.isWatchWhileMode;default:return A===void 0?!1:A}},
playerState:function(A,L){switch(L.type){case "SET_PLAYER_STATE":return L.payload.playerState;default:return A===void 0?-1:A}},
isFullscreen:function(A,L){switch(L.type){case "SET_IS_FULLSCREEN":return L.payload.isFullscreen;default:return A===void 0?!1:A}},
isSmallScreenSqueezeback:function(A,L){switch(L.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return L.payload.isSmallScreenSqueezeback;default:return A===void 0?!1:A}},
isShortsPipActive:function(A,L){switch(L.type){case "SET_IS_SHORTS_PIP_ACTIVE":return L.payload.isShortsPipActive;default:return A===void 0?!1:A}},
isPlaybackStarted:function(A,L){switch(L.type){case "SET_IS_PLAYBACK_STARTED":return L.payload.isPlaybackStarted;default:return A===void 0?!1:A}}});var FnJ=function(){return function(A){return function(L){var O=A(L);_.dQ(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[L],!0);return O}}};var rNH,oEs;rNH=new _.EP;_.Dl=new _.Yx("WATCH_PLAYER_PROMISE_TOKEN");_.KPg=new _.EP;_.GGH=new _.Yx("SHORTS_PLAYER_PROMISE_TOKEN");oEs=new _.Yx("");var RWu=function(){return function(A){return function(L){L.type==="ENTITY_LOADED"&&_.X5().resolve(_.Dl).then(function(O){var X;(X=O.dispatchReduxAction)==null||X.call(O,L)});
return A(L)}}};var lR6={};var aYr=EI({additionalContext:function(A,L){switch(L.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var O;return(O=L.payload)!=null?O:"";default:return A===void 0?"":A}},
impersonatedChannelUrl:function(A,L){switch(L.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var O;return(O=L.payload)!=null?O:"";default:return A===void 0?"":A}},
selectedVideoIds:function(A,L){A=A===void 0?lR6:A;switch(L.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var O={};return Object.assign({},A,(O[L.payload]=!0,O));case "VIDEO_UNSELECTED":return L=L.payload,A=Object.assign({},A),delete A[L],A;default:return A}}});var k6u=EI({parentClickTrackingParams:function(A,L){switch(L.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return L.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return A===void 0?"":A}}});var cNj=function(A){return _.JY({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:A})};var CGj={};var Uve=EI({stepStates:function(A,L){A=A===void 0?CGj:A;switch(L.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var O=A,X=L.payload,x,J,Y;A={};L={selectionStates:Object.assign({},(Y=(x=O[X.stepId])==null?void 0:x.selectionStates)!=null?Y:{},(A[X.token]={isSelected:X.isSelected},A)),userQuery:(J=O[X.stepId])==null?void 0:J.userQuery};x={};return Object.assign({},O,(x[X.stepId]=L,x));case "TALK_TO_RECS_UPDATE_USER_QUERY":return x=A,J=L.payload,Y={selectionStates:Object.assign({},
(X=(O=x[J.stepId])==null?void 0:O.selectionStates)!=null?X:{}),userQuery:{userQuery:J.userQuery,token:J.userQueryToken}},O={},Object.assign({},x,(O[J.stepId]=Y,O));default:return A}}});var FPn,RKg,mLV;FPn=function(A){return _.JY({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:A})};
RKg=function(A){return _.JY({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:A})};
_.mz=function(A){return _.JY({type:"SET_CURRENT_PAGE_TYPE",payload:A})};
_.QEg=function(A){return _.JY({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:A})};
mLV=function(A){return _.JY({type:"SET_CHIP_BAR_IS_STICKY",payload:A})};var Wk9={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"};_.fRV=function(A){return _.JY({type:"SET_PLAYER_STATE",payload:{playerState:A}})};var IRN=[],yN3={width:0,height:0};var v1M=EI({isTheaterMode:function(A,L){A=A===void 0?_.h("kevlar_disable_theater_mode_persistence")?!1:_.fB("START_IN_THEATER_MODE"):A;switch(L.type){case "SET_IS_THEATER_MODE":return L.payload.isTheaterMode;default:return A}},
isWatchActive:function(A,L){switch(L.type){case "SET_IS_WATCH_ACTIVE":return L.payload.isWatchActive;default:return A===void 0?!1:A}},
isLearningJourneyActive:function(A,L){switch(L.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return L.payload.isLearningJourneyActive;default:return A===void 0?!1:A}},
isWatchFullscreen:function(A,L){switch(L.type){case "SET_IS_WATCH_FULLSCREEN":return L.payload.isWatchFullscreen;default:return A===void 0?!1:A}},
isWatchNarrowWidth:function(A,L){switch(L.type){case "SET_IS_WATCH_NARROW_WIDTH":return L.payload.isWatchNarrowWidth;default:return A===void 0?!1:A}},
isWatchRetroMode:function(A,L){switch(L.type){case "SET_IS_WATCH_RETRO_MODE":return L.payload.isWatchRetroMode;default:return A===void 0?!1:A}},
isLiveChatCollapsed:function(A,L){switch(L.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return L.payload.isLiveChatCollapsed;default:return A===void 0?!1:A}},
openEngagementPanels:function(A,L){A=A===void 0?IRN:A;var O=[].concat(_.le(A));switch(L.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return O.push(L.payload.panelToAdd),O;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return O.splice(O.indexOf(L.payload.panelToRemove),1),O;default:return A}},
playerState:function(A,L){switch(L.type){case "SET_PLAYER_STATE":return L.payload.playerState;default:return A===void 0?-1:A}},
watchScrollTop:function(A,L){switch(L.type){case "SET_WATCH_SCROLL_TOP":return L.payload.watchScrollTop;default:return A===void 0?0:A}},
watchWindowSize:function(A,L){A=A===void 0?yN3:A;switch(L.type){case "SET_WATCH_WINDOW_SIZE":return L.payload.watchWindowSize;default:return A}}});var Z0g={feedbackTokens:[]};var o1_=EI({surveyFeedbackData:function(A,L){A=A===void 0?Z0g:A;switch(L.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return L.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},A,L.payload);default:return A}}});var zlu={};var mr_=void 0;_.h("web_enable_redux_store_on_demand")||(mr_=Qrp());var jE6=function(A,L,O){var X=this;this.listId=A;this.JSC$13817_updateCallback=L;this.isOfflineVideoCallback=O;_.Ai().subscribe(function(){X.handleUpdate()})};
jE6.prototype.getPlaylistData=function(){var A=_.Ai().getState().entities;if(this.listId&&this.listId!=="PPSV"){var L=J7y(A,this.listId,!0),O=_.Dn(this.listId,"mainPlaylistEntity"),X,x;A=A==null?void 0:(X=A.mainPlaylistEntity)==null?void 0:(x=X[O])==null?void 0:x.title;return fbu(L,A,this.listId)}L=_.HbM(QsM(A));A=_.HbM(_.lN(A));A=L.concat(A);return fbu(A)};
jE6.prototype.getPlaylistId=function(){return this.listId};
jE6.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$13817_updateCallback(this.listId,this.getPlaylistData(),{})};var W_=function(A,L,O,X){X=X===void 0?[]:X;this.JSC$13820_playlistNetworkManager=A;this.listId=L;this.JSC$13820_updateCallback=O;this.videoIds=X;this.pendingUpdates=[];this.currentIndex=0};
W_.prototype.JSC$13820_setCurrentIndex=function(A){this.currentIndex=A};
W_.prototype.setListId=function(A){this.listId=A};
var WP6=function(A,L){A.currentCreateRequest&&A.currentCreateRequest.cancel(L);A.currentUpdateRequest&&A.currentUpdateRequest.cancel(L);A.currentRefreshRequest&&A.currentRefreshRequest.cancel(L)};
W_.prototype.delete=function(){WP6(this,"PROXY DELETED")};
W_.prototype.addVideos=function(A,L,O){var X=this;O!==void 0?this.videoIds.splice.apply(this.videoIds,[O,0].concat(_.le(A))):this.videoIds.push.apply(this.videoIds,_.le(A));this.listId||this.currentCreateRequest?(A.forEach(function(x,J){x={addedVideoId:x,action:"ACTION_ADD_VIDEO"};O&&(x.addedVideoPosition=O+J);X.pendingUpdates.push(x)}),H_(this)):H0c(this,L.onCreateListCommand)};
var zKj=function(A,L,O,X,x){leM(A.videoIds,L,O);L>A.currentIndex&&O<=A.currentIndex?A.JSC$13820_setCurrentIndex(A.currentIndex+1):L===A.currentIndex?A.JSC$13820_setCurrentIndex(O):L<A.currentIndex&&O>=A.currentIndex&&A.JSC$13820_setCurrentIndex(A.currentIndex-1);A.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:X,movedSetVideoIdPredecessor:x});H_(A)},H0c=function(A,L){WP6(A,"OBSOLETE");
A.currentCreateRequest=BnV(A.JSC$13820_playlistNetworkManager,L,A.videoIds);_.R$(A.currentCreateRequest,function(){A.currentCreateRequest=void 0}).then(function(O){A.setListId(O.playlistId);
A.pendingUpdates.length>0?H_(A):MCj(A)})},H_=function(A){if(A.pendingUpdates.length!==0&&(A.currentRefreshRequest&&A.currentRefreshRequest.cancel("OBSOLETE"),!A.currentUpdateRequest&&!A.currentCreateRequest)){var L=A.pendingUpdates.splice(0,A.pendingUpdates.length);
A.currentUpdateRequest=A.JSC$13820_playlistNetworkManager.updatePlaylist(A.listId,L);_.R$(A.currentUpdateRequest,function(){A.currentUpdateRequest=void 0}).then(function(){A.pendingUpdates.length>0?H_(A):MCj(A)}).thenCatch(function(){A.pendingUpdates.unshift.apply(A.pendingUpdates,_.le(L))})}},MCj=function(A){A.currentRefreshRequest=_.$L6(A.JSC$13820_playlistNetworkManager,A.listId,A.currentIndex,A.videoIds[A.currentIndex]);
_.R$(A.currentRefreshRequest,function(){A.currentRefreshRequest=void 0}).then(function(L){A.JSC$13820_updateCallback(L.playlistId,L.playlistPanelRenderer,L.autoplayRenderer)})};
W_.prototype.size=function(){return this.videoIds.length};var aRl=function(A,L,O,X){X=X===void 0?[]:X;W_.call(this,A,L,O,X);this.JSC$13820_playlistNetworkManager=A;this.listId=L;this.JSC$13820_updateCallback=O;this.videoIds=X};
_.g(aRl,W_);_.ze=function(A,L,O,X,x,J,Y){x=x===void 0?[]:x;Y=Y===void 0?e7:Y;W_.call(this,A,L,O,x);this.JSC$13820_playlistNetworkManager=A;this.listId=L;this.JSC$13820_updateCallback=O;this.onAuthChange=X;this.videoIds=x;this.storage=J;this.cookieReader=Y;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.et(_.c1,this.checkLoggedInStatusChange.bind(this),1E3)};
_.g(_.ze,W_);_.P=_.ze.prototype;_.P.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.et(_.c1,this.checkLoggedInStatusChange.bind(this),1E3)};
_.P.JSC$13820_setCurrentIndex=function(A){W_.prototype.JSC$13820_setCurrentIndex.call(this,A);this.store()};
_.P.delete=function(){_.c1.cancelJob(this.queueSapisIdJob);W_.prototype.delete.call(this)};
_.P.setListId=function(A){W_.prototype.setListId.call(this,A);this.store()};
_.P.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var kGL=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],ULV=["playerResponse","videoDetails"],v6l=["response","currentVideoEndpoint","watchEndpoint","videoId"],o6g=["response","currentVideoEndpoint","watchEndpoint","playlistId"],AZn=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],Lpu=["response","contents","twoColumnWatchNextResults","playlist","playlist"],OR3=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
Xt3=["response","contents","twoColumnWatchNextResults"];var B_={},Wnu=(B_.WEB_UNPLUGGED="^unplugged/",B_.WEB_UNPLUGGED_ONBOARDING="^unplugged/",B_.WEB_UNPLUGGED_OPS="^unplugged/",B_.WEB_UNPLUGGED_PUBLIC="^unplugged/",B_.WEB_CREATOR="^creator/",B_.WEB_KIDS="^kids/",B_.WEB_EXPERIMENTS="^experiments/",B_.WEB_MUSIC="^music/",B_.WEB_REMIX="^music/",B_.WEB_MUSIC_EMBEDDED_PLAYER="^music/",B_.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",B_);var iEd,BnV;iEd=function(A,L){this.networkManager=A;this.innertubeTransportService=L};
BnV=function(A,L,O){if(!_.q(L,_.U7))return _.Ry(Error("Ef"));_.q(L,_.U7).videoIds=O;O={create_playlist_title:_.b3("QUEUE",void 0,"Queue")};return ZOe(_.oQ(A.innertubeTransportService,L,O),Ib9)};
_.$L6=function(A,L,O,X){L={videoId:X,playlistId:L,playlistIndex:O};O=_.L3(s46);return ZOe(_.MB(A.innertubeTransportService,L,O),jre)};
iEd.prototype.updatePlaylist=function(A,L){return ZOe(_.oQ(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:A,actions:L}}),yMM)};var xpg=function(A){this.storage=A},s0J;
xpg.prototype.store=function(A,L){L=L===void 0?0:L;if(this.storage&&A.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",A),this.storage.set("TLPQindex",String(L)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(O){}};
xpg.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
xpg.prototype.getPlaylistId=function(){if(!this.storage)return null;var A=null;try{A=this.storage.get("TLPQplaylist")}catch(L){}return A};var Msd=["navigationEndpoint","watchEndpoint","videoId"],BjD=["nextButtonVideo","watchEndpoint","videoId"];_.f3=new _.Yx("NETWORK_TOKEN");_.JI=new _.Yx("PAGE_TOKEN");_.$q=new _.Yx("PLAYLIST_TOKEN");var JZJ;JZJ=new _.Yx("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.Ia=new _.Yx("INNERTUBE_TRANSPORT_TOKEN");var Pm3,as,Ypg,uc6,VGL,Dpj;Pm3=new Set(["ci","cr","carml"]);as=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$13867_parkedJobs=new Map;this.parkedProcessors=new Map};
_.kq=function(){as.instance||(as.instance=new as);return as.instance};
as.prototype.onAny=function(A){return _.dpu(this,A,2)};
as.prototype.parkOrScheduleJob=function(A,L,O,X,x){_.UU(this,O)?_.Q7().addJob(A,L,X):(x&&(A=Ypg(A),uc6(this,A,L,O,x)),x=this.JSC$13867_parkedJobs.get(O),x||(this.JSC$13867_parkedJobs.set(O,[]),x=this.JSC$13867_parkedJobs.get(O)),x.push({job:A,priority:L,delay:X}))};
as.prototype.addListener=function(A,L,O){O&&(L=Ypg(L),uc6(this,L,0,A,O));O=this.parkedProcessors.get(A);O||(this.parkedProcessors.set(A,[]),O=this.parkedProcessors.get(A));O.push(L)};
as.prototype.processSignal=function(A){if(!_.UU(this,A)){this.inProgressSignals.add(A);var L=this.JSC$13867_parkedJobs.get(A);if(L){L=_.d(L);for(var O=L.next();!O.done;O=L.next())O=O.value,_.Q7().addJob(O.job,O.priority,O.delay);this.JSC$13867_parkedJobs.delete(A)}if(L=this.parkedProcessors.get(A)){L=_.d(L);for(O=L.next();!O.done;O=L.next())O=O.value,O();this.parkedProcessors.delete(A)}this.signals.push(A);this.inProgressSignals.delete(A)}};
_.UU=function(A,L){return Pm3.has(L)||_.fB("IS_HOMEPAGE_COLD")||_.fB("IS_RESULTS_PAGE_COLD")||_.fB("IS_WATCH_PAGE_COLD")?A.signals.indexOf(L)>=0:!0};
Ypg=function(A){var L=!1;return function(){L||(L=!0,A())}};
uc6=function(A,L,O,X,x){if(T3L.has(X))_.Q7().addJob(L,O,x);else{var J=A.compoundSignals.get(X);J&&_.Q7().addJob(function(){_.UU(A,X)||(J.isTimeoutConditionSatisfied?_.Q7().addJob(L,O):J.timeoutConditionObservers.push(function(){_.Q7().addJob(L,O)}))},O,x)}};
_.dpu=function(A,L,O){if(L.length>1){var X=[],x=Object.create(null);L=_.d(L);for(var J=L.next();!J.done;J=L.next())J=J.value,x[J]||(X.push(J),x[J]=!0);L=X}if(L.length===1)return L[0];J=L;X="";x=O===2?"|":"&";J.sort();J=_.d(J);for(var Y=J.next();!Y.done;Y=J.next())X+=Y.value+x;if(!A.compoundSignals.get(X)){x=0;J=[];Y=_.d(L);for(var T=Y.next();!T.done;T=Y.next())T=T.value,x++,_.UU(A,T)||J.push(T);(O=O===2)&&x>J.length||!O&&!J.length?A.signals.push(X):VGL(A,X,O,L,J)}return X};
VGL=function(A,L,O,X,x){var J=x.length,Y=function(){O||--J===0?A.processSignal(L):Dpj(A,L)};
x=_.d(x);for(var T=x.next();!T.done;T=x.next())A.addListener(T.value,Y);A.compoundSignals.set(L,{signals:X,isOnAny:O,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});Dpj(A,L)};
Dpj=function(A,L){if(!_.UU(A,L)){var O=A.compoundSignals.get(L);if(O&&!O.isTimeoutConditionSatisfied){for(var X=!1,x=0,J=0,Y=_.d(O.signals),T=Y.next();!T.done;T=Y.next()){var V=T.value;T=!_.UU(A,V);T3L.has(V)?X=!0:(V=A.compoundSignals.get(V))?T&&!V.isTimeoutConditionSatisfied&&(J++,O.isInitialized||V.timeoutConditionObservers.push(function(){Dpj(A,L)})):T&&x++}O.isInitialized=!0;
O.isOnAny?X&&(O.isTimeoutConditionSatisfied=!0):x===0&&J===0&&(O.isTimeoutConditionSatisfied=!0);if(O.isTimeoutConditionSatisfied)for(O=_.d(O.timeoutConditionObservers),X=O.next();!X.done;X=O.next())X=X.value,X()}}};
as.prototype.processSignal=as.prototype.processSignal;as.prototype.parkOrScheduleJob=as.prototype.parkOrScheduleJob;as.prototype.onAny=as.prototype.onAny;_.oZ("ytsignals.getInstance",_.kq);as.prototype.onAny=as.prototype.onAny;as.prototype.parkOrScheduleJob=as.prototype.parkOrScheduleJob;as.prototype.processSignal=as.prototype.processSignal;var T3L=new Set(["eop","eocs","dl","pcl"]);_.z_=new _.Yx("MINIPLAYER_SERVICE");var v_,eN6,EmH;v_=function(A,L,O){var X=_.zu.getInstance();if(!s0J){var x=new EBd;var J=void 0,Y=_.ms("ID_TOKEN");Y&&x.isAvailable()&&(J=new Ke(x,"yt-queue"+Y));s0J=new xpg(J)}x=s0J;J=_.kq();this.JSC$13874_actionRouter=X;this.pageManager=A;this.playlistManager=L;this.JSC$13874_playlistNetworkManager=O;this.storage=x;this.signals=J;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.Aa=function(){if(!eN6){var A=_.X5(),L=A.resolve(_.Ot(_.JI)),O=A.resolve(_.Ot(_.f3)),X=A.resolve(_.Ot(_.$q));A=A.resolve(_.Ia);eN6=new v_(L,X,new iEd(O,A))}return eN6};
EmH=function(A,L,O){if(O){var X;if(((X=A.responsePlaylistData)==null?void 0:X.playlistId)!==O)return}A.responsePlaylistData&&(O=o5u(L,A.responsePlaylistData),A.responsePlaylistData=(0,_.lW.unsafeClone)(A.responsePlaylistData),LQe(A.responsePlaylistData,O));O=A.temporaryItems.findIndex(function(x){return x.videoId===L});
O>-1&&A.temporaryItems.splice(O,1);_.LA(A,_.Oc(A,A.response?A.response.autoplayRenderer:void 0))};
_.nmL=function(A,L){if(A.responsePlaylistData){var O=A3_(L,A.responsePlaylistData);LQe(A.responsePlaylistData,O);if(A.queueProxy){var X=A.queueProxy;O<0||(X.videoIds.splice(O,1),O<X.currentIndex&&X.JSC$13820_setCurrentIndex(X.currentIndex-1),X.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:L}),H_(X))}}_.LA(A,_.Oc(A,A.response?A.response.autoplayRenderer:void 0))};
v_.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.LA(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
v_.prototype.setPlaylistData=function(A,L,O){this.temporaryItems=[];this.listId=A;this.responsePlaylistData=L;_.LA(this,_.Oc(this,O))};
var tG6=function(A){return(A==null?0:A.playlistId)?A.playlistId:"PPSV"},bRg=function(A){return A&&A.playlistId?A.playlistId==="PPSV"?!0:xBp(_.Ai().getState().entities,A.playlistId):!1};
v_.prototype.isPlayingOfflineVideo=function(){return this.response?bRg(this.response):!1};
v_.prototype.closeMiniplayer=function(A){var L=this.queueProxy&&this.queueProxy.size()<=1,O=_.X5().resolve(_.z_);if(!this.queueProxy||L)this.queueProxy&&this.clearQueue(),O.close(!0);else{O.pipController.getWindow()&&window.focus();L=this.responsePlaylistData;var X=this.temporaryItems.length+(L&&L.contents?L.contents.length:0);L=_.b3("QUEUE_CLEARED_UNPLURALIZED")||_.hz("QUEUE_CLEARED",X);L=_.XZ(L);O=_.b3("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");X=_.b3("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.hz("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",X);var x=_.b3("MINIPLAYER_CLOSE",void 0,"Close"),J=_.b3("CANCEL",void 0,"Cancel");_.za(this.JSC$13874_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.Ue(O),dialogMessages:[_.Ue(X)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Ue(x),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
L]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Ue(J)}}}}}}],A)}};
_.Oc=function(A,L){var O={},X=A.response;O.autoplayRenderer=L;if(!A.responsePlaylistData&&!A.temporaryItems.length)return!X||!X.hasRelatedVideoData&&_.h("kevlar_prefetch_data_augments_network_data")||(O.playerData={rvs:X.relatedVideoArgs,endScreenRenderer:X.endScreenRenderer}),O;O.playerData={};if(A.index===void 0)return _.C7(Error("Gf")),O;O.panel=A.responsePlaylistData?(0,_.lW.unsafeClone)(A.responsePlaylistData):{titleText:_.Ue(_.b3("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
L=O.panel;if(L.contents)for(var x=_.d(A.temporaryItems),J=x.next();!J.done;J=x.next())L.contents.push({playlistPanelVideoRenderer:J.value});A.queueProxy&&X&&X.playingVideo&&X.playingVideoId&&!v5y(X.playingVideoId,O.panel)&&(L=X.playingVideo,x=O.panel,J=A.index,x.contents&&x.contents.splice(J===void 0?0:J,0,{playlistPanelVideoRenderer:L}));X&&X.playingVideoId&&(L=A.index,x=O.panel,L=!x.contents||L>=x.contents.length?void 0:x.contents[L].playlistPanelVideoRenderer,L&&L.videoId===X.playingVideoId||(L=
o5u(X.playingVideoId,O.panel),A.index=L!==-1?L:A.index?A.index-1:0));L=Uru(A.index+1,O.panel);x=void 0;A.index>0&&(x=Uru(A.index-1,O.panel));if(x||L)O.autoplayRenderer=$rP(L,x,O.autoplayRenderer);!L&&(X==null?0:X.relatedVideoArgs)&&(O.playerData.rvs=X.relatedVideoArgs);X=X?X.playlistIndexOffset:0;A.queueProxy?xU_(O.panel,A.index,X,kfu,!0,!0,!0):xU_(O.panel,A.index,X);O.playerData.playlistPanelRenderer=O.panel;return O};
v_.prototype.openToast=function(A){_.X5().resolve(_.z_).openToast(A,_.b3("ADDED_TO_QUEUE",void 0,"Added to queue"))};
v_.prototype.isMiniplayerActive=function(){return _.X5().resolve(_.z_).isMiniplayerActive()};
_.LA=function(A,L){A.playlistManager.setAutoplayRenderer(L.autoplayRenderer||null);A.playlistManager.setPlaylistData(L.panel||null);L.playerData&&A.playlistManager.setPlayerPlaybackControlData(L.playerData)};var J3s="#";var hN6={},Spu={},qp6={},gmV={},wtj={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:(hN6.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",hN6),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:(Spu.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",Spu),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:(qp6.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",qp6),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:(gmV.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",gmV),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 jfu=[{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:wtj},{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:wtj}}];var c3p;_.D9=[[["YW8xYno1dGo1bXBraW5kI3g=","YWYzcm1oNHZ2YWx1ZSNlNTMx"],"TlRfS0lORF9TVEFSVCNyZ3V5NGdidmZjbzNBRF9QTEFDRU1F"]];
c3p=[[["ZWdwcmltYXJ5I282cXBoMG9vdjc=",null,null],[null,["aWN6cGE5OTFzMXZ5dGQtdHdvLWNvbHVtbi1icm93c2UtcmVzdWx0cy1yZW5kZXJlciNj","ZSNrbmZoYnI0OXFqYWFzdHlsZS1zY29w"],null],["ZCNnaDFzZWZ5NWt2M29tYXN0aGVhZC1h",["LWdyaWQtcmVuZGVyZXIjMzVrazhkaW9jNnRveXRkLXJpY2g="],null],[null,["LWdyaWQtcmVuZGVyZXIjM2ZmZXliZWhrMTBjeXRkLXJpY2g=","ZSNvem9zdnp1aGUzMXBzdHlsZS1zY29w"],null],[null,["bW8tcmVuZGVyZXIjamhzNHlnMXQxbTBneXRkLWJhbm5lci1wcm8=","ZSMzdDBrMHgxdDdpMGhzdHlsZS1zY29w"],null],[null,["YWQtc2xvdC1yZW5kZXJlciNxOTB3Mjg1cno3bjd5dGQt"],
null]],[["ZXItYWRzI2h2bjRuZ2h3dmN2cGxheQ==",null,null]]];_.VH=["a2E0YWN4Z2xvYmFsQ2FsbGJhY2tzI3lwd3oxNg==","cm1hbGl0eURldGVjdGVkIzJiYzFhYmdyanAxdW9uQWJubw==","bkFkU2tpcCN3ZzVsNmlmMTFpMWdv","d19wbGF5ZXJfcmVzcG9uc2UjNmo3dnB0dHY1bzFwcmE=","dm1hZFNsb3RzIzVtNThzdHlxa3o="];_.X6="a2E0YWN4Z2xvYmFsQ2FsbGJhY2tzI3lwd3oxNg== cm1hbGl0eURldGVjdGVkIzJiYzFhYmdyanAxdW9uQWJubw== bkFkU2tpcCN3ZzVsNmlmMTFpMWdv d19wbGF5ZXJfcmVzcG9uc2UjNmo3dnB0dHY1bzFwcmE= a3MjMXN2cHhyeWZyMXd3ZWJfcGxheWxpc3RfcXVldWVfbXVsdGlwbGVfc2tpcHNf Yl9zYV9lZiMxMDc0emEza2luM2xh dm1hZFNsb3RzIzVtNThzdHlxa3o=".split(" ");var x1;x1=function(A,L,O){this.b91=A;this.isAsync=L;this.vVw=O};
_.A2u=[new x1("b.f_",!1,0),new x1("j.s_",!1,2),new x1("r.s_",!1,4),new x1("e.h_",!1,6),new x1("i.s_",!0,8),new x1("s.t_",!1,10),new x1("p.h_",!1,12),new x1("s.i_",!1,14),new x1("f.i_",!1,16),new x1("a.b_",!1,18),new x1("a.o_",!1),new x1("g.o_",!1,22),new x1("p.i_",!1,24),new x1("p.m_",!1),new x1("n.k_",!0,20),new x1("i.f_",!1),new x1("a.s_",!0),new x1("m.c_",!1),new x1("n.h_",!1,26),new x1("o.p_",!1),new x1("m.p_",!0,28),new x1("o.a_",!1),new x1("d.p_",!1),new x1("e.i_",!1)].reduce(function(A,L){A[L.b91]=
L;return A},{});var ptV=function(){};
ptV.prototype.flush=function(A,L){A=A===void 0?[]:A;L=L===void 0?!1:L;if(_.h("enable_client_streamz_web")){A=_.d(A);for(var O=A.next();!O.done;O=A.next())O=eoN(O.value),this.rootSpec&&_.eg(O,2,this.rootSpec),O={serializedIncrementBatch:_.NQ(O.JSC$10627_serializeBinary())},_.lg("streamzIncremented",O,{sendIsolatedPayload:L})}};
var uyy=function(){};
_.g(uyy,ptV);var iRn=function(A){var L=new Pe7;var O=new xol;O=_.gz(O,1,"botguard");A=_.gz(O,2,A);this.rootSpec=_.EB(L,1,doj,A)};
_.g(iRn,ptV);var Yc,N36=new Map;var Qfe,Vbp,qLu,Ers,blJ,Gcd,f1M,r3J;Qfe=2;Vbp=2;qLu=2;Ers=2;blJ=2;Gcd=2;f1M=2;r3J=new dDj;var Kpc,Gx6,lC3;Kpc=function(){this.ongoingFlowNonces=new Map};
_.bn=function(){Gx6||(Gx6=new Kpc);return Gx6};
_.n3=function(A,L,O){return{eventType:{flowEventNamespace:A,flowEventType:L},metadata:O,statusCode:void 0,csn:void 0,can:void 0}};
_.OEu=function(A,L){var O=_.bn(),X=lC3(O,L,!0);_.ti(O,A,L,X)};
_.ti=function(A,L,O,X){A={flowNonce:X||lC3(A,O),flowType:O,flowEventType:L.eventType};L.metadata&&(A.flowMetadata=L.metadata);L.statusCode!==void 0&&(A.flowEventStatus=L.statusCode);L.csn&&(A.csn=L.csn);L.can&&(A.can=L.can);_.lg("flowEvent",A,void 0)};
lC3=function(A,L,O){O=O===void 0?!1:O;var X=A.ongoingFlowNonces.get(L);if(!X||O)X=li(16),A.ongoingFlowNonces.set(L,X);return X};_.cZl=new PQJ;var J2u={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app",LEARNING:"learning",LEARNING_JOURNEY_WATCH:"learning_journey_watch"};var sc=function(A,L,O,X,x,J,Y){O=O===void 0?!1:O;X=X===void 0?!1:X;J=J===void 0?_.Aa():J;this.hasRun=!1;this.a3a=A;this.yf3=L;this.tfm=O;this.fromHistory=X;this.previousVideoId=x;this.h46=J;this.tempData=Y;this.cLm=new _.Y46};
_.g(sc,u4);sc.prototype.validate=function(A){return!(!A.data.playerResponse||A.data.page!=="watch"&&A.data.page!=="learning_journey_watch"&&A.data.page!=="shorts"||this.hasRun)};
sc.prototype.handle=function(A){var L=this,O=_.q(A.endpoint,_.$O),X=_.q(A.endpoint,_.rM);if(_.h("kevlar_continue_playback_without_player_response")&&(O==null?0:O.videoId)&&this.previousVideoId&&(O==null?void 0:O.videoId)===this.previousVideoId&&(O==null?0:O.continuePlayback)&&!this.fromHistory)this.a3a.resolve();else{var x={};O?x.watch_endpoint=O:X&&(x.watch_endpoint=X,X.endTimeSeconds&&(x.end=X.endTimeSeconds));A.data.page==="watch"?(A.data.filler||this.tfm||(_.QN("cfg"),_.zu.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(x,CmN(this,A.endpoint)),_.h("enable_masthead_quartile_ping_fix")&&Object.assign(x,FpL(this)),Object.assign(x,void 0),A.data.forceExternalPlaylist&&(x.external_list=!0)):A.data.page==="shorts"?_.zu.getInstance().triggerAction("yt-start-loading-shorts"):A.data.page==="learning_journey_watch"&&_.zu.getInstance().triggerAction("yt-start-loading-learning-journey");if(O=this.yf3()){try{O.loadVideoWithPlayerResponse(A.data.playerResponse,x),O.getPlayerPromise().then(this.a3a.resolve)}catch(J){_.C7(J),
this.a3a.resolve()}this.hasRun=!0;O.getPlayerPromise().then(function(J){J.addEventListener("onAbnormalityDetected",function(){var Y=A.data.playerResponse,T=J.getVideoData().cpn;f1M=0;_.rZL=T;if(T=oru(Y))L.cLm.increment("IN_PLAYER"),_.hi(5),_.h("ab_st_vid_ks")?J.pauseVideo(!0):J.stopVideo(),Y.playabilityStatus=Object.assign({},Y.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:T}}),Y.videoDetails=void 0,_.zu.getInstance().triggerOptionalAction("yt-updated-playability-status",
Y.playabilityStatus)})})}else _.Rv(Error("Jf"))}};
var CmN=function(A,L){var O=_.q(L,_.$O);if(L&&O&&O.playlistId&&O.videoId&&(A=A.h46,A.queueProxy?(A=A.queueProxy,O=A.listId===O.playlistId?A.attributionData.get(O.videoId):void 0):O=void 0,O))return{queue_info:O}},FpL=function(A){var L;
if((L=A.tempData)==null?0:L.adpings)return{adpings:A.tempData.adpings}};var Ja=function(A,L,O){this.hasRun=!1;this.dJ0=A;this.gko=L;this.j9C=O};
_.g(Ja,u4);Ja.prototype.validate=function(A){return!!_.lW.getValueByKeys.apply(null,[A.data].concat(_.le(Xt3)))};
Ja.prototype.handle=function(A){var L=this;this.dJ0.promise.then(function(){var O=A.data;var X=_.lW.getValueByKeys.apply(null,[O].concat(_.le(kGL))),x=_.lW.getValueByKeys.apply(null,[O].concat(_.le(Lpu))),J=_.lW.getValueByKeys.apply(null,[O].concat(_.le(v6l)));var Y=(Y=_.lW.getValueByKeys.apply(null,[O].concat(_.le(ULV))))?{videoId:Y.videoId,thumbnail:Y.thumbnail,title:Y.title?_.Ue(Y.title):void 0,shortBylineText:Y.author?_.Ue(Y.author):void 0}:void 0;var T=void 0;_.h("web_get_playlist_id_from_current_endpoint_ks")||
(T=_.lW.getValueByKeys.apply(null,[O].concat(_.le(o6g))));var V=_.lW.getValueByKeys.apply(null,[O].concat(_.le(OR3))),E=_.lW.getValueByKeys.apply(null,[O].concat(_.le(AZn))),n=!!V||!!E&&!!E.results&&E.results.length>0,t=0;x&&x.currentIndex&&x.localCurrentIndex&&(t=x.currentIndex-x.localCurrentIndex);x&&x.playlistId&&(T=x.playlistId);O={rawResponse:O,autoplayRenderer:X,hasRelatedVideoData:n,playingVideo:Y,playingVideoId:J,playlistPanelRenderer:x,playlistId:T,playlistIndex:x&&x.currentIndex,relatedVideoArgs:V,
endScreenRenderer:E,playlistIndexOffset:t};a:{X=L.j9C;x=L.gko;X.response=O;if(bRg(O))X.downloadPlaylistProxy&&X.downloadPlaylistProxy.getPlaylistId()===tG6(O)||(X.downloadPlaylistProxy=new jE6(tG6(O),X.setPlaylistData.bind(X),X.isPlayingOfflineVideo.bind(X))),X.responsePlaylistData=X.downloadPlaylistProxy.getPlaylistData(),X.listId=tG6(O),X.index=0;else if(O.playlistPanelRenderer&&O.playlistId&&O.autoplayRenderer)O.playlistId.startsWith("TLPQ")?X.queueProxy?X.listId===O.playlistId?(X.index=O.playlistIndex,
X.responsePlaylistData=O.playlistPanelRenderer,X.queueProxy.JSC$13820_setCurrentIndex(X.index)):O.playingVideoId&&X.index!==void 0&&x.clientParams.autoSaveToQueue&&(X.index+=1,X.queueProxy.JSC$13820_setCurrentIndex(X.index),X.queueProxy.addVideos([O.playingVideoId],{},X.index)):(X.queueProxy=new _.ze(X.JSC$13874_playlistNetworkManager,O.playlistId,X.setPlaylistData.bind(X),X.clearQueue.bind(X),_.OlP(O.playlistPanelRenderer),X.storage),X.responsePlaylistData=O.playlistPanelRenderer,X.listId=O.playlistId,
X.index=O.playlistIndex):(X.index=O.playlistIndex,X.listId!==O.playlistId&&X.clearQueue(),X.responsePlaylistData=O.playlistPanelRenderer,X.listId=O.playlistId,X.playlistProxy=new aRl(X.JSC$13874_playlistNetworkManager,O.playlistId,X.setPlaylistData.bind(X),_.OlP(O.playlistPanelRenderer)));else if(!X.queueProxy)X.responsePlaylistData=void 0;else if(O.playingVideoId&&x.clientParams.autoSaveToQueue){if(X.index===void 0){_.C7(Error("Ff"));X.clearQueue();break a}X.queueProxy.videoIds.includes(O.playingVideoId)||
(X.index+=1,X.queueProxy.JSC$13820_setCurrentIndex(X.index),X.queueProxy.addVideos([O.playingVideoId],{},X.index))}_.LA(X,_.Oc(X,X.response.autoplayRenderer))}})};var RNj=function(A,L){L=L===void 0?_.Aa():L;i4.call(this);this.uB.push(new Ja(this.yd,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},L));this.uB.push(new sc(this.yd,A,!1,!1));_.h("web_response_commands_chunk_processor")&&this.uB.push(new NB)};
_.g(RNj,i4);RNj.prototype.processChunk=function(A){A&&A.data.player===void 0&&this.yd.resolve();i4.prototype.processChunk.call(this,A)};var P$=function(A,L){A=A===void 0?{layer:0}:A;this.hasRun=!1;this.createScreenConfig=A;this.g1t=L};
_.g(P$,u4);P$.prototype.validate=function(A){return!(this.hasRun||!A.endpoint)};
P$.prototype.handle=function(A){var L=_.iV(),O,X,x=(X=_.q((O=A.endpoint)==null?void 0:O.commandMetadata,_.LM))==null?void 0:X.rootVe;this.g1t&&x?_.h7(L,x,this.g1t,this.createScreenConfig):iPl(L,A.endpoint,this.createScreenConfig);this.hasRun=!0};var df=function(A,L){this.hasRun=!1;this.u90=A;this.previousVideoId=L};
_.g(df,u4);df.prototype.validate=function(A){return _.h("kevlar_continue_playback_without_player_response")&&(A=_.q(A.endpoint,_.$O),(A==null?0:A.videoId)&&this.previousVideoId&&(A==null?void 0:A.videoId)===this.previousVideoId&&(A==null?0:A.continuePlayback))?!1:this.u90.bZa===0};
df.prototype.handle=function(A){_.zu.getInstance().triggerAction("yt-stop-old-player",A.data,!0)};var Q0l=function(A){A=A===void 0?{layer:0}:A;i4.call(this);this.uB.push(new df(this));this.uB.push(new P$(A));this.uB.push(new p2(A))};
_.g(Q0l,i4);var mpu=function(){this.hasRun=this.hasRun=!1};
_.g(mpu,u4);mpu.prototype.validate=function(A){return!this.hasRun&&!(!A.data.csn||!A.data.rootVe)};
mpu.prototype.handle=function(A){this.hasRun=!0;_.Qq(A.data.csn,A.data.rootVe,3)};var fCg=function(){u4.apply(this,arguments)};
_.g(fCg,u4);fCg.prototype.validate=function(A){return!!A.data.preconnect};
fCg.prototype.handle=function(A){_.Rk("bc");A=_.d(A.data.preconnect);for(var L=A.next();!L.done;L=A.next())L=L.value,(new Image).src=L};var ICL=function(A,L,O){O=O===void 0?{layer:0}:O;i4.call(this);this.uB.push(new sc(this.yd,A));this.uB.push(new P$(O));this.uB.push(new p2(O))};
_.g(ICL,i4);var yZL=function(A,L,O,X,x){O=O===void 0?{layer:0}:O;X=X===void 0?_.Aa():X;i4.call(this);var J=!!L&&!!L.clientParams&&!!L.clientParams.miniplayer;J&&this.uB.push(new mpu);this.uB.push(new Ja(this.yd,L,X));this.uB.push(new fCg);var Y,T;this.uB.push(new sc(this.yd,A,J,!((Y=L.clientParams)==null||!Y.fromHistory),(T=L.clientParams)==null?void 0:T.previousVideoId,X,L.tempData));var V;this.uB.push(new df(this,(V=L.clientParams)==null?void 0:V.previousVideoId));var E;(E=L.clientParams)!=null&&E.fromHistory||
(O.layer||(O=Object.assign({},O,{layer:J?3:0})),this.uB.push(new P$(O,x)),this.uB.push(new p2(O)));_.h("web_response_commands_chunk_processor")&&this.uB.push(new NB)};
_.g(yZL,i4);var Y1,WpH;Y1={};
_.ZRH=(Y1["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},Y1["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},Y1["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},Y1["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Y1["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Y1["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Y1["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},Y1);_.u6=new _.mg("yt-edu");_.j0H=function(){this.JSC$13975_eduDisplayedThisLoad_={}};
WpH=function(A){var L=_.j0H.getInstance();var O=_.PO("kevlar_tooltip_impression_cap");L=O&&parseInt(_.u6.get(A+"-impression")||0,10)>=O||_.u6.get(A+"-dismissed")?!1:(O=_.ZRH[A])&&!L.JSC$13975_eduDisplayedThisLoad_[O.setKey||A]&&(O.titleText&&_.b3(O.titleText)||O.bodyText&&_.b3(O.bodyText))?!0:!1;if(!L)return null;L=_.ZRH[A];if(!L)return null;O=L.bodyText?_.b3(L.bodyText):void 0;var X=L.titleText?_.b3(L.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:L.position,popup:{bubbleHintRenderer:{text:X?
_.Ue(X):void 0,detailsText:O?_.Ue(O):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Ue(_.b3("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:A}}]}}}}}}}},{eduImpressionAction:{key:A}}]};
_.Yz(_.j0H);var XW_=!1;for(var HRJ="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),zNj=[],T6=6;T6>=1;T6--)zNj.push({columnCount:T6,query:T6==1?0:T6*2*107-4+32,className:"grid-"+T6+"-columns",width:T6*2*107+"px"});_.MGl=function(A){this.actionRouter_=A=A===void 0?_.zu.getInstance():A;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.B3H(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.B3H=function(A){var L=A.miniGuideVisible_?72:0,O=A.documentWidth_-(A.guidePersistentAndVisible_?240:L);return zNj.find(function(X){return O>X.query})};
_.Yz(_.MGl);var $pH=function(){var A=this;this.JSC$13987_keyboardInUse=!1;document.addEventListener("keydown",function(){A.onKeydown()});
document.addEventListener("mousedown",function(){A.JSC$13987_keyboardInUse=!1})},aCu;
$pH.prototype.isKeyBoardInUse=function(){return this.JSC$13987_keyboardInUse};
$pH.prototype.onKeydown=function(){this.JSC$13987_keyboardInUse=!0};var kxL,el;_.V6=new _.mg("yt-mentions");_.DY=function(){};
kxL=function(A,L){return el(L,"drag-to-reorder-edu-displayed")};
el=function(A,L,O,X,x,J){O=O===void 0?"OPEN_POPUP_POSITION_TOP":O;if(L){if(_.V6.get(L))return;_.V6.set(L,!0,X)}if(x&&J!==void 0){L=Number(_.V6.get(x)||0);if(L>=J)return;_.V6.set(x,L+1)}return[{openPopupAction:{popupType:"HINT",position:O,popup:{bubbleHintRenderer:{detailsText:A,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.Yz(_.DY);var Upn,vmc,om7;Upn=function(A,L,O,X){this.JSC$13997_taskManager_=A;this.onFulfilled_=typeof L==="function"?L:null;this.onRejected_=typeof O==="function"?O:null;this.JSC$13997_context_=X};
vmc=function(A,L){A.onFulfilled_&&_.GP(A.JSC$13997_taskManager_,function(){A.onFulfilled_.call(A.JSC$13997_context_,L)})};
om7=function(A,L){A.onRejected_&&_.GP(A.JSC$13997_taskManager_,function(){A.onRejected_.call(A.JSC$13997_context_,L)})};
_.Ec=function(A){this.JSC$14000_taskManager_=A;this.callbacks_=[]};
_.Ec.prototype.then=function(A,L,O){this.callbacks_.push(new Upn(this.JSC$14000_taskManager_,A,L,O));return this};
_.Ec.prototype.onSuccess=function(A){this.callbacks_.forEach(function(L){vmc(L,A)})};
_.Ec.prototype.onFailure=function(A){this.callbacks_.forEach(function(L){om7(L,A)})};
_.Ec.prototype.cancel=function(){this.callbacks_.length=0};
txu(_.Ec);_.dq9=null;_.m4=new _.Yx("ACTIVITY_TOKEN");var nA=function(A,L){this.serviceId=new th7(A,L)};
nA.prototype.toString=function(){return this.serviceId.toString()};var Am6=function(){this.internalMap={}};
_.P=Am6.prototype;_.P.contains=function(A){return Object.prototype.hasOwnProperty.call(this.internalMap,A)};
_.P.get=function(A){if(this.contains(A))return this.internalMap[A]};
_.P.set=function(A,L){this.internalMap[A]=L};
_.P.getKeys=function(){return Object.keys(this.internalMap)};
_.P.remove=function(A){delete this.internalMap[A]};var ta=function(){this.mappings=new Am6;this.errorCallbacks=new Set};
ta.prototype.getModuleId=function(A){return A.serviceId.getModuleId()};
ta.prototype.get=function(A){var L=this.mappings.get(A.toString());return Lm7(this,L,A)};
ta.prototype.getMultipleAsync=function(){var A=_.f_.apply(0,arguments),L=this,O=A.map(function(V){return L.getModuleId(V)}),X=A.map(function(V){return L.mappings.get(V.toString())}).filter(function(V){return V});
if(X.length===A.length)return _.DQ(X.map(function(V,E){return Lm7(L,V,A[E])}));
var x=ls().loadMultiple(O);X=_.Fe(O.map(function(V){return x[V]}));
var J=document.hidden,Y=-1,T=_.PO("get_async_timeout_ms",-1);T>-1&&(Y=setTimeout(function(){_.Rv(new _.pe("Module timeout.",O,J,document.hidden))},T));
return _.R$(X.then(function(){return A.map(function(V){return Lm7(L,L.mappings.get(V.toString()),V)})}).thenCatch(function(V){for(var E=_.d(L.errorCallbacks),n=E.next();!n.done;n=E.next())n=n.value,n(V);
throw V;}),function(){clearTimeout(Y)})};
ta.prototype.registerService=function(A,L){this.mappings.set(A.toString(),{type:"mapping",value:L});return A};
var Lm7=function(A,L,O){switch(L.type){case "mapping":return L.value;case "factory":return L=L.value(),A.mappings.set(O.toString(),{type:"mapping",value:L}),L;default:return _.ZN(L)}};
ta.prototype.onLoadError=function(A){var L=this;this.errorCallbacks.add(A);return function(){L.errorCallbacks.delete(A)}};
_.b6=new ta;var Dqd=/^[a-zA-Z0-9_\-]{11}$/;var e6y=_.K5(function(){var A,L;return(L=(A=window).matchMedia)==null?void 0:L.call(A,"(prefers-reduced-motion: reduce)").matches});var OpN=_.K5(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 A=_.WY("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");A||(A=_.tg("VIDEO"),_.oZ("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
A));return!!(A&&A.canPlayType&&A.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var SoM=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var ha;ha=function(){this.tokenJars={};if(this.cookiesEnabled=_.qO()){var A=_.hj.get("CONSISTENCY",void 0);A&&XA7(this,{encryptedTokenJarContents:A})}};
_.gH9=function(){ha.instance||(ha.instance=new ha);return ha.instance};
ha.prototype.handleResponse=function(A,L){if(!L)throw Error("Pf");var O,X;L=((O=L.innerTubeRequest.context)==null?void 0:(X=O.request)==null?void 0:X.consistencyTokenJars)||[];var x;(A=(x=A.responseContext)==null?void 0:x.consistencyTokenJar)&&this.replace(L,A)};
ha.prototype.replace=function(A,L){A=_.d(A);for(var O=A.next();!O.done;O=A.next())delete this.tokenJars[O.value.encryptedTokenJarContents];XA7(this,L)};
var XA7=function(A,L){if(L.encryptedTokenJarContents&&(A.tokenJars[L.encryptedTokenJarContents]=L,typeof L.expirationSeconds==="string")){var O=Number(L.expirationSeconds);setTimeout(function(){delete A.tokenJars[L.encryptedTokenJarContents]},O*1E3);
A.cookiesEnabled&&_.Sh("CONSISTENCY",L.encryptedTokenJarContents,O,void 0,!0)}};var xt7,Sl;xt7=window.location.hostname.split(".").slice(-2).join(".");_.QH=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var A=_.ms("LOCATION_PLAYABILITY_TOKEN");_.ms("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=sxJ(this))&&(A=this.localStorage.get("yt-location-playability-token"));A&&(this.locationPlayabilityToken=A,this.mostRecentPosition=void 0)};
_.QH.getInstance=function(){Sl=_.WY("yt.clientLocationService.instance");Sl||(Sl=new _.QH,_.oZ("yt.clientLocationService.instance",Sl));return Sl};
_.QH.prototype.setLocationOnInnerTubeContext=function(A){A.client||(A.client={});if(this.mostRecentPosition)A.client.locationInfo||(A.client.locationInfo={}),A.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),A.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),A.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),A.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)A.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.QH.prototype.handleResponse=function(A){var L;A=(L=A.responseContext)==null?void 0:L.locationPlayabilityToken;A!==void 0&&(this.locationPlayabilityToken=A,this.mostRecentPosition=void 0,_.ms("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=sxJ(this))&&this.localStorage.set("yt-location-playability-token",A,15552E3):_.Sh("YT_CL",JSON.stringify({loctok:A}),15552E3,xt7,!0))};
var sxJ=function(A){return A.localStorage===void 0?new _.mg("yt-client-location"):A.localStorage};
_.QH.prototype.clearLocationPlayabilityToken=function(A){A==="TVHTML5"?(this.localStorage=sxJ(this))&&this.localStorage.remove("yt-location-playability-token"):_.PND("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.QH.prototype.getCurrentPositionFromGeolocation=function(){var A=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Qf"));var L=!1,O=1E4;_.ms("INNERTUBE_CLIENT_NAME")==="MWEB"&&(L=!0,O=15E3);return new Promise(function(X,x){navigator.geolocation.getCurrentPosition(function(J){A.mostRecentPosition=J;X(J)},function(J){x(J)},{enableHighAccuracy:L,
maximumAge:0,timeout:O})})};
_.QH.prototype.createUnpluggedLocationInfo=function(A){var L={};A=A.coords;if(A==null?0:A.latitude)L.latitudeE7=Math.floor(A.latitude*1E7);if(A==null?0:A.longitude)L.longitudeE7=Math.floor(A.longitude*1E7);if(A==null?0:A.accuracy)L.locationRadiusMeters=Math.round(A.accuracy);return L};
_.QH.prototype.createLocationInfo=function(A){var L={};A=A.coords;if(A==null?0:A.latitude)L.latitudeE7=Math.floor(A.latitude*1E7);if(A==null?0:A.longitude)L.longitudeE7=Math.floor(A.longitude*1E7);return L};var JmH=function(){};
_.P=JmH.prototype;
_.P.JSC$14067_getRequest=function(A,L,O){L=L===void 0?{}:L;O=O===void 0?p2u:O;var X=L;if(this.isNavigationCommand()){var x,J=(x=_.q(A==null?void 0:A.commandMetadata,_.LM))==null?void 0:x.url;X=_.wW_(A.clickTrackingParams,!0,!1,J,this.JSC$14067_getClientScreen(X))}else X=_.wW_(A.clickTrackingParams,!1,this.includeCsn);X={context:X};if(x=this.getExtension(A))return this.JSC$14067_buildRequest(X,x,L),x=this.getApiUrl(A),J=Object.assign({},{command:A},this.getRequestConfig(A,L)),X={input:x,requestShell:B3(x),
innerTubeRequest:X,config:J},X.config.authStrategy?X.config.authStrategy.identity=O:X.config.authStrategy={identity:O},(A=this.JSC$14067_getRequestKey(A,L))&&!X.config.requestKey&&(X.config.requestKey=A),X;A=new _.pe("Error: Failed to create Request from Command.",A);_.C7(A)};
_.P.getApiUrl=function(A){var L=_.L3(this.getApiPaths(A)),O;(A=(O=_.q(A.commandMetadata,_.LM))==null?void 0:O.apiUrl)&&(L=A);return Uzr(kas(L))};
_.P.isNavigationCommand=function(){return!1};
_.P.JSC$14067_getClientScreen=function(){};
_.P.JSC$14067_getRequestKey=function(){};
_.P.getRequestConfig=function(){};
_.v2.Object.defineProperties(JmH.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var qv=function(){};
_.g(qv,JmH);qv.prototype.JSC$14074_getStoreKey=function(){};
qv.prototype.JSC$14067_getRequestKey=function(A,L){L=L===void 0?{}:L;return this.JSC$14074_getStoreKey(A,L)};var dtN;_.gf=function(A,L,O){var X=O&&O>0?O:0;O=X?Date.now()+X*1E3:0;if((X=X?(0,_.PZL)():dtN())&&window.JSON){typeof L!=="string"&&(L=JSON.stringify(L,void 0));try{X.set(A,L,O)}catch(x){X.remove(A)}}};
_.wf=function(A){var L=dtN(),O=(0,_.PZL)();if(!L&&!O||!window.JSON)return null;try{var X=L.get(A)}catch(x){}if(typeof X!=="string")try{X=O.get(A)}catch(x){}if(typeof X!=="string")return null;try{X=JSON.parse(X,void 0)}catch(x){}return X};
_.pA=function(A){try{var L=dtN(),O=(0,_.PZL)();L&&L.remove(A);O&&O.remove(A)}catch(X){}};
_.PZL=_.K5(function(){try{var A=new eDO;var L=A.isAvailable()?A:null}catch(O){return null}return L?new _.P3(L):null});
dtN=_.K5(function(){var A=new EBd;return A.isAvailable()?new _.P3(A):null});var V7=new _.Yx("ENTITY_STATE_TOKEN"),i6=new _.Yx("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var YW6=XMLHttpRequest.prototype.fetch,u1J=YW6&&YW6.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!Ut?!0:!1;var Nv=function(A){this.JSC$14079_storeWithEntities=A};
_.g(Nv,qv);_.P=Nv.prototype;_.P.getApiPaths=function(){return K9J};
_.P.getExtension=function(A){return _.q(A,_.$O)||_.q(A,_.rM)||_.q(A,KG6)};
_.P.isNavigationCommand=function(){return!0};
_.P.JSC$14074_getStoreKey=function(A){if((_.h("kevlar_cache_on_ttl_player")||_.h("mweb_enable_shorts_innertube_player_prefetch")||_.h("mweb_use_new_history_manager")||_.h("web_shorts_prefetch_service_enabled"))&&(A=this.getExtension(A))&&A.videoId){var L={videoId:A.videoId};A.playlistId&&(L.playlistId=A.playlistId);A.playerParams&&(L.params=A.playerParams);return _.MA("player",L)}};
_.P.JSC$14067_getClientScreen=function(A){var L;return((L=A.contentPlaybackContext)==null?void 0:L.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.P.JSC$14067_buildRequest=function(A,L,O){if(_.h("enable_interstitial_entity_check")){var X=this.JSC$14079_storeWithEntities;if(L.videoId)for(var x=_.d(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),J=x.next();!J.done;J=x.next()){J=J.value;var Y;var T=void 0,V=void 0,E=L.videoId,n=J;(Y=X)?(E=_.Dn(E+n,"interstitialInteractionStateEntity"),Y=(T=(V=_.eM(Y.getState().entities,"interstitialInteractionStateEntity",E))==null?void 0:V.primaryButtonClicked)!=null?T:!1):Y=!1;if(Y)switch(J){case "CONTENT_CHECK_REQUIRED":L.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":L.racyCheckOk=!0}}}L.videoId&&(A.videoId=L.videoId);L.playlistId&&(A.playlistId=L.playlistId);L.index!==void 0&&(A.playlistIndex=L.index+1);L.playerParams&&(A.params=L.playerParams);"startTimeSeconds"in L&&L.startTimeSeconds&&(_.h("enable_player_request_builder_start_time_floor")?A.startTimeSecs=Math.floor(L.startTimeSeconds):A.startTimeSecs=L.startTimeSeconds);O.contentPlaybackContext&&(A.playbackContext={contentPlaybackContext:O.contentPlaybackContext});O.prefetchPlaybackContext&&
(A.playbackContext=Object.assign({},A.playbackContext,{prefetchPlaybackContext:O.prefetchPlaybackContext}),A.context.request||(A.context.request={}),A.context.request.isPrefetch=!0);A.playbackContext||(A.playbackContext={});X=OpN();A.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!X,supportXhr:u1J};O.overrideMutedAtStart&&(A.overrideMutedAtStart=O.overrideMutedAtStart);A.racyCheckOk=!!L.racyCheckOk;A.contentCheckOk=!!L.contentCheckOk;!_.h("captions_prefs_killswitch")&&(O=(O=_.wf("yt-player-caption-language-preferences"))?
O:[],O==null?0:O.length)&&(A.captionParams={viewerSelectedCaptionLangs:O})};
_.P.getRequestConfig=function(A){A=this.JSC$14074_getStoreKey(A);var L;A&&(L={storeStrategy:{storeKey:A}});_.h("web_log_player_watch_next_ticks")&&(L=L||{},L.requestTick="ps_s",L.responseTick="ps_r");return L};
Nv[dx]=[V7];var rf=function(){};
_.g(rf,qv);_.P=rf.prototype;_.P.getApiPaths=function(){return s46};
_.P.getExtension=function(A){return _.q(A,_.$O)};
_.P.isNavigationCommand=function(){return!0};
_.P.JSC$14074_getStoreKey=function(A){if((A=this.getExtension(A))&&A.videoId){var L={videoId:A.videoId};A.playlistId&&(L.playlistId=A.playlistId);A.index&&(L.index=A.index);A.params&&(L.params=A.params);return _.MA("next",L)}};
_.P.JSC$14067_getClientScreen=function(A){var L;return((L=A.contentPlaybackContext)==null?void 0:L.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.P.JSC$14067_buildRequest=function(A,L,O){L.videoId&&(A.videoId=L.videoId);L.playlistId&&(A.playlistId=L.playlistId);L.params&&(A.params=L.params);L.index!==void 0&&(A.playlistIndex=L.index);A.racyCheckOk=!(!O.racyCheckOk&&!L.racyCheckOk);A.contentCheckOk=!!L.contentCheckOk;O.contentPlaybackContext&&(A.autonavState=O.contentPlaybackContext.autonavState,A.playbackContext={vis:O.contentPlaybackContext.vis,lactMilliseconds:O.contentPlaybackContext.lactMilliseconds});O.prefetchPlaybackContext&&(A.context.request||
(A.context.request={}),A.context.request.isPrefetch=!0);_.h("captions_hats_killswitch")||(L=_.qG().getFlag(65),L=L!=null?!L:!1,O=!!_.wf("yt-player-sticky-caption"),A.captionsRequested=L&&O)};
_.P.getRequestConfig=function(A){A=this.JSC$14074_getStoreKey(A);var L;A&&(L={storeStrategy:{storeKey:A}});_.h("web_log_player_watch_next_ticks")&&(L=L||{},L.requestTick="wn_s",L.responseTick="wn_r");return L};
var KA=function(){};
_.g(KA,qv);KA.prototype.getApiPaths=function(){return s46};
KA.prototype.getExtension=function(A){return _.q(A,_.Mn)};
KA.prototype.JSC$14067_buildRequest=function(A,L){L.token&&(A.continuation=L.token)};var G6=function(A,L){this.playerRequestBuilder=A;this.watchNextRequestBuilder=L};
_.g(G6,qv);G6.prototype.getApiPaths=function(){return tRj};
G6.prototype.getExtension=function(A){return _.q(A,_.$O)};
G6.prototype.isNavigationCommand=function(){return!0};
G6.prototype.JSC$14067_buildRequest=function(A,L,O){A.playerRequest={};this.playerRequestBuilder.JSC$14067_buildRequest(A.playerRequest,L,O);_.h("web_streaming_watch")&&(A.watchNextRequest={},this.watchNextRequestBuilder.JSC$14067_buildRequest(A.watchNextRequest,L,O))};
G6[dx]=[Nv,rf];var T2J;_.l6=new _.Yx("SHORTS_CONTROLLER_TOKEN");T2J=new _.Yx("SHORTS_STATE_STORE_TOKEN");var c$=function(A,L){var O=_.f_.apply(2,arguments);A=A===void 0?0:A;_.pe.call(this,L,O);this.errorType=A;Object.setPrototypeOf(this,this.constructor.prototype)};
_.g(c$,_.pe);var Vij,Dt6,EP6,n0r,$D,Qbu,hhj,bp7,ipJ,gPH,qW3;Vij=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(A){return A+"="}).join("|"));
Dt6=RegExp(".*\\?.*playnext=1.*");_.CA=function(A,L,O,X){this.watchEndpointMap=A;this.reelWatchEndpointMap=L;this.innerTubeTransportService=O;this.fetchPbj=X};
EP6=function(A,L,O){var X=_.X5().resolve(_.Ot(ehN));_.CA.instance=new _.CA(A,L,O,X)};
_.nP3=function(A,L){var O=_.PO("web_pbj_log_warning_rate",0);O=O>0&&Math.random()<O;var X;if((X=_.q(L.commandMetadata,_.LM))==null||!X.rootVe)return O&&_.Rv(Error("Sf")),!1;var x;X=(x=_.q(L.commandMetadata,_.LM))==null?void 0:x.url;if(!X)return O&&_.Rv(Error("Tf")),!1;if(Dt6.test(X))return!0;if(Vij.test(X))return O&&_.Rv(Error("Uf`"+X)),!1;if(_.q(L,_.$O)){if(!(A.watchEndpointMap.watchNext&&A.watchEndpointMap.player||_.h("kevlar_fetch_initial_data_op_watch_client")))return O&&_.Rv(Error("Lf")),!1;
A=_.PO("web_pbj_log_warning_rate",0);A=A>0&&Math.random()<A;_.q(L,_.$O)?TUD(L)?L=!0:(A&&_.Rv(Error("Mf")),L=!1):(A&&_.Rv(Error("Lf")),L=!1);return L}if(_.q(L,_.rM))return VR_(L);if(_.q(L,_.BB))return!0;A=_.vx(A.innerTubeTransportService,L);!A&&O&&_.C7(Error("Vf"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(L)});return A};
n0r=function(A,L,O,X,x,J){L={url:L};if(O==null?0:O.itct)L.parentTrackingParams=O.itct;var Y=_.L3(fmH);return _.MB(A.innerTubeTransportService,L,Y).then(function(T){(T=T.endpoint)||(T=_.K2);(O==null?0:O.itct)&&T&&!T.trackingParams&&(T.trackingParams=O.itct);var V=p3(T);return $D(A,T,O,X,V,x,J)})};
$D=function(A,L,O,X,x,J,Y,T){T=T===void 0?{}:T;if(A.fetchPbj&&!_.nP3(A,L)&&!_.h("force_one_platform")){T=A.fetchPbj(L);var V=_.DQ(T.then(function(H){if(!H)throw Error("Wf");Y(V)||J(L,H);return H}));
return V}var E,n,t={rootVe:(E=_.q(L.commandMetadata,_.LM))==null?void 0:E.rootVe,url:(n=_.q(L.commandMetadata,_.LM))==null?void 0:n.url,endpoint:L,page:x};if(_.q(L,_.$O)){var b,S={contentPlaybackContext:_.ln(O,(b=_.q(L.commandMetadata,_.LM))==null?void 0:b.url,X)},w=_.AI();_.h("web_streaming_watch")&&window.TextDecoderStream?(T=til(A.innerTubeTransportService,L,S,function(H){!t.response&&H.content&&(t.response=H.content);!t.playerResponse&&H.player&&(t.playerResponse=H.player);J(L,t)}),E=vxr(L),E.length&&
(t.preconnect=E,J(L,t)),bp7(T,w,t).catch(function(H){H instanceof c$&&H.errorType===2&&hhj(A,L,S,t,J,Y,w)})):hhj(A,L,S,t,J,Y,w);
return w.promise}if(_.q(L,_.rM)){var l;if(((l=_.q(L,_.rM))==null?void 0:l.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var F=_.AI();_.SWL(_.X5().resolve(_.l6),L).then(function(H){qW3(A,O,X,x,J,F,H)});
return F.promise}T=_.DQ();var R;E={contentPlaybackContext:_.ln(O,(R=_.q(L.commandMetadata,_.LM))==null?void 0:R.url,X)};(R=A.reelWatchEndpointMap.player)&&(R=R().JSC$14067_getRequest(L,E))&&(T=_.MB(A.innerTubeTransportService,R.innerTubeRequest,R.input,L.clickTrackingParams,R.config));R=_.DQ();(n=A.reelWatchEndpointMap.reelItemWatch)&&(n=n().JSC$14067_getRequest(L))&&(R=_.MB(A.innerTubeTransportService,n.innerTubeRequest,n.input,L.clickTrackingParams,n.config));n=_.DQ();(b=A.reelWatchEndpointMap.reelWatchSequence)&&
_.q(L,_.rM).sequenceParams&&(E=b().JSC$14067_getRequest(L,E))&&(n=_.MB(A.innerTubeTransportService,E.innerTubeRequest,E.input,L.clickTrackingParams,E.config));E=_.DQ(t);b=_.AI();gPH(L,E,T,R,n,J,Y,b);return b.promise}var y;if(_.q(L,PRO)&&((y=_.q(L.commandMetadata,_.LM))==null?0:y.url))return T=qoe(_.jV(FT().location.href),_.jV(_.q(L.commandMetadata,_.LM).url)).toString(),n0r(A,T,O,X,J,function(){return!1});
if(_.q(L,_.BB))return J(L,t),_.DQ(t);if(_.vx(A.innerTubeTransportService,L)){T=Object.assign({},{tempData:O,disableCache:O.disableCache},T);var M=_.oQ(A.innerTubeTransportService,L,T).then(function(H){t.response=H;Y(M)||J(L,t);return t});
return M}return _.DQ(t)};
_.pA6=function(A,L,O,X){if(_.q(L,_.$O)||_.q(L,_.rM)&&(_.h("mweb_enable_shorts_innertube_player_prefetch")||_.h("kevlar_enable_shorts_prefetch_in_sequence"))||_.q(L,KG6)&&_.h("web_enable_prefetching_videos_on_home")){var x,J={contentPlaybackContext:_.ln(O,(x=_.q(L.commandMetadata,_.LM))==null?void 0:x.url,X),prefetchPlaybackContext:nHr(O)},Y,T,V;if(((Y=_.q(L,_.$O))==null?void 0:(T=Y.watchEndpointSupportedPrefetchConfig)==null?void 0:(V=T.prefetchHintConfig)==null?void 0:V.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(O=
A.watchEndpointMap.watchNext)if(J=O().JSC$14067_getRequest(L,J))return Promise.resolve(_.MB(A.innerTubeTransportService,J.innerTubeRequest,J.input,void 0,J.config).then(function(t){return t}))}else if(O=A.watchEndpointMap.player)if(J=O().JSC$14067_getRequest(L,J))return Promise.resolve(_.MB(A.innerTubeTransportService,J.innerTubeRequest,J.input,void 0,J.config).then(function(t){return t}))}else if(_.vx(A.innerTubeTransportService,L)){var E={tempData:O},n=wAN(A.innerTubeTransportService,L);
return n?new Promise(function(t,b){var S,w;return _.u(function(l){if(l.nextAddress==1)return l.yield(n,2);if(l.nextAddress!=4)return S=l.yieldResult,S.JSC$14074_getStoreKey(L,E)?l.yield(_.oQ(A.innerTubeTransportService,L,E),4):(b(new _.pe("Prefetching request builder with no store key.",L)),l.jumpTo(0));w=l.yieldResult;t(w);_.qo(l)})}):Promise.reject(new _.pe("Prefetching unregistered request builder.",L))}return Promise.reject(new _.pe("No request builder available to prefetch endpoint.",L))};
Qbu=function(A,L){var O,X,x;if(_.q(L,_.$O)){var J=A.watchEndpointMap.watchNext;J&&(O=J());(A=A.watchEndpointMap.player)&&(X=A())}else if(_.q(L,_.rM))(J=A.reelWatchEndpointMap.reelItemWatch)&&(O=J()),(J=A.reelWatchEndpointMap.player)&&(X=J()),(A=A.reelWatchEndpointMap.reelWatchSequence)&&(x=A());else{a:{A=gQu(L,A.innerTubeTransportService.endpointMap);if(A!==void 0)if(typeof A.then==="function")_.C7(new _.pe("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",L));else break a;
A=void 0}A&&(O=A)}var Y,T,V;return{content:(Y=O)==null?void 0:Y.JSC$14074_getStoreKey(L),player:(T=X)==null?void 0:T.JSC$14074_getStoreKey(L),reelSequence:(V=x)==null?void 0:V.JSC$14074_getStoreKey(L)}};
hhj=function(A,L,O,X,x,J,Y){var T=_.DQ(),V=A.watchEndpointMap.player;_.h("web_streaming_player")&&(V=Gm(G6));V&&(V=V().JSC$14067_getRequest(L,O))&&(T=_.MB(A.innerTubeTransportService,V.innerTubeRequest,V.input,L.clickTrackingParams,V.config));V=_.DQ();var E=A.watchEndpointMap.watchNext;E&&(O=E().JSC$14067_getRequest(L,O))&&(V=_.MB(A.innerTubeTransportService,O.innerTubeRequest,O.input,L.clickTrackingParams,O.config));A=_.DQ(X);ipJ(L,A,T,V,x,J,Y)};
bp7=function(A,L,O){return _.u(function(X){if(X.nextAddress==1)return X.yield(A,2);L.resolve(O);_.qo(X)})};
ipJ=function(A,L,O,X,x,J,Y){var T,V,E,n,t;_.u(function(b){switch(b.nextAddress){case 1:return b.yield(L,2);case 2:T=b.yieldResult;if(J(Y.promise))return Y.resolve(T),b.return();x(A,T);V=vxr(A);if(!V.length){b.jumpTo(3);break}return b.yield(L,4);case 4:T.preconnect=V,x(A,T);case 3:return _.e4(b,5),b.yield(O,7);case 7:E=b.yieldResult;_.zA(b,6);break;case 5:return n=_.S4(b),Y.reject(n),b.return();case 6:if(E===void 0)return T.reload=!0,x(A,T),Y.resolve(T),b.return();if(J(Y.promise))return Y.resolve(T),
b.return();T.playerResponse=E;x(A,T);_.e4(b,8);return b.yield(X,10);case 10:t=b.yieldResult;_.zA(b,9);break;case 8:_.S4(b);case 9:if(t===void 0)return T.response={responseContext:{}},Y.resolve(T),b.return();if(J(Y.promise))return Y.resolve(T),b.return();T.response=t;x(A,T);Y.resolve(T);_.qo(b)}})};
gPH=function(A,L,O,X,x,J,Y,T){var V,E,n,t,b,S;_.u(function(w){switch(w.nextAddress){case 1:return w.yield(L,2);case 2:V=w.yieldResult;if(Y(T.promise))return T.resolve(V),w.return();J(A,V);E=vxr(A);if(!E.length){w.jumpTo(3);break}return w.yield(L,4);case 4:V.preconnect=E,J(A,V);case 3:return _.e4(w,5),w.yield(O,7);case 7:n=w.yieldResult;_.zA(w,6);break;case 5:return t=_.S4(w),T.reject(t),w.return();case 6:if(n===void 0)return V.reload=!0,J(A,V),T.resolve(V),w.return();if(Y(T.promise))return T.resolve(V),
w.return();V.playerResponse=n;J(A,V);_.e4(w,8);return w.yield(X,10);case 10:b=w.yieldResult;_.zA(w,9);break;case 8:_.S4(w);case 9:if(b===void 0)return V.response={responseContext:{}},T.resolve(V),w.return();if(Y(T.promise))return T.resolve(V),w.return();V.response=b;J(A,V);_.e4(w,11);return w.yield(x,13);case 13:S=w.yieldResult;_.zA(w,12);break;case 11:_.S4(w);case 12:if(Y(T.promise))return T.resolve(V),w.return();V.reelWatchSequenceResponse=S;J(A,V);T.resolve(V);_.qo(w)}})};
qW3=function(A,L,O,X,x,J,Y){var T,V,E,n,t,b;_.u(function(S){if((T=Y)==null||!T.replacementEndpoint)return J.reject(),S.return();V=Y.replacementEndpoint;(E=_.q(V,_.rM))?(Y.sequenceContinuation&&(E.sequenceParams=Y.sequenceContinuation),n=_.X5().resolve(_.l6),t=E.sequenceParams,N2l(n,V)&&delete E.sequenceParams,b=$D(A,V,L,O,X,x,function(){return!1}),b.then(function(w){return _.u(function(l){if(l.nextAddress==1)return rm7(n,{reelWatchEndpoint:{sequenceParams:t}},w),l.yield(0,2);
J.resolve(w);_.qo(l)})})):J.reject();
_.qo(S)})};_.KmN=function(A){if(A.validatedFragments_.length==0)return null;if(!A.mergedPrefetchedData_){for(var L=[],O=_.d(A.validatedFragments_),X=O.next();!X.done;X=O.next()){X=_.d(A.fragmentConfiguration_[X.value].graftedKeys);for(var x=X.next();!x.done;x=X.next())(x=A.prefetchedData_[x.value].trackingParams)&&L.push(x)}A.mergedPrefetchedData_={};Object.assign(A.mergedPrefetchedData_,A.prefetchedData_,{clientSideGrafts:L})}return A.mergedPrefetchedData_};var GL6;_.F6=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
GL6=function(A,L,O){if(_.Yod(L))return A.prefetchCache_.get(_.uCM(L,O))};_.Rl=new _.Yx("NAVIGATION_TOKEN");var l0L=function(A){var L=this;var O=O===void 0?NUD():O;var X=X===void 0?_.X5().resolve(_.Rl):X;this.onePickCommand=A;this.JSC$14177_playlistNetworkManager=O;this.navigationManager=X;this.videoPickerBuilder=_.pWP("yt-addtoplaylist");_.fKN(Gun(lzj(Kx3(this.videoPickerBuilder.setTitle(A.modalTitle).setSize(1E3).addView(F7N()).addView(CK3())).addView("youtube"),A.selectButtonLabel)),function(x){L.handleAction(x)})};
l0L.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
l0L.prototype.handleAction=function(A){var L=this;if(A&&this.onePickCommand.listId&&A.action==="picked"&&A.docs){var O=[];A.docs.forEach(function(X){O.push({addedVideoId:X.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$14177_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,O).then(function(){_.h("playlist_add_video_hard_reload_killswitch")?L.navigationManager.reload():cmj(L.navigationManager)})}};var CZL=function(){if(this.constructor===CZL)throw new TypeError("Xf");};
_.P=CZL.prototype;_.P.dispose=function(){};
_.P.disconnect=function(){};
_.P.reconnect=function(){};
_.P.observe=function(A,L,O){return{element:A,option:O}};
_.P.unobserveByKey=function(){};var r2r=function(A,L){L=L===void 0?0:L;CZL.call(this);this.viewroot=A;this.defaultPrescanHeight=L;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),A?{root:A,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.g(r2r,CZL);_.P=r2r.prototype;_.P.dispose=function(){this.disconnect();this.handlers.clear()};
_.P.disconnect=function(A){this.isConnected=!1;this.pauseObservingUntilReconnect=A===void 0?!1:A;this.observer.disconnect();A=_.d(this.prescanObservers.values());for(var L=A.next();!L.done;L=A.next())L.value.disconnect()};
_.P.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var A=_.d(this.handlers),L=A.next();!L.done;L=A.next()){var O=_.d(L.value);L=O.next().value;var X=O.next().value;O=!1;X=_.d(X.keys());for(var x=X.next();!x.done;x=X.next())if((x=x.value)&&x.state==="prescan"){O=!0;break}O&&Fml(this,L).observe(L);this.observer.observe(L)}}};
_.P.handleObserveEvent=function(A){A=_.d(A);for(var L=A.next();!L.done;L=A.next()){L=L.value;var O=this.handlers.get(L.target);if(O){var X=L.isIntersecting;O=_.d(O);for(var x=O.next();!x.done;x=O.next()){var J=_.d(x.value);x=J.next().value;J=J.next().value;x&&(x.state==="visible"&&X||x.state==="hidden"&&!X)&&(J(L.target,x.state),x.calledOnce&&this.unobserveByKey({element:L.target,option:x}))}}}};
_.P.handlePrescanEvent=function(A){A=_.d(A);for(var L=A.next();!L.done;L=A.next()){L=L.value;var O=this.handlers.get(L.target);if(O&&L.isIntersecting){O=_.d(O);for(var X=O.next();!X.done;X=O.next()){var x=_.d(X.value);X=x.next().value;x=x.next().value;X&&X.state==="prescan"&&(x(L.target,X.state),X.calledOnce&&this.unobserveByKey({element:L.target,option:X}))}}}};
_.P.observe=function(A,L,O){var X=(X=this.handlers.get(A))&&X.has(O)?{element:A,option:O}:void 0;if(X)return X;X={element:A,option:O};this.handlers.has(A)||this.handlers.set(A,new Map);var x=this.handlers.get(A);x&&!x.has(O)&&x.set(O,L);this.pauseObservingUntilReconnect||(O.state==="prescan"&&Fml(this,A).observe(A),this.observer.observe(A));return X};
_.P.unobserveByKey=function(A){var L=this.handlers.get(A.element);if(L&&L.has(A.option)){L.delete(A.option);if(A&&A.option.state==="prescan")for(var O=_.d(this.prescanObservers.values()),X=O.next();!X.done;X=O.next())X.value.unobserve(A.element);L.size===0&&(this.handlers.delete(A.element),this.observer.unobserve(A.element))}};
var Fml=function(A,L){var O=A.defaultPrescanHeight;L.hasAttribute("prescan-height")&&(L=Number(L.getAttribute("prescan-height")),isNaN(L)||(O=L));if(A.prescanObservers.has(O))return A.prescanObservers.get(O);L="-0.1px -0.1px "+O+"px -0.1px";L=new IntersectionObserver(A.handlePrescanEvent.bind(A),A.viewroot?{root:A.viewroot,rootMargin:L}:{rootMargin:L});A.prescanObservers.set(O,L);return L};var Rh7=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],Qx7=function(){var A,L=this;this.JSC$14194_actionRouter=A=A===void 0?_.zu.getInstance():A;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return L.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return L.visibilityObservedElementHandlerKeys}}},mtH,I03,jxl;
Qx7.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.h("kevlar_use_vimio_behavior")&&_.ms("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=K9u())};
Qx7.prototype.dispose=function(){this.visibilityMonitor&&_.GI(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
Qx7.prototype.handleVisibilityRefreshed=function(){for(var A=_.d(this.targetMap.entries()),L=A.next();!L.done;L=A.next()){var O=_.d(L.value);L=O.next().value;O=O.next().value;_.f07(this,L,O)}};
_.Zp6=function(A,L,O){I03(A,O);var X=_.ymN(A,L);X.element=O;A.targetedElements.set(O,L);_.f07(A,L,X)};
I03=function(A,L){var O=A.targetedElements.get(L);if(O){var X=A.targetMap.get(O);X&&(delete X.element,A.targetMap.set(O,X));A.targetedElements.delete(L);A.visibilityObserver&&A.visibilityObservedElementHandlerKeys&&(O=A.visibilityObservedElementHandlerKeys.get(L))&&(A.visibilityObserver.unobserveByKey(O),A.visibilityObservedElementHandlerKeys.delete(L))}};
_.f07=function(A,L,O){var X=O.action,x=O.element;x&&X&&(Rh7.includes(L)||_.ms("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||A.visibilityMonitor&&A.visibilityMonitor.isNodeVisible(x)?jxl(A,L,O):A.visibilityObserver&&(A.visibilityObservedElementHandlerKeys||(A.visibilityObservedElementHandlerKeys=new WeakMap),X=A.visibilityObserver.observe(x,function(){jxl(A,L,O);A.visibilityObservedElementHandlerKeys.delete(x)},{calledOnce:!0,
state:"visible"}),A.visibilityObservedElementHandlerKeys.set(x,X)))};
jxl=function(A,L,O){var X=O.action;(O=O.element)&&X&&(_.za(A.JSC$14194_actionRouter,[X],O),A.targetMap.delete(L),A.targetedElements.delete(O),A.triggeredTargets.add(L))};
_.ymN=function(A,L){var O=A.targetMap.get(L);O||(O={},A.targetMap.set(L,O));return O};
_.Q6=function(){mtH||(mtH=new Qx7);return mtH};var Wml=document.createElement("div");Wml.style.touchAction="pan-down";var GUe=Wml.style.touchAction==="pan-down";var Hpc,zhc;Hpc=function(){this.hammerFn=KN6();this.JSC$14202_screenManager=_.iV();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.tI(83615);_.qB(this.JSC$14202_screenManager,this.ve);lmD()};
_.mk=function(){zhc||(zhc=new Hpc);return zhc};
Hpc.prototype.registerTouchEvents=function(A,L,O){var X=_.f_.apply(3,arguments),x=this.hammerFn(A,{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}]]});O&&x.set({touchAction:O});this.nodeManagerMapping.set(A,x);var J=
c2D(L);X=_.d(X);for(var Y=X.next();!Y.done;Y=X.next()){Y=Y.value;if(Y.includes("swipe")||Y.includes("pinch")||Y.includes("pan"))Y.includes("swipe")?x.get("swipe").set({enable:!0,direction:J,velocity:.2}):Y.includes("pinch")?x.get("pinch").set({enable:!0}):Y.includes("pan")&&(x.get("pan").set({enable:!0,direction:J}),x.get("swipe").set({enable:!0,direction:J,velocity:.2}),x.get("swipe").recognizeWith("pan"));B2u(this,A,x,Y)}};
var B2u=function(A,L,O,X){O.on(X,function(x){if(X.includes("pinch"))A.lastPinchTime=Date.now();else if(X.includes("swipe")&&Date.now()-A.lastPinchTime<400)return;x.pointerType!=="mouse"&&(x=X==="doubletap"?{coordinates:x.center}:X.includes("pan")?x:X.includes("swipe")?{target:x.target}:{},L.dispatchEvent(new CustomEvent(X,{bubbles:!0,composed:!0,detail:x})))})};
Hpc.prototype.unregisterTouchEvents=function(A){var L=_.f_.apply(1,arguments),O=this.nodeManagerMapping.get(A);if(O){L=_.d(L);for(var X=L.next();!X.done;X=L.next())O.off(X.value);this.nodeManagerMapping.delete(A);A.style.touchAction="unset"}};var MiN=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var CRs=null;var $t7=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},Uqs=function(){$t7.instance||($t7.instance=new $t7);
return $t7.instance},vHO=function(A){var L=A.networkEvents;
A.networkEvents=[];return _.h("enable_network_monitoring")?L:[]};var a0g;a0g={};_.kL6=LH("yt-serviceworker-metadata",{objectStores:(a0g.auth={addedAtVersion:1},a0g["resource-manifest-assets"]={addedAtVersion:2},a0g),shared:!0,upgrade:function(A,L){L(1)&&IN(A,"resource-manifest-assets");L(2)&&IN(A,"auth")},
version:2});var Imy=self.location.origin+"/";y2O([/\.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\//]);y2O([/purge_shell=1/]);var Ut7=void 0;Ut7=Ut7===void 0?[]:Ut7;for(var vPu=[],oPu=_.d(tvc),Apu=oPu.next();!Apu.done;Apu=oPu.next())vPu.push({key:Apu.value});for(var LXJ=_.d(Ut7),Oxj=LXJ.next();!Oxj.done;Oxj=LXJ.next())vPu.push(Oxj.value);var X7l,yH=_.Ou==null?void 0:(X7l=_.Ou.performance)==null?void 0:X7l.memory,W9J=!1,oHJ={},BUu={},Z9={},jQ=navigator;var fA=function(A){this.JSC$14246_expiringStorage=new NO(A)};
fA.prototype.set=function(A,L,O){O=O!==void 0?Date.now()+O:void 0;this.JSC$14246_expiringStorage.set(A,L,O)};
fA.prototype.get=function(A){return this.JSC$14246_expiringStorage.get(A)};
fA.prototype.remove=function(A){this.JSC$14246_expiringStorage.remove(A)};var PxM=_.AW(["https://www.youtube.com/",""]),dfe=_.AW(["https://studio.youtube.com/",""]),DfM="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",uHP=null,bPM;var xWN=_.AW(["https://www.youtube.com/iframe_api"]),Il=function(){this.playerResolver_=_.AI();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.rk;this.playbackDurationSeconds_=0},scu=function(A){var L=function(){return window.YT&&typeof window.YT.ready==="function"};
if(L())return _.DQ(window.YT);var O=_.AI(),X=_.tg("SCRIPT");X.onload=X.onreadystatechange=function(){X.readyState&&X.readyState!="loaded"&&X.readyState!="complete"||(X.onload=_.rk,X.onreadystatechange=_.rk,X.onerror=_.rk,L()?O.resolve(window.YT):O.reject(new _.pe("Failed to load the iframe player library","script.onload",X.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
X.onerror=function(x){X.onload=_.rk;X.onreadystatechange=_.rk;X.onerror=_.rk;O.reject(new _.pe("Failed to load the iframe player library","script.onerror",x&&x.target&&x.target.src))};
_.UB(X,_.JD(xWN));A.insertBefore(X,A.firstChild);return O.promise},Jp3=function(A,L,O){var X,x;
_.u(function(J){switch(J.nextAddress){case 1:return A.playbackEndedCallback_=O,_.e4(J,2),J.yield(scu(L.parentElement||null),4);case 4:X=J.yieldResult;_.zA(J,3);break;case 2:return x=_.S4(J),x instanceof _.pe&&x.args&&x.args[0]=="script.onerror"?_.Rv(x):_.C7(x),J.return();case 3:X.ready(function(){return new X.Player(L,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:A.onPlayerReady_.bind(A),onStateChange:A.onPlayerStateChange_.bind(A),
onCueRangeExit:A.onCueRangeExit_.bind(A)}})}),_.qo(J)}})};
_.P=Il.prototype;_.P.getPlayerPromise=function(){return this.playerPromise_};
_.P.onPlayerReady_=function(A){this.playerResolver_.resolve(A.target)};
_.P.onPlayerStateChange_=function(A){if(A.data==YT.PlayerState.PLAYING){A=A.target;var L=A.getCurrentTime();A.addCueRange("playback",L,L+this.playbackDurationSeconds_)}};
_.P.onCueRangeExit_=function(A){A.data=="playback"&&(A.target.stopVideo(),this.playbackEndedCallback_())};
_.P.stopVideo=function(){this.playerPromise_.then(function(A){A.stopVideo()})};
var PY3=function(A){A.playerVars_&&A.playerPromise_.then(function(L){typeof L.cueVideoByPlayerVars!="function"?_.Rv(new _.pe("vmh: player API not ready","cueVideoByPlayerVars",typeof L.cueVideoByPlayerVars)):L.cueVideoByPlayerVars(A.playerVars_)})};
Il.prototype.playVideo=function(){var A=this;this.playerVars_&&this.playerPromise_.then(function(L){typeof L.loadVideoByPlayerVars!="function"?(L=new _.pe("vmh: player API not ready","loadVideoByPlayerVars",typeof L.loadVideoByPlayerVars),_.C7(L)):L.loadVideoByPlayerVars(A.playerVars_)})};
var dW7=function(A,L,O,X,x){L&&(O===void 0&&(O=0),X===void 0&&(X=0),A.playbackDurationSeconds_=X/1E3,A.playerVars_={adformat:"17_8",videoId:L,suggestedQuality:"hd720",startSeconds:O/1E3,player_params:x})};
Il.prototype.mute=function(){this.playerPromise_.then(function(A){A.mute()})};
Il.prototype.unMute=function(){this.playerPromise_.then(function(A){A.unMute()})};var Ylg=function(A,L){var O=yq();A||(A="unknown");L||(L="unknown");A="MAIN_APP_WEB_PAGE_TYPE_"+A.toUpperCase();A in iXl||(A="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");L="MAIN_APP_WEB_REQUEST_TYPE_"+L.toUpperCase();L in Nt7||(L="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.tR(O,{mainAppWeb:{pageType:A,requestType:L,isShellLoad:_.fB("IS_SHELL_LOAD",!1)}})},u3H={start:function(){_.tR(QMD(),{mainAppWeb:_.aa()})},
success:function(){_.bE(QMD(),"SUCCESS")},
failure:function(){_.bE(QMD(),"FAILURE")},
cancelled:function(){_.bE(QMD(),"CANCELLED")}};var Ts6,Vj6,NI_;Ts6=_.AW(["/sw.js"]);Vj6=_.AW(["/sw.js?0"]);_.DWj=_.JD(Ts6);NI_=_.JD(Vj6);var eHL=function(){var A=Error.apply(this,arguments);this.message=A.message;"stack"in A&&(this.stack=A.stack)};
_.g(eHL,Error);_.vy.prototype.load=function(A){this.megabloxUrl_=_.ms("YPC_MB_URL");_.Zx(this.megabloxUrl_,(0,_.is)(function(){A&&A()},this))};
_.Dir=function(A,L,O,X,x,J,Y,T,V,E,n){_.KLJ(V);A.load((0,_.is)(function(){try{var t=J?J:_.ms("HL"),b=_.ms("SESSION_INDEX");_.E9O("client",function(){q4J("59",{helpCenterPath:"/youtube",locale:t,window:window}).JSC$10997_loadChatSupport({authuser:String(b)})})}catch(S){throw kc(10,n,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),x&&x(S),_.C7(S),S;
}EUl(this,L,O,X,x,J,Y,T,V,E,n)},A))};
_.vy.prototype.openFixFlowDialog=function(A,L,O,X){this.load((0,_.is)(function(){try{nUg(this,_.WY("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(A).withIntegratorCallback(L).load(O,X)}catch(x){throw _.C7(x),x;}},this))};
var nUg=function(A,L,O,X){var x=L.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.h("enable_window_constrained_buy_flow_dialog")&&(x=x.usingPopupStyle(_.WY("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));X&&(x=x.usingCloseCallback(X));L.bootstrap.fromPaymentsUrl(A.megabloxUrl_);A=L.bootstrap.asMashupMode(x);O=O?O:_.ms("HL");A.usingGaiaIndex(_.ms("SESSION_INDEX")).usingLocale(O).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.h("enable_google_payments_buyflow_material2_style_web")?
A.usingStyle(":m2;pc=#444;ac=#065fd4"):A.usingStyle(":md;pc=#444;ac=#065fd4");return A},EUl=function(A,L,O,X,x,J,Y,T,V,E,n){try{var t=_.WY("payments.business.integration");
if(!t)throw new eHL("payments.business.integration is undefined");var b=t.standaloneContextAuthId.forUserId(),S=nUg(A,t,J,function(){lke(!1);T&&T()});
Y&&S.usingServerAnalyticsEventHandler(Y);var w=S.inStandaloneContext(b).buyFlow(function(l){if(l&&(!l.integratorData||l.integratorData===""||l.error))if(l.error!=null)if(String(l.error)==="-1")_.GwD(V);else{var F=String(l.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";kc(10,n,F,l.debugCode);_.UP(F,V,l.debugCode);F=new _.pe("PAYMENT_ERROR_MESSAGE::"+l.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+l.internalErrorDetails);
_.C7(F)}else kc(10,n,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.UP("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",V,"EMPTY_INTEGRATOR_DATA"),_.C7(Error("bg"));O&&(lke(!1),O(l))}).withEncryptedParameters(L);
E&&w.withClientParameters(ply(_.Dmd(E)));w.load(function(){kc(24,n);_.mf("ttc",void 0,"commerce_transaction");x5u("commerce_transaction");X&&(X(),lke(!0))},function(l){if(l==null?0:l.debugCode)var F=l==null?void 0:l.debugCode;
else if(!l||(l==null?0:l.debugCode))F="EMPTY_LOAD_FAILURE_ERROR",_.C7(Error(F));else{F="EMPTY_LOAD_FAILURE_DEBUG_CODE";var R=new _.pe("LOAD_FAILURE:"+l.message," DEBUG_CODE:"+F);_.C7(R)}kc(10,n,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",F);_.UP("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",V,F);_.C7(l);x&&x(l)})}catch(l){throw l instanceof eHL&&(kc(10,n,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),x&&x(l)),_.C7(l),l;
}};var tj3;tj3=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.uwP=function(A,L){L=L===void 0?!1:L;A=tj3.test(A)?_.gw(A):null;!L&&window.payments||!A?(A=_.AI(),L=A.promise,A.resolve()):L=_.d6J(A,{attributes:{"data-payments-main":"",id:"payment-lib"}});return L};var bxl;bxl=_.AW(["//www.googletagmanager.com/gtm.js?id=",""]);_.y6=function(A,L){_.uS(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:L}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.ms("GL")}),L=_.tg("SCRIPT"),L.async=!0,_.UB(L,_.JD(bxl,A)),L.id="gtm",A=document.getElementsByTagName("script"),A.length==0?document.head.appendChild(L):(A=A[0],A.parentNode.insertBefore(L,A)))};
_.ZY=function(A){if(A=JSON.parse(A))window.dataLayer=window.dataLayer||[],window.dataLayer.push(A)};var hHl,Sl7;hHl=_.AW(["https://clients2.google.com/gr/gr_sync.js"]);_.diD=function(){};
_.diD.prototype.init=function(){if(Sl7()){var A=_.AI();A.resolve();return A.promise}return _.d6J(_.JD(hHl)).then(function(){if(!Sl7())throw Error("cg");},function(){throw Error("dg");
})};
_.Ymd=function(){if(!Sl7())return"";var A=window.google.gr;A.init({async:{schedule:"sync"},merchantId:"youtube"});A.start();A=A.finish();return A==null?"":A};
Sl7=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.G=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.g(_.G,PolymerFakeBaseClassWithoutHtml);_.wd=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.g(_.wd,PolymerFakeBaseClassWithoutHtml);var c$9=window.ShadyDOM;var VCe,u79,eKP,E6s,tCp,b0r,jl,dd;VCe=_.h("enable_shadydom_free_scoped_query_methods");u79=_.h("enable_shadydom_free_scoped_node_methods");eKP=_.h("enable_shadydom_free_scoped_readonly_properties_batch_one");E6s=_.h("enable_shadydom_free_parent_node");tCp=_.h("enable_shadydom_free_children");b0r=_.h("enable_shadydom_free_last_child");jl=window.ShadyDOM;_.DB=jl&&jl.noPatch&&jl.wrap?jl.wrap:jl?function(A){return jl.patch(A)}:function(A){return A};
dd=function(A){if(A instanceof ShadowRoot)this.host=(0,_.DB)(A.host),this.root=A;else if(A.$$){this.host=(0,_.DB)(A);var L;this.root=(L=A.root)!=null?L:this.host}else if(A.polymerController){this.host=(0,_.DB)(A);var O;this.root=(O=this.host.shadowRoot)!=null?O:this.host}else this.root=this.host=(0,_.DB)(A)};
Tny();DLO();hKu();S8y();n6p();var qlL={querySelector:function(A,L){L=FLD(L,Ob(A));A=_.XS(A);return xJ(A).prototype.querySelector.call(A,L)},
querySelectorAll:function(A,L){L=FLD(L,Ob(A));A=_.XS(A);return xJ(A).prototype.querySelectorAll.call(A,L)}},gUJ={appendChild:function(A,L){var O=Ob(A),X=_.L4(L);
return _.dLs(_.XS(A),O?_.JT(L,O,X):L)},
cloneNode:function(A,L){var O=_.L4(A);A=_.XS(A);L=xJ(A).prototype.cloneNode.call(A,L);return O?PD(L,O):L},
contains:function(A,L){var O=Ob(A),X=_.L4(L);return O!==X?!1:Y8e(A,L)},
insertBefore:function(A,L,O){var X=Ob(A),x=_.L4(L);A=_.XS(A);L=X?_.JT(L,X,x):L;return xJ(A).prototype.insertBefore.call(A,L,O)},
removeChild:function(A,L){var O=Ob(A);A=_.XS(A);L=O?PD(L,O):L;return xJ(A).prototype.removeChild.call(A,L)},
replaceChild:function(A,L,O){var X=Ob(A),x=_.L4(L);L=X?_.JT(L,X,x):x?PD(L,x):L;O=X?PD(O,X):O;A=_.XS(A);return xJ(A).prototype.replaceChild.call(A,L,O)},
getRootNode:function(A,L){L=L===void 0?{composed:!0}:L;var O;if(((O=L)!=null?O:{}).composed)A=zve(A);else{L=A;for(A=Q4u(A);A;)L=A,A=fku(A);A=L}return A}},g6D=eKP?{firstChild:O0s,
nextSibling:oZp,previousSibling:LPJ,firstElementChild:XQr,lastElementChild:sEJ,nextElementSibling:vZP,previousElementSibling:ANd,childNodes:JNr}:{};E6s&&(g6D.parentNode=UfJ);tCp&&(g6D.children=PGr);b0r&&(g6D.lastChild=xL9);VCe&&q8d(qlL);u79&&q8d(gUJ);wQu();var pQ_=function(A){this.node=A instanceof ShadowRoot?A.host:A};
i0O();Nns();var GGr=new WeakMap;var cNO=Symbol("vd");var mLe=new Set(["tap","track","down","up"]),fRe=_.h("pbcm_fi_query_decorators");var W$=function(){return _.wd.apply(this,arguments)||this};
_.g(W$,_.wd);_.P=W$.prototype;_.P.getState=function(){return this.store.getState()};
_.P.dispatch=function(A){this.store.dispatch(A)};
_.P.beforeRegister=function(){if(this&&typeof this==="object"){var A;var L=!!this.useSignals||!((A=this.polymerController)==null||!A.useSignals)}else L=!1;if(!L&&this.properties)for(L=_.d(Object.keys(this.properties)),A=L.next();!A.done;A=L.next()){var O=A.value;A=this.properties[O];if(A.selector){if(A.computed)throw Error("jg");O=["reduxPropertiesRecomputeTrigger",'"'+O+'"'].concat(_.le(A.selectorArgs||[])).join(",");A.computed="recomputeReduxSelector("+O+")"}}};
_.P.attached=function(){var A=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){A.reduxPropertiesRecomputeTrigger++}));
_.h("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.P.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.P.recomputeReduxSelector=function(A,L){var O=_.f_.apply(2,arguments),X=this.properties[L].selector;if(!X)throw Error("hg`"+L);return X.apply(null,[this.store.getState()].concat(_.le(O)))};
_.P.select=function(A){var L=_.f_.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return A.apply(null,[this.store.getState()].concat(_.le(L)))};
_.v2.Object.defineProperties(W$.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("ig");}}});
W$.prototype.recomputeReduxSelector=W$.prototype.recomputeReduxSelector;_.I([_.K(),_.Z("design:type",Number)],W$.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.I([_.p4()],W$);var H$=[],jE9={},IJ=function(){return A9.apply(this,arguments)||this};
_.g(IJ,A9);IJ.prototype._addPropertyEffect=function(A,L,O){if(L==="__observeEffects"&&O){var X,x=(X=O.info.method)!=null?X:O.info.methodName;if(x){var J=this[x];this[x]=function(){H$.push(x);try{J==null||J.apply(this,arguments)}finally{H$.pop()}}}}_.CX._addPropertyEffect.apply(this,[A,
L,O])};
IJ.prototype._setPendingProperty=function(A,L,O){if(H$.length){var X=H$[H$.length-1],x;(x=jE9[this.is])!=null&&x.has(X)||(WPd(this.is,X),_.lg("polymerPropertyChangedInObserver",{componentName:this.is,observerName:X}))}return _.CX._setPendingProperty.apply(this,[A,L,O])};
_.I([nje()],IJ);var H0s=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),Bne,rd={};_.h("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=rd);var C4=function(){return _.wd.apply(this,arguments)||this};
_.g(C4,_.wd);C4.prototype._setUnmanagedPropertyToNode=function(A,L,O){A.loggingStatus&&(A.loggingStatus.isDeclarativeExternal=!0);if(O!==A[L]||typeof O==="object")A[L]=O;A.is&&A.polymerController&&A.polymerController!==A&&K4(A.is,L,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");A.loggingStatus&&(A.loggingStatus.isDeclarativeExternal=!1)};
_.I([_.p4()],C4);zKO()&&(yL.prototype._setUnmanagedPropertyToNode=(new C4)._setUnmanagedPropertyToNode);_.JZu={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(A){},set polymerController(A){}}]};var f4=function(){var A=A9.apply(this,arguments)||this;A.json=function(){};
return A};
_.g(f4,A9);f4.prototype.equals=function(A,L){return A===L};
f4.prototype.isEmpty=function(A){var L;(L=!A)||(L=_.jD(A)&&A.length===0);return L};
_.I([nje()],f4);var w7J=function(A){A=DIe(A);M5.call(this,A)};
_.g(w7J,M5);w7J.prototype.addProvider=function(A){A=A.key?A:DIe([A])[0];var L=this.keyIdToIndex.get(A.key.id);if(L){if(ULe(A,this.providers[L]))throw Error("kg`"+A.key.displayName);}else M5.prototype.addProvider.call(this,A)};
var p7V=new w7J([]);var ixJ=!1;var XtD={};ixJ||(ORD(),ixJ=!0);
XtD.InjectBehavior={initializeInjection:function(){var A=this.provide;try{if((A=A!=null?A:[])&&A.length>0)for(var L=DIe(A),O=_.d(L),X=O.next();!X.done;X=O.next())p7V.addProvider(X.value);var x=new Set;v6M(this.behaviors||[],x);L={};for(var J=_.d(x),Y=J.next();!Y.done;Y=J.next()){var T=Y.value;T.inject&&Object.assign(L,T.inject)}this.inject&&Object.assign(L,this.inject);for(var V=_.d(Object.keys(L)),E=V.next();!E.done;E=V.next()){var n=E.value,t=L[n];try{this[n]=p7V.resolve(t)}catch(b){throw b;}}}catch(b){throw Error(b.message);
}}};var s0u;var PmD=/\bclass\b/.test(function(){}.toString()),ucd=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var Nsj=function(A){this.wasDefined=!0;Array.isArray(A)||A instanceof Array?(this.JSC$14375_getImpl=A[0],this.JSC$14375_setImpl=A[1]):this.JSC$14375_getImpl=A};
_.P=Nsj.prototype;_.P.getWithPath=function(A){return DpO(this.JSC$14375_getImpl(),A)};
_.P.setWithPath=function(A,L){var O=this;if(A.length)throw Error("lg");if(!this.JSC$14375_setImpl)throw Error("mg");nr(function(){O.JSC$14375_setImpl(L)})};
_.P.notifyPath=function(){throw Error("ng");};
_.P.notifySplices=function(){throw Error("og");};
_.P.getChangeRecordSignal=function(A,L){var O=this;if(A.length)throw Error("pg");return function(){var X=O.getWithPath(A);return{path:L!=null?L:"",base:X,value:X}}};
_.P.getSplicesSignal=function(){throw Error("qg");};
_.P.getPathMutationSignal=function(){throw Error("rg");};
_.P.pop=function(){throw Error("sg");};
_.P.push=function(){throw Error("tg");};
_.P.splice=function(){throw Error("ug");};
_.P.unshift=function(){throw Error("vg");};var z6=function(A){var L=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(A)||A instanceof Array?(this.JSC$14380_getImpl=A[0],this.JSC$14380_setImpl=A[1]):this.JSC$14380_getImpl=A;this.wasDefined=!1;YN(function(){L.wasDefined=L.JSC$14380_getImpl()!==void 0})};
z6.prototype.getWithPath=function(A){return DpO(this.JSC$14380_getImpl(),A)};
z6.prototype.setWithPath=function(A,L){var O=this;if(A[A.length-1]!=="*"&&A[A.length-1]!=="splices"){var X=YN(function(){return O.getWithPath([])});
if(A.length===0){if(!this.JSC$14380_setImpl)throw Error("wg");if(_.h("mutable_signal_set_skip_unchanged")&&X===L)return;this.wasDefined||(this.wasDefined=L!==void 0);nr(function(){O.JSC$14380_setImpl(L)})}else{for(var x=0;x<A.length-1;x++){if(!X)return;
X=X[A[x]]}x=A[A.length-1];X&&(X[x]=L);this.wasDefined||(this.wasDefined=A.length>1||L!==void 0)}rp6(this,A,{pathComponents:A,value:L})}};
z6.prototype.notifyPath=function(A,L){A.length===0?L&&this.setWithPath(A,L.value):rp6(this,A,{pathComponents:A,value:L==null?void 0:L.value,fallbackWhenUndefined:L==null?void 0:L.value})};
var rp6=function(A,L,O,X){if(A.setMutationSignal){var x=++A.mutationIndex,J=[A.observedPath],Y=A.observedPath,T;L.length===0&&(T=Y);for(var V=0;V<L.length;V++){var E=Y.subPaths[L[V]];if(!E)break;J.push(E);Y=E;V===L.length-1&&(T=E)}for(L=!1;J.length;)Y=J.shift(),Y.data={index:x,mutation:O,spliceMutationIndex:X},L||(L=Y===T),L&&J.push.apply(J,_.le(Object.values(Y.subPaths)));nr(function(){A.setMutationSignal(x)})}};
z6.prototype.notifySplices=function(A,L){var O=this,X=YN(function(){return O.getWithPath(A)}),x=[].concat(_.le(A),["splices"]);
rp6(this,x,{pathComponents:x,value:{indexSplices:L}});if(X==null?0:X.length)L=this.mutationIndex,x=[].concat(_.le(A),["length"]),rp6(this,x,{pathComponents:x,value:X.length},L)};
var KXn=function(A,L,O,X,x,J){A.notifySplices(O,[{index:X,addedCount:x,removed:J,object:L,type:"splice"}])},Gpj=function(A,L){A=A.observedPath;
for(var O=0;O<L.length;O++){var X=L[O],x=A.subPaths[X];x||(x={pathComponents:L.slice(0,O+1),subPaths:{}},A.subPaths[X]=x);A=x}},cp6=function(A,L,O){Gpj(A,L);
if(!A.getMutationSignal){var X=_.d(_.uQ(A.mutationIndex,void 0,"yrf7Zd"));A.getMutationSignal=X.next().value;A.setMutationSignal=X.next().value}var x=A.getMutationSignal;return _.E4(function(){x();return O(ls6(A,L))},void 0,"XeEyEc")};
z6.prototype.getChangeRecordSignal=function(A,L){var O=this,X=this.mutationIndex,x;return cp6(this,A,function(J){if(J&&J.index>X){var Y=J.mutation;X=J.index;x=void 0}J=YN(function(){return O.getWithPath(A)});
if(Y){var T=Y.pathComponents[Y.pathComponents.length-1],V=[].concat(_.le(Y.pathComponents));if(T==="splices"||T==="length")return{base:J,path:(L?[L].concat(_.le(V)):V).join("."),value:Y.value};var E=A.length>V.length?A:V,n;return{base:J!=null?J:Y.fallbackWhenUndefined,path:(L?[L].concat(_.le(E)):E).join("."),value:(n=YN(function(){return O.getWithPath(E)}))!=null?n:Y.fallbackWhenUndefined}}x||(x={base:J,
path:(L?[L].concat(_.le(A)):A).join("."),value:J});return x})};
z6.prototype.getSplicesSignal=function(A){var L=this.mutationIndex,O;return cp6(this,A,function(X){if(X&&X.index>L&&X.spliceMutationIndex!==L){var x=X.mutation;L=X.index;O=void 0}return x&&x.pathComponents[x.pathComponents.length-1]==="splices"?O=X=x.value:O})};
z6.prototype.getPathMutationSignal=function(A){var L=this;Gpj(this,A);if(!this.getMutationSignal){var O=_.d(_.uQ(this.mutationIndex,void 0,"evrPyb"));this.getMutationSignal=O.next().value;this.setMutationSignal=O.next().value}var X=this.getMutationSignal,x=this.mutationIndex,J;return _.E4(function(){X();var Y=ls6(L,A);if(Y&&Y.index>x&&Y.mutation&&eN9(Y.mutation.pathComponents,A)){var T=Y.mutation;x=Y.index}if(!J||x!==J.index){var V,E;Y=(E=YN(function(){return L.getWithPath(A)}))!=null?E:(V=T)==null?
void 0:V.fallbackWhenUndefined;
J={index:x,value:Y}}return J},void 0,"rXesZe")};
var ls6=function(A,L){A=A.observedPath;L=_.d(L);for(var O=L.next();!O.done;O=L.next())A=A.subPaths[O.value];return A.data};
z6.prototype.pop=function(A){var L=this,O=YN(function(){return L.getWithPath(A)});
if(!(O instanceof Array))throw Error("xg");var X=O.length>0,x=O.pop();X&&KXn(this,O,A,O.length,0,[x]);return x};
z6.prototype.push=function(A){var L=_.f_.apply(1,arguments),O=this,X=YN(function(){return O.getWithPath(A)});
if(!(X instanceof Array))throw Error("yg");var x=X.length,J=X.push.apply(X,_.le(L));L.length&&KXn(this,X,A,x,L.length,[]);return J};
z6.prototype.splice=function(A,L,O){var X=_.f_.apply(3,arguments),x=this,J=YN(function(){return x.getWithPath(A)});
if(!(J instanceof Array))throw Error("zg");L<0?L=J.length-Math.floor(-L):L&&(L=Math.floor(L));var Y=J.splice.apply(J,[L,O].concat(_.le(X)));(X.length||Y.length)&&KXn(this,J,A,L,X.length,Y);return Y};
z6.prototype.unshift=function(A){var L=_.f_.apply(1,arguments),O=this,X=YN(function(){return O.getWithPath(A)});
if(!(X instanceof Array))throw Error("Ag");var x=X.unshift.apply(X,_.le(L));L.length&&KXn(this,X,A,0,L.length,[]);return x};var CYc=!0,FXV=!1,vP_=!1,RHc=!1,wtO=!1,Qcj=0;RHc=!1;Qcj=0;CYc=!0;wtO=FXV=vP_=!1;var B$=function(A,L,O){this.model=A;this.unknownSignalResolver=L;this.options=O;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];L=_.d(iRJ());A=L.next().value;L=L.next().value;this.owner=A;this.disposeImpl=L};
B$.prototype.dispose=function(){if(!this.isDisposed){for(var A=_.d(this.childSignalProxies),L=A.next();!L.done;L=A.next())L.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var mWu=function(A,L){A=_.UT(A.owner);try{L()}finally{_.UT(A)}};
B$.prototype.effect=function(A){mWu(this,function(){_.lQ(A)})};
var fsg=function(A,L){A.options!=null||(A.options={});var O;(O=A.options).immutableProps!=null||(O.immutableProps=new Set);A.options.immutableProps.add(L)},UpJ=function(A,L){L=""+L;
IsJ(A,L);var O,X;if((O=A.options)==null?0:(X=O.immutableProps)==null?0:X.has(L))return!0;var x;if((x=A.model.__signalCache)==null?0:x.has(L))O=A.model.__signalCache.get(L),Array.isArray(O)&&fsg(A,L);var J,Y,T;return(T=(J=A.options)==null?void 0:(Y=J.immutableProps)==null?void 0:Y.has(L))!=null?T:!1},ypj=function(A,L){var O;
A.unknownSignalResolver&&(O=A.unknownSignalResolver(L));var X,x;((X=A.options)==null?0:(x=X.immutableProps)==null?0:x.has(L))?O!=null||(O=new Nsj(_.uQ(A.model[L],void 0,"bgwlkd"))):O!=null||(O=new z6(_.uQ(A.model[L],void 0,"V1hou")));var J=A.model.hostElement;Object.defineProperty(A.model,L,{get:function(){$Ld(J,L);return O.getWithPath([])},
set:function(Y){GK(J,L);A.setWithPath([L],Y)},
configurable:!0});return O},IsJ=function(A,L){var O,X,x;
((O=A.model.__signalCache)==null||!O.has(L))&&((X=A.options)==null?0:(x=X.externalSignalProps)==null?0:x.has(L))&&A.model[L]},WD=function(A,L){L=""+L;
var O=A.signalCache[L];if(O!==void 0)return O;O=!1;IsJ(A,L);var X;if((X=A.model.__signalCache)==null?0:X.has(L))if(O=A.model.__signalCache.get(L),Array.isArray(O))O=!0,fsg(A,L);else return A.signalCache[L]=A.model.__signalCache.get(L).signal,A.signalCache[L];var x,J;X=(J=(x=A.options)==null?void 0:x.reactivityMode)!=null?J:0;var Y,T;if(!((Y=A.options)==null?0:(T=Y.reactiveProps)==null?0:T.has(L))&&!O&&X===1)throw Error("Bg`"+L);x=O?Zxu(A,L):ypj(A,L);return A.signalCache[L]=x},Zxu=function(A,L){var O=
Object.getOwnPropertyDescriptor(A.model.constructor.prototype,L),X=function(){return A.model[L]};
return new Nsj(O&&O.get&&!O.set?X:[X,function(x){A.model[L]=x}])};
B$.prototype.getWithPath=function(A){var L=_.d(A);A=L.next().value;L=MY(L);$Ld(this.model.hostElement,""+A);return WD(this,A).getWithPath(L)};
B$.prototype.setWithPath=function(A,L){if(A.length){GK(this.model.hostElement,A.join("."));var O=_.d(A);A=O.next().value;O=MY(O);WD(this,A).setWithPath(O,L)}};
B$.prototype.getPathMutationSignal=function(A){var L=_.d(A);A=L.next().value;L=MY(L);return WD(this,A).getPathMutationSignal(L)};
B$.prototype.notifyPath=function(A,L){var O=_.d(A);A=O.next().value;O=MY(O);WD(this,A).notifyPath(O,L)};
var jcc=function(A,L){if(L.type==="literal")return function(){return{rootWasDefined:!0,value:L.value}};
var O=ZB(L.path),X=_.d(O),x=X.next().value;X=MY(X);var J,Y;if(L.type==="path"&&(O.length===1||((J=A.options)==null?0:(Y=J.immutableProps)==null?0:Y.has(x))))return function(){var t=A.getWithPath(O.slice(0,1)),b=DpO(t,O.slice(1));t=t!==void 0;pte()&&(t=WD(A,O[0]).wasDefined);return{rootWasDefined:t,value:b}};
var T=WD(A,x);if(L.type==="path"){var V=T.getPathMutationSignal(X);return function(){var t=pte()?T.wasDefined:cu(A.owner,function(){return T.getWithPath([])})!==void 0;
var b,S=(b=V())==null?void 0:b.value;return{rootWasDefined:t,value:S}}}if(L.type==="splices"){var E=T.getSplicesSignal(X);
return function(){var t=E();return{rootWasDefined:pte()?T.wasDefined:t!==void 0,value:t}}}var n=T.getChangeRecordSignal(X,""+x);
return function(){var t=n();return{rootWasDefined:pte()?T.wasDefined:t!==void 0,value:t}}},Sp_=function(A,L,O){var X=O.map(function(T){return jcc(A,T)}),x=O.length===0,J=[],Y=O.length!==1||O[0].type!=="path"?!1:!0;
A.effect(function(){for(var T=X.length,V=[],E=!!J.length,n=0;n<T;n++){var t=X[n](),b=t.rootWasDefined;t=t.value;x||(x=b);V[n]=t;Y&&(V[n+T]=E?J[n]:V[n],J[n]=t)}x&&cu(A.owner,function(){return void L.apply(null,_.le(V))})})},Emr=function(A,L,O,X,x){var J=WD(A,L);
x!==void 0&&J.setWithPath([],x);Sp_(A,function(){var Y=_.f_.apply(0,arguments);GK(A.model.hostElement,L,!0);J.setWithPath([],O.apply(null,_.le(Y)))},X)};
B$.prototype.arrayPush=function(A){var L=_.f_.apply(1,arguments),O=_.d(A),X=O.next().value;O=MY(O);X=WD(this,X);return X.push.apply(X,[O].concat(_.le(L)))};
B$.prototype.arraySplice=function(A,L,O){var X=_.f_.apply(3,arguments),x=_.d(A),J=x.next().value;x=MY(x);J=WD(this,J);return J.splice.apply(J,[x,L,O].concat(_.le(X)))};
B$.prototype.arrayUnshift=function(A){var L=_.f_.apply(1,arguments),O=_.d(A),X=O.next().value;O=MY(O);X=WD(this,X);return X.unshift.apply(X,[O].concat(_.le(L)))};
B$.prototype.notifySplices=function(A,L){var O=_.d(A);A=O.next().value;O=MY(O);WD(this,A).notifySplices(O,L)};var cZM=/([^\s]+?)\(([\s\S]*)\)/,Kps=/\.([^.]+)$/,Fpp=/\\,/g,N3d=/&comma;/g,rZp=/\\(.)/g,Cmy=[],Gx9={"*":"wildcard",splices:"splices"};var HRu=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"),yZp=/[A-Z]/,WXL=["class","hidden","id","on-dom-change"],B3r=new Set([].concat(_.le(WXL),
["if","notify-dom-change","restamp"])),MGM=new Set([].concat(_.le(WXL),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),$pr=new Set(["restamp"]);var MjJ=new Set(["className","id"]);var omP=Symbol(),Jmr=window;var ehy=window;var qWD=0,tiM=0,HD=[],SWp=0,nPD=!1,hhO=document.createTextNode("");(new window.MutationObserver(bpP)).observe(hhO,{characterData:!0});var BD=new Map,zK=0,HxJ=function(A){this.mappedHandleId=A},wAy=function(A,L,O,X){this.mappedHandleId=A;
var x=this;this.mappedHandleId=A;this.callback=L;this.waitTime=O;this.schedulerPriority=X;this.handleId=_.c1.addJob(function(){x.callback();BD.delete(x.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.g(wAy,HxJ);wAy.prototype.cancel=function(){_.c1.cancelJob(this.handleId);BD.delete(this.mappedHandleId)};
var pA9=function(A,L){this.mappedHandleId=A;var O=this;this.mappedHandleId=A;this.callback=L;this.handleId=gPr(function(){O.callback();BD.delete(O.mappedHandleId)})};
_.g(pA9,HxJ);pA9.prototype.cancel=function(){var A=this.handleId-tiM;A<0||HD.length<=A||(HD[A]=null);BD.delete(this.mappedHandleId)};var Kme=function(){};
Kme.prototype.cancel=function(){this.jobHandle!==void 0&&(ipu(this.jobHandle),this.jobHandle=void 0)};
Kme.prototype.run=function(A,L,O){var X=this;this.cancel();this.callback=A;this.jobHandle=_.MR(function(){A();X.callback=void 0},L,O)};
Kme.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var N2M=new WeakMap;var zHc=J_(function(A){for(var L=A,O=0;O<3;O++)L=Object.getPrototypeOf(L);delete L.prototype.connectedCallback;var X=function(){return A.apply(this,arguments)||this};
_.g(X,A);X.prototype._attachDom=function(x){if(!x)return null;var J=(0,_.DB)(this.hostElement);J.attachShadow({mode:"open",shadyUpgradeFragment:x});J.shadowRoot.appendChild(x);return J.shadowRoot};
X.prototype._takeAttributes=function(){for(var x=this.hostElement.attributes,J=0;J<x.length;J++){var Y=x[J],T=void 0,V=void 0;(V=(T=this).__attributeReaction)==null||V.call(T,Y.name,null,Y.value)}};
X.prototype._readyClients=function(){A.prototype._readyClients.call(this);this.root=this};
X.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);A.prototype.connectedCallback.call(this)};
_.v2.Object.defineProperties(X,{template:{configurable:!0,enumerable:!0,get:function(){return X.prototype._template}}});
return X}),Bs6=J_(function(A){var L=function(){return A.apply(this,arguments)||this};
_.g(L,A);L.prototype.created=function(){if(this.__notifyEffects)for(var O=_.d(Object.values(this.__notifyEffects)),X=O.next();!X.done;X=O.next()){X=_.d(X.value);for(var x=X.next();!x.done;x=X.next())x.value.fn=CZp}if(this.__reflectEffects)for(O=_.d(Object.values(this.__reflectEffects)),X=O.next();!X.done;X=O.next())for(X=_.d(X.value),x=X.next();!x.done;x=X.next())x.value.fn=FmM};
L.prototype._addEventListenerToNode=function(O,X,x){O=aJ(O);Cd(O,X,x)||A.prototype._addEventListenerToNode.call(this,O,X,x)};
L.prototype._removeEventListenerFromNode=function(O,X,x){O=aJ(O);Fh(O,X,x)||A.prototype._removeEventListenerFromNode.call(this,O,X,x)};
L.prototype._propertiesChanged=function(O,X,x){if(this.__dataToNotify&&this.__notifyEffects)for(var J=_.d(Object.keys(this.__dataToNotify)),Y=J.next();!Y.done;Y=J.next()){Y=Y.value;var T=cmO(Y);this.__notifyEffects[T]||delete this.__dataToNotify[Y]}else this.__dataToNotify=null;A.prototype._propertiesChanged.call(this,O,X,x)};
L.prototype.fire=function(O,X,x){X=X===void 0?{}:X;var J;return _.P4(aJ((J=x==null?void 0:x.node)!=null?J:this),O,X,x)};
L.prototype._ensureAttribute=function(O,X){var x=aJ(this);x.hasAttribute(O)||jq(x,X,O)};
L.prototype.isLightDescendant=function(O){var X=aJ(this);return aJ(X)!==O&&_.YJ(X).contains(O)&&_.YJ(X).getRootNode()===_.YJ(O).getRootNode()};
return L});
_.ci.ready=function(){var A;((A=this.hostElement)!=null?A:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var L;((L=this.hostElement)!=null?L:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.y9._subscribeIronResize=function(A){var L;((L=A.hostElement)!=null?L:A).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.y9._unsubscribeIronResize=function(A){var L;((L=A.hostElement)!=null?L:A).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var mtr=[Array,Boolean,Date,Number,Object,String],Ub=function(A,L,O,X){this.polySiInfo=A;this.polySiParams=L;this.polySiContext=O;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;X||this instanceof HTMLElement&&(X=this);if(!X)throw Error("Ig");this.allowedProps=L.allowedProps;this.hostElement=X;this.is=A.is;this.upgradeDisabled=!!L.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");A=new Set(L.reactiveSchemas.filter(function(x){return x.type!==
"observe"}).map(function(x){return x.propertyKey}));
this.signalProxy=new B$(this,void 0,{reactiveProps:A,reactivityMode:L.reactivityMode});this.__dataHasAccessor={};L=_.d(L.reactiveSchemas);for(A=L.next();!A.done;A=L.next())A=A.value,A.type==="signal"&&(this.__dataHasAccessor[A.propertyKey]=!0);this.upgradeDisabled||Mjn(this)};
Ub.prototype.getExtraMethodsToForward=function(){return[]};
var Mjn=function(A){A.polySiContext.didRegister||(A.registered(),A.polySiContext.didRegister=!0);A.polySiContext.finalizedTemplate||(A.polySiContext.finalizedTemplate={},A.polySiParams.templateGetter&&(A.polySiContext.finalizedTemplate.processedTemplate=EPd(A.polySiParams.templateGetter,A.polySiParams.is)));$WN(A);var L=A.hostElement;L.loggingStatus!=null||(L.loggingStatus={});L.loggingStatus.isInitializing=!0;YN(function(){return void A.created()});
L.loggingStatus.isInitializing=!1;A.isPolySiElementConnected&&asn(A)},asn=function(A){A.didCallReady||(YN(function(){return void A.ready()}),A.didCallReady=!0);
A.isAttached=!0;A.attached()};
_.P=Ub.prototype;_.P.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||asn(this)};
_.P.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.P.attributeChangedCallback=function(A,L,O){if(this.upgradeDisabled)A==="disable-upgrade"&&O===null&&(this.upgradeDisabled=!1,Mjn(this));else if(L!==O){var X=_.bi(A),x=this.polySiContext.typesForSignals[X];if(x&&(!this.reflecting||_.h("polysi_attribute_changed_serializing_killswitch"))){switch(x){case Object:try{var J=JSON.parse(O)}catch(T){J=O}break;case Array:try{J=JSON.parse(O)}catch(T){J=null}break;case Date:J=isNaN(O)?String(O):Number(O);J=new Date(J);break;case Boolean:J=O!==null;break;case Number:J=
Number(O);break;default:J=O}this[X]=J}X=_.d(this.polySiParams.behaviors);for(x=X.next();!x.done;x=X.next())J=void 0,(J=x.value.attributeChanged)==null||J.call(this,A,L,O);var Y;(Y=this.attributeChanged)==null||Y.call(this,A,L,O)}};
_.P.attributeChangedCallbackWrapper=function(A,L,O){this.attributeChangedCallback(A,L,O)};
_.P.setPropertiesFromInitialAttributeValues=function(){for(var A=0;A<this.hostElement.attributes.length;A++){var L=this.hostElement.attributes[A];(L.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(L.name))&&this.attributeChangedCallback(L.name,null,L.value)}};
_.P.created=function(){this.provide=this.polySiParams.provide;var A;(A=this.initializeInjection)==null||A.call(this);A=_.d(this.polySiParams.reactiveSchemas);for(var L=A.next();!L.done;L=A.next())L=L.value,L.type==="signal"&&(this.mutablePropNames.add(L.propertyKey),WD(this.signalProxy,L.propertyKey));QxP(this,this.polySiInfo,this.polySiParams.behaviors);A=_.d(this.polySiParams.reactiveSchemas);for(L=A.next();!L.done;L=A.next())L=L.value,L.type==="signal"&&L.value!==void 0&&(this.signalProxy.model[L.propertyKey]=
typeof L.value==="function"?L.value.call(this):L.value);if(this.polySiParams.signalProperties)for(A=_.d(this.polySiParams.signalProperties),L=A.next();!L.done;L=A.next()){L=L.value;var O=void 0;((O=this.__signalCache)==null?0:O.has(L))||(this.signalProxy.model[L]=void 0)}RHc||kpN(this);RhP(this);A=_.d(this.polySiParams.behaviors);for(L=A.next();!L.done;L=A.next())O=void 0,(O=L.value.created)==null||O.call(this);var X;(X=this.polySiInfo.created)==null||X.call(this)};
_.P.registered=function(){var A=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var L=Object.getPrototypeOf(this);L.addReactiveSchema=function(T){A.polySiParams.reactiveSchemas.push(T)};
for(var O=_.d(this.polySiParams.behaviors),X=O.next();!X.done;X=O.next()){var x=void 0;(x=X.value.beforeRegister)==null||x.call(L)}var J;(J=this.polySiInfo.beforeRegister)==null||J.call(L);L.addReactiveSchema=I0D;O=_.d(this.polySiParams.behaviors);for(X=O.next();!X.done;X=O.next())x=void 0,(x=X.value.registered)==null||x.call(L);var Y;(Y=this.polySiInfo.registered)==null||Y.call(L)};
_.P.ready=function(){var A;(A=this.beforeReady)==null||A.call(this);RHc&&kpN(this);var L;if(A=(L=this.polySiContext.finalizedTemplate)==null?void 0:L.processedTemplate){A=Dtd(A.template,A.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:A.hasInsertionPoint,thisCtx:this});L=A.nodesById;A=A.root;var O=this.hostElement;var X=X===void 0?!1:X;O=(0,_.DB)(O);if(!O.attachShadow)throw Error("Bd");if(!O.shadowRoot||X)O.attachShadow({mode:"open",shadyUpgradeFragment:A}),O.shadowRoot.appendChild(A);
this.root=O.shadowRoot;this.$=L}UWL(this);X=_.d(this.polySiParams.behaviors);for(L=X.next();!L.done;L=X.next())A=void 0,(A=L.value.ready)==null||A.call(this);var x;(x=this.polySiInfo.ready)==null||x.call(this)};
_.P.attached=function(){for(var A=_.d(this.polySiParams.behaviors),L=A.next();!L.done;L=A.next()){var O=void 0;(O=L.value.attached)==null||O.call(this)}var X;(X=this.polySiInfo.attached)==null||X.call(this)};
_.P.detached=function(){for(var A=_.d(this.polySiParams.behaviors),L=A.next();!L.done;L=A.next()){var O=void 0;(O=L.value.detached)==null||O.call(this)}var X;(X=this.polySiInfo.detached)==null||X.call(this)};
var $WN=function(A){for(var L=_.d(A.polySiParams.behaviors),O=L.next();!O.done;O=L.next())if(O=O.value,O.listeners)for(var X in O.listeners)ViO(A,A.hostElement,X,O.listeners[X]);if(A.polySiInfo.listeners)for(var x in A.polySiInfo.listeners)ViO(A,A.hostElement,x,A.polySiInfo.listeners[x])},ViO=function(A,L,O,X,x){A=VGp(A,X,x);
Cd(L,O,A)||L.addEventListener(O,A);return A},kpN=function(A){for(var L=_.d(A.polySiParams.reactiveSchemas),O=L.next();!O.done;O=L.next())O=O.value,O.type==="compute"||O.type==="computeWithMethod"?nmp(A.signalProxy,O,A):O.type==="redux"?hN9(A.signalProxy,O,A.store):O.type==="signal"&&O.readOnly&&bRu(A.signalProxy,O)},UWL=function(A){for(var L=_.d(A.polySiParams.reactiveSchemas),O=L.next(),X={};!O.done;X={schema$jscomp$12:void 0},O=L.next())X.schema$jscomp$12=O.value,X.schema$jscomp$12.type==="notify"?
qpd(A.signalProxy,X.schema$jscomp$12,A.hostElement):X.schema$jscomp$12.type==="observe"?gme(A.signalProxy,X.schema$jscomp$12,A):X.schema$jscomp$12.type==="reflect"&&A.signalProxy.effect(function(J){return function(){var Y=A.signalProxy.getWithPath([J.schema$jscomp$12.propertyKey]);
A.reflecting=!0;Q0M(A.hostElement,J.schema$jscomp$12.propertyKey,Y,!0);A.reflecting=!1}}(X));
if(A.reflectedAttributes)for(L=_.d(Object.entries(A.reflectedAttributes)),X=L.next(),O={};!X.done;O={key$jscomp$910:void 0,value$jscomp$9077:void 0},X=L.next()){var x=_.d(X.value);X=x.next().value;x=x.next().value;O.key$jscomp$910=X;O.value$jscomp$9077=x;A.signalProxy.effect(function(J){return function(){A.reflecting=!0;Q0M(A.hostElement,J.key$jscomp$910,(0,J.value$jscomp$9077)(),!0);A.reflecting=!1}}(O))}};
_.P=Ub.prototype;_.P._setPendingProperty=function(A,L){this.set(A,L);return!1};
_.P._enableProperties=function(){};
_.P._setPendingPropertyOrPath=function(A,L){this.notifyPath(A,L);return!1};
_.P._addPropertyEffect=function(){};
_.P._stampTemplate=function(){throw Error("Jg");};
_.P.fire=function(A,L,O){L=L===void 0?{}:L;O=O===void 0?{}:O;var X,x,J={bubbles:(X=O.bubbles)!=null?X:!0,cancelable:!!O.cancelable,composed:(x=O.composed)!=null?x:!0},Y;return _.P4(ymy((Y=O.node)!=null?Y:this.hostElement),A,L,J)};
_.P.get=function(A,L){var O=ZB(A);return L?DpO(L,O):A==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(O)};
_.P.linkPaths=function(){};
_.P.listen=function(A,L,O){A=ymy(A);this.boundListeners!=null||(this.boundListeners=new WeakMap);var X=this.boundListeners.get(A);X||(X={},this.boundListeners.set(A,X));var x=L+O;X[x]||(X[x]=ViO(this,A,L,O))};
_.P.notifyPath=function(A,L){this.signalProxy.notifyPath(ZB(A),arguments.length===2?{value:L}:void 0)};
_.P.canNotifyPath=function(A){return this.mutablePropNames.has(A)&&!UpJ(this.signalProxy,A)};
_.P.notifySplices=function(A,L){this.signalProxy.notifySplices(ZB(A),L)};
_.P.pop=function(A){var L=this.signalProxy;A=ZB(A);var O=_.d(A);A=O.next().value;O=MY(O);return WD(L,A).pop(O)};
_.P.push=function(A){var L=_.f_.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[ZB(A)].concat(_.le(L)))};
_.P.set=function(A,L,O){if(O)throw Error("Kg");A==="hidden"?this.hostElement.hidden=!!L:this.signalProxy.setWithPath(ZB(A),L)};
_.P.setProperties=function(A){A=_.d(Object.entries(A));for(var L=A.next();!L.done;L=A.next()){var O=_.d(L.value);L=O.next().value;O=O.next().value;this[L]=O}};
_.P.splice=function(A,L,O){var X=_.f_.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[ZB(A),L,O].concat(_.le(X)))};
_.P.unlinkPaths=function(){};
_.P.unlisten=function(A,L,O){A=ymy(A);if(this.boundListeners){var X=this.boundListeners.get(A);if(X){O=L+O;var x=X[O];x&&(Fh(A,L,x)||A.removeEventListener(L,x),delete X[O])}}};
_.P.unshift=function(A){var L=_.f_.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[ZB(A)].concat(_.le(L)))};
_.v2.Object.defineProperties(Ub.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 UtP=[Array,Boolean,Date,Number,Object,String];var Ap_=!1;var Mv=function(){var A=HTMLElement.apply(this,arguments)||this;A.restamp=!1;A.notifyDomChange=!1;A.JSC$14488_didCallConnected=!1;A.JSC$14488_renderDebouncer=null;A.disableTemplateUpdateSignalImpl=vD()?void 0:_.uQ(!1,void 0,"Ofhkwb");var L;A.getDisableTemplateUpdate=(L=A.disableTemplateUpdateSignalImpl)==null?void 0:L[0];var O;A.setDisableTemplateUpdate=(O=A.disableTemplateUpdateSignalImpl)==null?void 0:O[1];return A};
_.g(Mv,HTMLElement);var vUN=function(A){A.conditionSignalImpl!=null||(A.conditionSignalImpl=new z6(_.uQ(!1,void 0,"gE52Fb")));return A.conditionSignalImpl};
_.P=Mv.prototype;_.P.showHideChildren=function(A){oUu(this,A,this.if)};
_.P.attributeChangedCallback=function(A,L,O){if(this.JSC$14488_didCallConnected)throw Error("Og`"+A);A==="notify-dom-change"?this.notifyDomChange=O!==null:A==="restamp"&&(this.restamp=O!==null)};
_.P.debounceRender=function(){this.JSC$14488_renderDebouncer=_.t_(this.JSC$14488_renderDebouncer,QL,this.JSC$14488_renderImpl.bind(this));_.bP(this.JSC$14488_renderDebouncer)};
_.P.disconnectedCallback=function(){var A=(0,_.DB)(this).parentNode;(!A||A.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in A&&!A.host)&&AUV(this)};
_.P.connectedCallback=function(){var A=this;this.JSC$14488_didCallConnected=!0;CYc?LXu():this.style.display="none";this.parentSignalProxy.effect(function(){vUN(A).getWithPath([]);A.debounceRender()})};
_.P.render=function(){_.gt()};
_.P.JSC$14488_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var A=this.if,L=!1;if(A){this.hasInstance()||(LFN(this),L=!0);a:{var O=(0,_.DB)(this).parentNode;if(this.hasInstance()){var X=this.instance.children;if((X==null?0:X.length)&&(0,_.DB)(this).previousSibling!==X[X.length-1])for(var x=0;x<X.length;x++)(0,_.DB)(O).insertBefore(X[x],this)}else{if(!O){O=!1;break a}Ozc(this,O)}O=!0}if(!O)return}else this.restamp&&AUV(this);oUu(this,!1,A);A&&!L&&LFN(this);FXV&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.P.hasInstance=function(){return!!this.instance};
var Ozc=function(A,L){var O=A.parentSignalProxy;if(vD()){var X=_.d(_.uQ(!0,void 0,"yf4Yhf"));var x=X.next().value;X=X.next().value;O=A.parentSignalProxy}else{var J;var Y=new B$((J=XZH(A))!=null?J:{},function(V){var E=WD(A.parentSignalProxy,V).getChangeRecordSignal([]);V=_.uQ(void 0,void 0,"oT9mkc");var n=new z6(V);Y.effect(function(){if(A.getDisableTemplateUpdate&&!A.getDisableTemplateUpdate()){var t=E();n.notifyPath(ZB(t.path),{value:t.value})}});
return n});
A.parentSignalProxy.childSignalProxies.push(Y);var T=O=Y}O=Dtd(A.templateInfo,A.templateInfo.nodeInfoList,O,{eventListenerHost:A.eventListenerHost,hasInsertionPoint:A.templateInfo.hasInsertionPoint,thisCtx:A.eventListenerHost,enabledSignal:vD()?x:void 0,getModel:function(){return XZH(A)}}).root;
A.instance={root:O,children:[],hidden:!1,signalProxy:T,getTemplateUpdatesEnabled:x,setTemplateUpdatesEnabled:X};T=_.d(O.childNodes);for(x=T.next();!x.done;x=T.next())A.instance.children.push(x.value);(0,_.DB)(L).insertBefore(A.instance.root,A)},XZH=function(A){if((A=A.parentSignalProxy.model)&&!A.hostElement){var L={},O;
for(O in A)A.hasOwnProperty(O)&&(L[O]=A[O]);return L}},AUV=function(A){if(A.instance){var L=A.instance.children;
if(L.length){var O=(0,_.DB)(L[0]).parentNode;if(O){O=(0,_.DB)(O);for(var X=0;X<L.length;X++)O.removeChild(L[X])}}vD()?A.instance.setTemplateUpdatesEnabled(!1):A.instance.signalProxy.dispose();A.instance=void 0}},oUu=function(A,L,O){L=L||!O;
A.instance&&A.instance.hidden!==L&&(A.instance.hidden=L,oP_(L,A.instance.children))},LFN=function(A){if(vD()){var L=A.instance;
L&&cu(A.parentSignalProxy.owner,function(){return!L.getTemplateUpdatesEnabled()})&&L.setTemplateUpdatesEnabled(!0)}else A.setDisableTemplateUpdate(!1)};
_.v2.Object.defineProperties(Mv.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var A=this;return cu(this.parentSignalProxy.owner,function(){return vUN(A).getWithPath([])})},
set:function(A){A||(vD()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));vUN(this).setWithPath([],!!A)}}});
_.v2.Object.defineProperties(Mv,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",Mv);var xM3=[],$1=function(){var A=HTMLElement.apply(this,arguments)||this;A.as="item";A.indexAs="index";A.itemsIndexAs="itemsIndex";A.targetFramerate=20;A.notifyDomChange=!1;A.isDetached=!1;A.JSC$14495_renderDebouncer=null;A.instances=[];A.chunkingId=null;A.chunkCount=null;A.shouldMeasureChunk=!1;A.shouldContinueChunking=!1;A.renderStartTime=null;A.JSC$14495_didCallConnected=!1;return A};
_.g($1,HTMLElement);var sY3=function(A){A.itemSignalImpl!=null||(A.itemSignalImpl=new z6(_.uQ(xM3,void 0,"YBrqgf")));return A.itemSignalImpl},JU7=function(A,L){Array.isArray(L)||(L=xM3);
sY3(A).setWithPath([],L)};
_.P=$1.prototype;_.P.showHideChildren=function(A){for(var L=_.d(this.instances),O=L.next();!O.done;O=L.next())oP_(A,O.value.children)};
_.P.notifyPath=function(A,L){A=ZB(A);A[0]==="items"&&(A.length===1?JU7(this,L):sY3(this).setWithPath(A.slice(1),L))};
_.P.canNotifyPath=function(A){return A==="items"};
_.P.attributeChangedCallback=function(A,L,O){if(this.JSC$14495_didCallConnected)throw Error("Pg`"+A);A==="as"?this.as=O:A==="index-as"?this.indexAs=O:A==="items-index-as"?this.itemsIndexAs=O:A==="initial-count"?this.initialCount=Number(O):A==="notify-dom-change"?this.notifyDomChange=O!==null:A==="target-framerate"&&(this.targetFramerate=Number(O))};
_.P.disconnectedCallback=function(){this.isDetached=!0;for(var A=0;A<this.instances.length;A++)P$6(this,A);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.P.connectedCallback=function(){var A=this,L=sY3(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var x=L(),J=ZB(x.path);if(J[0]===void 0||J[0]==="splices"||J[0]==="length")A.debounceRender();else{var Y=J[0];if(Y=A.instances[typeof Y==="string"?Math.floor(Number(Y)):Y])J=[A.as].concat(_.le(J.slice(1))),Y.signalProxy.notifyPath(J,x)}});
this.JSC$14495_didCallConnected=!0;CYc?LXu():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var O=(0,_.DB)((0,_.DB)(this).parentNode),X=0;X<this.instances.length;X++)O.insertBefore(this.instances[X].root,this);this.chunkingId&&this.render()}};
_.P.debounceRender=function(){this.JSC$14495_renderDebouncer=_.t_(this.JSC$14495_renderDebouncer,QL,this.JSC$14495_renderImpl.bind(this));_.bP(this.JSC$14495_renderDebouncer)};
_.P.render=function(){this.debounceRender();_.gt()};
_.P.JSC$14495_renderImpl=function(){var A=this;if(!this.parentSignalProxy.isDisposed){var L=this.items,O=dM6(this,L.length);YVl(this,L,O);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){A.chunkingId=null;if(A.shouldMeasureChunk){var X=performance.now()-A.renderStartTime;A.chunkCount=Math.round(Math.ceil(1E3/A.targetFramerate)/X*A.chunkCount)||1}A.shouldContinueChunking&&A.debounceRender()}));
FXV&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var dM6=function(A,L){var O=L,X=A.instances.length;if(A.initialCount){if(A.chunkCount){var x=Math.min(Math.max(L-X,0),A.chunkCount);O=Math.min(X+x,L)}else O=Math.min(L,A.initialCount),x=Math.max(O-X,0),A.chunkCount=x||1;A.shouldMeasureChunk=x===A.chunkCount;A.shouldContinueChunking=O<L;A.renderStartTime=performance.now()}return O},YVl=function(A,L,O){for(var X=0;X<O;X++){var x=A.instances[X],J=L[X];
x?(x.signalProxy.setWithPath([A.as],J),x.signalProxy.setWithPath([A.indexAs],X)):uOV(A,J,X)}for(L=A.instances.length-1;L>=X;L--)O=A,x=L,P$6(O,x),_.d(O.instances.splice(x,1)).next().value.signalProxy.dispose()},P$6=function(A,L){A=A.instances[L];
L=(0,_.DB)(A.root);for(var O=0;O<A.children.length;O++)L.appendChild(A.children[O])},uOV=function(A,L,O){var X={};
L=Object.assign({},Tcc(A),(X[A.as]=L,X[A.indexAs]=O,X[A.itemsIndexAs]=O,X));var x=new B$(L,function(Y){if(Y!==A.as&&Y!==A.indexAs){if(Y===A.itemsIndexAs)return WD(x,A.indexAs);var T=WD(A.parentSignalProxy,Y).getChangeRecordSignal([]);Y=_.uQ(void 0,void 0,"T21Pqc");var V=new z6(Y);x.effect(function(){var E=T();V.notifyPath(ZB(E.path),{value:E.value})});
return V}});
A.parentSignalProxy.childSignalProxies.push(x);X=Dtd(A.templateInfo,A.templateInfo.nodeInfoList,x,{eventListenerHost:A.eventListenerHost,getModel:function(){var Y={};return Object.assign({},Tcc(A),(Y[A.as]=x.model[A.as],Y[A.indexAs]=x.model[A.indexAs],Y[A.itemsIndexAs]=x.model[A.indexAs],Y))},
hasInsertionPoint:A.templateInfo.hasInsertionPoint,thisCtx:A.eventListenerHost,methodInvocationRequirement:Qcj,enabledSignal:A.stampingEnabled}).root;L={root:X,children:[],signalProxy:x};X=_.d(X.childNodes);for(var J=X.next();!J.done;J=X.next())L.children.push(J.value);X=(X=A.instances[O+1])?X.children[0]:A;(0,_.DB)((0,_.DB)(A).parentNode).insertBefore(L.root,X);A.instances[O]=L},Tcc=function(A){if((A=A.parentSignalProxy.model)&&!A.hostElement){var L={},O;
for(O in A)A.hasOwnProperty(O)&&(L[O]=A[O]);return L}};
$1.prototype.itemForElement=function(A){var L=this,O=this.instances.find(function(X){return X.children.includes(A)});
if(O)return cu(this.parentSignalProxy.owner,function(){return O.signalProxy.getWithPath([L.as])})};
$1.prototype.indexForElement=function(A){var L=this.instances.findIndex(function(O){return O.children.includes(A)});
return L>=0?L:void 0};
_.v2.Object.defineProperties($1.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var A=this;return cu(this.parentSignalProxy.owner,function(){return sY3(A).getWithPath([])})},
set:function(A){JU7(this,A)}},
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}}});
_.v2.Object.defineProperties($1,{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",$1);var Vkg,DMJ;_.al=new _.Yx("STATE_STORE_TOKEN");Vkg=new _.Yx("SELECT_TOKEN");DMJ=new _.Yx("DISPATCH_TOKEN");var PYD={getSelectFn:function(){var A;return(A=_.X5().resolve(_.Ot(Vkg)))!=null?A:OxO},
getDispatchFn:function(){var A;return(A=_.X5().resolve(_.Ot(DMJ)))!=null?A:_.oJ().dispatch.bind(_.oJ())},
getAppStore:function(){return _.X5().resolve(_.al)}},X7M,JpD=!1;var XI={traceAllComponents:_.h("web_tracing_all_components"),exportToCsi:_.h("web_tracing_export_to_csi"),exportBreadcrumbs:_.h("web_enable_tracing"),bufferSize:_.PO("web_max_tracing_events"),enabledSpansArray:_.Y$("web_tracing_enabled_spans"),exportToDevTools:_.h("web_tracing_export_to_devtools")};var EUM=function(){};var Vj9=void 0;var edl=function(){};
edl.prototype.hasAttribute=function(A){if(A==="dir")return!1;if(A==="disable-upgrade"){var L,O;return(O=(L=this.hostElement)==null?void 0:L.hasAttribute("disable-upgrade"))!=null?O:!1}throw Error("Qg`"+A);};
edl.prototype.attributeChangedCallbackWrapper=function(A,L,O){if(A==="disable-upgrade"&&this.__isUpgradeDisabled&&O===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var X;((X=this.hostElement)!=null?X:this).isConnected&&this.connectedCallback()}else L===O||this.__isReflecting||this.attributeChangedCallback(A,L,O)};
edl.prototype.getExtraMethodsToForward=function(){for(var A=this,L=[],O=_.d(Elc),X=O.next(),x={};!X.done;x={tagName$jscomp$54:void 0,name$jscomp$573:void 0},X=O.next())x.name$jscomp$573=X.value,X=void 0,x.name$jscomp$573==="_setPendingProperty"?(x.tagName$jscomp$54=this.hostElement.tagName.toLowerCase(),X=function(J){return function(Y,T,V){K4(J.tagName$jscomp$54,Y,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return A._setPendingProperty(Y,T,V)}}(x)):X=function(J){return function(){return A[J.name$jscomp$573].apply(A,
_.le(_.f_.apply(0,arguments)))}}(x),L.push([x.name$jscomp$573,
X]);return L};
for(var bxM=Bs6(zHc((0,_.cg)(edl))),gUu=["disabled","disable-upgrade"],nlN=(0,_.cg)(function(){}),tkN=new Set(Object.getOwnPropertyNames(nlN.prototype)),rp9=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.le(tkN))),p7e=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),Elc=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),bz6=new Set([].concat(_.le(p7e),_.le(Elc),_.le(tkN))),hdN=_.d(bz6),SVN=hdN.next();!SVN.done;SVN=hdN.next())H0s.add(SVN.value);var NsO={created:function(){RhP(this);this.initializeInjection()}};var mW_=!1,dW=window.ShadyDOM,zHs=["appendChild","insertBefore","removeChild","replaceChild"],Hxu=[Node];dW&&Hxu.push(dW.Wrapper);var UWp,vUe,LFy={};var Ti=new Set,Ya="",Ozs="";var uV,Vz=new Set;var Tcs=new Set("context didCallReady is info params signalProxy".split(" ")),DMu="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),edM="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var qVn=EI({entities:d1e}),glL=new om(qVn);var wZ6=function(){return _.wd.apply(this,arguments)||this};
_.g(wZ6,_.wd);_.v2.Object.defineProperties(wZ6.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return glL}}});
_.I([_.p4()],wZ6);_.k1=[W$.prototype,wZ6.prototype];_.Uc={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var A=this,L={};setTimeout(function(){var O;return _.P4((O=A.hostElement)!=null?O:A,"yt-live-chat-add-tooltip-target",L)},0);
this.handler_=L.handler},
detached:function(){if(this.handler_){var A;this.handler_.removeElementFromSupportingTooltips((A=this.hostElement)!=null?A:this)}this.handler_=null}}};_.ht=new _.Yx("ICON_MANAGER_TOKEN");var pZg=[48,20,18,16,15,13,12],mMs=new Map,lGu=new Set,rUr=new Set,Gzp=new Set,NcP=new Set,KFu=new Set,C$u=new Promise(function(A){var L=!1,O=!1,X=!1,x=[],J=function(Y){if("detail"in Y)if(Y=Y.detail,Y.name==="yt-icons")cUO(Y),L=!0;else if(Y.name==="yt-sys-icons")cUO(Y),O=!0;else{var T;((T=Y.name)==null?0:T.includes("yt-sys-icons"))&&Y.size!==24&&(cUO(Y,!0),x.push(Y.size),x.length===pZg.length&&(X=!0))}L&&O&&X&&(window.removeEventListener("iron-iconset-added",J),A())};
window.addEventListener("iron-iconset-added",J)}),RdO=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"]]);_.v$={};_.v$.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.vG,computeHref_:function(A,L){L=L===void 0?!1:L;if(!A||A.commandExecutorCommand)return null;var O=Il_(A,L);return L||O!==null?O?_.h("enable_polymer_resin")?_.RP(O).toString():O:null:(_.Rv(new _.pe("computeHref was null",this.is,A)),null)},
computeOptionalHref_:function(A){return this.computeHref_(A,!0)},
computeNofollow_:function(A){return A?GPP(A)?"nofollow":null:null},
computeIcon_:function(A){return A&&A.iconType?_.bV(A.iconType):""},
resolveCommand:function(A,L,O){L=L===void 0?{}:L;return _.qb(A,this.hostElement,L,O===void 0?!1:O)}};var Nc7,ol;_.izl={};Nc7=null;
ol={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_=K9u(this.viewroot));_.MR(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var A=this;this.unobserve_();if(_.h("kevlar_vimio_use_shared_monitor"))jYe(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 L=[];this.visibilityOptionVisible_&&L.push(this.visibilityObserver.observe(this.hostElement,function(){return A.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&L.push(this.visibilityObserver.observe(this.hostElement,function(){return A.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&L.push(this.visibilityObserver.observe(this.hostElement,function(){return A.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=L}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){fGM(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 A=_.my(this.parentNode,function(O){var X,x=(X=O.polymerController)!=null?X:O;return!!x.getVisibilityObserverForChild&&x.getVisibilityObserverForChild()},!0);
if(A){var L;this.localVisibilityObserver_=((L=A.polymerController)!=null?L:A).getVisibilityObserverForChild()}else Nc7||(Nc7=K9u()),this.localVisibilityObserver_=Nc7;return this.localVisibilityObserver_},visibilityCallback:function(A){A?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.h("kevlar_use_vimio_behavior")||(ol={});ol&&!_.h("kevlar_use_vimio_behavior")&&(delete ol.attached,delete ol.detached);_.izl.YtVisibilityObserverBehavior=[ol];var rUH={};rUH.YtVisualElementBehavior=[_.izl.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.h("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.h("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var A=this.getScreenLayer&&this.getScreenLayer(),L=this.getVisibilityLogger();L&&L.reportShown(this,void 0,A)}},
onHidden:function(){if(_.h("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.h("kevlar_vimio_use_shared_monitor")){var A=this.getScreenLayer&&this.getScreenLayer(),L=this.getVisibilityLogger();L&&L.reportHidden(this,void 0,A)}},
getVisibilityLogger:function(){return _.h("kevlar_use_vimio_behavior")?_.wW():null},
shouldSkipLogging:function(){if(_.ms("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var A=this.getParentRenderer&&this.getParentRenderer();if(!A)return!1;var L,O=(L=A.polymerController)!=null?L:A;if(!O.data)return!1;A=this.data.trackingParams;A=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:A;var X;L=(X=O.data)==null?void 0:X.trackingParams;var x,J;L=((x=O.data)==null?0:x.loggingDirectives)?(J=O.data)==null?void 0:J.loggingDirectives.trackingParams:L;return A&&L&&A===
L}}];var zdD=new Map,cR;var AOP=function(A){this.layer=A},hR=function(A){return A.layer!==void 0?A.layer:A.parent?hR(A.parent):A.layer=0};
AOP.prototype.getParent=function(){return this.parent};var UMu;_.B={};UMu=0;_.B.YtRendererBehavior=[_.v$.YtComponentBehavior,rUH.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_:_.h("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var A,L;(L=(A=this.monitorScrollElement)!=null?A:this.hostElement)==null||L.removeEventListener("scroll",_.tT(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();WFM(this.hostElement);I03(_.Q6(),this.hostElement);v4.delete(this.hostElement)},
registerRenderer:function(A){var L;((L=A.polymerController)!=null?L:A).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(A),this.markDirty())},
unregisterRenderer_:function(A){this.useVimio_||(this.childCache_.delete(A),this.markDirty())},
attached:function(){var A=this,L=this.getParentRenderer();if(L){var O,X,x;(X=(O=(x=L.polymerController)!=null?x:L).registerRenderer)==null||X.call(O,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var J,Y;(Y=(J=this.monitorScrollElement)!=null?J:this.hostElement)==null||Y.addEventListener("scroll",_.tT(this,this.onScroll))}_.c1.addJob(function(){Bce(A.hostElement)},8);
O=new AOP(this.screenLayer||void 0);(L=v4.get(L))&&L.layerNode&&(O.parent=L.layerNode);L={};cAD(this.hostElement,(L.isRenderer=!0,L.layerNode=O,L[L6P]=this.data,L))},
getParentRenderer:function(){for(var A=this.hostElement.parentNode,L,O;A&&((L=v4.get(A))==null||!L.isRenderer)&&!((O=A.polymerController)!=null?O:A).isRenderer_;)A=A.parentNode||A.host;return A},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.h("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.fB("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.h("debug_web_ve_data")&&this.data.trackingParams){var A="";try{A=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(O){_.C7(O)}if(A){var L=XGD(A,1);L!==void 0&&(this.hostElement.dataset.veIndex=String(L));A=XGD(A,2);
A!==void 0&&(this.hostElement.dataset.ve=String(A))}}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,_.h("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.lV(this.data.loggingDirectives.trackingParams)),this.visualElement=_.pT(_.iV(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var A=this.data.targetId;_.Zp6(_.Q6(),A,this.hostElement)}else I03(_.Q6(),this.hostElement)},
onScroll:function(){var A=Date.now();A-this.lastHandledScroll_<50||(this.lastHandledScroll_=A,this.markDirty())},
markDirty:function(){_.h("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():vlu(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var A=this.getParentRenderer();if(A&&(A=v4.get(A))&&A.layerNode)return hR(A.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.le(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var A=0;A<this.data.impressionEndpoints.length;A++)this.sendImpression(this.data.impressionEndpoints[A]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(A){A.clickTrackingParams&&delete A.clickTrackingParams;var L,O;(A==null?0:(L=A.commandMetadata)==null?0:(O=L.webCommandMetadata)==null?0:O.sendPost)?_.TZ(this.hostElement,[A,{impression:!0}]):_.VN(this.hostElement,[A],this.hostElement)},
logExplicitClick:function(A){var L=_.Fn(this.getScreenLayer());if(L){var O,X=(O=A.polymerController)!=null?O:A;A=X.visualElement;X=X.trackingParams||X.clickTrackingParams;!A&&X&&(A=_.lV(X));A&&_.$K(L,A)}}}];var KFJ={},AM=function(){return _.wd.apply(this,arguments)||this};
_.g(AM,_.wd);AM.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
AM.prototype.onPdgItemBehaviorClick=AM.prototype.onPdgItemBehaviorClick;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],AM.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],AM.prototype,"data",void 0);_.I([_.by("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],AM.prototype,"onPdgItemBehaviorClick",null);_.I([_.p4()],AM);KFJ.YtPdgLiveChatItemBehavior=[AM.prototype,_.B.YtRendererBehavior];var GzL;var lGg;_.LO={};_.LO.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var OR=function(){var A=A9.apply(this,arguments)||this;A.switchTemplateAtRegistration=!1;return A};
_.g(OR,A9);OR.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||Ojs(this),_.GL9(this,"doRender"),this.doRender())};
OR.prototype.debounceRender=function(){this.templatingFn&&_.$J(this,"doRender",this.doRender)};
OR.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.C7(Error("$g"))};
OR.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.I([nje()],OR);var cUj=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,XF={},J6u=(XF[1]={filterString:null,isUnwrappable:null,unwrap:null},XF[2]={filterString:function(A,L,O){return nu(O)},
isUnwrappable:function(A){return A instanceof ZD},
unwrap:function(A){return Wf(A)}},XF[3]={filterString:function(A,L,O){return cUj.test(O)?O:FP.toString()},
isUnwrappable:function(A){return rw(A)},
unwrap:function(A){return _.G2(A)}},XF[4]={filterString:function(){return FP.toString()},
isUnwrappable:function(A){return A instanceof q0},
unwrap:function(A){return _.ww(A).toString()}},XF[5]={filterString:function(A,L,O){return O},
isUnwrappable:function(A){return typeof A==="string"},
unwrap:function(A){return A.toString()}},XF[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(A){return A instanceof _.M0},
unwrap:function(A){return JnM(A)}},XF[8]={filterString:function(A,L,O){O=String(O).toLowerCase();
return PO9(A,L,O)?O:"zClosurez"},
isUnwrappable:null,unwrap:null},XF[10]={filterString:null,isUnwrappable:null,unwrap:null},XF);ov[mv["default"]]=d3_;var Y6e=[];var iG_=Tvr("A"),NKr=Tvr("BUTTON"),lB=Tvr("DIV"),rdu=Tvr("LABEL");(function(){var A=kN;kN=function(L){A==null||A(L);Qz(function(){for(var O=0;O<L.length;O++)uQp(L[O])})}})();var C$g=function(){var A=_.wd.apply(this,arguments)||this;A.hasUnmounted=!1;return A};
_.g(C$g,_.wd);_.P=C$g.prototype;_.P.beforeRegister=function(){var A=this.doIdomRender;this.templatingFn?_.C7(Error("Zg")):(this.templatingFn=A,this.switchTemplateAtRegistration=!0,sXu(this))};
_.P.attached=function(){};
_.P.detached=function(){uQp(this.hostElement)};
_.P.renderIdom=function(){throw Error("bh");};
_.P.doIdomRender=function(){var A=this;UVd(this.hostElement,function(){A.renderIdom()})};
_.I([_.p4()],C$g);var FFN=[OR.prototype,C$g.prototype];var Rdj,QY7=function(){return Rdj!==void 0?Rdj:Rdj=document.createElement("template")};
document.head.appendChild(QY7().content);var mMc;var fGl,IGg=function(){return fGl!==void 0?fGl:fGl=document.createElement("template")};
document.head.appendChild(IGg().content);var yUj;var ZzN=document.head,jYN=ZzN.appendChild,WFl;if(yUj===void 0){var Hzc=document.createElement("template");_.p(Hzc,"\x3c!--css-build:shady--\x3e");Hzc.content.insertBefore(IGg().content.cloneNode(!0),Hzc.content.firstChild);yUj=Hzc}WFl=yUj;jYN.call(ZzN,WFl.content);var zd3,BcN=function(){return zd3!==void 0?zd3:zd3=document.createElement("template")};
document.head.appendChild(BcN().content);var Mk7;var $Mj=document.head,aGN=$Mj.appendChild,kzc;if(Mk7===void 0){var UMg=document.createElement("template");_.p(UMg,"\x3c!--css-build:shady--\x3e");UMg.content.insertBefore(BcN().content.cloneNode(!0),UMg.content.firstChild);Mk7=UMg}kzc=Mk7;aGN.call($Mj,kzc.content);var vlJ=document.head,olg=vlJ.appendChild,A6u;if(mMc===void 0){var Lwn=document.createElement("template");_.p(Lwn,"\x3c!--css-build:shady--\x3e");Lwn.content.insertBefore(QY7().content.cloneNode(!0),Lwn.content.firstChild);mMc=Lwn}A6u=mMc;olg.call(vlJ,A6u.content);var Ojc,Xv7=function(){return Ojc!==void 0?Ojc:Ojc=document.createElement("template")};
document.head.appendChild(Xv7().content);var x3j;_.oy=new _.Yx("DARK_THEME_TOKEN");var OFd=new _.PF("accessibilityProperties");var LVp=new _.PF("layoutProperties");var X09=new _.PF("imageType");var sXg={};if("ytAttributedStringLinkHoverColor"in sXg)throw Error("eh`ytAttributedStringLinkHoverColor");(function(A,L){sXg[A]="value"in L&&"unit"in L?nbr(A,L):function(O){try{return L(O)}catch(X){throw Error("ch`"+A+"`"+X.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var J6J=function(A){var L=this;this.holdTime=A===void 0?500:A;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(O){var X=new CustomEvent("LONG_PRESS"),x;(x=O.changedTouches[0].target)==null||x.dispatchEvent(X)};
this.ontouchstart=function(O){L.longPressTimeout=_.fu(_.c1,function(){L.onlongpress(O);L.longPressOccurred=!0},L.holdTime)};
this.ontouchmove=function(){_.c1.cancelJob(L.longPressTimeout);L.longPressTimeout=NaN;L.longPressOccurred=!1;L.moveOccurred=!0};
this.ontouchend=function(O){if(L.longPressTimeout&&!L.longPressOccurred&&!L.moveOccurred){var X;(X=O.changedTouches[0].target)==null||X.dispatchEvent(new Event("click"))}_.c1.cancelJob(L.longPressTimeout);L.longPressTimeout=NaN;L.longPressOccurred=!1;L.moveOccurred=!1}};var fir=function(A,L){J6J.call(this,L);var O=this;this.callback=A;this.onlongpress=function(X){var x;(x=O.callback)==null||x.call(O,X)}};
_.g(fir,J6J);var IiO=function(A,L){var O=Object.assign({},L);A=_.d(new Map([["ontouchstart",A.ontouchstart],["ontouchend",A.ontouchend],["ontouchmove",A.ontouchmove]]));for(var X=A.next(),x={};!X.done;x={eventName$jscomp$101:void 0,eventHandler$jscomp$1:void 0},X=A.next()){var J=_.d(X.value);X=J.next().value;J=J.next().value;x.eventName$jscomp$101=X;x.eventHandler$jscomp$1=J;L[x.eventName$jscomp$101]=function(Y){return function(T){var V;(V=O[Y.eventName$jscomp$101])==null||V.call(O,T);(0,Y.eventHandler$jscomp$1)(T)}}(x)}};_.x$=new _.Yx("COMMAND_HANDLER_TOKEN");var bju=new _.PF("parallelCommand");var q6r=new _.PF("performOnceCommand");var S6D=new _.PF("serialCommand");var gbD=void 0;var P06=function(){this.data=[];this.consumer=null};
P06.prototype.push=function(A){this.consumer?this.consumer(A):this.data.push(A)};var d1={};_.uQ(d1,void 0,"sgPmTd");_.uQ(null,void 0,"jypsq");_.uQ(null,void 0,"mWiOof");var Tie=new P06;var liJ=[WMn,H96,zP3,MDu,Buu,jdH,$yl,aeL];var obr=new _.PF("bracketTextDecorator");var UY=new _.PF("highlightTextDecorator");_.Ly=new _.Yx("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var $3r=function(){},d3u;
(d3u=window.requestIdleCallback)==null||d3u.bind(window);var k$O={calledOnce:!1,state:"visible"},aiP={calledOnce:!1,state:"hidden"};var Y6V=new _.Yx("ICON_WIZ_COMPONENT_TOKEN");_.Ky=_.xa(function(A){var L=A.icon;var O=A.active;var X=A.className;var x=A.style;var J=A.dataSelected;var Y=A.dataDisabled;var T=A.role;var V=A.animateIcon;var E=A.themeOverride;var n=A.ariaHidden;var t=A.ariaExpanded;var b=A.ariaLabel;var S=A.tabindex;var w=A.id;var l=A.size;var F=A.iconFilter;return _.D(_.e,{cond:L,then:function(){var R=_.X5().resolve(Y6V);return _.D(R,{icon:L,dataSelected:J,dataDisabled:Y,animateIcon:V,themeOverride:E,ariaExpanded:t,tabindex:S,id:w,active:O,size:l,role:T,className:X,
ariaHidden:n,ariaLabel:b,style:function(){return x!=null&&x()||l==null||!l()?x==null?void 0:x():"width: "+(l==null?void 0:l())+"px;height: "+((l==null?void 0:l())+"px;")},
iconFilter:F})}})},"b");
_.Ky.idomCompat=!0;var hVd=window.devicePixelRatio||1;var w0O=new Map([["yt_outline_bag_black_24","bag"]]);var uQL=function(A){var L=this;this.margin=.1;this.whenInViewportWithMargin=A;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){L.requestScan()});
window.addEventListener("touchend",function(){L.requestScan()});
window.addEventListener("updateui",function(){L.requestScan()});
var O=new _.Of((0,_.is)(this.requestScan,this),100);window.addEventListener("scroll",function(){O.fire()},!0);
window.addEventListener("resize",(0,_.is)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){L.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.is)(this.requestScan,this))};
_.P=uQL.prototype;_.P.observe=function(A){this.observationTargets.includes(A)||this.observationTargets.push(A)};
_.P.unobserve=function(A){this.observationTargets=this.observationTargets.filter(function(L){return L!==A})};
_.P.requestScan=function(){var A=this;this.scanRequested||(Qz(function(){A.scan()}),this.scanRequested=!0)};
_.P.scan=function(){var A=this,L=(1+this.margin)*(document.documentElement.clientHeight||window.innerHeight);this.observationTargets=this.observationTargets.filter(function(O){var X=O.getBoundingClientRect();(X=L>X.top&&!!X.height)&&A.whenInViewportWithMargin(O);return!X&&O.parentNode});
this.scanRequested=!1};
_.P.disconnect=function(){this.observationTargets=[]};var TvH,D3N;TvH=_.d(_.uQ(KV_(),void 0,"O3X2wd"));_.Veg=TvH.next().value;D3N=TvH.next().value;window.addEventListener("resize",function(){D3N(KV_())});var e$H={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},EbV=void 0,nbH=window.innerWidth,ten=window.innerHeight;window.addEventListener("resize",function(){EbV=void 0});var bjJ;if("IntersectionObserver"in window)bjJ=coJ();else{if(EbV===void 0){var h$l;h$l="matchMedia"in window?window.matchMedia(e$H.landscape+","+e$H.portrait).matches:void 0;EbV=h$l!==void 0?h$l:nbH>=930&&ten>=550||nbH>=550&&ten>=930}bjJ=EbV?{observe:function(A){Qz(function(){var L;(L=A.onViewportEntered)==null||L.call(A)})},
unobserve:function(){}}:new uQL(function(A){Qz(function(){var L;
(L=A.onViewportEntered)==null||L.call(A)})})}var Ghy=bjJ;var S63=_.xa(function(A){var L=!1,O=_.av("img",function(X){_.rF(function(){L=!0;X.onload=null})});
_.ND(function(){var X,x=(X=A.data)==null?void 0:X.call(A),J,Y=(J=A.getSrc)==null?void 0:J.call(A).cb,T;X=(T=A.config)==null?void 0:T.call(A);if(T=O.value)if(J=function(E,n){if(!L)return Y?Y(E,n):E},RVM(T,X),_.h("web_image_dont_reload_same_src")&&FVD(T,x,J))_.h("web_image_dont_reload_same_src_simulate_load")&&T.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var V;CLy(T,x||null,J,X,(V=A.lazy)==null?void 0:V.call(A))}},"v0I2p");
return _.D("img",{el:O})},"c");
S63.idomCompat=!0;_.XV=_.xa(function(A){var L=function(){var O,X=A.data(),x,J,Y,T,V,E,n,t,b,S,w,l,F,R,y,M,H,z,a,xe,ur,eD,gu,ir,SD,HJ,mM,Vu,cn;var Tj={contentMode:(x=A.contentMode)==null?void 0:x.call(A),loadedClass:(J=A.loadedClass)==null?void 0:J.call(A),isPreloaded:(Y=A.isPreloaded)==null?void 0:Y.call(A),notifyOnLoaded:(T=A.notifyOnLoaded)==null?void 0:T.call(A),notifyOnUnloaded:(V=A.notifyOnUnloaded)==null?void 0:V.call(A),preferredThumbnail:(E=A.preferredThumbnail)==null?void 0:E.call(A),preserveHeight:(n=A.preserveHeight)==
null?void 0:n.call(A),preserveWidth:(t=A.preserveWidth)==null?void 0:t.call(A),objectPosition:(b=A.objectPosition)==null?void 0:b.call(A),targetWidth:(S=A.targetWidth)==null?void 0:S.call(A),targetHeight:(w=A.targetHeight)==null?void 0:w.call(A),shouldShowPlaceholder:(l=A.shouldShowPlaceholder)==null?void 0:l.call(A),useWidth:(F=A.useWidth)==null?void 0:F.call(A),isToggled:(R=A.isToggled)==null?void 0:R.call(A),alt:(y=A.alt)==null?void 0:y.call(A),className:(M=A.className)==null?void 0:M.call(A),
onerror:A.onerror,onload:A.onload,style$:((H=A.style$)==null?void 0:H.call(A))||((z=A.style)==null?void 0:z.call(A)),color:(a=A.color)==null?void 0:a.call(A),width:(xe=A.width)==null?void 0:xe.call(A),height:(ur=A.height)==null?void 0:ur.call(A),"aria-hidden$":(Vu=(eD=A["aria-hidden$"])==null?void 0:eD.call(A))!=null?Vu:(gu=A.ariaHidden)==null?void 0:gu.call(A),draggable:(ir=A.draggable)==null?void 0:ir.call(A),"data-disabled$":(cn=(SD=A["data-disabled$"])==null?void 0:SD.call(A))!=null?cn:(HJ=A.dataDisabled)==
null?void 0:HJ.call(A),size:(mM=A.size)==null?void 0:mM.call(A)};return fvs(X,Tj,(O=A.hideOn404)==null?void 0:O.call(A))};
return _.D(_.ik,null,_.D(_.w9,{when:function(){var O;return((O=L())==null?void 0:O.type)==="image"}},function(){return _.D(S63,{data:function(){return L().image},
getSrc:{cb:function(O,X){var x=L().image.sources,J=L().config.isPreloaded,Y=L().config.useWidth,T=L().config.targetWidth,V=L().config.targetHeight,E=L().config.preferredThumbnail;return _.SGe(X,x,J,Y,T,V,E)||""}},
config:function(){var O=L().config,X;for(X in O)O[X]===void 0&&delete O[X];return O},
lazy:A.renderLazy})}),_.D(_.w9,{when:function(){var O;
return((O=L())==null?void 0:O.type)==="icon"}},function(){return _.D(_.Ky,{icon:function(){return L().iconName},
role:function(){return L().config.role},
className:function(){return L().config.className},
style:function(){return L().config.style$+";width: "+(L().config.width+"px;height: ")+(L().config.height+"px;color: ")+(L().config.color+";")},
ariaLabel:function(){return L().config["aria-label$"]},
ariaHidden:function(){return L().config["aria-hidden$"]},
dataDisabled:function(){return L().config["data-disabled$"]},
active:function(){return L().config.isToggled},
size:function(){return L().config.size}})}))},"d");
_.XV.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var q6H=function(A){return function(L){return _.D(eOu,null,function(){var O=L.data(),X=_.GV(L.config);return _.D(UN,null,function(){return void A(O,X)})})}}(WVu),ZF9=_.xa(function(A){var L=function(X){var x,J=_.sC(function(b){x=Kr(function(){for(var S=_.d(n()),w=S.next();!w.done;w=S.next()){w=HFJ(w.value);
w=typeof w==="string"?document.createTextNode(w):w;if(!(w instanceof Node)){S=new _.pe("Part is not a node",w,typeof w);_.C7(S);break}b.appendChild(w)}})}),Y=JF(function(){return sKs(X())},{isEqual:yo9}),T=_.LT(A.config),V=function(){var b,S=Y();
return!((b=T())==null||!b.ariaLabel)||!(S.commandRuns&&S.commandRuns.length!==0||S.paragraphStyleRuns&&S.paragraphStyleRuns.length!==0)},E=JF(T,{isEqual:B5M}),n=function(){var b=x$J(Y(),E());
PLu(b,E());return Y().content?D$u(Y().content,b).parts:[]},t=!0;
_.ND(function(){Y();E();if(t)t=!1;else{var b=n();Promise.resolve().then(function(){var S=J.value;if(S){S.innerText="";var w;(w=x)==null||w();x=_.NE(S,function(){return _.D(zVy,{parts:b})})}})}},"YlhjWd");
return _.D("span",{el:J,class:function(){return Y()&&Hjs(Y(),T())},
dir:function(){var b;return((b=T())==null?0:b.userInput)?"auto":void 0},
"aria-label":function(){var b;return V()?(b=T())==null?void 0:b.ariaLabel:void 0},
role:function(){return V()?"text":void 0}})},O;
return((O=A.config)==null?0:O.renderedFromFormattedString)?L(A.text):_.D(_.e,{cond:A.text,then:L})},"e");
ZF9.idomCompat=!0;_.Xg=_.xa(function(A){var L=_.LT(A.text),O=MFr(A);A.renderedFromFormattedString!==void 0&&(O.renderedFromFormattedString=!0);return _.h("attr_string_reactive")?_.D(ZF9,{text:L,config:O}):_.D(_.e,{cond:function(){var X;return L()&&((X=sKs(L()))==null?void 0:X.content)},
then:function(){return _.D(q6H,{data:A.text,config:O})},
debugInstance:"Apcuac"})},"f");
_.Xg.idomCompat=!0;var avJ=function(A,L,O){L=L===void 0?"unknown":L;O=O===void 0?{}:O;_.pe.call(this,A+" ("+L+")",Object.assign({},{name:"YtWcwError",tagName:L},O));Object.setPrototypeOf(this,this.constructor.prototype)};
_.g(avJ,_.pe);_.L3r=new WeakMap;_.AJs=!1;var oR9,Owu,vRu;_.x5=Symbol("gh");_.dl=Symbol("hh");oR9=Symbol("ih");Owu=new Set(Object.getOwnPropertyNames(Element.prototype));vRu=Symbol("jh");var gb3=_.xa(function(A){return _.D("yt-attributed-string",{"aria-label":A.ariaLabel,hidden:A.hidden,id:A.id,class:A.className,"force-default-style":A.forceDefaultStyle},_.D(_.Xg,{text:A.data,ariaLabel:A.ariaLabel,ellipsisTruncate:A.ellipsisTruncate,isOverlay:A.isOverlay,linkInheritColor:A.linkInheritColor,noPreWrap:A.noPreWrap,noWrap:A.noWrap,userInput:A.userInput,noEndpoints:A.noEndpoints,headerRuns:A.headerRuns}))},"g");
_.h("web_wiz_attributed_string")&&_.Y4(gb3,"yt-attributed-string",{props:{ariaHidden:_.x5,ariaLabel:_.x5,className:_.x5,ellipsisTruncate:_.x5,isOverlay:_.x5,linkInheritColor:_.x5,noEndpoints:_.x5,noStyleRuns:_.x5,noLinkColor:_.x5,noPreWrap:_.x5,noWrap:_.x5,skipOnClick:_.x5,userInput:_.x5,headerRuns:_.x5,id:_.x5,data:_.x5,hidden:_.x5,forceDefaultStyle:_.x5,text:_.dl,stopPropagation:_.dl,disableUpgrade:_.dl,disable:_.dl,slot:_.dl}});var sR=function(){return _.G.apply(this,arguments)||this};
_.g(sR,_.G);sR.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},WVu(this.data,this.config))};
_.I([_.N(FFN),_.Z("design:type",Object)],sR.prototype,"ytIdomTemplatingBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],sR.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],sR.prototype,"ariaLabel",void 0);_.I([_.K(),_.Z("design:type",Boolean)],sR.prototype,"disable",void 0);_.I([_.K(),_.Z("design:type",Boolean)],sR.prototype,"ellipsisTruncate",void 0);_.I([_.K(),_.Z("design:type",Boolean)],sR.prototype,"isOverlay",void 0);
_.I([_.K(),_.Z("design:type",Boolean)],sR.prototype,"linkInheritColor",void 0);_.I([_.K(),_.Z("design:type",Boolean)],sR.prototype,"noPreWrap",void 0);_.I([_.K(),_.Z("design:type",Boolean)],sR.prototype,"noWrap",void 0);_.I([_.K(),_.Z("design:type",Boolean)],sR.prototype,"userInput",void 0);_.I([_.K(),_.Z("design:type",Boolean)],sR.prototype,"noEndpoints",void 0);_.I([_.K(),_.Z("design:type",Array)],sR.prototype,"headerRuns",void 0);
_.I([_.yU({is:"yt-attributed-string",disableElementRegistration:!0})],sR);
_.h("web_wiz_attributed_string")||_.m(sR,"yt-attributed-string",function(){if(x3j===void 0){var A=document.createElement("template");_.p(A,"\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");A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);
A.content.insertBefore(Xv7().content.cloneNode(!0),A.content.firstChild);x3j=A}A=x3j;return A},{mode:2});var wvL,pvN,YFD;wvL=function(){this.firstThumbnailLoaded=!1};
_.ij6=function(){pvN||(pvN=new wvL);return pvN};
YFD=function(A){var L=_.ij6();L.firstThumbnailLoaded||(L.firstThumbnailLoaded=!0,_.Rk("ftl",A))};
wvL.prototype.reset=function(){this.firstThumbnailLoaded=!1};var xuy=0,dur=new WeakMap,JJe=0,V3=new Set;var NvN,r6g=function(){return NvN!==void 0?NvN:NvN=document.createElement("template")};
document.head.appendChild(r6g().content);var Kwg;var Dup,Ene,JM;_.EC=_.Ou.caches;JM=function(){};
JM.prototype.open=function(A){return _.EC.open(G$u(A))};
JM.prototype.has=function(A){return _.EC.has(G$u(A))};
JM.prototype.delete=function(A){return _.EC.delete(G$u(A))};
JM.prototype.match=function(A,L){var O=this,X,x,J,Y,T,V;return _.u(function(E){switch(E.nextAddress){case 1:return E.yield(O.keys(),2);case 2:X=E.yieldResult,x=_.d(X),J=x.next();case 3:if(J.done){E.jumpTo(5);break}Y=J.value;return E.yield(O.open(Y),6);case 6:return T=E.yieldResult,E.yield(T.match(A,L),7);case 7:if(V=E.yieldResult)return E.return(V);J=x.next();E.jumpTo(3);break;case 5:return E.return()}})};
var nne=function(){};
_.g(nne,JM);var G$u=function(A){if(A.includes(":"))throw Error("mh`"+A);return A+":"+_.gN("CacheStorage get")};
nne.prototype.keys=function(){var A,L,O,X,x,J,Y,T,V;return _.u(function(E){if(E.nextAddress==1)return A=[],L=_.gN("CacheStorage keys"),E.yield(_.EC.keys(),2);O=E.yieldResult;X=_.d(O);for(x=X.next();!x.done;x=X.next())J=x.value,Y=_.VyD(J),T=Y.originalName,V=Y.datasyncId,V===L&&A.push(T);return E.return(A)})};var PP=function(){var A=_.G.apply(this,arguments)||this;A.objectURL=null;A.loadTime=Infinity;return A};
_.g(PP,_.G);_.P=PP.prototype;_.P.renderIdom=function(){T7O(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("ph");this.setConfig();this.config&&QKr(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.P.objectFitToContentMode=function(A){switch(A){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.P.logThumbnailFailureVe=function(){var A=_.tI(197497);_.S9(_.iV(),A);var L=_.Fn();L&&A&&L&&_.B4(L,[A])};
_.P.loadImageFromCacheIfExists=function(A){var L=this,O=A.target;(O==null?0:O.src)&&bwd(O.src).then(function(X){L.objectURL=_.Qo(X).toString();L.setSrc(O,L.objectURL)}).catch(function(){})};
_.P.onError=function(A){var L=this;if(_.h("web_use_cache_for_image_fallback")){var O=A.target;O&&bwd(O.src).then(function(X){L.objectURL=_.Qo(X).toString();L.setSrc(O,L.objectURL)}).catch(function(){_.h("kevlar_woffle_log_thumbnail_failure_ve")&&L.logThumbnailFailureVe();
_.h("kevlar_woffle_fallback_image")&&L.setSrc(O,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.P.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.P.setConfig=function(){var A=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(L){A.loadImageFromCacheIfExists(L);A.revokeObjectURL();u$u(A.hostElement)},
onerror:function(L){A.onError(L)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.h("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.P.setSrc=function(A,L){L&&(A.src=L)};
_.I([_.N(FFN),_.Z("design:type",Object)],PP.prototype,"ytIdomTemplatingBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],PP.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",String)],PP.prototype,"alt",void 0);_.I([_.K(),_.Z("design:type",Boolean)],PP.prototype,"ftlEligible",void 0);_.I([_.K(),_.Z("design:type",Number)],PP.prototype,"height",void 0);_.I([_.K(),_.Z("design:type",Boolean)],PP.prototype,"notifyOnLoaded",void 0);
_.I([_.K(),_.Z("design:type",Boolean)],PP.prototype,"notifyOnUnloaded",void 0);_.I([_.K(),_.Z("design:type",String)],PP.prototype,"objectFit",void 0);_.I([_.K(),_.Z("design:type",String)],PP.prototype,"objectPosition",void 0);_.I([_.K(),_.Z("design:type",String)],PP.prototype,"preferredThumbnail",void 0);_.I([_.K(),_.Z("design:type",Boolean)],PP.prototype,"preserveHeight",void 0);_.I([_.K(),_.Z("design:type",Boolean)],PP.prototype,"preserveWidth",void 0);
_.I([_.K({value:!0}),_.Z("design:type",Boolean)],PP.prototype,"useWidth",void 0);_.I([_.K({value:function(){return!_.fB("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.Z("design:type",Boolean)],PP.prototype,"shouldRenderLazy",void 0);_.I([_.K(),_.Z("design:type",Number)],PP.prototype,"width",void 0);_.I([_.yU({is:"yt-image",disableElementRegistration:!0})],PP);
_.m(PP,"yt-image",function(){if(Kwg===void 0){var A=document.createElement("template");_.p(A,"\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");A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);A.content.insertBefore(r6g().content.cloneNode(!0),A.content.firstChild);
Kwg=A}A=Kwg;return A},{mode:2});var dj=function(){return _.G.apply(this,arguments)||this};
_.g(dj,_.G);dj.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var A=_.HR(this.data.onVisibleCommand);A&&this.ytComponentBehavior.resolveCommand(A)}};
_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],dj.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],dj.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.LO.YtVisibilityBehavior),_.Z("design:type",Object)],dj.prototype,"ytVisibilityBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],dj.prototype,"data",void 0);_.I([_.yU({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],dj);
_.m(dj,"yt-bumper-user-edu-content-view-model",function(){if(lGg===void 0){var A=document.createElement("template");_.p(A,'\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>');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;GzL===void 0&&(GzL=document.createElement("template"));var X=GzL;O.call(L,X.content.cloneNode(!0),A.content.firstChild);lGg=A}A=lGg;return A},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var lin;var c6n,C0H=function(){if(c6n!==void 0)return c6n;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;lin===void 0&&(lin=document.createElement("template"));var X=lin;O.call(L,X.content.cloneNode(!0),A.content.firstChild);return c6n=A};var Fw3;_.Y5={};Fw3=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"]);_.Y5.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var A=this.getContext_();return A?A.getTaskManager():_.c1},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var A=_.P4(this.hostElement,"yt-get-context-provider",{});A.detail&&A.detail.contextProvider?this.cachedProviderNode_=A.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return Fw3.has(this.hostElement.localName)},
getNetworkManager:function(){var A=this.getContext_();if(A)return A.getNetworkManager()}};var pEd,R$6,m3g,QXl;_.uv=function(A){var L=R$6.get(A);if(L&&(L=L.pop()))return QXl++,L;m3g++;try{var O=document.createElement(A)}catch(X){throw new _.pe("ElementPool failed to create element",A,X.message);}return O};
pEd=function(A){var L=A.is;if(L){var O=R$6.get(L);O||(O=[],R$6.set(L,O));var X=_.ms("ELEMENT_POOL_CONFIG")||{};O.length>=(X[L]!==void 0?X[L]:_.ms("ELEMENT_POOL_DEFAULT_CAP",0))||O.push(A)}else _.Rv(new _.pe("Element pool should only handle custom elements:",A.nodeName))};
R$6=new Map;m3g=0;QXl=0;var ny=new WeakMap,wEP=new WeakMap;var Iij;_.Tf=function(A,L,O){O=O===void 0?_.Q7():O;this.JSC$14760_defaultPriority=A;this.signal=L;this.scheduler=O;this.nextJobDescriptor=0;this.JSC$14760_parkedJobs=[];this.scheduledJobs=new Map};
_.V4=function(A,L){if(L){var O=_.kq();A.signal&&!_.UU(O,A.signal)?(O.addListener(A.signal,function(){A.processSignal()}),A.JSC$14760_parkedJobs.push({job:L,
priority:void 0})):fiH(A,L)}};
Iij=function(A,L){if(L!==A.JSC$14760_defaultPriority){A.JSC$14760_defaultPriority=L;for(var O=_.d(A.scheduledJobs.values()),X=O.next();!X.done;X=O.next())X=X.value,A.scheduler.cancelJob(X.jobId),X.jobId=A.scheduler.addJob(X.jobWrapper,L)}};
_.Tf.prototype.flushJobs=function(){Iij(this,10);this.processSignal()};
_.Tf.prototype.cancel=function(){for(var A=_.d(this.scheduledJobs),L=A.next();!L.done;L=A.next()){var O=_.d(L.value);L=O.next().value;O=O.next().value;this.scheduler.cancelJob(O.jobId);this.scheduledJobs.delete(L)}this.JSC$14760_parkedJobs=[]};
_.Tf.prototype.processSignal=function(){for(var A=_.d(this.JSC$14760_parkedJobs),L=A.next();!L.done;L=A.next())L=L.value,fiH(this,L.job,L.priority);this.JSC$14760_parkedJobs=[]};
var fiH=function(A,L,O){O=O||A.JSC$14760_defaultPriority;if(O===10)Dr(L);else{var X=A.nextJobDescriptor++,x=function(){L();A.scheduledJobs.delete(X)},J=A.scheduler.addJob(x,O);
A.scheduledJobs.set(X,{jobWrapper:x,jobId:J,priority:O})}};_.Xh(K3D);var GH9={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};nOP({beforeVisit:function(A){if(Ti.has(A.type)){var L;(L=A.props).idomKey!=null||(L.idomKey=A.type)}else A.type.TAG_NAME&&(Ya=A.type.TAG_NAME)},
afterRender:function(A,L){var O;Ya=(O=L==null?void 0:L.type)!=null?O:""},
didPatch:function(){Ya=""}});var y6n;_.Db={};y6n={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.Db.YtRendererstamperBehavior=[_.Y5.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 A in this.stampDom){var L=this.stampDom[A];L&&L.id&&this.addReactiveSchema({type:"observe",method:{methodName:SFe(L.id),args:[{type:"wildcard",path:A}]}})}else{(A=(this.constructor.generatedFrom||this).observers)||(A=[]);for(L in this.stampDom){var O=this.stampDom[L];O&&O.id&&A.push(SFe(O.id)+"("+L+".*)")}this.constructor.generatedFrom.observers=A}},
addStampDomObserverFns_:function(){for(var A in this.stampDom){var L=this.stampDom[A];L.id?(this[SFe(L.id)]=this.rendererStamperObserver_.bind(this,A,L.id),this.hasDataPath_[A]=!1):(L=new _.pe("Bad rendererstamper config",this.is+":"+A),_.C7(L))}},
rendererStamperObserver_:function(A,L,O){if(O.path==A){if(O.value===void 0&&!this.hasDataPath_[A])return;this.hasDataPath_[A]=O.value!==void 0}this.rendererStamperApplyChangeRecord_(A,L,O)},
rendererStamperApplyChangeRecord_:function(A,L,O){var X=this.renderJobsMap_[L],x=null;A==O.path?(O=O.value,_.jD(O)||(O=O===void 0||O===null?[]:[O]),A=this.stampDom[A],A.mapping&&(x=this.stampDomArray_.bind(this,O,L,A.mapping,A.reuseComponents,A.events,A.stamperStableList)),X&&X.cancel(),O=A.usePageScheduler?this.getTaskManager():void 0,X||A.initialRenderPriority==void 0)?A.renderPriority==void 0||X||(X=new _.Tf(A.renderPriority,A.waitForSignal,O),this.renderJobsMap_[L]=X):(X=new _.Tf(A.initialRenderPriority,
A.waitForSignal,O),this.renderJobsMap_[L]=X,x=function(J,Y){J();Iij(Y,10)}.bind(this,x,X)):x=A+".splices"==O.path?this.stampDomArraySplices_.bind(this,A,L,O.value):this.forwardRendererStamperChanges_.bind(this,A,L,O);
X?_.V4(X,x):x()},
forwardRendererStamperChanges_:function(A,L,O){var X=O.path.slice(A.length+1),x=this.getStampContainer_(L),J=X.indexOf("."),Y=X.substring(0,J),T=!1,V=0,E=parseInt(Y,0);if(Y[0]=="#"){T=parseInt(Y.substring(1),0);E=this.get(A);var n=this.get([A,Y]);E[T]==n?V=T:V=E.indexOf(n);T=!0}else isNaN(E)||(V=E,T=!0);T&&(X=X.substring(Y.length+1),J=X.indexOf("."));Y=_.ii(x).children[V];var t;if(x=(t=Y==null?void 0:Y.polymerController)!=null?t:Y)X="data"+X.slice(J),typeof x.notifyPath!=="function"?_.Rv(new _.pe("notifyPath missing",
this.is+": "+A+", "+L)):O.value?x.notifyPath(X,O.value):x.notifyPath(X)},
stampDomArraySplices_:function(A,L,O){if(O&&O.indexSplices){var X=this.getStampContainer_(L);if(X){for(var x=_.ii(X),J=gnJ(this.stampDom[A].reuseComponents),Y=O.indexSplices.length,T=0;T<Y;T++){for(var V=O.indexSplices[T],E=x.children[V.index],n=V.removed.length;n>0;n--)E&&E.parentElement&&(_.ii(E.parentElement).removeChild(E),J&&pEd(E),E=x.children[V.index]);n=this.stampDom[A].mapping;for(var t=V.index+V.addedCount,b=document.createDocumentFragment(),S=J,w=V.index;w<t;w++){var l=V.object[w],F=hts(n,
l);if(F){var R=n[F];l=l[F];F=this.getComponentName_(R,l);var y=E?ny.has(E):!1;S&&E&&E.is==F&&y?(F=E,this.telemetry_.reuse++,E=E.nextElementSibling):S&&E&&y?(F=this.createComponent_(R,l,J),y=_.ii(E).nextElementSibling,x.insertBefore(F,y),N7M(this.is,x,E,J),E=y):(S=!1,F=this.createComponent_(R,l,J),b.appendChild(F));this.deferRenderStamperBinding_(F,R,l)}else R=new _.pe("Unimplemented type",A,L,X.tagName,Object.keys(l)[0]),_.C7(R)}x.insertBefore(b,E)}this.flushRenderStamperComponentBindings_();this.stampDom[A].events&&
_.P4(this.hostElement,"yt-rendererstamper-finished",{container:X})}else A=new _.pe("Container object not found",L,this.hostElement?this.hostElement.is:""),_.C7(A)}},
stampDomArray_:function(A,L,O,X,x,J){var Y=this.getStampContainer_(L);if(Y)if(L=_.ii(Y),X=gnJ(X),A){var T=0,V=0,E;if(J=J===void 0?_.fB("STAMPER_STABLE_LIST",!1):J||!1)for(E=L.firstElementChild;E&&!ny.has(E)&&A.length>V;){J=A[V];var n=hts(O,J);if(n){if(this.getComponentName_(O[n],J[n])!=E.is){var t=this.createComponent_(O[n],J[n],X),b=_.ii(E).nextElementSibling;b?L.insertBefore(t,b):L.appendChild(t);N7M(this.is,L,E,X);E=t}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(E,O[n],J[n]);T++;
V++;E=_.ii(E).nextElementSibling}else V++}rJO(this.is,L,T,X);T=E;if(A.length>V){J=document.createDocumentFragment();for(n=A.length;V<n;V++)if(t=A[V],b=hts(O,t))E=this.createComponent_(O[b],t[b],X),this.deferRenderStamperBinding_(E,O[b],t[b]),J.appendChild(E);T&&_.ii(T).parentNode&&E&&!ny.has(E)?L.insertBefore(J,T):L.appendChild(J)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();x&&_.P4(this.hostElement,"yt-rendererstamper-finished",{container:Y})}else rJO(this.is,L,0,
X);else A=new _.pe("Container object not found",L,this.hostElement?this.hostElement.is:""),_.C7(A)},
getStampContainer_:function(A){return this.$&&this.$[A]||_.YJ(this.hostElement).querySelector("#"+A)},
getComponentName_:function(A,L){return typeof A==="string"?A:A.matcher?A.matcher.call(this,L):A.component},
createComponent_:function(A,L,O){A=this.getComponentName_(A,L);try{var X=Vz.has(A)||Ti.has(A);if(O&&!X){var x=_.uv(A);try{_.eq(x)}catch(J){O="Failed to clear styles for "+A+".",J.message&&(O+=" Original error: "+J.message),_.Rv(new _.pe(O))}}else x=document.createElement(A)}catch(J){return x="YtRendererStamperBehavior failed to create "+A+".",J.message&&(x+=" Original description: "+J.message),J.message="YtRendererStamperBehavior failed to create element",_.Q$(J,x),y6n.hasOwnProperty(A)?_.Rv(J):_.C7(J),
document.createElement("SPAN")}this.telemetry_.create++;return x},
deferRenderStamperBinding_:function(A,L,O){this.deferredBindingTasks_.push({component:A,typeOrConfig:L,data:O})},
flushRenderStamperComponentBindings_:function(){for(var A=0,L=this.deferredBindingTasks_.length;A<L;A++){var O=this.deferredBindingTasks_[A];if(!O)break;var X=void 0,x=void 0,J=void 0,Y=void 0,T=O.component,V=O.typeOrConfig;O=O.data;var E=(Y=T.polymerController)!=null?Y:T;Y=T.loggingStatus;try{Y&&(Y.isRendererStamper=!0);if(typeof V!=="string"){for(J in V.attributes)V.attributes[J]===!0?T.setAttribute(J,""):V.attributes[J]===!1?T.removeAttribute(J):T.setAttribute(J,V.attributes[J]);for(x in V.params)E[x]=
V.params[x],T!==E&&K4(T.localName,x,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(X in V.properties){var n=V.properties[X];if(n){var t=qFy(n);E[X]=this.get(t);T!==E&&K4(T.localName,X,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(X==="on-tap"||X==="on-click"){var b=this.get(t);T.addEventListener("click",b);wEP.set(T,{property:X,listener:{type:"element",eventName:"click",handler:b}})}}else{var S=new _.pe("Undefined property binding",X);_.C7(S)}}}if(V.classListBinding){var w=qFy(V.classListBinding),
l=w?this[w]:null;if(l)for(X=0;X<l.length;X++)_.TK(T,l[X],!0)}E.data=O}finally{Y&&(Y.isRendererStamper=!1)}if(X=ny.get(T))T.hidden=!1,ny.delete(T),_.c1.cancelJob(X)}this.deferredBindingTasks_.length=0}}];_.es={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(A){for(var L=_.zu.getInstance(),O=_.d(Object.keys(A)),X=O.next();!X.done;X=O.next()){var x=X.value;X=A[x];if(this&&this[X]){var J=L.actionRoutingMap.get(x);J||(J=new Map,L.actionRoutingMap.set(x,J));L.registerActionHandler(this,x,this[X].bind(this),J)}else x=Error("hd"),x.params=X,_.IO(x)}},
unregisterActionMap:function(A){_.Md(_.zu.getInstance(),A,this)}}]};var hF=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_"+(_.h("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.h("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.h("enable_web_delhi_icons")?120:60,lazyLoad:!0}],["LIKE_DELHI_PLAYER",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v5.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_DELHI_PLAYER",totalFrames:120,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:_.h("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light_v4.json":
"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",pathDarkTheme:_.h("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark_v4.json":"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"NOTIFICATION_BELL",totalFrames:_.h("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var bB;var St=new Map;var W3J=window.matchMedia("(forced-colors: active)").matches;var ZjL;var jX6;var WwN=new _.Yx("LOTTIE_LOADER_TOKEN");_.ER=_.xa(function(A){var L=A.data;var O=A.className;var X=A.animationName;var x=A.animationRef;var J=A.elRefForInterop;var Y=_.kw("lottie-component"),T;_.rF(function(){var E;return void((E=T)==null?void 0:E.destroy())});
var V;_.ND(function(){var E=_.GV(X);if(E!==V){V=E;var n=Object.assign({},{animationName:E,animationRef:_.GV(x)},_.GV(L));try{_.X5().resolve(WwN)().then(function(S){var w;(w=T)==null||w.destroy();var l,F;w=(F=J==null?void 0:(l=J())==null?void 0:l.value)!=null?F:Y.value;l=n.animationRef;F=n.listeners;S=S.loadAnimation(Object.assign({},{container:w},n.animationConfig));l&&(l.lottieEl=S);if(F)for(w=_.d(Object.entries(F)),l=w.next();!l.done;l=w.next())F=_.d(l.value),l=F.next().value,(F=F.next().value)&&
S.addEventListener(l,F);T=S})}catch(S){E=S;
var t="LottieComponent error.";E.message&&(t+=" Original description: "+E.message);_.Q$(E,t);_.Rv(E);var b;((b=n.listeners)==null?0:b.error)&&n.listeners.error(E)}}},"lbhvPc");
return _.D(fxp,{cond:function(){return!(J==null?0:J())},
then:function(){return _.D("lottie-component",{class:_.qn("ytLottieComponentHost",O),el:Y})}})},"h");_.Y4(_.xa(function(A){return _.D("ytd-lottie-player",{id:A.id,hidden:A.hidden,class:A.className,"aria-label":A.ariaLabel,style:"display: block;"},_.D(_.ER,{data:A.data,animationName:function(){var L;return((L=A.data().animationConfig)==null?void 0:L.name)||""},
animationRef:function(){return A.data().animationRef}}))},"i"),"ytd-lottie-player",{props:{data:_.x5,
id:_.x5,hidden:_.x5,className:_.x5,ariaLabel:_.x5}});var nO=function(){var A=_.G.apply(this,arguments)||this;A.animationRef={};A.delhiIconsEnabled=_.h("enable_web_delhi_icons");return A};
_.g(nO,_.G);_.P=nO.prototype;
_.P.handlePropertyChange=function(){var A=this.animatedIcon,L=this.active,O=this.isDarkTheme;if(A){var X=this.previousActive!==L;this.previousActive=L;this.animationRef.lottieEl?X&&this.toggleAnimation(L,A.totalFrames):L?this.initializeAnimationAsToggled(A.lottiePlayerProps,A.totalFrames):this.initializeAnimationAsUntoggled(A.lottiePlayerProps);A.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=A.type;this.lottiePlayerProps=this.computeLottiePlayerProps(A,O)}};
_.P.computeLottiePlayerProps=function(A,L){var O=this.deepCloneLottiePlayerProps(A);L?(L=A.nameDarkTheme,A=A.pathDarkTheme):(L=A.name,A=A.path);O.animationConfig.name=L;(L=St.get(A))?O.animationConfig.animationData=L:O.animationConfig.path=A;return O};
_.P.initializeAnimationAsToggled=function(A,L){A.animationConfig.initialSegment=[L-1,L]};
_.P.initializeAnimationAsUntoggled=function(A){A.animationConfig.initialSegment=void 0};
_.P.toggleAnimation=function(A,L){if(A){var O;(O=this.animationRef.lottieEl)==null||O.playSegments([0,L],!0)}else{var X;(X=this.animationRef.lottieEl)==null||X.playSegments([0,1],!0)}};
_.P.deepCloneLottiePlayerProps=function(A){var L=Object.assign({},A.lottiePlayerProps.animationConfig);A=Object.assign({},A.lottiePlayerProps);A.animationConfig=L;return A};
nO.prototype.handlePropertyChange=nO.prototype.handlePropertyChange;_.I([_.K(),_.Z("design:type",Object)],nO.prototype,"animatedIcon",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],nO.prototype,"active",void 0);_.I([_.K(),_.Z("design:type",Boolean)],nO.prototype,"isDarkTheme",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",String)],nO.prototype,"animatedIconType",void 0);_.I([_.K(),_.Z("design:type",Boolean)],nO.prototype,"previousActive",void 0);
_.I([_.K(),_.Z("design:type",Object)],nO.prototype,"lottiePlayerProps",void 0);_.I([_.K(),_.Z("design:type",Object)],nO.prototype,"animationRef",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],nO.prototype,"delhiIconsEnabled",void 0);_.I([_.hT("animatedIcon","active","isDarkTheme"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],nO.prototype,"handlePropertyChange",null);_.I([_.yU({is:"yt-animated-icon",disableElementRegistration:!0})],nO);
_.m(nO,"yt-animated-icon",function(){if(jX6===void 0){var A=document.createElement("template");_.p(A,'\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>');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;ZjL===void 0&&(ZjL=document.createElement("template"));var X=ZjL;O.call(L,X.content.cloneNode(!0),A.content.firstChild);jX6=A}A=jX6;return A},{mode:2});var Hjc;var z$l;var ajP=_.xa(function(A){var L=_.kw("span"),O=lk(function(){return{value:null}});
_.rF(function(){var x;(x=O.value)==null||x.cancel()});
var X=_.E4(A.data,{equals:function(x,J){return x.iconName===J.iconName&&x.iconStyle===J.iconStyle&&x.iconSize===J.iconSize&&x.iconSetName===J.iconSetName&&x.iconSelected===J.iconSelected}},"aoiXAb");
_.ND(function(){var x,J=(x=A.options)==null?void 0:x.call(A);$up(L,O,X(),J)},"QXgxJd");
return _.D("span",{class:"yt-icon-shape",el:L})},"j");
ajP.idomCompat=!0;var RaM=["youtube_fill","youtube_outline"];var Bv6=new _.Q9({type:"iconset",value:void 0}),tM=function(){var A=_.G.apply(this,arguments)||this;A.isDarkTheme=document.documentElement.hasAttribute("dark");A.iconName="";A.iconsetName="yt-icons";A.iconset=null;A.missingIconSet=!1;A.iconType=null;A.iconShapeDataSignal=_.uQ(void 0,void 0,"RQ9kUb");A.renderingOptionsSignal=_.uQ({iconWidth:"100%",iconHeight:"100%",iconFilter:A.iconFilter},void 0,"qtx8Ef");A.wizHasRendered=!1;A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return A};
_.g(tM,_.G);tM.prototype.onDarkModeToggledAction=function(A){A!==this.isDarkTheme&&(this.isDarkTheme=A)};
tM.prototype.handlePropertyChange=function(){var A=this,L,O,X,x,J,Y,T,V,E,n,t,b,S,w,l,F,R;return _.u(function(y){switch(y.nextAddress){case 1:if(L=!A.icon&&!A.iconName||!A.isAttached)return y.return();O=A;X=O.icon;x=O.size;J=O.defaultToFilled;Y=O.active;T=O.targetContainer;A.toggleContainerClass(T);_.h("kevlar_use_wil_icons")&&X&&(V=izM(X),A.iconType=V.length?V[1]:null);if(X){y.jumpTo(2);break}A.iconsetName="";A.iconName="";return y.yield(A.renderIcon(T,X),3);case 3:return y.return();case 2:E=Me3(X);
n=izM(E);n.length&&(A.iconsetName=n[0],A.iconName=n[1]);if(!_.h("kevlar_use_wil_icons")){y.jumpTo(4);break}t=tM;b=$3H;S=A.iconType;w=A.active;l=A.defaultToFilled;F=A.size;R=A.iconsetName;return y.yield(ai7(),6);case 6:return y.yield(b.call(t,S,w,l,F,R,y.yieldResult),5);case 5:A.iconShapeData=y.yieldResult;case 4:if(A.shouldRenderIconShape(T)){y.jumpTo(7);break}return y.yield(A.determineIconSet(E,Y,J,x,T),7);case 7:return y.yield(A.renderIcon(T,X),0)}})};
tM.prototype.toggleContainerClass=function(A){A?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var Me3=function(A){return!_.h("default_to_innertube_icon")||A.indexOf(":")>0?A:_.bV(A)};
_.P=tM.prototype;_.P.determineIconSet=function(A,L,O,X){var x=this;return _.u(function(J){return J.nextAddress==1?_.h("kevlar_system_icons")||_.ms("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.ms("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?J.yield(x.switchToYtSysIconset(A,L,O,X),3):J.jumpTo(2):J.nextAddress!=2?J.return():J.yield(x.useYtSysIconsetForMissingIcons(A,L,O,X),0)})};
_.P.switchToYtSysIconset=function(A,L,O,X){var x=this,J,Y,T,V,E,n,t;return _.u(function(b){switch(b.nextAddress){case 1:if(!A||x.iconsetName!=="yt-icons"&&x.iconsetName!=="yt-sys-icons"){b.jumpTo(0);break}J=izM(A);Y=J[1];Y=_.QYP(Y);_.h("enable_polymer_icons_replace_underscores_dash")&&Y.includes("_filled")&&(Y=Y.replace(/_filled/g,"-filled"));return b.yield(tt(Y,!0),3);case 3:return T=b.yieldResult,b.yield(tt(Y,!1),4);case 4:if((V=b.yieldResult)||L&&T)x.iconsetName="yt-sys-icons";x.iconName=x.getIconName(Y,
L,O,V,T);if(X===24){b.jumpTo(0);break}E="yt-sys-icons"+X+":"+x.iconName;return b.yield(tt(E,!1,!0),6);case 6:return n=b.yieldResult,b.yield(tt(E,!0,!0),7);case 7:t=b.yieldResult;x.iconName=x.getIconName(Y,L,O,n,t);if(!L&&n||L&&t)x.iconsetName="yt-sys-icons"+X;_.qo(b)}})};
_.P.getIconName=function(A,L,O,X,x){A.includes("-filled")&&(A=A.replace("-filled",""));return x&&(L||O)?A+"-filled":A};
_.P.useYtSysIconsetForMissingIcons=function(A,L,O,X){var x=this,J,Y;return _.u(function(T){if(T.nextAddress==1)return x.iconsetName!=="yt-icons"?T.jumpTo(0):T.yield(tt(x.iconName,!1,!1,!0),3);if(T.nextAddress!=4)return J=T.yieldResult,T.yield(tt(x.iconName,!1),4);Y=T.yieldResult;if(J||!Y)return T.jumpTo(0);x.iconsetName="yt-sys-icons";return T.yield(x.switchToYtSysIconset(A,L,O,X),0)})};
_.P.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var ai7=function(){return _.u(function(A){try{return A.return(_.X5().resolve(_.ht))}catch(L){return A.return(new Promise(function(O){_.kq().parkOrScheduleJob(function(){O(_.X5().resolve(_.ht))},2,"ci")}))}})},$3H=function(A,L,O,X,x,J){X=X===void 0?24:X;
if(A){A=A.toLowerCase();var Y=A.endsWith("_filled")||A.endsWith("-filled");L={iconName:A,iconStyle:(L===void 0?0:L)||(O===void 0?0:O)||Y?"youtube_fill":"youtube_outline",iconSize:X,iconSetName:x===void 0?"yt-icons":x};O=!!J.resolveIcon(L);O||(L.iconSize=void 0,O=!!J.resolveIcon(L));!O&&Y&&(L.iconName=A.substring(0,A.length-7),L.iconSize=X,O=!!J.resolveIcon(L),O||(L.iconSize=void 0,O=!!J.resolveIcon(L)));O||(L.iconStyle=void 0,O=!!J.resolveIcon(L));O||_.Rv(new _.pe("Icon not supported",{iconName:L.iconName,
iconStyle:L.iconStyle,iconSize:L.iconSize,iconType:A}));return O?L:void 0}};
_.P=tM.prototype;_.P.shouldRenderIconShape=function(A){if(!_.h("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;A=this.getContainer(A);return!HwO(A,this.icon)};
_.P.renderIcon=function(A,L){var O=this,X,x,J,Y,T,V,E,n;return _.u(function(t){switch(t.nextAddress){case 1:if(L&&O.icon!==L)return t.return();X=O.getContainer(A);x=HwO(X,O.icon);if(O.shouldRenderIconShape(A)&&O.iconType)return O.applyIconShape(x,X),t.return();O.removeIconShape();if(!X)return t.return();O.iconName===""&&O.iconset&&X&&(O.removeStaticIcon(O.iconset,X),x&&O.removeAnimatedIcon(X));if(O.iconName===""&&O.iconset||!O.iconsetName||!Bv6)return t.return();O.iconset=Bv6.byKey(O.iconsetName);
if(!O.iconset)return O.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.tT(O,O.onIconsetAdded)),t.return();O.missingIconSet&&(O.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.tT(O,O.onIconsetAdded)));Y=(J=x||O.isAnimatedIcon?ZwO(O.icon):void 0)&&!J.lazyLoad;V=J&&((T=J)==null?void 0:T.lazyLoad)&&(J.lottiePlayerProps.animationConfig.animationData?!0:St.get(O.isDarkTheme?J.pathDarkTheme:J.path)?!0:!1);if(Y||V)return O.applyAnimatedIcon(X,J,O.iconset),t.return();if(V||
(E=J)==null||!E.lazyLoad){t.jumpTo(2);break}n=B7O(J,O.isDarkTheme);O.applyStaticIcon(O.iconset,X,O.iconName,A,x);return t.yield(n,3);case 3:return t.yield(O.renderIcon(O.targetContainer,O.icon),4);case 4:return t.return();case 2:O.applyStaticIcon(O.iconset,X,O.iconName,A,x),_.qo(t)}})};
_.P.getContainer=function(A){var L,O=(L=zve(this.hostElement))==null?void 0:L.host;L=!!O&&!!O.polymerController;if(!A||L)return A?this.getTargetContainer(A,O):this.hostElement};
_.P.getTargetContainer=function(A,L){var O=_.YJ(L).querySelector("#"+A);O||(A=new _.pe("yt-icon container missing",L.is,A),_.C7(A));return O};
_.P.applyStaticIcon=function(A,L,O,X,x){x&&this.removeAnimatedIcon(L);this.removeIconShape();x=x&&!!this.iconType&&!!this.iconShapeData&&_.h("kevlar_use_wil_icons");try{x?this.applyIconShape(!1,L):A.applyIcon(L,O)}catch(J){this.handleError(J,X,L)}};
_.P.applyIconShape=function(A,L){this.iconset&&L&&(this.removeStaticIcon(this.iconset,L),A&&this.removeAnimatedIcon(L));A={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var O=_.d(this.iconShapeDataSignal);L=O.next().value;O=O.next().value;var X=_.d(this.renderingOptionsSignal),x=X.next().value;X=X.next().value;O(this.iconShapeData);X(A);if(!this.wizHasRendered)for(this.wizHasRendered=!0,A=_.d(kHu(L,x)).next().value;A.firstChild;)_.YJ(this.hostElement).appendChild(A.firstChild)};
_.P.removeIconShape=function(){if(_.h("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.P.removeStaticIcon=function(A,L){A.removeIcon(L)};
_.P.applyAnimatedIcon=function(A,L,O){this.removeStaticIcon(O,A);this.removeIconShape();var X;O=this.animatedIconElement&&((X=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:X.type)===L.type;if(this.animatedIconElement&&O){this.animatedIconElement.polymerController.animatedIcon=L;var x;((x=this.animatedIconElement)==null?void 0:x.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(A),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=L,this.animatedIconElement.polymerController.active=this.active,_.h("delhi_modern_web_player_icons")?(L=j2J(A,this.icon)&&A.closest("yt-player-quick-action-buttons")?{useDarkTheme:!0}:void 0,this.animatedIconElement.polymerController.isDarkTheme=L?L.useDarkTheme:this.isDarkTheme):this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.h("kevlar_use_wil_icons")?
A.insertBefore(this.animatedIconElement,A.childNodes[0]):(A=_.YJ(A),A.insertBefore(this.animatedIconElement,A.childNodes[0]))};
_.P.removeAnimatedIcon=function(A){_.h("kevlar_use_wil_icons")?this.animatedIconElement&&A.contains(this.animatedIconElement)&&A.removeChild(this.animatedIconElement):(A=_.YJ(A),this.animatedIconElement&&A.contains(this.animatedIconElement)&&A.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.P.handleError=function(A,L,O){_.Q$(A,this.iconName,L,O);L=HwO(O,this.icon);var X=!1;window.location.href.includes("JpymaW6Lh2w")?X=!0:O._svgIcon&&(O=(O=O._svgIcon.parentNode)?O.tagName:"unknown",_.Q$(A,O),O==="YT-ICON"&&A.name==="NotFoundError"?X=!0:A.name==="NotFoundError"&&L&&(X=!0));X?_.Rv(A):_.C7(A)};
_.v2.Object.defineProperties(tM,{template:{configurable:!0,enumerable:!0,get:function(){if(z$l===void 0){var A=document.createElement("template");_.p(A,"\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");A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;
Hjc===void 0&&(Hjc=document.createElement("template"));var X=Hjc;O.call(L,X.content.cloneNode(!0),A.content.firstChild);z$l=A}A=z$l;return A}}});
tM.prototype.handlePropertyChange=tM.prototype.handlePropertyChange;_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],tM.prototype,"actionHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",String)],tM.prototype,"icon",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],tM.prototype,"active",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],tM.prototype,"defaultToFilled",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],tM.prototype,"isAnimatedIcon",void 0);
_.I([_.K({value:24}),_.Z("design:type",Number)],tM.prototype,"size",void 0);_.I([_.K({value:""}),_.Z("design:type",String)],tM.prototype,"targetContainer",void 0);_.I([_.K(),_.Z("design:type",Object)],tM.prototype,"animatedIconElement",void 0);_.I([_.K(),_.Z("design:type",Object)],tM.prototype,"isDarkTheme",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],tM.prototype,"ariaHidden",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",String)],tM.prototype,"ariaLabel",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",String)],tM.prototype,"role",void 0);_.I([_.K(),_.Z("design:type",String)],tM.prototype,"style",void 0);_.I([_.K(),_.Z("design:type",String)],tM.prototype,"iconFilter",void 0);_.I([_.hT("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype",Promise)],tM.prototype,"handlePropertyChange",null);_.I([_.yU({is:"yt-icon",noInjection:!0})],tM);var k$j;var U36=function(){var A=document.body,L=A.appendChild;if(k$j===void 0){var O=document.createElement("template");_.p(O,'\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>');
k$j=O}O=k$j;L.call(A,O.content)};
document.body?U36():window.addEventListener("DOMContentLoaded",U36);var vbc,obH=function(){return vbc!==void 0?vbc:vbc=document.createElement("template")};
document.head.appendChild(obH().content);var Ao6,LVL=function(){return Ao6!==void 0?Ao6:Ao6=document.createElement("template")};
document.head.appendChild(LVL().content);var OF6;_.bv=new _.Yx("KEY_MANAGER_TOKEN");var LEu={duration:1E3,easing:"ease",fill:"forwards"};_.Xh(AdD);var XaM={duration:1E3,easing:"ease",fill:"forwards"},sKc=_.xa(function(A){var L=_.av("animated-rolling-character"),O=void 0,X=function(){var x,J;return UI((x=A.character)==null?void 0:x.call(A))||UI((J=A.previousCharacter)==null?void 0:J.call(A))};
_.ND(function(){if(A.marginMultiplier()){var x;(x=O)==null||x.cancel();if(X()){var J;x=((J=A.previousCharacter)==null?0:J.call(A))?Number(A.previousCharacter())+10:A.rollUp()?0:30;var Y;if((Y=A.shouldAnimate)==null||!Y.call(A)){var T,V;x-=OGr((T=A.character)==null?void 0:T.call(A),(V=A.previousCharacter)==null?void 0:V.call(A),A.rollUp(),x)}}else{x=A.rollUp()?0:2;var E;(E=A.shouldAnimate)!=null&&E.call(A)||(J=x,Y=A.rollUp()?-1:1,x=J-Y)}L.value.style.marginTop="-"+x*A.marginMultiplier()+"px";var n;
if((n=A.shouldAnimate)==null?0:n.call(A)){var t,b;O=x2u(L.value,(t=A.character)==null?void 0:t.call(A),(b=A.previousCharacter)==null?void 0:b.call(A),A.rollUp(),x,X(),A.marginMultiplier())}else{var S;L.value.style.display=((S=A.character)==null?0:S.call(A))?"":"none"}}},"vt9b9b");
return _.D("animated-rolling-character",{el:L,class:"animated-rolling-character-wiz"},_.D(_.e,{cond:X,then:function(){return _.D(X06,null)},
else:function(){return _.D(x$n,{character:A.character})}}))},"k");
sKc.idomCompat=!0;var s1u=_.h("web_enable_sink_animated_rolling_character_and_number")?sKc:AdD,JoN=_.h("web_enable_sink_animated_rolling_character_and_number")?sKc:_.wl(AdD),X06=_.xa(function(){for(var A=[],L=1;L<30;L++)A.push(_.D("div",null,L%10));return _.D(_.Xs,null,_.D("div",null,"\u00a0"),A,_.D("div",null,"\u00a0"))},"l"),x$n=_.xa(function(A){var L=A.character;
return _.D(_.Xs,null,_.D("div",null,"\u00a0"),_.D(_.e,{cond:function(){return!(L==null?0:L())||_.Ye(L==null?void 0:L())},
then:function(){return _.D("div",null,"\u00a0")},
else:function(){return _.D("div",null,L)}}),_.D("div",null,"\u00a0"))},"m");_.Xh(JdO);var PLJ=_.xa(function(A){var L=void 0,O=void 0,X=function(){var J;return((J=A.fontSizeMultiplier)==null?0:J.call(A))?A.heightPx()*A.fontSizeMultiplier():A.heightPx()},x=_.E4(function(){if(!A.numberText())return[];
var J,Y,T=((J=A.forceRollUp)==null?void 0:J.call(A))||!O||!((Y=A.numberValue)==null?0:Y.call(A))||O<A.numberValue(),V,E=A.numberText();J=X();Y=!((V=A.shouldAnimate)==null||!V.call(A));V=[];var n=0,t=0,b=(L?L.replace(/\D/g,"").length:0)-(E?E.replace(/\D/g,"").length:0),S=L?L.split(/(\d)/).filter(Boolean):[];for(E=E.split(/(\d)/).filter(Boolean);b<0;){var w=E[t];V.push({character:w,rollUp:T,marginMultiplier:J,shouldAnimate:Y});t++;UI(w)&&b++}for(;n<b;)w=S[n],V.push({previousCharacter:w,rollUp:T,marginMultiplier:J,
shouldAnimate:Y}),n++,UI(w)||b++;for(;t<E.length;)b=E[t],w=S[n],UI(b)===UI(w)?(t++,n++):UI(b)?(n++,b=void 0):UI(w)&&(t++,w=void 0),V.push({character:b,previousCharacter:w,rollUp:T,marginMultiplier:J,shouldAnimate:Y});L=A.numberText();var l;O=(l=A.numberValue)==null?void 0:l.call(A);return V},void 0,"B9AmNd");
return _.D("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:function(){return A.numberText()?["height: "+X()+"px;","line-height: "+A.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.D(_.g9,{each:x,keyBy:"INDEX"},function(J){return _.D(JoN,{character:function(){return J().character},
previousCharacter:function(){return J().previousCharacter},
marginMultiplier:function(){return J().marginMultiplier},
rollUp:function(){return J().rollUp},
shouldAnimate:function(){return J().shouldAnimate}})}))},"n");
PLJ.idomCompat=!0;_.paP=_.h("web_enable_sink_animated_rolling_character_and_number")?PLJ:JdO;_.d$l=_.h("web_enable_sink_animated_rolling_character_and_number")?PLJ:_.wl(JdO);var Pop={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"};_.aD=_.xa(function(A){var L=_.av("a",A.ref),O=A.aTagConfig?A.aTagConfig:_.E4(function(){var X,x,J,Y,T;var V=(T=_.HR((J=A.command)==null?void 0:J.call(A)))!=null?T:(Y=A.command)==null?void 0:Y.call(A);return _.BR({innertubeCommand:V,skipOnClick:(X=A.skipOnClick)==null?void 0:X.call(A),defaultTarget:(x=A.target)==null?void 0:x.call(A)})||{}},void 0,"I5WLmc");
_.ND(function(){L.value._data=O()._data;L.value.params=O().params},"STb8Se");
return _.D("a",{el:L,href:function(){return O().href$},
rel:function(){return O().rel$},
class:function(){var X,x;return(x=O().className)!=null?x:(X=A.className)==null?void 0:X.call(A)},
style:function(){var X;if((X=A.style)==null?0:X.call(A))return A.style();var x;return((x=A.disabled)==null?0:x.call(A))?"pointer-events:none":""},
"aria-haspopup":function(){return!!O()["aria-haspopup$"]},
"force-new-state":iB(function(){return O()["force-new-state$"]}),
title:iB(function(){var X,x;return(x=O().title$)!=null?x:(X=A.title)==null?void 0:X.call(A)}),
role:iB(function(){var X;return((X=A.role)==null?void 0:X.call(A))||O().role$}),
target:iB(function(){return O().target$}),
dir:iB(function(){var X;return((X=A.dir)==null?void 0:X.call(A))||O().dir}),
tabindex:function(){var X;return O().tabindex$?Number(O().tabindex$):(X=A.tabIndex)==null?void 0:X.call(A)},
"aria-hidden":function(){var X,x;return(x=O()["aria-hidden$"])!=null?x:(X=A.ariaHidden)==null?void 0:X.call(A)},
"aria-label":function(){var X,x;return(x=O()["aria-label$"])!=null?x:(X=A.ariaLabel)==null?void 0:X.call(A)},
"aria-current":A.ariaCurrent,"aria-disabled":A.disabled,"aria-labelledby":A.ariaLabelledby,"aria-describedby":A.ariaDescribedby,"aria-selected":A.ariaSelected,"tab-identifier":A.tabIdentifier,"on:pointerdown":_.py(function(X){var x,J;return void((J=(x=O()).onpointerdown)==null?void 0:J.call(x,X))}),
"on:click":_.py(function(X){var x,J;(J=(x=O()).onclick)==null||J.call(x,X);var Y;(Y=A.onClick)==null||Y.call(A,X)}),
"on:focusin":_.py(function(X){var x;(x=A.onFocusin)==null||x.call(A,X)}),
"on:focusout":_.py(function(X){var x;(x=A.onFocusout)==null||x.call(A,X)})},A.children)},"o");var YGV=function(A,L){this.fillAnimation=new Animation(TKu(A),document.timeline);this.strokeAnimation=new Animation(VAM(L),document.timeline)};
YGV.prototype.play=function(){var A,L;(L=(A=this.fillAnimation).play)==null||L.call(A);var O,X;(X=(O=this.strokeAnimation).play)==null||X.call(O)};
YGV.prototype.cancel=function(){var A,L;(L=(A=this.fillAnimation).cancel)==null||L.call(A);var O,X;(X=(O=this.strokeAnimation).cancel)==null||X.call(O)};_.cx=_.xa(function(A){var L=A.model;var O=A.pointerDownEvent;var X=A.pointerUpEvent;var x=A.pointerLeaveEvent;A=_.av("div");var J=_.rl({"border-radius":function(){return L().borderRadius}}),Y=_.av("div"),T=_.av("div"),V=_.d(_.Nn(function(){return(X==null?0:X())||(x==null?0:x())?!1:!(O==null||!O())||!1})),E=V.next().value,n=V.next().value,t=void 0,b=function(){!t&&T.value&&Y.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(t=new YGV(T.value,Y.value));
var y;(y=t)==null||y.play()},S=function(){var y;
(y=t)==null||y.cancel()},w=function(){var y;
(y=t)==null||y.cancel()};
_.ND(function(){(X==null?0:X())&&b()},"YjVIpd");
_.ND(function(){(O==null?0:O())&&S()},"UrXvqb");
_.ND(function(){(x==null?0:x())&&w()},"QK6L8b");
V=_.py(function(){b();n(!1)});
var l=_.py(function(){S();n(!0)}),F=_.py(function(){w();
n(!1)});
_.rF(function(){if(t){var y;(y=t)==null||y.cancel();t=void 0}});
var R={};E=_.qn("yt-spec-touch-feedback-shape",function(){return D2J(L().color)},(R["yt-spec-touch-feedback-shape--focused"]=function(){return!!L().focused&&!L().disabled},R["yt-spec-touch-feedback-shape--circular"]=function(){return!!L().circular},R["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!L().isExtended},R["yt-spec-touch-feedback-shape--down"]=E,R["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!L().triggerEvents},R));
return _.D("yt-touch-feedback-shape",{style:_.rl({"border-radius":"inherit"})},_.D("div",{el:A,class:E,style:_.rl({"margin-top":function(){return L().customTopExtend?"-"+L().customTopExtend+"px":void 0}}),
"on:mousedown":l,"on:mouseup":V,"on:pointerleave":F,"on:touchstart":l,"on:touchend":V,"aria-hidden":!0},_.D("div",{class:"yt-spec-touch-feedback-shape__stroke",style:J,el:Y}),_.D("div",{class:"yt-spec-touch-feedback-shape__fill",style:J,el:T})))},"p");
_.cx.idomCompat=!0;var uYH={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 hM=_.n9();hM=hM.toLowerCase();if(_.TO(hM,"android")){var T5u=hM.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);T5u&&parseFloat(T5u[1])<100||hM.match("("+Object.keys(uYH).join("|")+")")};var VFl=_.xa(function(A){return _.D(_.e,{cond:A.aTagConfig,then:function(L){return _.D(_.aD,{aTagConfig:L,disabled:A.disabled,className:A.className,style:A.style,title:A.title,ariaLabel:A.ariaLabel,ariaCurrent:function(){var O,X;return((O=A.toggleable)==null?void 0:O.call(A))&&((X=A.toggled)==null?void 0:X.call(A))},
ref:A.ref},A.children)},
else:function(){return _.D("button",{el:_.sC(A.ref),"on:click":_.py(function(L){var O;return(O=A.onClick)==null?void 0:O.call(A,L)}),
class:A.className,title:A.title,style:A.style,disabled:A.disabled,"aria-pressed":function(){var L,O;return((L=A.toggleable)==null?0:L.call(A))?!((O=A.toggled)==null||!O.call(A)):void 0},
"aria-label":A.ariaLabel,"aria-disabled":A.visiblyDisabled,"aria-hidden":A.ariaHidden,tabindex:A.tabIndex},A.children)}})},"q"),eV3=_.xa(function(A){var L=A.data;
var O=A.hasIconLeading;var X=A.hasIconLeadingTrailing;var x=A.hasIconTrailing;var J=A.iconButton;var Y=A.iconClassName;var T=A.secondaryIconClassName;var V=A.icon;var E=A.secondaryIcon;var n=A.textContentClassName;return _.D(Ss,{className:"",style:"display: inherit; justify-content: center"},_.D(_.e,{debugInstance:"V4z1Uc",cond:function(){return V&&(O()||X()||(J==null?void 0:J()))},
then:function(){return _.D(Ss,null,_.D("div",{class:Y,"aria-hidden":"true"},V==null?void 0:V()))}}),_.D(_.e,{debugInstance:"ok3btb",
cond:function(){return(L().buttonText||L().animatedTextProps||L().formattedButtonText)&&!(J==null?0:J())},
then:function(){return _.D(Ss,null,_.D(D$J,{className:n,iconPosition:function(){return L().iconPosition},
text:function(){return L().buttonText},
oneOffCustomTextWrap:function(){return L().oneOffCustomTextWrap},
formattedButtonText:function(){return L().formattedButtonText},
animatedTextProps:function(){return L().animatedTextProps}}))}}),_.D(_.e,{debugInstance:"DO5Rz",
cond:x,then:function(){return _.D(Ss,null,_.D("div",{class:Y},V==null?void 0:V()))}}),_.D(_.e,{debugInstance:"bnojSc",
cond:X,then:function(){return _.D(Ss,null,_.D("div",{class:T},E==null?void 0:E()))}}),_.D(_.e,{debugInstance:"HN3kad",
cond:function(){return!L().disabled&&!0},
then:function(){return _.D(_.cx,{model:function(){return{color:bGd(L())}}})}}))},"r"),D$J=_.xa(function(A){var L=function(){var O,X;
return((O=A.iconPosition)==null?void 0:O.call(A))==="icon-with-label"||((X=A.oneOffCustomTextWrap)==null?void 0:X.call(A))};
return _.D("div",{class:A.className,"aria-hidden":function(){var O,X,x;return((O=A.ariaHidden)==null?void 0:O.call(A))&&(!((X=A.animatedTextProps)==null||!X.call(A))||!((x=A.formattedButtonText)==null||!x.call(A)))}},_.D(_.ik,null,_.D(_.w9,{when:function(){var O;
return(O=A.animatedTextProps)==null?void 0:O.call(A)}},function(){return _.D(_.d$l,{numberText:function(){return A.animatedTextProps().numberText},
numberValue:function(){return A.animatedTextProps().numberValue},
heightPx:function(){return A.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return A.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return A.animatedTextProps().shouldAnimate},
forceRollUp:function(){return A.animatedTextProps().forceRollUp}})}),_.D(_.w9,{when:function(){var O;
return(O=A.formattedButtonText)==null?void 0:O.call(A)}},function(){return _.D(_.Xg,{text:function(){return Object.assign({},A.formattedButtonText(),{lineBreakMode:L()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":A.formattedButtonText().lineBreakMode,
alignment:L()?"TEXT_ALIGNMENT_CENTER":A.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!L()}})}),_.D(_.w9,{when:function(){var O,X;
return((O=A.iconPosition)==null?void 0:O.call(A))==="icon-with-label"&&((X=A.text)==null?void 0:X.call(A))}},function(){return _.D(_.Xg,{text:function(){return{content:A.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.D(_.pB,null,function(){return A.text})))},"s"),ERl=_.xa(function(A){return _.D(_.e,{debugInstance:"kM7Sgc",
cond:A.hasLabel,then:function(){var L;return _.D("label",{class:A.className},A.children,(L=A.textContent)==null?void 0:L.call(A))},
else:function(){return A.children}})},"t"),Ss=_.xa(function(A){return A.children},"u");var Yfs=on("stamper-context");var nR6=_.xa(function(A){var L=_.sC(),O=_.d(_.uQ(void 0,void 0,"Z7xOte")),X=O.next().value,x=O.next().value;O=_.d(_.uQ(void 0,void 0,"ppqp2e"));var J=O.next().value,Y=O.next().value;O=_.d(_.uQ(0,void 0,"bD1Mhe"));var T=O.next().value,V=O.next().value;O=_.E4(function(){return T()===3?"ytPopoverComponentClosing":""},void 0,"kVITif");
var E=_.py(function(){switch(T()){case 1:V(2);break;case 3:var n,t;(t=(n=L.value).hidePopover)==null||t.call(n);V(0);x(void 0);Y(void 0)}});
_.ND(function(){if(A.show()){var n;x((n=A.children)==null?void 0:n.call(A));var t;Y((t=A.location)==null?void 0:t.call(A));switch(T()){case 0:var b,S;(S=(b=L.value).showPopover)==null||S.call(b);V(1);break;case 3:V(1);var w,l;(l=(w=L.value).hidePopover)==null||l.call(w);var F,R;(R=(F=L.value).showPopover)==null||R.call(F)}}else switch(T()){case 2:V(3);break;case 1:var y,M;(M=(y=L.value).hidePopover)==null||M.call(y);x(void 0);Y(void 0);V(0)}},"umhOQd");
_.GD(function(){});
return _.D("yt-popover",{popover:"manual",el:L,style:_.rl({left:function(){var n;return(n=J())==null?void 0:n.left},
top:function(){var n;return(n=J())==null?void 0:n.top},
bottom:function(){var n;return(n=J())==null?void 0:n.bottom},
right:function(){var n;return(n=J())==null?void 0:n.right}}),
class:_.qn("ytPopoverComponentHost",O,A.classNames),"on:animationend":E},X)},"v");var tFH={left:"0px",right:"auto",top:"0px",bottom:"auto"},bFu=function(){var A=this;this.registerTooltipElement=function(O){var X;A.tooltipElement=(X=O.querySelector("yt-popover"))!=null?X:void 0};
var L=_.d(_.uQ(void 0,void 0,"z4iHWd"));this.state=L.next().value;this.setState=L.next().value;L=_.d(_.uQ(void 0,void 0,"uKDcaf"));this.schedulerJobID=L.next().value;this.setSchedulerJobID=L.next().value},cdr=function(A,L){var O=FV,X=_.c1.addJob(function(){var x=hV6(O,A,L);
O.setState({text:L.text,location:x,anchor:A,offset:L.offset})},4,L.delay);
O.setSchedulerJobID(X)},Cos=function(){var A=FV,L=A.schedulerJobID();
L&&(_.c1.cancelJob(L),A.setSchedulerJobID(void 0));A.setState(void 0)};
bFu.prototype.notify=function(A,L){var O;((O=this.state())==null?void 0:O.anchor)===A&&(O=hV6(this,A,L),this.setState({text:L.text,location:O,anchor:A,offset:L.offset}))};
var hV6=function(A,L,O){var X=L.getBoundingClientRect();L=window.innerWidth;var x=window.innerHeight,J=O.location,Y=O.offset;O=O.text;if(A=A.tooltipElement){var T=getComputedStyle(A);A=T.font;var V=Cy(T.lineHeight),E=Cy(T.paddingLeft),n=Cy(T.paddingRight),t=Cy(T.paddingTop);T=Cy(T.paddingBottom);var b=document.createElement("canvas").getContext("2d");b.font=A;O={width:b.measureText(O).width+E+n,height:V+t+T}}else O=void 0;A=O;if(!A)return tFH;O=A.width;A=A.height;E=Y+A;t=Y+O;V=X.top>=E;E=x-X.bottom>=
E;n=X.left>=t;t=L-X.right>=t;T=J;switch(J){case "top":!V&&E&&(T="bottom");break;case "bottom":!E&&V&&(T="top");break;case "left":!n&&t&&(T="right");break;case "right":!t&&n&&(T="left")}switch(T){case "top":J=X.left+X.width/2-O/2;X=X.top-A-Y;break;case "bottom":J=X.left+X.width/2-O/2;X=X.bottom+Y;break;case "left":J=X.left-O-Y;X=X.top+X.height/2-A/2;break;case "right":J=X.right+Y;X=X.top+X.height/2-A/2;break;default:J=X.left+X.width/2-O/2,X=X.bottom+Y}Y=Object.assign({},tFH);J+O>L?(Y.right="0px",Y.left=
"auto"):(Y.left=Math.round(Math.max(0,J)+window.scrollX)+"px",Y.right="auto");X+A>x?(Y.bottom="0px",Y.top="auto"):(Y.top=Math.round(Math.max(0,X)+window.scrollY)+"px",Y.bottom="auto");return Y};var FV;FV=new bFu;_.SGN=_.xa(function(){var A=_.E4(function(){var O;return(O=FV.state())==null?void 0:O.text},void 0,"KoaMVc"),L=_.E4(function(){var O;
return(O=FV.state())==null?void 0:O.location},void 0,"R6s5tc");
return _.D("yt-tooltip",{class:"ytTooltipContainerHost",el:_.sC(FV.registerTooltipElement),"aria-hidden":"true"},_.D(nR6,{classNames:"ytTooltipContainerContent",location:L,show:function(){return!!A()}},A))},"w");_.xf=_.xa(function(A){var L=A.data;var O=A.icon;var X=A.iconName;var x=A.secondaryIcon;var J=A.secondaryIconName;var Y=A.focusedOverride;var T=A.clientOnlyWizTooltipsEnabled;_.GWO();var V=ey_(L),E=V.size,n=V.style;A=V.disabled;var t=V.onTap,b=V.alignByText,S=V.aTagConfig,w=V.customColors,l=V.segmentedPosition,F=V.toggled,R=V.toggleable,y=V.accessibilityLabel,M=V.onToggle,H=V.iconPosition,z=V.oneOffCustomTextWrap,a=V.disableTextEllipsis,xe=V.disableBackdropFilter,ur=V.tooltipText,eD=V.ariaHidden,gu=
V.tabIndex,ir=V.buttonText,SD=V.formattedButtonText,HJ=V.animatedTextProps,mM=tAd(L,O,x,X,J,Y),Vu=mM.type;O=mM.shouldFocus;X=mM.hasIconLeading;x=mM.hasIconTrailing;var cn=mM.hasIconLeadingTrailing,Tj=mM.hasIconOnly;J=mM.hasIconOnly40;var Uu=mM.hasIconWithLabel;Y=mM.iconButton;var Eg=mM.visiblyDisabled;V=mM.overrideSmallSizeIcon;var DN=mM.iconToRender;mM=mM.secondaryIconToRender;var NN=_.d(FEJ(ur)).next().value,bJ={},MN={};return _.D(ERl,{className:_.qn("yt-spec-button-shape-with-label",(bJ["yt-spec-button-shape-with-label--is-overlay"]=
function(){return n()==="overlay"||n()==="overlay-dark"},bJ)),
hasLabel:Uu,textContent:function(){return _.D(D$J,{text:ir,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:z,iconPosition:H,formattedButtonText:SD,animatedTextProps:HJ})}},_.D(VFl,{aTagConfig:S,
className:_.qn("yt-spec-button-shape-next",function(){return S_J(Vu())},function(){return Eg()?void 0:q_e(n())},function(){return gSu(E())},(MN["yt-spec-button-shape-next--disabled"]=Eg,MN["yt-spec-button-shape-next--focused"]=O,MN["yt-spec-button-shape-next--icon-trailing"]=x,MN["yt-spec-button-shape-next--icon-leading"]=X,MN["yt-spec-button-shape-next--icon-leading-trailing"]=cn,MN["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return cn()&&!(ir()||SD())},MN["yt-spec-button-shape-next--icon-button"]=
function(){return Tj()||Uu()},MN["yt-spec-button-shape-next--icon-only-default"]=J,MN["yt-spec-button-shape-next--align-by-text"]=b,MN["yt-spec-button-shape-next--segmented-start"]=function(){return l()==="start"},MN["yt-spec-button-shape-next--segmented-end"]=function(){return l()==="end"},MN["yt-spec-button-shape-next--override-small-size-icon"]=V,MN["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=z,MN["yt-spec-button-shape-next--disable-text-ellipsis"]=a,MN["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!xe()&&hys()},MN)),
style:function(){return waM(w()).style},
onClick:function(Js){t==null||t(Js);R()&&(M==null||M(Js))},
disabled:A,ariaLabel:y,toggleable:R,toggled:F,title:function(){return(T==null?0:T())||!ur()?"":ur()},
visiblyDisabled:Eg,ariaHidden:eD,tabIndex:gu,ref:function(Js){(T==null?0:T())&&NN(Js)}},_.D(eV3,{data:L,
hasIconLeading:X,hasIconLeadingTrailing:cn,hasIconTrailing:x,iconButton:Y,icon:DN,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:mM})))},"x");
_.xf.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};var qG3=_.xa(function(A){var L=A.data;var O=A.id;var X=A.className;var x=A.iconName;var J=A.secondaryIconName;A=_.d(_.uQ(!1,void 0,"uDRWyd"));var Y=A.next().value,T=A.next().value,V=function(){var n=_.X5().resolve(_.Ot(_.bv));n&&T(n.isKeyBoardInUse())},E=function(){T(!1)};
A=_.av("yt-button-shape",function(n){if(_.X5().resolve(_.Ot(_.bv)))return n.addEventListener("focusin",V),n.addEventListener("focusout",E),function(){n.removeEventListener("focusin",V);n.removeEventListener("focusout",E)}});
return _.D("yt-button-shape",{el:A,id:O,class:X},_.D(_.e,{cond:L,then:function(){return _.D(_.xf,{data:L,iconName:x,secondaryIconName:J,focusedOverride:Y})}}))},"y");
_.h("web_wiz_button_shape")&&_.Y4(qG3,"yt-button-shape",{props:{data:_.x5,id:_.x5,className:_.x5,iconName:_.x5,secondaryIconName:_.x5,clientOnlyWizTooltipsEnabled:_.x5},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var qr=function(){var A=_.G.apply(this,arguments)||this;A.keyboardFocused=!1;return A};
_.g(qr,_.G);qr.prototype.onFocus=function(){var A=_.X5().resolve(_.Ot(_.bv));A&&(this.keyboardFocused=A.isKeyBoardInUse())};
qr.prototype.onBlur=function(){this.keyboardFocused=!1};
qr.prototype.renderIdom=function(){var A=this;if(this.data){var L=GJ(this.data,!!this.iconName,this.data.ignoreIconSizeOverride),O=nSu(this.data);this.data.focused=this.keyboardFocused;KEp(this.data,function(){var X;fT("yt-icon",{icon:A.iconName,active:(X=A.data)==null?void 0:X.toggled,size:L,style:"width: "+L+"px; height: "+L+"px;",iconFilter:O},MD)},function(){var X;
fT("yt-icon",{icon:A.secondaryIconName,active:(X=A.data)==null?void 0:X.toggled,size:L,style:"width: "+L+"px; height: "+L+"px;",iconFilter:O},MD)});
_.P4(this.hostElement,"yt-renderidom-finished")}};
_.v2.Object.defineProperties(qr,{template:{configurable:!0,enumerable:!0,get:function(){if(OF6===void 0){var A=document.createElement("template");_.p(A,"\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");
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);A.content.insertBefore(LVL().content.cloneNode(!0),A.content.firstChild);A.content.insertBefore(obH().content.cloneNode(!0),A.content.firstChild);OF6=A}A=OF6;return A}}});
qr.prototype.onBlur=qr.prototype.onBlur;qr.prototype.onFocus=qr.prototype.onFocus;_.I([_.N(FFN),_.Z("design:type",Object)],qr.prototype,"ytIdomTemplatingBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],qr.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",String)],qr.prototype,"iconName",void 0);_.I([_.K(),_.Z("design:type",String)],qr.prototype,"secondaryIconName",void 0);_.I([_.K(),_.Z("design:type",Object)],qr.prototype,"keyboardFocused",void 0);
_.I([_.by("focusin"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qr.prototype,"onFocus",null);_.I([_.by("focusout"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qr.prototype,"onBlur",null);_.I([_.yU({is:"yt-button-shape",isInjectionRoot:!0,disableElementRegistration:_.h("web_wiz_button_shape")})],qr);_.Y4(_.xa(function(A){function L(){O().seconds&&J(Tfd({seconds:Number(O().seconds)-Date.now()/1E3}))}
var O=A.targetTimestamp;A=A.className;var X=_.d(_.uQ("",void 0,"U1Q8Ae")),x=X.next().value,J=X.next().value;_.r9(function(){L();var Y=setInterval(function(){L()},1E3);
_.rF(function(){clearInterval(Y)})});
return _.D("yt-countdown",{class:_.qn("ytCountDownHost",A)},_.D("div",null,x))},"z"),"yt-countdown",{props:{targetTimestamp:_.x5,
className:_.dl}});_.gj=_.xa(function(A){var L=A.data;var O=A.className;var X=A.style;var x=A.useOutlinedIcon;var J=A.buttonOverrides;var Y=A.animatedTextProps;var T=A.onClick;var V=A.target;var E=_.av("button-view-model",function(y){y.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var M=L().targetId;M&&_.Zp6(_.Q6(),M,y);return function(){I03(_.Q6(),y)}}),n=function(){return L().iconName},t,b=(t=_.X5().resolve(_.Ot(_.oy)))==null?void 0:t(),S=function(){var y=L();
var M=J==null?void 0:J(),H=Y==null?void 0:Y(),z=V==null?void 0:V();if(y){var a=ydO(y.type);var xe=!!y.title||!!y.titleFormatted;var ur=!(!y.iconName&&!y.iconImage);xe=ur&&!xe?"icon-only":ur?y.iconTrailing||y.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;xe==="icon-only-40"&&(a="text");var eD,gu=(eD=M==null?void 0:M.disabled)!=null?eD:y.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||y.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";H=H&&H.numberText&&!isNaN(Number(H.numberValue))?
H:void 0;eD=Object;ur=eD.assign;var ir=y.title,SD=y.titleFormatted,HJ=y.accessibilityText,mM=I$u(y.style),Vu=ZGJ(y.state),cn=j1s(y.buttonSize);z=f$u(y,E,gu,T,z);gu=gu&&!y.onDisabledTap;var Tj=Q1u(y,E),Uu=y.customFontColor,Eg=y.customBackgroundColor;var DN=y.customBorderColor;var NN=y.customDarkThemeFontColor,bJ=y.customDarkThemeBackgroundColor,MN=y.customDarkThemeBorderColor;Uu=b&&NN?NN:Uu;Eg=b&&bJ?bJ:Eg;DN=b&&MN?MN:DN;DN={color:Uu?_.Hy(Uu):void 0,backgroundColor:Eg?_.Hy(Eg):void 0,borderColor:DN?
_.Hy(DN):void 0};y=ur.call(eD,{},{buttonText:ir,formattedButtonText:SD,animatedTextProps:H,accessibilityLabel:HJ,style:mM,type:a,state:Vu,size:cn,iconPosition:xe,onTap:z,disabled:gu,aTagConfig:Tj,customColors:DN,tooltipText:y.tooltip},M)}else y={style:"mono",type:"text",state:"active",size:"M"};y.focused=F();return y},w=function(){return GJ(S(),!!L().iconName)};
A=_.d(_.uQ(!1,void 0,"bl7g4"));t=A.next().value;var l=A.next().value,F=t;A=_.py(function(){var y=_.X5().resolve(_.Ot(_.bv));y&&l(y.isKeyBoardInUse());return!1});
t=_.py(function(){l(!1);return!1});
_.ND(function(){var y,M=_.q(L==null?void 0:(y=L())==null?void 0:y.onVisible,_.WR);M&&_.zi(M,{disableClickTracking:!0})},"MLqBF");
var R=_.h("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");return _.D("button-view-model",{el:E,class:_.qn("yt-spec-button-view-model",O),"on:focusin":A,"on:focusout":t},_.D(_.e,{cond:function(){var y;return(L==null?0:(y=L())==null?0:y.iconImage)?{sources:[L().iconImage]}:void 0},
then:function(y){return _.D(_.xf,{data:S,icon:function(){return _.D(_.XV,{data:y,alt:"",targetWidth:w,targetHeight:w,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:R})},
else:function(){return _.D(_.xf,{data:S,icon:function(){return _.D(_.Ky,{icon:n,active:function(){return(x==null?0:x())?!1:S().toggled},
animateIcon:function(){var y;return!!(X==null?0:(y=X())==null?0:y.animateIcon)},
size:w})},
clientOnlyWizTooltipsEnabled:R})}}))},"A");
_.gj.idomCompat={callbacks:{onClick:!0}};_.Y4(_.xa(function(A){return _.D("yt-button-view-model",{id:A.id,class:_.qn(A.scopingClassName,A.classes),icon:function(){var L;return(L=A.icon)==null?void 0:L.call(A)},
"dialog-dismiss":function(){var L;return((L=A.dialogDismiss)==null?0:L.call(A))?"":void 0}},_.D(_.gj,{data:function(){var L;
return(L=A.data)==null?void 0:L.call(A)},
className:function(){var L;return(L=A.className)==null?void 0:L.call(A)},
style:function(){var L;return(L=A.style)==null?void 0:L.call(A)},
useOutlinedIcon:function(){var L;return(L=A.useOutlinedIcon)==null?void 0:L.call(A)},
buttonOverrides:function(){var L;return(L=A.buttonOverrides)==null?void 0:L.call(A)},
animatedTextProps:function(){var L;return(L=A.animatedTextProps)==null?void 0:L.call(A)},
onClick:function(L){var O;return(O=A.onClick)==null?void 0:O.call(A,L)}}))},"B"),"yt-button-view-model",{props:{data:_.x5,
className:_.x5,style:_.x5,useOutlinedIcon:_.x5,buttonOverrides:_.x5,animatedTextProps:_.x5,onClick:_.dl,scopingClassName:_.x5,id:_.x5,icon:_.x5,dialogDismiss:_.x5,classes:_.x5,target:_.dl}});var wj=function(){var A=_.G.apply(this,arguments)||this;A.isGoalActive=!0;return A};
_.g(wj,_.G);wj.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
wj.prototype.progressBarChanged=function(){var A=_.YJ(this.hostElement).querySelector("#progress-bar-progress"),L,O,X,x=(X=Number((L=this.creatorGoalState)==null?void 0:L.currentGoalCount)/Number((O=this.creatorGoalState)==null?void 0:O.totalGoalCount)*100)!=null?X:0,J;A.style.width=((J=Math.min(x,100))!=null?J:0)+"%"};
wj.prototype.goalStateChanged=function(){var A;this.isGoalActive=((A=this.creatorGoalState)==null?void 0:A.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var L;A={"--yt-progress-bar-color":olu((L=this.creatorGoalState)==null?void 0:L.progressBarColor)};_.eq(this.hostElement,A)};
wj.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.v2.Object.defineProperties(wj.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var A;return this.isGoalActive&&!((A=this.creatorGoalState)==null||!A.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.creatorGoalState)==null?0:A.endTimestampMs){var L;A=Number((L=this.creatorGoalState)==null?void 0:L.endTimestampMs)/1E3;return{seconds:String(A)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.creatorGoalState)==null?0:A.themedTargetImage){var L;A=_.q((L=this.creatorGoalState)==null?void 0:L.themedTargetImage,XLl);return this.isAppDarkTheme()?A==null?void 0:A.imageDark:A==null?void 0:A.imageLight}}}});
_.v2.Object.defineProperties(wj,{template:{configurable:!0,enumerable:!0,get:function(){return C0H()}}});
wj.prototype.goalStateChanged=wj.prototype.goalStateChanged;wj.prototype.progressBarChanged=wj.prototype.progressBarChanged;_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],wj.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.k1),_.Z("design:type",Object)],wj.prototype,"ytLiveChatReduxBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],wj.prototype,"ytRendererBehavior",void 0);
_.I([_.K({selectorArgs:["data.creatorGoalEntityKey"],selector:function(A,L){return _.eM(A.entities,"creatorGoalEntity",L)}}),
_.Z("design:type",Object)],wj.prototype,"creatorGoalState",void 0);_.I([_.K(),_.Z("design:type",Object)],wj.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],wj.prototype,"isGoalActive",void 0);_.I([_.r("creatorGoalState","isGoalActive"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],wj.prototype,"shouldShowCountdown",null);_.I([_.r("creatorGoalState"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],wj.prototype,"endTimestamp",null);
_.I([_.r("creatorGoalState"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],wj.prototype,"targetIconThemedImage",null);_.I([_.hT("creatorGoalState.currentGoalCount"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],wj.prototype,"progressBarChanged",null);_.I([_.hT("creatorGoalState.creatorGoalState"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],wj.prototype,"goalStateChanged",null);
_.I([_.yU({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],wj);_.m(wj,"yt-creator-goal-progress-flow-view-model",function(){return C0H()},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var gRj;var w0j;var pO=function(){return _.G.apply(this,arguments)||this};
_.g(pO,_.G);pO.prototype.attached=function(){var A,L,O;if(this==null?0:(A=this.data)==null?0:(L=A.pdgPurchasedBumperLoggingDirectives)==null?0:(O=L.loggingDirectives)==null?0:O.trackingParams){var X,x,J;zye(this==null?void 0:(X=this.data)==null?void 0:(x=X.pdgPurchasedBumperLoggingDirectives)==null?void 0:(J=x.loggingDirectives)==null?void 0:J.trackingParams)}};
pO.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],pO.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],pO.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],pO.prototype,"data",void 0);_.I([_.yU({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],pO);
_.m(pO,"yt-live-chat-item-bumper-view-model",function(){if(w0j===void 0){var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;gRj===void 0&&(gRj=document.createElement("template"));var X=gRj;O.call(L,X.content.cloneNode(!0),A.content.firstChild);w0j=A}A=w0j;return A},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var p0j;var iF3;_.Xi=function(A,L){this.data=A;this.actions=L;this.data=A;this.actions=L};
_.aQ=function(){};_.iv={};_.iv.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(A,L){BKd(this.hostElement,A,L)},
getNavigationEndpointPopupAction:function(A){return MAP(A,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(A,L){$2s(this.hostElement,A,L,this.openPopupConfig)}};var xx_=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.Nr={};
_.Nr.YtEndpointBehavior=[_.iv.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.ms("openPopupConfig");(this.useClickHandler=_.fB("useClickHandler",!1))?this.hostElement.addEventListener("click",n4(this,this.onEndpointClick_)):(Cd(this.hostElement,"tap",n4(this,this.onEndpointTap_)),Cd(this.hostElement,"touchend",n4(this,this.onEndpointTouchEnd_)));Cd(this.hostElement,"touchstart",n4(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
n4(this,this.onEndpointTapStart_))},
onEndpointClick_:function(A){U2y(this.hostElement,A,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(A){var L=this.hostElement,O=this.openPopupConfig,X=this.disableCommandHandlerOverride;X=X===void 0?!1:X;var x=a$y(A);if(x){x.href&&MT(x.href);var J=A.detail;var Y=J.sourceEvent;J=J.preventer;Y=Y.button!==void 0?Y.button===0&&!Q3(Y):J?!Q3(J):!0;x.data&&Y&&kWe(L,x,A,O,X)}},
onEndpointTouchEnd_:function(A){Q3(A)||a$y(A)&&A.preventDefault()},
onEndpointTapStart_:function(A){Ood(A)}}];var spD="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),P9D=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var N56={};N56.YtPlaintextBehavior=[_.lh,{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(A){A.preventDefault();A=A.clipboardData.getData("text/plain");document.execCommand("insertText",!1,A)},
preventRichTextFormatting_:function(A){_.SX&&(A=A.detail.keyboardEvent,A.stopImmediatePropagation(),A.preventDefault())}}];var roJ;var KVu;var rj=function(){var A=_.G.apply(this,arguments)||this;A.ignoreShadyDom=!1;A.hasChange_=!1;A.hasSetTitle_=!1;A.useIOObserverForVisibilityLogging_=_.h("kevlar_use_vimio_behavior")&&_.ms("INNERTUBE_CLIENT_NAME")==="WEB";A.ytFormattedStringObserverHandlerKeys_=void 0;return A};
_.g(rj,_.G);_.P=rj.prototype;_.P.created=function(){this.useIOObserverForVisibilityLogging_=_.h("kevlar_use_vimio_behavior")&&_.ms("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.P.ready=function(){_.ms("HTML_DIR")==="rtl"?this.useMixedDirectionFormattedStrings?this.hostElement.dir="rtl":this.respectHtmlDir||(this.hostElement.dir="auto"):this.respectLangDir&&(this.hostElement.dir="auto",this.hostElement.style.textAlign="left");this.enableContentEditableChanged_()};
_.P.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.P.detached=function(){this.unobserveIOObservers_()};
_.P.clearContents_=function(){for(var A=this.getRoot(),L=A.lastChild;L&&L.tagName!=="STYLE";){try{A.removeChild(L)}catch(O){break}L=A.lastChild}};
_.P.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var A=_.d(this.ytFormattedStringObserverHandlerKeys_),L=A.next();!L.done;L=A.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(L.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.P.resetForAttributedString=function(){var A=this.getRoot();!A.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),A.appendChild(this.ytAttributedStringElementRef))};
_.P.resetForFormattedString=function(){var A=this.getRoot(),L=A.querySelector("yt-attributed-string");L&&(this.ytAttributedStringElementRef=A.removeChild(L))};
_.P.textChanged=function(){this.textChanged_(this.text)};
_.P.textChanged_=function(A){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!A||!A.runs&&!A.simpleText;if(_.h("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var L=this.hostElement.firstChild;L&&L.nodeName==="FONT";){var O=L;L=L.nextSibling;this.hostElement.removeChild(O)}L=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
O=A.simpleText;var X;!O&&((X=A.runs)==null?void 0:X.length)===1&&this.isSimpleString_(A.runs[0])&&(O=A.runs[0].text);O!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.ms("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(O!==void 0){try{L.textContent=O}catch(x){}L.textContent||(this.isEmpty=!0)}else A=A.runs,O!==void 0&&(A=[{text:O}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),A&&this.updateText_(A),
L.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.P.ellipsisTruncateChanged_=function(){!this.ellipsisTruncate||this.hostElement.title&&!this.hasSetTitle_?this.hasSetTitle_&&(this.hostElement.removeAttribute("title"),this.hasSetTitle_=!1):(this.hostElement.title=this.getRawText(),this.hasSetTitle_=!0)};
_.P.computeAriaLabel_=function(A){return A};
_.P.computeEllipsisTruncateStyling=function(A,L){return A&&!L};
_.P.computeUseAttributedString=function(A){return _.h("web_replace_formatted_with_attributed_string")&&Ebe(A)&&!this.disableAttributedString&&!this.enableContentEditable};
_.P.setNodeStyle_=function(A,L){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.h("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?L.removeAttribute("dir"):L.setAttribute("dir","auto");L.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");L.style.color="";var O=null;this.noStyles||(A.bold&&(L.classList.add("bold"),O="bold"),A.deemphasize&&(L.classList.add("deemphasize"),O="deemphasize"),A.italics&&L.classList.add("italic"),
A.strikethrough&&L.classList.add("strikethrough"),A.errorUnderline&&(L.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),A.bracket&&L.classList.add("bracket"),A.textColor&&(L.style.color=_.Wy(A.textColor)));O!==L.getAttribute("style-target")&&(O?L.setAttribute("style-target",O):L.removeAttribute("style-target"))};
_.P.setUpVisibilityLogging_=function(A,L){var O=this;this.setNodeTrackingParams_(A,L);var X;((X=L.data)==null?0:X.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(A=this.ytRendererBehavior.visibilityObserver.observe(L,function(x){var J=O.ytRendererBehavior.getVisibilityLogger();J&&J.reportShown(x)},this.ytRendererBehavior.visibilityOptionVisible_),L=this.ytRendererBehavior.visibilityObserver.observe(L,function(x){var J=O.ytRendererBehavior.getVisibilityLogger();
J&&J.reportHidden(x)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(A),this.ytFormattedStringObserverHandlerKeys_.push(L))};
_.P.setNodeTrackingParams_=function(A,L){L.data||(L.data={});if((A=A.loggingDirectives?A.loggingDirectives.trackingParams:null)||L.data.trackingParams)L.data.trackingParams=A};
_.P.computeHasLinkOnly_=function(A){return!(!A||A.length!==1||this.noEndpoints||!A[0].navigationEndpoint)};
_.P.getRoot=function(){var A=this.buildScopeDomOptions();return this.enableContentEditable?_.YJ(_.YJ(this.hostElement,A).querySelector("[contenteditable]")):_.YJ(this.hostElement,A)};
_.P.fixContenteditableScope=function(){var A=function(L){L&&(L.nodeType===1&&L.classList&&(L.classList.add("style-scope"),L.classList.add("yt-formatted-string")),L.childNodes&&L.childNodes.forEach(function(O){A(O)}))};
A(this.getRoot())};
_.P.updateText_=function(A){for(var L=A.length,O=this.getRoot(),X=O.firstChild;X&&X.nodeName==="STYLE";)X=X.nextSibling;for(var x=0;x<L&&X;){var J=A[x],Y=_.h("remove_cr_char")&&J.text?J.text.replace("\r",""):J.text;if(this.isSimpleString_(J)&&!this.useMixedDirectionFormattedStrings)if(X.nodeName==="#text"){X.textContent!=Y&&(X.textContent=Y);x++;X=X.nextSibling;continue}else break;if(_.q(J,ZX))break;else if(!this.noEndpoints&&J.navigationEndpoint){if(X.nodeName!=="A")break;this.setDataOnAnchor_(X,
J.navigationEndpoint)}else if(X.nodeName!=="SPAN")break;this.setNodeStyle_(J,X);this.setUpVisibilityLogging_(J,X);X.textContent!=Y&&(X.textContent=Y);x++;X=X.nextSibling}if(X)for(J=O.lastChild,X=x?X.previousSibling:null;J&&J!=X;){try{O.removeChild(J)}catch(T){break}J=O.lastChild}x!==L&&this.addTextNodes_(A,x)};
_.P.addTextNodes_=function(A,L){for(var O=document.createDocumentFragment(),X=A.length;L<X;L++){var x=A[L],J=_.h("remove_cr_char")&&x.text?x.text.replace("\r",""):x.text;if(this.isSimpleString_(x)&&!this.useMixedDirectionFormattedStrings)O.appendChild(document.createTextNode(J));else{var Y=_.q(x,ZX);if(Y){if(Y.image){var T=document.createElement("img");Y.isCustomEmoji||T.classList.add("small-emoji");T.classList.add("emoji");Y.isCustomEmoji&&(T.dataset.emojiId=Y.emojiId);T.src=_.uB(Y.image.thumbnails,
this.emojiSize);(x=this.get("image.accessibility.accessibilityData.label",Y))?T.alt=x:Y.shortcuts&&Y.shortcuts.length>0?T.alt=Y.shortcuts[0]:Y.emojiId&&(T.alt=Y.emojiId);O.appendChild(T);this.hasEmoji=!0}}else!this.noEndpoints&&x.navigationEndpoint?(T=document.createElement("a"),T.classList.add("yt-simple-endpoint"),T.setAttribute("spellcheck","false"),this.setDataOnAnchor_(T,x.navigationEndpoint)):T=document.createElement("span"),this.setNodeStyle_(x,T),this.setUpVisibilityLogging_(x,T),T.appendChild(document.createTextNode(J)),
O.appendChild(T)}}this.getRoot().appendChild(O)};
_.P.isSimpleString_=function(A){return(this.noEndpoints||!A.navigationEndpoint)&&!_.q(A,ZX)&&(this.noStyles||!(A.bold||A.deemphasize||A.italics||A.strikethrough||A.errorUnderline||A.bracket||A.textColor))&&!A.loggingDirectives};
_.P.getRawText=function(){return _.vG(this.text)};
_.P.getFirstRunText=function(){var A;if(((A=this.text)==null?0:A.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.P.setFirstRunText=function(A){var L;((L=this.text)==null?0:L.runs)&&this.text.runs[0]&&(this.text.runs[0].text=A,this.textChanged_(this.text))};
_.P.setDataOnAnchor_=function(A,L){var O=this;!_.h("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(L)||this.isSignalServiceEndpoint_(L)?(A.onclick=this.serviceEndpointHandler_(L),yo(A,"#")):rIe({text:this.text,command:L},function(){yIu(A,L,O.target)})};
_.P.isServiceEndpoint_=function(A){var L;return!((L=_.q(A==null?void 0:A.commandMetadata,_.LM))==null||!L.sendPost)};
_.P.isSignalServiceEndpoint_=function(A){return!!_.q(A,_.nM)};
_.P.serviceEndpointHandler_=function(A){var L=this;return function(O){_.TZ(L.hostElement,[A]);O.preventDefault()}};
_.P.overrideAriaLabelChanged_=function(){var A=this.getRoot();this.enableContentEditable&&A&&A.setAttribute("aria-label",this.overrideAriaLabel)};
_.P.enableContentEditableChanged_=function(){var A=this,L=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),L=_.YJ(this.hostElement,L),!L.lastChild||L.lastChild instanceof HTMLElement&&L.lastChild.id!=="contenteditable-root"){var O=document.createElement("div");O.id="contenteditable-root";O.setAttribute("contenteditable","true");O.setAttribute("dir","auto");O.onfocus=function(){A.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
L.appendChild(O);this.overrideAriaLabel&&O.setAttribute("aria-label",this.overrideAriaLabel)}}else O=_.uy(this.hostElement).firstChild,O instanceof HTMLElement&&O.id==="contenteditable-root"&&_.YJ(this.hostElement,L).removeChild(O)};
_.P.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.P.getNodesForVisibilityLogging_=function(){return _.DF(this.getRoot().childNodes,function(A){var L;return!((L=A.data)==null||!L.trackingParams)})};
_.P.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.P.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var A=this.ytRendererBehavior.getVisibilityLogger();A&&this.getNodesForVisibilityLogging_().forEach(function(L){A.reportShown(L)})}};
_.P.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var A=this.ytRendererBehavior.getVisibilityLogger();A&&this.getNodesForVisibilityLogging_().forEach(function(L){A.reportHidden(L)})}};
_.v2.Object.defineProperties(rj.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.h("enable_mixed_direction_formatted_strings")}}});
rj.prototype.enableContentEditableChanged_=rj.prototype.enableContentEditableChanged_;rj.prototype.overrideAriaLabelChanged_=rj.prototype.overrideAriaLabelChanged_;rj.prototype.ellipsisTruncateChanged_=rj.prototype.ellipsisTruncateChanged_;rj.prototype.textChanged=rj.prototype.textChanged;_.I([_.N(N56.YtPlaintextBehavior),_.Z("design:type",Object)],rj.prototype,"ytPlaintextBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],rj.prototype,"ytComponentBehavior",void 0);
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],rj.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],rj.prototype,"text",void 0);_.I([_.K(),_.Z("design:type",Boolean)],rj.prototype,"noEndpoints",void 0);_.I([_.K(),_.Z("design:type",Boolean)],rj.prototype,"noStyles",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],rj.prototype,"isDarkTheme",void 0);
_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],rj.prototype,"splitLines",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],rj.prototype,"forceDefaultStyle",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],rj.prototype,"ellipsisTruncate",void 0);_.I([_.K(),_.Z("design:type",Object)],rj.prototype,"ignoreShadyDom",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.Z("design:type",Boolean)],rj.prototype,"ellipsisTruncateStyling",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.Z("design:type",String)],rj.prototype,"ariaLabel",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],rj.prototype,"isEmpty",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.Z("design:type",Boolean)],rj.prototype,"hasLinkOnly_",void 0);_.I([_.K(),_.Z("design:type",Boolean)],rj.prototype,"hasEmoji",void 0);_.I([_.K(),_.Z("design:type",Boolean)],rj.prototype,"disableAttributedString",void 0);_.I([_.K(),_.Z("design:type",Boolean)],rj.prototype,"isOverlay",void 0);_.I([_.K(),_.Z("design:type",Boolean)],rj.prototype,"linkInheritColor",void 0);
_.I([_.K(),_.Z("design:type",Boolean)],rj.prototype,"noPreWrap",void 0);_.I([_.K(),_.Z("design:type",Boolean)],rj.prototype,"userInput",void 0);_.I([_.K({value:16}),_.Z("design:type",Number)],rj.prototype,"emojiSize",void 0);_.I([_.K(),_.Z("design:type",String)],rj.prototype,"target",void 0);_.I([_.K(),_.Z("design:type",Boolean)],rj.prototype,"enableContentEditable",void 0);_.I([_.K(),_.Z("design:type",String)],rj.prototype,"overrideAriaLabel",void 0);
_.I([_.K(),_.Z("design:type",Boolean)],rj.prototype,"respectHtmlDir",void 0);_.I([_.K(),_.Z("design:type",Boolean)],rj.prototype,"respectLangDir",void 0);_.I([_.r("plaintextOnly"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],rj.prototype,"useMixedDirectionFormattedStrings",null);_.I([_.K({computed:"computeUseAttributedString(text)"}),_.Z("design:type",Boolean)],rj.prototype,"useYtAttributedString",void 0);
_.I([_.hT("text"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],rj.prototype,"textChanged",null);_.I([_.hT("ellipsisTruncate"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],rj.prototype,"ellipsisTruncateChanged_",null);_.I([_.hT("overrideAriaLabel"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],rj.prototype,"overrideAriaLabelChanged_",null);
_.I([_.hT("enableContentEditable"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],rj.prototype,"enableContentEditableChanged_",null);_.I([_.yU({is:"yt-formatted-string",disableElementRegistration:!0})],rj);
_.m(rj,"yt-formatted-string",function(){if(KVu===void 0){var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;roJ===void 0&&(roJ=document.createElement("template"));var X=roJ;O.call(L,X.content.cloneNode(!0),A.content.firstChild);KVu=A}A=KVu;return A});var GhN;var lvg;var con;var CLN;var KO=function(){var A=_.G.apply(this,arguments)||this;A.focused=!1;A.disabled=!1;A.isOverlay=!1;return A};
_.g(KO,_.G);KO.prototype.triggerDown=function(){if(!this.disabled){_.TK(this.hostElement,"down",!0);var A;(A=this.currentAnimation)==null||A.cancel()}};
KO.prototype.triggerUp=function(){if(!this.disabled){_.TK(this.hostElement,"down",!1);var A=this.fillElement;var L=this.strokeElement;typeof GroupEffect==="function"?(A=new GroupEffect([TKu(A),VAM(L)]),A=new Animation(A,document.timeline)):A=new YGV(A,L);this.currentAnimation=A;var O;(O=this.currentAnimation)==null||O.play()}};
_.I([_.qR(".stroke"),_.Z("design:type",HTMLElement)],KO.prototype,"strokeElement",void 0);_.I([_.qR(".fill"),_.Z("design:type",HTMLElement)],KO.prototype,"fillElement",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],KO.prototype,"focused",void 0);_.I([_.K(),_.Z("design:type",Object)],KO.prototype,"disabled",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],KO.prototype,"isOverlay",void 0);_.I([_.yU({is:"yt-interaction",disableElementRegistration:!0})],KO);
_.m(KO,"yt-interaction",function(){if(CLN===void 0){var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;con===void 0&&(con=document.createElement("template"));var X=con;O.call(L,X.content.cloneNode(!0),A.content.firstChild);CLN=A}A=CLN;return A},{mode:2});var Gf=function(){return _.G.apply(this,arguments)||this};
_.g(Gf,_.G);_.P=Gf.prototype;_.P.ready=function(){var A=this,L=_.YJ(this.hostElement).querySelector("#button");L.addEventListener("focus",function(){aCu||(aCu=new $pH);A.keyboardFocused=aCu.isKeyBoardInUse()});
L.addEventListener("blur",function(){A.keyboardFocused=!1;A.rippleUp_()})};
_.P.computeTabIndex_=function(A){return A?-1:0};
_.P.computeButtonAriaPressed_=function(A){if(this.toggleable)return A?"true":"false"};
_.P.rippleDown_=function(){_.YJ(this.hostElement).querySelector("#interaction").triggerDown()};
_.P.rippleUp_=function(){_.YJ(this.hostElement).querySelector("#interaction").triggerUp()};
_.P.onPressedChanged_=function(){var A=_.uy(_.YJ(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.uy(_.YJ(this.hostElement).querySelector("#button")).children[0];A&&(A.active=this.pressed)};
Gf.prototype.onPressedChanged_=Gf.prototype.onPressedChanged_;Gf.prototype.rippleUp_=Gf.prototype.rippleUp_;Gf.prototype.rippleDown_=Gf.prototype.rippleDown_;_.I([_.K(),_.Z("design:type",String)],Gf.prototype,"label",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Gf.prototype,"disabled",void 0);_.I([_.K(),_.Z("design:type",Boolean)],Gf.prototype,"pressed",void 0);_.I([_.K(),_.Z("design:type",Object)],Gf.prototype,"toggleable",void 0);
_.I([_.K(),_.Z("design:type",Boolean)],Gf.prototype,"untabbable",void 0);_.I([_.K(),_.Z("design:type",Boolean)],Gf.prototype,"keyboardFocused",void 0);_.I([_.by("down"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Gf.prototype,"rippleDown_",null);_.I([_.by("up"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Gf.prototype,"rippleUp_",null);
_.I([_.hT("pressed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Gf.prototype,"onPressedChanged_",null);_.I([_.yU({is:"yt-icon-button",disableElementRegistration:!0})],Gf);
_.m(Gf,"yt-icon-button",function(){if(lvg===void 0){var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;GhN===void 0&&(GhN=document.createElement("template"));var X=GhN;O.call(L,X.content.cloneNode(!0),A.content.firstChild);lvg=A}A=lvg;return A},{mode:2});var FV3=_.AW(["aria-"]),lv={};lv.YtRenderButtonBehavior=[_.B.YtRendererBehavior,_.Nr.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!!_.X5().resolve(_.Ot(_.bv))&&_.h("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 A=this.computeHref_(this.endpoint,!0);A?yo(this.elements_.endpoint,A):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){A=this.buttonClass.split(" ");A=_.d(A);for(var L=A.next();!L.done;L=A.next())L=L.value,_.TK(this.hostElement,L,!0),this.elements_.button&&_.TK(this.elements_.button,L,!0),this.elements_.text&&_.TK(this.elements_.text,L,!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&&(A=null,this.buttonAccessibility&&(A=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=A:A?_.oP([_.xT(FV3)],this.elements_.button,"aria-label",A):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var A=_.X5().resolve(_.Ot(_.bv));A&&(this.keyboardFocused=A.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.uv("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,_.ii(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.ii(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(A,L){if(L)for(A=L.split(" "),A=_.d(A),L=A.next();!L.done;L=A.next())L=L.value,_.TK(this.hostElement,L,!1),this.elements_.button&&_.TK(this.elements_.button,L,!1),this.elements_.text&&_.TK(this.elements_.text,L,!1)},
buttonIconChanged_:function(A){this.elements_.icon?A?(this.elements_.icon.icon=A,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.ii(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.VU(this.hostElement,"is-paper-button-with-icon",!1)):A&&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"&&_.ii(this.elements_.button).appendChild(this.elements_.icon):_.ii(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.VU(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(A){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,A){var L=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(A){case "yt_icon_button_with_label":L=!0;_.TK(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();A=_.ii(this.elements_.button).firstElementChild;
this.elements_.icon=A;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.ii(this.elements_.endpoint).appendChild(this.elements_.button);_.ii(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.uv("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;_.ii(this.elements_.button).appendChild(this.elements_.text);_.ii(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":L=!0,this.elements_.button=this.getYtIconButton_(),A=_.ii(this.elements_.button).firstElementChild,this.elements_.icon=A,this.setIconActive_(this.elements_.icon),
_.ii(this.elements_.endpoint).appendChild(this.elements_.button)}_.VU(this.hostElement,"is-icon-button",L);_.VU(this.hostElement,"is-paper-button",!L);_.VU(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 O;_.YJ((O=this.container.hostElement)!=null?O:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.ii(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(A){if(A!=void 0||this.disabled)this.disabled=A,this.elements_.button&&(this.elements_.button.disabled=A)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(A){_.h("kevlar_system_icons")&&A&&this.data&&(this.data.isSelected!==void 0?A.active=this.data.isSelected:this.data.isToggled!==void 0&&(A.active=this.data.isToggled))},
observeBasicPalette_:function(A){_.fy(this.hostElement,A)},
disabledChanged_:function(A){this.data&&this.set("data.isDisabled",A)},
onYtButtonTap_:function(A){if(this.disabled)A.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.TZ(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(A=this.disableCommandHandlerOverride,!this.data||!this.data.command||A||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.h("handle_service_request_actions")||_.TZ(this.hostElement,[this.serviceEndpoint]),
_.P4(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.h("handle_service_request_actions")?(A=[],this.serviceEndpoint&&A.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&A.push(this.data.command),A.length&&_.VN(this.hostElement,A,this.hostElement)):this.data&&this.data.command&&(A=this.data.command,A.accountUnlinkCommand||A.accountLinkCommand||A.insertAdCommand||A.insertHighlightMarkerCommand||
A.createLivestreamHighlightClipCommand||A.getVideoUploadFeedbackCommand||A.musicDeletePrivatelyOwnedEntityCommand||A.ypcCancelRecurrenceEndpoint||A.getMultiSelectCommandEndpoint?_.TZ(this.hostElement,[A]):_.VN(this.hostElement,[A],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 A,L=_.YJ((A=this.container.hostElement)!=null?A:this.container);L.lastChild&&L.lastChild.tagName!="STYLE";)try{L.removeChild(L.lastChild)}catch(O){break}},
getYtIconButton_:function(){var A=this.reuseEnabled_()?_.uv("yt-icon-button"):document.createElement("yt-icon-button"),L=_.ii(A).firstElementChild;if(L&&L.is!="yt-icon"){for(L=_.ii(A);L.lastChild;)L.removeChild(L.lastChild);L=null}L||(L=this.getIcon_(),this.setIconActive_(L),_.ii(A).appendChild(L));return A},
reuseEnabled_:function(){return _.h("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.uv("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.uv("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.RVl={};
_.RVl.YtButtonBehavior=[lv.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var A=this.data;A&&(this._setEndpoint(this.computeEndpoint_(A)),this._setServiceEndpoint(this.computeServiceEndpoint_(A)),this._setCommand(this.computeCommand_(A)),this._setButtonIcon(this.computeButtonIcon_(A)),this._setButtonText(this.computeButtonText_(A,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(A)),this._setButtonTooltip(this.computeTooltip_(A)),this._setButtonClass(this.computeButtonClass_(A)),this._setIconPositionType(this.computeIconPositionType_(A)),this.updateRenderedElements())},
setPressedState:function(A){var L;if((L=this.elements_)==null?0:L.button)this.elements_.button.pressed=!!A},
computeIconPositionType_:function(A){return A&&A.iconPosition||null},
computeEndpoint_:function(A){var L=A&&A.navigationEndpoint,O=this.get("data.command.commandMetadata.webCommandMetadata.url"),X=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return L?L:A&&A.command&&A.command.modalEndpoint?A.command:O&&!X&&A.command?A.command:null},
computeServiceEndpoint_:function(A){var L=A&&A.serviceEndpoint,O=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return L?L:O&&A.command?A.command:null},
computeCommand_:function(A){return A&&A.command||null},
computeButtonIcon_:function(A){return A&&A.icon&&A.icon.iconType?_.bV(A.icon.iconType):null},
computeButtonText_:function(A,L){return!L&&A&&A.text||null},
computeAccessibility_:function(A){return this.get("accessibilityData.accessibilityData",A)||A&&A.accessibility||(A&&A.text?{label:this.getSimpleString(A.text)}:null)},
computeTooltip_:function(A){return A?A.isDisabled&&A.disabledTooltip||A.tooltip||null:null},
computeButtonClass_:function(A){var L=A&&A.style?A.style.toLowerCase().replace(/_/g,"-")+" ":"";L+=A&&A.size?A.size.toLowerCase().replace(/_/g,"-")+" ":"";A.colorData&&A.colorData.basicColorPaletteData&&A.colorData.basicColorPaletteData.borderColor&&(L+="palette-with-border");return L.trim()}}];var IQ={};var QKH;var m$l;var fvc,IvL=function(){return fvc!==void 0?fvc:fvc=document.createElement("template")};
document.head.appendChild(IvL().content);var yo6;var ZF6,jKN=function(){return ZF6!==void 0?ZF6:ZF6=document.createElement("template")};
document.head.appendChild(jKN().content);var WVJ;var HFn,zVN=function(){return HFn!==void 0?HFn:HFn=document.createElement("template")};
document.head.appendChild(zVN().content);var B5l;var MFH=document.head,$$V=MFH.appendChild,avn;if(B5l===void 0){var khl=document.createElement("template");_.p(khl,"\x3c!--css-build:shady--\x3e");khl.content.insertBefore(zVN().content.cloneNode(!0),khl.content.firstChild);B5l=khl}avn=B5l;$$V.call(MFH,avn.content);var U$3=document.head,vRg=U$3.appendChild,oR6;if(WVJ===void 0){var AJc=document.createElement("template");_.p(AJc,"\x3c!--css-build:shady--\x3e");AJc.content.insertBefore(jKN().content.cloneNode(!0),AJc.content.firstChild);WVJ=AJc}oR6=WVJ;vRg.call(U$3,oR6.content);var L3H=document.head,OwJ=L3H.appendChild,XEj;if(yo6===void 0){var xuN=document.createElement("template");_.p(xuN,"\x3c!--css-build:shady--\x3e");xuN.content.insertBefore(IvL().content.cloneNode(!0),xuN.content.firstChild);yo6=xuN}XEj=yo6;OwJ.call(L3H,XEj.content);var s2g;_.y3("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");s2g=_.h("web_button_rework")&&_.fB("BUTTON_REWORK")||_.h("web_button_rework_with_live");_.cP=function(){return _.G.apply(this,arguments)||this};
_.g(_.cP,_.G);_.cP.prototype.created=function(){this.openPopupConfig=_.ms("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.cP.prototype.onYtNavigate_=function(A){var L=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(A.detail.endpoint);L&&(this.ytOpenPopupBehavior.openPopup(L),A.stopPropagation(),A.preventDefault())};
_.v2.Object.defineProperties(_.cP,{template:{configurable:!0,enumerable:!0,get:function(){if(m$l===void 0){var A=document.createElement("template");_.p(A,"\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");A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);
var L=A.content,O=L.insertBefore;QKH===void 0&&(QKH=document.createElement("template"));var X=QKH;O.call(L,X.content.cloneNode(!0),A.content.firstChild);m$l=A}A=m$l;return A}}});
_.cP.prototype.onYtNavigate_=_.cP.prototype.onYtNavigate_;_.I([_.N(_.iv.YtOpenPopupBehavior),_.Z("design:type",Object)],_.cP.prototype,"ytOpenPopupBehavior",void 0);_.I([_.N(_.RVl.YtButtonBehavior),_.Z("design:type",Object)],_.cP.prototype,"ytButtonBehavior",void 0);_.I([_.by("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],_.cP.prototype,"onYtNavigate_",null);
_.I([_.yU({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:s2g})],_.cP);var JJN;var P7g=_.h("web_button_rework")&&_.fB("BUTTON_REWORK")||_.h("web_button_rework_with_live"),CO=function(){var A=_.G.apply(this,arguments)||this;A.isPressed=!1;A.forceIconButton=!1;A.forceIconOnly=!1;A.forceModernIconButton=!1;A.skipCommandHandling=!1;A.alignByText=!1;A.fitToVisibleBounds=!0;A.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};A.onTap=function(L){_.P4(A.hostElement,"yt-service-request-sent-button-renderer",L)};
return A};
_.g(CO,_.G);_.P=CO.prototype;_.P.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.P.onClick=function(A){var L,O=this.disabled||((L=this.data)==null?void 0:L.isDisabled);L=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");O&&L&&A.stopPropagation()};
_.P.computeIcon=function(){var A,L,O=(A=this.data)==null?void 0:(L=A.icon)==null?void 0:L.iconType;if(O)return _.bV(O)};
_.P.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.P.handleUpdateButtonAction=function(A){A=_.q(A,gIV);var L=_.q(A==null?void 0:A.updatedButton,_.$t);if(this.data&&A&&L){var O=this.data;O.targetId&&A.targetId&&O.targetId===A.targetId&&(this.data=L)}};
_.v2.Object.defineProperties(CO.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var A=this;if(this.data){var L=DxM({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.P4(A.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.P4(A.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});L.alignByText=this.alignByText;return L}}}});
_.v2.Object.defineProperties(CO,{template:{configurable:!0,enumerable:!0,get:function(){if(JJN===void 0){var A=document.createElement("template");_.p(A,'\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>');JJN=A}A=JJN;return A}}});
CO.prototype.onClick=CO.prototype.onClick;_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],CO.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],CO.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],CO.prototype,"ytActionHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],CO.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],CO.prototype,"isPressed",void 0);
_.I([_.K(),_.Z("design:type",Object)],CO.prototype,"forceIconButton",void 0);_.I([_.K(),_.Z("design:type",Object)],CO.prototype,"forceIconOnly",void 0);_.I([_.K(),_.Z("design:type",Object)],CO.prototype,"forceModernIconButton",void 0);_.I([_.K(),_.Z("design:type",Object)],CO.prototype,"skipCommandHandling",void 0);_.I([_.K(),_.Z("design:type",Object)],CO.prototype,"alignByText",void 0);_.I([_.K(),_.Z("design:type",Object)],CO.prototype,"buttonTooltipPosition",void 0);
_.I([_.K(),_.Z("design:type",Object)],CO.prototype,"fitToVisibleBounds",void 0);_.I([_.K({computed:"computeTooltip(data)"}),_.Z("design:type",Object)],CO.prototype,"tooltip",void 0);_.I([_.K(),_.Z("design:type",Object)],CO.prototype,"overrides",void 0);_.I([_.K(),_.Z("design:type",Boolean)],CO.prototype,"disabled",void 0);_.I([_.by("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],CO.prototype,"onClick",null);
_.I([_.r("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],CO.prototype,"computedButtonShape",null);_.I([_.yU({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!P7g,cssBuildOptOut:!0}),_.yU({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!P7g,cssBuildOptOut:!0})],CO);var duH;var YF3;var FF=function(){var A=_.G.apply(this,arguments)||this;A.empty_=!0;A.loadTime=Infinity;A.pendingPaint=!1;A.hasChange_=!1;A.oldThumbnail_=null;A.oldDelayedSrc_="";A.objectURL_=null;return A};
_.g(FF,_.G);_.P=FF.prototype;_.P.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.P.ready=function(){var A=this.shouldShowPlaceholder_();_.TK(this.hostElement,"no-transition",!0);A&&this.hostElement.classList.add("with-placeholder")};
_.P.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.P.isThumbPreloaded_=function(A){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",A)};
_.P.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||u$J};
_.P.computeThumbnailSrc_=function(A){return A&&A.thumbnails?_.uB(A.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.P.computeAlt_=function(){var A=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&A||""};
_.P.thumbnailChanged_=function(){var A=_.d([this.thumbnail,this.oldThumbnail_]),L=A.next().value;A=A.next().value;this.oldThumbnail_=L;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(A=this.computeThumbnailSrc_(A),this.computeThumbnailSrc_(L)===A))return;_.h("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(L)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):L&&_.fB("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.kd(this,this.onReload_):_.kd(this,this.onShow_):this.resetImage_();L&&(this.hostElement.style.opacity=""+L.opacity)}};
_.P.delayedSrcChanged_=function(){var A=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===A||this.resetImage_()};
_.P.setSrc_=function(A){A?(_.YJ(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.YJ(this.hostElement).querySelector("#img").src=A):(_.YJ(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.P.resetImage_=function(){T7O(this.hostElement);this.empty_=!0;this.setSrc_(u$J);this.ytRendererBehavior.invalidate(!1)};
_.P.observePlaceholderColor_=function(){var A=this.thumbnail&&this.thumbnail.placeholderColor;A?this.hostElement.style.backgroundColor=_.Wy(A):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.P.onLoad_=function(){_.YJ(this.hostElement).querySelector("#img").src&&_.YJ(this.hostElement).querySelector("#img").src!==u$J&&(u$u(this.hostElement),this.notifyOnLoaded&&_.P4(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.P.onError_=function(){var A=this;if(_.h("web_use_cache_for_image_fallback"))bwd(_.YJ(this.hostElement).querySelector("#img").src).then(function(L){A.objectURL_=_.Qo(L).toString();A.setSrc_(A.objectURL_)}).catch(function(){_.h("kevlar_woffle_fallback_image")&&A.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.P.onPrescanVisible=function(){this.onShow_()};
_.P.onVisible=function(){if(_.h("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.P.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var A=this.computeSrc_();A!==_.YJ(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(A))}};
_.P.onReload_=function(){this.empty_=!1;var A=this.computeSrc_();A!==_.YJ(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(A))};
_.P.shouldShowPlaceholder_=function(){return _.h("kevlar_thumbnail_bg")};
FF.prototype.observePlaceholderColor_=FF.prototype.observePlaceholderColor_;FF.prototype.delayedSrcChanged_=FF.prototype.delayedSrcChanged_;FF.prototype.thumbnailChanged_=FF.prototype.thumbnailChanged_;_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",String)],FF.prototype,"alt",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],FF.prototype,"ariaHidden",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",String)],FF.prototype,"ariaLabel",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],FF.prototype,"hidden",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",String)],FF.prototype,"id",void 0);_.I([_.N(_.LO.YtVisibilityBehavior),_.Z("design:type",Object)],FF.prototype,"ytVisibilityBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],FF.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",String)],FF.prototype,"delayedSrc",void 0);
_.I([_.K(),_.Z("design:type",Object)],FF.prototype,"thumbnail",void 0);_.I([_.K({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],FF.prototype,"loaded",void 0);_.I([_.K(),_.Z("design:type",Boolean)],FF.prototype,"notifyOnLoaded",void 0);_.I([_.K(),_.Z("design:type",Number)],FF.prototype,"height",void 0);_.I([_.K(),_.Z("design:type",Number)],FF.prototype,"width",void 0);_.I([_.K({value:function(){return"width"}}),
_.Z("design:type",String)],FF.prototype,"dimension",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],FF.prototype,"fit",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],FF.prototype,"fitHeight",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],FF.prototype,"fitWidth",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",String)],FF.prototype,"objectFit",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",String)],FF.prototype,"objectPosition",void 0);_.I([_.K(),_.Z("design:type",String)],FF.prototype,"preferredThumbnail",void 0);_.I([_.K({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.Z("design:type",String)],FF.prototype,"alt_",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",String)],FF.prototype,"sharedTooltipText",void 0);
_.I([_.K(),_.Z("design:type",Boolean)],FF.prototype,"ftlEligible",void 0);_.I([_.K({value:void 0}),_.Z("design:type",String)],FF.prototype,"observeHiddenOption",void 0);_.I([_.K({value:"observe_once"}),_.Z("design:type",String)],FF.prototype,"observePrescanOption",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],FF.prototype,"roundedContainer",void 0);
_.I([_.iy("thumbnail"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],FF.prototype,"thumbnailChanged_",null);_.I([_.iy("delayedSrc"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],FF.prototype,"delayedSrcChanged_",null);_.I([_.hT("thumbnail.placeholderColor"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],FF.prototype,"observePlaceholderColor_",null);
_.I([_.yU({is:"yt-img-shadow",disableElementRegistration:!0})],FF);var u$J=_.fB("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.DX()(FF,"yt-img-shadow",function(){if(YF3===void 0){var A=document.createElement("template");_.p(A,'\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">');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;duH===void 0&&(duH=document.createElement("template"));var X=duH;O.call(L,X.content.cloneNode(!0),A.content.firstChild);YF3=A}A=YF3;return A},{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 bKJ;_.Rr=new _.Yx("SCREEN_MANAGER_TOKEN");bKJ=new _.Yx("LOG_INITIAL_SCREEN_TOKEN");var T7j=Object.fromEntries(Object.keys({entities:{}}).map(function(A){return[A,A]}));var Vy3=function(A){return function(L,O){return EQP(A,L,O)}}(T7j)(T7j.entities,{selectSfvAudioItemPlaybackState:function(A,L){var O,X;
A=(X=_.eM(A,"sfvAudioItemCurrentlyPlayingEntity",L))!=null?X:void 0;return(O=A==null?void 0:A.sfvAudioItemPlaybackState)!=null?O:void 0},
playlistLoopStateEntitySelector:function(A,L){var O;return(O=_.eM(A,"playlistLoopStateEntity",L))!=null?O:void 0}});_.fO=_.xa(function(A){function L(xe){return _.q(xe,_.Cu)}
function O(){var xe=X().isTogglingDisabled||l()&&X().toggledIsTogglingDisabled,ur=xe||b()?l():!l();F(ur);y(!1);if(!xe){var eD;(eD=Y)==null||eD(!!ur)}var gu;((gu=J)==null?0:gu())||_.wm(_.X5().resolve(_.Rr),X().trackingParams);var ir;if(!ur||!L(X().defaultButtonViewModel)||(ir=J)!=null&&ir()){var SD;!L(X().toggledButtonViewModel)||((SD=J)==null?0:SD())||_.wm(_.X5().resolve(_.Rr),L(X().toggledButtonViewModel).trackingParams)}else _.wm(_.X5().resolve(_.Rr),L(X().defaultButtonViewModel).trackingParams)}
var X=A.data,x=A.buttonShapeOverrides,J=A.disableExplicitClickLogging,Y=A.onToggle,T=A.style,V=A.useOutlinedIcon,E=A.className,n=function(){var xe,ur;return l()?(xe=A.animatedTextPropsToggled)==null?void 0:xe.call(A):(ur=A.animatedTextPropsDefault)==null?void 0:ur.call(A)},t=_.E4(function(){return n()?Object.assign({},n(),{shouldAnimate:R()}):void 0},void 0,"ZKEa0b"),b=function(){var xe;
return((xe=z())==null?void 0:xe.isToggled)!==void 0},S=_.d(_.Nn(function(){var xe,ur,eD;
return b()?(xe=z())==null?void 0:xe.isToggled:(eD=x==null?void 0:(ur=x())==null?void 0:ur.toggled)!=null?eD:X().isToggled})),w=S.next().value;
S=S.next().value;var l=w,F=S;S=_.d(_.Nn(function(){var xe,ur;return(xe=A.animatedTextPropsToggled)==null?void 0:(ur=xe.call(A))==null?void 0:ur.shouldAnimate}));
w=S.next().value;S=S.next().value;var R=w,y=S;w=_.d(_.uQ(!1,void 0,"S11hid"));var M=w.next().value,H=w.next().value,z=_.zJ(function(xe){a:{var ur=X().entityKey,eD=X().toggledStateEntitySelectorType;if(eD)switch(eD){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!ur)break;xe=Vy3.selectSfvAudioItemPlaybackState(xe,ur);if(xe==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){xe={isToggled:!0};break a}if(xe){xe={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":xe=
{isToggled:_.tWu(xe).includes("engagement-panel-comments-section")};break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":xe={isToggled:_.tWu(xe).includes("engagement-panel-live-chat-item-section")};break a;default:_.Rv(new _.pe("Error: entitySelectorType defined but not matched in selector.",xe,eD))}xe=void 0}return xe}),a=function(){return Object.assign({},x==null?void 0:x(),{onToggle:O,
toggleable:!0,toggled:l(),focused:M()})};
return _.D("toggle-button-view-model",{"on:focusin":_.py(function(){var xe=_.X5().resolve(_.Ot(_.bv));xe&&H(xe.isKeyBoardInUse());return!1}),
"on:focusout":_.py(function(){H(!1);return!1})},_.D(_.e,{cond:function(){return l()?L(X().toggledButtonViewModel):L(X().defaultButtonViewModel)},
then:function(xe){return _.D(_.gj,{data:xe,className:E,style:T,useOutlinedIcon:V,buttonOverrides:a,animatedTextProps:t})}}))},"C");
_.fO.idomCompat={callbacks:{onToggle:!0}};_.Y4(_.xa(function(A){return _.D("yt-toggle-button-view-model",{class:function(){var L;return(L=A.scopingClassName)==null?void 0:L.call(A)}},_.D(_.fO,{data:function(){var L;
return(L=A.data)==null?void 0:L.call(A)},
buttonShapeOverrides:function(){var L;return(L=A.overrides)==null?void 0:L.call(A)},
animatedTextPropsDefault:function(){var L;return(L=A.animatedTextPropsDefault)==null?void 0:L.call(A)},
animatedTextPropsToggled:function(){var L;return(L=A.animatedTextPropsToggled)==null?void 0:L.call(A)},
disableExplicitClickLogging:function(){var L;return(L=A.disableExplicitClickLogging)==null?void 0:L.call(A)},
onToggle:function(L){var O;return(O=A.onToggle)==null?void 0:O.call(A,L)},
style:function(){var L;return(L=A.style)==null?void 0:L.call(A)},
useOutlinedIcon:function(){var L;return(L=A.useOutlinedIcon)==null?void 0:L.call(A)},
className:function(){var L;return(L=A.className)==null?void 0:L.call(A)}}))},"D"),"yt-toggle-button-view-model",{props:{data:_.x5,
buttonShapeOverrides:_.x5,overrides:_.x5,animatedTextPropsDefault:_.x5,animatedTextPropsToggled:_.x5,disableExplicitClickLogging:_.x5,onToggle:_.dl,style:_.x5,useOutlinedIcon:_.x5,className:_.x5,scopingClassName:_.x5}});var Ir=function(){return _.G.apply(this,arguments)||this};
_.g(Ir,_.G);Ir.prototype.onTap=function(A){A.stopPropagation();A=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.ZE("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:A})):this.ytLiveChatReduxBehavior.dispatch(_.NV("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:A}))};
_.v2.Object.defineProperties(Ir.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.engagementState)==null?void 0:A.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var A=_.q(this.data.toggleButton,_.Fi),L;if(Number(((L=this.likeCountState)==null?void 0:L.likeCountIfIndifferentNumber)||"0")===0){var O;L=((O=this.data.likeCountPlaceholder)==null?void 0:O.content)||""}else{var X,x,J;L=((X=this.likeCountState)==null?void 0:(x=X.likeCountIfIndifferent)==null?void 0:x.content)||((J=this.data.likeCountPlaceholder)==null?void 0:J.content)||""}var Y,T;O=((Y=this.likeCountState)==null?void 0:(T=
Y.likeCountIfLiked)==null?void 0:T.content)||"1";Y=_.q(A.toggledButtonViewModel,_.Cu);return Object.assign({},A,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.q(A.defaultButtonViewModel,_.Cu),{title:L})},toggledButtonViewModel:{buttonViewModel:Object.assign({},Y,{title:O})}})}}}});
Ir.prototype.onTap=Ir.prototype.onTap;_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],Ir.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Ir.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.k1),_.Z("design:type",Object)],Ir.prototype,"ytLiveChatReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Ir.prototype,"data",void 0);
_.I([_.K({selectorArgs:["data.likeCountEntityKey"],selector:bop}),_.Z("design:type",Object)],Ir.prototype,"likeCountState",void 0);_.I([_.K({selectorArgs:["data.engagementStateKey"],selector:WEy}),_.Z("design:type",Object)],Ir.prototype,"engagementState",void 0);_.I([_.r("data","engagementState"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Ir.prototype,"isLiked",null);
_.I([_.r("data","likeCountState","isLiked"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Ir.prototype,"toggleButton",null);_.I([_.by("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],Ir.prototype,"onTap",null);_.I([_.yU({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],Ir);
_.m(Ir,"yt-live-chat-like-button-view-model",function(){if(iF3===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;p0j===void 0&&(p0j=document.createElement("template"));var X=p0j;O.call(L,X.content.cloneNode(!0),A.content.firstChild);iF3=A}A=iF3;return A},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var DuL;var etV;var y4=function(){return _.G.apply(this,arguments)||this};
_.g(y4,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],y4.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],y4.prototype,"data",void 0);_.I([_.yU({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],y4);
_.m(y4,"yt-live-chat-paid-message-footer-renderer",function(){if(etV===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;DuL===void 0&&(DuL=document.createElement("template"));var X=DuL;O.call(L,X.content.cloneNode(!0),A.content.firstChild);etV=A}A=etV;return A},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var EnV;var nnN;var tyV;var bw6,htc=function(){if(bw6!==void 0)return bw6;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;tyV===void 0&&(tyV=document.createElement("template"));var X=tyV;O.call(L,X.content.cloneNode(!0),A.content.firstChild);return bw6=A};var Zb=function(){return _.G.apply(this,arguments)||this};
_.g(Zb,_.G);Zb.prototype.onTap=function(A){A.stopPropagation()};
_.v2.Object.defineProperties(Zb.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var A=_.q(this.data.replyButton,_.Cu),L,O,X,x,J,Y,T,V=Number(((L=this.replyCountState)==null?void 0:L.replyCountNumber)||"0")===0?(O=this.data)==null?void 0:(X=O.replyCountPlaceholder)==null?void 0:X.content:((x=this.replyCountState)==null?void 0:(J=x.replyCount)==null?void 0:J.content)||((Y=this.data)==null?void 0:(T=Y.replyCountPlaceholder)==null?void 0:T.content)||"",E;return Object.assign({},
A,{title:V,accessibilityText:(E=this.replyCountState)==null?void 0:E.replyButtonAccessibilityText})}}}});
_.v2.Object.defineProperties(Zb,{template:{configurable:!0,enumerable:!0,get:function(){return htc()}}});
Zb.prototype.onTap=Zb.prototype.onTap;_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],Zb.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Zb.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.k1),_.Z("design:type",Object)],Zb.prototype,"ytLiveChatReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Zb.prototype,"data",void 0);
_.I([_.K({selectorArgs:["data.replyCountEntityKey"],selector:function(A,L){return _.eM(A.entities,"replyCountEntity",L)}}),
_.Z("design:type",Object)],Zb.prototype,"replyCountState",void 0);_.I([_.r("data","replyCountState"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Zb.prototype,"buttonViewModel",null);_.I([_.by("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],Zb.prototype,"onTap",null);_.I([_.yU({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],Zb);
_.m(Zb,"yt-live-chat-reply-button-view-model",function(){return htc()},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var SFN;var qFN;var js=function(){var A=_.G.apply(this,arguments)||this;A.ariaLabel="";return A};
_.g(js,_.G);
js.prototype.dataChanged=function(){for(var A=(0,_.DB)(_.YJ(this.hostElement).querySelector("#image"));A.firstChild;)A.removeChild(A.firstChild);if(this.data)if(this.data.icon){var L=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(L.polymerController.icon="yt-sys-icons:shield-filled",L.polymerController.defaultToFilled=!0):L.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();A.appendChild(L)}else if(this.data.customThumbnail){L=document.createElement("img");
var O=_.XEO(this.data.customThumbnail.thumbnails,16);O?(L.src=O,A.appendChild(L),L.setAttribute("alt",this.hostElement.ariaLabel||"")):_.Rv(new _.pe("Could not compute URL for thumbnail",this.data.customThumbnail))}};
js.prototype.identity=function(A){return A};
js.prototype.computeType=function(A){return EY(A||void 0)};
js.prototype.dataChanged=js.prototype.dataChanged;_.I([_.K(),_.Z("design:type",Object)],js.prototype,"data",void 0);_.I([_.K({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.Z("design:type",Object)],js.prototype,"ariaLabel",void 0);_.I([_.K({computed:"computeType(data)",reflectToAttribute:!0}),_.Z("design:type",String)],js.prototype,"type",void 0);
_.I([_.K({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.Z("design:type",String)],js.prototype,"sharedTooltipText",void 0);_.I([_.K({reflectToAttribute:!0,value:function(){return _.h("live_chat_enable_new_moderator_badge")}}),
_.Z("design:type",Boolean)],js.prototype,"enableNewModeratorBadge",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],js.prototype,"dataChanged",null);_.I([_.yU({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],js);
_.m(js,"yt-live-chat-author-badge-renderer",function(){if(qFN===void 0){var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;SFN===void 0&&(SFN=document.createElement("template"));var X=SFN;O.call(L,X.content.cloneNode(!0),A.content.firstChild);qFN=A}A=qFN;return A},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var gnn;var wE7;var WP=function(){return _.G.apply(this,arguments)||this};
_.g(WP,_.G);_.P=WP.prototype;_.P.configureRendererStamper=function(){return{badgesBeforeChip:{id:"prepend-chat-badges",mapping:{liveChatAuthorBadgeRenderer:{component:"yt-live-chat-author-badge-renderer"}}},badgesOutsideChip:{id:"chat-badges",mapping:{liveChatAuthorBadgeRenderer:{component:"yt-live-chat-author-badge-renderer"}}},badgesInsideChip:{id:"chip-badges",mapping:{liveChatAuthorBadgeRenderer:{component:"yt-live-chat-author-badge-renderer"}}}}};
_.P.computeBadgesInsideChip=function(A){return A?A.filter(function(L){return EY(L.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.P.computeBadgesOutsideChip=function(A){return this.prependChatBadges||!A?[]:A.filter(function(L){L=EY(L.liveChatAuthorBadgeRenderer);return L!=="verified"&&L!=="owner"})};
_.P.computeBadgesBeforeChip=function(A){return this.prependChatBadges&&A?A.filter(function(L){L=EY(L.liveChatAuthorBadgeRenderer);return L!=="verified"&&L!=="owner"}):[]};
_.P.computeIsHighlighted=function(A,L){var O=!!tke(A,"owner"),X=!!tke(A,"verified");A=!!tke(A,"moderator");return(O||X&&!A)&&!L};
_.P.computeAuthorType=function(A){return nle(A)};
_.P.computeAuthorClass=function(A,L){return L?(A?A+" ":"")+"single-line":A};
_.P.onSeedColorChanged=function(){_.h("live_chat_author_name_color_usernames")||_.h("live_chat_seed_color_usernames")||_.h("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):_.h("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
WP.prototype.onSeedColorChanged=WP.prototype.onSeedColorChanged;_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],WP.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],WP.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],WP.prototype,"authorName",void 0);_.I([_.K(),_.Z("design:type",Array)],WP.prototype,"authorBadges",void 0);
_.I([_.K({computed:"computeAuthorType(authorBadges)"}),_.Z("design:type",String)],WP.prototype,"authorType",void 0);_.I([_.K({computed:"computeAuthorClass(authorType, singleLine)"}),_.Z("design:type",String)],WP.prototype,"authorClass",void 0);_.I([_.K({computed:"computeBadgesInsideChip(authorBadges)"}),_.Z("design:type",Array)],WP.prototype,"badgesInsideChip",void 0);_.I([_.K({computed:"computeBadgesOutsideChip(authorBadges)"}),_.Z("design:type",Array)],WP.prototype,"badgesOutsideChip",void 0);
_.I([_.K({computed:"computeBadgesBeforeChip(authorBadges)"}),_.Z("design:type",Array)],WP.prototype,"badgesBeforeChip",void 0);_.I([_.K({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],WP.prototype,"isHighlighted",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],WP.prototype,"singleLine",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],WP.prototype,"disableHighlighting",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],WP.prototype,"dashboardMoneyFeed",void 0);_.I([_.K({value:_.h("live_chat_prepend_badges"),reflectToAttribute:!0}),_.Z("design:type",Boolean)],WP.prototype,"prependChatBadges",void 0);_.I([_.K(),_.Z("design:type",String)],WP.prototype,"authorNameColor",void 0);_.I([_.qR("#author-name"),_.Z("design:type",HTMLDivElement)],WP.prototype,"username",void 0);
_.I([_.hT("authorNameColor"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],WP.prototype,"onSeedColorChanged",null);_.I([_.yU({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],WP);
_.m(WP,"yt-live-chat-author-chip",function(){if(wE7===void 0){var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;gnn===void 0&&(gnn=document.createElement("template"));var X=gnn;O.call(L,X.content.cloneNode(!0),A.content.firstChild);wE7=A}A=wE7;return A},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var pE6;var iwl;var HP=function(){var A=_.G.apply(this,arguments)||this;A.debounceCommand=_.Gv(function(L){A.ytComponentBehavior.resolveCommand(L)},1500);
return A};
_.g(HP,_.G);HP.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var A=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",L,O,X=this.isHearted?(L=this.data)==null?void 0:L.unheartCommand:(O=this.data)==null?void 0:O.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.ZE("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:A}));(A=_.HR(X))&&this.debounceCommand(A)}};
_.v2.Object.defineProperties(HP.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var A,L;if(!((A=this.data)==null?0:(L=A.creatorThumbnail)==null?0:L.sources))return{};A={thumbnails:[]};L={};L.url=this.data.creatorThumbnail.sources[0].url;A.thumbnails.push(L);return A}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var A,L;return((A=this.engagementState)==null?void 0:A.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((L=this.engagementState)==null?void 0:L.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var A,L;return((A=this.engagementState)==null?void 0:A.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((L=this.engagementState)==null?void 0:L.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.engagementState)==null?void 0:A.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var A,L,O;return((A=this.engagementState)==null?void 0:A.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((L=this.engagementState)==null?void 0:L.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((O=this.engagementState)==null?void 0:O.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}}});
HP.prototype.onTap=HP.prototype.onTap;_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],HP.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],HP.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.k1),_.Z("design:type",Object)],HP.prototype,"ytLiveChatReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],HP.prototype,"data",void 0);
_.I([_.K({selectorArgs:["data.engagementStateKey"],selector:WEy}),_.Z("design:type",Object)],HP.prototype,"engagementState",void 0);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],HP.prototype,"thumbnailDetails",null);_.I([_.r("data","engagementState"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],HP.prototype,"isHearted",null);_.I([_.r("data","engagementState"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],HP.prototype,"isEditable",null);
_.I([_.r("data","engagementState"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],HP.prototype,"showCreatorView",null);_.I([_.r("data","engagementState"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],HP.prototype,"showButton",null);_.I([_.r("data","isHearted"),_.Z("design:type",String),_.Z("design:paramtypes",[])],HP.prototype,"label",null);_.I([_.r("data","isHearted"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],HP.prototype,"heartHoverText",null);
_.I([_.by("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],HP.prototype,"onTap",null);_.I([_.yU({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],HP);
_.m(HP,"yt-live-chat-creator-heart-view-model",function(){if(iwl===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;pE6===void 0&&(pE6=document.createElement("template"));var X=pE6;O.call(L,X.content.cloneNode(!0),A.content.firstChild);iwl=A}A=iwl;return A},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var zf=function(){};
_.g(zf,qv);zf.prototype.JSC$14067_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:B3("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
zf.prototype.getApiPaths=function(){return[]};
zf.prototype.getExtension=function(){};
zf.prototype.JSC$14067_buildRequest=function(){};var N7l={},rJj=(N7l.GET_DATASYNC_IDS=K3(zf),N7l);var K33,GH6,ljL,til,BP,F3j,wAN,C77,cJn;K33="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");GH6=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.UC=function(A,L,O,X,x,J,Y,T,V){this.endpointMap=A;this.networkManager=L;this.authService=O;this.responseProcessorMap=X;this.innertubeResponseStore=x;this.contextProcessors=J;this.asyncContextProcessors=Y;this.localInnertubeRouter=T;this.requestSequencer=V;this.inflightRequests=new Map;A.signalEndpointMap||(A.signalEndpointMap={});A.signalEndpointMap=Object.assign({},rJj,A.signalEndpointMap)};
ljL=function(A,L,O,X,x,J,Y,T,V){if(_.UC.instance!==void 0){if(X=_.UC.instance,A=[A!==X.endpointMap,L!==X.networkManager,O!==X.authService,x!==X.innertubeResponseStore,J!==X.contextProcessors,Y!==X.asyncContextProcessors,T!==X.localInnertubeRouter],A.some(function(E){return E}))throw new _.pe("InnerTubeTransportService is already initialized",A);
}else _.UC.instance=new _.UC(A,L,O,X,x,J,Y,T,V)};
_.oQ=function(A,L,O){var X=X===void 0?p2u:X;var x=wAN(A,L);return x?new _.eJ(function(J,Y){var T,V,E,n,t;return _.u(function(b){switch(b.nextAddress){case 1:return b.yield(x,2);case 2:T=b.yieldResult;V=T.JSC$14067_getRequest(L,O,X);if(!V){Y(new _.pe("Error: Failed to build request for command.",L));b.jumpTo(0);break}MT(V.input);n=((E=V.requestShell)==null?void 0:E.mode)==="cors"?"cors":void 0;if(A.authService.syncHeaders){t=cJn(V.config,n);b.jumpTo(4);break}return b.yield(C77(V.config,n),5);case 5:t=
b.yieldResult;case 4:J(F3j(A,V,t)),_.qo(b)}})}):_.Ry(new _.pe("Error: No request builder found for command.",L))};
til=function(A,L,O,X){var x=x===void 0?p2u:x;var J,Y,T,V,E,n,t,b,S,w,l,F,R,y,M,H,z,a;return _.u(function(xe){switch(xe.nextAddress){case 1:J=q2d(L,A.endpointMap);if(!J)throw new _.pe("Error: No streaming request builder found for command",L);Y=J.JSC$14067_getRequest(L,O,x);if(!Y)throw new _.pe("Failed to build YtRequest for streaming Command",L);if((T=A.localInnertubeRouter)==null||!T.shouldPreferLocalResponse(Y.input,Y.innerTubeRequest)){xe.jumpTo(2);break}return xe.yield(A.localInnertubeRouter.localInnertubeResponse(Y.input,
Y.innerTubeRequest),3);case 3:return V=xe.yieldResult,E={},V.playerResponse&&(BP(A,V.playerResponse,Y),E.player=V.playerResponse,(n=X)==null||n(E,V)),V.watchNextResponse&&(BP(A,V.watchNextResponse,Y),E.content=V.watchNextResponse,(t=X)==null||t(E,V)),xe.return(E);case 2:S=((b=Y.requestShell)==null?void 0:b.mode)==="cors"?"cors":void 0;if(A.authService.syncHeaders){w=cJn(Y.config,S);xe.jumpTo(4);break}return xe.yield(C77(Y.config,S),5);case 5:w=xe.yieldResult;case 4:return R=(F=(l=Y.requestShell)==
null?void 0:l.headers)!=null?F:{},Y.requestShell=Object.assign({},Y.requestShell,{headers:Object.assign({},R,w)}),y=Object.assign({},Y.requestShell),M=JSON.stringify(Y.innerTubeRequest),Y.requestShell.method==="POST"&&(y=Object.assign({},y,{body:M})),H=function(ur,eD){BP(A,eD.playerResponse||eD.watchNextResponse||eD.reelItemWatchResponse||eD.reelWatchSequenceResponse,Y);X==null||X(ur,eD)},z={},xe.yield(RtL(A.networkManager,Y.input,y,H),6);
case 6:return z=xe.yieldResult,((a=Y.config)==null?0:a.responseTick)&&_.Rk(Y.config.responseTick),xe.return(z)}})};
_.MB=function(A,L,O,X,x){x=x===void 0?{authStrategy:{identity:p2u}}:x;var J=J===void 0?!0:J;var Y=function(){};
Y=TqJ(YQ_(O));L.context||(L.context=_.wW_(X,J));return new _.eJ(function(T){var V,E,n,t,b;return _.u(function(S){if(S.nextAddress==1)return V=kas(O),E=_.zN(V),A.authService.syncHeaders?(n=cJn(x,E),S.jumpTo(2)):S.yield(C77(x,E),3);S.nextAddress!=2&&(n=S.yieldResult);t=Uzr(kas(O));b={input:t,requestShell:B3(t),innerTubeRequest:L,config:x};T(F3j(A,b,n,Y));_.qo(S)})})};
BP=function(A,L,O){var X;if(L&&!(L==null?0:(X=L.sequenceMetaData)==null?0:X.skipProcessing)&&A.responseProcessorMap){X=_.d(K33);for(var x=X.next();!x.done;x=X.next())x=x.value,A.responseProcessorMap[x]&&A.responseProcessorMap[x].handleResponse(L,O)}};
F3j=function(A,L,O,X){X=X===void 0?function(){}:X;
var x,J,Y,T,V,E,n,t,b,S,w,l,F,R,y,M,H,z,a,xe,ur,eD,gu,ir,SD,HJ,mM,Vu,cn,Tj,Uu,Eg,DN,NN,bJ,MN,Js,XL,gJ,hk;return _.u(function(hc){switch(hc.nextAddress){case 1:Y=(x=L.config)==null?void 0:(J=x.storeStrategy)==null?void 0:J.storeKey;if(!(Y&&A.innertubeResponseStore&&A.innertubeResponseStore.has(Y))||((T=L.config)==null?0:(V=T.storeStrategy)==null?0:V.disableCache)){hc.jumpTo(2);break}return hc.yield(A.innertubeResponseStore.get(Y),3);case 3:if((E=hc.yieldResult)&&!E.isExpired())return hc.return(Promise.resolve(_.uE(E)));
case 2:if(!((n=L)==null?0:(t=n.innerTubeRequest)==null?0:t.context)){hc.jumpTo(4);break}b=L.innerTubeRequest.context;if(!(A.asyncContextProcessors&&A.asyncContextProcessors.length>0)){hc.jumpTo(5);break}S=[];w=_.d(A.asyncContextProcessors);for(l=w.next();!l.done;l=w.next())F=l.value,R=F.processContext(L),R.wrappedPromise_&&S.push(R.wrappedPromise_);if(!(S.length>0)){hc.jumpTo(5);break}return hc.yield(Promise.all(S),5);case 5:y=_.d(A.contextProcessors||[]),M=y.next();case 8:if(M.done){hc.jumpTo(4);
break}H=M.value;return hc.yield(H.processContext(b),9);case 9:M=y.next();hc.jumpTo(8);break;case 4:if((z=A.localInnertubeRouter)==null||!z.shouldPreferLocalResponse(L.input,L.innerTubeRequest)){hc.jumpTo(12);break}return hc.yield(A.localInnertubeRouter.localInnertubeResponse(L.input,L.innerTubeRequest),13);case 13:return a=hc.yieldResult,BP(A,a,L),hc.return(a);case 12:return(eD=(ur=L.config)==null?void 0:ur.requestKey)&&A.inflightRequests.has(eD)?xe=A.inflightRequests.get(eD):(gu=JSON.stringify(L.innerTubeRequest),
HJ=(SD=(ir=L.requestShell)==null?void 0:ir.headers)!=null?SD:{},L.requestShell=Object.assign({},L.requestShell,{headers:Object.assign({},HJ,O)}),mM=Object.assign({},L.requestShell),L.requestShell.method==="POST"&&(mM=Object.assign({},mM,{body:gu})),((Vu=L.config)==null?0:Vu.requestTick)&&_.Rk(L.config.requestTick),cn=function(){return A.networkManager.fetch(L.input,mM,L.config)},xe=A.requestSequencer?Q2c(A.requestSequencer,L,cn):cn(),eD&&A.inflightRequests.set(eD,xe)),hc.yield(xe,14);
case 14:(Tj=hc.yieldResult)&&_.h("web_streaming_player")&&Array.isArray(Tj)&&(Tj=Tj[0].playerResponse);if(Tj&&"error"in Tj&&((Uu=Tj)==null?0:(Eg=Uu.error)==null?0:Eg.details))for(DN=Tj.error.details,NN=_.d(DN),bJ=NN.next();!bJ.done;bJ=NN.next())MN=bJ.value,(Js=MN["@type"])&&GH6.indexOf(Js)>-1&&(delete MN["@type"],Tj=MN);eD&&A.inflightRequests.has(eD)&&A.inflightRequests.delete(eD);((XL=L.config)==null?0:XL.responseTick)&&_.Rk(L.config.responseTick);if(Tj||(gJ=A.localInnertubeRouter)==null||!gJ.canProvideFallbackResponse(L.input,
L.innerTubeRequest)){hc.jumpTo(15);break}return hc.yield(A.localInnertubeRouter.localFallbackInnertubeResponse(L.input,L.innerTubeRequest),16);case 16:Tj=hc.yieldResult;case 15:return BP(A,Tj,L),((hk=L.config)==null?0:hk.processorTick)&&_.Rk(L.config.processorTick),X(),hc.return(Tj||void 0)}})};
_.vx=function(A,L){return S2O(L,A.endpointMap)};
wAN=function(A,L){A=gQu(L,A.endpointMap);if(A!==void 0)return Promise.resolve(A)};
C77=function(A,L){var O,X,x,J;return _.u(function(Y){if(Y.nextAddress==1){x=(O=A)==null?void 0:(X=O.authStrategy)==null?void 0:X.sessionIndex;var T=Y.yield;var V=_.DQ(qPy({sessionIndex:x}));return T.call(Y,V,2)}J=Y.yieldResult;return Y.return(Promise.resolve(Object.assign({},wK_(L),J)))})};
cJn=function(A,L){var O;A=A==null?void 0:(O=A.authStrategy)==null?void 0:O.sessionIndex;O=qPy({sessionIndex:A});return Object.assign({},wK_(L),O)};var mu6,fjL,Ijc,yJl,Zwj,j2n,ztH,B7j,ar,MyH,$uL,Hwj,aj7;mu6=0;fjL=/tone[1-5]/;Ijc=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");yJl="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
Zwj=Number.MAX_SAFE_INTEGER;j2n=RegExp("\ufe0f","g");_.Mr=function(A){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;A&&_.W3n(this,A)};
_.W3n=function(A,L){try{_.Et(L,{context:A,onSuccess:function(X,x){Array.isArray(x)?A.load(x):(X=new _.pe("Emoji manager JSON response was not an array!",{response:x}),_.C7(X))},
onError:function(X){X=new _.pe("Failed to retrieve emoji manager initial JSON data!",{url:L,statusCode:_.uK(X).toString()});_.Rv(X)}})}catch(X){var O=new _.pe("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:L});
_.Rv(O)}};
_.Mr.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.Mr.prototype.load=function(A,L){if(L)if(A.length)A=A.concat(L.emojis);else{this.emojis=L.emojis;this.emojiMap=L.emojiMap;this.emojiShortcutMap=L.emojiShortcutMap;this.emojiShortcutCharMap=Hwj(L);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=L.emojiRegex;return}this.emojis=[].concat(_.le(new Set(this.emojis.concat(A))));this.hasInitializedShortcutCharMap=!1;A=Array(this.emojis.length);for(L=0;L<this.emojis.length;L++){var O=this.emojis[L];if(O.emojiId){this.emojiMap[O.emojiId]=O;this.emojiMap[O.emojiId].index=
L;for(var X=0;O.shortcuts&&X<O.shortcuts.length;X++)this.emojiShortcutMap[O.shortcuts[X].toLocaleLowerCase()]=O;A[L]=O.isCustomEmoji&&O.shortcuts?O.shortcuts[0]:O.emojiId}}A.sort(function(x,J){return J.length-x.length});
if(A.length)try{this.emojiRegex=new RegExp(A.join("|").replace("*","\\*"),"gi")}catch(x){this.emojiRegex=/$./}else this.emojiRegex=/$./};
ztH=function(A,L){L=_.d(L);for(var O=L.next();!O.done;O=L.next()){var X=O.value;if(X.emojiId&&A.emojiMap[X.emojiId]){O=Object.assign({},A.emojiMap[X.emojiId],X);A.emojiMap[X.emojiId]=O;var x=void 0;O.index&&((x=A.emojis[O.index])==null?void 0:x.emojiId)===X.emojiId&&(A.emojis[O.index]=O);X=void 0;if((X=O.shortcuts)==null?0:X.length)for(A.hasInitializedShortcutCharMap=!1,X=_.d(O.shortcuts),x=X.next();!x.done;x=X.next())A.emojiShortcutMap[x.value.toLocaleLowerCase()]=O}}};
B7j=function(A){var L,O;_.u(function(X){if(X.nextAddress==1)return X.yield(_.m0.getInstance(),2);if(X.nextAddress!=3)return(L=X.yieldResult)?X.yield(L.get("ytlc-emoji-pref"),3):X.return();(O=X.yieldResult)&&ztH(A,Object.keys(O).map(function(x){return{emojiId:x,stickyPrefId:O[x]}}).filter(function(x){return!!x.emojiId&&!!x.stickyPrefId}));
_.qo(X)})};
_.$5=function(A,L,O){return(A=A.emojiMap[L])&&(!A.isLocked||O!==void 0&&O)?A:void 0};
ar=function(A,L,O){O=_.$5(A,L,O===void 0?!1:O);var X=L.match("\u200d");O&&A.skinTone!==0&&(A=(X==null?void 0:X.length)===1?_.$5(A,L.replace("\u200d",Ijc[A.skinTone]+"\u200d")):_.$5(A,L+Ijc[A.skinTone]))&&(O=A);return O};
MyH=function(A,L){var O=A.emojiMap[L];return(O==null?0:O.stickyPrefId)?A.emojiMap[O.stickyPrefId]:ar(A,L)};
_.qw=function(A,L){A=A.emojiShortcutMap[L.toLocaleLowerCase()];return!A||A.isLocked?null:A};
$uL=function(A,L,O){return Hwj(A,O===void 0?!1:O)[L]||{}};
Hwj=function(A,L){L=L===void 0?!1:L;if(!A.hasInitializedShortcutCharMap){A.hasInitializedShortcutCharMap=!0;for(var O=0;O<A.emojis.length;O++){var X=A.emojis[O];if(!(X.isLocked||L&&X.isCustomEmoji&&X.emojiId&&!A.pickerCustomEmojiIds.includes(X.emojiId)))for(var x=0;X.shortcuts&&x<X.shortcuts.length;x++){var J=X.shortcuts[x];J.startsWith(":_")&&X.isCustomEmoji&&(A.emojiShortcutCharMap[":_"]==null&&(A.emojiShortcutCharMap[":_"]=Object.create(null)),A.emojiShortcutCharMap[":_"][J]=X);if(!(J.length<3||
!X.isCustomEmoji&&fjL.test(J))){var Y=J.substr(0,3).toLocaleLowerCase();A.emojiShortcutCharMap[Y]==null&&(A.emojiShortcutCharMap[Y]=Object.create(null));A.emojiShortcutCharMap[Y][J]=X}}}}return A.emojiShortcutCharMap};
_.Mr.prototype.createEmoji=function(A,L){L=L===void 0?!0:L;var O=document.createElement("img");A.isCustomEmoji||O.classList.add("small-emoji");O.classList.add("emoji");O.classList.add("yt-formatted-string");O.src=A.image?_.uB(A.image.thumbnails,this.emojiSize)||"":"";var X=void 0;A.image&&A.image.accessibility&&A.image.accessibility.accessibilityData&&(X=A.image.accessibility.accessibilityData.label);O.alt=X?X:(A.isCustomEmoji&&A.shortcuts?A.shortcuts[0]:A.emojiId)||"";A.isCustomEmoji&&(O.dataset.emojiId=
A.emojiId);_.Ei&&(O.setAttribute("contenteditable","false"),O.setAttribute("unselectable","on"));L&&(A.shortcuts&&A.shortcuts.length&&O.setAttribute("shared-tooltip-text",A.shortcuts[0]),O.id="emoji-"+mu6++);return O};
_.Mr.prototype.createDocumentFragment=function(A,L,O,X){L=L===void 0?!1:L;O=O===void 0?!0:O;X=X===void 0?!1:X;A=A.replace(j2n,"");for(var x=document.createDocumentFragment(),J=0,Y,T=0;(Y=this.emojiRegex.exec(A))!=null;){var V=_.$5(this,Y[0])||_.qw(this,Y[0]);!V||V.isCustomEmoji&&!L||(V=this.createEmoji(V,O),J!==Y.index&&x.appendChild(document.createTextNode(A.substring(J,Y.index))),x.appendChild(V),J=Y.index+Y[0].length,T++)}if(!X||T)return x.appendChild(document.createTextNode(A.substr(J))),x};
aj7=function(A,L,O){var X,x,J,Y,T,V,E,n,t;return _.u(function(b){if(b.nextAddress==1){if(!L.emojiId||!A.emojiMap[L.emojiId])return b.return();X=Object.assign({},A.emojiMap[L.emojiId],{stickyPrefId:O});A.emojiMap[L.emojiId]=X;L.index&&((x=A.emojis[L.index])==null?void 0:x.emojiId)===L.emojiId&&(A.emojis[L.index]=X);if((J=L.shortcuts)==null?0:J.length)for(A.hasInitializedShortcutCharMap=!1,Y=_.d(L.shortcuts),T=Y.next();!T.done;T=Y.next())V=T.value,A.emojiShortcutMap[V.toLocaleLowerCase()]=X;return b.yield(_.m0.getInstance(),
2)}if(b.nextAddress!=4)return(E=b.yieldResult)?b.yield(E.get("ytlc-emoji-pref"),4):b.jumpTo(0);t=(n=b.yieldResult)!=null?n:{};t[L.emojiId]=O;return b.yield(E.set("ytlc-emoji-pref",t,Zwj),0)})};
_.k5=new _.Mr;var vn7;_.UR={};
vn7={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.h("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:_.h("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 am(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 A=_.YJ(this.hostElement||this).querySelector("#inline-action-button-container");A&&A.setAttribute("aria-hidden","true");this.menuButton=_.YJ(this.hostElement).querySelector("#menu-button")},
attached:function(){var A=this.menuButton;A&&(A.addEventListener("focusin",_.tT(this,this.onMenuButtonFocus_)),A.addEventListener("focusout",_.tT(this,this.onMenuButtonBlur_)))},
detached:function(){var A=this.menuButton;A&&(A.removeEventListener("focusin",_.tT(this,this.onMenuButtonFocus_)),A.removeEventListener("focusout",_.tT(this,this.onMenuButtonBlur_)))},
identity:_.Rd,truthy:function(A){return!!A},
computeTimestampString:function(A){return A?A.timestampText?this.getSimpleString(A.timestampText):this.TIME_FORMATTER.format(new Date(A.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(A){return A},
computeMenuVisible_:function(A,L){return A||L},
computeHasInlineActionButtons:function(A){if(!A)return!1;var L,O;return!((L=A.inlineActionButtons)==null||!L.length)||!((O=A.additionalInlineActionButtons)==null||!O.length)},
createDocumentFragmentFromString:function(A){var L=_.k5.createDocumentFragment.bind(_.k5),O;if((O=this.participantsManager)==null||!O.viewerRegex)return L(A);O=document.createDocumentFragment();for(var X=0,x;(x=this.participantsManager.viewerRegex.exec(A))!=null;){if(x.index>0){var J=":"+x[0]+":";if((_.$5(_.k5,J)||_.qw(_.k5,J))&&A.indexOf(J)===x.index-1)continue}O.appendChild(L(A.substring(X,x.index)));X=document.createElement("span");X.appendChild(L(x[0]));X.classList.add("mention");O.appendChild(X);
X=x.index+x[0].length}O.appendChild(L(A.substring(X)));return O},
createDocumentFragment:function(A){var L=document.createDocumentFragment();if(A.simpleText)return L.appendChild(this.createDocumentFragmentFromString(A.simpleText)),L;if(!A.runs)return L;for(var O=0;O<A.runs.length;O++){var X=A.runs[O];if(X.emoji)L.appendChild(_.k5.createEmoji(X.emoji));else if(X.text)if(X.navigationEndpoint){var x=document.createElement("a");x.classList.add("yt-simple-endpoint");yIu(x,X.navigationEndpoint);_.YJ(x).appendChild(this.createDocumentFragmentFromString(X.text));L.appendChild(x)}else L.appendChild(this.createDocumentFragmentFromString(X.text))}return L},
hasModerationOverlayVisible:function(){var A;return((A=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:A.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(A){A.composedPath().some(function(L){return(L=L instanceof Element?L:null)?L.tagName&&(L.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||L.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.h("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(A)},
colorFromDecimal:function(A){return olu(A)},
markAsDeleted:function(A,L){this.set("data.deletedStateMessage",A);this.set("data.showOriginalContentMessage",L)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(A){if(this.data.contextMenuEndpoint){var L=_.X5().resolve(_.f3),O=this.data.contextMenuEndpoint,X;(X=_.UC.instance)&&_.vx(X,O)?(L=kHJ(L,O),X=_.MB(X,{},L)):X=_.UuL(L,O);X.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);A&&A.stopPropagation()}},
handleGetContextMenuResponse_:function(A){var L=_.UC.instance;L&&_.vx(L,{liveChatEndpoint:{}})||(A=A.response);A.liveChatItemContextMenuSupportedRenderers&&A.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(A.liveChatItemContextMenuSupportedRenderers.menuRenderer);A.actions&&_.dQ(this.hostElement,"yt-live-chat-actions",[A.actions])},
handleGetContextMenuError:function(A){if(A instanceof Error||A instanceof Object||A instanceof String)var L=A;_.C7(new _.pe("Error encountered calling GetLiveChatItemContextMenu",L))},
showContextMenu_:function(A){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:A}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.P4(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.P4(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.UR.YtLiveChatItemBehavior=[vn7,_.v$.YtComponentBehavior,_.iv.YtOpenPopupBehavior];_.vP=function(){};var onJ;var Ad3;var LEJ;var OGH;var or=function(){var A=_.G.apply(this,arguments)||this;A.active=!1;A.identity=_.Rd;return A};
_.g(or,_.G);or.prototype.dataChanged=function(){this.active=!1};
or.prototype.onClick=function(){_.P4(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
or.prototype.dataChanged=or.prototype.dataChanged;_.I([_.K(),_.Z("design:type",Object)],or.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],or.prototype,"active",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],or.prototype,"dataChanged",null);_.I([_.yU({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],or);
_.m(or,"yt-live-chat-text-input-field-suggestion",function(){if(OGH===void 0){var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;LEJ===void 0&&(LEJ=document.createElement("template"));var X=LEJ;O.call(L,X.content.cloneNode(!0),A.content.firstChild);OGH=A}A=OGH;return A},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});_.A3=function(A,L,O){return CustomEvent.call(this,A,{detail:{value:L,path:O}})||this};
_.g(_.A3,CustomEvent);_.Ll=function(){var A=_.G.apply(this,arguments)||this;A.viewerName=null;A.actionMap={"yt-live-chat-actions":"onChatMessage_"};A.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];A.PARTICIPANT_TIME_USEC_=3E8;return A};
_.g(_.Ll,_.G);_.P=_.Ll.prototype;_.P.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.P.addParticipant=function(A){var L=_.KMu(this.participants,A,function(X,x){X=X[Object.keys(X)[0]];x=x[Object.keys(x)[0]];X=String(_.vG(X.authorName)).toLowerCase();x=String(_.vG(x.authorName)).toLowerCase();return X<x?-1:X==x?0:1}.bind(this));
if(L>=0){var O=this.participants[L];O[Object.keys(O)[0]].timestampUsec&&this.splice("participants",L,1,A)}else this.splice("participants",-L-1,0,A);A=A[Object.keys(A)[0]];L=_.vG(A.authorName).toLocaleLowerCase();O=L.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(O)||(this.allParticipantsCharMap_[O]={});this.allParticipantsCharMap_[O][L]=A};
_.P.getAuthorsFromPrefix=function(A){return this.allParticipantsCharMap_.hasOwnProperty(A)?this.allParticipantsCharMap_[A]:null};
_.P.computeViewerRegex_=function(A){if(!A)return null;A=A.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var L=A.indexOf("@")===0&&_.h("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(L+A.replace(/ /g,"\\s*")+"|^"+A.replace(/ /g,"\\s*")+"$|^"+A.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+A.replace(/ /g,"\\s*")+"$|(?<=\\s)"+A.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.P.checkForStaleParticipants_=function(){var A=this;this.trimOldParticipants_();this.asyncHandle_&&ipu(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.MR(function(){A.checkForStaleParticipants_()},3E4))};
_.P.onChatMessage_=function(A){var L=this,O=Date.now()*1E3;A.forEach(function(X){if(X=_.q(X,vxH)){X=X.item;var x=Object.keys(X)[0];L.SUPPORTED_ITEM_TYPES_.indexOf(x)!=-1&&X[x].timestampUsec>=O-L.PARTICIPANT_TIME_USEC_&&L.addParticipant(X)}},this);
this.checkForStaleParticipants_()};
_.P.trimOldParticipants_=function(){for(var A=Date.now()*1E3,L=this.participants.length-1;L>=0;L--){var O=this.participants[L];O=O[Object.keys(O)[0]];O.timestampUsec&&O.timestampUsec<A-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",L,1)}};
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],_.Ll.prototype,"ytActionHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],_.Ll.prototype,"viewerName",void 0);_.I([_.K({computed:"computeViewerRegex_(viewerName)"}),_.Z("design:type",Object)],_.Ll.prototype,"viewerRegex",void 0);_.I([_.K({value:function(){return[]},
notify:!0}),_.Z("design:type",Array)],_.Ll.prototype,"participants",void 0);_.I([_.yU({is:"yt-live-chat-participants-manager",noInjection:!0})],_.Ll);var Xal=/.*([:@#].*?)$/,OL=/\u00a0/g,x2g=String.fromCharCode(160),s1J={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"},Xy=function(){var A=_.G.apply(this,arguments)||this;A.disabled=!1;A.liveChatRichMessageInput=null;A.messageInput=null;A.isValidWithNoInputText=!1;A.suggestions=[];A.emojiManager=_.k5;A.inputMethodEditorActive=
!1;A.suggestionIndex=-1;A.JSC$15081_lastSuggestionRange=null;return A};
_.g(Xy,_.G);_.P=Xy.prototype;_.P.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.P.attached=function(){_.ns&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.P.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.P.dataChanged=function(){if(!this.ignoreColorMapping){var A=!1,L={},O;for(O in s1J)this.data&&this.data.hasOwnProperty(O)&&(L[s1J[O]]=this.colorFromDecimal(this.data[O]),A=!0);A&&_.eq(this.hostElement,L)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.P.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.P.colorFromDecimal=function(A){A=Math.floor(Number(A));return"rgba("+[A>>16&255,A>>8&255,A&255,(A>>24&255)/255].join()+")"};
_.P.preventDrag=function(A){A.dataTransfer&&(A.dataTransfer.dropEffect="none");A.preventDefault()};
_.P.preventResize=function(A){A.returnValue=!1};
_.P.onInputChange=function(){var A=this.characterCount,L=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&L&&L.remove();if(!L&&this.characterCount>this.maxCharacterLimit){var O=window.getSelection();if(O){var X=O.getRangeAt(0);O.removeAllRanges();O.addRange(X)}}if(O=this.getCurrentRange())X=this.calculateTextBeforeRange(O),this.completeEmojisInRange(O,X,!0)||this.updateSuggestions(O,X);X=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(X);
_.P4(this.hostElement,"yt-live-chat-message-input-change",X);L&&this.characterCount===0&&L.remove();O&&O.commonAncestorContainer.parentElement.id==="input"&&O.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>A):O&&!O.collapsed&&O.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(A=this.input.childNodes.length-1;A>=0;A--)this.input.childNodes[A].nodeName==="BR"&&this.input.childNodes[A].remove()};
_.P.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.P.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var A=this.getCurrentRange();A&&A.commonAncestorContainer.parentElement.id==="input"&&A.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.P.mergeOverflowText=function(A){if(A){var L=document.createRange();L.selectNodeContents(A);L=L.extractContents();this.input.insertBefore(L,A)}};
_.P.checkRangeAtEndOfInput=function(){var A=this.getCurrentRange();if(A){var L=_.YJ(this.hostElement).querySelector("#overflow-text"),O=document.createRange();L&&L.previousSibling?L.previousSibling instanceof HTMLImageElement?O.selectNode(L.previousSibling):O.selectNodeContents(L.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?O.selectNode(this.input.lastChild):O.selectNodeContents(this.input.lastChild));O.collapse(!1);return O.isPointInRange(A.startContainer,
A.startOffset)}return!1};
_.P.handleOverflowText=function(A){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var L=_.YJ(this.hostElement).querySelector("#overflow-text"),O=this.getCurrentRange();this.input.normalize();A=this.checkRangeAtEndOfInput()&&A;this.mergeOverflowText(L);for(var X,x=0,J=0,Y,T=this.input.childNodes,V=0;V<T.length;V++){var E=T[V];E instanceof Text?(J+=E.textContent.length,J>this.maxCharacterLimit&&(X=E,x=this.maxCharacterLimit+E.textContent.length-J)):E instanceof HTMLImageElement&&
(X=void 0,J=E.dataset.emojiId&&((X=this.data)==null?0:X.emojiCharacterCount)?J+this.data.emojiCharacterCount:J+E.alt.length,X=this.input,x=V);if(J>this.maxCharacterLimit&&X){Y=document.createRange();Y.collapse(!1);L?(J=this.input.lastChild.previousSibling,J instanceof Text?Y.setEnd(this.input.lastChild.previousSibling,J.textContent.length):J instanceof HTMLImageElement&&Y.setEnd(this.input,this.input.childNodes.length-1)):Y.selectNodeContents(this.input);Y.setStart(X,x);break}}Y&&(X=!1,O&&(A=Y.isPointInRange(O.startContainer,
O.startOffset-1)),L||(L=document.createElement("span"),L.id="overflow-text",L.textContent="",L.setAttribute("contenteditable","true"),_.YJ(_.YJ(this.hostElement).querySelector("#input")).appendChild(L),X=!0),L&&(O=Y.extractContents(),L.insertBefore(O,L.firstChild),A&&L.firstChild&&(O=document.createRange(),X?O.setStartAfter(L.lastChild):O.setStartAfter(L.firstChild),O.collapse(!0),L=window.getSelection(),L.removeAllRanges(),L.addRange(O))))}};
_.P.checkForDuplicateSpans=function(){for(var A=0;A<this.input.childNodes.length;A++){var L=this.input.childNodes[A];if(L.nodeName==="SPAN"){var O=document.createRange();O.selectNodeContents(L);O=O.extractContents();this.input.insertBefore(O,L);L.remove()}}this.handleOverflowText(!0)};
_.P.getCurrentRange=function(){var A=window.getSelection();return A&&A.rangeCount?A.getRangeAt(0).cloneRange():null};
_.P.getInputRange=function(){var A=this.getCurrentRange();if(A){for(var L=A.commonAncestorContainer,O=!1,X=_.YJ(this.hostElement).querySelector("#input");L;){if(L===X){O=!0;break}L=L.parentNode}O||(A=null)}A||(A=this.getRangeAtEnd());return A};
_.P.getRangeAtEnd=function(){var A=document.createRange(),L=_.YJ(this.hostElement).querySelector("#input").lastChild;!L||L.nodeName!=="#text"&&L.nodeName!=="SPAN"?(A.selectNodeContents(_.YJ(this.hostElement).querySelector("#input")),A.collapse(!1)):L.nodeName==="#text"?A.setStart(L,L.textContent.length):A.setStart(L,L.childNodes.length);return A};
_.P.getChatParticipantSuggestions=function(A,L,O,X){var x=_.h("live_chat_enable_handles_web_text_input_update");if(L)for(var J in L)if(J.indexOf(A)===0||x&&J.indexOf(O+A)===0){var Y=L[J],T=_.vG(Y.authorName);X.push({suggestion:{author:!0,authorType:O,image:Y.authorPhoto,alt:T,text:T}});if(X.length>=64)break}};
_.P.getSuggestions=function(A){var L=[],O=A.substring(0,3),X=$uL(_.k5,O,!0);if(X)for(var x in X)if(x.toLocaleLowerCase().indexOf(A)===0){var J=X[x];if(J&&J.emojiId){if(J=MyH(_.k5,J.emojiId)){var Y=void 0,T=void 0,V=void 0,E=void 0,n=((Y=J.image)==null?0:(T=Y.accessibility)==null?0:(V=T.accessibilityData)==null?0:V.label)||J.isCustomEmoji?(E=J.shortcuts)==null?void 0:E[0]:J.emojiId;L.push({suggestion:{emoji:!0,image:J.image,alt:n,text:x,textToInsertWhenSelected:J.isCustomEmoji?x:n}})}if(L.length>=
64)break}}if(!this.participantsManager)return null;if(O.indexOf("@")===0||O.indexOf("#")===0)X=O.charAt(0),A=A.substring(1),x=_.h("live_chat_enable_handles_web_text_input_update"),O.indexOf("@")===0&&x&&(x=this.participantsManager.getAuthorsFromPrefix(O.substring(0,2)),this.getChatParticipantSuggestions(A,x,X,L)),O=O.substring(1),O=this.participantsManager.getAuthorsFromPrefix(O),this.getChatParticipantSuggestions(A,O,X,L);return L?L.sort(function(t,b){return b.suggestion.text<t.suggestion.text?-1:
b.suggestion.text===t.suggestion.text?0:1}):null};
_.P.insertSuggestion=function(A){var L=_.h("live_chat_enable_handles_web_text_input_update"),O=A.authorType;L=A.text.indexOf(O)===0&&L?A.text+x2g:O+A.text+x2g;A.emoji?this.insertTextAtRange(this.JSC$15081_lastSuggestionRange,A.textToInsertWhenSelected||""):A.author&&this.insertTextAtRange(this.JSC$15081_lastSuggestionRange,L)};
_.P.updateSuggestionsAtCaret=function(){var A=this.getCurrentRange();A&&this.updateSuggestions(A,this.calculateTextBeforeRange(A))};
_.P.offsetStartOfRangeBy=function(A,L){for(;L>0;)if(A.startOffset-L>=0){A.setStart(A.startContainer,A.startOffset-L);break}else{L=A.startContainer instanceof HTMLImageElement?L-A.startContainer.alt.length:L-A.startOffset;var O=A.startContainer.previousSibling;if(!O){A.setStart(A.startContainer,0);break}if(_.h("live_chat_require_space_for_autocomplete_emoji")){var X=void 0,x=void 0;A.setStart(O,((X=O)==null?void 0:(x=X.textContent)==null?void 0:x.length)||0)}else A.setStart(O,O.childNodes.length||
0)}};
_.P.updateSuggestions=function(A,L){var O=this;this.JSC$15081_lastSuggestionRange&&(this.JSC$15081_lastSuggestionRange.detach(),this.JSC$15081_lastSuggestionRange=null);if((L=Xal.exec(L))&&L.length&&(L=L[L.length-1].toLocaleLowerCase(),L.length>2&&(this.offsetStartOfRangeBy(A,L.length),this.JSC$15081_lastSuggestionRange=A,(A=this.getSuggestions(L))&&A.length))){this.suggestions=A;_.kd(this,function(){_.YJ(O.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(A.length-1);return}this.dropdown.opened=!1};
_.P.completeEmojisInRange=function(A,L,O){var X=L.replace(/[\s\xa0]+$/,"");L=L.length-X.length;X=X.split(" ");X=X[X.length-1].trim().toLocaleLowerCase();var x=X.lastIndexOf(":");if(O&&!L&&x!==X.length-1)return!1;x!==-1&&(O=X.lastIndexOf(":",x-1),O!==-1&&(X=X.substring(O)));if((O=_.qw(_.k5,X))&&O.emojiId){O=MyH(_.k5,O.emojiId)||null;this.offsetStartOfRangeBy(A,X.length+L);var J,Y,T,V;X=(((J=O)==null?0:J.isCustomEmoji)?(Y=O)==null?void 0:(T=Y.shortcuts)==null?void 0:T[0]:(V=O)==null?void 0:V.emojiId)||
"";L&&(X+=x2g);this.insertTextAtRange(A,X);this.dropdown.opened=!1;return!0}return!1};
_.P.onSuggestion=function(A){this.insertSuggestion(A.detail);this.dropdown.opened=!1};
_.P.onKeyPress=function(A){A.keyCode===13&&(A.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.P4(this.hostElement,"yt-live-chat-send-message"))};
_.P.completeEmojis=function(){var A=document.createRange(),L=_.YJ(this.hostElement).querySelector("#input").lastChild;L?A.setStart(L,L.childNodes.length):(A.selectNodeContents(_.YJ(this.hostElement).querySelector("#input")),A.collapse(!1));this.completeEmojisInRange(A,this.calculateTextBeforeRange(A),_.h("live_chat_require_space_for_autocomplete_emoji"))};
_.P.maybePreventTextFormatting=function(A){!_.SX||!A.ctrlKey&&!A.metaKey||A.keyCode!==66&&A.keyCode!==73||(A.stopImmediatePropagation(),A.preventDefault())};
_.P.onKeyDown=function(A){this.maybePreventTextFormatting(A);if(this.dropdown.opened)switch(A.keyCode){case 27:this.dropdown.opened=!1;A.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;A.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);A.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),A.preventDefault()}};
_.P.onKeyUp=function(A){switch(A.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.Ei)this.onInputChange()};
_.P.changeSuggestionIndex=function(A){if(this.dropdown.opened){var L=_.YJ(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<L.children.length&&(L.children[this.suggestionIndex].active=!1);var O=this.suggestions.length;this.suggestionIndex=(A+O)%O;A=L.children[this.suggestionIndex];A.active=!0;L.scrollTop=A.offsetTop}};
_.P.onInputPaste=function(A){A.preventDefault();(A=A.clipboardData)&&A.types&&(A=A.getData("text/plain")||"",A=A.replace(/\n/g,""),this.insertText(A));(A=this.getCurrentRange())&&A.commonAncestorContainer.parentElement.id==="input"&&A.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.P.onFocus=function(){this._setFocused(!0)};
_.P.onBlur=function(){this._setFocused(!1)};
_.P.insertText=function(A){this.insertTextAtRange(this.getInputRange(),A)};
_.P.insertTextAtRange=function(A,L){if(A&&(A.collapsed||A.deleteContents(),L=_.k5.createDocumentFragment(L,!0,!1))){for(var O=_.d((L==null?void 0:L.childNodes)||[]),X=O.next();!X.done;X=O.next()){X=X.value;var x=void 0,J=void 0,Y=void 0,T=void 0,V=void 0;(Y=(x=window)==null?void 0:(J=x.ShadyCSS)==null?void 0:J.ScopingShim)==null||(V=(T=Y).scopeNode)==null||V.call(T,X,this.hostElement.localName)}O=L.lastChild;A.insertNode(L);this.focused||this.input.focus();if(this.focused){A=A.cloneRange();A.selectNodeContents(O);
A.collapse(!1);if(L=window.getSelection())L.removeAllRanges(),L.addRange(A);A.commonAncestorContainer.parentElement.id==="input"&&A.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}A=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(A);_.P4(this.hostElement,"yt-live-chat-message-input-change",A)}};
_.P.setLiveChatRichMessageInput=function(A){_.YJ(_.YJ(this.hostElement).querySelector("#input")).textContent="";if(A&&A.textSegments){for(var L=0;L<A.textSegments.length;L++){var O=A.textSegments[L];O.text?_.YJ(_.YJ(this.hostElement).querySelector("#input")).appendChild(_.k5.createDocumentFragment(O.text,!0,!1)):O.emojiId&&(O=_.$5(_.k5,O.emojiId))&&_.YJ(_.YJ(this.hostElement).querySelector("#input")).appendChild(_.k5.createEmoji(O,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.P.setText=function(A){this.setLiveChatRichMessageInput(A?{textSegments:[{text:A}]}:null)};
_.P.calculateTextBeforeRange=function(A){var L="",O=A.startContainer;if(O&&O instanceof Text){var X;L=((X=O.textContent)==null?void 0:X.substring(0,A.startOffset))||"";O=O.previousSibling}for(;O&&O instanceof Text;)L=O.textContent+L,O=O.previousSibling;return L.replace(OL," ")};
_.P.calculateLiveChatRichMessageInput=function(){for(var A=[],L="",O=_.YJ(_.YJ(this.hostElement).querySelector("#input")).childNodes,X=0;X<O.length;X++){var x=O[X];x instanceof Text?L+=x.textContent:x instanceof HTMLImageElement&&(x.dataset.emojiId?(L&&(A.push({text:L.replace(OL," ")}),L=""),A.push({emojiId:x.dataset.emojiId})):L+=x.alt)}L&&A.push({text:L.replace(OL," ")});if(O=_.YJ(this.hostElement).querySelector("#overflow-text")){L="";O=O.childNodes;for(X=0;X<O.length;X++)x=O[X],x instanceof Text?
L+=x.textContent:x instanceof HTMLImageElement&&(x.dataset.emojiId?(L&&(A.push({text:L.replace(OL," ")}),L=""),A.push({emojiId:x.dataset.emojiId})):L+=x.alt);L&&A.push({text:L.replace(OL," ")})}return{textSegments:A}};
_.P.computeCharacterCount=function(A){if(!A||!A.textSegments)return 0;for(var L=0,O=0;O<A.textSegments.length;O++){var X=A.textSegments[O];if(X.text)L+=X.text.length;else if(X.emojiId){var x=void 0;if((x=this.data)==null?0:x.emojiCharacterCount)L+=this.data.emojiCharacterCount;else{var J=x=void 0,Y=void 0;L+=((J=_.$5(_.k5,(x=X)==null?void 0:x.emojiId))==null?void 0:(Y=J.shortcuts)==null?void 0:Y[0].length)||0}}}return L};
_.P.characterCountChanged=function(){_.P4(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.P.focusedChanged=function(){this.hostElement.dispatchEvent(new _.A3("focused-changed",this.focused))};
_.P.focus=function(){this.setFocus(!1)};
_.P.focusAtEnd=function(){this.setFocus(!0)};
_.P.setFocus=function(A){A=A?this.getRangeAtEnd():this.getInputRange();_.YJ(this.hostElement).querySelector("#input").focus();var L=window.getSelection();L&&(L.removeAllRanges(),L.addRange(A))};
_.P.insertEmoji=function(A){var L,O=((A==null?0:A.isCustomEmoji)?(L=A.shortcuts)==null?void 0:L[0]:A==null?void 0:A.emojiId)||"";this.insertText(O)};
_.P.computeText=function(A){if(!A||!A.textSegments)return"";for(var L="",O=0;O<A.textSegments.length;O++){var X=A.textSegments[O];if(X.text)L+=X.text;else if(X.emojiId){var x=void 0,J=void 0,Y=void 0;L+=((J=_.$5(_.k5,(x=X)==null?void 0:x.emojiId))==null?void 0:(Y=J.shortcuts)==null?void 0:Y[0])||""}}return L};
_.P.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.v2.Object.defineProperties(Xy.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.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}}});
Xy.prototype.focusedChanged=Xy.prototype.focusedChanged;Xy.prototype.characterCountChanged=Xy.prototype.characterCountChanged;Xy.prototype.onSuggestion=Xy.prototype.onSuggestion;Xy.prototype.onMessageSet=Xy.prototype.onMessageSet;Xy.prototype.dataChanged=Xy.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Xy.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Xy.prototype,"ytRendererstamperBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],Xy.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Xy.prototype,"disabled",void 0);_.I([_.r("disabled"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],Xy.prototype,"inputTabIndex",null);_.I([_.r("data.maxCharacterLimit"),_.K({readOnly:!0,notify:!0}),_.Z("design:type",Number),_.Z("design:paramtypes",[])],Xy.prototype,"maxCharacterLimit",null);
_.I([_.r("liveChatRichMessageInput"),_.K({readOnly:!0,notify:!0}),_.Z("design:type",Number),_.Z("design:paramtypes",[])],Xy.prototype,"characterCount",null);_.I([_.r("maxCharacterLimit, characterCount"),_.K({readOnly:!0,notify:!0}),_.Z("design:type",Number),_.Z("design:paramtypes",[])],Xy.prototype,"remainingCharacterCount",null);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Xy.prototype,"isChatMessageInput",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Xy.prototype,"inputExpanded",void 0);_.I([_.K({readOnly:!0,notify:!0}),_.Z("design:type",Object)],Xy.prototype,"liveChatRichMessageInput",void 0);_.I([_.K(),_.Z("design:type",Object)],Xy.prototype,"messageInput",void 0);_.I([_.K(),_.Z("design:type",Boolean)],Xy.prototype,"ignoreColorMapping",void 0);_.I([_.r("characterCount"),_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Xy.prototype,"hasText",null);
_.I([_.K(),_.Z("design:type",Object)],Xy.prototype,"isValidWithNoInputText",void 0);_.I([_.r("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.K(),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Xy.prototype,"isInputValid",null);_.I([_.K({readOnly:!0,value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],Xy.prototype,"focused",void 0);_.I([_.K(),_.Z("design:type",Array)],Xy.prototype,"suggestions",void 0);
_.I([_.K(),_.Z("design:type",_.Mr)],Xy.prototype,"emojiManager",void 0);_.I([_.K(),_.Z("design:type",_.Ll)],Xy.prototype,"participantsManager",void 0);_.I([_.K(),_.Z("design:type",Boolean)],Xy.prototype,"noUnderline",void 0);_.I([_.K(),_.Z("design:type",Object)],Xy.prototype,"inputMethodEditorActive",void 0);_.I([_.qR("#dropdown"),_.Z("design:type",Object)],Xy.prototype,"dropdown",void 0);_.I([_.qR("#input"),_.Z("design:type",HTMLElement)],Xy.prototype,"input",void 0);
_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Xy.prototype,"dataChanged",null);_.I([_.hT("messageInput"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Xy.prototype,"onMessageSet",null);_.I([_.by("yt-live-chat-select-suggestion"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Xy.prototype,"onSuggestion",null);
_.I([_.hT("characterCount"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Xy.prototype,"characterCountChanged",null);_.I([_.hT("focused"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Xy.prototype,"focusedChanged",null);_.I([_.yU({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],Xy);
_.Jdj=_.m(Xy,"yt-live-chat-text-input-field-renderer",function(){if(Ad3===void 0){var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;onJ===void 0&&(onJ=document.createElement("template"));var X=onJ;O.call(L,X.content.cloneNode(!0),A.content.firstChild);Ad3=A}A=Ad3;return A},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var xr=function(){var A=_.G.apply(this,arguments)||this;A.buttonOverrides={style:"overlay",type:"filled"};A.allowAnimations=!1;A.modern=_.h("web_button_rework_with_live");A.noPadding=!1;return A};
_.g(xr,_.G);_.P=xr.prototype;_.P.shouldSupportInlineActionButtons=function(){return!0};
_.P.configureRendererStamper=function(){return{"data.footer":{id:"footer",mapping:{liveChatPaidMessageFooterRenderer:"yt-live-chat-paid-message-footer-renderer"}},"data.buyButton":{id:"lower-buy-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.buyFlowButton":{id:"buy-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},"data.creatorHeartButton":{id:"creator-heart-button",mapping:{creatorHeartViewModel:{component:"yt-live-chat-creator-heart-view-model"}}},
"data.pdgLikeButton":{id:"like-button",mapping:{pdgLikeViewModel:{component:"yt-live-chat-like-button-view-model"}}},"data.replyButton":{id:"reply-button",mapping:{pdgReplyButtonViewModel:{component:"yt-live-chat-reply-button-view-model"}}},"data.leaderboardBadge":{id:"leaderboard-badge",mapping:{buttonViewModel:{component:"yt-button-view-model"}}},"data.lowerBumper":{id:"lower-bumper",mapping:{liveChatItemBumperViewModel:{component:"yt-live-chat-item-bumper-view-model"}}}}};
_.P.ready=function(){var A=document.querySelector("yt-live-chat-app");A&&A.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.P.attached=function(){this.allowAnimations=!1};
_.P.dataChanged=function(){if(this.data){var A={"--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)};_.eq(this.hostElement,A);this.allowAnimations=!0}};
_.P.messageChanged=function(){var A,L=(A=this.data)==null?void 0:A.message;A=_.YJ(_.YJ(this.hostElement).querySelector("#message"));A.textContent="";L&&A.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(L))};
_.P.computeShowOnlyHeader=function(A,L){return!A||A.pdgLikeButton||A.replyButton||A.buyFlowButton?!1:this.isEmpty(A,L)&&!A.footer};
_.P.computeShowFooterDivider=function(A,L,O){return A?!!A.footer&&!this.isEmpty(A,L)&&!O:!1};
_.P.computeIsUserEditable=function(A){return!!A.inputField};
_.P.computeHasHeartButton=function(A){return(A==null?void 0:A.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(A==null?void 0:A.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(A==null?void 0:A.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.P.computeNoveltyImage=function(A){if(A.headerOverlayImage&&A.headerOverlayImage.thumbnails.length){var L=A.headerOverlayImage.thumbnails[0],O,X;if((O=A.pdgPurchasedNoveltyLoggingDirectives)==null?0:(X=O.loggingDirectives)==null?0:X.trackingParams){var x,J;zye((x=A.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(J=x.loggingDirectives)==null?void 0:J.trackingParams)}return L.width||0}return 0};
_.P.computeAuthorPhotoSize=function(A){return(A==null?0:A.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.P.inputFocus=function(){var A=_.YJ(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");A&&A.focus()};
_.P.inputInsertEmoji=function(A){var L=_.YJ(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");L&&L.insertEmoji(A)};
_.P.inputMessage=function(){var A=_.YJ(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),L;return A&&((L=this.data)==null?0:L.inputField)?(A.completeEmojis(),_.$4(A.liveChatRichMessageInput)):null};
_.P.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.P.isEmpty=function(A,L){return A?A.empty||!(A.message||A.inputField||L):!0};
_.P.onLowerBuyButtonClick=function(){var A,L=_.q((A=this.data)==null?void 0:A.buyButton,_.$t);L&&L.trackingParams&&!LwJ(L.command)&&(A=_.lV(L.trackingParams))&&(L=_.Fn())&&_.$K(L,A)};
_.P.shouldSupportWholeItemClick=function(){return!0};
_.v2.Object.defineProperties(xr.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?0:A.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
xr.prototype.isDeletedChanged=xr.prototype.isDeletedChanged;xr.prototype.messageChanged=xr.prototype.messageChanged;xr.prototype.dataChanged=xr.prototype.dataChanged;_.I([_.N(KFJ.YtPdgLiveChatItemBehavior),_.Z("design:type",Object)],xr.prototype,"ytPdgLiveChatItemBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],xr.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.k1),_.Z("design:type",Object)],xr.prototype,"ytLiveChatReduxBehavior",void 0);
_.I([_.N(_.UR.YtLiveChatItemBehavior),_.Z("design:type",_.vP)],xr.prototype,"ytLiveChatItemBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],xr.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],xr.prototype,"data",void 0);_.I([_.K({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:WEy}),_.Z("design:type",Object)],xr.prototype,"engagementState",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.Z("design:type",Boolean)],xr.prototype,"isUserEditable",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.Z("design:type",Boolean)],xr.prototype,"hasHeartButton",void 0);_.I([_.K({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],xr.prototype,"showOnlyHeader",void 0);
_.I([_.K({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],xr.prototype,"showFooterDivider",void 0);_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Object)],xr.prototype,"allowAnimations",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],xr.prototype,"dashboardMoneyFeed",void 0);_.I([_.K({computed:"computeNoveltyImage(data)"}),_.Z("design:type",Number)],xr.prototype,"noveltyWidth",void 0);
_.I([_.K({computed:"computeAuthorPhotoSize(data)"}),_.Z("design:type",Number)],xr.prototype,"authorPhotoSize",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],xr.prototype,"modern",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],xr.prototype,"noPadding",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],xr.prototype,"dataChanged",null);
_.I([_.hT("data.message"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],xr.prototype,"messageChanged",null);_.I([_.r("data","dashboardMoneyFeed"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],xr.prototype,"hideLowerBumper",null);_.I([_.hT("isDeleted"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],xr.prototype,"isDeletedChanged",null);
_.I([_.Q({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],xr);
_.m(xr,"yt-live-chat-paid-message-renderer",function(){if(nnN===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;EnV===void 0&&(EnV=document.createElement("template"));var X=EnV;O.call(L,X.content.cloneNode(!0),A.content.firstChild);nnN=A}A=nnN;return A},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var PoL;var d2L;var sL=function(){var A=_.wd.apply(this,arguments)||this;A._noAccessors=!0;return A};
_.g(sL,_.wd);sL.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.ms("openPopupConfig")};
_.I([_.N(_.iv.YtOpenPopupBehavior),_.Z("design:type",Object)],sL.prototype,"ytOpenPopupBehavior",void 0);_.I([_.p4()],sL);_.J3=[_.iv.YtOpenPopupBehavior,sL.prototype];var Y_J;var Lu=[_.gM,cQL,_.zF,_.wM,_.$O,_.oIH,_.rM,_.uGj,_.y7,HoM];_.h("web_watch_get_updated_metadata_response_processing")&&Lu.push(_.K0J);_.h("web_continuation_response_processing")&&Lu.push(_.Mn);var jbe=new _.Yx("RESPONSE_RECEIVED_COMMANDS"),y1p=new _.Yx("RESPONSE_RECEIVED_COMMANDS");var C9r="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),c1d=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],lue=["GET_UNSEEN_NOTIFICATION_COUNT"];var PL=function(){var A=_.wd.apply(this,arguments)||this;A._noAccessors=!0;A.serviceEndpointHandlers=[];return A};
_.g(PL,_.wd);PL.prototype.created=function(){var A=this;this.endpointHandlerActionMap={"yt-service-request":function(L,O,X,x){var J;return GqP(A.hostElement,L,O,X,x,A.serviceEndpointHandlers,(J=A.onEntitiesUpdated)==null?void 0:J.bind(A))}}};
PL.prototype.attached=function(){_.Bh(_.zu.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
PL.prototype.detached=function(){_.Md(_.zu.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.I([_.p4()],PL);_.uBc=[PL.prototype];var TKg,VAl=function(){return TKg!==void 0?TKg:TKg=document.createElement("template")};
document.head.appendChild(VAl().content);var D2n;var eyu=document.head,ESu=eyu.appendChild,nSJ;if(D2n===void 0){var tA6=document.createElement("template");_.p(tA6,"\x3c!--css-build:shady--\x3e");tA6.content.insertBefore(VAl().content.cloneNode(!0),tA6.content.firstChild);D2n=tA6}nSJ=D2n;ESu.call(eyu,nSJ.content);var bG6,hyc=function(){return bG6!==void 0?bG6:bG6=document.createElement("template")};
document.head.appendChild(hyc().content);var S_n;var q_V=document.head,gSg=q_V.appendChild,wal;if(S_n===void 0){var pa7=document.createElement("template");_.p(pa7,"\x3c!--css-build:shady--\x3e");pa7.content.insertBefore(hyc().content.cloneNode(!0),pa7.content.firstChild);S_n=pa7}wal=S_n;gSg.call(q_V,wal.content);var iGu;_.y3("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.y3("sharingRendererButtons","buttonRenderer","ytd-button-renderer");iGu=_.h("web_button_rework")&&_.fB("BUTTON_REWORK")||_.h("web_button_rework_with_live");_.dD=function(){var A=_.G.apply(this,arguments)||this;A.isPressed=!1;A.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return A};
_.g(_.dD,_.G);_.P=_.dD.prototype;_.P.created=function(){this.showTooltips=!0};
_.P.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.P.onHintIdChanged=function(){var A=this,L,O,X=(L=this.ytButtonBehavior.data)==null?void 0:(O=L.hint)==null?void 0:O.hintRenderer;if(X&&X.hintId){L=_.YK(this.hostElement,"yt-get-opened-popups-action");L=(L&&L.length===1?L[0]:[]).length>0;var x=null;X.hintId!=="sponsor-pre-purchase"||L?X.hintId.startsWith("sponsor-post-purchase")&&!L?x=WpH("membership-manage"):X.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!L&&(x=WpH("membership-freebie-join")):x=WpH("membership-join");x&&_.c1.addLowPriorityJob(function(){for(var J=
_.d(x),Y=J.next();!Y.done;Y=J.next())A.ytComponentBehavior.resolveCommand(Y.value)})}};
_.P.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.P.onYtNavigate=function(A){var L=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(A.detail.endpoint);L&&(A.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(L))};
_.P.onYtServiceRequestSent=function(A,L){this.handleServiceRequestActions(L);_.P4(this.hostElement,"yt-service-request-sent-button-renderer")};
_.P.onServiceRequestCompleted=function(A,L){this.handleServiceRequestActions(L);_.P4(this.hostElement,"yt-service-request-completed-button-renderer")};
_.P.updateButton=function(A){var L;if(A=(L=_.q(A,gIV))==null?void 0:L.updatedButton)this.ytButtonBehavior.data=_.q(A,_.$t)};
_.P.handleUpdateButtonAction=function(A){var L=this.ytButtonBehavior.data;L.targetId&&A.updateButtonAction.targetId&&L.targetId===A.updateButtonAction.targetId&&this.updateButton(A)};
_.P.handleServiceRequestActions=function(A){if(A=A.actions)for(var L=0;L<A.length;L++)this.updateButton(A[L])};
_.v2.Object.defineProperties(_.dD,{template:{configurable:!0,enumerable:!0,get:function(){if(Y_J===void 0){var A=document.createElement("template");_.p(A,"\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");A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);Y_J=A}A=Y_J;return A}}});
_.dD.prototype.onServiceRequestCompleted=_.dD.prototype.onServiceRequestCompleted;_.dD.prototype.onYtServiceRequestSent=_.dD.prototype.onYtServiceRequestSent;_.dD.prototype.onYtNavigate=_.dD.prototype.onYtNavigate;_.dD.prototype.onPressedStateChanged=_.dD.prototype.onPressedStateChanged;_.dD.prototype.onHintIdChanged=_.dD.prototype.onHintIdChanged;_.I([_.K(),_.Z("design:type",Object)],_.dD.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],_.dD.prototype,"isPressed",void 0);
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],_.dD.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.RVl.YtButtonBehavior),_.Z("design:type",Object)],_.dD.prototype,"ytButtonBehavior",void 0);_.I([_.N(_.J3),_.Z("design:type",Object)],_.dD.prototype,"ytdOpenPopupBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],_.dD.prototype,"ytComponentBehavior",void 0);
_.I([_.N(lv.YtRenderButtonBehavior),_.Z("design:type",Object)],_.dD.prototype,"ytRenderButtonBehavior",void 0);_.I([_.hT("data.hint.hintRenderer"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],_.dD.prototype,"onHintIdChanged",null);_.I([_.hT("isPressed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],_.dD.prototype,"onPressedStateChanged",null);
_.I([_.by("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],_.dD.prototype,"onYtNavigate",null);_.I([_.by("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.aQ]),_.Z("design:returntype")],_.dD.prototype,"onYtServiceRequestSent",null);
_.I([_.by("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.Xi]),_.Z("design:returntype")],_.dD.prototype,"onServiceRequestCompleted",null);_.I([_.Q({is:"ytd-button-renderer",disableElementRegistration:iGu})],_.dD);var Yr=function(){var A=_.G.apply(this,arguments)||this;A.modern=_.h("web_button_rework_with_live");A.buttonOverrides={style:"overlay",type:"filled"};return A};
_.g(Yr,_.G);_.P=Yr.prototype;_.P.configureRendererStamper=function(){return{"data.buyButton":{id:"buy-flow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.lowerBumper":{id:"lower-bumper",mapping:{liveChatItemBumperViewModel:{component:"yt-live-chat-item-bumper-view-model"}}},"data.creatorHeartButton":{id:"creator-heart-button",mapping:{creatorHeartViewModel:{component:"yt-live-chat-creator-heart-view-model"}}}}};
_.P.ready=function(){var A=document.querySelector("yt-live-chat-app");A&&A.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.P.dataChanged=function(){if(this.data&&this.data.sticker){var A=_.uB(this.data.sticker.thumbnails,this.stickerWidth);A||_.MWu(A).thenCatch(function(){_.Rv(new _.pe("Failed to load Super Sticker with url",A))})}};
_.P.computeAuthorPhotoSize=function(A){return(A==null?0:A.isV2Style)?32:40};
_.P.computeIsV2Style=function(A){return(A==null?0:A.isV2Style)?!0:!1};
_.P.onStickerLoaded=function(A){var L,O,X;(L=_.AT(A))==null||(O=L.parentNode)==null||(X=O.classList)==null||X.add("sticker-loaded")};
_.P.computeNoveltyImageWidth=function(A){var L,O;if(A==null?0:(L=A.headerOverlayImage)==null?0:(O=L.thumbnails)==null?0:O.length){L=A.headerOverlayImage.thumbnails[0];var X,x;if((X=A.pdgPurchasedNoveltyLoggingDirectives)==null?0:(x=X.loggingDirectives)==null?0:x.trackingParams){var J,Y;zye((J=A.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(Y=J.loggingDirectives)==null?void 0:Y.trackingParams)}return L.width||0}return 0};
_.P.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.P.updateStickerStyles=function(){var A=this.data;A&&(A={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(A.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(A.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(A.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(A.authorNameTextColor)},
_.eq(this.hostElement,A))};
_.P.onBuyButtonClick=function(){var A,L=_.q((A=this.data)==null?void 0:A.buyButton,_.$t);L&&!LwJ(L.command)&&this.ytRendererBehavior.logExplicitClick(L)};
_.P.shouldSupportWholeItemClick=function(){return!0};
_.v2.Object.defineProperties(Yr.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 A;return((A=this.data)==null?0:A.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
Yr.prototype.updateStickerStyles=Yr.prototype.updateStickerStyles;Yr.prototype.isDeletedChanged=Yr.prototype.isDeletedChanged;Yr.prototype.onStickerLoaded=Yr.prototype.onStickerLoaded;Yr.prototype.dataChanged=Yr.prototype.dataChanged;_.I([_.N(KFJ.YtPdgLiveChatItemBehavior),_.Z("design:type",Object)],Yr.prototype,"ytPdgLiveChatItemBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Yr.prototype,"ytRendererBehavior",void 0);
_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],Yr.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.UR.YtLiveChatItemBehavior),_.Z("design:type",_.vP)],Yr.prototype,"ytLiveChatItemBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Yr.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Yr.prototype,"data",void 0);
_.I([_.K({computed:"computeAuthorPhotoSize(data)"}),_.Z("design:type",Number)],Yr.prototype,"authorPhotoSize",void 0);_.I([_.K(),_.Z("design:type",Boolean)],Yr.prototype,"isDeleted",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Yr.prototype,"dashboardMoneyFeed",void 0);_.I([_.K({computed:"computeNoveltyImageWidth(data)"}),_.Z("design:type",Number)],Yr.prototype,"noveltyWidth",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Yr.prototype,"modern",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.Z("design:type",Boolean)],Yr.prototype,"isV2Style",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Yr.prototype,"dataChanged",null);_.I([_.by("yt-img-shadow-loaded"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Yr.prototype,"onStickerLoaded",null);
_.I([_.r("data"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],Yr.prototype,"stickerWidth",null);_.I([_.r("data"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],Yr.prototype,"stickerHeight",null);_.I([_.K({reflectToAttribute:!0}),_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Yr.prototype,"hasHeartButton",null);_.I([_.r("data","dashboardMoneyFeed"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Yr.prototype,"hideLowerBumper",null);
_.I([_.hT("isDeleted"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Yr.prototype,"isDeletedChanged",null);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Yr.prototype,"updateStickerStyles",null);_.I([_.yU({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],Yr);
_.m(Yr,"yt-live-chat-paid-sticker-renderer",function(){if(d2L===void 0){var A=document.createElement("template");_.p(A,'\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>');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;PoL===void 0&&(PoL=document.createElement("template"));var X=PoL;O.call(L,X.content.cloneNode(!0),A.content.firstChild);d2L=A}A=d2L;return A},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var NKH;var rdJ;var KEL,GWj=function(){return KEL!==void 0?KEL:KEL=document.createElement("template")};
document.head.appendChild(GWj().content);var l$3,cdH=function(){return l$3!==void 0?l$3:l$3=document.createElement("template")};
document.head.appendChild(cdH().content);var Coc;var FEn,Ryc=function(){return FEn!==void 0?FEn:FEn=document.createElement("template")};
document.head.appendChild(Ryc().content);var Q1g;var m2N=document.head,f$J=m2N.appendChild,I$g;if(Q1g===void 0){var ydj=document.createElement("template");_.p(ydj,"\x3c!--css-build:shady--\x3e");ydj.content.insertBefore(Ryc().content.cloneNode(!0),ydj.content.firstChild);Q1g=ydj}I$g=Q1g;f$J.call(m2N,I$g.content);var ZGn=document.head,j1c=ZGn.appendChild,WEN;if(Coc===void 0){var uj=document.createElement("template");_.p(uj,"\x3c!--css-build:shady--\x3e");uj.content.insertBefore(cdH().content.cloneNode(!0),uj.content.firstChild);uj.content.insertBefore(GWj().content.cloneNode(!0),uj.content.firstChild);Coc=uj}WEN=Coc;j1c.call(ZGn,WEN.content);var Tc=function(){var A=_.wd.apply(this,arguments)||this;A.focusedIndex=0;A.verticalOffset=0;A.verticalAlign="top";A.dynamicAlign=!0;return A};
_.g(Tc,_.wd);Tc.prototype.emojiUrl=function(A){A=_.$5(this.emojiManager,A);if(!A)return"";var L;A=(L=A.image)==null?void 0:L.thumbnails;return _.uB(A,24)||""};
var HG6=function(A){var L;A.emojiVariants&&(L=A.data)!=null&&L.target&&_.kd(A,function(){A.set("verticalOffset",-1*A.hostElement.clientHeight);var O=_.YJ(A.hostElement).querySelector("img");O&&O.focus()})};
_.P=Tc.prototype;_.P.onKeyboardEnter=function(){};
_.P.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.P.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.P.onKeyDown=function(A){switch(A.keyCode){case 13:this.onKeyboardEnter();A.preventDefault();break;case 40:this.changeFocus(1);A.preventDefault();break;case 38:this.changeFocus(-1);A.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.P.onYtEmojiSelect=function(A){var L=this,O,X,x,J,Y,T,V,E;return _.u(function(n){if(n.nextAddress==1)return X=(O=L.data)==null?void 0:O.emoji,Y=((x=X)==null?void 0:x.stickyPrefId)||((J=X)==null?void 0:J.emojiId),V=(T=A.detail)==null?void 0:T.emojiId,Y&&V&&Y!==V?n.yield((E=L.emojiManager)==null?void 0:aj7(E,X,V),2):n.return();_.dQ(L.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[X,V]);_.qo(n)})};
_.P.changeFocus=function(A){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+A+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(A=_.YJ(this.hostElement).querySelector("#variants"))&&A.children[this.focusedIndex].focus())};
_.v2.Object.defineProperties(Tc.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
Tc.prototype.onYtEmojiSelect=Tc.prototype.onYtEmojiSelect;Tc.prototype.onKeyDown=Tc.prototype.onKeyDown;Tc.prototype.onEmojiVariantsChanged=Tc.prototype.onEmojiVariantsChanged;Tc.prototype.onVerticalOffsetOrPositionTargetChanged=Tc.prototype.onVerticalOffsetOrPositionTargetChanged;_.I([_.N(_.AB),_.Z("design:type",Object)],Tc.prototype,"ironOverlayBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Tc.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",_.Mr)],Tc.prototype,"emojiManager",void 0);
_.I([_.K(),_.Z("design:type",Object)],Tc.prototype,"emojiVariants",void 0);_.I([_.K(),_.Z("design:type",Object)],Tc.prototype,"focusedIndex",void 0);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Tc.prototype,"positionTarget",null);_.I([_.K({reflectToAttribute:!0}),_.r("verticalOffset","data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Tc.prototype,"isPositioned",null);_.I([_.K(),_.Z("design:type",Object)],Tc.prototype,"verticalOffset",void 0);
_.I([_.K(),_.Z("design:type",Object)],Tc.prototype,"verticalAlign",void 0);_.I([_.K(),_.Z("design:type",Object)],Tc.prototype,"dynamicAlign",void 0);_.I([_.hT("verticalOffset","positionTarget"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Tc.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.I([_.hT("emojiVariants"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Tc.prototype,"onEmojiVariantsChanged",null);
_.I([_.by("keydown"),_.Z("design:type",Function),_.Z("design:paramtypes",[KeyboardEvent]),_.Z("design:returntype")],Tc.prototype,"onKeyDown",null);_.I([_.by("yt-emoji-select"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype",Promise)],Tc.prototype,"onYtEmojiSelect",null);_.I([_.p4()],Tc);var zyN=[Tc.prototype];var BK6;var MA7;var $2c=/medium-light|medium-dark|light|medium|dark/,a$N=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,kWN=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),Vk=function(){var A=_.G.apply(this,arguments)||this;A.userSelection={left:null,right:null};A.scrollAction="lock";A.isEmojiDraftInProgress=!1;return A};
_.g(Vk,_.G);_.P=Vk.prototype;_.P.onClick=function(A){A=_.AT(A);A instanceof HTMLImageElement&&this.selectOrUpdateEmoji(A)};
_.P.selectOrUpdateEmoji=function(A){var L=A.getAttribute("selection");L&&(L==="default"?_.P4(this.hostElement,"yt-emoji-select",_.$5(this.emojiManager,A.id)):L==="left"?this.userSelection=Object.assign({},this.userSelection,{left:A.src}):L==="right"?this.userSelection=Object.assign({},this.userSelection,{right:A.src}):L==="user"&&this.userSelection.left&&this.userSelection.right&&_.P4(this.hostElement,"yt-emoji-select",_.$5(this.emojiManager,A.id)))};
_.P.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.P.onMultiSelectorThumbnailRowChanged=function(){var A,L,O;((A=this.data)==null?0:(L=A.emoji)==null?0:(O=L.multiSelectorThumbnailRow)==null?0:O.length)&&this.openSelector()};
_.P.getThumbnailFromEmojiRow=function(A){var L,O;return(A==null?void 0:(L=A.thumbnails)==null?void 0:(O=L[0])==null?void 0:O.url)||""};
_.P.getEmojiAltTextForPartialSelector=function(A){var L;return((L=this.getThumbnailFromEmojiRow(A).match(a$N))==null?void 0:L[0])||""};
_.P.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.P.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.P.getRowSelection=function(A){return["left","right"][A]};
_.P.getIdFromComposedEmoji=function(A){return(A==null?void 0:A.emojiId)||""};
_.P.getEmojiFromPartialSelections=function(A,L){if(!A&&!L)return null;var O,X,x=(O=this.data)==null?void 0:(X=O.emoji)==null?void 0:X.variantIds;if(!x||!x.length)return null;var J;A=(J=A.match($2c))==null?void 0:J[0];var Y;L=(Y=L.match($2c))==null?void 0:Y[0];if(!A||!L)return null;var T=kWN.get(A);Y=kWN.get(L);if(T===Y){Y=Array.from(kWN.values()).filter(function(E){return E!==T}).join("|");
var V=new RegExp("^((?!("+Y+")).)*"+T+"$")}else V=new RegExp(T+".*"+Y);return(x=x.find(function(E){return V.test(E)}))&&_.$5(this.emojiManager,x)||null};
_.P.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var A,L=this.ytEmojiSelectorBehavior.emojiUrl(((A=this.data.emoji)==null?void 0:A.emojiId)||"");_.YJ(this.hostElement).querySelector('[selection="user"]').src.includes(L)||(this.isEmojiDraftInProgress=!0)}};
_.P.onDomChange=function(){HG6(this.ytEmojiSelectorBehavior)};
_.P.getFocusableElements=function(){return _.YJ(this.hostElement).querySelectorAll("img").filter(function(A){return A.getAttribute("role")==="option"})};
_.P.changeFocus=function(A){var L=this.getFocusableElements();L!=null&&L.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+A+L.length)%L.length,this.ytEmojiSelectorBehavior.focusedIndex<L.length&&(A=L[this.ytEmojiSelectorBehavior.focusedIndex])&&A.focus())};
_.P.onKeyboardEnter=function(){var A=this.getFocusableElements();A!=null&&A.length&&(A=A[this.ytEmojiSelectorBehavior.focusedIndex])&&A instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(A),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.v2.Object.defineProperties(Vk.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var A=this,L,O,X;return this.emojiManager&&((L=this.data)==null?0:(O=L.emoji)==null?0:(X=O.variantIds)==null?0:X.length)?this.data.emoji.variantIds.map(function(x){return!!x&&_.$5(A.emojiManager,x)}).filter(function(x){return!!x}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var A,L=(A=this.userSelection)==null?void 0:A.left,O;A=(O=this.userSelection)==null?void 0:O.right;return L&&A?this.getEmojiFromPartialSelections(L,A):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.composedEmojiSelection)==null?0:A.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var L;A=(L=this.userSelection)==null?void 0:L.left;var O;L=(O=this.userSelection)==null?void 0:O.right;if(!A&&!L){var X;return this.ytEmojiSelectorBehavior.emojiUrl(((X=this.data.emoji)==null?void 0:X.emojiId)||"")}return A&&!L?A:!A&&L?L:""}}});
Vk.prototype.onMultiSelectorThumbnailRowChanged=Vk.prototype.onMultiSelectorThumbnailRowChanged;Vk.prototype.onClick=Vk.prototype.onClick;_.I([_.N(_.AB),_.Z("design:type",Object)],Vk.prototype,"ironOverlayBehavior",void 0);_.I([_.N(zyN),_.Z("design:type",Object)],Vk.prototype,"ytEmojiSelectorBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Vk.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",_.Mr)],Vk.prototype,"emojiManager",void 0);
_.I([_.K(),_.Z("design:type",Object)],Vk.prototype,"userSelection",void 0);_.I([_.K(),_.Z("design:type",Object)],Vk.prototype,"scrollAction",void 0);_.I([_.K(),_.Z("design:type",Object)],Vk.prototype,"isEmojiDraftInProgress",void 0);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Vk.prototype,"emojiVariants",null);_.I([_.r("data","userSelection"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Vk.prototype,"composedEmojiSelection",null);
_.I([_.by("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[MouseEvent]),_.Z("design:returntype")],Vk.prototype,"onClick",null);_.I([_.hT("data.emoji.multiSelectorThumbnailRow"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Vk.prototype,"onMultiSelectorThumbnailRowChanged",null);_.I([_.r("data","userSelection","composedEmojiSelection"),_.Z("design:type",String),_.Z("design:paramtypes",[])],Vk.prototype,"draftEmojiUrl",null);
_.I([_.yU({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],Vk);
_.m(Vk,"yt-emoji-multi-person-selector",function(){if(MA7===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;BK6===void 0&&(BK6=document.createElement("template"));var X=BK6;O.call(L,X.content.cloneNode(!0),A.content.firstChild);MA7=A}A=MA7;return A},{mode:2});var U2N;var vS6;var D1=function(){var A=_.G.apply(this,arguments)||this;A.tooltip_=null;return A};
_.g(D1,_.G);_.P=D1.prototype;_.P.dataChanged_=function(){var A;if((A=this.data)==null?0:A.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.YJ(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.DB)(this.tooltip_).textContent=this.data.tooltip};
_.P.computeTargetId=function(){var A;return((A=this.data)==null?void 0:A.targetId)||""};
_.P.computeId_=function(A){return A};
_.P.computeIcon_=function(A){return _.bV(A)};
_.P.onTap_=function(){this.active=!this.active;_.P4(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.P.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.A3("active-changed",this.active))};
_.v2.Object.defineProperties(D1.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var A,L;if((A=this.data)==null?0:(L=A.icon)==null?0:L.iconType)return this.data.icon.iconType==="SUPER_STICKER";var O,X;return((O=this.data)==null?void 0:(X=O.icon)==null?void 0:X.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
D1.prototype.activeChangedForBinding=D1.prototype.activeChangedForBinding;D1.prototype.dataChanged_=D1.prototype.dataChanged_;_.I([_.N(_.Uc.YtLiveChatTooltipTargetingBehavior),_.Z("design:type",Object)],D1.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],D1.prototype,"data",void 0);_.I([_.K({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.Z("design:type",String)],D1.prototype,"id",void 0);
_.I([_.K({computed:"computeTargetId(data.targetId)"}),_.Z("design:type",String)],D1.prototype,"targetId",void 0);_.I([_.K({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],D1.prototype,"active",void 0);_.I([_.K({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.Z("design:type",String)],D1.prototype,"icon",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],D1.prototype,"dataChanged_",null);
_.I([_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],D1.prototype,"iconFilled",null);_.I([_.hT("active"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],D1.prototype,"activeChangedForBinding",null);_.I([_.yU({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],D1);
_.m(D1,"yt-emoji-picker-category-button-renderer",function(){if(vS6===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;U2N===void 0&&(U2N=document.createElement("template"));var X=U2N;O.call(L,X.content.cloneNode(!0),A.content.firstChild);vS6=A}A=vS6;return A},{mode:2});var oSL;var A1N;var eb=function(){var A=_.G.apply(this,arguments)||this;A.ariaLabel=null;A.ariaActivedescendant=null;A.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};A.JSC$15146_ignoreNextFocus_=!1;A.longPressTimeoutId=-1;return A};
_.g(eb,_.G);_.P=eb.prototype;_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.P.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.P.emojiChanged_=function(){this.changeFocus_(0,!1);for(var A=_.iV(),L=0;L<this.emoji.length;L++){var O={veType:88013,elementIndex:L},X=this.emoji[L];X.isCustomEmoji&&(X=document.querySelector(("#"+X.emojiId).replace("/","\\/")))&&(O=_.pT(A,O))&&(X.visualElement=O)}};
_.P.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.P.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.P.emojiSkinToneChanged_=function(A){this.skinTone=A};
_.P.dataChanged=function(){this.data&&this.data.emojiData&&ztH(this.emojiManager,this.data.emojiData)};
_.P.emojiUrl=function(A){A=this.getEmoji(A);if(!A)return"";var L;A=(L=A.image)==null?void 0:L.thumbnails;return _.uB(A,24)||""};
_.P.emojiAlt=function(A){var L=this.get("image.accessibility.accessibilityData.label",A);return L?L:A.isCustomEmoji?A.shortcuts[0]:A.emojiId};
_.P.emojiAriaLabel=function(A){return A.shortcuts?A.shortcuts[0]:""};
_.P.emojiAriaSelected=function(A,L,O){return A&&O==L?"true":"false"};
_.P.getEmoji=function(A){if(this.emojiManager)return this.shouldUseStickyPreferences?MyH(this.emojiManager,A):ar(this.emojiManager,A)};
_.P.computeId_=function(A){return A.categoryId||""};
_.P.computeEmoji=function(A){var L=this;return this.emojiManager?A.emojiIds?A.emojiIds.map(function(O){return O?_.$5(L.emojiManager,O):null}).filter($xp):A.emojiData?A.emojiData.map(function(O){var X=!!O.emojiId&&_.$5(L.emojiManager,O.emojiId);
return X?Object.assign({},X,O):null}).filter($xp):[]:[]};
_.P.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.P.computeAriaLabel_=function(A){return _.vG(A)};
_.P.computeAriaActivedescendant_=function(A,L){return A&&A[L]?A[L].emojiId||"":""};
_.P.handleLongPressEmojiWithVariants=function(A,L){this.changeFocusToEmoji(A.emojiId,!1);this.openVariantSelector(A,L)};
_.P.onMouseDown=function(A){var L=this;this.hostElement!==document.activeElement&&(this.JSC$15146_ignoreNextFocus_=!0);if(A.button===0){var O=_.AT(A);if(O instanceof HTMLImageElement){var X=_.YJ(this.hostElement).querySelector("#repeat").itemForElement(O);this.emojiContainsVariants(X)&&(this.longPressTimeoutId=setTimeout(function(){L.handleLongPressEmojiWithVariants(X,O)},500))}}};
_.P.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.P.onFocus=function(){this.JSC$15146_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$15146_ignoreNextFocus_=!1};
_.P.onBlur_=function(){this.showFocus=!1};
_.P.emojiContainsVariants=function(A){return!!(A&&A.variantIds&&A.variantIds.length)};
_.P.onClick=function(A){clearTimeout(this.longPressTimeoutId);A=_.AT(A);if(A instanceof HTMLImageElement){var L=A.id;this.changeFocusToEmoji(L,!1);var O=this.getEmoji(L),X;if(X=this.shouldUseStickyPreferences&&this.emojiContainsVariants(O)){var x;X=!((x=this.emojiManager.emojiMap[L])!=null&&x.stickyPrefId)}X?(x=_.YJ(this.hostElement).querySelector("#repeat").itemForElement(A),this.openVariantSelector(x,A)):_.P4(this.hostElement,"yt-emoji-select",O)}};
_.P.isActiveEmojiWithVariants=function(A,L){return A&&L?L.stickyPrefId?A===L.stickyPrefId:A===L.emojiId:!1};
_.P.onCloseEmojiVariantSelector=function(A){this.activeEmojiWithVariantsId===A&&(this.activeEmojiWithVariantsId="")};
_.P.onMouseOver_=function(A){A=_.AT(A);A instanceof HTMLImageElement&&_.P4(this.hostElement,"yt-emoji-hover",_.$5(this.emojiManager,A.id))};
_.P.changeFocus_=function(A,L){this.focusedIndex=(this.focusedIndex+A+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(A=this.emoji[this.focusedIndex],L&&(this.showFocus=!0,_.YJ(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.P4(this.hostElement,"yt-emoji-hover",A)))};
_.P.changeFocusToEmoji=function(A,L){if(A){var O=this.emoji.findIndex(function(X){return X.emojiId===A});
O!==-1&&this.changeFocus_(O-this.focusedIndex,L)}};
_.P.onKeyDown_=function(A){switch(A.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var L=this.emoji[this.focusedIndex];if(L&&L.emojiId){if(this.emojiContainsVariants(L)){var O=_.YJ(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(L,O)}else _.P4(this.hostElement,"yt-emoji-select",ar(this.emojiManager,L.emojiId)),this.hostElement.focus();A.preventDefault()}}break;case 40:this.changeFocus_(1,!0);A.preventDefault();break;case 38:this.changeFocus_(-1,!0),
A.preventDefault()}};
_.P.onEmojiStickyPreferenceChanged=function(A,L){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&A.emojiId&&A.variantIds&&A.variantIds.includes(L)&&this.activeEmojiWithVariantsId!==L&&this.setStickyEmojiPreference(A.emojiId,L)};
_.P.openVariantSelector=function(A,L){this.activeEmojiWithVariantsId=A.stickyPrefId||A.emojiId||"";_.P4(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:A,target:L})};
_.P.setStickyEmojiPreference=function(A,L){if(this.data){var O=this.emoji.findIndex(function(x){return x.emojiId===A});
if(O!==-1){var X=this.emoji[O];X.stickyPrefId=L;this.set("emoji."+O,Object.assign({},X));this.activeEmojiWithVariantsId=L}}};
eb.prototype.onKeyDown_=eb.prototype.onKeyDown_;eb.prototype.onMouseOver_=eb.prototype.onMouseOver_;eb.prototype.onClick=eb.prototype.onClick;eb.prototype.onBlur_=eb.prototype.onBlur_;eb.prototype.onFocus=eb.prototype.onFocus;eb.prototype.onMouseUp=eb.prototype.onMouseUp;eb.prototype.onMouseDown=eb.prototype.onMouseDown;eb.prototype.dataChanged=eb.prototype.dataChanged;eb.prototype.disableIncrementalLoadingChanged_=eb.prototype.disableIncrementalLoadingChanged_;eb.prototype.emojiManagerChanged_=eb.prototype.emojiManagerChanged_;
eb.prototype.emojiChanged_=eb.prototype.emojiChanged_;_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],eb.prototype,"ytActionHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],eb.prototype,"data",void 0);_.I([_.K({computed:"computeId_(data)"}),_.Z("design:type",String)],eb.prototype,"id",void 0);_.I([_.K({computed:"computeEmoji(data)"}),_.Z("design:type",Array)],eb.prototype,"emoji",void 0);_.I([_.K(),_.Z("design:type",Number)],eb.prototype,"skinTone",void 0);
_.I([_.K(),_.Z("design:type",_.Mr)],eb.prototype,"emojiManager",void 0);_.I([_.K(),_.Z("design:type",Boolean)],eb.prototype,"disableIncrementalLoading",void 0);_.I([_.K({value:0}),_.Z("design:type",Number)],eb.prototype,"focusedIndex",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],eb.prototype,"showFocus",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.Z("design:type",Object)],eb.prototype,"ariaLabel",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.Z("design:type",Object)],eb.prototype,"ariaActivedescendant",void 0);_.I([_.K({value:60}),_.Z("design:type",Number)],eb.prototype,"domRepeatTargetFramerate",void 0);_.I([_.K({value:1}),_.Z("design:type",Number)],eb.prototype,"domRepeatInitialCount",void 0);_.I([_.K({value:""}),_.Z("design:type",String)],eb.prototype,"activeEmojiWithVariantsId",void 0);
_.I([_.K({value:!1}),_.Z("design:type",Boolean)],eb.prototype,"shouldUseStickyPreferences",void 0);_.I([_.hT("emoji"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],eb.prototype,"emojiChanged_",null);_.I([_.hT("emojiManager"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],eb.prototype,"emojiManagerChanged_",null);
_.I([_.hT("disableIncrementalLoading"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],eb.prototype,"disableIncrementalLoadingChanged_",null);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],eb.prototype,"dataChanged",null);_.I([_.by("mousedown"),_.Z("design:type",Function),_.Z("design:paramtypes",[Object]),_.Z("design:returntype")],eb.prototype,"onMouseDown",null);
_.I([_.by("mouseup"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],eb.prototype,"onMouseUp",null);_.I([_.by("focus"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],eb.prototype,"onFocus",null);_.I([_.by("blur"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],eb.prototype,"onBlur_",null);
_.I([_.by("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],eb.prototype,"onClick",null);_.I([_.by("mouseover"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],eb.prototype,"onMouseOver_",null);_.I([_.by("keydown"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],eb.prototype,"onKeyDown_",null);
_.I([_.yU({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],eb);
_.m(eb,"yt-emoji-picker-category-renderer",function(){if(A1N===void 0){var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;oSL===void 0&&(oSL=document.createElement("template"));var X=oSL;O.call(L,X.content.cloneNode(!0),A.content.firstChild);A1N=A}A=A1N;return A},{mode:2});var L_N;var Oo6;var XKV;var xxu;var EL=function(){var A=_.G.apply(this,arguments)||this;A.ariaLabel=null;A.ariaActivedescendant=null;A.getFormattedStringRawText=_.vG;A.JSC$15152_ignoreNextFocus_=!1;return A};
_.g(EL,_.G);_.P=EL.prototype;_.P.attached=function(){this.hostElement.hasAttribute("aria-live")||this.hostElement.setAttribute("aria-live","polite");this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.P.emojiUrl=function(A){var L,O;A=(L=ar(this.emojiManager,A,!0))==null?void 0:(O=L.image)==null?void 0:O.thumbnails;return _.uB(A,24)||""};
_.P.emojiAlt=function(A){var L=this.get("image.accessibility.accessibilityData.label",A);return L?L:A.isCustomEmoji?A.shortcuts[0]:A.emojiId};
_.P.emojiId=function(A){return"emoji"+A};
_.P.computeId_=function(A){return A.categoryId||""};
_.P.computeAriaActivedescendant_=function(A){return this.emoji&&A<this.emoji.length?this.emojiId(A):""};
_.P.emojiChanged_=function(){this.changeFocus_(0,!1);for(var A=_.iV(),L=0;L<this.emoji.length;L++){var O={veType:88013,elementIndex:L},X=this.emoji[L];X.isCustomEmoji&&(X=document.querySelector(("#"+X.emojiId).replace("/","\\/")))&&(O=_.pT(A,O))&&(X.visualElement=O)}};
_.P.computeEmoji_=function(A){var L=this;return this.emojiManager?A.emojiIds.map(function(O){return _.$5(L.emojiManager,O,!0)}).filter(auD):[]};
_.P.titleOffsetChanged_=function(){var A=this.hostElement.getBoundingClientRect(),L=_.YJ(this.hostElement).querySelector("#title").getBoundingClientRect();A=Math.max(0,Math.min(this.titleOffset,A.height-L.height));_.YJ(this.hostElement).querySelector("#title").style.top=A+"px"};
_.P.onEmojiMouseOver_=function(A){_.P4(this.hostElement,"yt-emoji-hover",A.model.item)};
_.P.onEmojiTap_=function(A){this.data.command&&(A=oSp(_.X5().resolve(_.Ot(Wh)),this.data.command,A),_.P4(this.hostElement,"yt-navigate",A))};
_.P.emojiAriaLabel=function(A){return A.shortcuts[0]};
_.P.emojiAriaSelected=function(A,L,O){return A&&O==L?"true":"false"};
_.P.changeFocus_=function(A,L){var O=this.emoji.length;this.focusedIndex=(this.focusedIndex+A+O)%O;A=this.emoji[this.focusedIndex];if(L){var X;(X=_.YJ(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||X.scrollIntoView(!1);_.P4(this.hostElement,"yt-emoji-hover",A)}};
_.P.onMouseDown_=function(){this.JSC$15152_ignoreNextFocus_=!0};
_.P.onFocus_=function(){this.JSC$15152_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$15152_ignoreNextFocus_=!1};
_.P.onBlur_=function(){this.showFocus=!1};
_.P.onKeyDown_=function(A){switch(A.keyCode){case 13:this.onEmojiTap_(A);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);A.preventDefault();break;case 38:this.changeFocus_(-1,!0),A.preventDefault()}};
EL.prototype.onKeyDown_=EL.prototype.onKeyDown_;EL.prototype.onBlur_=EL.prototype.onBlur_;EL.prototype.onFocus_=EL.prototype.onFocus_;EL.prototype.onMouseDown_=EL.prototype.onMouseDown_;EL.prototype.onEmojiTap_=EL.prototype.onEmojiTap_;EL.prototype.titleOffsetChanged_=EL.prototype.titleOffsetChanged_;EL.prototype.emojiChanged_=EL.prototype.emojiChanged_;_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],EL.prototype,"ytComponentBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],EL.prototype,"data",void 0);_.I([_.K({computed:"computeId_(data)"}),_.Z("design:type",String)],EL.prototype,"id",void 0);_.I([_.K({computed:"computeEmoji_(data)"}),_.Z("design:type",Array)],EL.prototype,"emoji",void 0);_.I([_.K({value:0}),_.Z("design:type",Number)],EL.prototype,"titleOffset",void 0);_.I([_.K({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.Z("design:type",Object)],EL.prototype,"ariaLabel",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.Z("design:type",Object)],EL.prototype,"ariaActivedescendant",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],EL.prototype,"showFocus",void 0);_.I([_.K({value:0}),_.Z("design:type",Number)],EL.prototype,"focusedIndex",void 0);_.I([_.K(),_.Z("design:type",_.Mr)],EL.prototype,"emojiManager",void 0);
_.I([_.hT("emoji"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],EL.prototype,"emojiChanged_",null);_.I([_.hT("titleOffset"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],EL.prototype,"titleOffsetChanged_",null);_.I([_.by("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],EL.prototype,"onEmojiTap_",null);
_.I([_.by("mousedown"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],EL.prototype,"onMouseDown_",null);_.I([_.by("focus"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],EL.prototype,"onFocus_",null);_.I([_.by("blur"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],EL.prototype,"onBlur_",null);
_.I([_.by("keydown"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],EL.prototype,"onKeyDown_",null);_.I([_.yU({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],EL);
_.m(EL,"yt-emoji-picker-upsell-category-renderer",function(){if(xxu===void 0){var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;XKV===void 0&&(XKV=document.createElement("template"));var X=XKV;O.call(L,X.content.cloneNode(!0),A.content.firstChild);xxu=A}A=xxu;return A},{mode:2});var sp3;var J1n;var nl=function(){var A=_.G.apply(this,arguments)||this;A.scrollAction="lock";A.verticalAlign="top";return A};
_.g(nl,_.G);_.P=nl.prototype;_.P.onClick=function(A){A=_.AT(A);A instanceof HTMLImageElement&&_.P4(this.hostElement,"yt-emoji-select",_.$5(this.emojiManager,A.id))};
_.P.openSelector=function(){this.ironOverlayBehavior.open()};
_.P.onDomChange=function(){HG6(this.ytEmojiSelectorBehavior)};
_.P.computeIsFamilySelector=function(A){var L;return(A==null?void 0:(L=A.emoji)==null?void 0:L.emojiId)==="\ud83d\udc6a"};
_.P.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var A=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];A&&A.emojiId&&(_.P4(this.hostElement,"yt-emoji-select",_.$5(this.emojiManager,A.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.v2.Object.defineProperties(nl.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var A=this,L,O,X;return this.emojiManager&&((L=this.data)==null?0:(O=L.emoji)==null?0:(X=O.variantIds)==null?0:X.length)?this.data.emoji.variantIds.map(function(x){return!!x&&_.$5(A.emojiManager,x)}).filter(function(x){return!!x}):[]}}});
nl.prototype.onClick=nl.prototype.onClick;_.I([_.N(_.AB),_.Z("design:type",Object)],nl.prototype,"ironOverlayBehavior",void 0);_.I([_.N(zyN),_.Z("design:type",Object)],nl.prototype,"ytEmojiSelectorBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],nl.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",_.Mr)],nl.prototype,"emojiManager",void 0);_.I([_.K(),_.Z("design:type",Object)],nl.prototype,"scrollAction",void 0);_.I([_.K(),_.Z("design:type",Object)],nl.prototype,"verticalAlign",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.Z("design:type",Boolean)],nl.prototype,"isFamilySelector",void 0);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],nl.prototype,"emojiVariants",null);_.I([_.by("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[MouseEvent]),_.Z("design:returntype")],nl.prototype,"onClick",null);_.I([_.yU({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],nl);
_.m(nl,"yt-emoji-variant-selector",function(){if(J1n===void 0){var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;sp3===void 0&&(sp3=document.createElement("template"));var X=sp3;O.call(L,X.content.cloneNode(!0),A.content.firstChild);J1n=A}A=J1n;return A},{mode:2});var P93=/:/g,dxN=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],t3=function(){var A=_.G.apply(this,arguments)||this;A.emojiVariantSelector=null;A.emojiMultiPersonSelector=null;A.identity=_.Rd;A.lastAnimationTime_=0;A.animationStart_=null;A.animationEnd_=null;return A};
_.g(t3,_.G);_.P=t3.prototype;
_.P.configureRendererStamper=function(){return{categories:{id:"categories",mapping:{emojiPickerCategoryRenderer:{component:"yt-emoji-picker-category-renderer",properties:{disableIncrementalLoading:"[[disableIncrementalLoading]]",emojiManager:"[[emojiManager]]",shouldUseStickyPreferences:"[[shouldUseStickyPreferences]]"}},emojiPickerUpsellCategoryRenderer:{component:"yt-emoji-picker-upsell-category-renderer",properties:{emojiManager:"[[emojiManager]]"}}}},categoryButtons:{id:"category-buttons",mapping:{emojiPickerCategoryButtonRenderer:"yt-emoji-picker-category-button-renderer"}},
emojiVariantSelector:{id:"emoji-variant-selector",mapping:{ytEmojiVariantSelector:{component:"yt-emoji-variant-selector",properties:{emojiManager:"[[emojiManager]]"}}},reuseComponents:!1},emojiMultiPersonSelector:{id:"emoji-multi-person-selector",mapping:{ytEmojiMultiPersonSelector:{component:"yt-emoji-multi-person-selector",properties:{emojiManager:"[[emojiManager]]"}}},reuseComponents:!1}}};
_.P.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.k5)};
_.P.attached=function(){_.Ei&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&B7j(this.emojiManager)};
_.P.dataChanged=function(){var A;if((A=this.data)==null?0:A.categories){A=this.emojiManager;var L=this.getCustomEmojiIds();A.pickerCustomEmojiIds=[].concat(_.le(yJl),_.le(L))}};
_.P.getCustomEmojiIds=function(){var A,L=(A=this.data.categories)==null?void 0:A.find(function(J){var Y;return((Y=J.emojiPickerCategoryRenderer)==null?void 0:Y.categoryId)&&dxN.includes(J.emojiPickerCategoryRenderer.categoryId)}),O;
A=(O=this.data.categories)==null?void 0:O.find(function(J){return J.emojiPickerUpsellCategoryRenderer});
var X,x;return[L==null?void 0:(X=L.emojiPickerCategoryRenderer)==null?void 0:X.emojiIds,A==null?void 0:(x=A.emojiPickerUpsellCategoryRenderer)==null?void 0:x.emojiIds].flat().filter(function(J){return!!J})};
_.P.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.P.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.P.updateCategoriesAndPlaceholderInternal=function(A,L){var O=this;A&&L&&(this.categories=A.categories||[],this.categoryButtons=A.categoryButtons||[],this.resetPlaceholder(),this.search="",_.MR(function(){O.updateButtons_()}))};
_.P.computeId_=function(A){return A.id||""};
_.P.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(A){return A.emojiPickerCategoryRenderer&&A.emojiPickerCategoryRenderer.emojiData}):!1};
_.P.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.P.onShowEmojiVariantSelector=function(A){var L=A.detail.emojiData;L.variantIds&&L.variantIds.length&&(L.multiSelectorThumbnailRow&&L.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:L,target:A.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:L,target:A.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.P.onIronOverlayClosed=function(A){var L=MyH(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");L&&A.composedPath&&(A.composedPath().includes(_.YJ(this.hostElement).querySelector("#emoji-variant-selector"))||A.composedPath().includes(_.YJ(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.dQ(this.hostElement,"yt-close-emoji-variant-selector",[L.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.P.onEmojiVariantSelectorMouseup=function(A){var L=A.target.firstChild;this.variantSelectorOpened&&L&&_.MR(function(){L.noCancelOnOutsideClick=!1},100)};
_.P.onEmojiVariantSelectorMousedown=function(A){A=A.target.firstChild;this.variantSelectorOpened&&A&&(A.noCancelOnOutsideClick=!1)};
_.P.onSelectCategory_=function(A){var L=this.search!="";this.search="";for(var O=_.YJ(this.hostElement).querySelector("#categories").children,X=0;X<O.length;X++){var x=O[X];if(x.id==A.detail.categoryId){L?(_.YJ(this.hostElement).querySelector("#categories").scrollTop=x.offsetTop,this.updateButtons_()):(this.animationStart_=_.YJ(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=x.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.P.onEmojiHover_=function(A){this.placeholder=A.detail.shortcuts?A.detail.shortcuts[0]:""};
_.P.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.P.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.P.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.P.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.P.computeSearchCategory_=function(A){A=A.replace(P93,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();A=A.split(" ");for(var L=[],O=this.emojiManager.emojis,X=0;X<O.length;X++){var x=O[X];if(x.searchTerms)for(var J=0;J<x.searchTerms.length;J++){for(var Y=x.searchTerms[J].toLocaleLowerCase(),T=!1,V=0;V<A.length;V++)if(Y.indexOf(A[V])!=-1){T=!0;break}if(T&&(!x.isCustomEmoji||!x.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(x.emojiId))){L.push(x.emojiId);
break}}}return{categoryId:-1,emojiIds:L}};
_.P.computeSearchEmptyMessage_=function(A,L){return A&&L&&L.emojiIds&&L.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.P.computeSearching_=function(A){return this.emojiManager&&A.replace(P93,"").length>1};
_.P.computeSkinToneHidden=function(){var A;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((A=this.data)==null||!A.hideSkinTonePicker)};
_.P.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.P.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.P.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.P.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.P.selectSkinTone_=function(A){A=Number(A.target.getAttribute("tone"));this.set("emojiManager.skinTone",A);_.dQ(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[A]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.P.skinToneChanged_=function(){_.YJ(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var A=_.YJ(this.hostElement).querySelector("#dropdown-content").children,L=0;L<A.length;L++)L===this.skinTone?A[L].setAttribute("selected",""):A[L].removeAttribute("selected")};
_.P.animateScroll_=function(A){this.lastAnimationTime_||(this.lastAnimationTime_=A);A-=this.lastAnimationTime_;A<200?(_.YJ(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*A/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.YJ(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.P.searchChanged_=function(){this.updateButtons_()};
_.P.updateButtons_=function(){var A=null;if(!this.search)for(var L=_.YJ(this.hostElement).querySelector("#categories").scrollTop,O=_.YJ(this.hostElement).querySelector("#categories").children,X=0;X<O.length;X++){var x=O[X];x.offsetTop<=L&&(A=x.id)}L=_.YJ(this.hostElement).querySelector("#category-buttons").children;for(O=0;O<L.length;O++)X=L[O],X.active=X.id===A};
t3.prototype.searchChanged_=t3.prototype.searchChanged_;t3.prototype.skinToneChanged_=t3.prototype.skinToneChanged_;t3.prototype.onEmojiHover_=t3.prototype.onEmojiHover_;t3.prototype.onSelectCategory_=t3.prototype.onSelectCategory_;t3.prototype.onShowEmojiVariantSelector=t3.prototype.onShowEmojiVariantSelector;t3.prototype.updateCategoriesAndPlaceholder_=t3.prototype.updateCategoriesAndPlaceholder_;t3.prototype.dataChanged=t3.prototype.dataChanged;
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],t3.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],t3.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],t3.prototype,"data",void 0);_.I([_.K({value:function(){return[]}}),
_.Z("design:type",Array)],t3.prototype,"categories",void 0);_.I([_.K({value:function(){return[]}}),
_.Z("design:type",Array)],t3.prototype,"categoryButtons",void 0);_.I([_.K({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],t3.prototype,"disableScroll",void 0);_.I([_.K({computed:"computeId_(data)",reflectToAttribute:!0}),_.Z("design:type",String)],t3.prototype,"id",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],t3.prototype,"selected",void 0);
_.I([_.K({value:!1}),_.Z("design:type",Boolean)],t3.prototype,"disableIncrementalLoading",void 0);_.I([_.K(),_.Z("design:type",String)],t3.prototype,"placeholder",void 0);_.I([_.K({value:""}),_.Z("design:type",String)],t3.prototype,"search",void 0);_.I([_.K({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],t3.prototype,"searching",void 0);_.I([_.K({computed:"computeSearchCategory_(search)"}),_.Z("design:type",Object)],t3.prototype,"searchCategory",void 0);
_.I([_.K({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.Z("design:type",Object)],t3.prototype,"searchEmptyMessage",void 0);_.I([_.K({computed:"identity(emojiManager.skinTone)"}),_.Z("design:type",Number)],t3.prototype,"skinTone",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],t3.prototype,"skinToneOpened",void 0);_.I([_.K({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],t3.prototype,"variantSelectorOpened",void 0);
_.I([_.K({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.Z("design:type",Boolean)],t3.prototype,"skinToneHidden",void 0);_.I([_.K(),_.Z("design:type",_.Mr)],t3.prototype,"emojiManager",void 0);_.I([_.K(),_.Z("design:type",Object)],t3.prototype,"emojiVariantSelector",void 0);_.I([_.K(),_.Z("design:type",Object)],t3.prototype,"emojiMultiPersonSelector",void 0);
_.I([_.K({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.Z("design:type",Boolean)],t3.prototype,"shouldUseStickyPreferences",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],t3.prototype,"dataChanged",null);_.I([_.hT("data","selected"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],t3.prototype,"updateCategoriesAndPlaceholder_",null);
_.I([_.by("yt-show-emoji-variant-selector"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],t3.prototype,"onShowEmojiVariantSelector",null);_.I([_.by("yt-emoji-picker-select-category"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],t3.prototype,"onSelectCategory_",null);_.I([_.by("yt-emoji-hover"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],t3.prototype,"onEmojiHover_",null);
_.I([_.hT("skinTone"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],t3.prototype,"skinToneChanged_",null);_.I([_.hT("search"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],t3.prototype,"searchChanged_",null);_.I([_.yU({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],t3);
_.m(t3,"yt-emoji-picker-renderer",function(){if(Oo6===void 0){var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;L_N===void 0&&(L_N=document.createElement("template"));var X=L_N;O.call(L,X.content.cloneNode(!0),A.content.firstChild);Oo6=A}A=Oo6;return A},{mode:2});var bj=function(){var A=_.G.apply(this,arguments)||this;A.emojiManager=_.k5;A.isDarkTheme=document.documentElement.hasAttribute("dark");A.selectedIndex=1;A.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return A};
_.g(bj,_.G);_.P=bj.prototype;_.P.handleEmojiCustomizationVisible=function(A){this.emojiPickerRenderer.selected=A;this.selectedIndex=1;A?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.P.emojiCustomizationSetChanged=function(){var A;(A=this.data)!=null&&A.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.ad(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.P.updateSaveButtonState=function(A){var L;(L=this.data)!=null&&L.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.NV("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:A}))};
_.P.emojiUrl=function(A){A=_.$5(this.emojiManager,A);if(!A)return"";var L;A=(L=A.image)==null?void 0:L.thumbnails;return _.uB(A,24)||""};
_.P.emojiAlt=function(A){var L=_.$5(this.emojiManager,A);if(!L)return A;var O,X,x,J=(L==null?void 0:(O=L.image)==null?void 0:(X=O.accessibility)==null?void 0:(x=X.accessibilityData)==null?void 0:x.label)||"";return J?J:L.isCustomEmoji?L.shortcuts[0]:L.emojiId||A};
_.P.emojiAriaLabel=function(A){var L,O;return((L=_.$5(this.emojiManager,A))==null?void 0:(O=L.shortcuts)==null?void 0:O[0])||A};
_.P.onEmojiClick=function(A){A.model.index!==0&&(this.selectedIndex=A.model.index)};
_.P.onEmojiSelect=function(A){A=A.detail;var L,O;((L=this.data)==null?0:L.emojiCustomizationSetEntityKey)&&((O=this.emojiCustomizationSet)==null?0:O.emojiId)&&A.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,A.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.NV("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,A.emojiId,this.selectedIndex)}))};
_.P.canEditEmoji=function(A,L,O){A=A.indexOf(L);return A===O||A===0||O===0?!1:!0};
_.P.getUpdatedEmojiIdList=function(A,L,O){var X=A.indexOf(L);A=[].concat(_.le(A));X>=0&&(A[X]=A[O]);A[O]=L;return A};
_.v2.Object.defineProperties(bj,{template:{configurable:!0,enumerable:!0,get:function(){if(rdJ===void 0){var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;NKH===void 0&&(NKH=document.createElement("template"));var X=NKH;O.call(L,X.content.cloneNode(!0),A.content.firstChild);rdJ=A}A=rdJ;return A}}});
bj.prototype.onEmojiSelect=bj.prototype.onEmojiSelect;_.I([_.N(_.k1),_.Z("design:type",Object)],bj.prototype,"ytLiveChatReduxBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],bj.prototype,"ytActionHandlerBehavior",void 0);_.I([_.qR("yt-emoji-picker-renderer"),_.Z("design:type",Object)],bj.prototype,"emojiPickerRenderer",void 0);
_.I([_.K({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(A,L){return _.eM(A.entities,"emojiCustomizationSetEntity",L)},
observer:"emojiCustomizationSetChanged"}),_.Z("design:type",Object)],bj.prototype,"emojiCustomizationSet",void 0);_.I([_.K(),_.Z("design:type",Object)],bj.prototype,"originalEmojiSet",void 0);_.I([_.K(),_.Z("design:type",_.Mr)],bj.prototype,"emojiManager",void 0);_.I([_.K(),_.Z("design:type",Object)],bj.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],bj.prototype,"isDarkTheme",void 0);_.I([_.K(),_.Z("design:type",Object)],bj.prototype,"selectedIndex",void 0);
_.I([_.by("yt-emoji-select"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],bj.prototype,"onEmojiSelect",null);_.I([_.yU({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],bj);var Y2l;var uA6;var TP3;var VWH;var h3=function(){var A=_.G.apply(this,arguments)||this;A.authorBadges=[];return A};
_.g(h3,_.G);_.P=h3.prototype;_.P.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.P.configureRendererStamper=function(){return{"data.inlineActionButtons":{id:"inline-action-buttons",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[filledButtonOverrides]]"}}}},"data.beforeContentButtons":{id:"before-content-buttons",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}}}};
_.P.dataChanged=function(){var A=nle(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",A)};
_.P.updateMessage=function(){var A=this.data.message,L=_.YJ(_.YJ(this.hostElement).querySelector("#message"));L.textContent="";A&&L.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(A))};
_.P.shouldSupportWholeItemClick=function(){return!0};
_.P.onShowOriginalClick=function(A){A.preventDefault();this.showOriginal=!0};
_.P.computeShowBar=function(A,L,O){return A&&L||O};
_.P.computeAuthorBadges=function(A){return A.authorBadges||[]};
_.P.computeAuthorIsOwner=function(A){return!!tke(A.authorBadges,"owner")};
_.P.computeAuthorNameColor=function(A){var L;if(_.h("live_chat_author_name_color_usernames")&&(A==null?0:(L=A.authorName)==null?0:L.simpleText))return _.wZd(_.pZu(A.authorName.simpleText));if(_.h("live_chat_seed_color_usernames")&&(A==null?0:A.authorSeedColorArgb))return _.wZd(_.nT(A.authorSeedColorArgb));if(_.h("live_chat_colored_usernames"))return"#cc0000";var O;return _.h("live_chat_simple_color_usernames")&&(A==null?0:(O=A.authorName)==null?0:O.simpleText)&&(A==null?0:A.authorUsernameColorLight)&&
(A==null?0:A.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.nT(A.authorUsernameColorDark):_.nT(A.authorUsernameColorLight):""};
h3.prototype.updateMessage=h3.prototype.updateMessage;h3.prototype.dataChanged=h3.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],h3.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.UR.YtLiveChatItemBehavior),_.Z("design:type",_.vP)],h3.prototype,"ytLiveChatItemBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],h3.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],h3.prototype,"data",void 0);
_.I([_.K({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],h3.prototype,"showOriginal",void 0);_.I([_.K({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],h3.prototype,"isDimmed",void 0);_.I([_.K({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],h3.prototype,"showBar",void 0);
_.I([_.K({computed:"computeAuthorBadges(data)"}),_.Z("design:type",Array)],h3.prototype,"authorBadges",void 0);_.I([_.K({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],h3.prototype,"authorIsOwner",void 0);_.I([_.K({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],h3.prototype,"inCollapsedBanner",void 0);_.I([_.K({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],h3.prototype,"inBanner",void 0);
_.I([_.K({value:_.h("live_chat_hide_avatars"),reflectToAttribute:!0}),_.Z("design:type",Boolean)],h3.prototype,"avatarHidden",void 0);_.I([_.K({computed:"computeAuthorNameColor(data)"}),_.Z("design:type",String)],h3.prototype,"authorNameColor",void 0);_.I([_.K(),_.Z("design:type",_.Ll)],h3.prototype,"participantsManager",void 0);_.I([_.K({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.Z("design:type",Object)],h3.prototype,"filledButtonOverrides",void 0);
_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],h3.prototype,"dataChanged",null);_.I([_.hT("data.message"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],h3.prototype,"updateMessage",null);_.I([_.yU({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],h3);
_.m(h3,"yt-live-chat-text-message-renderer",function(){if(VWH===void 0){var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;TP3===void 0&&(TP3=document.createElement("template"));var X=TP3;O.call(L,X.content.cloneNode(!0),A.content.firstChild);VWH=A}A=VWH;return A},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var Sb=function(){var A=_.G.apply(this,arguments)||this;A.tonalButtonOverrides={type:"tonal",style:"overlay"};return A};
_.g(Sb,_.G);
Sb.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]]"}}}}}};
Sb.prototype.shouldSupportInlineActionButtons=function(){return!0};
Sb.prototype.shouldSupportWholeItemClick=function(){return!0};
_.v2.Object.defineProperties(Sb.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Sb.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.UR.YtLiveChatItemBehavior),_.Z("design:type",_.vP)],Sb.prototype,"ytLiveChatItemBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Sb.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Sb.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",_.Ll)],Sb.prototype,"participantsManager",void 0);
_.I([_.K(),_.Z("design:type",Object)],Sb.prototype,"tonalButtonOverrides",void 0);_.I([_.K({reflectToAttribute:!0}),_.r("data.infoDialogButton"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Sb.prototype,"hasInfoDialogButton",null);_.I([_.yU({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],Sb);
_.m(Sb,"yt-live-chat-auto-mod-message-renderer",function(){if(uA6===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;Y2l===void 0&&(Y2l=document.createElement("template"));var X=Y2l;O.call(L,X.content.cloneNode(!0),A.content.firstChild);uA6=A}A=uA6;return A},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var Dxl;var ew6;var EQ7;var nQg=function(){return _.G.apply(this,arguments)||this};
_.g(nQg,_.G);_.I([_.K(),_.Z("design:type",Object)],nQg.prototype,"data",void 0);_.I([_.Q({is:"ytd-factoid-renderer",disableElementRegistration:!0})],nQg);
_.m(nQg,"ytd-factoid-renderer",function(){if(EQ7!==void 0)return EQ7;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return EQ7=A},{mode:1});var qU=function(){return _.G.apply(this,arguments)||this};
_.g(qU,_.G);qU.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.I([_.K(),_.Z("design:type",Object)],qU.prototype,"data",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],qU.prototype,"ytRendererstamperBehavior",void 0);_.I([_.yU({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],qU);
_.m(qU,"yt-live-chat-channel-activity-reputation-renderer",function(){if(ew6===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;Dxl===void 0&&(Dxl=document.createElement("template"));var X=Dxl;O.call(L,X.content.cloneNode(!0),A.content.firstChild);ew6=A}A=ew6;return A},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var tWg;var boL;var gD=function(){return _.G.apply(this,arguments)||this};
_.g(gD,_.G);gD.prototype.ready=function(){var A=document.querySelector("yt-live-chat-app");A&&A.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],gD.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Boolean)],gD.prototype,"menuFocused",void 0);_.I([_.K(),_.Z("design:type",Object)],gD.prototype,"data",void 0);_.I([_.N(_.UR.YtLiveChatItemBehavior),_.Z("design:type",_.vP)],gD.prototype,"ytLiveChatItemBehavior",void 0);_.I([_.yU({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],gD);
_.m(gD,"yt-live-chat-donation-announcement-renderer",function(){if(boL===void 0){var A=document.createElement("template");_.p(A,'\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>');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;tWg===void 0&&(tWg=document.createElement("template"));var X=tWg;O.call(L,X.content.cloneNode(!0),A.content.firstChild);boL=A}A=boL;return A},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var hwg;var S2j,q26=function(){if(S2j!==void 0)return S2j;var A=document.createElement("template");_.p(A,'\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>');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;hwg===void 0&&(hwg=document.createElement("template"));var X=hwg;O.call(L,X.content.cloneNode(!0),A.content.firstChild);return S2j=A};var wD=function(){return _.G.apply(this,arguments)||this};
_.g(wD,_.G);_.v2.Object.defineProperties(wD,{template:{configurable:!0,enumerable:!0,get:function(){return q26()}}});
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],wD.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],wD.prototype,"data",void 0);_.I([_.yU({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],wD);_.m(wD,"yt-live-chat-empty-feed-view-model",function(){return q26()},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var gQg;var wKu;var pl=function(){return _.G.apply(this,arguments)||this};
_.g(pl,_.G);pl.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"}}}}}};
_.v2.Object.defineProperties(pl.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var A,L;return{runs:[{text:(A=this.data)==null?void 0:(L=A.channelName)==null?void 0:L.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var A=[],L;if((L=this.data)==null||!L.channelBadges)return A;var O;L=_.d((O=this.data)==null?void 0:O.channelBadges);for(O=L.next();!O.done;O=L.next()){O=_.q(O.value,YSj);var X=void 0,x=void 0;if((X=O)==null?0:(x=X.badgeImage)==null?0:x.sources)X=void 0,x={liveChatAuthorBadgeRenderer:{tooltip:O.tooltip,accessibility:{accessibilityData:{label:(X=_.q(O.rendererContext,_.ll))==null?void 0:X.label}}}},O.badgeImage.sources[0].clientResource?x.liveChatAuthorBadgeRenderer.icon=
{iconType:O.badgeImage.sources[0].clientResource.imageName}:x.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:O.badgeImage.sources},A.push(x)}return A}}});
_.I([_.K(),_.Z("design:type",Object)],pl.prototype,"data",void 0);_.I([_.r("data.channelName"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],pl.prototype,"channelName",null);_.I([_.r("data.channelBadges"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],pl.prototype,"channelBadges",null);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],pl.prototype,"ytRendererstamperBehavior",void 0);
_.I([_.yU({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],pl);
_.m(pl,"yt-live-chat-identity-view-model",function(){if(wKu===void 0){var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;gQg===void 0&&(gQg=document.createElement("template"));var X=gQg;O.call(L,X.content.cloneNode(!0),A.content.firstChild);wKu=A}A=wKu;return A},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var pKJ;var io7;var NPV;var r1J;var ij=function(){var A=_.G.apply(this,arguments)||this;A.hidden=!1;A.supportsInlineActionButtons=!0;return A};
_.g(ij,_.G);ij.prototype.ready=function(){var A;((A=document.querySelector("yt-live-chat-app"))==null?0:A.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
ij.prototype.dataChanged=function(A){var L=(0,_.DB)(_.YJ(this.hostElement).querySelector("#detail-text"));L.textContent="";(A==null?0:A.detailText)&&L.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(A.detailText))};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],ij.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.UR.YtLiveChatItemBehavior),_.Z("design:type",_.vP)],ij.prototype,"ytLiveChatItemBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],ij.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K({observer:"dataChanged"}),_.Z("design:type",Object)],ij.prototype,"data",void 0);
_.I([_.K({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.Z("design:type",Object)],ij.prototype,"hidden",void 0);_.I([_.Q({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],ij);
_.m(ij,"yt-live-chat-legacy-paid-message-renderer",function(){if(r1J===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;NPV===void 0&&(NPV=document.createElement("template"));var X=NPV;O.call(L,X.content.cloneNode(!0),A.content.firstChild);r1J=A}A=r1J;return A},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var K_V;var Gq7;var luN={},NU=function(){return _.wd.apply(this,arguments)||this};
_.g(NU,_.wd);NU.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
NU.prototype.onLiveChatMembershipItemBehaviorClick=NU.prototype.onLiveChatMembershipItemBehaviorClick;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],NU.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],NU.prototype,"data",void 0);_.I([_.by("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],NU.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.I([_.p4()],NU);
luN.YtLiveChatMembershipItemBehavior=[NU.prototype,_.B.YtRendererBehavior];var rD=function(){var A=_.G.apply(this,arguments)||this;A.supportsInlineActionButtons=!0;A.hasPrimaryHeaderText=!1;A.showOnlyHeader=!1;A.authorBadges=[];A.modern=_.h("web_button_rework_with_live");A.buttonOverrides={style:"overlay",type:"filled"};return A};
_.g(rD,_.G);_.P=rD.prototype;_.P.shouldSupportInlineActionButtons=function(){return!0};
_.P.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.P.ready=function(){var A=document.querySelector("yt-live-chat-app");A&&A.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.P.messageChanged=function(){var A=this.data.message,L=(0,_.DB)(_.YJ(this.hostElement).querySelector("#message"));L.textContent="";A&&L.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(A))};
_.P.computeHasPrimaryHeaderText=function(A){return!(!A||!A.headerPrimaryText)};
_.P.computeShowOnlyHeader=function(A,L){return this.isMessageEmpty(A,L)};
_.P.computeAuthorBadges=function(A){return A.authorBadges||[]};
_.P.isMessageEmpty=function(A,L){return!A||A.empty?!0:!A.message&&!A.inputField&&!L};
_.P.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.P.getInputElement=function(){return _.YJ(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.P.inputFocus=function(){var A=this.getInputElement();A&&A.focus()};
_.P.inputInsertEmoji=function(A){var L=this.getInputElement();L&&L.insertEmoji(A)};
_.P.inputMessage=function(){var A=this.getInputElement();return A&&this.data.inputField?(A.completeEmojis(),_.$4(A.liveChatRichMessageInput)):null};
_.P.onFooterButtonClick=function(){this.data.footerButton&&_.P4(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.P.shouldSupportWholeItemClick=function(){return!0};
rD.prototype.isDeletedChanged=rD.prototype.isDeletedChanged;rD.prototype.messageChanged=rD.prototype.messageChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],rD.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.UR.YtLiveChatItemBehavior),_.Z("design:type",_.vP)],rD.prototype,"ytLiveChatItemBehavior",void 0);_.I([_.N(luN.YtLiveChatMembershipItemBehavior),_.Z("design:type",Object)],rD.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],rD.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],rD.prototype,"data",void 0);_.I([_.K({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],rD.prototype,"hasPrimaryHeaderText",void 0);_.I([_.K({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.Z("design:type",Object)],rD.prototype,"showOnlyHeader",void 0);
_.I([_.K({computed:"computeAuthorBadges(data)"}),_.Z("design:type",Array)],rD.prototype,"authorBadges",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],rD.prototype,"modern",void 0);_.I([_.hT("data.message"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],rD.prototype,"messageChanged",null);_.I([_.hT("isDeleted"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],rD.prototype,"isDeletedChanged",null);
_.I([_.yU({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],rD);
_.m(rD,"yt-live-chat-membership-item-renderer",function(){if(Gq7===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;K_V===void 0&&(K_V=document.createElement("template"));var X=K_V;O.call(L,X.content.cloneNode(!0),A.content.firstChild);Gq7=A}A=Gq7;return A},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var c16;var C9H;var Kl=function(){return _.G.apply(this,arguments)||this};
_.g(Kl,_.G);Kl.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Kl.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Kl.prototype,"data",void 0);_.I([_.yU({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],Kl);
_.m(Kl,"yt-live-chat-mode-change-message-renderer",function(){if(C9H===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;c16===void 0&&(c16=document.createElement("template"));var X=c16;O.call(L,X.content.cloneNode(!0),A.content.firstChild);C9H=A}A=C9H;return A},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var F_3;var RwN;var Gc=function(){return _.G.apply(this,arguments)||this};
_.g(Gc,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Gc.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.UR.YtLiveChatItemBehavior),_.Z("design:type",_.vP)],Gc.prototype,"ytLiveChatItemBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Gc.prototype,"data",void 0);_.I([_.yU({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],Gc);
_.m(Gc,"yt-live-chat-moderation-message-renderer",function(){if(RwN===void 0){var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;F_3===void 0&&(F_3=document.createElement("template"));var X=F_3;O.call(L,X.content.cloneNode(!0),A.content.firstChild);RwN=A}A=RwN;return A},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var Qp3;var mxu;var lj=function(){var A=_.G.apply(this,arguments)||this;A.modern=_.h("web_button_rework");return A};
_.g(lj,_.G);lj.prototype.onClick=function(){var A;if((A=this.data)!=null&&A.onClickCommand){var L;_.S5.instance.resolveCommand((L=this.data)==null?void 0:L.onClickCommand)}};
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],lj.prototype,"modern",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],lj.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.k1),_.Z("design:type",Object)],lj.prototype,"ytLiveChatReduxBehavior",void 0);_.I([_.N(_.UR.YtLiveChatItemBehavior),_.Z("design:type",_.vP)],lj.prototype,"ytLiveChatItemBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],lj.prototype,"ytRendererstamperBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],lj.prototype,"data",void 0);_.I([_.yU({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],lj);
_.m(lj,"yt-live-chat-offer-click-count-message-renderer",function(){if(mxu===void 0){var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;Qp3===void 0&&(Qp3=document.createElement("template"));var X=Qp3;O.call(L,X.content.cloneNode(!0),A.content.firstChild);mxu=A}A=mxu;return A},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var fuV;var Iu6=function(){return _.G.apply(this,arguments)||this};
_.g(Iu6,_.G);_.I([_.K(),_.Z("design:type",Object)],Iu6.prototype,"data",void 0);_.I([_.yU({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],Iu6);
_.m(Iu6,"yt-live-chat-placeholder-item-renderer",function(){if(fuV===void 0){var A=document.createElement("template");_.p(A,"\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");A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);fuV=A}A=fuV;return A},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var y1L;var ZoL;var jpc=new am(7),cL=function(){var A=_.G.apply(this,arguments)||this;A.data={};return A};
_.g(cL,_.G);cL.prototype.dataChanged=function(){var A;((A=this.data)==null?0:A.class)&&_.TK(this.hostElement,this.data.class,!0);var L;((L=this.oldData)==null?0:L.class)&&_.TK(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
cL.prototype.computeTimestampString=function(A){return jpc.format(new Date(A/1E3))};
cL.prototype.dataChanged=cL.prototype.dataChanged;_.I([_.K(),_.Z("design:type",Object)],cL.prototype,"data",void 0);_.I([_.K({computed:"computeTimestampString(data.timestampUsec)"}),_.Z("design:type",String)],cL.prototype,"timestampString",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cL.prototype,"dataChanged",null);_.I([_.yU({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],cL);
_.m(cL,"yt-live-chat-server-error-message",function(){if(ZoL===void 0){var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;y1L===void 0&&(y1L=document.createElement("template"));var X=y1L;O.call(L,X.content.cloneNode(!0),A.content.firstChild);ZoL=A}A=ZoL;return A},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var W_6;var Hol;var Cl=function(){var A=_.G.apply(this,arguments)||this;A.defaultToFilledIcon=!1;return A};
_.g(Cl,_.G);Cl.prototype.computeHasPrimaryColorIcon=function(A){return A==="SPARK"||A==="SPONSORSHIP_STAR"};
Cl.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Cl.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.UR.YtLiveChatItemBehavior),_.Z("design:type",_.vP)],Cl.prototype,"ytLiveChatItemBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Cl.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Cl.prototype,"defaultToFilledIcon",void 0);_.I([_.K(),_.Z("design:type",Object)],Cl.prototype,"data",void 0);
_.I([_.K({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],Cl.prototype,"hasPrimaryColorIcon",void 0);_.I([_.yU({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],Cl);
_.m(Cl,"yt-live-chat-viewer-engagement-message-renderer",function(){if(Hol===void 0){var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;W_6===void 0&&(W_6=document.createElement("template"));var X=W_6;O.call(L,X.content.cloneNode(!0),A.content.firstChild);Hol=A}A=Hol;return A},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var zw7;var Fy=function(){var A=_.G.apply(this,arguments)||this;A.modernUpdate=!1;A.buttonStyle="overlay";A.buttonType="filled";return A};
_.g(Fy,_.G);Fy.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
Fy.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Fy.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Fy.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Fy.prototype,"modernUpdate",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",String)],Fy.prototype,"buttonStyle",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",String)],Fy.prototype,"buttonType",void 0);
_.I([_.Q({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],Fy);
_.m(Fy,"ytd-ad-hover-text-button-renderer",function(){if(zw7!==void 0)return zw7;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return zw7=A},{mode:1});var BPl;var Rf=function(){var A=_.G.apply(this,arguments)||this;A.buttonOverrides={size:"XS"};A.modern=_.h("web_button_rework");return A};
_.g(Rf,_.G);Rf.prototype.onHelpTap=function(A){this.data&&this.data.informationDialog&&(_.P4(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),A.preventDefault(),A.stopPropagation())};
_.I([_.K(),_.Z("design:type",Object)],Rf.prototype,"buttonOverrides",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Rf.prototype,"modern",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Rf.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Rf.prototype,"data",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],Rf);
_.m(Rf,"ytd-live-chat-purchased-product-message-renderer",function(){if(BPl!==void 0)return BPl;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return BPl=A},{mode:1});var MWg;var $xL;var Qk=function(){var A=_.G.apply(this,arguments)||this;A.isContainerDeleted=!1;return A};
_.g(Qk,_.G);Qk.prototype.onContextMenuClick=function(A){this.ytLiveChatItemBehavior.showContextMenu(A)};
Qk.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))};
Qk.prototype.isContainerDeletedChanged=Qk.prototype.isContainerDeletedChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Qk.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.UR.YtLiveChatItemBehavior),_.Z("design:type",_.vP)],Qk.prototype,"ytLiveChatItemBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Qk.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],Qk.prototype,"isContainerDeleted",void 0);
_.I([_.K(),_.Z("design:type",String)],Qk.prototype,"deletedStateMessage",void 0);_.I([_.hT("isContainerDeleted"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Qk.prototype,"isContainerDeletedChanged",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],Qk);
_.m(Qk,"ytd-sponsorships-live-chat-header-renderer",function(){if($xL!==void 0)return $xL;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return $xL=A},{mode:1});var mQ=function(){var A=_.G.apply(this,arguments)||this;A.modern=_.h("web_button_rework_with_live");A.buttonOverrides={style:"overlay",type:"filled"};return A};
_.g(mQ,_.G);mQ.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]]"}}}}}};
mQ.prototype.onCtaButtonClick=function(){var A,L=_.q((A=this.data)==null?void 0:A.optInPrompt,_.$t);if(A=this.maybeGetButtonCommand(L)){var O;(O=_.iV())==null||O.clickCommand(A)}};
mQ.prototype.maybeGetButtonCommand=function(A){return!A||!A.command||_.q(A.command,y7c)===void 0&&_.q(A.command,IT6)===void 0?null:A.command};
mQ.prototype.shouldHideOptinPrompt=function(A,L){return!A||L};
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],mQ.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.UR.YtLiveChatItemBehavior),_.Z("design:type",_.vP)],mQ.prototype,"ytLiveChatItemBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],mQ.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],mQ.prototype,"modern",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],mQ);
_.m(mQ,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(MWg!==void 0)return MWg;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return MWg=A},{mode:1});var au3;var fl=function(){return _.G.apply(this,arguments)||this};
_.g(fl,_.G);fl.prototype.onContextMenuClick=function(A){this.ytLiveChatItemBehavior.showContextMenu(A)};
fl.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))};
fl.prototype.isDeletedChanged=fl.prototype.isDeletedChanged;_.I([_.N(_.UR.YtLiveChatItemBehavior),_.Z("design:type",_.vP)],fl.prototype,"ytLiveChatItemBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],fl.prototype,"data",void 0);_.I([_.hT("isDeleted"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],fl.prototype,"isDeletedChanged",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],fl);
_.m(fl,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(au3!==void 0)return au3;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return au3=A},{mode:1});var If=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return A};
_.g(If,_.G);_.P=If.prototype;
_.P.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatAutoModMessageRenderer:"yt-live-chat-auto-mod-message-renderer",liveChatPaidMessageRenderer:"yt-live-chat-paid-message-renderer",liveChatLegacyPaidMessageRenderer:"yt-live-chat-legacy-paid-message-renderer",liveChatMembershipItemRenderer:"yt-live-chat-membership-item-renderer",liveChatTextMessageRenderer:"yt-live-chat-text-message-renderer",liveChatPaidStickerRenderer:"yt-live-chat-paid-sticker-renderer",liveChatDonationAnnouncementRenderer:"yt-live-chat-donation-announcement-renderer",
liveChatModeChangeMessageRenderer:"yt-live-chat-mode-change-message-renderer",liveChatModerationMessageRenderer:"yt-live-chat-moderation-message-renderer",liveChatOfferClickCountMessageRenderer:"yt-live-chat-offer-click-count-message-renderer",liveChatPlaceholderItemRenderer:"yt-live-chat-placeholder-item-renderer",liveChatPurchasedProductMessageRenderer:"ytd-live-chat-purchased-product-message-renderer",liveChatSponsorshipsGiftPurchaseAnnouncementRenderer:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",
liveChatSponsorshipsGiftRedemptionAnnouncementRenderer:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",liveChatViewerEngagementMessageRenderer:"yt-live-chat-viewer-engagement-message-renderer",serverErrorMessage:"yt-live-chat-server-error-message"}}}};
_.P.handleLiveChatAction=function(A){_.q(A,A_J)?this.handleMarkChatItemAsDeletedAction(_.q(A,A_J)):_.q(A,oxL)&&this.handleRemoveChatItemAction(_.q(A,oxL))};
_.P.handleLiveChatActions=function(A){A.forEach(this.handleLiveChatAction,this)};
_.P.handleMarkChatItemAsDeletedAction=function(A){var L=this,O;((O=this.data)==null?0:O.items)&&this.data.items.forEach(function(X,x){var J=Object.keys(X)[0];Object.values(X)[0].id===A.targetItemId&&L.markAsDeleted("data.items",x,J,A.deletedStateMessage,A.showOriginalContentMessage)})};
_.P.handleRemoveChatItemAction=function(A){var L=this,O;((O=this.data)==null?0:O.items)&&this.data.items.forEach(function(X,x){Object.values(X)[0].id===A.targetItemId&&L.splice("data.items",x,1)})};
_.P.markAsDeleted=function(A,L,O,X,x){A=[A,L,O].join(".");this.set(A+".deletedStateMessage",X);this.set(A+".showOriginalContentMessage",x)};
_.I([_.K(),_.Z("design:type",Object)],If.prototype,"data",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],If.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],If.prototype,"ytActionHandlerBehavior",void 0);_.I([_.yU({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],If);
_.m(If,"yt-live-chat-item-display-list-renderer",function(){if(io7===void 0){var A=document.createElement("template");_.p(A,'\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>');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;pKJ===void 0&&(pKJ=document.createElement("template"));var X=pKJ;O.call(L,X.content.cloneNode(!0),A.content.firstChild);io7=A}A=io7;return A},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var kq7;var Uxu,vQ6=function(){if(Uxu!==void 0)return Uxu;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;kq7===void 0&&(kq7=document.createElement("template"));var X=kq7;O.call(L,X.content.cloneNode(!0),A.content.firstChild);return Uxu=A};var yk=function(){var A=_.G.apply(this,arguments)||this;A.isHeader=!1;return A};
_.g(yk,_.G);yk.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.v2.Object.defineProperties(yk,{template:{configurable:!0,enumerable:!0,get:function(){return vQ6()}}});
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],yk.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],yk.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],yk.prototype,"isHeader",void 0);_.I([_.yU({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],yk);_.m(yk,"yt-live-chat-item-display-renderer",function(){return vQ6()},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var oQV,AGL,s53,x8u;
oQV={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}};AGL={home:"eohps",search:"eosps",watch:"eowps"};_.LAn=["watch","search","home"];
_.Z1=function(){this.JSC$15263_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$15263_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.ms("PRECONSTRUCTION_DELAY",0);this.signals_=_.kq();this.targetPage_=""};
_.Z1.prototype.init=function(A,L){A=A===void 0?"":A;L=L===void 0?null:L;if(this.JSC$15263_isInitialized_)this.abort();else if(this.JSC$15263_isInitialized_=!0,A&&_.OgV(this,A),L){var O=_.UU(this.signals_,"pcl")?0:10,X=function(){for(var x=0,J;J=_.LAn[x++];)J!=A&&J!=L&&this.pendingPages_.push(J);_.X5L(this)}.bind(this);
this.signals_.parkOrScheduleJob(X,O,"pcl")}};
_.Z1.prototype.abort=function(){this.fragmentJobId_&&(_.c1.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);x8u(this)};
_.OgV=function(A,L){A.JSC$15263_isInitialized_&&!A.targetPage_&&(A.targetPage_=L,s53(A,L),A.isInitialPass_=!1,s53(A,L),A.signals_.processSignal(AGL[A.targetPage_]),x8u(A),_.X5L(A))};
_.X5L=function(A){A.pendingPages_.length&&!A.pagePreparerJobId_&&(A.pagePreparerJobId_=_.p7(_.c1,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.OgV(this,this.pendingPages_.shift())}.bind(A),A.DEFAULT_DELAY_))};
s53=function(A,L){if(L=oQV[L])for(var O in L){var X=!1,x=O;O.charAt(0)=="~"&&(X=!0,x=O.substring(1));var J=L[O];J=typeof J=="object"?J:{count:J};L[O]=J;J.componentName=x;J.count>0&&(A.isInitialPass_?X||A.isSeenDuringInitialPass_[x]||(A.JSC$15263_queue_.push({componentName:x,count:1,signals:J.signals}),A.isSeenDuringInitialPass_[x]=!0,J.count--):A.JSC$15263_queue_.push(J))}};
x8u=function(A){A.JSC$15263_queue_.length=0;A.targetPage_="";A.isInitialPass_=!0;A.signals_.processSignal("eop")};
_.Z1.getInstance=function(){return _.Pw(_.Z1)};var JGH=function(){this.signals=_.kq();this.init()};
JGH.prototype.startPreconstruction=function(){_.Z1.getInstance().init(_.fB("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
JGH.prototype.init=function(){PcJ(this);window.Polymer&&Yjn&&xqs();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var A=_.Ou.ytcsi;if(A&&A.gt&&(A=A.gt())&&A.tick&&(A.tick.aft>0||A.tick.pbs>0)&&(_.fB("IS_HOMEPAGE_COLD")||_.fB("IS_RESULTS_PAGE_COLD")||_.fB("IS_WATCH_PAGE_COLD"))){d8c(this);break a}DRJ(o9_,this.onNotifications,this)}};
var PcJ=function(A){var L=function(){A.signals.processSignal("dl")};
document.readyState==="complete"?(_.HY(Error("sh"),"WARNING"),L()):_.Wee(window,"load",L)};
JGH.prototype.onNotifications=function(A){A.timer||(_.fB("IS_HOMEPAGE_COLD")||_.fB("IS_RESULTS_PAGE_COLD")||_.fB("IS_WATCH_PAGE_COLD"))&&d8c(this)};
var d8c=function(A){A.signals.parkOrScheduleJob(function(){A.signals.processSignal("eocs")},10,"eor")};
new JGH;var jb,Y5n=function(){return _.wd.apply(this,arguments)||this};
_.g(Y5n,_.wd);_.P=Y5n.prototype;_.P.enableActiveViewMeasurement=function(A){if(this.isActiveViewEnabled(A)){var L=this.getUrlPrefixesFromCommand(A.viewableCommands);A=this.getUrlPrefixesFromCommand(A.endOfSessionCommands);if(!jb){var O=_.PO("custom_active_view_tos_timeout_ms");jb=O>0&&O!==36E5?new SHy(this.getVersion(),O):new SHy(this.getVersion())}gMr(jb,this.hostElement);wjP(jb,this.hostElement,L,A)}};
_.P.stopActiveViewMeasurement=function(){jb&&gMr(jb,this.hostElement)};
_.P.isActiveViewEnabled=function(A){return!!A&&(this.hasAtLeastOneUrl(A.viewableCommands)||this.hasAtLeastOneUrl(A.endOfSessionCommands))};
_.P.hasAtLeastOneUrl=function(A){return!!A&&A.length>0&&A[0].loggingUrls!=null&&A[0].loggingUrls.length>0};
_.P.getVersion=function(){var A=_.ms("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(A==null?void 0:A.length)===2?A[1]:null};
_.P.getUrlPrefixesFromCommand=function(A){if(!A)return[];var L=[];A=_.d(A);for(var O=A.next();!O.done;O=A.next())if(O=O.value,O.loggingUrls){O=_.d(O.loggingUrls);for(var X=O.next();!X.done;X=O.next())X=X.value,X.baseUrl&&L.push(X.baseUrl)}return L};
_.I([_.p4()],Y5n);var WL=[Y5n.prototype];var ubc=function(){return _.wd.apply(this,arguments)||this};
_.g(ubc,_.wd);_.v2.Object.defineProperties(ubc.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.h("enable_entity_store_from_dependency_injection")?_.oJ():_.Ai()}}});
_.I([_.p4()],ubc);_.HL=[W$.prototype,ubc.prototype];var TLg=["ytd-rich-shelf-renderer"],zc=function(){var A=_.wd.apply(this,arguments)||this;A._noAccessors=!0;A.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";A.followUpDialogPromise=null;A.followUpDialogPromiseResolve=null;A.followUpDialogPromiseReject=null;return A};
_.g(zc,_.wd);_.P=zc.prototype;_.P.dismissibleItemIsDismissedChanged_=function(A){_.h("kevlar_fluid_dismiss")&&(A?_.P4(this.hostElement,"yt-dismissible-item-dismissed"):_.P4(this.hostElement,"yt-dismissible-item-undismissed"))};
_.P.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.P.dismissibleItemReset_=function(){var A=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 _.eJ(function(L,O){A.followUpDialogPromiseResolve=L;A.followUpDialogPromiseReject=O});
_.P4(this.hostElement,"yt-enable-lockup-interaction")};
_.P.dismissibleItemOnYtServiceRequestSent_=function(A,L){L.actions&&this.dismissibleItemProcessActions(L.actions,A)};
_.P.dismissibleItemOnRequestSent=function(A){if(_.h("web_button_rework"))for(var L=_.d(A.detail),O=L.next();!O.done;O=L.next()){var X=void 0;(O=(X=_.q(O.value,_.nM))==null?void 0:X.actions)&&this.dismissibleItemProcessActions(O,A)}};
_.P.dismissibleItemOnCommandSent=function(A,L){L&&this.dismissibleItemProcessActions(L,A)};
_.P.setAndGetDismissedContentId=function(A){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+A};
_.P.replayDismissAction=function(A){this.dismissibleItemProcessActions([A])};
_.P.dismissibleItemProcessActions=function(A,L){for(var O=0;O<A.length;O++){var X=A[O],x=void 0;((x=_.q(X,_.em))==null?0:x.commands)&&this.dismissibleItemProcessActions(_.q(X,_.em).commands,L);if(_.q(X,_.Cb)){if(x=_.q(X,_.Cb),!x.replaceParentSection||TLg.includes(this.hostElement.nodeName.toLowerCase()))x.groupDismissal&&kqP(this,x.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(x),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.NV("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:X})),X=void 0,(X=L)==null||X.stopPropagation()}else if(_.q(X,ojg))this.dismissibleItemHandleHideEnclosingAction_(),X=void 0,(X=L)==null||X.stopPropagation();else if(_.q(X,q13))_.h("web_see_fewer_shorts_reactive_dismissal")&&(X=_.q(X,q13),x=void 0,((x=X)==null?0:x.targetGroupId)&&kqP(this,{targetGroupId:X.targetGroupId},!1)),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.NV("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:void 0})),X=void 0,(X=L)==null||X.stopPropagation();else if(_.q(X,_.nM))(X=_.q(X,_.nM).actions)&&_.VN(this.hostElement,X,this.hostElement),X=void 0,(X=L)==null||X.stopPropagation();else{var J=x=void 0;((x=_.q(X,_.jJ))==null?void 0:x.signal)!=="TELL_US_WHY"||((J=_.q(X,_.jJ))==null?0:J.targetId)&&_.h("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),X=void 0,(X=L)==null||X.stopPropagation())}}};
_.P.dismissibleItemOnYtServiceRequestCompleted_=function(A,L){var O=this.get("feedbackResponses.0.followUpDialog",L.data);O?this.followUpDialogPromiseResolve(O):L.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(L.actions,A)};
_.P.dismissibleItemHandleReplaceEnclosingAction_=function(A){this.dismissedRenderer=A.item;this.isDismissed=!0;var L=null;(L=_.YJ(this.hostElement).querySelector("#dismissed"))&&_.kd(this,function(){_.$o(L)});
_.P4(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.P.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.P.dismissibleItemHandleUndoFeedbackAction_=function(){_.P4(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.P.dismissibleItemHandleTellUsWhySignalAction_=function(){var A=this;this.followUpDialogPromise.then(function(L){A.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:L}})})};
zc.prototype.dismissibleItemOnYtServiceRequestCompleted_=zc.prototype.dismissibleItemOnYtServiceRequestCompleted_;zc.prototype.dismissibleItemOnCommandSent=zc.prototype.dismissibleItemOnCommandSent;zc.prototype.dismissibleItemOnRequestSent=zc.prototype.dismissibleItemOnRequestSent;zc.prototype.dismissibleItemOnYtServiceRequestSent_=zc.prototype.dismissibleItemOnYtServiceRequestSent_;zc.prototype.dismissibleItemDataChanged_=zc.prototype.dismissibleItemDataChanged_;
zc.prototype.dismissibleItemIsDismissedChanged_=zc.prototype.dismissibleItemIsDismissedChanged_;_.I([_.N(_.J3),_.Z("design:type",Object)],zc.prototype,"ytdOpenPopupBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],zc.prototype,"ytdReduxBehavior",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],zc.prototype,"isDismissed",void 0);_.I([_.K(),_.Z("design:type",Object)],zc.prototype,"dismissedRenderer",void 0);
_.I([_.hT("isDismissed"),_.Z("design:type",Function),_.Z("design:paramtypes",[Boolean]),_.Z("design:returntype")],zc.prototype,"dismissibleItemIsDismissedChanged_",null);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zc.prototype,"dismissibleItemDataChanged_",null);
_.I([_.by("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.aQ]),_.Z("design:returntype")],zc.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.I([_.by("yt-service-request-sent-button-renderer"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],zc.prototype,"dismissibleItemOnRequestSent",null);
_.I([_.by("yt-dismissible-item-action"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Array]),_.Z("design:returntype")],zc.prototype,"dismissibleItemOnCommandSent",null);_.I([_.by("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.Xi]),_.Z("design:returntype")],zc.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.I([_.p4()],zc);_.BL=[_.J3,_.HL,zc.prototype];var MU=function(){var A=_.wd.apply(this,arguments)||this;A.disableGridStateAware=!1;A.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};A.currentGridClass="";return A};
_.g(MU,_.wd);MU.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.kd(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var A=this.gridStateAwareGetElement();_.TK(A,"grid",!0)}};
MU.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
MU.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.YJ(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
MU.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var A="grid-disabled";else{A=_.MGl.getInstance();var L=this.get("pageSubtype");A=L&&HRJ.includes(L)?"grid-disabled":A.currentSnapState_?A.currentSnapState_.className:null}(L=this.gridStateAwareGetElement())&&A!==this.currentGridClass&&(A&&_.TK(L,A,!0),this.currentGridClass&&_.TK(L,this.currentGridClass,!1),this.currentGridClass=A)};
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],MU.prototype,"ytActionHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",String)],MU.prototype,"gridStateAwareSizingElementSelector",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],MU.prototype,"disableGridStateAware",void 0);_.I([_.p4()],MU);_.$r=[MU.prototype,_.es.YtActionHandlerBehavior];_.af=new _.Yx("GUIDE_TOKEN");var UL;_.kr={};UL=function(){var A=_.wd.apply(this,arguments)||this;A.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 A};
_.g(UL,_.wd);_.P=UL.prototype;_.P.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.P.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var A=_.X5().resolve(_.Ot(_.af));A&&(this.guidePersistentAndVisible=A.getGuidePersistentAndVisible(),this.activeEndpoint=A.getActiveEndpoint(),this.guideOpened=A.getGuideOpened(),this.miniGuideVisible=A.getMiniGuideVisible())};
_.P.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.P.handleGuideStateAction=function(A){this.guidePersistentAndVisible=A};
_.P.handleMiniGuideStateAction=function(A){this.miniGuideVisible=A};
_.P.handleGuideOpenedAction=function(A){this.guideOpened=A};
_.P.handleActiveEndpointAction=function(A){this.activeEndpoint=A};
UL.prototype.onActiveEndpointChange=UL.prototype.onActiveEndpointChange;_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],UL.prototype,"ytActionHandlerBehavior",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],UL.prototype,"guidePersistentAndVisible",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],UL.prototype,"miniGuideVisible",void 0);_.I([_.K(),_.Z("design:type",Object)],UL.prototype,"activeEndpoint",void 0);
_.I([_.hT("activeEndpoint"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],UL.prototype,"onActiveEndpointChange",null);_.I([_.K(),_.Z("design:type",Boolean)],UL.prototype,"guideOpened",void 0);_.I([_.p4()],UL);_.kr.YtdGuideStateAwareBehavior=[];_.kr.YtdGuideStateAwareBehavior.push(UL.prototype,_.es.YtActionHandlerBehavior);var VBu=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],vL=function(){var A=_.wd.apply(this,arguments)||this;A.hoverJobId=0;A.JSC$15294_touched=!1;return A};
_.g(vL,_.wd);_.P=vL.prototype;_.P.created=function(){this.useExpandableTooltip=!VBu.includes(this.is)};
_.P.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.P.detached=function(){this.useExpandableTooltip=!1};
_.P.lockupOnDown=function(A){this.interactionElement&&!_.xu(_.oa(A),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.P.lockupOnUp=function(A){this.interactionElement&&!_.xu(_.oa(A),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.P.onTouchStart=function(){this.JSC$15294_touched=!0};
_.P.lockupOnMouseEnter=function(){var A=this,L=_.PO("kevlar_lockup_hover_delay",-1);this.JSC$15294_touched&&L>=0?(_.c1.cancelJob(this.hoverJobId),this.hoverJobId=_.c1.addJob(function(){A.lockupIsHovered=!0},8,L),this.JSC$15294_touched=!1):this.lockupIsHovered=!0};
_.P.lockupOnMouseLeave=function(){this.hoverJobId&&(_.c1.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.P.lockupOnPopupClosed=function(A,L){var O;((O=L.popupRenderer)==null?void 0:O.is)==="ytd-menu-popup-renderer"&&(A=L.popupRenderer.veData,L=_.Fn(),A&&L&&_.MG(L,[A]))};
_.P.lockupOnLockupRequested=function(A){var L=A.detail.videoIds[0],O;A.detail&&L===((O=this.data)==null?void 0:O.videoId)&&(A.detail.returnValue=[this.data])};
_.P.lockupOnYtServiceRequestSent=function(A,L){if(A=L.actions)for(var O=0;O<A.length;O++){var X=A[O];if(X.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&L.ajaxPromise){var x=void 0,J=(x=_.q(L.endpoint,_.zF))==null?void 0:x.playlistId;x=void 0;X=(x=X.removedVideoId)!=null?x:"";EmH(_.Aa(),X,J)}else X.action==="ACTION_REMOVE_VIDEO"&&L.ajaxPromise&&(J=void 0,X=(J=X.setVideoId)!=null?J:"",_.nmL(_.Aa(),X))}};
_.P.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.P.lockupOnLockupEnabled=function(){if(!this.$){var A=_.X5().resolve(_.JI).getCurrentPage(),L=this.getParentRenderer?this.getParentRenderer():void 0;_.Rv(new _.pe("component not ready",this.is,this.isAttached,A==null?void 0:A.is,L==null?void 0:L.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
vL.prototype.lockupOnLockupEnabled=vL.prototype.lockupOnLockupEnabled;vL.prototype.lockupOnLockupDisabled=vL.prototype.lockupOnLockupDisabled;vL.prototype.lockupOnYtServiceRequestSent=vL.prototype.lockupOnYtServiceRequestSent;vL.prototype.lockupOnLockupRequested=vL.prototype.lockupOnLockupRequested;vL.prototype.lockupOnPopupClosed=vL.prototype.lockupOnPopupClosed;vL.prototype.lockupOnMouseLeave=vL.prototype.lockupOnMouseLeave;vL.prototype.lockupOnMouseEnter=vL.prototype.lockupOnMouseEnter;
vL.prototype.onTouchStart=vL.prototype.onTouchStart;vL.prototype.lockupOnUp=vL.prototype.lockupOnUp;vL.prototype.lockupOnDown=vL.prototype.lockupOnDown;_.I([_.K(),_.Z("design:type",Object)],vL.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Boolean)],vL.prototype,"lockupIsHovered",void 0);_.I([_.K(),_.Z("design:type",Boolean)],vL.prototype,"lockupTouchTriggered",void 0);_.I([_.K(),_.Z("design:type",Boolean)],vL.prototype,"useExpandableTooltip",void 0);
_.I([_.qR("#interaction"),_.Z("design:type",Object)],vL.prototype,"interactionElement",void 0);_.I([_.by("down"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],vL.prototype,"lockupOnDown",null);_.I([_.by("up"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],vL.prototype,"lockupOnUp",null);
_.I([_.by("touchstart"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vL.prototype,"onTouchStart",null);_.I([_.by("mouseenter"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vL.prototype,"lockupOnMouseEnter",null);_.I([_.by("mouseleave"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vL.prototype,"lockupOnMouseLeave",null);
_.I([_.by("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],vL.prototype,"lockupOnPopupClosed",null);_.I([_.by("yt-lockup-requested"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],vL.prototype,"lockupOnLockupRequested",null);
_.I([_.by("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.aQ]),_.Z("design:returntype")],vL.prototype,"lockupOnYtServiceRequestSent",null);_.I([_.by("yt-disable-lockup-interaction"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vL.prototype,"lockupOnLockupDisabled",null);
_.I([_.by("yt-enable-lockup-interaction"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vL.prototype,"lockupOnLockupEnabled",null);_.I([_.p4()],vL);_.of=[vL.prototype];_.D8V={YtdReduxBehavior:[]};_.D8V.YtdReduxBehavior.push.apply(_.D8V.YtdReduxBehavior,_.HL);var A2=function(){var A=_.wd.apply(this,arguments)||this;A._noAccessors=!0;A.disableNowPlaying=!1;A.disableTooltips=!1;A.useHoveredProperty=!1;A.hovered=!1;A.isThumbnailHovered_=!1;A.addBackground=_.h("kevlar_thumbnail_bg");A.nowPlaying=!1;A.disableRounding=!1;A.size="small";return A};
_.g(A2,_.wd);_.P=A2.prototype;_.P.computeThumbnailOverlaySidePanelWidth_=function(A,L){return A-L};
_.P.computeSize=function(A,L){if(!this.disableRounding){if(!A&&!L)return"small";A=Math.max(A||0,L||0);return A>=256?"large":A>=96?"medium":"small"}};
_.P.computeFinalHoveredState_=function(A,L,O){return this.nowPlaying?!1:_.h("kevlar_thumbnail_fluid")&&A?L:O};
_.P.computeHoverOverlays_=function(A,L){return A&&L?L:void 0};
_.P.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.P.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.P.checkMiniplayer_=function(){var A;if(((A=this.data)==null?0:A.playlistSetVideoId)&&_.h("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{A=_.rm();var L=A.currentEndpoint;!this.disableNowPlaying&&L&&_.q(L,_.$O)&&this.data?(L=_.q(L,_.$O),this.nowPlaying=this.data.playlistId?L.playlistId===this.data.playlistId:L.videoId===this.data.videoId,this.isVideoPlaying=A==null?void 0:A.isVideoPlaying):this.nowPlaying=!1}};
A2.prototype.checkMiniplayer_=A2.prototype.checkMiniplayer_;A2.prototype.onMouseLeave_=A2.prototype.onMouseLeave_;A2.prototype.onMouseEnter_=A2.prototype.onMouseEnter_;A2.prototype.computeHoverOverlays_=A2.prototype.computeHoverOverlays_;A2.prototype.computeFinalHoveredState_=A2.prototype.computeFinalHoveredState_;A2.prototype.computeSize=A2.prototype.computeSize;A2.prototype.computeThumbnailOverlaySidePanelWidth_=A2.prototype.computeThumbnailOverlaySidePanelWidth_;
_.I([_.N(_.HL),_.Z("design:type",Object)],A2.prototype,"ytdReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],A2.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Number)],A2.prototype,"height",void 0);_.I([_.K(),_.Z("design:type",Boolean)],A2.prototype,"bottomSidePanel",void 0);_.I([_.K(),_.Z("design:type",Number)],A2.prototype,"width",void 0);_.I([_.K(),_.Z("design:type",Object)],A2.prototype,"disableNowPlaying",void 0);
_.I([_.K({selector:_.Qi}),_.Z("design:type",Boolean)],A2.prototype,"miniplayerIsActive",void 0);_.I([_.K(),_.Z("design:type",Object)],A2.prototype,"disableTooltips",void 0);_.I([_.K(),_.Z("design:type",Object)],A2.prototype,"useHoveredProperty",void 0);_.I([_.K(),_.Z("design:type",Object)],A2.prototype,"hovered",void 0);_.I([_.K(),_.Z("design:type",Object)],A2.prototype,"isThumbnailHovered_",void 0);
_.I([_.K({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.Z("design:type",Boolean)],A2.prototype,"finalHoveredState_",void 0);_.I([_.K({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.Z("design:type",Number)],A2.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],A2.prototype,"addBackground",void 0);
_.I([_.K({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.Z("design:type",Object)],A2.prototype,"hoverOverlays_",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],A2.prototype,"nowPlaying",void 0);_.I([_.K(),_.Z("design:type",Boolean)],A2.prototype,"isVideoPlaying",void 0);_.I([_.K(),_.Z("design:type",Object)],A2.prototype,"disableRounding",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.Z("design:type",Object)],A2.prototype,"size",void 0);_.I([_.by("mouseenter"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],A2.prototype,"onMouseEnter_",null);_.I([_.by("mouseleave"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],A2.prototype,"onMouseLeave_",null);
_.I([_.hT("data","disableNowPlaying","miniplayerIsActive"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],A2.prototype,"checkMiniplayer_",null);_.I([_.p4()],A2);var e56=[A2.prototype];_.LE={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(A,L){return A+":"+_.$e(L)},
getPlayerListener_:function(A,L,O){A=this.getPlayerListenerKey_(A,L);L=this.playerListeners_.get(A);O&&this.playerListeners_.delete(A);return L},
savePlayerListener_:function(A,L){var O=L.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(A,L),O);return O},
listenToPlayerEvent:function(A,L,O){O=this.savePlayerListener_(L,O);A.addEventListener(L,O)},
listenToPlayerEvents:function(A,L){L.forEach(function(O,X){this.listenToPlayerEvent(A,X,O)}.bind(this))},
unlistenFromPlayerEvent:function(A,L,O){O=this.getPlayerListener_(L,O,!0);A.removeEventListener(L,O)},
unlistenFromPlayerEvents:function(A,L){L.forEach(function(O,X){this.unlistenFromPlayerEvent(A,X,O)}.bind(this))}}};
_.Oo=function(){};_.EEn=new _.Yx("PLAYER_API_TOKEN");var X5p=!1,Pcu,s5D=!1,Y5J;var TP=function(A,L,O,X,x){_.p$.call(this);var J=this;this.playerId=L;this.webPlayerContextConfig=X;this.xDC=x;this.n54=!1;this.api={};this.rob=this.zVn=null;this.eUq=new _.tj;this.xr={};this.lLm=this.cDa=this.elementId=this.oKO=this.config=null;this.hXa=!1;this.qD=this.b9w=null;this.xYg={};this.xoc=["onReady"];this.lastError=null;this.i3C=NaN;this.uFw={};this.cWY=0;this.c2=this.targetElement=A;_.VI(this,this.eUq);nEg(this);O?this.cWY=setTimeout(function(){J.loadNewVideoConfig(O)},0):X&&(tBJ(this),
bgN(this))};
_.g(TP,_.p$);TP.prototype.getId=function(){return this.playerId};
TP.prototype.loadNewVideoConfig=function(A){if(!this.isDisposed()){this.cWY&&(clearTimeout(this.cWY),this.cWY=0);var L=A||{};L instanceof NDl||(L=new NDl(L));this.config=L;this.setConfig(A);bgN(this);this.isReady()&&h5u(this)}};
var tBJ=function(A){var L;A.webPlayerContextConfig?L=A.webPlayerContextConfig.rootElementId:L=A.config.attrs.id;A.elementId=L||A.elementId;A.elementId==="video-player"&&(A.elementId=A.playerId,A.webPlayerContextConfig?A.webPlayerContextConfig.rootElementId=A.playerId:A.config.attrs.id=A.playerId);var O;((O=A.c2)==null?void 0:O.id)===A.elementId&&(A.elementId+="-player",A.webPlayerContextConfig?A.webPlayerContextConfig.rootElementId=A.elementId:A.config.attrs.id=A.elementId)};
TP.prototype.setConfig=function(A){this.oKO=A;this.config=S5V(A);tBJ(this);if(!this.cDa){var L;this.cDa=q5N(this,((L=this.config.args)==null?void 0:L.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var O;if((O=this.config)==null?0:O.attrs)A=this.config.attrs,(L=A.width)&&this.c2&&(this.c2.style.width=B6(Number(L)||L,!0)),(A=A.height)&&this.c2&&(this.c2.style.height=B6(Number(A)||A,!0))};
var h5u=function(A){if(A.config&&A.config.loaded!==!0)if(A.config.loaded=!0,!A.config.args||A.config.args.autoplay!=="0"&&A.config.args.autoplay!==0&&A.config.args.autoplay!==!1){var L;A.api.loadVideoByPlayerVars((L=A.config.args)!=null?L:null)}else A.api.cueVideoByPlayerVars(A.config.args)},w5l=function(A){var L=!0,O=A.getPlayerElement();
O&&A.config&&(L=O.dataset.version===gEg(A));return L&&!!_.WY("yt.player.Application.create")},bgN=function(A){if(!A.isDisposed()&&!A.hXa){var L=w5l(A);
if(L&&(A.getPlayerElement()?"html5":null)==="html5")A.lLm="html5",A.isReady()||p5g(A);else if(ig6(A),A.lLm="html5",L&&A.qD&&A.targetElement)A.targetElement.appendChild(A.qD),p5g(A);else{A.config&&(A.config.loaded=!0);var O=!1;A.b9w=function(){O=!0;var X=NL6(A,"player_bootstrap_method")?_.WY("yt.player.Application.createAlternate")||_.WY("yt.player.Application.create"):_.WY("yt.player.Application.create");var x=A.config?S5V(A.config):void 0;X&&X(A.targetElement,x,A.webPlayerContextConfig,A.xDC);p5g(A)};
A.hXa=!0;L?A.b9w():(_.Zx(gEg(A),A.b9w),(L=rGV(A))&&hQr(L||""),KAN(A)&&!O&&_.oZ("yt.player.Application.create",null))}}};
TP.prototype.getPlayerElement=function(){var A=_.uS(document,this.elementId);!A&&this.c2&&this.c2.querySelector&&(A=this.c2.querySelector("#"+this.elementId));return A};
var p5g=function(A){if(!A.isDisposed()){var L=A.getPlayerElement(),O=!1;L&&L.getApiInterface&&L.getApiInterface()&&(O=!0);if(O){A.hXa=!1;if(!NL6(A,"html5_remove_not_servable_check_killswitch")){var X;if((L==null?0:L.isNotServable)&&A.config&&(L==null?0:L.isNotServable((X=A.config.args)==null?void 0:X.video_id)))return}Gg7(A)}else A.i3C=setTimeout(function(){p5g(A)},50)}},Gg7=function(A){nEg(A);
A.n54=!0;var L=A.getPlayerElement();if(L){A.zVn=l3V(A,L,"addEventListener");A.rob=l3V(A,L,"removeEventListener");var O=L.getApiInterface();O=O.concat(L.getInternalApiInterface());for(var X=A.api,x=0;x<O.length;x++){var J=O[x];X[J]||(X[J]=l3V(A,L,J))}}for(var Y in A.xr)A.xr.hasOwnProperty(Y)&&A.zVn&&A.zVn(Y,A.xr[Y]);h5u(A);A.cDa&&A.cDa(A.api);A.eUq.publish("onReady",A.api)},l3V=function(A,L,O){var X=L[O];
return function(){var x=_.f_.apply(0,arguments);try{return A.lastError=null,X.apply(L,x)}catch(J){if(O!=="sendAbandonmentPing")throw J.params=O,A.lastError=J,x=new _.pe("PlayerProxy error in method call",{error:J,method:O,playerId:A.playerId}),x.level="WARNING",x;}}},nEg=function(A){A.n54=!1;
if(A.rob)for(var L in A.xr)A.xr.hasOwnProperty(L)&&A.rob(L,A.xr[L]);for(var O in A.uFw)A.uFw.hasOwnProperty(O)&&clearTimeout(Number(O));A.uFw={};A.zVn=null;A.rob=null;L=A.api;for(var X in L)L.hasOwnProperty(X)&&(L[X]=null);L.addEventListener=function(x,J){A.addEventListener(x,J)};
L.removeEventListener=function(x,J){A.removeEventListener(x,J)};
L.destroy=function(){A.dispose()};
L.getLastError=function(){return A.getLastError()};
L.getPlayerType=function(){return A.getPlayerType()};
L.getCurrentVideoConfig=function(){return A.oKO};
L.loadNewVideoConfig=function(x){A.loadNewVideoConfig(x)};
L.isReady=function(){return A.isReady()}};
TP.prototype.isReady=function(){return this.n54};
TP.prototype.addEventListener=function(A,L){var O=this;this.isDisposed();var X=q5N(this,L);X&&(_.Id(this.xoc,A)||this.xr[A]||(L=cG7(this,A),this.zVn&&this.zVn(A,L)),this.eUq.subscribe(A,X),A==="onReady"&&this.isReady()&&setTimeout(function(){X(O.api)},0))};
TP.prototype.removeEventListener=function(A,L){this.isDisposed()||(L=q5N(this,L))&&this.eUq.unsubscribe(A,L)};
var q5N=function(A,L){var O=L;if(typeof L==="string"){if(A.xYg[L])return A.xYg[L];O=function(){var X=_.f_.apply(0,arguments),x=_.WY(L);if(x)try{x.apply(_.Ou,X)}catch(J){throw X=new _.pe("PlayerProxy error when executing callback",{error:J}),X.level="ERROR",X;}};
A.xYg[L]=O}return O?O:null},cG7=function(A,L){var O=function(X){var x=function(){A.isDisposed();
if(!A.isDisposed())try{A.eUq.publish(L,X!=null?X:void 0)}catch(T){var Y=new _.pe("PlayerProxy error when creating global callback",{error:T.message,event:L,playerId:A.playerId,data:X,originalStack:T.stack,componentStack:T.componentStack});Y.level="WARNING";throw Y;}};
if(NL6(A,"web_player_publish_events_immediately"))x();else{var J=setTimeout(function(){x();_.lW.remove(A.uFw,String(J))},0);
_.lW.add(A.uFw,String(J),!0)}};
return A.xr[L]=O};
TP.prototype.getPlayerType=function(){return this.lLm||(this.getPlayerElement()?"html5":null)};
TP.prototype.getLastError=function(){return this.lastError};
var ig6=function(A){A.cancel();nEg(A);A.lLm=null;A.config&&(A.config.loaded=!1);var L=A.getPlayerElement();L&&(w5l(A)||!KAN(A)?A.qD=L:(L&&L.destroy&&L.destroy(),A.qD=null));A.targetElement&&_.IS(A.targetElement)};
TP.prototype.cancel=function(){this.b9w&&_.Mpd(gEg(this),this.b9w);clearTimeout(this.i3C);this.hXa=!1};
TP.prototype.disposeInternal=function(){ig6(this);if(this.qD&&this.config&&this.qD.destroy)try{this.qD.destroy()}catch(L){var A=new _.pe("PlayerProxy error during disposal",{error:L});A.level="ERROR";throw A;}this.xYg=null;for(A in this.xr)this.xr.hasOwnProperty(A)&&delete this.xr[A];this.oKO=this.config=this.api=null;delete this.targetElement;delete this.c2;_.p$.prototype.disposeInternal.call(this)};
var KAN=function(A){var L,O;A=(L=A.config)==null?void 0:(O=L.args)==null?void 0:O.fflags;return!!A&&A.indexOf("player_destroy_old_version=true")!==-1},gEg=function(A){return A.webPlayerContextConfig?A.webPlayerContextConfig.jsUrl:(A=A.config.assets)?A.js:""},rGV=function(A){return A.webPlayerContextConfig?A.webPlayerContextConfig.cssUrl:(A=A.config.assets)?A.css:""},NL6=function(A,L){if(A.webPlayerContextConfig)var O=A.webPlayerContextConfig.serializedExperimentFlags;
else{var X;if((X=A.config)==null?0:X.args)O=A.config.args.fflags}return(O||"").split("&").includes(L+"=true")},S5V=function(A){for(var L={},O=_.d(Object.keys(A)),X=O.next();!X.done;X=O.next()){X=X.value;
var x=A[X];L[X]=typeof x==="object"?_.lW.clone(x):x}return L};var e5d={},D8e="player_uid_"+(Math.random()*1E9>>>0);var XC=function(A,L,O,X,x,J){L=L===void 0?document.createElement("div"):L;this.webPlayerContextConfig=A;this.container=L;this.commandResolver=O;this.apiResolver=tBu();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.EP;X||J?CcL(this):FAg(this);this.pendingPlayerResponse=X;this.pendingWatchNextResponse=x;this.pendingPlayerVars=J;R5u(this)};
XC.prototype.loadVideoWithPlayerResponse=function(A,L,O){this.loadVideo(A,L,O)};
XC.prototype.loadVideoWithPlayerVars=function(A){return this.loadVideo(void 0,void 0,A)};
XC.prototype.destroy=function(A){if(A=_.uS(document,A))A=D8e+"_"+_.$e(A),(A=e5d[A])&&A.dispose()};
var m86=function(A,L){var O;_.u(function(X){if(X.nextAddress==1)return A.pendingWatchNextResponse=L,A.synchronousApi?(O=A.synchronousApi,X.jumpTo(2)):X.yield(A.api,3);X.nextAddress!=2&&(O=X.yieldResult);if(!Q5J(A,O))return X.return();A.pendingWatchNextResponse&&(O.updateVideoData({raw_watch_next_response:A.pendingWatchNextResponse}),A.pendingWatchNextResponse=void 0);_.qo(X)})},Q5J=function(A,L){var O;
if(!(L==null?0:(O=L.isReady)==null?0:O.call(L))){var X;_.Rv(new _.pe("playerApi is falsey",{synchronousApi:A.synchronousApi,apiResolved:A.apiResolver.resolved,playerApiUndefined:L===void 0,playerApiNull:L===null,playerApiReady:(L==null?void 0:(X=L.isReady)==null?void 0:X.call(L))===!0,playerApiMethods:L?Object.keys(L):[]}));return!1}return!0},f3g=function(A,L){if(typeof A[L]==="function")return A[L]()},I3J=function(A){var L=window,O,X=(O=L.ytplayer)==null?void 0:O.bootstrapPlayerContainer;
if((O=X==null?void 0:X.firstElementChild)&&_.vb(O,"html5-video-player")){var x,J,Y=(x=L.ytplayer)==null?void 0:(J=x.bootstrapWebPlayerContextConfig)==null?void 0:J.contextId;x=A.webPlayerContextConfig.contextId;if(Y&&Y===x){X!==A.container&&(X=!1,f3g(O,"getPlayerState")===2&&(X=!0),A.container.appendChild(O),X||f3g(O,"playVideo"));var T;if((T=L.ytplayer)==null?0:T.bootstrapPlayerResponse)A.bootstrapPlayerResponse=L.ytplayer.bootstrapPlayerResponse}}},R5u=function(A){var L,O,X,x,J;
_.u(function(Y){if(Y.nextAddress==1)return A.pageReadyOrDataAvailable?Y.jumpTo(2):Y.yield(A.pageReadyOrDataAvailableResolver.promise,2);if(Y.nextAddress!=4)return!_.h("kevlar_player_unified_player_loading")||x8_()&&JGr()?Y.jumpTo(4):Y.yield(TLu(),4);I3J(A);if(A.pendingPlayerResponse||A.pendingPlayerVars)L=VB_(A.pendingPlayerResponse,A.pendingWatchNextResponse,A.pendingPlayerVars),A.pendingPlayerResponse&&A.pendingPlayerResponse===A.bootstrapPlayerResponse&&(L.loaded=!0),A.bootstrapPlayerResponse=
void 0;O=nEu(A.container,L,A.webPlayerContextConfig);((X=L)==null?0:X.loaded)&&A.pendingWatchNextResponse?(m86(A,A.pendingWatchNextResponse),A.pendingPlayerResponse=void 0,A.pendingPlayerVars=void 0):yG6(A);x=function(T){O.removeEventListener("onReady",x);A.synchronousApi=T;A.apiResolver.resolve(T)};
O.addEventListener("onReady",x);A.commandResolver!==void 0&&(J=A.commandResolver,O.addEventListener("innertubeCommand",function(T){J(T)}));
_.qo(Y)})};
XC.prototype.loadVideo=function(A,L,O){var X=this,x,J,Y,T,V,E,n,t,b;return _.u(function(S){if(S.nextAddress==1)return X.pendingPlayerResponse=A,X.pendingWatchNextResponse=L,X.pendingPlayerVars=O,CcL(X),X.synchronousApi?(x=X.synchronousApi,S.jumpTo(2)):S.yield(X.api,3);S.nextAddress!=2&&(x=S.yieldResult);if(!Q5J(X,x))return S.return(new Promise(function(){}));
Y=new Promise(function(w){J=w});
T=function(){var w=x.getPlayerResponse();w&&(x.removeEventListener("onVideoDataChange",T),J(w))};
x.addEventListener("onVideoDataChange",T);if(X.pendingPlayerResponse||X.pendingPlayerVars)X.pendingPlayerResponse&&X.pendingPlayerResponse===X.bootstrapPlayerResponse?(J(X.pendingPlayerResponse),X.pendingWatchNextResponse&&m86(X,X.pendingWatchNextResponse)):(V=VB_(X.pendingPlayerResponse,X.pendingWatchNextResponse,X.pendingPlayerVars),(b=(E=X.pendingPlayerResponse)==null?void 0:(n=E.playerConfig)==null?void 0:(t=n.playbackStartConfig)==null?void 0:t.startPaused)?x.cueVideoByPlayerVars(V.args):x.loadVideoByPlayerVars(V.args)),
yG6(X),X.bootstrapPlayerResponse=void 0;return S.return(Y)})};
var FAg=function(A){if(document.readyState==="complete"||document.readyState==="interactive")CcL(A);else{var L=function(){document.removeEventListener("DOMContentLoaded",L);CcL(A)};
document.addEventListener("DOMContentLoaded",L)}},CcL=function(A){A.pageReadyOrDataAvailable=!0;
A.pageReadyOrDataAvailableResolver.resolve()},yG6=function(A){A.pendingPlayerResponse=void 0;
A.pendingWatchNextResponse=void 0;A.pendingPlayerVars=void 0};
_.v2.Object.defineProperties(XC.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var xH=function(A){WF.call(this,A===void 0?"document_active":A);var L=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(O){L.transition("document_disposed",{event:O})});
window.addEventListener("beforeunload",function(O){L.transition("document_disposed_preventable",{event:O})});
window.addEventListener("unload",function(O){L.transition("document_disposed",{event:O});L.hasRun=new Map})};
_.g(xH,WF);
xH.prototype.runPreventableDispose=function(A,L){if(!this.hasRun.get("document_disposed_preventable")){A(L==null?void 0:L.event);var O,X;if((L==null?0:(O=L.event)==null?0:O.defaultPrevented)||(L==null?0:(X=L.event)==null?0:X.returnValue)){L.event.returnValue||(L.event.returnValue=!0);L.event.defaultPrevented||L.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")};
xH.prototype.runDispose=function(A,L){this.hasRun.get("document_disposed")?this.transition("document_active"):(A(L==null?void 0:L.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
xH.prototype.runFlush=function(A,L){A(L==null?void 0:L.event);this.transition("document_active")};
xH.prototype.runActive=function(){};var so=function(A){WF.call(this,A===void 0?"document_visibility_unknown":A);var L=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(O){document.visibilityState==="visible"?L.transition("document_visible",{event:O}):L.transition("document_hidden",
{event:O})});
_.h("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(O){L.transition("document_backgrounded",{event:O})}),window.addEventListener("focus",function(O){L.transition("document_foregrounded",{event:O})}))};
_.g(so,WF);so.prototype.runVisible=function(A,L){A(L==null?void 0:L.event);_.h("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
so.prototype.runHidden=function(A,L){A(L==null?void 0:L.event);_.h("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
so.prototype.runBackgrounded=function(A,L){A(L==null?void 0:L.event)};
so.prototype.runForegrounded=function(A,L){A(L==null?void 0:L.event)};var J2=function(){this.teardownLifecycle=new xH;this.visibilityLifecycle=new so};
J2.prototype.install=function(){var A=_.f_.apply(0,arguments),L=this;A.forEach(function(O){L.teardownLifecycle.install(O)});
A.forEach(function(O){L.visibilityLifecycle.install(O)})};var PW=function(){J2.call(this);var A={};this.install((A.document_disposed={callback:this.abortSlisAndFlush},A));_.h("combine_ve_grafts")&&(A={},this.install((A.document_disposed={callback:this.flushInteractionLoggingAttachVes},A)));A={};this.install((A.flush_logs={callback:this.logFinalPayload},A));_.h("web_log_cfg_cee_ks")||_.p7(_.c1,Zg7)};
_.g(PW,J2);var bgy=function(){PW.loggingInstance||(PW.loggingInstance=new PW);return PW.loggingInstance};
PW.prototype.logFinalPayload=function(){if(_.h("web_fp_via_jspb")){var A=new fxL,L=_.Fn();L&&_.gz(A,1,L);L=_.h("jspb_sparse_encoded_pivot")?new wT([{}]):new wT;_.EB(L,380,IxV,A);f_r("finalPayload",L);_.h("web_fp_via_jspb_and_json")&&_.lg("finalPayload",{csn:_.Fn()})}else _.lg("finalPayload",{csn:_.Fn()})};
PW.prototype.abortSlisAndFlush=function(){TDN(A7);L2!=null&&L2.flush()};
PW.prototype.flushInteractionLoggingAttachVes=function(){Gw3(_.iV())};
var Zg7=function(){var A=_.ms("CLIENT_EXPERIMENT_EVENTS");if(A){var L=aep();A=_.d(A);for(var O=A.next();!O.done;O=A.next())O=O.value,L(O)&&_.lg("genericClientExperimentEvent",{eventType:O});delete _.RO.CLIENT_EXPERIMENT_EVENTS}};var j5N={};
j5N.YtPlayerBehavior=[_.LE.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 A=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.EP;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;h5_(function(){A.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.RU(this,"pan-down"),_.h("kevlar_pinch_fullscreen")&&_.mk().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.h("kevlar_pinch_fullscreen")&&_.mk().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(A,L,O){var X=this;Vd(this.useUnifiedPlayer_());if(this.mainAppPlayer_)Vd(!1,"MainAppPlayer already created.");else{var x=_.h("kevlar_player_container_query_killswitch")?this.$.container:_.YJ(this.hostElement).querySelector("#container");this.mainAppPlayer_=new XC(this.getWebPlayerContextConfig_(),x,function(J){return _.qb(J,X.hostElement)},A,L,O);
this.mainAppPlayer_.api.then(function(J){X.player_=J;X.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&rNH.resolve(J)})}},
loadVideoWithPlayerResponse:function(A,L){var O=this;if(this.useUnifiedPlayer_()){var X=this.watchNextData,x,J=(x=A.videoDetails)==null?void 0:x.videoId,Y,T,V;(x=(Y=this.watchNextData)==null?void 0:(T=Y.currentVideoEndpoint)==null?void 0:(V=T.watchEndpoint)==null?void 0:V.videoId)&&J!=x&&(X=void 0,_.h("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(A,X,L):this.createMainAppPlayer_(A,X,L);this.mainAppPlayer_.api.then(function(){_.P4(O.hostElement,
"yt-player-updated")})}else this.update(AGp(A,L))},
loadVideoWithPlayerVars:function(A){var L=this;this.useUnifiedPlayer_()?(_.h("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(A):this.createMainAppPlayer_(void 0,void 0,A),this.mainAppPlayer_.api.then(function(){_.P4(L.hostElement,"yt-player-updated")})):this.update({args:A})},
update:function(A){var L=this;if(this.useUnifiedPlayer_())Vd(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(A);var O=OXe(A.args);O&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==O&&Object.assign(A.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(A).then(function(X){_.P4(L.hostElement,"yt-player-updated",_.h("kevlar_player_updated_obsolete_player_killswitch")?
X:void 0)})}_.FJ(new _.pe("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(A){var L=this,O;return _.u(function(X){if(X.nextAddress==1)return X.yield(L.getPlayerPromise(),2);O=X.yieldResult;if(!O)throw Error("uh");A&&L.updatePlayerPlaylist_(A);_.qo(X)})},
acquireApi_:function(A){var L=this;if(this.useUnifiedPlayer_())Vd(!1,"Invalid method call in kevlar_unified_player.");else return _.c1.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(Vd(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(O){L.shouldAutoplay_(A)?O.loadVideoByPlayerVars(A.args):O.cueVideoByPlayerVars(A.args)})):this.initPlayerPromise_=this.initPlayerContainer_(A),this.initPlayerPromise_},
initPlayerContainer_:function(A){var L=this;if(this.useUnifiedPlayer_())Vd(!1,"Invalid method call in kevlar_unified_player.");else return Vd(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.Rv(Error("vh")),Vd(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.h("kevlar_player_container_query_killswitch")?this.$.container:_.YJ(this.hostElement).querySelector("#container"),TLu().then(function(){var O=L.initPlayer_(A);L.playerResolver_.resolve(O);
return O})},
onPlayerReady_:function(A,L){this.useUnifiedPlayer_()?Vd(!1,"Invalid method call in kevlar_unified_player."):(A.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&rNH.resolve(A),L(A))},
maybeCallApiMethodOnElement_:function(A,L){if(typeof A[L]==="function")return A[L]()},
maybeAdoptBootstrapPlayer_:function(){var A=window,L,O=(L=A.ytplayer)==null?void 0:L.bootstrapPlayerContainer;if((L=O==null?void 0:O.firstElementChild)&&L.classList.contains("html5-video-player")){var X,x,J=(X=A.ytplayer)==null?void 0:(x=X.bootstrapWebPlayerContextConfig)==null?void 0:x.contextId;X=this.getWebPlayerContextConfig_().contextId;if(J&&J===X){O!==this.playerContainer_&&(O=!1,this.maybeCallApiMethodOnElement_(L,"getPlayerState")===2&&(O=!0),this.playerContainer_.appendChild(L),O||this.maybeCallApiMethodOnElement_(L,
"playVideo"));var Y;if((Y=A.ytplayer)==null?0:Y.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=A.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(A){var L=this;if(this.useUnifiedPlayer_())Vd(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(O){L.maybeAdoptBootstrapPlayer_();var X=A?LAJ(A):void 0;X&&X==L.bootstrapPlayerResponse_&&(A.loaded=!0);X=L.playerContainer_;var x=L.getWebPlayerContextConfig_();X=nEu(X,A,x);L.player_=X;L.onPlayerReadyEvent_=L.onPlayerReady_.bind(L,L.player_,O);L.player_.addEventListener("onReady",L.onPlayerReadyEvent_);L.player_.addEventListener("innertubeCommand",
L.onPlayerInnerTubeCommand_.bind(L));_.h("enable_web_shorts_captions_language_command")&&L.player_.addEventListener("captionschanged",L.storePlayerCaptionLanguage_.bind(L))})},
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(A){A.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(A){A.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var A=_.X5().resolve(_.JI).getCurrentPage();A&&A.getScrollTop()<=0?_.RU(this,"pan-down"):_.RU(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(A){A.isFullscreen()||A.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(A){A.isFullscreen()&&A.toggleFullscreen()})},
updatePlayerPlaylist_:function(A){var L=this,O,X,x;return _.u(function(J){if(J.nextAddress==1)return O=_.X5().resolve(_.Ot(_.$q)),X=!!(O&&O.playlistComponent&&O.playlistComponent.loopOn),J.yield(L.getPlayerPromise(),2);var Y=x=J.yieldResult,T=Y.updatePlaylist,V=[];if(_.h("kevlar_player_playlist_use_local_index")){var E,n;var t=(n=(E=A.localCurrentIndex)!=null?E:A.currentIndex)!=null?n:0}else{var b;t=(b=A.currentIndex)!=null?b:0}if(A.contents)for(E=0;E<A.contents.length;E++)if((n=A.contents[E])&&n.playlistPanelVideoRenderer)if(abM(n)){n=
n.playlistPanelVideoRenderer;b="";n.shortBylineText&&(b=_.vG(n.shortBylineText));var S="";n.title?S=_.vG(n.title):n.unplayableText&&(S=_.vG(n.unplayableText));V.push({author:b,title:S,encrypted_id:n.videoId})}else E<t&&--t;T.call(Y,{index:t,list:A.playlistId?A.playlistId:"",loop:X,playlist_title:A.title,playlist_length:V.length,video:V,fetch:0,external_list:"1",title:A.title?A.title:"",playlist_author:A.ownerName?_.vG(A.ownerName):void 0});_.qo(J)})},
focusOnPlayer:function(){_.kd(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var A=this.playerContainer_.querySelector(".html5-video-player");A&&(_.dU(_.X5().resolve(_.m4)),A.focus())}})},
preparePlayer:function(){var A=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(L){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")L();else{var O=function(){document.removeEventListener("DOMContentLoaded",O);L()};
document.addEventListener("DOMContentLoaded",O)}})).then(function(){return TLu()}).then(function(){A.initPlayerPromise_||A.preparePlayerJobId_||(A.preparePlayerJobId_=_.p7(_.c1,function(){A.initPlayerPromise_||(A.initPlayerPromise_=A.initPlayerContainer_())}))}):_.FJ(new _.pe("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(A){this.useUnifiedPlayer_()?Vd(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(A)||(A.args.autoplay="0")},
shouldAutoplay_:function(A){if(this.useUnifiedPlayer_())Vd(!1,"Invalid method call in kevlar_unified_player.");else{var L=this.get("args.el",A);return L&&L!="detailpage"&&this.isMiniplayerActive_()||L&&(L=="sponsorshipsoffer"||L=="handlesclaiming")&&this.get("args.autoplay",A)=="0"?!1:(A=LAJ(A))&&this.get("playerConfig.playbackStartConfig.startPaused",A)?!1:!0}},
isMiniplayerActive_:function(){return _.X5().resolve(_.z_).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var A=this.getPlayer();if(A){var L=A.getPlayerState();_.h("kevlar_player_check_ad_state_on_stop")&&(L=A.getPlayerState(A.getPresentingPlayerType()));L!=5&&A.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(A,L,O){O=O===void 0?!1:O;var X=this,x,J,Y,T;return _.u(function(V){if(V.nextAddress==1)return L||(L=X.hostElement),x=X.useUnifiedPlayer_()?!!X.mainAppPlayer_:!!X.initPlayerPromise_,x?V.yield(X.getPlayerPromise(),2):(O?A.insertBefore(L,A.firstChild):A.appendChild(L),V.return());J=V.yieldResult;Y=J.getPlayerState(J.getPresentingPlayerType());T=!1;if(Y==-1||Y==1||Y==3)T=!0;O?A.insertBefore(L,A.firstChild):A.appendChild(L);T&&J.playVideo();J.setSize(NaN,NaN);_.qo(V)})},
watchNextDataChanged_:function(A){var L=this;A&&(this.useUnifiedPlayer_()&&_.h("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&m86(this.mainAppPlayer_,A):this.getPlayerPromise().then(function(O){O.updateVideoData(L.computeWatchNextPlayerVars_(A))}))},
computeWatchNextPlayerVars_:function(A){if(this.useUnifiedPlayer_()&&_.h("kevlar_unified_player_update_watch_next_killswitch"))Vd(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:A}},
maybeSendAbandonmentPing_:function(){var A=this.getPlayer();A&&A.getPlayerState()!=5&&A.getPlayerState()!=0&&A.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var A=_.ms("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(A=Object.assign({},A),A.rootElementId=this.playerId);A.serializedExperimentIds&&A.serializedExperimentFlags||_.Rv(Error("wh"));return A},
hasWebPlayerContextConfig_:function(){return!!_.ms("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(A){this.useUnifiedPlayer_()?Vd(!1,"Invalid method call in kevlar_unified_player."):_.qb(A,this.hostElement)},
storePlayerCaptionLanguage_:function(){this.getPlayerPromise().then(function(A){var L=_.X5().resolve(_.l6);A=A==null?void 0:A.getOption("captions","track");var O=_.Dn("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(A){var X,x=(X=_.iS(_.hwu,O)())==null?void 0:X.value,J;X=typeof(A==null?void 0:A.translationLanguage)==="object"&&((J=A.translationLanguage)==null?void 0:J.languageName)||A.displayName||"";x!==X&&L.store.dispatch(_.NV("stringEntity",O,{key:O,value:X.toString()}))}else L.store.dispatch(_.NV("stringEntity",
O,{key:O,value:"CAPTIONS_UNAVAILABLE"}))})},
useUnifiedPlayer_:function(){var A=_.h("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.h("kevlar_unified_player")||A}}];var WAj={};WAj.YtPlaylistPanelBehavior=[_.B.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(A){A=A.detail;if(A.actions.loop!=void 0||A.actions["yt-icons:loop"]!=void 0)this.loopOn=A.actions.loop||A.actions["yt-icons:loop"];if(A.actions.shuffle!=void 0||A.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=A.actions.shuffle||A.actions["yt-icons:shuffle"]},
setMenuData_:function(A){if(!A||!A.playlistButtons||A.isInfinite)return null;for(var L=A.playlistButtons.menuRenderer.topLevelButtons,O=L.length,X=0;X<O;X++)if(L[X].toggleButtonRenderer){var x=L[X].toggleButtonRenderer;x.defaultIcon.iconType=="LOOP"&&this.loopOn?x.isToggled=this.loopOn:x.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(x.isToggled=this.shuffleOn)}return A.playlistButtons}}];var Hgn=function(A){J9.call(this,A,132);this.isDocument=A===document.documentElement};
_.g(Hgn,J9);Hgn.prototype.calculateScrollDelta=function(A,L,O){var X=0;A<L?X=A<L-100?-48:-8:A>L+O&&(X=A>L+O+100?48:8);return X};
Hgn.prototype.JSC$12361_onMouseMove=function(A){this.isDocument||(A.clientX=A.event_.pageX,A.clientY=A.event_.pageY);J9.prototype.JSC$12361_onMouseMove.call(this,A)};var YH=function(){var A=_.wd.apply(this,arguments)||this;A._noAccessors=!0;A.scrollElement=document.documentElement;A.JSC$15353_dragListGroup=null;A.dragScrollSupport=null;A.onDraggerCreated=function(L){var O=L.JSC$12357_dragger;O.scrollTarget_=A.scrollElement;L=L.draggerEl;O&&L.menuOpened&&O.setEnabled(!1)};
A.onDragStart=function(L){var O=L.draggerEl;L=L.currDragItem;var X=Object.assign({},L==null?void 0:L.data);X.trackingParams=void 0;O.data=X;O.style.position="absolute";O.style.width=(L==null?void 0:L.clientWidth)+"px";O.style.zIndex="2030";O.onDrag&&O.onDrag();_.h("web_owner_document_fallback_killswitch")?(L=document.querySelector("ytd-app"))&&_.YJ(L).appendChild(O):(L=_.Ro(O),(X=L.querySelector("ytd-app"))?_.YJ(X).appendChild(O):L.body.appendChild(O));A.dragScrollSupport=new Hgn(A.scrollElement);
A.dragScrollSupport.horizontalScrolling_=!1;O=A.dragScrollSupport;O.constrainScroll_=!!O.margin_&&!1};
A.onDrop=function(L){A.handleDrop(L);A.dragScrollSupport&&(_.oo(A.dragScrollSupport),A.dragScrollSupport=null)};
A.onReorderableScroll=function(){if(A.JSC$15353_dragListGroup){var L=A.JSC$15353_dragListGroup;cTV(L,L.currDragItem_)}};
return A};
_.g(YH,_.wd);YH.prototype.detached=function(){_.z5V(this)};
_.z5V=function(A){A.JSC$15353_dragListGroup&&(_.GI(A.JSC$15353_dragListGroup,gJN,A.onDragStart),_.GI(A.JSC$15353_dragListGroup,Ndl,A.onDragStart),A.JSC$15353_dragListGroup.dispose(),A.JSC$15353_dragListGroup=null);A.dragScrollSupport&&(_.oo(A.dragScrollSupport),A.dragScrollSupport=null);A.scrollElement.removeEventListener("scroll",A.onReorderableScroll)};
_.BLn=function(A,L,O,X){X=X===void 0?"":X;_.z5V(A);O&&(A.scrollElement=O);A.JSC$15353_dragListGroup=new aj;A.JSC$15353_dragListGroup.hysteresisDistance_=2;Kiu(A.JSC$15353_dragListGroup,L);A.JSC$15353_dragListGroup.draggerElClasses_=De("dragging").split(" ");X&&GK6(A.JSC$15353_dragListGroup,function(x){var J=x||document,Y=null;J.getElementsByClassName?Y=J.getElementsByClassName(X)[0]:Y=YzN("*",X,x);return Y||x});
_.CT(A.JSC$15353_dragListGroup,SbN,A.onDraggerCreated);_.CT(A.JSC$15353_dragListGroup,gJN,A.onDragStart);_.CT(A.JSC$15353_dragListGroup,Ndl,A.onDrop);A.JSC$15353_dragListGroup.init();A.scrollElement.addEventListener("scroll",A.onReorderableScroll,{passive:!0})};
YH.prototype.handleDrop=function(){};
_.v2.Object.defineProperties(YH.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.I([_.K({value:100}),_.Z("design:type",Number)],YH.prototype,"scrollMargin",void 0);_.I([_.p4()],YH);_.MBg=[YH.prototype];_.uR={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(A,L,O){var X=this.getClickTarget_(L);if(X&&this.isClickAllowed_(X)){L.preventDefault();A=(0,_.lW.unsafeClone)(A);var x=this.getContainerBoundingRect();L=this.getRelativeClickXy_(L,x);this.expandEndpointUrlMacros_(A,{NX:L[0],NY:L[1],NB:X.code});O&&this.truncateWebCommendMetadataUrl_(A);_.P4(this.hostElement,"yt-navigate",{endpoint:A})}},
getClickTarget_:function(A){if(!this.clickTargetMap)return null;A=_.oa(A)||[];A=_.d(A);for(var L=A.next();!L.done;L=A.next()){L=L.value;if(L===_.YJ(this.hostElement).querySelector("#menu"))break;if(L=this.clickTargetMap.get(L.id))return L}return null},
getRelativeClickXy_:function(A,L){var O=A.detail.x,X=A.detail.y;_.h("use_on_click_for_desktop_display_ad")&&A.clientX!=null&&A.clientY!=null&&(O=A.clientX,X=A.clientY);A=Math.round(O-L.left);L=Math.round(X-L.top);return A<0||L<0?[null,null]:[A,L]},
getContainerBoundingRect:function(){return _.YJ(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(A,L){for(var O=_.d(A.loggingUrls||[]),X=O.next();!X.done;X=O.next())X=X.value,X.baseUrl&&(X.baseUrl=v8J(X.baseUrl,L));A.urlEndpoint&&A.urlEndpoint.url&&(A.urlEndpoint.url=v8J(A.urlEndpoint.url,L));A.commandMetadata&&A.commandMetadata.webCommandMetadata&&A.commandMetadata.webCommandMetadata.url&&(A.commandMetadata.webCommandMetadata.url=v8J(A.commandMetadata.webCommandMetadata.url,L))},
truncateWebCommendMetadataUrl_:function(A){if(A.commandMetadata&&A.commandMetadata.webCommandMetadata&&A.commandMetadata.webCommandMetadata.url){var L=A.commandMetadata.webCommandMetadata.url,O=L.indexOf("&pp=");if(O>0){var X=L.indexOf("&",O+1);A.commandMetadata.webCommandMetadata.url=X>O&&X<L.length?L.slice(0,O)+L.slice(X):L.slice(0,O)}}},
configureClickTargets:function(A,L,O){this.containerId=A;this.clickTargetMap=new Map;A=_.d(L);for(L=A.next();!L.done;L=A.next())if(L=L.value,L.location){var X=O.get(L.location);X&&(_.TK(_.YJ(this.hostElement).querySelector("#"+X),"yt-simple-endpoint",this.isClickAllowed_(L)),this.clickTargetMap.set(X,L))}},
isClickAllowed_:function(A){return A.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||A.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||A.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||A.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.TU={};
_.TU.YtLazyListBehavior=[_.Y5.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 A=(this.constructor.generatedFrom||this).observers;A||(A=[]);A.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
A}},
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 A=this.renderElementsOutsideVisibleArea_;A&&(Iij(A,4),A.processSignal())},
deepLazyListObserver_:function(A){var L=this;if(A){var O=A.value||[];if(this.itemsPath==A.path){var X=this.nonDeferredItemCount;A=0;X>-1&&O.length>X&&(A=_.ms("REMAINING_DOVA_DEFERRED_CHUNKS",-1));A>0?(X>0&&(X=O.slice(0,X),this.setInitialItemsOnDataChanged(X)),(X=this.renderElementsOutsideVisibleArea_)?X.cancel():(X=this.renderElementsOutsideVisibleArea_=new _.Tf(2,"eocs"),_.Wee(window,"scroll",function(){return L.renderDeferredElements()})),_.V4(X,function(){L.setInitialItemsOnDataChanged(O)}),_.QT("REMAINING_DOVA_DEFERRED_CHUNKS",
A-1)):this.setInitialItemsOnDataChanged(O)}else if(this.itemsPath+".splices"==A.path)this.onItemsUpdated_(O);
else X="shownItems"+A.path.substr(this.itemsPath.length),this.useSignals&&X==="shownItems.length"||this.notifyPath(X,A.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(A){A&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(A),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(A){A=A.indexSplices;for(var L=0,O=A.length;L<O;L++){var X=A[L];if(X.index<this.shownCount&&(X.removed&&this.splice("shownItems",X.index,X.removed.length),X.addedCount)){var x=X.object.slice(X.index,X.index+X.addedCount);X=["shownItems",X.index,0];X.push.apply(X,x);this.splice.apply(this,X)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(A){this.cancelPendingTasks_();A||(A=[]);this.items_=A;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&&(_.fB("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.kd(this,this.tryRenderChunk_)))},
fillRange_:function(A,L){this.canShowMore&&this.items_&&(A=this.items_.slice(A,L),A.unshift("shownItems"),this.push.apply(this,A),this.shownCount=L,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var A=this;this.canShowMore&&_.$J(this,"renderChunk",function(){A.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.fB("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.GP(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var A=this.renderElementsOutsideVisibleArea_;A&&(A.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var A=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(A-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=A;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(A){return Math.ceil(1E3/A)},
onCanShowMoreUpdated_:function(A){this.data&&this.items_!==null&&(A?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(A){!this.shouldUseTaskManager()&&this.data&&(!A&&this.canShowMore?(_.GL9(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):A&&this.partiallyRenderedItems_.has(this.items_)&&(_.h("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var eR;_.Vy={};
eR=function(){var A=_.wd.apply(this,arguments)||this;A.atStart=!0;A.atEnd=!0;A.startIndex=0;A.endIndex=0;A.scrollCount=0;A.initialStartIndex=0;A.disableScrollEventListener=!1;A.useFloorScrolling=!1;A.isSearch=!1;A.dragging=!1;A.dragMouseStart=0;A.dragOffsetStart=0;A.disableWheelScroll=!1;A.centerListItems=!1;A.offset=0;A.minComponentWidth=0;A.marginWidthRight=0;A.marginWidthLeft=0;A.setButtonsStateRequested=!1;A.itemsVisibilityObserver=null;A.fullyVisibleItemsIndices=[];A.JSC$15364_onWheelScroll=function(L){if(A.isSearch&&
!A.disableWheelScroll&&_.h("desktop_enable_dmpanel_wheel_scroll")){var O=L.shiftKey?Math.abs(L.deltaY)>Math.abs(L.deltaX)?L.deltaY:L.deltaX:L.deltaX;O!==0&&(L.preventDefault(),A.ytLazyListBehavior.fillRemainingListItems(),A.offset+=O,Dm(A),A.reposition_())}};
A.onPointerDown=function(L){$8H(A)&&(A.dragMouseStart=L.clientX,A.dragOffsetStart=A.offset,A.dragging=!0)};
A.onPointerMove=function(L){$8H(A)&&A.dragging&&(A.ytLazyListBehavior.fillRemainingListItems(),A.offset=A.dragOffsetStart-(L.clientX-A.dragMouseStart),Dm(A),A.reposition_())};
A.onPointerUp=function(){$8H(A)&&(A.dragging=!1)};
return A};
_.g(eR,_.wd);var a3g=function(A){var L=_.YJ(A.hostElement).querySelector("#items").children;if(!L)return 0;var O=0;A=_.d(A.fullyVisibleItemsIndices);for(var X=A.next();!X.done;X=A.next())O+=L[X.value].clientWidth;return O},$8H=function(A){return A.isSearch&&_.h("desktop_enable_dmpanel_click_drag_scroll")};
eR.prototype.created=function(){this.cachedViewportWidth=_.ms("initialInnerWidth")||window.innerWidth;this.JSC$15364_cachedViewportHeight=_.ms("initialInnerHeight")||window.innerHeight;_.ms("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.QT("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
eR.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.h("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();kgj(this)};
eR.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.h("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var A;(A=this.itemsVisibilityObserver)==null||A.disconnect();this.itemsVisibilityObserver=null;var L;(L=this.itemsObserver)==null||L.disconnect()};
var kgj=function(A){var L=_.YJ(A.hostElement).querySelector("#scroll-container");if(L){if(!A.itemsVisibilityObserver){var O=window.getComputedStyle(L).marginRight;A.itemsVisibilityObserver=new IntersectionObserver(function(X){U8n(A,X)},{root:L,
rootMargin:O,threshold:.98})}if(L=_.YJ(A.hostElement).querySelector("#items"))A.itemsObserver=new PnN(L,function(X){vEL(A,X)})}},vEL=function(A,L){oEc(A)&&(Array.from(L.addedNodes).filter(function(O){return O.nodeType===Node.ELEMENT_NODE}).forEach(function(O){A.itemsVisibilityObserver&&A.itemsVisibilityObserver.observe(O)}),Array.from(L.removedNodes).filter(function(O){return O.nodeType===Node.ELEMENT_NODE}).forEach(function(O){A.itemsVisibilityObserver&&A.itemsVisibilityObserver.unobserve(O)}))},
U8n=function(A,L){var O=new Set(A.fullyVisibleItemsIndices);
L=_.d(L);for(var X=L.next();!X.done;X=L.next()){X=X.value;var x=X.target.parentElement;x?(x=Array.from(x.children).indexOf(X.target),X.isIntersecting?O.add(x):O.has(x)&&O.delete(x)):_.Rv(new _.pe("Parent element not found",X.target.nodeName))}A.fullyVisibleItemsIndices=Array.from(O).sort(function(J,Y){return J-Y});
O.size===0?_.Rv(new _.pe("No visible entries in horizontal list")):(A.startIndex=A.fullyVisibleItemsIndices[0],A.endIndex=A.fullyVisibleItemsIndices[A.fullyVisibleItemsIndices.length-1])},oEc=function(A){A.data?A=(A=A.data)&&A.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===A.itemSizeConstraint:!1:A=!1;
return A};
_.P=eR.prototype;_.P.addScrollEventListeners=function(){var A=_.YJ(this.hostElement).querySelector("#scroll-container");A.style.touchAction="pan-y";A.addEventListener("wheel",this.JSC$15364_onWheelScroll);A.addEventListener("pointerdown",this.onPointerDown);A.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.P.removeScrollEventListeners=function(){var A=_.YJ(this.hostElement).querySelector("#scroll-container");A.removeEventListener("wheel",this.JSC$15364_onWheelScroll);A.removeEventListener("pointerdown",this.onPointerDown);A.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.P.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.kd(this,this.setStartIndex,[this.initialStartIndex])};
_.P.reposition_=function(){var A=_.ms("HTML_DIR")=="rtl"?"":"-",L=_.YJ(this.hostElement).querySelector("#items");L&&(L.style.transform="translateX("+A+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.P.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.kd(this,this.setButtonsState_))};
_.P.setButtonsState_=function(){this.setButtonsStateRequested=!1;var A=_.YJ(this.hostElement).querySelector("#items").firstElementChild;if(A){this.minComponentWidth||(this.minComponentWidth=APV(this,A));A=_.YJ(this.hostElement).querySelector("#scroll-container").clientWidth;var L=_.YJ(this.hostElement).querySelector("#items").clientWidth,O=this.get(this.ytLazyListBehavior.itemsPath,this);if(O){var X=Math.round(A/this.minComponentWidth)||1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=
Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+X,O.length)-1)}this.ytLazyListBehavior.canShowMore?L+this.minComponentWidth>=this.offset+A&&(this.atEnd=!1):this.atEnd=this.offset+A>=L-20?!0:!1;this.atStart=this.offset<=20}};
_.P.setStartIndex=function(A){if(!this.minComponentWidth){var L=_.YJ(this.hostElement).querySelector("#items").firstElementChild;if(!L)return;this.minComponentWidth=APV(this,L)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*A;Dm(this);this.reposition_()};
_.P.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.gt();var A=_.YJ(this.hostElement).querySelector("#scroll-container").clientWidth;_.h("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=APV(this,_.YJ(this.hostElement).querySelector("#items").firstElementChild));A=this.useFloorScrolling?Math.floor(A/this.minComponentWidth)||1:Math.round(A/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&LWV(this);this.offset+=oEc(this)?
a3g(this):A*this.minComponentWidth;Dm(this);this.reposition_();this.scrollCount++};
_.P.prevClick_=function(){var A=_.YJ(this.hostElement).querySelector("#scroll-container").clientWidth;A=this.useFloorScrolling?Math.floor(A/this.minComponentWidth)||1:Math.round(A/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=oEc(this)?a3g(this):this.minComponentWidth*this.scrollCount-1):this.offset-=oEc(this)?a3g(this):A*this.minComponentWidth;this.centerListItems&&LWV(this);Dm(this);this.reposition_()};
_.P.onIronResize_=function(){this.resizeSupportEnabled&&_.kd(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.P.onItemsTransitionEnd_=function(A){_.AT(A)===_.YJ(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.P.onChildElementFocus_=function(A){A=A.target.closest("#items > *");var L=_.YJ(this.hostElement).querySelector("#scroll-container");if(L.contains(A)){if(_.h("web_horizontal_list_behavior_focus_killswitch"))if(A.offsetLeft<this.offset)this.offset=Math.abs(A.offsetLeft)<A.clientWidth?0:A.offsetLeft;else if(A.offsetLeft+A.clientWidth>this.offset+L.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.gt(),this.offset=A.offsetLeft+A.clientWidth-L.clientWidth;else return;else{var O=_.YJ(this.hostElement).querySelector("#items"),
X=_.ms("HTML_DIR")==="rtl",x=X?O.clientWidth-A.offsetLeft:A.offsetLeft;O=X?O.clientWidth-(A.offsetLeft+A.clientWidth):A.offsetLeft+A.clientWidth;var J=X?x>this.offset+L.clientWidth:x<this.offset,Y=X?O<this.offset:O>this.offset+L.clientWidth,T=X?J:Y;if(X?Y:J)L=X?O:x,this.offset=Math.abs(L)<A.clientWidth?0:L;else if(T)this.ytLazyListBehavior.fillRemainingListItems(),_.gt(),this.offset=(X?x:O)-L.clientWidth;else return}Dm(this);this.reposition_()}};
_.P.observeShownItems_=function(){this.reset()};
_.P.checkComponentWidthResize=function(){var A=_.YJ(this.hostElement).querySelector("#items").firstElementChild;A&&(A=APV(this,A),this.centerListItems||A!==this.minComponentWidth)&&(this.minComponentWidth=A,this.offset=A*this.scrollCount,this.centerListItems&&LWV(this),Dm(this),this.reposition_())};
var APV=function(A,L){var O=window.getComputedStyle(L).marginRight;O=Math.floor(Number(O.replace("px","")));var X=window.getComputedStyle(L).marginLeft;X=Math.floor(Number(X.replace("px","")));A.centerListItems&&!A.marginWidthRight&&(A.marginWidthRight=O,A.marginWidthLeft=X);return A.resizeSupportEnabled?L.getBoundingClientRect().width+O:L.offsetWidth+O},Dm=function(A){var L=_.YJ(A.hostElement).querySelector("#scroll-container").clientWidth,O=_.YJ(A.hostElement).querySelector("#items").clientWidth;
A.offset<0?A.offset=0:A.offset+L>=O&&(A.offset=O-L)},LWV=function(A){A.offset-=(_.YJ(A.hostElement).querySelector("#scroll-container").clientWidth+A.marginWidthRight-A.minComponentWidth)/2-A.marginWidthLeft};
_.v2.Object.defineProperties(eR.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var A=_.ms("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(A==-1)A=this.JSC$15364_cachedViewportHeight,A=A>1320?5:A>1020?4:A>730?3:A>430?2:1;else if(A==0)return 0;_.QT("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",A-1);A=_.ms("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(A>-1)return A;A=this.cachedViewportWidth;A=A>1600?6:A>1400?5:A>1300?4:A>1090?5:A>870?4:A>660?3:2;_.QT("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
A);return A},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.h("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
eR.prototype.observeShownItems_=eR.prototype.observeShownItems_;eR.prototype.onChildElementFocus_=eR.prototype.onChildElementFocus_;eR.prototype.onItemsTransitionEnd_=eR.prototype.onItemsTransitionEnd_;eR.prototype.onIronResize_=eR.prototype.onIronResize_;eR.prototype.prevClick_=eR.prototype.prevClick_;eR.prototype.nextClick_=eR.prototype.nextClick_;eR.prototype.setButtonsState_=eR.prototype.setButtonsState_;eR.prototype.requestButtonsStateUpdate_=eR.prototype.requestButtonsStateUpdate_;
eR.prototype.reposition_=eR.prototype.reposition_;eR.prototype.reset=eR.prototype.reset;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],eR.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.TU.YtLazyListBehavior),_.Z("design:type",Object)],eR.prototype,"ytLazyListBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],eR.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],eR.prototype,"atStart",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],eR.prototype,"atEnd",void 0);_.I([_.K(),_.Z("design:type",Object)],eR.prototype,"startIndex",void 0);_.I([_.K(),_.Z("design:type",Object)],eR.prototype,"endIndex",void 0);_.I([_.K({value:6}),_.Z("design:type",Number)],eR.prototype,"initialCount",void 0);_.I([_.K(),_.Z("design:type",Object)],eR.prototype,"scrollCount",void 0);_.I([_.K(),_.Z("design:type",Object)],eR.prototype,"initialStartIndex",void 0);
_.I([_.K(),_.Z("design:type",Object)],eR.prototype,"disableScrollEventListener",void 0);_.I([_.K(),_.Z("design:type",Object)],eR.prototype,"supportComponentResize",void 0);_.I([_.K({value:function(){var A=this;return function(){return A.prevClick_()}}}),
_.Z("design:type",Function)],eR.prototype,"boundPrevClick",void 0);_.I([_.K({value:function(){var A=this;return function(){return A.nextClick_()}}}),
_.Z("design:type",Function)],eR.prototype,"boundNextClick",void 0);_.I([_.K(),_.Z("design:type",Object)],eR.prototype,"useFloorScrolling",void 0);_.I([_.K(),_.Z("design:type",Object)],eR.prototype,"isSearch",void 0);_.I([_.K(),_.Z("design:type",Object)],eR.prototype,"dragging",void 0);_.I([_.K(),_.Z("design:type",Object)],eR.prototype,"dragMouseStart",void 0);_.I([_.K(),_.Z("design:type",Object)],eR.prototype,"dragOffsetStart",void 0);
_.I([_.K(),_.Z("design:type",Object)],eR.prototype,"disableWheelScroll",void 0);_.I([_.K(),_.Z("design:type",Object)],eR.prototype,"centerListItems",void 0);_.I([_.by("iron-resize"),_.hT("guideOpened"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],eR.prototype,"onIronResize_",null);_.I([_.by("transitionend"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],eR.prototype,"onItemsTransitionEnd_",null);
_.I([_.by("focusin"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],eR.prototype,"onChildElementFocus_",null);_.I([_.hT("shownItems"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],eR.prototype,"observeShownItems_",null);_.I([_.p4()],eR);_.Vy.YtdHorizontalListBehavior=[];_.Vy.YtdHorizontalListBehavior.push(_.y9,_.B.YtRendererBehavior,_.TU.YtLazyListBehavior,_.kr.YtdGuideStateAwareBehavior,eR.prototype);var q5e=["APP_STATE","PI"];var Ok3=_.AW(["about:blank"]),Xoj={pushState:window.history.pushState,replaceState:window.history.replaceState};var Eo=function(A){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=A;this.internalPushState=A.pushState.bind(A);this.internalReplaceState=A.replaceState.bind(A)};
Eo.prototype.init=function(){this.initialized=!0};
Eo.prototype.pushState=function(A,L){this.initialized||this.init();this.internalPushState&&this.internalPushState(A,"",L)};
Eo.prototype.replaceState=function(A,L){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(A,"",L)};
Eo.prototype.getState=function(){return this.history&&this.history.state};var x9u=function(A){var L=function(){var O=A.apply(this,arguments)||this;O.boundHistoryPushState=!1;O.boundHistoryReplaceState=!1;O.debugInfo={};return O};
_.g(L,A);L.prototype.init=function(){var O=_.tg("IFRAME");_.Hf(O,_.JD(Ok3));O.sandbox="allow-same-origin";O.style.display="none";this.iframe=O;document.body.appendChild(O);this.bindHistoryStateFunctions();A.prototype.init.call(this)};
L.prototype.bindHistoryStateFunctions=function(){var O=this,X=[],x;this.iframe&&((x=this.iframe.contentWindow)==null?0:x.history)&&(x=this.iframe.contentWindow.history)&&(X.push(x),Object.getPrototypeOf(x)&&X.push(Object.getPrototypeOf(x)));window.history&&X.push(window.history);x=window.history;Object.getPrototypeOf(x)&&X.push(Object.getPrototypeOf(x));X.push(Xoj);x=function(Y){for(var T=null,V=0;V<X.length;V++){var E=X[V][Y];if(typeof E==="function"){T=E.bind(window.history);O.debugInfo[Y]=V;break}}return T};
if(!this.boundHistoryReplaceState){var J=x("replaceState");J&&(this.internalReplaceState=J,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(x=x("pushState"))&&(this.internalPushState=x,this.boundHistoryPushState=!0)};
return L}(Eo),s8J=function(){return x9u.call(this,window.history)||this};
_.g(s8J,x9u);s8J.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var nE=function(A){this.browserHistory=A;this.initialized=!1};
nE.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
nE.prototype.pushState=function(A,L){this.initialized||this.init();this.browserHistory.pushState(A,L)};
nE.prototype.replaceState=function(A,L){this.initialized||this.init();this.browserHistory.replaceState(A,L)};
nE.prototype.handlePopstate=function(A){return A.state};_.JP7=function(A,L,O,X,x){this.endpoint=A;this.forward=L;this.historyEntry=O;this.JSC$31789_savedComponentState=X;this.legacyBorder=x===void 0?!1:x};var PTH=function(A,L){this.rootData=A;this.scrollTop=L};var Cq=new _.Yx("PAGE_REQUEST_TOKEN"),ehN=new _.Yx("FETCH_PBJ_TOKEN");_.t2=new _.Yx("EPHEMERAL_STORE_TOKEN");_.bR=function(A){this.data=Object.assign({},A);var L;(L=this.data.innertubeResponse)==null||delete L.frameworkUpdates};
_.bR.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.O$)()};
_.uE=function(A){return Object.assign({},A.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var d96=function(){this.maxSize=100;this.timeToDataCache=new Map};
d96.prototype.get=function(A){var L=this.timeToDataCache.get(A);L&&(this.timeToDataCache.delete(A),this.timeToDataCache.set(A,L));if(L&&L.rootData&&(_.h("web_use_response_store_for_history_cache")||_.h("mweb_use_new_history_manager"))){var O=_.X5().resolve(_.t2),X=Y36(L),x=!!X;if(X){if(X.content){var J=h2(O,X.content);x&&J?L.rootData.response=_.uE(J):x=!1}X.player&&(J=h2(O,X.player),x&&J?L.rootData.playerResponse=_.uE(J):x=!1);X.reelSequence&&(O=h2(O,X.reelSequence),x&&O?L.rootData.reelWatchSequenceResponse=
_.uE(O):x=!1)}x||(this.timeToDataCache.delete(A),L=void 0)}return L};
d96.prototype.set=function(A,L){if(L.rootData&&(_.h("web_use_response_store_for_history_cache")||_.h("mweb_use_new_history_manager"))){var O=Y36(L),X=Object.assign({},L.rootData);O&&(O.content&&L.rootData.response&&(um6(this,O.content,L.rootData.response),X.response=null),O.player&&L.rootData.playerResponse&&(um6(this,O.player,L.rootData.playerResponse),X.playerResponse=null),O.reelSequence&&L.rootData.reelWatchSequenceResponse&&(um6(this,O.reelSequence,L.rootData.reelWatchSequenceResponse),X.reelWatchSequenceResponse=
null));L=new PTH(X,L.scrollTop)}this.timeToDataCache.has(A)?this.timeToDataCache.delete(A):this.timeToDataCache.size>=this.maxSize&&(O=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(O.value));this.maxSize!==0&&this.timeToDataCache.set(A,L)};
d96.prototype.clear=function(){this.timeToDataCache.clear()};
var Y36=function(A){var L=_.X5().resolve(_.Ot(Cq)),O;if((O=A.rootData)==null?0:O.endpoint)return L==null?void 0:Qbu(L,A.rootData.endpoint);var X;_.Rv(new _.pe("History snapshot response data does not contain endpoint",(X=A.rootData)==null?void 0:X.url));return null},um6=function(A,L,O){if(A.maxSize>0){var X;
(A=(X=O.responseContext)==null?void 0:X.maxAgeSeconds)&&Number(A)>0&&(X=_.X5().resolve(_.t2),O=Ek(O,A),X.put(L,new _.bR(O)))}};var TaH=function(A,L,O){this.endpoint=L;this.JSC$31794_savedComponentState=O===void 0?null:O;this.entryTime=A};var rGe=1;var SR=function(A){var L=function(){var O=A.apply(this,[].concat(_.le(_.f_.apply(0,arguments))))||this;O.historyEntryTime=0;O.historySnapshotCache=O.createHistoryCache();return O};
_.g(L,A);L.prototype.createHistoryCache=function(){return new d96};
L.prototype.saveAndReplace=function(O,X,x){var J=window.location.href;var Y=Y===void 0?{}:Y;var T=(T=this.browserHistory.getState())&&T.entryTime?T.entryTime:KAy();O=this.createNewHistoryEntry(O,Y,T);this.saveSnapshot(T,X,x);this.replaceState(O,J||window.location.href)};
L.prototype.saveAndPush=function(O,X,x,J,Y){Y=Y===void 0?{}:Y;this.saveSnapshot(this.historyEntryTime,x,J);x=this.historySnapshotCache;J=this.historyEntryTime;var T=x.timeToDataCache.keys();T=_.d(T);for(var V=T.next();!V.done;V=T.next())V=V.value,V>J&&x.timeToDataCache.delete(V);X=this.createNewHistoryEntry(X,Y);this.pushState(X,O)};
L.prototype.saveSnapshot=function(O,X,x){this.historySnapshotCache.set(O,new PTH(X,x))};
L.prototype.createNewHistoryEntry=function(O,X,x){x=x===void 0?KAy():x;return new TaH(x,O,X)};
L.prototype.handlePopstate=function(O){var X=A.prototype.handlePopstate.call(this,O),x=null,J=null,Y=!1,T=null;X&&X.entryTime&&(T=this.historySnapshotCache.get(X.entryTime)||null,Y=X.entryTime>this.historyEntryTime,this.historyEntryTime=X.entryTime,x=X.endpoint,J=X.JSC$31794_savedComponentState);this.handleHistoryCacheLoad(new _.JP7(x,Y,T,J),O);return X};
L.prototype.pushState=function(O,X){Number(O==null?void 0:O.entryTime)>=0&&(this.historyEntryTime=O.entryTime);A.prototype.pushState.call(this,O,X)};
L.prototype.replaceState=function(O,X){Number(O==null?void 0:O.entryTime)>=0&&(this.historyEntryTime=O.entryTime);A.prototype.replaceState.call(this,O,X)};
L.prototype.handleHistoryCacheLoad=function(){};
return L}(nE),VL7=function(){var A=SR.call(this,new s8J)||this;
A.dispatchElement=null;A.entryIndex=0;return A};
_.g(VL7,SR);_.P=VL7.prototype;_.P.init=function(A){A=A===void 0?!0:A;SR.prototype.init.call(this);this.initialized||(A||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.P.handlePopstate=function(A){var L=null;A.state||(L="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return SR.prototype.handlePopstate.call(this,A);var O=new CustomEvent("yt-history-pop",{cancelable:!0});_.dQ(this.dispatchElement,"yt-history-pop",[O,{errorMsg:L}]);_.YK(this.dispatchElement,"yt-close-all-popups-action");if(!O.defaultPrevented){O=_.X5().resolve(_.JI);L=O.getCurrentData();var X=O.getCurrentPage();O=0;X?(X=_.dQ(this.dispatchElement,"yt-get-page-offset",
[X]),X.length>0&&(O=X[0])):_.Rv(new _.pe("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:L?L.page:"undefined"}));L&&(L.csn=_.Fn());this.saveSnapshot(this.historyEntryTime,L,O)}return SR.prototype.handlePopstate.call(this,A)};
_.P.handleHistoryCacheLoad=function(A,L){A.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.d(_.YK(this.dispatchElement,"yt-history-will-navigate",[L])).next().value||_.dQ(this.dispatchElement,"yt-history-load",[L,A]))};
_.P.pushState=function(A,L){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var O=new _.pe("history.pushState is not a function",this.getDebugString());_.C7(O)}SR.prototype.pushState.call(this,A,L)};
_.P.replaceState=function(A,L){if(!this.browserHistory.boundHistoryReplaceState){var O=new _.pe("history.replaceState is not a function",this.getDebugString());_.C7(O)}SR.prototype.replaceState.call(this,A,L)};
_.P.saveAndPush=function(A,L,O,X,x){x=x===void 0?{}:x;O&&(O.csn=_.Fn());SR.prototype.saveAndPush.call(this,A,L,O,X,x)};
_.P.getDebugString=function(){var A=[];this.initialized&&A.push("i");this.browserHistory.boundHistoryReplaceState&&A.push("bhr");this.browserHistory.boundHistoryPushState&&A.push("bhs");"replaceState"in this.browserHistory.debugInfo&&A.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&A.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&A.push("ei:"+String(this.entryIndex));return A.join(",")};
_.qq=function(A,L){A.init(!0);var O=A.browserHistory.getState();A.replaceState(O,e8(L))};
VL7.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.gU=new _.Yx("DESKTOP_HISTORY_MANAGER_TOKEN");var D9g=[10,20,30,40,50,60],wU=function(){this.currentPartitionIndex=0},e2H=function(A){hGg({mainAppWeb:_.aa(),
survivalSli:{partitionMinute:A,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},ECH=function(A){hGg({mainAppWeb:_.aa(),
survivalSli:{partitionMinute:A,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},nCg=function(A){return A.currentPartitionIndex>=0&&A.currentPartitionIndex<D9g.length?D9g[A.currentPartitionIndex]:-1},tLH=function(A){return A.currentPartitionIndex>0&&A.currentPartitionIndex-1<D9g.length?D9g[A.currentPartitionIndex-1]:-1};
wU.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var A=tLH(this);A>0&&ECH(A);A=nCg(this);A>0&&e2H(A);bkc(this)}};
var bkc=function(A){var L=nCg(A);if(L>0){var O=tLH(A);O<0&&(O=0);A.intervalId=_.c1.addJob(function(){var X=tLH(A);X>0&&ECH(X);X=nCg(A);X>0&&e2H(X);bkc(A)},3,(L-O)*6E4);
A.currentPartitionIndex+=1}else A.currentPartitionIndex=-1};var h2l=function(){this.skipNextNavigation=!1},S3N=function(A,L,O){if(!L)return!1;
if(A.skipNextNavigation)return A.skipNextNavigation=!1;if(_.q(O,_.Hh))return!1;var X,x,J;if((X=_.q(O,_.gM))==null?0:(x=X.browseEndpointContextSupportedConfigs)==null?0:(J=x.browseEndpointContextMainConfig)==null?0:J.skipConfirmation)return!1;var Y;return((Y=_.q(L.commandMetadata,_.LM))==null?void 0:Y.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
h2l.prototype.showConfirmationDialog=function(A,L){this.navigateParams=L;this.customConfirmationCommand?_.X5().resolve(_.x$).resolveCommand(this.customConfirmationCommand):(L={openPopupAction:{popup:{confirmDialogRenderer:{title:_.Ue(_.b3("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.Ue(_.b3("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.Ue(_.b3("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.Ue(_.b3("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.zu.getInstance().triggerAction("yt-open-popup-action",L,A))};
h2l.prototype.cancelPendingNavigation=function(){var A;((A=this.navigateParams)==null?void 0:A.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var q3n=function(){},woJ=function(A,L,O,X,x,J,Y){O=O===void 0?{}:O;
Y=Y===void 0?{}:Y;var T=_.CA.instance,V,E=(V=_.q(L,_.Hh))==null?void 0:V.url;return E?n0r(T,E,O,window.location.href,function(n,t){gCc(A,n,t,!1,!0,O,J,X)},function(){return!1}):$D(T,L,O,window.location.href,p3(L),function(n,t){gCc(A,n,t,!1,!0,O,J,X)},x,Y)},gCc=function(A,L,O,X,x,J,Y,T){if(!A.JSC$15422_chunkHandler)if(O.page==="watch"||O.page==="learning_journey_watch")if(x||X){if(_.h("kevlar_continue_playback_without_player_response")){var V;
var E=(V=_.q(T,_.$O))==null?void 0:V.videoId}A.JSC$15422_chunkHandler=new yZL(_.d0,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:X,previousVideoId:E},tempData:J},Y)}else A.JSC$15422_chunkHandler=new RNj(_.d0);else O.page==="shorts"&&x&&!X?A.JSC$15422_chunkHandler=new ICL(_.d0,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:J},Y):A.JSC$15422_chunkHandler=new Q0l(Y);A.JSC$15422_chunkHandler.processChunk({endpoint:L,data:O});return A.JSC$15422_chunkHandler.yd.promise},
poN=function(A,L,O,X,x){(O=_.KmN(O))&&gCc(A,L,O,!1,!0,X,void 0,x)};var ikn=function(){this.pendingNavigationPromise=null};
_.P=ikn.prototype;_.P.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.P.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.P.addEventListener=function(){throw Error("xh");};
_.P.dispatchEvent=function(){throw Error("xh");};
_.P.removeEventListener=function(){throw Error("xh");};var Naj=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],pE=function(){_.lb.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];rPL(this)};
_.g(pE,_.lb);pE.prototype.verifyUser=function(){var A=rPL(this),L=A.logout;if(!A.sessionChange)return!0;this.dispatchEvent("ytsessionchange");L&&this.dispatchEvent("ytuserinvalid");return!1};
var rPL=function(A){var L=Naj.map(function(x){var J;return(J=_.hj.get(x))!=null?J:""}),O=L.some(function(x,J){return A.sessionCookies&&A.sessionCookies[J]!==""&&x===""}),X=L.some(function(x,J){return A.sessionCookies&&A.sessionCookies[J]!==x});
A.sessionCookies=L;return{logout:O,sessionChange:X}};
pE.prototype.clearTimeout=function(){this.scheduledJobId&&(_.c1.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var FAu=new _.Yx("POSTMESSAGE_TUNNEL_TOKEN");var l3e=["/parent_tools","/file_download","/artist_roster"],m89=[WMn,H96,zP3,MDu,Buu,jdH,$yl,aeL];var KW3=new _.Yx("APP_ROOT");var iR=new _.Yx("NAVIGATION_CONFIRMATION_SERVICE");var Gs3="/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(" "),lLL=[{url:"/podcasts",expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],
Nq=function(A,L){this.pendingNavigationPromise=null;this.JSC$15440_clientRoot=A;this.historyManager=L;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 q3n;this.debugString=A.is;A={"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};_.Bh(_.zu.getInstance(),A,this.JSC$15440_clientRoot)},Q8H,m9H,fL7,ILN,R2g;
_.g(Nq,ikn);Nq.prototype.reload=function(){_.$c(window.location.href)};
var cmj=function(A){A.currentEndpoint&&_.q(A.currentEndpoint,_.rM)?A.reload():A.currentEndpoint&&A.navigate(A.currentEndpoint,!0,void 0,{disableCache:!0})};
Nq.prototype.navigate=function(A,L,O,X,x,J,Y,T){L=L===void 0?!1:L;O=O===void 0?{}:O;X=X===void 0?{}:X;var V=_.X5().resolve(iR),E;if(!Y&&S3N(V,(E=this.currentEndpoint)!=null?E:void 0,A))return V.showConfirmationDialog(this.JSC$15440_clientRoot.parentElement,{endpoint:A,reload:L,params:O,tempData:X,requestType:x,createScreenConfig:J}),!1;var n=_.kq();_.UU(n,"eocs")||n.parkOrScheduleJob(function(){n.processSignal("eocs")},10,"eor");
Y=p3(A);V=X.autonav==="1";E=_.Fn();pE.instance||(pE.instance=new pE);var t=pE.instance.verifyUser(),b;if(_.h("enable_dark_theme_only_on_shorts")){var S=document.documentElement.hasAttribute("dark"),w=_.C3(!0)==="USER_INTERFACE_THEME_DARK";if(Y==="shorts"){if(!S)if(_.h("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var l;_.$c((l=_.q(A==null?void 0:A.commandMetadata,_.LM))==null?void 0:l.url,void 0,void 0,window.top)}}else{var F;_.$c(_.aO((F=_.q(A==null?
void 0:A.commandMetadata,_.LM))==null?void 0:F.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.h("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!S){var R;_.$c(_.aO((R=_.q(A==null?void 0:A.commandMetadata,_.LM))==null?void 0:R.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(w!==S){var y;_.$c(_.aO((y=_.q(A==null?void 0:A.commandMetadata,_.LM))==null?void 0:y.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(Y==="watch"){if(cPj(_.X5().resolve(_.z_),
A)&&(t||_.h("fix_miniplayer_navigation_killswitch")))return!1;_.h("block_all_player_prefetch_requests")||(b=GL6(_.Pw(_.F6),A,V))}else{var M,H=(M=_.q(this.currentEndpoint,_.$O))==null?void 0:M.videoId;H&&_.m0.getInstance().then(function(ir){ir&&ir.set("yt-miniplayer-shown-video-id",H)})}b&&(O.frags=b.missingFragments_.join(","));
l=null;var z;F=(z=_.q(A==null?void 0:A.commandMetadata,_.LM))==null?void 0:z.ignoreNavigation;if(!F)if(_.h("kevlar_command_url")){var a;l=(a=_.q(A==null?void 0:A.commandMetadata,_.LM))==null?void 0:a.url}else l=_.KN9(A,O);if(l&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&l==this.lastNavigationUrl)return _.CM({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.bE(yq(),"CANCELLED")}l&&(this.lastNavigationUrl=l);L9r();_.QT("IS_HOMEPAGE_COLD",
!1);_.QT("IS_RESULTS_PAGE_COLD",!1);_.QT("IS_WATCH_PAGE_COLD",!1);A.loggingUrls&&A.loggingUrls.forEach(function(ir){ir.baseUrl&&_.jY(ir.baseUrl)});
_.ZgP(A,J?J.layer:0)&&_.h("kevlar_flush_logs_on_away_navigation")&&_.ch();if(f3u(A))return!1;Ylg(Y,x);if(!l)return F||_.Rv(new _.pe("Can't construct url for endpoint",A)),_.bE(yq(),"FAILURE"),!1;_.GgP();z=A&&_.q(A,_.gM)&&_.q(A,_.gM).browseId.startsWith("UC");O=(a=_.h("enable_dark_theme_only_on_shorts")&&Y==="shorts"?!1:_.FZ()&&document.documentElement.hasAttribute("dark")!==_.cy())?{themeRefresh:1}:{};a&&!_.qO()&&_.C3()==="USER_INTERFACE_THEME_DARK"&&(O.theme="dark");z=a||CTg(l)&&!z&&!_.h("kevlar_disable_url_allowlist");
t||(z=!0);if(z||_.ms("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var xe;var ur=(xe=window.top)==null?void 0:xe.location.href}catch(ir){var eD;ur=(eD=ir)==null?void 0:eD.message}_.Rv(new _.pe("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:ur}))}A=_.h("kevlar_redirect_on_window_killswitch")?window.top:window;MT(l);_.$c(_.aO(l,O),void 0,void 0,A);_.bE(yq(),"ABORTED");return!1}_.h("kevlar_early_popup_close")&&_.dQ(this.JSC$15440_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$15422_chunkHandler=void 0;var gu;ur=p3((gu=this.currentEndpoint)!=null?gu:void 0);(gu=Y==="shorts"&&ur==="shorts")||_.Xis();_.j6(Wds)("nr",void 0);V&&_.CM({webInfo:{navigationReason:"an"}});A.clickTrackingParams&&(X.itct=A.clickTrackingParams,X.csn=E);VSp(X);X.endpoint=JSON.stringify(A);_.h("enable_unknown_lact_fix_on_html5")&&(_.X5().resolve(_.m4),X.lact=_.xw());_.lW.isEmpty(X)||_.oF(l,X);!_.h("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(J=Object.assign({},{layer:0},J,{parentLayer:3}));this.pendingNavigationPromise=J=woJ(this.pageFetcher,A,X,this.currentEndpoint,this.JSC$15440_isNetworkPromiseStale.bind(this),J,T);J=J.then(this.handleNavigateSuccess.bind(this,J,A,b,X),this.handleNavigateFail.bind(this,J,A));_.rm().navigationFinishPromise=J;L={endpoint:A,pageType:Y,url:e8(l),reload:!!L,noProgressBar:gu};x&&(L.type=x);this.fireEvent("yt-navigate-start",L);b&&poN(this.pageFetcher,A,b,X,this.currentEndpoint);
return!0};
Nq.prototype.JSC$15440_isNetworkPromiseStale=function(A){return A!=this.pendingNavigationPromise};
var FWn=function(A,L,O,X,x){var J=p3(L);L={endpoint:L,pageType:J};x&&(L.errorMessage=x);_.Rv(O);L.navigationDoneMs=_.Rk("nd");L.navigationErrorReason=X;A.fireEvent("yt-navigate-error",L)};
Nq.prototype.handleNavigateFail=function(A,L,O){var X=void 0;O instanceof _.$f&&(X=O,N0M(O));if(this.JSC$15440_isNetworkPromiseStale(A))return _.Ry(X);_.bE(yq(),"FAILURE");FWn(this,L,O,"101");return _.Ry(O)};
Nq.prototype.handleNavigateSuccess=function(A,L,O,X,x){if(this.JSC$15440_isNetworkPromiseStale(A))return _.DQ();this.pendingNavigationPromise=null;if(!x)return L=new _.pe("Missing data in response for navigation endpoint",L),_.Ry(L);if(x.reload)return window.location.reload(!0),_.DQ();O&&(A={},_.lW.extend(A,_.KmN(O),x),x=A);var J,Y;O=(J=x)==null?void 0:(Y=J.timing)==null?void 0:Y.responseStart;O!=null&&_.Rk("srt",O);_.Rk("pdc");var T,V;J=(T=x)==null?void 0:(V=T.timing)==null?void 0:V.info;J!=null&&
(T=_.j6(_.M0e)(J),_.CM(T));_.bE(yq(),"SUCCESS");R2g(this,L,x,1,X);return _.DQ()};
var CTg=function(A){var L=A;_.h("kevlar_no_redirect_to_classic_2_ks")||(L=(new _.kO(A)).getPath());if(L==="/"||L==="/red")return!1;var O=!0;Gs3.forEach(function(X){A.indexOf(X)===0&&(O=!1)});
lLL.forEach(function(X){var x=X.url;_.h(X.expFlag)&&A.indexOf(x)===0&&(O=!1)});
return O};
Nq.prototype.publishPageData=function(A){this.fireEvent("yt-page-data-fetched",{pageData:A})};
Q8H=function(A,L,O,X,x,J){var Y=null;L.page!=="watch"&&L.page!=="learning_journey_watch"||X?L.filler||_.dQ(A.JSC$15440_clientRoot,"yt-stop-old-player",[L]):Y=gCc(A.pageFetcher,x,L,O,!1,J,void 0,A.currentEndpoint);if(Y)return Y.then(A.publishPageData.bind(A,L));A.publishPageData(L);return _.DQ()};
m9H=function(A,L,O){var X=null;if(!O)return X=new _.pe("Empty data",A.debugString,L);var x=O.response;if(!x)return X;var J={endpointType:p3(L)||"unknown"};x.responseContext?(x=x.responseContext.errors)&&(X=new _.pe("Errors in response context",A.debugString,L,x,J)):X=x.error||x.errorMetadata?new _.pe("Errors in response",A.debugString,L,x.error,x.errorMetadata,J):new _.pe("responseContext missing",A.debugString,L,Object.keys(x).sort().join(","),J);var Y,T,V,E;if(A=O==null?void 0:(Y=O.response)==null?
void 0:(T=Y.responseContext)==null?void 0:(V=T.webResponseContextExtensionData)==null?void 0:(E=V.webResponseContextDebugData)==null?void 0:E.debugErrorMessages)for(Y=0;Y<A.length;Y++);return X};
fL7=function(A){var L,O,X,x;return A==null?void 0:(L=A.response)==null?void 0:(O=L.responseContext)==null?void 0:(X=O.errors)==null?void 0:(x=X.error)==null?void 0:x["0"]};
ILN=function(A,L){var O;if(O=L.url&&!L.url.startsWith("/clip"))O=L.url,O=!_.h("webfe_parse_debug_param_in_resolveurl_service")&&A.searchDebugUrlMatcher.test(O)||QkO(O)?!0:!1;if(O)QkO(L.url)&&_.$L(window.location.href).themeRefresh?(L=_.Az(L.url,"themeRefresh"),_.qq(A.historyManager,L)):L.url&&!ig9(L.url)&&_.qq(A.historyManager,L.url);else if(L.endpoint){var X,x,J;(O=(X=L.endpoint)==null?void 0:(x=X.commandMetadata)==null?void 0:(J=x.webCommandMetadata)==null?void 0:J.url)&&!ig9(O)&&_.qq(A.historyManager,
O);O&&L.url&&O!=L.url&&!L.url.match("playnext=1")&&new _.pe("Response url mismatch in response data",A.debugString,O,L.url)}};
_.yPu=function(A,L,O,X,x,J,Y,T){J=J===void 0?!1:J;var V=_.X5().resolve(iR),E;if(!T&&S3N(V,(E=A.currentEndpoint)!=null?E:void 0,L))return V.showConfirmationDialog(A.JSC$15440_clientRoot.parentElement,{endpoint:L,data:O,navigationType:X,tempData:x,isMiniplayer:J,isForwardHistoryNavigation:Y==null?void 0:Y.forward}),_.DQ();A.pageFetcher.JSC$15422_chunkHandler=void 0;return R2g(A,L,O,X,x,J)};
R2g=function(A,L,O,X,x,J){J=J===void 0?!1:J;A.isMiniplayerExpansion=J;var Y=X===2;A.currentEndpoint=L;A.numNavigations++;A.numNavigations&&(oHJ.navigationCount=A.numNavigations);_.QT("NUM_NAV",A.numNavigations);var T=m9H(A,L,O);if(T)return FWn(A,L,T,"102",fL7(O)),_.Ry(T);var V,E,n,t;T=O.rootVe||(O==null?void 0:(V=O.response)==null?void 0:(E=V.responseContext)==null?void 0:(n=E.webResponseContextExtensionData)==null?void 0:(t=n.ytConfigData)==null?void 0:t.rootVisualElementType);!Y&&O&&ILN(A,O);var b,
S;V=O==null?void 0:(b=O.response)==null?void 0:(S=b.responseContext)==null?void 0:S.maxAgeSeconds;if(!Y&&!isNaN(V)){var w;_.h("kevlar_use_response_ttl_to_invalidate_cache")?w=(0,_.O$)()+1E3*V:_.h("kevlar_always_invalidate_cache")&&(w=0);isNaN(w)||(O.expirationTime=w)}_.Pw(_.F6).prefetchCache_.clear();Y||O.page!=="watch"||O.type!=="reduced"&&X!==1?X=Q8H(A,O,Y,!!J,L,x):(A.publishPageData(O),X=_.DQ());x=X.then(function(){var l=p3(L);l={endpoint:L,pageType:l,fromHistory:Y,response:O};l.navigationDoneMs=
_.Rk("nd");A.fireEvent("yt-navigate-finish",l)});
O.csn&&T&&O.clientSideGrafts&&X.then(A.attachClientSideGrafts.bind(A,O,_.Ch()));return x};
_.P=Nq.prototype;_.P.attachClientSideGrafts=function(A,L){A.clientSideGrafts&&L&&A.clientSideGrafts.forEach(function(O){if(L&&O){var X=_.lV(O);_.h("combine_ve_grafts")?_.iV().graftServerVe(O,L):_.W4(A.csn,L,X)}})};
_.P.handleSignalActionHistoryBack=function(){window.history.back()};
_.P.handleSignalActionCloseWindow=function(){window.close()};
_.P.handleSignalActionReloadPage=function(){this.reload()};
_.P.handleSignalActionSoftReloadPage=function(){cmj(this)};
_.P.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.P.fireEvent=function(A,L){A=new CustomEvent(A,{bubbles:!0,cancelable:!1,composed:!0,detail:L});this.dispatchEvent(A)};
_.P.addEventListener=function(A,L){this.JSC$15440_clientRoot.addEventListener(A,L)};
_.P.dispatchEvent=function(A){return this.JSC$15440_clientRoot.dispatchEvent(A)};
_.P.removeEventListener=function(A,L){this.JSC$15440_clientRoot.removeEventListener(A,L)};
Nq[dx]=[KW3,_.gU];_.Sxy=new nA("browse","h8y2qb");_.qxp=new nA("search","JzFVk");_.gvu=new nA("shorts","xwEKAe");_.w8d=new nA("watchFixie","nmfa2d");_.p8u=new nA("watchFlexy","CF909");_.iir=new nA("watchGrid","Tm0L3c");_.Nee=new nA("watchLearningJourney","L3n37");var Zkj;var j8V=function(){return _.G.apply(this,arguments)||this};
_.g(j8V,_.G);_.v2.Object.defineProperties(j8V,{template:{configurable:!0,enumerable:!0,get:function(){if(Zkj===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);Zkj=A}A=Zkj;return A}}});
_.I([_.N(j5N.YtPlayerBehavior),_.Z("design:type",Object)],j8V.prototype,"ytPlayerBehavior",void 0);_.I([_.Q({is:"ytd-player"})],j8V);var WWJ;var Hk6;var z27;var rU=function(){var A=_.G.apply(this,arguments)||this;A.forceModernIconButton=!1;A.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return A};
_.g(rU,_.G);rU.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]]"}}}}}};
rU.prototype.handleAccountLinkingStateChangedCommand=function(A){if(A=_.q(A,Ga3)){var L,O=(L=this.data)==null?void 0:L.providerKey;L=A.providerKey;O&&L&&O.id===L.id&&O.subject===L.subject&&(A=A.linked,A!==void 0&&(this.set("data.linked",A),this.notifyPath("data.linked"),_.h("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(A)))}};
rU.prototype.setPlayerAccountLinkState=function(A){var L=new wg7;pg6(L,qSg(new SSL,A));var O=_.d0();O&&O.getPlayerPromise().then(function(X){X.setAccountLinkState(_.NQ(L.JSC$13135_serializeBinary(),4));X.updateAccountLinkingConfig(A)})};
rU.prototype.handleShowAccountLinkDialog=function(){var A=this.get("button.buttonRenderer.command");A&&_.E0([A],this.hostElement)};
_.v2.Object.defineProperties(rU.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}}}});
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],rU.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],rU.prototype,"ytRendererBehavior",void 0);_.I([_.N([_.es.YtActionHandlerBehavior]),_.Z("design:type",Object)],rU.prototype,"actionHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],rU.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],rU.prototype,"overrides",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],rU.prototype,"forceModernIconButton",void 0);_.I([_.K({value:"bottom"}),_.Z("design:type",String)],rU.prototype,"buttonTooltipPosition",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],rU.prototype,"forceIconButton",void 0);_.I([_.K(),_.Z("design:type",Boolean)],rU.prototype,"disableTextTransform",void 0);
_.I([_.r("data","data.linked","data.isWarning"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],rU.prototype,"button",null);_.I([_.Q({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],rU);
_.m(rU,"ytd-account-link-button-renderer",function(){if(z27!==void 0)return z27;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return z27=A},{mode:1});var BaN;var MLj=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],KE=function(){return _.G.apply(this,arguments)||this};
_.g(KE,_.G);KE.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
KE.prototype.updateButtonActiveState=function(){var A=this,L=!!MLj.find(function(O){return A.currentState===O});
this.button&&(this.button.isPressed=L)};
_.v2.Object.defineProperties(KE.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var A,L;return((A=this.playlistLoopStateEntity)==null?void 0:A.state)||((L=this.data)==null?void 0:L.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var A=void 0,L;if(this.currentState&&((L=this.data)==null?0:L.states)){L=_.d(this.data.states);for(var O=L.next();!O.done;O=L.next()){O=_.q(O.value,_.aPc);var X=void 0;if(((X=O)==null?void 0:X.state)===this.currentState){A=O;break}}}return A}}});
KE.prototype.updateButtonActiveState=KE.prototype.updateButtonActiveState;_.I([_.N(_.HL),_.Z("design:type",Object)],KE.prototype,"ytdReduxBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],KE.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],KE.prototype,"ytRendererstamperBehavior",void 0);
_.I([_.K({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.$8r}),_.Z("design:type",Object)],KE.prototype,"playlistLoopStateEntity",void 0);_.I([_.K(),_.Z("design:type",Object)],KE.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Boolean)],KE.prototype,"forceIconOnly",void 0);_.I([_.qR("ytd-button-renderer"),_.Z("design:type",_.dD)],KE.prototype,"button",void 0);
_.I([_.r("data","playlistLoopStateEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],KE.prototype,"currentState",null);_.I([_.hT("currentButtonStateRenderer"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],KE.prototype,"updateButtonActiveState",null);_.I([_.r("currentState"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],KE.prototype,"currentButtonStateRenderer",null);
_.I([_.Q({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],KE);
_.m(KE,"ytd-playlist-loop-button-renderer",function(){if(BaN!==void 0)return BaN;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return BaN=A},
{mode:1});var $9u;var aLl=_.b3("DOWNLOAD",{},"Download"),ksN=_.b3("DOWNLOADING",{},"Downloading"),U9l=_.b3("DOWNLOADED",{},"Downloaded"),vCl=_.b3("RETRY",{},"Retry"),GU=function(){var A=_.G.apply(this,arguments)||this;A.forceIconButton=!1;A.forceIconOnly=!1;A.overrides=!1;A.buttonTooltipPosition=!1;A.styleActionButton=!1;A.disableTextTransform=!1;A.downloadProgress=0;A.isDownloadComplete=!1;A.isHidden=!0;A.transferState="TRANSFER_STATE_UNKNOWN";A.isVideoDeletedByUser=!1;A.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return A};
_.g(GU,_.G);_.P=GU.prototype;_.P.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.P.dataChanged=function(){var A;(A=this.data)!=null&&A.text||(A=_.yi(_.Ai().getState(),this.videoId),this.updateButtonState(A))};
_.P.computeVideoId=function(A){return A};
_.P.showHideButton=function(){this.updateButtonVisibility()};
_.P.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;this.isHidden=this.transferState!=="TRANSFER_STATE_UNKNOWN"?!1:this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0};
_.P.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.P.updateButtonState=function(A){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==ksN||!_.wh(A))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(A){case "TRANSFER_STATE_UNKNOWN":A=aLl;var L="OFFLINE_DOWNLOAD";var O="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":A=vCl;L="OFFLINE_DOWNLOAD";O="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":A=U9l;L="OFFLINE_PIN";O="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":A=
ksN;L="OFFLINE_DOWNLOADING_ZERO";O="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":A=vCl;L="OFFLINE_DOWNLOAD";O="ACTION_RETRY";break;default:A=aLl,L="OFFLINE_DOWNLOAD",O="ACTION_ADD"}this.isVideoDeletedByUser&&(A=aLl,L="OFFLINE_DOWNLOAD",O="ACTION_ADD");var X=Object.assign({},this.data);X.text=_.Ue(A);X.tooltip=A;X.icon={iconType:L};X.size="SIZE_DEFAULT";X.style="STYLE_DEFAULT";_.q(X.command,_.g0)&&(_.q(X.command,_.g0).action=O);this.set("data",X)}};
_.P.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var A="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?A="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?A="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?A="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?A="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?A="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(A="OFFLINE_PIN",this.isDownloadComplete=!0);var L;A!==((L=this.data.icon)==null?void 0:L.iconType)&&(L=Object.assign({},this.data),L.text=_.Ue(ksN),L.tooltip=ksN,L.icon={iconType:A},_.q(L.command,_.g0)&&(_.q(L.command,_.g0).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",L))}};
GU.prototype.updateProgress=GU.prototype.updateProgress;GU.prototype.onTransferStateChanged=GU.prototype.onTransferStateChanged;GU.prototype.showHideButton=GU.prototype.showHideButton;GU.prototype.dataChanged=GU.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],GU.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],GU.prototype,"ytdReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],GU.prototype,"forceIconButton",void 0);
_.I([_.K(),_.Z("design:type",Object)],GU.prototype,"forceIconOnly",void 0);_.I([_.K(),_.Z("design:type",Object)],GU.prototype,"overrides",void 0);_.I([_.K(),_.Z("design:type",Object)],GU.prototype,"buttonTooltipPosition",void 0);_.I([_.K(),_.Z("design:type",Object)],GU.prototype,"styleActionButton",void 0);_.I([_.K(),_.Z("design:type",Object)],GU.prototype,"disableTextTransform",void 0);
_.I([_.K({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.Z("design:type",String)],GU.prototype,"videoId",void 0);_.I([_.K(),_.Z("design:type",Object)],GU.prototype,"data",void 0);_.I([_.K({selector:jM,selectorArgs:["videoId"]}),_.Z("design:type",Object)],GU.prototype,"downloadProgress",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],GU.prototype,"isDownloadComplete",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],GU.prototype,"isHidden",void 0);_.I([_.K({selector:_.yi,selectorArgs:["videoId"]}),_.Z("design:type",String)],GU.prototype,"transferState",void 0);_.I([_.K({selector:_.Jas,selectorArgs:["videoId"]}),_.Z("design:type",Object)],GU.prototype,"isVideoDeletedByUser",void 0);_.I([_.K({selector:Aae,selectorArgs:["videoId"]}),_.Z("design:type",Object)],GU.prototype,"offlineabilityState",void 0);
_.I([_.K({value:!0}),_.Z("design:type",Boolean)],GU.prototype,"showTooltips",void 0);_.I([_.K({value:!0}),_.Z("design:type",Boolean)],GU.prototype,"sendCommandWhenDisabled",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],GU.prototype,"disabled",void 0);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],GU.prototype,"dataChanged",null);
_.I([_.iy("offlineabilityState"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],GU.prototype,"showHideButton",null);_.I([_.iy("transferState","isVideoDeletedByUser"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],GU.prototype,"onTransferStateChanged",null);_.I([_.iy("downloadProgress"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],GU.prototype,"updateProgress",null);
_.I([_.Q({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],GU);
_.m(GU,"ytd-download-button-renderer",function(){if($9u!==void 0)return $9u;var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return $9u=A},{mode:2});var oCV;var A5H,Lbg=function(){if(A5H!==void 0)return A5H;var A=document.createElement("template");_.p(A,'\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 A5H=A};var OIu=_.h("web_button_rework")&&_.fB("BUTTON_REWORK")||_.h("web_button_rework_with_live"),XdV=_.PO("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,lR=function(){var A=_.G.apply(this,arguments)||this;A.isPressed=!1;A.forceIconButton=!1;A.forceIconOnly=!1;A.forceModernIconButton=!1;A.alignByText=!1;A.isShorts=!1;A.animatedText=!1;A.shouldAnimate=!1;A.JSC$15477_browserSupportsAnimation=_.h("web_supports_animations_api");A.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};A.onTap=function(){var L;if((L=A.data)==null||!L.defaultNavigationEndpoint){var O;L=!((O=A.data)==null?0:O.isToggled);var X;if((X=A.data)==null||!X.preventAutoToggle){A.shouldAnimate=!1;A.disableTextUpdateJobId&&_.c1.cancelJob(A.disableTextUpdateJobId);A.disableTextUpdateJobId=_.c1.addLowPriorityJob(function(){A.disableTextUpdateJobId=void 0},XdV);
var x;A.set("data.isToggled",!((x=A.data)==null?0:x.isToggled));O=A.getInnertubeIcon();X={toggled:L,actions:{}};O&&(X.actions[O.toLowerCase()]=L);_.P4(A.hostElement,"yt-toggle-button",X)}}};
return A};
_.g(lR,_.G);_.P=lR.prototype;_.P.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.c1.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.P.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.P.toggle=function(A){var L;this.set("data.isToggled",A!==void 0?A:!((L=this.data)==null?0:L.isToggled))};
_.P.handleUpdateToggleButtonStateCommand=function(A){if(this.data){A=_.q(A,ywl);var L,O,X,x=(L=this.data)==null?void 0:(O=L.toggleButtonSupportedData)==null?void 0:(X=O.toggleButtonIdData)==null?void 0:X.id;x&&A&&x===(A==null?void 0:A.buttonId)&&this.set("data.isToggled",A.toggled)}};
_.P.handleUpdateToggleButtonTextAction=function(A){if(this.data){A=_.q(A,rMN);var L,O,X,x=(L=this.data)==null?void 0:(O=L.toggleButtonSupportedData)==null?void 0:(X=O.toggleButtonIdData)==null?void 0:X.id;x&&A&&x===(A==null?void 0:A.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=A.defaultNumericalValue,this.set("data.defaultText",A.defaultText),this.set("data.toggledText",A.toggledText),this.shouldAnimate=!1)}};
_.P.getInnertubeIcon=function(){var A=this.data;if(A){var L,O,X=((L=A.defaultIcon)==null?0:L.iconType)?(O=A.defaultIcon)==null?void 0:O.iconType:null,x,J;L=((x=A.toggledIcon)==null?0:x.iconType)?(J=A.toggledIcon)==null?void 0:J.iconType:X;return A.isToggled?L:X}};
_.P.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.v2.Object.defineProperties(lR.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var A={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$15477_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var L=A.renderer;var O=A.element;var X=A.toggled;var x=A.onTapCallback;var J=A.commandClientArgs;var Y=A.overrides;var T=A.forceIcon;var V=A.forceModernIconButton;var E=A.forceDisabled;var n=A.useAnimatedText;var t=A.animatedTextProps;A=vEp(L,X);T=!L.defaultIcon||!T&&L.defaultText?L.defaultIcon?"leading":void 0:V?"icon-only":"icon-only-40";T==="icon-only-40"&&(A.type="text");var b;V=Object;var S=V.assign,w;a:switch((w=
L.style)==null?void 0:w.styleType){case "STYLE_COMPACT_GRAY":w={size:"S"};break a;default:w={size:"M"}}var l=!!X;var F=(F=X&&L.toggledText||L.defaultText)?_.yz(F):void 0;n?(n=_.vG(X&&L.toggledText||L.defaultText))&&t&&!isNaN(Number(t.numberValue))?(t.numberText=n,X&&(t.numberValue+=1),n=t):n=void 0:n=void 0;var R,y,M,H;var z=(t=((y=X?L.toggledAccessibilityData||((z=L.toggledText)==null?void 0:z.accessibility):L.accessibilityData||((R=L.defaultText)==null?void 0:R.accessibility))==null?void 0:(M=y.accessibilityData)==
null?void 0:M.label)||((H=L.accessibility)==null?void 0:H.label))?t:_.vG(X&&L.toggledText||L.defaultText);E=E===void 0?L.isDisabled:E;O=U8J(L,X,x,O,J);X=kgO(L,X);X!=null&&X.length?(X=_.BR({innertubeCommand:Kwu(X),forceNewState:!0}),X=Mb(X)?X:void 0):X=void 0;L=S.call(V,{},A,w,{iconPosition:T},Y,{focused:!1,toggled:l,toggleable:!0,formattedButtonText:F,animatedTextProps:n,accessibilityLabel:z,disabled:E,onTap:O,aTagConfig:X},dxy((b=L.colorData)==null?void 0:b.basicColorPaletteData));L.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(L.type="filled");return L}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var A=this.getInnertubeIcon();if(A)return _.bV(A)}}});
lR.prototype.resetAnimation=lR.prototype.resetAnimation;_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],lR.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],lR.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],lR.prototype,"ytActionHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],lR.prototype,"data",void 0);
_.I([_.K(),_.Z("design:type",Object)],lR.prototype,"isPressed",void 0);_.I([_.K(),_.Z("design:type",Object)],lR.prototype,"forceIconButton",void 0);_.I([_.K(),_.Z("design:type",Object)],lR.prototype,"forceIconOnly",void 0);_.I([_.K(),_.Z("design:type",Object)],lR.prototype,"forceModernIconButton",void 0);_.I([_.K(),_.Z("design:type",Object)],lR.prototype,"alignByText",void 0);_.I([_.K(),_.Z("design:type",Object)],lR.prototype,"overrides",void 0);
_.I([_.K(),_.Z("design:type",Boolean)],lR.prototype,"disabled",void 0);_.I([_.K(),_.Z("design:type",Object)],lR.prototype,"isShorts",void 0);_.I([_.K(),_.Z("design:type",Object)],lR.prototype,"buttonTooltipPosition",void 0);_.I([_.K(),_.Z("design:type",Object)],lR.prototype,"animatedText",void 0);_.I([_.K(),_.Z("design:type",String)],lR.prototype,"textNumberValue",void 0);_.I([_.K({computed:"computeTooltip(data, data.isToggled)"}),_.Z("design:type",Object)],lR.prototype,"tooltip",void 0);
_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],lR.prototype,"resetAnimation",null);_.I([_.r("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],lR.prototype,"computedButtonShape",null);_.I([_.r("data.*"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],lR.prototype,"computedIcon",null);
_.I([_.Q({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],lR);OIu&&_.m(lR,"ytd-toggle-button-renderer",Lbg,{mode:_.e5("kevlar_poly_si_batch_j081")?1:2});var cxP=_.xa(function(A){function L(E){var n;return _.u(function(t){if(t.nextAddress==1)return(n=!APe(E,T())||!T().enabled)?t.jumpTo(2):t.yield(s8u(),3);t.nextAddress!=2&&(n=t.yieldResult);if(n)return t.return();O();setTimeout(function(){Y(!1)},1500);
_.qo(t)})}
function O(){setTimeout(function(){Y(!0);var E;(E=X.lottieEl)==null||E.goToAndPlay(0)},150)}
var X=_.S8(),x=_.d(_.uQ(!1,void 0,"JJXzp")),J=x.next().value,Y=x.next().value,T=_.LT(A.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.GD(function(){var E,n;((E=A.settings)==null?void 0:(n=E.call(A))==null?void 0:n.uniqueId)==="this is not intended behavior"&&_.Rv(new _.pe("Smartimation Settings is undefined"))});
_.ND(function(){T().experimentEnabled&&(T().enabled?LWe(L):(Y(!1),OkD(L)),_.rF(function(){OkD(L)}))},"FRiAUe");
_.ND(function(){T().timings.join("");T().experimentEnabled&&(XoO(T()),_.rF(function(){x9_(T())}))},"VKiJOe");
var V=_.E4(function(){var E=X,n=T().uniqueId+"-border",t,b;var S="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((b=(t=_.X5().resolve(_.Ot(_.oy)))==null?void 0:t())!=null&&b?"dark":"light")+"_v2.json";return{animationRef:E,animationConfig:{name:n,autoplay:!1,loop:!1,path:S}}},void 0,"tgykab");
x={};return _.D("yt-smartimation",{class:_.qn(A.className,"smartimation",(x["smartimation--experiment-enabled"]=function(){return T().experimentEnabled},x["smartimation--active-border"]=J,x["smartimation--enable-masking"]=JPP(),x))},_.D(_.e,{cond:function(){return T().experimentEnabled},
then:function(){return _.D("div",{class:"smartimation__border"},_.D(_.ER,{className:"smartimation__border-gradient",data:V,animationName:function(){return V().animationConfig.name}}))}}),_.D("div",{class:"smartimation__content"},A.children))},"E");
cxP.idomCompat=!0;_.Y4(cxP,"yt-smartimation",{props:{className:_.x5,settings:_.x5}});var cW=function(){var A=_.G.apply(this,arguments)||this;A.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};A.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};A.shouldEnableSmartimation=!1;return A};
_.g(cW,_.G);cW.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
cW.prototype.onDataChanged=function(){var A,L;this.shouldEnableSmartimation=(((A=this.data)==null?void 0:(L=A.timedAnimationData)==null?void 0:L.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
cW.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var A=_.q(this.data.likeButton,_.at),L=_.q(this.data.dislikeButton,_.at);return!!((A==null?0:A.isToggled)||(L==null?0:L.isToggled))};
cW.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]]"}}}}}};
_.v2.Object.defineProperties(cW.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var A,L,O=((A=this.data)==null?void 0:(L=A.timedAnimationData)==null?void 0:L.animationTiming)||[];return{uniqueId:"like-dislike",timings:O,enabled:this.shouldEnableSmartimation,experimentEnabled:O.length>0}}}});
cW.prototype.onDataChanged=cW.prototype.onDataChanged;_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],cW.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],cW.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],cW.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],cW.prototype,"likeButtonOverride",void 0);_.I([_.K(),_.Z("design:type",Object)],cW.prototype,"dislikeButtonOverride",void 0);
_.I([_.r("shouldEnableSmartimation"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],cW.prototype,"smartimationSettings",null);_.I([_.hT("data"),_.by("yt-toggle-button"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cW.prototype,"onDataChanged",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],cW);
_.m(cW,"ytd-segmented-like-dislike-button-renderer",function(){if(oCV!==void 0)return oCV;var A=document.createElement("template");_.p(A,'\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>');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return oCV=A},{mode:1});var xcj;var sR3;(sR3=document.body)==null||sR3.setAttribute("rounded-container","");var J5j={};J5j.YtToggleButtonBehavior=[_.es.YtActionHandlerBehavior,lv.YtRenderButtonBehavior,{_noAccessors:!0,properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.isToggled)","stateChanged_(data.defaultText)","stateChanged_(data.toggledText)","stateChanged_(forceIconOnly)"],created:function(){this.toggleButtonActionMap_={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction_","yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand_"}},
attached:function(){this.registerActionMap(this.toggleButtonActionMap_)},
detached:function(){this.unregisterActionMap(this.toggleButtonActionMap_)},
onYtToggleButtonTapHandler:function(){},
onYtButtonTapHandler:function(){var A=this.data.isToggled;if(!this.isModal_(A)){if(!this.data.preventAutoToggle){this.toggle();var L={toggled:this.data.isToggled,actions:{}};L.actions[this.buttonIcon]=this.data.isToggled;_.P4(this.hostElement,"yt-toggle-button",L)}L=this.data.defaultServiceEndpoint||null;var O=this.data.toggledServiceEndpoint||null;if(L&&O||L&&this.data.preventAutoToggle)A=A?O:L,L=this.disableCommandHandlerOverride,_.h("killswitch_toggle_button_behavior_resolve_command")||L?_.TZ(this.hostElement,
[A]):_.qb(A,this.hostElement),_.P4(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:A})}},
stateChanged_:function(){var A=this.data;if(A){var L=A.isToggled;this._setEndpoint(this.computeEndpoint_(A));this._setServiceEndpoint(this.computeServiceEndpoint_(A));this._setButtonIcon(this.computeButtonIcon_(A,L));this._setButtonText(this.computeButtonText_(A,L));this._setButtonAccessibility(this.computeAccessibility_(A,L));this._setButtonTooltip(this.computeTooltip_(A,L));this._setButtonClass(this.computeButtonClass_(A,L));this._setIconPositionType(this.computeIconPositionType_(A));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=L):this.elements_.button.setAttribute("aria-pressed",L));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=L)}},
shouldSetIconActiveState_:function(){return _.h("kevlar_system_icons")},
toggle:function(A){this.set("data.isToggled",A!==void 0?A:!this.data.isToggled);_.h("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(A){if(A){var L,O;return!!((L=this.data)==null?0:(O=L.toggledServiceEndpoint)==null?0:O.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(A){return A&&A.defaultNavigationEndpoint||null},
computeButtonIcon_:function(A,L){var O=A&&A.defaultIcon?_.bV(A.defaultIcon.iconType):null;A=A&&A.toggledIcon?_.bV(A.toggledIcon.iconType):O;return L?A:O},
handleUpdateToggleButtonStateCommand_:function(A){A=A.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==A.buttonId&&this.toggle(A.toggled)},
computeButtonText_:function(A,L){return A?L&&A.toggledText||A.defaultText||null:null},
computeAccessibility_:function(A,L){return A?(L?this.get("toggledAccessibilityData.accessibilityData",A):this.get("accessibilityData.accessibilityData",A))||A.accessibility||null:null},
computeTooltip_:function(A,L){return A?L&&A.toggledTooltip||A.defaultTooltip||null:null},
computeButtonClass_:function(A,L){if(!A)return"";var O="",X=A.toggledStyle||A.style;if(L=L?X:A.style){L.styleType&&(L=L.styleType);try{O+=L.toLowerCase().replace(/_/g,"-")+" "}catch(x){_.Q$(x,L,typeof L),_.Rv(x)}}if(A=A.size){A.sizeType&&(A=A.sizeType);try{O+=A.toLowerCase().replace(/_/g,"-")+" "}catch(x){_.Q$(x,A,typeof A),_.Rv(x)}}return O.trim()},
computeIconPositionType_:function(A){return A&&A.iconPosition||null},
computeServiceEndpoint_:function(A){var L=A&&A.serviceEndpoint,O=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return L?L:O&&A.command?A.command:null},
handleUpdateToggleButtonTextAction_:function(A){A=A.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==A.buttonId&&(this.set("data.defaultText",A.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",A.toggledText),this.notifyPath("data.toggledText"))}}];_.y3("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var PfV=_.h("web_button_rework")&&_.fB("BUTTON_REWORK")||_.h("web_button_rework_with_live"),CE=function(){var A=_.G.apply(this,arguments)||this;A.systemIcons=_.h("kevlar_system_icons");A.roundedContainer=!0;return A};
_.g(CE,_.G);CE.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
CE.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var A=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var L={toggled:!!this.data.isToggled,actions:{}};L.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var O,X;L.actions.playlistId=(O=this.data.defaultServiceEndpoint)==null?void 0:(X=O.playlistEditEndpoint)==null?void 0:X.playlistId;_.P4(this.hostElement,"yt-toggle-button",L)}(A=A?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(A)}};
CE.prototype.onYtNavigate=function(A){var L=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(A.detail.endpoint);L&&(A.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(L))};
_.v2.Object.defineProperties(CE,{template:{configurable:!0,enumerable:!0,get:function(){if(xcj===void 0){var A=document.createElement("template");_.p(A,"\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");A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);xcj=A}A=xcj;return A}}});
CE.prototype.onYtNavigate=CE.prototype.onYtNavigate;_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],CE.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],CE.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.J3),_.Z("design:type",Object)],CE.prototype,"ytdOpenPopupBehavior",void 0);_.I([_.N(J5j.YtToggleButtonBehavior),_.Z("design:type",Object)],CE.prototype,"ytToggleButtonBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],CE.prototype,"data",void 0);_.I([_.K({value:!0}),_.Z("design:type",Boolean)],CE.prototype,"showTooltips",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],CE.prototype,"systemIcons",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],CE.prototype,"roundedContainer",void 0);_.I([_.by("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],CE.prototype,"onYtNavigate",null);
_.I([_.Q({is:"ytd-toggle-button-renderer",disableElementRegistration:PfV})],CE);var dc6;_.FC=new _.Yx("PANEL_CONTROLLER_TOKEN");_.RW=new _.Yx("SHEET_CONTROLLER_TOKEN");_.Qy=new _.Yx("DIALOG_CONTROLLER_TOKEN");dc6=new _.Yx("DIALOG_CONTAINER_TOKEN");var ECr=_.b3("DOWNLOAD",{},"Download"),nCu=_.b3("DOWNLOADING",{},"Downloading"),tLr=_.b3("DOWNLOADED",{},"Downloaded"),bks=_.b3("RETRY",{},"Retry");var S3e=[],q3J=!1;var YEu=_.xa(function(A){var L=rPp,O=function(){return""},X=wou(A.data),x=poy(A.data),J=ikJ(A.data),Y=NaO(A.data);
L=function(){var T=A.data(),V=D9u(T,X(),x(),J(),Y()),E=!!T.videoId,n=V.text;return{title:E?n:void 0,tooltip:E?void 0:n,accessibilityText:n,onTap:V.onTap,iconName:V.iconType,style:T.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:V.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:T.buttonSize}};
O={};O=_.qn("ytDownloadButtonViewModelHost",(O.ytDownloadButtonViewModelIsHidden=function(){var T=A.data(),V=Y();return T.playlistId||V()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||V()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},O));
return _.D("download-button-view-model",{class:O},_.D(_.gj,{data:L}))},"F");
YEu.idomCompat=!0;var T8L=_.xa(function(A){var L=A.backgroundLottieRef;var O=A.foregroundLottieRef;var X=A.children;var x=A.wrapperClass;var J=A.disableAnimation;A=function(){return(_.h("web_animated_actions")||_.h("web_animated_actions_v2"))&&!(J==null?0:J())};
return _.D("yt-animated-action",{class:_.qn("animated-action__container",x)},_.D("div",{class:"animated-action__content-with-background"},_.D(_.e,{cond:A,then:function(){return _.D(udn,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:function(){return{animationRef:L==null?void 0:L(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(KWD()?"dark":"light")+"_v5.json"}}}})}}),X),_.D(_.e,{cond:A,
then:function(){return _.D(udn,{lottiePlayerProps:function(){return{animationRef:O==null?void 0:O(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(KWD()?"dark":"light")+"_v4.json"}}}})}}))},"G");
T8L.idomCompat=!0;var udn=_.xa(function(A){var L=A.wrapperClass;var O=A.lottieClass;var X=A.lottiePlayerProps;return _.D("div",{class:_.qn("animated-action__lottie",L),"aria-hidden":"true"},_.D(_.ER,{className:O,data:X,animationName:function(){return X().animationConfig.name}}))},"H");var GsD={isOpen:!1};var cPO={isAllowed:!1};var FWJ={errorMessage:"",title:"",privacy:"",isDisabled:!0};var Q8r={isOpen:!1};var fLP={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var V13={response:void 0};var yP_=function(A,L){A=A===void 0?V13:A;switch(L.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},A,{response:L.payload});default:return A}};var DcN={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var ZkO=function(A,L){A=A===void 0?DcN:A;switch(L.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},A,{nextDisabled:L.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},A,{nextCommand:L.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},A,{footerSubmissionData:L.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},A,{isImpersonationValid:L.payload});default:return A}};var euV={reportFormData:void 0,reportDetailsFormData:void 0};var j8e=function(A,L){A=A===void 0?euV:A;switch(L.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},A,{reportFormData:L.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},A,{reportDetailsFormData:L.payload});default:return A}};var E23=void 0;_.h("mweb_enable_redux_store_on_demand")||(E23=new om(WWu()));var m9=_.h("enable_web_delhi_icons");var n2g=_.xa(function(A){A=_.OY(A,{themeOverride:void 0,animationRef:{}});var L=A.animatedIconType,O=A.active,X=A.themeOverride,x=A.animationRef;A=A.staticIconFn;var J=_.d(_.uQ(void 0,void 0,"P5a72b")),Y=J.next().value,T=J.next().value,V=function(){a:{var F=L();var R=X==null?void 0:X();var y;R=(R==null?void 0:R.useDarkTheme)||((y=_.X5().resolve(_.Ot(_.oy)))==null?void 0:y());switch(F){case "LIKE":E23||(E23=new om(WWu()));F=(F=mud(E23.getState()))&&F.animationLightUrl&&F.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:R?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:R?F.animationDarkUrl:F.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(F){R=F;break a}R="animated_like_icon_"+(R?"dark":"light")+"_"+(m9?"v5":"v4");R={lottiePlayerProps:{animationConfig:{name:R,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+R+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(m9?" animated-like-icon-delhi":"")}}},totalFrames:m9?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":R={lottiePlayerProps:{animationConfig:{name:R?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(R?"dark":"light")+(m9?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(m9?" animated-subscribe-icon-delhi":"")}}},totalFrames:m9?120:79,lazyLoad:!1};break a}R=
void 0}return R},E=function(){var F,R;
return(R=(F=V())==null?void 0:F.lottiePlayerProps.animationConfig.name)!=null?R:""},n=function(){if(V()){var F=V().lottiePlayerProps.animationConfig.path;
return St.get(F)||Y()}};
J=_.d(_.uQ(!1,void 0,"h6xR3c"));var t=J.next().value;J=J.next().value;var b=z2P(J),S=function(){var F=V(),R,y,M;return(M=F==null?void 0:(R=F.lottiePlayerProps.animationConfig)==null?void 0:(y=R.rendererSettings)==null?void 0:y.className)!=null?M:""},w=void 0,l=void 0;
_.ND(function(){var F=V(),R=E(),y=n(),M=t(),H=O();if(F&&(l!==R&&(l=R,w=H,R=x(),b.animationConfig=F.lottiePlayerProps.animationConfig,b.animationRef=R,y&&(b.animationConfig.animationData=y,b.animationConfig.path=void 0),R=F.lottiePlayerProps.animationConfig.path,!St.get(R)&&F.lazyLoad&&R&&Hkd(R,T)),!(M||F.lazyLoad&&!y))){if(y=!x().lottieEl)H?(M=F.totalFrames,b.animationConfig.initialSegment=[M-1,M]):b.animationConfig.initialSegment=void 0;if(w!==H&&!y)if(y=x(),H){var z;(z=y.lottieEl)==null||z.playSegments([0,
F.totalFrames],!0)}else{var a;(a=y.lottieEl)==null||a.playSegments([0,1],!0)}w=H}},"YCYOCe");
return _.D("animated-icon",{class:"ytAnimatedIconHost"},_.D(_.e,{cond:function(){var F,R;return!((F=V())==null||!F.lottiePlayerProps.animationConfig.path||((R=V())==null?0:R.lazyLoad)&&!n()||t())},
then:function(){return _.D(_.ER,{data:b,animationName:E,className:S,animationRef:x})},
else:A}))},"I");_.fE=_.xa(function(A){var L=_.av("yt-subscribe-button-view-model"),O=_.av("div"),X=_.av("div"),x=_.S8(),J=_.S8(),Y=_.S8(),T=_.iS(j5y,function(){return A.data().stateEntityStoreKey}),V=_.iS(WAO,function(){var Uu,Eg;
return(Eg=(Uu=A.data().notificationStateEntityStoreKeys)==null?void 0:Uu.subsNotificationStateKey)!=null?Eg:""}),E=function(){return!A.data().enableSubscribeButtonPostClickAnimation},n=_.d(_.uQ(0,void 0,"eTsWvc")),t=n.next().value,b=n.next().value;
n=_.d(_.uQ(0,void 0,"dniDQ"));var S=n.next().value,w=n.next().value;n=_.d(_.uQ(!1,void 0,"EluPic"));var l=n.next().value,F=n.next().value;n=_.d(_.uQ(!1,void 0,"r0jnre"));var R=n.next().value,y=n.next().value;n=_.d(_.uQ(!1,void 0,"KMvoQe"));var M=n.next().value,H=n.next().value,z;n=_.d(_.uQ(!1,void 0,"aSENce"));var a=n.next().value,xe=n.next().value,ur=function(){y(!0);_.GP(_.c1,function(){y(!1)},1500)};
_.ND(function(){var Uu=R();YN(function(){Uu&&!E()&&T()&&Lbu(x,J,Y)})},"LgmX6c");
_.ND(function(){var Uu=T();YN(function(){if(!E()&&Uu){var Eg;((Eg=A.animateWidth)==null?0:Eg.call(A))&&A5r(L.value,!!Uu.subscribed,t(),S());var DN,NN;((DN=z)==null?0:DN.subscribed)||!Uu.subscribed||Uu.key!==((NN=z)==null?void 0:NN.key)||ur();z=Uu}})},"iZzoUb");
n=_.E4(function(){var Uu,Eg,DN,NN=A.data(),bJ=!((Uu=T())==null||!Uu.subscribed);Uu=!((Eg=A.isOverlay)==null||!Eg.call(A));Eg=l()?L:void 0;var MN=(DN=V())==null?void 0:DN.state;DN=a();oCe(NN,MN);return $9_({model:NN,subscribed:bJ,isOverlay:Uu,element:Eg,notificationState:MN,disableTextEllipsis:!0,focused:DN})},void 0,"yGQGue");
var eD=function(){var Uu;if(!E()&&((Uu=A.animateWidth)==null?0:Uu.call(A))&&(O==null?0:O.value)&&(X==null?0:X.value)&&!M()){Uu=T();var Eg=_.d((Uu==null?0:Uu.subscribed)?[O,X]:[X,O]),DN=Eg.next().value;Eg=Eg.next().value;DN=Math.ceil(DN.value.getBoundingClientRect().width);Eg=Math.ceil(Eg.value.getBoundingClientRect().width);b(DN);w(Eg);A5r(L.value,!(Uu==null||!Uu.subscribed),DN,Eg);H(!0)}},gu=_.py(function(Uu){eD();
var Eg=T();Eg&&(Uu.detail.endpoint.subscribeEndpoint||Uu.detail.endpoint.unsubscribeEndpoint)&&ksy(L.value,!Eg.subscribed,Eg)}),ir=function(){var Uu=_.X5().resolve(_.Ot(_.bv));
Uu&&xe(Uu.isKeyBoardInUse())},SD=function(){xe(!1)};
_.$w("yt-player-subscribe",function(Uu){var Eg=T();Eg&&Uu===A.data().channelId&&ksy(L.value,!0,Eg)});
_.$w("yt-player-unsubscribe",function(Uu){var Eg=T();Eg&&Uu===A.data().channelId&&ksy(L.value,!1,Eg)});
_.$w("yt-update-subscribe-button-action",function(Uu){Uu=_.q(Uu,w9u);var Eg=T();Eg&&Uu&&Uu.channelId===A.data().channelId&&ksy(L.value,!!Uu.subscribed,Eg)});
_.GD(function(){L.value&&(L.value.addEventListener("focusin",ir),L.value.addEventListener("focusout",SD));var Uu=_.p7(_.c1,function(){eD()});
F(!0);_.rF(function(){_.c1.cancelJob(Uu);L.value&&(L.value.removeEventListener("focusin",ir),L.value.removeEventListener("focusout",SD))})});
var HJ=function(){var Uu,Eg,DN;if(DN=!((Uu=T())==null||!Uu.subscribed))Uu=!!A.data().disableNotificationBell,DN=(Eg=V())==null?void 0:Eg.state,DN=!Uu&&!!DN;return DN},mM=function(){var Uu;
return!((Uu=T())==null?0:Uu.subscribed)},Vu=function(){var Uu,Eg;
if(Eg=mM()){Eg=!!A.data().disableNotificationBell;var DN=(Uu=V())==null?void 0:Uu.state;Eg=!Eg&&!!DN}return Eg},cn={},Tj={};
return _.D("yt-subscribe-button-view-model",{class:_.qn(A.className,"yt-subscribe-button-view-model-wiz",(cn["yt-subscribe-button-view-model-wiz__can-animate-width"]=function(){var Uu,Eg;return!((Uu=T())==null||!Uu.subscribed)&&((Eg=A.animateWidth)==null?void 0:Eg.call(A))&&R()},cn["yt-subscribe-button-view-model-wiz--hidden"]=function(){var Uu;
return!((Uu=T())==null?0:Uu.subscribed)&&A.data().hideWhenUnsubscribed},cn)),
el:L,"on:yt-service-request-sent":gu},_.D(T8L,{backgroundLottieRef:x,foregroundLottieRef:J,wrapperClass:_.qn("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(Tj["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=function(){var Uu;return((Uu=A.animateWidth)==null?void 0:Uu.call(A))&&R()},Tj["yt-subscribe-button-view-model-wiz__static-width"]=function(){var Uu;
return!((Uu=A.animateWidth)==null?0:Uu.call(A))},Tj)),
disableAnimation:E},_.D("div",{el:O,class:"yt-subscribe-button-view-model-wiz__container"},_.D(_.xf,{data:n,icon:function(){return _.D(_.e,{cond:HJ,then:function(){var Uu=function(){var Eg;return aLM((Eg=V())==null?void 0:Eg.state)};
return _.D(_.e,{cond:function(){return E()||Uu()!=="NOTIFICATIONS_NONE"},
then:function(){return _.D(_.Ky,{icon:Uu})},
else:function(){return _.D(n2g,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:Y})}})}})},
secondaryIconName:function(){return HJ()?"EXPAND":void 0}}))),_.D("div",{el:X,
class:"yt-subscribe-button-view-model-wiz__invisible"},_.D(_.e,{cond:function(){var Uu;return((Uu=A.animateWidth)==null?void 0:Uu.call(A))&&!E()&&!M()},
then:function(){return _.D(_.xf,{data:_.E4(function(){var Uu;return $9_({model:A.data(),subscribed:mM(),isOverlay:!((Uu=A.isOverlay)==null||!Uu.call(A)),element:L,disableTextEllipsis:!0})},void 0,"lwPlub"),
iconName:function(){var Uu;return Vu()?aLM((Uu=V())==null?void 0:Uu.state):void 0},
secondaryIconName:function(){return Vu()?"EXPAND":void 0}})}})))},"J");
_.fE.idomCompat=!0;var OI_=new _.Yx("RENDERER_STAMPER_OPTIONS_TOKEN");var t13=_.xa(function(A){var L=A.data;var O=_.iS(j5y,function(){return L().subscriptionStateEntityKey});
return _.D(_.e,{cond:function(){var X=L(),x=O();return!X.hideWhenUnsubscribed||(x==null?0:x.subscribed)?_.q(L().button,_.Cu):void 0},
then:function(X){return _.D("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.D(_.gj,{data:X,buttonOverrides:function(){return{toggled:!0}}}))}})},"K");
t13.idomCompat=!0;var V1D=_.cm({buttonViewModel:_.gj,subscribeButtonViewModel:_.fE,downloadButtonViewModel:YEu,toggleButtonViewModel:_.fO,subscribePlusButtonViewModel:t13});_.Xh(eue);var r5r=new _.Yx("RENDERER_LOGGER_TOKEN");var Qd;_.RD=new dnl;Qd=new Map;var pdu="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel".split(" "),N8J=["notificationTextRenderer","notificationMultiActionRenderer"],iI9="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),
wde=E2D(function(A){return _.GV(A==null?void 0:A.targetId)}).useUpdatableData;var g2_=0;_.ID.debugName="EjJbCe";var bI3,IW,hug;bI3=_.xa(function(A){return _.D(_.ID,{data:function(){return A.actionRow().actions}},{buttonViewModel:function(L){var O=L.data;
return _.D(IW,{isRow:A.isRow,isIconOnlyButton:function(){return Kbu(O())},
useIntrinsicWidth:A.useIntrinsicWidth},_.D(_.gj,{data:O}))},
subscribeButtonViewModel:function(L){return _.D(IW,{isRow:A.isRow},_.D(_.fE,{data:L.data,isOverlay:!1,animateWidth:function(){return!A.isRow()}}))},
downloadButtonViewModel:function(L){var O=L.data;return _.D(IW,{isRow:A.isRow,isIconOnlyButton:function(){return!!O().playlistId}},_.D(YEu,{data:O}))},
toggleButtonViewModel:function(L){var O=L.data;return _.D(IW,{isRow:A.isRow,isIconOnlyButton:function(){var X=O();return Kbu(_.q(X.isToggled?X.toggledButtonViewModel:X.defaultButtonViewModel,_.Cu))}},_.D(_.fO,{data:O}))},
subscribePlusButtonViewModel:function(L){return _.D(IW,{isRow:A.isRow},_.D(t13,{data:L.data}))}})},"L");
IW=_.xa(function(A){var L={};return _.D("div",{class:_.qn("yt-flexible-actions-view-model-wiz__action",(L["yt-flexible-actions-view-model-wiz__action--row-action"]=A.isRow,L["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=A.useIntrinsicWidth,L["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,L["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=A.isIconOnlyButton,L))},A.children)},"M");
hug=_.xa(function(A){var L=function(){var X;return((X=A.layout)==null?void 0:X.call(A))===1},O={};
return _.D("yt-flexible-actions-view-model",{class:_.qn("yt-flexible-actions-view-model-wiz",A.className,(O["yt-flexible-actions-view-model-wiz--inline"]=function(){return!L()},O["yt-flexible-actions-view-model-wiz--scrollable"]=function(){return A.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},O))},_.D(_.g9,{each:function(){return A.data().actionsRows||[]}},function(X){return _.D(_.e,{cond:L,
then:function(){return _.D("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},_.D(bI3,{actionRow:X,isRow:L,useIntrinsicWidth:function(){return!!A.data().respectActionIntrinsicWidth}}))},
else:function(){return _.D(bI3,{actionRow:X,isRow:L})}})}))},"N");
_.yy=_.h("web_enable_sink_yt_flexible_actions_view_model")?hug:_.wl(eue);hug.idomCompat=!0;_.Y4(_.yy,"yt-flexible-actions-view-model",{props:{data:_.x5,layout:_.x5,justifyContentOverride:_.x5,className:_.x5}});_.Zm=_.xa(function(A){var L=_.iS(Bx,function(){var x;return(x=A.data().dislikeEntityKey)!=null?x:""}),O=_.E4(function(){var x=L();
return x?x.likeStatus==="DISLIKE":_.q(A.data().toggleButtonViewModel,_.Fi).isToggled},void 0,"B2tgKf"),X=_.E4(function(){return Object.assign({},_.q(A.data().toggleButtonViewModel,_.Fi),{isToggled:O()})},void 0,"otfIbf");
return _.D("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.D(_.fO,{data:X,buttonShapeOverrides:A.buttonShapeOverrideables,onToggle:function(x){var J=L();J&&x!==(J.likeStatus==="DISLIKE")&&J.key&&_.At(_.ZE("likeStatusEntity",J.key,{likeStatus:x?"DISLIKE":"INDIFFERENT",hadUserInteraction:x}))}}))},"O");
_.Zm.idomCompat=!0;_.jR=_.xa(function(A){var L=_.h("web_supports_animations_api"),O=JF(function(b){var S=E();if(!b){var w,l;return{numberText:(l=S==null?void 0:(w=S.likeCountIfIndifferent)==null?void 0:w.content)!=null?l:"",numberValue:Number(S==null?void 0:S.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var F;w=(S==null?void 0:(F=S.likeCountIfIndifferent)==null?void 0:F.content)!==b.numberText;if(T()||!w)return b;var R;return{numberText:(S==null?void 0:(R=S.likeCountIfIndifferent)==null?void 0:R.content)||
"",numberValue:Number(S==null?void 0:S.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!S}}),X=JF(function(b){var S=E();
if(!b){var w,l;return{numberText:(l=S==null?void 0:(w=S.likeCountIfLiked)==null?void 0:w.content)!=null?l:"",numberValue:Number(S==null?void 0:S.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var F;w=(S==null?void 0:(F=S.likeCountIfIndifferent)==null?void 0:F.content)!==b.numberText;if(T()||!w)return b;var R;return{numberText:(S==null?void 0:(R=S.likeCountIfLiked)==null?void 0:R.content)||"",numberValue:Number(S==null?void 0:S.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!S}}),x=_.d(_.uQ(void 0,
void 0,"xYSlUe")),J=x.next().value,Y=x.next().value,T=J,V=_.iS(Bx,function(){var b,S;
return(S=(b=A.data())==null?void 0:b.likeStatusEntityKey)!=null?S:""}),E=_.iS(bop,function(){var b,S;
return((b=A.likeCountEntity)==null?void 0:(S=b.call(A))==null?void 0:S.key)||""}),n=_.E4(function(){var b;
return((b=V())==null?void 0:b.likeStatus)==="LIKE"},void 0,"DG5Osd"),t=function(){var b;
return L&&!((b=A.likeCountEntity)==null||!b.call(A))};
return _.D("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.D(_.fO,{data:function(){var b=Object,S=b.assign,w;var l=_.q((w=A.data())==null?void 0:w.toggleButtonViewModel,_.Fi);return S.call(b,{},l||{},{isToggled:n()})},
buttonShapeOverrides:A.buttonShapeOverrideables,animatedTextPropsDefault:function(){return t()?O():void 0},
animatedTextPropsToggled:function(){return t()?X():void 0},
onToggle:function(b){GQO(b,V(),T(),Y)},
style:function(){var b;return((b=A.disableIconAnimation)==null?0:b.call(A))?void 0:{animateIcon:"true"}}}))},"P");
_.jR.idomCompat=!0;var SEg=_.xa(function(A){var L=function(){return _.q(A.data().likeButtonViewModel,_.WB)},O=function(){var x;
return((x=L())==null?void 0:x.likeStatusEntityKey)||""},X=_.E4(function(){var x,J;
var Y=(J=_.iS(Bx,O)())!=null?J:(x=L())==null?void 0:x.likeStatusEntity;x=A.data();var T;x=(x==null?void 0:(T=x.timedAnimationData)==null?void 0:T.animationTiming)||[];return{uniqueId:"like-dislike",timings:x,enabled:(Y==null?void 0:Y.likeStatus)==="INDIFFERENT"&&x.length>0,experimentEnabled:x.length>0}},void 0,"hGh9Td");
return _.D("segmented-like-dislike-button-view-model",{class:_.qn("ytSegmentedLikeDislikeButtonViewModelHost",A.className),"button-renderer":!0},_.D(cxP,{settings:X},_.D("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.D(_.e,{cond:L,then:function(x){return _.D(_.jR,{data:x,likeCountEntity:function(){return A.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start"}})}}),_.D(_.e,{cond:function(){return _.q(A.data().dislikeButtonViewModel,_.jo)},
then:function(x){return _.D(_.Zm,{data:x,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"Q");
SEg.idomCompat=!0;_.Y4(SEg,"segmented-like-dislike-button-view-model",{props:{data:_.x5,className:_.x5}});var qEH=_.xa(function(A){var L=A.data;var O=A.className;var X=A.setMinWidth;var x=A.forceIconOnly;var J=_.av("account-link-button-view-model"),Y=_.iS(_.l89,function(){var b;return(b=L().accountLinkStatusEntityKey)!=null?b:""}),T=_.iS(_.l89,function(){var b;
return(b=L().accountLinkStatusSecondaryEntityKey)!=null?b:""}),V=function(){if(!_.h("web_account_link_secondary_killswitch")){var b,S;
return((b=Y())==null?void 0:b.linked)||((S=T())==null?void 0:S.linked)}var w;return(w=Y())==null?void 0:w.linked};
_.ND(function(){var b=Y();if(b){var S=pg6(new wg7,qSg(new SSL,!!b.linked));_.bS().then(function(w){w&&(w.setAccountLinkState(_.NQ(S.JSC$13135_serializeBinary(),4)),w.updateAccountLinkingConfig(!!b.linked))})}},"b9pSsf");
var E=function(){return _.q(L().toggleButtonViewModel,_.Fi)};
_.$w("yt-signal-action-show-account-link-dialog",function(){if(E()){var b=V()?E().toggledButtonViewModel:E().defaultButtonViewModel;b=_.q(b,_.Cu);var S;if((S=Y())==null?0:S.isWarning){S=_.q(L().warningButtonViewModel,_.Cu);if(!S){_.HY(Error("zh"));return}b=S}var w;(S=_.HR((w=b)==null?void 0:w.onTap))&&_.E0([S],J.value)}else _.HY(Error("Ah"))});
var n=function(){var b=E();return Object.assign({},b,{isToggled:V()})},t=function(){return(x==null?0:x())?{iconPosition:"icon-only"}:{}};
return _.D("account-link-button-view-model",{class:_.qn("ytwAccountLinkButtonViewModelHost",O,function(){return(X==null?0:X())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:J,"button-renderer":!0},_.D("div",null,_.D(_.e,{cond:function(){var b;if((b=Y())==null?0:b.isWarning)return(b=_.q(L().warningButtonViewModel,_.Cu))||_.HY(Error("zh")),b},
then:function(b){return _.D(_.gj,{data:b,buttonOverrides:t})},
else:function(){return _.D(_.fO,{data:n,buttonShapeOverrides:t})}})))},"R");_.Y4(qEH,"account-link-button-view-model",{props:{data:_.x5,className:_.dl,setMinWidth:_.dl,forceIconOnly:_.dl}});_.y3("menuRenderer","menuRenderer","ytd-menu-renderer");
var g2u={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"}},
wdN=_.h("web_fix_missing_action_buttons")?100:200,WW=function(){var A=_.G.apply(this,arguments)||this;A.safeArea=!_.h("kevlar_flex_menu_safe_area_killswitch");A.tonalOverride=!1;A.threeDotSize="M";A.isOverlay=!1;A.useOverlayDark=!1;A.topLevelIconsOnly=!1;A.JSC$15610_lastWidth=0;A.maybeUpdateFlexibleMenu=function(){_.h("web_fix_missing_action_buttons")?requestAnimationFrame(A.maybeUpdateFlexibleMenuImpl):A.maybeUpdateFlexibleMenuImpl()};
A.maybeUpdateFlexibleMenuImpl=function(){var L;if((L=A.data)!=null&&L.flexibleItems){A.maybeFlushDebouncer();L=A.hostElement.clientWidth;var O=L>A.JSC$15610_lastWidth,X,x=((X=A.topLevelButtonsContainer)==null?void 0:X.scrollHeight)||0,J;X=((J=A.flexibleItemButtonsContainer)==null?void 0:J.scrollHeight)||0;J=A.hostElement.scrollHeight>Math.max(x,X)+8;O?(A.resetFlexibleItems(),A.JSC$15610_lastWidth=A.hostElement.clientWidth,A.maybeUpdateFlexibleMenu()):J&&(A.shrinkFlexibleMenu(),A.JSC$15610_lastWidth=
L)}};
A.computeThreeDotButtonShape=function(){if(A.tonalOverride)return Object.assign({},{onTap:function(){A.onOverflowTap()},
iconPosition:"icon-only",style:A.isOverlay?A.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:A.threeDotSize,state:"active",accessibilityLabel:A.computeAccessibilityLabel(A.data)},A.threeDotButtonOverride)};
A.onOverflowTap=function(){if(A.data.fetchMenuCommand)_.X5().resolve(_.x$).resolveCommand(A.data.fetchMenuCommand,{form:{element:A.hostElement}});else if(A.data.isDisabled&&A.data.disabledCommand)_.qb(A.data.disabledCommand,A.hostElement);else{var L=A.createMenuRendererVe(),O={items:A.items};A.data.menuPopupAccessibility&&(O.menuPopupAccessibility=A.data.menuPopupAccessibility);A.data.footer&&(O.footer=A.data.footer);L={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:O},veData:L}};
_.X5().resolve(_.RW).openSheet({openPopupActionCommand:L},A.hostElement)}};
return A};
_.g(WW,_.G);_.P=WW.prototype;_.P.updateButtonOverrides=function(){if(!_.h("menu_renderer_label_update_upkillswitch")){var A=_.YJ(this.hostElement).querySelector("yt-button-view-model");A&&(A.buttonOverrides=this.buttonOverrides)}};
_.P.computeHasItems=function(){var A;return((A=this.topLevelButtonData)==null?void 0:A.length)||this.hasFlexibleItems};
_.P.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.P.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.eq(this.hostElement,{"--ytd-menu-renderer-button-color":_.Wy(this.data.iconColor)}))};
_.P.onStamperFinished=function(){this.JSC$15610_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.P.setupFlexibleMenu=function(){var A=this,L;(L=this.data)!=null&&L.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.Of(this.maybeUpdateFlexibleMenu,wdN,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){A.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement)),
this.resetFlexibleItems()):(this.flexAsTopLevelButtons=void 0,this.hostElement.removeEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.removeEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0))};
_.P.maybeFlushDebouncer=function(){if(_.h("web_replace_formatted_with_attributed_string")){var A;(A=this.topLevelButtons)==null||A.forEach(function(O){var X;(O=(X=O.getElementsByTagName("yt-attributed-string"))==null?void 0:X[0])&&l0p(O)});
var L;(L=this.flexibleItemButtons)==null||L.forEach(function(O){var X;(O=(X=O.getElementsByTagName("yt-attributed-string"))==null?void 0:X[0])&&l0p(O)})}};
_.P.resetFlexibleItems=function(){var A;if((A=this.data)!=null&&A.flexibleItems){_.h("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var L;this.flexAsTopLevelButtons=(L=this.data.flexibleItems)==null?void 0:L.map(function(O){return _.q(O,_.vt6).topLevelButton});
_.h("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.P.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.P.shrinkFlexibleMenu=function(){var A;(A=this.flexAsTopLevelButtons)!=null&&A.length&&(this.flexAsTopLevelButtons=[].concat(_.le(this.flexAsTopLevelButtons.slice(0,-1))))};
_.P.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:g2u,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:g2u,events:!0}}};
_.P.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.P.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.P.detached=function(){this.icon="MORE_VERT"};
_.P.computeTopLevelButtonData=function(A){if(!A)return[];var L;A=(L=A==null?void 0:A.topLevelButtons)!=null?L:[];return _.lW.unsafeClone([].concat(_.le(A)))};
_.P.computeItems=function(A,L){if(!A)return[];var O=[];if(L){var X=(A.flexibleItems||[]).map(function(Y){return _.q(Y,_.vt6)});
X=_.d(X);for(var x=X.next();!x.done;x=X.next())x=x.value,L.includes(x.topLevelButton)||(x=x.menuItem)&&O.push(x)}var J;A=(J=A==null?void 0:A.items)!=null?J:[];return[].concat(_.le(O),_.le(A))};
_.P.computeMenuActive=function(A,L){return A||L};
_.P.onPopupOpened=function(){this.overlayOpen=!0;_.P4(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.P.onPopupClosed=function(){this.overlayOpen=!1;_.P4(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.P.onPopupCanceled=function(){this.overlayOpen=!1;_.P4(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.P.computeAccessibilityLabel=function(A){return this.get("accessibility.accessibilityData.label",A)};
_.P.isHidden=function(A,L){return this.tonalOverride||!A?!0:A.fetchMenuCommand||A.isDisabled&&A.disabledCommand?!1:!(L==null?0:L.length)};
_.P.isModernOverflowHidden=function(A,L){return this.tonalOverride&&A?A.fetchMenuCommand?!1:!(L==null?0:L.length):!0};
_.P.createMenuRendererVe=function(){var A=this.data.trackingParams,L=_.Fn(),O=_.Ch();return A&&L&&O?(A=_.lV(A),O=_.tI(7591),_.h("combine_ve_grafts")?_.S9(_.iV(),O,A):_.W4(L,A,O),O):null};
_.v2.Object.defineProperties(WW.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.flexAsTopLevelButtons)==null||!A.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
WW.prototype.onPopupCanceled=WW.prototype.onPopupCanceled;WW.prototype.onPopupClosed=WW.prototype.onPopupClosed;WW.prototype.onPopupOpened=WW.prototype.onPopupOpened;WW.prototype.tonalOverrideChanged=WW.prototype.tonalOverrideChanged;WW.prototype.resetFlexibleItems=WW.prototype.resetFlexibleItems;WW.prototype.setupFlexibleMenu=WW.prototype.setupFlexibleMenu;WW.prototype.iconButtonColorChanged=WW.prototype.iconButtonColorChanged;WW.prototype.updateButtonOverrides=WW.prototype.updateButtonOverrides;
_.I([_.N(_.J3),_.Z("design:type",Object)],WW.prototype,"ytdOpenPopupBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],WW.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],WW.prototype,"ytRendererstamperBehavior",void 0);_.I([_.qR("#button-shape"),_.Z("design:type",HTMLElement)],WW.prototype,"buttonShape",void 0);_.I([_.qR("#button"),_.Z("design:type",Object)],WW.prototype,"button",void 0);
_.I([_.K(),_.Z("design:type",Object)],WW.prototype,"data",void 0);_.I([_.K({computed:"computeTopLevelButtonData(data)"}),_.Z("design:type",Array)],WW.prototype,"topLevelButtonData",void 0);_.I([_.K(),_.Z("design:type",Array)],WW.prototype,"flexAsTopLevelButtons",void 0);_.I([_.K({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.Z("design:type",Array)],WW.prototype,"items",void 0);_.I([_.K({value:"MORE_VERT"}),_.Z("design:type",String)],WW.prototype,"icon",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],WW.prototype,"safeArea",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.Z("design:type",Boolean)],WW.prototype,"menuActive",void 0);_.I([_.K(),_.Z("design:type",Boolean)],WW.prototype,"menuFocused",void 0);_.I([_.K({value:"bottom"}),_.Z("design:type",String)],WW.prototype,"buttonTooltipPosition",void 0);_.I([_.K(),_.Z("design:type",Boolean)],WW.prototype,"overlayOpen",void 0);
_.I([_.K({value:!0}),_.Z("design:type",Boolean)],WW.prototype,"forceIconButton",void 0);_.I([_.K(),_.Z("design:type",Boolean)],WW.prototype,"styleActionButton",void 0);_.I([_.K(),_.Z("design:type",Boolean)],WW.prototype,"disableTextTransformOnButtons",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],WW.prototype,"tonalOverride",void 0);_.I([_.K(),_.Z("design:type",Object)],WW.prototype,"threeDotSize",void 0);
_.I([_.K(),_.Z("design:type",Object)],WW.prototype,"threeDotButtonOverride",void 0);_.I([_.K(),_.Z("design:type",Object)],WW.prototype,"isOverlay",void 0);_.I([_.K(),_.Z("design:type",Object)],WW.prototype,"useOverlayDark",void 0);_.I([_.K({computed:"computeButtonOverride(tonalOverride)"}),_.Z("design:type",Object)],WW.prototype,"buttonOverride",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],WW.prototype,"hasCustomIconColor",void 0);
_.I([_.K({reflectToAttribute:!0}),_.r("flexAsTopLevelButtons"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],WW.prototype,"hasFlexibleItems",null);_.I([_.K({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.Z("design:type",Boolean)],WW.prototype,"hasItems",void 0);_.I([_.K(),_.Z("design:type",Object)],WW.prototype,"topLevelIconsOnly",void 0);
_.I([_.hT("topLevelIconsOnly"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],WW.prototype,"updateButtonOverrides",null);_.I([_.r("topLevelIconsOnly"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],WW.prototype,"buttonOverrides",null);_.I([_.qR("#top-level-buttons-computed"),_.Z("design:type",HTMLElement)],WW.prototype,"topLevelButtonsContainer",void 0);_.I([_.gd(".top-level-buttons > *"),_.Z("design:type",Array)],WW.prototype,"topLevelButtons",void 0);
_.I([_.qR("#flexible-item-buttons"),_.Z("design:type",HTMLElement)],WW.prototype,"flexibleItemButtonsContainer",void 0);_.I([_.gd("#flexible-item-buttons > *"),_.Z("design:type",Array)],WW.prototype,"flexibleItemButtons",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],WW.prototype,"iconButtonColorChanged",null);
_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],WW.prototype,"setupFlexibleMenu",null);_.I([_.iy("topLevelIconsOnly"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],WW.prototype,"resetFlexibleItems",null);_.I([_.hT("tonalOverride"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],WW.prototype,"tonalOverrideChanged",null);
_.I([_.by("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],WW.prototype,"onPopupOpened",null);_.I([_.by("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],WW.prototype,"onPopupClosed",null);_.I([_.by("yt-popup-canceled"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],WW.prototype,"onPopupCanceled",null);
_.m(WW,"ytd-menu-renderer",function(){if(Hk6===void 0){var A=document.createElement("template");_.p(A,'\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>');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);Hk6=A}A=Hk6;return A},{mode:2});var pdg;var iI6;_.HW=_.xa(function(A){var L=A.data;var O=function(){if(L().icon)a:{var X={iconName:L().icon};for(var x=_.X5().resolve(_.ht),J=_.d([12,24]),Y=J.next();!Y.done;Y=J.next()){var T=Y.value;Y=Object.assign({},X,{iconStyle:"youtube_fill",iconSize:T});T=Object.assign({},X,{iconStyle:"youtube_outline",iconSize:T});if(x.resolveIcon(Y)){X=Y;break a}if(x.resolveIcon(T)){X=T;break a}}X=void 0}else X=void 0;return X};
A={};return _.D("badge-shape",{class:_.qn("badge-shape-wiz",function(){return mcu(L().type)},(A["badge-shape-wiz--overlay"]=function(){return L().isOverlay},A["badge-shape-wiz--ads-include-dot"]=function(){return L().adsIncludeDot},A["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(L().type){case 17:case 18:case 19:var X=!0;
break a;default:X=!1}return X},A["badge-shape-wiz--status-badge"]=function(){a:switch(L().type){case 12:case 13:case 14:case 15:case 16:var X=!0;
break a;default:X=!1}return X},A["badge-shape-wiz--no-text"]=function(){return!L().text},A["badge-shape-wiz--modern"]=function(){return L().modern||_.h("web_modern_badge_shape")},A)),
style:_.rl({"background-color":function(){var X;return(X=L().customColors)==null?void 0:X.backgroundColor}}),
role:function(){return L().accessibilityText?"img":void 0},
"aria-label":function(){return L().accessibilityText}},_.D(_.e,{cond:function(){return L().animation},
then:function(X){return _.D(_.ER,{className:"badge-shape-wiz__icon",data:X,animationName:function(){return X().animationConfig.name||""}})}}),_.D(_.e,{cond:function(){var X;
return O()&&!((X=L())==null?0:X.animation)},
then:function(){return _.D("div",{class:"badge-shape-wiz__icon"},_.D(ajP,{data:function(){return O()}}))}}),_.D("div",{class:"badge-shape-wiz__text"},function(){var X;
return(X=L())==null?void 0:X.text}))},"S");
_.HW.idomCompat=!0;_.Y4(_.HW,"badge-shape",{props:{data:_.x5}});var zU=function(){var A=_.G.apply(this,arguments)||this;A.systemIcons=_.h("kevlar_system_icons");A.animated=_.h("animated_live_badge_icon");A.useBadgeShape=_.h("web_badge_shape_defrag");return A};
_.g(zU,_.G);_.P=zU.prototype;_.P.addTooltips=function(){for(var A=_.YJ(this.hostElement).querySelectorAll(".badge"),L=0,O;O=A[L++];){var X=this.repeatElement.itemForElement(O);O=_.YJ(O);O.lastChild&&O.lastChild.is==="tp-yt-paper-tooltip"&&O.removeChild(O.lastChild);if(X=X.metadataBadgeRenderer&&X.metadataBadgeRenderer.tooltip){var x=_.uv("tp-yt-paper-tooltip");(0,_.DB)(x).textContent=X;x.setAttribute("position","top");x.setAttribute("aria-hidden","true");O.appendChild(x)}}};
_.P.badgesChanged=function(){var A=this;_.kq().parkOrScheduleJob(function(){A.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.P.standaloneRoundedBadgeChanged=function(){var A=this.useRoundedBadge?this.useRoundedBadge:void 0;A&&(this.useRoundedBadge=A)};
_.P.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.P.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.P.computeStyle=function(A){_.h("enable_html5_teal_ad_badge")&&A==="BADGE_STYLE_TYPE_AD"&&(A="badge-style-type-ad-alternate");_.h("kevlar_ytb_live_badges")&&A==="BADGE_STYLE_TYPE_LIVE_NOW"&&(A="badge-style-type-live-now-alternate");return A?A.toLowerCase().replace(/_/g,"-"):""};
_.P.computeRole=function(A){return this.computeAriaLabel(A)?"img":"status"};
_.P.computeAriaLabel=function(A){var L;return(A==null?void 0:(L=A.accessibilityData)==null?void 0:L.label)||(A==null?void 0:A.label)};
_.P.computeBadgeShape=function(A){var L;if(A){var O,X=Ru9(A.style),x=QRP(A.style),J=A.label,Y=((O=A.accessibilityData)==null?void 0:O.label)||A.label;A=(L=A.icon)==null?void 0:L.iconType;L={type:X,brNzRatingBadgeType:x,text:J,accessibilityText:Y,icon:A!=="PREMIUM"?A:void 0}}else L={};return L};
_.P.updateComputedBadges=function(A,L,O){var X=this;(L=L?[L]:O?[O]:void 0)?this.computedBadges=L:this.computedBadges=A==null?void 0:A.filter(function(x){var J;if((J=x.metadataBadgeRenderer)==null?0:J.groups){J=!1;x=_.d(x.metadataBadgeRenderer.groups);for(var Y=x.next();!Y.done;Y=x.next()){Y=Y.value;var T=void 0;J=J||((T=X.hiddenBadgeGroups)==null?void 0:T.includes(Y))}return!J}return!0})};
_.P.useFilledIcons=function(A){return _.h("kevlar_system_icons")&&(A==="AUDIO_BADGE"||A==="CHECK_CIRCLE_THICK"||A==="OFFICIAL_ARTIST_BADGE"||A==="SPONSORSHIP_STAR"||A==="PERSON_RADAR_FILLED"||A==="PERSON_RADAR")};
_.P.computeBadgeShapeStyle=function(A){return this.useBadgeShape?A==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||A==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":"":""};
_.P.computeIcon=function(A){var L,O;A=A==null?void 0:(L=A.metadataBadgeRenderer)==null?void 0:(O=L.icon)==null?void 0:O.iconType;if(A!=="PREMIUM"&&A)return _.bV(A)};
_.P.computeStandaloneBadge=function(A){var L;A=A==null?void 0:(L=A.icon)==null?void 0:L.iconType;return A==="PREMIUM_STANDALONE"||A==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
zU.prototype.hiddenBadgeGroupsChanged=zU.prototype.hiddenBadgeGroupsChanged;zU.prototype.standaloneBadgeChanged=zU.prototype.standaloneBadgeChanged;zU.prototype.standaloneRoundedBadgeChanged=zU.prototype.standaloneRoundedBadgeChanged;zU.prototype.badgesChanged=zU.prototype.badgesChanged;_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],zU.prototype,"hidden",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],zU.prototype,"componentBehavior",void 0);
_.I([_.K(),_.Z("design:type",Array)],zU.prototype,"badges",void 0);_.I([_.K(),_.Z("design:type",Object)],zU.prototype,"topStandaloneBadge",void 0);_.I([_.K(),_.Z("design:type",Object)],zU.prototype,"bottomStandaloneBadge",void 0);_.I([_.K(),_.Z("design:type",Object)],zU.prototype,"computedBadges",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],zU.prototype,"mediumFontAdBadge",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],zU.prototype,"useRoundedBadge",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],zU.prototype,"largeFontAdBadge",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],zU.prototype,"overlayAd",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],zU.prototype,"overlayPremium",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],zU.prototype,"noDotAdBadge",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],zU.prototype,"collectionTruncate",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],zU.prototype,"isThumbnailBadge",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],zU.prototype,"wrapBadges",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],zU.prototype,"systemIcons",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],zU.prototype,"animated",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],zU.prototype,"useBadgeShape",void 0);_.I([_.K({value:[]}),_.Z("design:type",Array)],zU.prototype,"hiddenBadgeGroups",void 0);_.I([_.qR("#repeat"),_.Z("design:type",QU)],zU.prototype,"repeatElement",void 0);_.I([_.iy("badges"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zU.prototype,"badgesChanged",null);
_.I([_.iy("useRoundedBadge"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zU.prototype,"standaloneRoundedBadgeChanged",null);_.I([_.iy("topStandaloneBadge","bottomStandaloneBadge"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zU.prototype,"standaloneBadgeChanged",null);_.I([_.iy("hiddenBadgeGroups"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zU.prototype,"hiddenBadgeGroupsChanged",null);
_.I([_.Q({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],zU);
var N8n=_.DX()(zU,"ytd-badge-supported-renderer",function(){if(iI6===void 0){var A=document.createElement("template");_.p(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-badge-supported-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" id="repeat" items="[[computedBadges]]" as="badge" class="style-scope ytd-badge-supported-renderer"><template is="dom-if" if="[[useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge-shape [[computeBadgeShapeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></div></template><template is="dom-if" if="[[!useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge [[computeStandaloneBadge(badge.metadataBadgeRenderer)]] [[computeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer" role="[[computeRole(badge.metadataBadgeRenderer)]]" aria-label$="[[computeAriaLabel(badge.metadataBadgeRenderer)]]"><yt-icon default-to-filled="[[useFilledIcons(badge.metadataBadgeRenderer.icon.iconType)]]" disable-upgrade$="[[!badge.metadataBadgeRenderer.icon]]" hidden="[[!computeIcon(badge)]]" icon="[[computeIcon(badge)]]" size="16" class="style-scope ytd-badge-supported-renderer"></yt-icon><p class="style-scope ytd-badge-supported-renderer">[[badge.metadataBadgeRenderer.label]]</p></div></template></template>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);iI6=A}A=iI6;return A},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.e5("kevlar_poly_si_batch_j053")?1:2});var BW=function(){var A=_.G.apply(this,arguments)||this;A.iconType="STAR";A.standardizeIconSize=_.h("kevlar_system_icons");A.mediaHoverOverlayInitialVisibility=_.h("enable_top_landscape_image_button_command_web");A.noBottomMargin=!1;A.thumbnailObjectFit="CONTAIN";A.thumbnailFitHeight=!0;A.actionMap={"yt-mute-ad-action":"handleMuteAd"};return A};
_.g(BW,_.G);_.P=BW.prototype;
_.P.configureRendererStamper=function(){return{"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"},params:{mediumFontAdBadge:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.image":{id:"media",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.image.thumbnail]]",width:"[[mediaThumbnailWidth]]",fitHeight:"[[thumbnailFitHeight]]",objectFit:"[[thumbnailObjectFit]]"}}}},
"data.mediaBadge":{id:"media-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.ctaButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",
notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.P.dataChanged=function(){this.clickCommand=this.get("data.clickCommand.commandExecutorCommand.commands.0");this.clickCommand||(this.clickCommand=this.get("data.clickCommand"));this.clickCommand&&(this.updateMediaBackgroundImage(),this.ytSparklesClickLocationBehavior.configureClickTargets("root",BW.JSC$15622_DEFAULT_CLICK_LOCATION_BEHAVIOR,BW.JSC$15622_CLICK_LOCATION_ID_MAP))};
_.P.onTap=function(A){if(!_.h("use_on_click_for_desktop_display_ad"))this.onTapOrClick(A)};
_.P.onClick=function(A){if(_.h("use_on_click_for_desktop_display_ad"))this.onTapOrClick(A)};
_.P.onTapOrClick=function(A){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,A,!1)};
_.P.updateMediaBackgroundImage=function(){var A=this.get("data.image.thumbnail.thumbnails");A&&(A=_.uB(A,0))&&_.eq(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+A+")"})};
_.P.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var A=0;A<this.data.impressionEndpoints.length;A++){var L=this.data.impressionEndpoints[A];L.clickTrackingParams&&delete L.clickTrackingParams;_.X5().resolve(_.x$).resolveCommand(L,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var O;((O=this.data)==null?0:O.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.P.handleMuteAd=function(){};
_.P.attached=function(){var A=this;_.h("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&A.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.P.detached=function(){_.h("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.v2.Object.defineProperties(BW.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)==null||!A.titleText)return"";var L;return _.b3("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((L=this.data)==null?void 0:L.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?0:A.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?0:A.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?0:A.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?0:A.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?0:A.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 A;return!((A=this.data)==null||!A.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"}}});
BW.prototype.onClick=BW.prototype.onClick;BW.prototype.onTap=BW.prototype.onTap;BW.prototype.dataChanged=BW.prototype.dataChanged;
BW.JSC$15622_CLICK_LOCATION_ID_MAP=_.h("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"]]);
BW.JSC$15622_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.h("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"}];_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],BW.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],BW.prototype,"ytRendererstamperBehavior",void 0);
_.I([_.N(_.BL),_.Z("design:type",Object)],BW.prototype,"ytdDismissibleItemBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],BW.prototype,"ytdReduxBehavior",void 0);_.I([_.N(_.uR.YtSparklesClickLocationBehavior),_.Z("design:type",Object)],BW.prototype,"ytSparklesClickLocationBehavior",void 0);_.I([_.N(WL),_.Z("design:type",Object)],BW.prototype,"ytdActiveViewBehavior",void 0);_.I([_.N([_.es.YtActionHandlerBehavior]),_.Z("design:type",Object)],BW.prototype,"actionHandlerBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],BW.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],BW.prototype,"clickCommand",void 0);_.I([_.K({reflectToAttribute:!0,selector:_.Fl}),_.Z("design:type",Boolean)],BW.prototype,"miniMode",void 0);_.I([_.K(),_.Z("design:type",String)],BW.prototype,"iconType",void 0);_.I([_.r("data.titleText"),_.Z("design:type",String),_.Z("design:paramtypes",[])],BW.prototype,"titleAriaLabel",null);
_.I([_.r("data.rating"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],BW.prototype,"getRating",null);_.I([_.r("data.price"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],BW.prototype,"getPrice",null);_.I([_.r("data.thirdLine"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],BW.prototype,"getThirdLine",null);_.I([_.r("data.fourthLine"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],BW.prototype,"getFourthLine",null);
_.I([_.r("data.fifthLine"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],BW.prototype,"getFifthLine",null);_.I([_.r("getRating"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],BW.prototype,"computeRatingHidden",null);_.I([_.r("getPrice"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],BW.prototype,"computePriceHidden",null);_.I([_.r("getThirdLine"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],BW.prototype,"computeThirdLineHidden",null);
_.I([_.r("getFourthLine"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],BW.prototype,"computeFourthLineHidden",null);_.I([_.r("getFifthLine"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],BW.prototype,"computeFifthLineHidden",null);_.I([_.K({reflectToAttribute:!0}),_.r("data.energyIcon"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],BW.prototype,"hasEnergyIcon",null);
_.I([_.r("computePriceHidden","computeRatingHidden"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],BW.prototype,"computeSecondaryTextHidden",null);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],BW.prototype,"standardizeIconSize",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],BW.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],BW.prototype,"noBottomMargin",void 0);
_.I([_.K({reflectToAttribute:!0}),_.r("data.layout"),_.Z("design:type",String),_.Z("design:paramtypes",[])],BW.prototype,"layout",null);_.I([_.r("data.layout"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],BW.prototype,"mediaThumbnailWidth",null);_.I([_.r("layout"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],BW.prototype,"useRoundedBadge",null);_.I([_.K(),_.Z("design:type",String)],BW.prototype,"thumbnailObjectFit",void 0);
_.I([_.K(),_.Z("design:type",Object)],BW.prototype,"thumbnailFitHeight",void 0);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],BW.prototype,"dataChanged",null);_.I([_.by("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],BW.prototype,"onTap",null);_.I([_.by("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],BW.prototype,"onClick",null);
_.I([_.Q({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],BW);
_.m(BW,"ytd-display-ad-renderer",function(){if(pdg!==void 0)return pdg;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return pdg=A},{mode:1});var r5H;var Kbg;var GQj;var f8d=new Map;var l86=!1;var Mq=function(){var A=_.G.apply(this,arguments)||this;A.DEFAULT_TOOLTIP_OFFSET="10";A.TOOLTIP_OFFSET_NO_BANNER="-8";A.badges=null;A.noEndpoints=!1;A.wrapText=!1;A.forceVerified=!1;A.tooltipPosition="top";A.compactStyle=!1;A.height=0;A.lineHeight=0;return A};
_.g(Mq,_.G);_.P=Mq.prototype;_.P.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.P.attached=function(){var A=this;this.observer=new MutationObserver(function(L,O){A.handleResized();O.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.P.detached=function(){this.observer&&this.observer.disconnect()};
_.P.logTooltipEvent=function(){_.h("kevlar_wiz_tooltip_event_killswitch")||l86||(_.I8_("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),l86=!0)};
_.P.handleWindowResized=function(){this.handleResized()};
_.P.onChannelNameChanged=function(){this.verified?this.handleResized():(this.textEl&&this.textEl.style.removeProperty("width"),this.textContainerEl&&(this.textContainerEl.style.removeProperty("padding"),this.textContainerEl.style.removeProperty("margin-right"),this.textContainerEl.style.removeProperty("margin-left")))};
_.P.onHeightChanged=function(){if(this.verified){var A=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.ms("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=A:this.textContainerEl.style.marginRight=A}};
_.P.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.ms("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.P.handleResized=function(){var A=this;this.verified&&_.c1.addLowPriorityJob(function(){A.fitBackgroundToText();var L=getComputedStyle(A.hostElement).lineHeight;L&&(L=L.match(/\d+/))&&L.length&&(A.lineHeight=Number(L[0]));A.height=A.lineHeight&&!A.wrapText?A.lineHeight:A.textEl.offsetHeight})};
_.P.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var A=document.createRange(),L=_.YJ(this.textEl).children;L.length>0?A.selectNodeContents(L[0]):A.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(A.getBoundingClientRect().width)+"px"}};
_.P.computeChannelBadgeStyle=function(A){var L;if((A==null?0:(L=A.runs)==null?0:L.length)&&A.runs[0].textColor)return"--ytd-badge-icon-color:"+_.Wy(A.runs[0].textColor)+";"};
_.v2.Object.defineProperties(Mq.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"?_.Ue(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var A=this.get("badges.0.metadataBadgeRenderer.tooltip");if(A)return A}return _.vG(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
Mq.prototype.onLineHeightChanged=Mq.prototype.onLineHeightChanged;Mq.prototype.onHeightChanged=Mq.prototype.onHeightChanged;Mq.prototype.onChannelNameChanged=Mq.prototype.onChannelNameChanged;_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],Mq.prototype,"ytActionHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Mq.prototype,"badges",void 0);_.I([_.K(),_.Z("design:type",Object)],Mq.prototype,"channelName",void 0);
_.I([_.K(),_.Z("design:type",Object)],Mq.prototype,"noEndpoints",void 0);_.I([_.K(),_.Z("design:type",Object)],Mq.prototype,"wrapText",void 0);_.I([_.K(),_.Z("design:type",Object)],Mq.prototype,"forceVerified",void 0);_.I([_.K(),_.Z("design:type",Object)],Mq.prototype,"tooltipPosition",void 0);_.I([_.K(),_.Z("design:type",String)],Mq.prototype,"tooltip",void 0);_.I([_.K(),_.Z("design:type",Boolean)],Mq.prototype,"hasChannelArt",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Mq.prototype,"compactStyle",void 0);_.I([_.qR("#text-container"),_.Z("design:type",HTMLElement)],Mq.prototype,"textContainerEl",void 0);_.I([_.qR("#text"),_.Z("design:type",Object)],Mq.prototype,"textEl",void 0);_.I([_.qR("#verified-tooltip"),_.Z("design:type",HTMLElement)],Mq.prototype,"verifiedTooltip",void 0);_.I([_.K(),_.Z("design:type",Object)],Mq.prototype,"height",void 0);
_.I([_.K(),_.Z("design:type",Object)],Mq.prototype,"lineHeight",void 0);_.I([_.K({reflectToAttribute:!0}),_.r("badges","forceVerified"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Mq.prototype,"verified",null);_.I([_.r("badges","verified"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Mq.prototype,"hideBadges",null);_.I([_.r("channelName"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Mq.prototype,"formattedName",null);
_.I([_.r("badges","verified","formattedName"),_.Z("design:type",String),_.Z("design:paramtypes",[])],Mq.prototype,"tooltipText",null);_.I([_.r("hasChannelArt"),_.Z("design:type",String),_.Z("design:paramtypes",[])],Mq.prototype,"tooltipOffset",null);_.I([_.hT("channelName"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Mq.prototype,"onChannelNameChanged",null);
_.I([_.hT("height"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Mq.prototype,"onHeightChanged",null);_.I([_.hT("lineHeight","height"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Mq.prototype,"onLineHeightChanged",null);_.I([_.Q({is:"ytd-channel-name",disableElementRegistration:!0})],Mq);
_.m(Mq,"ytd-channel-name",function(){if(GQj!==void 0)return GQj;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return GQj=A},{mode:_.e5("kevlar_poly_si_batch_j036")?1:2});var $H=function(){var A=_.G.apply(this,arguments)||this;A.standardizeIconSize=_.h("kevlar_system_icons");return A};
_.g($H,_.G);$H.prototype.basicPaletteChanged=function(){var A;(A=this.data.color)!=null&&A.basicColorPaletteData&&_.fy(this.hostElement,this.data.color.basicColorPaletteData)};
$H.prototype.useFilledIcons=function(A){return _.h("kevlar_system_icons")&&(A==="CHECK_CIRCLE_THICK"||A==="OFFICIAL_ARTIST_BADGE")};
_.v2.Object.defineProperties($H.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var A,L,O;return this.data.authorCreator||((A=this.data)==null?void 0:(L=A.color)==null?void 0:(O=L.basicColorPaletteData)==null?void 0:O.backgroundColor)}}});
$H.prototype.basicPaletteChanged=$H.prototype.basicPaletteChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],$H.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],$H.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],$H.prototype,"standardizeIconSize",void 0);_.I([_.K({reflectToAttribute:!0}),_.r("data.authorUnifiedVerified"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],$H.prototype,"verified",null);
_.I([_.K({reflectToAttribute:!0}),_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],$H.prototype,"creator",null);_.I([_.hT("data.color.basicColorPaletteData"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$H.prototype,"basicPaletteChanged",null);_.I([_.Q({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],$H);
_.m($H,"ytd-author-comment-badge-renderer",function(){if(Kbg!==void 0)return Kbg;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return Kbg=A},{mode:1});var c5n;var aW=function(){return _.G.apply(this,arguments)||this};
_.g(aW,_.G);aW.prototype.computeThumbnailWidth=function(A){if(A==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],aW.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],aW.prototype,"data",void 0);_.I([_.K({computed:"computeIcon_(data.icon)"}),_.Z("design:type",String)],aW.prototype,"icon",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",String)],aW.prototype,"surface",void 0);
_.I([_.K({reflectToAttribute:!0,value:_.h("enable_shrink_image_size_on_web_posts_singleton")}),_.Z("design:type",Boolean)],aW.prototype,"searchSxsUx",void 0);_.I([_.Q({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],aW);
_.m(aW,"ytd-backstage-image-renderer",function(){if(c5n!==void 0)return c5n;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return c5n=A},{mode:1});var CfN;var kH=function(){var A=_.G.apply(this,arguments)||this;A.isLoading=!1;A.selectedItemIndex=-1;return A};
_.g(kH,_.G);_.P=kH.prototype;_.P.computeIsChannelOwner=function(A){if(!A)return!0;A=A[0];return!(A&&(A.signinEndpoint||A.selectServiceEndpoint))};
_.P.computeIsImagePoll=function(A){return(A==null?void 0:A.type)==="POLL_TYPE_IMAGE"};
_.P.computeIsTotalVotesDisabled=function(A){return!(A==null?0:A.totalVotes)};
_.P.thumbnailSrc=function(A){var L,O,X,x;return(A==null?0:(L=A.thumbnails)==null?0:(O=L[0])==null?0:O.url)?_.RP((X=A.thumbnails)==null?void 0:(x=X[0])==null?void 0:x.url):void 0};
_.P.progressWidth=function(A){return"width:"+(A?A*100:0)+"%;"};
_.P.textAreaWidth=function(A){return this.isImagePoll?null:"width:"+(A?A*100:0)+"%;"};
_.P.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.P.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var A=this.data.choices,L=0;L<A.length;L++)if(A[L].selected){this.selectedItemIndex=L;break}};
_.P.onPopupClosed=function(A,L){A=Number(this.pollVotes.selected);L.confirmed&&(this.selectChoice(A,!1),_.dQ(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.P.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.P.onYtCommentPollRevert=function(A,L){L&&(this.selectChoice(L.selectedChoiceIndex,!0),this.set("data.totalVotes",L.totalVotes))};
_.P.onYtServiceRequestSent=function(A,L){if(L.actions)for(A=0;A<L.actions.length;A++){var O=L.actions[A];_.q(O,QF)&&this.set("data.totalVotes",_.q(O,QF).totalVotes)}};
_.P.onYtServiceRequestCompleted=function(A){var L=this.get("detail.data.actionResults.0.feedback",A);A=this.get("detail.data.actionResults.0.status",A);if(L==="FEEDBACK_DESELECT"||L==="FEEDBACK_SELECT")this.isLoading=!1,A==="STATUS_FAILED"?_.P4(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.P.getEndpoint=function(A,L){return L===A?this.data.choices[L].deselectServiceEndpoint||null:this.data.choices[A].selectServiceEndpoint||null};
_.P.selectChoice=function(A,L){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var O=0;O<this.data.choices.length;O++){var X;if(A===this.selectedItemIndex){var x=!1;var J=X=null}else X=(x=O===A)?this.data.choices[O].voteRatioIfSelected:this.data.choices[O].voteRatioIfNotSelected,J=x?this.data.choices[O].votePercentageIfSelected:this.data.choices[O].votePercentageIfNotSelected;this.set("data.choices."+O+".voteRatio",X);
this.set("data.choices."+O+".votePercentage",J);this.set("data.choices."+O+".selected",x)}L||(this.isLoading=!0,(L=this.getEndpoint(A,this.selectedItemIndex))&&_.X5().resolve(_.x$).resolveCommand(L,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===A?-1:A};
_.v2.Object.defineProperties(kH.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
kH.prototype.onYtServiceRequestCompleted=kH.prototype.onYtServiceRequestCompleted;kH.prototype.onYtServiceRequestSent=kH.prototype.onYtServiceRequestSent;kH.prototype.onYtCommentPollRevert=kH.prototype.onYtCommentPollRevert;kH.prototype.onPopupClosed=kH.prototype.onPopupClosed;kH.prototype.dataChanged=kH.prototype.dataChanged;_.I([_.N(_.XE),_.Z("design:type",Object)],kH.prototype,"paperItemBehavior",void 0);
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],kH.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.J3),_.Z("design:type",Object)],kH.prototype,"ytdOpenPopupBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],kH.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],kH.prototype,"isLoading",void 0);_.I([_.K({computed:"computeIsChannelOwner(data.choices)"}),_.Z("design:type",Boolean)],kH.prototype,"isChannelOwner",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.Z("design:type",Boolean)],kH.prototype,"isImagePoll",void 0);_.I([_.K({computed:"computeIsTotalVotesDisabled(data)"}),_.Z("design:type",Boolean)],kH.prototype,"isTotalVotesDisabled",void 0);_.I([_.K(),_.Z("design:type",Object)],kH.prototype,"previousPollInfo",void 0);_.I([_.K(),_.Z("design:type",Object)],kH.prototype,"selectedItemIndex",void 0);_.I([_.qR("#poll-votes"),_.Z("design:type",Object)],kH.prototype,"pollVotes",void 0);
_.I([_.r("isChannelOwner"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],kH.prototype,"endpointStyle",null);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],kH.prototype,"dataChanged",null);_.I([_.by("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],kH.prototype,"onPopupClosed",null);
_.I([_.by("yt-comment-poll-revert"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],kH.prototype,"onYtCommentPollRevert",null);_.I([_.by("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.aQ]),_.Z("design:returntype")],kH.prototype,"onYtServiceRequestSent",null);
_.I([_.by("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],kH.prototype,"onYtServiceRequestCompleted",null);_.I([_.Q({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],kH);
_.m(kH,"ytd-backstage-poll-renderer",function(){if(CfN!==void 0)return CfN;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return CfN=A},{mode:2});var Fbj;var Ru6={autoplay:!1,loop:!1},QR7={simpleText:""},Uo=function(){var A=_.G.apply(this,arguments)||this;A.isLoading=!1;A.usesPanelLockup=!1;A.selectedItemIndex=-1;A.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},Ru6,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});A.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},Ru6,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});A.correctnessAnimationProps=[];A.correctnessAnimationRefs=[];return A};
_.g(Uo,_.G);_.P=Uo.prototype;_.P.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.P.computeIsChannelOwner=function(A){if(!A)return!0;A=A[0];return!(A&&(A.signinEndpoint||A.selectServiceEndpoint))};
_.P.computeIsTotalVotesDisabled=function(A){return!(A==null?0:A.totalVotes)};
_.P.computeIsImageQuiz=function(A){return(A==null?void 0:A.type)==="POLL_TYPE_IMAGE"};
_.P.onExplanationChanged=function(){this.expander.reset()};
_.P.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var A=this.data.choices;if(A){this.maybeInitializeQuizLotties(A);for(var L=0;L<A.length;L++)if(A[L].isSelected||this.isChannelOwner&&A[L].isCorrect){this.selectedItemIndex=L;return}this.selectedItemIndex=-1}}};
_.P.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var A=this.selectedItemIndex,L=Number(this.quizVotes.selected);this.selectChoice(L);this.sendVoteAction(L,A);this.quizVotes.selected=-1;var O;A=!((O=this.data)==null?0:O.enableAnimation);this.maybePlayAnswerAnimations(A)}};
_.P.onYtCommentPollRevert=function(A,L){L&&(this.selectChoice(L.selectedChoiceIndex),this.set("data.totalVotes",L.totalVotes))};
_.P.onYtServiceRequestSent=function(A,L){if(L.actions)for(A=_.d(L.actions),L=A.next();!L.done;L=A.next())(L=_.q(L.value,QF))&&this.set("data.totalVotes",L.totalVotes)};
_.P.onYtServiceRequestCompleted=function(A){var L=this.get("detail.data.actionResults.0.feedback",A);A=this.get("detail.data.actionResults.0.status",A);if(L==="FEEDBACK_DESELECT"||L==="FEEDBACK_SELECT")this.isLoading=!1,A==="STATUS_FAILED"?_.P4(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.P.getAnimationPropsForChoiceIndex=function(A,L){return L[A]};
_.P.maybePlayAnswerAnimations=function(A){A=A===void 0?!1:A;var L;if((L=this.data)!=null&&L.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){L=_.d(this.correctnessAnimationRefs);for(var O=L.next();!O.done;O=L.next()){var X=void 0,x=void 0;(X=O.value)==null||(x=X.lottieEl)==null||x.stop()}if(!(this.selectedItemIndex<0)){L=0;A&&(L=this.isCorrect?37:25);var J,Y;(J=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(Y=J.lottieEl)==null||Y.goToAndPlay(A?L:0,!0);if(!(this.isCorrect||
(J=this.data.choices.findIndex(function(n){return n.isCorrect}),J<0))){var T,V;
(V=(T=this.correctnessAnimationRefs[J])==null?void 0:T.lottieEl)==null||V.goToAndPlay(37,!0);var E;T=(E=this.fadeContainers)==null?void 0:E.item(J);!A&&T&&this.fadeIn(T)}}}};
_.P.thumbnailSrc=function(A){var L,O,X,x;return(A==null?0:(L=A.thumbnails)==null?0:(O=L[0])==null?0:O.url)?_.RP((X=A.thumbnails)==null?void 0:(x=X[0])==null?void 0:x.url):void 0};
_.P.a11yVotedText=function(A,L){var O,X,x=((O=this.data)==null?void 0:(X=O.correctVotedText)==null?void 0:X.simpleText)||"",J,Y;O=((J=this.data)==null?void 0:(Y=J.votedText)==null?void 0:Y.simpleText)||"";if(!L)return"";var T,V;if((T=this.data)==null?0:(V=T.choices)==null?0:V[A].isCorrect)return x;var E,n;return((E=this.data)==null?0:(n=E.choices)==null?0:n[A].isSelected)?O:""};
_.P.getEndpoint=function(A,L){return L===A?this.data.choices[A].deselectServiceEndpoint||null:this.data.choices[A].selectServiceEndpoint||null};
_.P.sendVoteAction=function(A,L){if(A=this.getEndpoint(A,L))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(A)};
_.P.selectChoice=function(A){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var L=0;L<this.data.choices.length;L++)this.set("data.choices."+L+".isSelected",A===this.selectedItemIndex?!1:L===A);this.selectedItemIndex=this.selectedItemIndex===A?-1:A};
_.P.maybeInitializeQuizLotties=function(A){var L=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=A.map(function(O){return{animationConfig:O.isCorrect?L.baseCorrectLottiePlayerAnimationConfig:L.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){L.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(O){return O.animationRef||{}})};
_.P.fadeIn=function(A){A.classList.add("fade-in");_.et(_.c1,function(){A.classList.remove("fade-in")},900)};
_.v2.Object.defineProperties(Uo.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.h("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.vG(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 A,L;return((A=this.data)==null?void 0:(L=A.choices)==null?void 0:L.some(function(O){return O.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null||!A.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?QR7:this.data.choices[this.selectedItemIndex].explanation||QR7}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null||!A.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
Uo.prototype.onYtServiceRequestCompleted=Uo.prototype.onYtServiceRequestCompleted;Uo.prototype.onYtServiceRequestSent=Uo.prototype.onYtServiceRequestSent;Uo.prototype.onYtCommentPollRevert=Uo.prototype.onYtCommentPollRevert;Uo.prototype.dataChanged=Uo.prototype.dataChanged;Uo.prototype.onExplanationChanged=Uo.prototype.onExplanationChanged;_.I([_.N(_.XE),_.Z("design:type",Object)],Uo.prototype,"paperItemBehavior",void 0);
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Uo.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],Uo.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.Y5.YtTaskEmitterBehavior),_.Z("design:type",Object)],Uo.prototype,"ytTaskEmitterBehavior",void 0);_.I([_.N(_.J3),_.Z("design:type",Object)],Uo.prototype,"ytdOpenPopupBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Uo.prototype,"data",void 0);
_.I([_.K(),_.Z("design:type",Object)],Uo.prototype,"isLoading",void 0);_.I([_.K(),_.Z("design:type",Object)],Uo.prototype,"usesPanelLockup",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.Z("design:type",Boolean)],Uo.prototype,"isChannelOwner",void 0);_.I([_.K({computed:"computeIsTotalVotesDisabled(data)"}),_.Z("design:type",Boolean)],Uo.prototype,"isTotalVotesDisabled",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.Z("design:type",Boolean)],Uo.prototype,"isImageQuiz",void 0);_.I([_.K(),_.Z("design:type",Object)],Uo.prototype,"previousQuizInfo",void 0);_.I([_.K(),_.Z("design:type",Object)],Uo.prototype,"selectedItemIndex",void 0);_.I([_.K({reflectToAttribute:!0}),_.r("data","usesPanelLockup"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Uo.prototype,"shouldUseModernUi",null);
_.I([_.gd(".fade-container"),_.Z("design:type",Object)],Uo.prototype,"fadeContainers",void 0);_.I([_.K(),_.Z("design:type",Array)],Uo.prototype,"correctnessAnimationProps",void 0);_.I([_.r("explanation","showCorrectAnswer"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Uo.prototype,"showExplanation",null);_.I([_.r("isChannelOwner","isAttempted"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Uo.prototype,"showCorrectAnswer",null);
_.I([_.r("isChannelOwner","isAttempted","data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Uo.prototype,"isQuizAnsweringDisabled",null);_.I([_.r("isQuizAnsweringDisabled"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Uo.prototype,"endpointStyle",null);_.I([_.r("data","selectedItemIndex"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Uo.prototype,"isAttempted",null);
_.I([_.r("data","selectedItemIndex"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Uo.prototype,"explanation",null);_.I([_.r("data","selectedItemIndex"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Uo.prototype,"isCorrect",null);_.I([_.qR("ytd-expander"),_.Z("design:type",Object)],Uo.prototype,"expander",void 0);_.I([_.qR("#quiz-votes"),_.Z("design:type",Object)],Uo.prototype,"quizVotes",void 0);
_.I([_.hT("explanation"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Uo.prototype,"onExplanationChanged",null);_.I([_.hT("data","isChannelOwner"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Uo.prototype,"dataChanged",null);_.I([_.by("yt-comment-quiz-revert"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],Uo.prototype,"onYtCommentPollRevert",null);
_.I([_.by("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.aQ]),_.Z("design:returntype")],Uo.prototype,"onYtServiceRequestSent",null);_.I([_.by("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Uo.prototype,"onYtServiceRequestCompleted",null);_.I([_.Q({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],Uo);
_.m(Uo,"ytd-backstage-quiz-renderer",function(){if(Fbj!==void 0)return Fbj;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return Fbj=A},{mode:1});var mcJ;var vW=function(){return _.G.apply(this,arguments)||this};
_.g(vW,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],vW.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],vW.prototype,"data",void 0);_.I([_.Q({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],vW);
_.m(vW,"ytd-post-uploaded-video-renderer",function(){if(mcJ!==void 0)return mcJ;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return mcJ=A},{mode:1});var f86;var oW=function(){return _.G.apply(this,arguments)||this};
_.g(oW,_.G);oW.prototype.useFilledIcons=function(A){return A==="SPONSORSHIP_STAR"};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],oW.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],oW.prototype,"data",void 0);_.I([_.Q({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],oW);
var I8u=_.DX()(oW,"ytd-sponsors-only-badge-renderer",function(){if(f86===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);f86=A}A=f86;return A},{allowedProps:["data"],
mode:1});var y56;var A$=function(){return _.G.apply(this,arguments)||this};
_.g(A$,_.G);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],A$.prototype,"componentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],A$.prototype,"data",void 0);_.I([_.Q({is:"ytd-child-video-renderer",disableElementRegistration:!0})],A$);
_.m(A$,"ytd-child-video-renderer",function(){if(y56!==void 0)return y56;var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return y56=A},{mode:1});var ZIn;var jRn;var LP=function(){var A=_.G.apply(this,arguments)||this;A.size=0;A.enableWebModernCollectionsV2=_.h("web_modern_collections_v2");A.fallbackImageSize={height:void 0,width:9999};A.webModernCollections=!1;return A};
_.g(LP,_.G);_.P=LP.prototype;_.P.computeBlurredImageSize=function(A){return A?{height:A*2,width:A*2}:this.fallbackImageSize};
_.P.computeImageSize=function(A){return A?{height:A,width:A}:this.fallbackImageSize};
_.P.computeObjectFit=function(A){return A?"FILL":"CONTAIN"};
_.P.computePreserve=function(A){return A?!0:!1};
_.P.setBackground=function(){var A,L;_.h("web_modern_collections_v2")&&((A=this.data)==null?0:(L=A.thumbnail)==null?0:L.sampledThumbnailColor)&&(A=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+A.red+","+A.green+","+A.blue+",1)")};
LP.prototype.setBackground=LP.prototype.setBackground;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],LP.prototype,"ytRendererBehavior",void 0);_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],LP.prototype,"watchFeedThumbnail",void 0);_.I([_.K(),_.Z("design:type",Object)],LP.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],LP.prototype,"size",void 0);
_.I([_.K({computed:"computeBlurredImageSize(size)"}),_.Z("design:type",Object)],LP.prototype,"blurredImageSize",void 0);_.I([_.K({computed:"computeImageSize(size)"}),_.Z("design:type",Object)],LP.prototype,"imageSize",void 0);_.I([_.K({computed:"computePreserve(size)"}),_.Z("design:type",String)],LP.prototype,"preserve",void 0);_.I([_.K({computed:"computeObjectFit(size)"}),_.Z("design:type",String)],LP.prototype,"objectFit",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],LP.prototype,"enableWebModernCollectionsV2",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],LP.prototype,"webModernCollections",void 0);_.I([_.hT("data.thumbnail.sampledThumbnailColor"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],LP.prototype,"setBackground",null);_.I([_.Q({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],LP);
_.m(LP,"ytd-playlist-custom-thumbnail-renderer",function(){if(jRn!==void 0)return jRn;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return jRn=A},{mode:1});var Wb7;var Od=function(){return _.G.apply(this,arguments)||this};
_.g(Od,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Od.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Od.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Number)],Od.prototype,"width",void 0);_.I([_.Q({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],Od);
_.m(Od,"ytd-playlist-video-thumbnail-renderer",function(){if(Wb7!==void 0)return Wb7;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Wb7=A},{mode:1});var HIl;var XH=function(){return _.G.apply(this,arguments)||this};
_.g(XH,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],XH.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],XH.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Number)],XH.prototype,"width",void 0);_.I([_.Q({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],XH);
_.m(XH,"ytd-show-custom-thumbnail-renderer",function(){if(HIl!==void 0)return HIl;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return HIl=A},{mode:1});var zuH;var xZ=function(){return _.G.apply(this,arguments)||this};
_.g(xZ,_.G);xZ.prototype.useFilledIcons=function(A){return A==="MUSIC"||A==="COURSE"};
xZ.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=zm(this.overlayColor,"0.8");else if(this.overlayColor){var A=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+A.red+","+A.green+","+A.blue+",0.8)"}};
_.v2.Object.defineProperties(xZ.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)}}});
xZ.prototype.overlayColorChanged=xZ.prototype.overlayColorChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],xZ.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],xZ.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],xZ.prototype,"overlayColor",void 0);_.I([_.K({reflectToAttribute:!0}),_.r("data.icon","data.text"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],xZ.prototype,"overlayStyle",null);
_.I([_.K({reflectToAttribute:!0}),_.r("data.icon","data.text"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],xZ.prototype,"overlayTextStyle",null);_.I([_.hT("overlayColor"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],xZ.prototype,"overlayColorChanged",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],xZ);
_.m(xZ,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(zuH!==void 0)return zuH;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return zuH=A},{mode:1});var B8N;var sd=function(){var A=_.G.apply(this,arguments)||this;A.active=!1;return A};
_.g(sd,_.G);sd.prototype.computeIsSpinnerHidden=function(A){return(A==null?void 0:A.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
sd.prototype.computeOverlayIcon=function(A){return(A==null?void 0:A.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(A==null?void 0:A.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],sd.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],sd.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],sd.prototype,"active",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],sd);
_.m(sd,"ytd-thumbnail-overlay-downloading-renderer",function(){if(B8N!==void 0)return B8N;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return B8N=A},{mode:1});var M1j;var J$=function(){return _.G.apply(this,arguments)||this};
_.g(J$,_.G);_.v2.Object.defineProperties(J$.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],J$.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],J$.prototype,"data",void 0);_.I([_.r("data.text"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],J$.prototype,"text",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],J$);
_.m(J$,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(M1j!==void 0)return M1j;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return M1j=A},{mode:1});var $cH,a8V=function(){if($cH!==void 0)return $cH;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return $cH=A};var Pk=function(){return _.G.apply(this,arguments)||this};
_.g(Pk,_.G);_.v2.Object.defineProperties(Pk,{template:{configurable:!0,enumerable:!0,get:function(){return a8V()}}});
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Pk.prototype,"animateEqualizer",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],Pk);_.DX()(Pk,"ytd-thumbnail-overlay-equalizer",function(){return a8V()},{allowedProps:["animateEqualizer"],
mode:1});var kQg;var dI=function(){var A=_.G.apply(this,arguments)||this;A.nowPlayingBadge=_.h("web_now_playing_badge");A.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return A};
_.g(dI,_.G);dI.prototype.activeChanged=function(){var A=this;_.h("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.kd(this,function(){_.P4(A.hostElement,"yt-playlist-lockup-now-playing-active",A)})};
dI.prototype.onMiniplayerPlayStateChanged=function(A){var L,O=(L=_.q(_.rm().currentEndpoint,_.$O))==null?void 0:L.videoId;this.isVideoPlaying=A&&(_.h("web_limit_now_playing_animation_killswitch")||this.videoId===O)};
dI.prototype.activeChanged=dI.prototype.activeChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],dI.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],dI.prototype,"ytActionHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],dI.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Boolean)],dI.prototype,"isVideoPlaying",void 0);_.I([_.K(),_.Z("design:type",String)],dI.prototype,"videoId",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],dI.prototype,"equalizerOnly",void 0);_.I([_.K(),_.Z("design:type",Boolean)],dI.prototype,"isActive",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],dI.prototype,"nowPlayingBadge",void 0);_.I([_.hT("isActive"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],dI.prototype,"activeChanged",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],dI);
_.m(dI,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(kQg!==void 0)return kQg;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return kQg=A},{mode:1});var Ucc;var YZ=function(){return _.G.apply(this,arguments)||this};
_.g(YZ,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],YZ.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],YZ.prototype,"data",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],YZ);
_.m(YZ,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(Ucc!==void 0)return Ucc;var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Ucc=A},{mode:_.e5("kevlar_poly_si_batch_j025")?1:2});var v26;var ux=function(){return _.G.apply(this,arguments)||this};
_.g(ux,_.G);ux.prototype.onDurationChanged=function(){var A,L;_.YJ(this.hostElement).querySelector("#progress").style.width=((L=(A=this.data)==null?void 0:A.percentDurationWatched)!=null?L:0)+"%"};
ux.prototype.onDurationChanged=ux.prototype.onDurationChanged;_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],ux.prototype,"componentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],ux.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],ux.prototype,"isLive",void 0);_.I([_.hT("data.percentDurationWatched"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ux.prototype,"onDurationChanged",null);
_.I([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],ux);
_.m(ux,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(v26!==void 0)return v26;var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return v26=A},{mode:1});var o2u;var Tw=function(){var A=_.G.apply(this,arguments)||this;A.bottomPanel=!1;A.richGridOverlay=!1;A.watchFeedOverlay=!1;A.isCompact=!1;return A};
_.g(Tw,_.G);Tw.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.v2.Object.defineProperties(Tw.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var A,L;return((A=this.data)==null?void 0:(L=A.icon)==null?void 0:L.iconType)==="PLAY_ALL"&&_.h("kevlar_system_icons")}}});
Tw.prototype.widthChanged=Tw.prototype.widthChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Tw.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Tw.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Number)],Tw.prototype,"width",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Tw.prototype,"bottomPanel",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Tw.prototype,"richGridOverlay",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Tw.prototype,"watchFeedOverlay",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Tw.prototype,"isCompact",void 0);_.I([_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Tw.prototype,"isIconFilled",null);_.I([_.hT("width","watchFeedOverlay"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Tw.prototype,"widthChanged",null);
_.I([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],Tw);
_.m(Tw,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(o2u!==void 0)return o2u;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return o2u=A},{mode:1});var Abl;var LrN=["CLIP","SHORTS"],Vh=function(){var A=_.G.apply(this,arguments)||this;A.animated=_.h("animated_live_badge_icon");A.hasIcon=!1;A.updateTimerIntervalId=0;A.timeSinceLive=0;return A};
_.g(Vh,_.G);_.P=Vh.prototype;_.P.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.P.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.P.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.P.hasIconOrText=function(){var A,L;return!!(((A=this.data)==null?0:A.icon)||((L=this.data)==null?0:L.text))};
_.P.initializeLiveBadgeTimer=function(){var A=this,L,O=(L=this.liveBadgeData)==null?void 0:L.startTimestampSec;if(O&&this.canShowLiveBadgeTimer()){var X;L=Number((X=this.liveBadgeData)==null?void 0:X.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(O);this.updateTimerIntervalId=_.Vr(function(){A.canShowLiveBadgeTimer()?A.timeSinceLive++:(A.timeSinceLive=0,window.clearInterval(A.updateTimerIntervalId))},L)}else this.timeSinceLive=0};
_.P.canShowLiveBadgeTimer=function(){var A=Date.now(),L,O;return A<(Number((L=this.liveBadgeData)==null?void 0:L.endTimestampSec)-1)*1E3&&A>Number((O=this.liveBadgeData)==null?void 0:O.startTimestampSec)*1E3};
_.v2.Object.defineProperties(Vh.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var A=this.data;var L=this.timeSinceLive;var O,X,x,J;a:{var Y=A.style;if(Y===void 0)Y=17;else switch(Y){case "LIVE":Y=18;break a;default:Y=17}}L={type:Y,text:L?Tfd({seconds:L}):_.vG(A.text),accessibilityText:(O=A.text)==null?void 0:(X=O.accessibility)==null?void 0:(x=X.accessibilityData)==null?void 0:x.label,icon:(J=A.icon)==null?void 0:J.iconType}}else L={};return L}},
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 A;return(A=this.data)==null?void 0:A.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 LrN.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
Vh.prototype.initializeLiveBadgeTimer=Vh.prototype.initializeLiveBadgeTimer;Vh.prototype.dataChanged=Vh.prototype.dataChanged;_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],Vh.prototype,"componentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Vh.prototype,"data",void 0);_.I([_.K({computed:"computeIcon_(data.icon)"}),_.Z("design:type",String)],Vh.prototype,"icon",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Vh.prototype,"animated",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.Z("design:type",Boolean)],Vh.prototype,"hideTimeStatus",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Vh.prototype,"hasIcon",void 0);_.I([_.K(),_.Z("design:type",Object)],Vh.prototype,"timeSinceLive",void 0);_.I([_.r("data","timeSinceLive"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Vh.prototype,"badgeShapeData",null);
_.I([_.r("data","overlayType"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Vh.prototype,"hideBadgeShape",null);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Vh.prototype,"dataChanged",null);_.I([_.K({reflectToAttribute:!0}),_.r("data.style"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Vh.prototype,"overlayStyle",null);
_.I([_.r("data.liveBadgeData"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Vh.prototype,"liveBadgeData",null);_.I([_.K({reflectToAttribute:!0}),_.r("data.type"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Vh.prototype,"overlayType",null);_.I([_.r("overlayType","overlayStyle"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Vh.prototype,"useFilledIcon",null);
_.I([_.iy("liveBadgeData"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Vh.prototype,"initializeLiveBadgeTimer",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],Vh);
_.m(Vh,"ytd-thumbnail-overlay-time-status-renderer",function(){if(Abl!==void 0)return Abl;var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Abl=A},{mode:_.e5("kevlar_poly_si_batch_j035")?1:2});var Oa6;var Dk=function(){return _.G.apply(this,arguments)||this};
_.g(Dk,_.G);Dk.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"}}}}};
Dk.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(A){if(this.hasPlaybackProgressBar)return{percentDurationWatched:A.percentDurationWatched}};
Dk.prototype.computeHasPlaybackProgressBar=function(A){return!!A.percentDurationWatched&&A.percentDurationWatched>0};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Dk.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Dk.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Dk.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.Z("design:type",Boolean)],Dk.prototype,"hasPlaybackProgressBar",void 0);
_.I([_.Q({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],Dk);
_.m(Dk,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(Oa6!==void 0)return Oa6;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Oa6=A},{mode:1});var XUl;var x4u=_.xa(function(A){var L=A.data;var O=A.children;var X=function(){return!!L().doubleStack},x=function(){return!!L().includeStackHeight};
return _.D("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!L().experimentEnabled}},_.D(_.e,{cond:L,
then:function(){var J={};return _.D(_.Xs,null,_.D(_.e,{cond:x,then:function(){var Y={};return _.D("div",{class:_.qn("collections-stack-wiz__spacer",(Y["collections-stack-wiz__spacer--double-stack"]=X,Y))})}}),_.D("div",{class:_.qn((J["collections-stack-wiz__relative-stack"]=x,J))},_.D(_.e,{cond:X,
then:function(){var Y={};return _.D("div",{class:_.qn("collections-stack-wiz__collection-stack2",function(){return L().customClassName2ndStack},(Y["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return L().enableResponsiveMode},Y)),
style:_.rl({"background-color":function(){return ZIJ(L())}})})}}),_.D("div",{class:_.qn("collections-stack-wiz__collection-stack1",function(){return L().customClassName1stStack},function(){return y59(L().thumbnailSize?L().thumbnailSize:"medium")}),
style:_.rl({"background-color":function(){return ZIJ(L())}})}),O))}}))},"T");_.Y4(x4u,"yt-collections-stack",{props:{data:_.x5}});var eS=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};A.webModernCollections=!1;A.isSearch=!1;A.isDoubleStack=!1;A.thumbnailSize="medium";A.enableWebModernCollectionsV2=_.h("web_modern_collections_v2");return A};
_.g(eS,_.G);_.P=eS.prototype;
_.P.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayBottomPanelRenderer:{component:"ytd-thumbnail-overlay-bottom-panel-renderer",properties:{overlayColor:"[[overlayColor]]"}},thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayResumePlaybackRenderer:"ytd-thumbnail-overlay-resume-playback-renderer",thumbnailOverlaySidePanelRenderer:{component:"ytd-thumbnail-overlay-side-panel-renderer",properties:{width:"[[thumbnailOverlaySidePanelWidth_]]",
bottomPanel:"[[bottomSidePanel]]",watchFeedOverlay:"[[watchFeedThumbnail]]"}},thumbnailOverlayDownloadingRenderer:{component:"ytd-thumbnail-overlay-downloading-renderer",params:{active:!0}},thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayNowPlayingRenderer:"ytd-thumbnail-overlay-now-playing-renderer",tvfilmShowWatchForwardOverlayRenderer:"ytd-tvfilm-show-watch-forward-overlay-renderer"}},hoverOverlays_:{id:"hover-overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer"}},
"data.thumbnailRenderer":{id:"playlist-thumbnails",mapping:{playlistVideoThumbnailRenderer:{component:"ytd-playlist-video-thumbnail-renderer",properties:{width:"[[width]]"}},playlistCustomThumbnailRenderer:{component:"ytd-playlist-custom-thumbnail-renderer",properties:{size:"[[customThumbnailSize]]",watchFeedThumbnail:"[[watchFeedThumbnail]]",webModernCollections:"[[webModernCollections]]"}},showCustomThumbnailRenderer:{component:"ytd-show-custom-thumbnail-renderer",properties:{width:"[[width]]"}}}}}};
_.P.getThumbnailDetails=function(A){if(A!=null&&A.thumbnailRenderer){var L=A.thumbnailRenderer,O;if((O=L.playlistVideoThumbnailRenderer)==null?0:O.thumbnail)return L.playlistVideoThumbnailRenderer.thumbnail;var X;if((X=L.playlistCustomThumbnailRenderer)==null?0:X.thumbnail)return L.playlistCustomThumbnailRenderer.thumbnail;A=A.thumbnailRenderer;var x;if((x=A.showCustomThumbnailRenderer)==null?0:x.thumbnail)return A.showCustomThumbnailRenderer.thumbnail}};
_.P.computeOverlayColor=function(A){var L,O;if((L=this.getThumbnailDetails(A))==null?0:(O=L.darkColorPalette)==null?0:O.section2Color)return this.getThumbnailDetails(A).darkColorPalette.section2Color;var X;return(X=this.getThumbnailDetails(A))==null?void 0:X.sampledThumbnailColor};
_.P.computeWebModernCollections=function(A){if(A==null||!A.thumbnailOverlays)return!1;A=_.d(A.thumbnailOverlays);for(var L=A.next();!L.done;L=A.next()){var O=void 0;if((O=L.value)==null?0:O.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.P.computeNavigationEndpoint=function(A){return zCu(A==null?void 0:A.navigationEndpoint)};
_.v2.Object.defineProperties(eS.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var A=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:A==null?void 0:A.sampledThumbnailColor,vibrantColorPalette:A==null?void 0:A.vibrantColorPalette,darkColorPalette:A==null?void 0:A.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],eS.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],eS.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(e56),_.Z("design:type",Object)],eS.prototype,"ytdThumbnailBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],eS.prototype,"componentBehavior",void 0);
_.I([_.K({value:!1}),_.Z("design:type",Boolean)],eS.prototype,"watchFeedThumbnail",void 0);_.I([_.K(),_.Z("design:type",Number)],eS.prototype,"customThumbnailSize",void 0);_.I([_.K({value:!0}),_.Z("design:type",Boolean)],eS.prototype,"hideAria",void 0);_.I([_.K(),_.Z("design:type",Object)],eS.prototype,"data",void 0);_.I([_.K({computed:"computeOverlayColor(data)"}),_.Z("design:type",Object)],eS.prototype,"overlayColor",void 0);
_.I([_.K({computed:"computeWebModernCollections(data)"}),_.Z("design:type",Object)],eS.prototype,"webModernCollections",void 0);_.I([_.K({computed:"computeNavigationEndpoint(data)"}),_.Z("design:type",Object)],eS.prototype,"computedNavigationEndpoint",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],eS.prototype,"isSearch",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],eS.prototype,"isDoubleStack",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",String)],eS.prototype,"thumbnailSize",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],eS.prototype,"enableWebModernCollectionsV2",void 0);_.I([_.r("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],eS.prototype,"collectionStack",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],eS);
_.m(eS,"ytd-playlist-thumbnail",function(){if(XUl!==void 0)return XUl;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return XUl=A},{mode:_.e5("kevlar_poly_si_batch_j025")?1:2});var swN;var Ed=function(){var A=_.G.apply(this,arguments)||this;A.noEndpoints=!1;A.amsterdamPostMvp=_.h("web_amsterdam_post_mvp_playlists");A.badges=[];A.transferState="TRANSFER_STATE_UNKNOWN";return A};
_.g(Ed,_.G);_.P=Ed.prototype;_.P.getMetadata=function(A){if(!A)return[];var L=[],O=A.shortViewCountText||A.viewCountText;O&&L.push(_.vG(O));A.publishedTimeText&&L.push(_.vG(A.publishedTimeText));A.upcomingEventData&&A.upcomingEventData.upcomingEventText&&L.push(_.yd(_.vG(A.upcomingEventData.upcomingEventText),Number(A.upcomingEventData.startTime)));return L};
_.P.observeDataForBylineSeparator=function(){this.data&&_.TK(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.P.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.Wy(this.metadataColor)};
_.P.getSimpleString=function(A){return _.vG(A)};
_.P.isBylineHidden=function(A){return this.noByline||!((A==null?0:A.longBylineText)||(A==null?0:A.shortBylineText))};
_.P.isMetadataHidden=function(A){var L;return((L=this.getMetadata(A))==null?void 0:L.length)===0};
_.P.isBylineMetadataSeparatorHidden=function(A){return this.isMetadataHidden(A)||!this.shouldShowVideoInfo};
_.P.isLongByline=function(A,L){return L&&!(A==null||!A.longBylineText)};
_.v2.Object.defineProperties(Ed.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var A;return this.amsterdamPostMvp&&!((A=this.data)==null||!A.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 _.h("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
Ed.prototype.metadataColorChanged=Ed.prototype.metadataColorChanged;Ed.prototype.observeDataForBylineSeparator=Ed.prototype.observeDataForBylineSeparator;_.I([_.N(_.HL),_.Z("design:type",Object)],Ed.prototype,"ytdReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Ed.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],Ed.prototype,"noEndpoints",void 0);_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],Ed.prototype,"isSlimShort",void 0);
_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],Ed.prototype,"radioMeta",void 0);_.I([_.K({selector:_.Hx}),_.Z("design:type",Object)],Ed.prototype,"isGridViewEnabled",void 0);_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],Ed.prototype,"richMeta",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Ed.prototype,"amsterdamPostMvp",void 0);_.I([_.K(),_.Z("design:type",Boolean)],Ed.prototype,"noByline",void 0);
_.I([_.K({computed:"isLongByline(data, radioMeta)"}),_.Z("design:type",Boolean)],Ed.prototype,"longByline",void 0);_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],Ed.prototype,"truncateMetadataLine",void 0);_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],Ed.prototype,"miniMode",void 0);_.I([_.K(),_.Z("design:type",Number)],Ed.prototype,"metadataColor",void 0);_.I([_.K(),_.Z("design:type",Array)],Ed.prototype,"badges",void 0);
_.I([_.K({selector:_.yi,selectorArgs:["data.videoId"]}),_.Z("design:type",String)],Ed.prototype,"transferState",void 0);_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],Ed.prototype,"isDownloading",void 0);_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],Ed.prototype,"typographyBump",void 0);_.I([_.qR("#metadata-line"),_.Z("design:type",HTMLElement)],Ed.prototype,"metadataLine",void 0);
_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ed.prototype,"observeDataForBylineSeparator",null);_.I([_.hT("metadataColor"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ed.prototype,"metadataColorChanged",null);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Ed.prototype,"shouldShowVideoInfo",null);
_.I([_.r("badges"),_.Z("design:type",String),_.Z("design:paramtypes",[])],Ed.prototype,"inlineBadgeClass",null);_.I([_.r("longByline"),_.Z("design:type",String),_.Z("design:paramtypes",[])],Ed.prototype,"longBylineClass",null);_.I([_.r("data","longByline"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Ed.prototype,"bylineText",null);_.I([_.r("isGridViewEnabled","data"),_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Ed.prototype,"watchFeedBigThumbs",null);
_.I([_.Q({is:"ytd-video-meta-block",disableElementRegistration:!0})],Ed);
_.m(Ed,"ytd-video-meta-block",function(){if(swN!==void 0)return swN;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return swN=A},{mode:_.e5("kevlar_poly_si_batch_j080")?1:2});_.y3("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var nP=function(){var A=_.G.apply(this,arguments)||this;A.displayItemCount=2;A.isBackstagePlaylist=!1;A.isPostCompactPlaylist=!1;A.shouldShowChannelThumbnail=!1;A.useModernCollectionsV2=_.h("web_modern_collections_v2");return A};
_.g(nP,_.G);_.P=nP.prototype;_.P.computeFirstVideos=function(A,L){return A===void 0||L===void 0?[]:A.slice(0,L)};
_.P.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var A=this.data.thumbnailRenderer;A.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",A.playlistVideoThumbnailRenderer.thumbnail);A.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",A.playlistCustomThumbnailRenderer.thumbnail)}};
_.P.computeThumbnailHeight=function(A,L,O,X,x){return X?x==="BIG"?280:x==="MASSIVE"?337:234:O?240:L?72:A?118:138};
_.P.computeThumbnailWidth=function(A,L,O,X,x){return X?x==="MEDIUM"?450:x==="BIG"?500:x==="MASSIVE"?600:420:O?360:L?128:A?210:246};
_.P.computeUseBiggerThumbs=function(A){return A&&_.h("enable_desktop_search_bigger_thumbs")};
_.P.computeShouldShowChannelThumbnail=function(A,L){return A&&!(L==null||!L.channelThumbnail)};
_.v2.Object.defineProperties(nP.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
nP.prototype.dataChanged=nP.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],nP.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.of),_.Z("design:type",Object)],nP.prototype,"ytdLockupBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],nP.prototype,"ytdReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],nP.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],nP.prototype,"displayItemCount",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],nP.prototype,"isBackstagePlaylist",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],nP.prototype,"isPostCompactPlaylist",void 0);_.I([_.K({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],nP.prototype,"isSearch",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.Z("design:type",Boolean)],nP.prototype,"useBiggerThumbs",void 0);_.I([_.K({reflectToAttribute:!0,value:function(){return _.dN("desktop_search_bigger_thumbs_style")}}),
_.Z("design:type",String)],nP.prototype,"biggerThumbsStyle",void 0);_.I([_.K({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],nP.prototype,"isDownloads",void 0);_.I([_.K({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.Z("design:type",Object)],nP.prototype,"shouldShowChannelThumbnail",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],nP.prototype,"useModernCollectionsV2",void 0);
_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],nP.prototype,"dataChanged",null);_.I([_.r("isSearch"),_.Z("design:type",String),_.Z("design:paramtypes",[])],nP.prototype,"stackThumbnailSize",null);_.I([_.Q({is:"ytd-playlist-renderer",disableElementRegistration:!0})],nP);
_.m(nP,"ytd-playlist-renderer",function(){if(ZIn===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);ZIn=A}A=ZIn;return A},{mode:1});var JbH;var PqL;var t$=function(){var A=_.G.apply(this,arguments)||this;A.collections=!!_.h("web_modern_collections_v2");A.startX=0;return A};
_.g(t$,_.G);t$.prototype.onEndpointMouseDown=function(A){this.startX=A.clientX};
t$.prototype.onEndpointClick=function(A){this.startX!==A.clientX&&(A.preventDefault(),A.stopPropagation())};
t$.prototype.computeObjectFit=function(A){return A==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||A==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||A==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
t$.prototype.computeCardStyle=function(A){return A?A.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.v2.Object.defineProperties(t$.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var A,L;return this.collections&&((A=this.data)==null?void 0:(L=A.searchRefinementCardRendererStyle)==null?void 0:L.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}}}});
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],t$.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],t$.prototype,"data",void 0);_.I([_.K({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.Z("design:type",Number)],t$.prototype,"objectFit",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.Z("design:type",String)],t$.prototype,"cardStyle",void 0);
_.I([_.K({reflectToAttribute:!0,value:!0}),_.Z("design:type",Boolean)],t$.prototype,"roundContainer",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],t$.prototype,"collections",void 0);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],t$.prototype,"isAlbumCard",null);_.I([_.r("data","collections","isAlbumCard"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],t$.prototype,"collectionStack",null);
_.I([_.Q({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],t$);
_.m(t$,"ytd-search-refinement-card-renderer",function(){if(PqL!==void 0)return PqL;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return PqL=A},{mode:1});var d4L;var bx=function(){var A=_.G.apply(this,arguments)||this;A.isRichGrid=!1;return A};
_.g(bx,_.G);_.I([_.K(),_.Z("design:type",Object)],bx.prototype,"data",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],bx.prototype,"componentBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],bx.prototype,"ytdReduxBehavior",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],bx.prototype,"isRichGrid",void 0);_.I([_.K({reflectToAttribute:!0,selector:_.Fl}),_.Z("design:type",Boolean)],bx.prototype,"miniMode",void 0);
_.I([_.Q({is:"ytd-game-details-renderer",disableElementRegistration:!0})],bx);
_.m(bx,"ytd-game-details-renderer",function(){if(d4L!==void 0)return d4L;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return d4L=A},{mode:1});var YKu;var ukL;var h$=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return A};
_.g(h$,_.G);_.P=h$.prototype;_.P.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.P.currentStateData=function(A){var L=A||this.data;return L&&L.states&&L.currentStateId!=null?L.states.find(function(O){return O.stateId===L.currentStateId})||null:null};
_.P.currentStateRendererData=function(A){return(A=this.currentStateData(A))&&A.state&&A.state.buttonRenderer?A.state.buttonRenderer:null};
_.P.stateChanged=function(){this&&this.data&&(this.ytRenderButtonBehavior._setEndpoint(null),this.ytRenderButtonBehavior._setServiceEndpoint(this.computeServiceEndpoint(this.data)),this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data)),this.ytRenderButtonBehavior._setButtonText(null),this.ytRenderButtonBehavior._setButtonAccessibility(this.computeAccessibility(this.data)),this.ytRenderButtonBehavior._setButtonClass(this.computeButtonClass(this.data)),this.ytRenderButtonBehavior.updateRenderedElements())};
_.P.computeButtonIcon=function(A){A=this.currentStateRendererData(A);var L;return(A==null?0:(L=A.icon)==null?0:L.iconType)?A.icon.iconType.toLowerCase():null};
_.P.computeAccessibility=function(A){return(A=this.currentStateRendererData(A))&&A.accessibilityData?A.accessibilityData.accessibilityData||null:null};
_.P.computeButtonClass=function(A){var L=this.currentStateRendererData(A);if(!L)return"";A="";var O=L.style;O&&(A+=O.toLowerCase().replace(/_/g,"-")+" ");(L=L.size)&&(A+=L.toLowerCase().replace(/_/g,"-")+" ");return A.trim()};
_.P.computeServiceEndpoint=function(A){if(!A)return null;var L=A&&A.serviceEndpoint,O=this.get("command.commandMetadata.webCommandMetadata.sendPost",A);return L?L:O&&A.command?A.command:null};
_.P.computeBellMenuItemParams=function(A){var L;A=(L=_.q(A==null?void 0:A.command,_.em))==null?void 0:L.commands;if(!A||A.length===0)return null;L=_.q(A[0],_.mG);var O,X;return(L==null?0:(O=L.popup)==null?0:(X=O.menuPopupRenderer)==null?0:X.items)?L.popup.menuPopupRenderer.items.map(function(x){return x.menuServiceItemRenderer.trackingParams}):null};
_.P.handleBellMenuOpenSelectedAction=function(A){var L=A.trackingParams,O=this.computeBellMenuItemParams(this.data);this.data&&L&&O&&O.includes(L)&&this.ytRenderButtonBehavior._setButtonIcon(A.icon.iconType.toLowerCase())};
_.P.onYtServiceRequestCompleted=function(A,L){(A=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",L))&&this.set("data",A)};
_.P.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.P.resetState=function(){this.set("data.currentStateId",3)};
_.P.onYtButtonTapHandler=function(){if(this.data){var A=this.currentStateRendererData(this.data);A&&this.ytRendererBehavior.logExplicitClick(A)}};
h$.prototype.onYtServiceRequestError=h$.prototype.onYtServiceRequestError;h$.prototype.onYtServiceRequestCompleted=h$.prototype.onYtServiceRequestCompleted;h$.prototype.stateChanged=h$.prototype.stateChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],h$.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],h$.prototype,"ytActionHandlerBehavior",void 0);
_.I([_.N(lv.YtRenderButtonBehavior),_.Z("design:type",Object)],h$.prototype,"ytRenderButtonBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],h$.prototype,"data",void 0);_.I([_.iy("data","data.currentStateId"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],h$.prototype,"stateChanged",null);
_.I([_.by("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.Xi]),_.Z("design:returntype")],h$.prototype,"onYtServiceRequestCompleted",null);_.I([_.by("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],h$.prototype,"onYtServiceRequestError",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],h$);
_.m(h$,"ytd-subscription-notification-toggle-button-renderer",function(){if(ukL!==void 0)return ukL;var A=document.createElement("template");_.p(A,"\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");A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return ukL=A},{mode:1});var Tgc;var SS=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};A.tapHandler=function(){if(A.data){var L=A.currentStateRendererData();L&&A.ytRendererBehavior.logExplicitClick(L)}};
return A};
_.g(SS,_.G);_.P=SS.prototype;_.P.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.P.currentStateData=function(){var A=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(L){return L.stateId===A.data.currentStateId})||null:null};
_.P.currentStateRendererData=function(){var A=this.currentStateData();return A&&A.state&&A.state.buttonRenderer?A.state.buttonRenderer:null};
_.P.computeAccessibilityLabel=function(){var A,L,O;return(A=this.currentStateRendererData())==null?void 0:(L=A.accessibilityData)==null?void 0:(O=L.accessibilityData)==null?void 0:O.label};
_.P.computeBellMenuItemParams=function(){var A,L,O=(L=_.q((A=this.data)==null?void 0:A.command,_.em))==null?void 0:L.commands;if(!O||O.length===0)return null;A=_.q(O[0],_.mG);var X,x;return(A==null?0:(X=A.popup)==null?0:(x=X.menuPopupRenderer)==null?0:x.items)?A.popup.menuPopupRenderer.items.map(function(J){return J.menuServiceItemRenderer.trackingParams}):null};
_.P.handleBellMenuOpenSelectedAction=function(A){var L=A.trackingParams,O=this.computeBellMenuItemParams();if(this.data&&L&&O&&O.includes(L)&&(A==null||!A.isDisabled)){var X;((X=_.q(A.serviceEndpoint,_.nM))==null?void 0:X.signal)!=="CLIENT_SIGNAL"&&(this.icon=A.icon.iconType)}};
_.P.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.P.onYtServiceRequestCompleted=function(A,L){if(A=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",L))this.icon=void 0,this.set("data",A)};
_.P.onYtServiceRequestError=function(){this.icon=void 0};
_.v2.Object.defineProperties(SS.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var A=this.data,L=this.textLabel,O=this.hostElement,X=this.computeAccessibilityLabel(),x=this.tapHandler,J=this.isOverlay?"overlay":"mono",Y=(A==null?0:A.disableButton)?"disabled":"active";L=L?_.yz(L):void 0;return{style:J,type:"tonal",state:Y,size:"M",focused:!1,formattedButtonText:L,iconPosition:"leading-trailing",onTap:WbP(A,x,O),accessibilityLabel:X}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var A=this.currentStateRendererData(),L,O,X=(O=this.icon)!=null?O:A==null?void 0:(L=A.icon)==null?void 0:L.iconType;if(X)return _.bV(X)}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var A,L,O=(A=this.data)==null?void 0:(L=A.secondaryIcon)==null?void 0:L.iconType;if(O)return _.bV(O)}}});
SS.prototype.onYtServiceRequestError=SS.prototype.onYtServiceRequestError;SS.prototype.onYtServiceRequestCompleted=SS.prototype.onYtServiceRequestCompleted;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],SS.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],SS.prototype,"ytActionHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],SS.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],SS.prototype,"textLabel",void 0);
_.I([_.K(),_.Z("design:type",String)],SS.prototype,"icon",void 0);_.I([_.K(),_.Z("design:type",Boolean)],SS.prototype,"isOverlay",void 0);_.I([_.r("data.*","textLabel"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],SS.prototype,"computedButtonShape",null);_.I([_.r("data.*","icon"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],SS.prototype,"computedIcon",null);_.I([_.r("data.*"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],SS.prototype,"computedSecondaryIcon",null);
_.I([_.by("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.Xi]),_.Z("design:returntype")],SS.prototype,"onYtServiceRequestCompleted",null);_.I([_.by("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],SS.prototype,"onYtServiceRequestError",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],SS);
_.m(SS,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(Tgc!==void 0)return Tgc;var A=document.createElement("template");_.p(A,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return Tgc=A},{mode:_.e5("kevlar_poly_si_batch_j081")?1:2});var VUl;_.Y4(T8L,"yt-animated-action",{props:{backgroundLottieRef:_.x5,foregroundLottieRef:_.x5,wrapperClass:_.x5,disableAnimation:_.x5},unsafeExternallySettableAttributes:new Set(["key"])});var qf=function(){var A=_.G.apply(this,arguments)||this;A.animatedActionEnabled=_.h("web_animated_actions");A.foregroundLottieRef={};A.backgroundLottieRef={};A.forceIconOnly=!1;A.showTextWhileAnimating=!1;A.keyboardFocused=!1;A.isAnimating=!1;A.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return A};
_.g(qf,_.G);_.P=qf.prototype;_.P.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.P.configureRendererStamper=function(){return{"data.notificationPreferenceToggleButton":{id:"notification-preference-toggle-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{forceIconOnly:"[[forceIconOnly]]"}}}},"data.notificationPreferenceButton":{id:"notification-preference-button",mapping:{subscriptionNotificationToggleButtonRenderer:{component:"ytd-subscription-notification-toggle-button-renderer-next",properties:{textLabel:"[[subscribedButtonText]]",
forceIconOnly:"[[forceIconOnly]]",isOverlay:"[[overlayButton]]"}}}}}};
_.P.attached=function(){this.keyboardFocused=!1};
_.P.onYtServiceRequestSent=function(A,L){(this.get("endpoint.subscribeEndpoint",L)||this.get("endpoint.unsubscribeEndpoint",L))&&this.updateSubscriptionState(!this.subscribed)};
_.P.onYtServiceRequestCompleted=function(A,L){(A=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",L.data))&&this.bellButton&&(this.bellButton.data=A)};
_.P.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.eq(this.hostElement)};
_.P.onPlayerSubscribe=function(A){this.isCompactRed()||A!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.P.onPlayerUnsubscribe=function(A){this.isCompactRed()||A!==this.data.channelId||this.updateSubscriptionState(!1)};
_.P.handleUpdateSubscribeButtonAction=function(A){A=_.q(A,w9u);var L;A&&A.channelId===((L=this.data)==null?void 0:L.channelId)&&this.updateSubscriptionState(!!A.subscribed)};
_.P.computeButtonStyle=function(A){return this.get("style.styleType",A)||null};
_.P.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.P.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.P.updateSubscriptionState=function(A){if(A!==this.subscribed){this.set("data.subscribed",A);var L,O=(L=this.data)==null?void 0:L.subscribedEntityKey;O&&this.ytdReduxBehavior.dispatch(_.NV("subscriptionStateEntity",O,{key:O,subscribed:A}));this.isCompactRed()||_.P4(this.hostElement,"yt-subscription-changed",A);A||(_.dQ(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!A),A&&this.hasBellButton&&this.startAnimation())}};
_.P.startAnimation=function(){var A=this;if(!this.isAnimating){var L=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var O;(O=this.backgroundLottieRef.lottieEl)==null||O.goToAndPlay(0);var X;(X=this.foregroundLottieRef.lottieEl)==null||X.goToAndPlay(0);_.c1.addJob(function(){A.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.c1.addJob(function(){A.updateContainerToFitContent(!!A.subscribed,!0)},2,1500);
_.c1.addJob(function(){A.isAnimating=!1},2,L)}};
_.P.maybeAnimateBellIcon=function(){var A=_.uy(this.hostElement).querySelector("yt-animated-icon");if(A){var L;(L=A.animationRef.lottieEl)==null||L.goToAndPlay(0)}};
_.P.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.P.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.P.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var A;this.unsubscribedWidth=(A=this.subscribeButtonShape)==null?void 0:A.getBoundingClientRect().width}var L;this.subscribedWidth=(L=this.bellButton)==null?void 0:L.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.P.updateContainerToFitContent=function(A,L){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(A?(A=this.subscribedWidth,L=this.isAnimating&&!L,this.subscribedIconOnlyWidth===void 0||L||(A=this.subscribedIconOnlyWidth),this.hostElement.style.width=A+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.P.clearContainerSize=function(){this.hostElement.style.width=""};
_.P.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.P.maybeSetSubscribedButtonIconOnlyWidth=function(){var A=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 L;A.subscribedIconOnlyWidth=(L=A.bellButton)==null?void 0:L.getBoundingClientRect().width;requestAnimationFrame(function(){if(A.bellButton){var O;A.bellButton.textLabel=
(O=A.data)==null?void 0:O.subscribedButtonText}})})))};
_.v2.Object.defineProperties(qf.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 A;return(A=this.data)==null?void 0:A.subscribedButtonText}var L;return this.forceIconOnly?void 0:(L=this.data)==null?void 0:L.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var A,L,O=((A=this.data)==null?void 0:(L=A.timedAnimationData)==null?void 0:L.animationTiming)||[];return{uniqueId:"subscribe",timings:O,enabled:O.length>0&&!this.subscribed,experimentEnabled:O.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var A;return!this.subscribed&&((A=this.data)==null?void 0:A.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 A={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var L=A.renderer;var O=A.element;var X=A.subscribed;var x=A.commandController;var J=A.isOverlay;A=A.stopPropagation;var Y=M1O(L,X);J&&(Y.style="overlay");J=Object;var T=J.assign,V;a:switch((V=L.style)==null?void 0:V.styleType){case "COMPACT_GRAY":case "COMPACT_RED":V={size:"S"};break a;default:V={size:"M"}}var E=B8y(L,
X);var n=(n=X?L.subscribedButtonText:L.unsubscribedButtonText)?_.yz(n):void 0;return T.call(J,{},Y,V,{focused:!1,toggled:X,accessibilityLabel:E,formattedButtonText:n,onTap:zur(L,X,O,x,A)})}}}});
qf.prototype.onMouseDown=qf.prototype.onMouseDown;qf.prototype.onDataChanged=qf.prototype.onDataChanged;qf.prototype.observedSubscribed=qf.prototype.observedSubscribed;qf.prototype.onYtServiceRequestCompleted=qf.prototype.onYtServiceRequestCompleted;qf.prototype.onYtServiceRequestSent=qf.prototype.onYtServiceRequestSent;qf.prototype.maybeUpdateBellButtonText=qf.prototype.maybeUpdateBellButtonText;_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],qf.prototype,"ytComponentBehavior",void 0);
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],qf.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],qf.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],qf.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],qf.prototype,"ytdReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],qf.prototype,"data",void 0);
_.I([_.K({selectorArgs:["data.subscribedEntityKey"],selector:j5y}),_.Z("design:type",Object)],qf.prototype,"subscriptionStateEntity",void 0);_.I([_.K({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],qf.prototype,"subscribed",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],qf.prototype,"branded",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],qf.prototype,"animatedActionEnabled",void 0);
_.I([_.K(),_.Z("design:type",Object)],qf.prototype,"foregroundLottieRef",void 0);_.I([_.K(),_.Z("design:type",Object)],qf.prototype,"backgroundLottieRef",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],qf.prototype,"overlayButton",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.Z("design:type",Object)],qf.prototype,"buttonStyle",void 0);_.I([_.K(),_.Z("design:type",Object)],qf.prototype,"forceIconOnly",void 0);
_.I([_.K(),_.Z("design:type",Object)],qf.prototype,"showTextWhileAnimating",void 0);_.I([_.K({value:function(){return!!_.X5().resolve(_.Ot(_.bv))&&_.h("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.Z("design:type",Boolean)],qf.prototype,"useKeyboardFocused",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],qf.prototype,"keyboardFocused",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],qf.prototype,"isAnimating",void 0);_.I([_.r("data.notificationPreferenceButton.*"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],qf.prototype,"hasBellButton",null);
_.I([_.hT("subscribedButtonText"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qf.prototype,"maybeUpdateBellButtonText",null);_.I([_.r("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],qf.prototype,"subscribedButtonText",null);_.I([_.r("data.timedAnimationData.animationTiming","subscribed"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],qf.prototype,"smartimationSettings",null);
_.I([_.K({reflectToAttribute:!0}),_.r("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],qf.prototype,"subscribeButtonHidden",null);_.I([_.K({reflectToAttribute:!0}),_.r("subscribed","hasBellButton"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],qf.prototype,"subscribeButtonInvisible",null);
_.I([_.K({reflectToAttribute:!0}),_.r("subscribed"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],qf.prototype,"unsubscribeButtonHidden",null);_.I([_.qR("ytd-subscription-notification-toggle-button-renderer-next"),_.Z("design:type",Object)],qf.prototype,"bellButton",void 0);_.I([_.qR("#subscribe-button-shape"),_.Z("design:type",HTMLElement)],qf.prototype,"subscribeButtonShape",void 0);
_.I([_.r("overlayButton","subscribed","data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],qf.prototype,"buttonShape",null);_.I([_.by("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.aQ]),_.Z("design:returntype")],qf.prototype,"onYtServiceRequestSent",null);_.I([_.by("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.Xi]),_.Z("design:returntype")],qf.prototype,"onYtServiceRequestCompleted",null);
_.I([_.hT("subscribed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qf.prototype,"observedSubscribed",null);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qf.prototype,"onDataChanged",null);_.I([_.by("mousedown"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],qf.prototype,"onMouseDown",null);
_.I([_.Q({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],qf);
_.m(qf,"ytd-subscribe-button-renderer",function(){if(VUl!==void 0)return VUl;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return VUl=A},{mode:1});var gI=function(){var A=_.G.apply(this,arguments)||this;A.isRichGrid=!1;return A};
_.g(gI,_.G);gI.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"}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],gI.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],gI.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],gI.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],gI.prototype,"isRichGrid",void 0);_.I([_.Q({is:"ytd-game-card-renderer",disableElementRegistration:!0})],gI);
_.m(gI,"ytd-game-card-renderer",function(){if(YKu!==void 0)return YKu;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return YKu=A},{mode:1});var wI={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.h("defer_menus")&&!MiN?0:void 0,waitForSignal:"eocs"};var D4c;var e96;var pP=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return A};
_.g(pP,_.G);_.P=pP.prototype;_.P.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.P.onSeriesReminderStateEntityChange=function(){var A,L,O;((A=this.eventReminderStateEntity)==null?0:A.key)&&((L=this.seriesReminderStateEntity)==null?void 0:L.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((O=this.eventReminderStateEntity)==null?void 0:O.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.NV("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.P.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.P.onYtServiceRequestError=function(){var A;this.updateReminderStateEntitiesFromButtonState((A=this.data)==null?void 0:A.currentState)};
_.P.handleUpdateUpcomingEventReminderButtonStateCommand=function(A){if(A=_.q(A,jsn)){var L,O=(L=this.data)==null?void 0:L.targetId;O&&A.targetId===O&&_.MR(this.updateReminderStateEntitiesFromButtonState.bind(this,A.state))}};
_.P.getButtonStateFromReminderState=function(){var A;if(((A=this.seriesReminderStateEntity)==null?void 0:A.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var L;if(((L=this.eventReminderStateEntity)==null?void 0:L.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var O,X;if(((O=this.seriesReminderStateEntity)==null?void 0:O.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((X=this.eventReminderStateEntity)==
null?void 0:X.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var x;return(x=this.data)==null?void 0:x.currentState};
_.P.updateReminderStateEntitiesFromButtonState=function(A){if(A){switch(A){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":A="UPCOMING_EVENT_REMINDER_STATE_NONE";var L="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":A="UPCOMING_EVENT_REMINDER_STATE_SINGLE";L="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":A="UPCOMING_EVENT_REMINDER_STATE_NONE";L="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var O;
((O=this.eventReminderStateEntity)==null?0:O.key)&&this.ytdReduxBehavior.dispatch(_.NV("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:A})));var X;((X=this.seriesReminderStateEntity)==null?0:X.key)&&this.ytdReduxBehavior.dispatch(_.NV("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:L})))}};
_.v2.Object.defineProperties(pP.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var A=this.getButtonStateFromReminderState(),L,O;if(A&&((L=this.data)==null?0:(O=L.states)==null?0:O.length))for(L=_.d(this.data.states),O=L.next();!O.done;O=L.next()){O=O.value;var X=void 0;if(((X=_.q(O,W0N))==null?void 0:X.state)===A)return _.q(O,W0N)}}}});
pP.prototype.onYtServiceRequestError=pP.prototype.onYtServiceRequestError;pP.prototype.onYtServiceRequestCompleted=pP.prototype.onYtServiceRequestCompleted;pP.prototype.onSeriesReminderStateEntityChange=pP.prototype.onSeriesReminderStateEntityChange;_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],pP.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],pP.prototype,"ytRendererBehavior",void 0);
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],pP.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],pP.prototype,"ytdReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],pP.prototype,"data",void 0);_.I([_.K({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:HgJ}),_.Z("design:type",Object)],pP.prototype,"eventReminderStateEntity",void 0);
_.I([_.K({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(A,L){return _.eM(A.entities,"sportsSeriesReminderStateEntity",L)}}),
_.Z("design:type",Object)],pP.prototype,"seriesReminderStateEntity",void 0);_.I([_.r("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],pP.prototype,"currentButtonStateRenderer",null);_.I([_.hT("seriesReminderStateEntity"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],pP.prototype,"onSeriesReminderStateEntityChange",null);
_.I([_.by("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],pP.prototype,"onYtServiceRequestCompleted",null);_.I([_.by("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],pP.prototype,"onYtServiceRequestError",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],pP);
_.m(pP,"ytd-upcoming-event-reminder-button-renderer",function(){if(e96!==void 0)return e96;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);
return e96=A},{mode:1});var E_3;var ix=function(){return _.G.apply(this,arguments)||this};
_.g(ix,_.G);ix.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.v2.Object.defineProperties(ix.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(_.h("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],ix.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],ix.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],ix.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],ix.prototype,"shelfDismissal",void 0);_.I([_.r("data.responseText"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ix.prototype,"text",null);
_.I([_.r("data.responseText"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ix.prototype,"textAriaLabel",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],ix);
_.m(ix,"ytd-notification-multi-action-renderer",function(){if(E_3!==void 0)return E_3;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return E_3=A},{mode:1});var n_u;var Nf=function(){return _.G.apply(this,arguments)||this};
_.g(Nf,_.G);Nf.prototype.ready=function(){var A=this;_.YJ(this.hostElement).querySelector("#undo").addEventListener("tap",function(){A.onUndoTap()})};
Nf.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.X5().resolve(_.x$).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Nf.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Nf.prototype,"data",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],Nf);
_.m(Nf,"ytd-notification-text-renderer",function(){if(n_u!==void 0)return n_u;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return n_u=A},{mode:1});var tUL;var rI=function(){var A=_.G.apply(this,arguments)||this;A.mouseOverDelayJobId=0;A.fadeInImageDelayJobId=0;A.startTimeMs=-1;A.loadingStartTimeMs=-1;A.loadingEndTimeMs=-1;A.hasVideoPreview=!1;return A};
_.g(rI,_.G);_.P=rI.prototype;_.P.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.P.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.P.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.P.showThumbnail=function(){var A=this;this.csn=_.Fn();_.QN("fmth");_.c1.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.et(_.c1,function(){A.loadingStartTimeMs=(0,_.O$)();var L=_.YJ(A.hostElement).querySelector("#thumbnail");L.complete?A.displayMouseOverImage():L.addEventListener("load",_.tT(A,A.displayMouseOverImage))},150):_.TK(_.YJ(this.hostElement).querySelector("#play"),"show",!0)};
_.P.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.P.onTap=function(){this.removeVideoPreview()};
_.P.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var A=this.videoId,L=this.csn,O=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,X=this.startTimeMs,x=this.hasVideoPreview,J=_.lV(this.trackingParams),Y={isMovingThumbnail:x};x&&X>0&&(O>0&&(Y.movingThumbnailLoadingDurationMs=Math.round(O)),Y.durationHoveredMs=Math.round((0,_.O$)()-X));A&&(Y.videoId=A);_.ak(L,J,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:Y});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.P.removeVideoPreview=function(){_.c1.cancelJob(this.mouseOverDelayJobId);_.c1.cancelJob(this.fadeInImageDelayJobId);var A=_.YJ(this.hostElement).querySelector("#thumbnail");_.TK(A,"fade-in",!1);A.removeEventListener("load",_.tT(this,this.displayMouseOverImage));A=_.YJ(this.hostElement).querySelector("#play");_.TK(A,"fade-in",!1);_.TK(A,"show",!1)};
_.P.displayMouseOverImage=function(){var A=_.YJ(this.hostElement).querySelector("#thumbnail"),L=_.YJ(this.hostElement).querySelector("#play");this.isImageAvailable(A)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.O$)(),this.startTimeMs=(0,_.O$)(),this.fadeInImageDelayJobId=_.et(_.c1,function(){_.TK(A,"fade-in",!0)},50)):_.TK(L,"fade-in",!0)};
_.P.computeThumbnail=function(A,L){var O;A&&A.movingThumbnailDetails&&A.movingThumbnailDetails.thumbnails&&L?O=_.uB(A.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):O=L?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(O)return _.RP(O)};
_.P.isImageAvailable=function(A){return!(!A.src||A.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||A.naturalWidth===120)};
rI.prototype.onTap=rI.prototype.onTap;rI.prototype.dataChanged=rI.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],rI.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],rI.prototype,"ytComponentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],rI.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],rI.prototype,"csn",void 0);_.I([_.K(),_.Z("design:type",Object)],rI.prototype,"trackingParams",void 0);
_.I([_.K(),_.Z("design:type",String)],rI.prototype,"videoId",void 0);_.I([_.K(),_.Z("design:type",Boolean)],rI.prototype,"isAttachedAndDataSet",void 0);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],rI.prototype,"dataChanged",null);_.I([_.by("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],rI.prototype,"onTap",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],rI);
_.m(rI,"ytd-moving-thumbnail-renderer",function(){if(tUL!==void 0)return tUL;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return tUL=A},{mode:1});var bal;_.eO=function(A){this.hostElement=A;this.eventSink=null;this.eventList=[]};
_.eO.prototype.shouldForward=function(){var A,L;return(L=(A=this.eventSink)==null?void 0:A.isConnected)!=null?L:document.body.contains(this.eventSink)};
_.eO.prototype.start=function(A,L){this.eventSink&&this.stop();for(var O=0;O<A.length;O++)this.hostElement.addEventListener(A[O],_.tT(this,this.forwardEvent));var X;this.eventSink=(X=L.hostElement)!=null?X:L;this.eventList=A};
_.eO.prototype.stop=function(){for(var A=0;A<this.eventList.length;A++)this.hostElement.removeEventListener(this.eventList[A],_.tT(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.eO.prototype.forwardEvent=function(A,L){this.shouldForward()&&(A.stopPropagation(),this.eventSink instanceof Element?_.P4(this.eventSink,A.type,L):_.Rv(new _.pe("eventSink is not an element")))};_.KP={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.eO(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(A,L){this.forwarder_.start(A,L)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var Gw=function(){return _.G.apply(this,arguments)||this};
_.g(Gw,_.G);_.P=Gw.prototype;_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("top-right-overlay")||this.hostElement.setAttribute("top-right-overlay","true");this.tooltip.position=_.ms("HTML_DIR")==="rtl"?"right":"left"};
_.P.dataChanged=function(){this.popupOpen=!1};
_.P.computeAriaLabel=function(A){return _.q(A,Bkg).label};
_.P.onTap=function(A){A.stopPropagation();A.preventDefault();this.data.command&&_.X5().resolve(_.x$).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.P.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.P.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
Gw.prototype.onPopupClosed=Gw.prototype.onPopupClosed;Gw.prototype.onPopupOpened=Gw.prototype.onPopupOpened;Gw.prototype.onTap=Gw.prototype.onTap;Gw.prototype.dataChanged=Gw.prototype.dataChanged;_.I([_.N(_.KP.YtEventForwardingBehavior),_.Z("design:type",Object)],Gw.prototype,"eventForwardingBehavior",void 0);_.I([_.N(_.jK),_.Z("design:type",Object)],Gw.prototype,"ironButtonState",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],Gw.prototype,"componentBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],Gw.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0,value:-1}),_.Z("design:type",Number)],Gw.prototype,"tabindex",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.Z("design:type",Object)],Gw.prototype,"ariaLabel",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],Gw.prototype,"disableTooltips",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Gw.prototype,"popupOpen",void 0);
_.I([_.K(),_.Z("design:type",Element)],Gw.prototype,"eventSink",void 0);_.I([_.qR("#tooltip"),_.Z("design:type",Object)],Gw.prototype,"tooltip",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Gw.prototype,"dataChanged",null);_.I([_.by("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Gw.prototype,"onTap",null);
_.I([_.by("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Gw.prototype,"onPopupOpened",null);_.I([_.by("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Gw.prototype,"onPopupClosed",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],Gw);
_.m(Gw,"ytd-thumbnail-overlay-button-renderer",function(){if(bal!==void 0)return bal;var A=document.createElement("template");_.p(A,'\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>');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return bal=A},{mode:1});var h9V;var lx=function(){return _.G.apply(this,arguments)||this};
_.g(lx,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],lx.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],lx.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],lx.prototype,"disableAnimation",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],lx.prototype,"rounded",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],lx.prototype,"transparentBackground",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],lx.prototype,"noPadding",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],lx);
_.m(lx,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(h9V!==void 0)return h9V;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return h9V=A},{mode:1});var SK6;var ck=function(){return _.G.apply(this,arguments)||this};
_.g(ck,_.G);ck.prototype.computeIconPosition=function(A){return this.get("iconPosition",A)||null};
ck.prototype.computeIconStyle=function(A){return this.get("iconStyle",A)||null};
ck.prototype.computeIsIconStyleFilled=function(A){if(!A)return!1;var L;return A.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((L=A.icon)==null?void 0:L.iconType)==="ERROR_BLACK"};
_.I([_.K(),_.Z("design:type",Object)],ck.prototype,"data",void 0);_.I([_.K({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],ck.prototype,"iconPosition",void 0);_.I([_.K({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],ck.prototype,"iconStyle",void 0);_.I([_.K({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],ck.prototype,"iconStyleFilled",void 0);
_.I([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],ck);
_.m(ck,"ytd-thumbnail-overlay-icon-renderer",function(){if(SK6!==void 0)return SK6;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return SK6=A},{mode:1});var qKg;var CP=function(){return _.G.apply(this,arguments)||this};
_.g(CP,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],CP.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],CP.prototype,"data",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],CP);
_.m(CP,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(qKg!==void 0)return qKg;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return qKg=A},{mode:1});var g_L;var FH=function(){var A=_.G.apply(this,arguments)||this;A.isPreviewLoading=!1;return A};
_.g(FH,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],FH.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],FH.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],FH.prototype,"isPreviewLoading",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],FH);
_.m(FH,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(g_L!==void 0)return g_L;var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return g_L=A},{mode:1});var wU7;var R4=function(){return _.G.apply(this,arguments)||this};
_.g(R4,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],R4.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],R4.prototype,"data",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],R4);
_.m(R4,"ytd-thumbnail-overlay-pinking-renderer",function(){if(wU7!==void 0)return wU7;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return wU7=A},{mode:1});var pUu;var Qh=function(){var A=_.G.apply(this,arguments)||this;A.disableTooltips=!1;A.isLoading=!1;A.useExpandableTooltip=!1;A.toggled=!1;A.hovered=!1;A.mouseoverDelayJobId=0;A.toggleDelayJobId=0;A.expandAnimationDelayJobId=0;return A};
_.g(Qh,_.G);_.P=Qh.prototype;_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1");this.hostElement.hasAttribute("top-right-overlay")||this.hostElement.setAttribute("top-right-overlay","true");_.YJ(this.hostElement).querySelector("#tooltip").position=_.ms("HTML_DIR")==="rtl"?"right":"left"};
_.P.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.c1.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.c1.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.c1.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.P.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.c1.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.c1.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.c1.cancelJob(this.expandAnimationDelayJobId)};
_.P.computeIcon=function(A,L,O){return(A=O?L:A)&&A.iconType?_.bV(A.iconType):void 0};
_.P.computeAriaLabel=function(A,L,O){return _.q(O?L:A,Bkg).label};
_.P.computeTooltip=function(A,L,O){return O?L:A};
_.P.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.P.computeIconOnHover=function(A,L){if((A==null?0:A.iconType)&&!L)return _.bV(A.iconType)};
_.P.onTap=function(A){var L=this;A.stopPropagation();A.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(A=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(A),this.useExpandableTooltip&&(this.toggleDelayJobId=_.et(_.c1,function(){L.hovered=!1;L.data&&!L.data.toggledServiceEndpoint&&(L.expandAnimationDelayJobId=_.et(_.c1,function(){L.set("data.isToggled",
!1)},200))},2E3))};
_.P.onMouseenter=function(){var A=this;this.mouseoverDelayJobId=_.et(_.c1,function(){A.hovered=!0},300)};
_.P.onMouseleave=function(){_.c1.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.P.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.P.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.P.onServiceRequestCompleted=function(A,L){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(L)||this.set("data.isToggled",!this.data.isToggled)};
_.P.serviceRequestWasSuccessful=function(A){return _.q(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.zF)?A.data.status==="STATUS_SUCCEEDED":!0};
Qh.prototype.onServiceRequestCompleted=Qh.prototype.onServiceRequestCompleted;Qh.prototype.onPopupClosed=Qh.prototype.onPopupClosed;Qh.prototype.onPopupOpened=Qh.prototype.onPopupOpened;Qh.prototype.onMouseleave=Qh.prototype.onMouseleave;Qh.prototype.dataChanged=Qh.prototype.dataChanged;_.I([_.N(_.jK),_.Z("design:type",Object)],Qh.prototype,"ironButtonState",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],Qh.prototype,"ytComponentBehavior",void 0);
_.I([_.N(_.KP.YtEventForwardingBehavior),_.Z("design:type",Object)],Qh.prototype,"ytEventForwardingBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Qh.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.Z("design:type",Object)],Qh.prototype,"ariaLabel",void 0);_.I([_.K(),_.Z("design:type",Object)],Qh.prototype,"disableTooltips",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Qh.prototype,"popupOpen",void 0);_.I([_.K(),_.Z("design:type",Object)],Qh.prototype,"isLoading",void 0);_.I([_.K(),_.Z("design:type",Element)],Qh.prototype,"eventSink",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Qh.prototype,"useExpandableTooltip",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.Z("design:type",Object)],Qh.prototype,"toggled",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Qh.prototype,"hovered",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.Z("design:type",Object)],Qh.prototype,"iconOnHover",void 0);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Qh.prototype,"dataChanged",null);
_.I([_.by("mouseleave"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Qh.prototype,"onMouseleave",null);_.I([_.by("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Qh.prototype,"onPopupOpened",null);_.I([_.by("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Qh.prototype,"onPopupClosed",null);
_.I([_.by("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.Xi]),_.Z("design:returntype")],Qh.prototype,"onServiceRequestCompleted",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],Qh);
_.m(Qh,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(pUu!==void 0)return pUu;var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return pUu=A},{mode:_.e5("kevlar_poly_si_batch_j053")?1:2});var iaJ;var Ngg=_.xa(function(A){var L=A.data;var O=A.thumbnailSize;var X=function(){return L().enableSegmentView};
return _.D("yt-thumbnail-overlay-progress-bar-view-model",{class:_.qn("ytThumbnailOverlayProgressBarHost",function(){return $cr(O==null?void 0:O())})},_.D(_.e,{cond:X,
then:function(){return _.D("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.D("div",{class:_.gl("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+L().startPercent+"%"}}),_.D("div",{class:_.gl("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+L().segmentDurationPercent+"%"}},_.D("div",{class:_.gl("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.D("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.D("div",null," ",function(){return L().segmentLabel})),_.D("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.D("div",{class:_.gl("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.D(_.e,{cond:function(){return!X()&&L().startPercent},
then:function(){var x={};return _.D("div",{class:_.gl("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(x.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.h("web_enable_modern_progress_bar_overlay"),x))},_.D("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+L().startPercent+"%"}}))}}))},"U");
Ngg.idomCompat=!0;var rbN=_.xa(function(A){var L=_.S8(),O=_.zJ(function(x){var J,Y,T;a:{var V=(J=A.data())==null?void 0:J.animationActivationTargetId;J=((Y=A.data())==null?void 0:Y.animationActivationEntityKey)||"";Y=(T=A.data())==null?void 0:T.animationActivationEntitySelectorType;if(J&&V)switch(Y){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":x=_.eM(x.entities,"playerStateEntity",J);T=_.X5().resolve(_.Ot(_.z_));V=!!(x&&x.videoId===V&&(T==null?0:T.isMiniplayerActive()));V={activated:V,playAnimation:V&&
x.playerState==="PLAYER_STATE_PLAYING"};break a}V=void 0}return V});
_.ND(function(){var x;if((x=O())==null?0:x.activated){var J;if((J=O())==null?0:J.playAnimation){var Y;(Y=L.lottieEl)==null||Y.goToAndPlay(0)}else{var T;(T=L.lottieEl)==null||T.goToAndStop(0)}}},"MDTl2e");
var X=function(){var x,J=!((x=O())==null||!x.activated);if(A.data()){x=A.data();var Y=void 0;x.icon&&(Y=_.tFr(x.icon),Y=p0O(Y));var T=void 0,V;if((V=x.backgroundColor)==null?0:V.lightTheme){var E;T={backgroundColor:zm((E=x.backgroundColor)==null?void 0:E.lightTheme,"0.8")}}if(x.text||Y||J){if(J&&x.lottieData&&L){E=x.lottieData;var n,t,b;V={animationConfig:{name:E.url,path:E.url,autoplay:(n=E.settings)==null?void 0:n.autoplay,loop:(b=(t=E.settings)==null?void 0:t.loop)!=null?b:!0},animationRef:L}}else V=
void 0;if(J)n=17;else b:switch(x.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":n=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":n=19;break b;default:n=17}J={type:n,text:J&&x.animatedText?x.animatedText:x.text,icon:Y,customColors:T,animation:V}}else J=void 0}else J=void 0;return J};
return _.D("yt-thumbnail-badge-view-model",{class:_.qn("yt-thumbnail-badge-view-model-wiz",A.class)},_.D(_.e,{cond:X,then:function(){return _.D(_.HW,{data:function(){return X()}})}}))},"V");var Krj=_.xa(function(A){var L={},O={};return _.D("yt-thumbnail-bottom-overlay-view-model",{class:_.qn("ytThumbnailBottomOverlayViewModelHost",(L.ytThumbnailBottomOverlayViewModelHostBackground=function(){return A.data().enableGradientBackground},L))},_.D(_.ID,{data:function(){return A.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(X){return _.D(Ngg,{data:X.data,
thumbnailSize:A.thumbnailSize})}}),_.D("div",{class:_.qn("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var X;
return a8e((X=A.thumbnailSize)==null?void 0:X.call(A))},(O.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var X;
return(X=A.isClip)==null?void 0:X.call(A)},O.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var X;
return!_.h("web_enable_modern_progress_bar_overlay")&&((X=A.thumbnailSize)==null?void 0:X.call(A))==="small"},O))},_.D(_.ID,{data:function(){return A.data().badge}},{thumbnailBadgeViewModel:function(X){return _.D(rbN,{data:X.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.D(_.ID,{data:function(){return A.data().badges}},{thumbnailBadgeViewModel:function(X){return _.D(rbN,{data:X.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"W");
Krj.idomCompat=!0;_.Y4(Krj,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.dl,thumbnailSize:_.dl,isClip:_.dl}});var swy={calledOnce:!1,state:"visible"},Jbr={calledOnce:!1,state:"hidden"};var mL=_.xa(function(A){var L=A.data;var O=A.className;A=A.alwaysShow;var X=_.v2d(),x={};return _.D("thumbnail-hover-overlay-view-model",{el:_.sC(_.Bm(function(){return L().rendererContext})),
class:_.qn("ytThumbnailHoverOverlayViewModelHost",O,(x.ytThumbnailHoverOverlayViewModelHostForceHover=A,x)),"aria-label":function(){var J;return(J=_.q(L().rendererContext,_.ll))==null?void 0:J.label},
role:function(){return _.Hm(L().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.Hm(L().rendererContext)!==void 0?0:void 0},
"on:keypress":X},_.D("div",{class:_.qn("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(L().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var J="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:J="ytThumbnailHoverOverlayViewModelStyleCover"}return J})},_.D(_.e,{cond:function(){return L().icon},
then:function(J){return _.D(_.XV,{data:J,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.D(_.e,{cond:function(){return L().text},
then:function(J){return _.D(_.Xg,{text:J,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"X");
mL.idomCompat=!0;var G36=_.xa(function(A){var L=A.data;return _.D(_.ID,{data:function(){return L==null?void 0:L().overlays}},{thumbnailHoverOverlayViewModel:mL})},"Y");
G36.idomCompat=!0;var l66={};var cbn=_.xa(function(A){var L=A.data;var O=A.image;var X=A.state;var x=A.iconType;var J=A.overlays;var Y=A.isOverlay;var T=_.kw("div");A=_.d(_.uQ(!0,void 0,"sUzEZ"));var V=A.next().value,E=A.next().value,n=function(){return!!L().onTap},t=_.LT(x,"LIVE");
_.ND(function(){var S=L();requestAnimationFrame(function(){if(T.value===null)var w=!0;else{var l=T.value;w=S.badgeText;var F=YK_(S.size);w in l66?l=l66[w]:(l=l.clientWidth,l66[w]=l);(w=l>F)?T.value.style.display="none":T.value.style.visibility="visible"}E(w)})},"SpVcNb");
var b=function(){var S={};return S["yt-spec-avatar-shape__image"]=!0,S["yt-spec-avatar-shape__image--ads-app"]=L().type===1,S};
return _.D("yt-avatar-shape",null,_.D("div",{el:_.sC(Tgs(n,{keydown:function(S){if(S.key==="Enter"){var w;(w=S.currentTarget)==null||w.click()}},
click:function(S){var w,l;return void((l=(w=L()).onTap)==null?void 0:l.call(w,S))}})),
class:function(){var S={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},w=L();S=(S[w.clusterLayoutConfig?e99(w.clusterLayoutConfig):E_D(w.size)]=!0,S["yt-spec-avatar-shape__button--tappable"]=n(),S);(w=L().avatarButtonCustomClassName)&&(S[w]=!0);return _.gl(S)},
"aria-label":function(){return n()?L().accessibilityText:""},
role:function(){return n()?"button":void 0},
tabindex:function(){return n()?0:void 0}},_.D("div",{class:function(){var S,w=L(),l=X==null?void 0:X(),F=Y==null?void 0:Y(),R=!((S=w.decorations)==null||!S.includes(2)||w.size!=="medium"&&w.size!=="large"),y=w.size==="tiny"||w.size==="extra-small",M,H,z,a,xe={};
S=(xe["yt-spec-avatar-shape--live-ring"]=!!(((M=w.decorations)==null?0:M.includes(0))&&tUp(w.size)),xe["yt-spec-avatar-shape--stories-watched"]=R&&!(l==null||!l.storiesWatched),xe["yt-spec-avatar-shape--stories-unwatched"]=R&&!(l==null?0:l.storiesWatched),xe["yt-spec-avatar-shape--background-border"]=baM(w.decorations)&&!y,xe["yt-spec-avatar-shape--background-border-thin"]=baM(w.decorations)&&y,xe["yt-spec-avatar-shape__on-select-border"]=!((H=w.decorations)==null||!H.includes(4)),xe["yt-spec-avatar-shape__white-border"]=
!((z=w.decorations)==null||!z.includes(5)),xe["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((a=w.decorations)==null?0:a.includes(5))&&y),xe["yt-spec-avatar-shape--is-overlay"]=!!F,xe);return _.gl(S)},
style:function(){a:{var S=L().clusterLayoutConfig;if(S){b:{var w=S.numAvatarsInCluster;var l=S.avatarIndex;if(l!==w-1){switch(S.clusterSize){case "small":S="32";break;case "medium":S="36";break;case "40":S="40";break;default:w=void 0;break b}w="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+S+"x"+S+"_avatars_"+w+"_index_"+l+".svg"}else w=void 0}if(w){w=_.rl({"-webkit-mask-image":"url("+w+")","mask-image":"url("+w+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}w=void 0}return w}},_.D("div",{class:function(){var S={};
var w=L();S=(S[w.clusterLayoutConfig?VUM(w.clusterLayoutConfig):D4s(w.size)]=!0,S["yt-spec-avatar-shape--no-margin"]=baM(L().decorations),S);return _.gl(S)}},_.D(_.XV,{data:O,
alt:function(){return!n()&&L().accessibilityText?L().accessibilityText:""},
targetWidth:function(){return n__(L().size)},
targetHeight:function(){return n__(L().size)},
className:function(){return _.gl(b())}}),_.D(_.e,{cond:function(){var S;
return((S=L().decorations)==null?void 0:S.includes(0))&&tUp(L().size)},
then:function(){return _.D("div",{class:function(){var S={};S=(S["yt-spec-avatar-shape__live-badge"]=!0,S["yt-spec-avatar-shape__live-badge--badge-small"]=L().size==="small",S["yt-spec-avatar-shape__live-badge--badge-medium"]=L().size==="medium"||L().size==="48",S["yt-spec-avatar-shape__live-badge--badge-large"]=L().size==="large",S["yt-spec-avatar-shape__live-badge--badge-extra-large"]=L().size==="extra-large"||L().size==="extra-extra-large"||L().size==="giant",S);return _.gl(S)}},_.D(_.e,{cond:function(){return L().badgeText},
then:function(S){return _.D("div",{class:"yt-spec-avatar-shape__badge-text",el:T},S)}}),_.D(_.e,{cond:V,
then:function(){return _.D("div",{class:"yt-spec-avatar-shape__badge-icon"},_.D(_.Ky,{icon:t,size:function(){a:switch(L().size){case "extra-large":var S=16;break a;default:S=13}return S}}))}}))}}),_.D(_.e,{cond:function(){var S,w;
return((S=L().decorations)==null?void 0:S.includes(1))||((w=L().decorations)==null?void 0:w.includes(0))&&!tUp(L().size)},
then:function(){return _.D("div",{class:function(){var S=L(),w,l,F={};var R=(F["yt-spec-avatar-shape__live-dot"]=!((w=S.decorations)==null||!w.includes(0)||tUp(S.size)),F["yt-spec-avatar-shape__new-content"]=!((l=S.decorations)==null||!l.includes(1)),F);return _.gl(R)}})}}),_.D(_.e,{cond:function(){return!!J},
then:function(){return _.D("div",{class:function(){var S={};S=Object.assign((S["yt-spec-avatar-shape__image-overlays"]=!0,S),b());return _.gl(S)}},J==null?void 0:J())}})))))},"Z");
cbn.idomCompat={callbacks:{overlays:!0}};_.fP=_.xa(function(A){function L(){O().endpoint&&_.$a(O().endpoint)}
var O=A.data;var X=A.decorations;var x=A.avatarButtonCustomClassName;var J=A.isOverlay;var Y=A.clusterLayoutConfig;return _.D("avatar-view-model",null,_.D(_.e,{cond:function(){return O().image},
then:function(T){return _.D(cbn,{data:function(){return SKd({data:O(),onTap:O().endpoint?L:void 0,decorations:X==null?void 0:X(),badgeText:void 0,accessibilityText:O().accessibilityText,avatarButtonCustomClassName:x==null?void 0:x(),clusterLayoutConfig:Y==null?void 0:Y()})},
image:T,iconType:"RADAR_LIVE",overlays:function(){return _.D(G36,{data:O})},
isOverlay:J})}}))},"$");
_.fP.idomCompat=!0;_.I4=_.xa(function(A){var L=A.data;A=A.className;var O=_.kw("yt-decorated-avatar-view-model"),X=function(){return _.q(L().avatar,_.MV)},x=_.E4(function(){var J,Y=L(),T=X(),V=_.Hm(L().rendererContext),E=(J=O.value)!=null?J:void 0,n;
if(T){E={data:Y,avatar:T,onTap:V,element:E};J=E.data;Y=E.avatar;T=E.onTap;V=E.element;E=E.commandController;T=T?pU_(T,V,E):void 0;V=[];J.liveData&&V.push(0);var t;E=(t=J.liveData)==null?void 0:t.liveBadgeText;t=(n=_.q(J.rendererContext,_.ll))==null?void 0:n.label;n=SKd({data:Y,onTap:T,decorations:V,badgeText:E,accessibilityText:t?t:J.a11yLabel})}else n={size:"medium"};return n},void 0,"H8tk9d");
return _.D("yt-decorated-avatar-view-model",{class:_.qn("yt-decorated-avatar-view-model-wiz",A),el:O},_.D(_.e,{cond:function(){var J;return(J=X())==null?void 0:J.image},
then:function(J){return _.D(cbn,{data:x,image:J,iconType:"RADAR_LIVE",overlays:function(){return _.D(G36,{data:X})}})}}))},"aa");
_.I4.idomCompat=!0;_.yh=_.xa(function(A){var L=function(){var T;return Object.assign({},A.data(),(T=A.overrides)==null?void 0:T.call(A))},O=function(){return _.zP(L().rendererContext)},X=function(){var T=L().avatars,V,E;
return(E=(V=(T==null?0:T[0])?_.q(T[0],_.MV):void 0)==null?void 0:V.avatarImageSize)!=null?E:"AVATAR_SIZE_UNKNOWN"},x=function(){return wUP(L())},J=function(){if(L().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var T=void 0;
else if((T=A.decorations)==null?0:T.call(A))T=A.decorations();else{T=L();var V=0;T.avatars&&(V+=T.avatars.length);T.decoratedText&&(V+=1);T=V>1?[3]:[]}return T},Y={};
return _.D("yt-avatar-stack-view-model",{el:_.sC(_.Bm(function(){return L().rendererContext})),
class:_.qn("yt-avatar-stack-view-model-wiz",A.className,(Y["yt-avatar-stack-view-model-wiz--tappable"]=O,Y["yt-avatar-stack-view-model-wiz--is-overlay"]=A.isOverlay,Y["yt-avatar-stack-view-model-wiz--medium-text"]=A.useMediumText,Y)),tabindex:function(){return O()?0:void 0},
role:function(){return O()?"link":void 0},
"aria-label":function(){var T,V;return(V=(T=_.q(L().rendererContext,_.ll))==null?void 0:T.label)!=null?V:""}},_.D(_.e,{cond:function(){var T;
return L().avatars&&!((T=A.hideAvatar)==null?0:T.call(A))},
then:function(){return _.D("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.D(_.e,{cond:function(){return L().decoratedText},
then:function(T){var V={};return _.D("div",{class:_.qn("yt-avatar-stack-view-model-wiz__text-container",(V["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return X()==="AVATAR_SIZE_XXS"||X()==="AVATAR_SIZE_XS"},V["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var E;
return((E=A.isOverlay)==null?void 0:E.call(A))&&(X()==="AVATAR_SIZE_XXS"||X()==="AVATAR_SIZE_XS")},V)),
style:_.rl({width:function(){return x().avatarSizeInPx+"px"},
height:function(){return x().avatarSizeInPx+"px"}})},_.D(_.Xg,{text:T,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.D("div",{style:function(){return _.rl(x().avatarStackStyle)()},
class:function(){return x().avatarStackClass}},_.D(_.ID,{data:function(){return x().avatars.reverse()}},{avatarViewModel:function(T,V){return _.D("div",{style:function(){var E,n;
return _.rl((n=(E=x()).avatarStyle)==null?void 0:n.call(E,V()))()},
class:function(){return x().avatarClass}},_.D(_.fP,{data:T.data,
decorations:J,avatarButtonCustomClassName:function(){return x().avatarButtonCustomClassName},
isOverlay:A.isOverlay,clusterLayoutConfig:function(){var E,n;return(n=(E=x()).clusterLayoutConfig)==null?void 0:n.call(E,V())}}))},
decoratedAvatarViewModel:function(T,V){return _.D("div",{style:function(){var E,n;return _.rl((n=(E=x()).avatarStyle)==null?void 0:n.call(E,V()))()},
class:function(){return x().avatarClass}},_.D(_.I4,{data:T.data}))}})))}}),_.D(_.e,{cond:function(){return L().text},
then:function(T){return _.D(_.Xg,{text:T,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"ba");
_.yh.idomCompat=!0;_.Y4(_.xa(function(A){var L=A.data;var O=A.thumbnailSize;return _.D("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.D("div",{class:_.qn("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return iau(O==null?void 0:O())})},_.D(_.ID,{data:function(){return L().avatarStack}},{avatarStackViewModel:function(X){return _.D(_.yh,{data:X.data,
decorations:[5]})}})))},"ca"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.x5,
thumbnailSize:_.x5}});var CqL=_.xa(function(A){A=_.OY(A,{hidden:!1});var L=A.data;return _.D("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:A.hidden},_.D(_.Xg,{text:function(){return L().title},
className:"yt-thumbnail-overlay-title-view-model__title"}),_.D(_.e,{cond:function(){return L().subtitle},
then:function(){return _.D(_.Xg,{text:function(){return L().subtitle},
className:"yt-thumbnail-overlay-title-view-model__subtitle"})}}))},"da");
CqL.idomCompat=!0;_.Y4(CqL,"yt-thumbnail-overlay-title-view-model",{props:{data:_.x5,hidden:_.x5}});var Fr7=_.xa(function(A){A=_.OY(A,{isClip:!1});var L=A.data,O=A.thumbnailSize,X={};return _.D("yt-thumbnail-overlay-badge-view-model",{class:_.qn("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(L().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var x="yt-thumbnail-overlay-badge-view-model-wiz--top-start";break a;default:x="yt-thumbnail-overlay-badge-view-model-wiz--bottom-end"}return x},function(){return Ngu(O==null?void 0:O())},(X["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
A.isClip,X))},_.D(_.ID,{data:function(){return L().thumbnailBadges}},{thumbnailBadgeViewModel:function(x){return _.D(rbN,{data:x.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"ea");
Fr7.idomCompat=!0;_.Y4(Fr7,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.x5,thumbnailSize:_.x5,isClip:_.x5}});_.Xh(rby);_.tF(rby,"yt-page-indicator-view-model",{propNames:["data"]});var Zk=function(){var A=_.G.apply(this,arguments)||this;A.eventSink=function(){return A};
A.disableInteraction=!1;A.noRoundedCorners=!1;A.isPreviewLoading=!1;A.isOriginalAspectRatio=!1;A.computedObjectFit=!1;A.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return A};
_.g(Zk,_.G);_.P=Zk.prototype;
_.P.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayBottomPanelRenderer:{component:"ytd-thumbnail-overlay-bottom-panel-renderer",properties:{overlayColor:"[[overlayColor]]"}},thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayResumePlaybackRenderer:{component:"ytd-thumbnail-overlay-resume-playback-renderer",properties:{isLive:"[[isLiveVideo]]"}},thumbnailOverlaySidePanelRenderer:{component:"ytd-thumbnail-overlay-side-panel-renderer",properties:{width:"[[thumbnailOverlaySidePanelWidth_]]",
bottomPanel:"[[bottomSidePanel]]",richGridOverlay:"[[richGridThumbnail]]",watchFeedOverlay:"[[watchFeedThumbnail]]"}},thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayNowPlayingRenderer:{component:"ytd-thumbnail-overlay-now-playing-renderer",properties:{isVideoPlaying:"[[isVideoPlaying]]",equalizerOnly:"[[nowPlayingEqualizerOnly]]",isActive:"[[data.selected]]",videoId:"[[data.videoId]]"}},thumbnailOverlayPinkingRenderer:"ytd-thumbnail-overlay-pinking-renderer",
thumbnailOverlayDownloadingRenderer:{component:"ytd-thumbnail-overlay-downloading-renderer",params:{active:!0}},thumbnailOverlayIconRenderer:"ytd-thumbnail-overlay-icon-renderer",thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model",pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailBottomOverlayViewModel:"yt-thumbnail-bottom-overlay-view-model",thumbnailOverlayAvatarStackViewModel:"thumbnail-overlay-avatar-stack-view-model",thumbnailOverlayBadgeViewModel:{component:"yt-thumbnail-overlay-badge-view-model",
properties:{thumbnailSize:"[[thumbnailSize]]"}}},initialRenderPriority:_.h("defer_overlays")?1:void 0,waitForSignal:void 0},hoverOverlays_:{id:"hover-overlays",reuseComponents:!1,mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayInlineUnplayableRenderer:"ytd-thumbnail-overlay-inline-unplayable-renderer",thumbnailOverlayToggleButtonRenderer:{component:"ytd-thumbnail-overlay-toggle-button-renderer",properties:{disableTooltips:"[[disableTooltips]]",
eventSink:"[[eventSink]]",useExpandableTooltip:"[[useExpandableTooltip]]"}},thumbnailOverlayButtonRenderer:{component:"ytd-thumbnail-overlay-button-renderer",properties:{disableTooltips:"[[disableTooltips]]",eventSink:"[[eventSink]]"}},thumbnailOverlayEndorsementRenderer:"ytd-thumbnail-overlay-endorsement-renderer",thumbnailOverlayLoadingPreviewRenderer:{component:"ytd-thumbnail-overlay-loading-preview-renderer",properties:{isPreviewLoading:"[[isPreviewLoading]]"}}}},richThumbnail:{id:"mouseover-overlay",
mapping:{movingThumbnailRenderer:{component:"ytd-moving-thumbnail-renderer",properties:{trackingParams:"[[data.trackingParams]]",videoId:"[[data.videoId]]"}}},renderPriority:2,waitForSignal:"eocs"}}};
_.P.onImageLoaded=function(){this.loaded=!0};
_.P.onImageUnloaded=function(){this.loaded=!1};
_.P.computeRichThumbnail=function(A,L,O,X){if(A&&L&&!X&&!_.h("disable_moving_thumbs_handling")&&!O)return L};
_.P.computeImageWidth=function(A,L){return L||9999};
_.P.computeIsOriginalAspectRatio=function(A){return A};
_.P.computeIsLive=function(A){if(A==null?0:A.badges)for(var L=0;L<A.badges.length;L++){var O=A.badges[L];if(O.metadataBadgeRenderer&&O.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(A==null?0:A.thumbnailOverlays)for(L=0;L<A.thumbnailOverlays.length;L++)if(O=A.thumbnailOverlays[L],O.thumbnailOverlayTimeStatusRenderer&&O.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.P.computeObjectFit=function(A,L){return L||(A?"CONTAIN":"")};
_.P.computeNavigationEndpoint=function(A,L,O){return A?L:O};
_.P.computeHasClip=function(A){A=_.d(A||[]);for(var L=A.next();!L.done;L=A.next())if(L.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.P.computeOverlayColor=function(A){var L;return(A==null?0:(L=A.darkColorPalette)==null?0:L.section2Color)?A.darkColorPalette.section2Color:A==null?void 0:A.sampledThumbnailColor};
_.v2.Object.defineProperties(Zk.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return vQd(this.width)}}});
Zk.prototype.onImageUnloaded=Zk.prototype.onImageUnloaded;Zk.prototype.onImageLoaded=Zk.prototype.onImageLoaded;_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],Zk.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Zk.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(e56),_.Z("design:type",Object)],Zk.prototype,"ytdThumbnailBehavior",void 0);
_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],Zk.prototype,"componentBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],Zk.prototype,"ytdReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Zk.prototype,"data",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],Zk.prototype,"circular",void 0);
_.I([_.K({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.Z("design:type",Object)],Zk.prototype,"richThumbnail",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.Z("design:type",Boolean)],Zk.prototype,"hasClip",void 0);_.I([_.K(),_.Z("design:type",Object)],Zk.prototype,"eventSink",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Zk.prototype,"queued",void 0);
_.I([_.K({value:!1}),_.Z("design:type",Boolean)],Zk.prototype,"richGridThumbnail",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],Zk.prototype,"useExpandableTooltip",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],Zk.prototype,"useUntranslatedNavigationEndpoint",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Zk.prototype,"disableInteraction",void 0);
_.I([_.K({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.Z("design:type",Object)],Zk.prototype,"computedNavigationEndpoint",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Zk.prototype,"nowPlayingEqualizerOnly",void 0);_.I([_.K({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],Zk.prototype,"hidePlaybackStatus",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",String)],Zk.prototype,"objectFit",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Zk.prototype,"noRoundedCorners",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],Zk.prototype,"watchFeedThumbnail",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Zk.prototype,"isPreviewLoading",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.Z("design:type",Object)],Zk.prototype,"isOriginalAspectRatio",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.Z("design:type",Object)],Zk.prototype,"computedObjectFit",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.Z("design:type",Boolean)],Zk.prototype,"isLiveVideo",void 0);
_.I([_.K({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],Zk.prototype,"loaded",void 0);_.I([_.K({computed:"computeOverlayColor(data.thumbnail)"}),_.Z("design:type",Object)],Zk.prototype,"overlayColor",void 0);_.I([_.K({selector:_.W0e}),_.Z("design:type",Boolean)],Zk.prototype,"inlinePreviewIsEnabled",void 0);_.I([_.K(),_.Z("design:type",Number)],Zk.prototype,"width",void 0);
_.I([_.r("inlinePreviewIsEnabled"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Zk.prototype,"isPreviewDisabled",null);_.I([_.r("width"),_.Z("design:type",String),_.Z("design:paramtypes",[])],Zk.prototype,"thumbnailSize",null);_.I([_.by("image-loaded"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Zk.prototype,"onImageLoaded",null);
_.I([_.by("image-unloaded"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Zk.prototype,"onImageUnloaded",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail"})],Zk);
var R96=_.DX()(Zk,"ytd-thumbnail",function(){if(iaJ===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);iaJ=A}A=iaJ;return A},{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 cbJ=function(A){var L=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$15885_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$15885_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(O){QwN(L,O)};
this.onLockupMouseLeaveFn=function(O){O=O.relatedTarget;var X,x;((X=document.getElementsByTagName("ytd-video-preview"))==null?0:(x=X.item(0))==null?0:x.contains(O))||(L.terminateVideoPreview(),jS(L))};
this.onThumbnailMouseDownFn=function(){L.terminateVideoPreview();jS(L)};
this.onTouchStart=function(){L.JSC$15885_touched=!0};
this.mediaRenderer=A.mediaRenderer;this.thumbnailElement=A.thumbnailElement;this.lockupElement=A.lockupElement;this.videoPreviewOptsInput=A.videoPreviewOpts;m4n(this);Wk(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)):
_.Rv(Error("Bh")):_.Rv(Error("Ch")):f6L(this)},sr=function(A){f6L(A);
var L;(L=A.lockupElement)==null||L.removeEventListener("mouseenter",A.onMouseMoveFn);var O;(O=A.lockupElement)==null||O.removeEventListener("mouseleave",A.onLockupMouseLeaveFn);var X;(X=A.lockupElement)==null||X.removeEventListener("touchstart",A.onTouchStart);var x;(x=A.thumbnailElement)==null||x.removeEventListener("mousedown",A.onThumbnailMouseDownFn);jS(A)},m4n=function(A){A.inlinePreviewIsEnabledForUser=_.Ai().getState().ui.inlinePreviewIsEnabled;
A.unsubscribeFromInlinePreviewIsEnabled=_.Ge(_.Ai(),_.W0e,function(L){(A.inlinePreviewIsEnabledForUser=L)||jS(A)});
A.JSC$15885_unsubscribeFromInlinePreviewIsActive=_.Ge(_.Ai(),_.jsJ,function(L){(A.inlinePreviewIsActive=L)||jS(A)})},f6L=function(A){A.unsubscribeFromInlinePreviewIsEnabled();
A.unsubscribeFromInlinePreviewIsEnabled=function(){};
A.JSC$15885_unsubscribeFromInlinePreviewIsActive();A.JSC$15885_unsubscribeFromInlinePreviewIsActive=function(){}},QwN=function(A,L){L.buttons>0||(L=_.PO("kevlar_lockup_hover_delay",-1),A.JSC$15885_touched&&L>=0?(_.c1.cancelJob(A.videoPreviewJobId),A.videoPreviewJobId=_.et(_.c1,function(){I6n(A)},L),A.JSC$15885_touched=!1):I6n(A))},jVe=function(A){A.videoPreviewJobId=_.et(_.c1,function(){var L,O,X,x;
return _.u(function(J){if(J.nextAddress==1){if(!Wk(A))return J.return();L=A.getVideoPreviewOpts();if(!L)return J.return();L.isAutoplay=!0;return(X=(O=_.YK(A.mediaRenderer.hostElement,"yt-open-video-preview-action",[L]))&&O[0])?J.yield(O[0],3):J.jumpTo(2)}J.nextAddress!=2&&(X=J.yieldResult===1);X&&G3d((x=A.mediaRenderer)==null?void 0:x.data);_.qo(J)})})},I6n=function(A){!A.previewTriggered&&Wk(A)&&(A.inlinePreviewIsActive&&A.terminateVideoPreview(),A.previewTriggered=!0,A.mediaRenderer.isInlinePreviewTriggered=
!0,_.c1.cancelJob(A.videoPreviewJobId),A.videoPreviewJobId=_.et(_.c1,function(){var L,O,X,x;
return _.u(function(J){if(J.nextAddress==1){if(!Wk(A))return J.return();L=A.getVideoPreviewOpts();return L?(X=(O=_.YK(A.mediaRenderer.hostElement,"yt-open-video-preview-action",[L]))&&O[0])?J.yield(O[0],3):J.jumpTo(2):J.return()}J.nextAddress!=2&&(X=J.yieldResult===1);X&&G3d((x=A.mediaRenderer)==null?void 0:x.data);_.qo(J)})}))};
cbJ.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var A,L;if((L=(A=this.videoPreviewOptsInput)==null?void 0:A.videoPreviewData)!=null)A=L;else if(A=this.mediaRenderer.data)if(KrO(A))A={inlinePlaybackEndpoint:_.HR(A.inlinePlayerData.onVisible),navigationEndpoint:_.HR(A.onTap),thumbnail:"image"in A?A.image:A.thumbnail,thumbnailOverlays:void 0,accessibilityText:l6d(A)};else if("multipleInlinePlaybackEndpoint"in A){var O=_.q(_.q(A.multipleInlinePlaybackEndpoint,xzJ),sMV);if(O!=
null&&O.playerDescriptors){L=[];O=_.d(O.playerDescriptors);for(var X=O.next();!X.done;X=O.next())X=X.value,L.push({inlinePlaybackEndpoint:X.inlinePlaybackEndpoint,navigationEndpoint:X.navigationEndpoint,thumbnail:X.thumbnail,thumbnailOverlays:X.thumbnailOverlays,accessibilityText:l6d(A)});A=L}else A=void 0}else A={inlinePlaybackEndpoint:A.inlinePlaybackEndpoint,navigationEndpoint:A.navigationEndpoint,thumbnail:A.thumbnail,thumbnailOverlays:A.thumbnailOverlays,accessibilityText:l6d(A)};else A=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:A,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var Wk=function(A){var L;if(L=A.inlinePreviewIsEnabledForUser)L=(A=A.mediaRenderer.data)?"inlinePlaybackEndpoint"in A&&A.inlinePlaybackEndpoint||KrO(A)&&A.inlinePlayerData||"multipleInlinePlaybackEndpoint"in A&&A.multipleInlinePlaybackEndpoint?!0:!1:!1;return L};
cbJ.prototype.terminateVideoPreview=function(){_.dQ(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var jS=function(A){_.c1.cancelJob(A.videoPreviewJobId);A.inlinePreviewIsActive=!1;A.previewTriggered=!1;A.mediaRenderer.isInlinePreviewTriggered=!1};var ybg=_.AW(["#"]),Hk=function(){var A=_.G.apply(this,arguments)||this;A.isDisabled=!1;return A};
_.g(Hk,_.G);_.P=Hk.prototype;_.P.configureRendererStamper=function(){return{"data.menu":wI,"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.P.attached=function(){this.updateInlinePreviewHoverListeners()};
_.P.detached=function(){this.clearInlinePreviewHoverListeners()};
_.P.getMetadata=function(A){var L=[];if(A.metadataText&&Object.keys(A.metadataText).length>0){var O=this.ytRendererBehavior.getSimpleString(A.metadataText);A.upcomingEventData&&A.upcomingEventData.upcomingEventText&&(O=_.yd(O,Number(A.upcomingEventData.startTime)));L.push(O)}else A.shortViewCountText&&L.push(this.ytRendererBehavior.getSimpleString(A.shortViewCountText)),A.publishedTimeText&&L.push(this.ytRendererBehavior.getSimpleString(A.publishedTimeText)),A.upcomingEventData&&A.upcomingEventData.upcomingEventText&&
(O=this.ytRendererBehavior.getSimpleString(A.upcomingEventData.upcomingEventText),L.push(_.yd(O,Number(A.upcomingEventData.startTime))));return L};
_.P.calculateBylineText=function(A){return A.shortBylineText?A.shortBylineText:A.bylineText?A.bylineText:null};
_.P.calculateIsDisabled=function(A){return!!A.isDisabled};
_.P.computeHrefWithDefault=function(A){return this.ytComponentBehavior.computeHref_(A)||_.oWe(ybg)};
_.P.onDetailsTap=function(A){var L=this.data&&this.data.navigationEndpoint;L&&!_.xu(_.oa(A)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.h("kevlar_grid_video_renderer_killswitch")?_.P4(this.hostElement,"yt-navigate",{endpoint:L}):this.ytComponentBehavior.resolveCommand(L))};
_.P.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.P.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15890_inlinePreviewHoverListener=$u({mediaRenderer:this,lockupElement:_.YJ(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.YJ(this.hostElement).querySelector("ytd-thumbnail")})};
_.P.clearInlinePreviewHoverListeners=function(){var A;(A=this.JSC$15890_inlinePreviewHoverListener)==null||sr(A)};
_.P.computeThumbnailWidth=function(A,L){return L&&L>0?L:A?360:210};
_.P.computeShowChannelThumbnail=function(A,L){var O;return L&&!!(A==null?0:(O=A.channelThumbnailSupportedRenderers)==null?0:O.channelThumbnailWithLinkRenderer)};
_.v2.Object.defineProperties(Hk.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.JSC$15890_inlinePreviewHoverListener)==null?0:Wk(A))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Hk.prototype.dataChanged=Hk.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Hk.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],Hk.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Hk.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.BL),_.Z("design:type",Object)],Hk.prototype,"ytdDismissibleItemBehavior",void 0);
_.I([_.N(_.of),_.Z("design:type",Object)],Hk.prototype,"ytdLockupBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],Hk.prototype,"ytdReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Hk.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Boolean)],Hk.prototype,"noEndpoints",void 0);_.I([_.K({computed:"calculateBylineText(data)"}),_.Z("design:type",Object)],Hk.prototype,"bylineText",void 0);
_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],Hk.prototype,"isSearch",void 0);_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],Hk.prototype,"isDownloading",void 0);_.I([_.K({reflectToAttribute:!0,value:0}),_.Z("design:type",Number)],Hk.prototype,"width",void 0);_.I([_.K({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.Z("design:type",Object)],Hk.prototype,"isDisabled",void 0);
_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Hk.prototype,"dataChanged",null);_.I([_.r("lockupIsHovered"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Hk.prototype,"isHovered",null);_.I([_.Q({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],Hk);
_.m(Hk,"ytd-grid-video-renderer",function(){if(D4c!==void 0)return D4c;var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return D4c=A},{mode:_.e5("kevlar_poly_si_batch_j047")?1:2});var ZaJ;var zw=function(){var A=_.G.apply(this,arguments)||this;A.roundedContainer=!0;A.skipRoundingTop=!1;A.disableTopPadding=!1;A.amsterdamEnabled=_.h("enable_desktop_amsterdam_info_panels");return A};
_.g(zw,_.G);zw.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
zw.prototype.onClick=function(A){var L,O=(L=this.data)==null?void 0:L.sourceEndpoint;!_.xu(_.oa(A),this.hostElement,["A".toString()])&&O&&_.P4(this.hostElement,"yt-navigate",{endpoint:O})};
_.v2.Object.defineProperties(zw.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 A;return!((A=this.data)==null||!A.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var A,L;return(L=(A=this.data)==null?void 0:A.paragraphMaxLines)!=null?L:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],zw.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],zw.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],zw.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],zw.prototype,"showVerticalDividers",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],zw.prototype,"roundedContainer",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],zw.prototype,"skipRoundingTop",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],zw.prototype,"disableTopPadding",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],zw.prototype,"amsterdamEnabled",void 0);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],zw.prototype,"showMetadataAtTop",null);
_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],zw.prototype,"showMetadataBelowTitle",null);_.I([_.K({reflectToAttribute:!0}),_.r("data.menu"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],zw.prototype,"hasMenu",null);_.I([_.K({reflectToAttribute:!0}),_.r("data.truncateParagraphs"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],zw.prototype,"truncateParagraphs",null);
_.I([_.K({reflectToAttribute:!0}),_.r("data.paragraphMaxLines"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],zw.prototype,"paragraphMaxLines",null);_.I([_.K({type:_.h("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.r("data.background"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],zw.prototype,"background",null);_.I([_.Q({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],zw);
_.m(zw,"ytd-info-panel-content-renderer",function(){if(ZaJ!==void 0)return ZaJ;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return ZaJ=A},{mode:_.e5("kevlar_poly_si_batch_j076")?1:2});var jwu;var WrL;var HaH;var z9L;var Bk=function(){return _.G.apply(this,arguments)||this};
_.g(Bk,_.G);Bk.prototype.computeStyle=function(A){return A};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Bk.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Bk.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Z("design:type",String)],Bk.prototype,"style_",void 0);_.I([_.yU({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],Bk);
_.m(Bk,"yt-channel-thumbnail-with-link-renderer",function(){if(z9L===void 0){var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;HaH===void 0&&(HaH=document.createElement("template"));var X=HaH;O.call(L,X.content.cloneNode(!0),A.content.firstChild);z9L=A}A=z9L;return A},{mode:2});var Mf=function(){var A=_.G.apply(this,arguments)||this;A.modernTypography=_.h("web_modern_typography");return A};
_.g(Mf,_.G);Mf.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"}}}};
Mf.prototype.computeTitleStyle=function(A){return A||null};
Mf.prototype.computeAvatarStyle=function(A){return A||null};
Mf.prototype.computeShowNavigationButton=function(A,L){return!(A==null||!A.navigationButton||L)};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Mf.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Mf.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Mf.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.Z("design:type",String)],Mf.prototype,"titleStyle",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.Z("design:type",String)],Mf.prototype,"avatarStyle",void 0);_.I([_.K(),_.Z("design:type",Boolean)],Mf.prototype,"hideNavigationButton",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Mf.prototype,"isModernSd",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Mf.prototype,"modernTypography",void 0);
_.I([_.Q({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],Mf);
_.m(Mf,"ytd-rich-list-header-renderer",function(){if(WrL!==void 0)return WrL;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return WrL=A},{mode:_.e5("kevlar_poly_si_batch_j058")?1:2});var $Z=function(){return _.G.apply(this,arguments)||this};
_.g($Z,_.G);$Z.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]]"}}}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],$Z.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],$Z.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],$Z.prototype,"data",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],$Z.prototype,"isSearch",void 0);_.I([_.Q({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],$Z);
_.m($Z,"ytd-preview-card-renderer",function(){if(jwu!==void 0)return jwu;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return jwu=A},{mode:1});var BgJ;var a4=function(){return _.G.apply(this,arguments)||this};
_.g(a4,_.G);a4.prototype.configureRendererStamper=function(){return{"data.menu":wI}};
a4.prototype.dataChanged=function(){var A=this.get("colorExtractionPalette.section1Color",this.data);A=_.Wy(A);_.eq(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":A})};
a4.prototype.computeCardStyle=function(A){return this.get("style.value",A)||null};
a4.prototype.dataChanged=a4.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],a4.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],a4.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.BL),_.Z("design:type",Object)],a4.prototype,"ytdDismissibleItemBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],a4.prototype,"data",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.Z("design:type",String)],a4.prototype,"cardStyle",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],a4.prototype,"dataChanged",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],a4);
_.m(a4,"ytd-compact-channel-recommendation-card-renderer",function(){if(BgJ!==void 0)return BgJ;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return BgJ=A},{mode:1});var MUN;var $4N;var kZ=function(){var A=_.G.apply(this,arguments)||this;A.alignAuto=!1;A.collapsed=!0;A.isToggled=!1;A.alwaysCollapsed=!1;A.canToggle=!0;A.collapsedHeight=80;A.disableToggle=!1;A.alwaysToggleable=!1;A.reversed=!1;A.shouldUseNumberOfLines=!1;A.recomputeOnResize=!1;A.canToggleJobId=0;A.lastReversed=!1;return A};
_.g(kZ,_.G);_.P=kZ.prototype;_.P.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.P.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.P.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var A=_.YJ(this.hostElement),L=A.childNodes,O=document.createDocumentFragment(),X=A.childNodes.length-1;X>=0;X--)_.YJ(O).appendChild(L[X]);_.h("enable_shadydom_free_scoped_node_methods")?_.uy(this.hostElement).appendChild(O):A.appendChild(O)}};
_.P.ready=function(){var A=this;_.MR(function(){A.initChildrenObserver()},1)};
_.P.attached=function(){var A;(A=this.resizeObserver)==null||A.observe(this.content)};
_.P.detached=function(){this.detachObserver()};
_.P.toggle=function(A,L){this.canToggle&&(this.isToggled=L,_.P4(this.hostElement,"yt-refit"),A&&A.stopPropagation())};
_.P.reset=function(){this.childrenChanged()};
_.P.onIronResize=function(){this.recomputeOnResize&&!_.h("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.P.computeIsMoreVisible=function(A,L){return A&&!L};
_.P.computeShouldUseNumberOfLines=function(A){try{return!!A&&window.CSS.supports("-webkit-line-clamp","1")}catch(L){}return!1};
_.P.computeIsLessVisible=function(A,L){return A&&L};
_.P.observeCollapsedHeightAndMaxLines=function(){var A=this.collapsedHeight,L=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.eq(this.hostElement,{"--ytd-expander-max-lines":""+L,"--ytd-expander-collapsed-height":""}):_.eq(this.hostElement,{"--ytd-expander-collapsed-height":A+"px","--ytd-expander-max-lines":""})};
_.P.handleMoreTap=function(A){this.disableToggle||(_.P4(this.hostElement,"yt-expander-more-tapped"),this.toggle(A,!0))};
_.P.handleLessTap=function(A){_.P4(this.hostElement,"yt-expander-less-tapped");this.toggle(A,!1)};
_.P.initChildrenObserver=function(){var A=this;this.observer=new MutationObserver(function(){A.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.h("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.Of(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var L;(L=A.resizeThrottle)==null||L.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.P.childrenChanged=function(){var A=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){Dr(function(){A.canToggleJobId=0;A.calculateCanCollapse()})}))};
_.P.calculateCanCollapse=function(){this.canToggle=this.shouldUseNumberOfLines?this.alwaysToggleable||this.isToggled||this.content&&this.content.offsetHeight<this.content.scrollHeight:this.alwaysToggleable||this.isToggled||this.content&&this.content.scrollHeight>this.collapsedHeight};
_.P.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()};
_.P.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.A3("collapsed-changed",this.collapsed))};
_.P.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.A3("is-toggled-changed",this.isToggled))};
_.P.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.A3("can-toggle-changed",this.canToggle))};
_.v2.Object.defineProperties(kZ.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
kZ.prototype.canToggleChangedForBinding=kZ.prototype.canToggleChangedForBinding;kZ.prototype.isToggledChangedForBinding=kZ.prototype.isToggledChangedForBinding;kZ.prototype.collapsedChangedForBinding=kZ.prototype.collapsedChangedForBinding;kZ.prototype.observeCollapsedHeightAndMaxLines=kZ.prototype.observeCollapsedHeightAndMaxLines;kZ.prototype.onIronResize=kZ.prototype.onIronResize;kZ.prototype.reversedChanged=kZ.prototype.reversedChanged;kZ.prototype.toggledChanged=kZ.prototype.toggledChanged;
kZ.prototype.alwaysToggleableChanged=kZ.prototype.alwaysToggleableChanged;_.I([_.N(_.y9),_.Z("design:type",Object)],kZ.prototype,"ironResizableBehavior",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],kZ.prototype,"alignAuto",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],kZ.prototype,"collapsed",void 0);_.I([_.K(),_.Z("design:type",Object)],kZ.prototype,"isToggled",void 0);_.I([_.K(),_.Z("design:type",Object)],kZ.prototype,"alwaysCollapsed",void 0);
_.I([_.K(),_.Z("design:type",Object)],kZ.prototype,"canToggle",void 0);_.I([_.K(),_.Z("design:type",Object)],kZ.prototype,"collapsedHeight",void 0);_.I([_.K(),_.Z("design:type",Object)],kZ.prototype,"disableToggle",void 0);_.I([_.K(),_.Z("design:type",Object)],kZ.prototype,"alwaysToggleable",void 0);_.I([_.K(),_.Z("design:type",Object)],kZ.prototype,"reversed",void 0);_.I([_.K(),_.Z("design:type",Number)],kZ.prototype,"maxNumberOfLines",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.Z("design:type",Object)],kZ.prototype,"shouldUseNumberOfLines",void 0);_.I([_.K(),_.Z("design:type",Object)],kZ.prototype,"recomputeOnResize",void 0);_.I([_.qR("#content"),_.Z("design:type",HTMLDivElement)],kZ.prototype,"content",void 0);_.I([_.iy("alwaysToggleable"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],kZ.prototype,"alwaysToggleableChanged",null);
_.I([_.iy("isToggled"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],kZ.prototype,"toggledChanged",null);_.I([_.r("canToggleJobId"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],kZ.prototype,"isResetting",null);_.I([_.hT("reversed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],kZ.prototype,"reversedChanged",null);
_.I([_.by("iron-resize"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],kZ.prototype,"onIronResize",null);_.I([_.hT("maxNumberOfLines","collapsedHeight"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],kZ.prototype,"observeCollapsedHeightAndMaxLines",null);_.I([_.hT("collapsed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],kZ.prototype,"collapsedChangedForBinding",null);
_.I([_.hT("isToggled"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],kZ.prototype,"isToggledChangedForBinding",null);_.I([_.hT("canToggle"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],kZ.prototype,"canToggleChangedForBinding",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-expander"})],kZ);
_.m(kZ,"ytd-expander",function(){if($4N!==void 0)return $4N;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return $4N=A},{mode:1});var Ud=function(){return _.G.apply(this,arguments)||this};
_.g(Ud,_.G);Ud.prototype.computeIsCarousel=function(A){return!!A.isCarousel};
Ud.prototype.observeLightsourcePalette=function(){var A,L=(A=this.data)==null?void 0:A.vibrantsourceColorPaletteData;L&&_.fy(this.hostElement,L)};
Ud.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
Ud.prototype.observeLightsourcePalette=Ud.prototype.observeLightsourcePalette;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Ud.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Ud.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Ud.prototype,"data",void 0);_.I([_.K({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],Ud.prototype,"isCarousel",void 0);
_.I([_.hT("data.vibrantsourceColorPaletteData"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ud.prototype,"observeLightsourcePalette",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],Ud);
_.m(Ud,"ytd-media-upsell-renderer",function(){if(MUN!==void 0)return MUN;var A=document.createElement("template");_.p(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-media-upsell-renderer">\n  <div class="image-wrapper style-scope ytd-media-upsell-renderer">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-media-upsell-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-media-upsell-renderer" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="details style-scope ytd-media-upsell-renderer">\n    <div class="metadata-wrapper style-scope ytd-media-upsell-renderer">\n      <span id="media-title" hidden="[[!data.mediaTitle]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.mediaTitle)]]\n      </span>\n      <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.metadata)]]\n      </span>\n    </div>\n    <div id="action-button" class="style-scope ytd-media-upsell-renderer"></div>\n  </div>\n</div>\n<ytd-expander id="expander" hidden="[[data.isCarousel]]" max-number-of-lines="4" class="style-scope ytd-media-upsell-renderer">\n  <yt-formatted-string id="synopsis" slot="content" disable-upgrade$="[[!data.synopsis]]" hidden="[[data.isCarousel]]" text="[[data.synopsis]]" class="style-scope ytd-media-upsell-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-media-upsell-renderer" slot="more-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="drop-down-icon" icon="EXPAND" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-media-upsell-renderer" slot="less-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="drop-up-icon" icon="COLLAPSE" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return MUN=A},{mode:2});var a6g;var vk=function(){var A=_.G.apply(this,arguments)||this;A.JSC$15918_playerEvents=new Map;A.listeningToPlayer=!1;A.startX=0;A.active=!1;A.shouldShowButtons=_.h("web_buttons_hidden_killswitch");A.isHighlighted=!1;A.useHighlightStyling=_.h("web_enable_deeper_metadata_highlight_styling");A.modern=_.h("kevlar_modern_sd");A.enableProblemWalkthrough=_.h("problem_walkthrough_sd");return A};
_.g(vk,_.G);_.P=vk.prototype;
_.P.configureRendererStamper=function(){return{"data.shareButton":{id:"share-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[customButtonProperties]]"}}}},"data.repeatButton":{id:"repeat-button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{overrides:"[[customButtonProperties]]"}}}},"data.thumbnailOverlay":{id:"overlay",mapping:{thumbnailOverlayNowPlayingRenderer:{component:"ytd-thumbnail-overlay-now-playing-renderer",params:{isVideoPlaying:!0}}}}}};
_.P.created=function(){this.JSC$15918_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.P.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.tT(this,this.onRepeatButtonToggle));_.h("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.tT(this,this.onActiveUpdate))};
_.P.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.tT(this,this.onRepeatButtonToggle));_.h("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.tT(this,this.onActiveUpdate))};
_.P.onDataChanged=function(){this.removePlayerListeners()};
_.P.onColorPaletteChange=function(){var A={},L;if(_.C3()==="USER_INTERFACE_THEME_DARK"&&((L=this.data)==null?0:L.darkColorPalette)){var O=this.data.darkColorPalette;A["--ytd-macro-markers-list-item-background-color"]=_.Hy(this.get("section2Color",O))}else{var X;_.C3()==="USER_INTERFACE_THEME_LIGHT"&&((X=this.data)==null?0:X.lightColorPalette)&&(O=this.data.lightColorPalette,A["--ytd-macro-markers-list-item-background-color"]=_.Hy(this.get("section3Color",O)))}O?(A["--ytd-macro-markers-list-item-title-color"]=
_.Hy(this.get("primaryTitleColor",O)),A["--ytd-macro-markers-list-item-secondary-color"]=_.Hy(this.get("secondaryTitleColor",O)),A["--ytd-macro-markers-list-item-timestamp-background-color"]=_.Hy(this.get("section1Color",O)),this.customButtonProperties={customColors:{color:_.Hy(this.get("primaryTitleColor",O))}},this.useColorSampling=!0):(A["--ytd-macro-markers-list-item-background-color"]="initial",A["--ytd-macro-markers-list-item-title-color"]="initial",A["--ytd-macro-markers-list-item-secondary-color"]=
"initial",A["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.eq(this.hostElement,A)};
_.P.onEndpointMouseDown=function(A){this.startX=A.clientX};
_.P.onEndpointClick=function(A){var L=this,O,X,x;return _.u(function(J){if(J.nextAddress==1){if(L.startX!==A.clientX)return A.preventDefault(),J.return();L.data&&L.ytRendererBehavior.logExplicitClick(L.data);if(!L.seekWithAnimationOnClick)return J.jumpTo(0);if(A.button!==0||A.shiftKey||A.altKey||A.metaKey||A.ctrlKey||_.xu(_.oa(A),L.hostElement,["BUTTON".toString()]))return J.return();A.stopPropagation();A.preventDefault();return L.data?J.yield(_.Yu().getPlayerPromise(),3):J.return()}O=J.yieldResult;
x=(X=_.q(L.data.onTap,_.$O))==null?void 0:X.startTimeSeconds;x!==void 0&&O.seekToTimeWithAnimation(x*1E3,_.vG(L.data.title));_.qo(J)})};
_.P.computeLayout=function(A){return A};
_.P.computeIsHighlighted=function(A){return!!A};
_.P.computeCarouselType=function(A){return A};
_.P.hideModernCarousel=function(A){return this.modern&&this.hideThumbnail(A)};
_.P.hideThumbnail=function(A){return this.enableProblemWalkthrough&&A!==null&&A==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.P.onRepeatButtonToggle=function(A){var L=this;A.detail.toggled&&_.Yu().getPlayerPromise().then(function(O){L.ytPlayerListenerBehavior.listenToPlayerEvents(O,L.JSC$15918_playerEvents);L.listeningToPlayer=!0})};
_.P.onLoopRangeChange=function(A){var L=_.YJ(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(L){var O=L.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",L.polymerController.data);if(O){var X=Number(O.endTimeMs);if(Number(O.startTimeMs)!==(A==null?void 0:A.startTimeMs)||X!==(A==null?void 0:A.endTimeMs))L.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.P.removePlayerListeners=function(){var A=this;this.listeningToPlayer&&_.Yu().getPlayerPromise().then(function(L){A.ytPlayerListenerBehavior.unlistenFromPlayerEvents(L,A.JSC$15918_playerEvents);A.listeningToPlayer=!1})};
_.P.onActiveUpdate=function(A){this.active=A.detail.active};
vk.prototype.onColorPaletteChange=vk.prototype.onColorPaletteChange;vk.prototype.onDataChanged=vk.prototype.onDataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],vk.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],vk.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.LE.YtPlayerListenerBehavior),_.Z("design:type",_.Oo)],vk.prototype,"ytPlayerListenerBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],vk.prototype,"data",void 0);_.I([_.K({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],vk.prototype,"useCustomColors",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],vk.prototype,"active",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],vk.prototype,"shouldShowButtons",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.Z("design:type",String)],vk.prototype,"layout",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.Z("design:type",Object)],vk.prototype,"isHighlighted",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],vk.prototype,"useHighlightStyling",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],vk.prototype,"modern",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],vk.prototype,"enableProblemWalkthrough",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.Z("design:type",String)],vk.prototype,"carouselType",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],vk.prototype,"useColorSampling",void 0);_.I([_.K(),_.Z("design:type",Boolean)],vk.prototype,"seekWithAnimationOnClick",void 0);_.I([_.K(),_.Z("design:type",Object)],vk.prototype,"customButtonProperties",void 0);
_.I([_.qR("#repeat-button"),_.Z("design:type",HTMLElement)],vk.prototype,"repeatButton",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vk.prototype,"onDataChanged",null);_.I([_.hT("data.lightColorPalette","data.darkColorPalette"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vk.prototype,"onColorPaletteChange",null);_.I([_.Q({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],vk);
_.m(vk,"ytd-macro-markers-list-item-renderer",function(){if(a6g!==void 0)return a6g;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return a6g=A},{mode:1});var k3J;var U4H;var o4=function(){var A=_.G.apply(this,arguments)||this;A.modernTypography=_.h("web_modern_typography");return A};
_.g(o4,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],o4.prototype,"ytRendererBehavior",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],o4.prototype,"modernTypography",void 0);_.I([_.K(),_.Z("design:type",Object)],o4.prototype,"data",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],o4);
_.m(o4,"ytd-title-and-button-list-header-renderer",function(){if(U4H!==void 0)return U4H;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return U4H=A},{mode:1});var v_N;var o_L=new _.Yx("BUTTON_RENDERER_WIZ_TOKEN"),Ahu=new _.Yx("BUTTON_RENDERER_TOKEN");_.AN=_.xa(function(A){var L=_.X5().resolve(_.Ot(o_L));if(L)return _.D(L,Object.assign({},A));var O=_.X5().resolve(Ahu);return O?_.D(eOu,null,function(){return _.D(UN,null,function(){var X,x,J,Y,T,V,E,n,t,b,S,w;return void O(A.data(),{onButtonClickCallback:A.onButtonClickCallback,shouldShowIcons:(X=A.shouldShowIcons)==null?void 0:X.call(A),icon:(x=A.icon)==null?void 0:x.call(A),processAllEndpoints:(J=A.processAllEndpoints)==null?void 0:J.call(A),preventDefault:(Y=A.preventDefault)==null?void 0:Y.call(A),
stopPropagation:(T=A.stopPropagation)==null?void 0:T.call(A),disableButtonRendererClickHandling:(V=A.disableButtonRendererClickHandling)==null?void 0:V.call(A),className:(E=A.className)==null?void 0:E.call(A),buttonOverrides:(n=A.buttonOverrides)==null?void 0:n.call(A),forceModernIconButton:(t=A.forceModernIconButton)==null?void 0:t.call(A),isSubscribe:(b=A.isSubscribe)==null?void 0:b.call(A),alignByText:(S=A.alignByText)==null?void 0:S.call(A),forceDisabled:(w=A.forceDisabled)==null?void 0:w.call(A)})})}):
_.D(_.Xs,null)},"fa");
_.AN.idomCompat=!0;var Lq6=_.xa(function(A){var L=A.data,O=_.LT(A.useSquareAspectRatio,!1);return _.D("dismissed-mini-game-card-view-model",null,_.D(_.e,{cond:function(){var X,x;return(X=L().responseText)==null?void 0:(x=X.runs)==null?void 0:x.length},
then:function(){var X={};return _.D("div",{class:_.qn("yt-mini-game-card-view-model__dismissed-card",(X["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!O()},X["yt-mini-game-card-view-model--dismissed-square-card"]=O,X))},_.D("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.D(_.e,{cond:function(){return L().responseText.runs[0].text},
then:function(x){return _.D("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:x},x)}}),_.D(_.ID,{data:function(){return L().buttons}},{buttonRenderer:_.AN,
buttonViewModel:_.gj})))}}))},"ga");var dZN=_.xa(function(A){A=_.OY(A,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var L=A.data,O=A.useFullWidth,X=A.isDesktopWeb,x=A.addSearchResultTopMargin,J=function(){return L().layout},Y=function(){return L().title},T=function(){return L().metadataText?L().metadataText:L().genre},V=function(){return L().channelName},E=function(){return L().image},n=function(){return L().colorPalette},t=function(){return L().actionButton},b=function(){return L().overflowButton},
S=function(){return L().avatar},w=function(){var y={};
y=_.qn("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(y["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return X()},y));
return _.D("div",{class:y},_.D(OW6,{imageData:E,colorPalette:n}),_.D(Xeu,{onTap:function(){return L().onTap},
imageData:E,accessibilityText:function(){return L().accessibilityText},
overlayBadgeText:function(){return L().overlayBadgeText},
iconName:function(){return L().iconName},
unplayableInlinePlaybackIconName:function(){return L().unplayableInlinePlaybackIconName},
isDesktopWeb:X}),_.D(_.e,{cond:function(){return!X()},
then:function(){return _.D(_.Xs,null,_.D(xZu,{layout:J,colorPalette:n,isDesktopWeb:X,overflowButton:b,avatar:S,onTap:function(){return L().onTap},
genre:T,title:Y,channelName:V}),_.D(su6,{actionButton:t}))}}))},l=function(){var y={};
y=_.qn((y["yt-mini-game-card-view-model--search-result-desktop"]=function(){return X()},y["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!X()},y["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return x()},y));
return _.D("div",{class:y},w(),_.D(JhJ,{description:function(){return L().description},
isDesktopWeb:X,title:Y,genre:T,onTap:function(){return L().onTap},
actionButton:t,overflowButton:b,avatar:S,channelName:V}))},F=function(){var y={};
y=_.qn("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(y["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return X()},y["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return X()&&L().width===135},y["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return X()},y["yt-mini-game-card-view-model--big-metadata-font"]=function(){return L().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},y["yt-mini-game-card-view-model--use-full-width"]=
function(){return O()},y["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!t()},y));
return _.D("div",{class:y},_.D(PMu,{colorPalette:n,isDesktopWeb:X,onTap:function(){return L().onTap},
accessibilityText:function(){return L().accessibilityText},
overlayBadgeText:function(){return L().overlayBadgeText},
iconName:function(){return L().iconName},
unplayableInlinePlaybackIconName:function(){return L().unplayableInlinePlaybackIconName},
actionButton:t,imageData:E}),_.D(xZu,{layout:J,colorPalette:n,isDesktopWeb:X,overflowButton:b,avatar:S,onTap:function(){return L().onTap},
genre:T,title:Y,channelName:V}))},R=function(){var y={};
y=_.qn("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(y["yt-mini-game-card-view-model--square-card-desktop"]=function(){return X()},y["yt-mini-game-card-view-model--use-full-width"]=function(){return O()},y));
return _.D("div",{class:y},_.D(Xeu,{onTap:function(){return L().onTap},
imageData:E,accessibilityText:function(){return L().accessibilityText},
overlayBadgeText:function(){return L().overlayBadgeText},
iconName:function(){return L().iconName},
unplayableInlinePlaybackIconName:function(){return L().unplayableInlinePlaybackIconName},
isDesktopWeb:X}),_.D(xZu,{layout:J,colorPalette:n,isDesktopWeb:X,overflowButton:b,avatar:S,onTap:function(){return L().onTap},
genre:T,title:Y,channelName:V}))};
return _.D("mini-game-card-view-model",{class:A.className},_.D(_.ik,null,_.D(_.w9,{when:function(){return J()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return F()}),_.D(_.w9,{when:function(){return J()==="MINI_APP_LAYOUT_SQUARE"}},function(){return R()}),_.D(_.w9,{when:function(){return J()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return l()})))},"ha");
dZN.idomCompat=!0;var su6=_.xa(function(A){var L=_.LT(A.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.D(_.ID,{data:A.actionButton},{buttonViewModel:function(O){return _.D("div",{class:L},_.D(_.gj,{data:O.data}))}})},"ia"),Xeu=_.xa(function(A){var L=A.onTap;
var O=A.imageData;var X=A.accessibilityText;var x=A.overlayBadgeText;var J=A.iconName;var Y=A.unplayableInlinePlaybackIconName;A=A.isDesktopWeb;return _.D(_.aD,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:L},_.D(_.XV,{data:O,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(X==null?void 0:X())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.D(YZN,{overlayBadgeText:x,iconName:J,unplayableInlinePlaybackIconName:Y,isDesktopWeb:A}))},"ja"),YZN=_.xa(function(A){var L=A.overlayBadgeText;
var O=A.iconName;var X=A.unplayableInlinePlaybackIconName;var x=A.isDesktopWeb;return _.D("div",{class:"yt-mini-game-card-view-model__badge-container"},_.D(_.e,{cond:O,then:function(J){return _.D("div",{class:"yt-mini-game-card-view-model__badge"},_.D("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.D(_.Ky,{icon:J,className:"yt-mini-game-card-view-model__icon",size:12}),_.D("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},L)))}}),_.D(_.e,{cond:function(){return!O()&&
L()},
then:function(){return _.D("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},L)}}),_.D(_.e,{cond:function(){return X()&&x()},
then:function(){return _.D("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.D(_.Ky,{icon:X,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"ka"),OW6=_.xa(function(A){var L=A.colorPalette;
var O=A.imageData;var X=function(){return L().vibrantColorPalette?L().vibrantColorPalette.section2Color:L().sectionTwoColor};
return _.D(_.Xs,null,_.D("div",{class:"yt-mini-game-card-view-model__background-base",style:_.rl({"background-color":function(){return zm(X(),"1")}})}),_.D("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.rl({"background-image":function(){return"url("+O().sources[0].url+")"}})}),_.D("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.rl({background:function(){return"linear-gradient(180deg,\n    "+zm(X(),".8")+" 0%,\n    "+zm(X(),".4")+" 25%,\n    "+zm(L().vibrantColorPalette?L().vibrantColorPalette.section4Color:L().sectionFourColor,".8")+" 100%)"}})}))},"la"),xZu=_.xa(function(A){var L=A.layout;
var O=A.colorPalette;var X=A.overflowButton;var x=A.avatar;var J=A.onTap;var Y=A.title;var T=A.channelName;var V=A.genre;var E=function(){var n;return L()!=="MINI_APP_LAYOUT_SQUARE"&&((n=O())==null?0:n.textPrimaryColor)?"color: "+zm(O().textPrimaryColor,".7"):""};
return _.D("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.D(_.e,{cond:x,then:function(){return _.D("div",{class:"yt-mini-game-card-view-model__avatar"},_.D(_.ID,{data:x},{avatarViewModel:_.fP}))}}),_.D(_.aD,{command:J,
className:"yt-mini-game-card-view-model__metadata-details"},_.D("h3",{class:"yt-mini-game-card-view-model__title",title:Y},Y),_.D(_.e,{cond:x,then:function(){return _.D("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.D("span",{class:"yt-mini-game-card-view-model__genre",title:T,style:E},T),_.D("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:E},V))},
else:function(){return _.D("span",{class:"yt-mini-game-card-view-model__genre",title:V},V)}})),_.D("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.D(_.ID,{data:X},{buttonViewModel:function(n){var t=n.data;
return _.D(_.gj,{data:function(){return Object.assign({},t(),{customFontColor:L()==="MINI_APP_LAYOUT_SINGLETON"?t().customFontColor:void 0})}})}})))},"ma"),PMu=_.xa(function(A){var L=A.colorPalette;
var O=A.isDesktopWeb;var X=A.onTap;var x=A.accessibilityText;var J=A.overlayBadgeText;var Y=A.iconName;var T=A.unplayableInlinePlaybackIconName;var V=A.actionButton;A=A.imageData;return _.D("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.D(OW6,{imageData:A,colorPalette:L}),_.D(Xeu,{onTap:X,imageData:A,accessibilityText:x,overlayBadgeText:J,iconName:Y,unplayableInlinePlaybackIconName:T,isDesktopWeb:O}),_.D(_.e,{cond:function(){return V==null?void 0:V()},
then:function(){return _.D(su6,{actionButton:V})}}))},"na"),JhJ=_.xa(function(A){var L=A.description;
var O=A.isDesktopWeb;var X=A.title;var x=A.genre;var J=A.onTap;var Y=A.actionButton;var T=A.overflowButton;var V=A.avatar;A=A.channelName;var E={};E=_.qn("yt-mini-game-card-view-model--search-result-metadata-wrapper",(E["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=O,E["yt-mini-game-card-view-model--show-unplayable-on-hover"]=O,E["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!O()},E));
var n={};n=_.qn("yt-mini-game-card-view-model__search-result-info-row",(n["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!O()},n));
return _.D("div",{class:E},_.D("div",{class:n},_.D(_.aD,{command:J,className:"yt-mini-game-card-view-model__metadata-details"},_.D("h3",{class:"yt-mini-game-card-view-model__title",title:X},X),_.D("span",{class:"yt-mini-game-card-view-model__genre",title:x},x)),_.D(su6,{actionButton:Y,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.D("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.D(_.ID,{data:T},{buttonViewModel:_.gj}))),_.D("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.D("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.D("div",{class:"yt-mini-game-card-view-model__avatar"},_.D(_.ID,{data:V},{avatarViewModel:function(t){var b=t.data;return _.D(_.fP,{data:function(){return Object.assign({},b(),{avatarImageSize:O()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.D(_.aD,{command:J,
className:"yt-mini-game-card-view-model__description"},_.D("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},A)),_.D(_.aD,{command:J,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.D("div",null)))),_.D(_.e,{cond:O,then:function(){return _.D(_.aD,{command:J,className:"yt-mini-game-card-view-model__description"},L)}}))},"oa");_.Y4(dZN,"mini-game-card-view-model",{props:{data:_.x5,className:_.x5,useFullWidth:_.x5,isDesktopWeb:_.x5,addSearchResultTopMargin:_.x5}});_.Y4(Lq6,"dismissed-mini-game-card-view-model",{props:{data:_.x5,useSquareAspectRatio:_.x5}});var L0=function(){var A=_.G.apply(this,arguments)||this;A.isSearch=!1;A.isRichGrid=!1;return A};
_.g(L0,_.G);_.P=L0.prototype;_.P.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.P.dismissibleItemOnYtServiceRequestSent=function(A,L){L.actions&&this.dismissibleItemProcessActions(A,L.actions)};
_.P.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.P.dataChanged=function(){this.dismissibleItemReset()};
_.P.dismissibleItemProcessActions=function(A,L){for(var O=0;O<L.length;O++){var X=L[O];_.q(X,_.Cb)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.q(X,_.Cb)),A.stopPropagation())}};
_.P.dismissibleItemHandleReplaceEnclosingAction=function(A){this.dismissedRenderer=A.item;this.isDismissed=!0};
_.v2.Object.defineProperties(L0.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var A;return!!this.data&&!((A=this.dismissedRenderer)==null?0:A.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.dismissedRenderer)==null||!A.notificationMultiActionRenderer)}}});
L0.prototype.dataChanged=L0.prototype.dataChanged;L0.prototype.dismissibleItemOnRequestSent=L0.prototype.dismissibleItemOnRequestSent;L0.prototype.dismissibleItemOnYtServiceRequestSent=L0.prototype.dismissibleItemOnYtServiceRequestSent;_.I([_.K(),_.Z("design:type",Object)],L0.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],L0.prototype,"isSearch",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],L0.prototype,"isDismissed",void 0);
_.I([_.K(),_.Z("design:type",Object)],L0.prototype,"dismissedRenderer",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],L0.prototype,"isRichGrid",void 0);_.I([_.r("data.layout"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],L0.prototype,"useSquareAspectRatio",null);_.I([_.r("data","dismissedRenderer"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],L0.prototype,"showCard",null);
_.I([_.r("data","dismissedRenderer"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],L0.prototype,"showDismissed",null);_.I([_.by("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.aQ]),_.Z("design:returntype")],L0.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.I([_.by("yt-service-request-sent-button-renderer"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],L0.prototype,"dismissibleItemOnRequestSent",null);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],L0.prototype,"dataChanged",null);_.I([_.yU({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],L0);
_.m(L0,"ytd-mini-game-card-view-model",function(){if(v_N!==void 0)return v_N;var A=document.createElement("template");_.p(A,'\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>');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return v_N=A},{mode:_.e5("kevlar_poly_si_batch_j081")?1:2});var uNj;var TGL;var O8=function(){return _.oU.apply(this,arguments)||this};
_.g(O8,_.oU);O8.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
O8.prototype.getContinuationUrl=function(A){var L={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(L.itct=this.data.clickTrackingParams);return _.kL(A,L)};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],O8.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],O8.prototype,"data",void 0);_.I([_.yU({is:"yt-reload-continuation",noInjection:!0})],O8);var VP3;var DZ6;var X7=function(){var A=_.G.apply(this,arguments)||this;A.notificationData={};return A};
_.g(X7,_.G);_.P=X7.prototype;_.P.isMenuExpanded=function(A){return A&&A.length<=1?"undefined":"false"};
_.P.dataChanged_=function(){this.selected=void 0;var A=this.computeSelectedIndex_(this.data);A>=0&&(this.selected=A);A=this.data&&this.data.length>1;_.TK(this.hostElement,"has-items",A);_.YJ(this.hostElement).querySelector("#label").tabIndex=A?0:-1};
_.P.onDropdownOpen=function(){var A=_.Fn();if(this.parentTrackingParams&&this.data){var L=_.lV(this.parentTrackingParams);this.data.forEach(function(O){A&&L&&O.trackingParams&&(O=_.lV(O.trackingParams),_.W4(A,L,O),_.B4(A,[O]))})}else this.parentTrackingParams||_.Rv(new _.pe("No parent tracking params passed in for yt-dropdown-menu."))};
_.P.hasNotification=function(A){var L;if(A.targetId&&((L=this.notificationData)==null?0:L.targetId)){var O;return A.targetId===((O=this.notificationData)==null?void 0:O.targetId)}};
_.P.computeSelectedIndex_=function(A){if(A)for(var L=0,O=A.length;L<O;L++)if(A[L].selected)return L;return-1};
_.P.computeLabel_=function(A){return this.data&&A!=void 0?this.data[A].title:""};
_.P.computeShowIcon_=function(A,L){return!L&&!!A};
_.P.computeVerticalOffset_=function(A){return A?36:0};
_.P.computeEndpoint_=function(A){return A.endpoint||A.navigationEndpoint};
_.P.onLabelClick_=function(A){this.data&&this.data.length<=1?A.stopPropagation():this.menuExpanded="true"};
_.P.onIronActivate_=function(A){A=A.detail.item;var L=_.YJ(this.hostElement).querySelector("#repeat").itemForElement(A);if(L&&L.trackingParams){var O=_.Fn(),X=_.lV(L.trackingParams);O&&_.$K(O,X)}if(L&&L.serviceEndpoint)_.h("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(L.serviceEndpoint):_.TZ(this.hostElement,[L.serviceEndpoint]),_.P4(this.hostElement,"yt-playlist-reloading");else a:{if((L=A.querySelector("yt-supported-renderers"))&&
(L=L.rendererElement)&&L.is=="yt-reload-continuation"){L.trigger();break a}(A=A.querySelector("yt-reload-continuation"))&&A.trigger()}};
_.P.onTap_=function(A){A.preventDefault()};
_.P.onItemTap_=function(A){this.ytEndpointBehavior.onEndpointTap_(A)};
_.P.onLinkFocus_=function(A){try{var L=A.target}catch(X){}if(L){var O=L.querySelector("tp-yt-paper-item");O&&_.$J(this,"focus",function(){O.focus()})}};
_.P.onMenuClose_=function(){this.menuExpanded="false"};
_.P.isLabelIconActive_=function(A){return A==="true"};
_.P.computeHasSubtitle_=function(A){return!!A};
_.P.computeHrefForItem_=function(A){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(A))};
_.P.updateSelectedFromBinding=function(A){this.selected=A.detail.value};
_.v2.Object.defineProperties(X7.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
X7.prototype.onMenuClose_=X7.prototype.onMenuClose_;X7.prototype.onTap_=X7.prototype.onTap_;X7.prototype.onIronActivate_=X7.prototype.onIronActivate_;X7.prototype.onDropdownOpen=X7.prototype.onDropdownOpen;X7.prototype.dataChanged_=X7.prototype.dataChanged_;_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],X7.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.Nr.YtEndpointBehavior),_.Z("design:type",Object)],X7.prototype,"ytEndpointBehavior",void 0);
_.I([_.K(),_.Z("design:type",Array)],X7.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],X7.prototype,"parentTrackingParams",void 0);_.I([_.K(),_.Z("design:type",Object)],X7.prototype,"selected",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],X7.prototype,"useLabel",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],X7.prototype,"useComputedAriaLabel",void 0);_.I([_.K(),_.Z("design:type",String)],X7.prototype,"icon",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",String)],X7.prototype,"iconLabel",void 0);_.I([_.K(),_.Z("design:type",String)],X7.prototype,"ariaLabel",void 0);_.I([_.K({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],X7.prototype,"disabled",void 0);_.I([_.K({computed:"isMenuExpanded(data)"}),_.Z("design:type",String)],X7.prototype,"menuExpanded",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],X7.prototype,"closeOnActivate",void 0);
_.I([_.K({reflectToAttribute:!0,value:_.h("web_modern_buttons")}),_.Z("design:type",Boolean)],X7.prototype,"modernButtons",void 0);_.I([_.K(),_.Z("design:type",Object)],X7.prototype,"notificationData",void 0);_.I([_.r("ariaLabel, selected"),_.K(),_.Z("design:type",String),_.Z("design:paramtypes",[])],X7.prototype,"computedAriaLabel",null);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],X7.prototype,"dataChanged_",null);
_.I([_.by("paper-dropdown-open"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],X7.prototype,"onDropdownOpen",null);_.I([_.by("iron-activate"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],X7.prototype,"onIronActivate_",null);_.I([_.by("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],X7.prototype,"onTap_",null);
_.I([_.by("iron-overlay-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],X7.prototype,"onMenuClose_",null);_.I([_.yU({is:"yt-dropdown-menu",disableElementRegistration:!0})],X7);
_.m(X7,"yt-dropdown-menu",function(){if(DZ6===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;VP3===void 0&&(VP3=document.createElement("template"));var X=VP3;O.call(L,X.content.cloneNode(!0),A.content.firstChild);DZ6=A}A=DZ6;return A},{mode:2});var x6=function(){var A=_.G.apply(this,arguments)||this;A.hasNotification=!1;return A};
_.g(x6,_.G);x6.prototype.computeId=function(A){return A};
x6.prototype.computeHorizontalAlign=function(A){return A?"right":"left"};
x6.prototype.computeAccessibilityLabel=function(A){var L,O;return((L=A.accessibility)==null?void 0:(O=L.accessibilityData)==null?void 0:O.label)||null};
x6.prototype.notificationDataChanged=function(){var A;this.hasNotification=!!this.notificationData&&!((A=this.data)==null?0:A.icon)};
x6.prototype.notificationDataChanged=x6.prototype.notificationDataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],x6.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Uc.YtLiveChatTooltipTargetingBehavior),_.Z("design:type",Object)],x6.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],x6.prototype,"data",void 0);_.I([_.K({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.Z("design:type",String)],x6.prototype,"id",void 0);
_.I([_.K({value:!1}),_.Z("design:type",Boolean)],x6.prototype,"isRightAligned",void 0);_.I([_.K({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],x6.prototype,"disabled",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],x6.prototype,"closeOnActivate",void 0);_.I([_.K(),_.Z("design:type",Object)],x6.prototype,"notificationData",void 0);_.I([_.K(),_.Z("design:type",Object)],x6.prototype,"hasNotification",void 0);
_.I([_.K({value:!1}),_.Z("design:type",Boolean)],x6.prototype,"useComputedAriaLabel",void 0);_.I([_.hT("notificationData"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],x6.prototype,"notificationDataChanged",null);_.I([_.yU({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],x6);
_.m(x6,"yt-sort-filter-sub-menu-renderer",function(){if(TGL===void 0){var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;uNj===void 0&&(uNj=document.createElement("template"));var X=uNj;O.call(L,X.content.cloneNode(!0),A.content.firstChild);TGL=A}A=TGL;return A},{mode:2});var ezg=_.wl(Cqp);_.Xh(Cqp);_.Y4(ezg,"place-data-view-model",{props:{data:_.x5}});var Ek6=new _.Yx("INLINE_PLAYBACK_HOOK_TOKEN");var nkJ=function(A){this.setActiveSlideIndex=A;this.jobIds=[];this.isSlideshowPlaying=!1},hzu=function(A,L){A.isSlideshowPlaying||(A.isSlideshowPlaying=!0,tP3(A),bWn(A,L,0))},tP3=function(A){_.et(_.c1,function(){A.setActiveSlideIndex(0)},1)},bWn=function(A,L,O){A.jobIds.push(_.et(_.c1,function(){var X=O<L-1?O+1:0;
A.setActiveSlideIndex(X);bWn(A,L,X)},1800))};var SZg=new _.Yx("IMAGE_ON_LOAD_HANDLER_TOKEN");var qZ6=_.xa(function(A){return _.D("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.D(_.e,{cond:function(){var L;return(L=A.data())==null?void 0:L.thumbnail},
then:function(L){return _.D(_.XV,{data:L,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"pa");_.gk7=_.xa(function(A){var L=A.data;var O=A.lockupExperiments;A={};return _.D("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.D("div",{class:_.qn("ytThumbnailOverlayButtonViewModelButton",(A.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var X;return O&&((X=O())==null?void 0:X.useLegacySizedIconButton)},A))},_.D(_.ID,{data:function(){return L().overlayButton}},{buttonViewModel:function(X){return _.D(_.gj,{data:X.data,
buttonOverrides:function(){var x;return O&&((x=O())==null?0:x.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0}:void 0}})}})))},"qa");
_.gk7.idomCompat=!0;var we3=_.xa(function(A){return _.D("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.py(function(L){L.preventDefault();return!1})},_.D(_.ID,{data:function(){return A.data().buttons}},{toggleButtonViewModel:function(L){return _.D("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.D(_.fO,{data:L.data}))}}))},"ra");
we3.idomCompat=!0;var pe3=_.xa(function(A){var L=function(){var O;return((O=_.q(A.data().rendererContext,_.ll))==null?void 0:O.label)||""};
return _.D("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.D(_.e,{cond:function(){return A.data().image},
then:function(){return _.D("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.D(_.XV,{data:function(){return A.data().image},
alt:L}))}}),_.D(_.e,{cond:function(){return A.data().text},
then:function(){return _.D("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return A.data().text})}}))},"sa");_.s8=_.xa(function(A){var L=[],O=function(){var b,S;return vQd((b=A.width)==null?void 0:b.call(A),(S=A.height)==null?void 0:S.call(A))},X=_.X5().resolve(_.Ot(SZg)),x=_.av("yt-thumbnail-view-model",function(){L.push("elRef.value set");
var b;(b=A.playbackRef)==null||b.call(A,{thumbnailElRef:x,thumbnail:A.data().image,thumbnailOverlays:A.data().overlays,thumbnailSize:O()})});
_.GD(function(){L.push("onInit");_.rF(function(){L.push("onCleanup")})});
var J=_.zJ(R99),Y=function(){var b,S;return(S=(b=A.aspectRatio)==null?void 0:b.call(A))!=null?S:0},T=function(){return(A.data().image?_.nR9(A.data().image):Y())<=1&&Y()===0},V=function(){return T()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},E=function(){x.value||_.Rv(new _.pe("Thumbnail elRef.value is null",L.join("\n")));
X&&x.value&&X(x.value)},n=function(){var b,S;
return((b=A.hovered)==null?void 0:b.call(A))&&O()!=="large"&&((S=A.data().overlays)==null?void 0:S.some(function(w){return _.q(w,Drn)}))},t={};
return _.D("yt-thumbnail-view-model",{class:_.qn("yt-thumbnail-view-model",A.className,function(){return f6p(Y())},function(){var b,S;
a:{var w=O(),l=(b=A.disableRounding)==null?void 0:b.call(A);b=(S=A.isClip)==null?void 0:S.call(A);if(!l&&!b)switch(w){case "large":S="yt-thumbnail-view-model--large";break a;case "small":S="yt-thumbnail-view-model--small";break a;default:S="yt-thumbnail-view-model--medium";break a}S=void 0}return S},(t["yt-thumbnail-view-model--cinematic"]=T,t)),
style:_.rl({"background-color":function(){var b,S=T()?(b=A.data().backgroundColor)==null?void 0:b.lightTheme:void 0;return S?zm(S,"1"):void 0}}),
el:x},_.D(_.e,{cond:T,then:function(){return _.D("div",{class:"yt-thumbnail-view-model__blurred-image"},_.D(_.XV,{data:function(){return A.data().image},
alt:"",contentMode:V,targetWidth:A.width,onload:E}))}}),_.D("div",{class:"yt-thumbnail-view-model__image"},_.D(_.XV,{data:function(){return A.data().image},
alt:"",contentMode:V,targetWidth:A.width,onload:E}),null),_.D(_.ID,{data:function(){return n()?void 0:A.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:CqL,thumbnailOverlayBadgeViewModel:function(b){return _.D(Fr7,{data:b.data,thumbnailSize:O,isClip:A.isClip})},
thumbnailBottomOverlayViewModel:function(b){return _.D(Krj,{data:b.data,thumbnailSize:O,isClip:A.isClip})},
thumbnailOverlayFullViewModel:pe3,thumbnailOverlayButtonViewModel:function(b){return _.D(_.gk7,{data:b.data,lockupExperiments:A.lockupExperiments})}}),_.D(_.ID,{data:function(){var b;
return((b=A.hovered)==null?0:b.call(A))?A.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(b){return _.D(mL,{data:b.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:we3}),_.D(_.ID,{data:function(){var b;return((b=A.hovered)==null?0:b.call(A))&&J()?A.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:qZ6}),_.D(_.e,{cond:A.isClip,then:function(){return _.D("div",{class:"yt-pinking"},_.D("svg",{class:"yt-pinking__pinking-left"},_.D("defs",null,_.D("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.D("polygon",{class:"yt-pinking__pinking",points:"0,0 4,4 0,8"}))),_.D("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.D("svg",{class:"yt-pinking__pinking-right"},_.D("defs",null,_.D("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.D("polygon",{class:"yt-pinking__pinking",points:"4,0 0,4 4,8"}))),_.D("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"ta");
_.s8.idomCompat={callbacks:{playbackRef:!0}};var iWl=_.xa(function(A){var L=_.d(_.uQ(-1,void 0,"IOLZ0b")),O=L.next().value,X=L.next().value;_.GD(function(){var x=new nkJ(X);hzu(x,A.data().thumbnails.length);_.rF(function(){if(x.isSlideshowPlaying){x.isSlideshowPlaying=!1;for(var J=x.jobIds,Y=0,T=J.length;Y<T;Y++)_.c1.cancelJob(J[Y]);x.jobIds.length=0}})});
return _.D("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},_.D(_.ID,{data:function(){return A.data().thumbnails}},{thumbnailViewModel:function(x,J){return _.D("div",{class:function(){var Y=!A.data().primaryThumbnail,T=J(),V=O(),E=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];
Y&&T===0&&E.push("yt-collection-thumbnail-slideshow--first-slide");T<=V&&E.push("yt-collection-thumbnail-slideshow--show-slide");return E.join(" ")}},_.D(_.s8,{data:x.data,
disableRounding:A.disableRounding}))}}))},"ua");
iWl.idomCompat=!0;var I6J=new _.Yx("DWELL_DETECTOR_REGISTRY_TOKEN");var rh7=_.xa(function(A){var L=ybu(A.triggeringElement),O=function(){return!!A.data().primaryThumbnail},X=function(){var J,Y=(J=A.data())==null?void 0:J.maxHeight,T;
J=(T=A.maxHeight)==null?void 0:T.call(A);return Y!=null&&J!=null?Math.min(Y,J):J!=null?J:Y},x=function(){var J=X();
if(J){var Y;if(O()&&(Y=A.includeStackHeight)!=null&&Y.call(A)){var T;Y=((T=A.doubleStack)==null?0:T.call(A))?8:4}else Y=0;J=J-Y-1;if(!(J<0)){T=Math;Y=T.ceil;var V,E;var n=Ux_((E=(V=A.aspectRatio)==null?void 0:V.call(A))!=null?E:0);return Y.call(T,J*n)}}};
return _.D("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true",style:_.rl({height:function(){return X()?X()+"px":void 0},
width:function(){return x()?x()+"px":void 0}})},_.D(NGg,{stackEnabled:O,
thumbnailSize:function(){var J,Y;return vQd((J=A.width)==null?void 0:J.call(A),(Y=A.height)==null?void 0:Y.call(A))},
doubleStack:A.doubleStack,stackColor:function(){return A.data().stackColor},
includeStackHeight:A.includeStackHeight},_.D(_.ID,{data:function(){return A.data().primaryThumbnail}},{thumbnailViewModel:function(J){var Y={};
return _.D(_.s8,{data:J.data,width:A.width,height:A.height,aspectRatio:A.aspectRatio,disableRounding:A.disableRounding,className:_.qn((Y["yt-collection-thumbnail-view-model--has-stacks"]=O,Y)),hovered:A.hovered,playbackRef:A.playbackRef})}}),_.D(_.e,{cond:function(){var J;
return L()&&((J=A.data().thumbnails)==null?void 0:J.length)},
then:function(){return _.D("div",{class:"yt-collection-thumbnail-view-model__slideshow"},_.D(iWl,{data:A.data,disableRounding:function(){return!O()}}))}})))},"va");
rh7.idomCompat={callbacks:{playbackRef:!0}};
var NGg=_.xa(function(A){var L=A.children;var O=A.stackEnabled;var X=A.thumbnailSize;var x=A.doubleStack;var J=A.stackColor;var Y=A.includeStackHeight;var T,V=(T=_.X5().resolve(_.Ot(_.oy)))==null?void 0:T();return _.D(_.e,{cond:O,then:function(){return _.D(x4u,{data:function(){var E,n;return{experimentEnabled:!0,thumbnailSize:X(),doubleStack:x==null?void 0:x(),color:V?J==null?void 0:(E=J())==null?void 0:E.darkTheme:J==null?void 0:(n=J())==null?void 0:n.lightTheme,enableResponsiveMode:!1,includeStackHeight:Y==
null?void 0:Y()}}},L)},
else:function(){return L}})},"wa");var KqJ=new _.Yx("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var PQ;_.JN={calledOnce:!0,state:"visible"};PQ={calledOnce:!0,state:"hidden"};_.dn=_.xa(function(A){var L=A.data;var O=A.customCommandResolver;var X=A.className;var x=A.delayedClassName;var J=A.animationEntityKey;var Y=A.isCompactWidth;A=_.d(_.uQ(!1,void 0,"aSkCmb"));var T=A.next().value,V=A.next().value,E=_.LT(J,""),n=_.iS(Rtp,E),t=function(){var gu,ir;return(ir=(gu=n())==null?void 0:gu.value)!=null?ir:!1},b=function(){_.At(_.NV("booleanEntity",E(),{key:E(),
value:!0}));H=void 0};
J=_.d(_.Nn(t));var S=J.next().value,w=J.next().value;J=_.d(_.Nn(t));var l=J.next().value,F=J.next().value;J=_.d(_.Nn(function(){var gu;return t()?(gu=L().styleTransitionConfig)==null?void 0:gu.destinationStyle:void 0}));
var R=J.next().value,y=J.next().value,M=function(){var gu=Object.assign({},L(),R()&&{style:R()});var ir,SD,HJ=gu.label,mM=(ir=gu.interaction)==null?void 0:(SD=ir.accessibility)==null?void 0:SD.label;ir=gu.iconImage?gu.label&&gu.label.content?gu.iconLeading?"leading":"trailing":"icon-only":void 0;gu={formattedButtonText:HJ,accessibilityLabel:mM,style:Har(gu.style),type:z9p(gu.style),state:"active",size:Wrp(gu.size),iconPosition:ir,disabled:!1,aTagConfig:jw_(gu,O)};_.h("enable_desktop_vdcbg_components")&&
(gu.focused=T());return gu},H;
J=_.Oj({visibilityCallback:function(gu){var ir,SD=(ir=L().interaction)==null?void 0:ir.onFirstVisible;gu&&SD&&_.$a(SD)},
showOption:_.JN});var z=function(){return GJ(M(),!!L().iconImage)};
A={};X=_.qn(function(){return"ytwAdButtonViewModelHost"},function(){return L().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var gu=!!L().delayedAppearanceConfig,ir=S();
return gu?ir?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var gu=!!L().delayedAppearanceConfig,ir=l();
return gu?ir?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!L().delayedAppearanceConfig||S()?x==null?void 0:x():""},(A.ytwAdButtonViewModelHostCompactWidth=function(){return Y==null?void 0:Y()},A),X!=null?X:"");
var a=function(){var gu,ir=(gu=L().delayedAppearanceConfig)==null?void 0:gu.delayedInvisibleSeconds;ir&&(H=_.GP(_.c1,function(){w(!0);xe()},ir*1E3))},xe=function(){var gu,ir=(gu=L().delayedAppearanceConfig)==null?void 0:gu.delayedVisibleSeconds;
ir&&(H=_.GP(_.c1,function(){F(!0);ur()},ir*1E3))},ur=function(){var gu,ir=(gu=L().styleTransitionConfig)==null?void 0:gu.styleTransitionSeconds,SD,HJ=(SD=L().styleTransitionConfig)==null?void 0:SD.destinationStyle;
ir&&HJ?H=_.GP(_.c1,function(){y(HJ);b()},ir*1E3):b()},eD=function(){var gu;
return(gu=L().delayedAppearanceConfig)==null?void 0:gu.transitionDurationSeconds};
_.GD(function(){a()});
_.rF(function(){H&&_.c1.cancelJob(H)});
return _.D("ad-button-view-model",{"on:focusin":_.py(_.h("enable_desktop_vdcbg_components")?function(){var gu=_.X5().resolve(_.Ot(_.bv));gu&&V(gu.isKeyBoardInUse());return!1}:void 0),
"on:focusout":_.py(_.h("enable_desktop_vdcbg_components")?function(){V(!1);return!1}:void 0),
class:X,el:_.sC(J),style:_.rl({"transition-duration":function(){return eD()?eD()+"s":void 0}})},_.D(_.e,{cond:M,
then:function(){return _.D(_.xf,{data:M,icon:function(){return _.D(_.e,{cond:function(){return L().iconImage},
then:function(gu){return _.D(_.XV,{data:gu,alt:"",targetWidth:z,targetHeight:z,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"xa");var GEV=_.xa(function(A){var L=A.data;A=_.Oj({visibilityCallback:function(X){var x,J=(x=L().interaction)==null?void 0:x.onFirstVisible;X&&J&&_.$a(J)},
showOption:_.JN});var O={};return _.D("ad-button-group-view-model",{class:_.qn("ytwAdButtonGroupViewModelHost",(O.ytwAdButtonGroupViewModelHostCompactWidth=function(){return L().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"},O)),
el:_.sC(A)},_.D("div",{class:"ytwAdButtonGroupViewModelHostSecondaryButton"},_.D(_.ID,{data:function(){return L().secondaryAdButton}},{adButtonViewModel:function(X){return _.D(_.dn,{data:X.data})}})),_.D("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.D(_.ID,{data:function(){return L().primaryAdButton}},{adButtonViewModel:function(X){return _.D(_.dn,{data:X.data})}})))},"ya");var lou=_.xa(function(A){var L=function(){var O;return((O=A.data())==null?void 0:O.answers)||[]};
return _.D("yt-survey-icons",{class:"ytSurveyIconsHost"},_.D("div",{class:"ytSurveyIconsHeader"},_.D("div",{class:"ytSurveyIconsTitle"},function(){var O;return(O=A.data())==null?void 0:O.text}),_.D("div",null,_.D(_.xf,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var O;(O=A.onDismiss)==null||O.call(A)}}},
iconName:"DISMISSAL"}))),_.D("div",null,_.D("div",{class:"ytSurveyIconsAnswers"},_.D(_.g9,{each:function(){return L()},
keyBy:"INDEX"},function(O,X){return _.D("div",null,_.D(_.xf,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var x;(x=A.onSelect)==null||x.call(A,O(),X)}}},
icon:function(){return _.D(_.Ky,{icon:function(){var x,J;return(x=O())==null?void 0:(J=x.icon)==null?void 0:J.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.D("div",{class:"ytSurveyIconsAnswersText"},_.D("div",null,function(){return L().length?L()[0].text:""}),_.D("div",null,function(){return L().length?L()[L().length-1].text:""}))))},"za");var chc=_.xa(function(A){var L=_.sC(_.Bm(function(){var V;return(V=A.data())==null?void 0:V.rendererContext},void 0,void 0,void 0,!0)),O=_.d(_.uQ(!1,void 0,"YxWRNc")),X=O.next().value,x=O.next().value,J=_.iS(c5J,function(){var V;
return(V=A.data().keys)==null?void 0:V.surveyEntityKey}),Y=_.iS(Cfe,function(){var V;
return(V=A.data().keys)==null?void 0:V.surveyStateEntityKey});
_.$w("ytd-slimline-survey-show-action",function(){x(!1)});
var T=function(){var V,E;var n=(V=Y())==null?void 0:(E=V.questionStack)==null?void 0:E[0];if(n!==void 0){var t,b;return(t=J())==null?void 0:(b=t.questions)==null?void 0:b[n]}};
O={};return _.D("yt-slimline-survey-view-model",{el:L,class:_.qn("ytSlimlineSurveyViewModelHost",(O.ytSlimlineSurveyViewModelCollapsed=function(){return X()},O))},_.D("div",{class:"ytSlimlineSurveyViewModelContainer"},_.D(_.e,{cond:function(){var V;
return((V=T())==null?void 0:V.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.D(lou,{data:function(){return T()},
onSelect:function(V,E){var n,t;return _.u(function(b){x(!0);if(t=(n=A.data())==null?void 0:n.onSelectRating)_.$a(t),_.At(FPn(E));_.qo(b)})},
onDismiss:function(){x(!0);var V;var E=(V=J())==null?void 0:V.dismissalFeedbackToken;V=E?{feedbackEndpoint:{feedbackToken:E}}:void 0;V&&_.zi(V,{form:{element:L.value}})}})}})))},"Aa");var CMH=_.xa(function(A){return _.D("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.D(_.ID,{data:function(){var L;return(L=A.data())==null?void 0:L.attachments}},{flexibleActionsViewModel:function(L){return _.D("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.D(hug,{data:L.data,
layout:function(){var O;return((O=A.lockupStyle())==null?void 0:O.arrangement)===1?0:1},
justifyContentOverride:function(){var O;return((O=A.lockupStyle())==null?void 0:O.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(L){return _.D("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.D(chc,{data:L.data}))},
expandableMetadataViewModel:function(L){L=L.data;var O;return _.D("div",{class:_.qn("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(O=_.X5().resolve(_.Ot(KqJ)))==null?void 0:O({data:L}))},
adButtonGroupViewModel:function(L){return _.D("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.D(GEV,{data:L.data}))},
adButtonViewModel:function(L){return _.D("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.D(_.dn,{data:L.data,isCompactWidth:!0}))}}))},"Ba");var U4r=_.PO("rich_grid_min_item_width",310),a6u=_.PO("rich_grid_max_item_width",500);var Fq7=_.xa(function(A){var L=A.data;return _.D("br-nz-badge-shape",{class:_.qn(function(){return sud(L().brNzRatingBadgeType)}),
role:function(){return L().accessibilityText?"img":void 0},
"aria-label":function(){return L().accessibilityText}},function(){var O;
return(O=L())==null?void 0:O.text})},"Ca");_.Y6=_.xa(function(A){var L=function(){var O=A.data(),X,x;if(O){var J=!((X=A.workaroundShortsIsThumbnailBadge)==null||!X.call(A));X=(x=A.modern)==null?void 0:x.call(A);a:switch(O.badgeStyle){case "BADGE_OVERLAY":x=!0;break a;default:x=!1}O={type:J?17:Jhu(O.badgeStyle),brNzRatingBadgeType:PM_(O.badgeStyle),text:O.badgeText,icon:O.iconName,isOverlay:x,modern:X||_.h("web_modern_badge_view_model"),accessibilityText:O.accessibilityLabel}}else O=void 0;return O};
return _.D("yt-badge-view-model",{class:_.qn("yt-badge-view-model-wiz",A.class)},_.D(_.ik,null,_.D(_.w9,{when:function(){var O;return!((O=L())==null||!O.brNzRatingBadgeType)}},function(){return _.D(Fq7,{data:function(){return L()}})}),_.D(_.w9,{when:function(){return!!L()&&!L().brNzRatingBadgeType}},function(){return _.D(_.HW,{data:function(){return L()}})})))},"Da");
_.Y6.idomCompat=!0;var YZe,dZe;YZe=16/9;dZe=2/3;_.uG=_.xa(function(A){var L=A.data;var O=A.className;var X=A.imageSizeConfig;var x=A.notifyOnLoaded;var J=function(){return L().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},Y=function(){var b;
return _.zP((b=L())==null?void 0:b.rendererContext)};
A={};A=(A["yt-content-preview-image-view-model-wiz"]=!0,A["yt-content-preview-image-view-model-wiz--circle-image"]=function(){return J()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},A["yt-content-preview-image-view-model-wiz--tappable"]=function(){return Y()},A);
var T=function(){var b,S;return(S=(b=_.q(L().rendererContext,_.ll))==null?void 0:b.label)!=null?S:""},V=function(){return TGp(L())},E=function(){var b=uNO(J(),L().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",X==null?void 0:X(),VPD(V()),L().layoutWidth,L().layoutHeight),S=Object.assign({},b);
b.width&&(S.width=Math.round(b.width));b.height&&(S.height=Math.round(b.height));b.maxWidth&&(S.maxWidth=Math.round(b.maxWidth));b.maxHeight&&(S.maxHeight=Math.round(b.maxHeight));return S},n=_.E4(function(){return E().height},void 0,"Cn10Ce"),t=_.E4(function(){return E().width},void 0,"laoove");
return _.D("yt-content-preview-image-view-model",{el:_.sC(_.Bm(function(){var b;return(b=L())==null?void 0:b.rendererContext})),
role:function(){return Y()?"link":void 0},
tabindex:function(){return Y()?0:void 0},
class:_.qn(O,A,function(){var b=J();var S=X==null?void 0:X();b=b==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||b==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||b==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||b==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(S==null?void 0:S.size)!=null&&S.size<=16?"yt-content-preview-image-view-model-wiz--extra-small-rounded-image":(S==null?void 0:S.size)!=null&&S.size<=24?"yt-content-preview-image-view-model-wiz--small-rounded-image":"yt-content-preview-image-view-model-wiz--large-rounded-image":
void 0;return b}),
style:function(){var b=E(),S=[];b.width&&S.push("width: "+b.width+"px");b.height&&S.push("height: "+b.height+"px");b.maxWidth&&S.push("max-width: "+b.maxWidth+"px");b.maxHeight&&S.push("max-height: "+b.maxHeight+"px");b.fullWidth&&S.push("width: 100%");return S.join(";")}},_.D(_.e,{cond:V,
then:function(b){return _.D(_.XV,{data:b,alt:T,"data-disabled$":function(){return!T()},
notifyOnLoaded:x,targetWidth:t,targetHeight:n,preserveWidth:function(){return!!t()},
preserveHeight:function(){return!!n()}})}}),_.D(_.ID,{data:function(){var b;
return(b=L())==null?void 0:b.overlays}},{thumbnailHoverOverlayViewModel:mL,
thumbnailOverlayButtonViewModel:_.gk7}))},"Ea");
_.uG.idomCompat=!0;var Quu=_.xa(function(A){var L=A.data;var O=A.className;var X=A.useSmallLayout;A=A.useMediumText;var x={};A=(x["yt-attribution-view-model-wiz"]=!0,x["yt-attribution-view-model-wiz--medium-text"]=A,x);return _.D("yt-attribution-view-model",{el:_.sC(_.Bm(function(){var J;return(J=L())==null?void 0:J.rendererContext})),
class:_.qn(O,A)},_.D(_.e,{cond:function(){return _.zP(L().rendererContext)},
then:function(){return _.D("button",{class:"yt-attribution-view-model-wiz--tappable"},_.D(Rzg,{data:L,useSmallLayout:X}))},
else:function(){return _.D(Rzg,{data:L,useSmallLayout:X})}}))},"Fa"),Rzg=_.xa(function(A){var L=A.data;
var O=A.useSmallLayout;var X=function(){return{size:(O==null?0:O())?16:24}};
return _.D(_.Xs,null,_.D(_.ID,{data:function(){return L().contentPreviewImage}},{contentPreviewImageViewModel:function(x){return _.D(_.uG,{data:x.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:X})}}),_.D(_.ID,{data:function(){return L().badge}},{badgeViewModel:function(x){return _.D(_.Y6,{data:x.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.D(_.e,{cond:function(){return L().text},
then:function(){return _.D(_.Xg,{text:function(){return L().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.D(_.e,{cond:function(){return L().suffix},
then:function(){return _.D(_.Xg,{text:function(){return L().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))},"Ga");
Quu.idomCompat=!0;var mZj,foc,Ioj,yhc,ZWl;mZj=_.xa(function(A){var L=A.delimiter;var O=A.max;var X=A.index;var x=A.isStandalone;return _.D(_.e,{cond:function(){return O()-1>X()},
then:function(){var J={};return _.D("span",{class:_.qn("yt-content-metadata-view-model-wiz__delimiter",(J["yt-content-metadata-view-model-wiz__delimiter--standalone"]=x,J)),"aria-hidden":!0},L)}})},"Ha");
foc=_.xa(function(A){var L=A.metadataPart;var O=A.maxLines;return _.D(_.Xg,{text:function(){return L().text},
linkInheritColor:!0,className:function(){return DZd(O())},
userInput:!0})},"Ia");
Ioj=_.xa(function(A){var L=A.metadataPart;var O=A.maxLines;return _.D(_.e,{cond:function(){return L().tooltip},
then:function(X){return _.D("span",{title:X,role:"tooltip"},_.D(foc,{metadataPart:L,maxLines:O}))},
else:function(){return _.D(foc,{metadataPart:L,maxLines:O})}})},"Ja");
yhc=_.xa(function(A){var L=A.metadataPart;var O=A.isOverlay;var X=A.useMediumText;var x=A.hideAvatar;var J=function(){return L().maxLines!==void 0?L().maxLines:1};
return _.D(_.Xs,null,_.D(_.ID,{data:function(){return L().avatarStack}},{avatarStackViewModel:function(Y){return _.D(_.yh,{data:Y.data,
isOverlay:O,useMediumText:X,hideAvatar:x})},
badgeViewModel:_.Y6}),_.D(_.e,{cond:function(){return L().leadingIcon},
then:function(Y){return _.D(_.Ky,{className:"yt-content-metadata-view-model-wiz__leading-icon",icon:function(){return Y().name},
size:function(){return Y().width}})}}),_.D(_.e,{cond:function(){return L().text},
then:function(){return _.D(Ioj,{metadataPart:L,maxLines:J})}}),_.D(_.e,{cond:function(){return L().icon},
then:function(Y){return _.D(_.Ky,{className:"yt-content-metadata-view-model-wiz__icon",icon:function(){return Y().name},
size:function(){return Y().width}})}}))},"Ka");
ZWl=_.xa(function(A){var L=A.metadataRow;var O=A.isInline;var X=A.delimiter;var x=A.isOverlay;var J=A.useMediumText;var Y=A.extensions;var T=function(){var E,n=Y==null?void 0:(E=Y())==null?void 0:E.lockupMetadata;E=L();var t,b;return!!((n==null?0:(t=n.byline)==null?0:t.hideAvatar)&&((b=_.q(E,srV))==null?void 0:b.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},V=function(){return L().metadataParts||[]};
A={};return _.D("div",{class:_.qn("yt-content-metadata-view-model-wiz__metadata-row",(A["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=O,A["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var E,n=Y==null?void 0:(E=Y())==null?void 0:E.lockupMetadata;E=L();var t,b;return!!((n==null?0:(t=n.byline)==null?0:t.addPadding)&&((b=_.q(E,srV))==null?void 0:b.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},A["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=
function(){var E;
return!!(Y==null?0:(E=Y())==null?0:E.lockupMetadata)&&L().badges&&!L().metadataParts},A))},_.D(_.ID,{data:function(){return L().badges}},{badgeViewModel:function(E){return _.D("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.D(_.Y6,{data:E.data}))}}),_.D(_.g9,{each:V},function(E,n){return _.D(_.Xs,null,_.D(yhc,{metadataPart:E,
isOverlay:x,useMediumText:J,hideAvatar:T}),_.D(mZj,{delimiter:X,max:function(){return V().length},
index:n,isStandalone:!1}))}),_.D(_.e,{cond:function(){return L().isSpacerRow&&!O()},
then:function(){return _.D("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"La");
_.DR=_.xa(function(A){A=_.OY(A,{layout:0,isOverlay:!1});var L=A.data,O=A.layout,X=A.isOverlay,x=A.useMediumText,J=A.extensions,Y=function(){return O()===0},T=function(){var E;
return((E=L().metadataRows)==null?void 0:E.filter(function(n){var t,b=J==null?void 0:(t=J())==null?void 0:t.lockupMetadata,S,w;t=!!((b==null?0:(S=b.description)==null?0:S.hideDescription)&&((w=_.q(n,srV))==null?void 0:w.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var l,F;return!((b==null?0:(l=b.spacer)==null?0:l.hideSpacer)&&((F=_.q(n,srV))==null?void 0:F.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||t)}))||[]},V={};
return _.D("yt-content-metadata-view-model",{class:_.qn(A.className,"yt-content-metadata-view-model-wiz",(V["yt-content-metadata-view-model-wiz--inline"]=Y,V["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.zP(L().rendererContext)},V["yt-content-metadata-view-model-wiz--medium-text"]=x,V)),
el:_.sC(_.Bm(function(){return L().rendererContext}))},_.D(_.g9,{each:T},function(E,n){return _.D(_.Xs,null,_.D(ZWl,{metadataRow:E,
isInline:Y,delimiter:function(){return L().delimiter},
isOverlay:X,useMediumText:x,extensions:J}),_.D(_.e,{cond:function(){return Y()&&!E.isSpacerRow},
then:function(){return _.D(mZj,{delimiter:function(){return L().delimiter},
max:function(){return T().length},
index:n,isStandalone:!0})}}))}))},"Ma");
_.DR.idomCompat=!0;var jul=_.xa(function(A){var L={};return _.D("yt-lockup-metadata-view-model",{class:_.qn("yt-lockup-metadata-view-model-wiz",function(){a:{var O=A.lockupStyle();if(O==null?0:O.isOverlay)O="yt-lockup-metadata-view-model-wiz--overlay";else switch(O==null?void 0:O.arrangement){case 1:O="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:O="yt-lockup-metadata-view-model-wiz--vertical"}}return O},function(){a:{var O=A.lockupStyle();
if(O==null?0:O.isTiny)O="yt-lockup-metadata-view-model-wiz--tiny";else switch(O==null?void 0:O.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":O="yt-lockup-metadata-view-model-wiz--compact";break a;default:O="yt-lockup-metadata-view-model-wiz--standard"}}return O},(L["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var O;
return(O=A.lockupStyle())==null?void 0:O.isOverlay},L["yt-lockup-metadata-view-model-wiz--card"]=function(){var O;
return(O=A.lockupStyle())==null?void 0:O.isCard},L["yt-lockup-metadata-view-model-wiz--centered"]=function(){var O;
return(O=A.lockupStyle())==null?void 0:O.isCentered},L["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var O;
return(O=A.lockupStyle())==null?void 0:O.typographyBump},L["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var O;
return(O=A.lockupStyle())==null?void 0:O.useLegacyTypography},L["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var O;
return(O=A.lockupStyle())==null?void 0:O.useRichGridLegacyTypography},L))},_.D(_.ID,{data:function(){return A.data().image}},{avatarStackViewModel:function(O){return _.D("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.D(_.yh,{data:O.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(O){return _.D("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.D(_.fP,{data:O.data}))},
decoratedAvatarViewModel:function(O){return _.D("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.D(_.I4,{data:O.data}))}}),_.D("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.D("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var O;return(O=A.data().title)==null?void 0:O.content}},_.D(_.e,{cond:function(){return A.data().title},
then:function(O){return _.D(_.aD,{command:A.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:A.lockupAccessibilityLabel},_.D(_.Xg,{text:O,userInput:!0}))}})),_.D("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.D(_.ID,{data:function(){return A.data().metadata}},{contentMetadataViewModel:function(O){return _.D(_.DR,{data:O.data,
layout:1,useMediumText:function(){var X,x;return((X=A.lockupStyle())==null?void 0:X.typographyBump)||((x=A.lockupStyle())==null?void 0:x.useRichGridLegacyTypography)},
extensions:function(){var X,x,J,Y;return{lockupMetadata:{byline:{hideAvatar:((X=A.lockupStyle())==null?void 0:X.arrangement)===0,addPadding:((x=A.lockupStyle())==null?void 0:x.arrangement)===1},description:{hideDescription:!((J=A.lockupStyle())==null||!J.compactMetadata)},spacer:{hideSpacer:!((Y=A.lockupStyle())==null||!Y.compactMetadata)}}}}})}})),_.D(_.ID,{data:function(){return A.data().attribution}},{attributionViewModel:function(O){return _.D("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},
_.D(Quu,{data:O.data,
useSmallLayout:!0}))}})),_.D("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.D(_.ID,{data:function(){return A.data().menuButton}},{buttonViewModel:function(O){return _.D(_.gj,{data:O.data,
buttonOverrides:function(){var X;return((X=A.lockupStyle())==null?0:X.isOverlay)?{style:"overlay"}:void 0}})}})))},"Na");
jul.idomCompat=!0;var WqH=_.xa(function(A){var L=_.av("notification-multi-action-renderer");_.r9(function(){requestAnimationFrame(function(){_.$o(L.value)})});
var O={},X={},x={};return _.D("notification-multi-action-renderer",{class:_.qn("ytNotificationMultiActionRendererHost",(O.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var J;return(J=A.useLegacyShelfStyle)==null?void 0:J.call(A)},O)),
el:L},_.D("span",{"aria-live":"polite",class:_.qn("ytNotificationMultiActionRendererTextContainer",(X.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var J;return(J=A.useLegacyShelfStyle)==null?void 0:J.call(A)},X))},_.D(_.Xg,{text:function(){return A.data().responseText}})),_.D("div",{class:_.qn("ytNotificationMultiActionRendererButtonContainer",(x.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var J;
return(J=A.useLegacyShelfStyle)==null?void 0:J.call(A)},x))},_.D(_.ID,{data:function(){var J;
return(J=A.data().buttons)==null?void 0:J.map(function(Y){if(Y=Y.buttonRenderer){var T,V=Object,E=V.assign,n=(T=Y.icon)==null?void 0:T.iconType;T=(T=Y.command||Y.serviceEndpoint||Y.navigationEndpoint)?{innertubeCommand:T}:void 0;Y={buttonViewModel:E.call(V,{},{iconName:n,onTap:T,trackingParams:Y.trackingParams,titleFormatted:Y.text?_.yz(Y.text):void 0},Ek9(Y))}}else Y=void 0;return Y}).filter(function(Y){return!!Y})}},{buttonViewModel:function(J,Y){return _.D("div",null,_.D(_.gj,{data:J.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var T;return((T=A.useModernStyles)==null?0:T.call(A))?{type:Y()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Oa");var HW6=_.xa(function(A){var L=_.av("notification-text-renderer");_.r9(function(){requestAnimationFrame(function(){_.$o(L.value)})});
return _.D("notification-text-renderer",{el:L,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.D(_.Xg,{text:function(){return A.data().successResponseText}}))},"Pa");_.eC=_.xa(function(A){var L=_.iS(a3u,function(){var X;return nku((X=A.contentId)==null?void 0:X.call(A))}),O=function(){var X;
return _.q((X=L())==null?void 0:X.command,_.Cb)};
return _.D(_.e,{cond:function(){var X;if(!(X=O())){var x;X=_.q((x=L())==null?void 0:x.command,ojg)}return X},
then:function(){return _.D(_.e,{cond:O,then:function(){var X={};return _.D("div",{class:_.qn("ytDismissibleItemReplacedContent",function(){var x;return tPD((x=A.aspectRatio)==null?void 0:x.call(A))})},_.D("div",{class:_.qn((X.ytDismissibleItemAspectRatioContainer=function(){var x;
return((x=A.aspectRatio)==null?void 0:x.call(A))!==void 0},X))},_.D(_.ID,{data:function(){var x;
return(x=O())==null?void 0:x.item}},{notificationMultiActionRenderer:function(x){return _.D(WqH,{data:x.data,
useModernStyles:A.useModernStyle,useLegacyShelfStyle:A.useLegacyShelfStyle})},
notificationTextRenderer:HW6})))}})},
else:A.children})},"Qa");_.zzc=_.xa(function(A){var L=A.data;var O=A.customCommandResolver;A=_.sC(_.Oj({visibilityCallback:function(J){var Y,T=(Y=L().interaction)==null?void 0:Y.onFirstVisible;J&&T&&_.$a(T)},
showOption:_.JN}));var X=function(){var J;return((J=L().interaction)==null?0:J.onTap)?function(Y){var T;Zau(Y,(T=L().interaction)==null?void 0:T.onTap,O)}:void 0},x=function(){var J,Y=L(),T=X(),V=(J=_.q(L().rendererContext,_.ll))==null?void 0:J.label;
a:switch(Y.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":J=1;break a;default:J=0}return{size:SZu(Y.size),type:J,onTap:T,accessibilityText:V}};
return _.D("ad-avatar-view-model",{class:function(){var J;return((J=L().interaction)==null?0:J.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:A},_.D(_.e,{cond:function(){return L().image},
then:function(J){return _.D(cbn,{data:x,image:J})}}))},"Ra");_.E8=_.xa(function(A){var L=_.OY(A,{hasDot:!1});A=Object.assign({},L);var O=L.data,X=L.hasDot;L=L.customCommandResolver;var x=(delete A.data,delete A.hasDot,delete A.customCommandResolver,A);A=function(){return O().style};
A!==void 0&&A!==null||_.HY(Error("Dh"));A=_.Uk(function(){return O().interaction},L);
return _.D("ad-badge-view-model",{class:_.qn(function(){var J;return((J=O().interaction)==null?0:J.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var J=x.adRenderingContextType();
O();return J==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:_.sC(A)},_.D(_.HW,{data:function(){var J;O();return{type:2,text:(J=O().label)==null?void 0:J.content,adsIncludeDot:X(),isOverlay:O().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Sa");var BG7;_.n0=_.xa(function(A){var L=A.data;var O=A.customCommandResolver;var X=A.adRenderingContextType;return _.D("ad-details-line-view-model",{class:function(){var x;return((x=L().interaction)==null?0:x.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.sC(_.Oj({visibilityCallback:function(x){var J,Y=(J=L().interaction)==null?void 0:J.onFirstVisible;x&&Y&&_.$a(Y)},
showOption:_.JN}),_.Uk(function(){return L().interaction},O))},_.D(_.e,{cond:function(){return L().style},
then:function(x){return _.D(_.g9,{each:function(){var J;return((J=L())==null?void 0:J.attributes)||[]},
keyBy:"INDEX"},function(J){return _.D(BG7,{attribute:J,style:x,adRenderingContextType:function(){return X()}})})}}))},"Ta");
BG7=_.xa(function(A){var L=A.attribute;var O=A.style;var X=A.adRenderingContextType;return _.D(_.e,{cond:function(){return L().text},
then:function(x){return _.D(_.Xg,{text:x,className:function(){var J=X();O();return J==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Ua");var MPg=_.xa(function(A){var L=A.data;var O=A.typographyBump;var X=function(){return L().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
A={};return _.D(_.Xs,null,_.D("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.D(_.Xg,{text:function(){return L().headline},
className:_.qn("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(A.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return X==null?void 0:X()},A.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(O==null?void 0:O())&&!(X==null?0:X())},A)),
linkInheritColor:!0}),_.D(_.e,{cond:function(){return L().description},
then:function(x){var J={};return _.D(_.Xg,{text:x,className:_.qn("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(J.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return X==null?void 0:X()},J.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(O==null?void 0:O())&&!(X==null?0:X())},J)),
linkInheritColor:!0})}}),_.D(_.e,{cond:function(){return L().secondaryDescription},
then:function(x){var J={};return _.D(_.Xg,{text:x,className:_.qn("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(J.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return O==null?void 0:O()},J)),
linkInheritColor:!0})}}),_.D("div",{class:function(){return X()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.D(_.e,{cond:function(){return L().adAvatar},
then:function(){return _.D("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.D(_.ID,{data:function(){return L().adAvatar}},{adAvatarViewModel:_.zzc}))}}),_.D(_.ID,{data:function(){return L().adBadge}},{adBadgeViewModel:function(x){return _.D(_.E8,{data:x.data,
hasDot:function(){return!!L().adDetailsLine},
adRenderingContextType:function(){return L().adRenderingContextType}})}}),_.D(_.ID,{data:function(){return L().adDetailsLine}},{adDetailsLineViewModel:function(x){return _.D(_.n0,{data:x.data,
adRenderingContextType:function(){return L().adRenderingContextType}})}}))),_.D("div",{class:function(){return X()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.D(_.ID,{data:function(){return L().menu}},{buttonViewModel:function(x){return _.D(_.gj,{data:x.data,
buttonOverrides:function(){a:switch(L().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var J="S";break a;default:J="M"}return{size:J}}})}})))},"Va"),$Z7=_.xa(function(A){var L=A.data;
var O=A.noBottomMargin;var X=A.useVideoLockupTopPadding;var x=A.typographyBump;A={};A=_.qn("ytwFeedAdMetadataViewModelHostMetadata",(A.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return O==null?void 0:O()},A.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return X==null?void 0:X()},A));
var J=function(){return L().adBadge};
J!==void 0&&J!==null||_.HY(Error("Eh"));J={};var Y={};return _.D(_.Xs,null,_.D(_.e,{cond:function(){return L().adAvatar},
then:function(){return _.D("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.D(_.ID,{data:function(){return L().adAvatar}},{adAvatarViewModel:function(T){return _.D(_.zzc,{data:T.data})}}))}}),_.D("div",{class:A},_.D("div",{class:_.qn("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(J.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return x==null?void 0:x()},J.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(x==
null?void 0:x())&&_.h("web_enable_typography_bump_v2")},J))},_.D(_.Xg,{text:function(){return L().headline},
linkInheritColor:!0})),_.D(_.e,{cond:function(){return L().description},
then:function(T){return _.D(_.Xg,{text:T,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.D("div",{class:function(){return L().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.h("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.D(_.ID,{data:function(){return L().adBadge}},
{adBadgeViewModel:function(T){return _.D(_.E8,{data:T.data,
hasDot:function(){return!!L().adDetailsLine},
adRenderingContextType:function(){return L().adRenderingContextType}})}}),_.D(_.ID,{data:function(){return L().adDetailsLine}},{adDetailsLineViewModel:function(T){return _.D(_.n0,{data:T.data,
adRenderingContextType:function(){return L().adRenderingContextType}})}})),_.D(_.e,{cond:function(){return L().secondaryDescription},
then:function(T){return _.D(_.Xg,{text:T,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.D("div",{class:_.qn("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(Y.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return X==null?void 0:X()},Y))},_.D(_.ID,{data:function(){return L().menu}},{buttonViewModel:_.gj})))},"Wa"),ao3=_.xa(function(A){var L=A.data;
var O=A.noBottomMargin;var X=A.listenToTapEvent;var x=A.setTouchEndHandler;var J=A.useVideoLockupTopPadding;var Y=A.typographyBump;A=_.Oj({visibilityCallback:function(t){var b,S=(b=L().interaction)==null?void 0:b.onFirstVisible;t&&S&&_.$a(S)},
showOption:_.JN});var T=_.Uk(function(){return L().interaction},void 0,function(){return X==null?void 0:X()}),V=_.d(_.uQ(!1,void 0,"p7Js8e")),E=V.next().value,n=V.next().value;
V=_.py(function(t){(x==null?0:x())&&!E()&&(t.currentTarget.click(),n(!0),setTimeout(function(){n(!1)},100));
return!1});
return _.D("feed-ad-metadata-view-model",{class:function(){var t;return((t=L().interaction)==null?0:t.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.sC(A,T),"on:touchend":V},_.D(_.ik,null,_.D(_.w9,{when:function(){return L().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.D(MPg,{data:L,
typographyBump:Y})}),_.D(_.w9,{when:function(){return L().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.D($Z7,{data:L,
noBottomMargin:O,useVideoLockupTopPadding:J,typographyBump:Y})})))},"Xa");var kEc;_.tN=_.xa(function(A){return _.D("yt-lockup-view-model",{class:_.qn(A.className)},_.D(_.eC,{contentId:function(){return A.data().contentId},
useModernStyle:!0,aspectRatio:function(){var L,O;return((L=A.containerType)==null?void 0:L.call(A))!==3?Xe_(A.data().contentType,(O=A.force16By9ThumbnailAspectRatio)==null?void 0:O.call(A)):void 0}},function(){return _.D(kEc,Object.assign({},A))}))},"Ya");
kEc=_.xa(function(A){A=_.OY(A,{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 L=A.data,O=A.containerLayoutConfig,X=A.containerType,x=A.sizing,J=A.protectBackground,Y=A.typographyBump,T=A.force16By9ThumbnailAspectRatio,V=A.thumbnailFixedWidth,E=A.thumbnailTargetWidth,n=A.lockupExperiments,t=A.elementsPerRow;
A=_.sC(_.Bm(function(){var SD;return(SD=L())==null?void 0:SD.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL","YT-EXPANDABLE-METADATA-VIEW-MODEL","FEED-AD-METADATA-VIEW-MODEL","AD-BADGE-VIEW-MODEL","AD-DETAILS-LINE-VIEW-MODEL"],!0));var b=_.zJ(Qwy),S=_.X5().resolve(_.Ot(Ek6)),w=S?{}:void 0,l=function(){var SD,HJ,mM;return(mM=(HJ=_.q((SD=L())==null?void 0:SD.rendererContext,_.ll))==null?void 0:HJ.label)!=null?mM:void 0},F=function(){var SD=O==null?void 0:O(),HJ;
if(SD==null?0:SD.containerType){var mM=(HJ=L())==null?void 0:HJ.contentType;HJ=n();var Vu=Y(),cn=E(),Tj=J();SD=Object.assign({},xZ_(Ah_(SD),v_e(SD.responsiveSize),Vu,mM,SD.force16By9ThumbnailAspectRatio,cn,Tj,HJ),{thumbnailFixedWidth:SD.contentPreviewWidth})}else SD=xZ_(X(),x(),Y(),(mM=L())==null?void 0:mM.contentType,T(),E(),J(),n());return SD};
S&&w&&S({enabled:function(){return b()},
itemPlaybackModel:function(){return L().itemPlayback},
thumbnailElRef:function(){return w.thumbnailElRef},
containerElRef:A,options:function(){var SD,HJ=(SD=_.q(L().metadata,_.JMV))==null?void 0:SD.endorsement;SD=w.thumbnailOverlays||[];HJ&&SD.push(HJ);var mM,Vu;return{thumbnail:w.thumbnail,thumbnailOverlays:SD,accessibilityText:l(),thumbnailSize:w.thumbnailSize,enableRounding:F().isCollection,containPlayerWithinThumbnail:F().isCollection,trackingParams:(mM=_.q(L().rendererContext,_.Nb))==null?void 0:(Vu=mM.loggingDirectives)==null?void 0:Vu.trackingParams}}});
var R=0;S=_.d(_.uQ(!1,void 0,"HzAs3"));var y=S.next().value,M=S.next().value;S=_.d(_.uQ(!1,void 0,"ujOXud"));var H=S.next().value,z=S.next().value;S=_.py(function(){var SD=b()&&L().itemPlayback;H()?(_.c1.cancelJob(R),R=_.c1.addJob(function(){M(!SD)},8,32)):M(!SD);
return!0});
var a=_.py(function(){R&&(_.c1.cancelJob(R),R=0);M(!1)});
_.rF(function(){R&&(_.c1.cancelJob(R),R=0)});
var xe=hz_(function(){z(!0)}),ur=xe.touchFeedbackEvents,eD=xe.touchFeedbackOnPointerUp,gu=xe.touchFeedbackOnPointerDown;
xe=xe.touchFeedbackOnPointerLeave;var ir={};return _.D("div",{el:A,class:_.qn("yt-lockup-view-model-wiz",function(){a:{var SD=F();if(SD.isOverlay)SD="yt-lockup-view-model-wiz--overlay";else switch(SD.arrangement){case 1:SD="yt-lockup-view-model-wiz--horizontal";break a;default:SD="yt-lockup-view-model-wiz--vertical"}}return SD},function(){a:{var SD=F();
if(SD.isOverlay)SD="yt-lockup-view-model-wiz--overlay";else{switch(SD.collectionStackNumber){case 1:SD="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:SD="yt-lockup-view-model-wiz--collection-stack-2";break a}SD=void 0}}return SD},function(){var SD;
return _.ezu((SD=L())==null?void 0:SD.contentId)},(ir["yt-lockup-view-model-wiz--card"]=function(){return F().isCard},ir["yt-lockup-view-model-wiz--compact"]=function(){return F().isTiny||F().sizing!=="STANDARD"},ir["yt-lockup-view-model-wiz--protect-background"]=J,ir["yt-lockup-view-model-wiz--add-margins"]=function(){return F().addMarginForFullbleed},ir["yt-lockup-view-model-wiz--centered"]=function(){return F().isCentered},ir["yt-lockup-view-model-wiz--fullbleed"]=function(){return F().fullbleed},
ir["yt-lockup-view-model-wiz--single-column-grid"]=function(){return t()===1&&X()===2},ir["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var SD;
return(SD=n())==null?void 0:SD.useRichGridLegacyMargin},ir)),
"on:mousedown":gu,"on:mouseleave":a,"on:mouseup":eD,"on:mouseover":S,"on:touchstart":gu,"on:touchend":eD,"on:pointerleave":xe},_.D(_.aD,{command:function(){var SD;return _.Hm((SD=L())==null?void 0:SD.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return V()&&F().arrangement===1?"width: "+V():""}},_.D(_.ID,{data:function(){var SD;
return(SD=L())==null?void 0:SD.contentImage}},{thumbnailViewModel:function(SD){return _.D(_.s8,{data:SD.data,
aspectRatio:function(){return F().aspectRatio},
disableRounding:function(){return F().disableRounding},
width:E,hovered:y,isClip:function(){var HJ;return((HJ=L())==null?void 0:HJ.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:FrP(w),lockupExperiments:function(){return n()}})},
collectionThumbnailViewModel:function(SD){return _.D(rh7,{data:SD.data,aspectRatio:function(){return F().aspectRatio},
disableRounding:function(){return F().disableRounding},
width:E,doubleStack:function(){return F().collectionStackNumber===2},
hovered:y,playbackRef:FrP(w)})},
decoratedAvatarViewModel:_.I4})),_.D("div",{class:"yt-lockup-view-model-wiz__metadata"},_.D(_.ID,{data:function(){var SD;return(SD=L())==null?void 0:SD.metadata}},{lockupMetadataViewModel:function(SD){return _.D(jul,{data:SD.data,
lockupStyle:F,lockupCommand:function(){var HJ;return _.Hm((HJ=L())==null?void 0:HJ.rendererContext)},
lockupAccessibilityLabel:function(){return l()}})},
feedAdMetadataViewModel:function(SD){return _.D(ao3,{data:SD.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:Y})}}),_.D(_.ID,{data:function(){var SD;
return(SD=L())==null?void 0:SD.attachmentSlot}},{lockupAttachmentsViewModel:function(SD){return _.D(CMH,{data:SD.data,
lockupStyle:F})}})),_.D(_.cx,{model:function(){a:{switch(F().collectionStackNumber){case 1:var SD=8;
break a;case 2:SD=12;break a}SD=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:SD}},
pointerDownEvent:ur.pointerDownEvent,pointerUpEvent:ur.pointerUpEvent,pointerLeaveEvent:ur.pointerLeaveEvent}))},"Za");
_.tN.idomCompat=!0;_.Y4(_.tN,"yt-lockup-view-model",{props:{data:_.x5,containerLayoutConfig:_.x5,containerType:_.x5,sizing:_.x5,protectBackground:_.x5,typographyBump:_.x5,thumbnailFixedWidth:_.x5,thumbnailTargetWidth:_.x5,force16By9ThumbnailAspectRatio:_.x5,className:_.x5,lockupExperiments:_.x5,elementsPerRow:_.x5}});var peD;_.Xh(GEe);var FqP,UZ6=_.xa(function(A){var L=_.OY(A,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),O=L.text,X=L.alwaysShowTruncationText;A=L.truncationText;var x=L.onTextClick,J=L.maxLines,Y=L.disableTextMask,T=L.textStyle,V=L.accessibilityLabel,E=L.textSize,n=L.alwaysTruncateAtMaxLines,t=L.expandOnClick;L=_.d(_.uQ(!1,void 0,"Qz8MWe"));var b=L.next().value,S=L.next().value;L=_.py(function(){t()&&S(!b());x==null||x()});
var w=function(){a:switch(E()){case "medium":var a=2;break a;case "large":a=2.2;break a;default:a=1.8}return a},l=fos(O,function(){return b()?Infinity:J()},w,Y,n),F=l.isTruncated;
O=l.displayText;n=l.contentRef;var R=l.hiddenRef,y=l.placeholderTruncationTextRef,M=l.hiddenTruncationTextRef;l=l.truncationTextRef;var H={},z={};return _.D("truncated-text",{class:_.qn((H["truncated-text-wiz"]=!0,H["truncated-text-wiz--overlay"]=function(){return T()==="overlay"},H["truncated-text-wiz--medium-text"]=function(){return E()==="medium"},H["truncated-text-wiz--large-text"]=function(){return E()==="large"},H["truncated-text-wiz--primary-text"]=function(){return T()==="primary-text"},H)),
"on:click":L,style:function(){return"line-height: "+w()+"rem;"}},_.D("truncated-text-content",{class:"truncated-text-wiz__truncated-text-content",
el:n,style:function(){return b()?"":"max-height: "+J()*w()+"rem;"}},_.D(_.Xg,{text:O}),_.D("button",{"aria-disabled":!0,
disabled:!0,class:"truncated-text-wiz__inline-button",el:y,style:function(){return"line-height: "+w()+"rem;"}},_.D(_.Xg,{text:A}))),_.D("truncated-text-content",{class:_.qn("truncated-text-wiz__truncated-text-content","truncated-text-wiz__truncated-text-content--hidden-text-content"),
el:R,style:function(){return b()?"":"max-height: "+J()*w()+"rem;"},
"aria-hidden":"true"},_.D(_.Xg,{text:O}),_.D("button",{"aria-disabled":!0,disabled:!0,class:"truncated-text-wiz__inline-button",el:M,style:function(){return"line-height: "+w()+"rem;"}},_.D(_.Xg,{text:A}))),_.D("button",{"aria-label":V,
class:_.qn((z["truncated-text-wiz__absolute-button"]=function(){return!Y()},z["truncated-text-wiz__bottom-button"]=function(){return Y()},z["truncated-text-wiz--hidden"]=function(){return!(!b()&&(X!=null&&X()||F()))},z)),
el:l,style:function(){return"line-height: "+w()+"rem;"}},_.D(_.Xg,{text:A})))},"$a"),MPu=_.h("web_enable_sink_truncated_text")?UZ6:GEe,vkg=_.h("web_enable_sink_truncated_text")?UZ6:_.wl(MPu,{callbacks:{onTextClick:!0}});
UZ6.idomCompat={callbacks:{onTextClick:!0}};_.Xh(yhs);var $ZP=_.cm({buttonViewModel:_.gj});_.Xh(zzs);_.Xh(Wqr);_.Xh(HW9);var LO3=_.xa(function(A){var L=A.data;A=A.className;var O=_.E4(function(){return kEs(L())},void 0,"Db3J3e");
return _.D("yt-video-attribute-view-model",{class:A},_.D("div",{class:function(){var X=L();a:switch(X.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var x="yt-video-attribute-view-model--vertical";break a;default:x="yt-video-attribute-view-model--horizontal"}a:switch(X.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var J="yt-video-attribute-view-model--image-small";break a;default:J="yt-video-attribute-view-model--image-large"}a:switch(X.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var Y=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":Y="yt-video-attribute-view-model--image-avatar";break a;default:Y=""}a:switch(X.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var T="yt-video-attribute-view-model--metadata-header";break a;default:T=""}a:switch(X.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var V="yt-video-attribute-view-model--container-card";break a;default:V=""}return["yt-video-attribute-view-model",x,J,
Y,T,V,kEs(X)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.rl({"background-color":function(){var X=L();if(X.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var x="";else{x=X.lightColorPalette;X=X.darkColorPalette;var J,Y=((J=_.X5().resolve(_.Ot(_.oy)))==null?0:J())&&X?X:x;x=(x=Y==null?void 0:Y.section2Color)?_.Hy(x):""}return x}})},_.D(_.e,{cond:function(){return O()||!_.h("web_video_attribute_view_model_a11y_fix")},
then:function(){return _.D(_.aD,{className:"yt-video-attribute-view-model__content-container",command:O,role:"group",ariaLabel:function(){return L().title}},_.D(_.e,{cond:function(){return L().heroText||L().image},
then:function(){return _.D(okV,{data:L})}}),_.D(Afl,{data:L,
sizeSmall:function(){return L().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}))},
else:function(){return _.D("div",{class:"yt-video-attribute-view-model__content-container"},_.D(_.e,{cond:function(){return L().heroText||L().image},
then:function(){return _.D(okV,{data:L})}}),_.D(Afl,{data:L,
sizeSmall:function(){return L().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}))}})))},"bb");
LO3.idomCompat=!0;var OSg=_.h("web_enable_sink_yt_video_attribute_view_model")?LO3:_.wl(zzs),okV=_.xa(function(A){var L=A.data;var O,X=(O=_.X5().resolve(_.Ot(_.oy)))==null?void 0:O(),x=function(){return X&&L().darkThemeImage?L().darkThemeImage:L().image},J=_.E4(function(){return UZd(L())},void 0,"Mkm2tb");
return _.D("div",{class:"yt-video-attribute-view-model__hero-section"},_.D(_.ik,null,_.D(_.w9,{when:x},function(){return _.D(_.XV,{data:function(){return x()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.D(_.w9,{when:function(){return L().heroText}},function(){return _.D("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.D("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return L().heroText}))})),_.D(_.e,{cond:function(){return L().overflowMenuOnTap},
then:function(){return _.D("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.D(_.xf,{data:J,iconName:"MORE_VERT"}))}}))},"cb");
okV.idomCompat=!0;var Afl=_.xa(function(A){var L=A.data;A=A.sizeSmall;var O=function(){return L().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},X=_.E4(function(){return Mb(_.BR({innertubeCommand:kEs(L())}))?"link":"group"},void 0,"tvI7S"),x={};
return _.D("div",{class:_.qn("yt-video-attribute-view-model__metadata",(x["yt-video-attribute-view-model--small-font"]=A,x)),role:X},_.D("h1",{class:"yt-video-attribute-view-model__title"},function(){return L().title}),_.D(_.e,{cond:function(){return L().subtitle},
then:function(){return _.D("h4",{class:"yt-video-attribute-view-model__subtitle"},_.D(_.e,{cond:O,then:function(){return _.D(vkg,{text:function(){return aoD(L().subtitle)},
truncationText:function(){return aoD(L().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.D("span",null,function(){return L().subtitle})}}))}}),_.D(_.e,{cond:function(){return L().secondarySubtitle},
then:function(J){return _.D("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.D(_.Xg,{text:function(){var Y=J();if(Y!=null&&Y.attachmentRuns){for(var T=[],V=_.d(Y.attachmentRuns),E=V.next();!E.done;E=V.next())E=E.value,E.element&&T.push(Object.assign({},E,{element:Object.assign({},E.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));Y=Object.assign({},Y,{attachmentRuns:T})}return Y}}))}}),_.D(_.ID,
{data:function(){return L().buttonViewModel}},{buttonViewModel:function(J){return _.D(_.gj,{data:J.data,
className:"yt-video-attribute-view-model__button"})}}))},"db");
Afl.idomCompat=!0;_.Y4(OSg,"yt-video-attribute-view-model",{props:{data:_.x5,className:_.x5}});var bG=function(){var A=_.G.apply(this,arguments)||this;A.useHighlightStyling=_.h("web_enable_deeper_metadata_highlight_styling");A.isSearch=!1;A.JSC$16129_lastScrollContainerWidth=NaN;A.pageLoadingFromNavigation=!1;A.currentIndex=0;A.supportComponentResize=!1;return A};
_.g(bG,_.G);_.P=bG.prototype;
_.P.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-horizontal-card-list-renderer lockup",containerType:4,sizing:"COMPACT"}},searchRefinementCardRenderer:"ytd-search-refinement-card-renderer",compactChannelRecommendationCardRenderer:"ytd-compact-channel-recommendation-card-renderer",videoCardRenderer:"ytd-grid-video-renderer",gameCardRenderer:"ytd-game-card-renderer",miniGameCardViewModel:"ytd-mini-game-card-view-model",mediaUpsellRenderer:"ytd-media-upsell-renderer",
infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",params:{showVerticalDividers:!0}},previewCardRenderer:{component:"ytd-preview-card-renderer",properties:{isSearch:"[[isSearch]]"}},macroMarkersListItemRenderer:{component:"ytd-macro-markers-list-item-renderer",properties:{useCustomColors:"[[useCustomColors]]"}},placeDataViewModel:"place-data-view-model",videoAttributeViewModel:{component:"yt-video-attribute-view-model",properties:{className:"[[is]]"}}}},"data.header":{id:"header",
mapping:{titleAndButtonListHeaderRenderer:"ytd-title-and-button-list-header-renderer",richListHeaderRenderer:{component:"ytd-rich-list-header-renderer",properties:{hideNavigationButton:"[[hideNavigationButton]]",isModernSd:"[[modernChapters]]"}}}},"data.sortFilter":{id:"sort-filter",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},"data.button":{id:"header-button",mapping:{buttonRenderer:"ytd-button-renderer",menuRenderer:"ytd-menu-renderer"}},"data.previousButton":{id:"left-arrow-button",
mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},attributes:{arrow:!0}}},initialRenderPriority:0,waitForSignal:"eocs"},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},attributes:{arrow:!0}}}},"data.footerButton":{id:"footer-section",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},dismissedRenderer:{id:"dismissed",
mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.P.attached=function(){document.addEventListener("yt-page-type-changed",_.tT(this,this.onPageChange))};
_.P.detached=function(){document.removeEventListener("yt-page-type-changed",_.tT(this,this.onPageChange))};
_.P.getItemsPath=function(){return"data.cards"};
_.P.onIronResize=function(){this.updateListStyles()};
_.P.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var A;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(A=this.data)==null?void 0:A.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.h("problem_walkthrough_sd")&&!!this.centerItems};
_.P.computeCardListStyle=function(A){return A||null};
_.P.computeEmpty=function(A){return!this.get("cards.length",A)};
_.P.computeThumbnailStyle=function(A){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",A)||null};
_.P.computeHasSubtitle=function(A){return!!this.get("header.richListHeaderRenderer.subtitle",A)};
_.P.computeInitialCountNumber=function(A){return this.hasSquareMiniApp&&A==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&A==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:A==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:A==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:A==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&A==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.P.computeUseFloorScrolling=function(A){return A==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.P.computeHasGameCard=function(A){return(A=this.get("cards",A))?A.some(function(L){return L.gameCardRenderer}):!1};
_.P.computeCenterHeaderTitle=function(A){return!(A==null||!A.centerHeaderTitle)};
_.P.computeHasPortraitMiniApp=function(A){return(A=A==null?void 0:A.cards)?A.some(function(L){return L.miniGameCardViewModel&&L.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.P.computeHasSquareMiniApp=function(A){return(A=A==null?void 0:A.cards)?A.some(function(L){return L.miniGameCardViewModel&&L.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.P.computeHasSkinnyWidthPortraitMiniApp=function(A){return(A=A==null?void 0:A.cards)?A.some(function(L){return L.miniGameCardViewModel&&L.miniGameCardViewModel.width===135}):!1};
_.P.computeCenterItems=function(A){return!!A};
_.P.computeHasInfoPanel=function(A){var L;return A==null?void 0:(L=A.cards)==null?void 0:L.some(function(O){return O.infoPanelContentRenderer})};
_.P.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.P.getItemByIndex=function(A){var L=this.items.children;return L&&L.length>A?L[A]:void 0};
_.P.onPageChange=function(){var A=this;this.pageLoadingFromNavigation=!0;_.c1.addJob(function(){A.pageLoadingFromNavigation=!1;_.YK(A.hostElement,"yt-terminate-video-preview-action")},8)};
_.P.updateListStyles=function(){if(_.h("problem_walkthrough_sd")&&this.JSC$16129_scrollContainer!==void 0){var A=this.JSC$16129_scrollContainer.clientWidth;A!==this.JSC$16129_lastScrollContainerWidth&&(this.JSC$16129_lastScrollContainerWidth=A,_.eq(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(A*.8,415)+"px"}),_.P4(this.hostElement,"iron-resize"))}};
_.v2.Object.defineProperties(bG.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.h("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var A,L,O;return!!((A=this.data)==null?0:(L=A.cards)==null?0:(O=L[0])==null?0:O.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var A,L,O;return!!((A=this.data)==null?0:(L=A.cards)==null?0:(O=L[0])==null?0:O.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var A,L,O;return _.h("enable_desktop_amsterdam_info_panels")&&!!((A=this.data)==null?0:(L=A.cards)==null?0:(O=L[0])==null?0:O.infoPanelContentRenderer)}}});
bG.prototype.dataChanged=bG.prototype.dataChanged;bG.prototype.onIronResize=bG.prototype.onIronResize;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],bG.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],bG.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.Vy.YtdHorizontalListBehavior),_.Z("design:type",Object)],bG.prototype,"ytdHorizontalListBehavior",void 0);
_.I([_.N(_.BL),_.Z("design:type",Object)],bG.prototype,"ytdDismissibleItemBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],bG.prototype,"data",void 0);_.I([_.K({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],bG.prototype,"useCustomColors",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],bG.prototype,"useHighlightStyling",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.Z("design:type",Object)],bG.prototype,"cardListStyle",void 0);_.I([_.K({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.Z("design:type",Boolean)],bG.prototype,"empty",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.Z("design:type",Boolean)],bG.prototype,"hasSubtitle",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.Z("design:type",Boolean)],bG.prototype,"thumbnailStyle",void 0);_.I([_.K({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.Z("design:type",Boolean)],bG.prototype,"hasGameCard",void 0);_.I([_.K({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.Z("design:type",Boolean)],bG.prototype,"centerHeaderTitle",void 0);
_.I([_.K({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.Z("design:type",Boolean)],bG.prototype,"hasPortraitMiniApp",void 0);_.I([_.K({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.Z("design:type",Boolean)],bG.prototype,"hasSquareMiniApp",void 0);_.I([_.K({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.Z("design:type",Boolean)],bG.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.I([_.K({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.Z("design:type",Boolean)],bG.prototype,"hasInfoPanel",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],bG.prototype,"isSearch",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],bG.prototype,"inlineStructuredDescription",void 0);_.I([_.qR("#scroll-container"),_.Z("design:type",HTMLDivElement)],bG.prototype,"JSC$16129_scrollContainer",void 0);
_.I([_.K({computed:"computeInitialCountNumber(data.style.type)"}),_.Z("design:type",Number)],bG.prototype,"initialCount",void 0);_.I([_.K({computed:"computeUseFloorScrolling(data.style.type)"}),_.Z("design:type",Boolean)],bG.prototype,"useFloorScrolling",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.Z("design:type",Boolean)],bG.prototype,"centerItems",void 0);_.I([_.K(),_.Z("design:type",Object)],bG.prototype,"pageLoadingFromNavigation",void 0);
_.I([_.K(),_.Z("design:type",Object)],bG.prototype,"currentIndex",void 0);_.I([_.K(),_.Z("design:type",Number)],bG.prototype,"scrollCount",void 0);_.I([_.K(),_.Z("design:type",Object)],bG.prototype,"supportComponentResize",void 0);_.I([_.qR("#items"),_.Z("design:type",HTMLDivElement)],bG.prototype,"items",void 0);_.I([_.by("iron-resize"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],bG.prototype,"onIronResize",null);
_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],bG.prototype,"dataChanged",null);_.I([_.K({reflectToAttribute:!0}),_.r("inlineStructuredDescription"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],bG.prototype,"hideNavigationButton",null);_.I([_.K({reflectToAttribute:!0}),_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],bG.prototype,"modernChapters",null);
_.I([_.K({reflectToAttribute:!0}),_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],bG.prototype,"hasVideoAttributeViewModels",null);_.I([_.K({reflectToAttribute:!0}),_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],bG.prototype,"modernInfoPanels",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],bG);
_.m(bG,"ytd-horizontal-card-list-renderer",function(){if(k3J!==void 0)return k3J;var A=document.createElement("template");_.p(A,'\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>');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return k3J=A},{mode:_.e5("kevlar_poly_si_batch_j072")?1:2});var XjH=_.xa(function(A){var L=A.data;var O={};return _.D("video-summary-content-view-model",{class:_.qn("video-summary-content-view-model-wiz",A.className,(O["video-summary-content-view-model-wiz--is-search"]=A.isSearch,O))},_.D(_.g9,{each:function(){var X=[],x=L().paragraphs;if(x==null||!x.length)return[];for(var J=0;J<x.length;J++){var Y=_.q(x[J],utV),T=void 0;J>0&&(T=_.q(x[J-1],utV));T&&!!T.marker===!!Y.marker?X[X.length-1].paragraphs.push(Y):X.push({isList:!!Y.marker,paragraphs:[Y]})}return X},
keyBy:"INDEX"},function(X){return _.D(_.e,{cond:function(){return X().isList},
then:function(){return _.D("ul",{class:"video-summary-content-view-model-wiz__list"},_.D(_.g9,{each:function(){return X().paragraphs},
keyBy:"INDEX"},function(x){return _.D("li",{class:"video-summary-content-view-model-wiz__list-item"},_.D(_.Xg,{text:function(){return x().text}}))}))},
else:function(){return _.D(_.g9,{each:function(){return X().paragraphs},
keyBy:"INDEX"},function(x){return _.D("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.D(_.Xg,{text:function(){return x().text}}))})}})}),_.D(_.e,{cond:function(){return!!_.q(L().likeButtonViewModel,_.WB)&&!!_.q(L().dislikeButtonViewModel,_.jo)},
then:function(){return _.D("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},_.D("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.D(_.jR,{data:function(){return _.q(L().likeButtonViewModel,_.WB)},
disableIconAnimation:!0})),_.D(_.Zm,{data:function(){return _.q(L().dislikeButtonViewModel,_.jo)}}))}}))},"eb");
XjH.idomCompat=!0;_.Y4(XjH,"video-summary-content-view-model",{props:{data:_.x5,isSearch:_.x5,className:_.x5}});var hN=function(){var A=_.G.apply(this,arguments)||this;var L,O;A.isExpanded=(O=(L=A.data)==null?void 0:L.isExpanded)!=null?O:!1;A.disableExpand=!1;A.showProminentLabel=!1;A.showRightSideLabel=!0;A.toggleExpandableContent=function(X){A.disableExpand||(X.stopPropagation(),_.sk(_.oa(X),A.hostElement,["info","expanded-subtitle"])||(A.isExpanded=!A.isExpanded,A.ytRendererBehavior.logExplicitClick(A.data),A.JSC$16140_cardList&&!_.h("expandable_metadata_a11y_fix_ks")&&_.kd(A,function(){_.M6(A.hostElement)})))};
A.useSquareThumbnail=!1;A.contentHiddenWithDisplayNone=_.h("web_expandable_metadata_content_hidden_with_display_none");A.startX=0;return A};
_.g(hN,_.G);_.P=hN.prototype;_.P.computeUseSquareThumbnail=function(){var A;return(A=this.data)==null?void 0:A.useSquareThumbnail};
_.P.configureRendererStamper=function(){return{"data.expandedContent":{id:"content",mapping:{horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]",useCustomColors:"[[useCustomColors]]"}},horizontalListRenderer:{component:"yt-horizontal-list-renderer",properties:{isSearch:"[[isSearch]]"},params:{isExpandableContent:!0}},videoSummaryContentViewModel:{component:"video-summary-content-view-model",params:{isExpandableContent:!0},properties:{isSearch:"[[isSearch]]"}},
lockupViewModel:{component:"yt-lockup-view-model",params:{isExpandableContent:!0,className:"ytd-expandable-metadata-renderer lockup",thumbnailFixedWidth:"168px",containerType:3,sizing:"COMPACT"}}}},"data.expandButton":{id:"expand",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-click":"[[toggleExpandableContent]]"}}}},"data.collapseButton":{id:"collapse",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-click":"[[toggleExpandableContent]]"}}}},"data.infoButton":{id:"info",
mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.expandedMenuFooter":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}}}};
_.P.dataChanged=function(){if(this.data){var A,L;this.isExpanded=(L=(A=this.data)==null?void 0:A.isExpanded)!=null?L:!1;var O,X,x,J;if(A=this.isDarkTheme()?(O=this.data)==null?void 0:(X=O.colorData)==null?void 0:X.darkColorPalette:(x=this.data)==null?void 0:(J=x.colorData)==null?void 0:J.lightColorPalette){var Y,T;if((Y=this.data)==null?0:(T=Y.colorData)==null?0:T.vibrantColorPalette)A.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.fy(this.hostElement,A)}}};
_.P.isExpandedChanged=function(){this.isExpanded&&this.JSC$16140_cardList&&_.P4(this.JSC$16140_cardList,"iron-resize")};
_.P.computeIsExpanded=function(A){return!!A.isExpanded};
_.P.computeShowProminentLabel=function(A,L){var O;return!!(A==null?0:(O=A.header)==null?0:O.showLeadingCollapsedLabel)&&!L};
_.P.computeShowRightSideLabel=function(A,L){var O;return!(A==null?0:(O=A.header)==null?0:O.showLeadingCollapsedLabel)&&!L};
_.P.captureContentClick=function(A){if(!this.disableExpand)if(_.h("expandable_metadata_fix_killswitch")){var L=A.target;_.F$H(L,"ytd-macro-markers-list-item-renderer")||A.stopPropagation();(L==null?void 0:L.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.sk(_.oa(A),this.hostElement,["items"])||_.xu(_.oa(A),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.P.timestampClick=function(A){A.stopPropagation();var L,O;(A=(L=this.data)==null?void 0:(O=L.header)==null?void 0:O.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(A)};
_.P.onDown=function(A){A.stopPropagation();this.startX=A.detail?A.detail.x:0};
_.P.onUp=function(A){this.skipKeyInteraction(A)&&A.stopPropagation()};
_.P.skipKeyInteraction=function(A){var L=A.target;if((L==null?void 0:L.id)==="scroll-container"||(L==null?void 0:L.id)==="items"||A.detail&&A.detail.x!==this.startX)return!0;A=_.oa(A);A=_.d(A);for(L=A.next();!L.done;L=A.next()){L=L.value;if(L===this.hostElement)break;if(L.hasAttribute&&L.hasAttribute("skip-key-interaction"))return!0}return!1};
_.P.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.v2.Object.defineProperties(hN.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var A;return!!_.q((A=this.data)==null?void 0:A.expandedContent,YQu)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var A;return!!_.q((A=this.data)==null?void 0:A.expandedContent,_.Pv7)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var A,L;return!((A=this.data)==null||!A.useCustomColors)&&!((L=this.data)==null||!L.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var A,L;return!!((A=this.data)==null?0:(L=A.header)==null?0:L.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var A,L;return!!((A=this.data)==null?0:(L=A.header)==null?0:L.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var A,L;return!!((A=this.data)==null?0:(L=A.header)==null?0:L.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}},
contentHidden:{configurable:!0,enumerable:!0,get:function(){return _.h("web_expandable_metadata_content_hidden_with_display_none")&&!this.isExpanded}}});
hN.prototype.onUp=hN.prototype.onUp;hN.prototype.onDown=hN.prototype.onDown;hN.prototype.isExpandedChanged=hN.prototype.isExpandedChanged;hN.prototype.dataChanged=hN.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],hN.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],hN.prototype,"ytRendererstamperBehavior",void 0);
_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],hN.prototype,"ytComponentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],hN.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],hN.prototype,"isExpanded",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],hN.prototype,"disableExpand",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],hN.prototype,"isSearch",void 0);
_.I([_.K({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],hN.prototype,"isWatch",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.Z("design:type",Object)],hN.prototype,"showProminentLabel",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.Z("design:type",Object)],hN.prototype,"showRightSideLabel",void 0);
_.I([_.K({value:!1,reflectToAttribute:!0}),_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],hN.prototype,"hasVideoSummary",null);_.I([_.K({value:!1,reflectToAttribute:!0}),_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],hN.prototype,"hasLockupViewModel",null);_.I([_.K({reflectToAttribute:!0}),_.r("data","isWatch"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],hN.prototype,"useCustomColors",null);
_.I([_.K({reflectToAttribute:!0}),_.r("data","isExpanded"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],hN.prototype,"showInfoButton",null);_.I([_.r("data","isExpanded"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],hN.prototype,"showTimestamp",null);_.I([_.r("data","isExpanded"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],hN.prototype,"showExpandedSubtitle",null);
_.I([_.r("data","isExpanded"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],hN.prototype,"showThumbnail",null);_.I([_.K({reflectToAttribute:!0}),_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],hN.prototype,"useVppShoppingDestinationStyle",null);_.I([_.K(),_.Z("design:type",Object)],hN.prototype,"toggleExpandableContent",void 0);_.I([_.qR("ytd-horizontal-card-list-renderer"),_.Z("design:type",Object)],hN.prototype,"JSC$16140_cardList",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.Z("design:type",Object)],hN.prototype,"useSquareThumbnail",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],hN.prototype,"contentHiddenWithDisplayNone",void 0);_.I([_.r("isExpanded"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],hN.prototype,"contentHidden",null);
_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],hN.prototype,"dataChanged",null);_.I([_.hT("isExpanded"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],hN.prototype,"isExpandedChanged",null);_.I([_.by("down"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],hN.prototype,"onDown",null);
_.I([_.by("up"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],hN.prototype,"onUp",null);_.I([_.Q({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],hN);
_.m(hN,"ytd-expandable-metadata-renderer",function(){if(JbH!==void 0)return JbH;var A=document.createElement("template");_.p(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" hidden="[[contentHidden]]" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return JbH=A},{mode:1});var xju,siJ=function(){if(xju!==void 0)return xju;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return xju=A};_.Y4(_.yh,"yt-avatar-stack-view-model",{props:{className:_.x5,data:_.x5,overrides:_.x5,isOverlay:_.x5,useMediumText:_.x5,decorations:_.x5,hideAvatar:_.x5}});_.y3("itemSectionRenderer","videoRenderer","ytd-video-renderer");var SC=function(){var A=_.G.apply(this,arguments)||this;A.disableExpand=!1;A.shouldShowChannelInfo=!1;A.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return A};
_.g(SC,_.G);_.P=SC.prototype;_.P.computeUseSearchUi=function(){var A,L;return this.isSearch||((A=this.data)==null?void 0:(L=A.style)==null?void 0:L.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.P.computeUseThreeLineTitle=function(){var A;return((A=this.data)==null?void 0:A.maxTitleLines)===3};
_.P.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.h("polymer_video_renderer_defer_menu")&&!MiN?0:void 0},"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer",buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",
notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.expandableMetadata":{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",properties:{isSearch:"[[useSearchUi]]",disableExpand:"[[disableExpand]]"}}}},"data.avatar":{id:"avatar",mapping:{avatarStackViewModel:"yt-avatar-stack-view-model"}}}};
_.P.attached=function(){_.TK(this.hostElement,"blue-links",_.h("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.P.detached=function(){this.clearInlinePreviewHoverListeners()};
_.P.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.VU(_.YJ(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var A=this.get("data.buttons.buttonRenderer.serviceEndpoint"),L;A&&((L=_.q(A.commandMetadata,_.fb))==null?0:L.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(A);this.updateInlinePreviewHoverListeners()};
_.P.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16145_inlinePreviewHoverListener=$u({mediaRenderer:this,lockupElement:this.JSC$16145_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.P.clearInlinePreviewHoverListeners=function(){var A;(A=this.JSC$16145_inlinePreviewHoverListener)==null||sr(A)};
_.P.onTextWrapperClick=function(A){var L,O,X=this.hideTranslation?(L=this.data)==null?void 0:L.untranslatedNavigationEndpoint:(O=this.data)==null?void 0:O.navigationEndpoint;L=_.sk(_.oa(A),this.hostElement,["expandable-metadata"]);!X||L&&!_.h("expandable_metadata_fix_killswitch")||_.xu(_.oa(A),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.P4(this.hostElement,"yt-navigate",{endpoint:X})};
_.P.computeThumbnailWidth=function(A,L,O,X,x){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:X?x==="MASSIVE"?600:x==="BIG"?500:x==="MEDIUM"?450:420:O?360:L?128:A?210:246};
_.P.computeUseBiggerThumbs=function(A){return A&&_.h("enable_desktop_search_bigger_thumbs")};
_.P.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.P.computeVideoStyle=function(){if(_.h("enable_video_style")){var A,L;return(A=this.data)==null?void 0:(L=A.style)==null?void 0:L.value}};
_.P.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.P.handleHideItemSectionVideosByIdCommand=function(A){var L;A=(L=_.q(A,c_n))==null?void 0:L.videoId;this.data&&this.data.videoId===A&&(this.isHidden=!0)};
_.P.getMetadataSnippetContainerClass=function(A){return A?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.P.computeTitleText=function(A,L,O){return A?O:L};
_.P.computeDescriptionSnippet=function(A,L,O){return A?O:L};
_.P.computeSnippetText=function(A,L,O){return A?O:L};
_.P.computeNavigationEndpoint=function(A,L){return A?L==null?void 0:L.untranslatedNavigationEndpoint:L==null?void 0:L.navigationEndpoint};
_.P.hideInlineTitleIcon=function(A,L){return A||!L};
_.v2.Object.defineProperties(SC.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 A;return(A=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?A:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var A,L,O;return!!(this==null?0:(A=this.data)==null?0:(L=A.channelThumbnailSupportedRenderers)==null?0:(O=L.channelThumbnailWithLinkRenderer)==null?0:O.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var A;return!!_.q((A=this.data)==null?void 0:A.avatar,dr7)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.JSC$16145_inlinePreviewHoverListener)==null?0:Wk(A))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.v2.Object.defineProperties(SC,{template:{configurable:!0,enumerable:!0,get:function(){return siJ()}}});
SC.prototype.dataChanged=SC.prototype.dataChanged;_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],SC.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],SC.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],SC.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.BL),_.Z("design:type",Object)],SC.prototype,"ytdDismissibleItemBehavior",void 0);
_.I([_.N(_.of),_.Z("design:type",Object)],SC.prototype,"ytdLockupBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],SC.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],SC.prototype,"ytdReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],SC.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],SC.prototype,"isBackstageVideo",void 0);
_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],SC.prototype,"isPostCompactVideo",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],SC.prototype,"isHistory",void 0);_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],SC.prototype,"isRichGridVideoPost",void 0);_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],SC.prototype,"isHidden",void 0);
_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],SC.prototype,"isSearch",void 0);_.I([_.K({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.Z("design:type",Boolean)],SC.prototype,"useSearchUi",void 0);_.I([_.K({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.Z("design:type",Boolean)],SC.prototype,"useThreeLineTitle",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.Z("design:type",Boolean)],SC.prototype,"useBiggerThumbs",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.Z("design:type",Object)],SC.prototype,"videoStyle",void 0);_.I([_.K({computed:"computeDisableExpand(videoStyle)"}),_.Z("design:type",Object)],SC.prototype,"disableExpand",void 0);
_.I([_.K({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.Z("design:type",Object)],SC.prototype,"shouldShowChannelInfo",void 0);_.I([_.K({reflectToAttribute:!0,value:function(){return _.dN("desktop_search_bigger_thumbs_style")}}),
_.Z("design:type",String)],SC.prototype,"biggerThumbsStyle",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.Z("design:type",String)],SC.prototype,"inlineTitleIcon",void 0);_.I([_.K({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.Z("design:type",Object)],SC.prototype,"computedNavigationEndpoint",void 0);_.I([_.K({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(A,L){return _.eM(A.entities,"searchVideoResultEntity",L)}}),
_.Z("design:type",Object)],SC.prototype,"searchVideoResultEntity",void 0);_.I([_.qR("ytd-thumbnail"),_.Z("design:type",HTMLElement)],SC.prototype,"thumbnail",void 0);_.I([_.qR("#dismissible"),_.Z("design:type",HTMLElement)],SC.prototype,"JSC$16145_dismissibleMedia",void 0);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],SC.prototype,"dataChanged",null);
_.I([_.r("searchVideoResultEntity"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],SC.prototype,"hideTranslation",null);_.I([_.r("searchVideoResultEntity"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],SC.prototype,"hiddenBadgeGroups",null);_.I([_.r("data","useAvatar"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],SC.prototype,"shouldShowChannelThumbnail",null);_.I([_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],SC.prototype,"useAvatar",null);
_.I([_.r("lockupIsHovered"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],SC.prototype,"isHovered",null);_.I([_.Q({is:"ytd-video-renderer",disableElementRegistration:!0})],SC);_.m(SC,"ytd-video-renderer",function(){return siJ()},{mode:_.e5("kevlar_poly_si_batch_j047")?1:2});var qL=function(){var A=_.G.apply(this,arguments)||this;A.editDialog=null;A.roundedContainer=!0;A.isLoading=!1;A.isRichGrid=!1;A.isRichGridRepost=!1;A.reduceSidePaddings=_.h("reduce_side_paddings_in_shelf");A.JSC$16152_spinnerEl=null;return A};
_.g(qL,_.G);_.P=qL.prototype;
_.P.configureRendererStamper=function(){return{"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.authorCommentBadge":{id:"author-comment-badge",mapping:{authorCommentBadgeRenderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",properties:{isPostCompactVideo:"[[usesCompactLockup]]",
isRichGridVideoPost:"[[isRichGrid]]"}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isPostCompactPlaylist:"[[usesCompactLockup]]"}},uploadedVideoRenderer:{component:"ytd-post-uploaded-video-renderer"}}},"data.voteButton":{id:"vote-button",mapping:{buttonRenderer:"ytd-button-renderer"}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}},
dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.P.contentTextChanged=function(){this.expander.reset()};
_.P.dataChanged=function(){var A=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var L=0,O=this.data.actions&&this.data.actions.length;L<O;L++)this.openEditDialog(_.q(this.data.actions[L],Hc6));if((L=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(L=this.get("buttonRenderer.hint.hintRenderer.hintId",L))&&L.startsWith("share-post-hint")){var X=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(X){_.DY.getInstance();var x=el(_.Ue(_.b3("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.c1.addLowPriorityJob(function(){_.VN(A.hostElement,x,X)})}}}};
_.P.updatePoll=function(A){A>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.P.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$16152_spinnerEl||(this.JSC$16152_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.YJ(this.hostElement).appendChild(this.JSC$16152_spinnerEl));this.JSC$16152_spinnerEl&&(this.JSC$16152_spinnerEl.active=this.isLoading)};
_.P.onYtNavigate=function(A){var L=this.get("updateCommentDialogEndpoint",A.detail.endpoint);L&&(this.openEditDialog(L),A.stopPropagation())};
_.P.onYtCommentboxDismiss=function(){this.editDialog=null};
_.P.onYtCommentPollRevert=function(A,L){L&&this.updatePoll(L.selectedChoiceIndex)};
_.P.onYtServiceRequestSent=function(A,L){var O;L.endpoint&&(_.q(L.endpoint,hsg)||_.q(L.endpoint,b2c)&&((O=_.q(L.endpoint,b2c))==null||!O.clientActions))&&(this.isLoading=!0);if(L.actions)for(A=0;A<L.actions.length;A++)O=L.actions[A],_.q(O,QF)&&(O=this.get("updateBackstagePollAction.selectedChoiceIndex",O),O==void 0&&(O=-1),this.updatePoll(O))};
_.P.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.P.openEditDialog=function(A){A&&A.dialog&&(this.editDialog=A.dialog,A=this.editDialogEl.firstElementChild)&&(A.focus(),A.openDialog&&A.openDialog())};
_.P.computeIsPostHidden=function(A,L){return!!A||L};
_.P.computeSurfaceType=function(A){return A?A.toLowerCase().replace(/_/g,"-"):""};
_.P.computeUsesCompactLockup=function(A){return A==="BACKSTAGE_SURFACE_TYPE_HOME"||A==="BACKSTAGE_SURFACE_TYPE_SEARCH"||A==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||A==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||A==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||A==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.P.computeShowWithoutToolbar=function(A){return!A.actionButtons&&!A.actionMenu};
_.P.computePostAttachment=function(A){if(A.backstageAttachment){if(_.q(A.backstageAttachment,ot6))return"poll";if(_.q(A.backstageAttachment,m13))return"quiz";if(_.q(A.backstageAttachment,_.kt))return"video";if(_.q(A.backstageAttachment,fUj))return"uploaded-videos";if(_.q(A.backstageAttachment,eJL))return A.contentText?"image":"image-only";if(_.q(A.backstageAttachment,ClN))return"playlist"}return"none"};
_.P.computePostTabIndex=function(A){return A?0:-1};
_.P.computeButtonTooltipPosition=function(A){return this.computeUsesCompactLockup(A)?"top":"bottom"};
_.P.computeHasText=function(A){return!(A==null||!A.contentText)};
_.P.onTap=function(A){var L,O;if(((L=this.data)==null?0:L.navigationEndpoint)&&((O=this.data)==null?void 0:O.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var X;((X=this.data)==null?0:X.navigationEndpoint)&&!_.xu(_.oa(A)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.P4(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.v2.Object.defineProperties(qL.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.voteCount)||_.Ue("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.q(this.data.backstageAttachment,ot6))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.q(this.data.backstageAttachment,fUj))}}});
qL.prototype.onYtServiceRequestCompleted=qL.prototype.onYtServiceRequestCompleted;qL.prototype.onYtServiceRequestSent=qL.prototype.onYtServiceRequestSent;qL.prototype.onYtCommentPollRevert=qL.prototype.onYtCommentPollRevert;qL.prototype.onYtCommentboxDismiss=qL.prototype.onYtCommentboxDismiss;qL.prototype.onYtNavigate=qL.prototype.onYtNavigate;qL.prototype.isLoadingChanged=qL.prototype.isLoadingChanged;qL.prototype.dataChanged=qL.prototype.dataChanged;qL.prototype.contentTextChanged=qL.prototype.contentTextChanged;
_.I([_.N(_.BL),_.Z("design:type",Object)],qL.prototype,"ytdDismissibleItemBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],qL.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],qL.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],qL.prototype,"ytComponentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],qL.prototype,"data",void 0);
_.I([_.K(),_.Z("design:type",Object)],qL.prototype,"editDialog",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],qL.prototype,"roundedContainer",void 0);_.I([_.K(),_.Z("design:type",Object)],qL.prototype,"isLoading",void 0);_.I([_.K({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.Z("design:type",String)],qL.prototype,"surface",void 0);
_.I([_.K({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],qL.prototype,"usesCompactLockup",void 0);_.I([_.K({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],qL.prototype,"showWithoutToolbar",void 0);_.I([_.K({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.Z("design:type",String)],qL.prototype,"attachment",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],qL.prototype,"isRichGrid",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],qL.prototype,"isRichGridRepost",void 0);_.I([_.K({reflectToAttribute:!0,value:_.h("use_better_post_dismissals")}),_.Z("design:type",Boolean)],qL.prototype,"useBetterPostDismissals",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],qL.prototype,"reduceSidePaddings",void 0);
_.I([_.K({computed:"computeHasText(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],qL.prototype,"hasText",void 0);_.I([_.qR("#expander"),_.Z("design:type",Object)],qL.prototype,"expander",void 0);_.I([_.qR("#action-buttons"),_.Z("design:type",Object)],qL.prototype,"actionButtons",void 0);_.I([_.qR("#edit-dialog"),_.Z("design:type",HTMLElement)],qL.prototype,"editDialogEl",void 0);
_.I([_.hT("data.contentText"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qL.prototype,"contentTextChanged",null);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qL.prototype,"dataChanged",null);_.I([_.hT("isLoading"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qL.prototype,"isLoadingChanged",null);
_.I([_.by("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],qL.prototype,"onYtNavigate",null);_.I([_.by("yt-commentbox-dismiss"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qL.prototype,"onYtCommentboxDismiss",null);_.I([_.by("yt-comment-poll-revert"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],qL.prototype,"onYtCommentPollRevert",null);
_.I([_.by("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.aQ]),_.Z("design:returntype")],qL.prototype,"onYtServiceRequestSent",null);_.I([_.by("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.Xi]),_.Z("design:returntype")],qL.prototype,"onYtServiceRequestCompleted",null);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],qL.prototype,"voteCount",null);
_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],qL.prototype,"commentCount",null);_.I([_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],qL.prototype,"hasPoll",null);_.I([_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],qL.prototype,"hasUploadedVideo",null);_.I([_.Q({is:"ytd-post-renderer",disableElementRegistration:!0})],qL);
_.m(qL,"ytd-post-renderer",function(){if(r5H!==void 0)return r5H;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return r5H=A},{mode:1});var Jfj;var Ptl;var gn=function(){return _.G.apply(this,arguments)||this};
_.g(gn,_.G);gn.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],gn.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],gn.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.Vy.YtdHorizontalListBehavior),_.Z("design:type",Object)],gn.prototype,"ytdHorizontalListBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],gn.prototype,"componentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],gn.prototype,"data",void 0);
_.I([_.K({value:"$.items.children"}),_.Z("design:type",String)],gn.prototype,"itemsPath",void 0);_.I([_.K({value:1}),_.Z("design:type",Number)],gn.prototype,"initialCount",void 0);_.I([_.K(),_.Z("design:type",String)],gn.prototype,"surface",void 0);_.I([_.Q({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],gn);
_.m(gn,"ytd-post-multi-image-renderer",function(){if(Ptl!==void 0)return Ptl;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Ptl=A},{mode:_.e5("kevlar_poly_si_batch_j079")?1:2});var djJ={"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"}}},wn=function(){var A=_.G.apply(this,arguments)||this;A.hasInlineCommentSection=!1;A.editDialog=null;A.isLoading=!1;A.shouldHideAuthor=!1;A.shouldShowVideoTime=!1;
A.isInEngagementPanel=!1;A.hideBorder=!1;A.usesFullLockup=!1;A.shouldShowMenuInCompactView=!1;A.JSC$16168_spinnerEl=null;A.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return A};
_.g(wn,_.G);_.P=wn.prototype;_.P.configureRendererStamper=function(){return djJ};
_.P.computeIsPollHeaderEnabled=function(A){return(A==null?void 0:A.pollMetadataIcon)!=null};
_.P.getPublishTimeStampString=function(A,L){L=new Date((Number(L)-60*((new Date).getTimezoneOffset()-(new Date(Number(L)*1E3)).getTimezoneOffset()))*1E3);L=(new am(10)).format(L);if(A&&A.runs&&A.runs.length)for(var O=0;O<A.runs.length;O++)A.runs[O].text&&(A.runs[O].text=A.runs[O].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",L));return A};
_.P.created=function(){this.JSC$16168_spinnerEl=null};
_.P.contentTextChanged=function(){this.expander.reset()};
_.P.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var A;if((A=this.data)==null?0:A.actions){A=_.d(this.data.actions);for(var L=A.next();!L.done;L=A.next())this.openEditDialog(_.q(L.value,Hc6))}};
_.P.handleSignalActionOpenPostCommentDialogAction=function(){_.YJ(this.hostElement).querySelector("#action-buttons").reply()};
_.P.updatePoll=function(A,L){L&&this.set("data.pollMetadataVoteCountText",L);this.hasInlineCommentSection&&(A=A>=0,L=_.YJ(this.hostElement).querySelector("#action-buttons"),A?L.reply():L.hideReplyDialog())};
_.P.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$16168_spinnerEl||(this.JSC$16168_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.YJ(this.hostElement).appendChild(this.JSC$16168_spinnerEl));this.JSC$16168_spinnerEl&&(this.JSC$16168_spinnerEl.active=this.isLoading)};
_.P.onYtNavigate=function(A){var L=this.get("updateCommentDialogEndpoint",A.detail.endpoint);L&&(this.openEditDialog(L),A.stopPropagation())};
_.P.onYtCommentboxDismiss=function(){this.editDialog=null};
_.P.onYtCommentPollRevert=function(A,L){L&&this.updatePoll(L.selectedChoiceIndex,L.totalVotes)};
_.P.onYtServiceRequestSent=function(A,L){A.stopPropagation();A=_.q(L.endpoint,b2c);if(_.q(L.endpoint,hsg)||A&&!A.clientActions)this.isLoading=!0;if(L.actions)for(A=0;A<L.actions.length;A++){var O=L.actions[A],X=_.q(O,QF);X&&(O=this.get("updateBackstagePollAction.selectedChoiceIndex",O),O===void 0&&(O=-1),this.updatePoll(O,X.totalVotes))}};
_.P.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.P.openEditDialog=function(A){A&&A.dialog&&(this.editDialog=A.dialog,A=this.editDialogElement.firstElementChild)&&(A.focus(),A.openDialog&&A.openDialog())};
_.P.computeIsBodyHidden=function(A,L){return!!A||L};
_.v2.Object.defineProperties(wn.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var A,L;if((A=this.data)==null?0:(L=A.pollMetadataIcon)==null?0:L.iconType)return _.bV(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.voteCount)||_.Ue("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.q(this.data.backstageAttachment,ot6))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.q(this.data.backstageAttachment,m13))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.q(this.data.backstageAttachment,fUj))}}});
wn.prototype.onYtServiceRequestCompleted=wn.prototype.onYtServiceRequestCompleted;wn.prototype.onYtServiceRequestSent=wn.prototype.onYtServiceRequestSent;wn.prototype.onYtCommentPollRevert=wn.prototype.onYtCommentPollRevert;wn.prototype.onYtCommentboxDismiss=wn.prototype.onYtCommentboxDismiss;wn.prototype.onYtNavigate=wn.prototype.onYtNavigate;wn.prototype.isLoadingChanged=wn.prototype.isLoadingChanged;wn.prototype.dataChanged=wn.prototype.dataChanged;wn.prototype.contentTextChanged=wn.prototype.contentTextChanged;
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],wn.prototype,"actionHandlerBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],wn.prototype,"rendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],wn.prototype,"rendererstamperBehavior",void 0);_.I([_.qR("#contentTextExpander"),_.Z("design:type",Object)],wn.prototype,"expander",void 0);
_.I([_.qR("#edit-dialog"),_.Z("design:type",Element)],wn.prototype,"editDialogElement",void 0);_.I([_.K(),_.Z("design:type",Object)],wn.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],wn.prototype,"hasInlineCommentSection",void 0);_.I([_.K(),_.Z("design:type",Object)],wn.prototype,"editDialog",void 0);_.I([_.K(),_.Z("design:type",Object)],wn.prototype,"isLoading",void 0);
_.I([_.K({computed:"computeIsPollHeaderEnabled(data)"}),_.Z("design:type",Boolean)],wn.prototype,"isPollHeaderEnabled",void 0);_.I([_.K(),_.Z("design:type",Object)],wn.prototype,"shouldHideAuthor",void 0);_.I([_.K(),_.Z("design:type",Object)],wn.prototype,"shouldShowVideoTime",void 0);_.I([_.K(),_.Z("design:type",Object)],wn.prototype,"isInEngagementPanel",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],wn.prototype,"hideBorder",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],wn.prototype,"usesFullLockup",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],wn.prototype,"shouldShowMenuInCompactView",void 0);_.I([_.r("isInEngagementPanel"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],wn.prototype,"postTextMaxLines",null);_.I([_.r("data.icon.iconType"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],wn.prototype,"pollIcon",null);
_.I([_.hT("data.contentText"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],wn.prototype,"contentTextChanged",null);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],wn.prototype,"dataChanged",null);_.I([_.hT("isLoading"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],wn.prototype,"isLoadingChanged",null);
_.I([_.by("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],wn.prototype,"onYtNavigate",null);_.I([_.by("yt-commentbox-dismiss"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],wn.prototype,"onYtCommentboxDismiss",null);_.I([_.by("yt-comment-poll-revert"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],wn.prototype,"onYtCommentPollRevert",null);
_.I([_.by("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.aQ]),_.Z("design:returntype")],wn.prototype,"onYtServiceRequestSent",null);_.I([_.by("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],wn.prototype,"onYtServiceRequestCompleted",null);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],wn.prototype,"voteCount",null);
_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],wn.prototype,"commentCount",null);_.I([_.r("data.backstageAttachment"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],wn.prototype,"hasPoll",null);_.I([_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],wn.prototype,"hasQuiz",null);_.I([_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],wn.prototype,"hasUploadedVideo",null);
_.I([_.Q({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],wn);
_.m(wn,"ytd-backstage-post-renderer",function(){if(Jfj!==void 0)return Jfj;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Jfj=A},{mode:1});var YHN;var p0=function(){var A=_.G.apply(this,arguments)||this;A.editDialog=null;A.showExpandButton=!1;A.isRichGrid=!1;A.usesFullLockup=!1;return A};
_.g(p0,_.G);_.P=p0.prototype;_.P.configureRendererStamper=function(){return{"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.originalPost":{id:"original-post",mapping:{backstagePostRenderer:{component:"ytd-backstage-post-renderer",properties:{usesFullLockup:"[[usesFullLockup]]"}},postRenderer:{component:"ytd-post-renderer",properties:{isRichGridRepost:"[[isRichGrid]]"}}}},editDialog:{id:"repost-edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}}}};
_.P.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.P.computeShowExpandButton=function(A){return this.usesCompactLockup||A&&A.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.P.computeUsesCompactLockup=function(A){return!!A.condensedContent};
_.P.computeShowFullContentText=function(A){return!A};
_.P.onYtNavigate=function(A){A=this.get("updateCommentDialogEndpoint",A.detail.endpoint);this.openEditDialog(A)};
_.P.onYtCommentboxDismiss=function(){this.editDialog=null};
_.P.openEditDialog=function(A){A&&A.dialog&&(this.editDialog=A.dialog,A=this.repostEditDialogEl.firstElementChild)&&(A.focus(),A.openDialog&&A.openDialog())};
_.P.onTap=function(A){if(this.data){var L=null;this.usesCompactLockup&&!_.xu(_.oa(A)||[],this.hostElement,["YT-IMG-SHADOW"])?L=this.get("navigationEndpoint",this.data):A.target===this.moreButtonEl&&(L=this.get("navigationEndpoint",A.target.data));L&&_.P4(this.hostElement,"yt-navigate",{endpoint:L})}};
p0.prototype.onYtCommentboxDismiss=p0.prototype.onYtCommentboxDismiss;p0.prototype.onYtNavigate=p0.prototype.onYtNavigate;p0.prototype.dataChanged=p0.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],p0.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],p0.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],p0.prototype,"data",void 0);
_.I([_.K(),_.Z("design:type",Object)],p0.prototype,"editDialog",void 0);_.I([_.K({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],p0.prototype,"usesCompactLockup",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],p0.prototype,"showExpandButton",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],p0.prototype,"isRichGrid",void 0);
_.I([_.K({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],p0.prototype,"showFullContentText",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],p0.prototype,"usesFullLockup",void 0);_.I([_.qR("#more"),_.Z("design:type",Object)],p0.prototype,"moreButtonEl",void 0);_.I([_.qR("#repost-content-text"),_.Z("design:type",HTMLElement)],p0.prototype,"repostContentTextEl",void 0);
_.I([_.qR("#repost-edit-dialog"),_.Z("design:type",HTMLElement)],p0.prototype,"repostEditDialogEl",void 0);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],p0.prototype,"dataChanged",null);_.I([_.by("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],p0.prototype,"onYtNavigate",null);
_.I([_.by("yt-commentbox-dismiss"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],p0.prototype,"onYtCommentboxDismiss",null);_.I([_.Q({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],p0);
_.m(p0,"ytd-shared-post-renderer",function(){if(YHN!==void 0)return YHN;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return YHN=A},{mode:1});var uKc;var TZu;var iG=function(){return _.G.apply(this,arguments)||this};
_.g(iG,_.G);iG.prototype.attached=function(){var A=this;this.networkStatusManager||(this.networkStatusManager=new _.H1,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){A.onlineHandler()}))};
iG.prototype.detached=function(){var A=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){A.onlineHandler()}),delete this.networkStatusManager)};
iG.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],iG.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],iG.prototype,"ytComponentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],iG.prototype,"data",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],iG);
_.m(iG,"ytd-reload-page-button-renderer",function(){if(TZu!==void 0)return TZu;var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);
return TZu=A},{mode:1});var Vd6={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"},NL=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return A};
_.g(NL,_.G);_.P=NL.prototype;_.P.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.P.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.P.computeHasBodyText=function(A){return!!A.bodyText};
_.P.computeButtons=function(A){var L=[];A.ctaButton&&L.push(A.ctaButton);A.secondaryButton&&L.push(A.secondaryButton);return L};
_.P.computeRendererStyle=function(A){return A.style?A.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():A.icon?"":"no-icon"};
_.P.getIconName=function(A,L){L=L===void 0?!1:L;if(A===void 0)return"";A=this.get("icon.iconType",A);var O;_.h("enable_hlp_client_icon_pick")?O=this.getThemedIcon(A,L):O=A;(L=Vd6[O])||(L="yt-icons");return[L,O].join(":")};
_.P.getThemedIcon=function(A,L){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(A)?L?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(A)?L?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":A};
_.P.isThumbnail=function(A){return!!A.thumbnail};
_.P.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.P.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],NL.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],NL.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],NL.prototype,"ytActionHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],NL.prototype,"data",void 0);
_.I([_.K({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.Z("design:type",String)],NL.prototype,"rendererStyle",void 0);_.I([_.K({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.Z("design:type",String)],NL.prototype,"iconName",void 0);_.I([_.K({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],NL.prototype,"thumbnail",void 0);_.I([_.K({computed:"computeButtons(data)"}),_.Z("design:type",Array)],NL.prototype,"buttons",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],NL.prototype,"isDarkTheme",void 0);_.I([_.K({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],NL.prototype,"hasBodyText",void 0);_.I([_.Q({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],NL);
_.m(NL,"ytd-background-promo-renderer",function(){if(uKc!==void 0)return uKc;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return uKc=A},{mode:1});var DjV;var rn=function(){var A=_.G.apply(this,arguments)||this;A.collections=_.h("web_modern_collections_v2");return A};
_.g(rn,_.G);_.v2.Object.defineProperties(rn.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var A,L,O,X,x,J;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(A=this.data)==null?void 0:(L=A.thumbnail)==null?void 0:L.sampledThumbnailColor,vibrantColorPalette:(O=this.data)==null?void 0:(X=O.thumbnail)==null?void 0:X.vibrantColorPalette,darkColorPalette:(x=this.data)==null?void 0:(J=x.thumbnail)==null?void 0:J.darkColorPalette,experimentEnabled:this.collections}}}});
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],rn.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],rn.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],rn.prototype,"collections",void 0);_.I([_.r("data","collections"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],rn.prototype,"collectionStack",null);_.I([_.Q({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],rn);
_.m(rn,"ytd-compact-station-renderer",function(){if(DjV!==void 0)return DjV;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return DjV=A},{mode:1});var eXn;var K0=function(){var A=_.G.apply(this,arguments)||this;A.isRichGrid=!1;return A};
_.g(K0,_.G);K0.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]]"}}}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],K0.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],K0.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],K0.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],K0.prototype,"isRichGrid",void 0);_.I([_.Q({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],K0);
_.m(K0,"ytd-grid-channel-renderer",function(){if(eXn!==void 0)return eXn;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return eXn=A},{mode:1});var EM7;var GG=function(){return _.G.apply(this,arguments)||this};
_.g(GG,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],GG.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],GG.prototype,"data",void 0);_.I([_.Q({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],GG);
_.m(GG,"ytd-grid-movie-playlist-renderer",function(){if(EM7!==void 0)return EM7;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return EM7=A},{mode:1});var nMg;var lG=function(){var A=_.G.apply(this,arguments)||this;A.downloadProgress=0;A.transferState="TRANSFER_STATE_UNKNOWN";A.modernButtons=_.h("web_modern_buttons");A.useModernCollectionsV2=_.h("web_modern_collections_v2");return A};
_.g(lG,_.G);lG.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
lG.prototype.configureRendererStamper=function(){return{"data.menu":wI}};
lG.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
lG.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.h("woffle_playlist_renderer_killswitch")){var A,L=mv_(this.entityInfo,this.transferState,this.downloadProgress,(A=this.data)==null?void 0:A.playlistId,this.isOnline);A=L.viewPlaylistText;var O=L.badges;L=L.thumbnailOverlays;this.isDownloads=!!A||!!O;this.set("data.viewPlaylistText",A);O&&O.length>0&&this.set("data.badges",O);L&&L.length>0&&this.set("data.thumbnailOverlays",
L)}};
_.v2.Object.defineProperties(lG.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 A;return!((A=this.data)==null?0:A.menu)}}});
lG.prototype.transferStateChanged=lG.prototype.transferStateChanged;lG.prototype.dataChanged=lG.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],lG.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.of),_.Z("design:type",Object)],lG.prototype,"ytdLockupBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],lG.prototype,"ytdReduxBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],lG.prototype,"ytRendererstamperBehavior",void 0);
_.I([_.K({selector:_.UBO,selectorArgs:["data.playlistId"]}),_.Z("design:type",Object)],lG.prototype,"downloadProgress",void 0);_.I([_.K({selector:_.Zn,selectorArgs:["data.playlistId"]}),_.Z("design:type",Object)],lG.prototype,"transferState",void 0);_.I([_.K({selector:ker,selectorArgs:["data.playlistId"]}),_.Z("design:type",Object)],lG.prototype,"entityInfo",void 0);_.I([_.K({selector:_.Im}),_.Z("design:type",Boolean)],lG.prototype,"isOnline",void 0);
_.I([_.K(),_.Z("design:type",Object)],lG.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],lG.prototype,"downloadRenderData",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],lG.prototype,"modernButtons",void 0);_.I([_.K({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],lG.prototype,"isDownloads",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],lG.prototype,"useModernCollectionsV2",void 0);
_.I([_.r("transferState"),_.K({reflectToAttribute:!0}),_.Z("design:type",String),_.Z("design:paramtypes",[])],lG.prototype,"downloadState",null);_.I([_.r("data"),_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],lG.prototype,"menuHidden",null);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],lG.prototype,"dataChanged",null);
_.I([_.iy("transferState","downloadProgress","isOnline"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],lG.prototype,"transferStateChanged",null);_.I([_.Q({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],lG);
_.m(lG,"ytd-grid-playlist-renderer",function(){if(nMg!==void 0)return nMg;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return nMg=A},{mode:1});var tdu;var cQ=function(){var A=_.G.apply(this,arguments)||this;A.collections=_.h("web_modern_collections_v2");return A};
_.g(cQ,_.G);cQ.prototype.configureRendererStamper=function(){return{"data.menu":wI,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.v2.Object.defineProperties(cQ.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var A,L,O,X,x,J;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(A=this.data)==null?void 0:(L=A.thumbnail)==null?void 0:L.sampledThumbnailColor,vibrantColorPalette:(O=this.data)==null?void 0:(X=O.thumbnail)==null?void 0:X.vibrantColorPalette,darkColorPalette:(x=this.data)==null?void 0:(J=x.thumbnail)==null?void 0:J.darkColorPalette,experimentEnabled:this.collections}}}});
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],cQ.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.BL),_.Z("design:type",Object)],cQ.prototype,"ytdDismissibleItemBehavior",void 0);_.I([_.N(_.of),_.Z("design:type",Object)],cQ.prototype,"ytdLockupBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],cQ.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],cQ.prototype,"data",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],cQ.prototype,"collections",void 0);_.I([_.r("data","collections"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],cQ.prototype,"collectionStack",null);_.I([_.Q({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],cQ);
_.m(cQ,"ytd-grid-radio-renderer",function(){if(tdu!==void 0)return tdu;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return tdu=A},{mode:1});var bSl;var C0=function(){var A=_.G.apply(this,arguments)||this;A.useModernCollectionsV2=_.h("web_modern_collections_v2");return A};
_.g(C0,_.G);C0.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
C0.prototype.computeNavigationEndpoint=function(A){return zCu(A==null?void 0:A.navigationEndpoint)};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],C0.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],C0.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.of),_.Z("design:type",Object)],C0.prototype,"ytdLockupBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],C0.prototype,"data",void 0);_.I([_.K({computed:"computeNavigationEndpoint(data)"}),_.Z("design:type",Object)],C0.prototype,"computedNavigationEndpoint",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],C0.prototype,"useModernCollectionsV2",void 0);_.I([_.Q({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],C0);
_.m(C0,"ytd-grid-show-renderer",function(){if(bSl!==void 0)return bSl;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return bSl=A},{mode:1});var hXg;_.F7=function(A){this.playerClient=A};
_.SHN=function(A,L,O){O=O===void 0?{}:O;return A.playerClient.setOption("ad",L,O)};
_.F7.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.F7.prototype.executeCommand=function(A,L){this.getOptions().includes("executeCommand")?_.SHN(this,"executeCommand",{command:A,layoutId:L}):_.sf("Calling executeCommand when adModule is not loaded")};var RE=function(){return _.G.apply(this,arguments)||this};
_.g(RE,_.G);RE.prototype.getLayoutId=function(){var A=_.WY("yt.www.ads.eventcache.getLastCompanionData");return A?(A=A())&&A.layoutId:null};
RE.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var A=_.d0(),L=this.getLayoutId(),O=this.data.clickthroughEndpoint;A&&L&&_.h("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?A.getPlayerPromise().then(function(X){(new _.F7(X)).executeCommand(O,L)}):_.P4(this.hostElement,"yt-navigate",{endpoint:O})}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],RE.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],RE.prototype,"data",void 0);_.I([_.Q({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],RE);
_.m(RE,"ytd-shopping-companion-item-renderer",function(){if(hXg!==void 0)return hXg;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return hXg=A},{mode:1});var qHN;var QK=function(){var A=_.G.apply(this,arguments)||this;A.isExpandableContent=!1;return A};
_.g(QK,_.G);_.v2.Object.defineProperties(QK.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var A,L,O;return((A=this.data)==null?void 0:A.price)||((L=this.data)==null?void 0:(O=L.dealsData)==null?void 0:O.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var A,L;if((A=this.data)!=null&&A.dealsData&&((L=this.data)==null||!L.priceReplacementText)){A=this.data.dealsData;var O,X,x;return((O=A.salesData)==null?void 0:O.originalPrice)||((X=A.priceDropData)==null?void 0:X.referencePrice)||((x=A.promotionData)==null?void 0:x.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var A,L;return(A=this.data)==null?void 0:(L=A.dealsData)==null?void 0:L.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],QK.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],QK.prototype,"componentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],QK.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],QK.prototype,"isExpandableContent",void 0);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QK.prototype,"showCta",null);
_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QK.prototype,"ctaText",null);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QK.prototype,"hasPriceTopPosition",null);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QK.prototype,"hasPriceBottomPosition",null);_.I([_.K({reflectToAttribute:!0}),_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QK.prototype,"useNewStyle",null);
_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QK.prototype,"showPriceReplacementText",null);_.I([_.K({reflectToAttribute:!0}),_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QK.prototype,"priceValue",null);_.I([_.K({reflectToAttribute:!0}),_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QK.prototype,"showDeal",null);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QK.prototype,"showAffiliateDisclaimer",null);
_.I([_.K({reflectToAttribute:!0}),_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QK.prototype,"useSaleStyle",null);_.I([_.K({reflectToAttribute:!0}),_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QK.prototype,"useFromBrandCtaStyle",null);_.I([_.K({reflectToAttribute:!0}),_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QK.prototype,"useFromVendorCtaStyle",null);
_.I([_.K({reflectToAttribute:!0}),_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QK.prototype,"useShoppingCollectionCtaStyle",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],QK);
_.m(QK,"ytd-vertical-product-card-renderer",function(){if(qHN!==void 0)return qHN;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return qHN=A},{mode:1});var gMH;var mP=function(){return _.G.apply(this,arguments)||this};
_.g(mP,_.G);mP.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],mP.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],mP.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.of),_.Z("design:type",Object)],mP.prototype,"ytdLockupBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],mP.prototype,"data",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],mP);
_.m(mP,"ytd-grid-movie-renderer",function(){if(gMH!==void 0)return gMH;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return gMH=A},{mode:1});var wj7;var f0=function(){var A=_.G.apply(this,arguments)||this;A.rounded=!0;A.itemStyle="small-item";return A};
_.g(f0,_.G);f0.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var A,L,O,X,x=(L=_.q((A=this.data)==null?void 0:A.buttonCommand,_.cB))==null?void 0:(O=L.item)==null?void 0:(X=O.notificationTextRenderer)==null?void 0:X.successResponseText;x&&_.vku(this.hostElement,x)}};
_.v2.Object.defineProperties(f0.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var A,L;return((A=this.data)==null?void 0:A.isProductPlaceholder)!==void 0&&((L=this.data)==null?void 0:L.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.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}}});
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],f0.prototype,"ytRendererBehavior",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],f0.prototype,"rounded",void 0);_.I([_.K(),_.Z("design:type",Object)],f0.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",String)],f0.prototype,"itemStyle",void 0);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],f0.prototype,"hasPrice",null);
_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],f0.prototype,"hasPriceReplacementText",null);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],f0.prototype,"hasAdditionalFeesText",null);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],f0.prototype,"hasAffiliateDisclaimer",null);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],f0.prototype,"isProductPlaceholder",null);
_.I([_.K(),_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],f0.prototype,"hideOpenInNewIcon",null);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],f0.prototype,"ariaLabel",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],f0);
_.m(f0,"ytd-merch-shelf-item-renderer",function(){if(wj7!==void 0)return wj7;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return wj7=A},{mode:1});var pjn=_.xa(function(A){return _.D("button-card-view-model",{el:_.sC(_.Bm(function(){return A.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return A.data().title},
role:"button"},_.D(_.cx,{model:{}}),_.D("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.D("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.D(_.e,{cond:function(){return A.data().image},
then:function(L){return _.D(_.XV,{data:L,alt:function(){var O;return(O=A.data().title)!=null?O:""},
className:"ytwButtonCardViewModelHostImage"})}})),_.D("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return A.data().title})))},"fb");_.h("web_button_view_model_wcw_registration_killswitch")||_.Y4(pjn,"button-card-view-model",{props:{data:_.x5}});_.Y4(_.xa(function(A){A=_.OY(A,{className:void 0});var L=A.data;A=A.className;var O=_.E4(function(){return L().onTapCommand},void 0,"NprDr");
return _.D("ytd-shopping-item-card",{class:_.qn("ytdShoppingItemCardHost",A)},_.D(_.aD,{command:O,className:"ytdShoppingItemCardHostLink"},_.D("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.D(_.ID,{data:function(){return L().thumbnailViewModel}},{thumbnailViewModel:function(X){return _.D(_.s8,{data:X.data,
aspectRatio:3})}})),_.D("div",null,_.D("p",{class:"ytdShoppingItemCardHostItemTitle"},_.D(_.Xg,{text:function(){return L().itemTitle}})),_.D("p",{class:"ytdShoppingItemCardHostPrice"},_.D(_.Xg,{text:function(){return L().priceOrStatus}})))))},"gb"),"ytd-shopping-item-card",{props:{data:_.x5,
className:_.x5}});var iSc={isAdsVideo:!0},NZc={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},rfH={showPlayerControls:!1,videoPreviewDurationMs:15E3},KOn={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!_.h("web_shorts_imp_fullwidth_killswitch")};var PC=null,oke={};var OSu="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(" "),IE={},Xjr=(IE.FEwhat_to_watch="home",IE.FEhashtag="hashtag",IE.FEtrending="trending",IE.FEhistory="history",IE.SPunlimited="premium",IE.FEmemberships_and_purchases="paid_memberships",IE.SPredeem_code="redeem",IE.SPverify_location="locate",IE.SPminor_moment="minor_moment",
IE.FEmini_app_container="mini_app",IE.FEnews_destination="news",IE.SPopen_in_app="open_in_app",IE.FEexplore="explore",IE.FEsubscriptions="subscriptions",IE.FEsfv_audio_pivot="sfv_audio_pivot",IE.FEplaylist_aggregation="playlist_aggregation",IE);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");_.DQ("init");var GtN=function(){},FO6=_.xa(function(A){var L=A.data;
var O=A.inlineMetadata;var X=A.aspectRatio;var x=A.scrimStyle;var J=A.className;var Y=A.useDefaultStyle;var T=new GtN,V=_.h("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",E=_.E4(function(){return(Y==null?0:Y())?V==="SHORTS_LOCKUP_STYLE_SLIM":L().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"ibyPNe"),n=_.E4(function(){return _.GV(O)||E()||!1},void 0,"F6KaVc"),t=function(){return(x==null?void 0:x())!==void 0?x==null?void 0:x():1},b=_.E4(function(){return L().belowThumbnailMetadata||
!n()},void 0,"t2xwLe");
A=_.Oj({visibilityCallback:function(a){var xe=L().onFirstVisible;a&&xe&&_.$a(xe)},
showOption:{calledOnce:!0,state:"visible"}});var S=_.sC(),w={},l=_.qn(function(){return E(),"shortsLockupViewModelHostThumbnailContainer"},(w.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.GV(X)===1},w.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.GV(X)===2},w.shortsLockupViewModelHostThumbnailContainerRounded=function(){return!E()},w.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.h("web_shorts_2_by_3_lockups_study")&&
!_.h("desktop_search_enable_two_by_three_shorts_aspect_ratio")},w)),F=_.E4(function(){if(_.GV(X)===1)return 1;
_.GV(X);return 2},void 0,"No1ZPc"),R,y=function(){if(T){var a;
(a=R)==null||sr(a);var xe;T.hostElement&&((xe=T.data)==null?0:xe.inlinePlayerData)&&(R=$u({mediaRenderer:T,lockupElement:T.hostElement,thumbnailElement:S.value,videoPreviewOpts:KOn}))}};
_.ND(function(){T&&(T.data=L(),y())},"zaa1Ge");
var M=_.E4(function(){return L().thumbnail},void 0,"Wwc1ef");
w=_.E4(function(){return L().badge},void 0,"ONh7Ad");
var H=_.E4(function(){return L().onTap},void 0,"YbM0ub"),z={};
return _.D("ytm-shorts-lockup-view-model",{el:_.sC(function(a){T&&(T.hostElement=a)},y,A),
class:_.qn("shortsLockupViewModelHost",J)},_.D(_.Xs,null,_.D(_.aD,{command:H,className:_.qn("shortsLockupViewModelHostEndpoint",(z.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!b()},z),"reel-item-endpoint",""),
ariaHidden:function(){return!n()},
tabIndex:function(){return n()?0:-1}},_.D("div",{el:S,
class:"shortsLockupViewModelHostThumbnailParentContainer"},_.D(_.e,{cond:M,then:function(){return _.D("div",{class:l},_.D(_.XV,{data:function(){var a;return(a=M==null?void 0:M())!=null?a:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),_.D(_.ID,{data:function(){return L().thumbnailViewModel}},{thumbnailViewModel:function(a){return _.D(_.s8,{data:a.data,
aspectRatio:function(){return F()},
disableRounding:function(){return E()}})}}),null),_.D(_.e,{cond:n,
then:function(){return _.D(ldj,{data:L,scrimStyle:t,useDefaultStyle:Y})}}),_.D(_.ID,{data:w},{badgeViewModel:function(a){return _.D(_.Y6,{data:a.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.D(_.e,{cond:function(){return n()&&L().menuOnTap},
then:function(){return _.D(cf6,{data:L,inlineMetadata:!0})}}),_.D(_.e,{cond:b,
then:function(){return _.D(Ctu,{data:L,useDefaultStyle:Y,inlineMetadata:n})}})))},"hb"),ldj=_.xa(function(A){var L=A.data;
var O=A.scrimStyle;var X=A.useDefaultStyle;var x=_.h("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",J=X&&_.h("web_hide_primary_text_for_pivot_panel"),Y=_.E4(function(){return(X==null?0:X())?x==="SHORTS_LOCKUP_STYLE_SLIM":L().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"CYSzxb");
A={};A=_.qn("shortsLockupViewModelHostInlineMetadata",(A.shortsLockupViewModelHostMetadataRounded=function(){return!Y()},A.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(O==null?void 0:O())===3&&!_.h("enable_shorts_lockup_new_scrim")},A.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(O==null?void 0:O())===3&&_.h("enable_shorts_lockup_new_scrim")},A.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(O==null?void 0:O())===2||(O==null?void 0:
O())===4},A.shortsLockupViewModelHostShowOverPlayer=function(){return!0},A),"image-overlay-text");
var T={};return _.D("div",{class:A},_.D("h3",{class:_.qn("shortsLockupViewModelHostMetadataTitle",(T.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(O==null?void 0:O())===4},T.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return L().belowThumbnailMetadata},T)),
"aria-label":function(){return L().accessibilityText}},_.D(_.e,{cond:function(){var V;
return!((V=L().overlayMetadata)==null||!V.primaryText)&&!J},
then:function(){return _.D(_.Xg,{text:function(){var V;return(V=L().overlayMetadata)==null?void 0:V.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.D(_.e,{cond:function(){var V;
return(V=L().overlayMetadata)==null?void 0:V.secondaryText},
then:function(){return _.D(RXJ,{data:L,scrimStyle:O,className:void 0})}}))},"ib"),Ctu=_.xa(function(A){var L=A.data;
var O=A.useDefaultStyle;var X=A.inlineMetadata;var x=_.h("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",J=_.E4(function(){return(O==null?0:O())?x==="SHORTS_LOCKUP_STYLE_SLIM":L().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"bjkXwf"),Y=_.sC(),T;
A=_.py(function(S){if(_.Wm(_.j8(S),Y.value,["AVATAR-VIEW-MODEL"]))return!1;var w;(w=T)==null||w.click();return!1});
var V=_.E4(function(){return L().belowThumbnailMetadata||L().overlayMetadata},void 0,"g2VRod"),E=function(){return L().menuOnTap&&!X()},n=function(){var S;
return(S=V())==null?void 0:S.avatar},t={},b={};
return _.D("div",{class:_.qn(function(){return J()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(t.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!n()},t.shortsLockupViewModelHostOutsideMetadataHasMenu=E,t)),
"on:click":A,el:Y},_.D(_.ID,{data:n},{avatarViewModel:function(S){return _.D("div",{class:"shortsLockupViewModelHostOutsideMetadataAvatar"},_.D(_.fP,{data:S.data}))}}),_.D("div",null,_.D("h3",{class:_.qn("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(b.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var S,w;
return!((S=V())==null?0:(w=S.primaryText)==null?0:w.content)},b.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=X,b)),
"aria-label":function(){return L().accessibilityText}},_.D(_.aD,{ref:function(S){return void(T=S)},
command:function(){return L().onTap},
className:_.qn("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var S,w;return(S=V())==null?void 0:(w=S.primaryText)==null?void 0:w.content}},_.D(_.e,{cond:function(){var S;
return(S=V())==null?void 0:S.primaryText},
then:function(S){return _.D(_.Xg,{text:S,noEndpoints:!0,noStyleRuns:!0})}}))),_.D(_.e,{cond:function(){var S;
return(S=V())==null?void 0:S.secondaryText},
then:function(S){return _.D("div",{class:_.qn("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead"),"aria-hidden":"true"},_.D(_.Xg,{text:S,noStyleRuns:!0}))}})),_.D(_.e,{cond:E,
then:function(){return _.D(cf6,{data:L,inlineMetadata:!1})}}))},"jb"),RXJ=_.xa(function(A){var L=A.data;
var O=A.scrimStyle;A=A.className;var X={};return _.D("div",{class:_.qn((X.shortsLockupViewModelHostMetadataSubhead=function(){return(O==null?void 0:O())!==4},X.shortsLockupViewModelHostMetadataSubheadNew=_.h("enable_shorts_lockup_new_scrim"),X.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(O==null?void 0:O())===4},X),A),
"aria-hidden":"true"},_.D(_.Xg,{text:function(){var x;return(x=L().overlayMetadata)==null?void 0:x.secondaryText},
noStyleRuns:!0}))},"kb"),cf6=_.xa(function(A){var L=A.data;
var O=A.inlineMetadata;A={};A=_.qn((A.shortsLockupViewModelHostInlineMetadataMenu=function(){return O()},A.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!O()},A.shortsLockupViewModelHostShowOverPlayer=function(){return!0},A),"image-overlay-text");
return _.D("div",{class:A},_.D(_.xf,{data:function(){return{style:O()?"overlay":"mono",accessibilityLabel:L().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(X){X.preventDefault();X.stopPropagation();var x=_.BR({elementsCommand:L().menuOnTap,forceNewState:!0});if(x==null?0:x.onclick)x.onclick(X)}}},
iconName:"MORE_VERT"}))},"lb");var QiV=_.xa(function(A){var L=A.data;var O=A.inlineMetadata;var X=A.aspectRatio;var x=A.scrimStyle;var J=A.className;var Y=A.useDefaultStyle;A=_.E4(function(){var T=L().entityId;return T?T.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"W3Tlke");
return _.D("ytm-shorts-lockup-view-model-v2",{class:_.qn("shortsLockupViewModelHost",J)},_.D(_.eC,{contentId:A,aspectRatio:function(){return(X==null?void 0:X())===1?1:(X==null?void 0:X())===2?2:4}},function(){return _.D(FO6,{data:L,
inlineMetadata:O,aspectRatio:X,scrimStyle:x,className:J,useDefaultStyle:Y})}))},"mb");_.Y4(QiV,"ytm-shorts-lockup-view-model-v2",{props:{data:_.dl,inlineMetadata:_.dl,aspectRatio:_.dl,scrimStyle:_.dl,className:_.dl,useDefaultStyle:_.dl}});var mj6=16/9*210,yK=function(){var A=_.G.apply(this,arguments)||this;A.isExpandableContent=!1;A.hideShelfHeader=!1;A.engagementPanel=!1;A.buttonClasses=["arrow"];A.isSearch=!1;A.disableScrollEventListener=!1;A.containsLockup=!1;A.overrideArrowPositionForProductCard=!1;A.overrideArrowPositionForShoppingItemCard=!1;A.overrideArrowPositionForReelItems=!1;A.overrideArrowPositionForGridMovie=!1;A.overrideArrowPositionToCenter=!1;A.isSearchPostShelf=!1;A.overrideArrowPositionForMixedShelf=!1;A.overrideArrowPositionForMixedShelfShortsOnly=
!1;A.hasBigThumbsReelItems=!1;A.shouldUseMixedListHeight=!1;A.shouldUseShortsListHeight=!1;A.gridVideoWidth=0;A.isSearchVodShelf=!1;A.disableWheelScroll=!1;A.sizing="COMPACT";A.shortsLockupAspectRatio=0;return A};
_.g(yK,_.G);_.P=yK.prototype;
_.P.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"yt-horizontal-list-renderer lockup",containerType:4},properties:{force16By9ThumbnailAspectRatio:"[[data.force16By9ThumbnailAspectRatio]]",sizing:"[[sizing]]"}},backgroundPromoRenderer:"ytd-background-promo-renderer",compactStationRenderer:"ytd-compact-station-renderer",gridChannelRenderer:"ytd-grid-channel-renderer",gridMoviePlaylistRenderer:"ytd-grid-movie-playlist-renderer",shoppingItemCardViewModel:{component:"ytd-shopping-item-card",
params:{className:"yt-horizontal-list-renderer"}},gridMovieRenderer:"ytd-grid-movie-renderer",gridPlaylistRenderer:"ytd-grid-playlist-renderer",gridRadioRenderer:"ytd-grid-radio-renderer",gridShowRenderer:"ytd-grid-show-renderer",gridVideoRenderer:{component:"ytd-grid-video-renderer",properties:{isSearch:"[[isSearch]]",width:"[[gridVideoWidth]]"}},merchShelfItemRenderer:"ytd-merch-shelf-item-renderer",shoppingCompanionCarouselItemRenderer:"ytd-shopping-companion-item-renderer",displayAdRenderer:"ytd-display-ad-renderer",
compactChannelRecommendationCardRenderer:"ytd-compact-channel-recommendation-card-renderer",postRenderer:"ytd-post-renderer",reelItemRenderer:{component:"ytd-reel-item-renderer",properties:{isSearch:"[[isSearch]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",params:{className:"yt-horizontal-list-renderer"},properties:{aspectRatio:"[[shortsLockupAspectRatio]]"}},sharedPostRenderer:"ytd-shared-post-renderer",verticalProductCardRenderer:{component:"ytd-vertical-product-card-renderer",
properties:{isExpandableContent:"[[isExpandableContent]]"}},buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",buttonCardViewModel:{component:"button-card-view-model"}}},"data.previousButton":{id:"left-arrow",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},classListBinding:"[[buttonClasses]]"}},initialRenderPriority:0,waitForSignal:"eocs"},"data.nextButton":{id:"right-arrow",mapping:{buttonRenderer:{component:"ytd-button-renderer",
properties:{"on-tap":"[[boundNextClick]]"},classListBinding:"[[buttonClasses]]"}}}}};
_.P.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.h("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.P.computeInitialCountNumber=function(A){if(!A)return 6;var L=A.items.some(function(J){return!!J.topicRecommendationsChipRenderer}),O=A.items.some(function(J){return!!J.displayAdRenderer}),X=this.computeShouldListItemsHaveEqualHeight(A),x=A.items.some(function(J){return!!J.gridPlaylistRenderer});
A=A.items.some(function(J){return!!J.shoppingItemCardViewModel});
return L?9:O?8:x||X?10:A?7:6};
_.P.computeContainsPost=function(A){return!!A&&!!A.items&&A.items.some(function(L){return!!L.postRenderer})};
_.P.computeContainsLockup=function(){if(_.h("web_horizontal_list_lockup_arrow_killswitch"))return!1;var A,L;return(A=this.data)==null?void 0:(L=A.items)==null?void 0:L.some(function(O){return!!O.lockupViewModel})};
_.P.maybeUpdateLockupAspectRatio=function(){var A,L;if(this.computeContainsLockup()&&((A=this.data)==null?0:(L=A.items)==null?0:L.length)){var O;A=Xe_((O=this.data.items[0].lockupViewModel)==null?void 0:O.contentType,this.data.force16By9ThumbnailAspectRatio);O=oQe(A);O=this.computeLockupWidth()/O;_.eq(this.hostElement,{"--yt-horizontal-list-content-height":O+"px"})}};
_.P.computeOverrideArrowPositionForProductCard=function(A){if(this.isExpandableContent)return!1;var L;return!!(A==null?0:(L=A.items)==null?0:L.some(function(O){return!!O.verticalProductCardRenderer}))};
_.P.computeOverrideArrowPositionForShoppingItemCard=function(A){var L;return!!(A==null?0:(L=A.items)==null?0:L.some(function(O){return!!O.shoppingItemCardViewModel}))};
_.P.computeOverrideArrowPositionForReelItemRenderer=function(A){return this.containsReelItemRenderer(A)};
_.P.computeHasBigThumbsReelItems=function(A,L){return A&&this.containsReelItemRenderer(L)};
_.P.computeShouldListItemsHaveEqualHeight=function(A){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(A==null?void 0:A.itemSizeConstraint)};
_.P.computeShouldListItemsHaveShortsHeight=function(A){return this.computeShouldListItemsHaveEqualHeight(A)&&!this.containsGridVideoRenderer(A)};
_.P.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.P.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.P.containsReelItemRenderer=function(A){var L;return!!(A==null?0:(L=A.items)==null?0:L.some(function(O){return!(!O.reelItemRenderer&&!O.shortsLockupViewModel)}))};
_.P.containsGridVideoRenderer=function(A){var L;return!!(A==null?0:(L=A.items)==null?0:L.some(function(O){return!!O.gridVideoRenderer||!!O.lockupViewModel}))};
_.P.computeContainsGridMovieRenderer=function(A){var L;return!!(A==null?0:(L=A.items)==null?0:L.some(function(O){return!!O.gridMovieRenderer}))};
_.P.computeOverrideArrowPositionToCenter=function(A){return this.computeIsSearchPostShelf(A)};
_.P.computeIsSearchPostShelf=function(A){var L;return!!(A==null?0:(L=A.items)==null?0:L.some(function(O){var X,x;return((x=(X=O.postRenderer)==null?void 0:X.surface)!=null?x:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.P.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(A){var L;return!!(A==null?0:(L=A.items)==null?0:L.some(function(O){var X,x,J;return((J=(X=O.backgroundPromoRenderer)==null?void 0:(x=X.style)==null?void 0:x.value)!=null?J:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.P.computeIsSearchVodShelf=function(A,L){return A&&this.containsGridVideoRenderer(L)};
_.P.computeDisableWheelScroll=function(A,L){return this.computeIsSearchVodShelf(A,L)};
_.P.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.P.computeShortsLockupAspectRatio=function(){return 1};
_.P.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.eq(this.hostElement,{"--ytd-reel-item-thumbnail-height":mj6+"px"})};
yK.prototype.dataChanged=yK.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],yK.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],yK.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.Vy.YtdHorizontalListBehavior),_.Z("design:type",Object)],yK.prototype,"ytdHorizontalListBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],yK.prototype,"data",void 0);
_.I([_.K(),_.Z("design:type",Object)],yK.prototype,"isExpandableContent",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],yK.prototype,"hideShelfHeader",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],yK.prototype,"engagementPanel",void 0);_.I([_.K(),_.Z("design:type",Array)],yK.prototype,"buttonClasses",void 0);_.I([_.K(),_.Z("design:type",Object)],yK.prototype,"isSearch",void 0);
_.I([_.K(),_.Z("design:type",Object)],yK.prototype,"disableScrollEventListener",void 0);_.I([_.K({computed:"computeInitialCountNumber(data)"}),_.Z("design:type",Number)],yK.prototype,"initialCount",void 0);_.I([_.K({computed:"computeContainsPost(data)"}),_.Z("design:type",Boolean)],yK.prototype,"supportComponentResize",void 0);_.I([_.K({computed:"computeContainsPost(data)"}),_.Z("design:type",Boolean)],yK.prototype,"containsPost",void 0);
_.I([_.K({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],yK.prototype,"containsLockup",void 0);_.I([_.K({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],yK.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.I([_.K({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],yK.prototype,"overrideArrowPositionForProductCard",void 0);_.I([_.K({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],yK.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.I([_.K({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],yK.prototype,"overrideArrowPositionForReelItems",void 0);_.I([_.K({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],yK.prototype,"overrideArrowPositionForGridMovie",void 0);
_.I([_.K({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],yK.prototype,"overrideArrowPositionToCenter",void 0);_.I([_.K({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],yK.prototype,"isSearchPostShelf",void 0);_.I([_.K({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],yK.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.I([_.K({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],yK.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.I([_.K({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.Z("design:type",Object)],yK.prototype,"hasBigThumbsReelItems",void 0);
_.I([_.K({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],yK.prototype,"shouldUseMixedListHeight",void 0);_.I([_.K({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],yK.prototype,"shouldUseShortsListHeight",void 0);_.I([_.K({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],yK.prototype,"gridVideoWidth",void 0);
_.I([_.K({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.Z("design:type",Object)],yK.prototype,"isSearchVodShelf",void 0);_.I([_.K({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.Z("design:type",Object)],yK.prototype,"disableWheelScroll",void 0);_.I([_.K({computed:"computeSizing(isSearch)"}),_.Z("design:type",Object)],yK.prototype,"sizing",void 0);
_.I([_.K({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.Z("design:type",Object)],yK.prototype,"shortsLockupAspectRatio",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],yK.prototype,"dataChanged",null);
_.m(yK,"yt-horizontal-list-renderer",function(){if(WWJ===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);WWJ=A}A=WWJ;return A},{mode:1});var fdj;var IdV=[10,12,14,16,18,20,24,28,32,36],yf6=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],ZR=function(){var A=_.G.apply(this,arguments)||this;A.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";A.hideOverflow=!1;A.useRoboto=!1;A.fontClass="";A.overflown=!1;A.actionMap={"yt-window-resized":"resize"};return A};
_.g(ZR,_.G);_.P=ZR.prototype;
_.P.attached=function(){var A=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();_.kd(this,function(){A.resize()});
if(!_.Ei){var L,O,X;(L=document)==null||(O=L.fonts)==null||(X=O.ready)==null||X.then(function(){A.resize()})}};
_.P.dataChanged=function(){this.resize()};
_.P.guideIsExpandedChanged=function(){this.resize()};
_.P.resize=function(){if(this.textNode.offsetWidth||this.textNode.offsetWidth){this.overflown&&(this.overflown=!1,this.textNode.classList.remove("overflown"));this.textNode.style.visibility="hidden";var A=this.getMaxNumLines(),L=this.getMinFont(),O=this.getMaxFont(),X=this.useRoboto?IdV:yf6;for(X=X.filter(function(J){return J<=O&&J>=L});X.length>1;){var x=Math.floor(X.length/2);
this.updateFontSize(X[x]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=A)X=X.slice(x,X.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>A)X=X.slice(0,x);else break}this.updateFontSize(X[X.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(A)}};
_.P.handleOverflow=function(A){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>A&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",A.toString()))};
_.P.updateFontSize=function(A){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+A;this.textNode.classList.add(this.fontClass)};
_.P.getMaxFont=function(){var A=this.useRoboto?IdV:yf6;A=A[A.length-1];return this.maxFontSize&&this.maxFontSize<=A?this.maxFontSize:A};
_.P.getMinFont=function(){var A=(this.useRoboto?IdV:yf6)[0];return this.minFontSize&&this.minFontSize>=A?this.minFontSize:A};
_.P.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.P.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.P.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.vG(this.text).split("\n").length-1:Infinity};
_.P.setParentConstraints=function(){this.maxWidth&&(this.containerNode.style.maxWidth=this.maxWidth+"px");this.maxHeight&&(this.containerNode.style.maxHeight=this.maxHeight+"px");if(this.fontWeight){if(this.useRoboto&&this.fontWeight!==400&&this.fontWeight!==500)throw Error("Fh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
ZR.prototype.guideIsExpandedChanged=ZR.prototype.guideIsExpandedChanged;ZR.prototype.dataChanged=ZR.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],ZR.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],ZR.prototype,"ytdReduxBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],ZR.prototype,"actionHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],ZR.prototype,"text",void 0);
_.I([_.K(),_.Z("design:type",String)],ZR.prototype,"fontFamily",void 0);_.I([_.K(),_.Z("design:type",Number)],ZR.prototype,"maxWidth",void 0);_.I([_.K(),_.Z("design:type",Number)],ZR.prototype,"maxHeight",void 0);_.I([_.K(),_.Z("design:type",Number)],ZR.prototype,"maxFontSize",void 0);_.I([_.K(),_.Z("design:type",Number)],ZR.prototype,"minFontSize",void 0);_.I([_.K(),_.Z("design:type",Number)],ZR.prototype,"maxLines",void 0);_.I([_.K(),_.Z("design:type",Object)],ZR.prototype,"hideOverflow",void 0);
_.I([_.K({selector:_.IT9}),_.Z("design:type",Boolean)],ZR.prototype,"guideIsExpanded",void 0);_.I([_.qR("#container"),_.Z("design:type",HTMLElement)],ZR.prototype,"containerNode",void 0);_.I([_.qR("#text"),_.Z("design:type",HTMLElement)],ZR.prototype,"textNode",void 0);_.I([_.iy("text"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ZR.prototype,"dataChanged",null);
_.I([_.iy("guideIsExpanded"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ZR.prototype,"guideIsExpandedChanged",null);_.I([_.Q({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],ZR);
_.m(ZR,"yt-dynamic-sizing-formatted-string",function(){if(fdj!==void 0)return fdj;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return fdj=A},{mode:1});var ZSj;_.ji3=function(A){_.As.call(this,A)};
_.g(_.ji3,_.As);var WO7=function(A){_.As.call(this,A)};
_.g(WO7,_.ji3);var jC=function(){return _.G.apply(this,arguments)||this};
_.g(jC,_.G);jC.prototype.onTapSuspendedChannel=function(){var A;if((A=this.data)!=null&&A.serviceEndpoint){var L,O;(A=(O=_.q((L=this.data)==null?void 0:L.serviceEndpoint,_.Hh))==null?void 0:O.url)?_.$c(A,void 0,void 0,window.top):(L=new WO7("Did not handle suspended account tap. No appealUrl."),_.C7(L))}else L=new WO7("Did not handle suspended account tap. No serviceEndpoint."),_.C7(L)};
jC.prototype.onTap=function(){var A=this,L=_.iV(),O,X=(O=_.pT(L,{veType:7116}))!=null?O:void 0;_.k4(L,{visualElement:X});_.By();this.saveRoleText();var x;if((x=this.data)==null?0:x.youtubeSuspended)this.onTapSuspendedChannel();else{var J=!1,Y,T;(L=(T=_.q((Y=this.data)==null?void 0:Y.serviceEndpoint,_.i2L))==null?void 0:T.supportedTokens)&&L.forEach(function(V){if(V.accountSigninToken)if(J=!0,A.onAccountItemTap)A.onAccountItemTap(V.accountSigninToken.signinUrl);else _.$c(V.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!J){if(Y=this.get("serviceEndpoint",this.data))J=!0,this.ytComponentBehavior.resolveCommand(Y);J||_.FJ(new WO7("Did not handle account switch tap. No token."))}}};
jC.prototype.saveRoleText=function(){if(this.data){var A=this.data,L=A.channelDelegationRole;if(L){var O,X=(O=_.q(A==null?void 0:A.serviceEndpoint,_.i2L))==null?void 0:O.supportedTokens;if(!X){var x,J,Y,T;X=(x=_.q(A==null?void 0:A.serviceEndpoint,_.mG))==null?void 0:(J=x.popup)==null?void 0:(Y=J.confirmDialogRenderer)==null?void 0:(T=Y.confirmButton)==null?void 0:T.buttonRenderer;var V;X=(V=_.q(X==null?void 0:X.command,_.em))==null?void 0:V.commands;if(!X)return;var E;X=(E=_.q(X[1],_.i2L))==null?
void 0:E.supportedTokens}if(X){V=void 0;E=_.d(X);for(X=E.next();!X.done;X=E.next())if(X=X.value,X.datasyncIdToken){V=X.datasyncIdToken.datasyncIdToken;break}if(V){var n;a:{if(_.s49()&&(E=_.nBd(V+"::pom"))){E=new fA(E);break a}E=void 0}(n=E)==null||n.set("role_text",L);if((bPM?bPM:window.location).href.indexOf("studio")!==-1&&(n=J$D())){E=n.src?(new URL(n.src)).origin:"*";var t;(t=n.contentWindow)==null||t.postMessage({action:"save_pom_role",datasyncId:V,roleText:L},E)}}}}}};
_.v2.Object.defineProperties(jC.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var A,L,O=(A=this.data)==null?void 0:(L=A.accountPhoto)==null?void 0:L.thumbnails;return O&&O.length>0&&(O[0].height===36||O[0].height===48)?O[0].height:40}}});
jC.prototype.onTap=jC.prototype.onTap;_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],jC.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],jC.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],jC.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!1}),_.Z("design:type",Function)],jC.prototype,"onAccountItemTap",void 0);
_.I([_.K({reflectToAttribute:!0}),_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],jC.prototype,"enableRingForActiveAccount",null);_.I([_.K({reflectToAttribute:!0}),_.r("data"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],jC.prototype,"thumbnailSize",null);_.I([_.by("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],jC.prototype,"onTap",null);_.I([_.Q({is:"ytd-account-item-renderer",disableElementRegistration:!0})],jC);
_.m(jC,"ytd-account-item-renderer",function(){if(ZSj!==void 0)return ZSj;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return ZSj=A},{mode:1});var HS6;var WQ=function(){return _.G.apply(this,arguments)||this};
_.g(WQ,_.G);WQ.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.X5().resolve(_.x$).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],WQ.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],WQ.prototype,"data",void 0);_.I([_.Q({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],WQ);
_.m(WQ,"ytd-identity-chip-renderer",function(){if(HS6!==void 0)return HS6;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return HS6=A},{mode:1});var zXL;var BZL;var Mdu;var $jn;var HQ=function(){var A=_.G.apply(this,arguments)||this;A.richItemMinWidth=_.PO("wn_grid_min_item_width",310);A.isShorts=!1;A.isWatchNext=!1;A.isExploreHub=!1;return A};
_.g(HQ,_.G);_.v2.Object.defineProperties(HQ.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}},
cardItems:{configurable:!0,enumerable:!0,get:function(){var A=[],L=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.eq(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var O;if(((O=this.data)==null?0:O.rows)&&L)for(L*=this.data.rows,O=0;O<L;O++)A.push({});return A}}});
_.I([_.N(_.HL),_.Z("design:type",Object)],HQ.prototype,"ytdReduxBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],HQ.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],HQ.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0,selector:_.Rm,value:3}),_.Z("design:type",Number)],HQ.prototype,"itemsPerRow",void 0);_.I([_.K({selector:_.fT9,value:6}),_.Z("design:type",Number)],HQ.prototype,"slimItemsPerRow",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Number)],HQ.prototype,"richItemMinWidth",void 0);_.I([_.K({reflectToAttribute:!0,selector:_.Fl}),_.Z("design:type",Boolean)],HQ.prototype,"miniMode",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],HQ.prototype,"isShorts",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],HQ.prototype,"isWatchNext",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],HQ.prototype,"isExploreHub",void 0);
_.I([_.r("isExploreHub"),_.K({reflectToAttribute:!0}),_.Z("design:type",Object),_.Z("design:paramtypes",[])],HQ.prototype,"shimmerAnimation",null);_.I([_.r("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],HQ.prototype,"cardItems",null);_.I([_.Q({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],HQ);
_.adN=_.DX()(HQ,"ytd-ghost-grid-renderer",function(){if($jn===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);$jn=A}A=$jn;return A},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.Y4(_.xa(function(A){var L=_.OY(A,{numberOfComments:3}).numberOfComments,O=_.OY(A,{isInitialLoad:!1}).isInitialLoad,X=_.OY(A,{engagementPanel:!1}).engagementPanel,x=function(){return Math.min(Number(L==null?void 0:L())||20,20)};
return _.D("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.D(_.e,{cond:function(){return!(X==null?0:X())&&(O==null?void 0:O())},
then:function(){return _.D("div",{class:"ytGhostCommentsComments"},_.D("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.D("div",{class:_.qn("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.D("div",{class:_.qn("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.D("div",{class:"ytGhostCommentsGhostCard"},_.D("div",{class:"ytGhostCommentsAvatar"},_.D("div",{class:"ytGhostCommentsCircle"})),_.D("div",{class:"ytGhostCommentsComments"},_.D("div",{class:"ytGhostCommentsMeta"},
_.D("div",{class:_.qn("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.D("div",{class:_.qn("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.D("div",{class:"ytGhostCommentsComments"},_.D(_.g9,{each:function(){return Array((x==null?void 0:x())||3)}},function(){return _.D("div",{class:"ytGhostCommentsGhostCard"},_.D("div",{class:"ytGhostCommentsAvatar"},_.D("div",{class:"ytGhostCommentsCircle"})),_.D("div",{class:"ytGhostCommentsHost"},_.D("div",{class:"ytGhostCommentsMeta"},
_.D("div",{class:_.qn("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.D("div",{class:_.qn("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.D("div",{class:_.qn("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.D("div",{class:"ytGhostCommentsGhostLikeDislike"},_.D("div",{class:_.qn("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.D("div",{class:_.qn("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"nb"),"yt-ghost-comments",{props:{numberOfComments:_.x5,
isInitialLoad:_.x5,engagementPanel:_.x5}});_.y3("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var zG=function(){var A=_.G.apply(this,arguments)||this;A.isOverridable=!1;A.spinnerActive=!1;A.showButton=!1;A.isCommentsSection=!1;A.engagementPanel=!0;A.isShortsGrid=!1;A.isShortsPage=!1;A.isWatchPage=!1;A.ghostCardExperimentEnabled=_.h("show_ghost_comments_shorts_watch")||_.h("show_ghost_comments_desktop_watch");A.originalShowButton=!1;A.endOfList=!1;return A};
_.g(zG,_.G);_.P=zG.prototype;_.P.resetIntersectionObserver=function(){var A;(A=this.observer)==null||A.disconnect();this.observer=void 0};
_.P.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var A,L;((A=this.data)==null?void 0:A.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((L=this.data)==null?0:L.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.P.initializeIntersectionObserver=function(){var A=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(L){L=_.d(L);for(var O=L.next();!O.done;O=L.next())O.value.isIntersecting&&(A.triggerContinuation(),A.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.P.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},isShortsCommentsSection:{id:"ghost-comment-section",mapping:{ghostCommentsSectionRenderer:{component:"yt-ghost-comments"}}},"data.ghostCards":{id:"ghost-cards",mapping:{ghostGridRenderer:{component:"ytd-ghost-grid-renderer",properties:{isShorts:"[[isShortsGrid]]"}}}}}};
_.P.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var A;((A=this.data)==null?0:A.continuationEndpoint)&&(A=_.q(this.data.continuationEndpoint,_.Mn))&&this.ytdReduxBehavior.dispatch(_.JY({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:A}}))};
_.P.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.P.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.P.onServiceRequestCompleted=function(A,L){if(!_.h("kevlar_hide_spinner_on_empty_continuation_killswitch")){var O;(O=L.actions)!=null&&O.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.P.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.P.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.P.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.P.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var A=3;if(this.engagementPanel){var L,O,X;A=Math.floor(((((L=this.hostElement)==null?void 0:(O=L.parentElement)==null?void 0:(X=O.parentElement)==null?void 0:X.scrollHeight)||108)-108)/108);A=this.isInitialLoad?Math.max(A,3):3}L=[].concat(_.le(this.hostElement.querySelectorAll("yt-ghost-comments")));L=_.d(L);for(O=L.next();!O.done;O=L.next())O=O.value,O.numberOfComments=A,O.isInitialLoad=this.isInitialLoad,O.engagementPanel=
this.engagementPanel}};
_.P.detached=function(){this.resetIntersectionObserver()};
_.v2.Object.defineProperties(zG.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton&&(_.h("show_ghost_comments_shorts_watch")&&this.engagementPanel||_.h("show_ghost_comments_desktop_watch"))?{ghostCommentsSectionRenderer:!0}:!1}}});
zG.prototype.numberOfGhostCommentsChanged=zG.prototype.numberOfGhostCommentsChanged;zG.prototype.continuationTriggerOffsetChanged=zG.prototype.continuationTriggerOffsetChanged;zG.prototype.showButtonChanged=zG.prototype.showButtonChanged;zG.prototype.onYtServiceRequestCompletedForButtonRenderer=zG.prototype.onYtServiceRequestCompletedForButtonRenderer;zG.prototype.onServiceRequestCompleted=zG.prototype.onServiceRequestCompleted;zG.prototype.onYtServiceRequestSentForButtonRenderer=zG.prototype.onYtServiceRequestSentForButtonRenderer;
zG.prototype.observeData=zG.prototype.observeData;_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],zG.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],zG.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.LO.YtVisibilityBehavior),_.Z("design:type",Object)],zG.prototype,"ytVisibilityBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],zG.prototype,"ytComponentBehavior",void 0);
_.I([_.N(_.HL),_.Z("design:type",Object)],zG.prototype,"ytdReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],zG.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],zG.prototype,"isOverridable",void 0);_.I([_.K(),_.Z("design:type",Object)],zG.prototype,"spinnerActive",void 0);_.I([_.K(),_.Z("design:type",Object)],zG.prototype,"showButton",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],zG.prototype,"isCommentsSection",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],zG.prototype,"engagementPanel",void 0);_.I([_.K(),_.Z("design:type",Object)],zG.prototype,"isShortsGrid",void 0);_.I([_.K({reflectToAttribute:!0,selector:_.Z2u}),_.Z("design:type",Object)],zG.prototype,"isShortsPage",void 0);_.I([_.K({reflectToAttribute:!0,selector:_.fY}),_.Z("design:type",Object)],zG.prototype,"isWatchPage",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],zG.prototype,"ghostCardExperimentEnabled",void 0);
_.I([_.K(),_.Z("design:type",Number)],zG.prototype,"continuationTriggerOffset",void 0);_.I([_.K(),_.Z("design:type",Object)],zG.prototype,"endOfList",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],zG.prototype,"isInitialLoad",void 0);_.I([_.qR("ytd-button-renderer"),_.Z("design:type",_.dD)],zG.prototype,"buttonRenderer",void 0);_.I([_.K(),_.Z("design:type",Object)],zG.prototype,"buttonOverrides",void 0);
_.I([_.K(),_.r("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],zG.prototype,"isShortsCommentsSection",null);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zG.prototype,"observeData",null);
_.I([_.by("yt-service-request-sent-button-renderer"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zG.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.I([_.by("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.Xi]),_.Z("design:returntype")],zG.prototype,"onServiceRequestCompleted",null);
_.I([_.by("yt-service-request-completed-button-renderer"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zG.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.I([_.iy("showButton"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zG.prototype,"showButtonChanged",null);
_.I([_.iy("continuationTriggerOffset"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zG.prototype,"continuationTriggerOffsetChanged",null);_.I([_.hT("isInitialLoad","engagementPanel"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zG.prototype,"numberOfGhostCommentsChanged",null);_.I([_.Q({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],zG);
_.m(zG,"ytd-continuation-item-renderer",function(){if(Mdu!==void 0)return Mdu;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return Mdu=A},{mode:1});var kt3;var BQ=function(){var A=_.G.apply(this,arguments)||this;A.downloadProgress=0;A.transferState="TRANSFER_STATE_UNKNOWN";A.downloadState="DOWNLOAD_STATE_UNKNOWN";A.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";A.offlineVideoPolicyExpirationTimestamp=0;A.downloadedVideoPlaybackPosition=0;return A};
_.g(BQ,_.G);BQ.prototype.dataChanged=function(){var A;this.videoData=_.q((A=this.data)==null?void 0:A.renderer,xBL);this.transferStateChanged()};
BQ.prototype.downloadProgressChanged=function(){if(this.entityInfo){var A=Object.assign({},this.videoData),L=fYp(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),O=L.publishedTimeText,X=L.badges;A.shortViewCountText=L.shortViewCountText;A.publishedTimeText=O;A.badges=X;this.set("videoData",A)}};
BQ.prototype.transferStateChanged=function(){if(this.entityInfo){var A=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",L=_.wh(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!gh(this.entityInfo.policyEntity),O=Object.assign({},this.videoData),X=fYp(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),x=X.publishedTimeText,J=X.badges;O.shortViewCountText=
X.shortViewCountText;O.publishedTimeText=x;O.badges=J;O.isDisabled=L;O.isWatched=this.downloadedVideoPlaybackPosition>0;O.navigationEndpoint=L?void 0:W1s(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var Y;A&&((Y=this.videoData)==null?0:Y.videoId)&&!_.h("dl_resume_click_killswitch")&&(O.isDisabled=!1,O.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});O.thumbnailOverlays=Qlu(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",O)}};
BQ.prototype.transferStateChanged=BQ.prototype.transferStateChanged;BQ.prototype.downloadProgressChanged=BQ.prototype.downloadProgressChanged;BQ.prototype.dataChanged=BQ.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],BQ.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],BQ.prototype,"ytdReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],BQ.prototype,"data",void 0);
_.I([_.K(),_.Z("design:type",Object)],BQ.prototype,"videoData",void 0);_.I([_.K({selector:jM,selectorArgs:["videoData.videoId"]}),_.Z("design:type",Object)],BQ.prototype,"downloadProgress",void 0);_.I([_.K(),_.Z("design:type",Number)],BQ.prototype,"relativeDateReference",void 0);_.I([_.K({selector:_.yi,selectorArgs:["videoData.videoId"]}),_.Z("design:type",Object)],BQ.prototype,"transferState",void 0);
_.I([_.K({selector:P6M,selectorArgs:["videoData.videoId"]}),_.Z("design:type",Object)],BQ.prototype,"downloadState",void 0);_.I([_.K({selector:Bm_,selectorArgs:["videoData.videoId"]}),_.Z("design:type",Object)],BQ.prototype,"offlinePolicyAction",void 0);_.I([_.K({selector:M9O,selectorArgs:["videoData.videoId"]}),_.Z("design:type",Object)],BQ.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.I([_.K({selector:WG,selectorArgs:["videoData.videoId"]}),_.Z("design:type",Object)],BQ.prototype,"downloadedVideoPlaybackPosition",void 0);_.I([_.K({selector:aTe,selectorArgs:["videoData.videoId"]}),_.Z("design:type",Object)],BQ.prototype,"entityInfo",void 0);_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],BQ.prototype,"isDownloading",void 0);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],BQ.prototype,"dataChanged",null);
_.I([_.iy("downloadProgress"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],BQ.prototype,"downloadProgressChanged",null);_.I([_.iy("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],BQ.prototype,"transferStateChanged",null);
_.I([_.Q({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],BQ);
_.m(BQ,"ytd-downloaded-video-grid-video-renderer",function(){if(kt3!==void 0)return kt3;var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return kt3=A},{mode:_.e5("kevlar_poly_si_batch_j025")?1:2});var Ujg;var ML=function(){};
ML.prototype.resolve=function(A,L){var O=this;return _.u(function(X){return X.yield(O.resolveCommand(A,L),0)})};var vMl,$6;vMl=E2D(function(A){return A.targetId},{shouldPersist:!1});
$6=vMl.updateData;_.oML=vMl.useUpdatableData;var AXH,LI6;AXH=E2D(function(A){return A.targetId});
LI6=AXH.updateData;_.ON3=AXH.useUpdatableData;var Xr6=JfO.bind(null,$6),xgn=JfO.bind(null,LI6);(function(A,L,O){var X=_.q(O==null?void 0:O.updatedRenderer,_.FGH);return X?A({targetId:L},function(){return X}):!1}).bind(null,$6);var aE=function(){};
_.g(aE,ML);aE.prototype.resolveCommand=function(A){var L;return _.u(function(O){L=_.q(A,_.jps);if(!L)return O.return();Xr6(L.targetId,L);_.qo(O)})};var k6=function(){var A=_.wd.apply(this,arguments)||this;A.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return A};
_.g(k6,_.wd);_.P=k6.prototype;_.P.configureContinuationPathMap=function(){return{}};
_.P.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.P.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.P.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.P.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.P.handleAppendContinuationItemsAction=function(A){var L=_.q(A,_.sLj);if(this.data&&this.data.targetId&&L&&this.continuationPathMap&&L.targetId===this.data.targetId){var O=CS_(A),X=O&&this.continuationPathMap[O];if(X&&O)if(A=this.get(X,this.data)){a:{for(O=0;O<A.length;O++){var x=A[O],J=void 0,Y=!!_.q((J=_.q(x,zjN))==null?void 0:J.content,_.A7H);if(_.q(x,_.JR)||Y)break a}O=A.length}X="data."+X;L.continuationItems?O===A.length-1?(this.pop(X),this.push.apply(this,[X].concat(_.le(L.continuationItems)))):
O===A.length?this.push.apply(this,[X].concat(_.le(L.continuationItems))):this.splice.apply(this,[X,O,1].concat(_.le(L.continuationItems))):this.splice(X,O,1);(_.h("web_enable_voting_animation")||_.h("enable_music_web_cairo_voting_animation"))&&_.P4(this.hostElement,"yt-append-continuation-items-action-finished");_.P4(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.Rv(new _.pe("append continuation items does not exist",O));else _.Rv(new _.pe("append continuation path does not exist",
O))}};
_.P.handleReloadContinuationItemsCommand=function(A){var L=_.q(A,_.jps);if(this.data&&L){if(_.h("web_client_explore_hub")||_.h("web_explore_hub_on_hover")||_.h("web_client_explore_hub_on_hover"))try{_.X5().resolve(aE).resolveCommand(A)}catch(J){}if(this.data.targetId&&this.continuationPathMap&&L.targetId===this.data.targetId&&(!_.h("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||L.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var O,X=(O=L.slot)==null?void 0:
O.replace("RELOAD_CONTINUATION_SLOT_","");O=(A=CS_(A)+"-"+(X==null?void 0:X.toLowerCase()))&&this.continuationPathMap[A];if(!O||!A||!X)_.Rv(new _.pe("reload continuation path does not exist",A));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(L)){if(L.replaceWithFirstItem){var x;this.set("data."+O,((x=L.continuationItems)==null?0:x.length)?L.continuationItems[0]:{})}else this.set("data."+O,L.continuationItems?L.continuationItems:[]);this.continuationIsReloading=
!1;_.P4(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.P.handleShowReloadUiCommand=function(A){A=_.q(A,S17);var L;((L=this.data)==null?0:L.targetId)&&(A==null?0:A.targetId)&&A.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
k6.prototype.observeData=k6.prototype.observeData;_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],k6.prototype,"actionHandlerBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],k6.prototype,"componentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],k6.prototype,"data",void 0);_.I([_.K({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],k6.prototype,"continuationIsReloading",void 0);
_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],k6.prototype,"observeData",null);_.I([_.p4()],k6);_.U8=[_.v$.YtComponentBehavior,_.es.YtActionHandlerBehavior,k6.prototype];_.vQ={};_.vQ.YtNextContinuationBehavior=[_.Y5.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",_.tT(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.tT(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(A,L){A.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,L,{}):(A={locationRetrieved:function(O){this.makeNextContinuationRequest_(O,L,{})}.bind(this)},_.P4(this.hostElement,"yt-retrieve-location",A))},
makeNextContinuationRequest_:function(A,L,O){_.QN("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();A=L(A);var X;this.canUseContextualNetworkManager_()&&(X=this.getNetworkManager());X||(X=_.X5().resolve(_.f3));L=_.UC.instance;if(_.ms("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&L){X=_.L3([A.startsWith("/")?A.substr(1):A]);var x,J;O=_.MB(L,{},X,O==null?void 0:(x=O.context)==null?void 0:(J=x.clickTracking)==null?void 0:J.clickTrackingParams).then(function(Y){return{response:Y}})}else O=
this.nextContinuation.usePost?X.postData(A,O):X.fetchData(A);
O.then(this.updateNextContinuationData_.bind(this,A));this.pendingContinuationRequest_=O;this.startListeningForNavigate_()},
updateNextContinuationData_:function(A,L){var O=this;_.QN("ncl");this.pendingContinuationRequest_=void 0;if(L){var X={};this.nextContinuation&&(X=this.nextContinuation);if(L.response&&L.response.continuationContents&&L.response.continuationContents[X.continuationType]){A=L.response.continuationContents[X.continuationType];var x=X.header||"data.header",J=A[X.responseHeaderKey||"header"];J&&this.set(x,J);x=X.contentsArray||"data.contents";J=this.getContents_(A,X.responseContentsKey||"contents")||[];
this.pathExists_(x)?(J.unshift(x),this.push.apply(this,J)):this.set(x,J);J&&(PtM(_.iV(),L.response,this.hostElement,function(Y){_.dQ(O.hostElement,"yt-store-grafted-ve-action",[Y])}),_.P4(this.hostElement,"yt-next-continuation-data-updated",{continuationData:L,
page:this,contentsArray:x}));this.set(X.continuationsArray||"data.continuations",A[X.responseContinuationsKey||"continuations"]||[])}else L.reload?_.Rv(new _.pe("Reloading from continuation is unsupported")):L.responseContext&&L.responseContext.errors||(delete L.xsrf_token,delete L.timing,delete L.endpoint,delete L.csn,L.responseContext&&delete L.responseContext.serviceTrackingParams,x={request:_.aO(A,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(L).sort()},L.response&&(x.responseContentKeys=
Object.keys(L.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(x.continuationType=this.nextContinuation.continuationType.substr(0,256)),L=new _.pe("Malformed continuation",x),A.indexOf("/comment_service_ajax")==0?_.Rv(L):_.C7(L)),this.set(X.continuationsArray||"data.continuations",[])}else _.FJ(new _.pe("Missing continuation response",A))},
getContents_:function(A,L){L=L.split(".");return _.lW.getValueByKeys(A,L)},
pathExists_:function(A){var L=this;A=A.toString().split(".");for(var O=0;O<A.length;O++)if(L=L[A[O]],L===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var szl;var JXl;var oE=function(){var A=_.G.apply(this,arguments)||this;A.triggered_=!1;return A};
_.g(oE,_.G);_.P=oE.prototype;_.P.attached=function(){this.maybeTriggerAutoload()};
_.P.detached=function(){this.hasBeenTriggered_=!1};
_.P.onPrescanVisible=function(){this.onShow()};
_.P.onShow=function(){this.showButton||this.trigger()};
_.P.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.P4(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.P.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.P.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.P.computeLabel_=function(A,L){return A===void 0?null:A.label||!L?A.label:this.showMoreText_};
_.P.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.P.getContinuationUrl=function(A){var L={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(L.itct=this.data.clickTrackingParams);return _.kL(A,L)};
_.P.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
oE.prototype.showButtonChanged_=oE.prototype.showButtonChanged_;oE.prototype.observeData_=oE.prototype.observeData_;_.I([_.N(_.LO.YtVisibilityBehavior),_.Z("design:type",Object)],oE.prototype,"ytVisibilityBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],oE.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],oE.prototype,"data",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],oE.prototype,"showButton",void 0);
_.I([_.K({value:!1}),_.Z("design:type",Boolean)],oE.prototype,"showIcon",void 0);_.I([_.K({computed:"computeLabel_(data, showButton)"}),_.Z("design:type",Object)],oE.prototype,"label",void 0);_.I([_.K({value:_.Ue(_.b3("SHOW_MORE",void 0,"Show More"))}),_.Z("design:type",Object)],oE.prototype,"showMoreText_",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],oE.prototype,"spinnerActive_",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],oE.prototype,"hasBeenTriggered_",void 0);
_.I([_.K({value:void 0}),_.Z("design:type",String)],oE.prototype,"observeVisibleOption",void 0);_.I([_.K({value:void 0}),_.Z("design:type",String)],oE.prototype,"observeHiddenOption",void 0);_.I([_.K({value:"observe_once"}),_.Z("design:type",Object)],oE.prototype,"observePrescanOption",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],oE.prototype,"observeData_",null);
_.I([_.hT("showButton"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],oE.prototype,"showButtonChanged_",null);_.I([_.yU({is:"yt-next-continuation",disableElementRegistration:!0})],oE);
_.m(oE,"yt-next-continuation",function(){if(JXl===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;szl===void 0&&(szl=document.createElement("template"));var X=szl;O.call(L,X.content.cloneNode(!0),A.content.firstChild);JXl=A}A=JXl;return A},{mode:2});var PCV;var dgg;var AZ=function(){return _.G.apply(this,arguments)||this};
_.g(AZ,_.G);AZ.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],AZ.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],AZ.prototype,"data",void 0);_.I([_.yU({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],AZ);
_.m(AZ,"yt-music-pass-small-feature-info-renderer",function(){if(dgg===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;PCV===void 0&&(PCV=document.createElement("template"));var X=PCV;O.call(L,X.content.cloneNode(!0),A.content.firstChild);dgg=A}A=dgg;return A},{mode:2});_.y3("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var LR=function(){var A=_.G.apply(this,arguments)||this;A.isCollapsible=!1;A.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return A};
_.g(LR,_.G);_.P=LR.prototype;_.P.computeIsCollapsible=function(A){return!!(((A==null?0:A.showMoreText)||(A==null?0:A.visibleRowCount))&&(A==null?0:A.isCollapsible))};
_.P.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-grid-renderer lockup",containerType:2,sizing:"COMPACT",force16By9ThumbnailAspectRatio:!0}},continuationItemRenderer:"ytd-continuation-item-renderer",gridChannelRenderer:"ytd-grid-channel-renderer",gridMoviePlaylistRenderer:"ytd-grid-movie-playlist-renderer",gridMovieRenderer:"ytd-grid-movie-renderer",gridPlaylistRenderer:"ytd-grid-playlist-renderer",
playlistRenderer:"ytd-playlist-renderer",gridShowRenderer:"ytd-grid-show-renderer",gridVideoRenderer:"ytd-grid-video-renderer",downloadedVideoGridVideoRenderer:"ytd-downloaded-video-grid-video-renderer",gridRadioRenderer:"ytd-grid-radio-renderer",musicPassSmallFeatureInfoRenderer:"yt-music-pass-small-feature-info-renderer",gameCardRenderer:"ytd-game-card-renderer",verticalProductCardRenderer:{component:"ytd-vertical-product-card-renderer",noInjection:!0}}},"data.continuations":{id:"continuations",
mapping:{nextContinuationData:"yt-next-continuation"}}}};
_.P.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.P.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.P.onIronResize=function(){var A=this;_.$J(this,"updateGridInitItems",function(){A.maybeUpdateInitialItemsDisplayed()})};
_.P.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var A=this.getVisibleWidth();A!==0&&(A=Math.floor(A/214)*(this.data.visibleRowCount||2),A!==this.initialCount&&(this.initialCount=A,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.P.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.P.computeExpandVisible=function(A,L,O,X){return A&&L&&O&&!!X&&!!X.showMoreText};
_.P.computeShowMoreButton=function(A){return{text:A,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.P.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.P.initCollapsed=function(){var A=this;this.ytLazyListBehavior.canShowMore=!1;var L;(this.collapsed=!((L=this.data)==null||!L.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.kd(this,function(){_.YK(A.hostElement,"yt-refit-popups-action")})};
_.P.fillRestIfNotCollapsible=function(){var A=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!A||this.ytLazyListBehavior.fillRemainingListItems()};
_.P.computeViewAllHidden=function(A,L){return A||!L.viewAllEndpoint};
LR.prototype.fillRestIfNotCollapsible=LR.prototype.fillRestIfNotCollapsible;LR.prototype.initCollapsed=LR.prototype.initCollapsed;LR.prototype.onIronResize=LR.prototype.onIronResize;LR.prototype.persistentGuideChanged=LR.prototype.persistentGuideChanged;_.I([_.N(_.y9),_.Z("design:type",Object)],LR.prototype,"ironResizableBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],LR.prototype,"ytRendererBehavior",void 0);
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],LR.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.TU.YtLazyListBehavior),_.Z("design:type",Object)],LR.prototype,"ytLazyListBehavior",void 0);_.I([_.N(_.vQ.YtNextContinuationBehavior),_.Z("design:type",Object)],LR.prototype,"ytNextContinuationBehavior",void 0);_.I([_.N(_.kr.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],LR.prototype,"ytdGuideStateAwareBehavior",void 0);
_.I([_.N(_.U8),_.Z("design:type",Object)],LR.prototype,"ytContinuationHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],LR.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Boolean)],LR.prototype,"collapsed",void 0);_.I([_.K(),_.Z("design:type",Number)],LR.prototype,"initialCount",void 0);_.I([_.K({computed:"computeShowMoreButton(data.showMoreText)"}),_.Z("design:type",Object)],LR.prototype,"showMoreButton",void 0);
_.I([_.K({computed:"computeIsCollapsible(data)"}),_.Z("design:type",Object)],LR.prototype,"isCollapsible",void 0);_.I([_.qR("#items"),_.Z("design:type",HTMLElement)],LR.prototype,"items",void 0);_.I([_.iy("guidePersistentAndVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],LR.prototype,"persistentGuideChanged",null);_.I([_.by("iron-resize"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],LR.prototype,"onIronResize",null);
_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],LR.prototype,"initCollapsed",null);_.I([_.iy("canShowMore"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],LR.prototype,"fillRestIfNotCollapsible",null);_.I([_.Q({is:"ytd-grid-renderer",disableElementRegistration:!0})],LR);
_.m(LR,"ytd-grid-renderer",function(){if(Ujg!==void 0)return Ujg;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Ujg=A},{mode:_.e5("kevlar_poly_si_batch_j025")?1:2});var Op=function(){return _.G.apply(this,arguments)||this};
_.g(Op,_.G);
Op.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"}}}};
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Op.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Op.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Op.prototype,"data",void 0);_.I([_.Q({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],Op);
_.m(Op,"ytd-carousel-ad-renderer",function(){if(BZL!==void 0)return BZL;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return BZL=A},{mode:1});var YDn;var Xc=function(){return _.G.apply(this,arguments)||this};
_.g(Xc,_.G);_.P=Xc.prototype;_.P.configureRendererStamper=function(){return{"data.content.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.content.adBadge]]"}}}},"data.content.closeButton":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content.ctaButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,Xc.JSC$16343_CLICK_LOCATION_ID_MAP))};
_.P.onSitelinkTap=function(A){A.stopPropagation();var L,O,X=A==null?void 0:(L=A.model)==null?void 0:(O=L.item)==null?void 0:O.onTap;X&&this.ytSparklesClickLocationBehavior.handleClick(X,A,!1)};
_.P.onTap=function(A){var L=this.data&&this.data.content&&this.data.content.navigationEndpoint;L&&this.ytSparklesClickLocationBehavior.handleClick(L,A,!1)};
_.P.sendImpression=function(){if(this.data&&this.data.content)for(var A=_.d(this.data.content.impressionEndpoints||[]),L=A.next();!L.done;L=A.next()){L=_.d(L.value.loggingUrls||[]);for(var O=L.next();!O.done;O=L.next())O=O.value,O.baseUrl&&W1(O.baseUrl,O.attributionSrcMode)}};
Xc.prototype.onTap=Xc.prototype.onTap;Xc.prototype.dataChanged=Xc.prototype.dataChanged;Xc.JSC$16343_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"]]);
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Xc.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Xc.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.uR.YtSparklesClickLocationBehavior),_.Z("design:type",Object)],Xc.prototype,"ytSparklesClickLocationBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Xc.prototype,"data",void 0);
_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Xc.prototype,"dataChanged",null);_.I([_.by("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Xc.prototype,"onTap",null);_.I([_.Q({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],Xc);
_.m(Xc,"ytd-promoted-sparkles-text-search-renderer",function(){if(YDn!==void 0)return YDn;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return YDn=A},{mode:1});var uf7;var xm=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"yt-mute-ad-action":"handleMuteAd"};return A};
_.g(xm,_.G);_.P=xm.prototype;
_.P.configureRendererStamper=function(){return{"data.menu":{id:_.h("fix_alignment_search_desktop_text_image_ads_small_screens")?"menu":"old-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{verticallyAligned:!0}}}},"data.mediaBadge":{id:"media-badge-search",
mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},"data.adBadge":{id:"ad-badge-new",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"}}}}}};
_.P.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.P.computeHasAdBadge=function(A){return!(A==null||!A.adBadge)};
_.P.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",xm.JSC$16352_DEFAULT_AD_BADGE_RENDERER),_.TK(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,xm.JSC$16352_CLICK_LOCATION_ID_MAP))};
_.P.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var A;(((A=this.data)==null?void 0:A.impressionCommands)||[]).forEach(function(L){L=_.d(L.loggingUrls||[]);for(var O=L.next();!O.done;O=L.next())O=O.value,O.baseUrl&&W1(O.baseUrl,O.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.P.onTap=function(A){var L,O=(L=this.data)==null?void 0:L.navigationEndpoint,X;(L=(X=this.data)==null?void 0:X.thumbnailNavigationEndpoint)&&_.sk(_.oa(A),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(L,A,!1):O&&this.ytSparklesClickLocationBehavior.handleClick(O,A,!1)};
_.P.handleMuteAd=function(){this.collapsed=!0};
_.P.attached=function(){var A=this;_.h("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&A.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.P.detached=function(){_.h("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.v2.Object.defineProperties(xm.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var A;return!(((A=this.data)==null?void 0:A.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var A;return!(((A=this.data)==null?void 0:A.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.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}}});
xm.prototype.dataChanged=xm.prototype.dataChanged;
xm.JSC$16352_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"]]);
xm.JSC$16352_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.b3("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],xm.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],xm.prototype,"ytRendererBehavior",void 0);_.I([_.N(WL),_.Z("design:type",Object)],xm.prototype,"ytdActiveViewBehavior",void 0);
_.I([_.N([_.es.YtActionHandlerBehavior]),_.Z("design:type",Object)],xm.prototype,"actionHandlerBehavior",void 0);_.I([_.N(_.uR.YtSparklesClickLocationBehavior),_.Z("design:type",Object)],xm.prototype,"ytSparklesClickLocationBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],xm.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],xm.prototype,"collapsed",void 0);_.I([_.K({reflectToAttribute:!0,value:function(){return _.h("enable_desktop_search_bigger_thumbs")}}),
_.Z("design:type",Boolean)],xm.prototype,"useBiggerThumbs",void 0);_.I([_.K({reflectToAttribute:!0,value:function(){return _.dN("desktop_search_bigger_thumbs_style")}}),
_.Z("design:type",String)],xm.prototype,"biggerThumbsStyle",void 0);_.I([_.K({reflectToAttribute:!0,value:function(){return _.h("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.Z("design:type",Boolean)],xm.prototype,"fixAlignmentSmallScreens",void 0);_.I([_.K({reflectToAttribute:!0,value:function(){return _.h("enable_desktop_search_bigger_thumbs_square")}}),
_.Z("design:type",Boolean)],xm.prototype,"useBiggerThumbsSquare",void 0);_.I([_.K({reflectToAttribute:!0}),_.r("data.mediaHoverOverlay"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],xm.prototype,"hideHoverOverlay",null);_.I([_.K({reflectToAttribute:!0}),_.r("data.promotedSparklesWebStyle"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],xm.prototype,"webSearchLayout",null);
_.I([_.K({reflectToAttribute:!0}),_.r("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],xm.prototype,"webSearchLayoutLandscape",null);_.I([_.K({reflectToAttribute:!0}),_.r("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],xm.prototype,"webSearchLayoutSquare",null);
_.I([_.K({reflectToAttribute:!0}),_.r("data.promotedSparklesWebStyle"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],xm.prototype,"sparklesCtaNoBackground",null);_.I([_.K({reflectToAttribute:!0}),_.r("data.actionButton"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],xm.prototype,"hideActionButton",null);_.I([_.K({computed:"computeButtonOverride(uiUpdate)"}),_.Z("design:type",Object)],xm.prototype,"buttonOverride",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.Z("design:type",Boolean)],xm.prototype,"hasNewAdBadge",void 0);_.I([_.r("data.promotedSparklesWebStyle"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],xm.prototype,"useRoundedBadge",null);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],xm.prototype,"dataChanged",null);_.I([_.Q({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],xm);
_.m(xm,"ytd-promoted-sparkles-web-renderer",function(){if(uf7!==void 0)return uf7;var A=document.createElement("template");_.p(A,'\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>');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return uf7=A},{mode:1});var T$j;var sp=function(){var A=_.G.apply(this,arguments)||this;A.isInlinePreviewTriggered=!1;A.enableMonoStyle=_.h("enable_default_mono_cta_migration_web_client");return A};
_.g(sp,_.G);_.P=sp.prototype;_.P.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.ctaRenderer":{id:"call-to-action",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}}}};
_.P.computeShowCta=function(A){return!(A==null||!A.ctaRenderer)};
_.P.onCtaClick=function(){var A,L,O,X=(A=this.data)==null?void 0:(L=A.ctaRenderer)==null?void 0:(O=L.buttonRenderer)==null?void 0:O.command;X&&this.ytComponentBehavior.resolveCommand(X)};
_.P.onWatchButtonClick=function(){var A,L,O,X=(A=this.data)==null?void 0:(L=A.watchButtonRenderer)==null?void 0:(O=L.buttonRenderer)==null?void 0:O.command;X&&this.ytComponentBehavior.resolveCommand(X)};
_.P.onTap=function(){};
_.P.dataChanged=function(){if(this.data){var A;_.h("enable_inline_muted_playback_on_web_search")&&((A=this.data)==null?0:A.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",sp.JSC$16356_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",sp.JSC$16356_DEFAULT_CLICK_LOCATION_BEHAVIOR,sp.JSC$16356_CLICK_LOCATION_ID_MAP);
this.thumbnail&&(A=this.thumbnail.getElementsByTagName("a"),A.length>0&&(A=A.namedItem("thumbnail"))&&A.removeAttribute("href"))}};
_.P.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var A=_.d(this.data.impressionUrls),L=A.next();!L.done;L=A.next())L=L.value,t5y(L,hke(L));this.data.impressionsFired=!0}};
_.P.maybeComputeHref=function(){return null};
_.P.computeIsShortDR=function(A){return!(A==null||!A.watchButtonRenderer)&&!(A==null||!A.ctaRenderer)&&!!this.enableShortDR};
_.P.computeIsNewUiOrShortDr=function(A){return!!this.enableUiUpdate||this.computeIsShortDR(A)};
_.P.computeIsNewUiAndNotShortDr=function(A){return!!this.enableUiUpdate&&!this.computeIsShortDR(A)};
_.P.computeHideAvatar=function(A){return!((A==null?0:A.channelThumbnail)&&this.computeIsNewUiOrShortDr(A))};
_.P.onClick=function(A){var L,O=(L=this.data)==null?void 0:L.navigationEndpoint;if(this.enableShortDR&&O&&(_.q(O,_.$O)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(O,A,!!_.q(O,_.$O)),A.stopPropagation();else if(O&&_.q(O,_.$O))this.ytSparklesClickLocationBehavior.handleClick(O,A,!0),A.stopPropagation();else if(O){var X,x;((X=this.data)==null?0:X.navigationEndpoint)&&((x=this.data)==null?0:x.adPlaybackContextParams)&&d_P(this.data.navigationEndpoint,this.data.adPlaybackContextParams);
this.ytComponentBehavior.resolveCommand(O)}};
_.P.computeButtonOverride=function(A){if(this.computeIsNewUiOrShortDr(A))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.P.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.P.onThumbnailContainerClick=function(A){this.onClick(A)};
_.P.computeThumbnailWidth=function(A,L){return A?L==="MASSIVE"?600:L==="BIG"?500:L==="MEDIUM"?450:420:360};
_.P.attached=function(){var A=this,L;_.h("enable_inline_muted_playback_on_web_search")&&((L=this.data)==null?0:L.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.h("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&A.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.P.detached=function(){var A;_.h("enable_inline_muted_playback_on_web_search")&&((A=this.data)==null?0:A.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.h("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.P.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16357_inlinePreviewHoverListener=$u({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:iSc})};
_.P.clearInlinePreviewHoverListeners=function(){var A;(A=this.JSC$16357_inlinePreviewHoverListener)==null||sr(A)};
sp.prototype.dataChanged=sp.prototype.dataChanged;sp.prototype.onTap=sp.prototype.onTap;sp.JSC$16356_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.b3("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};sp.JSC$16356_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
sp.JSC$16356_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"}];_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],sp.prototype,"ytRendererstamperBehavior",void 0);
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],sp.prototype,"ytRendererBehavior",void 0);_.I([_.N(WL),_.Z("design:type",Object)],sp.prototype,"ytdActiveViewBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],sp.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.uR.YtSparklesClickLocationBehavior),_.Z("design:type",Object)],sp.prototype,"ytSparklesClickLocationBehavior",void 0);
_.I([_.qR("#main-container"),_.Z("design:type",HTMLElement)],sp.prototype,"mainContainer",void 0);_.I([_.K(),_.Z("design:type",Object)],sp.prototype,"isInlinePreviewTriggered",void 0);_.I([_.K(),_.Z("design:type",Object)],sp.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0,value:function(){return _.h("enable_desktop_search_bigger_thumbs")}}),
_.Z("design:type",Boolean)],sp.prototype,"useBiggerThumbs",void 0);_.I([_.K({reflectToAttribute:!0,value:function(){return _.h("enable_video_display_compact_button_group_for_desktop_search")}}),
_.Z("design:type",Boolean)],sp.prototype,"enableShortDR",void 0);_.I([_.K({reflectToAttribute:!0,value:function(){return _.h("enable_vac_ui_update_for_desktop_search")}}),
_.Z("design:type",Boolean)],sp.prototype,"enableUiUpdate",void 0);_.I([_.K({reflectToAttribute:!0,value:function(){return _.dN("desktop_search_bigger_thumbs_style")}}),
_.Z("design:type",String)],sp.prototype,"biggerThumbsStyle",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.Z("design:type",Boolean)],sp.prototype,"showCta",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.Z("design:type",Boolean)],sp.prototype,"isShortDr",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.Z("design:type",Boolean)],sp.prototype,"isShortDrOrNewUi",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.Z("design:type",Boolean)],sp.prototype,"isNewUiAndNotShortDr",void 0);_.I([_.K({computed:"computeButtonOverride(data)"}),_.Z("design:type",Object)],sp.prototype,"buttonOverride",void 0);_.I([_.K({computed:"computeSecondaryButtonOverride(data)"}),_.Z("design:type",Object)],sp.prototype,"secondaryButtonOverride",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],sp.prototype,"enableMonoStyle",void 0);
_.I([_.qR("ytd-thumbnail"),_.Z("design:type",HTMLElement)],sp.prototype,"thumbnail",void 0);_.I([_.by("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],sp.prototype,"onTap",null);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],sp.prototype,"dataChanged",null);_.I([_.Q({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],sp);
_.m(sp,"ytd-promoted-video-renderer",function(){if(T$j!==void 0)return T$j;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return T$j=A},{mode:1});var VcN;var JZ=function(){var A=_.G.apply(this,arguments)||this;A.useRoundedBadge=!0;A.sitelinkIds=[];return A};
_.g(JZ,_.G);_.P=JZ.prototype;
_.P.configureRendererStamper=function(){return{"data.menu":{id:_.h("enable_text_ad_web_thumbnail_scaling_fix")?"new-menu":"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{verticallyAligned:!0}}}},"data.mediaBadge":{id:"media-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},
"data.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"}}}}}};
_.P.dataChanged=function(){var A;(A=this.data)!=null&&A.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,JZ.JSC$16362_CLICK_LOCATION_ID_MAP)};
_.P.onTap=function(A){var L,O=(L=this.data)==null?void 0:L.navigationCommand;O&&!_.sk(_.oa(A),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(O,A,!1)};
_.P.onSitelinkTap=function(A){var L,O,X=A==null?void 0:(L=A.model)==null?void 0:(O=L.item)==null?void 0:O.onTap;X&&this.ytSparklesClickLocationBehavior.handleClick(X,A,!1)};
_.P.configureSitelinkClickTargets=function(){var A=this,L,O,X=(L=this.data)==null?void 0:(O=L.clickLocationTargets)==null?void 0:O.find(function(x){return x.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
X&&_.YJ(this.hostElement).querySelectorAll(".sitelink").forEach(function(x){_.TK(x,"yt-simple-endpoint",!0);A.sitelinkIds.push(x.id);var J,Y;(J=A.ytSparklesClickLocationBehavior)==null||(Y=J.clickTargetMap)==null||Y.set(x.id,X)})};
_.P.sendImpression=function(){var A,L,O=((A=this.data)==null?void 0:(L=A.impressionCommand)==null?void 0:L.loggingUrls)||[];A=_.d(O);for(L=A.next();!L.done;L=A.next())L=L.value,L.baseUrl&&W1(L.baseUrl,L.attributionSrcMode)};
_.P.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.v2.Object.defineProperties(JZ.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
JZ.prototype.onTap=JZ.prototype.onTap;JZ.prototype.dataChanged=JZ.prototype.dataChanged;JZ.JSC$16362_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"]]);
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],JZ.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],JZ.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.uR.YtSparklesClickLocationBehavior),_.Z("design:type",Object)],JZ.prototype,"ytSparklesClickLocationBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],JZ.prototype,"data",void 0);
_.I([_.K({reflectToAttribute:!0}),_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],JZ.prototype,"showFavicon",null);_.I([_.K({reflectToAttribute:!0,value:function(){return _.h("enable_desktop_search_bigger_thumbs")}}),
_.Z("design:type",Boolean)],JZ.prototype,"useBiggerThumbs",void 0);_.I([_.K({reflectToAttribute:!0,value:function(){return _.dN("desktop_search_bigger_thumbs_style")}}),
_.Z("design:type",String)],JZ.prototype,"biggerThumbsStyle",void 0);_.I([_.K({reflectToAttribute:!0,value:function(){return _.h("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.Z("design:type",Boolean)],JZ.prototype,"enableThumbnailScalingFix",void 0);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],JZ.prototype,"dataChanged",null);_.I([_.by("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],JZ.prototype,"onTap",null);_.I([_.Q({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],JZ);
_.m(JZ,"ytd-text-image-no-button-layout-renderer",function(){if(VcN!==void 0)return VcN;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return VcN=A},{mode:_.e5("kevlar_poly_si_batch_j028")?1:2});var Dg6;var Pt=function(){var A=_.G.apply(this,arguments)||this;A.isInlinePlaybackState=!1;A.uiUpdate=_.h("web_modern_buttons");A.hideCta=_.h("hide_cta_for_home_web_video_ads");A.noBottomMargin=!1;A.animateInTimeStamp=_.PO("hide_cta_for_home_web_video_ads_animate_in_time");A.animateInCta=!1;A.isHovered=!1;A.enableMonoStyle=_.h("enable_default_mono_cta_migration_web_client");A.player=null;A.JSC$16369_playerEvents=new Map;A.JSC$16369_preventProgressSaveTimer=null;A.delayedCtaJobId=null;return A};
_.g(Pt,_.G);_.P=Pt.prototype;_.P.configureRendererStamper=function(){return{"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.adCtaButton":{id:"call-to-action",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}}}};
_.P.attached=function(){this.JSC$16369_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$16369_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.h("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.P.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$16369_playerEvents)};
_.P.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",Pt.JSC$16368_DEFAULT_CLICK_LOCATION_BEHAVIOR,Pt.JSC$16368_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.P.hoverChanged=function(){var A=this;this.delayedCtaJobId&&(_.c1.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.h("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.GP(_.c1,function(){A.buttonContainer.classList.add("show-delayed-buttons")},_.PO("delayed_cta_on_web_delay_milliseconds")))};
_.P.setPlayer=function(){var A=this,L;return _.u(function(O){if(O.nextAddress==1)return(L=_.YK(A.hostElement,"yt-get-inline-preview-player-action"))&&L[0]?O.yield(L[0].getPlayerPromise(),3):O.jumpTo(0);A.player=O.yieldResult;A.ytPlayerListenerBehavior.listenToPlayerEvents(A.player,A.JSC$16369_playerEvents);_.qo(O)})};
_.P.onPlaybackStart=function(){var A=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$16369_preventProgressSaveTimer=_.et(_.c1,function(){A.JSC$16369_preventProgressSaveTimer=null},1E4))};
_.P.onVideoProgress=function(A){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&A>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.P.resetPreventProgressSaveTimer=function(){_.c1.cancelJob(this.JSC$16369_preventProgressSaveTimer);this.JSC$16369_preventProgressSaveTimer=null};
_.P.getSimpleString=function(A){return _.vG(A)};
_.P.onClick=function(A){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var L,O=(L=this.data)==null?void 0:L.navigationEndpoint,X;L=(X=this.data)==null?void 0:X.channelEndpoint;var x,J;(X=(J=_.q((x=this.data)==null?void 0:x.adCtaButton,_.$t))==null?void 0:J.command)&&_.sk(_.oa(A),this.hostElement,["call-to-action"])?_.h("enable_fix_two_tab_short_dr")||this.ytSparklesClickLocationBehavior.handleClick(X,A,!1):L&&_.sk(_.oa(A),this.hostElement,["channel-thumbnail-container","short-byline-text"])?
this.ytSparklesClickLocationBehavior.handleClick(L,A,!1):!_.sk(_.oa(A),this.hostElement,["secondary-button"])&&O&&(_.h("enable_short_dr_for_desktop_launchable")?(x=!!_.q(O,_.$O),this.isInlinePlaybackState&&x&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(O,A,x)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(O,A,!0)))}};
_.P.updateWatchEndpointStartTime=function(){var A,L;this.player&&((A=this.data)==null?0:A.inlinePlaybackEndpoint)&&((L=this.data)==null?0:L.navigationEndpoint)&&!this.JSC$16369_preventProgressSaveTimer&&(A=Math.floor(this.player.getCurrentTime()),_.q(this.data.navigationEndpoint,_.$O).startTimeSeconds=A,_.q(this.data.inlinePlaybackEndpoint,_.$O).startTimeSeconds=A)};
_.P.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.P.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.v2.Object.defineProperties(Pt.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.h("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var A,L;return!((A=this.data)==null||!A.watchButton)&&!((L=this.data)==null||!L.adCtaButton)}}});
Pt.prototype.hoverChanged=Pt.prototype.hoverChanged;Pt.prototype.dataChanged=Pt.prototype.dataChanged;
Pt.JSC$16368_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"]]);
Pt.JSC$16368_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"}];
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Pt.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Pt.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],Pt.prototype,"ytdReduxBehavior",void 0);_.I([_.N(_.uR.YtSparklesClickLocationBehavior),_.Z("design:type",Object)],Pt.prototype,"ytSparklesClickLocationBehavior",void 0);
_.I([_.N(_.LE.YtPlayerListenerBehavior),_.Z("design:type",_.Oo)],Pt.prototype,"ytPlayerListenerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Pt.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Pt.prototype,"isInlinePlaybackState",void 0);_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],Pt.prototype,"miniMode",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Pt.prototype,"uiUpdate",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Pt.prototype,"hideCta",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Pt.prototype,"noBottomMargin",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Pt.prototype,"animateInCta",void 0);_.I([_.K({computed:"computeButtonOverride(uiUpdate)"}),_.Z("design:type",Object)],Pt.prototype,"buttonOverride",void 0);
_.I([_.K({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.Z("design:type",Object)],Pt.prototype,"secondaryButtonOverride",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Pt.prototype,"isHovered",void 0);_.I([_.qR("#button-container"),_.Z("design:type",HTMLElement)],Pt.prototype,"buttonContainer",void 0);_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],Pt.prototype,"typographyBump",void 0);
_.I([_.K({reflectToAttribute:!0}),_.r("typographyBump"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Pt.prototype,"typographyBumpV2",null);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Pt.prototype,"enableMonoStyle",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Pt.prototype,"dataChanged",null);
_.I([_.hT("isHovered"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Pt.prototype,"hoverChanged",null);_.I([_.r("data"),_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Pt.prototype,"isButtonGroup",null);_.I([_.Q({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],Pt);
_.m(Pt,"ytd-ad-inline-playback-meta-block",function(){if(Dg6!==void 0)return Dg6;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Dg6=A},{mode:_.e5("kevlar_poly_si_batch_j065")?1:2});var eMJ;var d3=function(){var A=_.G.apply(this,arguments)||this;A.noBottomMargin=!1;A.isInlinePreviewTriggered=!1;A.JSC$16374_activeViewMeasurementDataResolver=_.AI();return A};
_.g(d3,_.G);_.P=d3.prototype;_.P.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.P.attached=function(){var A=this;this.updateInlinePreviewHoverListeners();this.JSC$16374_activeViewMeasurementDataResolver.promise.then(function(L){A.ytdActiveViewBehavior.enableActiveViewMeasurement(L,15)});
_.h("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&A.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.P.detached=function(){this.clearInlinePreviewHoverListeners();_.h("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.P.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16374_inlinePreviewHoverListener=$u({mediaRenderer:this,lockupElement:this.JSC$16374_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:iSc})};
_.P.clearInlinePreviewHoverListeners=function(){var A;(A=this.JSC$16374_inlinePreviewHoverListener)==null||sr(A)};
_.P.onDataChanged=function(){var A;((A=this.data)==null?0:A.activeView)&&this.JSC$16374_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",d3.JSC$16373_DEFAULT_CLICK_LOCATION_BEHAVIOR,d3.JSC$16373_CLICK_LOCATION_ID_MAP);this.thumbnail&&(A=this.thumbnail.getElementsByTagName("a"),A.length>0&&(A=A.namedItem("thumbnail"))&&A.removeAttribute("href"));var L;if((L=this.data)==
null?0:L.forceImpAutoplay){var O;(O=this.JSC$16374_inlinePreviewHoverListener)==null||jVe(O)}};
_.P.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.P.onThumbnailContainerClick=function(A){if(this.data&&this.data.navigationEndpoint){var L,O=(L=this.data)==null?void 0:L.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(O,A,!!_.q(O,_.$O));A.stopPropagation()}};
_.P.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.P.impressionLog=function(){var A=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var L,O,X=(O=_.q((L=this.data)==null?void 0:L.onImpression,_.em))==null?void 0:O.commands;X&&(X.forEach(function(x){x.clickTrackingParams&&delete x.clickTrackingParams;A.ytComponentBehavior.resolveCommand(x)}),this.data.impressionsFired=!0)}};
_.v2.Object.defineProperties(d3.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.JSC$16374_inlinePreviewHoverListener)==null?0:Wk(A))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
d3.prototype.onTypographyBumpChanged=d3.prototype.onTypographyBumpChanged;d3.prototype.onDataChanged=d3.prototype.onDataChanged;d3.JSC$16373_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);d3.JSC$16373_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"}];
_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],d3.prototype,"ytComponentBehavior",void 0);_.I([_.N(WL),_.Z("design:type",Object)],d3.prototype,"ytdActiveViewBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],d3.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],d3.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.BL),_.Z("design:type",Object)],d3.prototype,"ytdDismissibleItemBehavior",void 0);
_.I([_.N(_.of),_.Z("design:type",Object)],d3.prototype,"ytdLockupBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],d3.prototype,"ytdReduxBehavior",void 0);_.I([_.N(_.uR.YtSparklesClickLocationBehavior),_.Z("design:type",Object)],d3.prototype,"ytSparklesClickLocationBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],d3.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],d3.prototype,"noBottomMargin",void 0);
_.I([_.K(),_.Z("design:type",Object)],d3.prototype,"isInlinePreviewTriggered",void 0);_.I([_.K({reflectToAttribute:!0,selector:_.Fl}),_.Z("design:type",Boolean)],d3.prototype,"miniMode",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],d3.prototype,"typographyBump",void 0);_.I([_.qR("ytd-thumbnail"),_.Z("design:type",HTMLElement)],d3.prototype,"thumbnail",void 0);_.I([_.qR("#dismissible"),_.Z("design:type",HTMLElement)],d3.prototype,"JSC$16374_dismissibleMedia",void 0);
_.I([_.qR("ytd-ad-inline-playback-meta-block"),_.Z("design:type",HTMLElement)],d3.prototype,"adInlinePlaybackMetaBlock",void 0);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],d3.prototype,"onDataChanged",null);_.I([_.iy("typographyBump"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],d3.prototype,"onTypographyBumpChanged",null);
_.I([_.r("lockupIsHovered"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],d3.prototype,"isHovered",null);_.I([_.Q({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],d3);
_.m(d3,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(eMJ!==void 0)return eMJ;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return eMJ=A},{mode:1});var Ein;var Ym=function(){var A=_.G.apply(this,arguments)||this;A.isInlinePreviewTriggered=!1;A.JSC$16377_activeViewMeasurementDataResolver=_.AI();return A};
_.g(Ym,_.G);_.P=Ym.prototype;_.P.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.P.attached=function(){var A=this;this.updateInlinePreviewHoverListeners();this.JSC$16377_activeViewMeasurementDataResolver.promise.then(function(L){A.ytdActiveViewBehavior.enableActiveViewMeasurement(L,15)})};
_.P.detached=function(){this.clearInlinePreviewHoverListeners()};
_.P.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16377_inlinePreviewHoverListener=$u({mediaRenderer:this,lockupElement:this.JSC$16377_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:iSc})};
_.P.clearInlinePreviewHoverListeners=function(){var A;(A=this.JSC$16377_inlinePreviewHoverListener)==null||sr(A)};
_.P.onDataChanged=function(){var A;((A=this.data)==null?0:A.activeView)&&this.JSC$16377_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",Ym.JSC$16376_DEFAULT_CLICK_LOCATION_BEHAVIOR,Ym.JSC$16376_CLICK_LOCATION_ID_MAP);this.thumbnail&&(A=this.thumbnail.getElementsByTagName("a"),A.length>0&&(A=A.namedItem("thumbnail"))&&A.removeAttribute("href"))};
_.P.onThumbnailContainerClick=function(A){if(this.data&&this.data.navigationEndpoint){var L,O=(L=this.data)==null?void 0:L.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(O,A,!0);A.stopPropagation()}};
_.P.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.P.impressionLog=function(){var A=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var L,O,X=(O=_.q((L=this.data)==null?void 0:L.onImpression,_.em))==null?void 0:O.commands;X&&(X.forEach(function(x){x.clickTrackingParams&&delete x.clickTrackingParams;_.X5().resolve(_.x$).resolveCommand(x,{form:{element:A.hostElement}})}),this.data.impressionsFired=!0)}};
_.v2.Object.defineProperties(Ym.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.JSC$16377_inlinePreviewHoverListener)==null?0:Wk(A))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Ym.prototype.onDataChanged=Ym.prototype.onDataChanged;Ym.JSC$16376_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);Ym.JSC$16376_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"}];_.I([_.N(WL),_.Z("design:type",Object)],Ym.prototype,"ytdActiveViewBehavior",void 0);
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Ym.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Ym.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.BL),_.Z("design:type",Object)],Ym.prototype,"ytdDismissibleItemBehavior",void 0);_.I([_.N(_.of),_.Z("design:type",Object)],Ym.prototype,"ytdLockupBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],Ym.prototype,"ytdReduxBehavior",void 0);
_.I([_.N(_.uR.YtSparklesClickLocationBehavior),_.Z("design:type",Object)],Ym.prototype,"ytSparklesClickLocationBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Ym.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],Ym.prototype,"isInlinePreviewTriggered",void 0);_.I([_.K({reflectToAttribute:!0,selector:_.Fl}),_.Z("design:type",Boolean)],Ym.prototype,"miniMode",void 0);_.I([_.qR("ytd-thumbnail"),_.Z("design:type",HTMLElement)],Ym.prototype,"thumbnail",void 0);
_.I([_.qR("#dismissible"),_.Z("design:type",HTMLElement)],Ym.prototype,"JSC$16377_dismissibleMedia",void 0);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ym.prototype,"onDataChanged",null);_.I([_.r("lockupIsHovered"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Ym.prototype,"isHovered",null);_.I([_.Q({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],Ym);
_.m(Ym,"ytd-video-display-full-buttoned-renderer",function(){if(Ein!==void 0)return Ein;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return Ein=A},{mode:1});var eE=function(A,L,O,X){X=X===void 0?!1:X;_.As.call(this,A);this.adsClientErrorMessage=O;this.aggressivelySample=X;this.args=[];L&&this.args.push(L)};
_.g(eE,_.As);var VZ=function(A,L,O,X){X=X===void 0?!1:X;_.As.call(this,A);this.adsClientErrorMessage=O;this.aggressivelySample=X;this.args=[];L&&this.args.push(L)};
_.g(VZ,_.As);var ni6=function(A){_.p$.call(this);var L=this;this.initializationFunction=A;this.instance=null;this.addOnDisposeCallback(function(){_.oo(L.instance);L.instance=null})};
_.g(ni6,_.p$);ni6.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.sf("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var EMP=function(){var A=new Map;[].forEach(function(L){A.set(L.JSC$32099_getType(),L)});
this.getters=A};new Promise(function(){});var uKs=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"]]),dju=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"}]]),tcc=function(A){this.experimentApiProvider=A;A=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=A<.1};var um=function(A,L,O,X){_.p$.call(this);this.adsControlFlowEventListeners=L;this.adEventLogger=O;this.experimentApiProvider=X;this.adsControlFlowManagerHelper=A(this,this,this,this,this);_.VI(this,this.adsControlFlowManagerHelper);A=_.d(L);for(L=A.next();!L.done;L=A.next())_.VI(this,L.value)};
_.g(um,_.p$);var bN3=function(A,L,O,X){Tx(A.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",L,O,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,X);A=_.d(A.adsControlFlowEventListeners);for(X=A.next();!X.done;X=A.next())bN3(X.value,L,O)};
_.P=um.prototype;_.P.onOpportunityProcessedExternallyManaged=function(A,L,O,X){Tx(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",A,O,L,void 0,void 0,void 0,void 0,void 0,void 0,void 0,X)};
_.P.onSlotReceivedExternallyManaged=function(A,L){Vw(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",A,L)};
_.P.onSlotEntered=function(A){if(DC(this.adsControlFlowManagerHelper,A)!=null){Vw(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",A);this.adsControlFlowManagerHelper.onSlotEntered(A);for(var L=_.d(this.adsControlFlowEventListeners),O=L.next();!O.done;O=L.next())O.value.onSlotEntered(A);if(DC(this.adsControlFlowManagerHelper,A)!=null&&DC(this.adsControlFlowManagerHelper,A).isOccupyingSlotType()&&eG(this.adsControlFlowManagerHelper,A)&&!hMN(this.adsControlFlowManagerHelper,A)){var X;Ep(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",A,(X=eG(this.adsControlFlowManagerHelper,A))!=null?X:void 0);A=DC(this.adsControlFlowManagerHelper,A);A.slotLifecycleStage!=="entered"&&nR(A.slot,A.slotLifecycleStage,"enterLayoutForSlot");A.slotLifecycleStage="rendering";A.registeredLayoutRenderingAdapter.startRendering(A.layout)}}};
_.P.onSlotExited=function(A){if(DC(this.adsControlFlowManagerHelper,A)!=null){Vw(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",A);this.adsControlFlowManagerHelper.onSlotExited(A);for(var L=_.d(this.adsControlFlowEventListeners),O=L.next();!O.done;O=L.next())O.value.onSlotExited(A);DC(this.adsControlFlowManagerHelper,A)!=null&&DC(this.adsControlFlowManagerHelper,A).markedForUnscheduleAfterOutboundAdapterRequests&&SDl(this,A)}};
_.P.onLayoutReceivedExternallyManaged=function(A,L,O){A.managerLayer!=="core"&&Ep(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",A,L,O)};
var qDl=function(A,L,O){if(DC(A.adsControlFlowManagerHelper,L)!=null){Ep(A.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",L,O);A=_.d(A.adsControlFlowEventListeners);for(var X=A.next();!X.done;X=A.next())qDl(X.value,L,O)}};
um.prototype.onLayoutExited=function(A,L,O){if(DC(this.adsControlFlowManagerHelper,A)!=null){Ep(this.adEventLogger,YHy(O),A,L);this.adsControlFlowManagerHelper.onLayoutExited(A,L);for(var X=_.d(this.adsControlFlowEventListeners),x=X.next();!x.done;x=X.next())x.value.onLayoutExited(A,L,O);(O=eG(this.adsControlFlowManagerHelper,A))&&L.layoutId===O.layoutId&&gi6(this,A)}};
um.prototype.disposeInternal=function(){var A=wrl(this.adsControlFlowManagerHelper);A=_.d(A);for(var L=A.next();!L.done;L=A.next())SDl(this,L.value);_.p$.prototype.disposeInternal.call(this)};
var SDl=function(A,L){if(DC(A.adsControlFlowManagerHelper,L)!=null)if(DC(A.adsControlFlowManagerHelper,L).JSC$32129_isSlotExitRequested()||DC(A.adsControlFlowManagerHelper,L).JSC$32129_isLayoutExitRequested())DC(A.adsControlFlowManagerHelper,L).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(DC(A.adsControlFlowManagerHelper,L).isOccupyingSlotType())DC(A.adsControlFlowManagerHelper,L).markedForUnscheduleAfterOutboundAdapterRequests=!0,gi6(A,L);else if(DC(A.adsControlFlowManagerHelper,L).JSC$32129_isSlotFillRequested())DC(A.adsControlFlowManagerHelper,
L).markedForUnscheduleAfterOutboundAdapterRequests=!0,DC(A.adsControlFlowManagerHelper,L)!=null&&(Vw(A.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",L),L=DC(A.adsControlFlowManagerHelper,L),L.fulfillmentLifecycleStage="fill_cancel_requested",L.registeredFulfillmentAdapter.cancelSlotFilling());else{var O=eG(A.adsControlFlowManagerHelper,L),X;A.experimentApiProvider.get();(X=_.h("h5_enable_layout_unscheduling_events"))&&(O?pr3(A,L,O):_.sf(Error("Hh"),L,O,void 0,!1));Vw(A.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",L);var x=DC(A.adsControlFlowManagerHelper,L),J=L.slotEntryTrigger,Y=x.registeredSlotEntryTriggerAdapters.get(J.triggerId);Y&&(Y.unregisterTrigger(J),x.registeredSlotEntryTriggerAdapters.delete(J.triggerId));J=_.d(L.slotFulfillmentTriggers);for(Y=J.next();!Y.done;Y=J.next()){Y=Y.value;var T=x.registeredFulfillmentTriggerAdapters.get(Y.triggerId);T&&(T.unregisterTrigger(Y),x.registeredFulfillmentTriggerAdapters.delete(Y.triggerId))}J=_.d(L.slotExpirationTriggers);
for(Y=J.next();!Y.done;Y=J.next())if(Y=Y.value,T=x.registeredExpirationTriggerAdapters.get(Y.triggerId))T.unregisterTrigger(Y),x.registeredExpirationTriggerAdapters.delete(Y.triggerId);x.hasLayout()&&(J=x.layout,tZ(x,J.layoutExitNormalTriggers),tZ(x,J.layoutExitSkipTriggers),tZ(x,J.layoutExitMuteTriggers),tZ(x,J.layoutExitUserInputSubmittedTriggers),tZ(x,J.layoutExitUserCancelledTriggers));x.registeredFulfillmentAdapter=void 0;x.registeredSlotAdapter!=null&&(x.registeredSlotAdapter.release(),x.registeredSlotAdapter=
void 0);x.registeredLayoutRenderingAdapter!=null&&(x.registeredLayoutRenderingAdapter.release(),x.registeredLayoutRenderingAdapter=void 0);x=A.adsControlFlowManagerHelper;DC(x,L)&&(x=iNH(x,L.slotType+"_"+L.slotPhysicalPosition))&&x.delete(L.slotId);Vw(A.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",L);A=_.d(A.adsControlFlowEventListeners);for(x=A.next();!x.done;x=A.next())x=x.value,x.onSlotUnscheduled(L),O&&!X&&pr3(x,L,O)}},pr3=function(A,L,O){Ep(A.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
L,O);
Ep(A.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",L,O);A=_.d(A.adsControlFlowEventListeners);for(var X=A.next();!X.done;X=A.next())X=X.value,O&&pr3(X,L,O)},gi6=function(A,L){if(DC(A.adsControlFlowManagerHelper,L)!=null&&DC(A.adsControlFlowManagerHelper,L).isOccupyingSlotType()){var O=eG(A.adsControlFlowManagerHelper,L);
if(O&&hMN(A.adsControlFlowManagerHelper,L)){if(DC(A.adsControlFlowManagerHelper,L)!=null){var X=A.adEventLogger,x;var J=((x=dju.get("abandoned"))==null?void 0:x.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";Ep(X,J,L,O);A=DC(A.adsControlFlowManagerHelper,L);A.slotLifecycleStage!=="rendering"&&nR(A.slot,A.slotLifecycleStage,"exitLayout");A.slotLifecycleStage="rendering_stop_requested";A.registeredLayoutRenderingAdapter.stopRendering(O,"abandoned")}}else{Vw(A.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
L);try{X=DC(A.adsControlFlowManagerHelper,L);if(!X)throw new VZ("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");X.slotLifecycleStage!=="enter_requested"&&X.slotLifecycleStage!=="entered"&&X.slotLifecycleStage!=="rendering"&&nR(X.slot,X.slotLifecycleStage,"exitSlot");X.slotLifecycleStage="exit_requested";if(X.registeredSlotAdapter===void 0)throw X.slotLifecycleStage="scheduled",new VZ("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
X.registeredSlotAdapter.exit()}catch(Y){Y instanceof VZ&&Y.adsClientErrorMessage?(N$g(A.adEventLogger,Y.adsClientErrorMessage,L),_.sf(Y,L,void 0,void 0,Y.aggressivelySample)):(N$g(A.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",L),_.sf(Y,L))}}}};var bm=function(A,L,O,X,x,J){_.p$.call(this);this.registry=A;this.experimentApiProvider=J;this.slotMap=new Map};
_.g(bm,_.p$);var iNH=function(A,L){return(A=A.slotMap.get(L))?A:new Map},DC=function(A,L){return iNH(A,L.slotType+"_"+L.slotPhysicalPosition).get(L.slotId)},wrl=function(A){var L=[];
A.slotMap.forEach(function(O){O=_.d(O.values());for(var X=O.next();!X.done;X=O.next())L.push(X.value.slot)});
return L};
bm.prototype.onSlotEntered=function(A){A=DC(this,A);A.slotLifecycleStage!=="enter_requested"&&nR(A.slot,A.slotLifecycleStage,"onSlotEntered");A.slotLifecycleStage="entered"};
var hMN=function(A,L){A=DC(A,L);return A.hasLayout()&&A.isRendering()},eG=function(A,L){(A=DC(A,L))?A.hasLayout()&&!A.layout&&_.sf("Unexpected empty layout",L):_.sf("Unexpected undefined slotState",L);
return(A==null?void 0:A.layout)||null};
bm.prototype.onSlotExited=function(A){A=DC(this,A);A.slotLifecycleStage!=="exit_requested"&&nR(A.slot,A.slotLifecycleStage,"onSlotExited");A.slotLifecycleStage="scheduled"};
bm.prototype.onLayoutExited=function(A,L){A=DC(this,A);A.isPrimaryLayout(L)&&(A.slotLifecycleStage!=="rendering_stop_requested"&&nR(A.slot,A.slotLifecycleStage,"onLayoutExited"),A.slotLifecycleStage="entered")};
var tZ=function(A,L){L=_.d(L);for(var O=L.next();!O.done;O=L.next()){O=O.value;var X=A.registeredLayoutExitTriggerAdapters.get(O.triggerId);X&&(X.unregisterTrigger(O),A.registeredLayoutExitTriggerAdapters.delete(O.triggerId))}},nR=function(A,L,O){_.sf("Slot stage was "+L+" when calling method "+O,A)};var KIN=function(A){_.p$.call(this);this.deps=A;this.JSC$16427_adsControlFlowManager=rX6(this)};
_.g(KIN,_.p$);var rX6=function(A){var L=new um(function(O,X,x,J){return new bm(A.deps.registry,O,X,x,J,A.deps.experimentApiProvider)},new Set(eXJ(A.deps.registry).concat(A.deps.listeners)),A.deps.adEventLogger,A.deps.experimentApiProvider);
_.VI(A,L);return L};var p4s=function(){};var G8L=function(A,L){_.p$.call(this);this.experimentApiProvider=A;this.eventLoggingSettingsProvider=L;this.eventCount=0;this.premiumAdSeenEventLogger=iMr()()};
_.g(G8L,_.p$);G8L.prototype.logEvent=function(A){Tx(this,A)};
var Vw=function(A,L,O,X){Tx(A,L,void 0,void 0,void 0,O,void 0,void 0,void 0,O.adSlotLoggingData,void 0,void 0,X)},Ep=function(A,L,O,X,x){Tx(A,L,void 0,void 0,void 0,O,X?X:void 0,void 0,void 0,O.adSlotLoggingData,X?X.adLayoutLoggingData:void 0,void 0,x);
O=_.X5().resolve(_.Ot(ig))==null?void 0:Nd();L=O==null?void 0:O.adsSeenHotConfig;O=O==null?void 0:O.adsHotConfig;(L==null?0:L.logOnAdsSeen)&&(O==null?0:O.webEnablePremiumAdsSeenLogging)&&lq6(A,X?X:void 0,x)},N$g=function(A,L,O){Tx(A,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,O,void 0,void 0,void 0,O.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:L})},Tx=function(A,L,O,X,x,J,Y,T,V,E,n,t,b){b=b===void 0?0:b;
cX6(A.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+L,"slot:",J,"layout:",Y,"ping:",T,"Opportunity:",{opportunityType:O,associatedSlotId:X,slotsFromOpportunity:x,triggerBundle:V,adSlotLoggingData:E,adLayoutLoggingData:n});try{var S=function(){A.experimentApiProvider.get();if(L!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){L||_.sf("Empty PACF event type",J,Y);var w=A.eventLoggingSettingsProvider.get();var l;(l=w.alwaysIncludeDebugData)||(w.experimentApiProvider.get(),l=
!1);w=l;l={eventType:L,eventOrder:++A.eventCount};var F={};J&&(F.slotData=Vd9(w,J));if(Y){var R={type:Y.layoutType,controlFlowManagerLayer:uKs.get(Y.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};w&&(R.debugData={layoutId:Y.layoutId});F.layoutData=R}T&&(F.pingData={pingDispatchStatus:T.dispatchStatus,serializedAdPingMetadata:T.ping.serializedAdPingMetadata,pingIndex:T.index});V&&(F.triggerData=TZ_(V.trigger,V.category));O&&(F.opportunityData=Dje(w,O,X,x));l.adClientData=F;E&&(l.serializedSlotAdServingData=
E.serializedSlotAdServingDataEntry);n&&(l.serializedAdServingData=n.serializedAdServingDataEntry);t&&(l.errorInfo=t);_.lg("adsClientStateChange",{adsClientEvent:l})}};
b&&b>0?_.p7(_.Q7(),function(){return S()},b):S()}catch(w){cX6(A.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.p7(_.Q7(),function(){_.sf(w instanceof Error?w:String(w),J,Y,{pacf_message:"exception during pacf logging"})})}},lq6=function(A,L,O){if(L){var X=L.adLayoutLoggingData;
_.p7(_.Q7(),function(){if(A.premiumAdSeenEventLogger!=null){var x=Date.now().toString();X&&_.lg("adsSeenClientLogging",{adsSeenClientLogging:{serializedAdServingDataEntry:X.serializedAdServingDataEntry},eventTimeMs:x})}},O!=null?O:0)}};var CC7=function(A,L){G8L.call(this,A,L)};
_.g(CC7,G8L);var FIN=function(){},cX6=function(A,L){return _.h(L)};var QzN=function(){var A=new RMj;this.JSC$16453_adsControlFlowManager=(new KIN(A)).JSC$16427_adsControlFlowManager},RMj=function(){_.p$.call(this);
var A=this;this.experimentApiProvider=new ni6(function(){return new FIN});
var L=new ni6(function(){return new tcc(A.experimentApiProvider)});
this.adEventLogger=new CC7(this.experimentApiProvider,L);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.g(RMj,_.p$);var mgL=function(){},fqg,hZ=function(){fqg||(fqg=new mgL);
return fqg},SG=function(A){if(!A.JSC$16464_externallyManagedSlotAdapterCallback){var L=(new QzN).JSC$16453_adsControlFlowManager;
A.JSC$16464_externallyManagedSlotAdapterCallback=L}return A.JSC$16464_externallyManagedSlotAdapterCallback},Iqu=function(A,L,O){var X=L.opportunityType,x=Error("Ih");
if(X!==void 0){var J=SG(A);bN3(J,X,void 0,O)}else _.sf(x,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});J=[];if(L.adSlotAndLayoutMetadata!==void 0){L=_.d(L.adSlotAndLayoutMetadata);for(var Y=L.next();!Y.done;Y=L.next()){var T=Y.value;if(Y=T.adSlotMetadata)if(J.push(Y),A.onSlotReceivedExternallyManaged(Y,O),T.adLayoutMetadata){T=_.d(T.adLayoutMetadata);for(var V=T.next();!V.done;V=T.next())A.onLayoutReceivedExternallyManaged(Y,V.value,O)}else O>0&&_.sf("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
X,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else O>0&&_.sf("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+X,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else O>0&&_.sf("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+X,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(X!==void 0)A.onOpportunityProcessedExternallyManaged(X,J,void 0,O);else _.sf(x,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
mgL.prototype.onSlotReceivedExternallyManaged=function(A,L){A=DE(A);if(A instanceof VZ)_.sf(A,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else SG(this).onSlotReceivedExternallyManaged(A,L)};
mgL.prototype.onLayoutReceivedExternallyManaged=function(A,L,O){A=DE(A);L=nMu(L);if(A instanceof VZ)_.sf(A,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(L instanceof eE)_.sf(L,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else SG(this).onLayoutReceivedExternallyManaged(A,L,O)};
mgL.prototype.onOpportunityProcessedExternallyManaged=function(A,L,O,X){var x=[];L=_.d(L);for(var J=L.next();!J.done;J=L.next())J=DE(J.value),J instanceof VZ?_.sf(J,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):x.push(J);SG(this).onOpportunityProcessedExternallyManaged(A,x,O,X)};
var yX7=function(A,L){L=DE(L);if(L instanceof VZ)_.sf(L,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var O=SG(A);Vw(O.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",L);O=_.d(O.adsControlFlowEventListeners);for(var X=O.next();!X.done;X=O.next())X=DC(X.value,L),X.slotLifecycleStage!=="not_scheduled"&&nR(X.slot,X.slotLifecycleStage,"onSlotScheduled"),X.slotLifecycleStage="scheduled";A=SG(A);Vw(A.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",L);A=_.d(A.adsControlFlowEventListeners);
for(O=A.next();!O.done;O=A.next())O.value.onSlotEntered(L)}},ZN3=function(A,L){L=DE(L);
if(L instanceof VZ)_.sf(L,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var O=SG(A);Vw(O.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",L);O=_.d(O.adsControlFlowEventListeners);for(var X=O.next();!X.done;X=O.next())X.value.onSlotExited(L);A=SG(A);Vw(A.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",L);A=_.d(A.adsControlFlowEventListeners);for(O=A.next();!O.done;O=A.next())O.value.onSlotUnscheduled(L)}},jzn=function(A,L,O){L=DE(L);
O=nMu(O);if(L instanceof VZ)_.sf(L,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(O instanceof eE)_.sf(O,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var X=SG(A);Ep(X.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",L,O);X=_.d(X.adsControlFlowEventListeners);for(var x=X.next();!x.done;x=X.next())x.value.onLayoutScheduled(L,O);A=SG(A);Ep(A.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",L,O);A=_.d(A.adsControlFlowEventListeners);
for(X=A.next();!X.done;X=A.next())qDl(X.value,L,O)}},qp=function(A,L,O){L=DE(L);
O=nMu(O);if(L instanceof VZ)_.sf(L,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(O instanceof eE)_.sf(O,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var X=SG(A);Ep(X.adEventLogger,YHy("normal"),L,O);X=_.d(X.adsControlFlowEventListeners);for(var x=X.next();!x.done;x=X.next())x.value.onLayoutExited(L,O,"normal");A=SG(A);A=_.d(A.adsControlFlowEventListeners);for(X=A.next();!X.done;X=A.next())pr3(X.value,L,O)}};_.g3=_.xa(function(A){var L=_.OY(A,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});A=Object.assign({},L);var O=L.data;L=L.customCommandResolver;var X=(delete A.data,delete A.customCommandResolver,A);A=_.Oj({visibilityCallback:function(T,V){var E,n=(E=O().interaction)==null?void 0:E.onFirstVisible;T&&(n&&_.$a(n),X.setOnErrorHandler()&&td_(V))},
showOption:_.JN});L=_.Uk(function(){return O().interaction},L,function(){var T;
return(T=X.listenToTapEvent)==null?void 0:T.call(X)});
var x=_.d(_.uQ(!1,void 0,"nqIeMd")),J=x.next().value,Y=x.next().value;x=_.py(function(T){var V;((V=X.setTouchEndHandler)==null?0:V.call(X))&&!J()&&(T.currentTarget.click(),Y(!0),setTimeout(function(){Y(!1)},100));
return!1});
return _.D("ad-image-view-model",{class:function(){var T,V=[((T=O().interaction)==null?0:T.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],E;((E=X.isGridViewEnabled)==null?0:E.call(X))&&V.push("ytwAdImageViewModelHostInGridView");return V.join(" ")},
el:_.sC(A,L),"on:touchend":x},_.D("div",{class:"ytwAdImageViewModelHostImageContainer"},_.D(_.XV,{data:function(){var T;return{sources:O().imageSources,contentMode:(T=O().imageProperties)==null?void 0:T.contentMode}},
alt:function(){var T,V;return((T=O().interaction)==null?void 0:(V=T.accessibility)==null?void 0:V.label)||""},
targetHeight:X.targetHeight,targetWidth:X.targetWidth,preserveHeight:X.preserveHeight,preserveWidth:X.preserveWidth,useWidth:X.useWidth,style:function(){var T,V;return"vertical-align: bottom;"+(((T=O().background)==null?0:T.color)?"background-color:"+_.Wy((V=O().background)==null?void 0:V.color)+";":"")},
className:function(){return X.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var T,V;return(V=(T=X.setDraggable)==null?void 0:T.call(X))!=null?V:void 0}})))},"ob");var WI7=_.xa(function(A){var L=A.data,O=A.listenToTapEvent,X=function(){};
return _.D("ad-button-hover-overlay-view-model",{"on:click":_.py(function(x){if(_.h("enable_web_home_top_landscape_image_layout_legacy_click_command")){var J,Y=(J=L().interaction)==null?void 0:J.onTap;Y&&_.P4(x.currentTarget,"yt-navigate",{endpoint:_.HR(Y)})}}),
class:function(){var x;return((x=L().interaction)==null?0:x.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.sC(_.Oj({visibilityCallback:function(x){var J,Y=(J=L().interaction)==null?void 0:J.onFirstVisible;x&&Y&&_.$a(Y)},
showOption:_.JN}),_.Uk(function(){return L().interaction},void 0,function(){return!_.h("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(O==null?void 0:O())}))},function(){return _.h("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.D(_.ID,{data:function(){return L().button}},{adButtonViewModel:function(x){return _.D(_.dn,{data:x.data,
customCommandResolver:X})}}):_.D(_.ID,{data:function(){return L().button}},{adButtonViewModel:_.dn})}())},"pb");var Ef;_.Y4(_.xa(function(A){var L=A.data;A=_.Oj({visibilityCallback:function(T,V){if(T){var E;(T=(E=L().interaction)==null?void 0:E.onFirstVisible)&&_.$a(T);var n;if(E=(n=L().adLayoutData)==null?void 0:n.activeViewData)nv(V,E),_.h("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&tC(V)})}else _.h("stop_av_measurement_on_detach")&&tC(V)},
showOption:_.JN,hideOption:PQ});var O=_.Uk(function(){return L().interaction},void 0,function(){return!0}),X=_.d(_.uQ(!1,void 0,"K1MNM")),x=X.next().value,J=X.next().value;
X=_.py(function(){J(!0)});
var Y=_.py(function(){J(!1)});
return _.D("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.sC(A,pjJ,O),"on:mouseenter":X,"on:mouseleave":Y},_.D("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.rl({"max-width":function(){return _.h("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.D("div",{class:function(){var T;
a:{var V;switch((T=_.q(L().thumbnailImage,ue6))==null?void 0:(V=T.imageProperties)==null?void 0:V.renderingAspect){case "RENDERING_ASPECT_SQUARE":T="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":T="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}T=void 0}return T}},_.D(_.ID,{data:function(){return L().thumbnailImage}},{adImageViewModel:function(T){return _.D(_.g3,
{data:T.data,
listenToTapEvent:!0,setTouchEndHandler:_.h("enable_top_landscape_image_experiment_dom_id_web")})}})),_.D("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.D(_.e,{cond:function(){var T,V,E;
return(T=_.q(L().thumbnailImage,ue6))==null?void 0:(V=T.imageProperties)==null?void 0:(E=V.overlayIcon)==null?void 0:E.iconImage},
then:function(T){return _.D(_.XV,{data:T,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.D("div",{class:function(){return x()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.D(_.ID,{data:function(){return L().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(T){return _.D(WI7,
{data:T.data,
listenToTapEvent:!0})}}))),_.D("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.D(_.ID,{data:function(){return L().feedAdMetadata}},{feedAdMetadataViewModel:function(T){return _.D(ao3,{data:T.data,
listenToTapEvent:!0,setTouchEndHandler:_.h("enable_top_landscape_image_experiment_dom_id_web")})}})))},"qb"),"compact-landscape-no-button-layout-view-model",{props:{data:_.x5}});_.Y4(_.xa(function(A){var L=A.data;A=_.Oj({visibilityCallback:function(T,V){if(T){var E;(T=(E=L().interaction)==null?void 0:E.onFirstVisible)&&_.$a(T);var n;if(E=(n=L().adLayoutData)==null?void 0:n.activeViewData)nv(V,E),_.h("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&tC(V)})}else _.h("stop_av_measurement_on_detach")&&tC(V)},
showOption:_.JN,hideOption:PQ});var O=_.zJ(_.Hx),X=_.Uk(function(){return L().interaction}),x={},J={},Y={};
return _.D("square-image-layout-view-model",{class:_.qn("ytwSquareImageLayoutViewModelHost",(x.ytwSquareImageLayoutViewModelHostColumn=O,x)),el:_.sC(A,iSs,X)},_.D("div",{class:_.qn("ytwSquareImageLayoutViewModelHostImage",(J.ytwSquareImageLayoutViewModelHostColumnImage=O,J))},function(){return _.D(_.ID,{data:function(){return L().adImage}},{adImageViewModel:function(T){return _.D(_.g3,{data:T.data,
isGridViewEnabled:O,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.D("div",{class:_.qn("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(Y.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=O,Y))},_.D(_.ID,{data:function(){return L().feedAdMetadata}},{feedAdMetadataViewModel:ao3}),function(){return _.D(_.ID,{data:function(){return L().adButton}},{adButtonViewModel:function(T){var V={};
return _.D(_.dn,{data:T.data,className:_.qn((V.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,V.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=O,V))})}})}()))},"rb"),"square-image-layout-view-model",{props:{data:_.x5}});_.Y4(_.xa(function(A){var L=A.data;var O=A.noBottomMargin;var X=A.typographyBump;A=_.Oj({visibilityCallback:function(t,b){if(t){var S;(t=(S=L().interaction)==null?void 0:S.onFirstVisible)&&_.$a(t);var w;if(S=(w=L().adLayoutData)==null?void 0:w.activeViewData)nv(b,S),_.h("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&tC(b)})}else _.h("stop_av_measurement_on_detach")&&tC(b)},
showOption:_.JN,hideOption:PQ});var x=_.Uk(function(){return L().interaction},void 0,function(){return _.h("enable_web_home_top_landscape_image_layout_level_click")}),J=function(){return L().interaction};
J!==void 0&&J!==null||_.HY(Error("Jh"));var Y=function(){var t,b,S;return(t=_.q(L().thumbnailImage,ue6))==null?void 0:(b=t.background)==null?void 0:(S=b.backgroundImageSource)==null?void 0:S.imageSources};
J=_.d(_.uQ(!1,void 0,"pZPLOd"));var T=J.next().value,V=J.next().value;J=_.py(function(){V(!0)});
var E=_.py(function(){V(!1)}),n=function(){return T()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.D("top-landscape-image-layout-view-model",{class:function(){var t;return((t=L().interaction)==null?0:t.onTap)&&_.h("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.sC(A,NZs,x),"on:mouseenter":J,"on:mouseleave":E},_.D("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.D(_.e,{cond:function(){return Y()&&Y().length>0},
then:function(){return _.D("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.rl({top:"0","background-image":function(){return"url("+String(Y()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.D(_.e,{cond:function(){return!!L().adButtonHoverOverlay},
then:function(){return _.D("div",{class:n},_.D(_.ID,{data:function(){return L().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:WI7}))}}),_.D("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.D(_.ID,{data:function(){return L().thumbnailImage}},{adImageViewModel:function(t){return _.D(_.g3,{data:t.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.h("enable_web_home_top_landscape_image_layout_level_click")})}})),_.D("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.D(_.XV,{data:{sources:[{clientResource:{imageName:_.h("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.D("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.D(_.ID,{data:function(){return L().feedAdMetadata}},{feedAdMetadataViewModel:function(t){return _.D(ao3,{data:t.data,
noBottomMargin:function(){return O==null?void 0:O()},
listenToTapEvent:function(){return _.h("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return X==null?void 0:X()}})}})))},"sb"),"top-landscape-image-layout-view-model",{props:{data:_.x5,
noBottomMargin:_.x5,typographyBump:_.x5}});_.Y4(_.xa(function(A){var L=A.data;var O=A.typographyBump;return _.D("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.sC(_.Oj({visibilityCallback:function(X,x){if(X){var J;(X=(J=L().interaction)==null?void 0:J.onFirstVisible)&&_.$a(X);var Y;(J=(Y=L().adLayoutData)==null?void 0:Y.activeViewData)&&nv(x,J)}},
showOption:_.JN,hideOption:PQ}))},_.D("div",null,_.D(_.ID,{data:function(){return L().videoLockup}},{lockupViewModel:function(X){return _.D(_.tN,{data:X.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:O})}})))},"tb"),"video-display-button-group-layout-view-model",{props:{data:_.x5,
noBottomMargin:_.x5,typographyBump:_.x5}});_.Y4(_.xa(function(A){var L=A.data;var O=A.className;var X=A.typographyBump;return _.D("video-display-compact-button-group-layout-view-model",{el:_.sC(_.Oj({visibilityCallback:function(x,J){if(x){var Y;(x=(Y=L().interaction)==null?void 0:Y.onFirstVisible)&&_.$a(x);var T;(Y=(T=L().adLayoutData)==null?void 0:T.activeViewData)&&nv(J,Y)}},
showOption:_.JN})),class:_.qn("videoDisplayCompactButtonGroupLayoutViewModelHost",O)},_.D(_.ID,{data:function(){return L().videoLockup}},{lockupViewModel:function(x){return _.D(_.tN,{data:x.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:X})}}))},"ub"),"video-display-compact-button-group-layout-view-model",{props:{data:_.x5,
className:_.x5,typographyBump:_.x5}});_.Y4(_.xa(function(A){var L=A.data;var O=A.className;var X=A.typographyBump;return _.D("video-display-compact-buttoned-layout-view-model",{el:_.sC(_.Oj({visibilityCallback:function(x,J){if(x){var Y;(x=(Y=L().interaction)==null?void 0:Y.onFirstVisible)&&_.$a(x);var T;(Y=(T=L().adLayoutData)==null?void 0:T.activeViewData)&&nv(J,Y)}},
showOption:_.JN})),class:_.qn("videoDisplayCompactButtonedLayoutViewModelHost",O)},_.D(_.ID,{data:function(){return L().videoLockup}},{lockupViewModel:function(x){return _.D(_.tN,{data:x.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:X})}}))},"vb"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.x5,
className:_.x5,typographyBump:_.x5}});_.Y4(_.xa(function(A){var L=A.data;var O=A.className;var X=A.typographyBump;var x=function(){return L().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},J=_.zJ(_.Hx);
A=_.Oj({visibilityCallback:function(E,n){if(E){var t=L();E=t.adLayoutData;var b;(t=(b=t.interaction)==null?void 0:b.onFirstVisible)&&_.$a(t);(b=E==null?void 0:E.activeViewData)&&nv(n,b)}},
showOption:_.JN});var Y=_.E4(function(){return{containerType:x()&&J()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST"}},void 0,"BXJVJ"),T=_.E4(function(){return x()&&J()?"":x()?"168px":"50%"},void 0,"ikSkm"),V=_.E4(function(){return x()&&J()?9999:void 0},void 0,"M8rucc");
return _.D("video-display-compact-layout-view-model",{el:_.sC(A),class:_.qn("videoDisplayCompactLayoutViewModelHost",O)},_.D(_.ID,{data:function(){return L().videoLockup}},{lockupViewModel:function(E){return _.D(_.tN,{data:E.data,
containerLayoutConfig:Y,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:T,thumbnailTargetWidth:V,typographyBump:X})}}))},"wb"),"video-display-compact-layout-view-model",{props:{data:_.x5,
className:_.x5,typographyBump:_.x5}});_.Y4(_.xa(function(A){var L=A.data;var O=A.typographyBump;return _.D("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.sC(_.Oj({visibilityCallback:function(X,x){if(X){var J;(X=(J=L().interaction)==null?void 0:J.onFirstVisible)&&_.$a(X);var Y;(J=(Y=L().adLayoutData)==null?void 0:Y.activeViewData)&&nv(x,J)}},
showOption:_.JN,hideOption:PQ}))},_.D("div",null,_.D(_.ID,{data:function(){return L().videoLockup}},{lockupViewModel:function(X){return _.D(_.tN,{data:X.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:O})}})))},"xb"),"video-display-full-layout-view-model",{props:{data:_.x5,
noBottomMargin:_.x5,typographyBump:_.x5}});_.HNn=_.xa(function(A){var L=A.data;A=_.av("ad-card-badge-view-model");return _.D("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:A},_.D(_.e,{cond:function(){return L().imageBadge},
then:function(O){return _.D(_.XV,{data:O,alt:""})}}))},"yb");var zMV=_.xa(function(A){var L=A.data;var O=A.customCommandResolver;return _.D("carousel-ad-card-image-view-model",{class:function(){var X;return((X=L().interaction)==null?0:X.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.sC(_.Oj({visibilityCallback:function(X){var x,J=(x=L().interaction)==null?void 0:x.onFirstVisible;X&&J&&_.$a(J)},
showOption:_.JN}),_.Uk(function(){return L().interaction},O)),
"aria-label":function(){var X,x;return(X=L().interaction)==null?void 0:(x=X.accessibility)==null?void 0:x.label}},_.D(_.ID,{data:function(){return L().adImage}},{adImageViewModel:function(X){return _.D(_.g3,{data:X.data,
customCommandResolver:O})}}),_.D("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.D(_.ID,{data:function(){return L().badge}},{adCardBadgeViewModel:_.HNn})),_.D(_.cx,{model:{color:4}}))},"zb");var B$H=_.xa(function(A){var L=_.d(_.uQ(0,void 0,"o9Bzd")),O=L.next().value;L.next();var X=L.next().value,x=_.d(_.uQ(!1,void 0,"KLdzYe"));L=x.next().value;var J=x.next().value,Y;_.rF(function(){clearTimeout(Y)});
x=_.py(function(){var E;((E=A.animate)==null?0:E.call(A))?(J(!0),Y=setTimeout(function(){J(!1);T()},200)):T();
return!1});
var T=function(){X(function(E){return(E+A.numShownItems())%A.data().length})},V={};
return _.D("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.D("div",{class:_.qn("ytwHorizontalCarouselCarouselWrapper")},_.D("div",{class:_.qn("ytwHorizontalCarouselCarouselInnerWrapper",(V.ytwHorizontalCarouselAnimating=L,V))},_.D(_.g9,{each:A.data,keyBy:"INDEX"},function(E,n){return _.D("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.rl({"flex-basis":function(){return"calc((100% - (8px * "+(A.numShownItems()-1)+")) / "+A.numShownItems()+")"},
order:function(){var t=n-O();t<0&&(t+=A.data().length);return t}})},A.children(E,n))}))),_.D("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":x},A.nextButton()))},"Ab");var Mc6=_.xa(function(A){var L=A.data;var O=A.customCommandResolver;var X=A.expansive;return _.D("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:_.sC(_.Oj({visibilityCallback:function(x){var J,Y=(J=L().interaction)==null?void 0:J.onFirstVisible;x&&Y&&_.$a(Y)},
showOption:_.JN}))},_.D(B$H,{data:function(){var x;return((x=L())==null?void 0:x.carouselAdCards)||[]},
nextButton:function(){return _.D(_.ID,{data:function(){return L().nextButton}},{buttonViewModel:function(x){var J=x.data;
return _.D(_.gj,{data:function(){return(X==null?0:X())?Object.assign({},J(),{style:"mono"}):J()},
className:_.h("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(x){return _.D(_.ID,{data:x},{carouselAdCardImageViewModel:function(J){return _.D(zMV,{data:J.data,customCommandResolver:O})}})}))},"Bb");var $g6=_.xa(function(A){var L=A.data;var O=A.customCommandResolver;var X=A.className;var x=A.buttonClassName;var J=A.animationEntityKey;var Y=A.expansive;return _.D("carousel-button-view-model",{class:_.qn("ytwCarouselButtonViewModelHost",X)},_.D(_.ID,{data:function(){return L().carousel}},{carouselAdCardCollectionViewModel:function(T){return _.D(Mc6,{data:T.data,
customCommandResolver:O,expansive:Y})}}),_.D(_.ID,{data:function(){return L().button}},{adButtonViewModel:function(T){var V=T.data;
return _.D(_.dn,{data:function(){return(Y==null?0:Y())?Object.assign({},V(),{style:"AD_BUTTON_STYLE_TONAL"}):V()},
className:x,customCommandResolver:O,animationEntityKey:J})}}))},"Cb");_.aqV=_.xa(function(A){var L=A.data;A=A.className;var O=_.av("pivot-button-view-model");_.GD(function(){var X;((X=L())==null?0:X.backgroundColor)&&O.value.setAttribute("data-background-color",String(L().backgroundColor))});
return _.D("pivot-button-view-model",{el:O,class:_.qn("ytwPivotButtonViewModelHost",A)},_.D(_.aD,{command:function(){var X=L();X=X.onClickCommand?_.HR(X.onClickCommand):X.contentDescription?_.XZ(X.contentDescription):void 0;return X},
ariaLabel:function(){return L().contentDescription}},_.D(_.e,{cond:function(){return L().thumbnail},
then:function(X){return _.D(_.XV,{data:X,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.D(_.e,{cond:function(){return L().icon},
then:function(X){return _.D(_.Ky,{icon:function(){return X().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Db");_.k8N=_.xa(function(A){var L=A.data;var O=A.buttonShapeOverrideables;return _.D("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.D(_.ID,{data:function(){return L().buttonViewModels}},{buttonViewModel:function(X){return _.D(_.gj,{data:X.data,
buttonOverrides:O})},
likeButtonViewModel:function(X){return _.D(_.jR,{data:X.data,buttonShapeOverrideables:O})},
dislikeButtonViewModel:function(X){return _.D(_.Zm,{data:X.data,buttonShapeOverrideables:O})},
toggleButtonViewModel:function(X){return _.D(_.fO,{data:X.data,buttonShapeOverrides:O})}}))},"Eb");var UgV=_.xa(function(A){var L=A.avatar;var O=A.headline;var X=A.badge;var x=A.description;var J=A.expansive;A={};return _.D("yt-ad-metadata-shape",{class:_.qn("ytAdMetadataShapeHost",(A.ytAdMetadataShapeHostLarge=J,A))},_.D("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.D(_.e,{cond:L,then:function(Y){return _.D(_.zzc,{data:function(){return(J==null?0:J())?Object.assign({},Y(),{size:"AD_AVATAR_SIZE_MPLUS"}):Y()}})}}),_.D("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.D(_.Xg,{text:O,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.D(_.e,{cond:X,then:function(Y){return _.D(_.E8,{data:function(){return(J==null?0:J())?Object.assign({},Y(),{style:"AD_BADGE_STYLE_STARK"}):Y()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.D("h2",{class:"ytAdMetadataShapeHostDescription"},_.D(_.Xg,{text:x,
linkInheritColor:!0})))},"Fb");var viJ=_.xa(function(A){var L=A.data;var O=A.onShow;var X=A.expansive;A=_.Uk(function(){return L().interaction});
_.GD(function(){var J,Y=(J=L().animatedRenderingConfig)==null?void 0:J.delayedSecondsToVisible;if(Y){var T=setTimeout(O,Y*1E3);_.rF(function(){clearTimeout(T)})}});
var x={};return _.D("reels-ad-card-buttoned-view-model",{class:_.qn(function(){var J;return((J=L().interaction)==null?0:J.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(x.ytwReelsAdCardButtonedViewModelHostExpansive=X,x)),
el:_.sC(A)},_.D(UgV,{avatar:function(){return _.q(L().avatar,dJ3)},
headline:function(){return L().headline},
badge:function(){return _.q(L().adBadge,YMH)},
description:function(){return L().description},
expansive:X}),_.D(_.ID,{data:function(){return L().ctaButton}},{adButtonViewModel:function(J){var Y=J.data;
return _.D(_.dn,{data:function(){return(X==null?0:X())?Object.assign({},Y(),{style:"AD_BUTTON_STYLE_FILLED"}):Y()}})}}))},"Gb");var oiH=_.xa(function(A){var L=A.data;A=A.expansive;var O=_.h("web_ad_metadata_clickable")?_.Uk(function(){return L().interaction},void 0,function(){return _.h("web_ad_metadata_clickable")}):void 0,X={};
X=_.gl("ytwReelsAdMetadataViewModelHost",(X.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.h("web_ad_metadata_clickable"),X));return _.D("reels-ad-metadata-view-model",{class:X,el:_.sC(O)},_.D(UgV,{avatar:function(){return _.q(L().avatar,dJ3)},
headline:function(){return L().headline},
badge:function(){return _.q(L().adBadge,YMH)},
description:function(){return L().description},
expansive:A}))},"Hb");var AHl={iconPosition:"icon-with-label",size:"L"},L8V=_.xa(function(A){var L=A.data;var O=A.overlayDensity;A=_.av("reels-player-overlay-layout-view-model");var X=_.LT(O,0),x=function(){var t;return(t=L().reelsAdCardButtonedEntityKey)!=null?t:""},J=function(){return x()+"/ad_button"},Y=_.iS(Rtp,x),T=function(){var t,b;
return(b=(t=Y())==null?void 0:t.value)!=null?b:!1},V=_.zJ(rfr),E=function(){return Object.assign({},AHl,(V()||X()===2)&&{style:"overlay-dark"})};
O={};var n={};return _.D("reels-player-overlay-layout-view-model",{class:_.qn("ytwReelsPlayerOverlayLayoutViewModelHost",(O.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!L().extension},O.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},O)),
"overlay-density":function(){return String(X())},
el:A},_.D("div",{class:_.qn("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(n.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},n))},_.D("div",{"aria-hidden":function(){return T()},
class:_.qn("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return T()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.rl({"transition-duration":function(){return cfd(L())}})},_.D(_.ID,{data:function(){return L().adMetadata}},{reelsAdMetadataViewModel:function(t){return _.D(oiH,{data:t.data,
expansive:function(){return X()===1}})}}),_.D(_.e,{cond:function(){return L().extension},
then:function(t){return _.D("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.D(_.ID,{data:t},{adButtonViewModel:function(b){return _.D(_.dn,{data:b.data,animationEntityKey:J,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(b){return _.D($g6,{data:b.data,animationEntityKey:J,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return X()===1}})}}))}})),_.D("div",{"aria-hidden":function(){return!T()},
class:_.qn("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return T()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.rl({"transition-duration":function(){return cfd(L())}})},_.D(_.ID,{data:function(){return L().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(t){return _.D(viJ,{data:t.data,
onShow:function(){_.At(_.NV("booleanEntity",x(),{key:x(),value:!0}))},
expansive:function(){return X()===1}})}}))),_.D("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.D(_.ID,{data:function(){return L().actions}},{reelActionBarViewModel:function(t){return _.D(_.k8N,{data:t.data,
buttonShapeOverrideables:E})}}),_.D(_.ID,{data:function(){return L().menu}},{buttonViewModel:function(t){return _.D(_.gj,{data:t.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},E(),{type:"tonal"})}})}}),_.D(_.ID,{data:function(){return L().pivotButton}},{pivotButtonViewModel:function(t){return _.D(_.aqV,{data:t.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"Ib");_.Y4(L8V,"reels-player-overlay-layout-view-model",{props:{data:_.x5,overlayDensity:_.x5}});var w3=function(){var A=_.G.apply(this,arguments)||this;A.noBottomMargin=!1;A.overlayDensity=0;return A};
_.g(w3,_.G);_.P=w3.prototype;
_.P.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonGroupLayoutViewModel:{component:"video-display-compact-button-group-layout-view-model",
properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonedLayoutViewModel:{component:"video-display-compact-buttoned-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactLayoutViewModel:{component:"video-display-compact-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.h("enable_short_dr_for_desktop_launchable")?
{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}}:"ytd-video-display-full-buttoned-renderer",videoDisplayButtonGroupRenderer:{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},textImageNoButtonLayoutRenderer:"ytd-text-image-no-button-layout-renderer",reelsPlayerOverlayLayoutViewModel:{component:"reels-player-overlay-layout-view-model",
properties:{overlayDensity:"[[overlayDensity]]"}}}}}};
_.P.ready=function(){var A=this;h5_(function(){A.isAttached&&uI(A.JSC$16507_storedAdSlotMetadata,A.JSC$16507_storedAdLayoutMetadata,A.adSlotMetadata,A.adLayoutMetadata)&&qp(hZ(),A.JSC$16507_storedAdSlotMetadata,A.JSC$16507_storedAdLayoutMetadata)})};
_.P.attached=function(){uI(this.JSC$16507_storedAdSlotMetadata,this.JSC$16507_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&jzn(hZ(),this.JSC$16507_storedAdSlotMetadata,this.JSC$16507_storedAdLayoutMetadata)};
_.P.detached=function(){uI(this.JSC$16507_storedAdSlotMetadata,this.JSC$16507_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&qp(hZ(),this.JSC$16507_storedAdSlotMetadata,this.JSC$16507_storedAdLayoutMetadata)};
_.P.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.P.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$16507_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$16507_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$16507_storedAdLayoutMetadata!==void 0&&this.JSC$16507_storedAdSlotMetadata!==void 0&&qp(hZ(),this.JSC$16507_storedAdSlotMetadata,this.JSC$16507_storedAdLayoutMetadata),jzn(hZ(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$16507_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$16507_storedAdSlotMetadata=this.adSlotMetadata)};
_.v2.Object.defineProperties(w3.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.adLayoutMetadata}}});
w3.prototype.onAdMetadataChanged=w3.prototype.onAdMetadataChanged;w3.prototype.onTypographyBumpChanged=w3.prototype.onTypographyBumpChanged;_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],w3.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],w3.prototype,"rendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],w3.prototype,"ytComponentBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],w3.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],w3.prototype,"noBottomMargin",void 0);_.I([_.K(),_.Z("design:type",Object)],w3.prototype,"overlayDensity",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],w3.prototype,"typographyBump",void 0);_.I([_.r("data.adLayoutMetadata"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],w3.prototype,"adLayoutMetadata",null);_.I([_.K(),_.Z("design:type",Object)],w3.prototype,"adSlotMetadata",void 0);
_.I([_.qR("ytd-video-display-full-buttoned-and-button-group-renderer"),_.Z("design:type",HTMLElement)],w3.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);_.I([_.hT("typographyBump"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],w3.prototype,"onTypographyBumpChanged",null);_.I([_.hT("adLayoutMetadata","adSlotMetadata"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],w3.prototype,"onAdMetadataChanged",null);
_.I([_.Q({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],w3);
_.m(w3,"ytd-in-feed-ad-layout-renderer",function(){if(zXL!==void 0)return zXL;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return zXL=A},
{mode:_.e5("kevlar_poly_si_batch_j028")?1:2});var OVH;var XSL;_.Y4(_.E8,"ad-badge-view-model",{props:{data:_.x5,hasDot:_.x5,customCommandResolver:_.dl,adRenderingContextType:_.dl}});var pR=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return A};
_.g(pR,_.G);_.P=pR.prototype;_.P.computeHasLiveDescription=function(A){return!(A==null||!A.liveDescription)};
_.P.computeHasByline=function(A){return!(A==null||!A.byline)};
_.P.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{adBadgeViewModel:{component:"ad-badge-view-model",properties:{adRenderingContextType:"[[adRenderingContextType]]",hasDot:"[[hasByline]]"}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.P.onYtToggleButton=function(A){var L,O=(L=this.data)==null?void 0:L.videoReminderEntityKey;O&&this.ytdReduxBehavior.dispatch(_.NV("upcomingEventReminderStateEntity",O,{key:O,state:A.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.P.attached=function(){this.updateChannelBanner()};
_.P.dataChanged=function(){this.updateChannelBanner()};
_.P.videoReminderStateChanged=function(){var A;this.videoReminderState&&_.q((A=this.data)==null?void 0:A.cta,_.at)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.P.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var A=_.uB(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);A&&(A.startsWith("//")&&(A="https:"+A),this.hostElement.classList.add("channel-banner"),_.eq(this.hostElement,{"--ytvmh-channel-banner":"url("+A+")"}))}else _.h("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.P.onPlayerReady=function(){this.onIronResize()};
_.P.maybeFlushDebouncer=function(){_.h("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(A){var L;A=(L=A.getElementsByTagName("yt-attributed-string"))==null?void 0:L[0];l0p(A==null?void 0:A.polymerController)})};
_.P.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var A=_.YJ(this.hostElement).querySelector("#live-description"),L;A&&((L=this.data)==null?0:L.shortLiveDescription)&&A.clientWidth<A.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
pR.prototype.onIronResize=pR.prototype.onIronResize;pR.prototype.videoReminderStateChanged=pR.prototype.videoReminderStateChanged;pR.prototype.dataChanged=pR.prototype.dataChanged;pR.prototype.onYtToggleButton=pR.prototype.onYtToggleButton;_.I([_.N(_.y9),_.Z("design:type",Object)],pR.prototype,"ironResizableBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],pR.prototype,"ytActionHandlerBehavior",void 0);
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],pR.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],pR.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],pR.prototype,"ytdReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],pR.prototype,"data",void 0);_.I([_.K({selectorArgs:["data.videoReminderEntityKey"],selector:HgJ}),_.Z("design:type",Object)],pR.prototype,"videoReminderState",void 0);
_.I([_.K({reflectToAttribute:!0,value:_.h("web_modern_buttons")}),_.Z("design:type",Boolean)],pR.prototype,"rounded",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.Z("design:type",Boolean)],pR.prototype,"hasLiveDescription",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.Z("design:type",Boolean)],pR.prototype,"hasByline",void 0);
_.I([_.K({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.Z("design:type",String)],pR.prototype,"adRenderingContextType",void 0);_.I([_.K({reflectToAttribute:!0,value:_.h("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.Z("design:type",Boolean)],pR.prototype,"resizableAdBannerSafariFix",void 0);_.I([_.K({reflectToAttribute:!0,value:_.h("align_three_dot_menu_with_title_description")}),_.Z("design:type",Boolean)],pR.prototype,"menuFix",void 0);
_.I([_.gd("yt-formatted-string"),_.Z("design:type",Array)],pR.prototype,"formattedStrings",void 0);_.I([_.qR("#cta-button"),_.Z("design:type",HTMLElement)],pR.prototype,"ctaButton",void 0);_.I([_.by("yt-toggle-button"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],pR.prototype,"onYtToggleButton",null);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],pR.prototype,"dataChanged",null);
_.I([_.hT("videoReminderState"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],pR.prototype,"videoReminderStateChanged",null);_.I([_.by("iron-resize"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],pR.prototype,"onIronResize",null);_.I([_.Q({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],pR);
_.m(pR,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(XSL!==void 0)return XSL;var A=document.createElement("template");_.p(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <div id="ad-badge" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n    </div>\n  </div>\n</div>\n');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return XSL=A},{mode:1});var xeJ;var im=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};A.isLocked=!1;return A};
_.g(im,_.G);_.P=im.prototype;_.P.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.P.onExpandedChanged=function(){this.expanded&&_.YK(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.P.onMouseOver=function(){this.maybeExpand()};
_.P.onTap=function(){this.maybeExpand()};
_.P.onExpandableTileExpanding=function(A){A!==this&&(this.expanded=!1)};
_.P.onExpandableTileLockAndCollapse=function(A){this.isLocked=!0;A!==this&&(this.expanded=!1)};
_.P.onExpandableTileUnlock=function(){this.isLocked=!1};
im.prototype.onTap=im.prototype.onTap;im.prototype.onMouseOver=im.prototype.onMouseOver;im.prototype.onExpandedChanged=im.prototype.onExpandedChanged;_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],im.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],im.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],im.prototype,"data",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],im.prototype,"expanded",void 0);_.I([_.iy("expanded"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],im.prototype,"onExpandedChanged",null);_.I([_.by("mouseover"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],im.prototype,"onMouseOver",null);_.I([_.by("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],im.prototype,"onTap",null);
_.I([_.Q({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],im);
_.m(im,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(xeJ!==void 0)return xeJ;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return xeJ=A},{mode:1});var sCL;var Np=function(){var A=_.G.apply(this,arguments)||this;A.buttonOverrides={style:"overlay"};A.useYtdPlayer=_.h("use_ytd_player_for_desktop_masthead");A.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};A.playbackFinished=!1;A.JSC$16520_playerManager=null;A.JSC$16520_mastheadCounter=new seN;return A};
_.g(Np,_.G);_.P=Np.prototype;_.P.configureRendererStamper=function(){return{"data.muteButton":{id:"mute-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.replayButton":{id:"replay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.thumbnailOverlays":{id:"thumbnail-overlays",mapping:{thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer"}}}};
_.P.created=function(){this.JSC$16520_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$16520_playerManager=new Il)};
_.P.ready=function(){var A=this;this.JSC$16520_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var L=_.YJ(this.hostElement).querySelector("#player");this.useYtdPlayer?L.style.display="none":(this.ytdPlayer.style.display="none",Jp3(this.JSC$16520_playerManager,L,function(){A.onPlaybackEnded()}),_.YJ(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var O;
((O=A.data)==null?0:O.navigationEndpoint)&&_.P4(A.hostElement,"yt-navigate",{endpoint:A.data.navigationEndpoint})}))};
_.P.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$16520_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.P.attached=function(){var A=this;_.MR(function(){A.maybePlayVideo()})};
_.P.maybePlayVideo=function(){var A=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$16520_playerManager.playVideo(),this.getPlayerPromise().then(function(){A.JSC$16520_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.P.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$16520_playerManager.stopVideo()};
_.P.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var A,L={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((A=this.data.playbackStartMs)!=null?A:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(L);this.setupYtdPlayer()}else dW7(this.JSC$16520_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(PY3(this.JSC$16520_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.P.getPlayerPromise=function(){return this.JSC$16520_playerManager.getPlayerPromise()};
_.P.onYtToggleButton=function(A){this.useYtdPlayer?this.toggleMute(A.detail.toggled):A.detail.toggled?this.JSC$16520_playerManager.mute():this.JSC$16520_playerManager.unMute()};
_.P.onYtNavigate=function(A){var L=qdd(A.detail.endpoint),O=gZu(this.data.clickthroughReportingData);L&&O&&(A.detail.endpoint.watchEndpoint?A.detail.tempData=O:_.oF(L,O,30))};
_.P.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.P.onExpandedChanged=function(){this.expanded?(_.YK(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.P.onMouseOver=function(){this.maybeExpand()};
_.P.onTap=function(){this.maybeExpand()};
_.P.onExpandableTileExpanding=function(A){A!==this&&(this.stopVideo(),this.expanded=!1)};
_.P.onExpandableTileLockAndCollapse=function(A){A!==this&&(this.isLocked=!0,this.expanded=!1)};
_.P.onExpandableTileUnlock=function(){this.isLocked=!1};
_.P.lockAndCollapseExpandableTiles=function(){_.dQ(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.P.unlockExpandableTiles=function(){_.dQ(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.P.setupYtdPlayer=function(){var A=this,L;return _.u(function(O){if(O.nextAddress==1)return O.yield(A.ytdPlayer.getPlayerPromise(),2);L=O.yieldResult;L.addEventListener("onStateChange",function(X){A.onPlayerStateChange(X)});
L.addEventListener("onCueRangeExit",function(X){A.onCueRangeExit(X)});
_.qo(O)})};
_.P.onPlayerStateChange=function(A){if(A===1&&(A=this.ytdPlayer.getPlayer())){var L=A.getCurrentTime(),O,X,x=L+((X=(O=this.data)==null?void 0:O.playbackDurationMs)!=null?X:0)/1E3;A.addCueRange("playback",L,x);this.JSC$16520_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.P.onCueRangeExit=function(A){A==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.P.toggleMute=function(A){var L=this,O;return _.u(function(X){if(X.nextAddress==1)return X.yield(L.ytdPlayer.getPlayerPromise(),2);O=X.yieldResult;A?O.mute():O.unMute();_.qo(X)})};
Np.prototype.onTap=Np.prototype.onTap;Np.prototype.onMouseOver=Np.prototype.onMouseOver;Np.prototype.onExpandedChanged=Np.prototype.onExpandedChanged;Np.prototype.onYtNavigate=Np.prototype.onYtNavigate;Np.prototype.onYtToggleButton=Np.prototype.onYtToggleButton;Np.prototype.dataChanged=Np.prototype.dataChanged;_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Np.prototype,"ytRendererstamperBehavior",void 0);
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],Np.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Np.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Np.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Np.prototype,"expanded",void 0);_.I([_.K(),_.Z("design:type",Object)],Np.prototype,"buttonOverrides",void 0);
_.I([_.K(),_.Z("design:type",Object)],Np.prototype,"useYtdPlayer",void 0);_.I([_.qR("#ytd-player"),_.Z("design:type",Object)],Np.prototype,"ytdPlayer",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Np.prototype,"dataChanged",null);_.I([_.by("yt-toggle-button"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Np.prototype,"onYtToggleButton",null);
_.I([_.by("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Np.prototype,"onYtNavigate",null);_.I([_.iy("expanded"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Np.prototype,"onExpandedChanged",null);_.I([_.by("mouseover"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Np.prototype,"onMouseOver",null);
_.I([_.by("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Np.prototype,"onTap",null);_.I([_.Q({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],Np);
_.m(Np,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(sCL!==void 0)return sCL;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return sCL=A},{mode:1});var JHJ;var r3=function(){return _.G.apply(this,arguments)||this};
_.g(r3,_.G);r3.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
r3.prototype.onShow=function(){var A=_.YJ(this.hostElement).querySelector("#live-description"),L;A&&((L=this.data)==null?0:L.shortLiveDescription)&&A.clientWidth<A.scrollWidth&&this.hostElement.classList.add("short-live-description")};
r3.prototype.onYtToggleButton=function(A){var L,O=(L=this.data)==null?void 0:L.videoReminderEntityKey;O&&this.ytdReduxBehavior.dispatch(_.NV("upcomingEventReminderStateEntity",O,{key:O,state:A.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
r3.prototype.videoReminderStateChanged=function(){var A;this.videoReminderState&&_.q((A=this.data)==null?void 0:A.cta,_.at)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
r3.prototype.videoReminderStateChanged=r3.prototype.videoReminderStateChanged;r3.prototype.onYtToggleButton=r3.prototype.onYtToggleButton;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],r3.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],r3.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],r3.prototype,"ytdReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],r3.prototype,"data",void 0);
_.I([_.K({selectorArgs:["data.videoReminderEntityKey"],selector:HgJ}),_.Z("design:type",Object)],r3.prototype,"videoReminderState",void 0);_.I([_.by("yt-toggle-button"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],r3.prototype,"onYtToggleButton",null);_.I([_.hT("videoReminderState"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],r3.prototype,"videoReminderStateChanged",null);
_.I([_.Q({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],r3);
_.m(r3,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(JHJ!==void 0)return JHJ;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return JHJ=A},{mode:_.e5("kevlar_poly_si_batch_j065")?1:2});var Pu6;var KR=function(){var A=_.G.apply(this,arguments)||this;A.useYtdPlayer=_.h("use_ytd_player_for_desktop_masthead");A.buttonOverrides={style:"overlay"};A.JSC$16528_playerManager=null;A.JSC$16528_mastheadCounter=new seN;A.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return A};
_.g(KR,_.G);_.P=KR.prototype;_.P.configureRendererStamper=function(){return{"data.muteButton":{id:"mute-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.replayButton":{id:"replay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.thumbnailOverlays":{id:"thumbnail-overlays",mapping:{thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer"}}}};
_.P.created=function(){this.JSC$16528_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$16528_playerManager=new Il)};
_.P.ready=function(){var A=this;this.JSC$16528_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var L;(L=this.embeddedPlayer)==null||L.remove()}else{var O;(O=this.ytdPlayer)==null||O.remove();Jp3(this.JSC$16528_playerManager,this.embeddedPlayer,function(){A.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){A.data&&A.data.navigationEndpoint&&_.P4(A.hostElement,"yt-navigate",{endpoint:A.data.navigationEndpoint})})}};
_.P.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$16528_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.P.dataChanged=function(){var A=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var L=!this.data.disableAutoPlayback,O,X={autoplay:L,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((O=this.data.playbackStartMs)!=null?O:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(L?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(X);this.setupYtdPlayer()}else dW7(this.JSC$16528_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(PY3(this.JSC$16528_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$16528_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.dQ(A.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");A.JSC$16528_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.P.getPlayerPromise=function(){return this.JSC$16528_playerManager.getPlayerPromise()};
_.P.onYtToggleButton=function(A){this.useYtdPlayer?this.toggleMute(A.detail.toggled):A.detail.toggled?this.JSC$16528_playerManager.mute():this.JSC$16528_playerManager.unMute()};
_.P.onYtNavigate=function(A){var L=qdd(A.detail.endpoint),O=gZu(this.data.clickthroughReportingData);L&&O&&(A.detail.endpoint.watchEndpoint?A.detail.tempData=O:_.oF(L,O,30))};
_.P.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$16528_playerManager.stopVideo()};
_.P.setupYtdPlayer=function(){var A=this,L;return _.u(function(O){if(O.nextAddress==1)return O.yield(A.ytdPlayer.getPlayerPromise(),2);L=O.yieldResult;L.addEventListener("onStateChange",function(X){A.onPlayerStateChange(X)});
L.addEventListener("onCueRangeExit",function(X){A.onCueRangeExit(X)});
_.qo(O)})};
_.P.onPlayerStateChange=function(A){if(A===1&&(A=this.ytdPlayer.getPlayer())){var L=A.getCurrentTime(),O,X,x=L+((X=(O=this.data)==null?void 0:O.playbackDurationMs)!=null?X:0)/1E3;A.addCueRange("playback",L,x);_.dQ(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$16528_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.P.onCueRangeExit=function(A){A==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.P.toggleMute=function(A){var L=this,O;return _.u(function(X){if(X.nextAddress==1)return X.yield(L.ytdPlayer.getPlayerPromise(),2);O=X.yieldResult;A?O.mute():O.unMute();_.qo(X)})};
_.v2.Object.defineProperties(KR.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var A,L;if(!((A=this.data)==null?0:(L=A.accessibilityData)==null?0:L.label))return"Ad primary link";var O,X;return _.b3("AD_TITLE",{title:(O=this.data)==null?void 0:(X=O.accessibilityData)==null?void 0:X.label})}}});
KR.prototype.onYtMastheadHidden=KR.prototype.onYtMastheadHidden;KR.prototype.onYtNavigate=KR.prototype.onYtNavigate;KR.prototype.onYtToggleButton=KR.prototype.onYtToggleButton;KR.prototype.dataChanged=KR.prototype.dataChanged;_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],KR.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],KR.prototype,"ytRendererBehavior",void 0);
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],KR.prototype,"ytActionHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],KR.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],KR.prototype,"useYtdPlayer",void 0);_.I([_.qR("ytd-toggle-button-renderer"),_.Z("design:type",Object)],KR.prototype,"muteButton",void 0);_.I([_.K(),_.Z("design:type",Object)],KR.prototype,"buttonOverrides",void 0);
_.I([_.r("data.accessibilityData.label"),_.Z("design:type",String),_.Z("design:paramtypes",[])],KR.prototype,"titleAriaLabel",null);_.I([_.qR("#replay-button"),_.Z("design:type",Object)],KR.prototype,"replayButton",void 0);_.I([_.qR("#player-container"),_.Z("design:type",Object)],KR.prototype,"playerContainer",void 0);_.I([_.qR("#player"),_.Z("design:type",Object)],KR.prototype,"embeddedPlayer",void 0);_.I([_.qR("#ytd-player"),_.Z("design:type",Object)],KR.prototype,"ytdPlayer",void 0);
_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],KR.prototype,"dataChanged",null);_.I([_.by("yt-toggle-button"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],KR.prototype,"onYtToggleButton",null);_.I([_.by("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],KR.prototype,"onYtNavigate",null);
_.I([_.by("yt-masthead-hidden"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],KR.prototype,"onYtMastheadHidden",null);_.I([_.Q({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],KR);
_.m(KR,"ytd-video-masthead-ad-primary-video-renderer",function(){if(Pu6!==void 0)return Pu6;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Pu6=A},{mode:2});var deH;var Gx=function(){var A=_.G.apply(this,arguments)||this;A.collapsed=!1;A.impressionResolver=_.AI();A.JSC$16532_activeViewMeasurementDataResolver=_.AI();A.actionMap={"yt-mute-ad-action":"handleMuteAd"};return A};
_.g(Gx,_.G);_.P=Gx.prototype;_.P.configureRendererStamper=function(){return{"data.expandableTiles":{id:"expandable-tile-container",mapping:{videoMastheadAdExpandableThumbnailTileRenderer:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",videoMastheadAdExpandableVideoTileRenderer:"ytd-video-masthead-ad-expandable-video-tile-renderer"}},"data.showAdRenderer":{id:"show-ad",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.ready=function(){var A=this;_.YJ(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){A.expandAd()});
this.hostElement.addEventListener("yt-action",function(L){if(L.detail.actionName==="yt-service-request"){var O=L.detail.args[1];O.videoMastheadAdMuteCommand&&(A.collapseAd(O.videoMastheadAdMuteCommand.encryptedMastheadId),L.stopPropagation())}})};
_.P.attached=function(){var A=this;_.MR(function(){A.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(L){if(!A.collapsed){L=_.d(L);for(var O=L.next();!O.done;O=L.next())O=O.value,W1(O.baseUrl,O.attributionSrcMode);A.data.impressionCommand=void 0}});
this.JSC$16532_activeViewMeasurementDataResolver.promise.then(function(L){A.ytdActiveViewBehavior.enableActiveViewMeasurement(L,15)});
_.h("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&A.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.P.dataChanged=function(){var A;((A=this.data.impressionCommand)==null?0:A.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var L;((L=this.data)==null?0:L.activeView)&&this.JSC$16532_activeViewMeasurementDataResolver.resolve(this.data.activeView);(A=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(A.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.P.computeWidescreen=function(A){var L;return!!(A&&((L=_.q(A,XbL))==null?0:L.isWidescreen))};
_.P.computeExpandable=function(A){return!!(A&&A.length>0)};
_.P.onIronResize=function(){if(this.expandable){var A=_.YJ(this.hostElement).querySelector("#expandable-tile-container :first-child");A&&!A.expanded&&(A.expanded=!0)}};
_.P.handleMuteAd=function(){this.collapseAd(null)};
_.P.restoreCollapsedState=function(A){this.collapsed=_.qG().get("HIDDEN_MASTHEAD_ID")===A};
_.P.collapseAd=function(A){if(A){var L=_.qG();L.set("HIDDEN_MASTHEAD_ID",A);L.save()}(A=_.YJ(this.hostElement).querySelector("#video"))&&_.P4(A,"yt-masthead-hidden");this.collapsed=!0};
_.P.expandAd=function(){var A=_.qG();A.set("HIDDEN_MASTHEAD_ID",!1);A.save();location.reload()};
_.P.detached=function(){_.h("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
Gx.prototype.onIronResize=Gx.prototype.onIronResize;Gx.prototype.dataChanged=Gx.prototype.dataChanged;_.I([_.N(_.y9),_.Z("design:type",Object)],Gx.prototype,"ironResizableBehavior",void 0);_.I([_.N(WL),_.Z("design:type",Object)],Gx.prototype,"ytdActiveViewBehavior",void 0);_.I([_.N(_.$r),_.Z("design:type",Object)],Gx.prototype,"ytdGridStateAwareBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],Gx.prototype,"ytActionHandlerBehavior",void 0);
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Gx.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Gx.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Gx.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.Z("design:type",Boolean)],Gx.prototype,"widescreen",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.Z("design:type",Boolean)],Gx.prototype,"expandable",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Gx.prototype,"collapsed",void 0);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Gx.prototype,"dataChanged",null);
_.I([_.by("iron-resize"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Gx.prototype,"onIronResize",null);_.I([_.Q({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],Gx);
_.m(Gx,"ytd-video-masthead-ad-v3-renderer",function(){if(deH!==void 0)return deH;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return deH=A},{mode:2});var lm=function(){return _.G.apply(this,arguments)||this};
_.g(lm,_.G);_.P=lm.prototype;_.P.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.P.ready=function(){var A=this;h5_(function(){A.isAttached&&uI(A.JSC$16537_storedAdSlotMetadata,A.JSC$16537_storedAdLayoutMetadata,A.adSlotMetadata,A.adLayoutMetadata)&&qp(hZ(),A.JSC$16537_storedAdSlotMetadata,A.JSC$16537_storedAdLayoutMetadata)})};
_.P.attached=function(){uI(this.JSC$16537_storedAdSlotMetadata,this.JSC$16537_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&jzn(hZ(),this.JSC$16537_storedAdSlotMetadata,this.JSC$16537_storedAdLayoutMetadata)};
_.P.detached=function(){uI(this.JSC$16537_storedAdSlotMetadata,this.JSC$16537_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&qp(hZ(),this.JSC$16537_storedAdSlotMetadata,this.JSC$16537_storedAdLayoutMetadata)};
_.P.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$16537_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$16537_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$16537_storedAdLayoutMetadata!==void 0&&this.JSC$16537_storedAdSlotMetadata!==void 0&&qp(hZ(),this.JSC$16537_storedAdSlotMetadata,this.JSC$16537_storedAdLayoutMetadata),jzn(hZ(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$16537_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$16537_storedAdSlotMetadata=this.adSlotMetadata)};
_.v2.Object.defineProperties(lm.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.adLayoutMetadata}}});
lm.prototype.onAdMetadataChanged=lm.prototype.onAdMetadataChanged;_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],lm.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],lm.prototype,"ytComponentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],lm.prototype,"data",void 0);_.I([_.r("data.adLayoutMetadata"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],lm.prototype,"adLayoutMetadata",null);
_.I([_.K(),_.Z("design:type",Object)],lm.prototype,"adSlotMetadata",void 0);_.I([_.hT("adLayoutMetadata","adSlotMetadata"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],lm.prototype,"onAdMetadataChanged",null);_.I([_.Q({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],lm);
_.m(lm,"ytd-page-top-ad-layout-renderer",function(){if(OVH!==void 0)return OVH;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return OVH=
A},{mode:_.e5("kevlar_poly_si_batch_j070")?1:2});var YhN;var ct=function(){var A=_.G.apply(this,arguments)||this;A.noBottomMargin=!1;A.overlayDensity=0;A.typographyBump=!1;return A};
_.g(ct,_.G);_.P=ct.prototype;
_.P.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},pageTopAdLayoutRenderer:{component:"ytd-page-top-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]"}},sequenceItemInPlayerAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",
noBottomMargin:"[[noBottomMargin]]",overlayDensity:"[[overlayDensity]]"}}}}}};
_.P.ready=function(){var A=this;h5_(function(){A.isAttached&&A.adSlotMetadata&&ZN3(hZ(),A.adSlotMetadata)})};
_.P.attached=function(){if(this.adSlotMetadata){var A;if(this.adSlotMetadata===((A=this.data)==null?void 0:A.adSlotMetadata))yX7(hZ(),this.adSlotMetadata);else{var L;_.Rv(Error("Kh`"+this.adSlotMetadata+"`"+((L=this.data)==null?void 0:L.adSlotMetadata)))}}};
_.P.detached=function(){this.adSlotMetadata&&ZN3(hZ(),this.adSlotMetadata)};
_.P.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.P.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&ZN3(hZ(),this.adSlotMetadata),yX7(hZ(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.v2.Object.defineProperties(ct.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var A,L,O=_.q((A=this.data)==null?void 0:(L=A.fulfillmentContent)==null?void 0:L.fulfilledLayout,_.s$V),X;return(A=(X=_.q(O==null?void 0:O.renderingContent,xJj))==null?void 0:X.layout)?A.toLowerCase().replace(/_/g,"-"):""}}});
ct.prototype.onAdSlotMetadataChanged=ct.prototype.onAdSlotMetadataChanged;ct.prototype.onTypographyBumpChanged=ct.prototype.onTypographyBumpChanged;_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],ct.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],ct.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],ct.prototype,"rendererBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],ct.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],ct.prototype,"noBottomMargin",void 0);_.I([_.K(),_.Z("design:type",Object)],ct.prototype,"overlayDensity",void 0);_.I([_.K(),_.Z("design:type",Object)],ct.prototype,"typographyBump",void 0);_.I([_.qR("ytd-in-feed-ad-layout-renderer"),_.Z("design:type",HTMLElement)],ct.prototype,"inFeedAdLayoutRenderer",void 0);
_.I([_.K({reflectToAttribute:!0}),_.r("data"),_.Z("design:type",String),_.Z("design:paramtypes",[])],ct.prototype,"layout",null);_.I([_.hT("typographyBump"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ct.prototype,"onTypographyBumpChanged",null);_.I([_.hT("data.adSlotMetadata"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ct.prototype,"onAdSlotMetadataChanged",null);
_.I([_.Q({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],ct);
_.m(ct,"ytd-ad-slot-renderer",function(){if(YhN!==void 0)return YhN;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return YhN=A},{mode:_.e5("kevlar_poly_si_batch_j077")?
1:2});var uru;var fR=function(){return _.G.apply(this,arguments)||this};
_.g(fR,_.G);_.P=fR.prototype;_.P.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"},params:{noDotAdBadge:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.P.maybeComputeHref=function(A){return _.h("enable_handle_watch_endpoint_click_for_vdc")?null:this.ytComponentBehavior.computeOptionalHref_(A)};
_.P.onTap=function(){_.h("enable_handle_watch_endpoint_click_for_vdc")||this.data&&this.data.navigationEndpoint&&this.data.adPlaybackContextParams&&d_P(this.data.navigationEndpoint,this.data.adPlaybackContextParams)};
_.P.onThumbnailContainerClick=function(A){this.onClick(A)};
_.P.onClick=function(A){if(_.h("enable_handle_watch_endpoint_click_for_vdc")){var L,O=(L=this.data)==null?void 0:L.navigationEndpoint;O&&_.q(O,_.$O)&&(this.ytSparklesClickLocationBehavior.handleClick(O,A,!1),A.stopPropagation())}};
_.P.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var A=_.d(this.data.impressionUrls),L=A.next();!L.done;L=A.next())L=L.value,t5y(L,hke(L));this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);_.h("enable_handle_watch_endpoint_click_for_vdc")&&(this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",fR.JSC$16545_DEFAULT_CLICK_LOCATION_BEHAVIOR,fR.JSC$16545_CLICK_LOCATION_ID_MAP),this.thumbnail&&(A=this.thumbnail.getElementsByTagName("a"),
A.length>0&&(A=A.namedItem("thumbnail"))&&A.removeAttribute("href")))}};
_.P.attached=function(){var A=this;_.h("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&A.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.P.detached=function(){_.h("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.v2.Object.defineProperties(fR.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.h("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.h("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
fR.prototype.dataChanged=fR.prototype.dataChanged;fR.prototype.onTap=fR.prototype.onTap;fR.JSC$16545_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
fR.JSC$16545_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"}];_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],fR.prototype,"ytRendererstamperBehavior",void 0);
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],fR.prototype,"ytRendererBehavior",void 0);_.I([_.N(WL),_.Z("design:type",Object)],fR.prototype,"ytdActiveViewBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],fR.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],fR.prototype,"ytdReduxBehavior",void 0);_.I([_.N(_.uR.YtSparklesClickLocationBehavior),_.Z("design:type",Object)],fR.prototype,"ytSparklesClickLocationBehavior",void 0);
_.I([_.K({selector:_.Hx}),_.Z("design:type",Object)],fR.prototype,"isGridViewEnabled",void 0);_.I([_.r("isGridViewEnabled"),_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],fR.prototype,"watchFeedBigThumbs",null);_.I([_.r("isGridViewEnabled"),_.K({reflectToAttribute:!0}),_.Z("design:type",String),_.Z("design:paramtypes",[])],fR.prototype,"thumbnailWidth",null);_.I([_.K(),_.Z("design:type",Object)],fR.prototype,"data",void 0);
_.I([_.qR("ytd-thumbnail"),_.Z("design:type",HTMLElement)],fR.prototype,"thumbnail",void 0);_.I([_.by("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],fR.prototype,"onTap",null);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],fR.prototype,"dataChanged",null);_.I([_.Q({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],fR);
_.m(fR,"ytd-compact-promoted-video-renderer",function(){if(uru!==void 0)return uru;var A=document.createElement("template");_.p(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-container" class="style-scope ytd-compact-promoted-video-renderer">\n  <ytd-thumbnail id="thumbnail-container" data="[[data]]" width="[[thumbnailWidth]]" on-click="onThumbnailContainerClick" class="style-scope ytd-compact-promoted-video-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-promoted-video-renderer">\n    <a id="endpoint" class="yt-simple-endpoint style-scope ytd-compact-promoted-video-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" on-click="onClick" data="[[data.navigationEndpoint]]">\n      <h3 class="style-scope ytd-compact-promoted-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-promoted-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-promoted-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h3>\n      <div class="secondary-metadata style-scope ytd-compact-promoted-video-renderer">\n        <ytd-video-meta-block class="compact style-scope ytd-compact-promoted-video-renderer" data="[[data]]" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n        </ytd-video-meta-block>\n        <div id="ad-badge-container" class="style-scope ytd-compact-promoted-video-renderer">\n          <div id="ad-badge" class="style-scope ytd-compact-promoted-video-renderer"></div>\n        </div>\n      </div>\n    </a>\n    <div id="menu" class="style-scope ytd-compact-promoted-video-renderer"></div>\n  </div>\n</div>');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return uru=A},{mode:1});var TEV;_.y3("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var I0=function(){return _.G.apply(this,arguments)||this};
_.g(I0,_.G);I0.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],I0.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],I0.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],I0.prototype,"data",void 0);_.I([_.Q({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],I0);
_.m(I0,"ytd-search-pyv-renderer",function(){if(TEV!==void 0)return TEV;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return TEV=A},{mode:1});var VNn;_.y3("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var yw=function(){var A=_.G.apply(this,arguments)||this;A.roundedContainer=!0;A.JSC$16553_handleOpenPostCommentDialogActionAfterStamp=!1;A.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return A};
_.g(yw,_.G);_.P=yw.prototype;
_.P.configureRendererStamper=function(){return{"data.post":{id:"post",mapping:{backstagePostRenderer:{component:"ytd-backstage-post-renderer",properties:{shouldHideAuthor:"[[isInEngagementPanel]]",shouldShowVideoTime:"[[isInEngagementPanel]]",shouldShowMenuInCompactView:"[[isInEngagementPanel]]",isInEngagementPanel:"[[isInEngagementPanel]]",usesFullLockup:"[[usesFullLockup]]",hideBorder:"[[hideBorder]]"}},postRenderer:"ytd-post-renderer",sharedPostRenderer:{component:"ytd-shared-post-renderer",properties:{usesFullLockup:"[[usesFullLockup]]"}}}},
"data.commentDialog":{id:"comment-dialog",mapping:{commentReplyDialogRenderer:"ytd-comment-reply-dialog-renderer"},events:!0}}};
_.P.onStampFinished=function(){this.JSC$16553_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.P.handleSignalActionOpenPostCommentDialogAction=function(){var A=_.YJ(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");A?A.openDialog():this.JSC$16553_handleOpenPostCommentDialogActionAfterStamp=!0};
_.P.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.P.computeHideBorder=function(){return this.isInEngagementPanel};
_.P.computeIsCompact=function(){return this.isInEngagementPanel};
_.P.computeUsesCompactLockup=function(A){return A==="BACKSTAGE_SURFACE_TYPE_HOME"||A==="BACKSTAGE_SURFACE_TYPE_SEARCH"||A==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||A==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||A==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||A==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.P.computeUsesFullLockup=function(){var A,L=(A=this.data)==null?void 0:A.post,O;A=(O=_.q(L,EFj))==null?void 0:O.surface;var X;O=(X=_.q(L,bcl))==null?void 0:X.originalPost;var x;if(X=A||((x=_.q(O,EFj))==null?void 0:x.surface))return!this.computeUsesCompactLockup(X)&&this.useUpdatedRepostUi;var J;return((J=_.q(L,bcl))==null?void 0:J.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.v2.Object.defineProperties(yw.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var A,L;return((L=_.q((A=this.data)==null?void 0:A.post,EFj))==null?void 0:L.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.useUpdatedRepostUi}}});
yw.prototype.onYtCommentModerationPanelEmpty=yw.prototype.onYtCommentModerationPanelEmpty;yw.prototype.onStampFinished=yw.prototype.onStampFinished;_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],yw.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],yw.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],yw.prototype,"ytRendererstamperBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],yw.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],yw.prototype,"roundedContainer",void 0);_.I([_.K({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],yw.prototype,"hideBorder",void 0);_.I([_.K({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],yw.prototype,"isCompact",void 0);
_.I([_.K({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],yw.prototype,"usesFullLockup",void 0);_.I([_.by("yt-rendererstamper-finished"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],yw.prototype,"onStampFinished",null);
_.I([_.by("ytd-comment-moderation-panel-empty"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],yw.prototype,"onYtCommentModerationPanelEmpty",null);_.I([_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],yw.prototype,"isInEngagementPanel",null);_.I([_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],yw.prototype,"useUpdatedRepostUi",null);
_.I([_.Q({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],yw);
_.m(yw,"ytd-backstage-post-thread-renderer",function(){if(VNn!==void 0)return VNn;var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return VNn=A},{mode:1});var Dej;var ZC=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return A};
_.g(ZC,_.G);ZC.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
ZC.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var A=this.data.thumbnail.thumbnails;this.isDarkTheme&&(A=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(A=_.uB(A,24,void 0,"height"))?A:void 0}};
ZC.prototype.onDarkModeToggledAction=function(A){this.isDarkTheme=A};
ZC.prototype.computeHasText=function(){var A;return!((A=this.data)==null||!A.text)};
_.v2.Object.defineProperties(ZC.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.RP(this.bannerImageUrl))+'");'}}});
ZC.prototype.computeHasText=ZC.prototype.computeHasText;ZC.prototype.computeBannerImageUrl=ZC.prototype.computeBannerImageUrl;_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],ZC.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],ZC.prototype,"actionHandlerBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],ZC.prototype,"ytRendererBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],ZC.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Boolean)],ZC.prototype,"isDarkTheme",void 0);_.I([_.K(),_.Z("design:type",String)],ZC.prototype,"bannerImageUrl",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.Z("design:type",Boolean)],ZC.prototype,"hasText",void 0);_.I([_.hT("data","isDarkTheme"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ZC.prototype,"computeBannerImageUrl",null);
_.I([_.hT("data.text"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ZC.prototype,"computeHasText",null);_.I([_.r("bannerImageUrl"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ZC.prototype,"bannerStyle",null);_.I([_.Q({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],ZC);
_.m(ZC,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(Dej!==void 0)return Dej;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return Dej=A},{mode:1});var eI6;var jG=function(){return _.G.apply(this,arguments)||this};
_.g(jG,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],jG.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],jG.prototype,"data",void 0);_.I([_.Q({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],jG);
_.m(jG,"ytd-backstage-zero-state-renderer",function(){if(eI6!==void 0)return eI6;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return eI6=A},{mode:1});var E76;var Wt=function(){return _.G.apply(this,arguments)||this};
_.g(Wt,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Wt.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Wt.prototype,"data",void 0);_.I([_.K({computed:"computeIcon_(data.icon)"}),_.Z("design:type",String)],Wt.prototype,"icon",void 0);_.I([_.Q({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],Wt);
_.m(Wt,"ytd-post-filter-zero-state-renderer",function(){if(E76!==void 0)return E76;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return E76=A},{mode:1});var n7l;var tNu={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},Ht=function(){return _.G.apply(this,arguments)||this};
_.g(Ht,_.G);Ht.prototype.configureRendererStamper=function(){return tNu};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Ht.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Ht.prototype,"rendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Ht.prototype,"data",void 0);_.I([_.K({computed:"computeIcon_(data.icon)"}),_.Z("design:type",String)],Ht.prototype,"icon",void 0);_.I([_.Q({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],Ht);
_.m(Ht,"ytd-post-scheduling-zero-state-renderer",function(){if(n7l!==void 0)return n7l;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return n7l=A},{mode:1});var bVN;var zx=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return A};
_.g(zx,_.G);zx.prototype.onTabsActivate=function(A){this.data&&this.data.tabs&&_.P4(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[A.detail.selected].navigationEndpoint})};
zx.prototype.shouldShowTotalCount=function(A){return A&&A.totalCount!==void 0};
zx.prototype.handleUpdatePostsTotalCountAction=function(A){var L=this.get(["data.tabs",1,"totalCount"]),O=this.get("updatePostsTotalCountAction.updateType",A);A=this.get("updatePostsTotalCountAction.number",A);L!==void 0&&O!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&A&&(O==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(L)+A):O==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(L)-A))};
_.v2.Object.defineProperties(zx.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var A=0,L=this.data.tabs.length;A<L;A++)if(this.data.tabs[A].selected)return A;return 0}}});
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],zx.prototype,"actionHandlerBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],zx.prototype,"rendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],zx.prototype,"data",void 0);_.I([_.r("data.tabs"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],zx.prototype,"selected",null);_.I([_.Q({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],zx);
_.m(zx,"ytd-post-stream-filter-renderer",function(){if(bVN!==void 0)return bVN;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return bVN=A},{mode:1});var hIH;var Bt=function(){return _.G.apply(this,arguments)||this};
_.g(Bt,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Bt.prototype,"kevlarBehaviors",void 0);_.I([_.K(),_.Z("design:type",Object)],Bt.prototype,"data",void 0);_.I([_.Q({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],Bt);
_.m(Bt,"ytd-channel-age-gate-renderer",function(){if(hIH!==void 0)return hIH;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return hIH=A},{mode:1});var Sh3;_.y3("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var Mp=function(){var A=_.G.apply(this,arguments)||this;A.data=null;return A};
_.g(Mp,_.G);Mp.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.v2.Object.defineProperties(Mp.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var A,L,O;return((A=this.data)==null?0:(L=A.title)==null?0:(O=L.runs)==null?0:O.length)?147:160}}});
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Mp.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Mp.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.r("data"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],Mp.prototype,"imageSizePx",null);_.I([_.Q({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],Mp);
_.m(Mp,"ytd-channel-owner-empty-state-renderer",function(){if(Sh3!==void 0)return Sh3;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return Sh3=A},{mode:1});var qhl;var g7H;var $m=function(){var A=_.G.apply(this,arguments)||this;A.boundSubmitSearch=function(){A.submitSearch()};
A.boundClearSearch=function(){A.clearSearch()};
return A};
_.g($m,_.G);_.P=$m.prototype;_.P.configureRendererStamper=function(){return{"data.searchButton":{id:"search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundSubmitSearch]]"}}}},"data.clearButton":{id:"clear-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundClearSearch]]"}}}}}};
_.P.toggleClearButton=function(){this.hideClearButton=BYy||!this.input.value};
_.P.submitOnEnterKeyUp=function(A){A.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.P.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.P.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.P.submit=function(){_.P4(this.hostElement,"search-query-changed",this.input.value)};
$m.prototype.toggleClearButton=$m.prototype.toggleClearButton;_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],$m.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],$m.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],$m.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],$m.prototype,"data",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],$m.prototype,"hideClearButton",void 0);_.I([_.K(),_.Z("design:type",Object)],$m.prototype,"boundSubmitSearch",void 0);_.I([_.K(),_.Z("design:type",Object)],$m.prototype,"boundClearSearch",void 0);_.I([_.qR("#input"),_.Z("design:type",Object)],$m.prototype,"input",void 0);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$m.prototype,"toggleClearButton",null);
_.I([_.Q({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],$m);
_.m($m,"ytd-channel-switcher-search-box-renderer",function(){if(g7H!==void 0)return g7H;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return g7H=A},{mode:1});var wS3;var a0=function(){var A=_.G.apply(this,arguments)||this;A.boundSubmit=function(){A.submit()};
return A};
_.g(a0,_.G);_.P=a0.prototype;_.P.configureRendererStamper=function(){return{"data.searchButton":{id:"search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundSubmit]]"}}}},"data.clearButton":{id:"clear-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.P.ready=function(){var A=this;this.form.addEventListener("submit",function(L){return A.onSubmit(L)})};
_.P.onSubmit=function(A){A.preventDefault();return!1};
_.P.toggleClearButton=function(){this.hideClearButton=BYy||!this.input.value};
_.P.submitOnEnterKeyUp=function(A){A.keyCode===13&&this.submit()};
_.P.submit=function(){var A=this.data.endpoint,L=(0,_.lW.unsafeClone)(A);_.q(L,_.gM)?_.q(L,_.gM).query=this.input.value:_.q(L,_.wM)&&(_.q(L,_.wM).query=this.input.value);var O=_.q(L.commandMetadata,_.LM);(O==null?0:O.url)?(O.url=_.y$(O.url,"query",this.input.value),_.P4(this.hostElement,"yt-navigate",{endpoint:L})):_.q(L,vjg)?(_.q(L,vjg).channelSwitcherQuery=this.input.value,_.X5().resolve(_.x$).resolveCommand(L,{form:{element:this.hostElement}})):(A=Error("Lh`"+JSON.stringify(A)),_.C7(A))};
_.P.getUrl=function(A){return this.get("commandMetadata.webCommandMetadata.url",A)};
a0.prototype.toggleClearButton=a0.prototype.toggleClearButton;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],a0.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],a0.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],a0.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],a0.prototype,"hideClearButton",void 0);
_.I([_.K(),_.Z("design:type",Object)],a0.prototype,"boundSubmit",void 0);_.I([_.qR("#form"),_.Z("design:type",HTMLFormElement)],a0.prototype,"form",void 0);_.I([_.qR("#input"),_.Z("design:type",Object)],a0.prototype,"input",void 0);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],a0.prototype,"toggleClearButton",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],a0);
_.m(a0,"ytd-search-box-renderer",function(){if(wS3!==void 0)return wS3;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return wS3=A},{mode:2});var km=function(){var A=_.G.apply(this,arguments)||this;A.showSearchBox=!0;return A};
_.g(km,_.G);km.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],km.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],km.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],km.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],km.prototype,"showSearchBox",void 0);_.I([_.Q({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],km);
_.m(km,"ytd-channel-switcher-header-renderer",function(){if(qhl!==void 0)return qhl;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return qhl=A},{mode:1});var pSl;var iVV;var Up=function(){var A=_.G.apply(this,arguments)||this;A.isDisplayed=!0;return A};
_.g(Up,_.G);_.P=Up.prototype;_.P.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.dataChanged=function(){this.isDisplayed=!0};
_.P.computeType=function(A){return A||"UNKNOWN"};
_.P.onYtServiceRequestCompleted=function(A){A.stopPropagation();this.isDisplayed=!1};
_.P.onClose=function(){this.isDisplayed=!1};
Up.prototype.onYtServiceRequestCompleted=Up.prototype.onYtServiceRequestCompleted;Up.prototype.dataChanged=Up.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Up.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Up.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Up.prototype,"data",void 0);
_.I([_.K({computed:"computeType(data.type)",reflectToAttribute:!0}),_.Z("design:type",String)],Up.prototype,"type",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Up.prototype,"isDisplayed",void 0);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Up.prototype,"dataChanged",null);
_.I([_.by("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Up.prototype,"onYtServiceRequestCompleted",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],Up);
_.m(Up,"ytd-alert-with-button-renderer",function(){if(iVV!==void 0)return iVV;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return iVV=A},{mode:1});var vt=function(){var A=_.G.apply(this,arguments)||this;A.noResult=!1;A.enableAlertBanner=!1;A.dismissedAlertBanner=!1;A.hideCreateChannelButton=!1;A.boundDismissAlertBanner=function(){A.dismissAlertBanner()};
A.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return A};
_.g(vt,_.G);_.P=vt.prototype;_.P.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.P.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.P.updateChannelSwitcherAction=function(A){var L;A=(L=_.q(A,HnJ))==null?void 0:L.page;_.q(A,WZ7)!==void 0&&(this.data=_.q(A,WZ7))};
_.P.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{channelSwitcherHeaderRenderer:"ytd-channel-switcher-header-renderer"}},"data.contents":{id:"contents",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}},accountItemRenderer:"ytd-account-item-renderer",continuationItemRenderer:"ytd-continuation-item-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundDismissAlertBanner]]"}}}}}};
_.P.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.P.searchQueryChanged=function(A,L){if(this.data&&this.data.contents&&this.data.contents.length){A=[];var O=[];this.hideCreateChannelButton=this.noResult=!1;for(var X=document.querySelectorAll("ytd-account-item-renderer"),x=_.d(X),J=x.next();!J.done;J=x.next())J=J.value,O.push(J),J.style.display="block";this.resetRightBorder(O);if(L){this.hideCreateChannelButton=!0;for(O=1;O<this.data.contents.length;O++)if(J=this.data.contents[O],_.q(J,aV7)){var Y=void 0,T=void 0;x=(Y=_.q(J,aV7))==null?void 0:(T=
Y.accountName)==null?void 0:T.simpleText;T=Y=void 0;J=(Y=_.q(J,aV7))==null?void 0:(T=Y.channelHandle)==null?void 0:T.simpleText;(Y=X[O-1])&&x&&_.V_(x,L)?A.push(Y):_.h("enable_handle_search_on_channel_switcher")&&Y&&J&&_.V_(J.toString(),L.toString())?A.push(Y):Y.style.display="none"}A.length===0&&(this.noResult=!0);this.resetRightBorder(A)}}};
_.P.resetRightBorder=function(A){for(var L=0;L<A.length;L++)A[L].style.borderRight=!this.hideCreateChannelButton&&(L+2)%3===0||this.hideCreateChannelButton&&(L+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.P.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.P.setShowSearchBox=function(A){if(A&&A.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var L=0;L<A.contents.length;L++)_.q(A.contents[L],_.JR)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.P.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.v2.Object.defineProperties(vt.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null?0:A.contents)}}});
vt.prototype.onContinuationItemsUpdated=vt.prototype.onContinuationItemsUpdated;vt.prototype.searchQueryChanged=vt.prototype.searchQueryChanged;vt.prototype.onDataChanged=vt.prototype.onDataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],vt.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],vt.prototype,"ytRendererstamperBehavior",void 0);
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],vt.prototype,"actionHandlerBehavior",void 0);_.I([_.N(_.U8),_.Z("design:type",Object)],vt.prototype,"ytContinuationHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],vt.prototype,"data",void 0);_.I([_.qR("ytd-channel-switcher-header-renderer"),_.Z("design:type",Object)],vt.prototype,"channelSwitcherHeaderRenderer",void 0);_.I([_.K(),_.Z("design:type",Object)],vt.prototype,"noResult",void 0);
_.I([_.K(),_.Z("design:type",Object)],vt.prototype,"enableAlertBanner",void 0);_.I([_.K(),_.Z("design:type",Object)],vt.prototype,"dismissedAlertBanner",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],vt.prototype,"hideCreateChannelButton",void 0);_.I([_.r("data.contents"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],vt.prototype,"isLoading",null);_.I([_.K(),_.Z("design:type",Object)],vt.prototype,"boundDismissAlertBanner",void 0);
_.I([_.K({computed:"computeButtonOverride()"}),_.Z("design:type",Object)],vt.prototype,"buttonOverride",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vt.prototype,"onDataChanged",null);_.I([_.by("search-query-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,String]),_.Z("design:returntype")],vt.prototype,"searchQueryChanged",null);
_.I([_.by("yt-next-continuation-data-updated"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],vt.prototype,"onContinuationItemsUpdated",null);_.I([_.Q({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],vt);
_.m(vt,"ytd-channel-switcher-page-renderer",function(){if(pSl!==void 0)return pSl;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return pSl=A},{mode:1});var NEJ;var rHc;var o0=function(){var A=_.G.apply(this,arguments)||this;A.images=[];A.selectedImageIndex=0;return A};
_.g(o0,_.G);_.P=o0.prototype;
_.P.ready=function(){_.CT(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.CT(this.JSC$16598_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.CT(this.JSC$16598_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.CT(this.JSC$16598_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.P.onThumbnailClick=function(A){if(A=A.event_.detail)this.selectedImageIndex=this.images.indexOf(A)};
_.P.updateImageThumbnails=function(A){A=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:A.event_.detail});this.images.splice(this.selectedImageIndex,1,A);this.images=[].concat(_.le(this.images))};
_.P.cancelImageRepositions=function(){this.selectedImageIndex=0;_.P4(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.P.saveImageRepositions=function(){this.selectedImageIndex=0;_.P4(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.v2.Object.defineProperties(o0.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var A=this;return(this.images||[]).map(function(L,O){return{image:L,selected:O===A.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],o0.prototype,"ytRendererstamperBehavior",void 0);_.I([_.qR("ytd-backstage-image-preview-renderer"),_.Z("design:type",Object)],o0.prototype,"JSC$16598_imagePreviewContainer",void 0);_.I([_.qR(".thumbnail-images-container"),_.Z("design:type",HTMLElement)],o0.prototype,"thumbnailImagesContainer",void 0);_.I([_.K(),_.Z("design:type",Array)],o0.prototype,"images",void 0);
_.I([_.K(),_.Z("design:type",Object)],o0.prototype,"repositionInstructions",void 0);_.I([_.K(),_.Z("design:type",Object)],o0.prototype,"selectedImageIndex",void 0);_.I([_.r("images","selectedImageIndex"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],o0.prototype,"thumbnailRendererDatas",null);_.I([_.r("images","selectedImageIndex"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],o0.prototype,"selectedImageData",null);
_.I([_.Q({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],o0);
_.m(o0,"ytd-backstage-multi-image-reposition-renderer",function(){if(rHc!==void 0)return rHc;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return rHc=A},{mode:1});var Am=function(A,L){_.lb.call(this);this.uploadUrl=A;this.channelId=L;this.imagesUploadData=[]};
_.g(Am,_.lb);Am.prototype.getAllUploadStatuses=function(){var A=this,L,O,X;return _.u(function(x){if(x.nextAddress==1)return x.yield(K8g(A),2);L=x.yieldResult;O=L.get("succeed");X=L.get("failed");return x.return(O.concat(X))})};
var lhJ=function(A){var L,O;return _.u(function(X){if(X.nextAddress==1)return X.yield(K8g(A),2);L=X.yieldResult;O=L.get("failed");O.length>0&&G4l(A,O);return X.return(A.getAllUploadStatuses())})},K8g=function(A){var L,O,X,x,J,Y,T;
return _.u(function(V){if(V.nextAddress==1)return L=new Map,V.yield(Promise.allSettled(A.imagesUploadData.map(function(E){return E.uploadPromise})),2);
O=V.yieldResult;X=[];x=_.d(O);for(J=x.next();!J.done;J=x.next())Y=J.value,Y.status==="fulfilled"&&X.push(Y.value);T=A.imagesUploadData.map(function(E){return E.image}).filter(function(E){return X.every(function(n){return n.id!==E.id})});
L.set("succeed",X);L.set("failed",T);return V.return(L)})},G4l=function(A,L){L=_.d(L);
for(var O=L.next();!O.done;O=L.next()){var X=A;O=O.value;cHu(X,O.id)>=0&&X.cancel(O.id);var x=new Cug(O),J=_.mSN(X.uploadUrl,{"X-YouTube-ChannelId":X.channelId},O.imageBlob);x.transfer=J;x.uploadPromise=F83(J,O);X.imagesUploadData.push(x);J.run()}};
Am.prototype.cancel=function(A){var L=cHu(this,A);L!==-1&&((L=this.imagesUploadData[L].transfer)&&L.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(O){return O.image.id!==A}))};
var cHu=function(A,L){return A.imagesUploadData.findIndex(function(O){return O.image.id===L})},F83=function(A,L){return new Promise(function(O,X){A.listen("l",function(){var x=A.getResponseText();
x?(x=JSON.parse(x).encryptedBlobId,L.encryptedBlobId=x,O(L)):X("upload failed")});
A.listen("n",function(){X("upload failed")})})},Cug=function(A){this.image=A};var Ct_=function(A,L,O,X,x){this.id=A;this.imageBlob=L;this.localImageSrc=O;this.naturalWidth=X;this.naturalHeight=x;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 RI7=[".jpeg",".jpg",".png"],Lp=function(){var A=_.G.apply(this,arguments)||this;A.showImagesPreview=!1;A.pollOptions=[];A.errorMessage="";A.optionPlaceholderText="";A.optionDefaultText="";A.JSC$16609_imageId=0;A.maxFileSizeMb=0;A.maxAspectRatio=0;A.invalidFileSizeError="";A.invalidAspectRatioError="";A.invalidFileTypeError="";A.imageSelector=new gS(null,"single_file",RI7);return A};
_.g(Lp,_.G);_.P=Lp.prototype;_.P.ready=function(){_.CT(this.imageSelector,"j",this.onImageSelect,!1,this);_.CT(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.CT(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.P.dataChanged=function(){var A,L,O=_.q((A=this.data)==null?void 0:(L=A.cellTemplate)==null?void 0:L.onEmptyCellTap,MKu);if(O&&O.uploadUrl&&O.channelId){var X;this.maxFileSizeMb=((X=O.imageValidationInfo)==null?void 0:X.maxFileSizeMb)||0;var x;this.maxAspectRatio=((x=O.imageValidationInfo)==null?void 0:x.allowedMaxAspectRatio)||0;var J;this.invalidFileSizeError=this.getSimpleString((J=this.data)==null?void 0:J.invalidFileSizeError);var Y;this.invalidAspectRatioError=this.getSimpleString((Y=this.data)==
null?void 0:Y.invalidAspectRatioError);var T;this.invalidFileTypeError=this.getSimpleString((T=this.data)==null?void 0:T.invalidFileTypeError);this.uploadManager=new Am(O.uploadUrl,O.channelId)}};
_.P.onEditorInfoChange=function(){this.optionPlaceholderText=_.vG(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.vG(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.P.observeAddImageError=function(){this.errorMessage!==""&&_.P4(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.P.onPollOptionsChange=function(){for(var A=!1,L=[],O=0;O<this.pollOptions.length;O++){var X=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(O+1);this.pollOptions[O].placeholderText!==X?(A=!0,L.push(Object.assign({},this.pollOptions[O],{placeholderText:X}))):L.push(this.pollOptions[O])}A&&(this.pollOptions=L);this.isValid()?_.P4(this.hostElement,"yt-commentbox-post-enable"):_.P4(this.hostElement,"yt-commentbox-post-disable")};
_.P.createPollOptions=function(A){var L=[],O;A=(O=A==null?void 0:A.minPollOptions)!=null?O:0;for(O=0;O<A;O++)L.push(this.createPollOption());return L};
_.P.onImageSelect=function(A){var L=this,O,X,x,J,Y,T;return _.u(function(V){if(V.nextAddress==1){if(L.selectedImageIndex===void 0)return V.jumpTo(0);O=A.files[0];L.errorMessage="";X=L.validateImage(O);if(X!=="")return L.errorMessage=X,V.return();x=new xq(L.maxAspectRatio,!1,!0);return V.yield(x.transform(O),3)}if(V.nextAddress!=4)return J=V.yieldResult,J.transformedData?J.invalidAspectRatio?(L.errorMessage=L.invalidAspectRatioError,V.return()):V.yield(FO9(L.JSC$16609_imageId,A.files[0],J.transformedData),
4):(L.errorMessage=L.invalidFileTypeError,V.return());Y=V.yieldResult;L.JSC$16609_imageId++;G4l(L.uploadManager,[Y]);T=Object.assign({},L.pollOptions[L.selectedImageIndex],{image:Y});L.pollOptions.splice(L.selectedImageIndex,1,T);L.refreshPollOptions();_.P4(L.hostElement,"yt-backstage-poll-image-select");_.qo(V)})};
_.P.validateImage=function(A){return A.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.P.refreshPollOptions=function(){this.pollOptions=[].concat(_.le(this.pollOptions))};
_.P.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.le(this.pollOptions),[this.createPollOption()]))};
_.P.onRemovePollOption=function(A){var L=this.pollOptions[A.model.index];L&&L.image&&this.uploadManager.cancel(L.image.id);this.pollOptions.splice(A.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.P4(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.P.onTextInput=function(){this.refreshPollOptions()};
_.P.onImageButtonClick=function(A){this.selectedImageIndex=A.model.index;this.imageSelector.click()};
_.P.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.P.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.P.saveImageRepositions=function(A){A=A.event_.detail;for(var L=0,O=[],X=_.d(this.pollOptions),x=X.next();!x.done;x=X.next())x=x.value,x.image!==void 0?(x=Object.assign({},x,{image:A[L]}),O.push(x),L++):O.push(x);this.showImagesPreview=!1;this.pollOptions=[].concat(_.le(O))};
_.P.isValid=function(){if(!this.editorInfo||this.showImagesPreview||this.pollOptions.length<Number(this.editorInfo.minPollOptions)||this.pollOptions.length>Number(this.editorInfo.maxPollOptions))return!1;for(var A=0,L=_.d(this.pollOptions),O=L.next();!O.done;O=L.next())if(O=O.value,O.optionText.trim()!==""||O.image!==void 0){if(!O.image||this.hasCustomOptionText&&O.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;A++}return A>=Number(this.editorInfo.minPollOptions)};
_.P.getAllUploadStatuses=function(){var A=this,L,O,X,x;return _.u(function(J){if(J.nextAddress==1)return J.yield(A.uploadManager.getAllUploadStatuses(),2);L=J.yieldResult;O=_.d(L);for(X=O.next();!X.done;X=O.next())if(x=X.value,x.encryptedBlobId===void 0)return J.return(lhJ(A.uploadManager));return J.return(L)})};
_.P.getPostCreateOptions=function(){for(var A=[],L=_.d(this.pollOptions),O=L.next();!O.done;O=L.next())O=O.value,O.image!==void 0&&A.push({text:this.hasCustomOptionText?O.optionText:O.placeholderText,image:O.image});return A};
_.P.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.P.createButtonRenderer=function(A,L){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:A,accessibilityData:{accessibilityData:{label:this.getSimpleString(A)}},isDisabled:L}};
_.P.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.P.computeThumbnailRendererData=function(A){return A?{image:A,selected:!1}:void 0};
_.P.getSimpleString=function(A){return _.vG(A)};
_.P.updateOptionTextFromBinding=function(A){if(A.target){var L=Array.from(_.YJ(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(A.target);if(L>=0){var O;this.pollOptions[L].optionText=(O=A.detail.value)!=null?O:""}}};
_.v2.Object.defineProperties(Lp.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var A,L;return this.pollOptions.length<((L=(A=this.editorInfo)==null?void 0:A.maxPollOptions)!=null?L:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(A){return A.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(A){return A.image}).map(function(A){return A.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(A){return A.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var A,L=(A=this.data)==null?void 0:A.addOptionButtonText;return L?this.createButtonRenderer(L,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var A,L=(A=this.data)==null?void 0:A.repositionImagesButtonLabel;return L?this.createButtonRenderer(L,!this.hasImages):void 0}}});
Lp.prototype.onPollOptionsChange=Lp.prototype.onPollOptionsChange;Lp.prototype.observeAddImageError=Lp.prototype.observeAddImageError;Lp.prototype.onEditorInfoChange=Lp.prototype.onEditorInfoChange;Lp.prototype.dataChanged=Lp.prototype.dataChanged;_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Lp.prototype,"ytRendererstamperBehavior",void 0);_.I([_.qR("ytd-backstage-multi-image-reposition-renderer"),_.Z("design:type",Object)],Lp.prototype,"imageRepositionContainer",void 0);
_.I([_.K(),_.Z("design:type",Object)],Lp.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],Lp.prototype,"editorInfo",void 0);_.I([_.K(),_.Z("design:type",Am)],Lp.prototype,"uploadManager",void 0);_.I([_.K(),_.Z("design:type",Object)],Lp.prototype,"showImagesPreview",void 0);_.I([_.K(),_.Z("design:type",Array)],Lp.prototype,"pollOptions",void 0);_.I([_.K(),_.Z("design:type",Object)],Lp.prototype,"errorMessage",void 0);
_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Lp.prototype,"dataChanged",null);_.I([_.iy("editorInfo"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Lp.prototype,"onEditorInfoChange",null);_.I([_.hT("errorMessage"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Lp.prototype,"observeAddImageError",null);
_.I([_.iy("pollOptions"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Lp.prototype,"onPollOptionsChange",null);_.I([_.r("pollOptions","editorInfo"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Lp.prototype,"isAllowedToAddOption",null);_.I([_.r("pollOptions"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Lp.prototype,"hasImages",null);
_.I([_.r("pollOptions"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Lp.prototype,"imagesToReposition",null);_.I([_.r("pollOptions"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Lp.prototype,"hasCustomOptionText",null);_.I([_.r("data","isAllowedToAddOption"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Lp.prototype,"addOptionButton",null);_.I([_.r("data","hasImages"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Lp.prototype,"repositionImagesButton",null);
_.I([_.Q({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],Lp);
_.m(Lp,"ytd-backstage-image-poll-editor-renderer",function(){if(NEJ!==void 0)return NEJ;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return NEJ=A},{mode:2});var QCN={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 me3;var OW=function(){var A=_.G.apply(this,arguments)||this;A.a11yConfig=QCN;A.imageDisplayOffsetTop=0;A.imageDisplayOffsetLeft=0;A.pickerDisplayOffsetTop=0;A.pickerDisplayOffsetLeft=0;A.showPreviewContainer=!0;A.startPicker=!1;A.repositionOptional=!1;A.editOnlyMode=!1;A.savedImageDisplayOffsetTop=0;A.savedImageDisplayOffsetLeft=0;return A};
_.g(OW,_.G);_.P=OW.prototype;_.P.created=function(){_.ah.requestAvailability()};
_.P.ready=function(){};
_.P.onArrowKeysDown=function(A){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){A.detail.keyboardEvent.preventDefault();var L=0,O=0,X="";switch(A.detail.keyboardEvent.key){case "ArrowUp":RXu(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?X=this.a11yConfig.reachBottomOfImage:L=this.imageHeight*.05*-1;break;case "ArrowDown":RXu(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?X=this.a11yConfig.reachTopOfImage:
L=this.imageHeight*.05;break;case "ArrowLeft":RXu(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?X=this.a11yConfig.reachRightOfImage:O=this.imageWidth*.05*-1;break;case "ArrowRight":RXu(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?X=this.a11yConfig.reachLeftOfImage:O=this.imageWidth*.05}X&&_.b3(X)&&_.P4(this.hostElement,"iron-announce",{text:_.b3(X)});if(O||L)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+L)),A=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),A=_.b3(this.a11yConfig.imageVerticalPosition,{x_percent:""+A,y_percent:""+(100-A)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+O)),A=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),A=_.b3(this.a11yConfig.imageHorizontalPosition,{x_percent:""+A,y_percent:""+(100-A)})),A&&_.P4(this.hostElement,"iron-announce",{text:A})}};
_.P.getPreviewPosition=function(A,L,O,X){return Math.round(100*(A+L*.5-O)/X)};
_.P.calculateDisplayPosition=function(){var A=this.imageData.naturalWidth,L=this.imageData.naturalHeight;this.displayScale=Math.max(200/A,200/L);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var O=A*this.displayScale*this.imageData.previewCoordinates.left,X=L*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=L>A?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-O;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=A>L?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-X;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=A*this.displayScale;this.imageHeight=L*this.displayScale};
_.P.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.P.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.P.getSignedPosition=function(A,L,O){return L==="X"&&_.ms("HTML_DIR")==="rtl"?O==="-"?A+"px":A*-1+"px":O==="-"?A*-1+"px":A+"px"};
_.P.pickerMove=function(A){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var L=this.pickerOffsetX-A.clientX,O=this.pickerOffsetY-A.clientY;this.pickerOffsetX=A.clientX;this.pickerOffsetY=A.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
O)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-L))}};
_.P.pickerMoveStart=function(A){this.startPicker=!0;this.pickerOffsetX=A.clientX;this.pickerOffsetY=A.clientY};
_.P.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var A=this.generateCropPreview();A&&_.P4(this.hostElement,"ytd-backstage-image-preview-coordinates-update",A)};
_.P.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.P4(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.P.deleteImage=function(){_.P4(this.hostElement,"ytd-backstage-image-preview-delete")};
_.P.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.P.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var A=this.generateCropPreview();A&&_.P4(this.hostElement,"ytd-backstage-image-preview-coordinates-save",A)};
_.P.getPreviewOffset=function(A,L,O){return L&&A?(O==="X"&&_.ms("HTML_DIR")==="rtl"?300/L*A:300/L*A*-1)+"px":"0px"};
_.P.getSimpleText=function(A){return A?_.vG(A):""};
_.P.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize)return{top:this.cropOffsetTop/this.imageHeight,right:(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,bottom:(this.cropOffsetTop+this.pickerSize)/this.imageHeight,left:this.cropOffsetLeft/this.imageWidth}};
_.v2.Object.defineProperties(OW.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var A=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.b3(this.a11yConfig.imageVerticalPosition,{x_percent:""+A,y_percent:""+(100-A)})+"\n"+_.b3(this.a11yConfig.verticalRepositionInstruction)}A=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.b3(this.a11yConfig.imageHorizontalPosition,{x_percent:""+A,y_percent:""+(100-A)})+"\n"+_.b3(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 A,L,O=(A=this.instruction)==null?void 0:(L=A.previewInstruction)==null?void 0:L.editButtonLabel;return O?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:O,accessibilityData:{accessibilityData:{label:this.getSimpleText(O)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var A,L,O,X,x=this.editOnlyMode?(A=this.instruction)==null?void 0:(L=A.editInstruction)==null?void 0:L.saveImagesButtonLabel:(O=this.instruction)==null?void 0:(X=O.editInstruction)==null?void 0:X.saveButtonLabel;return x?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:x,accessibilityData:{accessibilityData:{label:this.getSimpleText(x)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var A,L,O=(A=this.instruction)==null?void 0:(L=A.previewInstruction)==null?void 0:L.deleteButtonLabel;return O?{size:"SIZE_SMALL",text:O,accessibilityData:{accessibilityData:{label:this.getSimpleText(O)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var A,L,O=(A=this.instruction)==null?void 0:(L=A.editInstruction)==null?void 0:L.cancelButtonLabel;A=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return O?{style:A,size:"SIZE_SMALL",text:O,accessibilityData:{accessibilityData:{label:this.getSimpleText(O)}}}: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"}}});
OW.prototype.onEditOnlyModeUpdate=OW.prototype.onEditOnlyModeUpdate;OW.prototype.onImageChange=OW.prototype.onImageChange;_.I([_.K(),_.Z("design:type",Ct_)],OW.prototype,"imageData",void 0);_.I([_.K(),_.Z("design:type",Object)],OW.prototype,"instruction",void 0);_.I([_.K(),_.Z("design:type",Object)],OW.prototype,"a11yConfig",void 0);_.I([_.K(),_.Z("design:type",Number)],OW.prototype,"imageWidth",void 0);_.I([_.K(),_.Z("design:type",Number)],OW.prototype,"imageHeight",void 0);
_.I([_.K(),_.Z("design:type",Number)],OW.prototype,"displayScale",void 0);_.I([_.K(),_.Z("design:type",Object)],OW.prototype,"imageDisplayOffsetTop",void 0);_.I([_.K(),_.Z("design:type",Object)],OW.prototype,"imageDisplayOffsetLeft",void 0);_.I([_.K(),_.Z("design:type",Object)],OW.prototype,"pickerDisplayOffsetTop",void 0);_.I([_.K(),_.Z("design:type",Object)],OW.prototype,"pickerDisplayOffsetLeft",void 0);_.I([_.K(),_.Z("design:type",Object)],OW.prototype,"showPreviewContainer",void 0);
_.I([_.K(),_.Z("design:type",Object)],OW.prototype,"startPicker",void 0);_.I([_.K(),_.Z("design:type",Number)],OW.prototype,"pickerOffsetX",void 0);_.I([_.K(),_.Z("design:type",Number)],OW.prototype,"pickerOffsetY",void 0);_.I([_.K(),_.Z("design:type",Object)],OW.prototype,"repositionOptional",void 0);_.I([_.K(),_.Z("design:type",Object)],OW.prototype,"editOnlyMode",void 0);_.I([_.qR("#picker-container"),_.Z("design:type",HTMLElement)],OW.prototype,"JSC$16622_pickerContainer",void 0);
_.I([_.qR("#picker"),_.Z("design:type",HTMLElement)],OW.prototype,"picker",void 0);_.I([_.qR("#preview-clipper"),_.Z("design:type",HTMLElement)],OW.prototype,"previewClipper",void 0);_.I([_.qR("#image-in-picker-background"),_.Z("design:type",HTMLImageElement)],OW.prototype,"JSC$16622_imageInBackground",void 0);_.I([_.qR("#image-in-picker"),_.Z("design:type",HTMLImageElement)],OW.prototype,"JSC$16622_imageInPicker",void 0);
_.I([_.qR("#image-in-preview-clipper"),_.Z("design:type",HTMLImageElement)],OW.prototype,"JSC$16622_imageInPreviewClipper",void 0);_.I([_.r("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.Z("design:type",String),_.Z("design:paramtypes",[])],OW.prototype,"altLabelForImage",null);_.I([_.r("imageHeight","imageWidth"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],OW.prototype,"pickerSize",null);
_.I([_.r("imageHeight","imageWidth"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],OW.prototype,"imageOrientationStyle",null);_.I([_.r("instruction"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],OW.prototype,"editButton",null);_.I([_.r("instruction","editOnlyMode"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],OW.prototype,"saveButton",null);_.I([_.r("instruction"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],OW.prototype,"deleteButton",null);
_.I([_.r("instruction","editOnlyMode"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],OW.prototype,"cancelButton",null);_.I([_.r("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],OW.prototype,"cropOffsetTop",null);_.I([_.r("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],OW.prototype,"cropOffsetLeft",null);
_.I([_.r("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.Z("design:type",String),_.Z("design:paramtypes",[])],OW.prototype,"pickerBackgroundStyle",null);_.I([_.r("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.Z("design:type",String),_.Z("design:paramtypes",[])],OW.prototype,"pickerDisplayStyle",null);_.I([_.r("cropOffsetLeft","cropOffsetTop"),_.Z("design:type",String),_.Z("design:paramtypes",[])],OW.prototype,"imageInPickerStyle",null);
_.I([_.r("cropOffsetLeft","cropOffsetTop","pickerSize"),_.Z("design:type",String),_.Z("design:paramtypes",[])],OW.prototype,"previewClipperStyle",null);_.I([_.iy("imageData"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],OW.prototype,"onImageChange",null);_.I([_.iy("editOnlyMode"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],OW.prototype,"onEditOnlyModeUpdate",null);
_.I([_.r("showPreviewContainer"),_.Z("design:type",String),_.Z("design:paramtypes",[])],OW.prototype,"pickerModeStyle",null);_.I([_.Q({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],OW);
_.m(OW,"ytd-backstage-image-preview-renderer",function(){if(me3!==void 0)return me3;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return me3=A},{mode:1});var fhn;var Ihl={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 yHJ;var ZVc;var X1=function(){var A=_.G.apply(this,arguments)||this;A.a11yConfig=Ihl;A.imageDisplayOffsetTop=0;A.imageDisplayOffsetLeft=0;A.pickerDisplayOffsetTop=0;A.pickerDisplayOffsetLeft=0;A.cropCoordinatesSaved=!1;A.previewSize=0;A.startPicker=!1;A.repositionOptional=!1;return A};
_.g(X1,_.G);_.P=X1.prototype;_.P.created=function(){_.ah.requestAvailability()};
_.P.ready=function(){};
_.P.onArrowKeysDown=function(A){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){A.detail.keyboardEvent.preventDefault();var L=0,O=0,X="";switch(A.detail.keyboardEvent.key){case "ArrowUp":Qie(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?X=this.a11yConfig.reachBottomOfImage:L=this.imageHeight*.05*-1;break;case "ArrowDown":Qie(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?X=this.a11yConfig.reachTopOfImage:
L=this.imageHeight*.05;break;case "ArrowLeft":Qie(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?X=this.a11yConfig.reachRightOfImage:O=this.imageWidth*.05*-1;break;case "ArrowRight":Qie(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?X=this.a11yConfig.reachLeftOfImage:O=this.imageWidth*.05}X&&_.b3(X)&&_.P4(this.hostElement,"iron-announce",{text:_.b3(X)});if(O||L)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+L)),A=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),A=_.b3(this.a11yConfig.imageVerticalPosition,{x_percent:""+A,y_percent:""+(100-A)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+O)),A=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),A=_.b3(this.a11yConfig.imageHorizontalPosition,{x_percent:""+A,y_percent:""+(100-A)})),A&&_.P4(this.hostElement,"iron-announce",{text:A})}};
_.P.getPreviewPosition=function(A,L,O,X){return Math.round(100*(A+L*.5-O)/X)};
_.P.displayImage=function(){var A=this.JSC$16633_pickerContainer.getBoundingClientRect().width,L=this.JSC$16633_pickerContainer.getBoundingClientRect().height,O=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),X=this.JSC$16633_imageInBackground.naturalWidth,x=this.JSC$16633_imageInBackground.naturalHeight;this.displayScale=Math.max(O/X,O/x);this.imageWidth=X*this.displayScale;this.imageHeight=x*this.displayScale;this.pickerDisplayOffsetLeft=(A-O)/2;this.pickerDisplayOffsetTop=
(L-O)/2;this.imageDisplayOffsetLeft=x>X?this.pickerDisplayOffsetLeft:(A-this.imageWidth)/2;this.imageDisplayOffsetTop=X>x?this.pickerDisplayOffsetTop:(L-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.P.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$16633_imageInBackground.src=this.imageData.toString(),this.JSC$16633_imageInPicker.src=this.imageData.toString(),this.JSC$16633_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.P.getSignedPosition=function(A,L,O){return L==="X"&&_.ms("HTML_DIR")==="rtl"?O==="-"?A+"px":A*-1+"px":O==="-"?A*-1+"px":A+"px"};
_.P.pickerMove=function(A){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var L=this.pickerOffsetX-A.clientX,O=this.pickerOffsetY-A.clientY;this.pickerOffsetX=A.clientX;this.pickerOffsetY=A.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
O)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-L))}};
_.P.pickerMoveStart=function(A){this.startPicker=!0;this.pickerOffsetX=A.clientX;this.pickerOffsetY=A.clientY};
_.P.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.P.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.P4(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.P.getPreviewOffset=function(A,L,O,X){return L&&A&&O?(X==="X"&&_.ms("HTML_DIR")==="rtl"?O/L*A:O/L*A*-1)+"px":"0px"};
_.P.getSimpleText=function(A){return A?_.vG(A):""};
_.P.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var A=this.cropOffsetTop/this.imageHeight,L=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,O=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,X=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.YJ(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.P4(this.hostElement,"yt-img-crop-coordinates-update",{top:A,right:L,bottom:O,left:X})}};
_.v2.Object.defineProperties(X1.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var A=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.b3(this.a11yConfig.imageVerticalPosition,{x_percent:""+A,y_percent:""+(100-A)})+"\n"+_.b3(this.a11yConfig.verticalRepositionInstruction)}A=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.b3(this.a11yConfig.imageHorizontalPosition,{x_percent:""+A,y_percent:""+(100-A)})+"\n"+_.b3(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 A,L=(A=this.learnMore.runs[0])==null?void 0:A.navigationEndpoint,O;return((O=_.q(L,_.Hh))==null?void 0:O.url)||void 0}}}});
X1.prototype.onImageDataChange=X1.prototype.onImageDataChange;_.I([_.K(),_.Z("design:type",Object)],X1.prototype,"imageData",void 0);_.I([_.K(),_.Z("design:type",Object)],X1.prototype,"instruction",void 0);_.I([_.K(),_.Z("design:type",Object)],X1.prototype,"a11yConfig",void 0);_.I([_.K(),_.Z("design:type",Number)],X1.prototype,"imageWidth",void 0);_.I([_.K(),_.Z("design:type",Number)],X1.prototype,"imageHeight",void 0);_.I([_.K(),_.Z("design:type",Number)],X1.prototype,"displayScale",void 0);
_.I([_.K(),_.Z("design:type",Object)],X1.prototype,"imageDisplayOffsetTop",void 0);_.I([_.K(),_.Z("design:type",Object)],X1.prototype,"imageDisplayOffsetLeft",void 0);_.I([_.K(),_.Z("design:type",Object)],X1.prototype,"pickerDisplayOffsetTop",void 0);_.I([_.K(),_.Z("design:type",Object)],X1.prototype,"pickerDisplayOffsetLeft",void 0);_.I([_.K(),_.Z("design:type",Object)],X1.prototype,"cropCoordinatesSaved",void 0);_.I([_.K(),_.Z("design:type",Object)],X1.prototype,"previewSize",void 0);
_.I([_.K(),_.Z("design:type",Object)],X1.prototype,"startPicker",void 0);_.I([_.K(),_.Z("design:type",Number)],X1.prototype,"pickerOffsetX",void 0);_.I([_.K(),_.Z("design:type",Number)],X1.prototype,"pickerOffsetY",void 0);_.I([_.K(),_.Z("design:type",Object)],X1.prototype,"repositionOptional",void 0);_.I([_.qR("#picker-container"),_.Z("design:type",HTMLElement)],X1.prototype,"JSC$16633_pickerContainer",void 0);_.I([_.qR("#picker"),_.Z("design:type",HTMLElement)],X1.prototype,"picker",void 0);
_.I([_.qR("#image-in-picker-background"),_.Z("design:type",HTMLImageElement)],X1.prototype,"JSC$16633_imageInBackground",void 0);_.I([_.qR("#image-in-picker"),_.Z("design:type",HTMLImageElement)],X1.prototype,"JSC$16633_imageInPicker",void 0);_.I([_.qR("#image-in-preview-clipper"),_.Z("design:type",HTMLImageElement)],X1.prototype,"JSC$16633_imageInPreviewClipper",void 0);_.I([_.qR("#full-image-as-preview"),_.Z("design:type",HTMLImageElement)],X1.prototype,"imageAsPreview",void 0);
_.I([_.r("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.Z("design:type",String),_.Z("design:paramtypes",[])],X1.prototype,"altLabelForImage",null);_.I([_.r("imageHeight","imageWidth"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],X1.prototype,"pickerSize",null);_.I([_.r("imageHeight","imageWidth"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],X1.prototype,"imageOrientationStyle",null);
_.I([_.r("instruction.previewInstruction.editButtonLabel"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],X1.prototype,"editButton",null);_.I([_.r("instruction.editInstruction.saveButtonLabel"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],X1.prototype,"saveButton",null);_.I([_.r("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],X1.prototype,"cropOffsetTop",null);
_.I([_.r("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],X1.prototype,"cropOffsetLeft",null);_.I([_.r("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.Z("design:type",String),_.Z("design:paramtypes",[])],X1.prototype,"pickerBackgroundStyle",null);_.I([_.r("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.Z("design:type",String),_.Z("design:paramtypes",[])],X1.prototype,"pickerDisplayStyle",null);
_.I([_.r("cropOffsetLeft","cropOffsetTop"),_.Z("design:type",String),_.Z("design:paramtypes",[])],X1.prototype,"imageInPickerStyle",null);_.I([_.r("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.Z("design:type",String),_.Z("design:paramtypes",[])],X1.prototype,"previewClipperStyle",null);_.I([_.hT("imageData"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],X1.prototype,"onImageDataChange",null);
_.I([_.r("cropCoordinatesSaved"),_.Z("design:type",String),_.Z("design:paramtypes",[])],X1.prototype,"pickerModeStyle",null);_.I([_.r("instruction.editInstruction.learnMore"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],X1.prototype,"learnMore",null);_.I([_.r("learnMore"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],X1.prototype,"learnMoreUrl",null);_.I([_.yU({is:"yt-img-crop-picker",disableElementRegistration:!0})],X1);
_.m(X1,"yt-img-crop-picker",function(){if(ZVc===void 0){var A=document.createElement("template");_.p(A,'\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>');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;yHJ===void 0&&(yHJ=document.createElement("template"));var X=yHJ;O.call(L,X.content.cloneNode(!0),A.content.firstChild);ZVc=A}A=ZVc;return A},{mode:2});var xP=function(){var A=_.G.apply(this,arguments)||this;A.errorMessage="";A.hasPreview=!1;A.isBackstagePost=!1;A.dismissButtonOverrides={size:"XS"};return A};
_.g(xP,_.G);_.P=xP.prototype;_.P.configureRendererStamper=function(){return{selectionCancel:{id:"selection-cancel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dismissButtonOverrides]]"},params:{forceModernIconButton:!0}}}},previewCancel:{id:"preview-cancel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dismissButtonOverrides]]"},params:{forceModernIconButton:!0}}}},"data.selectButton":{id:"select",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.detached=function(){this.removeOverlay()};
_.P.setPreview=function(A){_.YJ(this.hostElement).querySelector("#preview-picker").imageData=A;this.hasPreview=!0;_.P4(this.hostElement,"yt-backstage-image-select-preview")};
_.P.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var A=_.YJ(this.hostElement).querySelector("#dropzone");A.classList.remove("dragover");A.classList.remove("error");_.P4(this.hostElement,"yt-backstage-image-select-cancel")};
_.P.setupOverlay=function(){var A=this.imageUploadEndpoint;this.removeOverlay();if(A&&A.imageValidationInfo){var L=_.YJ(this.hostElement).querySelector("#dropzone"),O=_.YJ(this.hostElement).querySelector("#select");this.overlay=new J7(A.uploadUrl,A.channelId,A.imageValidationInfo.maxFileSizeMb,A.imageValidationInfo.allowedMaxAspectRatio,L,O,!0);_.CT(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.CT(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.CT(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.CT(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.CT(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.P.removeOverlay=function(){this.overlay&&(_.GI(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.GI(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.GI(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.GI(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.GI(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.P.onDragOver=function(A){var L=_.YJ(this.hostElement).querySelector("#dropzone");_.TK(L,"dragover",A.value)};
_.P.onPreview=function(A){this.setPreview(A.value)};
_.P.onImageError=function(A){if(A.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var L;A=(L=this.data)==null?void 0:L.fileSizeError}else if(A.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var O;A=(O=this.data)==null?void 0:O.invalidError}else if(A.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var X;A=(X=this.data)==null?void 0:X.invalidAspectRatioError}else return;this.errorMessage=_.vG(A);_.YJ(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.P.onImageAlert=function(A){this.onImageError(A)};
_.P.uploadPromise=function(){var A=this,L=this.overlay&&this.overlay.uploadPromise();if(L)return L.catch(function(){throw Error(A.data?_.vG(A.data.uploadFailureError):"");})};
_.v2.Object.defineProperties(xP.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var A,L;if((A=this.data)==null?0:(L=A.icon)==null?0:L.iconType)return _.bV(this.data.icon.iconType)}}});
xP.prototype.setupOverlay=xP.prototype.setupOverlay;_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],xP.prototype,"rendererStamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],xP.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],xP.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],xP.prototype,"imageUploadEndpoint",void 0);_.I([_.K(),_.Z("design:type",Object)],xP.prototype,"errorMessage",void 0);
_.I([_.K(),_.Z("design:type",J7)],xP.prototype,"overlay",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],xP.prototype,"hasPreview",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],xP.prototype,"isBackstagePost",void 0);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],xP.prototype,"selectionCancel",null);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],xP.prototype,"previewCancel",null);
_.I([_.r("data.icon.iconType"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],xP.prototype,"icon",null);_.I([_.K(),_.Z("design:type",Object)],xP.prototype,"dismissButtonOverrides",void 0);_.I([_.hT("imageUploadEndpoint"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],xP.prototype,"setupOverlay",null);_.I([_.Q({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],xP);
_.m(xP,"ytd-backstage-image-select-renderer",function(){if(fhn!==void 0)return fhn;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return fhn=A},{mode:1});var jCL;var W8J;var sW=function(){var A=_.G.apply(this,arguments)||this;A.selected=!1;return A};
_.g(sW,_.G);_.P=sW.prototype;_.P.computeSelected=function(A){return A==null?void 0:A.selected};
_.P.computeTransform=function(A,L,O){var X,x,J=(x=(X=this.imageContainer)==null?void 0:X.getBoundingClientRect())!=null?x:{width:0,height:0};X=Math.max(J.width/L,J.height/O);O=O*X*A.top;return"translateX("+this.getSignedPosition(L*X*A.left,"X","-")+") translateY("+this.getSignedPosition(O,"Y","-")+")"};
_.P.getSignedPosition=function(A,L,O){return L==="X"&&_.ms("HTML_DIR")==="rtl"?O==="-"?A+"px":A*-1+"px":O==="-"?A*-1+"px":A+"px"};
_.P.onClick=function(){var A;_.P4(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(A=this.data)==null?void 0:A.image)};
_.P.onKeyPress=function(A){if(A.keyCode===13)this.onClick()};
_.v2.Object.defineProperties(sW.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var A,L;return((A=this.data)==null?void 0:(L=A.image)==null?void 0:L.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)!=null&&A.image){var L;A=(L=this.data)==null?void 0:L.image;return A.previewCoordinates.top!==0||A.previewCoordinates.left!==0?(L=this.computeTransform(A.previewCoordinates,A.naturalWidth,A.naturalHeight),A.naturalHeight>=A.naturalWidth?"width:inherit;transform:"+L+";":"height:inherit;transform:"+L+";"):A.naturalHeight>=A.naturalWidth?"width:inherit;":"height:inherit;"}}}});
sW.prototype.onKeyPress=sW.prototype.onKeyPress;_.I([_.qR(".image-container"),_.Z("design:type",HTMLElement)],sW.prototype,"imageContainer",void 0);_.I([_.K(),_.Z("design:type",Object)],sW.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.Z("design:type",Object)],sW.prototype,"selected",void 0);_.I([_.r("data.image"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],sW.prototype,"thumbnailUrl",null);
_.I([_.r("data.image","data.image.previewCoordinates"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],sW.prototype,"thumbnailStyle",null);_.I([_.by("keypress"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],sW.prototype,"onKeyPress",null);_.I([_.Q({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],sW);
_.m(sW,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(W8J!==void 0)return W8J;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return W8J=A},{mode:2});var Jm=function(A,L,O){O=O===void 0?!1:O;_.lb.call(this);var X=this;this.dropZoneOverlay=new q1(A);this.selectOverlay=O?new gS(L,"multiple_file",["image/*"]):new gS(L,"single_file",["image/*"]);this.handler=new _.sI(this);_.VI(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(L,"click",function(){X.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.g(Jm,_.lb);Jm.prototype.onChange=function(A){var L;(L=A.files)!=null&&L.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:A.files}))};var PA=function(){var A=_.G.apply(this,arguments)||this;A.addImageErrorMessage="";A.errorMessage="";A.images=[];A.selectedImageIndex=0;A.modern=_.h("web_modern_buttons");A.maxNumImagesPerPost=_.PO("max_num_images_per_post_web_ui");A.JSC$16648_imageId=0;return A};
_.g(PA,_.G);_.P=PA.prototype;_.P.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.P4(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.P.observeDragToReorder=function(){var A=this;if(this.showImagesPreview){var L,O=kxL(_.DY.getInstance(),(L=this.data)==null?void 0:L.dragToReorderTooltip);_.c1.addLowPriorityJob(function(){_.VN(A.hostElement,O,A.thumbnailDragDropArea)})}};
_.P.configureRendererStamper=function(){return{selectionCancel:{id:"selection-cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}},previewCancel:{id:"preview-cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dataForAddImageButton:{id:"add-image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},thumbnailRenderers:{id:"thumbnail-drag-drop-area",mapping:{renderer:"ytd-backstage-multi-image-thumbnail-renderer"},events:!0,reuseComponents:!0,stamperStableList:!0}}};
_.P.computeThumbnail=function(A){return(A==null?void 0:A.localImageSrc)||void 0};
_.P.onRendererstamperFinished=function(){_.BLn(this.ytReorderableBehavior,_.YJ(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.YJ(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.P.handleDrop=function(A){var L=A.currDragItem;if(L!=null&&L.data){A=this.images[this.selectedImageIndex];var O=L.data.image,X=this.images.indexOf(O)||0;L=_.Q_(L.parentNode.children,L);this.images.splice(X,1);this.images.splice(L,0,O);this.images=[].concat(_.le(this.images));this.selectedImageIndex=this.images.indexOf(A)}};
_.P.setUpImagePicker=function(){var A=this.imageUploadEndpoint;A&&A.imageValidationInfo&&(this.uploadManager=new Am(A.uploadUrl,A.channelId),this.initialPicker||(this.initialPicker=new Jm(this.dropzone,this.selectLink,!0),_.CT(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new Jm(this.addImageButtonContainer,this.addImageSelectButton),_.CT(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.CT(this.JSC$16648_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.CT(this.JSC$16648_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.CT(_.YJ(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.P.detached=function(){this.initialPicker&&(_.GI(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.GI(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.P.onInitialSelectImages=function(A){var L=this;return _.u(function(O){return O.yield(L.onSelectImages(A,!1),0)})};
_.P.onAddImage=function(A){var L=this;return _.u(function(O){return O.yield(L.onSelectImages(A,!0),0)})};
_.P.onSelectImages=function(A,L){var O=this,X,x,J,Y,T,V,E,n,t,b,S,w,l,F,R,y,M,H,z,a;return _.u(function(xe){switch(xe.nextAddress){case 1:L?O.addImageErrorMessage="":(O.images=[],O.errorMessage="");X=A.detail;x=O.validateImages([].concat(_.le(X)));if(x!=="")return L?O.addImageErrorMessage=x:O.errorMessage=x,xe.return();J=[].concat(_.le(X)).map(function(ur){return(new xq(O.maxAspectRatio,!1,!0)).transform(ur)});
return xe.yield(Promise.allSettled(J),2);case 2:Y=xe.yieldResult,T=_.d(Y.entries()),V=T.next();case 3:if(V.done){xe.jumpTo(5);break}E=V.value;n=_.d(E);t=n.next().value;b=n.next().value;S=t;w=b;if(w.status!=="fulfilled"){R=F=l=void 0;L?O.addImageErrorMessage=_.vG((l=O.data)==null?void 0:l.invalidError):O.errorMessage=O.errorMessage===""?_.vG((F=O.data)==null?void 0:F.invalidError):_.vG((R=O.data)==null?void 0:R.multiFileError);xe.jumpTo(4);break}y=w.value;y.cropped&&_.P4(O.hostElement,"yt-backstage-multi-image-cropped");
if(y.invalidAspectRatio){z=H=M=void 0;L?O.addImageErrorMessage=_.vG((M=O.data)==null?void 0:M.invalidAspectRatioError):O.errorMessage=O.errorMessage===""?_.vG((H=O.data)==null?void 0:H.invalidAspectRatioError):_.vG((z=O.data)==null?void 0:z.multiFileError);xe.jumpTo(4);break}return xe.yield(FO9(O.JSC$16648_imageId,A.detail[S],y.transformedData),8);case 8:a=xe.yieldResult,O.images.push(a),O.JSC$16648_imageId++;case 4:V=T.next();xe.jumpTo(3);break;case 5:if(O.errorMessage!==""||O.addImageErrorMessage!==
"")return xe.return();L?G4l(O.uploadManager,[O.images[O.images.length-1]]):G4l(O.uploadManager,O.images);O.images=[].concat(_.le(O.images));O.selectedImageIndex=L?Math.max(O.images.length-1,0):0;_.P4(O.hostElement,"yt-backstage-multi-image-select");_.qo(xe)}})};
_.P.onThumbnailClick=function(A){if(A=A.event_.detail)this.selectedImageIndex=this.images.indexOf(A)};
_.P.validateImages=function(A){if(A.length>this.maxNumImagesPerPost){var L;return _.vG((L=this.data)==null?void 0:L.multiImageExceedMaxImageCountError)}var O=1048576*this.maxFileSizeMb;A=A.filter(function(J){return J.size>O}).length;
if(A===0)return"";var X,x;A=A>1?(X=this.data)==null?void 0:X.multiFileError:(x=this.data)==null?void 0:x.fileSizeError;return _.vG(A)};
_.P.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.le(this.images));this.selectedImageIndex=0};
_.P.repositionImage=function(A){this.images[this.selectedImageIndex].previewCoordinates=A.event_.detail;this.images=[].concat(_.le(this.images))};
_.P.getAllUploadStatuses=function(){var A=this,L,O,X,x;return _.u(function(J){if(J.nextAddress==1)return J.yield(A.uploadManager.getAllUploadStatuses(),2);L=J.yieldResult;O=_.d(L);for(X=O.next();!X.done;X=O.next())if(x=X.value,x.encryptedBlobId===void 0)return J.return(lhJ(A.uploadManager));return J.return(L)})};
_.P.hasImages=function(){return this.images.length>0};
_.P.cancel=function(){for(var A=this.uploadManager,L=_.d(A.imagesUploadData),O=L.next();!O.done;O=L.next())A.cancel(O.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.P4(this.hostElement,"yt-backstage-multi-image-cancel")};
_.v2.Object.defineProperties(PA.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var A,L;return((A=this.imageUploadEndpoint)==null?void 0:(L=A.imageValidationInfo)==null?void 0:L.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var A,L;return((A=this.imageUploadEndpoint)==null?void 0:(L=A.imageValidationInfo)==null?void 0:L.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var A,L;if((A=this.data)==null?0:(L=A.icon)==null?0:L.iconType)return _.bV(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.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 A=this;return(this.images||[]).map(function(L,O){return{renderer:{image:L,selected:O===A.selectedImageIndex}}})}}});
PA.prototype.setUpImagePicker=PA.prototype.setUpImagePicker;PA.prototype.onRendererstamperFinished=PA.prototype.onRendererstamperFinished;PA.prototype.observeDragToReorder=PA.prototype.observeDragToReorder;PA.prototype.observeAddImageError=PA.prototype.observeAddImageError;_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],PA.prototype,"rendererStamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],PA.prototype,"ytRendererBehavior",void 0);
_.I([_.N(_.MBg),_.Z("design:type",Object)],PA.prototype,"ytReorderableBehavior",void 0);_.I([_.qR("#dropzone"),_.Z("design:type",HTMLElement)],PA.prototype,"dropzone",void 0);_.I([_.qR("#select-link"),_.Z("design:type",HTMLElement)],PA.prototype,"selectLink",void 0);_.I([_.qR("#thumbnail-drag-drop-area"),_.Z("design:type",HTMLElement)],PA.prototype,"thumbnailDragDropArea",void 0);_.I([_.qR("#add-image-button-container"),_.Z("design:type",HTMLElement)],PA.prototype,"addImageButtonContainer",void 0);
_.I([_.qR("#add-image-button"),_.Z("design:type",HTMLElement)],PA.prototype,"addImageSelectButton",void 0);_.I([_.qR("#image-preview-container"),_.Z("design:type",Object)],PA.prototype,"JSC$16648_imagePreviewContainer",void 0);_.I([_.K(),_.Z("design:type",Object)],PA.prototype,"addImageErrorMessage",void 0);_.I([_.K(),_.Z("design:type",Object)],PA.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],PA.prototype,"errorMessage",void 0);
_.I([_.K(),_.Z("design:type",Object)],PA.prototype,"imageUploadEndpoint",void 0);_.I([_.K(),_.Z("design:type",Array)],PA.prototype,"images",void 0);_.I([_.K(),_.Z("design:type",Jm)],PA.prototype,"initialPicker",void 0);_.I([_.K(),_.Z("design:type",Jm)],PA.prototype,"addImagePicker",void 0);_.I([_.K(),_.Z("design:type",Am)],PA.prototype,"uploadManager",void 0);_.I([_.K(),_.Z("design:type",Object)],PA.prototype,"selectedImageIndex",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],PA.prototype,"modern",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],PA.prototype,"maxNumImagesPerPost",void 0);_.I([_.r("imageUploadEndpoint"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],PA.prototype,"maxAspectRatio",null);_.I([_.r("imageUploadEndpoint"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],PA.prototype,"maxFileSizeMb",null);
_.I([_.r("data.icon.iconType"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],PA.prototype,"dropIcon",null);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],PA.prototype,"selectionCancel",null);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],PA.prototype,"previewCancel",null);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],PA.prototype,"dataForAddImageButton",null);
_.I([_.r("errorMessage"),_.Z("design:type",String),_.Z("design:paramtypes",[])],PA.prototype,"dropzoneClass",null);_.I([_.r("images"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],PA.prototype,"showImagesPreview",null);_.I([_.r("images"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],PA.prototype,"containMaxImages",null);_.I([_.hT("addImageErrorMessage"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],PA.prototype,"observeAddImageError",null);
_.I([_.hT("showImagesPreview"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],PA.prototype,"observeDragToReorder",null);_.I([_.r("images","selectedImageIndex"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],PA.prototype,"selectedImageData",null);_.I([_.r("images","selectedImageIndex"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],PA.prototype,"thumbnailRenderers",null);
_.I([_.by("yt-rendererstamper-finished"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],PA.prototype,"onRendererstamperFinished",null);_.I([_.hT("imageUploadEndpoint"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],PA.prototype,"setUpImagePicker",null);_.I([_.Q({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],PA);
_.m(PA,"ytd-backstage-multi-image-select-renderer",function(){if(jCL!==void 0)return jCL;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return jCL=A},{mode:1});var HVH;var zIN;var BEj;var d2=function(){var A=_.G.apply(this,arguments)||this;A.boundCaptureFocus=function(L){A.onCaptureFocus(L)};
return A};
_.g(d2,_.G);_.P=d2.prototype;_.P.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.P.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.P.onCaptureFocus=function(A){_.oa(A).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.P.getIconType=function(A){return A?"yt-icons:"+A.toLowerCase():null};
_.P.onSelect=function(){var A;if((A=this.data)==null?0:A.onSelectCommand)if(_.h("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var L;((L=_.q(this.data.onSelectCommand.commandMetadata,_.LM))==null?0:L.url)?_.P4(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.X5().resolve(_.x$).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.v2.Object.defineProperties(d2.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.vG(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}}});
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],d2.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],d2.prototype,"ytComponentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],d2.prototype,"data",void 0);_.I([_.qR("#item"),_.Z("design:type",HTMLElement)],d2.prototype,"item",void 0);_.I([_.r("data.label"),_.Z("design:type",String),_.Z("design:paramtypes",[])],d2.prototype,"label",null);
_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],d2.prototype,"value",null);_.I([_.Q({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],d2);
_.m(d2,"ytd-privacy-dropdown-item-renderer",function(){if(BEj!==void 0)return BEj;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return BEj=A},{mode:1});var YP=function(){var A=_.G.apply(this,arguments)||this;A.value="";A.label="";A.disabled=!1;return A};
_.g(YP,_.G);_.P=YP.prototype;_.P.configureRendererStamper=function(){return{"data.entries":{id:"entries",mapping:{dropdownItemRenderer:"ytd-dropdown-item-renderer",privacyDropdownItemRenderer:"ytd-privacy-dropdown-item-renderer",navigationDropdownItemRenderer:"ytd-navigation-dropdown-item-renderer"}}}};
_.P.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.P.dataChanged=function(){this.reset()};
_.P.valueChanged=function(){var A;if(this.value&&(A=this.data)!=null&&A.entries){A=_.d(this.data.entries);for(var L=A.next();!L.done;L=A.next())if((L=this.getRendererForEntry(L.value))&&this.getItemRendererValue(L)===this.value){this.label=this.ytComponentBehavior.getSimpleString(L.label);break}}};
_.P.setInitialLabel=function(){if(this.data&&this.data.entries)for(var A=_.d(this.data.entries),L=A.next();!L.done;L=A.next())if(L=this.getRendererForEntry(L.value)){if(L.isSelected){this.label=this.ytComponentBehavior.getSimpleString(L.label);break}this.data.label&&(this.label=this.data.label)}};
_.P.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var A=_.d(this.data.entries),L=A.next();!L.done;L=A.next()){L=this.getRendererForEntry(L.value);var O=void 0;if((O=L)==null?0:O.isSelected)return this.getItemRendererValue(L)||-1}return-1};
_.P.getItemRendererValue=function(A){return"stringValue"in A||"int32Value"in A?A.stringValue||A.int32Value||null:null};
_.P.getRendererForEntry=function(A){return A.dropdownItemRenderer||A.privacyDropdownItemRenderer||A.navigationDropdownItemRenderer||null};
_.P.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.A3("value-changed",this.value))};
_.P.updateValueFromBinding=function(A){this.value=A.detail.value};
YP.prototype.valueChangedForBinding=YP.prototype.valueChangedForBinding;YP.prototype.valueChanged=YP.prototype.valueChanged;YP.prototype.dataChanged=YP.prototype.dataChanged;_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],YP.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],YP.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],YP.prototype,"ytRendererstamperBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],YP.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],YP.prototype,"value",void 0);_.I([_.K(),_.Z("design:type",Object)],YP.prototype,"label",void 0);_.I([_.qR("#entries"),_.Z("design:type",Object)],YP.prototype,"entries",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],YP.prototype,"disabled",void 0);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],YP.prototype,"dataChanged",null);
_.I([_.iy("value"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],YP.prototype,"valueChanged",null);_.I([_.hT("value"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],YP.prototype,"valueChangedForBinding",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],YP);
_.m(YP,"ytd-flat-dropdown-renderer",function(){if(zIN!==void 0)return zIN;var A=document.createElement("template");_.p(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flat-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button disabled="[[disabled]]" dynamic-align="" horizontal-align="left" class="style-scope ytd-flat-dropdown-renderer">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-flat-dropdown-renderer" slot="dropdown-trigger" aria-label$="[[label]]">\n    <div id="label-text" class="style-scope ytd-flat-dropdown-renderer">[[label]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-flat-dropdown-renderer">\n    </yt-icon>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-flat-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return zIN=A},{mode:1});var MNN;var uZ=function(){var A=_.G.apply(this,arguments)||this;A.quizOptions=[];A.explanationPlaceholderText="";A.optionPlaceholderText="";A.correctAnswerIndex=-1;A.isMarkAnswerTooltipShown=!1;A.timer=0;return A};
_.g(uZ,_.G);_.P=uZ.prototype;_.P.dataChanged=function(){this.optionPlaceholderText=_.vG(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.vG(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.P.onMarkCorrectAnswer=function(A){var L,O=((L=this.quizOptions[this.correctAnswerIndex])==null?void 0:L.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[A.model.index]=Object.assign({},this.quizOptions[A.model.index],{explanationText:O,isCorrect:!0});this.correctAnswerIndex=A.model.index;this.quizOptions=[].concat(_.le(this.quizOptions))};
_.P.updatePlaceholderTexts=function(){for(var A=!1,L=[],O=0;O<this.quizOptions.length;O++){var X=this.optionPlaceholderText+" "+(O+1),x=void 0;((x=this.quizOptions[O])==null?void 0:x.placeholderText)!==X?(A=!0,L.push(Object.assign({},this.quizOptions[O],{placeholderText:X}))):L.push(this.quizOptions[O])}A&&(this.quizOptions=L);this.isValid()?_.P4(this.hostElement,"yt-commentbox-post-enable"):_.P4(this.hostElement,"yt-commentbox-post-disable")};
_.P.getSimpleString=function(A){return _.vG(A)};
_.P.createQuizOptions=function(A){var L=[],O;A=(O=A==null?void 0:A.minQuizOptions)!=null?O:0;for(O=0;O<A;O++)L.push(this.createQuizOption());return L};
_.P.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.le(this.quizOptions),[this.createQuizOption()]))};
_.P.onInput=function(){this.quizOptions=[].concat(_.le(this.quizOptions))};
_.P.onExplanationInput=function(){_.P4(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.P.onRemoveQuizOption=function(A){this.quizOptions.splice(A.model.index,1);A.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:A.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.le(this.quizOptions));this.quizOptions.length===0&&_.P4(this.hostElement,"yt-quiz-attachment-dismiss")};
_.P.updateHintRenderer=function(){var A=this;clearTimeout(this.timer);this.timer=setTimeout(function(){A.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.P.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var A=0,L=0,O=_.d(this.quizOptions),X=O.next();!X.done;X=O.next()){X=X.value;var x=void 0;if(((x=X.optionText)==null?void 0:x.trim())!==""||X.isCorrect){X.isCorrect&&L++;x=void 0;if(this.hasCustomOptionText&&((x=X.optionText)==null?void 0:x.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;A++}}return A>=
Number(this.editorInfo.minQuizOptions)&&L===1};
_.P.getPostCreateOptions=function(){for(var A=[],L=_.d(this.quizOptions),O=L.next();!O.done;O=L.next()){O=O.value;var X=void 0;((X=O.optionText)==null?void 0:X.trim())!==""&&A.push({pollOption:{text:O.optionText,explanation:O.explanationText},isCorrect:O.isCorrect})}return A};
_.P.getExplanationText=function(){var A;return((A=this.quizOptions[this.correctAnswerIndex])==null?void 0:A.explanationText)||""};
_.P.maybeDisplayMarkAnswerEduToolTip=function(){var A,L,O,X,x,J,Y;this.shouldShowMarkAnswerTooltip()&&((A=this.editorInfo)==null?0:(L=A.markAnswerButton)==null?0:(O=L.buttonRenderer)==null?0:(X=O.hint)==null?0:(x=X.hintRenderer)==null?0:(J=x.content)==null?0:(Y=J.bubbleHintRenderer)==null?0:Y.text)&&(_.DY.getInstance(),A=el(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,(A==null?void 0:A.length)>0&&this.optionSelectors&&_.qb(A[0],this.optionSelectors[0]))};
_.P.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var A=0,L=_.d(this.quizOptions),O=L.next();!O.done;O=L.next()){O=O.value;var X=void 0;((X=O.optionText)==null?void 0:X.trim())!==""&&A++;if(O.isCorrect)return!1}return A<2?!1:!0};
_.P.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.P.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.P.updateOptionTextFromBinding=function(A){if(A.target){var L=Array.from(_.YJ(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(A.target);if(L>=0){var O;this.quizOptions[L].optionText=(O=A.detail.value)!=null?O:""}}};
_.v2.Object.defineProperties(uZ.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var A,L,O=(A=this.editorInfo)==null?void 0:(L=A.addOptionButton)==null?void 0:L.buttonRenderer;O&&(O.style="STYLE_SUGGESTIVE",O.size="SIZE_SMALL",O.isDisabled=!this.isAllowedToAddOption);return(O==null?0:O.text)?O:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var A,L;return this.quizOptions.length<((L=(A=this.editorInfo)==null?void 0:A.maxQuizOptions)!=null?L:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(A){var L;return(L=A.optionText)==null?void 0:L.trim()})}}});
uZ.prototype.updatePlaceholderTexts=uZ.prototype.updatePlaceholderTexts;uZ.prototype.dataChanged=uZ.prototype.dataChanged;_.I([_.K(),_.Z("design:type",Object)],uZ.prototype,"editorInfo",void 0);_.I([_.K(),_.Z("design:type",Array)],uZ.prototype,"quizOptions",void 0);_.I([_.K(),_.Z("design:type",Object)],uZ.prototype,"explanationPlaceholderText",void 0);_.I([_.gd(".option-selector-button"),_.Z("design:type",Array)],uZ.prototype,"optionSelectors",void 0);
_.I([_.iy("editorInfo"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],uZ.prototype,"dataChanged",null);_.I([_.r("editorInfo","isAllowedToAddOption","quizOptions"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],uZ.prototype,"addAnswerButton",null);_.I([_.r("editorInfo","quizOptions"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],uZ.prototype,"isAllowedToAddOption",null);
_.I([_.iy("quizOptions"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],uZ.prototype,"updatePlaceholderTexts",null);_.I([_.r("quizOptions"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],uZ.prototype,"hasCustomOptionText",null);_.I([_.Q({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],uZ);
_.m(uZ,"ytd-backstage-quiz-editor-renderer",function(){if(MNN!==void 0)return MNN;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return MNN=A},{mode:2});var $e3;var ahV=(Kv.FIRSTDAYOFWEEK+1)%7;var k4V;var Ueu=[],v73=0,o7L=0;v73=0;o7L=24;if(.25*(o7L-v73)<0)k4V=[];else{for(var Ax3=v73;Ax3<o7L;Ax3+=.25)Ueu.push(Ax3);k4V=Ueu}var LHJ=k4V.map(function(A){A=A*60*60;return{secondsSinceMidnight:A,text:(new am(7)).format(new Date(0,0,0,0,0,A))}});var O87;var TL=function(){var A=_.G.apply(this,arguments)||this;A.skipNextOpenDialog=!1;A.errorMessage="";A.previousMonthLabel=_.b3("PREVIOUS_MONTH_LABEL");A.nextMonthLabel=_.b3("NEXT_MONTH_LABEL");return A};
_.g(TL,_.G);_.P=TL.prototype;_.P.attached=function(){var A=this,L=new MutationObserver(function(){A.JSC$16691_calendarMain.scrollHeight>0&&(L.disconnect(),A.calendarConfig&&A.calendarConfig.selectedDate&&A.scrollToDate())});
L.observe(this.JSC$16691_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){L.disconnect()},1E3)};
_.P.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.P.onDateTextChange=function(){if(this.calendarConfig){var A=this.validateDateText();A.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(A.details)):this.textbox.setAttribute("invalid","")}};
_.P.handleDayClick=function(A){A.model.day.date&&(this.commitDate(A.model.day.date),this.dialog.close())};
_.P.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var A=zXp(this.calendarConfig.selectedDate,this.renderData);A!==void 0&&this.JSC$16691_calendarMain.scrollToIndex(A)}};
_.P.scrollToNextMonth=function(){this.JSC$16691_calendarMain.scrollToIndex(this.JSC$16691_calendarMain.firstVisibleIndex+1)};
_.P.scrollToPrevMonth=function(){this.JSC$16691_calendarMain.firstVisibleIndex===0&&this.JSC$16691_calendarMain.scrollTo(0,0);this.JSC$16691_calendarMain.scrollToIndex(this.JSC$16691_calendarMain.firstVisibleIndex-1)};
_.P.onFormSubmit=function(A){A.preventDefault();this.calendarConfig&&(A=this.validateDateText(),A.isValid&&(this.commitDate(A.details),this.dialog.close()))};
_.P.onEscOrClickingOutside=function(A){A=A.detail.path&&!!A.detail.path.length&&A.detail.path[0];if(A.classList.contains("ytd-calendar-date-picker")){A===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var L=0;L<this.dropdownButton.children.length;L++)this.dropdownButton.children[L]===A&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}A=this.textbox.value!==this.dateText;L=this.validateDateText();A&&L.isValid&&this.commitDate(L.details);this.dialog.close();this.textbox.value=
this.dateText};
_.P.commitDate=function(A){this.calendarConfig&&(this.set("calendarConfig.selectedDate",A),_.P4(this.hostElement,"ytd-calendar-date-selected",A))};
_.P.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var A=this.textbox.value;var L=new Date;A=(new ufP(2)).parse(A,L,{validate:!0})===A.length?WOP(L):void 0;if(!A)return this.errorMessage=_.b3("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};L=this.calendarConfig.start;var O=this.calendarConfig.end;if(fdO(A,L))return this.errorMessage=_.b3("ENTER_DATE_OR_LATER",{allowed_date:jiD(L)}),{isValid:!1,details:void 0};if(fdO(O,A))return this.errorMessage=
_.b3("ENTER_DATE_OR_EARLIER",{allowed_date:jiD(O)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:A}};
_.v2.Object.defineProperties(TL.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?jiD(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var A=this.calendarConfig,L=[],O=0;O<7;O++)L.push(Kv.NARROWWEEKDAYS[(O+ahV)%7]);O=[];for(var X=new Date(A.start.year,A.start.month);X.getFullYear()<A.end.year||X.getFullYear()===A.end.year&&X.getMonth()<=A.end.month;){var x=O,J=x.push,Y=X.getFullYear(),T=X.getMonth(),V=A,E=void 0,n=[],t=Object.freeze({extraCssClass:"invisible",debugClass:""}),b=new Date(Y,T),S=WOP(b);b=b.getDay();for(var w=WOP(new Date);S.month===
T;){b!==ahV&&E||(E=Array.from({length:7}).fill(t),n.push(E));var l={date:{year:Y,month:T,day:S.day},extraCssClass:"",debugClass:""};V.selectedDate&&l.date&&mj9(l.date,V.selectedDate)&&(l.extraCssClass+=" selected");if(fdO(S,V.start)||fdO(V.end,S))l.extraCssClass+=" disabled";mj9(S,w)&&(l.extraCssClass+=" today");l.extraCssClass=l.extraCssClass.trim();E[(b-ahV+7)%7]=l;S=yf9(S);b=(b+1)%7}J.call(x,{weeks:n,monthLabel:Kv.SHORTMONTHS[T]+" "+Y,year:Y,month:T,monthLabelExtraCssClass:n[0][2]===t?"shift-down-label":
""});X.setMonth(X.getMonth()+1)}return{months:O,daysOfWeekLabel:L}}}}});
TL.prototype.onEscOrClickingOutside=TL.prototype.onEscOrClickingOutside;TL.prototype.scrollToDate=TL.prototype.scrollToDate;_.I([_.K(),_.Z("design:type",Object)],TL.prototype,"calendarConfig",void 0);_.I([_.K(),_.Z("design:type",Object)],TL.prototype,"skipNextOpenDialog",void 0);_.I([_.K(),_.Z("design:type",Object)],TL.prototype,"errorMessage",void 0);_.I([_.K(),_.Z("design:type",Object)],TL.prototype,"previousMonthLabel",void 0);
_.I([_.K(),_.Z("design:type",Object)],TL.prototype,"nextMonthLabel",void 0);_.I([_.qR("#textbox"),_.Z("design:type",HTMLInputElement)],TL.prototype,"textbox",void 0);_.I([_.qR("#calendar-dialog"),_.Z("design:type",Object)],TL.prototype,"dialog",void 0);_.I([_.qR("#calendar-main"),_.Z("design:type",Object)],TL.prototype,"JSC$16691_calendarMain",void 0);_.I([_.qR("#date-picker"),_.Z("design:type",HTMLElement)],TL.prototype,"dropdownButton",void 0);
_.I([_.r("calendarConfig.selectedDate"),_.Z("design:type",String),_.Z("design:paramtypes",[])],TL.prototype,"dateText",null);_.I([_.r("calendarConfig","calendarConfig.selectedDate"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],TL.prototype,"renderData",null);_.I([_.hT("renderData","calendarConfig.selectedDate"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],TL.prototype,"scrollToDate",null);
_.I([_.by("iron-overlay-canceled"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],TL.prototype,"onEscOrClickingOutside",null);_.I([_.yU({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],TL);
_.m(TL,"ytd-calendar-date-picker",function(){if(O87!==void 0)return O87;var A=document.createElement("template");_.p(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-calendar-date-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button class="style-scope ytd-calendar-date-picker">\n  <tp-yt-paper-button id="date-picker" class="dropdown-trigger style-scope ytd-calendar-date-picker" slot="dropdown-trigger" aria-labelledby="date-label-text" on-tap="openPicker">\n    <div id="date-label-text" class="style-scope ytd-calendar-date-picker">[[dateText]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" label="[[previousMonthLabel]]" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" label="[[nextMonthLabel]]" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return O87=A},{mode:2});var XsN=_.b3("UTC_OFFSET_FORMAT",{utc_offset:(new am("Z")).format(new Date)}),xPV=(new Date).getTimezoneOffset()*-60,sTj=new Date,Jxj,PwH=$B(sTj.getTimezoneOffset());Jxj=Win(zB6(PwH,sTj));var dPH=_.b3("LOCAL_TIME_GMT_LABEL",{gmt_text:Jxj.replace("+0","+").replace("-0","-").replace(":00","")}),VC=function(){var A=_.G.apply(this,arguments)||this;A.selectedTimeIndex=0;A.selectedTimezoneIndex=0;A.timeOfDayOptions=LHJ;return A};
_.g(VC,_.G);_.P=VC.prototype;_.P.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var A=ZSO();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=A,this.selectedTimeIndex=0;else{var L=HSd(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},A,{selectedDate:L.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(O){return O.secondsSinceMidnight===L.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.P.onDatePicked=function(A){this.selectedDate=A.detail};
_.P.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.P4(this.hostElement,"ytd-date-time-selection-cancelled")};
_.P.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var A=this.selectedDate;A=new Date(A.year,A.month,A.day);_.P4(this.hostElement,"ytd-date-time-selection-update",Math.floor(A.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+A.getTimezoneOffset()*60))}};
_.P.getTimezoneFormat=function(A){return A.localizedDisplayText?A.localizedDisplayText:_.b3("TIMEZONE_FORMAT",{utc_offset_text:""+A.localizedUtcOffset,city_name:""+A.localizedName})};
_.P.updateSelectedTimeIndexFromBinding=function(A){this.selectedTimeIndex=A.detail.value};
_.P.updateSelectedTimezoneIndexFromBinding=function(A){this.selectedTimezoneIndex=A.detail.value};
_.v2.Object.defineProperties(VC.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var A=this.data.timezoneOptions;var L={name:"Etc/Unknown",localizedName:_.b3("LOCAL_TIME_LABEL"),localizedUtcOffset:XsN,utcOffsetSec:""+xPV,localizedDisplayText:dPH};A?A.length&&A[0].name!==L.name&&(A[0].localizedDisplayText||(L.localizedDisplayText=""),A.unshift(L)):A=[L];return A}}},
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]}}});
VC.prototype.onDateTimeTimezoneChange=VC.prototype.onDateTimeTimezoneChange;VC.prototype.onDatePicked=VC.prototype.onDatePicked;VC.prototype.updateDefaultSelectedValue=VC.prototype.updateDefaultSelectedValue;_.I([_.K(),_.Z("design:type",Object)],VC.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],VC.prototype,"calendarConfig",void 0);_.I([_.K(),_.Z("design:type",Object)],VC.prototype,"selectedDate",void 0);_.I([_.K(),_.Z("design:type",Object)],VC.prototype,"selectedTimeIndex",void 0);
_.I([_.K(),_.Z("design:type",Object)],VC.prototype,"selectedTimezoneIndex",void 0);_.I([_.qR("#time-listbox"),_.Z("design:type",Object)],VC.prototype,"timeListBox",void 0);_.I([_.qR("#timezone-listbox"),_.Z("design:type",Object)],VC.prototype,"timezoneListBox",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],VC.prototype,"rendererStamperBehavior",void 0);_.I([_.r("data.timezoneOptions"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],VC.prototype,"timeZones",null);
_.I([_.iy("data","timeZones"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],VC.prototype,"updateDefaultSelectedValue",null);_.I([_.r("selectedTimezoneIndex","timeZones"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],VC.prototype,"selectedTimezone",null);_.I([_.r("selectedTimeIndex"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],VC.prototype,"selectedTime",null);
_.I([_.by("ytd-calendar-date-selected"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],VC.prototype,"onDatePicked",null);_.I([_.hT("selectedTimezone","selectedTime","selectedDate"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],VC.prototype,"onDateTimeTimezoneChange",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],VC);
_.m(VC,"ytd-date-time-picker-renderer",function(){if($e3!==void 0)return $e3;var A=document.createElement("template");_.p(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-time-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cancel-button-wrapper" hidden="[[!data.dismissButton]]" on-tap="onCancelButtonTap" class="style-scope ytd-date-time-picker-renderer">\n</div>\n<div id="hint" hidden="[[!data.header]]" class="style-scope ytd-date-time-picker-renderer">\n  <yt-formatted-string text="[[data.header]]" class="style-scope ytd-date-time-picker-renderer"></yt-formatted-string>\n</div>\n<div id="picker-component" class="style-scope ytd-date-time-picker-renderer">\n  <ytd-calendar-date-picker calendar-config="[[calendarConfig]]" class="style-scope ytd-date-time-picker-renderer"></ytd-calendar-date-picker>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="time-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="time-label-text">\n      <div id="time-label-text" class="style-scope ytd-date-time-picker-renderer">[[selectedTime.text]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="time-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimeIndex]]" on-selected-changed="updateSelectedTimeIndexFromBinding">\n      <template is="dom-repeat" items="[[timeOfDayOptions]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[item.text]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="timezone-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="timezone-label-text">\n      <div id="timezone-label-text" class="style-scope ytd-date-time-picker-renderer">[[getTimezoneFormat(selectedTimezone)]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="timezone-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimezoneIndex]]" on-selected-changed="updateSelectedTimezoneIndexFromBinding">\n      <template is="dom-repeat" items="[[timeZones]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[getTimezoneFormat(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n</div>\n');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return $e3=A},{mode:1});var Y9l;var D0=function(){var A=_.G.apply(this,arguments)||this;A.boundOnTapDismissButton=function(){A.dismissTapHandler()};
A.dismissButtonOverrides={size:"XS"};return A};
_.g(D0,_.G);D0.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}}}}}};
D0.prototype.dismissTapHandler=function(){_.P4(this.hostElement,"yt-backstage-attachment-dismissed")};
D0.prototype.computeAttachmentType=function(A){return A?A.backstageImageRenderer?"image":A.videoRenderer?"video":"none":"none"};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],D0.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],D0.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],D0.prototype,"attachmentPreview",void 0);_.I([_.K(),_.Z("design:type",Object)],D0.prototype,"dismissButton",void 0);_.I([_.K(),_.Z("design:type",Object)],D0.prototype,"boundOnTapDismissButton",void 0);
_.I([_.K(),_.Z("design:type",Object)],D0.prototype,"dismissButtonOverrides",void 0);_.I([_.K({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.Z("design:type",String)],D0.prototype,"attachmentType",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],D0);
_.m(D0,"ytd-backstage-dismissable-attachment",function(){if(Y9l!==void 0)return Y9l;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Y9l=A},{mode:1});var ua3;var ei=function(){var A=_.G.apply(this,arguments)||this;A.selectedVideoId=void 0;A.picker=void 0;A.dismissButtonOverrides={size:"XS"};A.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return A};
_.g(ei,_.G);_.P=ei.prototype;_.P.onServiceRequestCompleted=function(A){A.stopPropagation()};
_.P.handleAddVideoPreviewAction=function(A){A=this.get("addVideoPreviewAction",A);this.onGetVideoPreviewSuccess(A)};
_.P.configureRendererStamper=function(){return{videoPreview:{id:"video-preview",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}}}},cancelButton:{id:"cancel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dismissButtonOverrides]]"},params:{forceModernIconButton:!0}}}}}};
_.P.onLaunchVideoPicker=function(A){var L=this,O=_.vG(this.get("addVideoLinkAction.title",A)),X=this.get("addVideoLinkAction.onePickHostId",A);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",A);X&&(this.picker||(O=_.fKN(_.pWP(X).setTitle(O).addView(F7N()).addView(CK3()),function(x){L.onPickVideo(x)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",A)||O.addView("youtube"),this.picker=O.build()),this.picker.setVisible(!0))};
_.P.onPickVideo=function(A){if(A)if(A.action==="cancel")_.P4(this.hostElement,"yt-video-link-button-cancel");else if(A.action==="picked"){A=A.docs;if(!A||A.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(A=(A==null?0:A.length)?A[0]:void 0)?A.id:void 0;this.setVideoPreview()}};
_.P.setVideoPreview=function(){var A=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){A.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.P.onGetVideoPreviewSuccess=function(A){if(A&&A.videoPreview&&A.cancelButton)this.videoPreview=A.videoPreview,this.cancelButton=A.cancelButton,_.P4(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.P.onGetVideoPreviewError=function(){this.cancel()};
_.P.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.P4(this.hostElement,"yt-video-link-cancel")};
_.P.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
ei.prototype.onServiceRequestCompleted=ei.prototype.onServiceRequestCompleted;_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],ei.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],ei.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],ei.prototype,"ytRendererBehavior",void 0);
_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],ei.prototype,"ytComponentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],ei.prototype,"videoPreview",void 0);_.I([_.K(),_.Z("design:type",Object)],ei.prototype,"cancelButton",void 0);_.I([_.K(),_.Z("design:type",Object)],ei.prototype,"getVideoPreviewCommand",void 0);_.I([_.K(),_.Z("design:type",Object)],ei.prototype,"dismissButtonOverrides",void 0);
_.I([_.by("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],ei.prototype,"onServiceRequestCompleted",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],ei);
_.m(ei,"ytd-backstage-video-link-attachment",function(){if(ua3!==void 0)return ua3;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return ua3=A},{mode:1});var TiV;var VnN;var DPN;var EW=function(){return _.G.apply(this,arguments)||this};
_.g(EW,_.G);EW.prototype.dataChanged=function(){this.active=!1};
EW.prototype.onTap=function(){_.P4(this.hostElement,"yt-select-emoji-suggestion",this.data)};
EW.prototype.identity=function(A){return A};
_.v2.Object.defineProperties(EW.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var A,L,O,X;if((A=this.data)==null?0:(L=A.image)==null?0:(O=L.thumbnails)==null?0:(X=O[0])==null?0:X.url)return A=this.data.image.thumbnails[0].url,A.startsWith("data:image/svg+xml")?N0(A):_.RP(A)}}});
EW.prototype.dataChanged=EW.prototype.dataChanged;_.I([_.K(),_.Z("design:type",Object)],EW.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],EW.prototype,"active",void 0);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],EW.prototype,"dataChanged",null);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],EW.prototype,"imageSrc",null);
_.I([_.Q({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],EW);
_.m(EW,"ytd-emoji-suggestion",function(){if(DPN!==void 0)return DPN;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return DPN=A},{mode:1});var eRn=/.*([:@#].*?)$/,np=function(){var A=_.G.apply(this,arguments)||this;A.suggestions=[];A.suggestionIndex=-1;A.JSC$16719_lastSuggestionRange=null;return A};
_.g(np,_.G);_.P=np.prototype;_.P.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.P.getSuggestions=function(A){var L=[],O=$uL(this.emojiManager,A.substr(0,3));if(O)for(var X in O)if(X.toLocaleLowerCase().indexOf(A)===0){var x=O[X];if(x&&x.emojiId){x=ar(this.emojiManager,x.emojiId);var J=void 0,Y=void 0,T=void 0,V=void 0,E=((J=x)==null?0:J.isCustomEmoji)?(Y=x)==null?void 0:(T=Y.shortcuts)==null?void 0:T[0]:(V=x)==null?void 0:V.emojiId;J=void 0;L.push({suggestion:{image:(J=x)==null?void 0:J.image,alt:E,text:X}});if(L.length>=64)break}}return L?L.sort(function(n,t){return t.suggestion.text<
n.suggestion.text?-1:t.suggestion.text===n.suggestion.text?0:1}):null};
_.P.insertSuggestion=function(A){_.P4(this.hostElement,"yt-insert-suggestion",{range:this.JSC$16719_lastSuggestionRange,text:A.alt});this.dropdown.opened=!1};
_.P.updateSuggestionsAtCaret=function(A){this.updateSuggestions(A,this.retrieveTextBeforeRange(A))};
_.P.offsetStartOfRangeBy=function(A,L){A.startOffset>=L&&A.setStart(A.startContainer,A.startOffset-L)};
_.P.updateSuggestions=function(A,L){var O=this;this.JSC$16719_lastSuggestionRange&&(this.JSC$16719_lastSuggestionRange.detach(),this.JSC$16719_lastSuggestionRange=null);if((L=eRn.exec(L))&&L.length&&(L=L[L.length-1].toLocaleLowerCase(),L.length>2||L===":_")&&(this.offsetStartOfRangeBy(A,L.length),this.JSC$16719_lastSuggestionRange=A,(A=this.getSuggestions(L))&&A.length)){this.suggestions=A;_.kd(this,function(){O.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(A.length-1);return}this.dropdown.opened=!1};
_.P.onKeyDown=function(A){if(this.dropdown.opened)switch(A.key){case "Escape":this.dropdown.opened=!1;A.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);A.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);A.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),A.preventDefault()}};
_.P.onKeyUp=function(A,L){switch(A.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(L);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(L)}};
_.P.onKeyPress=function(A){A.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),A.preventDefault())};
_.P.changeSuggestionIndex=function(A){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(A+this.suggestions.length)%this.suggestions.length,A=this.dropdownContent.children[this.suggestionIndex],A.active=!0,this.dropdownContent.scrollTop=A.offsetTop)};
_.P.retrieveTextBeforeRange=function(A){var L=A.startContainer;return L&&L.nodeType===Node.TEXT_NODE?L.textContent.substr(0,A.startOffset):""};
np.prototype.onKeyPress=np.prototype.onKeyPress;np.prototype.onKeyUp=np.prototype.onKeyUp;np.prototype.onKeyDown=np.prototype.onKeyDown;_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],np.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Array)],np.prototype,"suggestions",void 0);_.I([_.K(),_.Z("design:type",_.Mr)],np.prototype,"emojiManager",void 0);_.I([_.K(),_.Z("design:type",Number)],np.prototype,"verticalSuggestionsOffset",void 0);
_.I([_.qR("#dropdown"),_.Z("design:type",Object)],np.prototype,"dropdown",void 0);_.I([_.qR("#dropdown-content"),_.Z("design:type",HTMLDivElement)],np.prototype,"dropdownContent",void 0);_.I([_.by("keydown"),_.Z("design:type",Function),_.Z("design:paramtypes",[KeyboardEvent]),_.Z("design:returntype")],np.prototype,"onKeyDown",null);_.I([_.by("keyup"),_.Z("design:type",Function),_.Z("design:paramtypes",[KeyboardEvent,Range]),_.Z("design:returntype")],np.prototype,"onKeyUp",null);
_.I([_.by("keypress"),_.Z("design:type",Function),_.Z("design:paramtypes",[KeyboardEvent]),_.Z("design:returntype")],np.prototype,"onKeyPress",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-emoji-input"})],np);
_.m(np,"ytd-emoji-input",function(){if(VnN!==void 0)return VnN;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return VnN=A},{mode:2});var Esn;var tm=function(){var A=_.G.apply(this,arguments)||this;A.hasMaxOptions=!1;return A};
_.g(tm,_.G);_.P=tm.prototype;_.P.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.P.setPrefilledChoices=function(A){var L=this;this.set("pollOptions",[]);var O;for(O=0;O<Math.min(A.length,this.data.maxPollOptions);O++)this.push("pollOptions",A[O].substring(0,this.data.maxPollOptionChars));for(;O<this.data.minPollOptions;O++)this.push("pollOptions","");this.hasMaxOptions=O>=this.data.maxPollOptions;_.kd(this,function(){for(var X=L.pollOptions,x=_.YJ(L.hostElement).querySelectorAll(".poll-option-input"),J=0;J<x.length;J++)x[J].value=X[J]})};
_.P.focusChanged=function(){_.eq(this.hostElement)};
_.P.onInput=function(){var A=this;_.$J(this,"onInput",function(){A.isValid()?_.P4(A.hostElement,"yt-commentbox-post-enable"):_.P4(A.hostElement,"yt-commentbox-post-disable")},300)};
_.P.setPollOptions=function(){var A=[],L,O=((L=this.data)==null?0:L.minPollOptions)?this.data.minPollOptions:0;for(L=0;L<O;L++)A.push("");return A};
_.P.addPollOption=function(){var A=this;_.P4(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.c1.addLowPriorityJob(function(){var L;(L=_.YJ(A.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||L.focus()})};
_.P.onRemovePollOption=function(A){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.P4(this.hostElement,"yt-poll-attachment-dismiss")):(A=this.repeat.indexForElement(A.target.parentNode),A!==null&&(this.splice("pollOptions",A,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.P4(this.hostElement,"yt-commentbox-post-enable"))))};
_.P.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.P.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var A=0,L=this.pollOptions.length;A<L;A++)if(this.pollOptions[A].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.P.getPollOptions=function(){return this.pollOptions};
_.P.setPollOptionsFromInputs=function(){for(var A=_.YJ(this.hostElement).querySelectorAll(".poll-option-input"),L=0;L<A.length;L++)this.pollOptions[L]=A[L].value.trim()};
_.P.clearPollOptions=function(){var A=_.YJ(this.hostElement).querySelectorAll(".poll-option-input");A=_.d(A);for(var L=A.next();!L.done;L=A.next())L.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.P.getSimpleString=function(A){return _.vG(A)};
_.P.updateValueFromBinding=function(A){if(A.target&&this.pollOptions){var L=Array.from(_.YJ(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(A.target);if(L>=0){var O;this.pollOptions[L]=(O=A.detail.value)!=null?O:"";this.notifyPath("pollOptions."+L)}}};
tm.prototype.dataChanged=tm.prototype.dataChanged;_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],tm.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],tm.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Array)],tm.prototype,"pollOptions",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],tm.prototype,"hasMaxOptions",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],tm.prototype,"enableCreationBox",void 0);
_.I([_.qR("#repeat"),_.Z("design:type",QU)],tm.prototype,"repeat",void 0);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],tm.prototype,"dataChanged",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-poll-attachment"})],tm);
_.m(tm,"ytd-poll-attachment",function(){if(Esn!==void 0)return Esn;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Esn=A},{mode:2});var nsj;var tnJ;var b8j;var hRu;var bZ=function(){return _.G.apply(this,arguments)||this};
_.g(bZ,_.G);_.v2.Object.defineProperties(bZ.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],bZ.prototype,"rendererBehaviors",void 0);_.I([_.K(),_.Z("design:type",Object)],bZ.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],bZ.prototype,"focused",void 0);_.I([_.K({reflectToAttribute:!0}),_.r("focused"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],bZ.prototype,"ariaSelected",null);_.I([_.yU({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],bZ);
_.m(bZ,"yt-user-mention-suggestion-renderer",function(){if(hRu===void 0){var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;b8j===void 0&&(b8j=document.createElement("template"));var X=b8j;O.call(L,X.content.cloneNode(!0),A.content.firstChild);hRu=A}A=hRu;return A},{mode:2});var S9j;var q9N;var hm=function(){var A=_.G.apply(this,arguments)||this;A.focusedSuggestionIndex=-1;return A};
_.g(hm,_.G);_.P=hm.prototype;_.P.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.P.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.P.setFocusedSuggestionIndex=function(A){!this.data||!this.data.suggestions||A<0||A>=this.data.suggestions.length||(this.focusedSuggestionIndex=A,A=this.getSuggestionId(A),this._setFocusedSuggestionId(A))};
_.P.advanceSuggestion=function(A){this.focusedSuggestionIndex===-1||A!==-1&&A!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+A),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.P.ensureSuggestionVisible=function(A){A=this.getSuggestionId(A);A=_.YJ(this.hostElement).querySelector("[id="+A+"]");A!=null&&(A.offsetTop<this.hostElement.scrollTop?A.scrollIntoView(!0):A.offsetTop+A.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&A.scrollIntoView(!1))};
_.P.getSuggestionId=function(A){return"user-mention-suggestion-"+A};
_.P.onSuggestionTap=function(A){var L=_.q(A.model.item,fT6);this.ytRendererBehavior.logExplicitClick(L);_.P4(this.hostElement,"yt-user-mention-suggestion-selected",{data:L,index:A.model.index})};
_.P.onSuggestionMouseMove=function(A){A.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(A.model.index)};
_.P.isSuggestionFocused=function(A,L){return A===L};
_.P.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.P.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.A3("focused-suggestion-id-changed",this.focusedSuggestionId))};
hm.prototype.focusedSuggestionIdChangedForBinding=hm.prototype.focusedSuggestionIdChangedForBinding;hm.prototype.onDomChange=hm.prototype.onDomChange;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],hm.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],hm.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],hm.prototype,"focusedSuggestionIndex",void 0);_.I([_.K({readOnly:!0}),_.Z("design:type",String)],hm.prototype,"focusedSuggestionId",void 0);
_.I([_.by("dom-change"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],hm.prototype,"onDomChange",null);_.I([_.hT("focusedSuggestionId"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],hm.prototype,"focusedSuggestionIdChangedForBinding",null);_.I([_.yU({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],hm);
_.m(hm,"yt-user-mention-suggestions-dropdown",function(){if(q9N===void 0){var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;S9j===void 0&&(S9j=document.createElement("template"));var X=S9j;O.call(L,X.content.cloneNode(!0),A.content.firstChild);q9N=A}A=q9N;return A},{mode:2});var Si=function(){var A=_.G.apply(this,arguments)||this;A.suggestionsResponse=null;A.activeMention=null;A.selectionChangeListener=A.onSelectionChange.bind(A);A.handlesEnabled=_.h("enable_handles_in_mention_suggest_posts");A.handlesInMentionSuggestionsEnabled=_.h("handles_in_mention_suggest_posts");A.zeroPrefixMentionSuggestionEnabled=_.h("enable_zero_prefix_mention_suggestion_web");A.pendingQuery=null;A.flowNonce=null;return A};
_.g(Si,_.G);_.P=Si.prototype;_.P.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.P.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.P.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.P.hasSuggestions=function(A){return!!(A&&A.suggestions&&A.suggestions.length>0)};
_.P.onInput=function(){var A=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var L=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),O=this.activeMention.JSC$12313_getText().slice(-1)===" ",X=this.activeMention.JSC$12313_getText().slice(-2,-1)===" ",x="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$12313_getText().slice(-2,
-1))>=0;x=this.zeroPrefixMentionSuggestionEnabled&&x;if(this.activeMention.isCollapsed()||(L||X||x)&&O)this.cancelActiveMention();else{var J=this.activeMention.JSC$12313_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.$J(this,"requestSuggestions",function(){A.requestSuggestions(J)},100)}}}};
_.P.onServiceRequestSent=function(A){A.stopPropagation()};
_.P.onServiceRequestCompleted=function(A){A.stopPropagation();A=A.detail.data;A.query&&(!this.pendingQuery||this.pendingQuery!==A.query)||!this.zeroPrefixMentionSuggestionEnabled&&A.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=A,this.hasSuggestions(A)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.P.onServiceRequestError=function(A){A.stopPropagation()};
_.P.onUserMentionSuggestionSelected=function(A){this.selectSuggestion(A.detail.data,A.detail.index)};
_.P.onSelectionChange=function(){if(this.activeMention){var A=_.w1(),L=this.activeMention.JSC$12313_containsRange(A);A=A&&this.containsHelper(this.dropdown,A.getContainer());L||A||this.cancelActiveMention()}};
_.P.containsHelper=function(A,L){var O;if(((O=window.ShadyDOM)==null?void 0:O.noPatch)===!0)return A.contains(L);for(;L;){if(L===A)return!0;L=L instanceof ShadowRoot?L.host:L.parentNode}return!1};
_.P.maybeStartSuggest=function(){var A=_.w1();if(A&&A.isCollapsed()){var L=A.JSC$12313_getStartNode(),O=A.JSC$12313_getStartOffset();if(L instanceof Text&&!(O<1)){var X=L.textContent;!(X=X&&X.charAt(O-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(X)<0||(this.activeMention=_.M_(L,O-1,A.JSC$12313_getEndNode(),A.JSC$12313_getEndOffset()),this.flowNonce=li(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.P.updateActiveMention=function(){if(this.activeMention){var A=_.w1();A&&A.isCollapsed()&&(this.activeMention=_.M_(this.activeMention.JSC$12313_getStartNode(),this.activeMention.JSC$12313_getStartOffset(),A.JSC$12313_getEndNode(),A.JSC$12313_getEndOffset()))}};
_.P.requestSuggestions=function(A){if(this.activeMention){var L={suggestions_query:A};this.pendingQuery=A;_.TZ(this.hostElement,[this.suggestionsEndpoint,L])}};
_.P.cancelActiveMention=function(){this.activeMention&&this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STOPPED");this.suggestionsResponse=this.pendingQuery=this.activeMention=null;this.dropdown.clearFocusedSuggestion()};
_.P.focusPreviousSuggestion=function(A){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),A.preventDefault())};
_.P.focusNextSuggestion=function(A){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),A.preventDefault())};
_.P.selectFocusedSuggestion=function(A){if(this.hasSuggestions(this.suggestionsResponse)){var L=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.q(L,fT6)&&(this.selectSuggestion(_.q(L,fT6),this.dropdown.focusedSuggestionIndex),A.preventDefault())}};
_.P.selectSuggestion=function(A,L){if(A){var O=this.activeMention;if(O){var X=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&A.handle?_.W6(X,"\u00a0\u2068@"+A.handle+"\u2069\u00a0"):this.handlesEnabled?_.W6(X,"\u00a0"+A.displayName+"\u00a0"):_.W6(X,"\u00a0@"+A.displayName+"\u00a0");yo(X,"/channel/"+A.channelId);X.classList.add("yt-formatted-string","yt-simple-endpoint");X.setAttribute("spellcheck","false");O.isCollapsed()||O.JSC$12313_removeContents();O.insertNode(X,!0);A=document.createTextNode(" ");
X.parentNode.insertBefore(A,X.nextSibling);window.getSelection().collapse(A,1);L={suggestionSelected:{suggestionIndex:L}};if(this.zeroPrefixMentionSuggestionEnabled){var x;L.suggestionSelected.isZeroPrefix=((x=this.suggestionsResponse)==null?void 0:x.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",L);this.cancelActiveMention();_.P4(this.hostElement,"yt-mention-inserted")}}};
_.P.getPositionTarget=function(A){return A&&A.getBrowserRangeObject()};
_.P.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.P.onFocusedSuggestionIdChanged=function(A){var L=_.KPu(this.hostElement)[0];L&&(A.detail.value?L.setAttribute("aria-activedescendant",A.detail.value):L.removeAttribute("aria-activedescendant"))};
_.P.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.P.logGELEvent=function(A,L){A={eventType:A,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};L&&(A=Object.assign(A,L));_.lg("userMentionAutoCompleteBoxEvent",A)};
Si.prototype.onDomChange=Si.prototype.onDomChange;Si.prototype.onUserMentionSuggestionSelected=Si.prototype.onUserMentionSuggestionSelected;Si.prototype.onServiceRequestError=Si.prototype.onServiceRequestError;Si.prototype.onServiceRequestCompleted=Si.prototype.onServiceRequestCompleted;Si.prototype.onServiceRequestSent=Si.prototype.onServiceRequestSent;Si.prototype.onInput=Si.prototype.onInput;_.I([_.N(_.lh),_.Z("design:type",Object)],Si.prototype,"ironA11yKeysBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],Si.prototype,"suggestionsEndpoint",void 0);_.I([_.K(),_.Z("design:type",Object)],Si.prototype,"suggestionsResponse",void 0);_.I([_.K(),_.Z("design:type",Object)],Si.prototype,"activeMention",void 0);_.I([_.qR("#dropdown"),_.Z("design:type",Object)],Si.prototype,"dropdown",void 0);_.I([_.qR("#iron-dropdown"),_.Z("design:type",Object)],Si.prototype,"ironDropdown",void 0);
_.I([_.by("input"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],Si.prototype,"onInput",null);_.I([_.by("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Si.prototype,"onServiceRequestSent",null);_.I([_.by("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Si.prototype,"onServiceRequestCompleted",null);
_.I([_.by("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Si.prototype,"onServiceRequestError",null);_.I([_.by("yt-user-mention-suggestion-selected"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Si.prototype,"onUserMentionSuggestionSelected",null);
_.I([_.by("dom-change"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Si.prototype,"onDomChange",null);_.I([_.yU({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],Si);
_.m(Si,"yt-user-mention-autosuggest-input",function(){if(tnJ===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;nsj===void 0&&(nsj=document.createElement("template"));var X=nsj;O.call(L,X.content.cloneNode(!0),A.content.firstChild);tnJ=A}A=tnJ;return A},{mode:2});var qt=null;
_.RJ({is:"ytd-commentbox",_template:function(){if(TiV!==void 0)return TiV;var A=document.createElement("template");_.p(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commentbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="identity-chip" hidden="[[computeHideIdentityChipRenderer_(isLoading, zeroStepChannelCreationRenderer)]]" class="style-scope ytd-commentbox"></div>\n<div id="thumbnail-input-row" class="style-scope ytd-commentbox">\n  <yt-img-shadow id="author-thumbnail" height="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" hidden="[[computeHideAuthorThumbnail_(isLoading, zeroStepChannelCreationRenderer)]]" thumbnail="[[data.authorThumbnail]]" width="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" class="style-scope ytd-commentbox">\n  </yt-img-shadow>\n  <div id="main" hidden="[[isLoading]]" class="style-scope ytd-commentbox">\n    <div id="divider-line" class="style-scope ytd-commentbox"></div>\n    \n    <div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-commentbox" hidden="[[hasPollOrQuizRendererInEditDialog_]]">\n      <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-commentbox">\n        <div slot="after-input" class="paper-input-input style-scope ytd-commentbox">\n          <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-commentbox">\n            <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-commentbox">\n              <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[getSimpleString(placeholderFormattedText_)]]" plaintext-only="true" required="true" split-lines="1" text="[[data.editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-commentbox"></yt-formatted-string>\n            </yt-user-mention-autosuggest-input>\n          </ytd-emoji-input>\n          <div id="external-links-banner" hidden="[[!isExternalLinksBannerDisplayed]]" class="style-scope ytd-commentbox">\n            <yt-formatted-string text="[[data.advancedTierFeatures.externalLinks.verificationBannerMessage]]" class="style-scope ytd-commentbox">\n            </yt-formatted-string>\n            <ytd-button-renderer id="verification-button" data="[[data.advancedTierFeatures.externalLinks.verificationButton.buttonRenderer]]" class="style-scope ytd-commentbox">\n            </ytd-button-renderer>\n          </div>\n        </div>\n        <ytd-backstage-dismissable-attachment id="dismissable-attachment" slot="after-input" attachment-preview="[[prefilledContent_]]" dismiss-button="[[data.attachmentDismissButton]]" hidden="[[computeHideDismissableAttachment_(prefilledAttachment_)]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-dismissable-attachment>\n        <div id="attachment-preview" slot="after-input" class="style-scope ytd-commentbox"></div>\n        <div id="image-select" class="paper-input-input style-scope ytd-commentbox" hidden="[[!hasImage_]]" slot="after-input"></div>\n        <ytd-backstage-video-link-attachment id="video-link-attachment" slot="after-input" hidden="[[!hasVideo_]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-video-link-attachment>\n      </tp-yt-paper-input-container>\n    </div>\n    <ytd-poll-attachment id="poll-attachment" data="[[data.pollEditorInfo]]" hidden="[[!hasPoll_]]" class="style-scope ytd-commentbox">\n    </ytd-poll-attachment>\n    <ytd-backstage-image-poll-editor-renderer id="image-poll-attachment" data="[[data.imagePollEditorRenderer.imagePollEditorRenderer]]" editor-info="[[data.imagePollEditorInfo]]" hidden="[[!hasImagePoll_]]" class="style-scope ytd-commentbox">\n    </ytd-backstage-image-poll-editor-renderer>\n    <ytd-backstage-quiz-editor-renderer id="quiz-attachment" editor-info="[[data.quizEditorInfo]]" hidden="[[!hasQuiz_]]" class="style-scope ytd-commentbox">\n  </ytd-backstage-quiz-editor-renderer>\n    <slot name="repost-preview" class="style-scope ytd-commentbox"></slot>\n    <div id="poll-preview-edit-dialog" hidden="[[!hasPollOrQuizRendererInEditDialog_]]" class="style-scope ytd-commentbox">\n      <yt-formatted-string text="[[data.editableText]]" class="style-scope ytd-commentbox"></yt-formatted-string>\n      <div id="poll-preview" class="style-scope ytd-commentbox"></div>\n    </div>\n    <div id="footer" class="style-scope ytd-commentbox">\n      <span id="emoji-button" on-tap="onEmojiButtonTap_" hidden="[[!isEmojiButtonDisplayed]]" class="style-scope ytd-commentbox"></span>\n      <div id="attachments" hidden="[[computeHideAttachmentButtons_(data, addedAttachment, prefilledAttachment_, errorMessage_)]]" class="style-scope ytd-commentbox">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-commentbox">\n          <ytd-button-renderer id="[[buttonId]]" data="[[getButtonRenderer(data, buttonId)]]" class="style-scope ytd-commentbox">\n          </ytd-button-renderer>\n        </template>\n      </div>\n      <div id="inline-scheduling-panel" hidden="[[!inlineSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n      <div id="footer-text" class="style-scope ytd-commentbox">\n        <yt-formatted-string id="footer-message" class$="[[computeFooterMessageClass_(alertMessage_, errorMessage_)]] style-scope ytd-commentbox" hidden="[[computeFooterMessageHidden_(alertMessage_, errorMessage_)]]" text="[[computeFooterMessage_(alertMessage_, errorMessage_)]]">\n        </yt-formatted-string>\n        <yt-formatted-string id="zero-step-footer-text" hidden="[[!zeroStepChannelCreationRenderer.footerText]]" text="[[zeroStepChannelCreationRenderer.footerText]]" class="style-scope ytd-commentbox">\n        </yt-formatted-string>\n      </div>\n      <div id="access-restrictions-selector" class="style-scope ytd-commentbox"></div>\n      <span id="char-count" hidden="[[!charLimit_]]" class="style-scope ytd-commentbox">[[charCount_]]/[[charLimit_]]</span>\n      <div id="buttons" class$="[[computeSubmitButtonClass_(dropdownSchedulePanel_, data.postOptionsMenu)]] style-scope ytd-commentbox">\n        <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancel_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <ytd-button-renderer id="submit-button" data="[[computeSubmitButton_(data, scheduleButton_)]]" disabled="[[submitButtonDisabled]]" overrides="[[computeSubmitButtonOverride(data, submitButtonDisabled, dropdownSchedulePanel_)]]" on-tap="onSubmit_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <div id="option-menu" hidden="[[dropdownSchedulePanel_]]" class="style-scope ytd-commentbox">\n          <ytd-menu-renderer data="[[data.postOptionsMenu.menuRenderer]]" disable-upgrade="[[!data.postOptionsMenu.menuRenderer]]" hidden="[[!data.postOptionsMenu.menuRenderer]]" icon="EXPAND" no-ink-on-dropdown-button="" three-dot-button-override="[[computeThreeDotButtonOverride(submitButtonDisabled)]]" tonal-override="[[modern]]" class="style-scope ytd-commentbox">\n          </ytd-menu-renderer>\n        </div>\n      </div>\n    </div>\n    <div id="scheduling-panel" hidden="[[!dropdownSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n    <div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-commentbox">\n      <span id="emoji-picker" class="style-scope ytd-commentbox"></span>\n    </div>\n  </div>\n  <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-commentbox"></tp-yt-paper-spinner-lite>\n</div>\n');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return TiV=A},
behaviors:[_.JZu.YtHostElementBehavior,_.lh,_.es.YtActionHandlerBehavior,_.v$.YtComponentBehavior,_.Db.YtRendererstamperBehavior,_.D8V.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(A,L){return _.eM(A.entities,"aadcGuidelinesStateEntityPayload",L)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(A,L){return _.eM(A.entities,"commentboxStateEntity",L)},
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 _.k5}},
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:_.h("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.h("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",_.tT(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(A){this.fire(A?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(A){this.set("submitButtonDisabled",void 0);this.clear();A&&this.computeIsEmojiButtonDisplayed_(A)&&(A=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&A.updateEmojiCategories()},
observePrefilledImage_:function(A,L,O){this.isValidPrefilledImage_(A,L,O)&&(this.prefilledAttachment_="image",this.prefilledImageData_=L,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(A,L){this.isValidPrefilledVideo_(A,L)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(A){A&&A.pollData&&A.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(A.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.gt();this.focus()},
detached:function(){document.removeEventListener("tap",_.tT(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(A){A=A.detail;A=A.isCustomEmoji?A.shortcuts[0]:A.emojiId;var L=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(L,A);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var A=_.w1();if(A){A=A.getBrowserRangeObject();for(var L=A.commonAncestorContainer;L;){if(L===this.getEditableTextArea_())return A;L=L.parentNode}}A=this.getEditableTextArea_();A=_.Bg(A,A.childNodes.length);A.select();return A.getBrowserRangeObject()},
insertTextWithEmojis_:function(A,L,O){(L=this.emojiManager.createDocumentFragment(L,!0,!1,O===void 0?!0:O))&&L.childNodes.length!==0&&(A.collapsed||A.deleteContents(),O=L.lastChild,A.insertNode(L),_.uS6(O).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var A=_.w1();if(A){var L=A.JSC$12313_getStartNode(),O=A.JSC$12313_getEndNode();if(BZp(L)&&BZp(O)){var X=A.JSC$12313_getStartOffset(),x;if(_.hW&&L.nodeType===Node.ELEMENT_NODE&&(x=_.uMn(L)))_.Bg(x,0).select();else{x=SE(L)?L:_.my(L,SE);var J=SE(O)?O:_.my(O,SE);if(x||J)if(A.isCollapsed()){if(L.nodeType===Node.TEXT_NODE){A=!0;X===L.length&&(A=!1);if(qt==="end"||qt==="right")A=!1;L=L.parentNode;A=[].concat(_.le(L.parentNode.childNodes)).indexOf(L)+(A?0:1);_.Bg(L.parentNode,
A).select()}}else x?x.previousSibling&&x.previousSibling.length>0?_.M_(O,A.JSC$12313_getEndOffset(),x.previousSibling,x.previousSibling.length-1).select():(L=document.createTextNode("\u200b"),x.parentNode.insertBefore(L,x),_.M_(O,A.JSC$12313_getEndOffset(),L,0).select()):J&&(J.nextSibling&&J.nextSibling.length>0?_.M_(L,A.JSC$12313_getStartOffset(),J.nextSibling,1).select():(O=document.createTextNode("\u200b"),J.parentNode.insertBefore(O,J.nextSibling),_.M_(L,A.JSC$12313_getStartOffset(),O,O.length).select()));
qt=null}}else qt=null}else qt=null},
leftKeyPressed_:function(){qt="left"},
rightKeyPressed_:function(){qt="right"},
endKeyPressed_:function(){qt="end"},
maybeDeleteChip_:function(){var A=vMM(!0);if(A){var L=_.w1(),O=L.JSC$12313_getStartNode();L=L.JSC$12313_getStartOffset();_.Z_(O,L,A,A.childNodes.length).select()}},
maybeBackspaceChip_:function(){var A=vMM(!1);if(A){var L=_.w1(),O=L.JSC$12313_getStartNode();L=L.JSC$12313_getStartOffset();_.Z_(O,L,A,0).select()}},
maybeBackspaceChipWordMode_:function(A){var L=_.w1();if(L.isCollapsed()){var O=L.JSC$12313_getStartNode();L=L.JSC$12313_getStartOffset();var X=oMp(O,L,!0);X&&(_.Z_(O,L,X,0).select(),document.execCommand("delete"),A.preventDefault(),A.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(A){var L=_.w1();if(L.isCollapsed()){var O=L.JSC$12313_getStartNode();L=L.JSC$12313_getStartOffset();var X=oMp(O,L,!1);X&&(_.Z_(O,L,X,X.childNodes.length).select(),document.execCommand("delete"),A.preventDefault(),A.stopImmediatePropagation())}},
onTap_:function(A){if(!A.defaultPrevented&&(A.currentTarget.tagName==="YTD-COMMENTBOX"&&SE(A.target)&&A.preventDefault(),this.isEmojiPickerDisplayed)){var L=this.$$("#emojis"),O=this.$$("#emoji-button"),X=this.getEditableTextArea_();if((A=A.path?A.path:A.composedPath&&A.composedPath())&&!A.includes(L)&&!A.includes(X)&&!A.includes(O))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(A,L,O){return A==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&L!==void 0&&L.encryptedBlobId!==null&&L.sourceExternalVideoId!==null&&O!==void 0&&O.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(A,L){return A==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!L&&!!L.videoRenderer&&!!L.videoRenderer.videoId},
isValidPrefilledAttachment_:function(A,L,O){return this.isValidPrefilledImage_(A,L,O)||this.isValidPrefilledVideo_(A,O)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.h("enable_multi_image_post_creation")){var A=this.$$("ytd-backstage-multi-image-select-renderer");A&&A.hasImages()&&A.cancel()}else(A=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&A.cancel();(A=this.$["poll-attachment"])&&this.hasPoll_&&A.clearPollOptions();(A=this.$["image-poll-attachment"])&&this.hasImagePoll_&&A.resetPollOptions();(A=this.$["quiz-attachment"])&&this.hasQuiz_&&A.resetQuizOptions();
(A=this.$["video-link-attachment"])&&this.hasVideo_&&A.cancel();(A=this.$["access-restrictions-selector"].firstElementChild)&&A.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 _.YJ(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.YJ(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(A,L){A=$jJ(A,this.emojiManager,L).cloneNode(!0);for(L=A.firstChild;L;)if(L.nodeType!==1)L=L.nextSibling;else switch(L.tagName){case "BR":var O=_.mR();_.bJu(O,L);L=O.nextSibling;break;case "DIV":(O=L.lastChild)&&L.nextSibling&&_.ZV(_.mR(),O);L.previousSibling&&(L.previousSibling.nodeType===1||L.previousSibling.nodeType===3&&!L.previousSibling.textContent.endsWith("\n"))&&_.y5(_.mR(),L);O&&O.nodeName==="BR"&&_.hg(O);O=L;L.hasChildNodes()?(L=L.firstChild,
_.hSN(O)):(L=L.nextSibling,_.hg(O));break;default:L=L.nextSibling}return AXr(A)},
onAddImageError_:function(A){A.stopPropagation();this.errorMessage_=_.Ue(A.detail)},
setTextAreaValue_:function(A){A||(A="");var L=this.getEditableFormattedString_();L.text="";this.getEditableTextArea_().innerText="";typeof A==="string"&&(A={runs:[{text:A}]});L.text=A},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();qt=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var A=this.getEditableTextArea_();A&&(_.Bg(A,A.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.ms("HTML_DIR")==="rtl"){var A=this.getEditableTextArea_(),L=this.getTextAreaValue()!==""?"auto":"rtl";A.setAttribute("dir",L)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var A;return YaD((A=this.$["quiz-attachment"])==null?void 0:A.getExplanationText())||YaD(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var A=null;if(this.isEmojiButtonDisplayed){var L=this.getInputRange_();L&&(A=this.emojiInput.retrieveTextBeforeRange(L))}this.insertText_(A,!0);this.updateCharCount_();this.setSubmitButton_();A=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=A.scrollHeight>A.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var A=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:A})},
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(A){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(A)},
onPasteEmoji_:function(A){A.preventDefault();A.stopImmediatePropagation();A=A.clipboardData.getData("text/plain");this.insertText_(A,!1,!1)},
insertText_:function(A,L,O){L=L===void 0?!1:L;O=O===void 0?!0:O;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&A){var X=this.getInputRange_().cloneRange();this.emojiManager&&X&&(L&&this.emojiInput.offsetStartOfRangeBy(X,A.length),this.insertTextWithEmojis_(X,A,O),Md_(this.getEditableTextArea_().lastChild)||(X=this.getInputRange_().cloneRange()),X&&(this.emojiInput.updateSuggestions(X,A),this.updateSuggestionOffset_(X)))}},
setSubmitButton_:function(){if(this.data){var A=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",L=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(A||L){var O=this.getTextAreaValue().trim();L=O===this.previousText_;O=!O||this.aboveCharLimit_;A&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(O=this.aboveCharLimit_);this.submitButtonDisabled=
L||O||!this.getTextLength();A&&_.h("enable_post_scheduling")&&(this.submitButtonDisabled=L&&!this.scheduledPublishTimeSec_||O)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.vG,computeCreationBoxClass_:function(A){return A?"focused":"not-focused"},
computeFooterMessageClass_:function(A,L){return L?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(A,L){return L?L:A},
computeFooterMessageHidden_:function(A,L){return!L&&!A},
computePlaceholderText_:function(A,L,O){return(O==="video"||O==="image")&&(A==null?0:A.prefilledPlaceholderText)?A==null?void 0:A.prefilledPlaceholderText:L==="poll"||L==="image-poll"?A==null?void 0:A.pollPostPlaceholderText:L==="quiz"?A==null?void 0:A.quizPostPlaceholderText:L==="image"?A==null?void 0:A.imagePostPlaceholderText:A==null?void 0:A.placeholderText},
computeHideAttachmentButtons_:function(A,L,O,X){return A===void 0?!1:X&&this.getSimpleString(X)===this.getSimpleString(A.rateLimitErrorMessage)?!0:L!=="none"||O!=="none"||!A.videoLinkButton&&!A.pollButton&&!A.imagePollButton&&!A.quizButton&&!A.imageButton},
computeHideDismissableAttachment_:function(A){return A!=="image"&&A!=="video"},
computeHasVideo_:function(A){return A==="video"},
computeHasImage_:function(A){return A==="image"},
computeHasPoll_:function(A){return A==="poll"},
computeHasImagePoll_:function(A){return A==="image-poll"},
computeHasQuiz_:function(A){return A==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(A){return A&&A.backstageAttachment?A.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!A.backstageAttachment.quizRenderer&&!A.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(A){if(this.isValidPrefilledAttachment_(A.purpose,A.prefilledImageData,A.backstageAttachment))return A.backstageAttachment},
computeEditAttachment_:function(A){if(this.computePrefilledContent_(A)===void 0)return A.backstageAttachment},
computeAuthorThumbnailDimension_:function(A,L){return A&&!L?24:40},
computeImageUploadEndpoint_:function(A){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",A)},
computeRateLimitErrorCommands_:function(A){var L,O;return A==null?void 0:(L=A.advancedTierFeatures)==null?void 0:(O=L.rateLimit)==null?void 0:O.rateLimitCommands},
computeIsBackstageComment_:function(A){return!(!A||A!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(A){return this.get("submitButton.buttonRenderer.serviceEndpoint",A)||this.get("replyButton.buttonRenderer.serviceEndpoint",A)||this.get("postButton.buttonRenderer.serviceEndpoint",A)},
computeSubmitButtonOverride:function(){if(_.h("web_modern_buttons")){var A,L;return{segmentedPosition:this.dropdownSchedulePanel_||!((A=this.data)==null?0:(L=A.postOptionsMenu)==null?0:L.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.h("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(A,L){A=this.get("submitButton.buttonRenderer",A)||this.get("replyButton.buttonRenderer",A)||this.get("postButton.buttonRenderer",A);L&&(A=L);A&&(A=Object.assign({},A),A.serviceEndpoint=void 0,A.isDisabled=this.submitButtonDisabled);return A},
computeHasExternalLinksAccess_:function(A){if(_.h("enable_rfa_external_links")){var L,O,X;return(X=A==null?void 0:(L=A.advancedTierFeatures)==null?void 0:(O=L.externalLinks)==null?void 0:O.allowExternalLinks)!=null?X:!0}return!0},
computeIsEmojiButtonDisplayed_:function(A){return A.emojiButton&&A.emojiPicker&&A.emojiPicker.emojiPickerRenderer&&A.emojiPicker.emojiPickerRenderer.categories?A.emojiPicker.emojiPickerRenderer.categories.find(function(L){return L.emojiPickerCategoryRenderer?L.emojiPickerCategoryRenderer.emojiIds&&L.emojiPickerCategoryRenderer.emojiIds.length>0:L.emojiPickerUpsellCategoryRenderer?L.emojiPickerUpsellCategoryRenderer.emojis&&L.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(A){return A.charLimit?A.charLimit:null},
computeDropdownSchedulingPanel_:function(A,L){if(A==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&L)return L},
computeInlineSchedulingPanel_:function(A,L){if(A==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&L)return L},
computeHideAuthorThumbnail_:function(A,L){return A||this.computeUseIdentityChip_(L)},
computeHideIdentityChipRenderer_:function(A,L){return A||!this.computeUseIdentityChip_(L)},
computeUseIdentityChip_:function(A){return!!A&&!!A.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(A){var L,O,X,x;(A==null?0:(L=A.detail)==null?0:(O=L.endpoint)==null?0:O.ypcGetOffersEndpoint)||(A==null?0:(X=A.detail)==null?0:(x=X.endpoint)==null?0:x.ypcOffersEndpoint)?(A.stopPropagation(),_.TZ(this,[A.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",A)&&(A.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(A){this.addedAttachment="video";this.selectedVideoId_=A.detail.videoId},
commentboxStateEntityChanged_:function(A){var L=this;(A==null?void 0:A.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(A==null?void 0:A.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){L.focus()})},
onYtServiceRequestSent_:function(A,L){if(L.actions)for(A=_.d(L.actions),L=A.next();!L.done;L=A.next())L.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(A){this.isLoading=!1;var L=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",A),O,X,x,J=A==null?void 0:(O=A.detail)==null?void 0:(X=O.data)==null?void 0:(x=X.actionResult)==null?void 0:x.commentboxStateEntityKey;if(L)this.errorMessage_=L;else if(J){var Y;this.dismissData_=A==null?void 0:(Y=A.detail)==null?void 0:Y.data;this.commentboxStateKey_=J}else{this.clear();var T;this.fire("yt-commentbox-dismiss",A==null?void 0:(T=A.detail)==
null?void 0:T.data)}},
onYtServiceRequestError_:function(A){A.stopPropagation();this.isLoading=!1;var L,O;if(((L=this.data)==null?void 0:L.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((O=this.data)==null?void 0:O.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(L=this.get("detail.error.args",A)||[],L.length>1&&L[1].message){this.handlePostsServiceRequestError_(L[1].message);return}(A=this.get("detail.error.message",A))?this.errorMessage_=this.data.errorMessage||_.Ue(A):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(A){if(_.h("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var L=_.d(this.rateLimitErrorCommands),O=L.next();!O.done;O=L.next())if(O=O.value,O.errorLabel===A){_.qb(O.command,this.hostElement);return}this.errorMessage_=_.Ue(A)},
submitIfNotBackstagePost_:function(A){if(!this.isBackstagePost)this.onSubmit_(A)},
onSubmit_:function(A){var L=this,O,X,x,J,Y,T,V,E,n,t,b,S,w,l,F;return _.u(function(R){switch(R.nextAddress){case 1:A.stopPropagation();if(!L.serviceEndpoint||!L.isValidInput_())return R.return();if(L.shouldShowPostAadcNotice_())return L.showPostAadcNotice_(),R.return();if(L.shouldShowCommentAadcNotice_())return L.showCommentAadcNotice_(),R.return();if(!(L.$$("ytd-backstage-multi-image-select-renderer")&&L.hasImage_&&_.h("enable_multi_image_post_creation"))){R.jumpTo(2);break}O=L.$$("ytd-backstage-multi-image-select-renderer");
return R.yield(O.getAllUploadStatuses(),3);case 3:X=R.yieldResult;if(!X)return R.return();x=_.d(X);for(J=x.next();!J.done;J=x.next())if(Y=J.value,Y.encryptedBlobId===void 0)return L.isLoading=!1,V=T=void 0,L.errorMessage_=(V=(T=L.imageUploadEndpoint_)==null?void 0:T.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?V:null,R.return();return R.return(L.submitForm_(void 0,void 0,void 0,void 0,O.images,L.taggedVideoId_));case 2:if(!L.hasImagePoll_||!L.$["image-poll-attachment"]){R.jumpTo(4);
break}return R.yield(L.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:E=R.yieldResult;if(!E)return R.return();n=_.d(E);for(t=n.next();!t.done;t=n.next())if(b=t.value,!b.encryptedBlobId)return L.isLoading=!1,S=void 0,L.errorMessage_=(S=L.data.errorMessage)!=null?S:null,R.return();case 4:l=(w=L.$$("ytd-backstage-image-select-renderer"))&&w.uploadPromise(),F=L.getSharedPostId_(),l?l.then(function(){L.submitForm_.apply(L,_.le(_.f_.apply(0,arguments)))}).catch(function(y){L.isLoading=!1;
L.errorMessage_=_.Ue(y.message)}):L.selectedVideoId_?L.submitForm_(void 0,L.selectedVideoId_):L.prefilledAttachment_==="image"?L.submitForm_(L.prefilledImageData_.encryptedBlobId,void 0,void 0,L.prefilledImageData_.sourceExternalVideoId,void 0,L.taggedVideoId_):L.prefilledAttachment_==="video"?L.submitForm_(void 0,L.data.backstageAttachment.videoRenderer.videoId):F?L.submitForm_(void 0,void 0,F):L.taggedVideoId_!==void 0?L.submitForm_(void 0,void 0,void 0,void 0,void 0,L.taggedVideoId_):L.submitForm_(),
_.qo(R)}})},
openSchedulingPanel:function(A){A&&A.scheduleButton&&A.scheduleButton.buttonRenderer&&(this.scheduleButton_=A.scheduleButton.buttonRenderer);A&&A.dateTimePicker&&this.set("data.schedulingDateTimePicker",A.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(A){A.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(A){A.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(A){A.stopPropagation();A.detail.alertMessage&&(this.alertMessage_=A.detail.alertMessage)},
onImageSelected_:function(A){A.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(A){A.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(A){A.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(A.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(A){A.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(A){var L=this.$["video-link-attachment"];L&&L.onLaunchVideoPicker(A)},
onAttachmentDismiss_:function(A){A.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"&&_.h("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.h("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 A;if(this.addedAttachment==="image-poll"&&((A=this.$["image-poll-attachment"])==null||!A.isValid()))return!1;var L;if(this.addedAttachment==="quiz"&&((L=this.$["quiz-attachment"])==null||!L.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;A=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(A=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")A=!0;return A||!!this.getTextAreaValue().trim()},
submitForm_:function(A,L,O,X,x,J){var Y=this.getTextAreaValue().trim(),T={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&Y===this.previousText_&&(Y=void 0);Y!==void 0&&(T.comment_text=Y);this.isLoading=!0;J!=void 0&&(T.tagged_video_id=J);A?(T.image_blob_id=A,this.imagePreviewCoordinates_&&(T.image_preview_coordinates=this.imagePreviewCoordinates_)):L?T.attached_video_id=L:O?T.shared_post_id=O:x&&x.length>0&&(T.images_data=x.map(function(V){return{encryptedBlobId:V.encryptedBlobId,
previewCoordinates:V.previewCoordinates}}));
X&&(T.source_video_id=X);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(T.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(T.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(T.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.h("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(T.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.h("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(T.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.TZ(this,[this.serviceEndpoint,T])},
onIsInputFocusChanged_:function(A,L){A?this.fire("yt-autonav-pause-focus"):L!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(A){var L=this.getEditableTextArea_();[].concat(_.le(A.dataTransfer.items)).forEach(function(O){O.kind==="string"&&O.type.match("^text/plain")&&O.getAsString(function(X){L.appendChild(document.createTextNode(X))})});
A.preventDefault()},
preventDefault_:function(A){A.preventDefault()},
onSuggestionInsert_:function(A){this.insertTextWithEmojis_(A.detail.range,A.detail.text)},
onEmojiSuggestionClick_:function(A){this.emojiInput.insertSuggestion(A.detail)},
computeSubmitButtonClass_:function(A,L){return!L||A?"":"with-options"},
updateSuggestionOffset_:function(A){if(this.emojiInput&&_.YJ(this.emojiInput).querySelector("#dropdown")){var L=this.getEditableTextArea_().getBoundingClientRect().bottom,O=A.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(L-O)+5;L=this.getEditableTextArea_().getBoundingClientRect().left;A=A.getBoundingClientRect().left-L;_.YJ(this.emojiInput).querySelector("#dropdown").style.marginLeft=A+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(A){if(_.h("enable_post_scheduling")&&this.data&&this.data.purpose){A=A.detail;if(Math.floor(Date.now()/1E3)>=A)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var L=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(L)||L!==A?this.scheduledPublishTimeSec_=A:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=A;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var A=["image-button","image-poll-button","poll-button"];_.h("enable_quiz_creation")&&A.push("quiz-button");_.h("auto_convert_posts_video_tag")||A.push("video-link-button");return A},
getButtonRenderer:function(A,L){if(A)switch(L){case "video-link-button":var O;return((O=A.videoLinkButton)==null?void 0:O.buttonRenderer)||void 0;case "image-button":var X;return((X=A.imageButton)==null?void 0:X.buttonRenderer)||void 0;case "poll-button":var x;return((x=A.pollButton)==null?void 0:x.buttonRenderer)||void 0;case "image-poll-button":var J;return((J=A.imagePollButton)==null?void 0:J.buttonRenderer)||void 0;case "quiz-button":var Y;return((Y=A.quizButton)==null?void 0:Y.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var A;return(A=this.data)==null||!A.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var A,L;return!((A=this.data)==null||!A.openAadcDialog)&&!((L=this.aadcGuidelinesState_)==null||!L.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.ms("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var A;((A=this.data)==null?0:A.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.mg("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(A){A.clickTrackingParams&&_.iV().clickCommand(A);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.dQ(this,"yt-close-popup-action")},
onHideIdentityChip:function(A){var L;this.set("data.placeholderText",(L=A.hideIdentityChipAction)==null?void 0:L.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var g2=function(){var A=_.G.apply(this,arguments)||this;A.isOpen=!1;A.modern=_.h("web_modern_buttons");A.roundedContainer=!0;A.dropdownButtonOverride=_.h("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;A.inPopupContainer=!1;A.isCommentboxLoading=!1;var L=["image-button","image-poll-button","poll-button"];_.h("enable_quiz_creation")&&L.push("quiz-button");_.h("auto_convert_posts_video_tag")||L.push("video-link-button");A.attachmentButtonIds=L;A.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 A};
_.g(g2,_.G);_.P=g2.prototype;_.P.computeButtonOverride=function(){var A;return((A=this.data)==null?0:A.postOptionsMenu)&&_.h("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.P.configureRendererStamper=function(){var A={"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:{component:"ytd-flat-dropdown-renderer",classListBinding:"[[dropdownRendererClasses]]"}}},"data.pollButton":{id:"poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imagePollButton":{id:"image-poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.quizButton":{id:"quiz-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.postOptionsMenu":{id:"option-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"EXPAND"},properties:{tonalOverride:"[[modern]]",threeDotButtonOverride:"[[dropdownButtonOverride]]"}}}}};_.h("auto_convert_posts_video_tag")||(A["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return A};
_.P.ready=function(){var A=this,L=_.YJ(this.hostElement).querySelector("#placeholder-area"),O=function(X){A.onOpen(X)};
L.addEventListener("tap",O);L.addEventListener("keypress",O)};
_.P.showButtonEduTooltip=function(){var A,L,O,X,x,J,Y;if(_.h("enable_quiz_creation")&&((A=this.data)==null?0:(L=A.quizButton)==null?0:(O=L.buttonRenderer)==null?0:(X=O.hint)==null?0:(x=X.hintRenderer)==null?0:(J=x.content)==null?0:(Y=J.bubbleHintRenderer)==null?0:Y.text)&&(_.DY.getInstance(),A=el(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(A==null?void 0:
A.length)>0)){this.ytComponentBehavior.resolveCommand(A[0],{form:{element:this.quizButton}});return}var T;if((T=this.data)==null?0:T.imagePollButtonTooltip)if(_.DY.getInstance(),T=el(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(T==null?void 0:T.length)>0){this.ytComponentBehavior.resolveCommand(T[0],{form:{element:this.imagePollButton}});return}var V;_.h("enable_multi_image_post_creation")&&
((V=this.data)==null?0:V.multiImageButtonTooltip)&&(_.DY.getInstance(),V=el(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(V==null?void 0:V.length)>0&&this.ytComponentBehavior.resolveCommand(V[0],{form:{element:this.imageButton}}))};
_.P.onCreatePollAction=function(A){_.q(A,j$H)&&(this.JSC$16774_commentbox.addedAttachment="poll",this.openDialog())};
_.P.onAddVideoLinkAction=function(A){if(_.q(A,ftn))this.JSC$16774_commentbox.onAddVideoLink(A)};
_.P.onShowSchedulingPanelCommand=function(A){(A=_.q(A,V7l))&&this.openSchedulingPanel(A)};
_.P.onCreateImagePollCommand=function(A){_.q(A,Ri3)&&(this.JSC$16774_commentbox.openImagePollComponent(),this.openDialog())};
_.P.onCreateQuizCommand=function(A){_.q(A,Qtj)&&(this.JSC$16774_commentbox.openQuizComponent(),this.openDialog())};
_.P.openSchedulingPanel=function(A){_.h("enable_post_scheduling")&&(this.openDialog(),this.JSC$16774_commentbox.openSchedulingPanel(A))};
_.P.onCreateCommentAction=function(A){this.get("createCommentAction.contents",A)&&(this.JSC$16774_commentbox.clear(),this.closeDialog())};
_.P.onOpen=function(A){A instanceof KeyboardEvent&&A.type==="keypress"&&A.keyCode!==13&&A.keyCode!==32||(this.data.prepareAccountEndpoint?_.P4(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.P.onYtCommentboxDismiss=function(){this.closeDialog()};
_.P.onYtCommentboxLoadingStart=function(A){A.stopPropagation();this.isCommentboxLoading=!0};
_.P.onYtCommentboxLoadingEnd=function(A){A.stopPropagation();this.isCommentboxLoading=!1};
_.P.onYtVideoLinkButtonCancel=function(A){A.stopPropagation();this.onOpen(A)};
_.P.onYtVideoLinkSelected=function(A){A.stopPropagation();this.onOpen(A)};
_.P.onIronSelect=function(A){A.stopPropagation();A.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=A.detail.item.value&&(this.accessRestriction?(this.accessRestriction=A.detail.item.value,this.onOpen(A)):this.accessRestriction=A.detail.item.value)};
_.P.onYtNavigate=function(A){this.get("detail.endpoint.backstageImageUploadEndpoint",A)&&(this.JSC$16774_commentbox.addedAttachment="image",this.JSC$16774_commentbox.submitButtonDisabled=!0,this.onOpen(A))};
_.P.onRequestSent=function(A){if(_.h("web_button_rework"))for(var L=_.d(A.detail),O=L.next();!O.done;O=L.next())_.q(O.value,MKu)&&(this.JSC$16774_commentbox.addedAttachment="image",this.JSC$16774_commentbox.submitButtonDisabled=!0,this.onOpen(A))};
_.P.openDialog=function(){this.JSC$16774_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$16774_commentbox.focus()};
_.P.onPopupClosed=function(){_.DY.getInstance()};
_.P.computeCreationDisabled=function(A){return!!A};
_.P.computeIsCreationDialog=function(A){return!!A&&A==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.P.computeDisabledPostButton=function(A){if(!A)return null;A.isDisabled=!0;return A};
_.P.computeIsCreationDialogWithHeader=function(A){return!this.inPopupContainer&&!!A&&!!A.authorText&&A.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.P.computeIsHeaderHidden=function(A,L){return!A||L};
_.P.computeDropdownRendererClasses=function(A){return A?["text-secondary-style"]:[]};
_.P.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var A=_.YJ(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;A&&A.reset()};
g2.prototype.onPopupClosed=g2.prototype.onPopupClosed;g2.prototype.onRequestSent=g2.prototype.onRequestSent;g2.prototype.onYtNavigate=g2.prototype.onYtNavigate;g2.prototype.onIronSelect=g2.prototype.onIronSelect;g2.prototype.onYtVideoLinkSelected=g2.prototype.onYtVideoLinkSelected;g2.prototype.onYtVideoLinkButtonCancel=g2.prototype.onYtVideoLinkButtonCancel;g2.prototype.onYtCommentboxLoadingEnd=g2.prototype.onYtCommentboxLoadingEnd;g2.prototype.onYtCommentboxLoadingStart=g2.prototype.onYtCommentboxLoadingStart;
g2.prototype.onYtCommentboxDismiss=g2.prototype.onYtCommentboxDismiss;g2.prototype.showButtonEduTooltip=g2.prototype.showButtonEduTooltip;_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],g2.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],g2.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],g2.prototype,"ytRendererBehavior",void 0);
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],g2.prototype,"ytActionHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],g2.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],g2.prototype,"isOpen",void 0);_.I([_.K({computed:"computeButtonOverride(data)"}),_.Z("design:type",Object)],g2.prototype,"buttonOverride",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],g2.prototype,"modern",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],g2.prototype,"roundedContainer",void 0);_.I([_.K(),_.Z("design:type",Object)],g2.prototype,"dropdownButtonOverride",void 0);_.I([_.K({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.Z("design:type",Boolean)],g2.prototype,"creationDisabled",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],g2.prototype,"enableCreationBox",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.Z("design:type",Boolean)],g2.prototype,"isCreationDialog",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],g2.prototype,"inPopupContainer",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.Z("design:type",Boolean)],g2.prototype,"isCreationDialogWithHeader",void 0);_.I([_.K(),_.Z("design:type",Object)],g2.prototype,"accessRestriction",void 0);
_.I([_.K({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.Z("design:type",Array)],g2.prototype,"dropdownRendererClasses",void 0);_.I([_.K(),_.Z("design:type",Object)],g2.prototype,"isCommentboxLoading",void 0);_.I([_.K(),_.Z("design:type",Array)],g2.prototype,"attachmentButtonIds",void 0);_.I([_.qR("#image-button"),_.Z("design:type",HTMLElement)],g2.prototype,"imageButton",void 0);
_.I([_.qR("#image-poll-button"),_.Z("design:type",HTMLElement)],g2.prototype,"imagePollButton",void 0);_.I([_.qR("#quiz-button"),_.Z("design:type",HTMLElement)],g2.prototype,"quizButton",void 0);_.I([_.qR("#commentbox"),_.Z("design:type",Object)],g2.prototype,"JSC$16774_commentbox",void 0);_.I([_.hT("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],g2.prototype,"showButtonEduTooltip",null);
_.I([_.by("yt-commentbox-dismiss"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],g2.prototype,"onYtCommentboxDismiss",null);_.I([_.by("yt-commentbox-loading-start"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],g2.prototype,"onYtCommentboxLoadingStart",null);
_.I([_.by("yt-commentbox-loading-end"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],g2.prototype,"onYtCommentboxLoadingEnd",null);_.I([_.by("yt-video-link-button-cancel"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],g2.prototype,"onYtVideoLinkButtonCancel",null);
_.I([_.by("yt-video-link-selected"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],g2.prototype,"onYtVideoLinkSelected",null);_.I([_.by("iron-select"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],g2.prototype,"onIronSelect",null);_.I([_.by("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],g2.prototype,"onYtNavigate",null);
_.I([_.by("yt-service-request-sent-button-renderer"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],g2.prototype,"onRequestSent",null);_.I([_.by("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],g2.prototype,"onPopupClosed",null);_.I([_.Q({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],g2);
_.m(g2,"ytd-backstage-post-dialog-renderer",function(){if(HVH!==void 0)return HVH;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return HVH=A},{mode:1});var gsl;var wsc;var w2=function(){return _.G.apply(this,arguments)||this};
_.g(w2,_.G);_.P=w2.prototype;_.P.computeHeartButtonStyle=function(A){return(A==null?0:A.styleType)?A.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.P.onYtButtonTap=function(){if(this.data.isEnabled){var A=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(A=this.getEndpoint(A))&&_.X5().resolve(_.x$).resolveCommand(A,{form:{element:this.hostElement}})}else(A=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(A)};
_.P.toggle=function(A){this.set("data.isHearted",A!==void 0?A:!this.data.isHearted)};
_.P.getEndpoint=function(A){var L,O=(L=this.data)==null?void 0:L.heartEndpoint,X;L=(X=this.data)==null?void 0:X.unheartEndpoint;if(O&&L)return A?L:O};
_.P.computeButtonAccessibility=function(A,L){var O,X,x=A==null?void 0:(O=A.heartedAccessibility)==null?void 0:(X=O.accessibilityData)==null?void 0:X.label,J,Y;A=A==null?void 0:(J=A.unheartedAccessibility)==null?void 0:(Y=J.accessibilityData)==null?void 0:Y.label;return L?x:A};
_.v2.Object.defineProperties(w2.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 A;return _.h("kevlar_system_icons")&&!((A=this.data)==null||!A.isHearted)}}});
w2.prototype.onYtButtonTap=w2.prototype.onYtButtonTap;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],w2.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.J3),_.Z("design:type",Object)],w2.prototype,"ytdOpenPopupBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],w2.prototype,"data",void 0);_.I([_.r("data.isHearted"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],w2.prototype,"heartTooltip",null);
_.I([_.r("data.isHearted"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],w2.prototype,"iconFilled",null);_.I([_.K({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.Z("design:type",String)],w2.prototype,"buttonAccessibility",void 0);_.I([_.K({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.Z("design:type",String)],w2.prototype,"heartButtonStyle",void 0);
_.I([_.by("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],w2.prototype,"onYtButtonTap",null);_.I([_.Q({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],w2);
_.m(w2,"ytd-creator-heart-renderer",function(){if(wsc!==void 0)return wsc;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return wsc=A},{mode:1});var pp=function(){var A=_.G.apply(this,arguments)||this;A.hasCreatorReply=!1;A.buttonOverrides={size:"S",iconPosition:"icon-only"};A.replyButtonOverrides={size:"S",type:"text"};A.forceIconButton=!_.h("web_modern_buttons");A.modern=_.h("web_modern_buttons");A.buttonTooltipPosition="bottom";A.systemIcons=_.h("kevlar_system_icons");A.replyDialog=null;return A};
_.g(pp,_.G);_.P=pp.prototype;
_.P.configureRendererStamper=function(){return{"data.creatorHeart":{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}},replyButtonBeginning:{id:"reply-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}},replyButtonEnd:{id:"reply-button-end",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{forceIconButton:!0},properties:{buttonTooltipPosition:"[[buttonTooltipPosition]]",overrides:"[[replyButtonOverrides]]",forceIconButton:"[[forceIconButton]]"}}}},
"data.shareButton":{id:"share-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{buttonTooltipPosition:"[[buttonTooltipPosition]]"}}}}}};
_.P.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.P.dataChange=function(){this.replyDialog&&_.YJ(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var A,L,O;this.isLiked=this.systemIcons&&!!((A=this.data)==null?0:(L=A.likeButton)==null?0:(O=L.toggleButtonRenderer)==null?0:O.isToggled)};
_.P.computeShowVoteCountBeginning=function(A,L){return A===void 0||L===void 0?!0:A.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!L&&this.ytRendererBehavior.getSimpleString(L)!=="0"};
_.P.computeShowVoteCountEnd=function(A,L){return A===void 0||L===void 0?!0:A.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!L&&this.ytRendererBehavior.getSimpleString(L)!=="0"};
_.P.computeShowCommentCount=function(A,L){return A===void 0||L===void 0?!0:A.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!L&&this.ytRendererBehavior.getSimpleString(L)!=="0"};
_.P.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.P.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.P.showReplyDialog=function(A){A&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.YJ(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=A,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.P.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.P.onRequestSent=function(A){if(_.h("web_button_rework")){A=_.d(A.detail);for(var L=A.next();!L.done;L=A.next())(L=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",L.value))&&this.showReplyDialog(L)}};
_.P.onYtNavigate=function(A){var L,O;(A=(L=_.q(A.detail.endpoint,_.a2V))==null?void 0:(O=L.dialog)==null?void 0:O.commentReplyDialogRenderer)&&this.showReplyDialog(A)};
_.P.onYtServiceRequestSent=function(A,L){A.stopPropagation();if(L.actions)for(A=0;A<L.actions.length;A++){var O=_.q(L.actions[A],$Jc);O&&this.handleUpdateCommentVoteAction(O)}};
_.P.handleUpdateCommentVoteAction=function(A){this.voteCount=A.voteCount||_.Ue("0");A.voteStatus==="LIKE"?this.JSC$16785_ytdDislikeToggleButtonRenderer.toggle(!1):A.voteStatus==="DISLIKE"?this.JSC$16785_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$16785_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$16785_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.P.computeReplyButtonHidden=function(A){return A};
_.P.computeReplyButtonBeginning=function(A){return(A==null?0:A.replyButton)&&A.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?A.replyButton:void 0};
_.P.computeReplyButtonEnd=function(A){return(A==null?0:A.replyButton)&&A.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?A.replyButton:void 0};
_.P.computeActionButtonStyle=function(A){return(A==null?0:A.style)?A.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.P.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.P.onYtToggleButton=function(A){var L,O;this.isLiked=this.systemIcons&&!!((L=A.detail)==null?0:(O=L.actions)==null?0:O.like)};
pp.prototype.onYtToggleButton=pp.prototype.onYtToggleButton;pp.prototype.onButtonTooltipPositionChanged=pp.prototype.onButtonTooltipPositionChanged;pp.prototype.onYtServiceRequestSent=pp.prototype.onYtServiceRequestSent;pp.prototype.onYtNavigate=pp.prototype.onYtNavigate;pp.prototype.onRequestSent=pp.prototype.onRequestSent;pp.prototype.onYtCommentboxDismiss=pp.prototype.onYtCommentboxDismiss;pp.prototype.dataChange=pp.prototype.dataChange;
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],pp.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],pp.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],pp.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],pp.prototype,"voteCount",void 0);_.I([_.K(),_.Z("design:type",Object)],pp.prototype,"commentCount",void 0);_.I([_.K(),_.Z("design:type",Object)],pp.prototype,"replyThumbnail",void 0);
_.I([_.K(),_.Z("design:type",Object)],pp.prototype,"hasCreatorReply",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],pp.prototype,"enableCreationBox",void 0);_.I([_.K({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.Z("design:type",String)],pp.prototype,"actionButtonsStyle",void 0);_.I([_.K({computed:"computeReplyButtonBeginning(data)"}),_.Z("design:type",Object)],pp.prototype,"replyButtonBeginning",void 0);
_.I([_.K({computed:"computeReplyButtonEnd(data)"}),_.Z("design:type",Object)],pp.prototype,"replyButtonEnd",void 0);_.I([_.K(),_.Z("design:type",Object)],pp.prototype,"buttonOverrides",void 0);_.I([_.K(),_.Z("design:type",Object)],pp.prototype,"replyButtonOverrides",void 0);_.I([_.K(),_.Z("design:type",Object)],pp.prototype,"forceIconButton",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],pp.prototype,"useCommentIcon",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],pp.prototype,"modern",void 0);_.I([_.K(),_.Z("design:type",Object)],pp.prototype,"buttonTooltipPosition",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],pp.prototype,"systemIcons",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],pp.prototype,"isLiked",void 0);_.I([_.qR("ytd-button-renderer"),_.Z("design:type",Object)],pp.prototype,"ytdReplyButtonRenderer",void 0);
_.I([_.qR("#like-button"),_.Z("design:type",Object)],pp.prototype,"JSC$16785_ytdLikeToggleButtonRenderer",void 0);_.I([_.qR("#dislike-button"),_.Z("design:type",Object)],pp.prototype,"JSC$16785_ytdDislikeToggleButtonRenderer",void 0);_.I([_.qR("#reply-dialog"),_.Z("design:type",HTMLElement)],pp.prototype,"replyDialogElement",void 0);_.I([_.qR("#reply-button"),_.Z("design:type",HTMLElement)],pp.prototype,"replyButtonElement",void 0);
_.I([_.qR("#reply-button-end"),_.Z("design:type",HTMLElement)],pp.prototype,"replyButtonEndElement",void 0);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],pp.prototype,"dataChange",null);_.I([_.by("yt-commentbox-dismiss"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],pp.prototype,"onYtCommentboxDismiss",null);
_.I([_.by("yt-service-request-sent-button-renderer"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],pp.prototype,"onRequestSent",null);_.I([_.by("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],pp.prototype,"onYtNavigate",null);
_.I([_.by("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.aQ]),_.Z("design:returntype")],pp.prototype,"onYtServiceRequestSent",null);_.I([_.hT("buttonTooltipPosition"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],pp.prototype,"onButtonTooltipPositionChanged",null);
_.I([_.by("yt-toggle-button"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],pp.prototype,"onYtToggleButton",null);_.I([_.Q({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],pp);
_.m(pp,"ytd-comment-action-buttons-renderer",function(){if(gsl!==void 0)return gsl;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return gsl=A},{mode:1});var psJ;var iZ=function(){return _.G.apply(this,arguments)||this};
_.g(iZ,_.G);iZ.prototype.focus=function(){_.YJ(this.hostElement).querySelector("#commentbox").focus()};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],iZ.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],iZ.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],iZ.prototype,"zeroStepChannelCreationRenderer",void 0);_.I([_.Q({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],iZ);
_.m(iZ,"ytd-comment-dialog-renderer",function(){if(psJ!==void 0)return psJ;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return psJ=A},{mode:1});var i83;var Nt=function(){var A=_.G.apply(this,arguments)||this;A.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.h("enable_web_delhi_icons")};A.replyButtonOverrides={size:"S",type:"text"};return A};
_.g(Nt,_.G);_.P=Nt.prototype;_.P.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.P.detached=function(){this.replyBox&&this.replyBox.remove()};
_.P.showReplyDialog=function(A){if(A){var L=this.replyBox;L||(L=document.createElement("ytd-comment-reply-dialog-renderer"),L.id="replybox",_.YJ(this.replyDialogDiv).appendChild(L));L.data=A;this.replyDialogDiv.hidden=!1;L.openDialog()}};
_.P.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.P.handleReplyButtonClick=function(){if(this.isSubsOnlyCommentsEligibleUser){var A,L=_.q((A=this.toolbarSurface)==null?void 0:A.subscribersOnlyDisclaimerSnackbarCommand,_.WR);L&&_.P4(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:L})}};
_.P.onYtServiceRequestSent=function(A,L){A.stopPropagation();if(L.actions)for(var O=0;O<L.actions.length;O++){var X=_.q(L.actions[O],$Jc);X?this.handleUpdateCommentVoteAction(X):A.target===this.heartButton&&this.toggleHeartState()}};
_.P.handleUpdateCommentVoteAction=function(A){var L;(L=this.toolbarState)!=null&&L.key&&this.ytdReduxBehavior.dispatch(_.ZE("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:A.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":A.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.P.toggleHeartState=function(){var A;(A=this.toolbarState)!=null&&A.key&&this.ytdReduxBehavior.dispatch(_.ZE("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.v2.Object.defineProperties(Nt.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var A,L,O;return(((A=this.toolbarState)==null?void 0:A.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(L=this.toolbarData)==null?void 0:L.likeCountLiked:(O=this.toolbarData)==null?void 0:O.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.toolbarSurface)==null?void 0:A.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.toolbarSurface)==null?void 0:A.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.toolbarSurface)==null?void 0:A.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.toolbarSurface)==null?void 0:A.prepareAccountCommand)!==void 0&&!_.h("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var A,L=_.q((A=this.toolbarSurface)==null?void 0:A.prepareAccountCommand,_.WR),O,X,x,J,Y,T,V,E,n;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((O=this.toolbarSharedData)==null||!O.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((X=this.toolbarState)==null?void 0:X.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:L!=null?L:_.q((x=this.toolbarSurface)==null?void 0:x.likeCommand,_.WR),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:L!=null?L:_.q((J=this.toolbarSurface)==null?void 0:J.unlikeCommand,_.WR),defaultCommand:this.isVisiblyDisabled?_.q((Y=this.toolbarSurface)==null?void 0:Y.commentDisabledActionCommand,_.WR):void 0,defaultTooltip:(T=this.toolbarData)==null?void 0:T.likeInactiveTooltip,toggledTooltip:(V=this.toolbarData)==null?void 0:V.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(E=this.toolbarData)==null?void 0:E.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(n=this.toolbarSharedData)==null?void 0:n.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var A,L=_.q((A=this.toolbarSurface)==null?void 0:A.prepareAccountCommand,_.WR),O,X,x,J,Y,T,V,E,n,t;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((O=this.toolbarSharedData)==null||!O.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((X=this.toolbarState)==null?void 0:X.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:L!=null?L:_.q((x=this.toolbarSurface)==null?void 0:x.dislikeCommand,_.WR),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:L!=null?L:_.q((J=this.toolbarSurface)==null?void 0:J.undislikeCommand,_.WR),defaultCommand:this.isVisiblyDisabled?_.q((Y=this.toolbarSurface)==null?void 0:Y.commentDisabledActionCommand,_.WR):void 0,defaultTooltip:(T=this.toolbarData)==null?void 0:T.dislikeInactiveTooltip,toggledTooltip:(V=this.toolbarData)==null?void 0:
V.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(E=this.toolbarSharedData)==null?void 0:E.dislikeReplyButtonA11y:(n=this.toolbarSharedData)==null?void 0:n.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(t=this.toolbarSharedData)==null?void 0:t.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var A,L,O;if(((A=this.toolbarState)==null?void 0:A.heartState)!==void 0&&((L=this.toolbarState)==null?void 0:L.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((O=this.toolbarState)==null?void 0:O.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var X,x,J,Y,T,V,E,n,t,b,S,w,l,F;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(X=this.toolbarData)==null?void 0:X.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((x=this.toolbarState)==null?void 0:x.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((J=this.toolbarState)==null?void 0:J.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((Y=this.toolbarState)==null?void 0:Y.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((T=this.toolbarState)==null?void 0:T.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.q((V=this.toolbarSurface)==null?void 0:V.heartCommand,
_.WR),unheartEndpoint:this.isVisiblyDisabled?void 0:_.q((E=this.toolbarSurface)==null?void 0:E.unheartCommand,_.WR),disabledEndpoint:this.isVisiblyDisabled?_.q((n=this.toolbarSurface)==null?void 0:n.commentDisabledActionCommand,_.WR):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(t=this.toolbarData)==null?void 0:t.heartActiveTooltip,unheartedTooltip:(b=this.toolbarData)==null?void 0:b.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((S=
this.toolbarState)==null?void 0:S.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(w=this.toolbarSharedData)==null?void 0:w.unheartButtonA11y:(l=this.toolbarSharedData)==null?void 0:l.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(F=this.toolbarSharedData)==null?void 0:F.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.toolbarSurface)==null||!A.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var A,L,O,X;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(A=this.commentStrings)==null?void 0:A.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.q((L=this.toolbarSurface)==null?void 0:L.replyCommand,_.WR),command:this.isVisiblyDisabled?_.q((O=this.toolbarSurface)==null?
void 0:O.commentDisabledActionCommand,_.WR):this.isSubsOnlyCommentsIneligibleUser?_.q((X=this.toolbarSurface)==null?void 0:X.subscribersOnlySnackbarCommand,_.WR):void 0}}}});
Nt.prototype.onYtServiceRequestSent=Nt.prototype.onYtServiceRequestSent;Nt.prototype.hideReplyDialogDiv=Nt.prototype.hideReplyDialogDiv;_.I([_.K(),_.Z("design:type",Object)],Nt.prototype,"commentStrings",void 0);_.I([_.K(),_.Z("design:type",Boolean)],Nt.prototype,"isReply",void 0);_.I([_.K(),_.Z("design:type",Object)],Nt.prototype,"toolbarData",void 0);_.I([_.K(),_.Z("design:type",Object)],Nt.prototype,"toolbarSharedData",void 0);
_.I([_.K(),_.Z("design:type",String)],Nt.prototype,"toolbarStateKey",void 0);_.I([_.K(),_.Z("design:type",String)],Nt.prototype,"toolbarSurfaceKey",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],Nt.prototype,"ytdReduxBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],Nt.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Nt.prototype,"ytRendererstamperBehavior",void 0);
_.I([_.N(_.J3),_.Z("design:type",Object)],Nt.prototype,"ytdOpenPopupBehavior",void 0);_.I([_.qR("#reply-dialog"),_.Z("design:type",HTMLElement)],Nt.prototype,"replyDialogDiv",void 0);_.I([_.qR("#replybox"),_.Z("design:type",Object)],Nt.prototype,"replyBox",void 0);_.I([_.qR("ytd-creator-heart-renderer"),_.Z("design:type",Object)],Nt.prototype,"heartButton",void 0);_.I([_.K({selector:function(A,L){return _.eM(A.entities,"engagementToolbarStateEntityPayload",L)},
selectorArgs:["toolbarStateKey"]}),_.Z("design:type",Object)],Nt.prototype,"toolbarState",void 0);_.I([_.K({selector:z5e,selectorArgs:["toolbarSurfaceKey"]}),_.Z("design:type",Object)],Nt.prototype,"toolbarSurface",void 0);_.I([_.K(),_.Z("design:type",Object)],Nt.prototype,"buttonOverrides",void 0);_.I([_.by("yt-commentbox-dismiss"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Nt.prototype,"hideReplyDialogDiv",null);
_.I([_.r("toolbarData","toolbarState"),_.Z("design:type",String),_.Z("design:paramtypes",[])],Nt.prototype,"likeCount",null);_.I([_.r("likeCount"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Nt.prototype,"showLikeCount",null);_.I([_.r("toolbarSurface"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Nt.prototype,"isVisiblyDisabled",null);_.I([_.r("toolbarSurface"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Nt.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.I([_.r("toolbarSurface"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Nt.prototype,"isSubsOnlyCommentsEligibleUser",null);_.I([_.r("toolbarSurface"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Nt.prototype,"hasPrepareAccountCommand",null);_.I([_.r("toolbarData","toolbarState","toolbarSurface"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Nt.prototype,"likeToggleButtonRenderer",null);
_.I([_.r("isReply","toolbarData","toolbarState","toolbarSurface"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Nt.prototype,"dislikeToggleButtonRenderer",null);_.I([_.r("toolbarData","toolbarState","toolbarSurface"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Nt.prototype,"creatorHeartSupportedRenderer",null);_.I([_.r("toolbarSurface"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Nt.prototype,"hasReplyCommand",null);
_.I([_.r("toolbarSurface","commentStrings","isVisiblyDisabled"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Nt.prototype,"replyButtonRenderer",null);_.I([_.K(),_.Z("design:type",Object)],Nt.prototype,"replyButtonOverrides",void 0);_.I([_.by("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.aQ]),_.Z("design:returntype")],Nt.prototype,"onYtServiceRequestSent",null);_.I([_.Q({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],Nt);
_.m(Nt,"ytd-comment-engagement-bar",function(){if(i83!==void 0)return i83;var A=document.createElement("template");_.p(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-engagement-bar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-engagement-bar">\n  \n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="bottom" data="[[likeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!showLikeCount]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-engagement-bar">\n    [[likeCount]]\n  </span>\n  \n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="bottom" data="[[dislikeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  \n  <div id="creator-heart" class="style-scope ytd-comment-engagement-bar"></div>\n  \n  <ytd-button-renderer id="reply-button-end" data="[[replyButtonRenderer]]" force-icon-button="true" hidden="[[!hasReplyCommand]]" overrides="[[replyButtonOverrides]]" on-click="handleReplyButtonClick" class="style-scope ytd-comment-engagement-bar">\n  </ytd-button-renderer>\n</div>\n\n<div id="reply-dialog" class="style-scope ytd-comment-engagement-bar"></div>\n');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return i83=A},{mode:1});var Nil;var r2=function(){return _.G.apply(this,arguments)||this};
_.g(r2,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],r2.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],r2.prototype,"data",void 0);_.I([_.Q({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],r2);
_.m(r2,"ytd-comment-inline-thumbnail-renderer",function(){if(Nil!==void 0)return Nil;var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Nil=A},{mode:1});var rxV;var Kp=function(){return _.G.apply(this,arguments)||this};
_.g(Kp,_.G);Kp.prototype.onMessageTap=function(){if(this.onTapCommand){var A=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);A&&this.ytdOpenPopupBehavior.openPopup(A)}};
_.v2.Object.defineProperties(Kp.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var A,L,O;return(A=this.data)==null?void 0:(L=A.button)==null?void 0:(O=L.buttonRenderer)==null?void 0:O.command}}});
_.I([_.N(_.J3),_.Z("design:type",Object)],Kp.prototype,"ytdOpenPopupBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Kp.prototype,"data",void 0);_.I([_.r("data.button.buttonRenderer.command"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Kp.prototype,"onTapCommand",null);_.I([_.Q({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],Kp);
_.m(Kp,"ytd-comment-pause-composer-renderer",function(){if(rxV!==void 0)return rxV;var A=document.createElement("template");_.p(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-pause-composer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pause-composer" on-click="onMessageTap" class="style-scope ytd-comment-pause-composer-renderer">\n  <yt-attributed-string data="[[data.text]]" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.termsText]]" force-default-style="" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n</div>');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return rxV=A},{mode:1});var KHl;var Gbc;var GL=function(){var A=_.G.apply(this,arguments)||this;A.isOpen=!1;return A};
_.g(GL,_.G);_.P=GL.prototype;_.P.dataChanged=function(){this.isOpen=!1};
_.P.onTap=function(){this.data&&(this.data.navigationEndpoint?_.P4(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.P.focus=function(){this.JSC$16815_commentbox.focus()};
_.P.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.P.openDialog=function(){this.isOpen=!0;this.JSC$16815_commentbox.focus();this.JSC$16815_commentbox.maybeHeightChanged()};
GL.prototype.onYtCommentboxDismiss=GL.prototype.onYtCommentboxDismiss;GL.prototype.dataChanged=GL.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],GL.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],GL.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],GL.prototype,"isOpen",void 0);_.I([_.qR("#commentbox"),_.Z("design:type",Object)],GL.prototype,"JSC$16815_commentbox",void 0);
_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],GL.prototype,"dataChanged",null);_.I([_.by("yt-commentbox-dismiss"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],GL.prototype,"onYtCommentboxDismiss",null);_.I([_.Q({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],GL);
_.m(GL,"ytd-comment-reply-dialog-renderer",function(){if(Gbc!==void 0)return Gbc;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return Gbc=A},{mode:1});var lwn;var lZ=function(){return _.G.apply(this,arguments)||this};
_.g(lZ,_.G);_.v2.Object.defineProperties(lZ.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var A,L,O=(A=this.data)==null?void 0:(L=A.icon)==null?void 0:L.iconType;return O?"yt-icons:"+O.toLowerCase():null}}});
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],lZ.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],lZ.prototype,"data",void 0);_.I([_.K(),_.r("data.icon"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],lZ.prototype,"icon",null);_.I([_.Q({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],lZ);
_.m(lZ,"ytd-pinned-comment-badge-renderer",function(){if(lwn!==void 0)return lwn;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return lwn=A},{mode:1});var cx7;var Cw3={},FHg={input:!0,meta:!0,br:!0,link:!0,img:!0},cA=null;Cw3.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(){cA==null&&(cA=document.createElement("tp-yt-paper-tooltip"),cA.offset=8,cA.fitToVisibleBounds=!0)},
onMouseOver_:function(A){if(A=_.my(A.target,function(x){return x==this||x.getAttribute&&x.getAttribute("shared-tooltip-text")}.bind(this),!0)){var L=A.getAttribute("shared-tooltip-text");
if(L){var O=this,X=null;A!=this&&(A.tagName.toLowerCase()in FHg?O=A.parentElement:O=A,A.id&&(X=A.id));this.polymerController.createTooltipIfRequired_();if(cA.parentElement!=O||cA.for!=X)(0,_.DB)(cA).textContent=L,_.YJ(O).appendChild(cA),cA.for=X,cA.animationDelay=this.polymerController.sharedTooltipAnimationDelay,cA.position=this.polymerController.sharedTooltipPosition}}}};var Cp=function(){return _.G.apply(this,arguments)||this};
_.g(Cp,_.G);Cp.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]]"}}}}}};
Cp.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img")};
Cp.prototype.colorChanged=function(){var A,L,O,X=(A=this.data)==null?void 0:(L=A.color)==null?void 0:(O=L.basicColorPaletteData)==null?void 0:O.foregroundBodyColor;X&&(this.rgbBadgeColor=_.Wy(X));_.YJ(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
Cp.prototype.tooltipChanged=function(){var A;((A=this.data)==null?0:A.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
Cp.prototype.tooltipChanged=Cp.prototype.tooltipChanged;Cp.prototype.colorChanged=Cp.prototype.colorChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Cp.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Cp.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(Cw3.YtSharedTooltipBehavior),_.Z("design:type",Object)],Cp.prototype,"ytSharedTooltipBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Cp.prototype,"data",void 0);
_.I([_.K({value:"#4285F4"}),_.Z("design:type",String)],Cp.prototype,"rgbBadgeColor",void 0);_.I([_.hT("data.color"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Cp.prototype,"colorChanged",null);_.I([_.hT("data.tooltip"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Cp.prototype,"tooltipChanged",null);_.I([_.Q({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],Cp);
_.m(Cp,"ytd-sponsor-comment-badge-renderer",function(){if(cx7!==void 0)return cx7;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return cx7=A},{mode:1});var RRJ;var QTL;var F1=function(){return _.G.apply(this,arguments)||this};
_.g(F1,_.G);F1.prototype.computeState=function(A){switch(A==null?void 0:A.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"}};
F1.prototype.updateStateIdentifier=function(A){if(this.viewModel.triStateKey){var L=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.ZE("triStateButtonStateEntityPayload",L,{key:L,stateIdentifier:A}))}};
F1.prototype.onClick=function(){var A=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(){A.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){A.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.v2.Object.defineProperties(F1.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 A;return((A=this.data)==null?void 0:A.buttonText)||""}}});
_.I([_.K(),_.Z("design:type",Object)],F1.prototype,"viewModel",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],F1.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],F1.prototype,"ytdReduxBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],F1.prototype,"ytRendererBehavior",void 0);_.I([_.K({selector:BLJ,selectorArgs:["viewModel.triStateKey"]}),_.Z("design:type",Object)],F1.prototype,"triStateButtonStateEntity",void 0);
_.I([_.K({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.Z("design:type",String)],F1.prototype,"state",void 0);_.I([_.r("viewModel","state"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],F1.prototype,"data",null);_.I([_.r("data"),_.Z("design:type",String),_.Z("design:paramtypes",[])],F1.prototype,"buttonText",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],F1);
_.m(F1,"ytd-tri-state-button-view-model",function(){if(QTL!==void 0)return QTL;var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return QTL=A},{mode:1});var mPV;var fwu;var Rx=function(){var A=_.G.apply(this,arguments)||this;A.defaultIconToFilled=!_.h("kevlar_fill_comment_chip_icon_killswitch");return A};
_.g(Rx,_.G);Rx.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
Rx.prototype.dataChanged=function(){if(this.data){var A,L;((A=this.data.chipColorPalette)==null?0:A.backgroundColor)&&((L=this.data.chipColorPalette)==null?0:L.foregroundTitleColor)&&_.eq(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.Hy(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.Hy(this.data.chipColorPalette.foregroundTitleColor)});var O;((O=this.data)==null?0:O.command)?(_.eq(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.eq(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}};
Rx.prototype.onTap=function(){var A;if(this.data&&(A=this.data)!=null&&A.command){var L;this.ytComponentBehavior.resolveCommand((L=this.data)==null?void 0:L.command)}};
Rx.prototype.getIconSize=function(){return _.h("kevlar_fill_comment_chip_icon_killswitch")?24:12};
Rx.prototype.onTap=Rx.prototype.onTap;Rx.prototype.dataChanged=Rx.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Rx.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],Rx.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.lh),_.Z("design:type",Object)],Rx.prototype,"ironA11yKeysBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Rx.prototype,"data",void 0);
_.I([_.K(),_.Z("design:type",Object)],Rx.prototype,"basePriceText",void 0);_.I([_.K(),_.Z("design:type",Object)],Rx.prototype,"chipIcon",void 0);_.I([_.K(),_.Z("design:type",Object)],Rx.prototype,"defaultIconToFilled",void 0);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Rx.prototype,"dataChanged",null);_.I([_.by("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Rx.prototype,"onTap",null);
_.I([_.yU({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],Rx);
_.m(Rx,"yt-pdg-comment-chip-renderer",function(){if(fwu===void 0){var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;mPV===void 0&&(mPV=document.createElement("template"));var X=mPV;O.call(L,X.content.cloneNode(!0),A.content.firstChild);fwu=A}A=fwu;return A},{mode:2});var QC=function(){var A=_.G.apply(this,arguments)||this;A.useSmallAvatars=_.h("small_avatars_for_comments");A.webWatchCompactComments=_.h("web_watch_compact_comments");A.editDialog=null;return A};
_.g(QC,_.G);_.P=QC.prototype;_.P.onShow=function(){_.QN("cmv",void 0,"wn_comments")};
_.P.configureRendererStamper=function(){return{authorCommentBadge:{id:"author-comment-badge",mapping:{renderer:"ytd-author-comment-badge-renderer"}},linkedCommentBadge:{id:"linked-comment-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[linkedCommentBadge]]"}}}},pinnedCommentBadge:{id:"pinned-comment-badge",mapping:{renderer:"ytd-pinned-comment-badge-renderer"}},sponsorCommentBadge:{id:"sponsor-comment-badge",mapping:{renderer:"ytd-sponsor-comment-badge-renderer"}},
editDialog:{id:"edit-dialog",mapping:{commentDialogRenderer:"ytd-comment-dialog-renderer",commentReplyDialogRenderer:"ytd-comment-reply-dialog-renderer"}}}};
_.P.detached=function(){this.editDialog=null;this.expander.reset()};
_.P.updateBackgroundColor=function(){if(this.backgroundColor){var A={"--ytd-comment-paid-background-color":_.Hy(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.eq(this.hostElement,A)}else _.eq(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.P.resetExpander=function(){var A;(A=this.expander)==null||A.reset()};
_.P.openEditDialog=function(A){A.dialog&&(this.editDialog=A.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.P.onYtNavigate=function(A){var L=A.detail.endpoint;if(L=_.q(L,_.koJ)||_.q(L,_.U5n))A.stopPropagation(),this.openEditDialog(L)};
_.P.onYtCommentboxDismiss=function(){this.editDialog=null;_.eq(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.P.onAuthorThumbnailClicked=function(){_.h("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.P.onYtCommentboxResize=function(A){var L;(A==null?0:(L=A.detail)==null?0:L.height)&&_.eq(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":A.detail.height+"px"})};
_.v2.Object.defineProperties(QC.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 A,L=(A=this.commentEntity)==null?void 0:A.author;return L&&(L.isCreator||L.isVerified||L.isArtist)?{renderer:{authorEndpoint:L.channelPageEndpoint?_.q(L.channelPageEndpoint,_.WR):_.q(L.channelCommand,_.WR),authorText:{runs:[{text:L.displayName}]},color:L.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:L.isArtist?{iconType:"AUDIO_BADGE"}:
L.isVerified?{iconType:L.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:L.isArtist||L.isVerified?L.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var A,L=(A=this.commentEntity)==null?void 0:A.author;return L!=null&&L.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:L.sponsorBadgeUrl}]},tooltip:L.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var A;return _.q((A=this.commentSurfaceEntity)==null?void 0:A.pdgCommentChip,_.ib3)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var A;return this.voiceReplyContainerViewModel&&((A=this.voiceReplyContainerViewModel)==null?void 0:A.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var A;return _.q((A=this.commentSurfaceEntity)==null?void 0:A.voiceReplyContainerViewModel,X93)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var A;return this.voiceReplyContainerViewModel&&(A=this.voiceReplyContainerViewModel)!=null&&A.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var A,L;return(L=(A=this.commentSurfaceEntity)==null?void 0:A.commentBackgroundColor)!=null?L:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.h("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var A,L;return(((A=this.commentEntity)==null?void 0:(L=A.properties)==null?void 0:L.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var A,L;if(_.h("enable_profile_cards_on_comments")&&((A=this.commentEntity)==null?0:(L=A.author)==null?0:L.profileCardEndpoint)&&this.viewModel.allowProfileCard){var O,X;return _.q((O=this.commentEntity)==null?void 0:(X=O.author)==null?void 0:X.profileCardEndpoint,_.WR)}var x,J;return _.q((x=this.commentEntity)==null?void 0:(J=x.avatar)==null?void 0:J.endpoint,_.WR)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var A,L;if(_.h("enable_profile_cards_on_comments")&&((A=this.commentEntity)==null?0:(L=A.author)==null?0:L.channelPageEndpoint)){var O,X;return _.q((O=this.commentEntity)==null?void 0:(X=O.author)==null?void 0:X.channelPageEndpoint,_.WR)}var x,J;return _.q((x=this.commentEntity)==null?void 0:(J=x.avatar)==null?void 0:J.endpoint,_.WR)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var A,L,O,X,x=(A=this.commentEntity)==null?void 0:(L=A.avatar)==null?void 0:(O=L.image)==null?void 0:(X=O.sources)==null?void 0:X[0];return x?{thumbnails:[{url:x.url,width:x.width,height:x.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var A,L;return((A=this.commentEntity)==null?0:(L=A.author)==null?0:L.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var A,L;return((A=this.commentEntity)==null?void 0:(L=A.author)==null?void 0:L.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var A,L;return((A=this.commentEntity)==null?void 0:(L=A.properties)==null?void 0:L.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var A;return _.q((A=this.commentSurfaceEntity)==null?void 0:A.publishedTimeCommand,_.WR)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var A,L;if(((A=this.commentEntity)==null?0:A.translatedContent)&&((L=this.translateButtonState)==null?void 0:L.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var O;if((O=this.voiceReplyContainerViewModel)==null?0:O.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var X,x;return((X=this.commentEntity)==null?void 0:(x=X.properties)==null?void 0:x.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var A,L;return((A=this.commentSharedEntity)==null?void 0:(L=A.strings)==null?void 0:L.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var A,L;return((A=this.commentSharedEntity)==null?void 0:(L=A.strings)==null?void 0:L.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.commentEntity)==null||!A.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var A,L,O=(L=_.q((A=this.viewModel)==null?void 0:A.translateButton,On6))!=null?L:{},X,x,J,Y,T,V,E,n,t,b,S;return Object.assign({},O,{untoggledStateData:Object.assign({},O.untoggledStateData,{buttonText:(X=this.commentEntity)==null?void 0:(x=X.translateData)==null?void 0:x.text}),togglingStateData:Object.assign({},O.togglingStateData,{buttonText:(J=this.commentSharedEntity)==null?
void 0:(Y=J.strings)==null?void 0:Y.translatingText}),toggledStateData:Object.assign({},O.toggledStateData,{buttonText:(T=this.commentSharedEntity)==null?void 0:(V=T.strings)==null?void 0:V.seeOriginalText}),transitionCommand:((E=this.commentEntity)==null?0:E.translatedContent)?void 0:_.q((n=this.commentEntity)==null?void 0:(t=n.translateData)==null?void 0:t.translateComment,_.WR),triStateKey:(b=this.commentEntity)==null?void 0:(S=b.properties)==null?void 0:S.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var A,L,O;return((L=_.q(_.q((A=this.toolbarSurface)==null?void 0:A.menuCommand,_.WR),vpu))==null?void 0:(O=L.menu)==null?void 0:O.menuRenderer)||null}}});
QC.prototype.onYtCommentboxResize=QC.prototype.onYtCommentboxResize;QC.prototype.onYtCommentboxDismiss=QC.prototype.onYtCommentboxDismiss;QC.prototype.onYtNavigate=QC.prototype.onYtNavigate;QC.prototype.resetExpander=QC.prototype.resetExpander;QC.prototype.updateBackgroundColor=QC.prototype.updateBackgroundColor;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],QC.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],QC.prototype,"ytdReduxBehavior",void 0);
_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],QC.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],QC.prototype,"ytRendererstamperBehavior",void 0);_.I([_.qR("#author-thumbnail > button"),_.Z("design:type",HTMLElement)],QC.prototype,"authorThumbnailAnchor",void 0);_.I([_.K({reflectToAttribute:!0}),_.r("viewModel"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],QC.prototype,"linked",null);
_.I([_.r("viewModel","linked"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QC.prototype,"linkedCommentBadge",null);_.I([_.K({reflectToAttribute:!0}),_.r("viewModel"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],QC.prototype,"pinned",null);_.I([_.r("viewModel","pinned"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QC.prototype,"pinnedCommentBadge",null);
_.I([_.r("commentEntity","commentSharedEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QC.prototype,"authorCommentBadge",null);_.I([_.K({reflectToAttribute:!0}),_.r("authorCommentBadge"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QC.prototype,"hasAuthorBadge",null);_.I([_.r("commentEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QC.prototype,"sponsorCommentBadge",null);
_.I([_.K({reflectToAttribute:!0}),_.r("sponsorCommentBadge"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QC.prototype,"hasSponsorBadge",null);_.I([_.r("commentSurfaceEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QC.prototype,"pdgCommentChipRenderer",null);_.I([_.K({reflectToAttribute:!0}),_.r("voiceReplyContainerViewModel"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QC.prototype,"hasVoiceReply",null);
_.I([_.r("commentSurfaceEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QC.prototype,"voiceReplyContainerViewModel",null);_.I([_.r("voiceReplyContainerViewModel"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QC.prototype,"voiceReplyUnavailableText",null);_.I([_.K(),_.Z("design:type",Object)],QC.prototype,"data",void 0);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QC.prototype,"viewModel",null);
_.I([_.K({selector:function(A,L){return _.eM(A.entities,"commentSharedEntityPayload",L)},
selectorArgs:["viewModel.sharedKey"]}),_.Z("design:type",Object)],QC.prototype,"commentSharedEntity",void 0);_.I([_.K({selector:function(A,L){return _.eM(A.entities,"commentEntityPayload",L)},
selectorArgs:["viewModel.commentKey"]}),_.Z("design:type",Object)],QC.prototype,"commentEntity",void 0);_.I([_.K({selector:function(A,L){return _.eM(A.entities,"commentSurfaceEntityPayload",L)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.Z("design:type",Object)],QC.prototype,"commentSurfaceEntity",void 0);_.I([_.K({selector:z5e,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.Z("design:type",Object)],QC.prototype,"toolbarSurface",void 0);_.I([_.K({selector:BLJ,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.Z("design:type",Object)],QC.prototype,"translateButtonState",void 0);
_.I([_.r("commentSurfaceEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QC.prototype,"backgroundColor",null);_.I([_.K({reflectToAttribute:!0}),_.r("viewModel"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],QC.prototype,"optimalReadingWidthComments",null);_.I([_.qR("ytd-expander"),_.Z("design:type",Object)],QC.prototype,"expander",void 0);
_.I([_.hT("backgroundColor"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],QC.prototype,"updateBackgroundColor",null);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],QC.prototype,"useSmallAvatars",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],QC.prototype,"webWatchCompactComments",void 0);_.I([_.K({reflectToAttribute:!0}),_.r("commentEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QC.prototype,"isReply",null);
_.I([_.r("commentEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QC.prototype,"authorThumbnailEndpoint",null);_.I([_.r("commentEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QC.prototype,"authorNameEndpoint",null);_.I([_.r("commentEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QC.prototype,"authorThumbnail",null);_.I([_.r("commentEntity"),_.Z("design:type",String),_.Z("design:paramtypes",[])],QC.prototype,"authorTextClass",null);
_.I([_.r("commentEntity"),_.Z("design:type",String),_.Z("design:paramtypes",[])],QC.prototype,"authorChannelName",null);_.I([_.r("commentEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QC.prototype,"publishedTime",null);_.I([_.r("commentSurfaceEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QC.prototype,"publishedTimeCommand",null);
_.I([_.r("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QC.prototype,"contentText",null);_.I([_.hT("contentText"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],QC.prototype,"resetExpander",null);_.I([_.r("commentEntity"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],QC.prototype,"shouldShowReadMoreInitially",null);
_.I([_.r("commentSharedEntity"),_.Z("design:type",String),_.Z("design:paramtypes",[])],QC.prototype,"expandText",null);_.I([_.r("commentSharedEntity"),_.Z("design:type",String),_.Z("design:paramtypes",[])],QC.prototype,"collapseText",null);_.I([_.r("commentEntity"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],QC.prototype,"shouldShowTranslateButton",null);
_.I([_.r("commentEntity","commentSharedEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QC.prototype,"translateButton",null);_.I([_.r("toolbarSurface"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],QC.prototype,"overflowMenuRenderer",null);_.I([_.K(),_.Z("design:type",Object)],QC.prototype,"editDialog",void 0);_.I([_.qR("ytd-comment-dialog-renderer"),_.Z("design:type",Object)],QC.prototype,"editCommentDialogContainer",void 0);
_.I([_.qR("ytd-comment-reply-dialog-renderer"),_.Z("design:type",Object)],QC.prototype,"editReplyDialogContainer",void 0);_.I([_.by("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],QC.prototype,"onYtNavigate",null);_.I([_.by("yt-commentbox-dismiss"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],QC.prototype,"onYtCommentboxDismiss",null);
_.I([_.by("yt-commentbox-resize"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],QC.prototype,"onYtCommentboxResize",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-comment-view-model"})],QC);
_.m(QC,"ytd-comment-view-model",function(){if(RRJ!==void 0)return RRJ;var A=document.createElement("template");_.p(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-view-model"></div>\n<div id="linked-comment-badge" class="style-scope ytd-comment-view-model"></div>\n\n<div id="body" hidden="[[editDialog]]" class="style-scope ytd-comment-view-model">\n  \n  <div id="author-thumbnail" class="style-scope ytd-comment-view-model">\n    <button id="author-thumbnail-button" aria-label="[[authorChannelName]]" on-click="onAuthorThumbnailClicked" class="style-scope ytd-comment-view-model">\n      <yt-img-shadow fit="" height="40" thumbnail="[[authorThumbnail]]" width="40" class="style-scope ytd-comment-view-model"> </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model">\n          \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model"> [[authorChannelName]] </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" recompute-on-resize="[[webWatchCompactComments]]" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return RRJ=A},{mode:_.e5("kevlar_poly_si_batch_j025")?1:2});var mm=function(){var A=_.G.apply(this,arguments)||this;A.modern=_.h("web_modern_buttons");A.commentThreadingEnabled=_.h("web_delhi_comment_threads");A.isWatchGrid=_.h("kevlar_watch_grid");A.buttonOverrides=A.commentThreadingEnabled?{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};A.JSC$16861_spinnerEl=null;return A};
_.g(mm,_.G);_.P=mm.prototype;_.P.configureContinuationPathMap=function(){return _.h("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.P.shouldShowExpandedThreads=function(A,L){return this.commentThreadingEnabled&&!L&&(A==null?void 0:A.length)>0};
_.P.shouldShowCollapsedThreads=function(A,L){return this.commentThreadingEnabled&&L&&A};
_.P.computeThreadRenderer=function(A){return _.q(A,at6)};
_.P.computeIsContinuationItem=function(A){return!!this.computeContinuationItemRenderer(A)};
_.P.computeButtonRenderer=function(A){return _.q(A,_.$t)};
_.P.computeContinuationItemRenderer=function(A){return _.q(A,_.JR)};
_.P.configureRendererStamper=function(){return{"data.teaserContents":{id:"teaser-replies",mapping:{commentViewModel:{component:"ytd-comment-view-model"}}},"data.contents":{id:"contents",mapping:{commentViewModel:{component:"ytd-comment-view-model"},continuationItemRenderer:{component:"ytd-continuation-item-renderer",params:{showButton:!0,isCommentsSection:!1},properties:{buttonOverrides:"[[buttonOverrides]]"}}}}}};
_.P.attached=function(){this.isShowRepliesVisible=!0};
_.P.dataChanged=function(){var A=this.expanderContents;A&&(A.hidden=!0);this.isLoading=!1};
_.P.endsInContinuation=function(A){return!!A&&A.length>0&&!!this.computeContinuationItemRenderer(A[A.length-1])};
_.P.computeShouldShowHideRepliesButton=function(A,L){return!A&&L};
_.P.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.P.isLoadingChanged=function(){this.isLoading&&!this.JSC$16861_spinnerEl&&(this.JSC$16861_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.YJ(this.expanderContents).appendChild(this.JSC$16861_spinnerEl));this.JSC$16861_spinnerEl&&(this.JSC$16861_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var A;(A=this.contents)==null||A.classList.remove("reloading")}};
_.P.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var A=_.q(this.data.viewReplies,_.$t);A&&this.ytRendererBehavior.logExplicitClick(A);this.commentThreadingEnabled&&this.toggleCollapsed&&this.toggleCollapsed()};
_.P.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var A=_.q(this.data.hideReplies,_.$t);A&&this.ytRendererBehavior.logExplicitClick(A);this.commentThreadingEnabled&&this.toggleCollapsed&&this.toggleCollapsed()};
_.P.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var A=_.YJ(this.hostElement).querySelector("#expander-contents");A&&(A.hidden=this.isShowRepliesVisible)}};
_.P.computeAlign=function(){if(this.modern){var A;return!((A=this.data)==null?0:A.viewRepliesCreatorThumbnail)}};
_.v2.Object.defineProperties(mm.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var A,L;return this.endsInContinuation((A=this.data)==null?void 0:A.contents)||this.commentThreadingEnabled&&this.endsInContinuation((L=this.data)==null?void 0:L.subThreads)}}});
mm.prototype.isShowMoreChanged=mm.prototype.isShowMoreChanged;mm.prototype.isLoadingChanged=mm.prototype.isLoadingChanged;mm.prototype.triggerFirstContinuation=mm.prototype.triggerFirstContinuation;mm.prototype.dataChanged=mm.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],mm.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],mm.prototype,"ytRendererstamperBehavior",void 0);
_.I([_.N(_.U8),_.Z("design:type",Object)],mm.prototype,"ytContinuationHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],mm.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],mm.prototype,"modern",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],mm.prototype,"commentThreadingEnabled",void 0);_.I([_.K(),_.Z("design:type",Boolean)],mm.prototype,"collapsed",void 0);
_.I([_.K(),_.Z("design:type",Function)],mm.prototype,"toggleCollapsed",void 0);_.I([_.K(),_.Z("design:type",Boolean)],mm.prototype,"isLoading",void 0);_.I([_.K({value:!0}),_.Z("design:type",Boolean)],mm.prototype,"isShowRepliesVisible",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],mm.prototype,"useNewFormatting",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],mm.prototype,"isWatchGrid",void 0);_.I([_.K(),_.Z("design:type",Object)],mm.prototype,"buttonOverrides",void 0);
_.I([_.qR("#expander-contents"),_.Z("design:type",HTMLElement)],mm.prototype,"expanderContents",void 0);_.I([_.qR("ytd-continuation-item-renderer"),_.Z("design:type",Object)],mm.prototype,"continuationItemRenderer",void 0);_.I([_.qR("#contents"),_.Z("design:type",HTMLElement)],mm.prototype,"contents",void 0);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],mm.prototype,"dataChanged",null);
_.I([_.r("data.contents","data.subThreads.*"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],mm.prototype,"hasContinuation",null);_.I([_.by("yt-expander-more-tapped"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],mm.prototype,"triggerFirstContinuation",null);_.I([_.hT("isLoading"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],mm.prototype,"isLoadingChanged",null);
_.I([_.hT("isShowRepliesVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],mm.prototype,"isShowMoreChanged",null);_.I([_.Q({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],mm);
_.m(mm,"ytd-comment-replies-renderer",function(){if(KHl!==void 0)return KHl;var A=document.createElement("template");_.p(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[commentThreadingEnabled]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!isShowRepliesVisible]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n<div hidden="[[!shouldShowCollapsedThreads(data.viewReplies, collapsed)]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="sub-thread style-scope ytd-comment-replies-renderer" is-button="">\n    <div class="threadline style-scope ytd-comment-replies-renderer">\n      <div class="connection style-scope ytd-comment-replies-renderer"></div>\n      <div class="continuation style-scope ytd-comment-replies-renderer"></div>\n      <div class="shadow style-scope ytd-comment-replies-renderer"></div>\n    </div>\n    <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n      <ytd-button-renderer id="more-replies-sub-thread" data="[[computeButtonRenderer(data.viewReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowMoreTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div hidden="[[!shouldShowExpandedThreads(data.subThreads, collapsed)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[data.subThreads]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="sub-thread style-scope ytd-comment-replies-renderer" is-button$="[[computeIsContinuationItem(item)]]">\n      <div class="threadline style-scope ytd-comment-replies-renderer">\n        <div class="connection style-scope ytd-comment-replies-renderer"></div>\n        <div class="continuation style-scope ytd-comment-replies-renderer"></div>\n        <div class="shadow style-scope ytd-comment-replies-renderer"></div>\n      </div>\n      <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n        <template is="dom-if" if="[[computeThreadRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n          <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n          </ytd-comment-thread-renderer>\n        </template>\n        <template is="dom-if" if="[[computeContinuationItemRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n          <ytd-continuation-item-renderer button-overrides="[[buttonOverrides]]" data="[[computeContinuationItemRenderer(item)]]" is-comments-section="" show-button="" class="style-scope ytd-comment-replies-renderer">\n          </ytd-continuation-item-renderer>\n        </template>\n      </div>\n    </div>\n  </template>\n  <template is="dom-if" if="[[computeShouldShowHideRepliesButton(hasContinuation, data.hideReplies)]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="sub-thread style-scope ytd-comment-replies-renderer" is-button="">\n      <div class="threadline style-scope ytd-comment-replies-renderer">\n        <div class="connection style-scope ytd-comment-replies-renderer"></div>\n        <div class="continuation style-scope ytd-comment-replies-renderer"></div>\n        <div class="shadow style-scope ytd-comment-replies-renderer"></div>\n      </div>\n      <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-sub-thread" data="[[computeButtonRenderer(data.hideReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowLessTap" class="style-scope ytd-comment-replies-renderer">\n        </ytd-button-renderer>\n      </div>\n    </div>\n  </template>\n</div>\n');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return KHl=A},{mode:1});var IwH;var fp=function(){var A=_.G.apply(this,arguments)||this;A.isOpen=!1;A.commentDialog=null;A.useSmallAvatars=_.h("small_avatars_for_comments");A.useSmallAvatarsEngagementPanelOnly=_.h("small_avatars_for_comments_ep");A.placeholderFocusListener=null;A.hasOpenedDialog=!1;A.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return A};
_.g(fp,_.G);_.P=fp.prototype;_.P.configureRendererStamper=function(){return{"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},commentDialog:{id:"comment-dialog",mapping:{commentDialogRenderer:{component:"ytd-comment-dialog-renderer",properties:{zeroStepChannelCreationRenderer:"[[data.zeroStep.zeroStepChannelCreationRenderer]]"}}}}}};
_.P.ready=function(){var A=this,L=_.YJ(this.hostElement).querySelector("#placeholder-area"),O=_.YJ(this.hostElement).querySelector("#simplebox-placeholder"),X=function(x){x.stopPropagation();x instanceof KeyboardEvent&&x.type==="keypress"&&x.keyCode!==13&&x.keyCode!==32||A.openDialog()};
this.placeholderFocusListener=X;O.addEventListener("focus",this.placeholderFocusListener);L.addEventListener("tap",X);L.addEventListener("keypress",X)};
_.P.maybeRemoveFocusEventListener=function(){var A;(A=this.data)!=null&&A.prepareAccountEndpoint&&!_.h("web_comments_simplebox_modal_focus_on_tap_ks")&&(A=_.YJ(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(A.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.P.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.P.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.h("web_comment_simplebox_resolve_polymer_command_ks")?_.S5.instance.resolveCommand(this.data.prepareAccountEndpoint):_.qb(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.subscribersOnlySnackbarCommand&&!this.hasOpenedDialog){var A=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand);A&&this.ytdOpenPopupBehavior.openPopup(A);this.hasOpenedDialog=!0}this.commentDialog||
(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.YJ(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.P.onYtCommentboxDismiss=function(A){A.stopPropagation();this.isOpen=!1};
_.P.onCreateCommentAction=function(A){this.get("createCommentAction.contents",A)&&(this.isOpen=!1)};
_.P.computeCommentDialog=function(A){return{placeholderText:A.placeholderText,authorThumbnail:A.authorThumbnail,submitButton:A.submitButton,imageButton:A.imageButton,cancelButton:A.cancelButton,emojiButton:A.emojiButton,emojis:A.emojis,emojiPicker:A.emojiPicker,aadcGuidelinesStateEntityKey:A.aadcGuidelinesStateEntityKey,openAadcDialog:A.openAadcDialog,unicodeEmojisUrl:A.unicodeEmojisUrl}};
_.P.onHideIdentityChip=function(A){_.q(A,WS6)&&this.set("data.placeholderText",_.q(A,WS6).placeholderText)};
fp.prototype.onYtCommentboxDismiss=fp.prototype.onYtCommentboxDismiss;fp.prototype.dataChanged=fp.prototype.dataChanged;_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],fp.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.J3),_.Z("design:type",Object)],fp.prototype,"ytdOpenPopupBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],fp.prototype,"ytRendererBehavior",void 0);
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],fp.prototype,"ytActionHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],fp.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],fp.prototype,"isOpen",void 0);_.I([_.K(),_.Z("design:type",Object)],fp.prototype,"commentDialog",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],fp.prototype,"engagementPanel",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],fp.prototype,"useSmallAvatars",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],fp.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],fp.prototype,"enableCreationBox",void 0);_.I([_.K(),_.Z("design:type",Boolean)],fp.prototype,"showCreateDialog",void 0);
_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],fp.prototype,"dataChanged",null);_.I([_.by("yt-commentbox-dismiss"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],fp.prototype,"onYtCommentboxDismiss",null);_.I([_.Q({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],fp);
_.m(fp,"ytd-comment-simplebox-renderer",function(){if(IwH!==void 0)return IwH;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return IwH=A},{mode:1});var yxL;_.y3("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var Ix=function(){var A=_.G.apply(this,arguments)||this;A.addHoverEffect=_.h("swatcheroo_comments_hover_effect");A.useSmallAvatars=_.h("small_avatars_for_comments");A.threadHovered=!1;A.collapsed=!1;A.toggleCollapsed=function(){A.collapsed=!A.collapsed;A.collapsed&&_.h("web_comment_threading_scroll_on_collapse")&&_.dQ(A.hostElement,"yt-scroll-to-watch-element",[A.commentElement])};
return A};
_.g(Ix,_.G);Ix.prototype.onTap=function(A){if(this.addHoverEffect&&!this.engagementPanel&&!_.xu(_.oa(A)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var L;((L=window.getSelection())==null?0:L.toString().length)||_.qb({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
Ix.prototype.attached=function(){var A=this,L;(L=this.commentThreadHitbox)==null||L.addEventListener("mouseover",function(){A.threadHovered=!0});
var O;(O=this.commentThreadHitbox)==null||O.addEventListener("mouseout",function(){A.threadHovered=!1});
var X;(X=this.commentThreadHitbox)==null||X.addEventListener("click",function(){A.maybeToggleCollapsed()})};
Ix.prototype.maybeToggleCollapsed=function(){var A,L,O,X=(A=this.data)==null?void 0:(L=A.replies)==null?void 0:(O=L.commentRepliesRenderer)==null?void 0:O.subThreads;X&&(X.length===1&&_.q(X[0],_.JR)||this.toggleCollapsed())};
_.v2.Object.defineProperties(Ix.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)!=null&&A.commentViewModel)return _.q(this.data.commentViewModel,LZj)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var A,L,O;return _.h("web_delhi_comment_threads")&&!!((A=this.data)==null?0:(L=A.replies)==null?0:(O=L.commentRepliesRenderer)==null?0:O.subThreads)}}});
Ix.prototype.onTap=Ix.prototype.onTap;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Ix.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Ix.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Ix.prototype,"addHoverEffect",void 0);_.I([_.K(),_.Z("design:type",Object)],Ix.prototype,"data",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Ix.prototype,"useSmallAvatars",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Ix.prototype,"isSubThread",void 0);_.I([_.qR(".thread-hitbox"),_.Z("design:type",HTMLElement)],Ix.prototype,"commentThreadHitbox",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Ix.prototype,"threadHovered",void 0);_.I([_.qR("#comment"),_.Z("design:type",HTMLElement)],Ix.prototype,"commentElement",void 0);
_.I([_.K(),_.Z("design:type",Object)],Ix.prototype,"collapsed",void 0);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Ix.prototype,"commentViewModel",null);_.I([_.r("data.replies"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Ix.prototype,"hasSubThreading",null);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Ix.prototype,"engagementPanel",void 0);
_.I([_.by("tap"),_.by("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],Ix.prototype,"onTap",null);_.I([_.Q({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],Ix);
_.m(Ix,"ytd-comment-thread-renderer",function(){if(yxL!==void 0)return yxL;var A=document.createElement("template");_.p(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="comment-container" class="style-scope ytd-comment-thread-renderer">\n  <div class="threadline style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"><div class="continuation style-scope ytd-comment-thread-renderer"></div></div>\n  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" class="style-scope ytd-comment-thread-renderer"> </ytd-comment-view-model>\n</div>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer">\n  <template is="dom-if" if="[[data.replies]]" class="style-scope ytd-comment-thread-renderer">\n    <ytd-comment-replies-renderer collapsed="[[collapsed]]" data="[[data.replies.commentRepliesRenderer]]" toggle-collapsed="[[toggleCollapsed]]" class="style-scope ytd-comment-thread-renderer">\n    </ytd-comment-replies-renderer>\n  </template>\n</div>\n<div class="thread-hitbox style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"></div>\n');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return yxL=A},{mode:_.e5("kevlar_poly_si_batch_j025")?1:2});var Z8N;var yC=function(){var A=_.G.apply(this,arguments)||this;A.modernTypography=_.h("web_modern_typography");A.compactHeader=_.h("web_watch_compact_comments_header");A.hidePanelButton=!1;A.isPostSchedulingEnabled=_.h("enable_post_scheduling");A.hasFinishedStamping=!1;A.JSC$16879_handleOpenPostCommentDialogActionAfterStamp=!1;A.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return A};
_.g(yC,_.G);_.P=yC.prototype;
_.P.configureRendererStamper=function(){return{"data.createRenderer":{id:"simple-box",mapping:{commentSimpleboxRenderer:{component:"ytd-comment-simplebox-renderer",properties:{engagementPanel:"[[engagementPanel]]",showCreateDialog:"[[data.showCreateDialog]]"}}}},"data.pausedCommentsMessage":{id:"paused-comments-message",mapping:{messageRenderer:"ytd-comment-pause-composer-renderer"}},backstagePostDialog:{id:"backstage-post-dialog",mapping:{backstagePostDialogRenderer:{component:"ytd-backstage-post-dialog-renderer"}},events:!0},
"data.sortMenu":{id:"sort-menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},"data.alerts":{id:"alert",mapping:{alertWithButtonRenderer:"ytd-alert-with-button-renderer"},renderPriority:0,waitForSignal:"eocs"},"data.zeroStateMessage":{id:"zero-state-message",mapping:{backstageZeroStateRenderer:"ytd-backstage-zero-state-renderer",postFilterZeroStateRenderer:"ytd-post-filter-zero-state-renderer"}},"data.prefilledCreateDialogHeaderMessage":{id:"prefilled-dialog-header",mapping:{backstagePrefilledPostDialogHeaderRenderer:"ytd-backstage-prefilled-post-dialog-header-renderer"}},
"data.postStreamFilter":{id:"post-stream-filter",mapping:{postStreamFilterRenderer:"ytd-post-stream-filter-renderer"}},"data.schedulingZeroStateMessage":{id:"scheduling-zero-state-message",mapping:{postSchedulingZeroStateRenderer:"ytd-post-scheduling-zero-state-renderer"}}}};
_.P.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.P.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$16879_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.P.onYtServiceRequestSent=function(A,L){if(!_.h("kevlar_command_handler")&&L.actions)for(A=0;A<L.actions.length;A++){var O=L.actions[A];_.q(O,V7l)&&_.YJ(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.q(O,V7l))}};
_.P.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var A;if(this.getPrefilledBackstagePostDialog((A=this.data)==null?void 0:A.actions)){_.YJ(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var L=_.YJ(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;L&&_.kd(this,function(){L.focus();L.openDialog&&L.openDialog()})}}else this.hasActionsChange=!0};
_.P.computeIsBackstage=function(A){return A};
_.P.onYtCommentboxDismiss=function(){_.YJ(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.P.removePrefilledDialog=function(A){if(A==null?0:A.actions){for(var L=A.actions.length-1;L>=0;L--){var O=void 0;((O=_.q(A.actions[L],$5J))==null?0:O.dialog)&&delete A.actions[L]}this.set("data",void 0);this.set("data",A)}};
_.P.getPrefilledBackstagePostDialog=function(A){if(A)for(var L=0;L<A.length;L++){var O=A[L],X=void 0;if((X=_.q(O,$5J))==null?0:X.dialog)return _.q(O,$5J).dialog}return null};
_.P.computeBackstagePostDialog=function(A){return A&&(this.getPrefilledBackstagePostDialog(A.actions)||A.createRenderer)};
_.P.dataChanged=function(){if(this.data){var A=this.data.customEmojis,L=this.data.unicodeEmojisUrl;_.k5.clear();L&&_.W3n(_.k5,L);A&&_.k5.load(A)}};
_.P.handleSignalActionOpenPostCommentDialogAction=function(){var A=_.YJ(this.hostElement).querySelector("ytd-comment-simplebox-renderer");A?A.openDialog():this.JSC$16879_handleOpenPostCommentDialogActionAfterStamp=!0};
_.v2.Object.defineProperties(yC.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.h("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var A,L,O,X,x,J,Y;return!this.hidePanelButton&&_.h("kevlar_watch_comments_panel_button")&&((Y=_.q((A=this.data)==null?void 0:(L=A.sortMenu)==null?void 0:(O=L.sortFilterSubMenuRenderer)==null?void 0:(X=O.subMenuItems)==null?void 0:(x=X[0])==null?void 0:(J=x.serviceEndpoint)==null?void 0:J.commandMetadata,_.LM))==null?void 0:Y.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.b3("MINIPLAYER_EXPAND_LABEL"),text:_.Ue(_.b3("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
yC.prototype.dataChanged=yC.prototype.dataChanged;yC.prototype.onYtCommentboxDismiss=yC.prototype.onYtCommentboxDismiss;yC.prototype.observePrefilledBackstagePostDialog=yC.prototype.observePrefilledBackstagePostDialog;yC.prototype.onYtServiceRequestSent=yC.prototype.onYtServiceRequestSent;yC.prototype.onStampFinished=yC.prototype.onStampFinished;_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],yC.prototype,"ytActionHandlerBehavior",void 0);
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],yC.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],yC.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],yC.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],yC.prototype,"modernTypography",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],yC.prototype,"compactHeader",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],yC.prototype,"engagementPanel",void 0);_.I([_.K(),_.Z("design:type",Object)],yC.prototype,"hidePanelButton",void 0);_.I([_.K({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],yC.prototype,"isBackstage",void 0);_.I([_.K({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.Z("design:type",Object)],yC.prototype,"backstagePostDialog",void 0);
_.I([_.K(),_.Z("design:type",Object)],yC.prototype,"isPostSchedulingEnabled",void 0);_.I([_.K({reflectToAttribute:!0}),_.r("data","showCommentsPanelButton"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],yC.prototype,"useSpaceBetween",null);_.I([_.K({reflectToAttribute:!0}),_.r("data","hidePanelButton"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],yC.prototype,"showCommentsPanelButton",null);
_.I([_.r("data","showCommentsPanelButton"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],yC.prototype,"commentsPanelButtonData",null);_.I([_.by("yt-rendererstamper-finished"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],yC.prototype,"onStampFinished",null);_.I([_.by("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.aQ]),_.Z("design:returntype")],yC.prototype,"onYtServiceRequestSent",null);
_.I([_.hT("data.actions"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],yC.prototype,"observePrefilledBackstagePostDialog",null);_.I([_.by("yt-commentbox-dismiss"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],yC.prototype,"onYtCommentboxDismiss",null);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],yC.prototype,"dataChanged",null);
_.I([_.Q({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],yC);
_.m(yC,"ytd-comments-header-renderer",function(){if(Z8N!==void 0)return Z8N;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Z8N=A},{mode:1});var jTl;var Z0=function(){return _.G.apply(this,arguments)||this};
_.g(Z0,_.G);_.I([_.K(),_.Z("design:type",Object)],Z0.prototype,"data",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Z0.prototype,"ytRendererBehavior",void 0);_.I([_.Q({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],Z0);
_.m(Z0,"ytd-destination-button-renderer",function(){if(jTl!==void 0)return jTl;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return jTl=A},{mode:1});var WHl;var ji=function(){var A=_.G.apply(this,arguments)||this;A.isRichGrid=!1;A.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};A.modernTypography=_.h("web_modern_typography");return A};
_.g(ji,_.G);_.P=ji.prototype;_.P.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.P.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.P.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.P.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var A;if((A=this.data)==null||!A.isExpanded){A=this.hostElement.clientWidth;var L;if(A&&(L=this.data)!=null&&L.destinationButtons){L=Math.floor((A+4)/214);A=this.data.destinationButtons.length;var O=Math.ceil(A/L);this.fullyVisibleRows=A%L===1&&O===2?1:Math.min(O,2);this.isShowMoreVisible=this.fullyVisibleRows<O}}}};
_.P.updateRichGridDestinationButtonsVisibility=function(){var A,L;if(this.isRichGrid&&((A=this.data)==null||!A.isExpanded)&&(L=this.data)!=null&&L.destinationButtons){A=this.richGridItemsPerRow+1;L=this.data.destinationButtons.length;var O=Math.ceil(L/A);this.fullyVisibleRows=L%A===1&&O===2?1:Math.min(O,2);this.isShowMoreVisible=this.fullyVisibleRows<O}};
_.P.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
ji.prototype.updateRichGridDestinationButtonsVisibility=ji.prototype.updateRichGridDestinationButtonsVisibility;_.I([_.K(),_.Z("design:type",Object)],ji.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Number)],ji.prototype,"fullyVisibleRows",void 0);_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],ji.prototype,"isShowMoreVisible",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],ji.prototype,"isRichGrid",void 0);
_.I([_.K({selector:_.Rm,value:0}),_.Z("design:type",Number)],ji.prototype,"richGridItemsPerRow",void 0);_.I([_.K(),_.Z("design:type",Object)],ji.prototype,"gridStateActionMap",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],ji.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],ji.prototype,"ytRendererstamperBehavior",void 0);
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],ji.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],ji.prototype,"ytdReduxBehavior",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],ji.prototype,"modernTypography",void 0);_.I([_.hT("data","richGridItemsPerRow"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ji.prototype,"updateRichGridDestinationButtonsVisibility",null);
_.I([_.Q({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],ji);
_.m(ji,"ytd-destination-shelf-renderer",function(){if(WHl!==void 0)return WHl;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return WHl=A},{mode:1});var H8J;var WA=function(){return _.G.apply(this,arguments)||this};
_.g(WA,_.G);WA.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"}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],WA.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],WA.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],WA.prototype,"data",void 0);_.I([_.Q({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],WA);
_.m(WA,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(H8J!==void 0)return H8J;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return H8J=A},{mode:1});var zRV;var HA=function(){var A=_.G.apply(this,arguments)||this;A.disableAnimation=!1;A.isSlimlineSurvey=!1;A.isSlimlineSurveyFollowUp=!1;A.isShortsStyle=!1;return A};
_.g(HA,_.G);HA.prototype.onTap=function(A){A.preventDefault();this.data&&_.P4(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.v2.Object.defineProperties(HA.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 A,L,O,X,x;return((A=this.data)==null?0:A.checked)?(L=this.data)==null?void 0:(O=L.onStateIcon)==null?void 0:O.iconType:(X=this.data)==null?void 0:(x=X.defaultStateIcon)==null?void 0:x.iconType}}});
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],HA.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],HA.prototype,"ytComponentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],HA.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],HA.prototype,"disableAnimation",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],HA.prototype,"isSlimlineSurvey",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],HA.prototype,"isSlimlineSurveyFollowUp",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],HA.prototype,"isShortsStyle",void 0);_.I([_.r("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],HA.prototype,"isAnimatedIcon",null);
_.I([_.r("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],HA.prototype,"iconSize",null);_.I([_.r("isShortsStyle"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],HA.prototype,"isDarkTheme",null);_.I([_.r("data.checked"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],HA.prototype,"icon",null);_.I([_.Q({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],HA);
_.m(HA,"ytd-rating-survey-option-renderer",function(){if(zRV!==void 0)return zRV;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return zRV=A},{mode:2});var BiJ;var zL=function(){var A=_.G.apply(this,arguments)||this;A.firstResponseText=null;A.lastResponseText=null;A.selectedNonStarOption=null;A.hideOptions=!1;A.hideUndoButton=!0;A.disableAnimation=!1;A.showResponseRangeText=!1;A.selectedRatingIndex=-1;A.isSlimlineSurvey=!1;A.isSlimlineSurveyFollowUp=!1;A.isShortsStyle=!1;A.slimlineSurveyRatingSelectedIndex=-1;return A};
_.g(zL,_.G);_.P=zL.prototype;_.P.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.P.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.P.onOptionChange=function(A,L){var O=this;A=L.onStateIcon&&L.defaultStateIcon&&L.onStateIcon.iconType===L.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(Y,T){Y.responseText===L.responseText?O.isSlimlineSurvey?(O.selectedRatingIndex=T,O.ytdReduxBehavior.dispatch(FPn(T))):(O.setSurveyOptionValue(T,!0,"checked"),O.setSurveyOptionValue(T,!0,"selected")):(O.setSurveyOptionValue(T,!1,"checked"),O.setSurveyOptionValue(T,
!1,"selected"))});
else if(A)this.selectedNonStarOption=L,this.hideOptions=!0;else{var X=this.ytRendererBehavior.getSimpleString(L.responseText),x=!0;this.getOptionRenderers().forEach(function(Y,T){O.setSurveyOptionValue(T,x,"checked");O.setSurveyOptionValue(T,!1,"selected");O.ytRendererBehavior.getSimpleString(Y.responseText)===X&&(x=!1,O.setSurveyOptionValue(T,!0,"selected"))})}A=L.responseEndpoint;
var J;L.followUpCommand&&(J=_.q(L.followUpCommand,tpj));this.isSlimlineSurvey?(this.resetComponent(),_.dQ(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.dQ(this.hostElement,"ytd-inline-survey-rating-select-action",[A,J])};
_.P.showSelectedOption=function(){var A=this;_.c1.addJob(function(){var L=A.getOptionRenderers()[A.slimlineSurveyRatingSelectedIndex];A.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),L)},8,100)};
_.P.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(A){var L;return(L=_.q(A,h1H))!=null?L:{}}):[]};
_.P.onUndoClick=function(){this.resetComponent();_.dQ(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.P.setSurveyOptionValue=function(A,L,O){this.notifyPath("data.ratings."+A+".ratingSurveyOptionRenderer."+O);this.set("data.ratings."+A+".ratingSurveyOptionRenderer."+O,L)};
_.P.resetComponent=function(){var A=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var L=this.getOptionRenderers(),O,X;this.firstResponseText=(X=(O=L[0])==null?void 0:O.responseText)!=null?X:null;var x,J;this.lastResponseText=(J=(x=L[L.length-1])==null?void 0:x.responseText)!=null?J:null;L.forEach(function(Y,T){A.setSurveyOptionValue(T,!1,"checked");A.setSurveyOptionValue(T,!1,"selected")})};
_.v2.Object.defineProperties(zL.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
zL.prototype.onOptionChange=zL.prototype.onOptionChange;zL.prototype.dataChanged=zL.prototype.dataChanged;_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],zL.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],zL.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],zL.prototype,"ytdReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],zL.prototype,"data",void 0);
_.I([_.K(),_.Z("design:type",Object)],zL.prototype,"firstResponseText",void 0);_.I([_.K(),_.Z("design:type",Object)],zL.prototype,"lastResponseText",void 0);_.I([_.K(),_.Z("design:type",Object)],zL.prototype,"selectedNonStarOption",void 0);_.I([_.K(),_.Z("design:type",Object)],zL.prototype,"hideOptions",void 0);_.I([_.K(),_.Z("design:type",Object)],zL.prototype,"hideUndoButton",void 0);_.I([_.K(),_.Z("design:type",Object)],zL.prototype,"disableAnimation",void 0);
_.I([_.K(),_.Z("design:type",Object)],zL.prototype,"showResponseRangeText",void 0);_.I([_.K(),_.Z("design:type",Object)],zL.prototype,"selectedRatingIndex",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],zL.prototype,"isSlimlineSurvey",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],zL.prototype,"isSlimlineSurveyFollowUp",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],zL.prototype,"isShortsStyle",void 0);_.I([_.K({selector:function(A){return A.ui.slimlineSurveyRatingSelectedIndex}}),
_.Z("design:type",Object)],zL.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.I([_.r("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],zL.prototype,"isSingleSelect",null);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zL.prototype,"dataChanged",null);
_.I([_.by("ytd-rating-survey-option-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],zL.prototype,"onOptionChange",null);_.I([_.Q({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],zL);
_.m(zL,"ytd-rating-survey-renderer",function(){if(BiJ!==void 0)return BiJ;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return BiJ=A},{mode:1});var MnL;var $PJ;var awl;var PCe=(Kv.FIRSTDAYOFWEEK+1)%7,kb6=function(A,L,O,X){var x="";if(X.selection&&Xrd(X.selection))iI(A,X.selection)&&(x+=" selected");else if(X.selection&&xgJ(X.selection)){var J=X.selection.selectionState||"START_DATE";iI(A,X.selection.start)&&(x+=" period-start ",J==="START_DATE"&&(x+="selected"));iI(A,X.selection.end)&&(x+=" period-end ",J==="END_DATE"&&(x+="selected"));Nw(A,X.selection.start)||Nw(X.selection.end,A)||(x+=" highlighted")}if(Nw(L,X.start)||Nw(X.end,L))x+=" disabled";X.circleToday&&
iI(L,O)&&(x+=" today");return x};var BA=function(){return _.G.apply(this,arguments)||this};
_.g(BA,_.G);_.P=BA.prototype;_.P.attached=function(){var A=this;_.kd(this,function(){A.JSC$16913_calendarMain.scrollHeight>0&&(A.calendarConfig.selection?A.scrollToDate(szM(A.calendarConfig.selection)):A.scrollToDate(A.calendarConfig.end))})};
_.P.updateSelection=function(A){A=dgu(Object.assign({},this.calendarConfig,{selection:A}),kb6);this.splice.apply(this,["renderData.months",0,A.length].concat(_.le(A)))};
_.P.scrollToDate=function(A){this.renderData&&(A=YDJ(A,this.renderData),A!==void 0&&this.JSC$16913_calendarMain.scrollToIndex(A))};
_.P.scrollToNextMonth=function(){this.JSC$16913_calendarMain.scrollToIndex(this.JSC$16913_calendarMain.firstVisibleIndex+1)};
_.P.scrollToPrevMonth=function(){this.JSC$16913_calendarMain.firstVisibleIndex===0&&this.JSC$16913_calendarMain.scrollTo(0,0);this.JSC$16913_calendarMain.scrollToIndex(this.JSC$16913_calendarMain.firstVisibleIndex-1)};
_.P.handleDayClick=function(A){_.dQ(this.hostElement,"ytd-calendar-date-clicked",[A.model.day.date])};
_.P.handleDayMouseDown=function(A){A.preventDefault();_.dQ(this.hostElement,"ytd-calendar-date-mousedown",[A.model.day.date])};
_.P.handleDayMouseUp=function(A){_.dQ(this.hostElement,"ytd-calendar-date-mouseup",[A.model.day.date])};
_.P.handleDayMouseEnter=function(A){A.preventDefault();_.dQ(this.hostElement,"ytd-calendar-date-mouseenter",[A.model.day.date])};
_.P.handleDayMouseLeave=function(A){_.dQ(this.hostElement,"ytd-calendar-date-mouseleave",[A.model.day.date])};
_.v2.Object.defineProperties(BA.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var A=this.calendarConfig,L=kb6;L=L===void 0?kb6:L;for(var O=[],X=0;X<7;X++)O.push(Kv.NARROWWEEKDAYS[(X+PCe)%7]);return{months:dgu(A,L),daysOfWeekLabel:O}}}});
_.I([_.K(),_.Z("design:type",Object)],BA.prototype,"calendarConfig",void 0);_.I([_.qR("#calendar-main"),_.Z("design:type",Object)],BA.prototype,"JSC$16913_calendarMain",void 0);_.I([_.r("calendarConfig"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],BA.prototype,"renderData",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],BA);
_.m(BA,"ytd-scrollable-calendar",function(){if(awl!==void 0)return awl;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return awl=A},{mode:2});var UPn;var vsu;var Mt=function(){var A=_.G.apply(this,arguments)||this;A.hideCharCounter=!1;A.hideLabel=!1;A.noLabelFloat=!1;A.autoValidate=!0;A.invalid=!1;A.disabled=!1;A.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return A};
_.g(Mt,_.G);_.P=Mt.prototype;_.P.reset=function(A){this.value=A&&this.data?this.data.value=A:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.P.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.P.focusTextInput=function(){this.input.focus()};
_.P.validate=function(){if(!this.autoValidate)return!this.invalid;if(!this.input)return!1;if(this.isMultiline&&this.data&&this.value!=null&&this.data.validValueRegexp&&!RegExp("^"+this.data.validValueRegexp+"$").test(this.input.value))return this.input.autoValidate=!1,this.invalid=!0,!1;this.input.autoValidate=!0;return this.input.validate()};
_.P.valueChanged=function(){var A,L;if(((A=this.data)==null?0:A.value)||((L=this.data)==null?void 0:L.value)==="")this.value=this.data.value;else{var O;((O=this.data)==null?void 0:O.value)!==void 0||this.value||(this.value="")}};
_.P.computeLabel=function(A,L){return L?"":_.vG(A)};
_.P.computeAriaLabel=function(A,L){return L?_.vG(A):""};
_.P.computeErrorMessage=function(A,L,O,X){!A&&L?A=O||this.strings.REQUIRED_LABEL:(A=_.vG(X),A=_.TO(A,"&")?"document"in _.Ou?O6H(A):Xn6(A):A);return A};
_.P.computeType=function(A){return A==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.P.onTextValueChanged=function(A){this.value=A.detail.value;var L;(L=this.onValueChanged)==null||L.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.P.handleUpdateTextInputFormFieldRendererCommand=function(A){(A=_.q(A,IPV))&&this.data&&this.data.id===A.id&&(A.invalid!==void 0&&(this.invalid=A.invalid),A.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",A.invalidValueErrorMessage))};
_.P.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.A3("value-changed",this.value))};
_.P.updateInvalidFromBinding=function(A){this.invalid=A.detail.value};
_.v2.Object.defineProperties(Mt.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var A;return!((A=this.data)==null||!A.isMultiline)}}});
Mt.prototype.valueChangedForBinding=Mt.prototype.valueChangedForBinding;Mt.prototype.valueChanged=Mt.prototype.valueChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Mt.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],Mt.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],Mt.prototype,"ytActionHandlerBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],Mt.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",String)],Mt.prototype,"value",void 0);_.I([_.K(),_.Z("design:type",String)],Mt.prototype,"pattern",void 0);_.I([_.K(),_.Z("design:type",String)],Mt.prototype,"errorMessage",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",String)],Mt.prototype,"componentStyle",void 0);_.I([_.K(),_.Z("design:type",Object)],Mt.prototype,"hideCharCounter",void 0);
_.I([_.K(),_.Z("design:type",Object)],Mt.prototype,"hideLabel",void 0);_.I([_.K(),_.Z("design:type",Object)],Mt.prototype,"noLabelFloat",void 0);_.I([_.K(),_.Z("design:type",Function)],Mt.prototype,"onValueChanged",void 0);_.I([_.K(),_.Z("design:type",Boolean)],Mt.prototype,"isMultilineOverride",void 0);_.I([_.K(),_.Z("design:type",Object)],Mt.prototype,"autoValidate",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Mt.prototype,"invalid",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Mt.prototype,"disabled",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Mt.prototype,"enableOverlayTheme",void 0);_.I([_.K({value:{REQUIRED_LABEL:_.b3("REQUIRED_LABEL",void 0,"Required")}}),_.Z("design:type",Object)],Mt.prototype,"strings",void 0);_.I([_.qR("#input"),_.Z("design:type",Object)],Mt.prototype,"input",void 0);
_.I([_.r("data","isMultilineOverride"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Mt.prototype,"isMultiline",null);_.I([_.iy("data.value"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Mt.prototype,"valueChanged",null);_.I([_.hT("value"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Mt.prototype,"valueChangedForBinding",null);_.I([_.yU({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],Mt);
_.m(Mt,"yt-text-input-form-field-renderer",function(){if(vsu===void 0){var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;UPn===void 0&&(UPn=document.createElement("template"));var X=UPn;O.call(L,X.content.cloneNode(!0),A.content.firstChild);vsu=A}A=vsu;return A},{mode:2});var $P=function(){var A=_.G.apply(this,arguments)||this;A.data=void 0;A.selectionState="START_DATE";A.isStartDateInvalid=!1;A.isEndDateInvalid=!1;A.autoapply=!1;A.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 A};
_.g($P,_.G);_.P=$P.prototype;_.P.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.applyButton":{id:"apply-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}}}};
_.P.focus=function(){this.startDateInput.focus()};
_.P.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:r1(this.data.selection.start),end:r1(this.data.selection.end)})};
_.P.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.P.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.ZN(this.selectionState)}};
_.P.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.P.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.P.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.P.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var A=this.calendar.calendarConfig,L=A.end;A=T$O({start:A.start,end:this.endDate||L},this.startDateInput.value||"");this.isStartDateInvalid=!A.isValid;A.isValid&&(A=A.value,this.selection=this.endDate?{start:A,end:this.endDate}:A,this.calendar.scrollToDate(A));this.updateInvalidState()}};
_.P.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var A=this.calendar.calendarConfig,L=A.start;A=T$O({start:this.startDate||L,end:A.end},this.endDateInput.value||"");this.isEndDateInvalid=!A.isValid;A.isValid&&(A=A.value,this.selection={start:this.startDate,end:A},this.calendar.scrollToDate(A));this.updateInvalidState()}};
_.P.handleCalendarDateClicked=function(A){var L=this.selection&&szM(this.selection),O=this.selection&&JXM(this.selection);L&&!Nw(A,L)&&this.selectionState==="END_DATE"?(this.selection={start:L,end:A},this.selectionState="START_DATE"):(O&&!Nw(O,A)?this.selection={start:A,end:O}:this.selection=A,this.selectionState="END_DATE")};
_.P.handleCalendarDateMouseDown=function(A){this.selection&&!Xrd(this.selection)&&(this.dragPivot=iI(A,this.selection.start)?this.selection.end:iI(A,this.selection.end)?this.selection.start:A)};
_.P.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.P.handleCalendarDateMouseEnter=function(A){this.dragPivot&&(this.selection={start:function(L,O){return Nw(L,O)?L:O}(this.dragPivot,A),
end:function(L,O){return Nw(L,O)?O:L}(this.dragPivot,A)},this.dragPivot||(this.selectionState="START_DATE"))};
_.P.handleCalendarDateMouseLeave=function(){};
_.P.handleCalendarSubmitDateRange=function(){this.selection&&!Xrd(this.selection)&&_.dQ(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.P.updateInvalidState=function(){var A=function(L,O){O?L.setAttribute("invalid",""):L.removeAttribute("invalid")};
A(this.startDateInput,this.isStartDateInvalid);A(this.endDateInput,this.isEndDateInvalid)};
_.P.updateDateStrings=function(){this.selection&&(Xrd(this.selection)?OND(this.selection):(OND(this.selection.start),OND(this.selection.end)))};
_.P.updateCalendarSelection=function(A){this.calendar.updateSelection(Object.assign({},A,{selectionState:this.selectionState}))};
_.P.updateIsStartDateInvalidFromBinding=function(A){this.isStartDateInvalid=A.detail.value};
_.P.updateIsEndDateInvalidFromBinding=function(A){this.isEndDateInvalid=A.detail.value};
_.P.updateStartDateStringFromBinding=function(){};
_.P.updateEndDateStringFromBinding=function(){};
_.v2.Object.defineProperties($P.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:r1(this.data.dateRangeStart),end:r1(this.data.dateRangeEnd),selection:{start:r1(this.data.selection.start),end:r1(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&szM(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&JXM(this.selection)}}});
$P.prototype.resetTextboxes=$P.prototype.resetTextboxes;$P.prototype.observeSelection=$P.prototype.observeSelection;$P.prototype.dataChanged=$P.prototype.dataChanged;_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],$P.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],$P.prototype,"ytRendererstamperBehavior",void 0);_.I([_.qR("#calendar"),_.Z("design:type",Object)],$P.prototype,"calendar",void 0);
_.I([_.qR("#start-date"),_.Z("design:type",Object)],$P.prototype,"startDateInput",void 0);_.I([_.qR("#end-date"),_.Z("design:type",Object)],$P.prototype,"endDateInput",void 0);_.I([_.K(),_.Z("design:type",Object)],$P.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],$P.prototype,"selection",void 0);_.I([_.K(),_.Z("design:type",String)],$P.prototype,"selectionState",void 0);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],$P.prototype,"calendarConfig",null);
_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],$P.prototype,"errorMessage",null);_.I([_.r("selection"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],$P.prototype,"startDate",null);_.I([_.r("selection"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],$P.prototype,"endDate",null);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$P.prototype,"dataChanged",null);
_.I([_.hT("selection","selectionState"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$P.prototype,"observeSelection",null);_.I([_.hT("selectionState"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$P.prototype,"resetTextboxes",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],$P);
_.m($P,"ytd-date-period-picker-renderer",function(){if($PJ!==void 0)return $PJ;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return $PJ=A},{mode:1});var ax=function(){var A=_.G.apply(this,arguments)||this;var L={};A.actionMap=(L["ytd-date-period-picker-apply"]="handleDateRangeUpdated",L);return A};
_.g(ax,_.G);ax.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
ax.prototype.handleDateRangeUpdated=function(){};
_.I([_.K(),_.Z("design:type",Object)],ax.prototype,"data",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],ax.prototype,"actionHandlerBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],ax.prototype,"rendererstamperBehavior",void 0);_.I([_.Q({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],ax);
_.m(ax,"ytd-report-history-section-header-renderer",function(){if(MnL!==void 0)return MnL;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return MnL=A},{mode:1});var osc;var AKJ;var LaH;var kP=function(){return _.G.apply(this,arguments)||this};
_.g(kP,_.G);_.v2.Object.defineProperties(kP.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var A,L;return((A=this.data)==null?0:(L=A.icon)==null?0:L.iconType)?_.bV(this.data.icon.iconType):""}}});
_.I([_.K(),_.Z("design:type",Object)],kP.prototype,"data",void 0);_.I([_.r("data"),_.Z("design:type",String),_.Z("design:paramtypes",[])],kP.prototype,"icon",null);_.I([_.Q({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],kP);
_.m(kP,"ytd-report-history-table-text-cell-renderer",function(){if(LaH!==void 0)return LaH;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return LaH=A},{mode:1});var UW=function(){return _.G.apply(this,arguments)||this};
_.g(UW,_.G);UW.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],UW.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],UW.prototype,"data",void 0);_.I([_.Q({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],UW);
_.m(UW,"ytd-report-history-table-reason-cell-renderer",function(){if(AKJ!==void 0)return AKJ;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return AKJ=A},{mode:1});var vA=function(){return _.G.apply(this,arguments)||this};
_.g(vA,_.G);vA.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"}}}};
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],vA.prototype,"rendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],vA.prototype,"data",void 0);_.I([_.Q({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],vA);
_.m(vA,"ytd-report-history-table-cell-renderer",function(){if(osc!==void 0)return osc;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);
return osc=A},{mode:1});var O1c;var ox=function(){var A=_.G.apply(this,arguments)||this;A.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 A};
_.g(ox,_.G);ox.prototype.onDataChanged=function(){var A;if((A=this.data)==null?0:A.style)this.componentStyle=this.getStyleName(this.data.style)};
ox.prototype.getCellForColumn=function(A){return this.cells.find(function(L){var O;return((O=_.q(L==null?void 0:L.cell,gx6)||_.q(L==null?void 0:L.cell,qa3))==null?void 0:O.columnId)===A.type})};
ox.prototype.getClassForColumn=function(A){switch(A){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
ox.prototype.getStyleName=function(A){switch(A){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.v2.Object.defineProperties(ox.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var A;return(((A=this.data)==null?void 0:A.cells)||[]).map(function(L){return _.q(L,Sa7)})}}});
ox.prototype.onDataChanged=ox.prototype.onDataChanged;_.I([_.K(),_.Z("design:type",Object)],ox.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Array)],ox.prototype,"columnRenderData",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",String)],ox.prototype,"componentStyle",void 0);_.I([_.r("data"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],ox.prototype,"cells",null);
_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ox.prototype,"onDataChanged",null);_.I([_.Q({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],ox);
_.m(ox,"ytd-report-history-table-row-renderer",function(){if(O1c!==void 0)return O1c;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return O1c=A},{mode:1});var XHg;var xmV;var Vce={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},Dgd={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var Ap=function(){return _.G.apply(this,arguments)||this};
_.g(Ap,_.G);Ap.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"}}}}}};
Ap.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.v2.Object.defineProperties(Ap.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?0:A.columns)?bND(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return ni9(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var A=this.tableSpec,L=Vce;L=L===void 0?Dgd:L;L=tcs(A.columnDimensions,A.columnsToShow||[],L);A=0;L=_.d(L);for(var O=L.next();!O.done;O=L.next())O=O.value,A+=O.minWidth+O.paddingLeft+O.paddingRight;return A}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.I([_.N(_.U8),_.Z("design:type",Object)],Ap.prototype,"ytContinuationHandlerBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Ap.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Ap.prototype,"data",void 0);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Ap.prototype,"tableSpec",null);_.I([_.r("tableSpec"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],Ap.prototype,"columnRenderData",null);
_.I([_.r("tableSpec"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],Ap.prototype,"totalMinWidth",null);_.I([_.r("totalMinWidth"),_.Z("design:type",String),_.Z("design:paramtypes",[])],Ap.prototype,"tableWidthStyle",null);_.I([_.Q({is:"ytd-table-renderer",disableElementRegistration:!0})],Ap);
_.m(Ap,"ytd-table-renderer",function(){if(xmV!==void 0)return xmV;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return xmV=A},{mode:1});var Lx=function(){return _.G.apply(this,arguments)||this};
_.g(Lx,_.G);Lx.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}}}}}};
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Lx.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Lx.prototype,"data",void 0);_.I([_.Q({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],Lx);
_.m(Lx,"ytd-report-reason-history-modal-renderer",function(){if(XHg!==void 0)return XHg;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return XHg=A},{mode:1});var sVn;var JKu;var Pzl;var Ol=function(){return _.G.apply(this,arguments)||this};
_.g(Ol,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Ol.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Ol.prototype,"data",void 0);_.I([_.Q({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],Ol);
_.m(Ol,"ytd-profile-column-stats-entry-renderer",function(){if(Pzl!==void 0)return Pzl;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Pzl=A},{mode:1});var dmL;var X3=function(){return _.G.apply(this,arguments)||this};
_.g(X3,_.G);X3.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],X3.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],X3.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],X3.prototype,"data",void 0);_.I([_.Q({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],X3);
_.m(X3,"ytd-profile-column-stats-renderer",function(){if(dmL!==void 0)return dmL;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return dmL=A},{mode:1});var YyN;var xU=function(){return _.G.apply(this,arguments)||this};
_.g(xU,_.G);_.v2.Object.defineProperties(xU.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)==null||!A.useThumbnailSize)return 80;var L,O;A=(L=this.data)==null?void 0:(O=L.thumbnail)==null?void 0:O.thumbnails;var X;return A&&((X=A[0])==null?void 0:X.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)==null||!A.useThumbnailSize)return 80;var L,O;A=(L=this.data)==null?void 0:(O=L.thumbnail)==null?void 0:O.thumbnails;var X;return A&&((X=A[0])==null?void 0:X.height)||80}}});
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],xU.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],xU.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",String)],xU.prototype,"componentStyle",void 0);_.I([_.r("data.useThumbnailSize"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],xU.prototype,"thumbnailWidth",null);
_.I([_.r("data.useThumbnailSize"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],xU.prototype,"thumbnailHeight",null);_.I([_.Q({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],xU);
_.m(xU,"ytd-profile-column-user-info-renderer",function(){if(YyN!==void 0)return YyN;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return YyN=A},{mode:1});var sl=function(){return _.G.apply(this,arguments)||this};
_.g(sl,_.G);sl.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]]"}}}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],sl.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],sl.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],sl.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",String)],sl.prototype,"componentStyle",void 0);_.I([_.Q({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],sl);
_.m(sl,"ytd-profile-column-renderer",function(){if(JKu!==void 0)return JKu;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return JKu=A},{mode:1});var Jp=function(){var A=_.G.apply(this,arguments)||this;A.componentStyle="NON_CENTERED_PROFILE";return A};
_.g(Jp,_.G);Jp.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
Jp.prototype.getIcon=function(A){return A?"settings:"+A.toLowerCase():null};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Jp.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Jp.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Jp.prototype,"data",void 0);_.I([_.Q({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],Jp);
_.m(Jp,"ytd-page-introduction-renderer",function(){if(sVn!==void 0)return sVn;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return sVn=A},{mode:1});var u93;var P7=function(){return _.G.apply(this,arguments)||this};
_.g(P7,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],P7.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],P7.prototype,"data",void 0);_.I([_.Q({is:"ytd-report-description-renderer",disableElementRegistration:!0})],P7);
_.m(P7,"ytd-report-description-renderer",function(){if(u93!==void 0)return u93;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return u93=A},{mode:1});var TbN;var Vzl;var ds=function(){return _.G.apply(this,arguments)||this};
_.g(ds,_.G);ds.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],ds.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],ds.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],ds.prototype,"data",void 0);_.I([_.Q({is:"ytd-video-report-renderer",disableElementRegistration:!0})],ds);
_.m(ds,"ytd-video-report-renderer",function(){if(Vzl!==void 0)return Vzl;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Vzl=A},{mode:1});var Dm6;_.y3("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.y3("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var YU=function(){return _.G.apply(this,arguments)||this};
_.g(YU,_.G);YU.prototype.configureRendererStamper=function(){return{"data.button":{id:"message-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}},"data.icon":{id:"icon",mapping:{iconType:{component:"yt-icon",properties:{icon:"[[data.icon.iconType]]"}}}},"data.thumbnail":{id:"thumbnail",mapping:{messageThumbnailRenderer:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail.messageThumbnailRenderer.thumbnailDetails]]"}}}}}};
YU.prototype.computeMessageStyle=function(A){return A};
YU.prototype.computeButtonOverride=function(A){var L;if((A==null?0:(L=A.style)==null?0:L.value)&&A.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],YU.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],YU.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],YU.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],YU.prototype,"shelf",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],YU.prototype,"panel",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.Z("design:type",Boolean)],YU.prototype,"componentStyle",void 0);_.I([_.K({computed:"computeButtonOverride(data)"}),_.Z("design:type",Object)],YU.prototype,"buttonOverride",void 0);_.I([_.Q({is:"ytd-message-renderer",disableElementRegistration:!0})],YU);
_.m(YU,"ytd-message-renderer",function(){if(Dm6!==void 0)return Dm6;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Dm6=A},{mode:1});var uY=function(){return _.G.apply(this,arguments)||this};
_.g(uY,_.G);uY.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"}}}};
uY.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
uY.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.v2.Object.defineProperties(uY.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var A,L;return!!(((A=this.data)==null?0:A.header)&&((L=this.data)==null?0:L.table))}}});
uY.prototype.onRequestError=uY.prototype.onRequestError;_.I([_.N(_.U8),_.Z("design:type",Object)],uY.prototype,"ytContinuationHandlerBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],uY.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],uY.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],uY.prototype,"data",void 0);
_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],uY.prototype,"isUnifiedReportHistory",null);_.I([_.by("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],uY.prototype,"onRequestError",null);_.I([_.Q({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],uY);
_.m(uY,"ytd-report-history-section-renderer",function(){if(TbN!==void 0)return TbN;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return TbN=A},{mode:1});var ea3;var Tp=function(){var A=_.G.apply(this,arguments)||this;A.answerExpanded=!1;return A};
_.g(Tp,_.G);Tp.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Tp.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Tp.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Tp.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Tp.prototype,"answerExpanded",void 0);_.I([_.Q({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],Tp);
_.m(Tp,"ytd-handles-claiming-faq-renderer",function(){if(ea3!==void 0)return ea3;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return ea3=A},{mode:1});var EA6;var nAH=function(){return _.G.apply(this,arguments)||this};
_.g(nAH,_.G);_.I([_.K(),_.Z("design:type",Object)],nAH.prototype,"data",void 0);_.I([_.Q({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],nAH);
_.m(nAH,"ytd-handles-claiming-faq-section-renderer",function(){if(EA6!==void 0)return EA6;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return EA6=A},{mode:1});var tz6;var V2=function(){var A=_.G.apply(this,arguments)||this;A.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";A.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";A.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";A.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";A.leftSquiggly=A.leftSquigglyLight;A.rightSquiggly=A.rightSquigglyLight;
A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};A.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return A};
_.g(V2,_.G);_.P=V2.prototype;_.P.updateLeftSquigglyStyle=function(){_.eq(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.P.updateRightSquigglyStyle=function(){_.eq(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.P.ready=function(){var A=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(A)};
_.P.onDarkModeToggledAction=function(A){A!==this.isDarkTheme&&(this.set("isDarkTheme",A),A?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.P.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
V2.prototype.updateRightSquigglyStyle=V2.prototype.updateRightSquigglyStyle;V2.prototype.updateLeftSquigglyStyle=V2.prototype.updateLeftSquigglyStyle;_.I([_.K(),_.Z("design:type",Object)],V2.prototype,"data",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],V2.prototype,"isDarkTheme",void 0);_.I([_.K(),_.Z("design:type",String)],V2.prototype,"leftSquiggly",void 0);_.I([_.K(),_.Z("design:type",String)],V2.prototype,"rightSquiggly",void 0);
_.I([_.hT("leftSquiggly"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],V2.prototype,"updateLeftSquigglyStyle",null);_.I([_.hT("rightSquiggly"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],V2.prototype,"updateRightSquigglyStyle",null);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],V2.prototype,"ytRendererBehavior",void 0);
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],V2.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],V2.prototype,"ytActionHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],V2.prototype,"actionButtonOverride",void 0);_.I([_.Q({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],V2);
_.m(V2,"ytd-handles-claiming-header-renderer",function(){if(tz6!==void 0)return tz6;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return tz6=A},{mode:1});var b1j;var Ds=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};A.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";A.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";A.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";A.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
A.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";A.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";A.image0SquigglyBackground=A.image0LightSquigglyBackground;A.image1SquigglyBackground=A.image1LightSquigglyBackground;A.image3SquigglyBackground=A.image3LightSquigglyBackground;return A};
_.g(Ds,_.G);_.P=Ds.prototype;_.P.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.P.onDataChanged=function(){this.updateTitleAndImages()};
_.P.onThemeChanged=function(){this.updateTitleAndImages()};
_.P.onDarkModeToggledAction=function(A){A!==this.isDarkTheme&&(this.isDarkTheme=A)};
_.P.updateImage0SquigglyBackground=function(){_.eq(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.P.updateImage1SquigglyBackground=function(){_.eq(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.P.updateImage3SquigglyBackground=function(){_.eq(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.P.updateTitleAndImages=function(){var A,L;((A=this.data)==null?void 0:(L=A.titleImages)==null?void 0:L.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))};
Ds.prototype.updateImage3SquigglyBackground=Ds.prototype.updateImage3SquigglyBackground;Ds.prototype.updateImage1SquigglyBackground=Ds.prototype.updateImage1SquigglyBackground;Ds.prototype.updateImage0SquigglyBackground=Ds.prototype.updateImage0SquigglyBackground;Ds.prototype.onThemeChanged=Ds.prototype.onThemeChanged;Ds.prototype.onDataChanged=Ds.prototype.onDataChanged;_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],Ds.prototype,"ytActionHandlerBehavior",void 0);
_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],Ds.prototype,"isDarkTheme",void 0);_.I([_.K(),_.Z("design:type",Object)],Ds.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],Ds.prototype,"title0",void 0);_.I([_.K(),_.Z("design:type",Object)],Ds.prototype,"title1",void 0);_.I([_.K(),_.Z("design:type",Object)],Ds.prototype,"title2",void 0);_.I([_.K(),_.Z("design:type",Object)],Ds.prototype,"title3",void 0);
_.I([_.K(),_.Z("design:type",Object)],Ds.prototype,"title4",void 0);_.I([_.K(),_.Z("design:type",Object)],Ds.prototype,"image0",void 0);_.I([_.K(),_.Z("design:type",Object)],Ds.prototype,"image1",void 0);_.I([_.K(),_.Z("design:type",Object)],Ds.prototype,"image2",void 0);_.I([_.K(),_.Z("design:type",Object)],Ds.prototype,"image3",void 0);_.I([_.K(),_.Z("design:type",Object)],Ds.prototype,"image4",void 0);_.I([_.K(),_.Z("design:type",String)],Ds.prototype,"image0SquigglyBackground",void 0);
_.I([_.K(),_.Z("design:type",String)],Ds.prototype,"image1SquigglyBackground",void 0);_.I([_.K(),_.Z("design:type",String)],Ds.prototype,"image3SquigglyBackground",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ds.prototype,"onDataChanged",null);_.I([_.hT("isDarkTheme"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ds.prototype,"onThemeChanged",null);
_.I([_.hT("image0SquigglyBackground"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ds.prototype,"updateImage0SquigglyBackground",null);_.I([_.hT("image1SquigglyBackground"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ds.prototype,"updateImage1SquigglyBackground",null);
_.I([_.hT("image3SquigglyBackground"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ds.prototype,"updateImage3SquigglyBackground",null);_.I([_.Q({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],Ds);
_.m(Ds,"ytd-handles-claiming-title-images-section-renderer",function(){if(b1j!==void 0)return b1j;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return b1j=A},{mode:1});var hag;var ej=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return A};
_.g(ej,_.G);ej.prototype.ready=function(){var A=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(A)};
ej.prototype.onDarkModeToggledAction=function(A){A!==this.isDarkTheme&&this.set("isDarkTheme",A)};
ej.prototype.onCopyButtonClick=function(){var A=this,L,O,X;return _.u(function(x){return(L=A.data)!=null&&L.primaryChannelUrl?x.yield(navigator.clipboard.writeText(((O=A.data)==null?0:O.encodedChannelUrl)?A.data.encodedChannelUrl:"https://"+_.vG((X=A.data)==null?void 0:X.primaryChannelUrl)),0):x.jumpTo(0)})};
_.I([_.K(),_.Z("design:type",Object)],ej.prototype,"data",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],ej.prototype,"ytComponentBehavior",void 0);_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],ej.prototype,"isDarkTheme",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],ej.prototype,"ytActionHandlerBehavior",void 0);_.I([_.Q({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],ej);
_.m(ej,"ytd-handles-claiming-update-social-renderer",function(){if(hag!==void 0)return hag;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return hag=A},{mode:1});var SyJ;var El=function(){var A=_.G.apply(this,arguments)||this;A.JSC$17007_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";A.JSC$17007_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};A.squigglyBackground=A.JSC$17007_squigglyBackgroundLight;return A};
_.g(El,_.G);El.prototype.updateSquigglyBackgroundStyle=function(){_.eq(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
El.prototype.ready=function(){var A=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",A);this.squigglyBackground=A?this.JSC$17007_squigglyBackgroundDark:this.JSC$17007_squigglyBackgroundLight};
El.prototype.onDarkModeToggledAction=function(A){A!==this.isDarkTheme&&(this.set("isDarkTheme",A),this.squigglyBackground=A?this.JSC$17007_squigglyBackgroundDark:this.JSC$17007_squigglyBackgroundLight)};
El.prototype.updateSquigglyBackgroundStyle=El.prototype.updateSquigglyBackgroundStyle;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],El.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],El.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],El.prototype,"ytActionHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],El.prototype,"data",void 0);
_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],El.prototype,"isDarkTheme",void 0);_.I([_.K(),_.Z("design:type",String)],El.prototype,"squigglyBackground",void 0);_.I([_.hT("squigglyBackground"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],El.prototype,"updateSquigglyBackgroundStyle",null);_.I([_.Q({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],El);
_.m(El,"ytd-handles-claiming-vanity-info-renderer",function(){if(SyJ!==void 0)return SyJ;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return SyJ=A},{mode:1});var qyu;var nx=function(){var A=_.G.apply(this,arguments)||this;A.JSC$17010_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";A.JSC$17010_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";A.squigglyBackground=A.JSC$17010_squigglyBackgroundLight;A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return A};
_.g(nx,_.G);_.P=nx.prototype;_.P.ready=function(){var A=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(A)};
_.P.onDarkModeToggledAction=function(A){A!==this.isDarkTheme&&(this.set("isDarkTheme",A),this.squigglyBackground=A?this.JSC$17010_squigglyBackgroundDark:this.JSC$17010_squigglyBackgroundLight)};
_.P.updateSquigglyBackgroundStyle=function(){_.eq(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.P.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.P.detached=function(){this.stop()};
_.P.stop=function(){this.playerElement.stop()};
_.P.setupVideoPlayer=function(){var A=this,L,O;return _.u(function(X){L=A.data.videoId;O="http://i1.ytimg.com/vi/"+L+"/maxresdefault.jpg";A.playerElement.loadVideoWithPlayerVars({video_id:L,iurlhq:O});_.qo(X)})};
nx.prototype.onDataChanged=nx.prototype.onDataChanged;nx.prototype.updateSquigglyBackgroundStyle=nx.prototype.updateSquigglyBackgroundStyle;_.I([_.K({value:!1}),_.Z("design:type",Boolean)],nx.prototype,"isDarkTheme",void 0);_.I([_.K(),_.Z("design:type",String)],nx.prototype,"squigglyBackground",void 0);_.I([_.qR("#player"),_.Z("design:type",Object)],nx.prototype,"playerElement",void 0);_.I([_.K(),_.Z("design:type",Object)],nx.prototype,"data",void 0);
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],nx.prototype,"ytActionHandlerBehavior",void 0);_.I([_.hT("squigglyBackground"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],nx.prototype,"updateSquigglyBackgroundStyle",null);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],nx.prototype,"onDataChanged",null);
_.I([_.Q({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],nx);
_.m(nx,"ytd-handles-claiming-video-item-renderer",function(){if(qyu!==void 0)return qyu;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return qyu=A},{mode:1});var gAN;var bY=function(){var A=_.wd.apply(this,arguments)||this;A.dragging=!1;A.dragMouseStart=0;A.dragOffsetStart=0;A.containerWidthDiff=0;A.boundPrevClick=function(){A.set("offset",tp(A,A.offset-(A.scrollDistance||320)))};
A.boundNextClick=function(){A.set("offset",tp(A,A.offset+(A.scrollDistance||320)))};
A.boundScrollContainerMouseDown=function(L){A.dragMouseStart=L.clientX;A.dragOffsetStart=A.offset;A.dragging=!0};
A.boundScrollContainerDrag=function(L){A.dragging&&A.set("offset",tp(A,A.dragOffsetStart-(L.clientX-A.dragMouseStart)))};
A.boundMouseUp=function(){A.onMouseUp()};
A.boundWheelScroll=function(L){var O=0;Math.abs(L.deltaX)>=Math.abs(L.deltaY)?O=L.deltaX:L.shiftKey&&(O=L.deltaY);O!==0&&(A.offset+=O,L.stopPropagation(),L.preventDefault())};
A.boundChipCloudChipScrollIntoView=function(L){(L=L.detail)&&A.scrollChipIntoView(L)};
return A};
_.g(bY,_.wd);bY.prototype.attached=function(){var A=_.YJ(this.hostElement).querySelector("#scroll-container");A.addEventListener("wheel",this.boundWheelScroll);A.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);A.style.touchAction="pan-y";A.addEventListener("pointerdown",this.boundScrollContainerMouseDown);A.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
bY.prototype.detached=function(){var A=_.YJ(this.hostElement).querySelector("#scroll-container");A.removeEventListener("wheel",this.boundWheelScroll);A.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);A.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);A.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
bY.prototype.reset=function(){this.set("offset",0);_.kd(this,this.setContainerWidthDiff);hp(this)};
var tp=function(A,L){return Math.min(Math.max(L,0),A.containerWidthDiff)};
bY.prototype.onMouseUp=function(){this.dragging=!1};
bY.prototype.transformContainer=function(){this.offset=tp(this,this.offset);var A=_.ms("HTML_DIR")==="rtl"?"":"-";_.YJ(this.hostElement).querySelector("#chips").style.transform="translateX("+A+this.offset+"px)";hp(this)};
var hp=function(A){_.kd(A,A.setButtonsState)};
bY.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=tp(this,this.offset));this.atStart=this.offset<=0};
bY.prototype.setContainerWidthDiff=function(){var A=_.YJ(this.hostElement).querySelector("#scroll-container"),L=_.YJ(this.hostElement).querySelector("#chips");A&&L&&(this.containerWidthDiff=L.clientWidth-A.clientWidth)};
bY.prototype.scrollChipIntoView=function(A){var L=_.YJ(this.hostElement).querySelector("#scroll-container");if(L){var O=this.atStart?0:106,X=this.atEnd?0:106;A.offsetLeft<this.offset+O?this.offset=tp(this,A.offsetLeft-O):A.offsetLeft+A.clientWidth>this.offset+L.clientWidth-X&&(this.offset=tp(this,A.offsetLeft+A.clientWidth+X-L.clientWidth))}};
bY.prototype.transformContainer=bY.prototype.transformContainer;_.I([_.K({value:0}),_.Z("design:type",Number)],bY.prototype,"offset",void 0);_.I([_.K({value:!0,reflectToAttribute:!0}),_.Z("design:type",Boolean)],bY.prototype,"atStart",void 0);_.I([_.K({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],bY.prototype,"atEnd",void 0);_.I([_.K(),_.Z("design:type",Number)],bY.prototype,"scrollDistance",void 0);
_.I([_.hT("offset"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],bY.prototype,"transformContainer",null);_.I([_.p4()],bY);var wH6;var pHJ;var rKJ=_.xa(function(A){var L=A.data;A=_.d(_.uQ(!1,void 0,"HDMMr"));var O=A.next().value,X=A.next().value;A={};A=_.qn("ytChipShapeChip",function(){a:switch(L==null?void 0:L().state){case 0:var J="ytChipShapeActive";break a;case 1:J="ytChipShapeDisabled";break a;default:J="ytChipShapeInactive"}return J},function(){var J=L().type===1||L().type===2,Y=L();
return J||Y!=null&&Y.startIcon?Y==null||!Y.startIcon||Y!=null&&Y.text?J?"ytChipShapeEndIconPadding":(Y==null?0:Y.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(A.ytChipShapeFocused=function(){var J;
return O()&&((J=L())==null?void 0:J.state)!==1},A));
var x=function(J){if((L==null?void 0:L().state)!==1){var Y,T;(T=(Y=L()).onTap)==null||T.call(Y,J)}};
return _.D("chip-shape",{class:"ytChipShapeHost","on:focusin":_.py(function(){var J=_.X5().resolve(_.Ot(_.bv));if(J){X(J.isKeyBoardInUse());var Y,T;(T=(Y=L()).onFocusIn)==null||T.call(Y)}return!1}),
"on:focusout":_.py(function(){X(!1);return!1})},_.D(i1c,{shouldWrapInButton:function(){return L().type!==2},
selected:function(){return L().state===0},
onClick:x,isDropdown:function(){return L().type===1},
accessibilityLabel:function(){return L().accessibilityLabel}},_.D("div",{class:A},_.D(_.e,{cond:function(){return L().startIcon},
then:function(){return _.D(_.Ky,{icon:function(){var J;return(J=L())==null?void 0:J.startIcon},
className:function(){return L().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return L().text},_.D(Nbj,{shape:L,
onClick:x}),_.D(_.cx,{model:{borderRadius:"8px"}}))))},"Jb");
rKJ.idomCompat=!0;var i1c=_.xa(function(A){var L=_.py(function(O){A.onClick(O);return!1});
return _.D(_.e,{cond:A.shouldWrapInButton,then:function(){return _.D("button",{class:"ytChipShapeButtonReset","on:click":L,role:function(){return A.isDropdown()?"combobox":"tab"},
"aria-label":A.accessibilityLabel,"aria-selected":A.selected},A.children)},
else:function(){return A.children}})},"Kb"),Nbj=_.xa(function(A){var L=A.shape;
var O=A.onClick;var X=_.py(function(x){O(x);return!1});
return _.D(_.ik,null,_.D(_.w9,{when:function(){return L().type===1}},function(){return _.D(_.Ky,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.D(_.w9,{when:function(){return L().type===2}},function(){return _.D("button",{class:"ytChipShapeButtonReset",
"on:click":X},_.D(_.Ky,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.D(_.w9,{when:function(){return L().type===0}},function(){return _.D(_.Xs,null)}))},"Lb");_.Y4(rKJ,"chip-shape",{props:{data:_.x5}});var Sj=function(){var A=_.G.apply(this,arguments)||this;A.disableDeselectEvent=!1;A.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return A};
_.g(Sj,_.G);_.P=Sj.prototype;_.P.onSelectChipCommand=function(A){if(!this.selected&&this.data&&(A=_.q(A,G73),A.targetId&&A.targetId===this.data.targetId))this.onTap()};
_.P.onFilterChipTransformCommand=function(A){if(!this.selected&&this.data){var L;(A=(L=_.q(A,gFN))==null?void 0:L.chipUniqueId)&&A===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.P.dataChanged=function(){var A=this;_.kd(this,function(){A.data&&A.data.isSelected&&!A.selected&&(A.scrollChipIntoView(),A.onTap())})};
_.P.computeChipStyle=function(A){return A!=null?A:"STYLE_DEFAULT"};
_.P.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.dQ(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.dQ(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.P.onFocus=function(){var A=_.X5().resolve(_.Ot(_.bv));A&&A.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.P.scrollChipIntoView=function(){_.P4(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.v2.Object.defineProperties(Sj.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return prD({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
Sj.prototype.onFocus=Sj.prototype.onFocus;Sj.prototype.onTap=Sj.prototype.onTap;Sj.prototype.dataChanged=Sj.prototype.dataChanged;_.I([_.N(_.Ft),_.Z("design:type",Object)],Sj.prototype,"ironButtonState",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Sj.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],Sj.prototype,"ytActionHandlerBehavior",void 0);
_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],Sj.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.lh),_.Z("design:type",Object)],Sj.prototype,"ironA11yKeysBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Sj.prototype,"disableDeselectEvent",void 0);_.I([_.K(),_.Z("design:type",Object)],Sj.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.r("data.icon"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Sj.prototype,"hasIcon",null);
_.I([_.K({reflectToAttribute:!0}),_.r("data.uniqueId"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Sj.prototype,"isGnomeChip",null);_.I([_.K({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.Z("design:type",String)],Sj.prototype,"chipStyle",void 0);_.I([_.K({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],Sj.prototype,"selected",void 0);
_.I([_.r("data","selected"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Sj.prototype,"chipShapeData",null);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Sj.prototype,"dataChanged",null);_.I([_.by("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Sj.prototype,"onTap",null);
_.I([_.by("focus"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Sj.prototype,"onFocus",null);_.I([_.yU({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],Sj);
_.m(Sj,"yt-chip-cloud-chip-renderer",function(){if(pHJ===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;wH6===void 0&&(wH6=document.createElement("template"));var X=wH6;O.call(L,X.content.cloneNode(!0),A.content.firstChild);pHJ=A}A=pHJ;return A},{mode:2});var qW=function(){var A=_.G.apply(this,arguments)||this;A.isDarkTheme=!1;A.notSticky=!1;A.transparentBackground=!1;A.shouldHide=!1;A.disableSticky=!1;A.fluidWidth=!1;A.isClipList=!1;A.defaultChipIndex=0;A.isPlaylist=!1;A.playlistVotingAnimationEnabled=_.h("web_enable_voting_animation");A.toolbarHeight=0;A.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return A};
_.g(qW,_.G);_.P=qW.prototype;
_.P.configureRendererStamper=function(){return{"data.contents":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer",properties:{disableDeselectEvent:"[[isDisableDeselectEvent]]"}}}},sortFilterHeaderRendererData:{id:"filter",mapping:{sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isClipList:"[[isClipList]]",isPlaylistPageWithFilters:"[[isPlaylistPage]]"}}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},
params:{iconSize:16}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.P.attached=function(){var A=this;document.addEventListener("scroll",_.tT(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var L;this.toolbarHeight=((L=document.querySelector("ytd-masthead"))==null?void 0:L.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(O){A.handleIntersect(O)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){A.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.P.detached=function(){var A;(A=this.intersectionObserver)==null||A.disconnect();var L;(L=this.resizeObserver)==null||L.disconnect();document.removeEventListener("scroll",_.tT(this,this.updateChipBarWidthAndTop))};
_.P.dataChanged=function(){var A=this,L,O,X;((X=_.q((L=this.data)==null?void 0:(O=L.contents)==null?void 0:O[0],O26))==null?void 0:X.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var x=this.findSelectedChipIndex();this.selectedIndex!==x&&(this.selectedIndex=-1);_.kd(this,function(){A.selectedIndex=x;A.updating=!1;A.ytScrollableChipCloudBehavior.reset()})};
_.P.findSelectedChipIndex=function(){var A;if((A=this.data)==null||!A.contents)return 0;A=this.data.contents;for(var L=0;L<A.length;L++){var O=void 0;if((O=_.q(A[L],O26))==null?0:O.isSelected)return L}return 0};
_.P.computeStyle=function(A){return A};
_.P.handleChipCloudChipSelectAction=function(A){A=this.JSC$17031_chipsSelector.indexOf(A);A>-1&&this.JSC$17031_chipsSelector.selectIndex(A)};
_.P.handleChipCloudChipDeselectAction=function(){if(_.h("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var A,L,O,X=(O=_.q((A=this.data)==null?void 0:(L=A.contents)==null?void 0:L[0],O26))==null?void 0:O.navigationEndpoint;X&&_.dQ(this.hostElement,"yt-browse-section-list-reload-endpoint",[X]);this.JSC$17031_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.P.onGuideIsExpandedChanged=function(){var A=this.ytScrollableChipCloudBehavior;_.kd(A,A.setContainerWidthDiff);hp(this.ytScrollableChipCloudBehavior)};
_.P.onResize=function(){var A=this.ytScrollableChipCloudBehavior;_.kd(A,A.setContainerWidthDiff);hp(this.ytScrollableChipCloudBehavior)};
_.P.onDarkModeToggledAction=function(A){this.isDarkTheme=A};
_.P.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.P.handleIntersect=function(A){this.notSticky=this.isChannelPageGrid||this.disableSticky||A[0].intersectionRatio===1};
_.P.updateDimensions=function(){var A=this.ytRendererBehavior.parentComponent;if(A){var L,O=(L=A.headerElement)!=null?L:A;_.eq(this.hostElement,{"--ytd-rich-grid-chips-bar-width":O.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.P.updateSelectedIndexFromBinding=function(A){this.selectedIndex=A.detail.value};
_.P.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var A;(A=this.sortFilterHeaderRendererElement)==null||A.setAttribute("is-playlist-page-with-filters","")}};
_.P.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(mLV(!this.notSticky))};
_.v2.Object.defineProperties(qW.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 A,L,O=(A=this.data)==null?void 0:(L=A.contents)==null?void 0:L.find(function(X){return _.q(X,P47)});
return{sortFilterHeaderRenderer:_.q(O,P47)}}}});
qW.prototype.dispatchChipBarIsSticky=qW.prototype.dispatchChipBarIsSticky;qW.prototype.isPlaylistPageChanged=qW.prototype.isPlaylistPageChanged;qW.prototype.updateChipBarWidthAndTop=qW.prototype.updateChipBarWidthAndTop;qW.prototype.onResize=qW.prototype.onResize;qW.prototype.onGuideIsExpandedChanged=qW.prototype.onGuideIsExpandedChanged;qW.prototype.dataChanged=qW.prototype.dataChanged;_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],qW.prototype,"ytRendererstamperBehavior",void 0);
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],qW.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],qW.prototype,"actionHandlerBehavior",void 0);_.I([_.N(_.y9),_.Z("design:type",Object)],qW.prototype,"ironResizableBehavior",void 0);_.I([_.N(),_.Z("design:type",bY)],qW.prototype,"ytScrollableChipCloudBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],qW.prototype,"ytdReduxBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],qW.prototype,"data",void 0);_.I([_.K({value:0}),_.Z("design:type",Number)],qW.prototype,"selectedIndex",void 0);_.I([_.K({value:320}),_.Z("design:type",Number)],qW.prototype,"scrollDistance",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],qW.prototype,"isDarkTheme",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],qW.prototype,"notSticky",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],qW.prototype,"transparentBackground",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.Z("design:type",String)],qW.prototype,"componentStyle",void 0);_.I([_.K({selector:_.IT9}),_.Z("design:type",Boolean)],qW.prototype,"guideIsExpanded",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],qW.prototype,"shouldHide",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],qW.prototype,"disableSticky",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],qW.prototype,"fluidWidth",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],qW.prototype,"isClipList",void 0);_.I([_.K(),_.Z("design:type",Object)],qW.prototype,"defaultChipIndex",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],qW.prototype,"isPlaylist",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],qW.prototype,"playlistVotingAnimationEnabled",void 0);_.I([_.qR("#chips"),_.Z("design:type",Object)],qW.prototype,"JSC$17031_chipsSelector",void 0);_.I([_.qR("ytd-sort-filter-header-renderer"),_.Z("design:type",HTMLElement)],qW.prototype,"sortFilterHeaderRendererElement",void 0);_.I([_.K({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],qW.prototype,"updating",void 0);
_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qW.prototype,"dataChanged",null);_.I([_.hT("guideIsExpanded"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qW.prototype,"onGuideIsExpandedChanged",null);_.I([_.by("iron-resize"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qW.prototype,"onResize",null);
_.I([_.iy("isChannelPageGrid","disableSticky","data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qW.prototype,"updateChipBarWidthAndTop",null);_.I([_.r("componentStyle"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],qW.prototype,"isChannelPageGrid",null);_.I([_.r("componentStyle"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],qW.prototype,"isHashtagLandingPage",null);
_.I([_.hT("isPlaylistPage"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qW.prototype,"isPlaylistPageChanged",null);_.I([_.r("componentStyle"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],qW.prototype,"isPlaylistPage",null);_.I([_.r("componentStyle"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],qW.prototype,"isDisableDeselectEvent",null);
_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],qW.prototype,"sortFilterHeaderRendererData",null);_.I([_.K({reflectToAttribute:!0,selector:_.zse}),_.Z("design:type",String)],qW.prototype,"frostedGlassMode",void 0);_.I([_.hT("notSticky"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qW.prototype,"dispatchChipBarIsSticky",null);_.I([_.Q({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],qW);
_.m(qW,"ytd-feed-filter-chip-bar-renderer",function(){if(gAN!==void 0)return gAN;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return gAN=A},{mode:1});var KaV;var G5L=_.xa(function(A){var L=A.data;var O=A.buttonIndex;var X=A.selectedIndex;var x=A.onSelect;var J=function(){return O()===X()},Y=function(){var T,V;
return(V=(T=L().text)==null?void 0:T.content)!=null?V:""};
A=_.Ucs();return _.D("yt-toggleable-image-button-view-model",{class:function(){var T={};T=(T["toggleable-image-button-view-model-wiz"]=!0,T[""]=!0,T["toggleable-image-button-view-model-wiz__semi-transparent"]=X()!==-1&&!J(),T);return _.gl(T)},
tabindex:0,"aria-label":Y,"aria-pressed":J,role:"button","on:keydown":A,"on:click":_.py(function(){x(L().onSubmitCommand);return!1})},_.D(_.e,{cond:function(){return L().logo},
then:function(T){return _.D(_.XV,{data:T,className:function(){var V={};V=(V["toggleable-image-button-view-model-wiz__image"]=!0,V["toggleable-image-button-view-model-wiz__circular-radius"]=!(!L().backgroundColor||!L().backgroundColorDarkMode),V["toggleable-image-button-view-model-wiz__gradient-ring"]=!!(J()&&L().backgroundColor&&L().backgroundColorDarkMode),V);return _.gl(V)},
alt:Y,useWidth:!1,style:function(){if(J()&&L().backgroundColor&&L().backgroundColorDarkMode){var V=zm(Number(L().backgroundColorDarkMode),"1");var E=zm(Number(L().backgroundColor),"1");V="background: linear-gradient(180deg,"+V+","+E+") border-box;"}else V="";return V}})}}),_.D(_.cx,{model:{borderRadius:"16px"}}),_.D("p",{class:function(){var T={};
T=(T["toggleable-image-button-view-model-wiz__label"]=!0,T["toggleable-image-button-view-model-wiz__bold-text"]=J(),T);return _.gl(T)}},_.D(_.Xg,{text:function(){return L().text}})))},"Mb");
G5L.idomCompat=!0;var cK7=_.xa(function(A){var L=A.data;A=_.d(_.uQ({index:-1,command:{}},void 0,"Zcqtsb"));var O=A.next().value,X=A.next().value;return _.D("yt-nudge-form-view-model",{class:"nudge-form-view-model-wiz"},_.D("div",{class:"nudge-form-view-model-wiz__form-options"},_.D(_.ID,{data:function(){return L().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(x,J){return _.D(G5L,{data:x.data,buttonIndex:J,selectedIndex:function(){return O().index},
onSelect:function(Y){X({index:J(),command:Y})}})}})),_.D(_.Xg,{text:function(){return L().subtitle},
className:"nudge-form-view-model-wiz__subtitle"}),_.D("div",{class:"nudge-form-view-model-wiz__submit"},_.D(_.ID,{data:function(){return L().submitButton}},{buttonViewModel:function(x){return _.D(lal,{data:x.data,
isDisabled:function(){return O().index===-1},
onClick:function(){_.$a(O().command)}})}})))},"Nb");
cK7.idomCompat=!0;var lal=_.xa(function(A){var L=_.E4(function(){return Object.assign({},A.data(),{state:A.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"rgD0re");
return _.D(_.gj,{data:L,onClick:A.onClick})},"Ob");_.Y4(cK7,"yt-nudge-form-view-model",{props:{data:_.x5}});var gs=function(){var A=_.G.apply(this,arguments)||this;A.roundedContainer=!0;A.buttonUpdate=_.h("web_modern_buttons");A.isDarkMode=!1;A.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return A};
_.g(gs,_.G);_.P=gs.prototype;_.P.computeNudgeStyle=function(A){return A?"modernized-nudge":""};
_.P.handleDarkModeToggledAction=function(A){this.isDarkMode=A};
_.P.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.P.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{chipCloudChipRenderer:"yt-chip-cloud-chip-renderer",nudgeFormViewModel:"yt-nudge-form-view-model"}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed-content",
mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.P.computeIsHorizontalButtons=function(A){return A?!!A.applyModernizedStyle&&!!A.enableHorizontalButtons&&!!A.secondaryButton:!1};
_.v2.Object.defineProperties(gs.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var A,L;return(L=(A=this.data)==null?void 0:A.backgroundStyle)!=null?L:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var A,L;return(L=(A=this.data)==null?void 0:A.contentsLocation)!=null?L:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null?0:A.lightIconImage)}}});
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],gs.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],gs.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.BL),_.Z("design:type",Object)],gs.prototype,"ytdDismissibleItemBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],gs.prototype,"actionHandlerBehavior",void 0);
_.I([_.K({reflectToAttribute:!0}),_.r("isHideEnclosingAction"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],gs.prototype,"isHidden",null);_.I([_.K(),_.Z("design:type",Object)],gs.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],gs.prototype,"roundedContainer",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],gs.prototype,"buttonUpdate",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.Z("design:type",String)],gs.prototype,"nudgeStyle",void 0);_.I([_.K({reflectToAttribute:!0}),_.r("data.trimStyle"),_.Z("design:type",String),_.Z("design:paramtypes",[])],gs.prototype,"trimStyle",null);_.I([_.K({reflectToAttribute:!0}),_.r("data.backgroundStyle"),_.Z("design:type",String),_.Z("design:paramtypes",[])],gs.prototype,"backgroundStyle",null);
_.I([_.K({reflectToAttribute:!0}),_.r("data.contentsLocation"),_.Z("design:type",String),_.Z("design:paramtypes",[])],gs.prototype,"contentsLocation",null);_.I([_.K({reflectToAttribute:!0}),_.r("data.disableDropShadow"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],gs.prototype,"noShadow",null);_.I([_.K({reflectToAttribute:!0}),_.r("data.lightIconImage"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],gs.prototype,"noIcon",null);
_.I([_.K({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.Z("design:type",Boolean)],gs.prototype,"isHorizontalButtons",void 0);_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Object)],gs.prototype,"isDarkMode",void 0);_.I([_.Q({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],gs);
_.m(gs,"ytd-feed-nudge-renderer",function(){if(KaV!==void 0)return KaV;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return KaV=A},{mode:_.e5("kevlar_poly_si_batch_j028")?1:2});var Czn;var Fa7;var ws=function(){var A=_.G.apply(this,arguments)||this;A.collapsed=!1;A.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return A};
_.g(ws,_.G);ws.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"}}}};
ws.prototype.handleRatingSelect=function(){var A;((A=this.data)==null?0:A.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
ws.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],ws.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],ws.prototype,"actionHandlerBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],ws.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],ws.prototype,"ytRendererBehavior",void 0);
_.I([_.N(_.BL),_.Z("design:type",Object)],ws.prototype,"ytdDismissibleItemBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],ws.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],ws.prototype,"collapsed",void 0);_.I([_.Q({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],ws);
_.m(ws,"ytd-slimline-survey-renderer",function(){if(Fa7!==void 0)return Fa7;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Fa7=A},{mode:1});var Ral;var px=function(){return _.G.apply(this,arguments)||this};
_.g(px,_.G);px.prototype.maybeGetBackgroundColor=function(A){return this.isDarkMode?A.section2Color:A.section3Color};
px.prototype.colorPaletteChanged=function(){var A=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;A&&(A==null?0:A.secondaryTitleColor)&&this.maybeGetBackgroundColor(A)?(this.hostElement.style.backgroundColor=_.Wy(this.maybeGetBackgroundColor(A)),this.hostElement.style.color=_.Wy(A.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
px.prototype.colorPaletteChanged=px.prototype.colorPaletteChanged;_.I([_.N(_.HL),_.Z("design:type",Object)],px.prototype,"ytdReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],px.prototype,"data",void 0);_.I([_.K({selector:function(A){return A.ui.darkModeIsEnabled}}),
_.Z("design:type",Boolean)],px.prototype,"isDarkMode",void 0);_.I([_.K(),_.Z("design:type",Object)],px.prototype,"lightColorPalette",void 0);_.I([_.K(),_.Z("design:type",Object)],px.prototype,"darkColorPalette",void 0);_.I([_.hT("darkColorPalette","lightColorPalette","data","isDarkMode"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],px.prototype,"colorPaletteChanged",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],px);
_.m(px,"ytd-endorsement-header-renderer",function(){if(Ral!==void 0)return Ral;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return Ral=A},{mode:1});_.Y4(_.I4,"yt-decorated-avatar-view-model",{props:{data:_.x5,className:_.x5}});_.iY=new _.Yx("VIEW_TRANSITION_MANAGER_TOKEN");var NW=function(){var A=_.G.apply(this,arguments)||this;A.fullHeight=_.h("web_rich_grid_media_full_height");A.showChannelAvatar=!0;A.hasPlaylistThumbnail=!1;A.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};A.registerThumbnailForPageTransition=function(){_.h("web_thumbnail_to_watch_transition")&&_.QVL(_.X5().resolve(_.iY),A.thumbnail)};
return A};
_.g(NW,_.G);_.P=NW.prototype;
_.P.configureRendererStamper=function(){return{lazyLoadMenu:wI,immediateLoadMenu:{id:"immediate-load-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.thumbnailUnderlay":{id:"thumbnail-underlay",mapping:{endorsementHeaderRenderer:{component:"ytd-endorsement-header-renderer",properties:{lightColorPalette:"[[data.thumbnail.lightColorPalette]]",darkColorPalette:"[[data.thumbnail.darkColorPalette]]"}}}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyRenderer:"ytd-slimline-survey-renderer"}},"data.buttons":{id:"buttons",
mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}},"data.avatar":{id:"avatar",mapping:{avatarStackViewModel:{component:"yt-avatar-stack-view-model",properties:{overrides:"[[avatarStackViewModelOverrides]]"}},
decoratedAvatarViewModel:"yt-decorated-avatar-view-model"}}}};
_.P.attached=function(){this.updateInlinePreviewHoverListeners()};
_.P.detached=function(){this.clearInlinePreviewHoverListeners()};
_.P.shouldLazyLoadMenu=function(){var A=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.h("kevlar_modern_downloads_page")||!A};
_.P.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$17056_inlinePreviewHoverListener=$u({mediaRenderer:this,lockupElement:this.JSC$17056_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.P.getVideoPreviewOpts=function(){var A={},L;if((L=this.data)==null?0:L.multipleInlinePlaybackEndpoint)A=rfH;this.isRadio&&(A=NZc);return A};
_.P.clearInlinePreviewHoverListeners=function(){var A;(A=this.JSC$17056_inlinePreviewHoverListener)==null||sr(A)};
_.P.getOwner=function(){var A,L,O;return((A=this.data)==null?void 0:(L=A.channelThumbnailSupportedRenderers)==null?void 0:L.channelThumbnailWithLinkRenderer)||_.q((O=this.data)==null?void 0:O.showProviderChannelThumbnail,FSV)};
_.P.updateLockupSize=function(){var A;((A=this.getOwner())==null?0:A.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.P.getFeedbackEndpoint=function(A){if(_.q(A,_.y7))return A;var L,O;A=(O=(L=_.q(A,_.em))==null?void 0:L.commands)!=null?O:[];L=_.d(A);for(O=L.next();!O.done;O=L.next())if(O=this.getFeedbackEndpoint(O.value))return O;return null};
_.P.computeNavigationEndpoint=function(A){return zCu(A==null?void 0:A.navigationEndpoint)};
_.P.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var A=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(A)!==JSON.stringify(this.data)&&this.set("data",A)}};
_.P.onDataChanged=function(){var A=this,L=this.getOwner();if(L){this.set("data.owner",L);var O,X,x,J,Y,T=((O=this.data)==null?void 0:(X=O.shortBylineText)==null?void 0:(x=X.runs)==null?void 0:(J=x[0])==null?void 0:J.text)||((Y=L.name)==null?void 0:Y.simpleText);this.set("data.owner.title",T)}var V,E,n,t,b,S;L=((V=this.data)==null?void 0:(E=V.thumbnailRenderer)==null?void 0:E.playlistVideoThumbnailRenderer)||((n=this.data)==null?void 0:(t=n.thumbnailRenderer)==null?void 0:t.playlistCustomThumbnailRenderer)||
((b=this.data)==null?void 0:(S=b.thumbnailRenderer)==null?void 0:S.showCustomThumbnailRenderer);var w;((w=this.data)==null?0:w.thumbnail)||!L||this.set("data.thumbnail",L.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){A.updateLockupSize()});
var l;if(V=((l=this.data)==null?void 0:l.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(V);var F;((F=this.dismissActionToReplayEntity)==null?0:F.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.P.onHiddenChanged=function(){this.updateLockupSize()};
_.P.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.dQ(this.hostElement,"yt-terminate-video-preview-action");else{var A;(A=this.videoTitleLink)==null||A.focus()}};
_.P.metadataColorChanged=function(){var A;if(this.metadataColor&&((A=this.videoTitle)==null?0:A.style))this.videoTitle.style.color=_.Wy(this.metadataColor);else{var L,O;!this.metadataColor&&((L=this.videoTitle)==null?0:(O=L.style)==null?0:O.color)&&(this.videoTitle.style.color="")}};
_.P.onDetailsClick=function(A){var L=this.computedNavigationEndpoint;L&&(_.xu(_.oa(A),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.P4(this.hostElement,"yt-navigate",{endpoint:L}))};
_.P.onRendererTap=function(){this.registerThumbnailForPageTransition();var A,L,O=((A=this.data)==null?void 0:A.serviceEndpoint)||this.getFeedbackEndpoint((L=this.data)==null?void 0:L.navigationEndpoint);O&&_.q(O,_.y7)&&this.ytComponentBehavior.resolveCommand(O)};
_.P.onMouseDown=function(A){var L=A.target,O=this.computedNavigationEndpoint,X;A=L.href||((X=_.q(O==null?void 0:O.commandMetadata,_.LM))==null?void 0:X.url);X=L.data||O;A&&X&&XKe(A,X)};
_.P.computeVideoTitleText=function(){var A;if((A=this.data)==null?0:A.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.P.computeHasPlaylistThumbnail=function(A){var L,O,X,x,J;if((((L=A.thumbnailRenderer)==null?0:L.playlistVideoThumbnailRenderer)||((O=A.thumbnailRenderer)==null?0:O.playlistCustomThumbnailRenderer)||((X=A.thumbnailRenderer)==null?0:X.showCustomThumbnailRenderer)||((x=A.thumbnailRenderer)==null?0:x.playlistVideoThumbnailRenderer)||((J=A.thumbnailRenderer)==null?0:J.playlistCustomThumbnailRenderer))&&A.thumbnailOverlays)for(L=0;L<A.thumbnailOverlays.length;L++)if(O=void 0,(O=A.thumbnailOverlays[L])==
null?0:O.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.v2.Object.defineProperties(NW.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.h("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var A;return(A=this.data)==null?void 0:A.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var A;return(A=this.data)==null?void 0:A.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.JSC$17056_inlinePreviewHoverListener)==null?0:Wk(A))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.SQ(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var A,L;return((A=this.data)==null?void 0:A.videoId)||((L=this.data)==null?void 0:L.playlistId)||""}}});
NW.prototype.onMouseDown=NW.prototype.onMouseDown;NW.prototype.metadataColorChanged=NW.prototype.metadataColorChanged;NW.prototype.onIsDismissedChanged=NW.prototype.onIsDismissedChanged;NW.prototype.onHiddenChanged=NW.prototype.onHiddenChanged;NW.prototype.onDataChanged=NW.prototype.onDataChanged;NW.prototype.handleReloadDownloadsInfo=NW.prototype.handleReloadDownloadsInfo;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],NW.prototype,"ytRendererBehavior",void 0);
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],NW.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],NW.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.BL),_.Z("design:type",Object)],NW.prototype,"ytdDismissibleItemBehavior",void 0);_.I([_.N(_.of),_.Z("design:type",Object)],NW.prototype,"ytdLockupBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],NW.prototype,"ytdReduxBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],NW.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",String)],NW.prototype,"entitySelectorType",void 0);_.I([_.K(),_.Z("design:type",Boolean)],NW.prototype,"noEndpoints",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],NW.prototype,"isRadio",void 0);_.I([_.K({reflectToAttribute:!0,selector:_.Fl}),_.Z("design:type",Boolean)],NW.prototype,"miniMode",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],NW.prototype,"fullHeight",void 0);
_.I([_.K(),_.Z("design:type",Boolean)],NW.prototype,"showDarkVideoMetadata",void 0);_.I([_.K(),_.Z("design:type",Boolean)],NW.prototype,"showLightVideoMetadata",void 0);_.I([_.K(),_.Z("design:type",Number)],NW.prototype,"metadataColor",void 0);_.I([_.K(),_.Z("design:type",Object)],NW.prototype,"showChannelAvatar",void 0);_.I([_.K(),_.Z("design:type",Boolean)],NW.prototype,"hidden",void 0);_.I([_.K({value:!0}),_.Z("design:type",Boolean)],NW.prototype,"showYtInteraction",void 0);
_.I([_.K(),_.Z("design:type",String)],NW.prototype,"dismissedContentId",void 0);_.I([_.K({selectorArgs:["dismissedContentId"],selector:a3u}),_.Z("design:type",Object)],NW.prototype,"dismissActionToReplayEntity",void 0);
_.I([_.K({selectorArgs:["entitySelectorType","mediaId"],selector:function(A,L,O){if(_.h("kevlar_modern_downloads_page")&&O&&L&&L!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(L){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var X=aTe(A,O);if(X){L=_.yi(A,O);var x=jM(A,O),J=P6M(A,O);A=WG(A,O);var Y=fYp(X,L,x,J);x=Y.shortViewCountText;var T=Y.publishedTimeText;Y=Y.badges;var V=A>0;J=Qlu(X,L,J,A);X=_.wh(L)||L==="TRANSFER_STATE_FAILED"||L==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!gh(X.policyEntity)?
void 0:W1s(O,A,X.videoEntity.lengthSeconds);L==="TRANSFER_STATE_PAUSED_BY_USER"&&O&&!_.h("dl_resume_click_killswitch")&&(X={offlineVideoEndpoint:{videoId:O,action:"ACTION_RESUME"}});O={shortViewCountText:x,publishedTimeText:T,badges:Y,isWatched:V,navigationEndpoint:X,thumbnailOverlays:J}}else O=void 0;return O;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(L=ker(A,O))if(X=_.Zn(A,O),J=_.UBO(A,O),X!=="TRANSFER_STATE_UNKNOWN"){O=mv_(L,X,J,O,_.Im(A));break a}O=void 0}return O;default:_.Rv(new _.pe("Error: entitySelectorType defined but not matched in selector.",
A,L))}}}),
_.Z("design:type",Object)],NW.prototype,"entityDrivenState",void 0);_.I([_.K({computed:"computeVideoTitleText(data)"}),_.Z("design:type",Object)],NW.prototype,"videoTitleText",void 0);_.I([_.K({computed:"computeHasPlaylistThumbnail(data)"}),_.Z("design:type",Object)],NW.prototype,"hasPlaylistThumbnail",void 0);_.I([_.K({computed:"computeNavigationEndpoint(data)"}),_.Z("design:type",Object)],NW.prototype,"computedNavigationEndpoint",void 0);
_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],NW.prototype,"typographyBump",void 0);_.I([_.K({reflectToAttribute:!0}),_.r("typographyBump"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],NW.prototype,"typographyBumpV2",null);_.I([_.qR("#video-title"),_.Z("design:type",HTMLElement)],NW.prototype,"videoTitle",void 0);_.I([_.qR("#video-title-link"),_.Z("design:type",HTMLElement)],NW.prototype,"videoTitleLink",void 0);
_.I([_.qR("#thumbnail"),_.Z("design:type",HTMLElement)],NW.prototype,"thumbnail",void 0);_.I([_.qR("#dismissible"),_.Z("design:type",HTMLElement)],NW.prototype,"JSC$17056_dismissibleMedia",void 0);_.I([_.r("data.menu"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],NW.prototype,"lazyLoadMenu",null);_.I([_.r("data.menu"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],NW.prototype,"immediateLoadMenu",null);
_.I([_.iy("entityDrivenState"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],NW.prototype,"handleReloadDownloadsInfo",null);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],NW.prototype,"onDataChanged",null);_.I([_.iy("hidden"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],NW.prototype,"onHiddenChanged",null);
_.I([_.hT("isDismissed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],NW.prototype,"onIsDismissedChanged",null);_.I([_.hT("metadataColor"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],NW.prototype,"metadataColorChanged",null);_.I([_.by("mousedown"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],NW.prototype,"onMouseDown",null);
_.I([_.r("lockupIsHovered"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],NW.prototype,"isHovered",null);_.I([_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],NW.prototype,"useAvatar",null);_.I([_.r("data","entitySelectorType"),_.Z("design:type",String),_.Z("design:paramtypes",[])],NW.prototype,"mediaId",null);_.I([_.Q({is:"ytd-rich-grid-media",disableElementRegistration:!0})],NW);
var mm3=_.DX()(NW,"ytd-rich-grid-media",function(){if(Czn!==void 0)return Czn;var A=document.createElement("template");_.p(A,'\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>');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return Czn=A},{mode:_.e5("kevlar_poly_si_batch_j072")?1:2});var fac;var rs=function(){var A=_.G.apply(this,arguments)||this;A.removeMaxWidth=!0;A.insetMetadata=!1;return A};
_.g(rs,_.G);_.P=rs.prototype;_.P.configureRendererStamper=function(){return{innerMenu:wI,outerMenu:Object.assign({},wI,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.P.onDataChanged=function(){var A,L=((A=this.data)==null?void 0:A.trackingParams)||"";L&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(L));var O;((O=this.dismissActionToReplayEntity)==null?0:O.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.P.attached=function(){this.updateInlinePreviewHoverListeners()};
_.P.detached=function(){this.clearInlinePreviewHoverListeners()};
_.P.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$17061_inlinePreviewHoverListener=$u({mediaRenderer:this,lockupElement:this.JSC$17061_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:KOn})};
_.P.clearInlinePreviewHoverListeners=function(){var A;(A=this.JSC$17061_inlinePreviewHoverListener)==null||sr(A)};
_.P.onRendererTap=function(){var A,L,O=(A=this.data)==null?void 0:(L=A.serviceEndpoints)==null?void 0:L[0];_.q(O,_.y7)&&this.componentBehavior.resolveCommand(O)};
_.P.onDetailsClick=function(A){var L,O=(L=this.data)==null?void 0:L.navigationEndpoint;O&&(_.xu(_.oa(A),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(O))};
_.P.onShow=function(){var A=this.data;A.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(A.onFirstVisibleCommand),delete A.onFirstVisibleCommand)};
_.v2.Object.defineProperties(rs.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var A;return this.insetMetadata?void 0:(A=this.data)==null?void 0:A.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var A;return this.insetMetadata?(A=this.data)==null?void 0:A.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var A=this.data;if(A!=null&&A.badge&&(A=_.q(A.badge,aU7))){var L,O,X;return[{metadataBadgeRenderer:{label:((L=A.label)==null?void 0:(O=L.runs)==null?void 0:O[0].text)||((X=A.label)==null?void 0:X.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var A=this.data;return Object.assign({},A.headline,{accessibility:A.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var A,L,O;return this.isSlimShort?(A=this.computedTitle)==null?void 0:(L=A.accessibility)==null?void 0:(O=L.accessibilityData)==null?void 0:O.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.h("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.JSC$17061_inlinePreviewHoverListener)==null?0:Wk(A))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
rs.prototype.onDataChanged=rs.prototype.onDataChanged;_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],rs.prototype,"componentBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],rs.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.of),_.Z("design:type",Object)],rs.prototype,"ytdLockupBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],rs.prototype,"ytRendererstamperBehavior",void 0);
_.I([_.N(_.BL),_.Z("design:type",Object)],rs.prototype,"ytdDismissibleItemBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],rs.prototype,"ytdReduxBehavior",void 0);_.I([_.qR("ytd-thumbnail"),_.Z("design:type",HTMLElement)],rs.prototype,"thumbnail",void 0);_.I([_.qR("#dismissible"),_.Z("design:type",HTMLElement)],rs.prototype,"JSC$17061_dismissibleMedia",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],rs.prototype,"removeMaxWidth",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],rs.prototype,"insetMetadata",void 0);_.I([_.K(),_.Z("design:type",String)],rs.prototype,"dismissedContentId",void 0);_.I([_.K({selectorArgs:["dismissedContentId"],selector:a3u}),_.Z("design:type",Object)],rs.prototype,"dismissActionToReplayEntity",void 0);_.I([_.r("insetMetadata"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],rs.prototype,"thumbnailObjectFit",null);
_.I([_.r("data","insetMetadata"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],rs.prototype,"innerMenu",null);_.I([_.r("data","insetMetadata"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],rs.prototype,"outerMenu",null);_.I([_.K(),_.Z("design:type",Object)],rs.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0,selector:_.Fl}),_.Z("design:type",Boolean)],rs.prototype,"miniMode",void 0);
_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],rs.prototype,"onDataChanged",null);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],rs.prototype,"shortsBadges",null);_.I([_.r("data"),_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],rs.prototype,"isShort",null);
_.I([_.r("data"),_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],rs.prototype,"isSlimShort",null);_.I([_.r("data","isShort"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],rs.prototype,"computedTitle",null);_.I([_.r("isSlimShort","computedTitle"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],rs.prototype,"computedAccessibilityLabel",null);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],rs.prototype,"shouldForce2By3",null);_.I([_.r("lockupIsHovered"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],rs.prototype,"isHovered",null);_.I([_.Q({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],rs);
_.m(rs,"ytd-rich-grid-slim-media",function(){if(fac!==void 0)return fac;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return fac=A},{mode:_.e5("kevlar_poly_si_batch_j063")?1:2});var IaV;var yK6;var Kx=function(){var A=_.G.apply(this,arguments)||this;A.darkerDarkTheme=_.h("web_darker_dark_theme");return A};
_.g(Kx,_.G);Kx.prototype.computeIcon=function(A){return A&&A.iconType?"yt-sys-icons:"+A.iconType.toLowerCase():""};
Kx.prototype.onMouseEnter=function(){this.isHovered=!0};
Kx.prototype.onMouseLeave=function(){this.isHovered=!1};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Kx.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Kx.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],Kx.prototype,"ytComponentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Kx.prototype,"data",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],Kx.prototype,"isHovered",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Kx.prototype,"darkerDarkTheme",void 0);_.I([_.Q({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],Kx);
_.m(Kx,"ytd-expand-on-hover-card-renderer",function(){if(yK6!==void 0)return yK6;var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return yK6=A},{mode:1});var Z1u,jVN=function(){if(Z1u!==void 0)return Z1u;var A=document.createElement("template");_.p(A,'\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>');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return Z1u=A};_.y3("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var Gp=function(){var A=_.G.apply(this,arguments)||this;A.compactStyle=!1;A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return A};
_.g(Gp,_.G);_.P=Gp.prototype;_.P.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.P.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.channelMembershipsButton":{id:"channel-memberships-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.computeHideDot=function(A){return!(A&&A.subscriberCountText&&A.videoCountText)||this.compactStyle};
_.P.hasDualButtons=function(A){return A&&A.purchaseButton&&A.subscribeButton};
_.P.backgroundColorChanged=function(){if(this.data!==void 0){var A=this.data.backgroundColor;this.isDarkTheme&&(A=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=A!=null?_.Wy(A):"transparent"}};
_.P.onDarkModeToggledAction=function(A){this.isDarkTheme=A};
_.P.onTap=function(A){var L,O,X=((L=this.data)==null?void 0:L.navigationEndpoint)||((O=this.data)==null?void 0:O.serviceEndpoint);_.q(X,_.Yf)&&(X&&_.X5().resolve(_.x$).resolveCommand(X,{form:{element:this.hostElement}}),A.preventDefault())};
_.P.computeChannelEndpoint=function(A){return _.q(A,_.Yf)?null:A};
_.P.computeHrefEndpoint=function(A){return _.q(A,_.Yf)?null:this.componentBehavior.computeHref_(A)};
_.P.computeChannelRendererStyle=function(A){return A};
_.P.computeIconSize=function(A){return A?108:136};
_.v2.Object.defineProperties(Gp,{template:{configurable:!0,enumerable:!0,get:function(){return jVN()}}});
Gp.prototype.backgroundColorChanged=Gp.prototype.backgroundColorChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Gp.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Gp.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.J3),_.Z("design:type",Object)],Gp.prototype,"ytdOpenPopupBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],Gp.prototype,"componentBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],Gp.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Boolean)],Gp.prototype,"isDarkTheme",void 0);_.I([_.K({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.Z("design:type",String)],Gp.prototype,"channelRendererStyle",void 0);_.I([_.K({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],Gp.prototype,"dualButtons",void 0);_.I([_.K({reflectToAttribute:!0,value:function(){return _.h("enable_desktop_search_bigger_thumbs")}}),
_.Z("design:type",Boolean)],Gp.prototype,"useBiggerThumbs",void 0);_.I([_.K({reflectToAttribute:!0,value:function(){return _.dN("desktop_search_bigger_thumbs_style")}}),
_.Z("design:type",String)],Gp.prototype,"biggerThumbStyle",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Gp.prototype,"compactStyle",void 0);_.I([_.hT("data","isDarkTheme"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Gp.prototype,"backgroundColorChanged",null);_.I([_.Q({is:"ytd-channel-renderer",disableElementRegistration:!0})],Gp);_.m(Gp,"ytd-channel-renderer",function(){return jVN()},{mode:1});var Wag;var H16;_.y3("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var lY=function(){var A=_.G.apply(this,arguments)||this;A.displayItemCount=2;A.collections=_.h("web_modern_collections_v2");A.hasPlaylistThumbnail=!1;A.stackThumbnailSize="large";return A};
_.g(lY,_.G);_.P=lY.prototype;_.P.attached=function(){this.updateInlinePreviewHoverListeners()};
_.P.detached=function(){this.clearInlinePreviewHoverListeners()};
_.P.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.P.computeFirstVideos=function(A,L){return A&&L?A.slice(0,L):[]};
_.P.computeThumbnailWidth=function(A,L){return A?L==="BIG"?500:L==="MASSIVE"?600:L==="MEDIUM"?450:420:360};
_.P.computeThumbnailHeight=function(A,L){return A?L==="BIG"?280:L==="MASSIVE"?337:234:202};
_.P.clearInlinePreviewHoverListeners=function(){var A;(A=this.JSC$17074_inlinePreviewHoverListener)==null||sr(A)};
_.P.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$17074_inlinePreviewHoverListener=$u({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:rfH,thumbnailElement:this.thumbnail})};
_.P.computeHasPlaylistThumbnail=function(A){var L,O;if((((L=A.thumbnailRenderer)==null?0:L.playlistVideoThumbnailRenderer)||((O=A.thumbnailRenderer)==null?0:O.playlistCustomThumbnailRenderer))&&A.thumbnailOverlays)for(L=0;L<A.thumbnailOverlays.length;L++)if(O=void 0,(O=A.thumbnailOverlays[L])==null?0:O.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.v2.Object.defineProperties(lY.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.JSC$17074_inlinePreviewHoverListener)==null?0:Wk(A))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
lY.prototype.dataChanged=lY.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],lY.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.of),_.Z("design:type",Object)],lY.prototype,"ytdLockupBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],lY.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],lY.prototype,"displayItemCount",void 0);_.I([_.K({reflectToAttribute:!0,value:function(){return _.h("enable_desktop_search_bigger_thumbs")}}),
_.Z("design:type",Boolean)],lY.prototype,"useBiggerThumbs",void 0);_.I([_.K({reflectToAttribute:!0,value:function(){return _.dN("desktop_search_bigger_thumbs_style")}}),
_.Z("design:type",String)],lY.prototype,"biggerThumbsStyle",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],lY.prototype,"collections",void 0);_.I([_.K({computed:"computeHasPlaylistThumbnail(data)"}),_.Z("design:type",Object)],lY.prototype,"hasPlaylistThumbnail",void 0);_.I([_.K(),_.Z("design:type",String)],lY.prototype,"stackThumbnailSize",void 0);_.I([_.qR("ytd-thumbnail"),_.Z("design:type",HTMLElement)],lY.prototype,"thumbnail",void 0);
_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],lY.prototype,"dataChanged",null);_.I([_.r("lockupIsHovered"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],lY.prototype,"isHovered",null);_.I([_.Q({is:"ytd-radio-renderer",disableElementRegistration:!0})],lY);
_.m(lY,"ytd-radio-renderer",function(){if(H16!==void 0)return H16;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return H16=A},{mode:_.e5("kevlar_poly_si_batch_j058")?1:2});var zac;_.y3("itemSectionRenderer","showRenderer","ytd-show-renderer");var c7=function(){return _.G.apply(this,arguments)||this};
_.g(c7,_.G);c7.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
c7.prototype.computeThumbnailWidth=function(A){return A?360:246};
c7.prototype.computeUseProminentThumbs=function(A){return A};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],c7.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],c7.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],c7.prototype,"data",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],c7.prototype,"isSearch",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.Z("design:type",Boolean)],c7.prototype,"useProminentThumbs",void 0);_.I([_.Q({is:"ytd-show-renderer",disableElementRegistration:!0})],c7);
_.m(c7,"ytd-show-renderer",function(){if(zac!==void 0)return zac;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return zac=A},{mode:1});_.y3("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var Cx=function(){var A=_.G.apply(this,arguments)||this;A.isRichGrid=!1;return A};
_.g(Cx,_.G);Cx.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"}}}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Cx.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Cx.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Cx.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Cx.prototype,"isRichGrid",void 0);_.I([_.Q({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],Cx);
_.m(Cx,"ytd-feed-entry-renderer",function(){if(Wag!==void 0)return Wag;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return Wag=A},{mode:1});var BbL;var F3=function(){return _.G.apply(this,arguments)||this};
_.g(F3,_.G);F3.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.I([_.N(_.HL),_.Z("design:type",Object)],F3.prototype,"ytdReduxBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],F3.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],F3.prototype,"ytComponentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],F3.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0,selector:_.Rm,value:3}),_.Z("design:type",Number)],F3.prototype,"itemsPerRow",void 0);
_.I([_.Q({is:"ytd-link-card-renderer",disableElementRegistration:!0})],F3);
_.m(F3,"ytd-link-card-renderer",function(){if(BbL!==void 0)return BbL;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return BbL=A},{mode:1});var Mzc;var Rc=function(){return _.G.apply(this,arguments)||this};
_.g(Rc,_.G);_.P=Rc.prototype;_.P.configureRendererStamper=function(){return{"data.menu":wI,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.P.onRendererTap=function(A){if(!this.ytdDismissibleItemBehavior.isDismissed){var L,O=(L=this.data)==null?void 0:L.navigationEndpoint;O&&!_.xu(_.oa(A),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(O)?_.xu(_.oa(A),this.hostElement,["A"])||_.P4(this.hostElement,"yt-navigate",{endpoint:O}):this.ytComponentBehavior.resolveCommand(O,{}))}};
_.P.maybeComputeHref=function(A){return this.ytComponentBehavior.computeHref_(A,!0)};
_.P.getNavigationCommand=function(A){return this.isNavigationCommand(A)?A:null};
_.P.isNavigationCommand=function(A){return A?_.q(A,_.gM)||_.q(A,_.$O)||_.q(A,_.Hh)?!0:!1:!1};
Rc.prototype.onRendererTap=Rc.prototype.onRendererTap;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Rc.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Rc.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.BL),_.Z("design:type",Object)],Rc.prototype,"ytdDismissibleItemBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],Rc.prototype,"ytComponentBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],Rc.prototype,"data",void 0);_.I([_.by("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Rc.prototype,"onRendererTap",null);_.I([_.Q({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],Rc);
_.m(Rc,"ytd-lumiere-promo-item-image-renderer",function(){if(Mzc!==void 0)return Mzc;var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Mzc=A},{mode:1});var $mN;var Q2=function(){return _.G.apply(this,arguments)||this};
_.g(Q2,_.G);Q2.prototype.computeLandscapeThumbnail=function(){var A;return((A=this.data)==null?void 0:A.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Q2.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],Q2.prototype,"ytdReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Q2.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0,selector:_.Fl}),_.Z("design:type",Boolean)],Q2.prototype,"miniMode",void 0);_.I([_.K({reflectToAttribute:!0,selector:_.Rm}),_.Z("design:type",Number)],Q2.prototype,"itemsPerRow",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.Z("design:type",Boolean)],Q2.prototype,"landscapeThumbnail",void 0);_.I([_.Q({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],Q2);
_.m(Q2,"ytd-lumiere-shelf-details-renderer",function(){if($mN!==void 0)return $mN;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return $mN=A},{mode:_.e5("kevlar_poly_si_batch_j076")?1:2});var aaH;var mX=function(){return _.G.apply(this,arguments)||this};
_.g(mX,_.G);mX.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],mX.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],mX.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],mX.prototype,"data",void 0);_.I([_.Q({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],mX);
_.m(mX,"ytd-primetime-promo-details-renderer",function(){if(aaH!==void 0)return aaH;var A=document.createElement("template");_.p(A,'\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>');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return aaH=A},{mode:1});var k5n;var fx=function(){return _.G.apply(this,arguments)||this};
_.g(fx,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],fx.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],fx.prototype,"data",void 0);_.I([_.Q({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],fx);
_.m(fx,"ytd-panel-show-style-metadata-renderer",function(){if(k5n!==void 0)return k5n;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return k5n=A},{mode:1});var UmH;var Ic=function(){return _.G.apply(this,arguments)||this};
_.g(Ic,_.G);_.P=Ic.prototype;_.P.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.P.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.P.computeThumbnail=function(A){if(A)return A.smallFormFactorBackgroundThumbnail||A.largeFormFactorBackgroundThumbnail};
_.P.maybeComputeHref=function(A){return this.ytComponentBehavior.computeHref_(A,!0)};
_.P.isNavigationCommand=function(A){return A?_.q(A,_.gM)||_.q(A,_.$O)||_.q(A,_.Hh)?!0:!1:!1};
_.P.getNavigationCommand=function(A){return this.isNavigationCommand(A)?A:null};
Ic.prototype.onPanelTap=Ic.prototype.onPanelTap;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Ic.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],Ic.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Ic.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Ic.prototype,"data",void 0);
_.I([_.K({reflectToAttribute:!0,value:!0}),_.Z("design:type",Boolean)],Ic.prototype,"roundedContainer",void 0);_.I([_.K({reflectToAttribute:!0,value:_.h("web_modern_buttons")}),_.Z("design:type",Boolean)],Ic.prototype,"modernButtons",void 0);_.I([_.by("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ic.prototype,"onPanelTap",null);_.I([_.Q({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],Ic);
_.m(Ic,"ytd-primetime-promo-panel-renderer",function(){if(UmH!==void 0)return UmH;var A=document.createElement("template");_.p(A,'\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>');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return UmH=A},{mode:1});_.Y4(_.xa(function(A){A=_.OY(A,{data:{},useFullWidth:!1});var L=A.data,O=A.useFullWidth;A={};return _.D("teaser-card-view-model",{class:_.qn("ytTeaserCardViewModelHost",(A.ytTeaserCardViewModelUseFullWidth=function(){return O()},A))},_.D(_.e,{cond:function(){return L().onTap},
then:function(X){return _.D(_.aD,{className:"ytTeaserCardViewModelLink",command:X},_.D("div",{class:"ytTeaserCardViewModelImageContainer"},_.D(_.e,{cond:function(){return L().image},
then:function(x){return _.D(_.XV,{data:x,className:"ytTeaserCardViewModelImage",alt:""})}})),_.D("p",{class:"ytTeaserCardViewModelCaption"},function(){return L().caption}))}}))},"Pb"),"teaser-card-view-model",{props:{data:_.x5,
useFullWidth:_.x5}});var vAu=new _.Yx("RICH_GRID_VIDEO_RENDERER_TOKEN");_.Y4(_.xa(function(A){var L=A.data;var O=A.showYtInteractionInContent;var X=function(){return!!L().selectableFeedback};
A=_.d(_.uQ(!1,void 0,"nblDw"));var x=A.next().value,J=A.next().value;_.GD(function(){var b=_.q(L().primaryButton,_.Fi);(b==null?0:b.isToggled)&&J(b.isToggled)});
A=_.py(function(b){if(!X())return!1;if(x()){var S;var w=(S=L().selectableFeedback)==null?void 0:S.onDeselect}else{var l;w=(l=L().selectableFeedback)==null?void 0:l.onSelect}w&&_.$a(w,{form:{element:b.target}});J(!x());if(b=_.q(L().primaryButton,_.Fi))b.isToggled=x();return!1});
var Y=function(){if(!X()){var b,S=(b=L().loggingDirectives)==null?void 0:b.trackingParams;S&&_.wm(_.X5().resolve(_.Rr),S)}},T=_.v2d(),V=function(){var b;
return X()?(b=L().selectableFeedback)==null?void 0:b.a11yLabel:void 0},E=function(){return X()?{toggled:x()}:{}},n=_.X5().resolve(_.Ot(vAu)),t={};
return _.D("yt-feedback-item-renderer",{class:_.qn("ytFeedbackItemRendererHost",(t.ytFeedbackItemRendererSelectableFeedback=X,t)),"on:click":A,"on:keydown":T,title:V,"aria-label":V,"aria-pressed":function(){return X()?x():void 0},
tabindex:function(){return X()?0:void 0},
role:function(){return X()?"button":void 0}},_.D("div",{class:"ytFeedbackItemRendererContentContainer"},_.D(_.ID,{data:function(){return L().content}},{videoRenderer:function(b){return _.D(n,{data:b.data,
showYtInteraction:O})},
lockupViewModel:function(b){return _.D(_.tN,{data:b.data,containerType:2})}})),_.D("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.D(_.ID,{data:function(){return L().primaryButton}},{toggleButtonViewModel:function(b){return _.D(_.fO,{data:b.data,
buttonShapeOverrides:E,disableExplicitClickLogging:!0,onToggle:Y})}})))},"Qb"),"yt-feedback-item-renderer",{props:{data:_.x5,
showYtInteractionInContent:_.x5}});var y2=function(){var A=_.G.apply(this,arguments)||this;A.isShortsGrid=!1;A.isCompactGrid=!1;A.isShortsPanelGrid=!1;A.renderedFromRichGrid=!1;A.isInFirstColumn=!1;A.noGutterMargins=!1;A.isInlineGroupItem=!1;A.insetMetadata=!1;A.noBottomMarginInAds=_.h("web_no_bottom_margin_for_home_ad_buttons");A.force16By9ThumbnailAspectRatio=!1;A.useCompactList=!1;A.containerType=2;A.thumbnailTargetWidth=9999;A.isResponsiveGrid=!1;A.lockupExperiments={useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0};A.actionMap=
{"ytd-rich-item-index-update-action":"onIndexUpdateAction"};A.hoverListener=A.hover.bind(A);A.leaveListener=A.leave.bind(A);A.highlighted=!1;A.JSC$17109_unsubscribeFromInlinePreviewIsActive=function(){};
return A};
_.g(y2,_.G);_.P=y2.prototype;_.P.computeContainerType=function(){return this.useCompactList?3:2};
_.P.computeThumbnailTargetWidth=function(){var A;return(A=this.itemWidth)!=null?A:9999};
_.P.updateIsInFirstColumn=function(){var A;this.isInFirstColumn=((A=this.data)==null?void 0:A.colIndex)===0};
_.P.observerContainerType=function(){if(this.lockup){var A=this.lockup;A.containerType=this.containerType;A.sizing=this.sizing;A.typographyBump=this.typographyBump;A.itemWidth=this.itemWidth}this.richGridMedia&&_.h("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.h("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.P.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-rich-item-renderer lockup",thumbnailFixedWidth:"50%"},properties:{force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",containerType:"[[containerType]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]"}},postRenderer:{component:"ytd-post-renderer",
params:{isRichGrid:!0}},sharedPostRenderer:{component:"ytd-shared-post-renderer",params:{isRichGrid:!0}},primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer",primetimePromoPanelRenderer:"ytd-primetime-promo-panel-renderer",movieRenderer:{component:"ytd-rich-grid-slim-media"},compactMovieRenderer:{component:"ytd-rich-grid-media",properties:{typographyBump:"[[richTypographyBump]]",showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},reelItemRenderer:{component:"ytd-rich-grid-slim-media",
properties:{insetMetadata:"[[insetMetadata]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",properties:{aspectRatio:"[[shortsLockupViewModelAspectRatio]]",inlineMetadata:"[[insetMetadata]]",scrimStyle:"[[shortsLockupViewModelScrimStyle]]",useDefaultStyle:"[[isShortsPanelGrid]]"}},feedbackItemRenderer:{component:"yt-feedback-item-renderer",properties:{showYtInteractionInContent:"[[showYtInteractionOnRichGridMedia]]"}},videoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},
properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",typographyBump:"[[richTypographyBump]]"}},radioRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},playlistRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",
typographyBump:"[[richTypographyBump]]"}},gridShowRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},promotedVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1,isPromotedVideo:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},feedEntryRenderer:{component:"ytd-feed-entry-renderer",params:{isRichGrid:!0}},
displayAdRenderer:{component:"ytd-display-ad-renderer"},adSlotRenderer:{component:"ytd-ad-slot-renderer",properties:{noBottomMargin:"[[noBottomMarginInAds]]",typographyBump:"[[richTypographyBump]]"}},lumiereShelfDetailsRenderer:"ytd-lumiere-shelf-details-renderer",lumierePromoItemImageRenderer:"ytd-lumiere-promo-item-image-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gameCardRenderer:{component:"ytd-game-card-renderer",params:{isRichGrid:!0}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",
params:{isRichGrid:!0}},expandOnHoverCardRenderer:"ytd-expand-on-hover-card-renderer",linkCardRenderer:"ytd-link-card-renderer",gridMovieRenderer:{component:"ytd-rich-grid-slim-media"},gridChannelRenderer:{component:"ytd-grid-channel-renderer",params:{isRichGrid:!0}},teaserCardViewModel:{component:"teaser-card-view-model",params:{useFullWidth:!0}},gridVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}}}}}};
_.P.leave=function(A){A=A.relatedTarget;var L=document.querySelector("ytd-video-preview");A&&L&&_.uy(L).contains(A)||this.removeAndCleanupHighlight()};
_.P.hover=function(){var A;if(!this.highlighted&&(!_.h("web_enable_rich_item_on_focus_effect")||(A=this.data)!=null&&A.onFocusEffect)){var L,O;((L=this.data)==null?void 0:(O=L.onFocusEffect)==null?void 0:O.onFocusStyle)==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(A=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:A,boxShadow:"0 0 0 10px "+A}));var X,x;((X=this.data)==null?void 0:(x=X.onFocusEffect)==null?void 0:
x.onFocusStyle)==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border");this.highlighted=!0}};
_.P.removeAndCleanupHighlight=function(){this.hostElement.classList.remove("ytd-rich-item-renderer-highlight");this.hostElement.classList.remove("ytd-rich-item-renderer-highlight-border");Object.assign(this.hostElement.style,{backgroundColor:"",boxShadow:""});this.highlighted=!1};
_.P.registerHoverHighlightListeners=function(){var A=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$17109_unsubscribeFromInlinePreviewIsActive=_.Ge(_.Ai(),_.jsJ,function(L){A.highlighted&&!L&&A.removeAndCleanupHighlight()})};
_.P.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$17109_unsubscribeFromInlinePreviewIsActive()};
_.P.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.P.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.P.getBackgroundColor=function(){var A,L,O=(A=this.data)==null?void 0:(L=A.onFocusEffect)==null?void 0:L.onFocusColor;if(O){if(document.documentElement.hasAttribute("dark")&&(O==null?0:O.darkTheme))return _.Wy(O==null?void 0:O.darkTheme);if(O==null?0:O.lightTheme)return _.Wy(O==null?void 0:O.lightTheme)}};
_.P.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var A=_.Fn(),L,O,X;A&&((L=this.data)==null?0:L.trackingParams)&&((O=this.data)==null?void 0:O.colIndex)!=null&&((X=this.data)==null?void 0:X.rowIndex)!=null&&_.kK(A,_.lV(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.P.isSlimMediaRenderer=function(A){return!!_.q(A==null?void 0:A.content,_.iCJ)||!!_.q(A==null?void 0:A.content,pin)||!!_.q(A==null?void 0:A.content,_.M1)||!!_.q(A==null?void 0:A.content,BSN)};
_.P.isPostRenderer=function(){var A,L;return!!_.q((A=this.data)==null?void 0:A.content,t7l)||!!_.q((L=this.data)==null?void 0:L.content,bcl)};
_.P.computeIsGameCardShelf=function(){var A;return!!_.q((A=this.data)==null?void 0:A.content,KDN)};
_.P.computeIsMiniGameCardShelf=function(){var A,L;return!!_.q((A=this.data)==null?void 0:A.content,WD6)||!!_.q((L=this.data)==null?void 0:L.content,HDL)};
_.P.computeIsTeaserCard=function(){var A;return!!_.q((A=this.data)==null?void 0:A.content,HDL)};
_.P.computeIsSelectableFeedbackItem=function(){var A,L;return!((L=_.q((A=this.data)==null?void 0:A.content,_.Bx3))==null||!L.selectableFeedback)};
_.P.computeContainsLumierePosters=function(){var A,L;return((L=_.q((A=this.data)==null?void 0:A.content,KSN))==null?void 0:L.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.P.computeIsExpandOnHoverCardShelf=function(){var A;return!!_.q((A=this.data)==null?void 0:A.content,rQ3)};
_.P.computeIsLinkCardShelf=function(){var A;return!!_.q((A=this.data)==null?void 0:A.content,LQV)};
_.P.computeIsReelItemStyleAvatarCircle=function(A){var L;return((L=_.q(A==null?void 0:A.content,_.M1))==null?void 0:L.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.P.computeIsLinkCardFullWidth=function(A,L){var O;return((O=_.q(A==null?void 0:A.content,LQV))==null?void 0:O.useFullWidth)||L<=2};
_.v2.Object.defineProperties(y2.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&&_.h("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){return _.h("web_enable_rich_item_on_focus_effect")||_.h("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return 1}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}}});
y2.prototype.richGridHoverHighlightChanged=y2.prototype.richGridHoverHighlightChanged;y2.prototype.observerContainerType=y2.prototype.observerContainerType;y2.prototype.updateIsInFirstColumn=y2.prototype.updateIsInFirstColumn;_.I([_.N(_.HL),_.Z("design:type",Object)],y2.prototype,"ytdReduxBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],y2.prototype,"ytRendererstamperBehavior",void 0);
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],y2.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],y2.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.of),_.Z("design:type",Object)],y2.prototype,"ytdLockupBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],y2.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.Z("design:type",Boolean)],y2.prototype,"isPost",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.Z("design:type",Boolean)],y2.prototype,"containsLumierePosters",void 0);_.I([_.K({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.Z("design:type",Boolean)],y2.prototype,"isSlimMedia",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.Z("design:type",Boolean)],y2.prototype,"isGameCardShelf",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.Z("design:type",Boolean)],y2.prototype,"isMiniGameCardShelf",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.Z("design:type",Boolean)],y2.prototype,"isTeaserCard",void 0);_.I([_.K({computed:"computeIsSelectableFeedbackItem(data)"}),_.Z("design:type",Boolean)],y2.prototype,"isSelectableFeedbackItem",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],y2.prototype,"isShortsGrid",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],y2.prototype,"isSlimGrid",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],y2.prototype,"isCompactGrid",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],y2.prototype,"isShortsPanelGrid",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.Z("design:type",Boolean)],y2.prototype,"isExpandOnHoverCardShelf",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.Z("design:type",Boolean)],y2.prototype,"isLinkCardShelf",void 0);_.I([_.K({reflectToAttribute:!0,selector:_.Rm,value:3}),_.Z("design:type",Number)],y2.prototype,"itemsPerRow",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],y2.prototype,"renderedFromRichGrid",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],y2.prototype,"isInFirstColumn",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],y2.prototype,"noGutterMargins",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],y2.prototype,"isInlineGroupItem",void 0);_.I([_.K(),_.Z("design:type",Object)],y2.prototype,"insetMetadata",void 0);
_.I([_.K(),_.Z("design:type",Object)],y2.prototype,"noBottomMarginInAds",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],y2.prototype,"isShelfItem",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.Z("design:type",Boolean)],y2.prototype,"isReelItemStyleAvatarCircle",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.Z("design:type",Boolean)],y2.prototype,"isLinkCardFullWidth",void 0);
_.I([_.K(),_.Z("design:type",Object)],y2.prototype,"force16By9ThumbnailAspectRatio",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],y2.prototype,"useCompactList",void 0);_.I([_.K(),_.Z("design:type",String)],y2.prototype,"sizing",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],y2.prototype,"typographyBump",void 0);_.I([_.K(),_.Z("design:type",Number)],y2.prototype,"itemWidth",void 0);_.I([_.K(),_.Z("design:type",Boolean)],y2.prototype,"isHomeShelf",void 0);
_.I([_.K(),_.Z("design:type",Boolean)],y2.prototype,"isHomeGrid",void 0);_.I([_.qR("yt-lockup-view-model"),_.Z("design:type",HTMLElement)],y2.prototype,"lockup",void 0);_.I([_.qR("ytd-rich-grid-media"),_.Z("design:type",HTMLElement)],y2.prototype,"richGridMedia",void 0);_.I([_.qR("ytd-ad-slot-renderer"),_.Z("design:type",HTMLElement)],y2.prototype,"adSlotRenderer",void 0);_.I([_.K({computed:"computeContainerType(useCompactList)"}),_.Z("design:type",Object)],y2.prototype,"containerType",void 0);
_.I([_.K({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.Z("design:type",Object)],y2.prototype,"thumbnailTargetWidth",void 0);_.I([_.r("showYtInteractionOnRichItem"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],y2.prototype,"showYtInteractionOnRichGridMedia",null);_.I([_.r("isSelectableFeedbackItem","richGridHoverHighlight"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],y2.prototype,"showYtInteractionOnRichItem",null);
_.I([_.r("typographyBump","isHomeGrid"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],y2.prototype,"richTypographyBump",null);_.I([_.K({reflectToAttribute:!0}),_.r("isShortsGrid","isCompactGrid"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],y2.prototype,"richGridHoverHighlight",null);_.I([_.r("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],y2.prototype,"shortsLockupViewModelAspectRatio",null);
_.I([_.r("isInlineGroupItem"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],y2.prototype,"shortsLockupViewModelScrimStyle",null);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],y2.prototype,"updateIsInFirstColumn",null);_.I([_.hT("containerType","sizing","typographyBump"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],y2.prototype,"observerContainerType",null);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],y2.prototype,"isResponsiveGrid",void 0);_.I([_.K(),_.Z("design:type",Object)],y2.prototype,"lockupExperiments",void 0);_.I([_.hT("richGridHoverHighlight"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],y2.prototype,"richGridHoverHighlightChanged",null);_.I([_.Q({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],y2);
_.oA6=_.DX()(y2,"ytd-rich-item-renderer",function(){if(IaV===void 0){var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);IaV=A}A=IaV;return A},{mode:_.e5("kevlar_poly_si_batch_j028")?1:2});var CCP={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var B$r=_.Ue(_.b3("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var RMO={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},mgp={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},fqu={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var AL6;var Zs=function(){var A=_.G.apply(this,arguments)||this;A.useResponsiveGrid=!1;A.hidden=!1;A.standardShelfMargins=_.h("web_rich_grid_standard_shelf_margins");A.isShowMoreHidden=!1;A.isExpanded=!1;A.isInnerShelf=!1;A.allVideosCount=0;A.allPlaylistCount=0;A.haveSmartDownloadsCompleted=!1;A.isShowLessHidden=!0;A.restrictContentsOverflow=!1;A.firstShownIndex=0;A.horizontalOffset=0;A.atEnd=!0;A.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved",
"yt-section-reactive-dismissal":"onSectionReactiveDismissal"};A.nextClick=function(){var L;(L=A.data)!=null&&L.contents&&(A.firstShownIndex+=A.currentElementsPerRow,A.updateHorizontalOffset(),A.updateHorizontalItemVisibility())};
A.previousClick=function(){var L;(L=A.data)!=null&&L.contents&&(A.firstShownIndex-=A.currentElementsPerRow,A.updateHorizontalOffset(),A.updateHorizontalItemVisibility())};
return A};
_.g(Zs,_.G);_.P=Zs.prototype;
_.P.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:_.ms("HTML_DIR")===
"rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.P.attached=function(){this.requestElementsPerRow()};
_.P.refreshGridLayoutNew=function(){var A;if((A=this.data)!=null&&A.contents&&this.containerWidth){var L;((L=this.data.responsiveContainerConfiguration)==null?0:L.responsiveSize)?(A=_.aqe(this.data.responsiveContainerConfiguration,this.containerWidth),A=_.oD(Object.assign({},A,{standardUnitMinWidth:this.standardUnitMinWidth}))):A=_.oD({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=A.typographyBump;if(this.elementsPerRow!==
A.numItems||this.gutter!==A.gutter)this.elementsPerRow=A.numItems,this.gutter=A.gutter,this.itemWidth=A.itemWidth,_.eq(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":A.gutter+"px"})}};
_.P.computeSizing=function(){if(!this.isLumiere){var A=_.o_p(this.data);if(A)return A;if(_.h("web_use_layout_library_for_rich_grid"))return this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.P.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.P.computeButton=function(A){var L=_.q(A,_.$t);A=Object.assign({},_.q(A,_.$t));return L?(A.text||(A.text={simpleText:A.tooltip}),A.style="STYLE_MONO_OUTLINE",A.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",A):L};
_.P.onRowIndexChange=function(){var A=_.Fn(),L,O;((L=this.data)==null?0:L.trackingParams)&&((O=this.data)==null?void 0:O.rowIndex)!=null&&A&&_.kK(A,_.lV(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.P.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var A,L=((A=this.getRichItemRenderers()[0])==null?void 0:A.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*L;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.P.requestElementsPerRow=function(){_.P4(this.hostElement,"yt-request-elements-per-row")};
_.P.onUpdateElementsPerRowAction=function(A,L,O,X,x,J){if(this.containerWidth!==J&&(this.containerWidth=J,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&A&&L&&O&&X&&x&&(this.elementsPerRow!==A||this.postsPerRow!==L||this.slimItemsPerRow!==O||this.gameCardsPerRow!==X||this.miniGameCardsPerRow!==x)&&(this.elementsPerRow=A,this.postsPerRow=L,this.slimItemsPerRow=O,this.gameCardsPerRow=X,this.miniGameCardsPerRow=x,this.updateItemVisibility())};
_.P.getRichItemRenderers=function(){return _.YJ(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.P.updateItemVisibility=function(){var A=this;if(this.data&&this.data.contents){var L=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(X,x){var J;((J=A.data)==null?0:J.isExpanded)?(X.hidden=x>L-1,X.ytRendererBehavior.markDirty()):X.hidden=x>A.currentElementsPerRow-1||x>L-1});
var O=this.data.contents.length<=this.currentElementsPerRow;this.isExpanded=!!this.data.isExpanded;this.isShowMoreHidden=!this.data.showMoreButton||O||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||O||!this.data.isExpanded||this.isTruncated}this.contents.style.visibility="visible"}};
_.P.setHeightToSingleRow=function(){var A=this.getRichItemRenderers(),L=Number.parseInt(getComputedStyle(A[0]).marginBottom,10)||0;A=A.slice(0,this.currentElementsPerRow).reduce(function(O,X){return Math.max(O,X.getBoundingClientRect().height+L)},0);
this.contents.style.height=A+"px"};
_.P.focusNextExpandedItem=function(){var A;((A=this.data)==null?0:A.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.P.focusItem=function(A,L){var O=this.getRichItemRenderers();if(O[A]&&(A=O[A].querySelector(".focus-on-expand"))){if(L){var X;(X=O[this.currentElementsPerRow])==null||X.scrollIntoView({behavior:"smooth",block:"center"})}A.focus({preventScroll:!0})}};
_.P.onDataChange=function(){var A=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var L;if((L=this.data)==null?0:L.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.kd(this,function(){A.updateItemVisibility()});
var O;if((O=this.data)==null?0:O.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.eq(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),L=0;L<this.data.contents.length;L++)O=_.q(this.data.contents[L],_.It)||{},O.colIndex=L,O.rowIndex=this.data.rowIndex};
_.P.handleRerenderDownloadsData=function(){_.h("kevlar_modern_downloads_page")&&this.entityDrivenRichShelfData&&(this.set("data.contents",this.entityDrivenRichShelfData.contents),this.entityDrivenRichShelfData.subtitle&&this.set("data.subtitle",this.entityDrivenRichShelfData.subtitle),this.updateItemVisibility())};
_.P.blockInlinePreview=function(A){var L=this,O;return _.u(function(X){(O=L.inlinePreviewIsEnabled)&&L.ytdReduxBehavior.dispatch(_.QEg(!1));return X.return(new Promise(function(x){A(function(){O&&L.ytdReduxBehavior.dispatch(_.QEg(!0));x()})}))})};
_.P.expandShelf=function(){var A=this;if(this.data){var L,O=(L=_.q(this.data.showMoreButton,_.$t))==null?void 0:L.trackingParams;O&&_.wm(_.iV(),O);this.data.isExpanded=!0;this.blockInlinePreview(function(X){A.setHeightToSingleRow();A.updateItemVisibility();A.contents.style.height=A.contents.scrollHeight+"px";_.c1.addJob(function(){A.contents.style.height="auto";A.focusNextExpandedItem();X()},2,200)})}};
_.P.collapseShelf=function(){var A=this;return _.u(function(L){if(L.nextAddress==1){if(!A.data)return L.return();A.data.isExpanded=!1;return L.yield(A.blockInlinePreview(function(O){A.contents.style.height=A.contents.scrollHeight+"px";A.setHeightToSingleRow();_.c1.addJob(function(){A.updateItemVisibility();A.contents.style.height="auto";O()},2,200)}),2)}_.P4(A.hostElement,"yt-rich-shelf-renderer-collapse",A.data.trackingParams);
A.focusItem(0,!1);_.qo(L)})};
_.P.updateArrowButtonStatus=function(){var A=this.getRichItemRenderers().length;if(!_.h("web_rich_shelf_renderer_use_data_contents_killswitch")){var L,O;A=((L=this.data)==null?void 0:(O=L.contents)==null?void 0:O.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=A};
_.P.onChildElementFocus=function(A){this.hasChevronButtons&&(A=A.target.closest("#contents > *"),this.contents.contains(A)&&(A.offsetLeft<this.horizontalOffset?this.previousClick():A.offsetLeft+A.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.P.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.ms("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.P.updateHorizontalOffset=function(){var A=this.getRichItemRenderers(),L=A.length;if(!_.h("web_rich_shelf_renderer_use_data_contents_killswitch")){var O,X;L=((O=this.data)==null?void 0:(X=O.contents)==null?void 0:X.length)||0}var x;A=((x=A[0])==null?void 0:x.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>L?this.firstShownIndex=L-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*A};
_.P.isSlimMediaShelfRenderer=function(){var A,L,O,X=(O=_.q((A=this.data)==null?void 0:(L=A.contents)==null?void 0:L[0],_.It))==null?void 0:O.content;return!!(_.q(X,_.iCJ)||_.q(X,pin)||_.q(X,_.M1)||_.q(X,BSN))};
_.P.isGameCardShelf=function(){var A,L,O,X=(O=_.q((A=this.data)==null?void 0:(L=A.contents)==null?void 0:L[0],_.It))==null?void 0:O.content;return!!_.q(X,KDN)};
_.P.isGnomeShelf=function(){var A,L,O,X=(O=_.q((A=this.data)==null?void 0:(L=A.contents)==null?void 0:L[0],_.It))==null?void 0:O.content;return!!_.q(X,_.Bx3)};
_.P.isMiniGameCardShelf=function(){var A,L,O,X=(O=_.q((A=this.data)==null?void 0:(L=A.contents)==null?void 0:L[0],_.It))==null?void 0:O.content;return!!_.q(X,WD6)||!!_.q(X,HDL)};
_.P.hasGameBoxArtAvatarStyle=function(){var A;return((A=this.data)==null?void 0:A.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.P.hasRoundedGameBoxArtAvatarStyle=function(){var A;return((A=this.data)==null?void 0:A.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.P.isShortsShelf=function(){var A,L,O,X=(O=_.q((A=this.data)==null?void 0:(L=A.contents)==null?void 0:L[0],_.It))==null?void 0:O.content;return!!_.q(X,_.M1)||!!_.q(X,BSN)};
_.P.isPostShelfRenderer=function(){var A,L,O,X=(O=_.q((A=this.data)==null?void 0:(L=A.contents)==null?void 0:L[0],_.It))==null?void 0:O.content;return!(!_.q(X,t7l)&&!_.q(X,bcl))};
_.P.isLumiereShelf=function(){var A,L,O=_.q((A=this.data)==null?void 0:(L=A.contents)==null?void 0:L[0],_.It);return!!_.q(O==null?void 0:O.content,KSN)};
_.P.isLumiereShelfWithPosters=function(){var A,L,O=_.q((A=this.data)==null?void 0:(L=A.contents)==null?void 0:L[0],_.It),X;return((X=_.q(O==null?void 0:O.content,KSN))==null?void 0:X.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.P.isExpandOnHoverCardShelf=function(){var A,L,O,X=(O=_.q((A=this.data)==null?void 0:(L=A.contents)==null?void 0:L[0],_.It))==null?void 0:O.content;return!!_.q(X,rQ3)};
_.P.computeHasFeaturedBadge=function(){var A,L,O=_.q((A=this.data)==null?void 0:(L=A.badges)==null?void 0:L[0],_.MrN);return O?O.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.P.computeHasPaygatedFeaturedBadge=function(){var A,L,O=_.q((A=this.data)==null?void 0:(L=A.badges)==null?void 0:L[0],_.MrN);return O?(O==null?void 0:O.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.P.computeHeaderHidden=function(){var A,L,O,X,x,J;return!((A=this.data)==null?0:A.icon)&&!((L=this.data)==null?0:L.title)&&!((O=this.data)==null?0:O.subtitle)&&!((X=this.data)==null?0:X.thumbnail)&&!((x=this.data)==null?0:x.badges)&&!((J=this.data)==null?0:J.menu)};
_.P.showCtaButton=function(){var A;return!((A=this.data)==null||!A.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.P.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.P.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.P.computeForce16By9ThumbnailAspectRatio=function(){var A,L;return((A=this.data)==null?void 0:(L=A.responsiveContainerConfiguration)==null?void 0:L.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.P.onSectionReactiveDismissal=function(A,L,O){var X,x;var J=(X=this.data)==null?void 0:(x=X.targetingContext)==null?void 0:x.targetGroupId;this&&J&&L.targetGroupId&&J.includes(L.targetGroupId)?(X=this.rowIndex,A=X===void 0?!1:!(L.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&X<=A)):A=!1;A&&(this.hidden=O)};
_.v2.Object.defineProperties(Zs.prototype,{currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var A=this.elementsPerRow;this.isPostShelfRenderer()?A=this.postsPerRow:this.isSlimMediaShelfRenderer()?A=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?A=this.slimItemsPerRow-1:this.isGameCardShelf()?A=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(A=this.miniGameCardsPerRow);return A}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.h("kevlar_clean_feeds_show_more")&&this.isHomePage}},
hideBottomDivider:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var A,L;return!((A=this.data)==null||!A.previousButton)&&!((L=this.data)==null||!L.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 A;return((A=_.X5().resolve(_.JI).getCurrentPage())==null?void 0:A.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var A,L,O,X;return!((A=this.data)==null?0:(L=A.thumbnail)==null?0:(O=L.accessibility)==null?0:(X=O.accessibilityData)==null?0:X.label)}},
initiallyIsExpanded:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.isExpanded)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
Zs.prototype.onChildElementFocus=Zs.prototype.onChildElementFocus;Zs.prototype.handleRerenderDownloadsData=Zs.prototype.handleRerenderDownloadsData;Zs.prototype.onDataChange=Zs.prototype.onDataChange;Zs.prototype.onRowIndexChange=Zs.prototype.onRowIndexChange;_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Zs.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Zs.prototype,"ytRendererBehavior",void 0);
_.I([_.N(_.BL),_.Z("design:type",Object)],Zs.prototype,"ytdDismissibleItemBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],Zs.prototype,"actionHandlerBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],Zs.prototype,"ytdReduxBehavior",void 0);_.I([_.K({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.Z("design:type",Object)],Zs.prototype,"useResponsiveGrid",void 0);_.I([_.K(),_.Z("design:type",Object)],Zs.prototype,"data",void 0);
_.I([_.K(),_.Z("design:type",Number)],Zs.prototype,"standardUnitMinWidth",void 0);_.I([_.K({reflectToAttribute:!0,value:3}),_.Z("design:type",Number)],Zs.prototype,"elementsPerRow",void 0);_.I([_.K({value:3}),_.Z("design:type",Number)],Zs.prototype,"postsPerRow",void 0);_.I([_.K({value:6}),_.Z("design:type",Number)],Zs.prototype,"slimItemsPerRow",void 0);_.I([_.K({value:6}),_.Z("design:type",Number)],Zs.prototype,"gameCardsPerRow",void 0);
_.I([_.K({value:6}),_.Z("design:type",Number)],Zs.prototype,"miniGameCardsPerRow",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Zs.prototype,"hidden",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Zs.prototype,"standardShelfMargins",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Zs.prototype,"isShowMoreHidden",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Zs.prototype,"isExpanded",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Zs.prototype,"isInnerShelf",void 0);_.I([_.K({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.Z("design:type",Boolean)],Zs.prototype,"isShorts",void 0);_.I([_.K({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.Z("design:type",Boolean)],Zs.prototype,"isLumiere",void 0);_.I([_.K({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.Z("design:type",Boolean)],Zs.prototype,"hasBoxArtThumbnailStyle",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.Z("design:type",Boolean)],Zs.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.Z("design:type",Boolean)],Zs.prototype,"hasFeaturedBadge",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.Z("design:type",Boolean)],Zs.prototype,"hasPaygatedFeaturedBadge",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.Z("design:type",Boolean)],Zs.prototype,"isHeaderHidden",void 0);_.I([_.K({selector:_.$Bs}),_.Z("design:type",Object)],Zs.prototype,"allVideosCount",void 0);_.I([_.K({selector:$gd}),_.Z("design:type",Object)],Zs.prototype,"allPlaylistCount",void 0);_.I([_.K({selector:xvD}),_.Z("design:type",Object)],Zs.prototype,"haveSmartDownloadsCompleted",void 0);
_.I([_.K({selectorArgs:["entitySelectorType"],selector:function(A,L){if(_.h("kevlar_modern_downloads_page")&&L&&L!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var O=A.entities;switch(L){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":L=_.lN(O);A=lI(L);var X=_.pY(L);O=_.CY(O);O=_.Xl(yXP(X,O,L.length));return{contents:A,subtitle:O};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return O=_.lN(O),{contents:lI(O)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return O=
_.cG(O),{contents:lI(O)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return O=_.i2p(O),{contents:lI(O)};default:_.Rv(new _.pe("Error: entitySelectorType defined but not matched in selector.",A,L))}}}}),
_.Z("design:type",Object)],Zs.prototype,"entityDrivenRichShelfData",void 0);_.I([_.K({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.Z("design:type",Boolean)],Zs.prototype,"hasTopCtaButton",void 0);_.I([_.K({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.Z("design:type",Boolean)],Zs.prototype,"hasBottomCtaButton",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.Z("design:type",Boolean)],Zs.prototype,"force16By9ThumbnailAspectRatio",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Zs.prototype,"isShowLessHidden",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Zs.prototype,"restrictContentsOverflow",void 0);_.I([_.K({selector:_.W0e}),_.Z("design:type",Boolean)],Zs.prototype,"inlinePreviewIsEnabled",void 0);
_.I([_.K({computed:"computeSizing(data)"}),_.Z("design:type",String)],Zs.prototype,"sizing",void 0);_.I([_.K(),_.Z("design:type",Boolean)],Zs.prototype,"typographyBump",void 0);_.I([_.K(),_.Z("design:type",Number)],Zs.prototype,"itemWidth",void 0);_.I([_.K(),_.Z("design:type",Object)],Zs.prototype,"firstShownIndex",void 0);_.I([_.K(),_.Z("design:type",Object)],Zs.prototype,"horizontalOffset",void 0);_.I([_.K(),_.Z("design:type",Object)],Zs.prototype,"atEnd",void 0);
_.I([_.qR("#contents"),_.Z("design:type",HTMLElement)],Zs.prototype,"contents",void 0);_.I([_.hT("data.rowIndex"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Zs.prototype,"onRowIndexChange",null);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Zs.prototype,"onDataChange",null);
_.I([_.hT("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Zs.prototype,"handleRerenderDownloadsData",null);_.I([_.by("focusin"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],Zs.prototype,"onChildElementFocus",null);_.I([_.K({reflectToAttribute:!0}),_.r("data","isHomePage"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Zs.prototype,"isTruncated",null);
_.I([_.K({reflectToAttribute:!0}),_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Zs.prototype,"hideBottomDivider",null);_.I([_.K({reflectToAttribute:!0}),_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Zs.prototype,"hasChevronButtons",null);_.I([_.r("firstShownIndex"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Zs.prototype,"previousButtonOverride",null);
_.I([_.r("atEnd"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Zs.prototype,"nextButtonOverride",null);_.I([_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Zs.prototype,"isHomePage",null);_.I([_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Zs.prototype,"thumbnailAriaHidden",null);_.I([_.K({reflectToAttribute:!0}),_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Zs.prototype,"initiallyIsExpanded",null);
_.I([_.r("data"),_.Z("design:type",String),_.Z("design:paramtypes",[])],Zs.prototype,"entitySelectorType",null);_.I([_.Q({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],Zs);
_.Lol=_.DX()(Zs,"ytd-rich-shelf-renderer",function(){if(AL6===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);AL6=A}A=AL6;return A},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.e5("kevlar_poly_si_batch_j028")?1:2});var OtN;_.Y4(_.Y6,"yt-badge-view-model",{props:{data:_.x5,class:_.x5,workaroundShortsIsThumbnailBadge:_.x5,modern:_.x5}});_.Y4(chc,"yt-slimline-survey-view-model",{props:{data:_.x5}});var jj=function(){var A=_.G.apply(this,arguments)||this;A.tileLottieAnimationRef={};A.backgroundLottieAnimationRef={};A.isOnHoverBehaviorForLottieEnabled=!0;A.useBiggerShowcaseImage=_.h("enable_desktop_search_bigger_thumbs");A.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return A};
_.g(jj,_.G);_.P=jj.prototype;_.P.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.P.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.badge":{id:"badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",
params:{modern:!0}}}},"data.additionalBadge":{id:"additional-badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.P.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var A=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);A!==this.hasTile&&this.set("hasTile",A);A=this.hasLogo(this.data)||!!this.data.badgeText;A!==this.hasMetadata&&this.set("hasMetadata",A);A=this.data.overflowButton?!1:A;A!==this.showLogoImage&&this.set("showLogoImage",A);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.P.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.P.currentColorChanged=function(){this.updateButtonPalette()};
_.P.computeBackgroundStyle=function(A){if(A&&this.data){var L=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var O=_.TJ((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);O&&L.push('background-image: url("'+O+'");')}var X;((X=A.basicColorData)==null?void 0:X.backgroundColor)!==void 0&&L.push("background-color: "+_.Hy(A.basicColorData.backgroundColor)+";");return L.join("")}};
_.P.onDarkModeToggledAction=function(A){A!==this.isDarkTheme&&this.set("isDarkTheme",A)};
_.P.getCurrentLogo=function(A,L){if(A)return L?A.darkLogoImage:A.lightLogoImage};
_.P.getCurrentStaticTileImage=function(A,L){if(this.hasStaticTile(A))return A.darkTileImage?L?A.darkTileImage:A.tileImage:A.tileImage};
_.P.computeTitleStyle=function(A){if(this.data&&this.data.title&&A&&A.basicColorData&&A.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.Wy(A.basicColorData.foregroundTitleColor)+";"};
_.P.computeSubtitleStyle=function(A){if(this.data&&this.data.subtitle&&A&&A.basicColorData&&A.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.Wy(A.basicColorData.foregroundBodyColor)+";"};
_.P.computeSupplementalStyle=function(A){if(this.data&&this.data.supplementalText&&A&&A.supplementalTextColor!==void 0)return A=_.Wy(A.supplementalTextColor),"color:"+A+";--yt-endpoint-color:"+A+";--yt-endpoint-hover-color:"+A+";--yt-endpoint-visited-color:"+A+";--yt-formatted-string-bold-font-weight:700;"};
_.P.computeDismissIconStyle=function(A){var L,O;if((A==null?0:(L=A.dismissButtonColorData)==null?0:L.foregroundTitleColor)&&(A==null?0:(O=A.dismissButtonColorData)==null?0:O.backgroundColor))return"--yt-button-color:"+_.Hy(A.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.Hy(A.dismissButtonColorData.backgroundColor)+";"};
_.P.computeOverflowIconStyle=function(A){var L,O;if((A==null?0:(L=A.dismissButtonColorData)==null?0:L.foregroundTitleColor)&&(A==null?0:(O=A.dismissButtonColorData)==null?0:O.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.Hy(A.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.Hy(A.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.Hy(A.dismissButtonColorData.foregroundTitleColor)+";"};
_.P.computeBannerStyle=function(A){return A?A.toLowerCase().replace(/_/g,"-"):""};
_.P.computeLocation=function(A){switch(A==null?void 0:A.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.P.shouldShowTileSection=function(A,L,O){return!this.shouldExpandLogo(A,L,O)&&L};
_.P.shouldShowExpandedLogoSection=function(A,L,O){return this.shouldExpandLogo(A,L,O)&&A!==void 0&&this.hasLogo(A)};
_.P.shouldExpandLogo=function(A,L,O){return A&&L?!1:O>=2};
_.P.hasStaticTile=function(A){return!(A==null||!A.tileImage)};
_.P.hasTileLottie=function(A){var L;return!!(A==null?0:(L=A.tileLottie)==null?0:L.url)};
_.P.hasLogo=function(A){return this.getCurrentLogo(A,this.isDarkTheme)!==void 0};
_.P.getLogoHeight=function(A){return this.logoWithPadding(A)?"26":"20"};
_.P.getExpandedLogoHeight=function(A){return this.logoWithPadding(A)?"31":"24"};
_.P.getLogoImageId=function(A){return this.logoWithPadding(A)?"logo-image-with-padding":"logo-image"};
_.P.getMaxTitleFontSize=function(A){return A.overrideTitleMaxFontSize?String(A.overrideTitleMaxFontSize):"36"};
_.P.hasBackgroundLottie=function(A){var L;return!!(A==null?0:(L=A.backgroundLottie)==null?0:L.url)};
_.P.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var A,L;(A=this.tileLottieAnimationRef)==null||(L=A.lottieEl)==null||L.play();var O,X;(O=this.backgroundLottieAnimationRef)==null||(X=O.lottieEl)==null||X.play()}};
_.P.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var A,L;(A=this.tileLottieAnimationRef)==null||(L=A.lottieEl)==null||L.pause();var O,X;(O=this.backgroundLottieAnimationRef)==null||(X=O.lottieEl)==null||X.pause()}};
_.P.pauseLottie=function(){var A,L;(A=this.tileLottieAnimationRef)==null||(L=A.lottieEl)==null||L.pause();var O,X;(O=this.backgroundLottieAnimationRef)==null||(X=O.lottieEl)==null||X.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.P.performPrimaryButtonAction=function(){var A,L,O;((A=this.data)==null?0:(L=A.primaryButton)==null?0:(O=L.buttonRenderer)==null?0:O.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.P.requestElementsPerRow=function(){_.P4(this.hostElement,"yt-request-elements-per-row")};
_.P.updateButtonPalette=function(){if(this.data&&this.currentColorData){var A;((A=this.data.dismissButton)==null?0:A.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 L;if((L=this.data.primaryButton)==null?0:L.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 O;if((O=this.data.secondaryButton)==
null?0:O.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 X;((X=this.data.primaryButton)==null?0:X.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var x;((x=this.data.secondaryButton)==null?0:x.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)})}};
_.P.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var A=this.getTileLottieDataBasedOnTheme(),L,O;if(A.url!==((L=this.tileLottiePlayerProps)==null?void 0:(O=L.animationConfig)==null?void 0:O.path)){var X,x;(X=this.tileLottieAnimationRef)==null||(x=X.lottieEl)==null||x.destroy();var J;this.isOnHoverBehaviorForLottieEnabled=!((J=A.settings)==null?0:J.autoplay);var Y,T;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(T=(Y=A.settings)==null?void 0:Y.autoplay)!=null?T:!1,loop:this.getLottieLoopValue(A.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof A.url==="string"?this.tileLottiePlayerProps.animationConfig.path=A.url:this.tileLottiePlayerProps.animationConfig.animationData=A.url}}};
_.P.getOverflowButton=function(A){return _.q(A.overflowButton,U1N)};
_.P.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var A=this.getBackgroundLottieDataBasedOnTheme(),L,O;if(A.url!==((L=this.backgroundLottiePlayerProps)==null?void 0:(O=L.animationConfig)==null?void 0:O.path)){var X,x;(X=this.backgroundLottieAnimationRef)==null||(x=X.lottieEl)==null||x.destroy();var J;this.isOnHoverBehaviorForLottieEnabled=!((J=A.settings)==null?0:J.autoplay);var Y,T;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(T=(Y=A.settings)==null?void 0:Y.autoplay)!=null?T:!1,loop:this.getLottieLoopValue(A.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof A.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=A.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
A.url}}};
_.P.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var A;((A=this.tileLottieAnimationRef)==null?void 0:A.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var L;((L=this.backgroundLottieAnimationRef)==null?void 0:L.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.P.getTileLottieDataBasedOnTheme=function(){var A;if(this.isDarkTheme&&((A=this.data)==null?0:A.darkThemeTileLottie))return this.data.darkThemeTileLottie;var L;return((L=this.data)==null?0:L.tileLottie)?this.data.tileLottie:{}};
_.P.getBackgroundLottieDataBasedOnTheme=function(){var A;if(this.isDarkTheme&&((A=this.data)==null?0:A.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var L;return((L=this.data)==null?0:L.backgroundLottie)?this.data.backgroundLottie:{}};
_.P.onUpdateElementsPerRowAction=function(A){A&&this.elementsPerRow!==A&&(this.elementsPerRow=A)};
_.P.getLottieLoopValue=function(A){return A?A.loop!==void 0?A.loop:A.loopCount?A.loopCount-1:!0:!0};
_.P.logoWithPadding=function(A){var L,O,X;return(A=(L=this.getCurrentLogo(A,this.isDarkTheme))==null?void 0:(O=L.thumbnails)==null?void 0:(X=O[0])==null?void 0:X.height)&&A%31===0?!0:!1};
jj.prototype.currentColorChanged=jj.prototype.currentColorChanged;jj.prototype.themeChanged=jj.prototype.themeChanged;jj.prototype.dataChanged=jj.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],jj.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],jj.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.BL),_.Z("design:type",Object)],jj.prototype,"ytdDismissibleItemBehavior",void 0);
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],jj.prototype,"actionHandlerBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],jj.prototype,"ytComponentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],jj.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],jj.prototype,"primaryButton",void 0);_.I([_.K(),_.Z("design:type",Object)],jj.prototype,"secondaryButton",void 0);
_.I([_.K({reflectToAttribute:!0,value:3}),_.Z("design:type",Number)],jj.prototype,"elementsPerRow",void 0);_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],jj.prototype,"isDarkTheme",void 0);_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],jj.prototype,"hasTile",void 0);_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],jj.prototype,"hasMetadata",void 0);
_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],jj.prototype,"showLogoImage",void 0);_.I([_.K(),_.Z("design:type",Object)],jj.prototype,"currentColorData",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.Z("design:type",String)],jj.prototype,"bannerStyle",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.Z("design:type",String)],jj.prototype,"location",void 0);
_.I([_.K(),_.Z("design:type",Object)],jj.prototype,"tileLottiePlayerProps",void 0);_.I([_.K(),_.Z("design:type",Object)],jj.prototype,"tileLottieAnimationRef",void 0);_.I([_.K(),_.Z("design:type",Object)],jj.prototype,"backgroundLottiePlayerProps",void 0);_.I([_.K(),_.Z("design:type",Object)],jj.prototype,"backgroundLottieAnimationRef",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],jj.prototype,"useBiggerShowcaseImage",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],jj.prototype,"isHideEnclosingAction",void 0);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],jj.prototype,"dataChanged",null);_.I([_.iy("isDarkTheme"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],jj.prototype,"themeChanged",null);
_.I([_.iy("currentColorData"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],jj.prototype,"currentColorChanged",null);_.I([_.Q({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],jj);
_.m(jj,"ytd-statement-banner-renderer",function(){if(OtN!==void 0)return OtN;var A=document.createElement("template");_.p(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="maybePauseLottie" on-mouseover="maybePlayLottie" class="style-scope ytd-statement-banner-renderer">\n  <div id="statement-banner-content" class="style-scope ytd-statement-banner-renderer">\n    <div id="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n      <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n    </ytd-lottie-player></div>\n    <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n        <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n        </ytd-lottie-player></div>\n      </div>\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n        <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="[[getMaxTitleFontSize(data)]]" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-dynamic-sizing-formatted-string>\n            <div id="new-badge-container" hidden="[[data.badge]]" style$="[[computeTitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n            <div id="badge-view-model-container" class="style-scope ytd-statement-banner-renderer">\n              <div id="additional-badge-view-model" hidden="[[!data.additionalBadge]]" class="style-scope ytd-statement-banner-renderer"></div>\n              <div id="badge-view-model" hidden="[[!data.badge]]" class="style-scope ytd-statement-banner-renderer"></div>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="attached-survey" class="style-scope ytd-statement-banner-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return OtN=A},{mode:1});var XVN;var W7=function(){var A=_.G.apply(this,arguments)||this;A.isSearch=!1;A.hideShelfHeader=!1;A.engagementPanel=!1;A.disableMouseScroll=!0;A.useFloorScrolling=!0;A.modernTypography=_.h("web_modern_typography");return A};
_.g(W7,_.G);W7.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.b3("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.b3("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
W7.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
W7.prototype.onDataChanged=W7.prototype.onDataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],W7.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],W7.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],W7.prototype,"isSearch",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],W7.prototype,"hideShelfHeader",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],W7.prototype,"engagementPanel",void 0);_.I([_.K(),_.Z("design:type",Object)],W7.prototype,"disableMouseScroll",void 0);_.I([_.K(),_.Z("design:type",Object)],W7.prototype,"useFloorScrolling",void 0);_.I([_.K(),_.Z("design:type",Object)],W7.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],W7.prototype,"modernTypography",void 0);
_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],W7.prototype,"onDataChanged",null);_.I([_.Q({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],W7);
_.m(W7,"ytd-reel-shelf-renderer",function(){if(XVN!==void 0)return XVN;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return XVN=A},{mode:_.e5("kevlar_poly_si_batch_j028")?1:2});var xi7;var sq3;sq3=_.AW(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.JLg=_.JD(sq3);var PFL=_.xa(function(A){var L=A.data;A=A.useSmallFont;var O={},X={};return _.D("yt-channel-external-link-view-model",{class:"yt-channel-external-link-view-model-wiz"},_.D(_.e,{cond:function(){return L().favicon},
then:function(x){return _.D(_.XV,{data:x,className:"yt-channel-external-link-view-model-wiz__favicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.D("div",{class:"yt-channel-external-link-view-model-wiz__container"},_.D(_.Xg,{text:function(){return L().title},
className:_.qn("yt-channel-external-link-view-model-wiz__title",(O["yt-channel-external-link-view-model-wiz__title--title-small-font"]=A,O)),ellipsisTruncate:!0,userInput:!0}),_.D(_.Xg,{text:function(){return L().link},
className:_.qn("yt-channel-external-link-view-model-wiz__link",(X["yt-channel-external-link-view-model-wiz__link--link-small-font"]=A,X)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Rb");
PFL.idomCompat=!0;_.Y4(PFL,"yt-channel-external-link-view-model",{props:{data:_.x5,useSmallFont:_.x5}});_.y3("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var H7=function(){var A=_.G.apply(this,arguments)||this;A.revealButtonClass="button";A.businessEmailDisplayState="HIDE_SECTION";return A};
_.g(H7,_.G);_.P=H7.prototype;_.P.refit=function(){var A=this;_.MR(function(){_.YK(A.hostElement,"yt-refit-popups-action")});
_.kd(this,function(){_.YK(A.hostElement,"yt-refit-popups-action")})};
_.P.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.Zx(_.JLg),this.businessEmailDisplayState="CAPTCHA")};
_.P.businessEmailMetadataChanged=function(){this.revealButton||this.businessEmail||this.metadata.signInForBusinessEmail?this.metadata.signInForBusinessEmail?this.businessEmailDisplayState="SIGN_IN_REQUIRED":this.businessEmailErrorMessage?this.businessEmailDisplayState="ERROR_MESSAGE":(this.businessEmailDisplayState="REVEAL_BUTTON",this.metadata.businessEmail&&(this.businessEmail=this.metadata.businessEmail)):this.businessEmailDisplayState="HIDE_SECTION"};
_.P.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.P.configureRendererStamper=function(){return{"data.flaggingButton":{id:"flagging-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.shareChannel":{id:"share-channel",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"metadata.links":{id:"link-list-container",mapping:{channelExternalLinkViewModel:"yt-channel-external-link-view-model"}}}};
_.P.computeEmailHref=function(A){return"mailto:"+A};
_.P.computeSafeUrl=function(A){if(A)return _.RP(A)};
_.P.linkEndpoint=function(A){return _.q(A.onTap,_.WR)};
_.P.linkEndpointToHref=function(A){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(A))};
_.P.onYtServiceRequestCompleted=function(A){var L;if((L=A.detail.data)==null?0:L.businessEmail)this.businessEmail=A.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var O;if((O=A.detail.data)==null?0:O.errorMessage)this.businessEmailErrorMessage=A.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.P.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var A=this.JSC$17221_captchaTextarea.value;if(A){A={recaptcha_response_token:A,channel_id:this.metadata.channelId};var L=_.q(this.metadata.onBusinessEmailRevealClickCommand,_.WR);L&&this.ytComponentBehavior.resolveCommand(L,{form:A})}}};
_.P.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.v2.Object.defineProperties(H7.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var A;return _.q((A=this.data)==null?void 0:A.metadata,Cb6)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.q(this.metadata.businessEmailRevealButton,_.Cu)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var A=new URL(this.metadata.canonicalChannelUrl);return A.host+A.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 _.q(this.metadata.learnMoreOnTap,_.WR)}}});
H7.prototype.onYtServiceRequestCompleted=H7.prototype.onYtServiceRequestCompleted;H7.prototype.businessEmailMetadataChanged=H7.prototype.businessEmailMetadataChanged;H7.prototype.refit=H7.prototype.refit;_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],H7.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],H7.prototype,"ytRendererBehavior",void 0);
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],H7.prototype,"ytRendererstamperBehavior",void 0);_.I([_.qR("#g-recaptcha-response"),_.Z("design:type",HTMLTextAreaElement)],H7.prototype,"JSC$17221_captchaTextarea",void 0);_.I([_.K(),_.Z("design:type",Object)],H7.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],H7.prototype,"revealButtonClass",void 0);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],H7.prototype,"metadata",null);
_.I([_.r("metadata"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],H7.prototype,"revealButton",null);_.I([_.r("metadata"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],H7.prototype,"channelDisplayUrl",null);_.I([_.iy("metadata"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],H7.prototype,"refit",null);_.I([_.r("metadata"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],H7.prototype,"formattedDescription",null);
_.I([_.r("metadata","learnMoreCommand"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],H7.prototype,"shouldRendereVerifiedPhoneStatus",null);_.I([_.r("metadata"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],H7.prototype,"learnMoreCommand",null);_.I([_.K(),_.Z("design:type",String)],H7.prototype,"businessEmailDisplayState",void 0);_.I([_.K(),_.Z("design:type",String)],H7.prototype,"businessEmail",void 0);
_.I([_.K(),_.Z("design:type",String)],H7.prototype,"businessEmailErrorMessage",void 0);_.I([_.iy("metadata"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],H7.prototype,"businessEmailMetadataChanged",null);_.I([_.by("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],H7.prototype,"onYtServiceRequestCompleted",null);_.I([_.Q({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],H7);
_.m(H7,"ytd-about-channel-renderer",function(){if(xi7!==void 0)return xi7;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return xi7=A},{mode:1});var di3;var zp=function(){return _.G.apply(this,arguments)||this};
_.g(zp,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],zp.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],zp.prototype,"data",void 0);_.I([_.Q({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],zp);
_.m(zp,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(di3!==void 0)return di3;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return di3=A},{mode:1});var Ym6;var B7=function(){return _.G.apply(this,arguments)||this};
_.g(B7,_.G);B7.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],B7.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],B7.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",String)],B7.prototype,"aligment",void 0);_.I([_.Q({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],B7);
_.m(B7,"ytd-channel-list-sub-menu-renderer",function(){if(Ym6!==void 0)return Ym6;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return Ym6=
A},{mode:1});var uw7;var MW=function(){return _.G.apply(this,arguments)||this};
_.g(MW,_.G);MW.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}}}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],MW.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],MW.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],MW.prototype,"data",void 0);_.I([_.Q({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],MW);
_.m(MW,"ytd-channel-sub-menu-renderer",function(){if(uw7!==void 0)return uw7;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return uw7=A},{mode:1});var TOg;var VHH;var $U=function(){var A=_.G.apply(this,arguments)||this;A.isCompact=!1;return A};
_.g($U,_.G);_.v2.Object.defineProperties($U.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var A,L;return((L=_.q((A=this.data)==null?void 0:A.endpoint,_.Hh))==null?void 0:L.target)==="TARGET_NEW_WINDOW"}}});
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],$U.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],$U.prototype,"componentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],$U.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],$U.prototype,"isCompact",void 0);_.I([_.r("isCompact"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],$U.prototype,"thumbnailWidth",null);
_.I([_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],$U.prototype,"openNewWindow",null);_.I([_.Q({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],$U);
_.m($U,"ytd-media-lockup-renderer",function(){if(VHH!==void 0)return VHH;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return VHH=A},{mode:1});var DiH;var ac=function(){return _.G.apply(this,arguments)||this};
_.g(ac,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],ac.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],ac.prototype,"componentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],ac.prototype,"data",void 0);_.I([_.Q({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],ac);
_.m(ac,"ytd-structured-description-channel-lockup-renderer",function(){if(DiH!==void 0)return DiH;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return DiH=A},{mode:1});var e_g;var kU=function(){var A=_.G.apply(this,arguments)||this;A.isCompact=!1;A.collections=_.h("web_modern_collections_v2");A.collectionsStackColor=_.h("modernize_structured_description_playlist_lockups_v2");return A};
_.g(kU,_.G);kU.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:_.h("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.v2.Object.defineProperties(kU.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var A,L,O,X,x,J;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(A=this.data)==null?void 0:(L=A.thumbnail)==null?void 0:L.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(O=this.data)==null?void 0:(X=O.thumbnail)==null?void 0:X.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(x=this.data)==null?void 0:(J=x.thumbnail)==
null?void 0:J.vibrantColorPalette:void 0}}}});
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],kU.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],kU.prototype,"componentBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],kU.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],kU.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],kU.prototype,"showSidePanelThumbnailOverlay",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],kU.prototype,"isCompact",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],kU.prototype,"collections",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],kU.prototype,"collectionsStackColor",void 0);_.I([_.r("data"),_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],kU.prototype,"twoLineTitle",null);
_.I([_.r("data","collections","collectionsStackColor"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],kU.prototype,"collectionStack",null);_.I([_.Q({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],kU);
_.m(kU,"ytd-structured-description-playlist-lockup-renderer",function(){if(e_g!==void 0)return e_g;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return e_g=A},{mode:1});var Eh7;var Ul=function(){return _.G.apply(this,arguments)||this};
_.g(Ul,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Ul.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],Ul.prototype,"componentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Ul.prototype,"data",void 0);_.I([_.Q({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],Ul);
_.m(Ul,"ytd-structured-description-video-lockup-renderer",function(){if(Eh7!==void 0)return Eh7;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return Eh7=A},{mode:2});var v7=function(){return _.G.apply(this,arguments)||this};
_.g(v7,_.G);
v7.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}}}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],v7.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],v7.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],v7.prototype,"data",void 0);_.I([_.Q({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],v7);
_.m(v7,"ytd-compact-infocard-renderer",function(){if(TOg!==void 0)return TOg;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return TOg=A},{mode:1});var nh3;var oc=function(){var A=_.G.apply(this,arguments)||this;A.useModernCollectionsV2=_.h("web_modern_collections_v2");return A};
_.g(oc,_.G);oc.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.v2.Object.defineProperties(oc.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.h("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.h("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.h("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],oc.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],oc.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.BL),_.Z("design:type",Object)],oc.prototype,"ytdDismissibleItemBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],oc.prototype,"ytdReduxBehavior",void 0);_.I([_.K({selector:_.Hx}),_.Z("design:type",Object)],oc.prototype,"isGridViewEnabled",void 0);
_.I([_.r("isGridViewEnabled"),_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],oc.prototype,"watchFeedBigThumbs",null);_.I([_.r("isGridViewEnabled","data"),_.K({reflectToAttribute:!0,value:"168"}),_.Z("design:type",String),_.Z("design:paramtypes",[])],oc.prototype,"thumbnailWidth",null);_.I([_.r("isGridViewEnabled","data"),_.K({reflectToAttribute:!0,value:"94"}),_.Z("design:type",String),_.Z("design:paramtypes",[])],oc.prototype,"customThumbnailSize",null);
_.I([_.K(),_.Z("design:type",Object)],oc.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],oc.prototype,"useModernCollectionsV2",void 0);_.I([_.Q({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],oc);
_.m(oc,"ytd-compact-playlist-renderer",function(){if(nh3!==void 0)return nh3;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return nh3=A},{mode:1});var tHL;var AU=function(){var A=_.G.apply(this,arguments)||this;A.darkerDarkTheme=_.h("web_darker_dark_theme");A.roundedContainer=!0;A.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return A};
_.g(AU,_.G);_.P=AU.prototype;_.P.attached=function(){this.requestElementsPerRow()};
_.P.configureRendererStamper=function(){return{"data.actionButton":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.P.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.P.computeViewStyle=function(A){return A.style?A.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.P.onUpdateElementsPerRowAction=function(A){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&A===1};
_.P.requestElementsPerRow=function(){_.P4(this.hostElement,"yt-request-elements-per-row")};
AU.prototype.dataChanged=AU.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],AU.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],AU.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.BL),_.Z("design:type",Object)],AU.prototype,"ytdDismissibleItemBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],AU.prototype,"actionHandlerBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],AU.prototype,"data",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],AU.prototype,"hideThumbnail",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.Z("design:type",String)],AU.prototype,"viewStyle",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],AU.prototype,"darkerDarkTheme",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],AU.prototype,"roundedContainer",void 0);
_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],AU.prototype,"dataChanged",null);_.I([_.Q({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],AU);
_.m(AU,"ytd-compact-promoted-item-renderer",function(){if(tHL!==void 0)return tHL;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return tHL=A},{mode:1});var btl;var Lz=function(){var A=_.G.apply(this,arguments)||this;A.collections=_.h("web_modern_collections_v2");return A};
_.g(Lz,_.G);Lz.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
Lz.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
Lz.prototype.onYtNavigate=function(A,L){var O=this;if(L.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",L)){var X=this.get("watchEndpoint.videoId",L.endpoint),x=_.YK(this.hostElement,"yt-get-current-video-id-action")[0];_.h("kevlar_mix_handle_first_endpoint_different")&&X&&x&&X!==x||(A.stopPropagation(),_.Yu().getPlayerPromise().then(function(J){if(J.getPlayerState()===0&&O.data.secondaryNavigationEndpoint)var Y=O.data.secondaryNavigationEndpoint;else{Y=
Object.assign({},L.endpoint);var T=_.q(Y.commandMetadata,_.LM);T&&(J=Math.floor(J.getCurrentTime()),T.url=_.kL(T.url,{t:J}),!_.h("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(T=_.q(Y,_.$O)))&&(T.startTimeSeconds=J)}_.P4(O.hostElement,"yt-navigate",{endpoint:Y})}))}};
_.v2.Object.defineProperties(Lz.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.h("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.h("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var A,L,O,X,x,J;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(A=this.data)==null?void 0:(L=A.thumbnail)==null?void 0:L.sampledThumbnailColor,vibrantColorPalette:(O=this.data)==null?void 0:(X=O.thumbnail)==null?void 0:X.vibrantColorPalette,darkColorPalette:(x=this.data)==null?void 0:(J=x.thumbnail)==null?void 0:J.darkColorPalette,experimentEnabled:this.collections}}}});
Lz.prototype.onYtNavigate=Lz.prototype.onYtNavigate;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Lz.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Nr.YtEndpointBehavior),_.Z("design:type",Object)],Lz.prototype,"ytEndpointBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Lz.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.BL),_.Z("design:type",Object)],Lz.prototype,"ytdDismissibleItemBehavior",void 0);
_.I([_.N(_.of),_.Z("design:type",Object)],Lz.prototype,"ytdLockupBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],Lz.prototype,"ytdReduxBehavior",void 0);_.I([_.K({selector:_.Hx}),_.Z("design:type",Object)],Lz.prototype,"isGridViewEnabled",void 0);_.I([_.r("isGridViewEnabled"),_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Lz.prototype,"watchFeedBigThumbs",null);
_.I([_.r("isGridViewEnabled"),_.K({reflectToAttribute:!0}),_.Z("design:type",String),_.Z("design:paramtypes",[])],Lz.prototype,"thumbnailWidth",null);_.I([_.K(),_.Z("design:type",Object)],Lz.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Lz.prototype,"collections",void 0);_.I([_.r("data","collections"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Lz.prototype,"collectionStack",null);
_.I([_.by("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],Lz.prototype,"onYtNavigate",null);_.I([_.Q({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],Lz);
_.m(Lz,"ytd-compact-radio-renderer",function(){if(btl!==void 0)return btl;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return btl=A},{mode:1});var h_H;var OV=function(){return _.G.apply(this,arguments)||this};
_.g(OV,_.G);OV.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
OV.prototype.computeRendererStyle=function(A){return A.style?A.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.I([_.K(),_.Z("design:type",Object)],OV.prototype,"data",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],OV.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],OV.prototype,"rendererBehavior",void 0);_.I([_.K({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.Z("design:type",String)],OV.prototype,"rendererStyle",void 0);_.I([_.Q({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],OV);
_.m(OV,"ytd-compact-text-promo-renderer",function(){if(h_H!==void 0)return h_H;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return h_H=A},{mode:1});var Sm7;var XO=function(){var A=_.G.apply(this,arguments)||this;A.isShortsStyle=!1;return A};
_.g(XO,_.G);_.P=XO.prototype;_.P.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.P.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.P4(this.hostElement,"yt-disable-lockup-interaction"):_.P4(this.hostElement,"yt-enable-lockup-interaction"))};
_.P.isMetaBlockEmpty=function(A){return!A||!A.longBylineText&&!A.shortBylineText&&!A.shortViewCountText&&!A.viewCountText};
_.P.computeHasOneLineTitle=function(A){return this.forceOneLineTitle||!(A==null||!A.buttons)};
_.P.computeDisableInteraction=function(){var A;return!((A=this.data)==null?0:A.navigationEndpoint)};
_.P.hasSingularTopStandaloneBadge=function(){var A;return!((A=this.data)==null||!A.topStandaloneBadge)};
_.v2.Object.defineProperties(XO.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.h("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.h("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 A;return this.hasSingularTopStandaloneBadge()?[(A=this.data)==null?void 0:A.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var A;return this.shouldShowTopBadges?((A=this.data)==null?void 0:A.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
XO.prototype.disableInteractionChanged=XO.prototype.disableInteractionChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],XO.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],XO.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.BL),_.Z("design:type",Object)],XO.prototype,"ytdDismissibleItemBehavior",void 0);_.I([_.N(_.of),_.Z("design:type",Object)],XO.prototype,"ytdLockupBehavior",void 0);
_.I([_.N(_.HL),_.Z("design:type",Object)],XO.prototype,"ytdReduxBehavior",void 0);_.I([_.K({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.Z("design:type",Boolean)],XO.prototype,"metaBlockEmpty",void 0);_.I([_.K({selector:_.Hx}),_.Z("design:type",Object)],XO.prototype,"isGridViewEnabled",void 0);_.I([_.r("isGridViewEnabled"),_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],XO.prototype,"watchFeedBigThumbs",null);
_.I([_.r("isGridViewEnabled"),_.K({reflectToAttribute:!0}),_.Z("design:type",String),_.Z("design:paramtypes",[])],XO.prototype,"thumbnailWidth",null);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],XO.prototype,"isShortsStyle",void 0);_.I([_.K(),_.Z("design:type",Object)],XO.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.Z("design:type",Boolean)],XO.prototype,"hasOneLineTitle",void 0);
_.I([_.K(),_.Z("design:type",Boolean)],XO.prototype,"hideThumbnail",void 0);_.I([_.K(),_.Z("design:type",Boolean)],XO.prototype,"forceOneLineTitle",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.Z("design:type",Boolean)],XO.prototype,"disableInteraction",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],XO.prototype,"musicMetadataVideoLockup",void 0);
_.I([_.hT("disableInteraction"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],XO.prototype,"disableInteractionChanged",null);_.I([_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],XO.prototype,"shouldShowTopBadges",null);_.I([_.r("data"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],XO.prototype,"topBadges",null);
_.I([_.r("shouldShowTopBadges","data"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],XO.prototype,"inlineMetadataBadges",null);_.I([_.r("shouldShowTopBadges"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],XO.prototype,"shouldShowBadgesBelowMetadata",null);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],XO.prototype,"compactTitleClass",null);_.I([_.Q({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],XO);
_.m(XO,"ytd-compact-video-renderer",function(){if(Sm7!==void 0)return Sm7;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return Sm7=A},{mode:_.e5("kevlar_poly_si_batch_j067")?1:2});var qmu;_.y3("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var xl=function(){return _.G.apply(this,arguments)||this};
_.g(xl,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],xl.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],xl.prototype,"data",void 0);_.I([_.Q({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],xl);
_.m(xl,"ytd-counterfactual-renderer",function(){if(qmu!==void 0)return qmu;var A=document.createElement("template");_.p(A,"\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");A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return qmu=A},{mode:1});var ghn;var sV=function(){var A=_.G.apply(this,arguments)||this;A.hidden=!1;return A};
_.g(sV,_.G);sV.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.X5().resolve(_.x$).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
sV.prototype.computeHidden=function(A){return!!A};
_.v2.Object.defineProperties(sV.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}}});
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],sV.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],sV.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.Z("design:type",Object)],sV.prototype,"hidden",void 0);_.I([_.r("data.label"),_.Z("design:type",String),_.Z("design:paramtypes",[])],sV.prototype,"label",null);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],sV.prototype,"value",null);
_.I([_.Q({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],sV);
_.m(sV,"ytd-dropdown-item-renderer",function(){if(ghn!==void 0)return ghn;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return ghn=A},{mode:1});var wVn;var pV7;var JU=function(){return _.G.apply(this,arguments)||this};
_.g(JU,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],JU.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],JU.prototype,"data",void 0);_.I([_.K({computed:"getSimpleString(data.label)"}),_.Z("design:type",String)],JU.prototype,"label",void 0);_.I([_.Q({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],JU);
_.m(JU,"ytd-navigation-dropdown-item-renderer",function(){if(pV7!==void 0)return pV7;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return pV7=A},{mode:1});var PZ=function(){var A=_.G.apply(this,arguments)||this;A.disabled=!1;A.value="";A.noLabelFloat=!1;A.noUnderline=!1;A.usePrimaryColor=!1;A.hasBackground=!1;A.verticalAlign="top";A.autosize=!1;A.minAutosizeWidth=100;A.autosizeFont="14px Roboto";return A};
_.g(PZ,_.G);_.P=PZ.prototype;_.P.configureRendererStamper=function(){return{"data.entries":{id:"entries",mapping:{dropdownItemRenderer:"ytd-dropdown-item-renderer",privacyDropdownItemRenderer:"ytd-privacy-dropdown-item-renderer",navigationDropdownItemRenderer:"ytd-navigation-dropdown-item-renderer"}}}};
_.P.open=function(){this.inputEl.open()};
_.P.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.P.dataChanged=function(){this.reset()};
_.P.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.A3("value-changed",this.value))};
_.P.stopPropagation=function(A){A.stopPropagation()};
_.P.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var A=this.canvas.getContext("2d");A&&(A.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(A.measureText(this.inputEl.value).width)+24)+"px")}};
_.P.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var A=0,L=this.data.entries.length;A<L;A++){var O=this.data.entries[A],X;for(X in O)if(O.hasOwnProperty(X)){var x=O[X];if("isSelected"in x&&x.isSelected)return"stringValue"in x?x.stringValue||"":"int32Value"in x?x.int32Value||0:0}}return null};
_.P.updateValueFromBinding=function(A){this.value=A.detail.value};
_.v2.Object.defineProperties(PZ.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 A=0,L=this.data.entries.length;A<L;A++){var O=this.data.entries[A],X;for(X in O)if(O.hasOwnProperty(X)){var x=O[X];if("isSelected"in x&&x.isSelected&&"label"in x)return this.ytRendererBehavior.getSimpleString(x.label)}}return null}}});
PZ.prototype.autoSizeLabel=PZ.prototype.autoSizeLabel;PZ.prototype.stopPropagation=PZ.prototype.stopPropagation;PZ.prototype.valueChangedForBinding=PZ.prototype.valueChangedForBinding;PZ.prototype.dataChanged=PZ.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],PZ.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],PZ.prototype,"ytRendererStamperBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],PZ.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],PZ.prototype,"disabled",void 0);_.I([_.K(),_.Z("design:type",Object)],PZ.prototype,"value",void 0);_.I([_.K(),_.Z("design:type",Object)],PZ.prototype,"noLabelFloat",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],PZ.prototype,"noUnderline",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",String)],PZ.prototype,"theme",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],PZ.prototype,"usePrimaryColor",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],PZ.prototype,"hasBackground",void 0);_.I([_.K(),_.Z("design:type",Object)],PZ.prototype,"verticalAlign",void 0);_.I([_.K(),_.Z("design:type",Object)],PZ.prototype,"autosize",void 0);_.I([_.K(),_.Z("design:type",Object)],PZ.prototype,"minAutosizeWidth",void 0);_.I([_.K(),_.Z("design:type",Object)],PZ.prototype,"autosizeFont",void 0);
_.I([_.qR("#entries"),_.Z("design:type",Object)],PZ.prototype,"entries",void 0);_.I([_.qR("#input"),_.Z("design:type",Object)],PZ.prototype,"inputEl",void 0);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],PZ.prototype,"dataChanged",null);_.I([_.iy("value"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],PZ.prototype,"valueChangedForBinding",null);
_.I([_.by("iron-overlay-opened"),_.by("iron-overlay-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],PZ.prototype,"stopPropagation",null);_.I([_.by("iron-select"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],PZ.prototype,"autoSizeLabel",null);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],PZ.prototype,"label",null);
_.I([_.Q({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],PZ);
_.m(PZ,"ytd-dropdown-renderer",function(){if(wVn!==void 0)return wVn;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return wVn=A},{mode:1});var itH;var dc=function(){var A=_.G.apply(this,arguments)||this;A.isConstrainedList=!1;return A};
_.g(dc,_.G);dc.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"}}}};
dc.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
dc.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
dc.prototype.computeViewAllHidden=function(A,L){return A||!L.viewAllEndpoint};
dc.prototype.fillRestIfNoShowMore=dc.prototype.fillRestIfNoShowMore;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],dc.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],dc.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.TU.YtLazyListBehavior),_.Z("design:type",Object)],dc.prototype,"ytLazyListBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],dc.prototype,"data",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],dc.prototype,"isConstrainedList",void 0);_.I([_.iy("data","canShowMore"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],dc.prototype,"fillRestIfNoShowMore",null);_.I([_.Q({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],dc);
_.m(dc,"ytd-expanded-shelf-contents-renderer",function(){if(itH!==void 0)return itH;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return itH=A},{mode:_.e5("kevlar_poly_si_batch_j025")?1:2});var NOV;var Yl=function(){return _.G.apply(this,arguments)||this};
_.g(Yl,_.G);Yl.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.viewChannelButton":{id:"view-channel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Yl.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Yl.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Yl.prototype,"data",void 0);_.I([_.Q({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],Yl);
_.m(Yl,"ytd-feed-channel-filter-header-renderer",function(){if(NOV!==void 0)return NOV;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return NOV=A},{mode:1});var rLg;var Ko3;var Gdn;var u$=function(){return _.G.apply(this,arguments)||this};
_.g(u$,_.G);_.P=u$.prototype;_.P.onClick=function(A){var L,O=(L=this.data)==null?void 0:L.sectionEndpoint;!_.xu(_.oa(A),this.hostElement,["A".toString()])&&O&&_.P4(this.hostElement,"yt-navigate",{endpoint:O})};
_.P.computeHasSectionEndpoint=function(A){return(A==null?void 0:A.sectionEndpoint)!==void 0};
_.P.computeShowHeaderAsLink=function(A){return(A==null?void 0:A.header)!==void 0&&(A==null?void 0:A.sectionEndpoint)!==void 0};
_.P.computeShowSubheaderAsLink=function(A){return(A==null?void 0:A.subheader)!==void 0&&(A==null?void 0:A.sectionEndpoint)!==void 0&&(A==null?void 0:A.header)===void 0};
_.P.getHeaderAsLinkClass=function(A){var L=[],O;(A==null?0:(O=A.headerIcon)==null?0:O.iconType)&&L.push("header-link-active");return L.join(" ")};
_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],u$.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],u$.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],u$.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],u$.prototype,"data",void 0);
_.I([_.K({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],u$.prototype,"hasSectionEndpoint",void 0);_.I([_.K({computed:"computeShowHeaderAsLink(data)"}),_.Z("design:type",Boolean)],u$.prototype,"showHeaderAsLink",void 0);_.I([_.K({computed:"computeShowSubheaderAsLink(data)"}),_.Z("design:type",Boolean)],u$.prototype,"showSubheaderAsLink",void 0);_.I([_.Q({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],u$);
_.m(u$,"ytd-medical-panel-section-renderer",function(){if(Gdn!==void 0)return Gdn;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return Gdn=A},{mode:1});var Tz=function(){var A=_.G.apply(this,arguments)||this;A.isExpanded=!1;A.roundedContainer=!0;A.skipRoundingTop=!1;A.toggleExpandableSection=function(){A.isExpanded=!A.isExpanded};
return A};
_.g(Tz,_.G);
Tz.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]]"}}}}}};
Tz.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
Tz.prototype.dataChanged=Tz.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Tz.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Tz.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Tz.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],Tz.prototype,"isExpanded",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Tz.prototype,"roundedContainer",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Tz.prototype,"skipRoundingTop",void 0);_.I([_.K(),_.Z("design:type",Object)],Tz.prototype,"toggleExpandableSection",void 0);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Tz.prototype,"dataChanged",null);_.I([_.Q({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],Tz);
_.m(Tz,"ytd-medical-panel-content-renderer",function(){if(Ko3!==void 0)return Ko3;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return Ko3=A},{mode:1});_.y3("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var Vj=function(){var A=_.G.apply(this,arguments)||this;A.roundedContainer=!0;A.amsterdamEnabled=_.h("enable_desktop_amsterdam_info_panels");A.hasTitle=!1;A.linkIcon="OPEN_IN_NEW";A.isDismissed=!1;return A};
_.g(Vj,_.G);
Vj.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"}}}};
Vj.prototype.computeHasTitle=function(A){return!(A==null||!A.title)};
Vj.prototype.onClick=function(A){var L,O=(L=this.data)==null?void 0:L.headerEndpoint;!_.xu(_.oa(A),this.hostElement,["BUTTON".toString()])&&O&&this.ytComponentBehavior.resolveCommand(O)};
_.v2.Object.defineProperties(Vj.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 A;return((A=this.data)==null?void 0:A.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var A,L;return((A=this.data)==null?void 0:A.disableBottomDivider)||!((L=this.data)==null?0:L.title)}}});
_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],Vj.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Vj.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Vj.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],Vj.prototype,"ytdReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Vj.prototype,"data",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Vj.prototype,"roundedContainer",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Vj.prototype,"amsterdamEnabled",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.Z("design:type",Object)],Vj.prototype,"hasTitle",void 0);
_.I([_.K({type:_.h("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.r("data.background"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Vj.prototype,"background",null);_.I([_.K({type:_.h("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.r("data.titleStyle"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Vj.prototype,"titleStyle",null);
_.I([_.K({type:_.h("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.r("data.titleStyle"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Vj.prototype,"showLinkIcon",null);_.I([_.K(),_.Z("design:type",String)],Vj.prototype,"linkIcon",void 0);_.I([_.K({type:_.h("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Vj.prototype,"hideDivider",null);
_.I([_.K({selectorArgs:["data.dismissStateEntityKey"],selector:function(A,L){A=_.eM(A.entities,"dismissState",L);return(A==null?void 0:A.isDismissed)||(A==null?void 0:A.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(A==null?void 0:A.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.Z("design:type",Object)],Vj.prototype,"isDismissed",void 0);_.I([_.Q({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],Vj);
_.m(Vj,"ytd-info-panel-container-renderer",function(){if(rLg!==void 0)return rLg;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return rLg=A},{mode:1});var lfV;_.y3("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var DG=function(){var A=_.G.apply(this,arguments)||this;A.modernTypography=_.h("web_modern_typography");return A};
_.g(DG,_.G);DG.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
DG.prototype.computeStyle=function(A){return A?A:""};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],DG.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],DG.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],DG.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.Z("design:type",String)],DG.prototype,"titleStyle",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],DG.prototype,"modernTypography",void 0);_.I([_.Q({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],DG);
_.m(DG,"ytd-item-section-header-renderer",function(){if(lfV!==void 0)return lfV;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return lfV=A},{mode:1});var cLN;var CFn,FoH=function(){return CFn!==void 0?CFn:CFn=document.createElement("template")};
document.head.appendChild(FoH().content);var R_7;_.ek=new _.Yx("VOTING_ANIMATION_CONTROLLER_TOKEN");var miN=_.xa(function(A){var L=A.data;var O=_.av("div"),X=_.av("div");A=_.d(_.uQ("VOTE_STATUS_NONE",void 0,"FVF7mc"));var x=A.next().value,J=A.next().value,Y=_.iS(k8y,function(){var b;return(b=L())==null?void 0:b.entityKey}),T=_.h("web_enable_voting_animation")||_.h("enable_music_web_cairo_voting_animation");
_.GD(function(){var b;((b=L().initialState)==null?0:b.status)&&J(L().initialState.status)});
var V=function(){var b,S,w=(S=(b=L().initialState)==null?void 0:b.votes)!=null?S:0,l;b=(l=L().initialState)==null?void 0:l.status;return b==="VOTE_STATUS_UPVOTED"?w-1:b==="VOTE_STATUS_DOWNVOTED"?w+1:w},E=function(){return x()==="VOTE_STATUS_UPVOTED"?V()+1:x()==="VOTE_STATUS_DOWNVOTED"?V()-1:V()},n=function(b){var S=b?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
J(S);var w=E(),l=_.X5().resolve(_.Ot(_.ek)),F=Y();F&&(b&&(F==null?0:F.upvoteDefaultButtonOnTap)?_.$a(F.upvoteDefaultButtonOnTap,{form:{element:O.value},disableClickTracking:!0}):(F==null?0:F.upvoteToggledButtonOnTap)&&_.$a(F.upvoteToggledButtonOnTap,{form:{element:O.value},disableClickTracking:!0}));var R;b=(R=F==null?void 0:F.enableOptimisticReordering)!=null?R:L().enableOptimisticReordering;T&&l&&L().itemId&&b&&Qq7(l,L().itemId,w,S)},t=function(b){var S=b?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
J(S);var w=E(),l=_.X5().resolve(_.Ot(_.ek)),F=Y();F&&(b&&(F==null?0:F.downvoteDefaultButtonOnTap)?_.$a(F.downvoteDefaultButtonOnTap,{form:{element:X.value},disableClickTracking:!0}):(F==null?0:F.downvoteToggledButtonOnTap)&&_.$a(F.downvoteToggledButtonOnTap,{form:{element:X.value},disableClickTracking:!0}));var R;b=(R=F==null?void 0:F.enableOptimisticReordering)!=null?R:L().enableOptimisticReordering;T&&l&&L().itemId&&b&&Qq7(l,L().itemId,w,S)};
A={};A=_.qn("ytVotingViewModelVoteCount",(A.ytVotingViewModelVoteCountDisabled=function(){return L().isDisabled},A));
return _.D("voting-view-model",{class:"ytVotingViewModelHost"},_.D("div",{el:O},_.D(_.ID,{data:function(){var b=_.q(L().upvoteButton,_.Fi);return{toggleButtonViewModel:Object.assign({},b,{isToggled:x()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(b){return _.D(_.fO,{data:b.data,
onToggle:n})}})),_.D("div",{class:A},function(){var b,S,w;
return x()==="VOTE_STATUS_UPVOTED"?(b=L().initialState)==null?void 0:b.compactVotesUpvoted:x()==="VOTE_STATUS_DOWNVOTED"?(S=L().initialState)==null?void 0:S.compactVotesDownvoted:(w=L().initialState)==null?void 0:w.compactVotes}),_.D("div",{el:X},_.D(_.ID,{data:function(){var b=_.q(L().downvoteButton,_.Fi);
return{toggleButtonViewModel:Object.assign({},b,{isToggled:x()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(b){return _.D(_.fO,{data:b.data,
onToggle:t})}})))},"Sb");_.Y4(_.xa(function(A){var L=A.data;return _.D("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.D("div",{class:_.qn("ytEngagementBarViewModelEngagementBarWrapper",A.className)},_.D(_.ID,{data:function(){return L().actions}},{votingViewModel:miN})))},"Tb"),"engagement-bar-view-model",{props:{data:_.x5,
className:_.x5}});var EV=function(){var A=_.G.apply(this,arguments)||this;A.playlistVotingAnimationEnabled=_.h("web_enable_voting_animation");A.downloadProgress=0;A.transferState="TRANSFER_STATE_UNKNOWN";A.downloadState="DOWNLOAD_STATE_UNKNOWN";A.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";A.offlineVideoPolicyExpirationTimestamp=0;return A};
_.g(EV,_.G);_.P=EV.prototype;_.P.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.engagementBar":{id:"engagement-bar",mapping:{engagementBarViewModel:"engagement-bar-view-model"}}}};
_.P.canReorderChanged=function(){this.persistentDragHandle=_.h("kevlar_playlist_drag_handles")&&this.canReorder};
_.P.onDrag=function(){if(this.thumbnail){var A=_.YJ(this.thumbnail).querySelector("yt-image");A&&(A.shouldRenderLazy=!1)}};
_.P.onMenuOverlayChanged=function(A,L){this.menuOpened=L};
_.P.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.P.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.P.onContentsTap=function(A){var L,O=(L=this.data)==null?void 0:L.serviceEndpoints;if(O&&O.length===1&&_.q(O[0],xj_)&&!_.xu(_.oa(A),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(O[0]);else{var X;(L=(X=this.data)==null?void 0:X.navigationEndpoint)&&_.h("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?ff3(_.X5().resolve(_.z_),L):(_.rm().playlistSuggestionsShelfActivation=
!0,_.If3(_.X5().resolve(_.z_),L)):L&&!_.xu(_.oa(A),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.h("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.P4(this.hostElement,"yt-navigate",{endpoint:L}):this.ytComponentBehavior.resolveCommand(L))}};
_.P.computeStyle=function(A){return A?A.toLowerCase().replace(/_/g,"-"):""};
_.P.computeThumbnailWidth=function(A){return A==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.P.downloadStateChanged=function(){this.isDownloads=!1;if(this.entityInfo||this.downloadRenderData){if(!this.entityInfo&&this.downloadRenderData)this.downloadRenderData={shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};else{if(!this.entityInfo)return;this.downloadRenderData=fYp(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference,!0);this.isDownloads=Object.keys(this.downloadRenderData).length>0}this.set("data",
Object.assign({},this.data,this.downloadRenderData))}};
_.P.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.P.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.P.dataChanged=function(){if(this.data){var A,L,O,X=((A=this.downloadRenderData)==null?void 0:A.badges)&&((L=this.downloadRenderData)==null?void 0:L.badges)!==((O=this.data)==null?void 0:O.badges),x,J,Y;A=((x=this.downloadRenderData)==null?void 0:x.thumbnailOverlays)&&((J=this.downloadRenderData)==null?void 0:J.thumbnailOverlays)!==((Y=this.data)==null?void 0:Y.thumbnailOverlays);(!this.downloadRenderData||X||A)&&this.downloadStateChanged()}};
_.P.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var A,L,O=(A=this.data.menu)==null?void 0:(L=A.menuRenderer)==null?void 0:L.items;if(O)for(A=_.d(O),L=A.next();!L.done;L=A.next())if(L=L.value,O=void 0,_.q((O=L.menuServiceItemRenderer)==null?void 0:O.serviceEndpoint,_.zF)){var X=O=void 0,x=void 0;L=(O=L)==null?void 0:(X=O.menuServiceItemRenderer)==null?void 0:(x=X.serviceEndpoint)==null?void 0:x.playlistEditEndpoint;x=X=void 0;if(O=(X=L)==null?void 0:(x=X.actions)==null?void 0:
x[0])X=void 0,O.setVideoId=(X=this.data)==null?void 0:X.setVideoId;x=X=O=void 0;if(L=(O=L)==null?void 0:(X=O.clientActions)==null?void 0:(x=X[0])==null?void 0:x.playlistRemoveVideosAction)O=void 0,L.setVideoIds=[(O=this.data)==null?void 0:O.setVideoId]}}};
_.v2.Object.defineProperties(EV.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
EV.prototype.setVideoIdChanged=EV.prototype.setVideoIdChanged;EV.prototype.dataChanged=EV.prototype.dataChanged;EV.prototype.downloadStateChanged=EV.prototype.downloadStateChanged;EV.prototype.onMenuOverlayChanged=EV.prototype.onMenuOverlayChanged;EV.prototype.canReorderChanged=EV.prototype.canReorderChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],EV.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],EV.prototype,"ytdReduxBehavior",void 0);
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],EV.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.of),_.Z("design:type",Object)],EV.prototype,"ytdLockupBehavior",void 0);_.I([_.N(_.BL),_.Z("design:type",Object)],EV.prototype,"ytdDismissibleItemBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],EV.prototype,"ytComponentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],EV.prototype,"data",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],EV.prototype,"canReorder",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],EV.prototype,"menuOpened",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],EV.prototype,"handleIsHovered",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],EV.prototype,"persistentDragHandle",void 0);_.I([_.K(),_.Z("design:type",Object)],EV.prototype,"downloadRenderData",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Z("design:type",String)],EV.prototype,"styleType",void 0);_.I([_.K({computed:"computeThumbnailWidth(data.style)"}),_.Z("design:type",Number)],EV.prototype,"thumbnailWidth",void 0);_.I([_.K({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],EV.prototype,"isDownloads",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],EV.prototype,"playlistVotingAnimationEnabled",void 0);
_.I([_.K({selector:jM,selectorArgs:["data.videoId"]}),_.Z("design:type",Object)],EV.prototype,"downloadProgress",void 0);_.I([_.K(),_.Z("design:type",Number)],EV.prototype,"relativeDateReference",void 0);_.I([_.K({selector:_.yi,selectorArgs:["data.videoId"]}),_.Z("design:type",Object)],EV.prototype,"transferState",void 0);_.I([_.K({selector:P6M,selectorArgs:["data.videoId"]}),_.Z("design:type",Object)],EV.prototype,"downloadState",void 0);
_.I([_.K({selector:Bm_,selectorArgs:["data.videoId"]}),_.Z("design:type",Object)],EV.prototype,"offlinePolicyAction",void 0);_.I([_.K({selector:M9O,selectorArgs:["data.videoId"]}),_.Z("design:type",Object)],EV.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.I([_.K({selector:aTe,selectorArgs:["data.videoId"]}),_.Z("design:type",Object)],EV.prototype,"entityInfo",void 0);_.I([_.K({selector:_.Qi}),_.Z("design:type",Boolean)],EV.prototype,"miniplayerIsActive",void 0);
_.I([_.r("data"),_.Z("design:type",String),_.Z("design:paramtypes",[])],EV.prototype,"playlistVideoId",null);_.I([_.qR("#thumbnail"),_.Z("design:type",Object)],EV.prototype,"thumbnail",void 0);_.I([_.iy("canReorder"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],EV.prototype,"canReorderChanged",null);
_.I([_.by("yt-menu-overlay-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Boolean]),_.Z("design:returntype")],EV.prototype,"onMenuOverlayChanged",null);_.I([_.iy("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],EV.prototype,"downloadStateChanged",null);
_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],EV.prototype,"dataChanged",null);_.I([_.iy("data.setVideoId"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],EV.prototype,"setVideoIdChanged",null);_.I([_.Q({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],EV);
_.m(EV,"ytd-playlist-video-renderer",function(){if(R_7!==void 0)return R_7;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);A.content.insertBefore(FoH().content.cloneNode(!0),A.content.firstChild);return R_7=A},{mode:1});var yLN;var nz=function(){return _.G.apply(this,arguments)||this};
_.g(nz,_.G);_.I([_.K(),_.Z("design:type",Object)],nz.prototype,"data",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],nz.prototype,"rendererBehavior",void 0);_.I([_.Q({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],nz);
_.m(nz,"ytd-premium-browse-footer-renderer",function(){if(yLN!==void 0)return yLN;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return yLN=A},{mode:1});var Ztn;var tU=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return A};
_.g(tU,_.G);_.P=tU.prototype;_.P.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.P.handleDarkModeToggledAction=function(A){this.isDarkTheme=A};
_.P.computeHeaderLogoThumbnail=function(A,L){if(A)return L?A.darkLogo:A.lightLogo};
_.P.computeHeaderLogoHeight=function(A,L){var O,X,x;return(A=(O=this.computeHeaderLogoThumbnail(A,L))==null?void 0:(X=O.thumbnails)==null?void 0:(x=X[0])==null?void 0:x.height)&&A%31===0?"31":"24"};
_.P.computeHeaderLogoMarginBottom=function(A,L){return this.computeHeaderLogoHeight(A,L)==="24"?"0":"-7"};
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],tU.prototype,"actionHandlerBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],tU.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],tU.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Boolean)],tU.prototype,"isDarkTheme",void 0);_.I([_.K({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.Z("design:type",Object)],tU.prototype,"themeLogo",void 0);
_.I([_.K({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.Z("design:type",String)],tU.prototype,"logoHeight",void 0);_.I([_.K({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.Z("design:type",String)],tU.prototype,"logoMarginBottom",void 0);_.I([_.Q({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],tU);
_.m(tU,"ytd-primetime-promo-header-renderer",function(){if(Ztn!==void 0)return Ztn;var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Ztn=A},{mode:1});var jqn;var Ht3=_.xa(function(A){var L=_.py(function(x){var J;(J=A.onClick)==null||J.call(A,x)}),O={},X={};
return _.D("yt-shelf-header-layout",{class:_.qn("shelf-header-layout-wiz",(O["shelf-header-layout-wiz--disable-horizontal-padding"]=A.disableHorizontalPadding,O["shelf-header-layout-wiz--disable-vertical-padding"]=A.disableVerticalPadding,O["shelf-header-layout-wiz--responsive"]=A.useResponsiveLayout,O["shelf-header-layout-wiz--narrow"]=function(){var x,J;return((x=A.useResponsiveLayout)==null?void 0:x.call(A))&&((J=A.forceSmallLayout)==null?void 0:J.call(A))},O["shelf-header-layout-wiz--is-overlay"]=
A.isOverlay,O["shelf-header-layout-wiz--tappable"]=!!A.onClick,O)),
"on:click":L,tabindex:function(){var x;return((x=A.isInteractive)==null?0:x.call(A))?0:void 0}},_.D(_.e,{cond:A.leadingIcon,
then:function(x){return _.D("div",{class:"shelf-header-layout-wiz__leading-icon"},_.D(_.Ky,{icon:x}))},
else:function(){return _.D(_.e,{cond:A.hasLeadingImage,then:function(){var x,J={};return _.D("div",{class:_.qn("shelf-header-layout-wiz__leading-image",(J["shelf-header-layout-wiz__leading-image--circular-image"]=A.circularImage,J))},(x=A.leadingImage)==null?void 0:x.call(A))}})}}),_.D("div",{class:"shelf-header-layout-wiz__label-container"},_.D(_.e,{cond:A.hasSuperlabel,
then:function(){var x;return _.D("div",{class:"shelf-header-layout-wiz__superlabel"},(x=A.superlabel)==null?void 0:x.call(A))}}),_.D("div",{class:"shelf-header-layout-wiz__title-row"},_.D(WoL,{text:A.title,
className:_.qn("shelf-header-layout-wiz__title",(X["shelf-header-layout-wiz__title--small-title"]=A.forceSmallLayout,X)),tagLevel:A.tagLevel}),_.D(_.e,{cond:A.hasDetail,then:function(){var x;return _.D("div",{class:"shelf-header-layout-wiz__detail"},(x=A.detail)==null?void 0:x.call(A))}})),_.D(_.e,{cond:A.hasSublabel,
then:function(){var x;return _.D("div",{class:"shelf-header-layout-wiz__sublabel"},(x=A.sublabel)==null?void 0:x.call(A))}})),_.D(_.e,{cond:A.hasTrailingActions,
then:function(){var x;return _.D("div",{class:"shelf-header-layout-wiz__trailing-actions"},(x=A.trailingActions)==null?void 0:x.call(A))}}))},"Ub");
Ht3.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0}};
var WoL=_.xa(function(A){var L=A.text;var O=A.className;var X=A.tagLevel;return _.D(_.ik,null,_.D(_.w9,{when:function(){return(X==null?void 0:X())===0}},function(){return _.D("h2",{class:O},L())}),_.D(_.w9,{when:function(){return(X==null?void 0:X())===1}},function(){return _.D("h3",{class:O},L())}),_.D(_.w9,{when:function(){return(X==null?void 0:X())===2}},function(){return _.D("h4",{class:O},L())}),_.D(_.pB,null,function(){return _.D("h2",{class:O},L())}))},"Vb");var MHn,z_6,BOJ;_.b$=_.xa(function(A){var L=A.className;var O=A.data;var X=A.disableHorizontalPadding;var x=A.disableVerticalPadding;var J=A.forceSmallLayout;var Y=A.useResponsiveLayout;A=A.isOverlay;return _.D("yt-section-header-view-model",{class:_.qn("ytSectionHeaderViewModelHost",L),style:_.rl({"background-color":function(){return Uge(O().backgroundColor)?_.Hy(Uge(O().backgroundColor)):void 0}})},_.D(Ht3,{hasDetail:!1,
title:function(){return _.D(_.Xg,{text:function(){return O().headline}})},
hasTitle:!0,sublabel:function(){return _.D(z_6,{data:O})},
hasSublabel:function(){return!!O().sublabel||!!O().bottomBadge},
superlabel:function(){return _.D(BOJ,{data:O})},
hasSuperlabel:function(){return!!O().superlabel||!!O().topBadge},
leadingImage:function(){return _.D(MHn,{leadingAccessory:function(){return O().leadingAccessory}})},
hasLeadingImage:function(){return!!O().leadingAccessory},
trailingActions:function(){return _.D(_.ID,{data:function(){return O().trailingActions}},{flexibleActionsViewModel:_.yy})},
hasTrailingActions:function(){return!!O().trailingActions},
disableHorizontalPadding:X,disableVerticalPadding:x,forceSmallLayout:J,useResponsiveLayout:Y,isOverlay:A,isInteractive:function(){return!!_.Hm(O().rendererContext)},
onClick:function(T){if(_.zP(O().rendererContext)){var V=_.Hm(O().rendererContext);V&&_.zi(V,{form:{element:T.target,event:T}})}}}))},"Wb");
MHn=_.xa(function(A){var L=A.leadingAccessory;return _.D(_.Xs,null,_.D(_.e,{cond:function(){var O;return(O=L().image)!=null?O:_.AC(L().themedImage)},
then:function(O){return _.D(_.XV,{data:O,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.D(_.e,{cond:function(){return _.q(L().avatar,_.MV)},
then:function(O){return _.D(_.fP,{data:O})}}))},"Xb");
z_6=_.xa(function(A){var L=A.data;return _.D(_.Xs,null,_.D(_.e,{cond:function(){return _.q(L().bottomBadge,LnN)},
then:function(O){var X={};return _.D(_.Y6,{data:O,class:_.qn((X.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!O()&&!!L().sublabel},X))})}}),_.D(_.e,{cond:function(){return L().sublabel},
then:function(O){return _.D(_.Xg,{text:O})}}))},"Yb");
BOJ=_.xa(function(A){var L=A.data;return _.D(_.Xs,null,_.D(_.e,{cond:function(){return _.q(L().topBadge,LnN)},
then:function(O){var X={};return _.D(_.Y6,{data:O,class:_.qn((X.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!O()&&!!L().superlabel},X))})}}),_.D(_.e,{cond:function(){return L().superlabel},
then:function(O){return _.D(_.Xg,{text:O})}}))},"Zb");_.Y4(_.b$,"yt-section-header-view-model",{props:{data:_.x5,className:_.x5,disableHorizontalPadding:_.x5,disableVerticalPadding:_.x5,forceSmallLayout:_.x5,useResponsiveLayout:_.x5,isOverlay:_.x5}});_.y3("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var hU=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return A};
_.g(hU,_.G);_.P=hU.prototype;_.P.attached=function(){this.requestElementsPerRow()};
_.P.configureRendererStamper=function(){return{"data.panels":{id:"panels",mapping:{richItemRenderer:"ytd-rich-item-renderer"}},"data.header":{id:"header-contents",mapping:{primetimePromoHeaderRenderer:"ytd-primetime-promo-header-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},
"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.sectionHeader":{id:"section-header-container",mapping:{sectionHeaderViewModel:{component:"yt-section-header-view-model",params:{disableHorizontalPadding:!0}}}},"data.details":{id:"details-panel",mapping:{primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer"}}}};
_.P.onDataChange=function(){var A=this;_.kd(this,function(){A.updateItemVisibility()})};
_.P.onUpdateElementsPerRowAction=function(A){A&&this.elementsPerRow!==A&&(this.elementsPerRow=A,this.updateItemVisibility())};
_.P.updateItemVisibility=function(){var A=this;this.data&&this.data.panels&&_.YJ(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(L,O){L.hidden=O>A.elementsPerRow-1})};
_.P.requestElementsPerRow=function(){_.P4(this.hostElement,"yt-request-elements-per-row")};
hU.prototype.onDataChange=hU.prototype.onDataChange;_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],hU.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.BL),_.Z("design:type",Object)],hU.prototype,"ytdDismissibleItemBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],hU.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],hU.prototype,"actionHandlerBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],hU.prototype,"data",void 0);_.I([_.K({value:3}),_.Z("design:type",Number)],hU.prototype,"elementsPerRow",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],hU.prototype,"onDataChange",null);_.I([_.Q({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],hU);
_.m(hU,"ytd-primetime-promo-renderer",function(){if(jqn!==void 0)return jqn;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return jqn=A},{mode:1});var $iH;var Sk=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return A};
_.g(Sk,_.G);Sk.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
Sk.prototype.handleButtonRefreshAction=function(A){if(A=_.q(A,AQc))this.set("data.button",A.membershipButton),this.notifyPath("data.button")};
_.v2.Object.defineProperties(Sk.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var A,L;return((A=this.data)==null?void 0:(L=A.avatars)==null?void 0:L.slice(0,8))||[]}}});
_.I([_.K(),_.Z("design:type",Object)],Sk.prototype,"data",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],Sk.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Sk.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Sk.prototype,"rendererBehavior",void 0);_.I([_.r("data"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],Sk.prototype,"avatars",null);
_.I([_.Q({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],Sk);
_.m(Sk,"ytd-recognition-shelf-renderer",function(){if($iH!==void 0)return $iH;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return $iH=A},{mode:1});var af6;var kd3;var qM=function(){var A=_.G.apply(this,arguments)||this;A.modernButtons=_.h("web_modern_buttons");return A};
_.g(qM,_.G);_.P=qM.prototype;
_.P.configureRendererStamper=function(){return{visibleItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-vertical-list-renderer lockup",containerType:3,force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",typographyBump:"[[typographyBump]]",lockupExperiments:"[[lockupExperiments]]"}},channelRenderer:"ytd-channel-renderer",playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},radioRenderer:"ytd-radio-renderer",
showRenderer:"ytd-show-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
_.P.dataChanged=function(){this.collapsed=!0};
_.P.computeVisibleItems=function(A,L){return A!==void 0&&A.items?L?A.items.slice(0,this.data.collapsedItemCount):A.items:[]};
_.P.computeHideShowMore=function(A,L,O){return A>=L||!O};
_.P.computeHideShowAll=function(A,L,O){return!(A&&L)||O};
_.P.onMoreClick=function(){this.collapsed=!1};
_.v2.Object.defineProperties(qM.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.h("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.dN("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.h("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
qM.prototype.dataChanged=qM.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],qM.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],qM.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],qM.prototype,"data",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],qM.prototype,"isSearch",void 0);
_.I([_.K({computed:"computeVisibleItems(data,collapsed)"}),_.Z("design:type",Array)],qM.prototype,"visibleItems",void 0);_.I([_.K({value:!0}),_.Z("design:type",Boolean)],qM.prototype,"collapsed",void 0);_.I([_.K({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.Z("design:type",Boolean)],qM.prototype,"hideShowMore",void 0);
_.I([_.K({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.Z("design:type",Boolean)],qM.prototype,"hideShowAll",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],qM.prototype,"modernButtons",void 0);_.I([_.r("isSearch"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],qM.prototype,"typographyBump",null);
_.I([_.r("isSearch"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],qM.prototype,"lockupExperiments",null);_.I([_.r("isSearch"),_.Z("design:type",String),_.Z("design:paramtypes",[])],qM.prototype,"thumbnailWidth",null);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qM.prototype,"dataChanged",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],qM);
_.m(qM,"ytd-vertical-list-renderer",function(){if(kd3!==void 0)return kd3;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return kd3=A},{mode:1});var Uig=_.AW(["#"]);_.y3("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var wc=function(){var A=_.G.apply(this,arguments)||this;A.isConstrainedList=!1;A.modernTypography=_.h("web_modern_typography");return A};
_.g(wc,_.G);_.P=wc.prototype;
_.P.configureRendererStamper=function(){return{"data.content":{id:"contents",mapping:{gridRenderer:"ytd-grid-renderer",horizontalListRenderer:{component:"yt-horizontal-list-renderer",params:{thumbnailHeight:118},properties:{isSearch:"[[isSearch]]"}},horizontalMovieListRenderer:{component:"yt-horizontal-list-renderer",params:{thumbnailHeight:302}},expandedShelfContentsRenderer:{component:"ytd-expanded-shelf-contents-renderer",properties:{isConstrainedList:"[[isConstrainedList]]"}},messageRenderer:{component:"ytd-message-renderer",
params:{shelf:!0}},verticalListRenderer:{component:"ytd-vertical-list-renderer",properties:{isSearch:"[[isSearch]]"}}}},"data.playAllButton":{id:"play-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",attributes:{condensed:!0},properties:{icon:"[[menuIcon]]"}}}},"data.sortFilter":{id:"sort-filter",
mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.P.computeThumbnailStyle=function(A){return A||""};
_.P.computePlaceAnnotationUnderTitle=function(){var A;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((A=this.data)==null?void 0:A.thumbnailStyle)||"")};
_.P.computeHrefWithDefault=function(A){return this.ytComponentBehavior.computeHref_(A)||_.oWe(Uig)};
_.P.computeIsPromoShelf=function(A){var L;return(A=A==null?void 0:(L=A[0])==null?void 0:L.metadataBadgeRenderer)?A.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.P.computePlaceBadgeBesideTitle=function(A){var L;return(A==null?0:(L=A[0])==null?0:L.metadataBadgeRenderer)?!this.computeIsPromoShelf(A):!1};
_.P.computeMenuIcon=function(A){return this.computeIsPromoShelf(A)?"yt-icons:more_vert":"yt-icons:more"};
_.P.onDataChange=function(){var A,L;((A=this.data)==null?0:(L=A.content)==null?0:L.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.P.onLockupRequested=function(A){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&A.detail&&A.detail.videoIds){for(var L=this.data.content.gridRenderer.items,O=new Set,X=_.d(A.detail.videoIds),x=X.next();!x.done;x=X.next())O.add(x.value);A.detail.returnValue=L.filter(function(J){return J.gridVideoRenderer&&J.gridVideoRenderer.videoId&&O.has(J.gridVideoRenderer.videoId)}).map(function(J){return J.gridVideoRenderer})}};
_.P.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
wc.prototype.onLockupRequested=wc.prototype.onLockupRequested;wc.prototype.onDataChange=wc.prototype.onDataChange;_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],wc.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.BL),_.Z("design:type",Object)],wc.prototype,"ytdDismissibleItemBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],wc.prototype,"ytRendererBehavior",void 0);
_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],wc.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.y9),_.Z("design:type",Object)],wc.prototype,"ironResizableBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],wc.prototype,"data",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],wc.prototype,"isSearch",void 0);_.I([_.K(),_.Z("design:type",Object)],wc.prototype,"isConstrainedList",void 0);_.I([_.K({reflectToAttribute:!0,value:function(){return _.h("kevlar_fluid_dismiss")}}),
_.Z("design:type",Boolean)],wc.prototype,"enableFluidDismiss",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.Z("design:type",String)],wc.prototype,"thumbnailStyle",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],wc.prototype,"modernTypography",void 0);_.I([_.K({computed:"computeMenuIcon(data.badges)"}),_.Z("design:type",String)],wc.prototype,"menuIcon",void 0);
_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],wc.prototype,"onDataChange",null);_.I([_.by("yt-lockup-requested"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],wc.prototype,"onLockupRequested",null);_.I([_.Q({is:"ytd-shelf-renderer",disableElementRegistration:!0})],wc);
_.m(wc,"ytd-shelf-renderer",function(){if(af6!==void 0)return af6;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return af6=A},{mode:1});var vhj;var pz=function(){return _.G.apply(this,arguments)||this};
_.g(pz,_.G);pz.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.v2.Object.defineProperties(pz.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],pz.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],pz.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],pz.prototype,"data",void 0);_.I([_.K({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],pz.prototype,"isPlaylist",void 0);_.I([_.K({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],pz.prototype,"isClipList",void 0);
_.I([_.K({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],pz.prototype,"isPlaylistPageWithFilters",void 0);_.I([_.K({value:!1,reflectToAttribute:!0}),_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],pz.prototype,"hasTitle",null);_.I([_.K(),_.r("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],pz.prototype,"isRightAligned",null);
_.I([_.Q({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],pz);
_.m(pz,"ytd-sort-filter-header-renderer",function(){if(vhj!==void 0)return vhj;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return vhj=A},{mode:1});var ohj;var i$=function(){var A=_.G.apply(this,arguments)||this;A.enableRightArrowHidden=_.h("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;return A};
_.g(i$,_.G);i$.prototype.attached=function(){var A=this;this.enableRightArrowHidden&&(this.JSC$17350_throttledOnResize=new _.Of(function(){var L;(L=A.ytdHorizontalListBehavior)==null||L.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var L;
(L=A.JSC$17350_throttledOnResize)==null||L.fire()}),this.resizeObserver.observe(this.hostElement))};
i$.prototype.detached=function(){if(this.enableRightArrowHidden){var A;(A=this.resizeObserver)==null||A.disconnect();var L;(L=this.JSC$17350_throttledOnResize)==null||L.dispose()}};
i$.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]]"}}}}}};
i$.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.v2.Object.defineProperties(i$.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.h("enable_creator_details_shelf_m2")){var A=[],L;((L=this.data)==null?0:L.creatorVideosButton)&&A.push(this.data.creatorVideosButton);var O;((O=this.data)==null?0:O.creatorAboutButton)&&A.push(this.data.creatorAboutButton);L=_.d(this.data.creatorCustomUrlButtons||[]);for(O=L.next();!O.done;O=L.next())A.push(O.value);return A}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.h("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],i$.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],i$.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.Vy.YtdHorizontalListBehavior),_.Z("design:type",Object)],i$.prototype,"ytdHorizontalListBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],i$.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],i$.prototype,"engagementPanel",void 0);
_.I([_.K(),_.Z("design:type",Object)],i$.prototype,"enableRightArrowHidden",void 0);_.I([_.r("enableRightArrowHidden","atEnd"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],i$.prototype,"hideRightArrow",null);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],i$.prototype,"creatorCustomUrlButtons",null);
_.I([_.K({reflectToAttribute:!0}),_.r("data","creatorCustomUrlButtons"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],i$.prototype,"showCreatorCustomUrlButtons",null);_.I([_.r("showCreatorCustomUrlButtons"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],i$.prototype,"channelAvatarSize",null);_.I([_.Q({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],i$);
_.m(i$,"ytd-video-description-infocards-section-renderer",function(){if(ohj!==void 0)return ohj;var A=document.createElement("template");_.p(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-infocards-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="header" class="yt-simple-endpoint style-scope ytd-video-description-infocards-section-renderer" data="[[data.channelEndpoint]]" href$="[[computeOptionalHref_(data.channelEndpoint)]]">\n  <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.sectionTitle)]]" hidden="[[!data.channelAvatar]]" thumbnail="[[data.channelAvatar]]" width="[[channelAvatarSize]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  </yt-img-shadow>\n  <div id="header-text" class="style-scope ytd-video-description-infocards-section-renderer">\n    <h3 id="title" class="style-scope ytd-video-description-infocards-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n    <div id="subtitle" hidden="[[!data.sectionSubtitle]]" class="style-scope ytd-video-description-infocards-section-renderer">\n      [[getSimpleString(data.sectionSubtitle)]]\n    </div>\n  </div>\n</a>\n<div id="action-buttons" hidden="[[showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="infocard-videos-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  <div id="infocard-channel-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n</div>\n<div id="social-links" hidden="[[!showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-infocards-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="nextClick_" hidden="[[hideRightArrow]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n<div id="infocards-section" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return ohj=A},{mode:_.e5("kevlar_poly_si_batch_j067")?1:2});var Ae6;var NM=function(){return _.G.apply(this,arguments)||this};
_.g(NM,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],NM.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],NM.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],NM.prototype,"data",void 0);_.I([_.K({computed:"computeIcon_(data.infoIcon)"}),_.Z("design:type",Object)],NM.prototype,"infoIcon",void 0);_.I([_.Q({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],NM);
_.m(NM,"ytd-eom-settings-disclaimer-renderer",function(){if(Ae6!==void 0)return Ae6;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return Ae6=A},{mode:1});var Lc6;var rc=function(){return _.G.apply(this,arguments)||this};
_.g(rc,_.G);_.v2.Object.defineProperties(rc.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.suppressPaddingDisclaimer)}}});
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],rc.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],rc.prototype,"componentBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],rc.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],rc.prototype,"data",void 0);
_.I([_.K({reflectToAttribute:!0}),_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],rc.prototype,"suppressPaddingDisclaimer",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],rc);
_.m(rc,"ytd-product-list-header-renderer",function(){if(Lc6!==void 0)return Lc6;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Lc6=A},{mode:1});var OZu;var Kz=function(){return _.G.apply(this,arguments)||this};
_.g(Kz,_.G);Kz.prototype.computeThumbnailStyle=function(A){if(A&&(A=_.Wy(A)))return"background-color:"+A+";"};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Kz.prototype,"rendererBehaviors",void 0);_.I([_.K(),_.Z("design:type",Object)],Kz.prototype,"data",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],Kz);
_.m(Kz,"ytd-hashtag-tile-renderer",function(){if(OZu!==void 0)return OZu;var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return OZu=A},{mode:1});var XIn;var Gz=function(){return _.G.apply(this,arguments)||this};
_.g(Gz,_.G);Gz.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}}}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Gz.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Gz.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Gz.prototype,"data",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],Gz);
_.m(Gz,"ytd-sponsorships-alert-renderer",function(){if(XIn!==void 0)return XIn;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return XIn=A},{mode:1});var xX6;var l$=function(){return _.G.apply(this,arguments)||this};
_.g(l$,_.G);l$.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.v2.Object.defineProperties(l$.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.h("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.h("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.I([_.N(_.BL),_.Z("design:type",Object)],l$.prototype,"ytdDismissibleItemBehavior",void 0);_.I([_.N(_.of),_.Z("design:type",Object)],l$.prototype,"ytdLockupBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],l$.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],l$.prototype,"ytRendererBehavior",void 0);_.I([_.K({selector:_.Hx}),_.Z("design:type",Object)],l$.prototype,"isGridViewEnabled",void 0);
_.I([_.r("isGridViewEnabled"),_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],l$.prototype,"watchFeedBigThumbs",null);_.I([_.r("isGridViewEnabled"),_.K({reflectToAttribute:!0}),_.Z("design:type",String),_.Z("design:paramtypes",[])],l$.prototype,"thumbnailWidth",null);_.I([_.K(),_.Z("design:type",Object)],l$.prototype,"data",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],l$);
_.m(l$,"ytd-compact-movie-renderer",function(){if(xX6!==void 0)return xX6;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return xX6=A},{mode:1});var s_V;var JeN;var PUc=_.ms("HTML_DIR")==="rtl",cZ=function(){var A=_.G.apply(this,arguments)||this;A.engagementPanel=!1;A.maxLines=2;A.expandButtonOffset=0;A.showExpandButton=!1;A.isTruncated=!1;A.isExpanded=!1;A.currentSnippetType=2;A.alwaysShowExpandButton=!1;A.JSC$17367_lastWidth=NaN;A.observer=null;A.left=0;A.right=0;A.mid=0;A.longestSnippetLength=0;A.isFinalSnippet=!1;A.isFirstMutation=!1;A.isResetMutation=!1;A.OVERFLOW_THRESHOLD=5;return A};
_.g(cZ,_.G);_.P=cZ.prototype;_.P.onClick=function(A){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.xu(_.oa(A)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var L;if((L=window.getSelection())==null||!L.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.P.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.P.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.P.updateTextOnSnippetTypeChange=function(){_.h("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.P.setUpBinarySearch=function(A){A=A*this.maxLines/8;this.left=0;var L,O;this.right=Math.min(A*2,(O=(L=this.simpleText)==null?void 0:L.length)!=null?O:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.P.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.P.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.Rv(new _.pe("AttributedSnippet is empty when the description is not empty",this.text))};
_.P.mutationCallback=function(){if(this.observer!=null){var A=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var L=Math.floor(A*this.maxLines/8);this.setSnippetText(this.text,L);L!==0||this.attributedTextIsEmpty()||_.Rv(new _.pe("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;A=A*this.maxLines/8;this.left=0;var O;this.right=Math.min(A*2,(O=(L=this.simpleText)==null?void 0:L.length)!=null?O:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=
0;this.setSnippetText(this.text,this.mid);this.isFirstMutation=!1}else this.isTruncated=!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset()),this.isFinalSnippet=!0,this.isFirstMutation=!1,this.observer.disconnect(),this.maybeLogWarningForEmptyAttributedSnippet();else{this.isOverflowing()?this.right=this.mid-1:(this.left=this.mid+1,this.longestSnippetLength=this.mid);if(this.left>this.right){if(this.mid===this.longestSnippetLength){this.expandButtonOffset=this.computeExpandButtonOffset();
this.observer.disconnect();this.maybeLogWarningForEmptyAttributedSnippet();return}this.setSnippetText(this.text,this.longestSnippetLength);this.isFinalSnippet=!0}this.mid=Math.floor(this.left+(this.right-this.left)/2);this.setSnippetText(this.text,this.mid)}}};
_.P.mutationObserve=function(A){var L=this;this.observer||(this.observer=new MutationObserver(function(){L.mutationCallback()}));
this.observer.observe(A,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.P.attached=function(){var A=this;_.kd(this,function(){A.resize()})};
_.P.isExpandedChanged=function(){_.P4(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.P.updateSnippetContainerMaxHeight=function(){this.isExpanded?(this.snippetContainer.style.setProperty("overflow",""),this.snippetContainer.style.setProperty("max-height","")):(this.snippetContainer.style.setProperty("overflow","hidden"),this.snippetContainer.style.setProperty("max-height",2*this.maxLines+"rem"));this.resize(!0)};
_.P.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var A="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((PUc?"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",A);this.snippetContainer.style.setProperty("mask-image",
A)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(PUc?"right":"left",this.expandButtonOffset+"px")};
_.P.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.P.setSnippetText=function(A,L){A||(A={});if(_.AF(A)){var O=vR(A,L);O.attachmentRuns||O.commandRuns||O.decorationRuns||O.styleRuns||O.alignment||O.lineBreakMode?this.attributedSnippetTextEl?(_.h("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=vR(A,L),this.attributedSnippetTextEl.headerRuns=MeD(L,this.headerRuns)):this.attributedSnippetText={data:vR(A,L),headerRuns:MeD(L,this.headerRuns)},this.currentSnippetType=0):_.Rv(new _.pe("Tried to set snippet text when HTML element was null",
A)):(this.plainSnippetText.textContent=ka(A.content||"",L),this.currentSnippetType=2)}else{a:{O=viu(A,L);if(O.runs){O=_.d(O.runs);for(var X=O.next();!X.done;X=O.next())if(X=X.value,X.bold||X.deemphasize||X.italics||X.strikethrough||X.textColor||X.navigationEndpoint||_.q(X,ZX)){O=!0;break a}}O=!1}O?this.formattedSnippetText?(this.formattedSnippetText.text=viu(A,L),this.currentSnippetType=1):_.Rv(new _.pe("Tried to set snippet text when HTML element was null",A)):(this.plainSnippetText.textContent=
ka(_.vG(A),L),this.currentSnippetType=2)}};
_.P.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.P.attributedTextIsEmpty=function(){var A=this.text;if(!_.AF(A))return!0;var L;return((L=A.content)==null?void 0:L.length)===0?!0:!1};
_.P.resize=function(A){if(this.snippetText){if(A===void 0?0:A)this.JSC$17367_lastWidth=NaN;var L=this.hostElement.offsetWidth;if(L!==this.JSC$17367_lastWidth&&!this.isExpanded)if(this.JSC$17367_lastWidth=L,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;A=0;var O,X;L=Math.min(L*this.maxLines/8*2,(X=(O=this.simpleText)==null?void 0:O.length)!=null?X:0)-1;for(O=0;A<=L;)X=Math.floor(A+(L-A)/2),this.setSnippetText(this.text,X),this.isOverflowing()?L=X-1:(A=X+1,O=X);this.setSnippetText(this.text,O);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.P.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.P.onExpandClick=function(){var A=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.h("inline_expander_reset_focus_killswitch")||_.kd(this,function(){var L;((L=_.X5().resolve(_.Ot(_.bv)))==null?0:L.isKeyBoardInUse())&&_.M6(A.hostElement)});
_.P4(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.P.onCollapseClick=function(){this.collapse();_.P4(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.P.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.P.computeExpandButtonOffset=function(){var A=this.expandSizer;return A?PUc?A.offsetParent?A.offsetParent.offsetWidth-A.offsetWidth-A.offsetLeft:0:A.offsetLeft:0};
_.v2.Object.defineProperties(cZ.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.AF(this.text)?this.text.content||"":_.vG(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 _.AF(this.text)?!0:this.text&&_.h("web_replace_formatted_with_attributed_string")&&Ebe(this.text)?(this.text=_.yz(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}}});
cZ.prototype.onTextChanged=cZ.prototype.onTextChanged;cZ.prototype.updateMaskAndExpandButtonOffset=cZ.prototype.updateMaskAndExpandButtonOffset;cZ.prototype.updateSnippetContainerMaxHeight=cZ.prototype.updateSnippetContainerMaxHeight;cZ.prototype.isExpandedChanged=cZ.prototype.isExpandedChanged;cZ.prototype.updateTextOnSnippetTypeChange=cZ.prototype.updateTextOnSnippetTypeChange;cZ.prototype.updateIsFormattedExpanded=cZ.prototype.updateIsFormattedExpanded;cZ.prototype.updateIsAttributedExpanded=cZ.prototype.updateIsAttributedExpanded;
cZ.prototype.onClick=cZ.prototype.onClick;_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],cZ.prototype,"componentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],cZ.prototype,"text",void 0);_.I([_.K(),_.Z("design:type",Array)],cZ.prototype,"headerRuns",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],cZ.prototype,"engagementPanel",void 0);_.I([_.K(),_.Z("design:type",Object)],cZ.prototype,"maxLines",void 0);
_.I([_.K(),_.Z("design:type",String)],cZ.prototype,"expandLabel",void 0);_.I([_.K(),_.Z("design:type",String)],cZ.prototype,"collapseLabel",void 0);_.I([_.K(),_.Z("design:type",Object)],cZ.prototype,"expandCommand",void 0);_.I([_.K(),_.Z("design:type",Object)],cZ.prototype,"expandButtonOffset",void 0);_.I([_.r("text"),_.Z("design:type",String),_.Z("design:paramtypes",[])],cZ.prototype,"simpleText",null);
_.I([_.by("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],cZ.prototype,"onClick",null);_.I([_.r("text","isExpanded"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],cZ.prototype,"expandedText",null);_.I([_.r("headerRuns","isExpanded"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],cZ.prototype,"expandedHeaderRuns",null);
_.I([_.r("text"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],cZ.prototype,"hasAttributedStringText",null);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],cZ.prototype,"showExpandButton",void 0);_.I([_.r("collapseLabel","isExpanded"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],cZ.prototype,"showCollapseButton",null);_.I([_.K(),_.Z("design:type",Object)],cZ.prototype,"isTruncated",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],cZ.prototype,"isExpanded",void 0);_.I([_.K(),_.Z("design:type",Boolean)],cZ.prototype,"isAttributedExpanded",void 0);_.I([_.hT("isExpanded","hasAttributedStringText"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cZ.prototype,"updateIsAttributedExpanded",null);_.I([_.K(),_.Z("design:type",Boolean)],cZ.prototype,"isFormattedExpanded",void 0);
_.I([_.hT("isExpanded","hasAttributedStringText"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cZ.prototype,"updateIsFormattedExpanded",null);_.I([_.K(),_.Z("design:type",Number)],cZ.prototype,"currentSnippetType",void 0);_.I([_.r("currentSnippetType"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],cZ.prototype,"useAttributedSnippet",null);
_.I([_.r("currentSnippetType"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],cZ.prototype,"useFormattedSnippet",null);_.I([_.r("currentSnippetType"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],cZ.prototype,"usePlainSnippet",null);_.I([_.K(),_.Z("design:type",Object)],cZ.prototype,"alwaysShowExpandButton",void 0);_.I([_.hT("currentSnippetType"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cZ.prototype,"updateTextOnSnippetTypeChange",null);
_.I([_.K(),_.Z("design:type",Object)],cZ.prototype,"attributedSnippetText",void 0);_.I([_.qR("#snippet"),_.Z("design:type",HTMLElement)],cZ.prototype,"snippetContainer",void 0);_.I([_.qR("#snippet-text"),_.Z("design:type",HTMLElement)],cZ.prototype,"snippetText",void 0);_.I([_.qR("#plain-snippet-text"),_.Z("design:type",HTMLElement)],cZ.prototype,"plainSnippetText",void 0);_.I([_.qR("#formatted-snippet-text"),_.Z("design:type",Object)],cZ.prototype,"formattedSnippetText",void 0);
_.I([_.qR("#attributed-snippet-text"),_.Z("design:type",Object)],cZ.prototype,"attributedSnippetTextEl",void 0);_.I([_.qR("#expand"),_.Z("design:type",HTMLElement)],cZ.prototype,"expandButton",void 0);_.I([_.qR("#expand-sizer"),_.Z("design:type",HTMLElement)],cZ.prototype,"expandSizer",void 0);_.I([_.iy("isExpanded"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cZ.prototype,"isExpandedChanged",null);
_.I([_.hT("isExpanded","maxLines"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cZ.prototype,"updateSnippetContainerMaxHeight",null);_.I([_.hT("isTruncated","showExpandButton","expandButtonOffset"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cZ.prototype,"updateMaskAndExpandButtonOffset",null);
_.I([_.iy("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cZ.prototype,"onTextChanged",null);_.I([_.Q({is:"ytd-text-inline-expander",disableElementRegistration:!0})],cZ);
_.m(cZ,"ytd-text-inline-expander",function(){if(JeN===void 0){var A=document.createElement("template");_.p(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-inline-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expanded" class="style-scope ytd-text-inline-expander"><yt-attributed-string data="[[expandedText]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[expandedHeaderRuns]]" hidden="[[!isAttributedExpanded]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!isFormattedExpanded]]" split-lines="[[!hasAttributedStringText]]" text="[[expandedText]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></div><div id="snippet" class="style-scope ytd-text-inline-expander"><span id="snippet-text" hidden="[[isExpanded]]" class="style-scope ytd-text-inline-expander"><span id="plain-snippet-text" hidden="[[!usePlainSnippet]]" class="style-scope ytd-text-inline-expander"></span><yt-attributed-string id="attributed-snippet-text" data="[[attributedSnippetText.data]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[attributedSnippetText.headerRuns]]" hidden="[[!useAttributedSnippet]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string id="formatted-snippet-text" disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!useFormattedSnippet]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></span><span hidden="[[!showExpandButton]]" class="style-scope ytd-text-inline-expander">\u00a0</span><span id="ellipsis" hidden="[[!isTruncated]]" class="style-scope ytd-text-inline-expander">\u2026</span><tp-yt-paper-button id="expand-sizer" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]">[[expandLabel]]</tp-yt-paper-button></div><tp-yt-paper-button id="expand" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]" on-click="onExpandClick">[[expandLabel]]</tp-yt-paper-button><slot name="extra-content" class="style-scope ytd-text-inline-expander"></slot><tp-yt-paper-button id="collapse" class="button style-scope ytd-text-inline-expander" hidden="[[!showCollapseButton]]" on-click="onCollapseClick">[[collapseLabel]]</tp-yt-paper-button>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);JeN=A}A=JeN;return A},{mode:2});var Cz=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return A};
_.g(Cz,_.G);Cz.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
Cz.prototype.handleUpdateDescriptionAction=function(A){if(A=_.q(A,_.Nj6))if(A.attributedDescription)this.set("data.attributedDescriptionBodyText",A.attributedDescription);else if(A.description){var L;((L=this.data)==null?0:L.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.yz(A.description)):this.set("data.descriptionBodyText",A.description)}};
_.v2.Object.defineProperties(Cz.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var A,L;return!((A=this.data)==null||!A.attributedDescriptionBodyText)||!((L=this.data)==null||!L.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)==null?0:A.collapsedLineCount){var L;return(L=this.data)==null?void 0:L.collapsedLineCount}A=_.PO("web_watch_description_collapsed_default_lines",12);if(_.h("ww_desc_line_page_size_ks"))return A;L=Math.round(_.NT().height*_.PO("web_watch_description_screen_height_percentage",.5)/20);return Math.max(L,A)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var A,L,O;return(O=(A=this.data)==null?void 0:A.descriptionBodyText)!=null?O:(L=this.data)==null?void 0:L.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.sourceAttributions}}});
Cz.prototype.panelContentVisibleChanged=Cz.prototype.panelContentVisibleChanged;_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],Cz.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Cz.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],Cz.prototype,"componentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Cz.prototype,"data",void 0);
_.I([_.K(),_.Z("design:type",Boolean)],Cz.prototype,"panelContentVisible",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Cz.prototype,"engagementPanel",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Cz.prototype,"shortsPanel",void 0);_.I([_.qR("#inline-expander"),_.Z("design:type",Object)],Cz.prototype,"inlineExpander",void 0);
_.I([_.hT("panelContentVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Cz.prototype,"panelContentVisibleChanged",null);_.I([_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Cz.prototype,"hasDescriptionText",null);_.I([_.r("data"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],Cz.prototype,"collapsedLines",null);
_.I([_.r("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Cz.prototype,"descriptionText",null);_.I([_.r("data","data.headerRuns"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Cz.prototype,"headerRuns",null);_.I([_.r("data","data.sourceAttributions"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Cz.prototype,"sourceAttributions",null);
_.I([_.Q({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],Cz);
_.m(Cz,"ytd-expandable-video-description-body-renderer",function(){if(s_V!==void 0)return s_V;var A=document.createElement("template");_.p(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-video-description-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-text-inline-expander id="inline-expander" collapse-label="[[getSimpleString(data.showLessText)]]" engagement-panel="[[engagementPanel]]" expand-label="[[getSimpleString(data.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[!hasDescriptionText]]" max-lines="[[collapsedLines]]" text="[[descriptionText]]" class="style-scope ytd-expandable-video-description-body-renderer">\n</ytd-text-inline-expander>\n<div id="source-attributions-wrapper" engagement-panel="[[engagementPanel]]" class="style-scope ytd-expandable-video-description-body-renderer">\n<template is="dom-repeat" items="[[sourceAttributions]]" as="sourceAttribution" class="style-scope ytd-expandable-video-description-body-renderer">\n  <yt-attributed-string class="source-attribution style-scope ytd-expandable-video-description-body-renderer" data="[[sourceAttribution]]" link-inherit-color="">\n  </yt-attributed-string>\n  </template>\n</div>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return s_V=A},{mode:_.e5("kevlar_poly_si_batch_j028")?1:2});var dX7;var Yn7=_.xa(function(A){var L=A.data;return _.D("factoid-renderer",{class:"ytwFactoidRendererHost"},_.D("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return L().accessibilityText}},_.D("span",{class:"ytwFactoidRendererValue"},_.D(_.Xg,{text:function(){return L().value}})),_.D("span",{class:"ytwFactoidRendererLabel"},_.D(_.Xg,{text:function(){return L().label}}))))},"$b");_.Y4(Yn7,"factoid-renderer",{props:{data:_.x5}});_.Y4(_.xa(function(A){var L=A.data;return _.D("upload-time-factoid-renderer",null,_.D(_.ID,{data:function(){return L().factoid}},{factoidRenderer:Yn7}))},"ac"),"upload-time-factoid-renderer",{props:{data:_.dl}});_.Y4(_.xa(function(A){var L=A.data;return _.D("view-count-factoid-renderer",null,_.D(_.ID,{data:function(){return L().factoid}},{factoidRenderer:Yn7}))},"bc"),"view-count-factoid-renderer",{props:{data:_.dl}});var FO=function(){var A=_.G.apply(this,arguments)||this;A.shortsPanel=!1;A.engagementPanel=!1;A.watchWhileSdp=_.h("shorts_desktop_watch_while_sdp");return A};
_.g(FO,_.G);FO.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"}}}}};
_.v2.Object.defineProperties(FO.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var A;return(A=this.data)==null?void 0:A.channel}}});
_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],FO.prototype,"componentBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],FO.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],FO.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],FO.prototype,"shortsPanel",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],FO.prototype,"engagementPanel",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],FO.prototype,"watchWhileSdp",void 0);_.I([_.r("shortsPanel","engagementPanel","data.channel"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],FO.prototype,"showChannelInfo",null);_.I([_.Q({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],FO);
_.m(FO,"ytd-video-description-header-renderer",function(){if(dX7!==void 0)return dX7;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return dX7=A},{mode:1});var uDH;var RY=function(){return _.G.apply(this,arguments)||this};
_.g(RY,_.G);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],RY.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],RY.prototype,"ytRendererBehavior",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],RY.prototype,"noPadding",void 0);_.I([_.K(),_.Z("design:type",Object)],RY.prototype,"data",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],RY);
_.m(RY,"ytd-list-item-view-model",function(){if(uDH!==void 0)return uDH;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return uDH=A},{mode:1});var TCJ;var Vw7;var DXV;var ee6;var Qj=function(){var A=_.G.apply(this,arguments)||this;A.adaptiveFullWidth=!1;A.modernButtons=_.h("web_modern_buttons");A.buttonOverrides={style:"call-to-action",type:"filled"};A.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return A};
_.g(Qj,_.G);Qj.prototype.handleSetTimestamp_=function(A){this.data&&this.data.shortUrl&&(_.YJ(this.hostElement).querySelector("#share-url").value=A.isSet?_.v6(this.data.shortUrl,"t",A.timestamp):this.data.shortUrl)};
Qj.prototype.handleSignalActionCopyShareUrl_=function(A,L){(_.h("killswitch_copy_link_target_check")||_.YJ(this.hostElement).querySelector("#copy-button")===L)&&this.copyUrlToClipboard()};
Qj.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.YJ(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
Qj.prototype.computeStyle_=function(A){return A?A.toLowerCase().replace(/_/g,"-"):""};
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],Qj.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Qj.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Qj.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.Z("design:type",String)],Qj.prototype,"rendererStyle",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Qj.prototype,"adaptiveFullWidth",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Qj.prototype,"modernButtons",void 0);_.I([_.K(),_.Z("design:type",Object)],Qj.prototype,"buttonOverrides",void 0);_.I([_.yU({is:"yt-copy-link-renderer",disableElementRegistration:!0})],Qj);
_.m(Qj,"yt-copy-link-renderer",function(){if(ee6===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;DXV===void 0&&(DXV=document.createElement("template"));var X=DXV;O.call(L,X.content.cloneNode(!0),A.content.firstChild);ee6=A}A=ee6;return A},{mode:2});_.y3("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var mF=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return A};
_.g(mF,_.G);_.P=mF.prototype;_.P.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.P.attached=function(){this.keyboardFocused=!1};
_.P.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var A=_.X5().resolve(_.Ot(_.bv));A&&(this.keyboardFocused=A.isKeyBoardInUse())}};
_.P.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.P.computeDescription_=function(){if(this.data){if(this.data.toggled&&this.data.toggledDescription)return this.data.toggledDescription;if(!this.data.toggled&&this.data.description)return this.data.description}};
_.P.onChange_=function(){if(this.data){var A=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;A&&this.ytComponentBehavior.resolveCommand(A);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.P.handleUpdateToggleAction_=function(A){(A=_.q(A,p9H))&&this.data&&A.targetId==this.data.targetId&&this.set("data.toggled",A.toggled)};
_.P.toBoolean_=function(A){return!!A};
_.P.reset=function(){};
_.P.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.A3("data-changed",this.data))};
_.P.updateDataToggledFromBinding=function(A){this.set("data.toggled",A.detail.value)};
mF.prototype.dataChangedForBinding=mF.prototype.dataChangedForBinding;_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],mF.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],mF.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],mF.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],mF.prototype,"ytRendererBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],mF.prototype,"data",void 0);_.I([_.K({computed:"computeDescription_(data.*)"}),_.Z("design:type",Object)],mF.prototype,"description_",void 0);_.I([_.K({value:function(){return!!_.X5().resolve(_.Ot(_.bv))&&_.h("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.Z("design:type",Boolean)],mF.prototype,"useKeyboardFocused",void 0);_.I([_.K({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],mF.prototype,"keyboardFocused",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],mF.prototype,"dataChangedForBinding",null);_.I([_.yU({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],mF);
_.m(mF,"yt-toggle-form-field-renderer",function(){if(Vw7===void 0){var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;TCJ===void 0&&(TCJ=document.createElement("template"));var X=TCJ;O.call(L,X.content.cloneNode(!0),A.content.firstChild);Vw7=A}A=Vw7;return A},{mode:2});var Egj;var ngL;var fz=function(){var A=_.G.apply(this,arguments)||this;A.isDarkTheme=!1;A.isSearch=!1;A.darkerDarkTheme=_.h("web_darker_dark_theme");A.noTopMargin=_.h("kevlar_watch_no_top_margin");A.maskFade=_.h("web_watch_chips_mask_fade");A.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 A};
_.g(fz,_.G);_.P=fz.prototype;_.P.configureRendererStamper=function(){return{"data.chips":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer"}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},params:{iconSize:16}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.P.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.P.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.P.dataChanged=function(){var A=this.getSelectedIndex();if(A>0)this.selected=A;else{this.selected=0;var L,O;(L=this.ytScrollableChipCloudBehavior)==null||(O=L.reset)==null||O.call(L)}};
_.P.getSelectedIndex=function(){var A;if((A=this.data)==null||!A.chips)return-1;A=-1;for(var L,O=0;O<((L=this.data)==null?void 0:L.chips.length);O++){var X=void 0,x=void 0;if((X=this.data)==null?0:(x=X.chips[O].chipCloudChipRenderer)==null?0:x.isSelected){A=O;break}}return A};
_.P.onResize=function(){var A=this.ytScrollableChipCloudBehavior;_.kd(A,A.setContainerWidthDiff);hp(this.ytScrollableChipCloudBehavior)};
_.P.onDarkModeToggledAction=function(A){this.isDarkTheme=A};
_.P.handleRelatedChipCommand=function(A,L){A=this.JSC$17394_chipsSelector.indexOf(L);A!==-1&&this.JSC$17394_chipsSelector.selectIndex(A)};
_.P.handleChipCloudChipSelectAction=function(A){A=this.JSC$17394_chipsSelector.indexOf(A);A>-1&&this.JSC$17394_chipsSelector.selectIndex(A)};
_.P.handleChipCloudChipDeselectAction=function(){var A=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$17394_chipsSelector&&((A==null?0:A.continuationCommand)?_.TZ(this.hostElement,[A]):(A==null?0:A.searchEndpoint)?this.ytComponentBehavior.resolveCommand(A):A&&_.VN(this.hostElement,[A],this.hostElement),this.JSC$17394_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.P.updateSelectedFromBinding=function(A){this.selected=A.detail.value};
fz.prototype.onResize=fz.prototype.onResize;fz.prototype.dataChanged=fz.prototype.dataChanged;fz.prototype.isSearchChanged=fz.prototype.isSearchChanged;_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],fz.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],fz.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],fz.prototype,"actionHandlerBehavior",void 0);
_.I([_.N(_.y9),_.Z("design:type",Object)],fz.prototype,"ironResizableBehavior",void 0);_.I([_.N(),_.Z("design:type",bY)],fz.prototype,"ytScrollableChipCloudBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],fz.prototype,"ytComponentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],fz.prototype,"data",void 0);_.I([_.K({value:0}),_.Z("design:type",Number)],fz.prototype,"selected",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],fz.prototype,"isDarkTheme",void 0);_.I([_.K({value:160}),_.Z("design:type",Number)],fz.prototype,"scrollDistance",void 0);_.I([_.K(),_.Z("design:type",Object)],fz.prototype,"isSearch",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],fz.prototype,"darkerDarkTheme",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],fz.prototype,"noTopMargin",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],fz.prototype,"maskFade",void 0);_.I([_.qR("#chips"),_.Z("design:type",Object)],fz.prototype,"JSC$17394_chipsSelector",void 0);_.I([_.hT("isSearch"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],fz.prototype,"isSearchChanged",null);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],fz.prototype,"dataChanged",null);
_.I([_.by("iron-resize"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],fz.prototype,"onResize",null);_.I([_.yU({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],fz);
_.m(fz,"yt-chip-cloud-renderer",function(){if(ngL===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;Egj===void 0&&(Egj=document.createElement("template"));var X=Egj;O.call(L,X.content.cloneNode(!0),A.content.firstChild);ngL=A}A=ngL;return A},{mode:2});var tw7,bZg=function(){return tw7!==void 0?tw7:tw7=document.createElement("template")};
document.head.appendChild(bZg().content);var he6;var Snu=document.head,qnc=Snu.appendChild,ggN;if(he6===void 0){var wIN=document.createElement("template");_.p(wIN,"");wIN.content.insertBefore(bZg().content.cloneNode(!0),wIN.content.firstChild);he6=wIN}ggN=he6;qnc.call(Snu,ggN.content);var pIV=_.xa(function(A){var L=A.data;return _.D("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.D("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.D("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.D(_.e,{cond:function(){return _.AC(L().image)},
then:function(O){return _.D("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.D(_.XV,{data:O,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.D("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.D(_.Xg,{text:function(){return L().title}})),_.D("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.D(_.Xg,{text:function(){return L().subtitle}})))),_.D(_.e,{cond:function(){var O;
return(O=L())==null?void 0:O.hasBottomDivider},
then:function(){return _.D("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"cc");var iZH=_.xa(function(A){var L=A.data;return _.D("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.D("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.D(_.ID,{data:function(){var O;return(O=L().offerPlanDetailsItem)!=null?O:[]}},{offerPlanDetailsItemViewModel:function(O){return _.D("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.D(pIV,{data:O.data}))}})),_.D("div",null,_.D(_.e,{cond:function(){return L().hasBottomDivider},
then:function(){return _.D("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.D("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.D("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.D("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.D("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"dc");var NC6=_.xa(function(A){var L=A.data;A=_.d(_.uQ(!1,void 0,"SpEGQd"));var O=A.next().value,X=A.next().value,x=_.py(function(){X(!O());return!1}),J=function(){var Y;
return(Y=L().offerPlanDetailsContainer)!=null?Y:[]};
return _.D("lp-complex-offer-card-details-view-model",null,_.D("div",null,_.D(_.e,{cond:function(){return O()},
then:function(){return _.D("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.D("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":x,"aria-expanded":O},_.D(_.Xg,{text:function(){return L().expandedTitle}})),_.D("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.D(_.ID,{data:J},{offerPlanDetailsContainerViewModel:function(Y){return _.D("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.D(iZH,{data:Y.data}))}})),_.D("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.D(_.Xg,{text:function(){return L().legalText}})))},
else:function(){return _.D("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":x,"aria-expanded":O},_.D(_.Xg,{text:function(){return L().collapsedTitle}}),_.D("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.D(_.Ky,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"ec");var rel=_.xa(function(A){var L=A.data;return _.D("lp-complex-offer-card-option-view-model",null,_.D("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.D(_.e,{cond:function(){return L().topDividerText},
then:function(){return _.D("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.D("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.D("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.D("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.D(_.Xg,{text:function(){return L().topDividerText}}))))}}),_.D(_.e,{cond:function(){return L().description},
then:function(){return _.D("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.D(_.Xg,{text:function(){return L().description}}))}}),_.D(_.e,{cond:function(){return L().planPricingPrimary},
then:function(){return _.D("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.D(_.Xg,{text:function(){return L().planPricingPrimary}}))}}),_.D(_.e,{cond:function(){return L().planPricingSecondary},
then:function(){return _.D("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.D(_.Xg,{text:function(){return L().planPricingSecondary}}))}}),_.D(_.e,{cond:function(){return L().primaryButton},
then:function(){return _.D("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.D(_.ID,{data:function(){return L().primaryButton}},{buttonViewModel:function(O){return _.D(_.gj,{data:O.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"fc");var KcL=_.xa(function(A){var L=A.data;var O=function(){var J;return((J=L())==null?void 0:J.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
A={};var X={},x={};return _.D("ytm-lp-complex-offer-card-view-model",null,_.D("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.D("div",{class:_.qn((A.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=O,A),"ytmLpComplexOfferCardViewModelCardContainer")},_.D(_.e,{cond:function(){var J;return(J=L())==null?void 0:J.bannerText},
then:function(){return _.D("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.D("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.D(_.Xg,{text:function(){return L().bannerText}})))}}),_.D(_.e,{cond:function(){return _.AC(L().logo)},
then:function(J){var Y={};return _.D("div",{class:_.qn((Y.ytmLpComplexOfferCardViewModelLogoAlignLeft=O,Y),"ytmLpComplexOfferCardViewModelLogo")},_.D(_.XV,{data:J,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.D("div",{class:_.qn((X.ytmLpComplexOfferCardViewModelTitleAlignLeft=O,X),"ytmLpComplexOfferCardViewModelTitle")},_.D(_.Xg,{text:function(){return L().title}})),_.D(_.e,{cond:function(){var J;
return(J=L())==null?void 0:J.subtitle},
then:function(){var J={};return _.D("div",{class:_.qn((J.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=O,J),"ytmLpComplexOfferCardViewModelSubtitle")},_.D(_.Xg,{text:function(){return L().subtitle}}))}}),_.D(_.e,{cond:function(){return L().planPricingPrimary},
then:function(){return _.D("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.D(_.Xg,{text:function(){return L().planPricingPrimary}}))}}),_.D(_.e,{cond:function(){return L().planPricingSecondary},
then:function(){return _.D("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.D(_.Xg,{text:function(){return L().planPricingSecondary}}))}}),_.D(_.e,{cond:function(){return L().purchaseButton},
then:function(){return _.D("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.D(_.ID,{data:function(){return L().purchaseButton}},{buttonViewModel:function(J){return _.D(_.gj,{data:J.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.D(_.e,{cond:function(){var J;
return(J=L())==null?void 0:J.offerOptions},
then:function(){return _.D("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.D(_.ID,{data:function(){return L().offerOptions}},{lpComplexOfferCardOptionViewModel:rel}))}}),_.D("div",{class:_.qn((x.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=O,x),"ytmLpComplexOfferCardViewModelLegalText")},_.D(_.Xg,{text:function(){return L().legalText}})),_.D(_.e,{cond:function(){var J;
return(J=L())==null?void 0:J.offerCardDetails},
then:function(){return _.D("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.D(_.ID,{data:function(){return L().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:NC6}))}}))))},"gc");var G9g=_.xa(function(A){var L=A.data;var O=function(){var Y;return((Y=L())==null?void 0:Y.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
A={};var X={},x={},J={};return _.D("ytm-lp-complex-offer-card-section-view-model",null,_.D("div",{class:_.qn("ytmLpComplexOfferCardSectionViewModelHost")},_.D("div",{class:_.qn((A.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=O,A),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.D("div",{class:_.qn((X.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=O,X),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.D("h2",{class:_.qn((x.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
O,x),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.D(_.Xg,{text:function(){return L().title}}))),_.D(_.e,{cond:function(){var Y;
return(Y=L())==null?void 0:Y.subtitle},
then:function(){var Y={},T={};return _.D("div",{class:_.qn((Y.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=O,Y),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.D("div",{class:_.qn((T.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=O,T),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.D(_.Xg,{text:function(){return L().subtitle}})))}}),_.D("div",{class:_.qn((J.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=O,J),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.D(_.ID,{data:function(){var Y;
return(Y=L().offerPlans)!=null?Y:[]}},{lpComplexOfferCardViewModel:function(Y){return _.D("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.D(KcL,{data:Y.data}))}})))))},"hc");var lHL=_.xa(function(A){return _.D("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.D("div",{class:"ytLpCouponBannerViewModelIcon"},_.D(_.Ky,{icon:function(){return"price_tag"}})),_.D("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.D("div",{class:"ytLpCouponBannerViewModelContent"},_.D("div",{class:"ytLpCouponBannerViewModelHeading"},_.D(_.Xg,{text:function(){var L;
return(L=A.data())==null?void 0:L.title}})),_.D("div",{class:"ytLpCouponBannerViewModelBody"},_.D(_.Xg,{text:function(){var L;
return(L=A.data())==null?void 0:L.subtitle}})))))},"ic");
lHL.idomCompat=!0;_.IY=NRN.getInstance();var cej;cej=_.xa(function(A){return _.D("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":A.shouldAriaHideContent},_.D("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:A.questionId},_.D(_.Xg,{text:A.question})))},"jc");
_.CUV=_.xa(function(A){var L=A.data;var O=A.themeOverride;A=_.d(_.uQ(!1,void 0,"ljTVPd"));var X=A.next().value,x=A.next().value;A=_.py(function(){x(!X());return!1});
var J=function(){return X()?"EXPAND_LESS":"EXPAND_MORE"},Y=("faq-container"+_.jr(_.IY)).toString(),T="faq-question-and-answers-section-question"+_.jr(_.IY),V={},E={};
return _.D("faq-entry-view-model-c3",null,_.D("div",{class:_.qn("yt-lp-faq-entry-view-model",(V["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return O==null?void 0:O().useDarkTheme},V))},_.D("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":A,role:"button","aria-expanded":X,"aria-labelledby":T.toString(),"tab-index":"0"},_.D(cej,{question:function(){return L().question},
questionId:T,shouldAriaHideContent:!0}),_.D(_.e,{cond:function(){return X()!==void 0},
then:function(){return _.D("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.D(_.Ky,{icon:J,ariaHidden:!0}),_.D("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.D("div",{class:_.qn("yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer",(E["yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer--collapsed"]=function(){return!X()},E))},_.D("div",{id:Y},_.D(_.g9,{each:function(){return L().answers||[]}},function(n){return _.D("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.D(_.Xg,{text:n}))})))))},"kc");
_.CUV.idomCompat=!0;var Fcj=_.xa(function(A){var L=A.data;var O=A.themeOverride;A={};return _.D("lp-faq-section-view-model-c3",null,_.D("div",{class:_.qn("yt-lp-faq-section-view-model",(A["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return L().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},A["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(O==null||!O().useDarkTheme)},A))},_.D("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.D(_.e,{cond:function(){return L().header},
then:function(X){return _.D("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.D(_.Xg,{text:X}))}}),_.D("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.D(_.ID,{data:function(){return L().faqs}},{faqEntryViewModel:function(X){return _.D(_.CUV,{data:X.data,
themeOverride:O})}})),_.D("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.D(_.g9,{each:function(){return L().footers||[]}},function(X){return _.D(_.Xg,{text:X})})),_.D(_.e,{cond:function(){return L().legal},
then:function(X){return _.D("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.D(_.Xg,{text:X}))}}))))},"lc");
Fcj.idomCompat=!0;var ReL=_.xa(function(A){var L=A.data;var O=A.themeOverride;_.GD(function(){var Y=L().gtmId;Y&&_.y6(Y,_.ms("GL",""))});
var X={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var Y,T,V;return(V=(Y=L().logo)==null?void 0:(T=Y.accessibilityData)==null?void 0:T.label)!=null?V:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},x=_.X5().resolve(_.Ot(_.oy)),J=function(){return x&&x()||(O==null?void 0:O().useDarkTheme)};
return _.D("lp-header-section-view-model",null,_.D("div",{class:function(){var Y=L().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",T=L().marginType==="LP_SECTION_MARGIN_TYPE_TOP",V=O==null?void 0:O().useDarkTheme,E=["lp-header-section-view-model"];Y&&E.push("lp-header-section-view-model--ptc-layout-type");T&&E.push("lp-header-section-view-model__lp-header-section-margin");V&&E.push("lp-header-section-view-model--premium-force-dark-mode");return E.join(" ")}},_.D(_.e,{cond:function(){return L().logo},
then:function(){return _.D("div",null,_.D(_.e,{cond:J,then:function(){return _.D(_.e,{cond:function(){var Y;return(Y=L().logo)==null?void 0:Y.imageDark},
then:function(Y){return _.D(_.XV,Object.assign({},{data:Y},X))}})},
else:function(){return _.D(_.e,{cond:function(){var Y;return(Y=L().logo)==null?void 0:Y.imageLight},
then:function(Y){return _.D(_.XV,Object.assign({},{data:Y},X))}})}}))}}),_.D(_.e,{cond:function(){return L().title},
then:function(Y){return _.D("div",{class:"lp-header-section-view-model__lp-header-title"},_.D(_.Xg,{text:Y}))}}),_.D("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.D(_.e,{cond:function(){return L().subtitles},
then:function(Y){return _.D(_.g9,{each:Y},function(T){return _.D("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.D(_.Xg,{text:T}))})}})),_.D(_.e,{cond:function(){return L().additionalInfo},
then:function(Y){return _.D("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.D(_.Xg,{text:Y}))}}),_.D("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.D(_.e,{cond:function(){return L().primaryButton},
then:function(Y){return _.D("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.D(_.ID,{data:Y},{buttonViewModel:_.gj}))}}),_.D(_.e,{cond:function(){return L().secondaryButton},
then:function(Y){return _.D("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.D(_.ID,{data:Y},{buttonViewModel:_.gj}))}})),_.D(_.e,{cond:function(){return L().otherOffersInfo},
then:function(Y){return _.D("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.D(_.Xg,{text:Y}))}}),_.D("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.D(_.e,{cond:function(){return L().billingInfo},
then:function(Y){return _.D(_.g9,{each:Y},function(T){return _.D("div",null,_.D(_.Xg,{text:T}))})}}))))},"mc");
ReL.idomCompat=!0;var Q_N=_.xa(function(A){var L=A.data;var O=_.LT(A.themeOverride,{useDarkTheme:!1});A={};A=_.qn("ytm-lp-headline-section-view-model",(A["ytm-lp-headline-section-view-model--premium-force-dark-mode"]=function(){return O().useDarkTheme},A));
return _.D("lp-headline-section-view-model",null,_.D("div",{class:A},_.D("div",{class:"ytm-lp-headline-section-view-model__title-text"},_.D(_.Xg,{text:function(){return L().title}})),_.D(_.e,{cond:function(){return L().subtitle},
then:function(X){return _.D("div",{class:"ytm-lp-headline-section-view-model__subtitle-text"},_.D(_.Xg,{text:X}))}})))},"nc");var mXj=_.xa(function(A){var L=A.data;var O=A.themeOverride;var X=_.X5().resolve(_.Ot(_.oy)),x=function(){return X&&X()||(O==null?void 0:O().useDarkTheme)},J=function(){var E,n;
var t=x()?(E=L().textBackgroundImage)==null?void 0:E.imageDark:(n=L().textBackgroundImage)==null?void 0:n.imageLight;return ERM((t==null?void 0:t.sources)||[])},Y=function(){var E,n;
return x()?(E=L().featureImage)==null?void 0:E.imageDark:(n=L().featureImage)==null?void 0:n.imageLight},T=function(){return L().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},V=function(){var E,n;
return x()?(E=L().logo)==null?void 0:E.imageDark:(n=L().logo)==null?void 0:n.imageLight};
return _.D("ytm-lp-large-feature-section-view-model",null,_.D("div",{class:function(){var E=L().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",n=L().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",t=(L().index||0)%2===1,b=O==null?void 0:O().useDarkTheme,S=["yt-lp-large-feature-section-view-model"];E?S.push("yt-lp-large-feature-section-view-model--music-feature-type"):n?S.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):t||S.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
b&&S.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return S.join(" ")}},_.D("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.D(_.e,{cond:Y,
then:function(){return _.D(_.XV,{data:function(){return Y()},
alt:function(){var E,n,t;return(t=(E=L().featureImage)==null?void 0:(n=E.accessibilityData)==null?void 0:n.label)!=null?t:""},
contentMode:T})}})),_.D("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var E;return((E=J())==null?0:E.url)?"background-image: url("+_.RP(J().url)+");":""}},_.D("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.D(_.e,{cond:V,
then:function(){return _.D(_.XV,{data:function(){return V()},
alt:function(){var E,n,t;return(t=(E=L().logo)==null?void 0:(n=E.accessibilityData)==null?void 0:n.label)!=null?t:""},
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"})}}),_.D(_.e,{cond:function(){return L().eyebrowText},
then:function(){return _.D("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.D(_.Xg,{text:function(){return L().eyebrowText}}))}}),_.D(_.e,{cond:function(){return L().title},
then:function(){return _.D("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.D(_.Xg,{text:function(){return L().title}}))}}),_.D(_.e,{cond:function(){return L().subtitles},
then:function(){return _.D("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.D(_.g9,{each:function(){return L().subtitles||[]}},function(E){return _.D(_.Xg,{text:E})}))}})))))},"oc");
mXj.idomCompat=!0;var fHj=_.xa(function(A){return _.D("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.D("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.D(_.Ky,{icon:function(){var L;return(L=A.data())==null?void 0:L.iconType},
className:function(){var L;switch((L=A.data())==null?void 0:L.style){case "LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconGreen";case "LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconSmall";default:return"ytLpFeatureListItemViewModelFeatureListIconDefault"}},
active:function(){var L;return((L=A.data())==null?void 0:L.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.D("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.D(_.Xg,{text:function(){var L;
return(L=A.data())==null?void 0:L.text},
className:function(){var L;return((L=A.data())==null?void 0:L.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"pc");var IHc=_.xa(function(A){A=_.OY(A,{config:void 0,themeOverride:void 0});var L=A.data,O=A.config,X=A.themeOverride;A={};A=_.qn("ytm-lp-offer-card-option-view-model",(A["ytm-lp-offer-card-option-view-model--premium-force-dark-mode"]=function(){var T;return(T=X())==null?void 0:T.useDarkTheme},A));
var x=_.py(function(){var T,V;(T=O())==null||(V=T.handleRadioButtonClick)==null||V.call(T,L());return!1}),J=function(){var T;
return(T=O())==null?void 0:T.shouldDisplayRadioButton},Y=function(){var T;
return(T=L().featureListItems)!=null?T:[]};
return _.D("ytm-lp-offer-card-option-view-model",null,_.D("div",{class:A,"on:click":_.py(function(){if(J()){var T,V;(T=O())==null||(V=T.handleRadioButtonClick)==null||V.call(T,L())}return!1})},_.D(_.e,{cond:J,
then:function(){return _.D("div",null,_.D("input",{type:"radio","on:click":x,class:"ytm-lp-offer-card-option-view-model__input-el","prop:checked":function(){var T;return!((T=O())==null||!T.isOptionSelected)}}))}}),_.D("div",null,_.D("div",{class:"ytm-lp-offer-card-option-view-model__eyebrow-text"},_.D(_.Xg,{text:function(){return L().eyebrowText}})),_.D("div",{class:"ytm-lp-offer-card-option-view-model__title"},_.D(_.Xg,{text:function(){return L().title}})),_.D("div",{class:"ytm-lp-offer-card-option-view-model__subtitle"},
_.D(_.Xg,{text:function(){return L().subtitle}})),_.D(_.e,{cond:function(){return Y().length>0},
then:function(){return _.D("div",{class:"ytm-lp-offer-card-option-view-model__feature-list-items"},_.D(_.ID,{data:Y},{lpFeatureListItemViewModel:fHj}))}}),_.D("div",{class:"ytm-lp-offer-card-option-view-model__description"},_.D(_.Xg,{text:function(){return L().description}})))))},"qc");
IHc.idomCompat=!0;var yec=_.xa(function(A){var L=A.data;var O=A.themeOverride;A=_.d(_.Nn(function(){var J,Y=(J=L().offerOptions)==null?void 0:J[0];return _.q(Y,yBu)||{}}));
var X=A.next().value,x=A.next().value;A={};return _.D("ytm-lp-offer-card-view-model",null,_.D("div",{class:_.qn("ytm-lp-offer-card-view-model",(A["ytm-lp-offer-card-view-model--premium-force-dark-mode"]=function(){return!(O==null||!O().useDarkTheme)},A))},_.D("div",{class:"ytm-lp-offer-card-view-model__title-container"},_.D(_.e,{cond:function(){return L().titleIconType},
then:function(){return _.D("div",{class:"ytm-lp-offer-card-view-model__icon-container"},_.D(_.Ky,{icon:function(){var J;return((J=L().titleIconType)==null?void 0:J.toString())||""}}))}}),_.D("div",{class:"ytm-lp-offer-card-view-model__title-text"},_.D(_.Xg,{text:function(){return L().title}})),_.D(_.ID,{data:function(){return L().titleBadge}},{badgeViewModel:function(J){return _.D("div",{class:"ytm-lp-offer-card-view-model__title-badge"},_.D(_.Y6,{data:J.data}))}})),_.D("div",{class:"ytm-lp-offer-card-view-model__offer-options-container"},
_.D(_.ID,{data:function(){return L().offerOptions}},{lpOfferCardOptionViewModel:function(J){var Y=J.data;
return _.D(_.Xs,null,_.D("div",{class:"ytm-lp-offer-card-view-model__divider"}),_.D(IHc,{data:Y,config:function(){var T;return{shouldDisplayRadioButton:(L().offerOptions||[]).length>1,isOptionSelected:Y().id===((T=X())==null?void 0:T.id),handleRadioButtonClick:function(V){return void x(V)}}},
themeOverride:O}))}})),_.D("div",{class:"ytm-lp-offer-card-view-model__purchase-button-container"},_.D(_.ID,{data:function(){var J;
return(J=X())==null?void 0:J.purchaseButtonOverride}},{buttonViewModel:_.gj}))))},"rc");
yec.idomCompat=!0;var ZZJ=_.xa(function(A){var L=A.data;var O=A.themeOverride;A={};A=_.qn("ytm-lp-offer-card-section-view-model",(A["ytm-lp-offer-card-section-view-model--premium-force-dark-mode"]=function(){var X;return O==null?void 0:(X=O())==null?void 0:X.useDarkTheme},A));
return _.D("ytm-lp-offer-card-section-view-model",null,_.D("div",{class:A},_.D(_.e,{cond:function(){return L().title!==void 0},
then:function(){return _.D("div",{class:"ytm-lp-offer-card-section-view-model__title-container"},_.D("div",{class:"ytm-lp-offer-card-section-view-model__title-text"},_.D(_.Xg,{text:function(){return L().title}})),_.D(_.e,{cond:function(){return L().subtitle},
then:function(){return _.D("div",{class:"ytm-lp-offer-card-section-view-model__subtitle-text"},_.D(_.Xg,{text:function(){return L().subtitle}}))}}))}}),_.D("div",{class:"ytm-lp-offer-card-section-view-model__offer-cards-container"},_.D(_.ID,{data:function(){return L().offerCards}},{lpOfferCardViewModel:function(X){return _.D("div",{class:"ytm-lp-offer-card-section-view-model__offer-card-container"},_.D(yec,{data:X.data,
themeOverride:O}))}})),_.D(_.e,{cond:function(){return L().footer},
then:function(){return _.D("div",{class:"ytm-lp-offer-card-section-view-model__footer-text"},_.D(_.Xg,{text:function(){return L().footer}}))}})))},"sc");var j_3=_.xa(function(A){var L=A.data;return _.D("lp-offer-table-cell-content-view-model",null,_.D("div",{class:"yt-lp-offer-table-cell-content-view-model"},_.D(_.ik,null,_.D(_.w9,{when:function(){return L().title}},function(){return _.D(_.Xg,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-title",
text:function(){return L().title}})}),_.D(_.w9,{when:function(){return L().subTitle}},function(){return _.D(_.Xg,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-subtitle",
text:function(){return L().subTitle}})}),_.D(_.w9,{when:function(){return L().featureDescription}},function(){return _.D(_.Xg,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-description",
text:function(){return L().featureDescription}})}),_.D(_.w9,{when:function(){return L().description}},function(){return _.D(_.Xg,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-description",
text:function(){return L().description}})}),_.D(_.w9,{when:function(){return L().iconType}},function(){return _.D("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-icon"},_.D(_.Ky,{icon:function(){return L().iconType.toString()}}))}),_.D(_.w9,{when:function(){return L().purchaseButton}},function(){return _.D(_.ID,{data:function(){return L().purchaseButton}},{buttonViewModel:function(O){return _.D("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-purchase-button"},
_.D(_.gj,{data:O.data}))}})}),_.D(_.w9,{when:function(){return L().note}},function(){return _.D(_.Xg,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-note",
text:function(){return L().note}})}),_.D(_.w9,{when:function(){return L().featureDetail}},function(){return _.D(_.Xg,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-detail",
text:function(){return L().featureDetail}})}),_.D(_.w9,{when:function(){return L().badge}},function(){return _.D(_.ID,{data:function(){return L().badge}},{badgeViewModel:_.Y6})}))))},"tc");
j_3.idomCompat=!0;var WcJ=_.xa(function(A){var L=A.data;return _.D("lp-offer-table-cell-view-model",null,_.D("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(L().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;"}}},_.D(_.ID,{data:function(){return L().contents}},{lpOfferTableCellContentViewModel:j_3})))},
"uc");
WcJ.idomCompat=!0;var HZL=_.xa(function(A){var L=A.data;var O=A.lpTableIsFirstRow;var X=A.lpTableIsLastRow;var x=function(){return(O==null?0:O())?"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"},J=function(){return(O==null?0:O())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-content-cell":(X==null?0:X())?"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 _.D("ytm-lp-offer-table-row-view-model",null,_.D("div",{class:"yt-lp-offer-table-row-view-model"},_.D(_.ID,{data:function(){return L().rowHeaderCell}},{lpOfferTableCellViewModel:function(Y){return _.D("div",{class:x},_.D(WcJ,{data:Y.data}))}}),_.D(_.ID,{data:function(){return L().contentCells}},{lpOfferTableCellViewModel:function(Y){return _.D("div",{class:J},_.D(WcJ,{data:Y.data}))}})))},"vc");
HZL.idomCompat=!0;var zeH=_.xa(function(A){var L=A.data;var O=A.themeOverride;var X=_.X5().resolve(_.Ot(_.oy)),x=function(){return _.q(L().logo,XLl)||{}};
A={};return _.D("ytm-lp-offer-table-section-view-model",null,_.D("div",{class:"yt-lp-offer-table-view-model"},_.D(_.e,{cond:function(){var J,Y;return X&&X()||(O==null?0:O().useDarkTheme)?(J=x())==null?void 0:J.imageDark:(Y=x())==null?void 0:Y.imageLight},
then:function(J){return _.D(_.XV,{data:J,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var Y,T,V;return(V=(Y=x())==null?void 0:(T=Y.accessibilityData)==null?void 0:T.label)!=null?V:""},
targetWidth:140,targetHeight:40,height:40,className:"yt-lp-offer-table-view-model__lp-offer-table-section-logo",useWidth:!1})}}),_.D("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-title"},_.D(_.Xg,{text:function(){return L().title}})),_.D("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-subtitle"},_.D(_.Xg,{text:function(){return L().subtitle}})),_.D(_.e,{cond:function(){return L().disclaimers},
then:function(J){return _.D("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-disclaimers"},_.D(_.g9,{each:J},function(Y){return _.D("div",null,_.D(_.Xg,{text:Y}))}))}}),_.D("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-rows"},_.D(_.ID,{data:function(){return L().rows}},{lpOfferTableRowViewModel:function(J,Y){return _.D(HZL,{data:J.data,
lpTableIsFirstRow:function(){return Y()===0},
lpTableIsLastRow:function(){return Y()===L().rows.length-1}})}})),_.D("div",{class:_.qn((A["yt-lp-offer-table-view-model__lp-offer-table-section-footer-wrapper"]=function(){return L().hasFooterBackground},A))},_.D(_.e,{cond:function(){return L().footer},
then:function(){return _.D("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer"},_.D(_.Xg,{text:function(){return L().footer}}))}}),_.D(_.e,{cond:function(){return L().footerTitle},
then:function(){return _.D("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-title"},_.D(_.Xg,{text:function(){return L().footerTitle}}))}}),_.D(_.e,{cond:function(){return L().footerDescription},
then:function(){return _.D("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-description"},_.D(_.Xg,{text:function(){return L().footerDescription}}))}}))))},"wc");
zeH.idomCompat=!0;var BCN=_.xa(function(A){var L=A.data;var O=A.themeOverride;var X=_.X5().resolve(_.Ot(_.oy)),x=function(){var T;return O==null?void 0:(T=O())==null?void 0:T.useDarkTheme},J=function(){var T,V;
return X&&X()||x()?(T=L().image)==null?void 0:T.imageDark:(V=L().image)==null?void 0:V.imageLight};
A={};A=_.qn("ytm-lp-small-feature-section-view-model",(A["ytm-lp-small-feature-section-view-model--premium-force-dark-mode"]=x,A));var Y=function(){var T,V,E;return(E=(T=L().image)==null?void 0:(V=T.accessibilityData)==null?void 0:V.label)!=null?E:""};
return _.D("ytm-lp-small-feature-section-view-model",{class:A},_.D(_.e,{cond:function(){return J()&&!Lv},
then:function(){return _.D("div",{class:"ytm-lp-small-feature-section-view-model__feature-image-container"},_.D(_.XV,{data:function(){return J()},
alt:Y,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.D("div",{class:"ytm-lp-small-feature-section-view-model__content-section"},_.D("div",{class:"ytm-lp-small-feature-section-view-model__title-text"},_.D(_.e,{cond:function(){return L().title},
then:function(T){return _.D(_.Xg,{text:T})}})),_.D("div",{class:"ytm-lp-small-feature-section-view-model__description-text"},_.D(_.Xg,{text:function(){return L().description}}))))},"xc");
BCN.idomCompat=!0;var MwL=_.xa(function(A){var L=A.data;var O=A.themeOverride;A={};return _.D("ytm-lp-small-feature-section-group-view-model",null,_.D("div",{class:_.qn("ytm-lp-small-feature-section-group-view-model",(A["ytm-lp-small-feature-section-group-view-model--premium-force-dark-mode"]=function(){return!(O==null||!O().useDarkTheme)},A))},_.D("div",{class:"ytm-lp-small-feature-section-group-view-model__small-features-container"},_.D(_.ID,{data:function(){return L().smallFeatures}},{lpSmallFeatureSectionViewModel:function(X){return _.D("div",
{class:"ytm-lp-small-feature-section-group-view-model__small-feature-container"},_.D(BCN,{data:X.data,
themeOverride:O}))}}))))},"yc");
MwL.idomCompat=!0;_.Y4(_.xa(function(A){var L=A.data;var O=function(){return L().forcedTheme==="USER_INTERFACE_THEME_DARK"},X=function(){return L().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},x=function(){var Y="",T,V;
var E=_.X5().resolve(_.Ot(_.oy));E=O()||(E==null?0:E())?(T=L().themedImageViewModel)==null?void 0:T.imageDark:(V=L().themedImageViewModel)==null?void 0:V.imageLight;(T=ERM((E==null?void 0:E.sources)||[]))&&T.url&&(Y=X()?"background-image: linear-gradient(to bottom, transparent, "+(L().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.RP(T.url)+");":"background-image: url("+_.RP(T.url)+");");return Y},J=function(){return{useDarkTheme:O()}};
A={};return _.D("yt-section-group-view-model",null,_.D("div",{class:_.qn("yt-lp-section-group-view-model",(A["yt-lp-section-group-view-model--premium-force-dark-mode"]=O,A["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return L().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},A))},_.D(_.e,{cond:function(){return x().length},
then:function(){var Y={};return _.D("div",{class:_.qn("yt-lp-section-group-view-model__bg-image",(Y["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=X,Y)),style:x})}}),_.D("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.D(_.ID,{data:function(){return L().sections}},{lpFaqSectionViewModel:function(Y){return _.D(Fcj,{data:Y.data,
themeOverride:J})},
lpHeaderSectionViewModel:function(Y){return _.D(ReL,{data:Y.data,themeOverride:J})},
lpHeadlineSectionViewModel:function(Y){return _.D(Q_N,{data:Y.data,themeOverride:J})},
lpLargeFeatureSectionViewModel:function(Y){return _.D(mXj,{data:Y.data,themeOverride:J})},
lpOfferCardSectionViewModel:function(Y){return _.D(ZZJ,{data:Y.data,themeOverride:J})},
lpComplexOfferCardSectionViewModel:function(Y){return _.D(G9g,{data:Y.data})},
lpOfferTableSectionViewModel:function(Y){return _.D(zeH,{data:Y.data,themeOverride:J})},
lpSmallFeatureSectionGroupViewModel:function(Y){return _.D(MwL,{data:Y.data,themeOverride:J})},
lpCouponBannerViewModel:function(Y){return _.D(lHL,{data:Y.data})}}))))},"zc"),"yt-section-group-view-model",{props:{data:_.x5}});var L8e=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.yj=_.xa(function(A){function L(){if(L8e.has(A.data().displayType)){var E=!X(),n;if((n=A.disableDeselection)==null||!n.call(A)||E){A.data().selected=E;n=Object.assign({},Y(),{selected:E});T(n);var t;(t=A.callback)==null||t.call(A,n,E)}}}
var O=_.av("chip-view-model"),X=function(){var E,n;return!!(((E=A.selected)==null?void 0:E.call(A))!==void 0?(n=A.selected)==null?0:n.call(A):Y().selected)},x=_.d(_.Nn(A.data)),J=x.next().value;
x=x.next().value;var Y=J,T=x,V=_.iS(AHM,function(){return A.data().chipEntityKey||""});
return _.D("chip-view-model",{class:"ytChipViewModelHost",el:O},_.D(rKJ,{data:function(){var E,n=Object.assign({},Y(),{selected:X()}),t=V(),b=(E=A.disableDeselection)==null?void 0:E.call(A);a:switch(n.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":E=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":E=3;break a;default:E=0}return{text:(t==null?void 0:t.text)||n.text,state:n.disabled?1:n.selected?0:2,type:E,onTap:OVr(n,O,L,b),
accessibilityLabel:n.accessibilityLabel||n.text}}}))},"Ac");
_.yj.idomCompat={callbacks:{callback:!0}};_.$XN=_.xa(function(A){var L=_.iS(oir,function(){var Y;return(Y=A.data())==null?void 0:Y.chipBarStateEntityKey}),O=function(){return A.data().disableDeselection},X=_.d(_.Nn(function(){var Y;
if(((Y=L())==null?void 0:Y.selectedIndex)!=void 0)return L().selectedIndex;var T,V;Y=_.d(((T=A.data())==null?void 0:(V=T.chips)==null?void 0:V.entries())||[]);for(T=Y.next();!T.done;T=Y.next()){T=_.d(T.value);V=T.next().value;T=T.next().value;var E=void 0;if((E=_.q(T,_.vB))==null?0:E.selected)return V}return-1})),x=X.next().value,J=X.next().value;
return _.D("chip-bar-view-model",{class:_.qn("ytChipBarViewModelHost",A.className),role:"tablist"},_.D(_.ID,{data:function(){return A.data().chips}},{chipViewModel:function(Y,T){return _.D("div",{class:"ytChipBarViewModelChipWrapper"},_.D(_.yj,{data:Y.data,
selected:function(){return T()===x()},
callback:function(V,E){V=!!E;E=T();J(V?E:-1);var n,t=(n=A.data())==null?void 0:n.chipBarStateEntityKey;t&&V&&_.At(_.NV("chipBarStateEntity",t,{key:t,selectedIndex:E}))},
disableDeselection:A.disableDeselection||O}))}}))},"Bc");_.Y4(_.$XN,"chip-bar-view-model",{props:{data:_.dl,className:_.dl,disableDeselection:_.dl}});_.aH3=_.xa(function(A){var L=A.data;A={};return _.D("divider-view-model",{class:_.qn("divider-view-model-wiz",(A["divider-view-model-wiz__inset-thin-padding"]=function(){return L().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},A))},_.D("div",{class:_.qn("divider-view-model-wiz__base-divider",function(){return XSp(L().dividerStyle)}),
style:_.rl({"background-color":function(){return L().backgroundColor?_.Wy(L().backgroundColor):void 0}})}))},"Cc");
_.aH3.idomCompat=!0;_.Y4(_.aH3,"divider-view-model",{props:{data:_.x5}});var Cv=new Map,cC=new Map,JHu=0,Fg;var DeO=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],n7M={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var k9c,UXn;k9c=function(A){return function(L){return function(){return(L==null?void 0:L())!==void 0?String(L())+A:void 0}}};
_.ZG=k9c("px");UXn=k9c("s");var ogV=_.xa(function(A){function L(z){return function(){var a=S().numItemsPerGridRow,xe=z()*a;a=xe+a;var ur,eD;return(eD=(ur=X().contents)==null?void 0:ur.slice(xe,a))!=null?eD:[]}}
var O=_.OY(A,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),X=O.data,x=O.layoutContainerWidth,J=O.shouldUseOwnContainerSize,Y=O.marginSettings;O=_.d(_.uQ(!0,void 0,"qgr2Je"));var T=O.next().value,V=O.next().value,E=function(){var z,a=(z=_.q(X().showMoreButton,_.Cu))==null?void 0:z.trackingParams;a&&_.wm(_.iV(),a);V(!1)},n=function(){var z,a=(z=_.q(X().showLessButton,_.Cu))==null?void 0:z.trackingParams;
a&&_.wm(_.iV(),a);V(!0)};
O=_.av("grid-shelf-view-model");var t=_.bVy(O,{canHaveZeroSize:!1}),b=function(){var z;return(z=X().contentAspectRatio)!=null?z:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},S=_.E4(function(){var z=_.oD({containerWidth:J()&&t.width()>0?t.width()||x():x(),
sizing:"EXTRA_COMPACT",marginSettings:Y(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:z.maxContainerWidth,numItemsPerGridRow:z.numItems,contentPadding:J()?z.margin:z.contentMargin,itemWidth:z.itemWidth,itemMargin:z.gutter/2}},void 0,"pqVdjc"),w=function(){if(X().enableVerticalExpansion){if(T())return l();
var z,a,xe=(a=(z=X().contents)==null?void 0:z.length)!=null?a:0;return Math.ceil(xe/S().numItemsPerGridRow)}return S().numItemsPerGridRow<=2?2:1},l=function(){var z;
return Math.ceil(((z=X().minCollapsedItemCount)!=null?z:1)/S().numItemsPerGridRow)},F=function(){return X().enableVerticalExpansion&&X().showLessButton&&!T()&&w()>l()},R=function(){var z,a;
return X().enableVerticalExpansion&&X().showMoreButton&&T()&&((a=(z=X().contents)==null?void 0:z.length)!=null?a:0)>S().numItemsPerGridRow*l()},y=function(){return!F()},M=function(){return!R()},H={};
return _.D("grid-shelf-view-model",{class:_.qn("ytGridShelfViewModelHost",A.className,(H.ytGridShelfViewModelHostHasBottomButton=function(){return F()||R()},H)),
el:O,style:_.rl({"margin-left":(0,_.ZG)(function(){return S().contentPadding}),
"margin-right":(0,_.ZG)(function(){return S().contentPadding})})},_.D(_.e,{cond:function(){return _.q(X().header,E53)},
then:function(z){return _.D(_.b$,{data:z,disableHorizontalPadding:!0})}}),_.D("div",null,_.D(_.g9,{each:function(){return Array(w())}},function(z,a){return _.D(vgg,{className:A.className,
items:L(a),responsiveGridShelfLayout:S,contentAspectRatio:b})})),_.D("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.D(_.ID,{data:function(){return X().showMoreButton}},{buttonViewModel:function(z){return _.D("div",{hidden:M},_.D(_.gj,{data:z.data,
onClick:E}))}}),_.D(_.ID,{data:function(){return X().showLessButton}},{buttonViewModel:function(z){return _.D("div",{hidden:y},_.D(_.gj,{data:z.data,
onClick:n}))}})))},"Dc");
ogV.idomCompat=!0;var vgg=_.xa(function(A){var L=A.items;var O=A.responsiveGridShelfLayout;var X=A.contentAspectRatio;A=A.className;var x=_.av("div");sCp(x,function(){a:{var Y=x.value;for(var T=L(),V=[],E=0;E<T.length;E++){var n=_.q(T[E],BSN);if(!n||n==null||!n.inlinePlayerData){Y=null;break a}var t=Y.children.item(E);if(!t){Y=null;break a}V.push({thumbnailElement:t,videoData:n})}Y={gridVideoPreviewData:{gridItems:V}}}return Y});
var J=(0,_.ZG)(function(){return-O().itemMargin});
return _.D("div",{el:x,class:_.qn("ytGridShelfViewModelGridShelfRow",A),style:_.rl({"margin-left":J,"margin-right":J})},_.D(_.ID,{data:L,replacementWrapper:function(Y){return _.D(AO7,{responsiveGridShelfLayout:O},Y)}},{shortsLockupViewModel:function(Y){return _.D(AO7,{responsiveGridShelfLayout:O},_.D(QiV,{data:Y.data,
aspectRatio:function(){return X()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"Ec"),AO7=_.xa(function(A){return _.D("div",{style:_.rl({width:(0,_.ZG)(function(){return A.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+A.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},A.children)},"Fc");
ogV.idomCompat=!0;_.Y4(ogV,"grid-shelf-view-model",{props:{data:_.x5,layoutContainerWidth:_.x5,shouldUseOwnContainerSize:_.x5,marginSettings:_.x5,className:_.x5}});_.L67=_.xa(function(A){var L=_.d(_.uQ(!1,void 0,"YYtxR")),O=L.next().value,X=L.next().value;L={};return _.D("yt-alert-banner-view-model",{class:_.qn("ytAlertBannerViewModelHost",A.className,function(){var x;a:switch((x=A.data())==null?void 0:x.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":x="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":x="ytAlertBannerViewModelWarning";break a;default:x="ytAlertBannerViewModelInformational"}return x},(L.ytAlertBannerViewModelDismissed=
O,L.ytAlertBannerViewModelFullbleed=A.fullbleed,L.ytAlertBannerViewModelNarrow=A.narrow,L.ytAlertBannerViewModelIsInRichGrid=A.isInRichGrid,L))},_.D(_.e,{cond:function(){var x;
return!((x=A.data())==null?0:x.hideIcon)},
then:function(){return _.D("div",{class:"ytAlertBannerViewModelIcon"},_.D(_.Ky,{icon:function(){return"info_circle"}}))}}),_.D("div",{class:"ytAlertBannerViewModelOuterContainer"},_.D("div",{class:"ytAlertBannerViewModelContainer"},_.D("div",{class:"ytAlertBannerViewModelContent"},_.D("div",{class:"ytAlertBannerViewModelHeading"},_.D(_.Xg,{text:function(){var x;
return(x=A.data())==null?void 0:x.heading}})),_.D("div",{class:"ytAlertBannerViewModelBody"},_.D(_.Xg,{text:function(){var x;
return(x=A.data())==null?void 0:x.body}})))),_.D(_.ID,{data:function(){var x;
return(x=A.data())==null?void 0:x.actionButton}},{buttonViewModel:function(x){return _.D(_.gj,{data:x.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.D(_.ID,{data:function(){var x;
return(x=A.data())==null?void 0:x.dismissButton}},{buttonViewModel:function(x){return _.D(_.gj,{data:x.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var J;((J=A.data())==null?0:J.disableLocalDismissBehavior)||X(!0)}})}}))},"Gc");_.Y4(_.L67,"yt-alert-banner-view-model",{props:{data:_.x5,fullbleed:_.x5,narrow:_.x5,isInRichGrid:_.x5,className:_.x5}});var hIr=_.cm({chipViewModel:_.yj,buttonViewModel:_.gj});_.Xh(ShD);var OK6;OK6=_.xa(function(A){var L=A.data;var O=A.callback;var X=A.enableSingleChipSelection;var x=A.disableChipsScrollAnimation;var J=_.kw("div");A=_.d(_.uQ(!0,void 0,"ULL8g"));var Y=A.next().value,T=A.next().value;A=_.d(_.uQ(!1,void 0,"cWhQn"));var V=A.next().value,E=A.next().value,n=!1,t=0;_.r9(function(){T(w());E(l())});
A=_.d(_.Nn(function(){var xe={};return L().autoselectedChipIndex!=null?(xe[L().autoselectedChipIndex]=!0,xe):{}}));
var b=A.next().value,S=A.next().value,w=function(){var xe=J.value;return xe==null||xe.scrollLeft-1<=0},l=function(){var xe=J.value;
return xe==null?!1:xe.scrollLeft+1>=(xe==null?NaN:xe.scrollWidth)-(xe==null?NaN:xe.clientWidth)},F=function(){return L().isHorizontallyScrollable},R=function(xe){J.value!=null&&(_.ms("HTML_DIR")==="rtl"&&(xe=-xe),J.value.scrollBy({left:xe,
behavior:(x==null?0:x())?"instant":"smooth"}))},y=function(){R(-320)},M=function(){R(320)},H=_.py(function(xe){n=!0;
t=xe.clientX}),z=_.py(function(xe){if(n){xe=xe.clientX;
var ur=xe-t;t=xe;var eD;(eD=J.value)==null||eD.scrollBy({left:-ur})}}),a=_.py(function(){var xe=w(),ur=l();
xe!==Y()&&T(xe);ur!==V()&&E(ur)});
Al("pointerup",function(){n&&(n=!1)});
return _.D("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.D(_.eC,{contentId:function(){return L().contentId},
useModernStyle:!0},function(){var xe={},ur={};return _.D("div",null,_.D(_.e,{cond:function(){return L().title},
then:function(){return _.D("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.D("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return L().title}),_.D(_.ID,{data:function(){return L().overflowButton}},{buttonViewModel:_.gj}))}}),_.D("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.D(_.e,{cond:function(){return L().previousButton},
then:function(){var eD={};return _.D("div",{class:_.qn("ytChipsShelfViewModelLeftArrowContainer",(eD.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return Y()},eD))},_.D(_.ID,{data:function(){return L().previousButton}},{buttonViewModel:function(gu){return _.D(_.gj,{data:gu.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:y})}}))}}),_.D("div",{el:J,
"on:pointerdown":H,"on:pointermove":z,"on:scroll":a,class:_.qn("ytChipsShelfViewModelChipsScrollContainer",(xe.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=F,xe))},_.D("div",{class:_.qn("ytChipsShelfViewModelChipsContainer",(ur.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=F,ur.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,ur)),role:"tablist"},_.D(_.ID,{data:function(){return L().contents}},{chipViewModel:function(eD,gu){return _.D("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.D(_.yj,{data:eD.data,
callback:function(ir,SD){var HJ=gu();if(X==null?0:X()){var mM={};S((mM[HJ]=SD,mM))}else mM={},S(Object.assign({},b(),(mM[HJ]=SD,mM)));O==null||O(ir,SD,HJ)},
disableDeselection:X,selected:function(){return!!b()[gu()]}}))}}))),_.D(_.e,{cond:function(){return L().nextButton},
then:function(){var eD={};return _.D("div",{class:_.qn("ytChipsShelfViewModelRightArrowContainer",(eD.ytChipsShelfViewModelRightArrowContainerIsHidden=V,eD))},_.D(_.ID,{data:function(){return L().nextButton}},{buttonViewModel:function(gu){return _.D(_.gj,{data:gu.data,
className:"ytChipsShelfViewModelRightArrow",onClick:M})}}))}})))}))},"Hc");
_.Xc7=_.h("enable_chips_shelf_view_model_fully_reactive")?OK6:_.wl(ShD,{callbacks:{callback:!0}});OK6.idomCompat={callbacks:{callback:!0}};_.Y4(_.Xc7,"chips-shelf-view-model",{props:{data:_.x5,callback:_.dl,enableSingleChipSelection:_.x5,disableChipsScrollAnimation:_.x5}});var xH7=_.xa(function(A){A=_.OY(A,{disabled:!1});var L=A.active,O=A.disabled;A={};A=_.qn("ytSwitchShapeTrack",(A.ytSwitchShapeTrackActive=function(){return L()},A.ytSwitchShapeTrackDisabled=function(){return O()},A));
var X={};X=_.qn("ytSwitchShapeKnob",(X.ytSwitchShapeKnobActive=function(){return L()},X));
return _.D("switch-shape",{class:"ytSwitchShapeHost"},_.D("div",{class:A}),_.D("div",{class:X}))},"Ic");var s36=_.xa(function(A){var L=_.OY(A,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),O=L.data;A=L.className;var X=L.handleOnTapEventInParent,x=L.parentActive;L=_.d(_.Nn(function(){var t;return(t=x())!=null?t:O().switchedOnByDefault||!1}));
var J=L.next().value,Y=L.next().value,T=function(){return O().isDisabled},V=_.av("button");
L=_.py(function(t){return t.key==="Enter"?(t.preventDefault(),V.value.click(),!1):!0});
var E=_.py(function(t){if(O().handleOnTapEventInParent||X())return!0;if(T())return!1;g7r(O(),J(),t);Y(!J());return!1}),n={};
n=_.qn("ytSwitchButtonViewModelButton",(n.ytSwitchButtonViewModelTappable=function(){return!T()},n));
return _.D("switch-button-view-model",{class:_.qn("ytSwitchButtonViewModelHost",A)},_.D("button",{el:V,class:n,"on:click":E,"on:keydown":L,"aria-label":function(){return J()?O().a11yLabelSwitchedOn:O().a11yLabelSwitchedOff},
"aria-checked":J,"aria-disabled":T,role:"switch"},_.D(xH7,{active:J,disabled:T})))},"Jc");var JOg=_.xa(function(A){var L=A.data;var O=A.isLeading;var X=A.hideSelectionTextChevron;var x=A.isToggled;var J=function(){return O()?L().leadingImage:L().trailingImage},Y=function(){a:switch(L().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var n="expand_more";
break a;default:n="chevron_right"}return n};
A={};var T=_.qn("yt-list-item-view-model-wiz__image-container",(A["yt-list-item-view-model-wiz__leading"]=O,A["yt-list-item-view-model-wiz__trailing"]=function(){return!O()},A)),V=_.qn("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");
A={};var E=_.qn("yt-list-item-view-model-wiz__accessory",(A["yt-list-item-view-model-wiz__leading"]=O,A["yt-list-item-view-model-wiz__trailing"]=function(){return!O()},A));
return _.D(_.e,{cond:function(){var n=L(),t=O();return!!(t&&(n.leadingImage||n.leadingAccessory)||!t&&(n.trailingImage||n.trailingButton||n.trailingButtons||n.selectionText))},
then:function(){return _.D(_.Xs,null,_.D(_.e,{cond:J,then:function(n){return _.D("div",{class:T,"aria-hidden":"true"},_.D(_.XV,{data:n,alt:"",preserveWidth:!0,preserveHeight:!0,className:V,isToggled:x}))}}),_.D(_.e,{cond:function(){return O()&&L().leadingAccessory},
then:function(){return _.D("div",{class:T},_.D(_.ID,{data:function(){return L().leadingAccessory}},{avatarViewModel:function(n){return _.D(_.fP,{data:n.data,
avatarButtonCustomClassName:V})},
collectionThumbnailViewModel:function(n){return _.D(rh7,{data:n.data,maxHeight:36,includeStackHeight:!0})}}))}}),_.D(_.e,{cond:function(){return!O()&&L().trailingButton},
then:function(){return _.D("div",{class:"yt-list-item-view-model-wiz__button-container"},_.D(_.ID,{data:function(){return L().trailingButton}},{buttonViewModel:function(n){return _.D(_.gj,{data:n.data,
className:E})}}))}}),_.D(_.e,{cond:function(){var n;
return!O()&&((n=L().trailingButtons)==null?void 0:n.buttons)},
then:function(){return _.D("div",{class:"yt-list-item-view-model-wiz__button-container"},_.D(_.ID,{data:function(){var n;return(n=L().trailingButtons)==null?void 0:n.buttons}},{buttonViewModel:function(n){return _.D(_.gj,{data:n.data,
className:E})},
accountLinkButtonViewModel:function(n){return _.D(qEH,{data:n.data,className:E})},
switchButtonViewModel:function(n){return _.D(s36,{data:n.data,className:E})},
subscribeButtonViewModel:function(n){return _.D(_.fE,{data:n.data,isOverlay:!1,animateWidth:!1,className:E})},
toggleButtonViewModel:function(n){return _.D(_.fO,{data:n.data,className:E})}}))}}),_.D(_.e,{cond:function(){return!O()&&!!L().selectionText},
then:function(){return _.D(_.Xs,null,_.D(_.Xg,{text:function(){return L().selectionText},
className:_.qn("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.D(_.e,{cond:function(){return!(X==null?0:X())},
then:function(){return _.D(_.Ky,{icon:Y,className:"yt-list-item-view-model-wiz__chevron-icon"})}}))}}))}})},"Kc");var Pdn=_.xa(function(A){var L=A.data;return _.D(_.e,{cond:function(){return L().title||L().subtitle},
then:function(){return _.D("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.D(_.e,{cond:function(){return L().title},
then:function(O){return _.D("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.D(_.Xg,{text:O,className:"yt-list-item-view-model-wiz__title"}))}}),_.D(_.e,{cond:function(){return L().subtitle},
then:function(O){return _.D(_.Xg,{text:O,className:"yt-list-item-view-model-wiz__subtitle"})}}))}})},"Lc");var jk=_.xa(function(A){var L=A.data;var O=A.hideSelectionTextChevron;var X=A.TrailingAccessory;var x=A.isToggled;var J=A.disabled;var Y=A.isSelectItem;var T=A.isCompact;var V=A.inPopup;var E=A.disableHorizontalPadding;A=A.isTappableWithoutSelect;var n={};return _.D("div",{class:_.qn("yt-list-item-view-model-wiz__label",(n["yt-list-item-view-model-wiz__container"]=function(){return!(Y==null?0:Y())},n["yt-list-item-view-model-wiz__container--disabled"]=function(){return!!L().isDisabled||!(J==null||
!J())},n["yt-list-item-view-model-wiz__container--has-subtitle"]=function(){return!!L().subtitle},n["yt-list-item-view-model-wiz__container--compact"]=T,n["yt-list-item-view-model-wiz__container--tappable"]=A,n["yt-list-item-view-model-wiz__container--in-popup"]=V,n["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(E==null?void 0:E())&&!(Y==null?0:Y())},n))},_.D(JOg,{data:L,
isLeading:!0,hideSelectionTextChevron:O,isToggled:x}),_.D(Pdn,{data:L}),_.D(_.e,{cond:function(){return!!X},
then:function(){return _.D("div",{class:"yt-list-item-view-model-wiz__trailing"},X&&_.D(X,null))},
else:function(){return _.D(JOg,{data:L,isLeading:!1,hideSelectionTextChevron:O,isToggled:x})}}))},"Mc");var YX7=_.xa(function(A){var L=_.OY(A,{checked:!1});A=L.name;var O=L.onChange,X=L.onClick,x=L.checked,J=L.labelRenderable,Y=L.hasLeadingLabel,T=L.labelClass,V=L.isCompact,E=L.selectElementClass;L=L.disableHorizontalPadding;var n="checkbox"+_.jr(_.IY),t=_.py(function(w){X==null||X(w);return!1}),b=_.py(function(w){O==null||O(w);
return!1}),S={};
return _.D("checkbox-shape",null,_.D("label",{class:_.qn("checkbox-shape-wiz",T,(S["checkbox-shape-wiz--compact"]=V,S["checkbox-shape-wiz--disable-horizontal-padding"]=L,S))},_.D("input",{class:"checkbox-shape-wiz__input",id:n,checked:x,name:A,type:"checkbox","prop:checked":x,"on:change":b,"on:click":t}),_.D(_.e,{cond:function(){return!(Y==null?0:Y())},
then:function(){return _.D(dHu,{isLeading:!0,selectElementClass:E})}}),_.D(_.e,{cond:function(){return!!J},
then:function(){return _.D("div",{class:"checkbox-shape-wiz__label"},J==null?void 0:J())}}),_.D(_.e,{cond:Y,
then:function(){return _.D(dHu,{isLeading:!1,selectElementClass:E})}})))},"Nc");
YX7.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var dHu=_.xa(function(A){var L=A.selectElementClass;A={};return _.D("div",{class:_.qn("checkbox-shape-wiz__checkbox",L,(A["checkbox-shape-wiz__checkbox--checkbox-default-style"]=function(){return!(L==null?0:L())},A)),
"aria-hidden":"true"},_.D(_.Ky,{icon:_.h("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.D(_.Ky,{icon:_.h("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"Oc");_.WZ=_.xa(function(A){var L=A.name;var O=A.onChange;var X=A.onClick;var x=A.checked;var J=A.labelRenderable;var Y=A.useCheckIcon;var T=A.hasLeadingLabel;var V=A.labelClass;var E=A.isCompact;var n=A.selectElementClass;var t=A.ariaLabel;A=A.className;var b="radio"+_.jr(_.IY),S=_.av("input"),w=_.py(function(a){S.value.checked=!(x==null||!x());O==null||O(a);return!1}),l=_.py(function(a){X==null||X(a);
return!1}),F=_.py(function(a){_.h("enable_ios_webview_radio_button_responsiveness")&&(a.preventDefault(),S.value.click())}),R=_.d(_.uQ(!1,void 0,"nXiHX")),y=R.next().value,M=R.next().value;
R=_.py(function(){var a;((a=_.X5().resolve(_.Ot(_.bv)))==null?0:a.isKeyBoardInUse())&&M(!0)});
var H=_.py(function(){M(!1)}),z={};
return _.D("radio-shape",{class:_.qn("radio-shape-wiz",A)},_.D("input",{el:S,class:"radio-shape-wiz__input",id:b,"prop:checked":x,name:L,type:"radio","on:change":w,"on:click":l,"aria-label":t,"on:focusin":R,"on:focusout":H}),_.D("label",{class:_.qn("radio-shape-wiz__label-container",V,(z["radio-shape-wiz--compact"]=E,z["radio-shape-wiz__label-container--keyboard-focused"]=y,z)),for:b,"on:click":F},_.D(_.e,{cond:function(){return!(T==null?0:T())},
then:function(){return _.D(uUN,{checked:x,useCheckIcon:Y,isLeading:!0,selectElementClass:n})}}),_.D(_.e,{cond:function(){return!!J},
then:function(){return _.D("div",{class:"radio-shape-wiz__label","aria-hidden":function(){return(t==null?0:t())?"true":"false"}},J==null?void 0:J())}}),_.D(_.e,{cond:T,
then:function(){return _.D(uUN,{checked:x,useCheckIcon:Y,isLeading:!1,selectElementClass:n})}})))},"Pc");
_.WZ.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var uUN=_.xa(function(A){var L=A.useCheckIcon;var O=A.selectElementClass;A=function(){return(L==null?0:L())?"CHECK":_.h("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var X={};return _.D("div",{class:_.qn("radio-shape-wiz__radio",O,(X["radio-shape-wiz__radio--check-icon"]=L,X["radio-shape-wiz__radio--radio-default-style"]=function(){return!(O==null?0:O())},X)),
"aria-hidden":"true"},_.D(_.Ky,{icon:A}),_.D(_.Ky,{icon:A,active:function(){return!(L==null?0:L())}}))},"Qc");_.HZ=_.xa(function(A){var L=A.data;var O=A.isMenuItem;var X=A.isCompact;var x=A.onTap;var J=A.trailingAccessory;var Y=A.hideSelectionTextChevron;var T=A.disabled;var V=A.inPopup;var E=A.disableHorizontalPadding;var n=A.isOverlay;A=A.isToggled;var t=_.zJ(function(ur){a:{var eD=L();if((eD==null?0:eD.entitySelectorType)&&(eD==null?0:eD.entityKey))switch(eD.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":ur=_.hwu(ur,eD.entityKey);ur=ur==null?void 0:
ur.value;eD=!1;ur==="CAPTIONS_UNAVAILABLE"&&(eD=!0,ur="");ur=Object.assign({},!!ur&&{selectionText:{content:ur}},!!ur&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:eD});break a;default:ur={}}else ur={}}return ur}),b=function(){return _.h("enable_web_shorts_captions_language_command")?Object.assign({},L(),t()):L()},S=function(){return!(b().isSelected===void 0||!b().selectionStyle||b().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},w=function(){return(_.zP(b().rendererContext)||
x)&&!S()},l={},F=_.qn("yt-list-item-view-model-wiz__container",(l["yt-list-item-view-model-wiz__container--tappable"]=function(){return _.zP(b().rendererContext)||S()},l["yt-list-item-view-model-wiz__container--compact"]=X,l["yt-list-item-view-model-wiz__container--in-popup"]=V,l["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(E==null?void 0:E())&&S()},l)),R=function(){return b().leadingImage||b().leadingAccessory},y=_.qn("yt-list-item-view-model-wiz__image-container",
function(){return R()?"yt-list-item-view-model-wiz__trailing":"yt-list-item-view-model-wiz__leading"});
l=_.py(function(ur){return void(x==null?void 0:x(ur))});
var M=_.Ucs(),H=_.d(_.uQ(!1,void 0,"iQppzc")),z=H.next().value,a=H.next().value,xe={data:b,hideSelectionTextChevron:Y,TrailingAccessory:J,isToggled:A,disabled:T,isSelectItem:S,isCompact:X,inPopup:V,disableHorizontalPadding:E,isTappableWithoutSelect:w};J={};return _.D("yt-list-item-view-model",{el:_.sC(_.Bm(function(){return b().rendererContext}),Tgs(function(){return w==null?void 0:w()},{focusin:function(){var ur;
((ur=_.X5().resolve(_.Ot(_.bv)))==null?0:ur.isKeyBoardInUse())&&a(!0)},
focusout:function(){a(!1)}})),
class:_.qn("yt-list-item-view-model-wiz",(J["yt-list-item-view-model-wiz--is-overlay"]=n,J["yt-list-item-view-model-wiz--keyboard-focused"]=z,J)),role:function(){return(O==null?0:O())?"menuitem":"listitem"},
tabindex:function(){var ur=w();return x||ur?0:void 0},
"on:keydown":M,"on:click":l},_.D(_.e,{cond:S,then:function(){return _.D(_.ik,null,_.D(_.w9,{when:function(){return b().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.D(YX7,{labelRenderable:function(){return _.D(jk,Object.assign({},xe))},
isCompact:X,checked:function(){return b().isSelected},
hasLeadingLabel:function(){return!!R()},
labelClass:F,selectElementClass:y,disableHorizontalPadding:E})}),_.D(_.w9,{when:function(){return b().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.D(_.WZ,{labelRenderable:function(){return _.D(jk,Object.assign({},xe))},
isCompact:X,checked:function(){return b().isSelected},
hasLeadingLabel:function(){return!!R()},
labelClass:F,selectElementClass:y})}),_.D(_.w9,{when:function(){return b().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.D(_.WZ,{labelRenderable:function(){return _.D(jk,Object.assign({},xe))},
isCompact:X,checked:function(){return b().isSelected},
hasLeadingLabel:function(){return!!R()},
labelClass:F,selectElementClass:y,useCheckIcon:!0})}),_.D(_.pB,null,function(){return _.D(jk,Object.assign({},xe))}))},
else:function(){return _.D(jk,Object.assign({},xe))}}))},"Rc");
_.HZ.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};_.Tyg=_.xa(function(A){var L=A.data;var O=A.onTap;var X=A.onSwitch;var x=A.overrideDisabled;A=A.disableHorizontalPadding;var J=_.d(_.Nn(function(){var t;return((t=pSM(n()))==null?void 0:t.switchedOnByDefault)||!1})),Y=J.next().value,T=J.next().value;
J=_.d(_.uQ(!1,void 0,"ZHBkbb"));var V=J.next().value,E=J.next().value,n=function(){var t;if(!(t=L().switchButton)){var b=L();t=x==null?void 0:x();b={switchOnCommand:b.switchOnCommand,switchOffCommand:b.switchOffCommand,switchedOnByDefault:b.switchedOnByDefault,isDisabled:b.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:b.a11yLabelSwitchedOn,a11yLabelSwitchedOff:b.a11yLabelSwitchedOff};t!==void 0&&(b.isDisabled=t);t={switchButtonViewModel:b}}return t};
return _.D("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.D(_.HZ,{data:function(){return{title:L().title,subtitle:L().attributedSubtitle,leadingImage:L().leadingImage,leadingAccessory:L().leadingAccessory,isDisabled:L().isDisabled}},
onTap:function(t){var b=pSM(n());!b||b.isDisabled||L().ignoreTapUntilCommandCompletes&&V()||(O==null||O(t),g7r(b,Y(),t,L().ignoreTapUntilCommandCompletes,E),T(!Y()),X==null||X(Y()))},
trailingAccessory:function(){return _.D(_.ID,{data:n},{switchButtonViewModel:function(t){return _.D(s36,{data:t.data,parentActive:Y,handleOnTapEventInParent:!!O})}})},
disableHorizontalPadding:A}))},"Sc");var V$u=_.xa(function(A){var L=_.d(_.Nn(function(){var x,J;return!!((x=A.data())==null?0:(J=x.initialState)==null?0:J.isToggled)})),O=L.next().value,X=L.next().value;
L=_.py(function(){X(!O())});
return _.D("toggleable-list-item-view-model",{el:_.sC(_.Bm(function(){return A.data().rendererContext})),
class:_.qn("toggleableListItemViewModelHost",A.className),"on:click":L},_.D(_.e,{cond:function(){if(O()){var x=A.data().toggledListItem;x=_.q(x,_.Ku)}else x=A.data().defaultListItem,x=_.q(x,_.Ku);return x},
then:function(x){return _.D(_.HZ,{data:x,isToggled:O,ariaLabel:function(){var J=O()?A.data().toggledListItem:A.data().defaultListItem,Y;J=(Y=_.q(J,_.Ku))==null?void 0:Y.rendererContext;var T;return(T=_.q(J,_.ll))==null?void 0:T.label},
ariaPressed:function(){return O()}})}}))},"Tc");var DH6=_.b3("DOWNLOAD",{},"Download"),e4g=_.b3("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),E0L=_.b3("RETRY",{},"Retry"),n0H=_.b3("PAUSE_DOWNLOADING",{},"Pause downloading"),t$j=_.b3("RESUME_DOWNLOAD",{},"Resume download"),iVe={text:DH6,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},RG={text:e4g,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},K8u={text:E0L,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
NEu={text:n0H,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},rHs={text:t$j,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var bKn=_.xa(function(A){var L=function(){var T=A.data();T=_.Hm(T.rendererContext);var V;return(V=_.q(T,_.g0))==null?void 0:V.videoId},O=_.zJ(function(T){var V=L(),E=cH_(A.data());
return V?_.yi(T,V):E?_.Zn(T,E):"TRANSFER_STATE_UNKNOWN"}),X=_.iS(_.Jas,L),x=_.zJ(function(T){return _.oqe(T,L(),cH_(A.data()))}),J=function(){return lhu(O(),X(),_.Hm(A.data().rendererContext),!!cH_(A.data()))},Y=function(){return x()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.D("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:Y},_.D(_.e,{cond:function(){return!Y()},
then:function(){return _.D(_.e,{cond:J,then:function(T){return _.D(_.g9,{each:T},function(V){return _.D(_.HZ,{data:V,isCompact:A.isCompact,isMenuItem:A.isMenuItem,inPopup:A.inPopup,disableHorizontalPadding:A.disableHorizontalPadding})})}})}}))},"Uc");
bKn.idomCompat=!0;_.h4u=_.xa(function(A){var L=A.data;var O=A.isCompact;var X=A.hideSelectionTextChevron;var x=A.inPopup;var J=A.isOverlay;var Y=A.disableHorizontalPadding;var T=function(){return Cuu(L())&&(x==null?void 0:x())};
A={};return _.D("yt-list-view-model",{class:_.qn("yt-list-view-model-wiz",(A["yt-list-view-model-wiz--kaios-spat-nav"]=Lv&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",A["yt-list-view-model-wiz__collection-thumbnail-class"]=function(){return QCy(L())},A)),
role:function(){return T()?"menu":"list"},
style:_.rl({"max-height":function(){var V,E=(V=L())==null?void 0:V.visibleElementCount;if(E)return QCy(L())?(E+.5)*48+"px":(E+.5)*40+"px"}})},_.D(_.ID,{data:function(){return L().listItems}},{listItemViewModel:function(V){return _.D(_.HZ,{data:V.data,
isMenuItem:T,isCompact:O,hideSelectionTextChevron:X,inPopup:x,isOverlay:J,disableHorizontalPadding:Y})},
toggleableListItemViewModel:function(V){return _.D(V$u,{data:V.data})},
downloadListItemViewModel:function(V){return _.D(bKn,{data:V.data,isMenuItem:T,isCompact:O,inPopup:x,disableHorizontalPadding:Y})},
switchListItemViewModel:function(V){return _.D(_.Tyg,{data:V.data,disableHorizontalPadding:Y})}}))},"Vc");
_.h4u.idomCompat=!0;var SXg=_.xa(function(A){var L=A.data;var O=A.isOverlay;A={};return _.D("yt-course-perks-view-model",{class:_.qn("ytwCoursePerksViewModelHost",(A.ytwCoursePerksViewModelHostOverlay=O,A))},_.D("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.D(_.Xg,{text:function(){return L().title}})),_.D("div",null,_.D(_.e,{cond:function(){return L().perks},
then:function(X){return _.D(_.h4u,{data:function(){return{listItems:X()}},
isCompact:!0,isOverlay:O})}})))},"Wc");_.Y4(SXg,"yt-course-perks-view-model",{props:{data:_.dl,isOverlay:_.dl}});_.Y4(_.xa(function(A){var L=A.data;return _.D("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.D("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.D(_.Xg,{text:function(){return L().title}})),_.D("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.D(_.Xg,{text:function(){return L().progressSummary}})),_.D("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.D("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.rl({width:function(){return L().progressPercentage*100+"%"}})})))},"Xc"),"yt-course-progress-view-model",{props:{data:_.x5}});var qXl=_.xa(function(A){var L={};return _.D("yt-progress-view-model",{class:_.qn("ytwProgressViewModelHost",(L.ytwProgressViewModelHostOverlay=_.LT(A.isOverlay,!1),L))},_.D(_.e,{cond:function(){return A.data().progressSummary},
then:function(O){return _.D("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.D(_.Xg,{text:O}))}}),_.D("div",{class:"ytwProgressViewModelHostProgressContainer"},_.D(_.e,{cond:function(){return A.data().leadingLabel},
then:function(O){return _.D("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.D(_.Xg,{text:O}))}}),_.D("div",{class:"ytwProgressViewModelHostProgressBar"},_.D("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(A.data().progressPercentage||0)*100+"%"}}))))},"Yc");var zz=_.xa(function(A){var L=A.starNumber;var O=A.data;var X=function(){var x;return((x=O())==null?void 0:x.rating)||0};
return _.D(_.e,{cond:function(){return L()},
then:function(x){return _.D(_.ik,null,_.D(_.w9,{when:function(){return X()>=x()-.25}},function(){return _.D("div",{class:"ytStarRatingViewModelHostStar"},_.D(_.Ky,{icon:"STAR_FILLED"}))}),_.D(_.w9,{when:function(){return X()>=x()-.75}},function(){return _.D("div",{class:"ytStarRatingViewModelHostStar"},_.D(_.Ky,{icon:"STAR_HALF"}))}),_.D(_.pB,null,function(){return _.D("div",{class:"ytStarRatingViewModelHostStar"},_.D(_.Ky,{icon:"STAR_BORDER"}))}))}})},"Zc"),g0L=_.xa(function(A){A=A.data;
return _.D("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.D(zz,{starNumber:1,data:A}),_.D(zz,{starNumber:2,data:A}),_.D(zz,{starNumber:3,data:A}),_.D(zz,{starNumber:4,data:A}),_.D(zz,{starNumber:5,data:A}))},"$c");_.Y4(_.xa(function(A){var L=_.OY(A,{}).data;return _.D("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.D("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.D(_.Xg,{text:function(){var O;return(O=L())==null?void 0:O.title}})),_.D("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.D(_.e,{cond:function(){return L().starProgressViewModels},
then:function(O){return _.D("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.D(_.ID,{data:O},{progressViewModel:qXl}))}}),_.D("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.D("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.D(_.Xg,{text:function(){var O;
return(O=L())==null?void 0:O.averageRatingLabel}})),_.D(_.e,{cond:function(){return L().zeroStateText},
then:function(O){return _.D("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.D(_.Xg,{text:O}))}}),_.D(_.e,{cond:function(){return L().starRatingViewModel},
then:function(O){return _.D("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.D(_.ID,{data:O},{starRatingViewModel:g0L}))}}),_.D("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.D(_.Xg,{text:function(){var O;
return(O=L())==null?void 0:O.totalRatingsCountLabel}})))))},"ad"),"yt-course-ratings-view-model",{props:{data:_.dl}});var wc6;wc6={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",name:"LEARNING_JOURNEY_LOADER_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"}};_.pcJ=_.xa(function(A){var L=_.av("yt-learning-journey-loader-view-model"),O=_.S8();_.r9(function(){requestAnimationFrame(function(){var x;(x=O.lottieEl)==null||x.addEventListener("DOMLoaded",function(){var J;(J=A.onLottieLoaded)==null||J.call(A)})});
var X=A.data().browseEndpoint;X&&_.$a(X)});
return _.D("yt-learning-journey-loader-view-model",{class:_.qn("learningJourneyLoaderViewModelHost",A.className),"data-target-id":function(){var X;return((X=A.data)==null?void 0:X.call(A).targetId)||""},
el:L},_.D(_.ER,{className:_.qn("learningJourneyLoaderViewModelLoader",A.className),animationName:function(){return wc6.animationConfig.name},
data:wc6,animationRef:O}))},"bd");_.Y4(_.pcJ,"yt-learning-journey-loader-view-model",{props:{data:_.x5,className:_.dl,onLottieLoaded:_.dl}});var fhJ=new Set,meD=null;_.iK3=_.xa(function(A){var L=null,O=null,X=null,x=function(){return A.data()},J=function(){var R=x();
var y=_.X5().resolve(_.Ot(_.oy));R=y!=null&&y()?R.darkThemeColorPalette:R.lightThemeColorPalette;return{primaryTextColor:mB(R,0),secondaryTextColor:mB(R,1),optionColor:mB(R,2),backgroundColor:mB(R,3),videoBackgroundColor:mB(R,4)}},Y=function(){return!!J().optionColor},T=_.d(_.uQ(-1,void 0,"Tkfl2e")),V=T.next().value,E=T.next().value,n=function(R){return V()===R},t=function(R){return x().correctAnswerIndex===R},b=function(){return V()!==-1},S=function(){return V()===x().correctAnswerIndex},w=_.py(function(){E(-1);
return!1}),l=function(){var R=b(),y=S();
return R?y?264685:264684:264683},F=function(R){return S()&&t(R)};
return _.D("learning-journey-quiz-view-model",{class:_.qn("learningJourneyQuizViewModelHost",A.className),style:_.rl({background:function(){return J().backgroundColor}})},_.D(_.e,{cond:function(){return!!x().video},
then:function(){return _.D("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.rl({background:function(){return J().videoBackgroundColor}})},_.D(_.ID,{data:function(){return x().video}},{lockupViewModel:function(R){return _.D(_.tN,{data:R.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.D("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.D("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.D("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.D(_.e,{cond:function(){return!!x().aiGeneratedQuizLabel},
then:function(){return _.D("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.D(_.Xg,{text:function(){return x().aiGeneratedQuizLabel}}))}}),_.D("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.rl({"align-items":function(){return x().overflowMenu?"start":"center"}})},_.D("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.rl({"min-height":function(){return x().overflowMenu?"48px":"26px"}})},_.D("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
el:_.sC(function(R){_.QZ(l(),R,L,function(y){L=y})}),
style:_.rl({color:function(){return J().primaryTextColor}}),
"client-ve-type":l},_.D(_.Xg,{text:function(){var R=x(),y=b(),M=S();return y&&R.quizType!=="LEARNING_JOURNEY_QUIZ_TYPE_YOUTUTOR"?M?R.successTitle:R.failureTitle:R.questionHeaderText}}))),_.D("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.D(_.e,{cond:b,
then:function(){return _.D("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover",el:_.sC(function(R){_.QZ(264687,R,O,function(y){O=y})}),
"on:click":w,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.D("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.rl({fill:function(){return J().primaryTextColor}})},_.D("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"})))}}),
_.D(_.ID,{data:function(){return x().overflowMenu}},{buttonViewModel:function(R){return _.D(_.gj,{data:R.data})}}))),_.D("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
el:_.sC(function(R){_.QZ(264688,R,X,function(y){X=y})}),
style:_.rl({color:function(){return J().secondaryTextColor}}),
"client-ve-type":264688},_.D(_.Xg,{text:function(){var R=x();return b()?R.explanationText:R.questionSubheaderText}}))),_.D("div",{class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.D(_.g9,{each:function(){return x().optionsData||[]}},function(R,y){var M={};
return _.D("div",{class:_.qn("learningJourneyQuizViewModelHostQuizOptions",(M.learningJourneyQuizViewModelHostQuizHover=function(){return!b()},M.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return F(y())},M.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return!S()&&n(y())},M.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return b()&&!n(y())},M.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=Y,M)),
"on:click":_.py(function(){if(b())return!1;E(y());return!1}),
style:_.rl({background:function(){var H=y();return b()&&n(H)?"":Y()?J().optionColor:"transparent"}}),
role:"button","aria-disabled":b,"tab-index":"0","client-ve-type":264686},_.D(_.e,{cond:b,then:function(){var H={};return _.D("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var z=y();return t(z)?"0 0 24 24":"0 -960 960 960"},
class:_.qn("learningJourneyQuizViewModelHostQuizOptionIcon",(H.learningJourneyQuizViewModelHostQuizOptionIconPulse=function(){return F(y())},H)),
style:_.rl({fill:function(){return J().primaryTextColor}})},_.D("path",{d:function(){var z=y();
return t(z)?"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"}}))}}),_.D(_.Xg,{text:R.optionText}))})))))},"cd");
_.iK3.idomCompat=!0;_.Y4(_.iK3,"learning-journey-quiz-view-model",{props:{data:_.x5,className:_.x5}});var NyN=_.xa(function(A){var L=A.data;return _.D("yt-suspense-view-model",{class:_.qn("ytSuspenseViewModelHost")},_.D(_.ID,{data:function(){var O;return(O=L().config)==null?void 0:O.contents}},{lockupViewModel:_.tN}))},"dd");var rOL=_.xa(function(A){var L=_.OY(A,{palette:void 0,isLastItem:!1}),O=L.palette,X=L.isLastItem,x=function(){return A.data().isHighlighted},J=function(){var V;
return yHu((V=O())==null?void 0:V.iconDisabledColor)},Y=function(){var V;
return yHu((V=O())==null?void 0:V.primaryTitleColor)},T=function(){var V;
return yHu((V=O())==null?void 0:V.secondaryTitleColor)};
L={};return _.D("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.sC(_.Bm(function(){return A.data().rendererContext}))},_.D(_.ID,{data:function(){return A.data().thumbnail}},{thumbnailViewModel:_.s8}),_.D("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.D("div",{class:_.qn("ytMacroMarkerListItemViewModelTimeDescription",(L.ytMacroMarkerListItemViewModelHighlighted=x,L)),
style:_.rl({"background-color":function(){return x()?Y():J()},
color:function(){return x()?"":T()}})},_.D(_.Xg,{text:function(){return A.data().timestamp}})),_.D("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.rl({"background-color":function(){return X()?"transparent":J()}})}),_.D("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(x()?Y():T())}},_.D(_.Xg,{text:function(){return A.data().title}}))))},"ed");_.BZ=_.xa(function(A){function L(Js){y("transform:translateX("+(_.ms("HTML_DIR")==="rtl"?"":"-")+Js+"px)")}
function O(Js){return Math.min(Math.max(Js,0),R()-xe())}
function X(){var Js=z()+ir();return x()?(Math.round(xe()/Js)||1)*Js:0}
var x=function(){return A.data().items||[]},J=function(){return A.data().previousButton},Y=function(){return A.data().nextButton},T=function(){var Js,XL;
return(XL=(Js=A.disableArrows)==null?void 0:Js.call(A))!=null?XL:!1},V=function(){var Js;
return!((Js=A.forceNarrowLayout)==null||!Js.call(A))},E=_.E4(function(){var Js;
return!((Js=A.centerAlignItems)==null||!Js.call(A))&&R()<=xe()},void 0,"DL81uf"),n=_.av("horizontal-shelf-view-model"),t=_.av("div"),b=_.d(_.uQ(0,void 0,"xZFppf")),S=b.next().value,w=b.next().value;
b=_.d(_.uQ(0,void 0,"pH9gvd"));var l=b.next().value,F=b.next().value,R=l;l=_.d(_.uQ("",void 0,"oYcWy"));b=l.next().value;var y=l.next().value;l=_.d(_.uQ(0,void 0,"lI6NJb"));var M=l.next().value,H=l.next().value,z=M;l=_.d(_.uQ(0,void 0,"yPqhW"));M=l.next().value;var a=l.next().value,xe=M;l=_.d(_.uQ(!1,void 0,"u4CvOe"));var ur=l.next().value,eD=l.next().value;l=_.d(_.uQ(0,void 0,"oQOBbe"));M=l.next().value;var gu=l.next().value,ir=M;l=_.d(_.uQ(0,void 0,"fCqgxd"));var SD=l.next().value,HJ=l.next().value;
l=_.d(_.uQ("50%",void 0,"kjP5ke"));var mM=l.next().value,Vu=l.next().value,cn=function(){var Js,XL=(Js=A.data())==null?void 0:Js.responsiveContainerConfiguration,gJ,hk;return XL?v_e(XL==null?void 0:XL.responsiveSize):(hk=(gJ=A.sizing)==null?void 0:gJ.call(A))!=null?hk:"STANDARD"};
l=_.E4(function(){return!T()&&S()>0},void 0,"oVCO3d");
M=_.E4(function(){return!T()&&S()<R()-xe()},void 0,"MQ6Gb");
var Tj=function(){w(O(S()-X()));L(S())},Uu=function(){w(O(S()+X()));
L(S())},Eg=function(){n.value!==null&&NN()},DN;
_.GD(function(){NN();window.ResizeObserver?(DN=new ResizeObserver(_.Gv(Eg,0)),DN.observe(n.value)):window.addEventListener("resize",Eg)});
_.rF(function(){if(window.ResizeObserver){var Js;(Js=DN)==null||Js.disconnect()}else window.removeEventListener("resize",Eg)});
var NN=function(){var Js=n.value.clientWidth,XL=A.includeMargin!==void 0?A.includeMargin():!1,gJ;var hk=A.hasPeek!==void 0?A.hasPeek():!((gJ=A.data())==null||!gJ.hasPeek);Js=_.oD({containerWidth:Js,hasPeek:hk,sizing:cn(),marginSettings:XL?V()?4:1:0});gu(Js.gutter);HJ(Js.margin);H(Js.itemWidth);eD(Js.maxContainerWidth<528||V());a(Js.maxContainerWidth);x()&&F((Js.itemWidth+Js.gutter)*x().length-Js.gutter);if(x()){var hc;if(((hc=A.thumbnailAspectRatio)==null?void 0:hc.call(A))!==void 0){var Wn;Vu(z()/
Ux_((Wn=A.thumbnailAspectRatio)==null?void 0:Wn.call(A))/2+"px")}else Vu("50%")}},bJ={},MN={};
return _.D("horizontal-shelf-view-model",{class:_.qn("ytwHorizontalShelfViewModelHost",A.className),el:n},_.D(_.e,{cond:function(){var Js;return A.data().header&&!((Js=A.horizontalShelfExperiments)==null?0:Js.call(A).hideHeader)},
then:function(){return _.D("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.rl({width:function(){return xe()+"px"},
padding:function(){return"0 "+SD()+"px"}})},_.D(_.ID,{data:function(){return A.data().header}},{sectionHeaderViewModel:function(Js){return _.D(_.b$,{data:Js.data,
disableHorizontalPadding:!0,forceSmallLayout:ur,useResponsiveLayout:!0})}}))}}),_.D("div",{class:_.qn("ytwHorizontalShelfViewModelOuterContainer",(bJ.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return E()},bJ)),
style:_.rl({"margin-top":function(){var Js,XL=A.data().header&&!((Js=A.horizontalShelfExperiments)==null?0:Js.call(A).hideHeader),gJ;return(((gJ=A.ensureMarginTop)==null?0:gJ.call(A))&&!XL?12:0)+"px"}})},_.D("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.rl({width:function(){return xe()+"px"},
padding:function(){return"0 "+SD()+"px"},
overflow:function(){return T()?"auto":"hidden"}})},_.D("div",{class:_.qn("ytwHorizontalShelfViewModelItems",(MN.ytwHorizontalShelfViewModelCenterAlignItems=function(){return E()},MN)),
el:t,style:b},_.D(_.ID,{data:x},{macroMarkerListItemViewModel:function(Js,XL){return _.D("div",{style:_.rl({width:function(){return z()+"px"},
"margin-right":function(){return(XL()===x().length-1?0:ir())+"px"}})},_.D(rOL,{data:Js.data,
palette:_.LT(A.palette),isLastItem:function(){return XL()===x().length-1}}))},
lockupViewModel:function(Js,XL){var gJ=Js.data;return _.D("div",{style:_.rl({width:function(){return z()+"px"},
"margin-right":function(){return(XL()===x().length-1?0:ir())+"px"}})},_.D(_.tN,{data:gJ,
containerType:4,sizing:cn,protectBackground:A.protectBackground,thumbnailFixedWidth:function(){return ZVs(gJ())+"px"},
thumbnailTargetWidth:function(){return ZVs(gJ())}}))},
suspenseViewModel:function(Js,XL){return _.D("div",{style:_.rl({width:function(){return z()+"px"},
"margin-right":function(){return(XL()===x().length-1?0:ir())+"px"}})},_.D(NyN,{data:Js.data}))}}))),_.D(_.e,{cond:l,
then:function(){return _.D("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.rl({top:function(){return mM()}})},_.D(_.ID,{data:J},{buttonViewModel:function(Js){return _.D(_.gj,{data:Js.data,
onClick:Tj})}}))}}),_.D(_.e,{cond:M,
then:function(){return _.D("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.rl({top:function(){return mM()}})},_.D(_.ID,{data:Y},{buttonViewModel:function(Js){return _.D(_.gj,{data:Js.data,
onClick:Uu})}}))}})))},"fd");
_.BZ.idomCompat=!0;var K6L=_.xa(function(A){var L=function(){return A.data().targetId||""},O=function(){var l;
return((l=A.data())==null?void 0:l.expansionEntityKey)||""},X=_.iS(_.hwu,O),x=!0,J=function(){var l;
return((l=X())==null?void 0:l.value)===L()},Y=function(l){_.At(_.NV("stringEntity",O(),{key:O(),
value:l?L():""}))};
_.r9(function(){x=!1;A.data().isExpanded&&Y(!0)});
var T=function(){if(J()){var l=!0;A.onCollapse!==void 0&&(l=A.onCollapse());l&&Y(!1)}else Y(!0)},V=_.py(T),E=function(){var l;
return(((l=A.accordionStyle)==null?void 0:l.call(A))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},n=_.av("div"),t=function(){var l,F;
return(F=(l=_.q(A.data().rendererContext,_.ll))==null?void 0:l.label)!=null?F:""},b=function(){var l,F;
return{disabled:(l=A.hideIfNotExpanded)==null?void 0:l.call(A),ariaHidden:(F=A.hideIfNotExpanded)==null?void 0:F.call(A)}},S={},w={};
return _.D("yt-accordion-item-view-model",{class:_.qn("ytAccordionItemViewModelHost",A.className,(S.ytAccordionItemViewModelExpanded=function(){return J()},S.ytAccordionItemViewModelHidden=function(){var l;
return(l=A.hideIfNotExpanded)==null?void 0:l.call(A)},S.ytAccordionItemViewModelMini=E,S)),
"data-target-id":L},_.D("div",{class:"ytAccordionItemViewModelContainer"},_.D("div",{class:"ytAccordionItemViewModelLeftSection","on:click":V,title:t,"aria-hidden":function(){var l;return(l=A.hideIfNotExpanded)==null?void 0:l.call(A)}},_.D(_.Xg,{text:function(){return A.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:t})),_.D("div",{class:"ytAccordionItemViewModelRightSection"},_.D(_.ID,{data:function(){return J()?A.data().expandButton:A.data().collapseButton}},{buttonViewModel:function(l){return _.D(_.gj,{data:l.data,
className:"ytAccordionItemViewModelToggleButton",onClick:T,buttonOverrides:b})}}))),_.D("div",{class:"ytAccordionItemViewModelContainer"},_.D("div",{class:_.qn("ytAccordionItemViewModelContent",(w.ytAccordionItemViewModelExpandedSubtitle=function(){return J()},w)),
el:n,style:_.rl({"max-height":function(){return x?"auto":J()?n.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!J()}},_.D(_.e,{cond:function(){return!E()},
then:function(){return _.D(_.Xg,{text:function(){return A.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.D(_.ID,{data:function(){return A.data().content}},{horizontalShelfViewModel:function(l){return _.D(_.BZ,{data:l.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"gd");_.GrN=_.xa(function(A){var L=_.d((0,_.oML)(A.data)).next().value,O=function(){return A.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},X=function(){return O()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},x=_.d(_.uQ(!0,void 0,"FVec2e")),J=x.next().value,Y=x.next().value,T=function(){return X()&&J()},V=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){Y(!J())}}},E=_.py(function(){L().onTitleTap&&_.$a(L().onTitleTap||{})});
x={};return _.D("yt-accordion-view-model",{class:_.qn("ytAccordionViewModelHost",(x.ytAccordionViewModelMinimized=function(){return T()},x)),
"data-target-id":function(){return A.data().targetId||""}},_.D(_.e,{cond:function(){return X()||!!L().title},
then:function(){return _.D("div",{class:"ytAccordionViewModelHeader"},_.D("div",{class:"ytAccordionViewModelTitleSection"},_.D("div",{class:"ytAccordionViewModelTitleWrapper"},_.D(_.e,{cond:function(){return!!A.data().headerIcon},
then:function(){return _.D(_.Ky,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var n;return(n=A.data().headerIcon)==null?void 0:n.iconType}})}}),_.D("div",{class:"ytAccordionViewModelTitle",
"on:click":E},_.D(_.Xg,{className:"ytAccordionViewModelTitleText",text:function(){return L().title}})))),_.D("div",{class:"ytAccordionViewModelButtonSection"},_.D(_.e,{cond:X,
then:function(){return _.D(_.xf,{data:V,iconName:function(){return T()?"chevron_down":"chevron_collapse"}})}})))}}),_.D("div",{class:"ytAccordionViewModelContent"},_.D(_.ID,{data:function(){return L().contents}},{accordionItemViewModel:function(n){return _.D(K6L,{data:n.data,
className:"ytAccordionViewModelRow",accordionStyle:O,hideIfNotExpanded:T,onCollapse:function(){return X()?(Y(!0),!1):!0}})}})),_.D("div",null,_.D(_.e,{cond:function(){return!X()&&(!!L().disclaimerFooter||!!L().footer)},
then:function(){return _.D("div",{class:"ytAccordionViewModelFooter"},_.D(_.Xg,{text:function(){return L().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.D(_.ID,{data:function(){return A.data().footer}},{flexibleActionsViewModel:function(n){return _.D(_.yy,{data:n.data,
layout:0})}}))}})))},"hd");_.Y4(_.GrN,"yt-accordion-view-model",{props:{data:_.x5}});_.Y4(_.xa(function(A){var L=null,O=null,X,x=(X=_.X5().resolve(_.Ot(_.oy)))==null?void 0:X(),J=_.d(_.uQ(!1,void 0,"EVXQGb"));X=J.next().value;var Y=J.next().value;J=_.d(_.uQ(!0,void 0,"W9FIJf"));var T=J.next().value,V=J.next().value,E=_.av("textarea",function(F){_.QZ(264503,F,L,function(R){L=R})}),n=function(F){Y(!0);
F={learningJourneyFormData:{query:F}};_.$a(A.data().searchEndpoint||{},{form:{formData:F}});return!1},t=_.py(function(F){F.target.closest("button-view-model")&&Y(!0)});
J=_.py(function(){V(E.value.value.length===0)});
var b=_.py(function(F){if(F.key==="Enter"&&!F.shiftKey&&!T()){var R=F.target;F.preventDefault();n(R.value)}}),S={},w={},l={};
return _.D("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.D("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.D(_.XV,{data:function(){return A.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.D("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.D("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.D("div",{class:_.qn("ytLearningJourneyZeroStateSearchBar",(S.ytLearningJourneyZeroStateSearchBarDark=x,S))},_.D("textarea",{class:_.qn("ytLearningJourneyZeroStateTextInput",(w.ytLearningJourneyZeroStateTextInputDark=x,w)),el:E,"on:keyup":J,"on:keydown":b,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.D("div",{class:_.qn("ytLearningJourneyZeroStateSearchButtonContainer",(l.ytLearningJourneyZeroStateSearchButtonContainerDark=x,l))},_.D(_.gj,{data:function(){return _.q(A.data().searchButton,_.Cu)},
className:"search-button",onClick:function(){return n(E.value.value)},
buttonOverrides:function(){return{disabled:T(),style:x?"mono-inverse":"mono",size:"XL"}}}))),_.D(_.e,{cond:function(){return!!A.data().errorBanner},
then:function(){return _.D("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.sC(function(F){_.QZ(264617,F,O,function(R){O=R})})},_.D(_.ID,{data:function(){return A.data().errorBanner}},{alertBannerViewModel:function(F){return _.D(_.L67,{data:F.data,
"client-ve-type":264617})}}))}})),_.D(_.e,{cond:X,
then:function(){return _.D("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.D(_.ID,{data:function(){return A.data().loader}},{learningJourneyLoaderViewModel:function(F){return _.D(_.pcJ,{data:F.data})}}))},
else:function(){return _.D("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.D(_.e,{cond:function(){return!!A.data().learningJourneyShelf},
then:function(){return _.D("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.D("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return A.data().learningJourneySectionTitle}),_.D(_.ID,{data:function(){return A.data().learningJourneyShelf}},{horizontalShelfViewModel:function(F){return _.D(_.BZ,{data:F.data,
centerAlignItems:!0})}}))}}),_.D("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.D("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return A.data().suggestedJourneySectionTitle}),_.D("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":t},_.D(_.ID,{data:function(){return A.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(F){return _.D(_.yy,{data:F.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"id"),"yt-learning-journey-zero-state",{props:{data:_.x5}});var l53=_.xa(function(A){var L=A.data;return _.D("ytvl-live-leaderboard-item-action-content-view-model",{class:_.qn("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.D(_.Xg,{text:function(){var O;return(O=L())==null?void 0:O.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.D(_.ID,{data:function(){return L().actionButton}},{buttonViewModel:function(O){return _.D(_.gj,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:O.data})}}))},"jd");var cOg=_.xa(function(A){var L=A.data;return _.D("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.qn("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.D(_.Xg,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var O;return(O=L())==null?void 0:O.displayName},
ellipsisTruncate:!0}),_.D(_.ID,{data:function(){return L().badge}},{buttonViewModel:function(O){return _.D(_.gj,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:O.data})}}))},"kd");_.Y4(_.xa(function(A){var L=A.data;return _.D("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.D("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.D(_.Xg,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var O;return(O=L())==null?void 0:O.rank}})),_.D("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.D(_.ID,{data:function(){return L().avatar}},{avatarViewModel:_.fP})),_.D("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.D(_.ID,{data:function(){return L().content}},{liveLeaderboardItemChannelContentViewModel:cOg,
liveLeaderboardItemActionContentViewModel:l53})),_.D(_.Xg,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var O;return(O=L())==null?void 0:O.points}}))},"ld"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.x5}});_.Y4(_.xa(function(A){var L=A.data;return _.D("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.D(_.Xg,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var O,X;return(O=L())==null?void 0:(X=O.ranking)==null?void 0:X.rank}}),_.D("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.D(_.ID,{data:function(){return L().avatar}},{avatarViewModel:_.fP})),_.D(_.Xg,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var O,X;return(O=L())==null?void 0:(X=O.channelContent)==null?void 0:X.channelName}}),_.D(_.Xg,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var O;return(O=L())==null?void 0:O.points}}))},"md"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.x5}});var Cdu=_.xa(function(A){A=_.OY(A,{wrapper:!1}).wrapper;return _.D(_.e,{cond:A,then:function(){return _.D("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.D("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.D("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"nd");
Cdu.idomCompat=!0;var F6L=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],R4N=_.xa(function(A){var L=A.data;var O=_.sC(),X=_.E4(function(){return L().command},void 0,"o6t5Yb");
_.ND(function(){X()&&_.zi(X(),{form:{element:O.value}})},"qIHWLc");
return _.D("div",{el:O,class:"YtQrCodeRendererHostContainer"},_.D(_.e,{cond:function(){return L().qrCodeImage},
then:function(x){return _.D(_.XV,{data:x,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.D(_.e,{cond:function(){return L().spinner},
then:function(){return _.D(Cdu,null)}})}}),_.D(_.e,{cond:function(){return L().label},
then:function(x){return _.D(_.Xg,{text:x,className:"YtQrCodeRendererHostLabel"})}}),_.D(_.e,{cond:function(){return L().labels},
then:function(x){return _.D("div",{class:"YtQrCodeRendererHostLabels"},_.D(_.g9,{each:x},function(J){return _.D(_.Xg,{text:J})}))}}))},"pd");_.Y4(_.xa(function(A){var L=A.data;var O=_.E4(function(){return L().qrEntityKey},void 0,"joYCxd"),X=_.E4(function(){return L().deleteEntityOnDismiss},void 0,"x3yAde"),x=_.E4(function(){return L().command},void 0,"dJe1Re"),J=_.iS(Q2s,O);
A=_.E4(function(){return L().qrCodeImage},void 0,"qM5dZe");
var Y=_.E4(function(){return L().style&&F6L.includes(L().style)},void 0,"CaNEkf"),T=_.Oj({visibilityCallback:function(V){V&&x()&&_.zi(x())},
showOption:{calledOnce:!0,state:"visible"}});_.GD(function(){_.rF(function(){X()&&O()&&_.oJ().dispatch(_.NV("qrCodeEntity",O()))})});
return _.D("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.sC(T)},_.D(_.e,{cond:Y,then:function(){return _.D(_.e,{cond:J,then:function(V){return _.D(R4N,{data:V})}})}}),_.D(_.e,{cond:A,
then:function(V){return _.D(_.XV,{data:V,alt:""})}}))},"od"),"yt-qr-code-renderer",{props:{data:_.x5}});_.Q3N=_.xa(function(A){var L=A.data;var O=A.topbarOffset;var X,x=((X=_.X5().resolve(_.Ot(_.oy)))==null?void 0:X())||!1;return _.D("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var J=L();var Y,T,V=x?(Y=J.config)==null?void 0:Y.darkThemeBackgroundColor:(T=J.config)==null?void 0:T.lightThemeBackgroundColor;J=V?_.Wy(V):void 0;J="background-color: "+J+";";O!==void 0&&(J+="top: -"+O()+"px;");return J},
"aria-hidden":!0},_.D(_.e,{cond:function(){var J,Y,T;return!!((J=L().backgroundImageConfig)==null?0:(Y=J.image)==null?0:(T=Y.sources)==null?0:T.length)},
then:function(){return _.D(_.XV,{data:function(){var J;return(J=L().backgroundImageConfig)==null?void 0:J.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.D("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+jCp(x,L().gradientColorConfig)+";"}}))},"qd");
_.Q3N.idomCompat=!0;var MM=_.xa(function(A){var L=A.className;var O=A.data;var X=A.isOverlay;var x=A.maxLinesOverride;var J=A.useMediumText;var Y=function(){return O().alwaysShowTruncationText},T=function(){return O().truncationText},V=function(){return J!==void 0&&J()?"medium":"small"},E=function(){return X!==void 0&&X()?"overlay":"default"},n=function(){var w,l;
return(l=(w=_.q(O().rendererContext,_.ll))==null?void 0:w.label)!=null?l:""};
A=_.d(_.uQ(!1,void 0,"xVwzHf"));var t=A.next().value,b=A.next().value;A=_.py(function(){O().expandOnTap&&b(!t());return!1});
var S={};return _.D("yt-description-preview-view-model",{el:_.sC(_.Bm(function(){return O().rendererContext})),
class:_.qn("yt-description-preview-view-model-wiz",L,(S["yt-description-preview-view-model-wiz--clickable"]=function(){var w;return!((w=_.q(O().rendererContext,d4p))==null||!w.onTap)},S["yt-description-preview-view-model-wiz--is-overlay"]=X,S)),
"on:click":A},_.D(_.e,{cond:function(){return O().description},
then:function(w){return _.D(_.e,{cond:t,then:function(){var l={};return _.D("div",{class:_.qn("yt-description-preview-view-model-wiz__description",(l["yt-description-preview-view-model-wiz__description--medium-text"]=J,l))},_.D(_.Xg,{text:w}))},
else:function(){return _.D(vkg,{text:w,alwaysShowTruncationText:Y,truncationText:T,maxLines:function(){var l;return(l=x==null?void 0:x())!=null?l:O().maxLines},
textStyle:E,accessibilityLabel:n,textSize:V})}})}}))},"rd");
MM.idomCompat=!0;var mHN=_.xa(function(A){var L=A.data;var O=A.isOverlay;return _.D("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.D("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.D(_.ID,{data:function(){return L().header}},{sectionHeaderViewModel:function(X){return _.D(_.b$,{data:X.data,
isOverlay:O})}})),_.D("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.D(_.ID,{data:function(){return L().channelInfoButtons}},{flexibleActionsViewModel:_.yy})),_.D("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.D(_.ID,{data:function(){return L().description}},{descriptionPreviewViewModel:function(X){return _.D(MM,{data:X.data,
isOverlay:O})}})))},"sd");
mHN.idomCompat=!0;var f5H=_.xa(function(A){var L=A.data;var O={};return _.D("factoid-view-model",{class:_.qn("ytwFactoidViewModelHost",(O.ytwFactoidViewModelHostOverlay=A.isOverlay,O))},_.D(_.Xg,{text:function(){return L().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.D(_.Xg,{text:function(){return L().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"td");
f5H.idomCompat=!0;var I5V=_.xa(function(A){var L=A.data;var O=A.isOverlay;return _.D("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.D(_.ID,{data:function(){return L().factoids}},{factoidViewModel:function(X){return _.D(f5H,{data:X.data,
isOverlay:O})}}))},"ud");
I5V.idomCompat=!0;_.yOn=_.xa(function(A){var L=A.data;var O=A.isOverlay;return _.D("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.D(_.ID,{data:function(){return L().items}},{channelInfoViewModel:function(X){return _.D("div",{class:"ytwCourseMetadataViewModelHostItem"},_.D(mHN,{data:X.data,
isOverlay:O}))},
coursePerksViewModel:function(X){return _.D("div",{class:"ytwCourseMetadataViewModelHostItem"},_.D(SXg,{data:X.data,isOverlay:O}))},
descriptionPreviewViewModel:function(X){return _.D("div",{class:"ytwCourseMetadataViewModelHostItem"},_.D(MM,{data:X.data,isOverlay:O}))},
factoidsRowViewModel:function(X){return _.D("div",{class:"ytwCourseMetadataViewModelHostItem"},_.D(I5V,{data:X.data,isOverlay:O}))},
progressViewModel:function(X){return _.D("div",{class:"ytwCourseMetadataViewModelHostItem"},_.D(qXl,{data:X.data,isOverlay:O}))}}))},"vd");var ZKn=_.xa(function(A){return _.D("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.D(_.ID,{data:function(){return A.data().content}},{courseMetadataViewModel:function(L){return _.D(_.yOn,{data:L.data,
isOverlay:A.isOverlay})},
progressViewModel:function(L){return _.D(qXl,{data:L.data})}}))},"wd");var j3J=_.xa(function(A){var L=A.data;A=A.className;var O=function(){var x;return _.zP((x=L())==null?void 0:x.rendererContext)},X={};
X=(X["dynamic-text-view-model-wiz"]=!0,X["dynamic-text-view-model-wiz--tappable"]=function(){return O()},X);
return _.D("yt-dynamic-text-view-model",{el:_.sC(_.Bm(function(){var x;return(x=L())==null?void 0:x.rendererContext})),
role:function(){return O()?"link":void 0},
tabindex:function(){return O()?0:void 0},
class:_.qn(A,X)},_.D("h1",{class:"dynamic-text-view-model-wiz__h1","aria-label":function(){var x,J,Y;return(Y=(J=_.q((x=L())==null?void 0:x.rendererContext,_.ll))==null?void 0:J.label)!=null?Y:""}},_.D(_.Xg,{text:function(){return L().text},
userInput:!0})))},"xd");
j3J.idomCompat=!0;_.$l=_.xa(function(A){var L=A.data;var O=A.isPositionRelative;var X=_.HVr("(max-width: 527.9px)"),x=function(){var J,Y;return(Y=(J=L())==null?void 0:J.style)!=null?Y:"IMAGE_BANNER_STYLE_FULL_BLEED"};
A={};return _.D("yt-image-banner-view-model",{el:_.sC(_.Bm(function(){var J;return(J=L())==null?void 0:J.rendererContext})),
class:_.qn((A["yt-image-banner-view-model-wiz"]=!0,A["yt-image-banner-view-model-wiz--inset"]=function(){return zIy(x())},A["yt-image-banner-view-model-wiz--position-absolute"]=function(){return _.GV(!0)&&!(O==null?0:O())},A["yt-image-banner-view-model-wiz--small-inset"]=function(){return zIy(x())&&X()},A["yt-image-banner-view-model-wiz--tappable"]=function(){var J;
return _.zP((J=L())==null?void 0:J.rendererContext)},A))},_.D(_.e,{cond:function(){var J;
return(J=L())==null?void 0:J.image},
then:function(){return _.D(_.XV,{data:function(){return L().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.D(_.ID,{data:function(){var J;
return(J=L())==null?void 0:J.overlays}},{thumbnailHoverOverlayViewModel:mL}))},"yd");
_.$l.idomCompat=!0;var W66;W66=_.xa(function(A){var L=A.condition;var O=A.content;return _.D(_.e,{cond:L,then:function(){return _.D("div",{class:"page-header-view-model-wiz__scroll-container"},O())},
else:function(){return O()}})},"zd");
_.HKc=_.xa(function(A){var L=A.data;var O=A.noPadding;var X=A.enableBanner;var x=A.cinematicContainerTopbarOffset;var J=A.allowCinematicContainerOverflow;var Y=A.displayAsSidebar;var T=A.displayAsPanel;var V=A.alwaysUseMediumTextDescription;var E=BEO(),n=function(){return!!L().image||!!L().animatedImage},t=function(){return!!L().background},b=function(){return(Y==null?0:Y())||(T==null?0:T())?1:E()},S=function(){return b()===1},w=function(){return S()||b()===2},l=function(){return b()===4},F=function(){var SD=
L();
var HJ=!!L().heroImage;var mM=b(),Vu=MNy(L()),cn=Y==null?void 0:Y(),Tj=!SD.metadata,Uu;if(Uu=HJ?_.q(SD.heroImage,OO6):_.q(SD.animatedImage||SD.image,OO6)){SD=Uu.style;var Eg=Uu.layoutMode;if(Eg!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(Uu=VPD(TGp(Uu)),HJ)HJ=W8u(mM,SD,Eg,Uu,cn);else b:if(Tj)HJ=mM===1?{size:48}:{size:72};else switch(mM){case 1:HJ={size:72};break b;case 2:HJ={size:120};break b;default:HJ=Vu<4?{size:120}:{size:160}}else HJ=void 0}else HJ={size:0};return HJ};
A={};A=_.qn((A["page-header-view-model-wiz"]=!0,A["page-header-view-model-wiz--no-padding"]=function(){return!(O==null||!O())},A["page-header-view-model-wiz--small-top-padding"]=function(){return S()&&!L().actions&&!(T==null?0:T())||b()===2&&!(n()||L().heroImage)},A["page-header-view-model-wiz--small-bottom-padding"]=function(){return w()&&!L().actions&&!(T==null?0:T())},A["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=function(){return!(J==null?0:J())},A["page-header-view-model-wiz--display-as-sidebar"]=
Y,A));
var R={},y=_.qn((R["page-header-view-model-wiz__page-header-headline"]=!0,R["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=function(){var SD;return(SD=F())==null?void 0:SD.allowFullWidth},R)),M=function(){var SD;
return w()&&!((SD=F())==null?0:SD.allowFullWidth)},H=function(){return S()&&(!!L().heroImage||n())&&MNy(L())>0},z=function(){return H()&&(T==null?void 0:T())};
R={};var a=_.qn((R["page-header-view-model-wiz__page-header-title"]=!0,R["page-header-view-model-wiz__page-header-title--page-header-title-large"]=function(){return!H()},R["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=function(){return H()&&!z()},R["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=z,R["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=t,R));
R={};var xe=_.qn((R["page-header-view-model-wiz__page-header-headline-image"]=!0,R["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!L().heroImage&&w()},R));
R={};var ur=_.qn((R["page-header-view-model-wiz__page-header-banner-container"]=X,R["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=function(){var SD;return(X==null?void 0:X())&&((SD=_.q(L().banner,_.xr6))==null?void 0:SD.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},R));
R={};var eD=_.qn((R["page-header-view-model-wiz__page-header-content-metadata"]=!0,R["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=t,R));R={};var gu=_.qn((R["page-header-view-model-wiz__page-header-flexible-actions"]=!0,R["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!L().metadata||w()},R["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!w()},R));
R={};var ir=_.qn((R["page-header-view-model-wiz__page-header-attribution"]=!0,R["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=t,R));return _.D("yt-page-header-view-model",{class:A},_.D(_.e,{cond:t,then:function(){return _.D("div",{class:"page-header-view-model-wiz__page-header-background"},_.D(_.ID,{data:function(){return L().background}},{cinematicContainerViewModel:function(SD){return _.D(_.Q3N,{data:SD.data,
topbarOffset:x})}}))}}),_.D(W66,{condition:function(){return!(Y==null||!Y())},
content:function(){return _.D("div",{class:"page-header-view-model-wiz__page-header-content"},_.D(_.e,{cond:function(){return(X==null?void 0:X())&&L().banner},
then:function(){return _.D("div",{class:ur},_.D(_.ID,{data:function(){return L().banner}},{imageBannerViewModel:_.$l}))}}),_.D("div",{class:y},_.D(_.e,{cond:n,
then:function(){return _.D(_.ID,{data:function(){var SD;if(!(SD=L().animatedImage)){SD=L();if(n()){var HJ=SD=Object.assign({},SD),mM=b(),Vu=MNy(L()),cn=HJ.image,Tj=_.q(cn,XPc),Uu=Tj==null?void 0:Tj.avatar,Eg=_.q(Uu,_.MV);if(cn&&Uu&&Eg){switch(mM){case 1:Eg.avatarImageSize="AVATAR_SIZE_XL";break;case 2:Eg.avatarImageSize="AVATAR_SIZE_XXL";break;default:Vu<4?Eg.avatarImageSize="AVATAR_SIZE_XXL":Eg.avatarImageSize="AVATAR_SIZE_XXXL"}_.h("web_enable_sink_page_header_view_model")&&(_.Iy(Uu,_.MV,Object.assign({},
Eg)),Tj.avatar=Object.assign({},Uu),_.Iy(cn,XPc,Object.assign({},Tj)),HJ.image=Object.assign({},cn))}}SD=SD.image}return SD}},{contentPreviewImageViewModel:function(SD){return _.D(_.uG,{data:SD.data,
className:xe,imageSizeConfig:F})},
decoratedAvatarViewModel:function(SD){return _.D(_.I4,{data:SD.data,className:xe})}})}}),_.D(_.e,{cond:function(){return!!L().heroImage&&!M()},
then:function(){return _.D(_.ID,{data:function(){return L().heroImage}},{contentPreviewImageViewModel:function(SD){return _.D(_.uG,{data:SD.data,
className:xe,imageSizeConfig:F})}})}}),_.D("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.D(_.e,{cond:function(){return!!L().heroImage&&M()},
then:function(){return _.D("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},_.D(_.ID,{data:function(){return L().heroImage}},{contentPreviewImageViewModel:function(SD){return _.D(_.uG,{data:SD.data,
className:xe,imageSizeConfig:F})}}))}}),_.D(_.ID,{data:function(){return L().title}},{dynamicTextViewModel:function(SD){return _.D(j3J,{data:SD.data,
className:a})}}),_.D(_.ID,{data:function(){return L().metadata}},{contentMetadataViewModel:function(SD){return _.D(_.DR,{data:SD.data,
layout:function(){return S()?1:0},
className:eD,isOverlay:t,useMediumText:l})}}),_.D(_.e,{cond:function(){return L().description&&!S()},
then:function(){return _.D(_.ID,{data:function(){return L().description}},{descriptionPreviewViewModel:function(SD){return _.D(MM,{data:SD.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:t,maxLinesOverride:function(){return S()?void 0:1},
useMediumText:function(){return(V==null?void 0:V())||l()}})}})}}),_.D(_.e,{cond:function(){return L().attribution&&!w()},
then:function(){return _.D(_.ID,{data:function(){return L().attribution}},{attributionViewModel:function(SD){return _.D(Quu,{data:SD.data,
className:ir,useMediumText:l})}})}}),_.D(_.e,{cond:function(){return L().actions&&!w()},
then:function(){return _.D(_.ID,{data:function(){return L().actions}},{flexibleActionsViewModel:function(SD){return _.D(_.yy,{data:SD.data,
layout:function(){return $eD(b())},
className:gu})}})}}))),_.D("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.D(_.e,{cond:function(){return L().description&&S()},
then:function(){return _.D(_.ID,{data:function(){return L().description}},{descriptionPreviewViewModel:function(SD){return _.D(MM,{data:SD.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:t,maxLinesOverride:function(){return S()?void 0:1},
useMediumText:function(){return(V==null?void 0:V())||l()}})}})}}),_.D(_.e,{cond:function(){return L().attribution&&w()},
then:function(){return _.D(_.ID,{data:function(){return L().attribution}},{attributionViewModel:function(SD){return _.D(Quu,{data:SD.data,
className:ir,useMediumText:l})}})}}),_.D(_.e,{cond:function(){return L().actions&&w()},
then:function(){return _.D(_.ID,{data:function(){return L().actions}},{flexibleActionsViewModel:function(SD){return _.D(_.yy,{data:SD.data,
layout:function(){return $eD(b())},
className:gu})}})}})),_.D("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.D(_.ID,{data:function(){return L().bottomMetadataFlexibleContainer}},{flexibleContainer:function(SD){return _.D(ZKn,{data:SD.data,
isOverlay:t})}})))}}))},"Ad");
_.HKc.idomCompat=!0;_.Y4(_.xa(function(A){var L=_.d(_.uQ(!1,void 0,"j5qbkc")),O=L.next().value,X=L.next().value;return _.D("yt-official-card-view-model",{class:_.qn("ytOfficialCardViewModelHost",A.className),style:_.rl({"background-color":function(){var x,J=Uge((x=A.data())==null?void 0:x.backgroundColor);return J?_.Hy(J):void 0}})},_.D(_.ID,{data:function(){return A.data().header}},{pageHeaderViewModel:function(x){return _.D(_.HKc,{data:x.data,
noPadding:!0})}}),_.D(_.ID,{data:function(){return A.data().contents}},{horizontalShelfViewModel:function(x){return _.D(_.BZ,{data:x.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.D(_.e,{cond:O,
then:function(){return _.D("div",{class:"ytOfficialCardViewModelExpandedContent"},_.D(_.ID,{data:function(){return A.data().expandedContents}},{horizontalShelfViewModel:function(x){return _.D(_.BZ,{data:x.data,
sizing:"MINI"})}}),_.D("div",{class:"ytOfficialCardViewModelCollapseButton"},_.D(_.ID,{data:function(){return A.data().collapseButton}},{buttonViewModel:function(x){return _.D(_.gj,{data:x.data,
onClick:function(){X(!O())}})}})))},
else:function(){return _.D("div",{class:"ytOfficialCardViewModelExpandButton"},_.D(_.ID,{data:function(){return A.data().expandButton}},{buttonViewModel:function(x){return _.D(_.gj,{data:x.data,
onClick:function(){X(!O())}})}}))}}))},"Bd"),"yt-official-card-view-model",{props:{data:_.x5,
className:_.x5}});var ahe=_.cm({buttonViewModel:_.gj});_.Xh(k4e);_.tF(k4e,"ytw-search-friction-view-model",{propNames:["data"]});_.aY=_.xa(function(A){var L=_.av("markdown-div"),O,X=(O=_.X5().resolve(_.Ot(_.oy)))==null?void 0:O();_.ND(function(){var x=L.value;var J=new oVV,Y=new Map(J.JSC$10320_sanitizerTable.globalAttributePolicies);Y.set("style",{policyAction:4});J.JSC$10320_sanitizerTable=new l_(J.JSC$10320_sanitizerTable.allowedElements,J.JSC$10320_sanitizerTable.elementPolicies,J.JSC$10320_sanitizerTable.allowedGlobalAttributes,Y,J.JSC$10320_sanitizerTable.globallyAllowedAttributePrefixes);var T=["data-time"];if(T===void 0)Y=
new Set(J.JSC$10320_sanitizerTable.globallyAllowedAttributePrefixes),Y.add("data-"),J.JSC$10320_sanitizerTable=new l_(J.JSC$10320_sanitizerTable.allowedElements,J.JSC$10320_sanitizerTable.elementPolicies,J.JSC$10320_sanitizerTable.allowedGlobalAttributes,J.JSC$10320_sanitizerTable.globalAttributePolicies,Y);else{Y=new Set(J.JSC$10320_sanitizerTable.allowedGlobalAttributes);T=_.d(T);for(var V=T.next();!V.done;V=T.next()){V=V.value;if(V.indexOf("data-")!==0)throw Error("ma`"+V);Y.add(V)}J.JSC$10320_sanitizerTable=
new l_(J.JSC$10320_sanitizerTable.allowedElements,J.JSC$10320_sanitizerTable.elementPolicies,Y,J.JSC$10320_sanitizerTable.globalAttributePolicies,J.JSC$10320_sanitizerTable.globallyAllowedAttributePrefixes)}Y=new Set(J.JSC$10320_sanitizerTable.allowedGlobalAttributes);Y.add("class");J.JSC$10320_sanitizerTable=new l_(J.JSC$10320_sanitizerTable.allowedElements,J.JSC$10320_sanitizerTable.elementPolicies,Y,J.JSC$10320_sanitizerTable.globalAttributePolicies,J.JSC$10320_sanitizerTable.globallyAllowedAttributePrefixes);
_.vf(x,_.$Nu(J.build(),v7D(A.text())));o7p(L.value)},"CUInJc");
O={};return _.D("div",null,_.D("markdown-div",{class:_.qn("ytwMarkdownDivHost",(O.ytwMarkdownDivDark=X,O.ytwMarkdownDivHostSmall=function(){var x;return((x=A.isSmallText)==null?void 0:x.call(A))||!1},O.ytwMarkdownDivHostWrapCodeBlocks=function(){var x;
return((x=A.wrapCodeBlocks)==null?void 0:x.call(A))||!1},O)),
el:L}))},"Cd");
_.aY.idomCompat=!0;var z4g=_.xa(function(A){var L=A.imageData;var O=_.LT(A.isInList,!1),X=function(){return O()?{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 _.D("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.D(_.e,{cond:function(){return L().image},
then:function(x){return _.D(_.XV,{data:x,alt:function(){return X().alt},
contentMode:function(){return X().contentMode},
targetWidth:function(){return X().targetWidth},
targetHeight:function(){return X().targetHeight},
className:function(){return X().className}})}}),_.D("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.D("div",{class:_.qn("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.D(_.Xg,{text:function(){return L().title}})),_.D(_.g9,{each:function(){var x;
return(x=L().description)!=null?x:[]}},function(x){return _.D("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.D(kl,{content:x}))})))},"Dd"),Byc=_.xa(function(A){var L=A.list;
var O=function(){var X;return(X=L().items)!=null?X:[]};
return _.D("div",{class:"ytwGenAiRichTextViewModelListContent"},_.D(_.e,{cond:function(){return L().title},
then:function(X){return _.D("div",{class:_.qn("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.D(_.Xg,{text:X}))}}),_.D(_.e,{cond:function(){return L().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.D("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.D(_.g9,{each:O},function(X){return _.D("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.D(kl,{content:X,isInList:!0}))}))}}),_.D(_.e,{cond:function(){return L().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.D("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.D(_.g9,{each:O},function(X){return _.D("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.D(kl,{content:X,isInList:!0}))}))}}),_.D(_.e,{cond:function(){return L().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.D("div",{class:"ytwGenAiRichTextViewModelImageList"},_.D(_.g9,{each:O},function(X){return _.D("div",{class:"ytwGenAiRichTextViewModelListItem"},_.D(kl,{content:X,isInList:!0}))}))}}))},"Ed"),M$n=_.xa(function(A){var L=A.table;
return _.D("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.D("thead",null,_.D("tr",null,_.D(_.g9,{each:function(){var O,X;return(X=(O=L().header)==null?void 0:O.cells)!=null?X:[]}},function(O){return _.D("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.D(_.g9,{each:function(){return O.contents}},function(X){return _.D(kl,{content:X})}))}))),_.D("tbody",null,_.D(_.g9,{each:function(){var O;
return(O=L().rows)!=null?O:[]}},function(O){return _.D("tr",null,_.D(_.g9,{each:function(){return O.cells}},function(X){return _.D("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.D(_.g9,{each:function(){return X.contents}},function(x){return _.D(kl,{content:x})}))}))})))},"Fd"),kl=_.xa(function(A){var L=A.content;
var O=_.LT(A.isInList,!1),X=function(){var x,J;return(J=(x=L().contentBlock)==null?void 0:x.contents)!=null?J:[]};
return _.D("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.D(_.e,{cond:function(){return L().text},
then:function(x){return _.D(_.Xg,{className:"ytwGenAiRichTextViewModelText",text:x})}}),_.D(_.e,{cond:function(){return L().image},
then:function(x){return _.D(z4g,{imageData:x,isInList:O})}}),_.D(_.e,{cond:function(){return L().list},
then:function(x){return _.D(Byc,{list:x})}}),_.D(_.e,{cond:function(){return L().contentBlock},
then:function(){return _.D("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.D(_.g9,{each:X},function(x){return _.D(kl,{content:x,isInList:!1})}))}}),_.D(_.e,{cond:function(){return L().table},
then:function(x){return _.D(M$n,{table:x})}}))},"Gd"),$H6=_.xa(function(A){var L={};
L=_.gl("ytwGenAiRichTextViewModelHost",(L.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.dN("search_overview_link_style")),L));return _.D("gen-ai-rich-text-view-model",{class:L},_.D(kl,{content:function(){return A.data().content}}))},"Hd");_.Xh(AxD);_.Xh(fv);_.a5J=_.xa(function(A){var L=A.data;var O=function(){var l;return((l=L().loadingUi)!=null?l:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},X=function(){return L().isLoading&&(O()==="UNSPECIFIED"||O()==="GHOST_CARD")},x=function(){return!L().isLoading},J=function(){return!!L().content&&!L().contents},Y=function(){return!!L().contents},T=function(){return!!L().nextQueryButtons},V=function(){return L().isLoading&&O()==="INVISIBLE"},E=function(){var l,F;
return(F=(l=L().headerIcon)==null?void 0:l.iconType)!=null?F:""},n=function(){var l;
return(l=L().content)!=null?l:""},t=function(){return!!L().sourcesSection},b,S=!((b=_.X5().resolve(_.Ot(_.oy)))==null||!b()),w=_.E4(function(){var l=[],F=L().contents;
if(F)for(var R=0;R<F.length;R++){var y=_.q(F&&F[R],TmJ);y&&l.push(y)}return l},void 0,"ycU97e");
_.GD(function(){L().isLoading||_.Rk("so_re",void 0,"search_overview_answer")});
return _.D("ytd-overview-answer-view-model",{class:function(){var l={};l=(l.ytdOverviewAnswerViewModelHost=!0,l.ytdOverviewAnswerViewModelDarkBackground=S&&!V(),l.ytdOverviewAnswerViewModelLightBackground=!S&&!V(),l);return _.gl(l)}},_.D(_.e,{cond:function(){return!V()},
then:function(){return _.D(_.Xs,null,_.D("h2",null,_.D("div",{class:"ytdOverviewAnswerViewModelHeader"},_.D(_.e,{cond:E,then:function(l){return _.D("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.D(_.Ky,{icon:l}))}}),_.D("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.D("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return L().headerText}),_.D("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.D(_.Xg,{text:function(){return L().headerSubtext}}))))),_.D(_.e,{cond:X,
then:function(){return AxD()}}),_.D(_.e,{cond:x,
then:function(){return _.D(_.Xs,null,_.D(_.e,{cond:J,then:function(){return _.D("div",{class:"ytdOverviewAnswerViewModelText"},_.D(_.aY,{text:n,isSmallText:!0}))}}),_.D(_.e,{cond:Y,
then:function(){return _.D("div",{class:"ytdOverviewAnswerViewModelRichText"},_.D(_.g9,{each:w},function(l){return _.D($H6,{data:l})}))}}),_.D(_.e,{cond:T,
then:function(){return _.D("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.D(_.ID,{data:function(){return L().nextQueryButtons}},{buttonViewModel:function(l){return _.D(_.gj,{data:l.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.BZ}))}}),_.D("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.D("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.D(_.e,{cond:function(){return!!_.q(L().likeButtonViewModel,_.WB)&&!!_.q(L().dislikeButtonViewModel,_.jo)},
then:function(){return _.D("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.D(_.jR,{data:function(){return _.q(L().likeButtonViewModel,_.WB)},
disableIconAnimation:!0}),_.D(_.Zm,{data:function(){return _.q(L().dislikeButtonViewModel,_.jo)}}))}})),_.D(_.e,{cond:function(){var l;
return(l=L().sourcesSection)==null?void 0:l.headerText},
then:function(l){return _.D("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.D(_.Xg,{text:l}))}})),_.D(_.e,{cond:t,
then:function(){return _.D("div",{class:"ytdOverviewAnswerViewModelSources"},_.D(_.ID,{data:function(){var l;return(l=L().sourcesSection)==null?void 0:l.sourcesShelf}},{buttonViewModel:_.gj,
horizontalShelfViewModel:function(l){return _.D(_.BZ,{data:l.data,includeMargin:!0,hasPeek:!0})}}))}}),_.D(_.e,{cond:function(){return L().disclaimerText},
then:function(){return _.D("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.D(_.Xg,{text:function(){return L().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"Id");var krn=_.xa(function(A){var L=A.data;var O=A.active;var X=_.av("transcript-segment-view-model");_.ND(function(){var x,J,Y,T=((x=_.X5().resolve(_.Ot(_.oy)))==null?0:x())?(J=L())==null?void 0:J.darkThemeColorPalette:(Y=L())==null?void 0:Y.lightThemeColorPalette;T&&(T.additiveBackground&&X.value.style.setProperty("--timestamp-active-background-color",_.Hy(T.additiveBackground)),T.textSecondary&&X.value.style.setProperty("--timestamp-active-color",_.Wy(T.textSecondary)))},"KHcbwb");
A={};return _.D("transcript-segment-view-model",{class:_.qn("ytwTranscriptSegmentViewModelHost",(A.ytwTranscriptSegmentViewModelHostActive=O,A.ytwTranscriptSegmentViewModelHostModern=_.h("enable_timeline_view_modern_transcript")||_.h("enable_timeline_view_modern_transcript_fe"),A)),el:X},_.D(_.e,{cond:function(){var x;return(x=L())==null?void 0:x.timestamp},
then:function(x){var J={};return _.D("div",{class:_.qn("ytwTranscriptSegmentViewModelTimestamp",(J.ytwTranscriptSegmentViewModelTimestampActive=O,J))},x)}}),_.D(_.Xg,{text:function(){var x,J,Y;
return(Y=(x=L())==null?void 0:x.attributedText)!=null?Y:{content:(J=L())==null?void 0:J.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"Jd");var UH7=_.xa(function(A){var L=A.data;return _.D("div",{class:"yt-video-attributes-section-view-model__header"},_.D("h3",{class:"yt-video-attributes-section-view-model__title"},function(){return L().headerTitle}),_.D(_.e,{cond:function(){return L().headerSubtitle},
then:function(){return _.D("span",{class:"yt-video-attributes-section-view-model__subtitle"},function(){return L().headerSubtitle})}}))},"Kd"),v0N=_.xa(function(A){function L(l){return Math.max(Math.min(l,0),E()-T())}
var O=A.data;var X,x=_.av("div",function(l){if(_.h("web_metadata_carousel_elref_bugfix")){var F=function(){n(l.clientWidth)};
F();window.ResizeObserver&&(X=new ResizeObserver(F),X.observe(l))}}),J=_.av("div",function(l){V(l.scrollWidth)}),Y=_.d(_.uQ(0,void 0,"I9GbH"));
A=Y.next().value;Y=Y.next().value;var T=A,V=Y;Y=_.d(_.uQ(0,void 0,"eQAn5b"));A=Y.next().value;Y=Y.next().value;var E=A,n=Y;A=_.d(_.uQ(0,void 0,"VU3lg"));var t=A.next().value,b=A.next().value;_.GD(function(){if(!_.h("web_metadata_carousel_elref_bugfix")){var l=function(){V(J.value.scrollWidth);n(x.value.clientWidth)};
l();if(window.ResizeObserver){var F=new ResizeObserver(l);F.observe(x.value);_.rF(function(){F.disconnect()})}}});
_.rF(function(){if(_.h("web_metadata_carousel_elref_bugfix")){var l;(l=X)==null||l.disconnect()}});
var S=function(){b(L(t()+E()))},w=function(){b(L(t()-E()))};
return _.D("yt-video-attributes-section-view-model",null,_.D("div",{class:"yt-video-attributes-section-view-model"},_.D(_.e,{cond:function(){return O().headerTitle},
then:function(){return _.D(UH7,{data:O})}}),_.D("div",{class:_.qn("yt-video-attributes-section-view-model__video-attributes","yt-video-attributes-section-view-model__scroll-container"),
el:x},_.D("div",{class:"yt-video-attributes-section-view-model__video-attributes-container",style:_.rl({transform:function(){var l=t();_.ms("HTML_DIR")==="rtl"&&(l*=-1);return"translateX("+l+"px)"}}),
el:J},_.D(_.ID,{data:function(){return O().videoAttributeViewModels}},{videoAttributeViewModel:OSg}))),_.D(_.ID,{data:function(){return O().footerButton}},{buttonViewModel:function(l){return _.D(_.gj,{data:l.data,
className:"yt-video-attributes-section-view-model__footer-button"})}}),_.D(_.e,{cond:function(){return t()<0&&O().previousButton},
then:function(){return _.D("div",{class:"yt-video-attributes-section-view-model__left-arrow"},_.D(_.ID,{data:function(){return O().previousButton}},{buttonViewModel:function(l){return _.D(_.gj,{data:l.data,
onClick:S})}}))}}),_.D(_.e,{cond:function(){return t()>E()-T()&&O().nextButton},
then:function(){return _.D("div",{class:"yt-video-attributes-section-view-model__right-arrow"},_.D(_.ID,{data:function(){return O().nextButton}},{buttonViewModel:function(l){return _.D(_.gj,{data:l.data,
onClick:w})}}))}})))},"Ld");
v0N.idomCompat=!0;var o0c=_.xa(function(A){var L=A.data;var O=A.active;var X={},x={};return _.D("timeline-item-view-model",{class:_.qn("ytwTimelineItemViewModelHost",(X.ytwTimelineItemViewModelHostChapterChild=A.chapterChild,X.ytwTimelineItemViewModelModern=_.h("enable_timeline_view_modern_transcript")||_.h("enable_timeline_view_modern_transcript_fe"),X))},_.D("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.D("div",{class:_.qn("ytwTimelineItemViewModelTimestamp",(x.ytwTimelineItemViewModelTimestampActive=
O,x))},function(){return L().timestamp})),_.D("div",{class:"ytwTimelineItemViewModelContentItems"},_.D(_.ID,{data:function(){return L().contentItems}},{transcriptSegmentViewModel:function(J){return _.D(krn,{data:J.data,
active:O})},
videoAttributesSectionViewModel:v0N})))},"Md");var Avu=_.xa(function(A){var L=A.data;A={};return _.D("timeline-chapter-view-model",{class:_.qn("ytwTimelineChapterViewModelHost")},_.D("div",{class:_.qn("ytwTimelineChapterViewModelTitle",(A.ytwTimelineChapterViewModelModern=_.h("enable_timeline_view_modern_transcript")||_.h("enable_timeline_view_modern_transcript_fe"),A))},function(){return L().title}),_.D(_.ID,{data:function(){return L().contents}},{timelineItemViewModel:function(O){return _.D(o0c,{data:O.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(O){return _.D(v0N,{data:O.data})}}))},"Nd");var L5l=_.xa(function(A){var L=A.data;var O=_.av("macro-markers-panel-item-view-model"),X=_.iS(_.ljp,function(){var J;return(J=L().markersEngagementPanelSyncEntityKey)!=null?J:""}),x=function(){var J;
return((J=X())==null?void 0:J.activeItemIndex)===L().index};
A=_.py(function(J){var Y,T,V,E,n;return _.u(function(t){if(t.nextAddress==1)return J.stopPropagation(),_.Wm(_.j8(J),O.value,["A".toString(),"BUTTON".toString()])?t.return():(Y=_.HR(L().onTap))?t.yield(_.bS(),2):t.return();T=t.yieldResult;E=(V=_.q(Y,_.$O))==null?void 0:V.startTimeSeconds;E===void 0||(n=T)!=null&&n.seekTo(E,!0);_.qo(t)})});
return _.D("macro-markers-panel-item-view-model",{class:_.qn("ytwMacroMarkersPanelItemViewModelHost",{"is-active":x}),el:O,"on:click":A,tabindex:0},_.D(_.ID,{data:function(){var J;return(J=L())==null?void 0:J.item}},{timelineChapterViewModel:function(J){return _.D(Avu,{data:J.data,
active:x})},
timelineItemViewModel:function(J){return _.D(o0c,{data:J.data,active:x})},
videoAttributeViewModel:OSg}))},"Od");
L5l.idomCompat=!0;_.Y4(L5l,"macro-markers-panel-item-view-model",{props:{data:_.x5}});_.Y4(v0N,"yt-video-attributes-section-view-model",{props:{data:_.x5}});var OiH=_.xa(function(A){var L=function(){var O,X,x;return(x=(O=A.data().leadingLogoAccessibility)==null?void 0:(X=O.accessibilityData)==null?void 0:X.label)!=null?x:""};
return _.D("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.D(_.e,{cond:function(){return A.data().leadingLogo},
then:function(O){return _.D(_.XV,{className:"ytwFantasySectionHeaderViewModelLogo",data:O,alt:L})}}),_.D("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.D(_.Xg,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return A.data().title}}),_.D(_.Xg,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return A.data().subtitle}})),_.D(_.ID,{data:function(){return A.data().trailingButton}},{buttonViewModel:function(O){return _.D(_.gj,{data:O.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"Pd");var X8V=_.xa(function(A){var L={};L=_.qn("ytwFantasyTeamViewModelHost",(L.ytwFantasyTeamViewModelCompact=function(){var x;return!((x=A.compact)==null||!x.call(A))},L.ytwFantasyTeamViewModelUser=function(){return A.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},L.ytwFantasyTeamViewModelOpponent=function(){return A.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},L));
var O=function(){var x,J,Y;return(Y=(x=A.data().teamLogoAccessibility)==null?void 0:(J=x.accessibilityData)==null?void 0:J.label)!=null?Y:""},X=_.iS(C7P,function(){return A.data().teamEntityKey});
return _.D("ytw-fantasy-team-view-model",{class:L},_.D(_.e,{cond:function(){return A.data().teamLogo},
then:function(x){return _.D(_.XV,{className:"ytwFantasyTeamViewModelLogo",data:x,alt:O})}}),_.D("div",{class:"ytwFantasyTeamViewModelMetadata"},_.D("div",{class:"ytwFantasyTeamViewModelHeader"},_.D(_.Xg,{className:"ytwFantasyTeamViewModelScore",
text:function(){var x;return(x=X())==null?void 0:x.score}}),_.D(_.Ky,{icon:function(){var x;
return(x=X())==null?void 0:x.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.D(_.Xg,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var x;return(x=X())==null?void 0:x.projectedScore}})),_.D(_.Xg,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return A.data().primaryText}}),_.D(_.Xg,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return A.data().secondaryText}}),_.D(_.Xg,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return A.data().tertiaryText}})),_.D(_.Xg,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var x;return(x=X())==null?void 0:x.score}}))},"Qd");_.Y4(_.xa(function(A){return _.D("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.D("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.D(_.ID,{data:function(){return A.data().summaryHeader}},{fantasySectionHeaderViewModel:OiH})),_.D(_.ID,{data:function(){return A.data().userTeam}},{fantasyTeamViewModel:X8V}),_.D(_.ID,{data:function(){return A.data().opponentTeam}},{fantasyTeamViewModel:X8V}))},"Rd"),"fantasy-league-summary-view-model",{props:{data:_.x5}});var xhj=_.xa(function(A){var L=_.OY(A,{shape:{},useCustomTabRenderable:!1}),O=L.shape;L=L.useCustomTabRenderable;var X=A.customTabRenderable,x=function(){return O().disabled},J=function(){return O().selected},Y=function(){return O().title},T=function(){return O().icon},V=_.av("yt-tab-shape");
A=_.py(function(t){var b;if(!x()&&((b=O().aTagConfig)==null?0:b.onclick))O().aTagConfig.onclick(t);return!1});
var E=_.py(function(t){if(t.key==="Enter"||t.key==="ArrowUp"||t.key==="ArrowDown")t.preventDefault(),V.value.click();return!1}),n={};
return _.D("yt-tab-shape",{class:_.qn("yt-tab-shape-wiz",function(){return O().className},(n["yt-tab-shape-wiz__tab--last-tab"]=function(){return O().isLastTab},n["yt-tab-shape-wiz--host-disabled"]=x,n["yt-tab-shape-wiz--host-clickable"]=!X,n)),
role:X?void 0:"tab","aria-selected":J!=null?J:!1,"aria-disabled":x,tabindex:X?void 0:0,"on:click":A,"on:keydown":E,el:V,"tab-identifier":function(){return O().identifier},
"tab-title":Y},_.D(_.e,{cond:L,then:function(){return X()},
else:function(){var t={},b={};return _.D(_.Xs,null,_.D("div",{class:_.qn("yt-tab-shape-wiz__tab",(t["yt-tab-shape-wiz__tab--tab-selected"]=J,t))},_.D(_.e,{cond:T,then:function(S){return _.D(_.Ky,{className:"yt-tab-shape-wiz__tab-icon",icon:function(){return S().iconType}})}}),Y),_.D("div",{class:_.qn("yt-tab-shape-wiz__tab-bar",(b["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=J,b))}))}}))},"Sd");
xhj.idomCompat={callbacks:{customTabRenderable:!0}};_.Jvn=_.xa(function(A){var L=A.shape;A=_.d(_.uQ(48,void 0,"r9IBlb"));var O=A.next().value,X=A.next().value;A=_.d(_.uQ(0,void 0,"Bd7rmd"));var x=A.next().value,J=A.next().value,Y=function(){return L().tabs},T=_.av("yt-tab-group-shape"),V=function(){var E,n;
return(n=(E=Y())==null?void 0:E.findIndex(function(t){return t.selected}))!=null?n:-1};
_.GD(function(){var E=T.value.querySelectorAll("yt-tab-shape"),n=V()>-1?E[V()]:void 0;_.c1.addJob(function(){X((n==null?void 0:n.getBoundingClientRect().width)||0)},8,0)});
_.ND(function(){var E=V(),n=_.c1.addJob(function(){var t,b=((t=T.value)==null?void 0:t.querySelectorAll("yt-tab-shape"))||[],S;X(((S=E>-1?b[E]:void 0)==null?void 0:S.getBoundingClientRect().width)||0);for(S=t=0;S<E;S++)t+=b[S].offsetWidth+24;_.ms("HTML_DIR")==="rtl"&&(t=-t);J(t)},8,0);
_.rF(function(){_.c1.cancelJob(n)})},"EHixkc");
A={};return _.D("yt-tab-group-shape",{class:_.qn("yt-tab-group-shape-wiz",(A["yt-tab-group-shape-wiz--overflow-hidden"]=function(){return L().isOverflowHidden},A)),
el:T},_.D(_.e,{cond:Y,then:function(E){return _.D(_.Xs,null,_.D("div",{class:"yt-tab-group-shape-wiz__tabs",role:"tablist"},_.D(_.g9,{each:E},function(n,t){return _.D(xhj,{shape:function(){return Object.assign({},n,{isLastTab:t()===E().length-1})},
customTabRenderable:n.customTabRenderable,useCustomTabRenderable:!!n.customTabRenderable})})),_.D(sbJ,{width:O,
sliderOffset:x}))}}))},"Td");
_.Jvn.idomCompat=!0;var sbJ=_.xa(function(A){var L=_.LT(A.sliderOffset,0),O=A.width;return _.D("div",{class:"yt-tab-group-shape-wiz__slider",style:_.rl({width:function(){return O()+"px"},
transform:function(){return"translateX("+L()+"px)"}})})},"Ud");var PpN=_.xa(function(A){var L=function(){var J,Y,T;return(T=(J=A.data().playerLogoAccessibility)==null?void 0:(Y=J.accessibilityData)==null?void 0:Y.label)!=null?T:""},O=_.iS(F3O,function(){return A.data().playerEntityKey}),X={};
X=_.qn("ytwFantasyPlayerViewModelHost",(X.ytwFantasyPlayerViewModelPlaying=function(){var J;return!((J=O())==null||!J.isPlayerPlaying)},X.ytwFantasyPlayerViewModelOnField=function(){var J;
return((J=O())==null?void 0:J.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},X.ytwFantasyPlayerViewModelRedZone=function(){var J;
return((J=O())==null?void 0:J.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},X));
var x=function(){var J,Y,T,V=((J=_.X5().resolve(_.Ot(_.oy)))==null?0:J())?(Y=A.data().playerLogoBackgroundColor)==null?void 0:Y.darkTheme:(T=A.data().playerLogoBackgroundColor)==null?void 0:T.lightTheme;return V===void 0?"":_.Hy(V)};
return _.D("ytw-fantasy-player-view-model",{class:X},_.D(_.e,{cond:function(){return A.data().playerLogo},
then:function(J){return _.D("div",{class:"ytwFantasyPlayerViewModelLogo"},_.D("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.D(_.XV,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.rl({"background-color":x}),data:J,alt:L})),_.D("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.D(_.Ky,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.D("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.D("div",{class:"ytwFantasyPlayerViewModelHeader"},_.D(_.Xg,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var J;return(J=A.data())==null?void 0:J.playerNameText}}),_.D(_.Xg,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var J;return(J=A.data())==null?void 0:J.playerDescriptionText}})),_.D("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.D(_.Xg,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var J;return(J=O())==null?void 0:J.gamePeriodText}}),_.D(_.Xg,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var J;return(J=A.data())==null?void 0:J.opponentTeamText}}),_.D(_.Xg,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var J;return(J=O())==null?void 0:J.gameStatusText}}),_.D(_.Xg,{className:_.qn("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var J;return(J=O())==null?void 0:J.playerStatusText}})),_.D("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.D(_.Xg,{text:function(){var J;
return(J=O())==null?void 0:J.playerStatsText}}))),_.D(_.Xg,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var J;return(J=O())==null?void 0:J.fantasyScore}}))},"Vd");var dhn=_.xa(function(A){return _.D("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.D(_.e,{cond:function(){return A.data().players},
then:function(L){return _.D(_.ID,{data:L},{fantasyPlayerViewModel:PpN})}}))},"Wd");var YxJ=_.xa(function(A){var L=_.d(_.Nn(function(){var x;return(x=A.data().selectedTabIdentifierKey)!=null?x:""})),O=L.next().value,X=L.next().value;
_.r9(function(){var x;(x=A.setSelectedTabSignal)==null||x.call(A,O)});
return _.D("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.D("div",{class:"ytTabbedViewModelTabGroup"},_.D(_.Jvn,{shape:function(){var x=A.data(),J=[],Y={tabs:J};if(!x.tabs)return Y;x=_.d(x.tabs);for(var T=x.next(),V={};!T.done;V={tabViewModel:void 0},T=x.next())if(V.tabViewModel=_.q(T.value,wPN),V.tabViewModel){var E=T=void 0;J.push({aTagConfig:{onclick:function(n){return function(){var t;X((t=n.tabViewModel.tabIdentifier)!=null?t:"")}}(V)},
identifier:V.tabViewModel.tabIdentifier,selected:O()===V.tabViewModel.tabIdentifier,title:(E=(T=V.tabViewModel.title)==null?void 0:T.content)!=null?E:""})}return Y}})),_.D(_.ID,{data:function(){var x,J=_.d((x=A.data().tabs)!=null?x:[]);
for(x=J.next();!x.done;x=J.next())if((x=_.q(x.value,wPN))&&x.tabIdentifier===O())return x.content}},{fantasyRosterViewModel:dhn}))},"Xd");_.Y4(_.xa(function(A){var L=_.d(LHu()),O=L.next().value,X=L.next().value;return _.D("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.D(_.Xg,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return A.data().title}}),_.D(_.e,{cond:function(){return A.data().tabbedViewModel},
then:function(x){return _.D(_.ID,{data:x},{tabbedViewModel:function(J){return _.D(YxJ,{data:J.data,setSelectedTabSignal:X})}})}}),_.D(_.e,{cond:function(){var x,J=(x=_.q(A.data().tabbedViewModel,pPu))==null?void 0:x.tabs;
x=_.q(J==null?void 0:J[0],wPN);J=_.q(J==null?void 0:J[1],wPN);var Y=x==null?void 0:x.tabIdentifier;if(O()===Y){var T,V;if(!((T=_.q(x==null?void 0:x.content,nxN))==null?0:(V=T.players)==null?0:V.length))return A.data().noUserTeamPlayersText}else{var E,n;if(!((E=_.q(J==null?void 0:J.content,nxN))==null?0:(n=E.players)==null?0:n.length))return A.data().noOpponentTeamPlayersText}},
then:function(x){return _.D(_.Xg,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:x})}}))},"Yd"),"ytw-fantasy-matchup-view-model",{props:{data:_.x5}});_.Y4(_.xa(function(A){return _.D("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.D(_.Xg,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return A.data().title}}),_.D(_.e,{cond:function(){return A.data().matchupTeamPairs},
then:function(L){return _.D(_.g9,{each:L,keyBy:"INDEX"},function(O){return _.D("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.D(_.ID,{data:function(){return[O().firstTeam,O().secondTeam]}},{fantasyTeamViewModel:function(X){return _.D(X8V,{data:X.data,
compact:!0})}}))})}}))},"Zd"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.x5}});_.Y4(_.xa(function(A){var L=function(){var x,J,Y;return(Y=(x=A.data().userLogoAccessibility)==null?void 0:(J=x.accessibilityData)==null?void 0:J.label)!=null?Y:""},O=function(){var x,J,Y;
return(Y=(x=A.data().opponentLogoAccessibility)==null?void 0:(J=x.accessibilityData)==null?void 0:J.label)!=null?Y:""},X=_.iS(cJJ,function(){return A.data().entityKey});
return _.D("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.D("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.D(_.e,{cond:function(){return A.data().userLogo},
then:function(x){return _.D(_.XV,{className:"ytwFantasyWinProbabilityViewModelLogo",data:x,alt:L})}}),_.D("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.D(_.Xg,{text:function(){return A.data().title}})),_.D(_.e,{cond:function(){return A.data().opponentLogo},
then:function(x){return _.D(_.XV,{className:"ytwFantasyWinProbabilityViewModelLogo",data:x,alt:O})}})),_.D("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.D("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.D(_.Xg,{text:function(){var x;
return(x=X())==null?void 0:x.userWinNumberLabel}})),_.D("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.D("div",{class:_.qn("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.rl({flex:function(){var x,J;return(J=(x=X())==null?void 0:x.userWinNumber)!=null?J:50}})}),_.D("div",{class:_.qn("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.rl({flex:function(){var x,J;return(J=(x=X())==null?void 0:x.opponentWinNumber)!=null?J:50}})})),_.D("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.D(_.Xg,{text:function(){var x;
return(x=X())==null?void 0:x.opponentWinNumberLabel}}))))},"$d"),"fantasy-win-probability-view-model",{props:{data:_.x5}});var uv7={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},Tej=_.xa(function(A){return _.D(_.ID,{data:A.button},{buttonViewModel:function(L){return _.D(_.gj,{data:L.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"ae"),VaH=_.xa(function(A){return _.D("ytd-backstage-locked-post-view-model",{class:_.qn("ytdBackstageLockedPostViewModelHost",A.className)},_.D("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.D("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.D(_.ID,
{data:function(){return A.data().authorAvatar}},{decoratedAvatarViewModel:_.I4})),_.D("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.D("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.D(_.Xg,{text:function(){return A.data().authorText}})),_.D("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.D(_.Xg,{text:function(){return A.data().publishedTimeText}}),_.D(_.ID,{data:function(){return A.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(L){return _.D(I8u,
{data:L.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.D("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.D(_.Xg,{text:function(){return A.data().contentText}})),_.D(_.ik,null,_.D(_.w9,{when:function(){return A.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.D("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.D(_.XV,{data:uv7,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.D(_.Xg,{text:function(){return A.data().lockedText}}))}),_.D(_.w9,{when:function(){return A.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.D("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.D("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.D(_.XV,{data:uv7,
alt:""})),_.D(_.Xg,{text:function(){return A.data().lockedText}}))})),_.D("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.D(Tej,{button:function(){return A.data().likeButton}}),_.D("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return A.data().voteCountA11y}},_.D(_.Xg,{text:function(){return A.data().voteCount}})),_.D(Tej,{button:function(){return A.data().dislikeButton}}),_.D(Tej,{button:function(){return A.data().commentButton}}),_.D("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return A.data().commentCountA11y}},_.D(_.Xg,{text:function(){return A.data().commentCount}}))))},"be");
VaH.idomCompat=!0;_.Y4(VaH,"ytd-backstage-locked-post-view-model",{props:{data:_.x5,className:_.x5}});_.y3("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var UV=function(){var A=_.G.apply(this,arguments)||this;A.darkerPanels=_.h("web_watch_darker_panels");A.commentsHidePanelButton=!1;A.isWatchGrid=!1;A.continuationShowButton=!1;A.isSearch=!1;A.isConstrainedList=!1;A.isWatch=!1;A.eligibleToSwitchToGrid=!1;A.useBigThumbs=!1;A.notSticky=!1;A.epRestyle=!1;A.isCarouselInFeed=!0;A.topSpacingZero=!1;A.continuationIsInitialLoad=!0;A.enableSqueezebackPanels=_.h("web_shorts_enable_squeezeback_panels");A.enableAnchoredPanel=_.h("desktop_shorts_v2_anchored_panel");
A.mastheadHeight=0;A.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};A.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return A};
_.g(UV,_.G);_.P=UV.prototype;_.P.updateLockupContainerTypes=function(A){if(this.eligibleToSwitchToGrid){var L;(L=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||L.forEach(function(O){O.containerType=A})}};
_.P.getItemsPath=function(){return"data.contents"};
_.P.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.P.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstageLockedPostViewModel:"ytd-backstage-locked-post-view-model",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:{component:"ytd-channel-featured-content-renderer",properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupContainerType:"[[lockupContainerType]]"}},channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",
commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",compactVideoRenderer:"ytd-compact-video-renderer",
compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",faqSectionRenderer:"yt-faq-section-renderer",
fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",
handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",
horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",labsItemRenderer:"ytd-labs-item-renderer",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",
messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",
offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",
premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",
redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",
searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:{component:"yt-section-header-view-model",properties:{className:"[[is]]"},params:{disableHorizontalPadding:!0,disableVerticalPadding:!0}},settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",
showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",
unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",
primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",
listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",
properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},
learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.h("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.h("kevlar_low_priority_continuation")}}};
_.P.created=function(){};
_.P.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.P.handleIntersect=function(A){this.notSticky=A[0].intersectionRatio===1};
_.P.attached=function(){var A=this;document.addEventListener("scroll",_.tT(this,this.updateHeaderState));var L;this.mastheadHeight=((L=document.querySelector("ytd-masthead"))==null?void 0:L.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(O){A.handleIntersect(O)},{rootMargin:"-"+(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){A.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))};
_.P.detached=function(){document.removeEventListener("scroll",_.tT(this,this.updateHeaderState));var A;(A=this.intersectionObserver)==null||A.disconnect();var L;(L=this.resizeObserver)==null||L.disconnect()};
_.P.updated=function(A){A.has("data")&&this.updateHeaderState()};
_.P.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(mLV(!this.notSticky))};
_.P.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var A=_.YJ(this.hostElement).querySelector("ytd-comments-header-renderer");A&&(A.hidePanelButton=this.commentsHidePanelButton)}};
_.P.onRetrieveLocation=function(A,L){this.containsComments()&&(this.firstCommentsLoaded=L.hasComments=!0)};
_.P.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.P.onLoadReloadContinuation=function(A,L){var O=this;A.stopPropagation();this.isReloading=!0;_.P4(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(X){var x=_.X5().resolve(_.f3);X=L(X);x.postData(X).then(function(J){O.onReloadContinuationData(J)})}})};
_.P.onReloadContinuationData=function(A){if(A=this.get("response.continuationContents.itemSectionContinuation",A)||this.get("response.contents.itemSectionRenderer",A)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",A)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",A))this.set("data.contents",A.contents||A.results),A.header&&this.set("data.header",A.header),this.set("data.continuations",
A.continuations||[]);this.isReloading=!1};
_.P.computeContentsClass=function(A){return A?"reloading":""};
_.P.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.P.computeSectionIdentifier=function(A){return A==null?void 0:A.sectionIdentifier};
_.P.computeFitContainer=function(A){return(A==null?void 0:A.sectionIdentifier)==="youchat-item-section"};
_.P.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.h("kevlar_disable_comments_auto_load")};
_.P.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.P.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.P.computeHasDestinationShelfRenderer=function(A){var L,O;return!!(A==null?0:(L=A.contents)==null?0:(O=L[0])==null?0:O.destinationShelfRenderer)};
_.P.computeHasSectionGroupViewModel=function(A){var L,O;return!!(A==null?0:(L=A.contents)==null?0:(O=L[0])==null?0:O.sectionGroupViewModel)};
_.P.computeHasQrCodeRenderer=function(A){var L,O;return!!(A==null?0:(L=A.contents)==null?0:(O=L[0])==null?0:O.qrCodeRenderer)};
_.P.computeStaticCommentsHeader=function(A){return A&&this.containsComments()};
_.P.computeEpRestyle=function(A){return _.h("web_ep_restyling")&&A&&this.containsComments()};
_.P.computeIsContinuationCommentSection=function(A){return(A==null?void 0:A.targetId)==="shorts-engagement-panel-comments-section"||(A==null?void 0:A.targetId)==="comments-section"||(A==null?void 0:A.targetId)==="engagement-panel-comments-section"};
_.P.computeSuppressPaddingDisclaimer=function(){var A,L,O,X;return!!((A=this.data)==null?0:(L=A.contents)==null?0:(O=L[0])==null?0:(X=O.productListHeaderRenderer)==null?0:X.suppressPaddingDisclaimer)};
_.P.computeHeaderStyle=function(A){switch(A==null?void 0:A.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.P.dataChanged=function(){this.firstCommentsLoaded=!1};
_.P.observeDataContentsLength=function(){var A,L;((A=this.data)==null?0:(L=A.contents)==null?0:L.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.P.onYtDismissibleItemDismissedChange=function(A){this._setItemDismissed(A.type==="yt-dismissible-item-dismissed")};
_.P.triggerContinuations=function(){for(var A=_.YJ(this.hostElement).querySelector("#continuations").children,L=0;L<A.length;L++)A[L].trigger()};
_.P.triggerInitialContinuations=function(){for(var A=_.YJ(this.hostElement).querySelector("#continuations").children,L=0;L<A.length;L++)A[L].triggerIfNotPreviouslyTriggered()};
_.P.handleYtItemSectionContinuation=function(A,L){var O;L&&((O=this.data)==null?void 0:O.sectionIdentifier)!==L||(this.set("data.continuations",[A]),this.triggerContinuations())};
_.P.handleYtItemSectionReplace=function(A,L){var O;L&&((O=this.data)==null?void 0:O.sectionIdentifier)!==L||(this.set("data.contents",A),this.set("data.continuations",[]))};
_.P.computeUseHeightHack=function(A){return A&&!_.h("kevlar_disable_height_hack")};
_.P.computeTopSpacingZero=function(A){return A};
_.P.continuationShowButtonChanged=function(){var A=_.YJ(this.hostElement).querySelector("ytd-continuation-item-renderer");A&&(A.showButton=this.continuationShowButton)};
_.P.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.A3("data-changed",this.data))};
_.v2.Object.defineProperties(UV.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.h("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
thumbnailTargetWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&this.containerWidth?this.containerWidth/2:void 0}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var A,L,O;return!!((A=this.data)==null?0:(L=A.contents)==null?0:(O=L[0])==null?0:O.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var A,L,O,X,x,J,Y;return!!((A=this.data)==null?0:(L=A.contents)==null?0:(O=L[0])==null?0:(X=O.shelfRenderer)==null?0:(x=X.content)==null?0:(J=x.gridRenderer)==null?0:(Y=J.targetId)==null?0:Y.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var A,L,O;return!!((A=this.data)==null?0:(L=A.contents)==null?0:(O=L[0])==null?0:O.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var A,L,O;return!!((A=this.data)==null?0:(L=A.contents)==null?0:(O=L[0])==null?0:O.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.dN("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.h("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.h("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
UV.prototype.dataChangedForBinding=UV.prototype.dataChangedForBinding;UV.prototype.continuationShowButtonChanged=UV.prototype.continuationShowButtonChanged;UV.prototype.onYtDismissibleItemDismissedChange=UV.prototype.onYtDismissibleItemDismissedChange;UV.prototype.observeDataContentsLength=UV.prototype.observeDataContentsLength;UV.prototype.dataChanged=UV.prototype.dataChanged;UV.prototype.onServiceRequestCompleted=UV.prototype.onServiceRequestCompleted;UV.prototype.onLoadReloadContinuation=UV.prototype.onLoadReloadContinuation;
UV.prototype.onRetrieveLocation=UV.prototype.onRetrieveLocation;UV.prototype.commentsHidePanelButtonChanged=UV.prototype.commentsHidePanelButtonChanged;UV.prototype.dispatchChipBarIsSticky=UV.prototype.dispatchChipBarIsSticky;UV.prototype.updateLockupContainerTypes=UV.prototype.updateLockupContainerTypes;_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],UV.prototype,"ytActionHandlerBehavior",void 0);
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],UV.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],UV.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.TU.YtLazyListBehavior),_.Z("design:type",Object)],UV.prototype,"ytLazyListBehavior",void 0);_.I([_.N(_.vQ.YtNextContinuationBehavior),_.Z("design:type",Object)],UV.prototype,"ytNextContinuationBehavior",void 0);
_.I([_.N(_.U8),_.Z("design:type",Object)],UV.prototype,"ytContinuationHandlerBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],UV.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],UV.prototype,"ytdReduxBehavior",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],UV.prototype,"darkerPanels",void 0);_.I([_.K(),_.Z("design:type",Object)],UV.prototype,"data",void 0);
_.I([_.K(),_.Z("design:type",Boolean)],UV.prototype,"engagementPanel",void 0);_.I([_.K(),_.Z("design:type",Object)],UV.prototype,"commentsHidePanelButton",void 0);_.I([_.K(),_.Z("design:type",Object)],UV.prototype,"isWatchGrid",void 0);_.I([_.K(),_.Z("design:type",Object)],UV.prototype,"continuationShowButton",void 0);_.I([_.K({computed:"computeIsContinuationCommentSection(data)"}),_.Z("design:type",Boolean)],UV.prototype,"continuationIsCommentsSection",void 0);
_.I([_.K({value:!0}),_.Z("design:type",Boolean)],UV.prototype,"autoFill",void 0);_.I([_.K(),_.Z("design:type",Boolean)],UV.prototype,"continuationDisablePrescanVisibility",void 0);_.I([_.K(),_.Z("design:type",Boolean)],UV.prototype,"isReloading",void 0);_.I([_.K(),_.Z("design:type",Object)],UV.prototype,"isSearch",void 0);_.I([_.K(),_.Z("design:type",Object)],UV.prototype,"isConstrainedList",void 0);_.I([_.K(),_.Z("design:type",Object)],UV.prototype,"isWatch",void 0);
_.I([_.K(),_.Z("design:type",Object)],UV.prototype,"eligibleToSwitchToGrid",void 0);_.I([_.K(),_.Z("design:type",Object)],UV.prototype,"useBigThumbs",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],UV.prototype,"notSticky",void 0);_.I([_.K({selector:_.Hx}),_.Z("design:type",Object)],UV.prototype,"isGridViewEnabled",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.Z("design:type",Object)],UV.prototype,"epRestyle",void 0);_.I([_.r("isWatch"),_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],UV.prototype,"hideShortsShelfHeader",null);_.I([_.r("isSearch","isWatch"),_.Z("design:type",String),_.Z("design:paramtypes",[])],UV.prototype,"thumbnailWidth",null);
_.I([_.r("isSearch","containerWidth"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],UV.prototype,"thumbnailTargetWidth",null);_.I([_.r("isSearch","isWatch"),_.Z("design:type",String),_.Z("design:paramtypes",[])],UV.prototype,"sizing",null);_.I([_.r("isWatch","isGridViewEnabled","useBigThumbs","data"),_.K({reflectToAttribute:!0}),_.Z("design:type",Number),_.Z("design:paramtypes",[])],UV.prototype,"lockupContainerType",null);
_.I([_.hT("lockupContainerType","data"),_.Z("design:type",Function),_.Z("design:paramtypes",[Number]),_.Z("design:returntype")],UV.prototype,"updateLockupContainerTypes",null);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",String)],UV.prototype,"pageSubtype",void 0);_.I([_.K({computed:"computeContainerWidth()"}),_.Z("design:type",Number)],UV.prototype,"containerWidth",void 0);_.I([_.K(),_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],UV.prototype,"isPlaylist",null);
_.I([_.K(),_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],UV.prototype,"isClipList",null);_.I([_.K(),_.Z("design:type",Object)],UV.prototype,"isCarouselInFeed",void 0);_.I([_.K({reflectToAttribute:!0}),_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],UV.prototype,"isPlaylistVideoContainer",null);_.I([_.K({reflectToAttribute:!0}),_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],UV.prototype,"isSearchFrictionPage",null);
_.I([_.K({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.Z("design:type",Boolean)],UV.prototype,"useHeightHack",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.Z("design:type",Object)],UV.prototype,"topSpacingZero",void 0);_.I([_.K({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.Z("design:type",Boolean)],UV.prototype,"showButton",void 0);
_.I([_.K(),_.Z("design:type",Boolean)],UV.prototype,"firstCommentsLoaded",void 0);_.I([_.K(),_.Z("design:type",Object)],UV.prototype,"continuationIsInitialLoad",void 0);_.I([_.K({reflectToAttribute:!0,readOnly:!0}),_.Z("design:type",Boolean)],UV.prototype,"itemDismissed",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.Z("design:type",String)],UV.prototype,"sectionIdentifier",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.Z("design:type",String)],UV.prototype,"fitContainer",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.Z("design:type",Boolean)],UV.prototype,"hasDestinationShelfRenderer",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.Z("design:type",Boolean)],UV.prototype,"staticCommentsHeader",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],UV.prototype,"enableSqueezebackPanels",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],UV.prototype,"enableAnchoredPanel",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.Z("design:type",Boolean)],UV.prototype,"hasSectionGroupViewModel",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.Z("design:type",Boolean)],UV.prototype,"hasQrCodeRenderer",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.Z("design:type",Boolean)],UV.prototype,"suppressDisclaimerSeparator",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.Z("design:type",String)],UV.prototype,"headerStyle",void 0);
_.I([_.r("isSearch"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],UV.prototype,"lockupExperiments",null);_.I([_.r("isSearch"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],UV.prototype,"typographyBump",null);_.I([_.qR("#header"),_.Z("design:type",HTMLElement)],UV.prototype,"header",void 0);_.I([_.hT("notSticky"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],UV.prototype,"dispatchChipBarIsSticky",null);
_.I([_.hT("commentsHidePanelButton"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],UV.prototype,"commentsHidePanelButtonChanged",null);_.I([_.by("yt-retrieve-location"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],UV.prototype,"onRetrieveLocation",null);
_.I([_.by("yt-load-reload-continuation"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Function]),_.Z("design:returntype")],UV.prototype,"onLoadReloadContinuation",null);_.I([_.by("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],UV.prototype,"onServiceRequestCompleted",null);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],UV.prototype,"dataChanged",null);
_.I([_.iy("data.contents.length"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],UV.prototype,"observeDataContentsLength",null);_.I([_.by("yt-dismissible-item-dismissed"),_.by("yt-dismissible-item-undismissed"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],UV.prototype,"onYtDismissibleItemDismissedChange",null);
_.I([_.hT("continuationShowButton"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],UV.prototype,"continuationShowButtonChanged",null);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],UV.prototype,"dataChangedForBinding",null);_.I([_.Q({is:"ytd-item-section-renderer",disableElementRegistration:!0})],UV);
_.m(UV,"ytd-item-section-renderer",function(){if(cLN!==void 0)return cLN;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return cLN=A},{mode:1});var DhH;var xPe=_.Ue(_.b3("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var exH={},Xsy=(exH[0]={title:_.Xl(_.b3("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Xl(_.b3("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:LY("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},exH[1]={title:_.Xl(_.b3("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:LY("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},exH);_.y3("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var vZ=function(){var A=_.G.apply(this,arguments)||this;A.allVideosCount=0;A.allPlaylistCount=0;A.isOnline=!1;A.shouldRenderDownloadsBanner=!1;A.shouldRenderDownloadsBannerUpsell=!1;A.hasOptedIntoSmartDownloads=!1;A.areAllSmartDownloadsDeleted=!1;A.smartDownloadsCompleted=!1;return A};
_.g(vZ,_.G);vZ.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
vZ.prototype.attached=function(){this.downloadsToRenderChanged()};
vZ.prototype.detached=function(){this.set("renderableData",{})};
vZ.prototype.downloadsToRenderChanged=function(){var A=_.Ai().getState().entities,L=_.lN(A),O=_.h("kevlar_playlist_dl_page_killswitch")?QsM(A):_.cG(A),X=_.K0u(A),x=_.C4u(A),J=_.pY(L);A=_.CY(A);this.set("renderableData",JxO(O,L,X,x,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,J,A))};
vZ.prototype.downloadsToRenderChanged=vZ.prototype.downloadsToRenderChanged;_.I([_.N(_.HL),_.Z("design:type",Object)],vZ.prototype,"ytdReduxBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],vZ.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],vZ.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],vZ.prototype,"ytRendererstamperBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],vZ.prototype,"renderableData",void 0);_.I([_.K({selector:_.$Bs}),_.Z("design:type",Object)],vZ.prototype,"allVideosCount",void 0);_.I([_.K({selector:$gd}),_.Z("design:type",Object)],vZ.prototype,"allPlaylistCount",void 0);_.I([_.K({selector:_.Im}),_.Z("design:type",Object)],vZ.prototype,"isOnline",void 0);_.I([_.K({selector:_.Lkd}),_.Z("design:type",Object)],vZ.prototype,"shouldRenderDownloadsBanner",void 0);
_.I([_.K({selector:_.sle}),_.Z("design:type",Object)],vZ.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.I([_.K({selector:_.OA_}),_.Z("design:type",Object)],vZ.prototype,"hasOptedIntoSmartDownloads",void 0);_.I([_.K({selector:_.X$e}),_.Z("design:type",Object)],vZ.prototype,"areAllSmartDownloadsDeleted",void 0);_.I([_.K({selector:xvD}),_.Z("design:type",Object)],vZ.prototype,"smartDownloadsCompleted",void 0);
_.I([_.iy("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vZ.prototype,"downloadsToRenderChanged",null);_.I([_.Q({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],vZ);
_.m(vZ,"ytd-offline-item-section-renderer",function(){if(DhH!==void 0)return DhH;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return DhH=A},
{mode:1});var Ev6;var nvV;var oY=function(){return _.G.apply(this,arguments)||this};
_.g(oY,_.G);
oY.prototype.onDataChanged=function(){if(this.JSC$17632_lastData){var A=this.getFilterClass(this.JSC$17632_lastData.status);A&&this.hostElement.classList.remove(A)}var L;(A=this.getFilterClass((L=this.data)==null?void 0:L.status))&&this.hostElement.classList.add(A);A==="selected"?_.YJ(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.YJ(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");A==="disabled"?_.YJ(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.YJ(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$17632_lastData=this.data};
oY.prototype.getFilterClass=function(A){switch(A){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
oY.prototype.onDataChanged=oY.prototype.onDataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],oY.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],oY.prototype,"data",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],oY.prototype,"onDataChanged",null);_.I([_.Q({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],oY);
_.m(oY,"ytd-search-filter-renderer",function(){if(nvV!==void 0)return nvV;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return nvV=A},{mode:_.e5("kevlar_poly_si_batch_j075")?1:2});var A6=function(){return _.G.apply(this,arguments)||this};
_.g(A6,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],A6.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],A6.prototype,"data",void 0);_.I([_.Q({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],A6);
_.m(A6,"ytd-search-filter-group-renderer",function(){if(Ev6!==void 0)return Ev6;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Ev6=A},{mode:_.e5("kevlar_poly_si_batch_j075")?1:2});var ta6;var Lj=function(){return _.G.apply(this,arguments)||this};
_.g(Lj,_.G);Lj.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.gt());this.isCollapsed=!this.isCollapsed};
Lj.prototype.navigateToAboutTheseResultsPage=function(){var A=C_("https://www.youtube.com/howyoutubeworks/product-features/search/");A?_.z2(window,A,"_blank"):_.IO(Error("Qh"))};
Lj.prototype.dataChanged=function(){this.isCollapsed=!0};
Lj.prototype.computeShowBottomBorder=function(){var A,L,O;return!!((A=this.data)==null?0:(L=A.button)==null?0:L.toggleButtonRenderer)||!((O=this.data)==null||!O.aboutTheseResultsButton)};
Lj.prototype.dataChanged=Lj.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Lj.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Lj.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.Z("design:type",Boolean)],Lj.prototype,"showBottomBorder",void 0);_.I([_.K(),_.Z("design:type",Boolean)],Lj.prototype,"renderCollapsibleMenu",void 0);
_.I([_.K(),_.Z("design:type",Boolean)],Lj.prototype,"isCollapsed",void 0);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Lj.prototype,"dataChanged",null);_.I([_.Q({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],Lj);
_.m(Lj,"ytd-search-sub-menu-renderer",function(){if(ta6!==void 0)return ta6;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return ta6=A},{mode:1});var bi3;var hxg=new _.Yx("SECTION_LIST_RENDERER_TOKEN");var SxN;var O6=function(){return _.G.apply(this,arguments)||this};
_.g(O6,_.G);O6.prototype.computeStyle=function(A){return A?A.toLowerCase().replace(/_/g,"-"):""};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],O6.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],O6.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Z("design:type",String)],O6.prototype,"headerStyle",void 0);_.I([_.Q({is:"ytd-text-header-renderer",disableElementRegistration:!0})],O6);
_.m(O6,"ytd-text-header-renderer",function(){if(SxN!==void 0)return SxN;var A=document.createElement("template");_.p(A,"\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");A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return SxN=A},{mode:1});var qxL;var XQ=function(){return _.G.apply(this,arguments)||this};
_.g(XQ,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],XQ.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],XQ.prototype,"data",void 0);_.I([_.Q({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],XQ);
_.m(XQ,"ytd-minor-moment-header-renderer",function(){if(qxL!==void 0)return qxL;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return qxL=A},{mode:1});var gvg;var xb=function(){return _.G.apply(this,arguments)||this};
_.g(xb,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],xb.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],xb.prototype,"data",void 0);_.I([_.Q({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],xb);
_.m(xb,"ytd-minor-moment-setting-alert-renderer",function(){if(gvg!==void 0)return gvg;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return gvg=A},{mode:1});var w86;var p8g;var s6=function(){var A=_.G.apply(this,arguments)||this;A.booleanSettingById=!1;A.smartDownloadsEnabledVE=_.tI(128287);A.smartDownloadsDisabledVE=_.tI(128286);A.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return A};
_.g(s6,_.G);_.P=s6.prototype;_.P.attachSmartDownloadsSettingVes=function(){var A;this.activeVeForLogging||((A=this.data)==null?void 0:A.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.S9(_.iV(),this.smartDownloadsEnabledVE),_.S9(_.iV(),this.smartDownloadsDisabledVE))};
_.P.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.P4(this.hostElement,"yt-settings-switch-ready")};
_.P.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.P.onSwitchChange=function(A){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(A=_.AT(A).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.h("kevlar_settings_switch_resolve_command_killswitch")?_.X5().resolve(_.x$).resolveCommand(A,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(A)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.P.handleUpdateSettingsSwitch=function(A){(A=_.q(A,mIj))&&this.data&&this.data.id===A.id&&this.set("data.enabled",!!A.enabled)};
_.P.onToggleSettingsSwitch=function(A,L){this.data&&this.data.id===A&&this.set("data.enabled",L!=null?L:!this.data.enabled)};
_.P.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.Yq.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.P.maybeLogSmartDownloadsSettingVisibility=function(){var A=_.Fn(),L;A&&((L=this.data)==null?void 0:L.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.B4(A,[this.smartDownloadsEnabledVE]),_.MG(A,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.B4(A,[this.smartDownloadsDisabledVE]),_.MG(A,[this.smartDownloadsEnabledVE])))};
_.P.maybeLogSmartDownloadsSettingClick=function(){var A;((A=this.data)==null?void 0:A.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.gm(_.iV(),this.activeVeForLogging)};
_.P.updateDataEnabledFromBinding=function(A){this.set("data.enabled",A.detail.value)};
_.v2.Object.defineProperties(s6.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var A=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!A&&(A=this.ytRendererBehavior.getSimpleString(this.data.title));return A}}});
s6.prototype.dataChanged=s6.prototype.dataChanged;_.I([_.N(_.HL),_.Z("design:type",Object)],s6.prototype,"ytdReduxBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],s6.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],s6.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],s6.prototype,"ytComponentBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],s6.prototype,"data",void 0);_.I([_.K({selector:function(A,L){if(Object.keys(A==null?void 0:A.entities).length)switch(L){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return mBO(A.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.Z("design:type",Object)],s6.prototype,"booleanSettingById",void 0);_.I([_.K(),_.Z("design:type",_.c3)],s6.prototype,"activeVeForLogging",void 0);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],s6.prototype,"toggleAriaLabel",null);_.I([_.iy("data"),_.iy("booleanSettingById"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],s6.prototype,"dataChanged",null);
_.I([_.Q({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],s6);
_.m(s6,"ytd-settings-switch-renderer",function(){if(p8g!==void 0)return p8g;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return p8g=A},{mode:1});var J6=function(){return _.G.apply(this,arguments)||this};
_.g(J6,_.G);J6.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}}}}};
_.v2.Object.defineProperties(J6.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var A=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(A+=" remove-left-margin");this.data.extraBottomSpace&&(A+=" extra-bottom-space");return A}}});
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],J6.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],J6.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],J6.prototype,"data",void 0);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],J6.prototype,"contentsClassName",null);_.I([_.Q({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],J6);
_.m(J6,"ytd-minor-moment-setting-section-renderer",function(){if(w86!==void 0)return w86;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return w86=A},{mode:1});var iiH;var Pv=function(){return _.G.apply(this,arguments)||this};
_.g(Pv,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Pv.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],Pv.prototype,"componentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Pv.prototype,"data",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],Pv);
_.m(Pv,"ytd-empty-product-details-renderer",function(){if(iiH!==void 0)return iiH;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return iiH=A},{mode:1});var NeV;var rvL;var dv=function(){var A=_.G.apply(this,arguments)||this;A.expanded=!0;return A};
_.g(dv,_.G);dv.prototype.getBadgeRowClass=function(A,L,O){for(var X=_.d(this.hostElement.querySelectorAll("yt-img-shadow")),x=X.next();!x.done;x=X.next())x.value.onShow();A=A.selected;return O?A!==-1?A===L?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(A!==void 0?A:0)===L?"badge-line":"badge-hidden"};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],dv.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],dv.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],dv.prototype,"expanded",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],dv);
_.m(dv,"ytd-sponsorships-loyalty-badges-renderer",function(){if(rvL!==void 0)return rvL;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return rvL=A},{mode:1});var K53;var Yb=function(){var A=_.G.apply(this,arguments)||this;A.expanded=!0;return A};
_.g(Yb,_.G);Yb.prototype.getContainerClasses=function(A,L){A=A?"expanded":"collapsed";L&&(A+=" item");return A};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Yb.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Yb.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],Yb.prototype,"expanded",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],Yb);
_.m(Yb,"ytd-sponsorships-perk-renderer",function(){if(K53!==void 0)return K53;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return K53=A},{mode:1});var GTl;var u0=function(){var A=_.G.apply(this,arguments)||this;A.expanded=!0;return A};
_.g(u0,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],u0.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],u0.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],u0.prototype,"expanded",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],u0);
_.m(u0,"ytd-sponsorships-perks-renderer",function(){if(GTl!==void 0)return GTl;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return GTl=A},{mode:1});var T$=function(){var A=_.G.apply(this,arguments)||this;A.isCollapsed=!1;return A};
_.g(T$,_.G);T$.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
T$.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
T$.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var A;this.expandCollapseButton=_.q((A=this.data)==null?void 0:A.expandButton,_.$t)}else{var L;this.expandCollapseButton=_.q((L=this.data)==null?void 0:L.collapseButton,_.$t)}};
T$.prototype.updateExpandCollapseButton=T$.prototype.updateExpandCollapseButton;T$.prototype.onDataChanged=T$.prototype.onDataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],T$.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],T$.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],T$.prototype,"isCollapsed",void 0);_.I([_.K(),_.Z("design:type",Object)],T$.prototype,"expandCollapseButton",void 0);
_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],T$.prototype,"onDataChanged",null);_.I([_.iy("data","isCollapsed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],T$.prototype,"updateExpandCollapseButton",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],T$);
_.m(T$,"ytd-sponsorships-expandable-perks-renderer",function(){if(NeV!==void 0)return NeV;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return NeV=A},{mode:1});var lA6;var VG=function(){return _.G.apply(this,arguments)||this};
_.g(VG,_.G);VG.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],VG.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],VG.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],VG.prototype,"data",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],VG);
_.m(VG,"ytd-sponsorships-actionable-message-renderer",function(){if(lA6!==void 0)return lA6;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return lA6=A},{mode:1});var cvL;var Di=function(){return _.G.apply(this,arguments)||this};
_.g(Di,_.G);_.P=Di.prototype;_.P.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.P.getExpansionIcon=function(A){return A?"COLLAPSE":"EXPAND"};
_.P.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.P.computeMessageContainerStyle=function(A){var L=A.expandableItems?" style-clickable":"";return A.messageContainerStyle?A.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+L:"style-unspecified"+L};
_.P.isSinglePerk=function(A){return!!A.messageContainerStyle&&(A.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||A.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.P.onExpandedChanged=function(){var A=this;if(this.expanded)for(var L=_.d(this.hostElement.querySelectorAll("yt-img-shadow")),O=L.next();!O.done;O=L.next())O.value.onShow();_.kd(this,function(){_.P4(A.hostElement,"yt-refit")})};
_.P.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
Di.prototype.onDataChanged=Di.prototype.onDataChanged;Di.prototype.onExpandedChanged=Di.prototype.onExpandedChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Di.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Di.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Di.prototype,"data",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],Di.prototype,"expanded",void 0);
_.I([_.hT("expanded"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Di.prototype,"onExpandedChanged",null);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Di.prototype,"onDataChanged",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],Di);
_.m(Di,"ytd-sponsorships-expandable-message-renderer",function(){if(cvL!==void 0)return cvL;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return cvL=A},{mode:_.e5("kevlar_poly_si_batch_j028")?1:2});var Cp7;var ee=function(){return _.G.apply(this,arguments)||this};
_.g(ee,_.G);ee.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"}}}}};
ee.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.q(this.data.endButton,_.$t).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
ee.prototype.onDataChanged=ee.prototype.onDataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],ee.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],ee.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],ee.prototype,"data",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ee.prototype,"onDataChanged",null);
_.I([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],ee);
_.m(ee,"ytd-sponsorships-heading-renderer",function(){if(Cp7!==void 0)return Cp7;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Cp7=A},{mode:1});var F5c;var E6=function(){return _.G.apply(this,arguments)||this};
_.g(E6,_.G);_.I([_.K(),_.Z("design:type",Object)],E6.prototype,"data",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],E6.prototype,"ytRendererBehavior",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],E6);
_.m(E6,"ytd-sponsorships-links-renderer",function(){if(F5c!==void 0)return F5c;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return F5c=A},{mode:1});var Rxu;var nj=function(){return _.G.apply(this,arguments)||this};
_.g(nj,_.G);_.P=nj.prototype;_.P.onDataChanged=function(){if(this.data&&this.data.expandableItems){var A;(A=_.YJ(this.hostElement).querySelector("tp-yt-paper-button"))==null||A.setAttribute("role","button")}else{var L;(L=_.YJ(this.hostElement).querySelector("tp-yt-paper-button"))==null||L.removeAttribute("role")}};
_.P.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.P.getExpansionIcon=function(A){return A?"COLLAPSE":"EXPAND"};
_.P.getTileClasses=function(A){return A?"tile expandable-tile":"tile"};
_.P.getButtonDisabled=function(A){return A?void 0:""};
nj.prototype.onDataChanged=nj.prototype.onDataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],nj.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],nj.prototype,"data",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],nj.prototype,"expanded",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],nj.prototype,"onDataChanged",null);
_.I([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],nj);
_.m(nj,"ytd-sponsorships-list-tile-renderer",function(){if(Rxu!==void 0)return Rxu;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Rxu=A},{mode:1});var Qbg;var mhg;var t6=function(){return _.G.apply(this,arguments)||this};
_.g(t6,_.G);t6.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],t6.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],t6.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],t6.prototype,"data",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],t6);
_.m(t6,"ytd-sponsorships-promotion-renderer",function(){if(mhg!==void 0)return mhg;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return mhg=A},{mode:1});var fA6;var b0=function(){return _.G.apply(this,arguments)||this};
_.g(b0,_.G);b0.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],b0.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],b0.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],b0.prototype,"data",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],b0);
_.m(b0,"ytd-sponsorships-purchase-option-renderer",function(){if(fA6!==void 0)return fA6;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return fA6=A},{mode:1});var IAL;var yvl;var ZiH=function(){return _.G.apply(this,arguments)||this};
_.g(ZiH,_.G);_.I([_.K(),_.Z("design:type",Object)],ZiH.prototype,"data",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],ZiH);
_.m(ZiH,"ytd-ypc-offer-promo-renderer",function(){if(yvl!==void 0)return yvl;var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return yvl=A},{mode:1});var h6=function(){return _.G.apply(this,arguments)||this};
_.g(h6,_.G);_.P=h6.prototype;
_.P.configureRendererStamper=function(){return{"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}},"data.expandableMessage":{id:"expandable-message",mapping:{sponsorshipsExpandableMessageRenderer:{component:"ytd-sponsorships-expandable-message-renderer"}}},"data.purchaseOption":{id:"purchase-option",mapping:{sponsorshipsPurchaseOptionRenderer:{component:"ytd-sponsorships-purchase-option-renderer"}}},"data.alternativePurchaseOption":{id:"alternative-purchase-option",mapping:{sponsorshipsPurchaseOptionRenderer:{component:"ytd-sponsorships-purchase-option-renderer"}}},
"data.offerPromoCard":{id:"offer-promo",mapping:{ypcOfferPromoRenderer:{component:"ytd-ypc-offer-promo-renderer"}}}}};
_.P.expansionCTA=function(A,L){return A&&(L?A.collapseCallToAction:A.expansionCallToAction)};
_.P.getExpansionIcon=function(A){return A?"COLLAPSE":"EXPAND"};
_.P.expansionCallToActionTap=function(){var A=this;this.expanded=!this.expanded;_.kd(this,function(){_.P4(A.hostElement,"yt-refit")})};
_.P.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var A,L=(A=this.data)==null?void 0:A.onVisible;L&&this.ytComponentBehavior.resolveCommand(L)};
_.P.computeDisplayTitle=function(A){return!(!A||this.titledisplaystatus!=="show")};
_.P.computeDisplaySeparator=function(){return!1};
_.P.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
h6.prototype.onDataChanged=h6.prototype.onDataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],h6.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],h6.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],h6.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],h6.prototype,"data",void 0);
_.I([_.K({value:!1}),_.Z("design:type",Boolean)],h6.prototype,"expanded",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],h6.prototype,"purchaseButtonClicked",void 0);_.I([_.K({reflectToAttribute:!0,value:"show"}),_.Z("design:type",String)],h6.prototype,"titledisplaystatus",void 0);_.I([_.K({computed:"computeDisplayTitle(data.title)"}),_.Z("design:type",Boolean)],h6.prototype,"displayTitle",void 0);
_.I([_.K({computed:"computeDisplaySeparator(data)"}),_.Z("design:type",Boolean)],h6.prototype,"displaySeparator",void 0);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],h6.prototype,"onDataChanged",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],h6);
_.m(h6,"ytd-sponsorships-tier-renderer",function(){if(IAL!==void 0)return IAL;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return IAL=A},{mode:2});var Se=function(){return _.G.apply(this,arguments)||this};
_.g(Se,_.G);
Se.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"}}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Se.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Se.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Se.prototype,"data",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],Se);
_.m(Se,"ytd-sponsorships-management-renderer",function(){if(Qbg!==void 0)return Qbg;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return Qbg=A},{mode:1});var jbV;var q3=function(){return _.G.apply(this,arguments)||this};
_.g(q3,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],q3.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],q3.prototype,"data",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],q3);
_.m(q3,"ytd-open-in-native-app-view-model",function(){if(jbV!==void 0)return jbV;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return jbV=A},{mode:_.e5("kevlar_poly_si_batch_j028")?1:2});var W5N;var Hig;var zxl=_.AW(["top-"]),Bel=_.AW(["bottom-"]),Mag=_.AW(["left-"]),$hL=_.AW(["right-"]),aAg={},kTj=function(A,L,O){A.removeAttribute("top-"+O);A.removeAttribute("bottom-"+O);A.removeAttribute("left-"+O);A.removeAttribute("right-"+O);L&&(L.top&&_.oP([_.xT(zxl)],A,"top-"+O,L.top),L.bottom&&_.oP([_.xT(Bel)],A,"bottom-"+O,L.bottom),L.left&&_.oP([_.xT(Mag)],A,"left-"+O,L.left),L.right&&_.oP([_.xT($hL)],A,"right-"+O,L.right))};
aAg.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(A){var L,O=_.YJ((L=this.hostElement)!=null?L:this),X;L=this.cardItemBoxBehaviorMarginTargetId&&O?O.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(X=this.hostElement)!=null?X:this;kTj(L,A,"margin")},
cardItemContainerPaddingChanged_:function(A){var L,O=_.YJ((L=this.hostElement)!=null?L:this),X;L=this.cardItemBoxBehaviorPaddingTargetId&&O?O.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(X=this.hostElement)!=null?X:this;kTj(L,A,"padding")}}];var gv={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 Uhu;var vvc;var wv=function(){return _.G.apply(this,arguments)||this};
_.g(wv,_.G);wv.prototype.textColorChanged_=function(){this.hostElement.style.color=gv[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
wv.prototype.textColorChanged_=wv.prototype.textColorChanged_;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],wv.prototype,"ytRendererBehavior",void 0);_.I([_.N(aAg.YtCardItemBoxBehavior),_.Z("design:type",Object)],wv.prototype,"ytCardItemBoxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],wv.prototype,"data",void 0);_.I([_.hT("data.textColor"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],wv.prototype,"textColorChanged_",null);
_.I([_.yU({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],wv);
_.m(wv,"yt-card-item-text-renderer",function(){if(vvc===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;Uhu===void 0&&(Uhu=document.createElement("template"));var X=Uhu;O.call(L,X.content.cloneNode(!0),A.content.firstChild);vvc=A}A=vvc;return A},{mode:2});var ov6;var Aul;var pj=function(){return _.G.apply(this,arguments)||this};
_.g(pj,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],pj.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],pj.prototype,"data",void 0);_.I([_.yU({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],pj);
_.m(pj,"yt-card-item-badge-renderer",function(){if(Aul===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;ov6===void 0&&(ov6=document.createElement("template"));var X=ov6;O.call(L,X.content.cloneNode(!0),A.content.firstChild);Aul=A}A=Aul;return A},{mode:2});var Ltg;var OUL;var i0=function(){return _.G.apply(this,arguments)||this};
_.g(i0,_.G);i0.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],i0.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],i0.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],i0.prototype,"data",void 0);_.I([_.yU({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],i0);
_.m(i0,"yt-card-item-text-collection-renderer",function(){if(OUL===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;Ltg===void 0&&(Ltg=document.createElement("template"));var X=Ltg;O.call(L,X.content.cloneNode(!0),A.content.firstChild);OUL=A}A=OUL;return A},{mode:2});var Xlg;var xsL;var N3=function(){return _.G.apply(this,arguments)||this};
_.g(N3,_.G);N3.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]]"}}}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],N3.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],N3.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],N3.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Number)],N3.prototype,"iconSize",void 0);_.I([_.yU({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],N3);
_.m(N3,"yt-card-item-text-with-button-renderer",function(){if(xsL===void 0){var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;Xlg===void 0&&(Xlg=document.createElement("template"));var X=Xlg;O.call(L,X.content.cloneNode(!0),A.content.firstChild);xsL=A}A=xsL;return A},{mode:2});var rv=function(){return _.G.apply(this,arguments)||this};
_.g(rv,_.G);rv.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"}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],rv.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],rv.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],rv.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],rv.prototype,"data",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],rv);
_.m(rv,"ytd-commerce-cart-summary-line-item-renderer",function(){if(Hig!==void 0)return Hig;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return Hig=A},{mode:1});_.y3("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var Kj=function(){var A=_.G.apply(this,arguments)||this;A.hidden=!1;return A};
_.g(Kj,_.G);_.P=Kj.prototype;_.P.configureRendererStamper=function(){return{"data.estimatedTotalLineItem":{id:"estimated-total-line-item",mapping:{commerceCartSummaryLineItemRenderer:"ytd-commerce-cart-summary-line-item-renderer"}},"data.checkoutButton":{id:"checkout-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}},"data.cartButton":{id:"cart-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.P.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.P.updateSummary=function(){var A=this.commerceCartCheckoutButtonEntity,L;if(((L=this.data)==null?0:L.cartButton)&&A.checkoutSummaryText){var O,X=IG((O=this.data)==null?void 0:O.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+X+".cardItemTextRenderer.text",yZ(A.checkoutSummaryText));if(A.checkoutDetailText){var x;O=IG((x=this.data)==null?void 0:x.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+O+".cardItemTextRenderer.text",yZ(A.checkoutDetailText))}if(A.checkoutAdditionalMetadataText){var J;
x=IG((J=this.data)==null?void 0:J.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+x+".cardItemTextRenderer.text",yZ(A.checkoutAdditionalMetadataText))}}else A.estimatedTotalPrice&&(J=IG((X=this.data)==null?void 0:X.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+J+".cardItemTextRenderer.text",yZ(A.estimatedTotalPrice)))};
_.P.updateIsHidden=function(){var A,L=(A=this.commerceCartCheckoutButtonEntity)==null?void 0:A.isHidden;L!==void 0&&(this.hidden=L)};
_.P.updateCheckoutButton=function(){var A,L=(A=this.commerceCartCheckoutButtonEntity)==null?void 0:A.isDisabled;L!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",L);var O;A=(O=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:O.innertubeCommand;A!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",A);var X;O=(X=this.commerceCartCheckoutButtonEntity)==null?void 0:X.checkoutButtonText;O!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:O})};
Kj.prototype.entityChanged=Kj.prototype.entityChanged;_.I([_.N(_.HL),_.Z("design:type",Object)],Kj.prototype,"ytdReduxBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Kj.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],Kj.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Kj.prototype,"ytRendererstamperBehavior",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Kj.prototype,"fullWidth",void 0);_.I([_.K(),_.Z("design:type",Object)],Kj.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Kj.prototype,"compact",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Kj.prototype,"hidden",void 0);
_.I([_.K({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:MBu}),_.Z("design:type",Object)],Kj.prototype,"commerceCartCheckoutButtonEntity",void 0);_.I([_.hT("commerceCartCheckoutButtonEntity","data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Kj.prototype,"entityChanged",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],Kj);
_.m(Kj,"ytd-commerce-cart-checkout-button-renderer",function(){if(W5N!==void 0)return W5N;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return W5N=A},{mode:2});var sgg;_.JuH={};
_.JuH.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",_.tT(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.tT(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(A){!this.tappableItemBehaviorTapEnabled||A.keyCode!==13&&A.keyCode!==32||A.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var A=this.data.onTap;A.ypcGetCartEndpoint?(_.TZ(this.hostElement,[A]),this.tappableItemBehaviorTapEnabled=!1):A.ypcOffersEndpoint?_.TZ(this.hostElement,[A]):_.VN(this.hostElement,[A],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(A){this.tappableItemBehaviorTapEnabled=!!A},
tappableItemBehaviorOnTapEnabledChanged_:function(){var A=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(A.setAttribute("tabIndex",0),A.setAttribute("role","button")):(A.removeAttribute("tabIndex"),A.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(A){A.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var P26;var dsu;var G$=function(){return _.G.apply(this,arguments)||this};
_.g(G$,_.G);G$.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.Zr("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.Zr("sharingToggleButtonAndDefaultButton")}}};
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],G$.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],G$.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],G$.prototype,"data",void 0);_.I([_.yU({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],G$);
_.m(G$,"yt-card-item-actions-renderer",function(){if(dsu===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;P26===void 0&&(P26=document.createElement("template"));var X=P26;O.call(L,X.content.cloneNode(!0),A.content.firstChild);dsu=A}A=dsu;return A},{mode:2});var Yqu;var uXj;var TYc;var V2H;var Dsu;var e8g;var l0=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return A};
_.g(l0,_.G);l0.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
l0.prototype.handleDarkModeToggledAction_=function(A){this.isDarkTheme_=A};
l0.prototype.computeThemeImage_=function(A,L){if(!A||!A.imageLight)return!1;this.isCircular_=A.isCircular;A.imageWidth&&(this.hostElement.style.width=A.imageWidth+"px");A.imageHeight&&(this.hostElement.style.height=A.imageHeight+"px");A.borderWidth&&(this.image.style.borderWidth=A.borderWidth+"px",this.image.style.borderStyle="solid");A.borderColor&&(this.image.style.borderColor=_.Hy(A.borderColor));return L&&A.imageDark?A.imageDark:A.imageLight};
l0.prototype.computeThemeIcon_=function(A){var L,O;if(!(A==null?0:(L=A.themedIcon)==null?0:(O=L.icon)==null?0:O.iconType))return!1;this.icon.style.color=gv[A.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(A.imageWidth||18)+"px";this.icon.style.height=(A.imageHeight||18)+"px";return _.bV(A.themedIcon.icon.iconType)};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],l0.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],l0.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(aAg.YtCardItemBoxBehavior),_.Z("design:type",Object)],l0.prototype,"ytCardItemBoxBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],l0.prototype,"ytActionHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],l0.prototype,"data",void 0);
_.I([_.K({value:!1}),_.Z("design:type",Boolean)],l0.prototype,"fit",void 0);_.I([_.K(),_.Z("design:type",Boolean)],l0.prototype,"isDarkTheme_",void 0);_.I([_.K({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.Z("design:type",Object)],l0.prototype,"themeImage_",void 0);_.I([_.K({computed:"computeThemeIcon_(data)"}),_.Z("design:type",Object)],l0.prototype,"themeIcon_",void 0);_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Object)],l0.prototype,"isCircular_",void 0);
_.I([_.qR("#image"),_.Z("design:type",Object)],l0.prototype,"image",void 0);_.I([_.qR("#icon"),_.Z("design:type",Object)],l0.prototype,"icon",void 0);_.I([_.yU({is:"yt-themed-image-renderer",disableElementRegistration:!0})],l0);
_.m(l0,"yt-themed-image-renderer",function(){if(e8g===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;Dsu===void 0&&(Dsu=document.createElement("template"));var X=Dsu;O.call(L,X.content.cloneNode(!0),A.content.firstChild);e8g=A}A=e8g;return A},{mode:2});var cv=function(){return _.G.apply(this,arguments)||this};
_.g(cv,_.G);cv.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"}}}}};
cv.prototype.computeImagePlacement_=function(A){return A||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],cv.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],cv.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],cv.prototype,"data",void 0);_.I([_.K({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.Z("design:type",String)],cv.prototype,"imagePlacement",void 0);
_.I([_.yU({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],cv);
_.m(cv,"yt-card-item-text-with-image-renderer",function(){if(V2H===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;TYc===void 0&&(TYc=document.createElement("template"));var X=TYc;O.call(L,X.content.cloneNode(!0),A.content.firstChild);V2H=A}A=V2H;return A},{mode:2});var Cj=function(){return _.G.apply(this,arguments)||this};
_.g(Cj,_.G);Cj.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"}}}}};
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Cj.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Cj.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Cj.prototype,"data",void 0);_.I([_.yU({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],Cj);
_.m(Cj,"yt-card-item-error-renderer",function(){if(uXj===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;Yqu===void 0&&(Yqu=document.createElement("template"));var X=Yqu;O.call(L,X.content.cloneNode(!0),A.content.firstChild);uXj=A}A=uXj;return A},{mode:2});var EYN;var nY6;_.y3("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var FQ=function(){return _.G.apply(this,arguments)||this};
_.g(FQ,_.G);_.P=FQ.prototype;
_.P.configureRendererStamper=function(){return{"data.headingRenderer":{id:"heading-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"},cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer"}}},"data.descriptionRenderer":{id:"description-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.additionalInfoRenderer":{id:"additional-info-renderer",
mapping:{cardItemActionsRenderer:{component:"yt-card-item-actions-renderer"},cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},themedImageRenderer:{component:"yt-themed-image-renderer"},cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}},"data.errorRenderer":{id:"error-renderer",mapping:{cardItemErrorRenderer:{component:"yt-card-item-error-renderer"}}},"data.headerPromoRenderer":{id:"header-promo-renderer",
mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"}}},"data.footerRenderer":{id:"footer-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.P.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.P.backgroundColorChanged_=function(){var A,L=(A=this.data)==null?void 0:A.backgroundColor;A=gv[L||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.YJ(this.hostElement).querySelector("#main-content").style.backgroundColor=A};
_.P.headerPromoBackgroundColorChanged_=function(){var A,L=(A=this.data)==null?void 0:A.headerPromoBackgroundColor;A=gv[L||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.YJ(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=A};
_.P.errorRendererVisibilityChanged_=function(){var A=this.isExpanded_,L;this.isErrorRendererVisible_=!((L=this.data)==null||!L.errorRenderer)&&!A};
_.P.onYtToggleButton_=function(A,L){this.isExpanded_=L.toggled};
FQ.prototype.onYtToggleButton_=FQ.prototype.onYtToggleButton_;FQ.prototype.errorRendererVisibilityChanged_=FQ.prototype.errorRendererVisibilityChanged_;FQ.prototype.headerPromoBackgroundColorChanged_=FQ.prototype.headerPromoBackgroundColorChanged_;FQ.prototype.backgroundColorChanged_=FQ.prototype.backgroundColorChanged_;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],FQ.prototype,"ytRendererBehavior",void 0);
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],FQ.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(aAg.YtCardItemBoxBehavior),_.Z("design:type",Object)],FQ.prototype,"ytCardItemBoxBehavior",void 0);_.I([_.N(_.JuH.YtTappableItemBehavior),_.Z("design:type",Object)],FQ.prototype,"ytTappableItemBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],FQ.prototype,"data",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],FQ.prototype,"isExpanded_",void 0);
_.I([_.K({value:!1}),_.Z("design:type",Boolean)],FQ.prototype,"isErrorRendererVisible_",void 0);_.I([_.hT("data.backgroundColor"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],FQ.prototype,"backgroundColorChanged_",null);_.I([_.hT("data.headerPromoBackgroundColor"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],FQ.prototype,"headerPromoBackgroundColorChanged_",null);
_.I([_.hT("data.errorRenderer","isExpanded_"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],FQ.prototype,"errorRendererVisibilityChanged_",null);_.I([_.by("yt-toggle-button"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event,Object]),_.Z("design:returntype")],FQ.prototype,"onYtToggleButton_",null);_.I([_.yU({is:"yt-card-item-renderer",disableElementRegistration:!0})],FQ);
_.m(FQ,"yt-card-item-renderer",function(){if(nY6===void 0){var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;EYN===void 0&&(EYN=document.createElement("template"));var X=EYN;O.call(L,X.content.cloneNode(!0),A.content.firstChild);nY6=A}A=nY6;return A},{mode:2});_.y3("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var RX=function(){var A=_.G.apply(this,arguments)||this;A.hidden=!1;return A};
_.g(RX,_.G);_.P=RX.prototype;_.P.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.P.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.P.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var A,L=(A=this.commerceCartHeaderEntity)==null?void 0:A.isHidden;L!==void 0&&(this.hidden=L)}};
_.P.updateTitle=function(){var A=this.commerceCartHeaderEntity.isDisabled,L,O,X=(O=_.q((L=this.data)==null?void 0:L.item,v5N))==null?void 0:O.headingRenderer;X&&(L=IG(X,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+L+".0.cardItemTextRenderer.textColor",A?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.P.updateSummaryText=function(){var A=this.commerceCartHeaderEntity;if(this.compact){var L,O,X=(O=_.q((L=this.data)==null?void 0:L.item,v5N))==null?void 0:O.headingRenderer;X&&(L=IG(X,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+L+".1.cardItemTextRenderer.text",A.shortHeaderSummaryText?yZ(A.shortHeaderSummaryText):A.headerSummaryText?yZ(A.headerSummaryText):""))}else{var x;if(L=(x=_.q((X=this.data)==null?void 0:X.item,v5N))==null?void 0:x.additionalInfoRenderer)L=IG(L,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+L+".text",A.headerSummaryText?yZ(A.headerSummaryText):"")}};
_.P.updateCheckoutButton=function(){var A=this.commerceCartHeaderEntity,L,O,X=(O=_.q((L=this.data)==null?void 0:L.item,v5N))==null?void 0:O.additionalInfoRenderer;L=IG(X,"buttonRenderer");var x;O=(x=this.commerceCartHeaderEntity)==null?void 0:x.isButtonDisabled;var J;x=(J=this.commerceCartHeaderEntity)==null?void 0:J.isButtonHidden;O!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+L+".buttonRenderer.isDisabled",O);x!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
x);var Y;A=(Y=A.checkoutButtonCommand)==null?void 0:Y.innertubeCommand;A!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+L+".buttonRenderer.command",A)};
RX.prototype.entityChanged=RX.prototype.entityChanged;_.I([_.N(_.HL),_.Z("design:type",Object)],RX.prototype,"ytdReduxBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],RX.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],RX.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],RX.prototype,"data",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],RX.prototype,"compact",void 0);_.I([_.K({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(A,L){return _.eM(A.entities,"commerceCartHeaderEntity",L)}}),
_.Z("design:type",Object)],RX.prototype,"commerceCartHeaderEntity",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],RX.prototype,"hidden",void 0);_.I([_.hT("commerceCartHeaderEntity","data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],RX.prototype,"entityChanged",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],RX);
_.m(RX,"ytd-commerce-cart-header-renderer",function(){if(sgg!==void 0)return sgg;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return sgg=A},{mode:1});var t2L;var bU3=_.Gv(function(A,L){var O;return(O=A.onChangeCallback)==null?void 0:O.call(A,L)},1E3),h87=_.xa(function(A){var L=A.data;
var O=A.iconMinus;A=A.iconPlus;var X=function(){return!!L().disabled},x=_.d(_.uQ(0,void 0,"r56zNb")),J=x.next().value,Y=x.next().value;
x={};x=_.qn("yt-spec-quantity-incrementer-shape__icon",(x["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return X()||J()===(L().onRemoveCommand?0:1)},x));
var T={};T=_.qn("yt-spec-quantity-incrementer-shape__icon",(T["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return J()>=L().maxValue||X()},T));
var V={};V=_.qn("yt-spec-quantity-incrementer-shape__text",(V["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return J()>L().maxValue},V["yt-spec-quantity-incrementer-shape__text--text-disabled"]=X,V));
var E=_.py(function(){if(J()===1){var t,b;(b=(t=L()).onRemoveCommand)==null||b.call(t)}t=J()>L().maxValue?L().maxValue:J()-1;Y(t);bU3(L(),t);return!1}),n=_.py(function(){if(J()===L().maxValue)return!1;
var t=J()+1;Y(t);bU3(L(),t);return!1});
_.r9(function(){Y(L().value)});
return _.D("quantity-incrementer-shape",null,_.D("div",{class:"yt-spec-quantity-incrementer-shape"},_.D("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return J()===(L().onRemoveCommand?0:1)||X()},
"aria-label":function(){return J()!==1?L().minusLabel:L().minimumReachedLabel},
"on:click":E},_.D(_.cx,{model:{circular:!0}}),_.D("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.D("div",{class:x},O()))),_.D("div",{class:V},J),_.D("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return J()>=L().maxValue||X()},
"aria-label":function(){return J()!==L().maxValue?L().plusLabel:L().maximumReachedLabel},
"on:click":n},_.D(_.cx,{model:{circular:!0}}),_.D("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.D("div",{class:T},A())))))},"ce");_.Y4(_.xa(function(A){function L(){O().onRemoveCommand&&_.$a(O().onRemoveCommand)}
var O=A.data;var X=_.iS(FbO,function(){return O().quantityIncrementerEntityKey});
return _.D("yt-quantity-incrementer-view-model",null,_.D(h87,{data:function(){var x=O(),J;var Y=X()?!((J=X())==null||!J.disabled):!1;var T;J=X()?(T=X())==null?void 0:T.quantity:O().quantity;return Y9M(x,Y,L,J)},
iconMinus:function(){return _.D(_.Ky,{icon:"BAR_HORIZONTAL",className:_.gl("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-minus-icon")})},
iconPlus:function(){return _.D(_.Ky,{icon:"ADD",className:_.gl("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-plus-icon")})}}))},"de"),"yt-quantity-incrementer-view-model",{props:{data:_.x5}});var QG=function(){var A=_.G.apply(this,arguments)||this;A.compact=!1;A.hasQuantityIncrementer=!1;return A};
_.g(QG,_.G);QG.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"}}}};
QG.prototype.computeHasQuantityIncrementer=function(){var A;return!!_.q((A=this.data)==null?void 0:A.picker,Ol7)};
QG.prototype.onLabelClick=function(){var A;(A=this.dropdownEl)==null||A.open()};
_.I([_.qR("ytd-dropdown-renderer"),_.Z("design:type",Object)],QG.prototype,"dropdownEl",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],QG.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],QG.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],QG.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",String)],QG.prototype,"quantityColor",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],QG.prototype,"compact",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.Z("design:type",Object)],QG.prototype,"hasQuantityIncrementer",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],QG);
_.m(QG,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(t2L!==void 0)return t2L;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return t2L=A},{mode:1});var Sq7;var qqn;var mw=function(){return _.G.apply(this,arguments)||this};
_.g(mw,_.G);mw.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
mw.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
mw.prototype.updateTitle=function(){var A=this.disabledCartItemEntity;A.disableActionName&&this.set("data.title",yZ(A.disableActionName))};
mw.prototype.updateButton=function(){var A,L=(A=this.disabledCartItemEntity.undoCommand)==null?void 0:A.innertubeCommand;L!==void 0&&(this.set("data.actionButton.buttonRenderer.command",L),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
mw.prototype.entityChanged=mw.prototype.entityChanged;_.I([_.N(_.HL),_.Z("design:type",Object)],mw.prototype,"ytdReduxBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],mw.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],mw.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(A,L){return _.eM(A.entities,"disabledCartItemEntity",L)}}),
_.Z("design:type",Object)],mw.prototype,"disabledCartItemEntity",void 0);_.I([_.K(),_.Z("design:type",Object)],mw.prototype,"data",void 0);_.I([_.hT("disabledCartItemEntity","data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],mw.prototype,"entityChanged",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],mw);
_.m(mw,"ytd-disabled-cart-item-renderer",function(){if(qqn!==void 0)return qqn;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return qqn=A},{mode:1});_.y3("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var fj=function(){var A=_.G.apply(this,arguments)||this;A.compact=!1;A.hidden=!1;A.errorHidden=!1;A.noOnTap=!1;return A};
_.g(fj,_.G);_.P=fj.prototype;
_.P.configureRendererStamper=function(){return{"data.title":{id:"title",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.textMetadata":{id:"text-metadata",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.merchantUpdateText":{id:"merchant-update-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.cartItemNotification":{id:"cart-item-notification",mapping:{cardItemTextWithImageRenderer:"yt-card-item-text-with-image-renderer"}},"data.cardItemActions":{id:"cart-item-actions",
mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{disableTextTransform:"[[compact]]"}}},events:!0},"data.quantityPicker":{id:"quantity-picker",mapping:{commerceCartItemQuantityPickerRenderer:{component:"ytd-commerce-cart-item-quantity-picker-renderer",properties:{compact:"[[compact]]",quantityColor:"[[commerceCartItemEntity.quantityColor]]"}}}},"data.disabledCartItem":{id:"disabled-cart-item",mapping:{disabledCartItemRenderer:"ytd-disabled-cart-item-renderer"}}}};
_.P.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.P.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var A=this.firstButtonElement;A.alignByText=!0;A.iconAlignByText=!0}};
_.P.computeNoOnTap=function(A){return!A};
_.P.updateQuantityColor=function(){if(this.pickerElement){var A,L=(A=this.commerceCartItemEntity)==null?void 0:A.quantityColor;this.pickerElement.quantityColor=L}};
_.P.updateTotalPriceColor=function(){var A,L=(A=this.commerceCartItemEntity)==null?void 0:A.totalPriceColor;if(L){var O;A=_.q((O=this.data)==null?void 0:O.quantityPicker,A3u);if(O=_.q(A==null?void 0:A.price,o5g))O.textColor=L}};
_.P.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var A,L=(A=this.commerceCartItemEntity)==null?void 0:A.isHidden;L!==void 0&&(this.hidden=L)}};
_.P.updateHideErrorMessage=function(){var A,L=(A=this.commerceCartItemEntity)==null?void 0:A.hideErrorMessage;L!==void 0&&(this.errorHidden=L)};
_.P.updateQuantity=function(){var A=this,L,O=(L=this.commerceCartItemEntity)==null?void 0:L.quantity,X;L=(X=this.commerceCartItemEntity)==null?void 0:X.totalPrice;if(O){this.updateTotalPriceColor();this.updateQuantityColor();var x;X=_.q((x=this.data)==null?void 0:x.quantityPicker,A3u);if(x=_.q(X==null?void 0:X.price,o5g))x.text=L?{simpleText:L.content}:void 0;if(L=_.q(X==null?void 0:X.picker,Ol7))L.quantity=O;var J;if(x=(J=_.q(X==null?void 0:X.picker,X_l))==null?void 0:J.entries){J=!1;L=void 0;x=
_.d(x);for(X=x.next();!X.done;X=x.next())X=X.value,X.dropdownItemRenderer&&(L||(L=X.dropdownItemRenderer),X.dropdownItemRenderer.isSelected=!1,O===X.dropdownItemRenderer.int32Value&&(J=!0,X.dropdownItemRenderer.isSelected=!0));!J&&L&&(L.isSelected=!0)}_.kd(this,function(){var Y;A.set("data.quantityPicker",_.lW.unsafeClone((Y=A.data)==null?void 0:Y.quantityPicker))})}};
fj.prototype.onYtRendererstamperFinished=fj.prototype.onYtRendererstamperFinished;fj.prototype.entityChanged=fj.prototype.entityChanged;_.I([_.K(),_.Z("design:type",Object)],fj.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],fj.prototype,"compact",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],fj.prototype,"ytdReduxBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],fj.prototype,"ytRendererBehavior",void 0);
_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],fj.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],fj.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(A,L){return _.eM(A.entities,"commerceCartItemEntity",L)}}),
_.Z("design:type",Object)],fj.prototype,"commerceCartItemEntity",void 0);_.I([_.K(),_.Z("design:type",Object)],fj.prototype,"quantityPicker",void 0);_.I([_.K(),_.Z("design:type",Object)],fj.prototype,"compactQuantityPicker",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],fj.prototype,"hidden",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],fj.prototype,"errorHidden",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.Z("design:type",Object)],fj.prototype,"noOnTap",void 0);_.I([_.qR("ytd-commerce-cart-item-quantity-picker-renderer"),_.Z("design:type",Object)],fj.prototype,"pickerElement",void 0);_.I([_.qR("yt-button-renderer"),_.Z("design:type",Element)],fj.prototype,"firstButtonElement",void 0);
_.I([_.hT("commerceCartItemEntity","data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],fj.prototype,"entityChanged",null);_.I([_.by("yt-rendererstamper-finished"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],fj.prototype,"onYtRendererstamperFinished",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],fj);
_.m(fj,"ytd-commerce-cart-item-renderer",function(){if(Sq7!==void 0)return Sq7;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return Sq7=A},{mode:_.e5("kevlar_poly_si_batch_j028")?1:2});var gYn;var wl7;var IX=function(){return _.G.apply(this,arguments)||this};
_.g(IX,_.G);IX.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}}}}}};
IX.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
IX.prototype.updateCheckoutLineItems=function(){var A,L=(A=this.commerceCartCheckoutButtonEntity)==null?void 0:A.checkoutLineItems;L&&(A=L.map(function(O){a:{var X=O.price,x=O.description;switch(O.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":O={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:yZ(x),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:yZ(X),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:O={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:yZ(x),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:yZ(X),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 O}),this.set("data.summaryLineItems",A))};
IX.prototype.updateIsHidden=function(){var A,L=(A=this.commerceCartCheckoutButtonEntity)==null?void 0:A.isHidden;L!==void 0&&(this.hostElement.hidden=L)};
IX.prototype.entityChanged=IX.prototype.entityChanged;_.I([_.N(_.HL),_.Z("design:type",Object)],IX.prototype,"ytdReduxBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],IX.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],IX.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],IX.prototype,"ytRendererstamperBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],IX.prototype,"data",void 0);_.I([_.K({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:MBu}),_.Z("design:type",Object)],IX.prototype,"commerceCartCheckoutButtonEntity",void 0);_.I([_.hT("commerceCartCheckoutButtonEntity","data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],IX.prototype,"entityChanged",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],IX);
_.m(IX,"ytd-commerce-cart-summary-renderer",function(){if(wl7!==void 0)return wl7;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return wl7=A},{mode:1});var plN={};plN.InjectBehavior=[XtD.InjectBehavior];var iU6;var NYV;var yG=function(){return _.G.apply(this,arguments)||this};
_.g(yG,_.G);
yG.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:_.Zr("menuRenderer")}}};
yG.prototype.onMenuTap=function(A){A.stopPropagation()};
_.v2.Object.defineProperties(yG.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 A,L;return!(((A=this.data)==null||!A.sectionHeading)&&((L=this.data)==null?void 0:L.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var A,L;return!(((A=this.data)==null||!A.image)&&((L=this.data)==null?void 0:L.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var A,L;return!(((A=this.data)==null||!A.menu)&&((L=this.data)==null?void 0:L.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],yG.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],yG.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.JuH.YtTappableItemBehavior),_.Z("design:type",Object)],yG.prototype,"ytTappableItemBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],yG.prototype,"data",void 0);
_.I([_.K({reflectToAttribute:!0}),_.r("data.accessibilityData"),_.Z("design:type",String),_.Z("design:paramtypes",[])],yG.prototype,"ariaLabel",null);_.I([_.r("data.sectionHeading","data.layout"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],yG.prototype,"sectionHeadingVisible",null);_.I([_.r("data.image","data.layout"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],yG.prototype,"imageVisible",null);
_.I([_.r("data.menu","data.layout"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],yG.prototype,"menuVisible",null);_.I([_.yU({is:"yt-activity-item-renderer",disableElementRegistration:!0})],yG);
_.m(yG,"yt-activity-item-renderer",function(){if(NYV===void 0){var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;iU6===void 0&&(iU6=document.createElement("template"));var X=iU6;O.call(L,X.content.cloneNode(!0),A.content.firstChild);NYV=A}A=NYV;return A},{mode:2});var ruN;var KtH;var Gl6;var lpV;var Zi=function(){return _.G.apply(this,arguments)||this};
_.g(Zi,_.G);
Zi.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"}}}}};
Zi.prototype.backgroundColorChanged_=function(){var A,L=(A=this.data)==null?void 0:A.backgroundColor;this.hostElement.style.backgroundColor=gv[L||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
Zi.prototype.backgroundColorChanged_=Zi.prototype.backgroundColorChanged_;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Zi.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Zi.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Zi.prototype,"data",void 0);
_.I([_.hT("data.backgroundColor"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Zi.prototype,"backgroundColorChanged_",null);_.I([_.yU({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],Zi);
_.m(Zi,"yt-offer-item-upsell-renderer",function(){if(lpV===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;Gl6===void 0&&(Gl6=document.createElement("template"));var X=Gl6;O.call(L,X.content.cloneNode(!0),A.content.firstChild);lpV=A}A=lpV;return A},{mode:2});_.y3("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var je=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};A.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return A};
_.g(je,_.G);_.P=je.prototype;
_.P.configureRendererStamper=function(){return{"data.baseRenderer":{id:"base",mapping:{cardItemRenderer:{component:"yt-card-item-renderer",noInjection:!0}}},"data.contents":{id:"contents",mapping:{commerceCartHeaderRenderer:{component:"ytd-commerce-cart-header-renderer",properties:{compact:"[[compact]]"},noInjection:!0},commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{fullWidth:"[[compact]]"}},commerceCartItemRenderer:{component:"ytd-commerce-cart-item-renderer",noInjection:!0,
properties:{compact:"[[compact]]"}},cardItemRenderer:{component:"yt-card-item-renderer",noInjection:!0},offerItemUpsellRenderer:{component:"yt-offer-item-upsell-renderer",noInjection:!0},activityItemRenderer:{component:"yt-activity-item-renderer",noInjection:!0}}},"data.continuationSection":{id:"continuation-section",mapping:_.Zr("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.P.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.P.computeContainerStyle_=function(A){return A};
_.P.computeContainerIsHidden_=function(A){return A&&!!A.isHidden};
_.P.computeShowSpinner_=function(A,L){return A&&L==="in-progress"};
_.P.computeShowMoreContentsButton_=function(A,L,O,X,x){return!(!(X&&X.length||x&&x.length&&O)||!A||L)};
_.P.onToggleButton_=function(A){var L=this;A.stopPropagation();this.isExpanded_=A.detail&&A.detail.toggled;var O,X;this.isExpanded_&&!this.data.continuationSection.length&&((O=this.data)==null?0:(X=O.continuation)==null?0:X.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.P4(this.hostElement,"yt-load-next-continuation",function(x){return L.getContinuationUrl_(L.data.continuation.onClickContinuationData,x)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.TZ(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.P.onShowMoreContentsButtonClicked_=function(A){var L=this;A.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.P4(this.hostElement,"yt-load-next-continuation",function(O){return L.getContinuationUrl_(L.data.continuations[0].nextContinuationData,O)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.TZ(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.P.getContinuationUrl_=function(A,L){var O=A.continuation;A=A.clickTrackingParams;var X=_.Fn();A&&X&&_.$K(X,_.lV(A));return _.kL(L,{continuation:O})};
_.P.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var A=_.YJ(this.hostElement).querySelector("#continuation-section");A&&(A=A.querySelectorAll("ytmusic-item-section-renderer"))&&A.forEach(function(L){return L.classList.add("memberships-and-purchases")})};
_.P.dataChanged_=function(){var A;this.isExpanded_=!((A=this.data)==null||!A.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.P.updateCardOnClickCommand_=function(A){A=_.q(A,HOJ);var L,O;this.data&&((L=this.data)==null?0:L.targetId)&&A&&A.targetId===((O=this.data)==null?void 0:O.targetId)&&A.onClickCommand&&(this.data.onClickCommand=A.onClickCommand,this.isOnClickCommand_=!0)};
_.P.backgroundColorChanged_=function(){var A,L=(A=this.data)==null?void 0:A.backgroundColor;this.hostElement.style.backgroundColor=gv[L||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
je.prototype.backgroundColorChanged_=je.prototype.backgroundColorChanged_;je.prototype.dataChanged_=je.prototype.dataChanged_;je.prototype.nextContinuationDataUpdated_=je.prototype.nextContinuationDataUpdated_;je.prototype.onToggleButton_=je.prototype.onToggleButton_;_.I([_.N(_.U8),_.Z("design:type",Object)],je.prototype,"ytContinuationHandlerBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],je.prototype,"ytActionHandlerBehavior",void 0);
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],je.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.vQ.YtNextContinuationBehavior),_.Z("design:type",Object)],je.prototype,"ytNextContinuationBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],je.prototype,"ytRendererBehavior",void 0);_.I([_.N(plN.InjectBehavior),_.Z("design:type",Object)],je.prototype,"injectBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],je.prototype,"data",void 0);
_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],je.prototype,"compact",void 0);_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],je.prototype,"isExpanded_",void 0);_.I([_.K({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.Z("design:type",String)],je.prototype,"containerStyle_",void 0);_.I([_.K({value:"not-started"}),_.Z("design:type",String)],je.prototype,"continuationStatus_",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.Z("design:type",Boolean)],je.prototype,"showSpinner_",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],je.prototype,"isOnClickCommand_",void 0);_.I([_.K({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.Z("design:type",Boolean)],je.prototype,"showMoreContentsButton_",void 0);
_.I([_.K({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(A,L){return!L||A.entities?null:_.eM(A.entities,"cardItemContainerEntity",L)}}),
_.Z("design:type",Object)],je.prototype,"cardItemContainerEntity_",void 0);_.I([_.by("yt-toggle-button"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],je.prototype,"onToggleButton_",null);_.I([_.by("yt-next-continuation-data-updated"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],je.prototype,"nextContinuationDataUpdated_",null);
_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],je.prototype,"dataChanged_",null);_.I([_.hT("data.backgroundColor"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],je.prototype,"backgroundColorChanged_",null);_.I([_.yU({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],je);
_.m(je,"yt-card-item-container-renderer",function(){if(KtH===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;ruN===void 0&&(ruN=document.createElement("template"));var X=ruN;O.call(L,X.content.cloneNode(!0),A.content.firstChild);KtH=A}A=KtH;return A},{mode:2});var Wv=function(){return _.G.apply(this,arguments)||this};
_.g(Wv,_.G);Wv.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"}}}};
Wv.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
Wv.prototype.computeLoadingHidden=function(){var A;return!((A=this.commerceCartPageStateEntity)==null?0:A.cartActionInProgress)};
Wv.prototype.updateNotification=function(){var A,L=(A=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:A.summaryText;L&&this.set("data.cartNotification",yZ(L))};
Wv.prototype.notificationEntityChanged=Wv.prototype.notificationEntityChanged;_.I([_.N(_.HL),_.Z("design:type",Object)],Wv.prototype,"ytdReduxBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Wv.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],Wv.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Wv.prototype,"ytRendererstamperBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],Wv.prototype,"data",void 0);_.I([_.K({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(A,L){return _.eM(A.entities,"commerceCartExpandableNotificationEntity",L)}}),
_.Z("design:type",Object)],Wv.prototype,"commerceCartExpandableNotificationEntity",void 0);_.I([_.K({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(A,L){return _.eM(A.entities,"commerceCartPageStateEntity",L)}}),
_.Z("design:type",Object)],Wv.prototype,"commerceCartPageStateEntity",void 0);_.I([_.qR("#spinner"),_.Z("design:type",HTMLElement)],Wv.prototype,"spinner",void 0);_.I([_.hT("commerceCartExpandableNotificationEntity","data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Wv.prototype,"notificationEntityChanged",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],Wv);
_.m(Wv,"ytd-commerce-cart-renderer",function(){if(gYn!==void 0)return gYn;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return gYn=A},{mode:1});var cuH;var Hv=function(){var A=_.G.apply(this,arguments)||this;A.bigImage=!1;return A};
_.g(Hv,_.G);_.v2.Object.defineProperties(Hv.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.placeholderImageUrl}}});
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Hv.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Hv.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Hv.prototype,"bigImage",void 0);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Hv.prototype,"placeholderImageUrl",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],Hv);
_.m(Hv,"ytd-empty-product-shelf-renderer",function(){if(cuH!==void 0)return cuH;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return cuH=A},{mode:1});var C2N;var z$=function(){var A=_.G.apply(this,arguments)||this;A.itemStyle="link-item";A.watchMetadataRefresh=!1;A.skinnyMode=!1;A.metaPanel=!1;A.inStructuredDescription=!1;A.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};A.updateOnResizeDebouncer=null;return A};
_.g(z$,_.G);_.P=z$.prototype;_.P.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.P.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{iconSize:16}},menuRenderer:"ytd-menu-renderer"}},"data.emptyProductShelf":{id:"empty-product",mapping:{emptyProductShelfRenderer:{component:"ytd-empty-product-shelf-renderer"}}}}};
_.P.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.P.attachVEs=function(A){A.trackingParams&&_.iV().graftServerVe(A.trackingParams)};
_.P.handleUpdateMerchShelfAction=function(A){var L=this,O=_.q(A.updateMerchandiseShelfAction.merchandiseShelf,_.wiV);O&&(O.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){L.attachVEs(O);L.data=O},Number(O.renderDelayMs))):(this.attachVEs(O),this.data=O))};
_.P.updateOnResize=function(){if(this.JSC$17800_scrollContainer!==void 0&&this.JSC$17800_scrollContainer.clientWidth!==0&&this.items!==void 0){var A=this.JSC$17800_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-A));this.ytdHorizontalListBehavior.reposition_();var L;switch((L=this.data)==null?void 0:L.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var O,
X;((O=this.data)==null?void 0:(X=O.items)==null?void 0:X.length)===1?this.itemStyle="cta-item":this.itemStyle=A>=740?"large-item":"small-item"}}};
_.P.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.t_(this.updateOnResizeDebouncer,_.sS.after(100),this.updateOnResize)};
z$.prototype.debouncedUpdateOnResize=z$.prototype.debouncedUpdateOnResize;z$.prototype.dataChanged=z$.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],z$.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],z$.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.Vy.YtdHorizontalListBehavior),_.Z("design:type",Object)],z$.prototype,"ytdHorizontalListBehavior",void 0);
_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],z$.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],z$.prototype,"ytActionHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],z$.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],z$.prototype,"itemStyle",void 0);_.I([_.K({value:6}),_.Z("design:type",Number)],z$.prototype,"initialCount",void 0);
_.I([_.K({value:"data.items"}),_.Z("design:type",String)],z$.prototype,"itemsPath",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],z$.prototype,"watchMetadataRefresh",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],z$.prototype,"skinnyMode",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],z$.prototype,"metaPanel",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],z$.prototype,"inStructuredDescription",void 0);
_.I([_.qR("#items"),_.Z("design:type",HTMLDivElement)],z$.prototype,"items",void 0);_.I([_.qR("#scroll-container"),_.Z("design:type",HTMLDivElement)],z$.prototype,"JSC$17800_scrollContainer",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],z$.prototype,"dataChanged",null);_.I([_.by("iron-resize"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],z$.prototype,"debouncedUpdateOnResize",null);
_.I([_.Q({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],z$);
_.m(z$,"ytd-merch-shelf-renderer",function(){if(C2N!==void 0)return C2N;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return C2N=A},{mode:2});var FtL;var Bv=function(){var A=_.G.apply(this,arguments)||this;A.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 A};
_.g(Bv,_.G);_.P=Bv.prototype;
_.P.addBackstagePostAction=function(A){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(A=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",A))&&(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:A}):this.set("data.contents",[{backstagePostThreadRenderer:A}]))};
_.P.addBackstageCommentAction=function(A){var L=this.get("addBackstageCommentAction.parentId",A);A=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",A);if(L&&A){L=this.postIdToIndices(L);for(var O=0;O<L.length;O++){var X=L[O];if(X<0)break;X="data.contents."+X+".backstagePostThreadRenderer.comments";this.get(X)&&(this.get(X+".backstageCommentsRenderer.contents")&&this.push(X+".backstageCommentsRenderer.contents",{commentThreadRenderer:A}),this.get(X+".backstageCommentsRenderer.teaserContents")?
this.push(X+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:A}):this.set(X+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:A}]))}}};
_.P.addBackstageReplyAction=function(A){var L=this.get("addBackstageReplyAction.parentId",A);A=this.get("addBackstageReplyAction.renderer.commentRenderer",A);L&&A&&this.setCreatorReply(L,A)};
_.P.banAuthorAction=function(A){var L=this.get("banAuthorAction.commentId",A);L&&(A=this.get("banAuthorAction.parentCommentId",A)||this.getParentPostId(L),this.removeFromStream(L,A))};
_.P.hideReportedCommentAction=function(A){var L=this.get("hideReportedCommentAction.commentId",A);L&&((A=this.get("hideReportedCommentAction.parentCommentId",A))||(A=this.getParentPostId(L)),this.removeFromStream(L,A))};
_.P.replaceBackstageCommentAction=function(A){var L=this.get("replaceBackstageCommentAction.commentId",A),O=this.get("replaceBackstageCommentAction.parentId",A);A=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",A);if(L&&O&&A){O=this.postIdToIndices(O);for(var X=0;X<O.length;X++){var x=O[X];if(x<0)break;var J=this.commentIdToIndex(L,x,!1);if(J>=0){var Y=this.get("data.contents."+x+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+J+".commentThreadRenderer.replies.commentRepliesRenderer");
Y&&(A.replies={commentRepliesRenderer:Y});this.splice("data.contents."+x+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",J,1,{commentThreadRenderer:A})}J=this.commentIdToIndex(L,x,!0);if(J>=0){if(Y=this.get("data.contents."+x+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(J+".commentThreadRenderer.replies.commentRepliesRenderer")))A.replies={commentRepliesRenderer:Y};this.splice("data.contents."+x+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
J,1,{commentThreadRenderer:A})}}}};
_.P.replaceBackstagePostAction=function(A){var L=this.get("replaceBackstagePostAction.itemId",A);if(L){L=this.postIdToIndices(L);for(var O=0;O<L.length;O++){var X=L[O];if(X<0)break;var x=this.getPostRendererType(X),J=this.get("replaceBackstagePostAction.renderer."+x,A);if(!J&&x!=="sharedPostRenderer")break;var Y=!1;J||(Y=!0,J=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",A));if(!J)break;var T={};Y?(_.Iy(T,EFj,J),this.set("data.contents."+X+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
T)):(_.Iy(T,new _.PF(x),J),this.set("data.contents."+X+".backstagePostThreadRenderer.post",T))}}};
_.P.replaceBackstageReplyAction=function(A){var L=this.get("replaceBackstageReplyAction.replyId",A),O=this.get("replaceBackstageReplyAction.parentId",A);A=this.get("replaceBackstageReplyAction.renderer.commentRenderer",A);L&&A&&O&&this.setCreatorReply(O,A)};
_.P.removeCommentAction=function(A){var L=this.get("removeCommentAction.commentId",A);if(L){var O=this.get("removeCommentAction.parentCommentId",A);O&&this.get("removeCommentAction.isCreatorReply",A)?this.setCreatorReply(O,void 0):(O||(O=this.getParentPostId(L)),this.removeFromStream(L,O))}};
_.P.setCreatorReply=function(A,L){var O=this.getParentPostId(A);if(O){O=this.postIdToIndices(O);for(var X=0;X<O.length;X++){var x=O[X];if(x<0)break;var J=this.commentIdToIndex(A,x,!1);if(J>=0){var Y="data.contents."+x+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+J;J=Y+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";Y+=".commentThreadRenderer.replies";L==void 0?(this.set(Y,{}),this.set(J,!1)):(this.set(Y,{commentRepliesRenderer:{teaserContents:[{commentRenderer:L}]}}),
this.set(Y+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(J,!0))}J=this.commentIdToIndex(A,x,!0);J>=0&&(J="data.contents."+x+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+J,x=J+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",J+=".commentThreadRenderer.replies",L==void 0?(this.set(J,{}),this.set(x,!1)):(this.set(J,{commentRepliesRenderer:{teaserContents:[{commentRenderer:L}]}}),this.set(x,!0)))}}};
_.P.removeFromStream=function(A,L){if(L){L=this.postIdToIndices(L);for(var O=0;O<L.length;O++){var X=L[O];if(X<0)break;var x=this.commentIdToIndex(A,X,!1);x>=0&&this.splice("data.contents."+X+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",x,1);x=this.commentIdToIndex(A,X,!0);x>=0&&this.splice("data.contents."+X+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",x,1);X="data.contents."+X+".backstagePostThreadRenderer.post.backstagePostRenderer";
x=X+".backstageAttachment.pollRenderer.votedCommentId";this.get(x)===A&&(this.set(x,null),this.set(X+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(L=this.postIdToIndices(A).reverse(),O=0;O<L.length;O++){X=L[O];if(X<0)break;x=this.getPostRendererType(X);var J=this.get("backstagePostThreadRenderer.post."+x,this.data.contents[X]);J.postId===A?this.splice("data.contents",X,1):x==="sharedPostRenderer"&&this.set("data.contents."+X+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);J.scheduledPublishTimeSec&&_.dQ(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.P.postIdToIndices=function(A){for(var L=[],O=0;O<this.data.contents.length;O++){var X=this.getPostRendererType(O);this.get("backstagePostThreadRenderer.post."+X+".postId",this.data.contents[O])===A&&L.push(O);if(X==="sharedPostRenderer"){var x=this.get("backstagePostThreadRenderer.post."+X+".originalPost.backstagePostRenderer.postId",this.data.contents[O]);X=this.get("backstagePostThreadRenderer.post."+X+".originalPost.postRenderer.postId",this.data.contents[O]);x!==A&&X!==A||L.push(O)}}return L};
_.P.commentIdToIndex=function(A,L,O){if(L<0)return-1;var X,x,J,Y,T=_.q((X=this.data)==null?void 0:(x=X.contents)==null?void 0:(J=x[L])==null?void 0:(Y=J.backstagePostThreadRenderer)==null?void 0:Y.comments,DJg);return(L=O?T==null?void 0:T.teaserContents:T==null?void 0:T.contents)&&L.length?L.findIndex(function(V){return _.q(V,at6).comment.commentRenderer.commentId===A}):-1};
_.P.getParentPostId=function(A){A=A.split(".");if(A[1])return A[0]};
_.P.getPostRendererType=function(A){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[A])?"sharedPostRenderer":"backstagePostRenderer"};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Bv.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],Bv.prototype,"ytActionHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Bv.prototype,"data",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-backstage-items"})],Bv);
_.m(Bv,"ytd-backstage-items",function(){if(FtL!==void 0)return FtL;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return FtL=
A},{mode:1});var R86;var QgN={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},M3=function(){var A=_.G.apply(this,arguments)||this;A.disablePrescanVisibility=!0;A.canScheduleJobs=!0;A.engagementPanel=!1;A.hidePanelButton=!1;A.isWatchGrid=!1;A.hasShownSubscribersOnlyDisclaimer=!1;A.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_"};return A};
_.g(M3,_.G);_.P=M3.prototype;_.P.created=function(){this.initCommentsCsi_()};
_.P.contentsChanged_=function(){var A;(A=this.data)!=null&&A.contents&&this.tickForCommentsTimer_("cml")};
_.P.headerChanged_=function(){var A;(A=this.data)!=null&&A.header&&this.tickForCommentsTimer_("cmhl")};
_.P.initCommentsCsi_=function(){_.Fz("wn_comments");var A=_.Fn();A&&_.CM({clientScreenNonce:A},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.P.createCommentAction_=function(A){A=_.lW.unsafeClone(A);var L,O;if(A=(L=_.q(A,yQN))==null?void 0:(O=L.contents)==null?void 0:O.commentThreadRenderer){var X,x,J,Y,T,V;!this.isBackstage&&((X=this.data)==null?0:(x=X.header)==null?0:(J=x.commentsHeaderRenderer)==null?0:(Y=J.createRenderer)==null?0:(T=Y.commentSimpleboxRenderer)==null?0:(V=T.zeroStep)==null?0:V.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var E,
n,t;this.isBackstage&&_.q((E=this.data)==null?void 0:(n=E.header)==null?void 0:(t=n.commentsHeaderRenderer)==null?void 0:t.zeroStateMessage,nFl)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(A)}};
_.P.doReplyInsert_=function(A,L,O,X){X?this.splice(A,X,0,L):this.push(A,L)};
_.P.getRepliesPath_=function(A){return"data.contents."+A+".commentThreadRenderer.replies"};
_.P.getRepliesContentsPath_=function(A,L){A=this.getRepliesPath_(A);return L?A+".commentRepliesRenderer.teaserContents":A+".commentRepliesRenderer.contents"};
_.P.showSubscribersOnlyDisclaimer_=function(A){(A=A.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(A=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(A))&&(_.dQ(this.hostElement,"yt-open-popup-action",[A,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.P.createCommentReplyAction_=function(A){A=_.lW.unsafeClone(A);var L=_.q(A,ZcJ);if(A=L==null?void 0:L.contents){var O=this.commentIdToIndex_(L==null?void 0:L.parentCommentId);if(!(O<0)){var X=this.getRepliesPath_(O);if(this.get(X)){L=L.replyToCommentId;X=this.getRepliesContentsPath_(O,!1);if(this.get(X)){var x=this.get(X).length,J=X+"."+(x-1)+".continuationItemRenderer";this.get(J+".button")?(J=this.replyIdToIndex_(L,O,!1),this.doReplyInsert_(X,A,J,x-1)):this.get(J)||(x=this.replyIdToIndex_(L,O,
!1),this.doReplyInsert_(X,A,x,null))}X=this.getRepliesContentsPath_(O,!0);this.get(X)?(O=this.replyIdToIndex_(L,O,!0),(!L||O>=0)&&this.doReplyInsert_(X,A,O,null)):this.set(X,[A])}else this.set(X,{commentRepliesRenderer:{teaserContents:[A]}})}}};
_.P.hideReportedCommentAction_=function(A){var L=_.q(A,P5H);if(A=L==null?void 0:L.commentId)L=this.get("parentCommentId",L),A=A.replace("#","."),L||(L=this.getParentCommentId_(A)),this.remove_(A,L)};
_.P.getParentCommentId_=function(A){A=A.split(".");if(A[1])return A[0]};
_.P.removeCommentAction_=function(A){var L=_.q(A,B_6);if(A=L==null?void 0:L.commentId)L=L==null?void 0:L.parentCommentId,A=A.replace("#","."),L||(L=this.getParentCommentId_(A)),this.remove_(A,L)};
_.P.pinCommentAction_=function(A){A=_.lW.unsafeClone(A);var L=_.q(A,zJj);L!=null&&L.commentId&&(A=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",A))&&(this.remove_(L.commentId),this.insert_(A,!0))};
_.P.unpinCommentAction_=function(A){A=_.lW.unsafeClone(A);A=_.q(A,M76);if(A!=null&&A.commentId){var L,O,X=(L=A.actionResult)==null?void 0:(O=L.update)==null?void 0:O.commentThreadRenderer;X&&(this.remove_(A.commentId),this.insert_(X))}};
_.P.banAuthorAction_=function(A){var L=_.q(A,ItN);L!=null&&L.commentId&&(A=L.parentCommentId,L=L.commentId.replace("#","."),A||(A=this.getParentCommentId_(L)),this.remove_(L,A))};
_.P.commentIdToIndex_=function(A){var L;return A&&(L=this.data)!=null&&L.contents?this.data.contents.findIndex(function(O){O=O.commentThreadRenderer;var X;return A===((O==null?void 0:O.commentViewModel)&&((X=_.q(O.commentViewModel,LZj))==null?void 0:X.commentId))}):-1};
_.P.insert_=function(A,L){L=L===void 0?!1:L;var O,X;if((O=this.data)==null?0:(X=O.contents)==null?0:X.some(function(J){return!!J.commentThreadRenderer}))for(O=0,X=this.data.contents.length;O<X;O++){var x=this.data.contents[O].commentThreadRenderer;
if(QgN[A.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=QgN[x.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){L&&QgN[A.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===QgN[x.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",O,1,{commentThreadRenderer:A}):this.splice("data.contents",O,0,{commentThreadRenderer:A});break}}else this.set("data.contents",[{commentThreadRenderer:A}])};
_.P.doReplyRemove_=function(A,L,O){A=this.replyIdToIndex_(A,L,O);A<0||(L=this.getRepliesContentsPath_(L,O),this.splice(L,A,1))};
_.P.remove_=function(A,L){L=this.commentIdToIndex_(L);L<0?(L=this.commentIdToIndex_(A),L<0||this.splice("data.contents",L,1)):(this.doReplyRemove_(A,L,!1),this.doReplyRemove_(A,L,!0))};
_.P.replyIdToIndex_=function(A,L,O){if(L<0)return-1;L=this.getRepliesContentsPath_(L,O);L=this.get(L);if(!L||!L.length)return-1;O=0;for(var X=L.length;O<X;O++){var x=void 0,J=void 0;if(((x=L[O])==null?void 0:(J=x.commentViewModel)==null?void 0:J.commentId)===A)return O}return-1};
_.P.tickForCommentsTimer_=function(A){_.QN(A,void 0,"wn_comments")};
_.P.reloadComments_=function(A){A=_.q(A,oFn);_.q(A==null?void 0:A.command,_.Mn)&&_.TZ(this.hostElement,[A==null?void 0:A.command])};
_.v2.Object.defineProperties(M3.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var A,L,O;return!!((A=this.data)==null?0:(L=A.header)==null?0:(O=L.commentsHeaderRenderer)==null?0:O.isBackstageContent)}}});
_.v2.Object.defineProperties(M3,{template:{configurable:!0,enumerable:!0,get:function(){if(R86===void 0){var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);R86=A}A=R86;return A}}});
M3.prototype.showSubscribersOnlyDisclaimer_=M3.prototype.showSubscribersOnlyDisclaimer_;M3.prototype.headerChanged_=M3.prototype.headerChanged_;M3.prototype.contentsChanged_=M3.prototype.contentsChanged_;_.I([_.N(_.J3),_.Z("design:type",Object)],M3.prototype,"ytdOpenPopupBehavior",void 0);_.I([_.N(_.JZu.YtHostElementBehavior),_.Z("design:type",Object)],M3.prototype,"ytHostElementBehavior",void 0);
_.I([_.N(_.LE.YtPlayerListenerBehavior),_.Z("design:type",Function)],M3.prototype,"ytPlayerListenerBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],M3.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],M3.prototype,"ytActionHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],M3.prototype,"data",void 0);
_.I([_.K({reflectToAttribute:!0}),_.r("data.header.commentsHeaderRenderer.isBackstageContent"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],M3.prototype,"isBackstage",null);_.I([_.K(),_.Z("design:type",Object)],M3.prototype,"disablePrescanVisibility",void 0);_.I([_.K(),_.Z("design:type",Object)],M3.prototype,"canScheduleJobs",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],M3.prototype,"engagementPanel",void 0);
_.I([_.K(),_.Z("design:type",Object)],M3.prototype,"hidePanelButton",void 0);_.I([_.K(),_.Z("design:type",Object)],M3.prototype,"isWatchGrid",void 0);_.I([_.K(),_.Z("design:type",Object)],M3.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);_.I([_.hT("data.contents"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],M3.prototype,"contentsChanged_",null);
_.I([_.hT("data.header"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],M3.prototype,"headerChanged_",null);_.I([_.by("yt-show-subscribers-only-disclaimer"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],M3.prototype,"showSubscribersOnlyDisclaimer_",null);_.I([_.Q({is:"ytd-comments"})],M3);var $b=function(){return _.wd.apply(this,arguments)||this};
_.g($b,_.wd);_.P=$b.prototype;_.P.bindIf=function(A,L,O){return A?L:O};
_.P.bindIfDefined=function(A,L){return A!==void 0?A:L};
_.P.booleanString=function(A){return(!!A).toString()};
_.P.equals=function(){for(var A=_.f_.apply(0,arguments),L=A[0],O=1;O<A.length;O++)if(L!=A[O])return!1;return!0};
_.P.isGreaterThan=function(A,L){return A>L};
_.P.isLessThan=function(A,L){return A<L};
_.P.logicalAND=function(){for(var A=_.f_.apply(0,arguments),L=!!A[0],O=1;O<A.length;O++)L=L&&!!A[O];return L};
_.P.logicalOR=function(){for(var A=_.f_.apply(0,arguments),L=!!A[0],O=1;O<A.length;O++)L=L||!!A[O];return L};
_.P.toBool=function(A){return!!A};
$b.prototype.toBool=$b.prototype.toBool;$b.prototype.logicalOR=$b.prototype.logicalOR;$b.prototype.logicalAND=$b.prototype.logicalAND;$b.prototype.isLessThan=$b.prototype.isLessThan;$b.prototype.isGreaterThan=$b.prototype.isGreaterThan;$b.prototype.equals=$b.prototype.equals;$b.prototype.booleanString=$b.prototype.booleanString;$b.prototype.bindIfDefined=$b.prototype.bindIfDefined;$b.prototype.bindIf=$b.prototype.bindIf;_.I([_.p4()],$b);_.msn=[$b.prototype];var fpc;var Ip6;var aX=function(){return _.G.apply(this,arguments)||this};
_.g(aX,_.G);aX.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
aX.prototype.onBackIconTap_=function(){window.history.back()};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],aX.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],aX.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],aX.prototype,"data",void 0);_.I([_.yU({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],aX);
_.m(aX,"yt-header-with-back-renderer",function(){if(Ip6===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;fpc===void 0&&(fpc=document.createElement("template"));var X=fpc;O.call(L,X.content.cloneNode(!0),A.content.firstChild);Ip6=A}A=Ip6;return A},{mode:2});var yuc;var ZUJ;var kb=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return A};
_.g(kb,_.G);_.P=kb.prototype;_.P.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.P.onDarkModeToggledAction=function(A){A!==this.isDarkTheme&&(this.isDarkTheme=A,this.setUrl())};
_.P.dataChanged=function(){var A=this;if(this.data){var L=this.setUrl();L&&_.dk({destination:window,iframe:this.iframe,origin:_.x06(L.toString()),channelName:"yt-iframe",onMessage:function(O){(O=A.getCommunicationCommand(O.data))&&A.ytComponentBehavior.resolveCommand(O)},
onEstablished:function(){}})}};
_.P.setUrl=function(){if(this.data&&this.data.iframeUrl){var A=_.CH(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(A)return _.Hf(this.iframe,A),A}};
_.P.getCommunicationCommand=function(A){var L;if((L=this.data)!=null&&L.onCommunicationCommandsMap){L=this.data.onCommunicationCommandsMap.find(function(x){return x.key===A});
if(L==null?0:L.value)return L==null?void 0:L.value;try{var O=RWJ(_.ke(A)),X=this.data.onCommunicationCommandsMap.find(function(x){return x.key===(O==null?void 0:O.getMethodName())});
if(X==null?0:X.value)return X==null?void 0:X.value}catch(x){}}};
kb.prototype.dataChanged=kb.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],kb.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],kb.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],kb.prototype,"actionHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],kb.prototype,"data",void 0);
_.I([_.K({value:!1}),_.Z("design:type",Boolean)],kb.prototype,"isDarkTheme",void 0);_.I([_.qR("#iframe"),_.Z("design:type",HTMLIFrameElement)],kb.prototype,"iframe",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],kb.prototype,"dataChanged",null);_.I([_.yU({is:"yt-iframe-renderer",disableElementRegistration:!0})],kb);
_.m(kb,"yt-iframe-renderer",function(){if(ZUJ===void 0){var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;yuc===void 0&&(yuc=document.createElement("template"));var X=yuc;O.call(L,X.content.cloneNode(!0),A.content.firstChild);ZUJ=A}A=ZUJ;return A},{mode:2});_.U6=function(A){_.p$.call(this);this.callback=A;this.bezier=new aX6(0,0,.4,0,.2,1,1,1);this.delay=new _.Lh(this.next,window,this);this.JSC$17844_animating=!1;_.VI(this,this.delay)};
_.g(_.U6,_.p$);_.U6.prototype.isAnimating=function(){return this.JSC$17844_animating};
_.U6.prototype.start=function(A,L,O){this.config={from:A,to:L,duration:O,startTime:(0,_.O$)()};this.JSC$17844_animating=!0;this.next()};
_.U6.prototype.stop=function(){this.delay.stop();this.JSC$17844_animating=!1;this.config=void 0};
_.U6.prototype.next=function(){if(this.config){var A=this.config,L=A.from,O=A.to,X=A.duration;A=A.startTime;var x=(0,_.O$)()-A;A=this.bezier;X=Ubl(A,x/X);if(X==0)A=A.y0;else if(X==1)A=A.y3;else{x=c6(A.y0,A.y1,X);var J=c6(A.y1,A.y2,X);A=c6(A.y2,A.y3,X);x=c6(x,J,X);J=c6(J,A,X);A=c6(x,J,X)}A=_.Z7(A,0,1);this.callback(L+(O-L)*A);A<1?this.delay.start():this.JSC$17844_animating=!1}};_.vv=new _.Yx("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var jgL={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},HUc=function(A,L,O,X){_.p$.call(this);this.JSC$17855_miniAppId=A;this.localReleaseId=L;this.derivedDeviceInterface=O;this.isForeground=X;this.JSC$17855_playNonceResolver=new _.EP;this.playPingTimerId=NaN;this.playPingIntervalMs=_.PO("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.PO("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.h("enable_displaying_ppn");this.JSC$17855_miniAppClientDataProvider=_.X5().resolve(_.vv);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;WtJ(this);var x=setTimeout(function(){_.Rv(new _.pe("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$17855_playNonceResolver.promise.then(function(){clearTimeout(x)})};
_.g(HUc,_.p$);var BYN=function(A,L){A.JSC$17855_playNonceResolver.resolve(L!=null?L:li(8));A.enableDisplayingPpn&&z8V(A).then(function(O){A.JSC$17855_miniAppClientDataProvider.clientData.set("post_play_nonce",O)})},z8V=function(A){return _.u(function(L){return L.nextAddress==1?L.yield(A.JSC$17855_playNonceResolver.promise,2):L.return(L.yieldResult)})},WtJ=function(A){var L,O;
_.u(function(X){if(X.nextAddress==1)return X.yield(A.JSC$17855_playNonceResolver.promise,2);L=X.yieldResult;O={miniAppInfo:{externalPostId:A.JSC$17855_miniAppId,localReleaseId:A.localReleaseId,postPlayNonce:L,derivedDeviceInterface:A.derivedDeviceInterface}};_.CM(O);_.qo(X)})},$s6=function(A){A.state!==0?_.Rv(new _.pe("[MiniAppPlayLogger] recordPlayStart failed with state "+jgL[A.state])):(A.state=1,oX(A,"ma_cl"),Ao(A,"PLAY_EVENT_TYPE_PLAY_START"),M2l(A))},apH=function(A){A.isForeground=!1;
Ao(A,"PLAY_EVENT_TYPE_PLAY_PAUSE")},klj=function(A){A.state!==1&&A.state!==2?_.Rv(new _.pe("[MiniAppPlayLogger] recordPlayEnd failed with state "+jgL[A.state])):(A.state=3,window.clearInterval(A.playPingTimerId),A.playPingTimerId=NaN,shJ(),Ao(A,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},Usl=function(A,L){A.state===2&&A.gameReady&&(A.firstClickRecorded?Date.now()-A.clickRecordedMs<A.playClickIntervalMs||(A.clickRecordedMs=Date.now(),Ao(A,"PLAY_EVENT_TYPE_PLAY_CLICK")):L&&(oX(A,"ma_fua"),Ao(A,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),A.firstClickRecorded=!0,A.clickRecordedMs=Date.now()))};
HUc.prototype.logError=function(A){var L=this,O;_.u(function(X){if(X.nextAddress==1)return A.metadata.externalPostId=L.JSC$17855_miniAppId,O=A.metadata,X.yield(Promise.race([L.JSC$17855_playNonceResolver.promise,new Promise(function(x){setTimeout(function(){x("")},3E4)})]),2);
O.postPlayNonce=X.yieldResult;A.metadata.localReleaseId=L.localReleaseId;A.loggingError.level="WARNING";_.C7(A.loggingError,A.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:A.metadata});_.qo(X)})};
var vYu=function(A,L,O,X){var x,J,Y,T,V,E;_.u(function(n){if(n.nextAddress==1)return n.yield(A.JSC$17855_playNonceResolver.promise,2);x=n.yieldResult;J={externalPostId:A.JSC$17855_miniAppId,localReleaseId:A.localReleaseId,postPlayNonce:x,sdkVersion:O,api:L};X!==void 0&&(J.networkRequestsMeasurement={networkRequests:_.x8(X,1),cachedRequests:_.x8(X,2),transferredBytes:_.x8(X,3)},(Y=X)==null?0:_.i1(Y,PB,6))&&(J.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((T=_.ET(X,
PB,6))==null?void 0:ZF(T,1))||"0",cacheHits:((V=_.ET(X,PB,6))==null?void 0:ZF(V,2))||"0",cachedBytes:((E=_.ET(X,PB,6))==null?void 0:ZF(E,3))||"0"});_.lg("miniAppSdkUsage",J);_.qo(n)})},AqN=function(A,L,O){var X,x,J,Y,T,V,E,n,t,b,S,w,l,F,R,y;
_.u(function(M){if(M.nextAddress==1)return M.yield(A.JSC$17855_playNonceResolver.promise,2);X=M.yieldResult;x={externalPostId:A.JSC$17855_miniAppId,localReleaseId:A.localReleaseId,postPlayNonce:X,sdkVersion:O,measurementWindow:{startTimestampMs:String(RH(L,1)),endTimestampMs:String(RH(L,2))},frameRate:{averageFrameTimeDeltaMs:Qt(L,3),averageFrameIdleTimeMs:Qt(L,4)}};_.i1(L,dS,5)&&(x.networkRequests={networkRequests:(J=E7(L))==null?void 0:_.x8(J,1),cachedRequests:(Y=E7(L))==null?void 0:_.x8(Y,2),transferredBytes:(T=
E7(L))==null?void 0:_.x8(T,3),sameOriginStatusCodeToCounts:oY7((V=E7(L))==null?void 0:rk_(V,4)),crossOriginStatusCodeToCounts:oY7((E=E7(L))==null?void 0:rk_(E,5))},(n=E7(L))==null?0:_.i1(n,PB,6))&&(x.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((t=E7(L))==null?void 0:(b=_.ET(t,PB,6))==null?void 0:ZF(b,1))||"0",cacheHits:((S=E7(L))==null?void 0:(w=_.ET(S,PB,6))==null?void 0:ZF(w,2))||"0",cachedBytes:((l=E7(L))==null?void 0:(F=_.ET(l,PB,6))==null?void 0:ZF(F,3))||"0"});_.i1(L,
u4j,7)&&(x.gameCapture={averageFrameTimeDeltaMs:(R=_.ET(L,u4j,7))==null?void 0:Qt(R,1),averageFrameIdleTimeMs:(y=_.ET(L,u4j,7))==null?void 0:Qt(y,2)});_.lg("miniAppPerformanceMetrics",x);_.qo(M)})},LYV=function(A,L){var O,X;
return _.u(function(x){if(x.nextAddress==1)return x.yield(A.JSC$17855_playNonceResolver.promise,2);O=x.yieldResult;X={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:A.JSC$17855_miniAppId,postPlayNonce:O,miniAppReleaseId:A.localReleaseId},derivedDeviceInterface:A.derivedDeviceInterface,adTriggerType:L,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.lg("miniAppAdEvent",X);_.qo(x)})};
HUc.prototype.disposeInternal=function(){_.p$.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var Ao=function(A,L,O,X){O=O===void 0?{}:O;X=X===void 0?!1:X;var x,J,Y,T;_.u(function(V){if(V.nextAddress==1)return x=A.isForeground,J=A.beforeReady,V.yield(A.JSC$17855_playNonceResolver.promise,2);Y=V.yieldResult;T={externalPostId:A.JSC$17855_miniAppId,localReleaseId:A.localReleaseId,derivedDeviceInterface:A.derivedDeviceInterface,postPlayNonce:Y,type:L};O.sequenceGroup=Y;T.playState=J?"PLAY_STATE_NOT_READY":x?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.lg("miniAppPlayEvent",T,
O);X&&_.ch();_.qo(V)})},oX=function(A,L){var O;
_.u(function(X){if(X.nextAddress==1)return O=(0,_.O$)(),X.yield(A.JSC$17855_playNonceResolver.promise,2);_.Rk(L,O);_.qo(X)})},M2l=function(A){isNaN(A.playPingTimerId)&&(A.playPingTimerId=_.Vr(function(){A.state!==1&&A.state!==2?_.Rv(new _.pe("[MiniAppPlayLogger] reportPlayPing failed with state "+jgL[A.state])):Ao(A,"PLAY_EVENT_TYPE_PLAY_PING")},A.playPingIntervalMs))},oY7=function(A){return Array.from(A.entries()).map(function(L){var O=_.d(L);
L=O.next().value;O=O.next().value;return{key:L,value:O}})};var OQ6=function(){},XpL=function(A,L){A.showMiniAppAdCommand=L.showMiniAppAdCommand;
A.isEmbeddedInWebview=L.isEmbeddedInWebview;A.playLogger=L.playLogger},sAN=function(A,L){var O;
return _.u(function(X){if(X.nextAddress==1){if(!A.showMiniAppAdCommand||!A.isEmbeddedInWebview)return X.return(xCH(A,L));A.adResolver=new _.EP;var x=new ZU;O=_.s$(x,3,L);HC(A.showMiniAppAdCommand,ZD7(O));return X.yield(A.adResolver.promise,2)}return X.return(X.yieldResult)})};
OQ6.prototype.onAdFinished=function(A){A=jHc(A);var L;(L=this.adResolver)==null||L.resolve(A)};
var xCH=function(A,L){var O;return _.u(function(X){if(X.nextAddress==1)X=X.yield((O=A.playLogger)==null?void 0:LYV(O,nsO(L)),2);else{var x=X.return;var J=new ZsJ;J=_.s$(J,1,2);X=x.call(X,J)}return X})};var Jqn=new _.Yx("INNERTUBE_MANAGER_TOKEN");var PDN=function(){this.callbacks={}};
PDN.prototype.initialize=function(A){var L=this;this.callbacks=A;window.youtubewebview?window.youtubewebview.onmessage=function(O){dC6(L,O)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(O){dC6(L,O)})};
var dC6=function(A,L){if(L.data)try{var O=RWJ(L.data);if(_.Ez(_.ps(O,1))!=null){var X=R1n(_.mT(O,2));switch(O.getMethodName()){case "yt-mini-app-load-audio-state":var x,J;(J=(x=A.callbacks).onAudioStateLoaded)==null||J.call(x,_.Fu(X,SJ(X,yF,1)));break;case "yt-mute-mini-app":var Y,T;(T=(Y=A.callbacks).onMuteMiniApp)==null||T.call(Y);break;case "yt-unmute-mini-app":var V,E;(E=(V=A.callbacks).onUnmuteMiniApp)==null||E.call(V);break;case "yt-playable-exit":var n,t;(t=(n=A.callbacks).onExit)==null||t.call(n);
break;case "yt-post-play-nonce":var b,S;(S=(b=A.callbacks).onPostPlayNonceReceived)==null||S.call(b,jX(X,2,yF));break;case "yt-confirm-exit-mini-app":var w,l;(l=(w=A.callbacks).confirmExitMiniApp)==null||l.call(w);break;case "yt-confirm-exit-mini-app-edu":var F,R;(R=(F=A.callbacks).confirmExitMiniAppEdu)==null||R.call(F);break;case "yt-benchmarking-response":var y,M;(M=(y=A.callbacks).onNativeBenchmarkingMessageReceived)==null||M.call(y,jX(X,2,yF));break;case "yt-mini-app-load-3p-consent-state":var H,
z;(z=(H=A.callbacks).multiplayer3pAckStateLoaded)==null||z.call(H,_.Fu(X,SJ(X,yF,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var a,xe;(xe=(a=A.callbacks).exitMiniAppSeenStateLoaded)==null||xe.call(a,_.Fu(X,SJ(X,yF,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var ur,eD;(eD=(ur=A.callbacks).onNavigateToNewMiniApp)==null||eD.call(ur);break;case "yt-game-data-available":var gu,ir;(ir=(gu=A.callbacks).onGameDataAvailable)==null||ir.call(gu,jX(X,2,yF));break;case "yt-pause-mini-app":var SD,
HJ;(HJ=(SD=A.callbacks).onPauseMiniApp)==null||HJ.call(SD);break;case "yt-resume-mini-app":var mM,Vu;(Vu=(mM=A.callbacks).onResumeMiniApp)==null||Vu.call(mM);break;case "yt-playable-ad-finished":var cn,Tj;(Tj=(cn=A.callbacks).onAdFinished)==null||Tj.call(cn,jX(X,2,yF))}}else _.Rv(Error("Rh"))}catch(Uu){_.C7(Error("Sh"))}else _.Rv(Error("Th"))};var b8O=function(A){this.rpcErrorCode=A};var LF=function(A,L,O){this.intervalMs=A;this.apiFunc=L;this.type=O;this.schedulerReady=!0};
LF.prototype.call=function(A){var L=this,O;return _.u(function(X){if(X.nextAddress==1){if(L.type!==1&&A===L.cachedValue)return X.return();L.pendingApiRequestResolver||(L.pendingApiRequestResolver=new _.EP);O=L.pendingApiRequestResolver.promise;L.cachedValue=A;return X.yield(YAN(L),2)}return X.return(O)})};
LF.prototype.flush=function(A){A=A===void 0?!1:A;var L=this;return _.u(function(O){return L.cachedValue===void 0?O.return():O.yield(L.apiFunc(L.cachedValue,A),0)})};
var YAN=function(A){var L,O,X;return _.u(function(x){switch(x.nextAddress){case 1:if(!A.schedulerReady||!A.pendingApiRequestResolver)return x.return();A.schedulerReady=!1;L=A.pendingApiRequestResolver;A.pendingApiRequestResolver=void 0;_.e4(x,2);if(A.cachedValue===void 0){x.jumpTo(4);break}return x.yield(A.apiFunc(A.cachedValue),5);case 5:O=x.yieldResult,L.resolve(O);case 4:_.zA(x,3);break;case 2:X=_.S4(x),L.reject(X);case 3:setTimeout(function(){return _.u(function(J){A.schedulerReady=!0;return J.yield(YAN(A),
0)})},A.intervalMs),_.qo(x)}})};var q9e=window.location.origin+"/miniapp_cloudsaves",hR_=[400,401],ujH=_.PO("cloud_save_game_data_rate_limit_ms",3E3),DCL=function(A){var L=this;this.JSC$17899_miniAppId=A;this.loadAttempts=0;this.cloudSaveIntervalMs=ujH;this.initialDownloadDataSucceeded=!1;this.JSC$17899_playNonceResolver=new _.EP;this.scottyUploadRateLimiter=new LF(this.cloudSaveIntervalMs,function(O,X){return THN(L,O,X)},2);
this.downloadDataPromise=VT6(this);this.downloadDataPromise.then(function(){L.initialDownloadDataSucceeded=!0}).catch(function(){})},erN=function(A,L){L.then(function(O){return A.JSC$17899_playNonceResolver.resolve(O)})},EG6=function(A){return _.u(function(L){return A.cachedData===void 0?L.return(A.downloadDataPromise):L.return(A.cachedData)})},nGl=function(A,L){return _.u(function(O){A.cachedData=L;
if(!A.initialDownloadDataSucceeded)throw Error("Uh");return O.yield(A.scottyUploadRateLimiter.call(L),0)})},tTg=function(){return new Promise(function(A){setTimeout(A,1E3,"")})},bQN=function(A,L){var O,X;
return _.u(function(x){if(x.nextAddress==1)return O=A.JSC$17899_miniAppId,x.yield(Promise.race([A.JSC$17899_playNonceResolver.promise,tTg()]),2);X={"X-YouTube-MiniAppId":O,"X-YouTube-PostPlayNonce":x.yieldResult};"DELEGATED_SESSION_ID"in _.RO&&fQp(L,X);return x.return(X)})},THN=function(A,L,O){O=O===void 0?!1:O;
return _.u(function(X){return tnu()?_.h("enable_cloud_save_error_popup_after_retry")?X.return(new Promise(function(x,J){var Y,T,V,E,n;return _.u(function(t){switch(t.nextAddress){case 1:Y=0,T=!0,E=V=null;case 2:if(!(T&&Y++<2)){t.jumpTo(4);break}_.e4(t,5);return t.yield(hrV(A,L,O),7);case 7:V=t.yieldResult;T=V.ok?!1:!hR_.includes(V.status);_.zA(t,2);break;case 5:E=n=_.S4(t);T=S9O(E);t.jumpTo(2);break;case 4:V?V.ok?(OG(A,ujH),x()):(OG(A,A.cloudSaveIntervalMs*2),J(Error("Vh`"+String(V.status),{cause:{rpcErrorCode:V.status}}))):
(OG(A,A.cloudSaveIntervalMs*2),J(E||Error("Wh"))),_.qo(t)}})})):X.return(new Promise(function(x,J){var Y,T;
return _.u(function(V){if(V.nextAddress==1){if(A.JSC$17899_miniAppId==="")return J(Error("Xh")),V.return();_.e4(V,2);return V.yield(hrV(A,L,O),4)}if(V.nextAddress!=2)return Y=V.yieldResult,Y.ok?(OG(A,ujH),x()):(OG(A,A.cloudSaveIntervalMs*2),J(Error("Vh`"+String(Y.status),{cause:{rpcErrorCode:Y.status}}))),_.zA(V,0);T=_.S4(V);OG(A,A.cloudSaveIntervalMs*2);J(T);_.qo(V)})})):X.return()})},hrV=function(A,L,O){O=O===void 0?!1:O;
var X,x,J;return _.u(function(Y){if(Y.nextAddress==1)return X=_.NQ((new TextEncoder).encode(L)),x=gsM(),Y.yield(bQN(A,x),2);J=Y.yieldResult;return Y.return(fetch(x,{method:"POST",body:new Blob([X]),headers:J,keepalive:O}))})},VT6=function(A){var L,O;
return _.u(function(X){if(X.nextAddress==1){if(!tnu())return X.return("");if(A.JSC$17899_miniAppId==="")throw Error("Xh");if(A.loadAttempts>2)return X.return(A.downloadDataPromise);_.e4(X,2);return X.yield(SAN(A),4)}if(X.nextAddress!=2)return L=X.yieldResult,X.return(L);O=_.S4(X);if(S9O(O)&&++A.loadAttempts<2)return X.return(VT6(A));throw O;})},SAN=function(A){var L,O,X,x,J;
return _.u(function(Y){switch(Y.nextAddress){case 1:return _.e4(Y,2),L=gsM(),Y.yield(bQN(A,L),4);case 4:return O=Y.yieldResult,Y.yield(fetch(L,{method:"GET",headers:O}),5);case 5:return X=Y.yieldResult,X.ok?Y.yield(X.text(),6):Y.return(Promise.reject(Error("Yh`"+String(X.status),{cause:new b8O(X.status)})));case 6:return x=Y.yieldResult,Y.return((new TextDecoder).decode(_.ke(x)));case 2:return J=_.S4(Y),Y.return(Promise.reject(J))}})},OG=function(A,L){A.cloudSaveIntervalMs=L;
A.scottyUploadRateLimiter.intervalMs=A.cloudSaveIntervalMs};
DCL.prototype.flush=function(){var A=this;return _.u(function(L){return A.initialDownloadDataSucceeded?L.yield(A.scottyUploadRateLimiter.flush(!0),0):L.return()})};var qA6=DU(VF(1),ul(1)),gGJ=DU(VF(1),ul(3)),XY=function(A){this.callbacks=A};
_.P=XY.prototype;_.P.onAudioToggled=function(A,L){(L===void 0||L)&&_.gf("yt-mini-app-is-audio-enabled",A,2592E3)};
_.P.onPause=function(){this.onAudioToggled(!1,!1)};
_.P.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.P.returnNativeBenchmarkingMessage=function(){};
_.P.sendGameData=function(){};
_.P.sendStartGameFrameCapture=function(){};
var wss=function(A,L,O){this.callbacks=A;var X=this;this.sdkVersion=new _.EP;this.channel=new dyN(_.dk({destination:window,iframe:L,origin:(new URL(O.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var x=xR;var J=VF(5);var Y=new UKH;Y=_.HM(Y,1,1E4);J=_.EB(J,4,sSg,Y);x(X,J);X.onAudioToggled(X.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){X.sdkVersion.resolve("")},1E4)};
_.g(wss,XY);_.P=wss.prototype;_.P.onAudioToggled=function(A,L){XY.prototype.onAudioToggled.call(this,A,L===void 0?!0:L);L=xR;var O=VF(2),X=new aFj;A=_.dX(X,1,A);A=_.EB(O,3,sSg,A);L(this,A)};
_.P.onPause=function(){XY.prototype.onPause.call(this);xR(this,VF(3))};
_.P.onResume=function(){XY.prototype.onResume.call(this);xR(this,VF(4))};
_.P.returnNativeBenchmarkingMessage=function(A){var L=xR,O=VF(6);var X=ul(_.i1(A,OM,1)?1:2);A=_.i1(A,OM,1)?A:null;X=_.EB(X,5,TF,A);L(this,DU(O,X))};
_.P.sendGameData=function(A){var L=xR,O=VF(7);A=_.EB(O,5,sSg,A);L(this,A)};
_.P.sendStartGameFrameCapture=function(){xR(this,VF(9))};
var sG=function(A,L,O){var X,x,J;return _.u(function(Y){if(Y.nextAddress==1)return X=A.callbacks,x=X.onSdkCalled,J=L,Y.yield(A.sdkVersion.promise,2);x.call(X,J,Y.yieldResult,O);_.qo(Y)})};
wss.prototype.onMessage=function(){var A=this;return TuN(nb,function(L){var O,X,x,J,Y,T,V,E,n,t,b,S,w,l,F,R,y,M,H,z,a,xe,ur,eD,gu,ir,SD,HJ,mM,Vu,cn,Tj,Uu,Eg,DN,NN,bJ,MN,Js,XL,gJ,hk,hc,Wn,X0,o6;return _.u(function(YV){switch(YV.nextAddress){case 1:if(!ebJ(L.data))return _.Rv(Error("Zh")),YV.return();O=_.IH(L.data,1);_.h("enable_iframe_message_get_type_via_fields")&&(X=L.data,O=x=_.IH(X,1));switch(O){case 8:if(L.data.hasMetadata()){var LJ=A.sdkVersion,eZ=LJ.resolve;var p6=L.data.getMetadata();p6=_.mT(p6,
1);eZ.call(LJ,p6);clearTimeout(A.sdkVersionTimeoutId)}break;case 6:return YV.jumpTo(2);case 16:if(!_.NK(L.data,dS6,14,tB))return YV.return();J=_.WM(L.data,dS6,14,tB);(T=(Y=A.callbacks).onGameFrameReceived)==null||T.call(Y,J);return YV.return();case 17:if(!_.NK(L.data,P_c,15,tB))return YV.return();(E=(V=A.callbacks).onGameAudioReceived)==null||E.call(V,_.WM(L.data,P_c,15,tB));return YV.return();case 1:if(LJ=_.WM(L.data,AVj,2,tB))switch(_.IH(LJ,1)){case 1:A.callbacks.onFirstFrameReady();if(_.h("enable_network_request_logging_on_game_events")&&
_.i1(LJ,dS,4)){sG(A,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.ET(LJ,dS,4));break}sG(A,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(p6=(eZ=A.callbacks).onGameReady)==null||p6.call(eZ);if(_.h("enable_network_request_logging_on_game_events")&&_.i1(LJ,dS,4)){sG(A,"MINI_APP_SDK_API_GAME_READY",_.ET(LJ,dS,4));break}sG(A,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.NK(LJ,Yt,3,LRV))A.callbacks.onResourceLoaded(_.WM(LJ,Yt,3,LRV))}return YV.return();case 3:return YV.jumpTo(3);case 4:return YV.jumpTo(4);
case 2:return YV.jumpTo(5);case 9:return YV.jumpTo(6);case 10:return A.callbacks.onClick(),YV.return();case 5:return YV.jumpTo(7);case 11:if(!_.NK(L.data,xt,9,tB))return YV.return();n=_.WM(L.data,xt,9,tB);(b=(t=A.callbacks).onBenchmarkingMessageReceived)==null||b.call(t,n);LJ=L.reply;eZ=VF(1);p6=ul(1);var Gj=new xt;var qQ=new Uint8Array(FYd(n,SJ(n,HsL,6))|0);Gj=EN(Gj,5,HsL,_.K6(qQ,!1));p6=_.EB(p6,5,TF,Gj);LJ.call(L,DU(eZ,p6));return YV.return();case 12:return YV.jumpTo(8);case 13:return YV.jumpTo(9);
case 15:if(!_.h("enable_open_yt_content"))return L.reply(gGJ),YV.return();if(!_.NK(L.data,JVg,12,tB))return L.reply(DU(VF(1),ul(2))),YV.return();LJ=_.WM(L.data,JVg,12,tB);S=_.mT(LJ,1);A.callbacks.onOpenYTContent(S);L.reply(qA6);return YV.return();case 14:return YV.jumpTo(10);default:return YV.return()}YV.jumpTo(0);break;case 2:if(!_.NK(L.data,eo,5,tB))return YV.return();eZ=L.data;LJ=SJ(eZ,tB,5);eZ=eZ.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;w=CJs(eZ,eZ[_.sg]|0,eo,LJ)||eo[R7D]||(eo[R7D]=
Q6M(eo));LJ=_.OT(w,s7,1,_.Xq());l=_.d(LJ);F=l.next();case 12:if(F.done){YV.jumpTo(14);break}R=F.value;y=new _.pe;y.level=_.IH(R,2)===1?"WARNING":"ERROR";M=i8D(R.getSource());return YV.yield(A.sdkVersion.promise,15);case 15:H={source:M,sdkVersion:YV.yieldResult};_.kV(_.ps(R,6))!=null?(y.message=R.getMessage(),y.stack=_.mT(R,5),H.sdkErrorType=NiM(_.IH(R,6)),_.kV(_.ps(R,7))!=null&&(H.sdkApi=rxe(_.IH(R,7)))):y.stack=void 0;a=z=void 0;(a=(z=A.callbacks).onError)==null||a.call(z,{loggingError:y,metadata:H});
F=l.next();YV.jumpTo(12);break;case 14:return YV.return();case 3:return _.e4(YV,16),LJ=YV.yield,eZ=A.callbacks,p6=eZ.onSave,Gj=_.WM(L.data,ky3,4,tB),Gj=_.mT(Gj,1),LJ.call(YV,p6.call(eZ,Gj),18);case 18:L.reply(qA6);_.zA(YV,17);break;case 16:return xe=_.S4(YV),ur=zR,eD=xe,gu=A.callbacks,ir="MINI_APP_SDK_API_SAVE_DATA",YV.yield(A.sdkVersion.promise,19);case 19:ur(eD,gu,ir,YV.yieldResult),L.reply(gGJ);case 17:return YV.yield(sG(A,"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return YV.return();case 4:return _.e4(YV,
21),YV.yield(A.callbacks.onLoad(),23);case 23:SD=YV.yieldResult;LJ=L.reply;eZ=VF(1);p6=ul(1);Gj=new ky3;Gj=_.gz(Gj,1,SD);p6=_.EB(p6,3,TF,Gj);LJ.call(L,DU(eZ,p6));_.zA(YV,22);break;case 21:return HJ=_.S4(YV),mM=zR,Vu=HJ,cn=A.callbacks,Tj="MINI_APP_SDK_API_LOAD_DATA",YV.yield(A.sdkVersion.promise,24);case 24:mM(Vu,cn,Tj,YV.yieldResult),L.reply(gGJ);case 22:return YV.yield(sG(A,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return YV.return();case 5:_.e4(YV,26);A.callbacks.onSendHighScore(Fq(_.WM(L.data,
Vuj,3,tB).getValue()));L.reply(DU(VF(1),ul(1)));_.zA(YV,27);break;case 26:return Uu=_.S4(YV),Eg=zR,DN=Uu,NN=A.callbacks,bJ="MINI_APP_SDK_API_SEND_SCORE",YV.yield(A.sdkVersion.promise,28);case 28:Eg(DN,NN,bJ,YV.yieldResult),L.reply(gGJ);case 27:return YV.yield(sG(A,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return YV.return();case 6:if(!_.NK(L.data,DSN,8,tB)){YV.jumpTo(30);break}LJ=YV.yield;eZ=_.WM(L.data,DSN,8,tB);eZ=_.IH(eZ,1);return LJ.call(YV,sG(A,rxe(eZ)),30);case 30:return YV.return();case 7:return LJ=
L.reply,eZ=VF(1),p6=ul(1),Gj=A.callbacks.getLanguage(),p6=EN(p6,4,TF,DS(Gj)),LJ.call(L,DU(eZ,p6)),YV.yield(sG(A,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return YV.return();case 8:if(!_.NK(L.data,Tkg,10,tB))return YV.return();MN=_.WM(L.data,Tkg,10,tB);Js=A.callbacks;XL=Js.onSdkPerformanceUpdate;return YV.yield(A.sdkVersion.promise,33);case 33:return XL.call(Js,MN,YV.yieldResult),YV.return();case 9:LJ=L.data;eZ=SJ(LJ,tB,11);if(_.Ez(_.ps(LJ,eZ))==null)return L.reply(DU(VF(1),ul(2))),YV.return();
gJ=jX(L.data,11,tB);A.callbacks.onShareInviteCode(gJ);L.reply(qA6);return YV.yield(sG(A,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return YV.return();case 10:if(_.NK(L.data,$KV,13,tB)){YV.jumpTo(35);break}return YV.yield(A.callbacks.onShowMiniAppAd(2),36);case 36:return hk=YV.yieldResult,L.reply(DU(VF(1),X67(hk))),YV.yield(sG(A,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return YV.return();case 35:LJ=_.WM(L.data,$KV,13,tB);a:switch(_.IH(LJ,1)){case 1:LJ={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:LJ={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:LJ={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}hc=LJ;Wn=hc.adType;X0=hc.sdkApi;LJ=YV.yield;eZ=A.callbacks;p6=eZ.onShowMiniAppAd;Gj=_.WM(L.data,$KV,13,tB);Gj=_.mT(Gj,2);return LJ.call(YV,p6.call(eZ,Wn,Gj||void 0),38);case 38:return o6=YV.yieldResult,L.reply(DU(VF(1),X67(o6))),YV.yield(sG(A,X0),39);case 39:return YV.return()}})})};
var xR=function(A,L){_.u(function(O){A.channel.send(L);_.qo(O)})},BC=function(A,L,O){this.callbacks=A;
var X=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;A=WJM(L,(new URL(O.toString())).origin);this.gameSnacks=new pJj(A);this.gameSnacks.page.onReady(function(){X.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){X.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var x,J;(J=(x=X.callbacks).onGameReady)==null||J.call(x)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(x,J){try{X.callbacks.onSendHighScore(J)}catch(Y){zR(Y,X.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(x,J){var Y;return _.u(function(T){if(T.nextAddress==1)return _.e4(T,2),T.yield(X.callbacks.onSave(X.decoder.decode(J)),4);if(T.nextAddress!=2)return _.zA(T,0);Y=_.S4(T);zR(Y,X.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return T.return()})});
this.gameSnacks.storage.onLoad(function(){var x,J;return _.u(function(Y){if(Y.nextAddress==1)return _.e4(Y,2),Y.yield(X.callbacks.onLoad(),4);if(Y.nextAddress!=2)return x=Y.yieldResult,Y.return(X.encoder.encode(x));J=_.S4(Y);zR(J,X.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return Y.return(X.encoder.encode(""))})});
this.gameSnacks.init()};
_.g(BC,XY);BC.prototype.onAudioToggled=function(A,L){XY.prototype.onAudioToggled.call(this,A,L===void 0?!0:L);var O;(O=this.gameSnacks)==null||O.audio.update(A)};
BC.prototype.onPause=function(){XY.prototype.onPause.call(this);var A;(A=this.gameSnacks)==null||A.game.pause()};
BC.prototype.onResume=function(){XY.prototype.onResume.call(this);var A;(A=this.gameSnacks)==null||A.game.resume()};var wpN=KHM,ppl=_.xa(function(A){var L=A.data;var O=A.loadingProgress;A=_.d(_.uQ("",void 0,"LYYTdd"));var X=A.next().value,x=A.next().value;A=_.d(_.uQ(!1,void 0,"K0waae"));var J=A.next().value,Y=A.next().value,T=[],V=function(){return"transform: scaleX("+(_.GV(O)||0)+")"},E=null,n=function(){return L()&&E!==null&&E!==void 0?E:E=L().showAnniversaryAnimation?6:wpN()};
_.ND(function(){var w;if(L().timeOutMessages&&((w=L().timeOutMessages)==null?0:w.length)){E=null;w=_.d(T);for(var l=w.next();!l.done;l=w.next())clearTimeout(l.value);T.length=0;Gbs(L().timeOutMessages,T,x,Y)}},"BNu9j");
var t=function(){return!!L().persistentErrorMessageTitle},b=function(){return O!==void 0},S=function(){return L().title};
return _.D("yt-mini-splash-screen-view-model",{class:"mini-app-splash-screen-view-model-wiz"},_.D("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen",role:"region",tabindex:0},_.D("div",{class:"mini-app-splash-screen-view-model-wiz__background-base"}),_.D("div",{class:"mini-app-splash-screen-view-model-wiz__background-blur",style:function(){var w,l=(w=L().backgroundImage)==null?void 0:w.sources,F;return(l==null?0:l.length)?"background-image: url("+((F=l[0])==null?void 0:F.url)+")":
""}}),_.D("div",{class:"mini-app-splash-screen-view-model-wiz__background-scrim"}),_.D(_.e,{cond:function(){return!t()},
then:function(){var w={};return _.D("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen-content"},_.D("div",{class:"mini-app-splash-screen-view-model-wiz__loading-icon"},_.D(_.ER,{className:"mini-app-splash-screen-view-model-wiz__loading-icon-animation",animationName:function(){return"loading_animation_"+n()},
data:function(){var l="loading_animation_"+n();return{animationConfig:{name:l,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+l+".json",loop:!0,autoplay:!0}}}})),_.D("div",{class:"mini-app-splash-screen-view-model-wiz__timeout-message-container"},_.D(_.e,{cond:S,
then:function(){return _.D("h3",{class:"mini-app-splash-screen-view-model-wiz__timeout-heading"},S)}}),_.D("p",{class:_.qn("mini-app-splash-screen-view-model-wiz__timeout-message",(w["mini-app-splash-screen-view-model-wiz__timeout-message-fade-out"]=function(){return J()},w)),
"aria-live":"polite"},X),_.D(_.e,{cond:b,then:function(){return _.D("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-track"},_.D("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:V}))}})))}}),_.D(_.e,{cond:t,
then:function(){return _.D("div",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-content"},_.D("h3",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-title"},function(){return L().persistentErrorMessageTitle}),_.D(_.e,{cond:function(){return!!L().persistentErrorMessageDescription},
then:function(){return _.D("p",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-description"},function(){return L().persistentErrorMessageDescription})}}))}})))},"ee");var iQV=new _.Yx("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var NH6=kN;kN=function(A){function L(O){if(O){var X,x;(X=O.__spec)==null||(x=X.didUnmount)==null||x.call(X);for(X=0;X<O.childNodes.length;X++)L(O.childNodes[X])}}
NH6==null||NH6(A);Qz(function(){for(var O=0;O<A.length;O++)L(A[O])})};var rqn=_.xa(function(A){var L=A.data;var O=A.score;var X=A.formattedScore;var x=A.onScoreChanged;var J=A.isEmbeddedInWebview;var Y=_.kw("yt-mini-app-score-button-view-model"),T=function(){var S;return _.q(L==null?void 0:(S=L())==null?void 0:S.buttonViewModel,_.Cu)},V=function(){var S;
return(O==null?void 0:O())||Number(L==null?void 0:(S=L())==null?void 0:S.lastScore)||0},E=function(){var S;
return(X==null?void 0:X())||((S=T())==null?void 0:S.title)||""},n,t=1;
if(A=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))A=Number(A),t=isNaN(A)?1:A/100;_.ND(function(){x==null||x(V());var S;var w=_.HR((S=T())==null?void 0:S.onTap);if(w){S=_.q(w,UvV);var l,F,R;S=_.q(S==null?void 0:(l=S.panelLoadingStrategy)==null?void 0:(F=l.inlineContent)==null?void 0:(R=F.dialogViewModel)==null?void 0:R.customContent,jML)}else S=void 0;if(l=S)l.score=E()},"KZFi5e");
A=_.py(function(){var S,w,l=L==null?void 0:(S=L())==null?void 0:(w=S.loggingDirectives)==null?void 0:w.trackingParams;l&&_.wm(_.X5().resolve(_.Rr),l);return!1});
_.GD(function(){if(Y.value){var S=Y.value.querySelector("button"),w=T();S&&w&&lwJ(S,w);Al("yt-share-playable-with-high-score",function(){var l=V().toString(),F=L==null?void 0:L().onShareHighScoreCommand,R=L==null?void 0:L().highScoreShareClientParamIdentifier,y=J==null?void 0:J();F&&(y?(R=new RsH,l=_.gz(R,2,l),HC(F,l.JSC$13336_serializeBinary())):R&&(_.X5().resolve(iQV).clientParams.set(R,{miniAppClientParams:{highScore:l}}),Vny(F,!1)))})}});
var b=function(){var S=T();S&&(O==null?0:O())&&S.accessibilityText&&(S.accessibilityText=S.accessibilityText.replace(n,E()));n=E();return{numberValue:V(),numberText:E(),heightPx:36,fontSizeMultiplier:t,shouldAnimate:!(O==null||!O())&&!0}};
return _.D("yt-mini-app-score-button-view-model",{class:function(){var S={};return _.gl("mini-app-score-button-view-model-wiz",(S["mini-app-score-button-view-model-wiz--is-visible"]=V()!==0,S))},
el:Y,"on:click":A},an(!1,function(){return _.D("span",{style:"display:none;"},V)}),_.D(_.ID,{data:function(){var S;
return L==null?void 0:(S=L())==null?void 0:S.buttonViewModel}},{buttonViewModel:function(S){return _.D(_.gj,{data:S.data,
animatedTextProps:b})}}))},"fe");var CDJ=_.xa(function(A){var L,O=(L=_.wf("yt-mini-app-is-theater-mode-enabled"))!=null?L:!1,X=_.h("enable_playable_container_save_button"),x=_.h("enable_play_next_destination_page_in_toolbar");L={};return _.D("ytm-mini-app-top-bar-view-model",null,_.D("div",{class:_.qn("yt-mini-app-top-bar-view-model",(L["yt-mini-app-top-bar-view-model--mobile"]=!1,L["yt-mini-app-top-bar-view-model--desktop"]=!0,L))},_.D("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.D(_.e,{cond:function(){var J;
return!!A.data().backButtonEdu&&!((J=A.isExitMiniAppSeen)==null?0:J.call(A))},
then:function(){return _.D(_.ID,{data:function(){return A.data().backButtonEdu}},{buttonViewModel:_.gj})},
else:function(){return _.D(_.ID,{data:function(){return A.data().backButton}},{buttonViewModel:_.gj})}}),_.D(_.e,{cond:function(){return A.data().viewAllButton&&!0},
then:function(){return _.D(_.ID,{data:function(){return A.data().viewAllButton}},{buttonViewModel:_.gj})}}),_.D(_.e,{cond:function(){return A.data().title&&!0},
then:function(){return _.D("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return A.data().title})}})),_.D("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.D(_.e,{cond:function(){var J;
return(J=A.isDesktopPlayPage)==null?void 0:J.call(A)},
then:function(){return _.D(_.Xs,null,_.D(KYH,{highScoreButton:function(){return A.data().highScoreButton},
score:A.score,formattedScore:A.formattedScore,onScoreChanged:A.onScoreChanged,isEmbeddedInWebview:A.isEmbeddedInWebview}),_.D(GSg,{enableSaveButton:function(){return _.GV(X)},
saveButton:function(){return A.data().saveButton},
isSaved:A.isSaved,onSaveToggled:function(){return A.onSaveToggled}}),_.D(lO7,{menuButton:function(){return A.data().menuButton}}))},
else:function(){return _.D(_.e,{cond:function(){return!1},
then:function(){return _.D(_.ID,{data:function(){return A.data().playPageButton}},{buttonViewModel:function(J){return _.D(_.gj,{data:J.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.D(KYH,{highScoreButton:function(){return A.data().highScoreButton},
score:A.score,formattedScore:A.formattedScore,onScoreChanged:A.onScoreChanged,isEmbeddedInWebview:A.isEmbeddedInWebview})}})}})),_.D("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.D(_.ID,{data:function(){return A.data().muteButton}},{toggleButtonViewModel:function(J){var Y=J.data;
return _.D(_.fO,{data:function(){var T,V;return Object.assign({},Y(),{isToggled:(V=(T=A.isAudioEnabled)==null?void 0:T.call(A))!=null?V:!0})},
onToggle:A.onAudioToggled,useOutlinedIcon:!0})}}),_.D(_.ID,{data:function(){return A.data().theatreModeButton}},{toggleButtonViewModel:function(J){var Y=J.data;
return _.D("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.D(_.fO,{data:function(){return Object.assign({},Y(),{isToggled:O})},
useOutlinedIcon:!0}))}}),_.D(cqH,{fullscreenButton:function(){return A.data().fullscreenButton}}),_.D(_.e,{cond:function(){return _.GV(x)&&A.data().viewAllButton&&!1},
then:function(){return _.D(_.ID,{data:function(){return A.data().viewAllButton}},{buttonViewModel:_.gj})}}),_.D(_.e,{cond:function(){var J;
return!((J=A.isDesktopPlayPage)==null?0:J.call(A))},
then:function(){return _.D(_.Xs,null,_.D(GSg,{enableSaveButton:function(){return _.GV(X)},
saveButton:function(){return A.data().saveButton},
isSaved:A.isSaved,onSaveToggled:function(){return A.onSaveToggled}}),_.D(lO7,{menuButton:function(){return A.data().menuButton}}))}}))))},"ge");
CDJ.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var lO7=_.xa(function(A){return _.D(_.ID,{data:A.menuButton},{buttonViewModel:_.gj})},"he"),GSg=_.xa(function(A){var L=A.enableSaveButton;
var O=A.saveButton;var X=A.isSaved;var x=A.onSaveToggled;return _.D(_.e,{cond:function(){return L()&&!(O==null||!O())},
then:function(){return _.D(_.ID,{data:function(){var J=_.q(O==null?void 0:O(),_.Fi),Y;return{toggleButtonViewModel:Object.assign({},J,{isToggled:(Y=X==null?void 0:X())!=null?Y:!(J==null||!J.isToggled)})}}},{toggleButtonViewModel:function(J){return _.D(_.fO,{data:J.data,
onToggle:x})}})}})},"ie"),KYH=_.xa(function(A){var L=A.highScoreButton;
var O=A.score;var X=A.formattedScore;var x=A.onScoreChanged;var J=A.isEmbeddedInWebview;return _.D(_.ID,{data:L},{miniAppScoreButtonViewModel:function(Y){return _.D(rqn,{data:Y.data,score:O,formattedScore:X,onScoreChanged:x,isEmbeddedInWebview:J})}})},"je"),cqH=_.xa(function(A){A=A.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.D(_.Xs,null):_.D(_.ID,{data:A},{buttonViewModel:_.gj})},"ke");_.FY6=new _.Yx("DESKTOP_CURRENT_PAGE");var yqN=_.xa(function(A){var L=A.data;var O=_.h("force_active_time_logging_webview"),X=!1,x=new PDN,J=void 0,Y=void 0,T=_.X5().resolve(Jqn),V=new OQ6,E=void 0,n=void 0,t=[],b=void 0,S=void 0,w=!1,l=!1,F=!1,R=!1,y=new _.EP,M=_.X5().resolve(iQV),H=_.X5().resolve(_.vv),z=_.X5().resolve(_.Ot(iR)),a,xe=(a=_.X5().resolve(_.Ot(_.FY6)))==null?void 0:a.getCurrentPage(),ur=!1,eD=0,gu=function(My){My.preventDefault();return My.returnValue=""},ir;
A=_.d(_.uQ(!((ir=_.wf("yt-mini-app-is-audio-enabled"))!=null&&!ir),void 0,"cGaEvf"));var SD=A.next().value,HJ=A.next().value,mM;ir=_.d(_.uQ(!((mM=_.wf("exit-mini-app-seen-state"))==null||!mM),void 0,"DctXGe"));var Vu=ir.next().value,cn=ir.next().value;mM=_.d(_.uQ(!1,void 0,"pU1jdd"));var Tj=mM.next().value,Uu=mM.next().value;mM=_.d(_.uQ(void 0,void 0,"ldLqDf"));var Eg=mM.next().value,DN=mM.next().value;mM=_.d(_.uQ(void 0,void 0,"mdofE"));var NN=mM.next().value,bJ=mM.next().value;mM=_.d(_.uQ(!0,void 0,
"T1gxCf"));var MN=mM.next().value,Js=mM.next().value;mM=_.d(_.uQ(!1,void 0,"gxt7wf"));var XL=mM.next().value,gJ=mM.next().value;mM=_.d(_.uQ(void 0,void 0,"yqLV6d"));var hk=mM.next().value,hc=mM.next().value;mM=_.d(_.uQ(0,void 0,"l6CrGf"));var Wn=mM.next().value,X0=mM.next().value,o6=_.av("mini-app-container-view-model"),YV=function(){return L().isEmbeddedInWebview},LJ=function(){return L().hasPlayNextShelf};
Al("yt-page-type-changed",function(My){if(_.h("enable_is_mini_app_page_active_bugfix"))My.detail.newPageSubtype==="mini_app"&&My.detail.newPageType==="ytd-browse"||!MN()||Gj();else if(My=_.siu()==="mini_app",My!==MN())if(Js(My),My){var dB;My=(dB=L().playableId)==null?void 0:dB.toString();My!==void 0&&window.location.href.includes(My)&&!l&&(R=!0,eZ(),bH.value&&K_(bH.value))}else My||Gj()});
Al("yt-action",function(My){My.detail.actionName==="yt-engagement-panel-visible-changed"&&My.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&My.detail.args[2]==="PAmini_app_panel"&&Gj();_.h("enable_is_mini_app_page_active_bugfix")?My.detail.actionName==="yt-history-load"&&!MN()&&(xe==null?0:xe.active)?(Js(!0),eZ(),bH.value&&K_(bH.value)):My.detail.actionName==="yt-history-load"&&MN()&&!L().isEmbeddedInWebview&&pm():MN()&&My.detail.actionName==="yt-history-load"&&(R?R=!1:L().isEmbeddedInWebview||
pm())});
_.rF(function(){p6()});
_.ND(function(){eZ()},"PiwKsd");
var eZ=function(){var My=L().playableId,dB=L().localReleaseId,BX=L().derivedDeviceInterface;if(l)_.Rv(new _.pe("[MiniAppContainerViewModel] onEnter was called more than once"));else{l=!0;J=new HUc(My,dB,BX,document.visibilityState==="visible");$s6(J);Y=new DCL(My);Rrc(T,My);XpL(V,{showMiniAppAdCommand:L().showMiniAppAdCommand,isEmbeddedInWebview:L().isEmbeddedInWebview,playLogger:J});wGe()&&(S=document.body.style.backgroundColor,_.zv(document.body,"background-color","black"));CB();wJ();y=new _.EP;
if(L().isEmbeddedInWebview){if(My=(new URLSearchParams(window.location.search)).get("postPlayNonce"))BYN(J,My),ur=!0;x.initialize({onAudioStateLoaded:function(MQ){VM(MQ)},
onMuteMiniApp:function(){VM(!1)},
onUnmuteMiniApp:function(){VM(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(MQ){ur||(BYN(J,MQ),ur=!0)},
confirmExitMiniApp:function(){var MQ,VS,k3;return _.u(function(hE){if(hE.nextAddress==1)return L().confirmExitMiniAppCommand?hE.yield(Promise.race([y.promise,Promise.resolve(!1)]),2):hE.return();(MQ=hE.yieldResult)?!L().confirmExitMiniAppCommandEdu||(k3=(VS=Vu)==null?void 0:VS())!=null&&k3?iW(L().confirmExitMiniAppCommand):(iW(L().confirmExitMiniAppCommandEdu),_.gf("exit-mini-app-seen-state","true",2592E6)):iW(L().closeMiniAppCommand);_.qo(hE)})},
onNativeBenchmarkingMessageReceived:function(MQ){MQ=BA3(_.Dmd(MQ));if(_.NK(MQ,_.jE,3,WTL)){var VS=_.WM(MQ,_.jE,3,WTL),k3=DPe();var hE=Fq(k3.getSeconds())-Fq(VS.getSeconds());VS=_.x8(k3,2)-_.x8(VS,2);hE<0&&VS>0?(hE+=1,VS-=1E9):hE>0&&VS<0&&(--hE,VS+=1E9);hE=(new OM).setSeconds(hE);hE=_.$X(hE,2,_.vn(VS),0);_.eg(MQ,1,hE)}var Eb;(Eb=n)==null||Eb.returnNativeBenchmarkingMessage(MQ)},
multiplayer3pAckStateLoaded:function(MQ){pm(MQ)},
exitMiniAppSeenStateLoaded:function(MQ){L().confirmExitMiniAppCommandEdu&&cn(MQ)},
onNavigateToNewMiniApp:function(){iW(L().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(MQ){MQ=new URLSearchParams(MQ);var VS=void 0;MQ.has("invite_code")&&(VS=new oz7,MQ=MQ.get("invite_code"),VS=_.gz(VS,1,MQ));if(MQ=VS){var k3;(k3=n)==null||k3.sendGameData(MQ)}},
onPauseMiniApp:function(){X=!0;qQ()},
onResumeMiniApp:function(){X=!0;TM()},
onAdFinished:function(MQ){V.onAdFinished(MQ)}});
L().showMultiplayer3pConsentDialogCommand||y.resolve(!0);iW(L().onContainerReadyCommand)}else BYN(J),y.resolve(!0);erN(Y,z8V(J));z8V(J).then(function(MQ){MQ={miniAppPlayData:{postPlayNonce:MQ}};var VS,k3=(VS=L().loggingDirectives)==null?void 0:VS.trackingParams;k3&&_.iV().stateChanged(k3,MQ)});
My=L().showSignInDialogCommand;!tnu()&&My&&(_.gf("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),iW(My));L().confirmExitMiniAppCommand&&z&&(My=uaD(L().confirmExitMiniAppCommand))&&(z.customConfirmationCommand=My)}},p6=function(){S&&_.zv(document.body,"background-color",S);
w=!1;b&&b.release();Y.flush().catch(function(My){_.Rv(My)});
T.flush().catch(function(My){_.Rv(My)});
klj(J);mJ();n=void 0;QA3(M)},Gj=function(){Js(!1);
p6();Uu(!1);hc(void 0);DN(void 0);bJ(void 0);eD=0;X0(0);l=!1},qQ=function(){var My;
(My=n)==null||My.onPause();b&&b.release();Y.flush().catch(function(dB){_.Rv(dB)});
T.flush().catch(function(dB){_.Rv(dB)});
apH(J)},TM=function(){var My;
(My=n)==null||My.onResume();wJ();My=J;My.isForeground=!0;Ao(My,"PLAY_EVENT_TYPE_PLAY_RESUME")},VM=function(My){var dB;
(dB=n)==null||dB.onAudioToggled(My);HJ(My)},pm=function(My){L().showMultiplayer3pConsentDialogCommand&&(L().isEmbeddedInWebview&&My!==void 0&&y.resolve(My),!My&&_.siu()==="mini_app"&&iW(L().showMultiplayer3pConsentDialogCommand))},U0=function(){var My,dB,BX,MQ;
return _.u(function(VS){if(VS.nextAddress==1){!L().isLivestream||L().disableVideoCapture||(My=n)!=null&&My.sendStartGameFrameCapture();dB=(new URL(window.location.href)).searchParams;if(dB.has("invite_code")){var k3=new oz7,hE=dB.get("invite_code");BX=_.gz(k3,1,hE);(MQ=n)==null||MQ.sendGameData(BX)}Tj()||(Uu(!0),k3=J,k3.state!==1?_.Rv(new _.pe("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+jgL[k3.state])):(_.Y$("mini_app_ids_without_game_ready").includes(k3.JSC$17855_miniAppId)&&(k3.gameReady=
!0),k3.state=2,k3.beforeReady=!1,oX(k3,"ma_ffr"),Ao(k3,"PLAY_EVENT_TYPE_PLAY_READY")));return VS.yield(y.promise,2)}iW(L().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();L().isEmbeddedInWebview||pm();_.qo(VS)})},$V=function(){var My=J;
My.gameReady=!0;oX(My,"ma_gr")},QM=function(My){var dB;
return _.u(function(BX){if(BX.nextAddress==1)return _.e4(BX,2),BX.yield(nGl(Y,My),4);if(BX.nextAddress!=2)return _.zA(BX,0);dB=_.S4(BX);iW(L().showSavingErrorPopupCommand);throw dB;})},OB=function(){var My,dB;
return _.u(function(BX){if(BX.nextAddress==1)return _.e4(BX,2),BX.yield(EG6(Y),4);if(BX.nextAddress!=2)return My=BX.yieldResult,BX.return(My);dB=_.S4(BX);iW(L().showLoadingErrorDialogCommand);throw dB;})},XP=function(My){J.logError(My)},gR=function(My,dB,BX){vYu(J,My,dB,BX)},MF=function(My,dB){AqN(J,My,dB)},ko=function(){!O&&L().isEmbeddedInWebview||_.XJ();
Usl(J,!0);w||(window.addEventListener("beforeunload",gu,{capture:!0}),w=!0)},Re=function(My){var dB,BX,MQ,VS,k3,hE,Eb;
return _.u(function(kz){if(kz.nextAddress==1)return T&&(!E||E<My)&&My>0?kz.yield(mCN(T,My),3):kz.jumpTo(0);dB=kz.yieldResult;BX=_.d(dB);MQ=BX.next().value;VS=BX.next().value;k3=MQ;hE=VS;((Eb=k3)==null?0:Eb.displayString)&&hE&&(DN(hE),bJ(k3.displayString));_.qo(kz)})},nL=function(My){var dB=L().onBenchmarkingMessageReceivedCommand;
if(dB){var BX=DPe();_.EB(My,3,WTL,BX);HC(dB,MXl(My))}},aF=function(My){var dB=L().onGameFrameReceivedCommand;
if(dB){var BX=new ZU;var MQ=new mzj;var VS=RH(My,1);MQ=_.gT(MQ,1,VS);My=_.mT(My,2);My=_.gz(MQ,2,My);BX=_.eg(BX,2,My);HC(dB,ZD7(BX))}},ru=function(My){var dB=L().onGameAudioDataReceivedCommand;
if(dB){var BX=new ZU;var MQ=new IIj;My=_.mT(My,1);MQ=_.gz(MQ,1,My);BX=_.eg(BX,4,MQ);HC(dB,ZD7(BX))}},f9=function(){var My=new URLSearchParams(window.location.search);
if(L().isEmbeddedInWebview&&My&&My.get("override_hl")==="true"&&My.get("hl"))return My.get("hl");My=document.documentElement.lang;return My!==""?My:_.HG},zO=function(My){var dB=L().onShareInviteCodeCommand;
if(dB)if(L().isEmbeddedInWebview){var BX=new RsH;My=_.gz(BX,1,My);HC(dB,mBj(My))}else BX=L().inviteCodeShareClientParamIdentifier,M.clientParams.set(BX,{miniAppClientParams:{inviteCode:My}}),iW(dB)},S3=function(My){var dB,BX,MQ;
return _.u(function(VS){if(VS.nextAddress==1)return dB=L().onMiniAppOpenYtContentRequested,T&&_.h("enable_open_yt_content")&&dB?VS.yield(fOV(T,My),3):VS.jumpTo(0);BX=VS.yieldResult;if(BX==="OK")if(L().isEmbeddedInWebview){var k3=new CAj;MQ=EN(k3,2,yF,DS(My));HC(dB,QM3(MQ))}else H.clientData.set("video_id",My),iW(dB);_.qo(VS)})},uJ=function(My){eD+=_.x8(My,3);
My=Math.min(Math.log(1+eD/15E6*9)/Math.log(10),.99);X0(My);cf(My)},cf=_.Gv(function(My){var dB=L().updateLoadingProgressCommand;
if(dB){var BX=new CAj;My=EN(BX,3,yF,_.j3(My));HC(dB,QM3(My))}},100),gB=function(My){return sAN(V,My)},wJ=function(){var My,dB;
((My=_.z_9())==null?void 0:(dB=My.wakeLock)==null?void 0:dB.request)!=null&&_.z_9().wakeLock.request("screen").then(function(BX){b=BX}).catch(function(){})},bH=_.kw("iframe");
_.ND(function(){L().isSupportedCountry&&(tnu()||_.h("enable_sign_in_promo")||!L().showSignInDialogCommand?bH.value&&K_(bH.value):iW(L().onMiniAppReadyCommand))},"XK60ib");
var CJ=function(){return _.D("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return Tj()?0:-1},
el:bH})},K_=function(My,dB){dB=dB===void 0?!1:dB;
var BX=tc();BX&&(dB||BX.toString()!==My.getAttribute("src"))&&(n=psu(L().source,{isAudioEnabled:SD,onFirstFrameReady:U0,onGameReady:$V,onSave:QM,onLoad:OB,onError:XP,onSdkCalled:gR,onSdkPerformanceUpdate:MF,onClick:ko,onSendHighScore:Re,onBenchmarkingMessageReceived:nL,getLanguage:f9,onShareInviteCode:zO,onResourceLoaded:uJ,onOpenYTContent:S3,onShowMiniAppAd:gB,onGameFrameReceived:aF,onGameAudioReceived:ru},My,BX),KT(My,"load",function(){oX(J,"ma_il");KT(My,"load",function(){K_(My,!0)})}),_.Hf(My,
BX))},tc=function(){var My=L().url;
if(My&&(My=_.CH(My),My!==null)){if(L().source&&L().source==="MINI_APP_SOURCE_GAMESNACKS")My=_.PT(My,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.h("enable_origin_query_parameter_bugfix")){var dB=_.RI(_.NL9(My.toString()));dB=new URLSearchParams(dB||"");dB.set("origin",window.location.origin);dB=dB.toString();My=_.ww(My).toString();My=_.gw(Ak7.exec(My)[0]+(dB.trim()?"#"+dB:""))}return My}},$T=function(){var My={};
My=_.qn("yt-mini-app-container-view-model__loading-screen",(My["yt-mini-app-container-view-model__loading-screen--fade-out"]=Tj,My));var dB=function(){return Tj()?1:Wn()};
return _.D("div",{class:My},_.D(_.ID,{data:function(){return L().splashScreen}},{miniAppSplashScreenViewModel:function(BX){return _.D(ppl,{data:BX.data,
loadingProgress:dB})}}))},CB=function(){t=[];
t.push(_.CT(window,"visibilitychange",function(){F||X&&YV()||(document.visibilityState==="visible"?TM():qQ())}));
t.push(_.CT(window,"pagehide",function(){p6()}));
t.push(_.CT(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&o6.value.dispatchEvent(new Event("tap"))},0)}));
t.push(_.CT(o6.value,"pointerdown",function(){Usl(J,!1)},!0));
t.push(_.CT(o6.value,"pause",function(){F=!0;qQ()}));
t.push(_.CT(o6.value,"play",function(){F=!1;TM()}));
t.push(_.CT(o6.value,"exit",function(){p6()}));
var My=navigator.keyboard,dB=My&&My.lock;t.push(_.CT(window,DRn,function(){gJ(EJ7());EJ7()?(L().hasPlayNextShelf&&Hb("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),U$("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),dB&&My.lock(["Escape"])):(L().hasPlayNextShelf&&U$("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),Hb("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),dB&&My.unlock())}));
L().showMultiplayer3pConsentDialogCommand&&t.push(_.CT(window,"yt-playables-ack-3p-data-usage",function(){IOg(T)}));
L().confirmExitMiniAppCommandEdu&&t.push(_.CT(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.gf("exit-mini-app-seen-state","true",2592E6)}));
L().onGameAudioDataReceivedCommand&&t.push(_.CT(window,"message",function(BX){BX=BX.event_;var MQ,VS=(MQ=bH.value)==null?void 0:MQ.src;if(VS&&BX.origin===(new URL(VS)).origin&&BX.data&&BX.data.type==="GAME_AUDIO"&&BX.data.audio&&BX.data.audio.length>0)if(_.h("enable_sending_unwrapped_game_audio_as_serialized_metadata"))EsJ(L().onGameAudioDataReceivedCommand,BX.data.audio);else{var k3=new FileReader;k3.onload=function(){var hE=new ZU;var Eb=new IIj;Eb=_.gz(Eb,1,k3.result);hE=_.eg(hE,4,Eb);HC(L().onGameAudioDataReceivedCommand,
ZD7(hE))};
k3.readAsDataURL(new Blob([BX.data.audio]))}}))},mJ=function(){t.forEach(function(My){Gi(My)});
window.removeEventListener("beforeunload",gu,{capture:!0})},iW=function(My){My&&Vny(My,L().isEmbeddedInWebview||!1)},U$=function(My,dB){My=_.d(o6.value.getElementsByClassName(My));
for(var BX=My.next();!BX.done;BX=My.next())BX.value.classList.add(dB)},Hb=function(My,dB){My=_.d(o6.value.getElementsByClassName(My));
for(var BX=My.next();!BX.done;BX=My.next())BX.value.classList.remove(dB)};
return function(){var My={};My=_.qn("yt-mini-app-container-view-model",(My["yt-mini-app-container-view-model--desktop"]=!0,My["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return L().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},My["yt-mini-app-container-view-model--ios-web-view"]=wGe(),My["yt-mini-app-container-view-model--no-top-bar"]=function(){return!L().topBar},My["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return L().hasPlayNextShelf},My["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return L().hasPlayNextShelf},My["yt-mini-app-container-view-model--show-peek-below"]=function(){return!XL()&&L().hasPlayNextShelf},My));
var dB={};dB=_.qn("yt-mini-app-container-view-model__content",(dB["yt-mini-app-container-view-model__content--desktop-content"]=!0,dB["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return L().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},dB["yt-mini-app-container-view-model--desktop-play-page"]=function(){return L().hasPlayNextShelf},dB));
return _.D("mini-app-container-view-model",{el:o6},_.D("div",{class:My},_.D(_.e,{cond:function(){return L().topBar&&!XL()},
then:function(){return _.D(_.ID,{data:function(){return L().topBar}},{miniAppTopBarViewModel:function(BX){return _.D(CDJ,{data:BX.data,
isAudioEnabled:SD,onAudioToggled:function(MQ){VM(MQ)},
score:Eg,formattedScore:NN,onScoreChanged:function(MQ){E=MQ},
isEmbeddedInWebview:YV,isSaved:hk,onSaveToggled:function(MQ){hc(MQ)},
isExitMiniAppSeen:Vu,isDesktopPlayPage:LJ})}})}}),_.D("div",{class:dB},_.D(_.e,{cond:MN,
then:function(){return CJ()}}),_.D(_.e,{cond:function(){return!L().isEmbeddedInWebview},
then:function(){return $T()}}))))}()},"le");
yqN.idomCompat=!0;_.Y4(yqN,"mini-app-container-view-model",{props:{data:_.x5}});var ZQ6=_.xa(function(A){var L=A.data;return _.D("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.D("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.py(function(){var O=L().onTap;O&&_.$a(O)})},_.D(_.e,{cond:function(){return L().icon},
then:function(O){return _.D(_.Ky,{icon:function(){return O().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.D("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return L().title})))},"me");
ZQ6.idomCompat=!0;var jAl=_.xa(function(A){var L=_.av("div"),O=_.d(_.uQ(void 0,void 0,"kFCJ0c")),X=O.next().value,x=O.next().value;O=_.d(_.uQ(void 0,void 0,"PIPgWd"));var J=O.next().value,Y=O.next().value;O=_.d(_.uQ(void 0,void 0,"rV66ob"));var T=O.next().value,V=O.next().value,E=function(){var R=X();return R!==void 0?Math.abs(R):void 0},n=function(){var R=E();
return R===void 0||R<=3},t=function(){var R=E();
var y=J(),M=T();R=R!==void 0&&y!==void 0&&M!==void 0?y-M-R:void 0;return R===void 0||R<=3},b=function(R){L.value&&L.value.scrollBy({top:0,
left:(_.ms("HTML_DIR")==="rtl"?-1:1)*R*L.value.clientWidth,behavior:"smooth"})},S=function(){var R;
x((R=L.value)==null?void 0:R.scrollLeft);var y;Y((y=L.value)==null?void 0:y.scrollWidth);var M;V((M=L.value)==null?void 0:M.clientWidth)},w=function(){b(-.5)},l=function(){b(.5)};
O=_.py(function(){S()});
_.r9(function(){S();if(L.value){var R=new ResizeObserver(S);R.observe(L.value);_.rF(function(){R.disconnect()})}});
var F={};return _.D("yt-sponsorships-scrollable-shelf",{class:_.qn("ytdSponsorshipsScrollableShelfHost",A.className)},_.D("div",{class:_.qn("ytdSponsorshipsScrollableShelfContent",(F.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return A.data().previousButton&&A.data().nextButton&&!n()&&!t()},F.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return A.data().previousButton&&!n()&&t()},F.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return A.data().nextButton&&
n()&&!t()},F)),
el:L,"on:scroll":O},A.children),_.D(_.e,{cond:function(){return!n()},
then:function(){return _.D(_.ID,{data:function(){return A.data().previousButton}},{buttonViewModel:function(R){return _.D(_.gj,{data:R.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:w})}})}}),_.D(_.e,{cond:function(){return!t()},
then:function(){return _.D(_.ID,{data:function(){return A.data().nextButton}},{buttonViewModel:function(R){return _.D(_.gj,{data:R.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:l})}})}}))},"ne");
jAl.idomCompat=!0;var HQg=_.xa(function(A){var L=A.data;A={};return _.D("yt-sponsorships-hub",{class:_.qn("ytdSponsorshipsHubHost",(A.ytdSponsorshipsHubHostIndented=function(){return L().indented},A))},_.D("div",{class:"ytdSponsorshipsHubHeader"},_.D("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.D("div",{class:"ytdSponsorshipsHubAvatar"},_.D(_.ID,{data:function(){return L().avatar}},{avatarViewModel:_.fP})),_.D(_.e,{cond:function(){return L().badgeImage},
then:function(O){return _.D("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.D("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.D("div",{class:"ytdSponsorshipsHubBadge"},_.D(_.XV,{data:O,targetWidth:24,targetHeight:24,alt:""}))))}})),_.D("div",{class:"ytdSponsorshipsHubDetails"},_.D("div",{class:"ytdSponsorshipsHubTierName"},function(){return L().tierName}),_.D("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return L().membershipType}),_.D("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return L().membershipDurationOrExpiry})),_.D("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.D(_.ID,{data:function(){return L().manageButton}},{buttonViewModel:function(O){return _.D(_.gj,{data:O.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.D(_.ID,{data:function(){return L().actionMenuButton}},{buttonViewModel:function(O){return _.D(_.gj,{data:O.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.D("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return L().perksTitle}),_.D(jAl,{data:function(){return{previousButton:L().previousPerkButton,
nextButton:L().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.D("div",{class:"ytdSponsorshipsHubPerkCards"},_.D(_.ID,{data:function(){return L().perkCards}},{sponsorshipsHubPerkCardViewModel:ZQ6}),_.D(_.e,{cond:function(){return L().viewAllPerksButton},
then:function(O){return _.D(WYL,{data:O})}}))))},"oe");
HQg.idomCompat=!0;var WYL=_.xa(function(A){var L=A.data;return _.D("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.D(_.ID,{data:function(){return L().button}},{buttonViewModel:_.gj}),_.D("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.D("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return L().title}),_.D("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return L().subtitle})))},"pe");
WYL.idomCompat=!0;_.Y4(HQg,"yt-sponsorships-hub",{props:{data:_.x5}});_.zrL=_.xa(function(A){var L=A.data;return _.D("yt-dual-avatar-view-model",{class:_.qn("ytDualAvatarViewModelHost",A.className),style:_.rl({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var O;return((O=L().badgeCutoutRadius)!=null?O:14)+"px"}})},_.D("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.D(_.ID,{data:function(){return L().startAvatar}},{avatarViewModel:_.fP}),_.D(_.ID,{data:function(){return L().endAvatar}},{avatarViewModel:_.fP})),_.D(_.ID,{data:function(){return L().badge}},
{contentPreviewImageViewModel:function(O){return _.D("div",{class:"ytDualAvatarViewModelBadge"},_.D(_.uG,{data:O.data}))}}))},"qe");
_.zrL.idomCompat=!0;var MTH=_.xa(function(A){var L=A.data;var O,X=!((O=_.X5().resolve(_.Ot(_.oy)))==null||!O());A=_.E4(function(){var n,t,b=X?(n=L().header)==null?void 0:n.backgroundColorDarkMode:(t=L().header)==null?void 0:t.backgroundColorLightMode;if(b!==void 0)return _.Hy(b)},void 0,"UX2G6c");
O=_.E4(function(){var n,t;return X?(n=L().header)==null?void 0:n.backgroundImagePart1Dark:(t=L().header)==null?void 0:t.backgroundImagePart1Light},void 0,"GPAi1d");
var x=_.E4(function(){var n,t;return X?(n=L().header)==null?void 0:n.backgroundImagePart2Dark:(t=L().header)==null?void 0:t.backgroundImagePart2Light},void 0,"nboJld"),J=_.E4(function(){return _.ms("HTML_DIR")==="rtl"},void 0,"LGJceb"),Y=_.av("yt-sponsorships-perks-list"),T=!1,V=function(){var n=Y.value;
if(n&&!T){var t,b=(t=n.parentElement)==null?void 0:t.parentElement;if(b)for(n=n.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),t=0;t<n.length;++t){var S=n[t];if(S instanceof HTMLElement){b.scrollTo({top:S.offsetTop+S.clientHeight/2-b.clientHeight/2,behavior:"smooth"});T=!0;break}}}};
_.GD(function(){var n=Y.value;if(n){var t=new ResizeObserver(V);t.observe(n);_.rF(function(){t.disconnect()})}});
var E={};return _.D("yt-sponsorships-perks-list",{el:Y,class:_.qn("ytdSponsorshipsPerksListHost",(E.ytdSponsorshipsPerksListHorizontalPadding=function(){return L().horizontalPaddingEnabled},E))},_.D("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.D("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.rl({"background-color":A})},_.D("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.D(_.e,{cond:O,then:function(n){var t={};return _.D("div",{class:_.qn((t.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=X,t.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!X,t.ytdSponsorshipsPerksListFlipped=J,t))},_.D(_.XV,{data:n,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.D("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.D(_.e,{cond:x,
then:function(n){var t={};return _.D("div",{class:_.qn((t.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=X,t.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!X,t.ytdSponsorshipsPerksListFlipped=J,t))},_.D(_.XV,{data:n,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.D("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.D(_.ID,{data:function(){var n;
return(n=L().header)==null?void 0:n.dualAvatar}},{dualAvatarViewModel:_.zrL})))),_.D("div",{class:"ytdSponsorshipsPerksListBody"},_.D("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return L().title}),_.D(_.e,{cond:function(){return L().perks},
then:function(n){return _.D(_.g9,{each:n},function(t,b){var S={};return _.D("div",{class:_.qn("ytdSponsorshipsPerksListPerkContainer",(S.ytdSponsorshipsPerksListSelectedPerk=function(){var w=b(),l=L().selectedPerkIndex;return w===l},S))},_.D(_.e,{cond:function(){return b()>0},
then:function(){return _.D("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.D("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.D(_.e,{cond:function(){return t.icon},
then:function(w){return _.D(_.Ky,{icon:function(){return w().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.D("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.D("div",{class:"ytdSponsorshipsPerksListPerkTitle"},t.title),_.D("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.D(_.Xg,{text:t.description})),_.D(_.e,{cond:function(){return t.instructions},
then:function(){var w,l;return _.D("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.D("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(w=t.instructions)==null?void 0:w.title),_.D("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.D(_.Xg,{text:(l=t.instructions)==null?void 0:l.text})))}}))),_.D(_.e,{cond:function(){return t.emoji},
then:function(w){return _.D("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.D(_.g9,{each:function(){return w()}},function(l){return _.D(_.XV,{data:l,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.D(BHL,{data:t}))})}})))},"re");
MTH.idomCompat=!0;var BHL=_.xa(function(A){var L=A.data;var O=function(Y,T){return Y===T},X=function(){var Y=L();
Y=_.q(Y==null?void 0:Y.badgesShelf,Z2g);return Y!==void 0&&Y!==null?Y:{previousButton:{},nextButton:{}}},x=_.kw("div"),J=function(){var Y=x.value;
if(Y){var T=Y.parentElement;if(T){Y=Y.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var V=0;V<Y.length;++V){var E=Y[V];if(E instanceof HTMLElement){T.scrollTo({left:E.offsetLeft+E.clientWidth/2-T.clientWidth/2,behavior:"instant"});break}}}}};
_.GD(function(){var Y=x.value;if(Y){var T=new ResizeObserver(J);T.observe(Y);_.rF(function(){T.disconnect()})}});
return _.D("div",null,_.D(_.e,{cond:function(){return L().badges},
then:function(Y){return _.D(jAl,{data:X},_.D("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:x},_.D(_.g9,{each:function(){return Y()}},function(T,V){var E={},n={},t={};
return _.D("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.D(_.e,{cond:function(){return V()>0},
then:function(){return _.D("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.D("div",{class:_.qn("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(E.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return O(V(),L().currentBadgeIndex)},E.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!O(V(),L().currentBadgeIndex)},E))},_.D("div",{class:_.qn("ytdSponsorshipsPerksListLoyaltyBadge",(n.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return O(V(),
L().currentBadgeIndex)},n.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!O(V(),L().currentBadgeIndex)},n))},_.D(_.e,{cond:function(){return T.image},
then:function(b){var S={};return _.D("div",{class:_.qn((S.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return O(V(),L().currentBadgeIndex)},S.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!O(V(),L().currentBadgeIndex)},S))},_.D(_.XV,{data:b,
alt:""}))}})),_.D("div",{class:_.qn("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(t.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return O(V(),L().currentBadgeIndex)},t))},T.title)))})))}}))},"se");
BHL.idomCompat=!0;_.Y4(MTH,"yt-sponsorships-perks-list",{props:{data:_.x5}});_.Y4(_.xa(function(A){return _.D("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.D(_.e,{cond:function(){return A.data().image},
then:function(L){return _.D(_.XV,{className:"ytwFantasyEmptyStateViewModelImage",data:L,ariaHidden:!0,alt:""})}}),_.D(_.Xg,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return A.data().title}}),_.D(_.Xg,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return A.data().subtitle}}),_.D(_.ID,{data:function(){return A.data().primaryButton}},{buttonViewModel:function(L){return _.D(_.gj,{data:L.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"te"),"ytw-fantasy-empty-state-view-model",{props:{data:_.x5}});var $Cc;var CwD=_.cm({buttonRenderer:_.AN});_.Xh(FHu);_.tF(FHu,"timed-animation-button-renderer",{propNames:["data","uniqueId","overrides"]});var Jo=function(){var A=_.G.apply(this,arguments)||this;A.hideJoinButtonBeforeSubscribed=_.h("hide_join_button_before_subscribed");A.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return A};
_.g(Jo,_.G);_.P=Jo.prototype;_.P.hasShowDialogCommand=function(A){return!!_.q(A,UvV)};
_.P.configureRendererStamper=function(){return{"data.avatarStack":{id:"avatar-stack",mapping:{avatarStackViewModel:{component:"yt-avatar-stack-view-model"}}},"data.membershipButton":{id:"sponsor-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[joinButtonOverrides]]"}},timedAnimationButtonRenderer:{component:"timed-animation-button-renderer",params:{uniqueId:"join-button"},properties:{overrides:"[[joinButtonOverrides]]"}}}},"data.purchaseButton":{id:"purchase-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.analyticsButton":{id:"analytics-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.updateJoinButtonOverrides=function(){var A,L;(A=_.YJ(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(L=A.polymerController)==null||L.set("overrides",this.joinButtonOverrides);if(A=_.YJ(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))A.overrides=this.joinButtonOverrides};
_.P.handleButtonRefreshAction=function(A){if(A=_.q(A,AQc))this.set("data.membershipButton",A.membershipButton),this.notifyPath("data.membershipButton")};
_.P.onYtServiceRequestError=function(A){_.JC(this.hostElement,A.detail.error.message)};
_.P.onKeydown=function(A){if(A.key==="Enter"){var L;(L=this.data)!=null&&L.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.P.handleUnsubscribeAction=function(){var A,L,O;((A=this.data)==null?void 0:(L=A.membershipButton)==null?void 0:(O=L.buttonRenderer)==null?void 0:O.style)==="STYLE_PRIMARY"&&_.YJ(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.v2.Object.defineProperties(Jo.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.subscriptionStateEntity)==null||!A.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var A,L=(A=this.data)==null?void 0:A.membershipButton,O;A=(L==null?void 0:L.buttonRenderer)||_.q(L==null?void 0:(O=L.timedAnimationButtonRenderer)==null?void 0:O.buttonRenderer,_.$t);return(A==null?void 0:A.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(A==null?void 0:A.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(A==null?void 0:A.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var A;if(this.hasShowDialogCommand((A=this.data)==null?void 0:A.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var A;if(this.hasShowDialogCommand((A=this.data)==null?void 0:A.navigationEndpoint))return"button"}}});
Jo.prototype.onYtServiceRequestError=Jo.prototype.onYtServiceRequestError;Jo.prototype.updateJoinButtonOverrides=Jo.prototype.updateJoinButtonOverrides;_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],Jo.prototype,"actionHandlerBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Jo.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Jo.prototype,"ytRendererstamperBehavior",void 0);
_.I([_.N(_.HL),_.Z("design:type",Object)],Jo.prototype,"ytdReduxBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],Jo.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.jK),_.Z("design:type",Object)],Jo.prototype,"ironButtonState",void 0);_.I([_.K(),_.Z("design:type",Object)],Jo.prototype,"data",void 0);_.I([_.r("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Jo.prototype,"hideJoin",null);
_.I([_.K(),_.Z("design:type",String)],Jo.prototype,"subscribeKey",void 0);_.I([_.K({selectorArgs:["subscribeKey"],selector:j5y}),_.Z("design:type",Object)],Jo.prototype,"subscriptionStateEntity",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Jo.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.I([_.r("subscriptionStateEntity"),_.K({reflectToAttribute:!0}),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Jo.prototype,"subscribed",null);
_.I([_.r("subscribed","data.membershipButton"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Jo.prototype,"joinButtonOverrides",null);_.I([_.r("data.navigationEndpoint"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Jo.prototype,"channelNameTabIndex",null);_.I([_.r("data.navigationEndpoint"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Jo.prototype,"channelNameRole",null);
_.I([_.hT("joinButtonOverrides"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Jo.prototype,"updateJoinButtonOverrides",null);_.I([_.by("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Jo.prototype,"onYtServiceRequestError",null);_.I([_.Q({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],Jo);
var aON=_.DX()(Jo,"ytd-video-owner-renderer",function(){if($Cc===void 0){var A=document.createElement("template");_.p(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-owner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-video-owner-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow><div id="avatar-stack" hidden="[[!data.avatarStack.avatarStackViewModel]]" class="style-scope ytd-video-owner-renderer"></div></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);$Cc=A}A=$Cc;return A},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.Y4(_.xa(function(A){var L=A.data;var O;A=_.d(_.uQ(!((O=_.wf("yt-mini-app-is-theater-mode-enabled"))==null||!O),void 0,"CtFFDf"));var X=A.next().value,x=A.next().value;O=_.d(_.uQ(!1,void 0,"pRgDfb"));var J=O.next().value,Y=O.next().value;_.GD(function(){var E=_.CT(window,DRn,function(){Y(EJ7())});
_.rF(function(){Gi(E)})});
var T;O=(T=_.X5().resolve(_.Ot(hxg)))!=null?T:function(){return _.D("div",null)};
_.$w("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){x(!0);_.gf("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.$w("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){x(!1);_.gf("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
T={};A={};var V={};return _.D("mini-app-play-page-renderer",{class:_.qn("miniAppPlayPageRendererHost",(T.miniAppPlayPageRendererHostDetailsView=function(){return!X()},T))},_.D("div",{class:_.qn("miniAppPlayPageRendererGameContainer",(A.miniAppPlayPageRendererGameContainerDetailsView=function(){return!X()},A))},_.D(_.ID,{data:function(){return L().containerViewModel}},{miniAppContainerViewModel:yqN}),_.D(_.e,{cond:function(){return L().channel&&L().subscribeButton},
then:function(){var E={};return _.D("div",{class:_.qn("miniAppPlayPageRendererChannelContainer",(E.miniAppPlayPageRendererHideVisibility=function(){return J()},E))},_.D(_.ID,{data:function(){return L().channel}},{videoOwnerRenderer:function(n){return _.D(aON,{data:n.data})}}),_.D(_.ID,{data:function(){return L().subscribeButton}},{subscribeButtonViewModel:function(n){return _.D(_.fE,{data:n.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.D(_.e,{cond:function(){return!X()&&L().description},
then:function(){var E={};return _.D("div",{class:_.qn("miniAppPlayPageRendererMiniAppDescriptionWrapper",(E.miniAppPlayPageRendererHideVisibility=function(){return J()},E))},_.D("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return L().description}))}})),_.D("div",{class:_.qn("miniAppPlayPageRendererPlayNextContainer",(V.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!X()},V.miniAppPlayPageRendererHideVisibility=function(){return J()},V))},_.D(_.ID,{data:function(){return L().sectionList}},
{sectionListRenderer:O})))},"ue"),"mini-app-play-page-renderer",{props:{data:_.x5}});var P0=function(){var A=_.G.apply(this,arguments)||this;A.isSearch=!1;A.isConstrainedList=!1;A.hasChipsBar=!1;A.inReplyPanel=!1;A.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"}};A.monitorScroll=!0;A.SCROLL_ANIMATION_DURATION_MS=300;A.nextContinuation={continuationType:"sectionListContinuation"};return A};
_.g(P0,_.G);_.P=P0.prototype;
_.P.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedChannelFilterHeaderRenderer:{component:"ytd-feed-channel-filter-header-renderer",noInjection:!0},textHeaderRenderer:{component:"ytd-text-header-renderer",noInjection:!0},richListHeaderRenderer:{component:"ytd-rich-list-header-renderer",noInjection:!0},headerWithBackRenderer:{component:"yt-header-with-back-renderer",noInjection:!0},feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",noInjection:!0,
properties:{isClipList:"[[isClipList]]"}},liveChatItemDisplayRenderer:{component:"yt-live-chat-item-display-renderer",noInjection:!0,params:{isHeader:!0}},chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},"data.subMenu":{id:"sub-menu",mapping:{searchSubMenuRenderer:{component:"ytd-search-sub-menu-renderer",noInjection:!0},channelSubMenuRenderer:{component:"ytd-channel-sub-menu-renderer",noInjection:!0},channelListSubMenuRenderer:{component:"ytd-channel-list-sub-menu-renderer",noInjection:!0},
sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",noInjection:!0}}},shownItems:{id:"contents",mapping:{itemSectionRenderer:{matcher:function(A){switch(A.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},flowRootRenderer:{component:"ytd-flow-root-renderer",
noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",
noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",
noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},
liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},
creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.h("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.h("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.P.created=function(){var A=this;this.JSC$17994_scrollAnimation=new _.U6(function(L){A.hostElement.scrollTop=L})};
_.P.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.P.getItemsPath=function(){return"data.contents"};
_.P.replacePrimaryContent=function(A){this.set("data.contents",A)};
_.P.computeHasSortFilter=function(A){return!!A&&!!A.sortFilterSubMenuRenderer};
_.P.computeShouldScrollInPanel=function(A){var L;return!!(A==null?0:(L=A.scrollPaneStyle)==null?0:L.scrollable)};
_.P.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.TK(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.P.scrollToTop=function(){this.hostElement.scrollTop=0};
_.P.scrollToItemSection=function(A){if(A=this.getItemByIdentifier(A))A=this.getScrollPositionForItem(A),this.hostElement.scrollTop!==A&&this.JSC$17994_scrollAnimation.start(this.hostElement.scrollTop,A,this.SCROLL_ANIMATION_DURATION_MS)};
_.P.getItemByIdentifier=function(A){var L=this.contents.querySelectorAll("ytd-item-section-renderer");if(L&&L.length!==0){var O=Array.from(L).findIndex(function(X){return X.sectionIdentifier===A});
return L[O===-1?0:O]}};
_.P.getScrollPositionForItem=function(A){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===A)return 0;A=_.QS(A).y+this.hostElement.scrollTop-_.QS(this.hostElement).y;return Math.min(A,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.v2.Object.defineProperties(P0.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.targetId)==="browse-feedFEclips"}}});
P0.prototype.onScroll=P0.prototype.onScroll;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],P0.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],P0.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.TU.YtLazyListBehavior),_.Z("design:type",Object)],P0.prototype,"ytLazyListBehavior",void 0);_.I([_.N(_.vQ.YtNextContinuationBehavior),_.Z("design:type",Object)],P0.prototype,"ytNextContinuationBehavior",void 0);
_.I([_.N(_.msn),_.Z("design:type",Object)],P0.prototype,"ytBooleanLogicBehavior",void 0);_.I([_.N(_.U8),_.Z("design:type",Object)],P0.prototype,"ytContinuationHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],P0.prototype,"data",void 0);_.I([_.K({value:2}),_.Z("design:type",Number)],P0.prototype,"initialCount",void 0);_.I([_.K({value:!0}),_.Z("design:type",Boolean)],P0.prototype,"autoFill",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.Z("design:type",Boolean)],P0.prototype,"hasSortFilter",void 0);_.I([_.K({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.Z("design:type",Boolean)],P0.prototype,"hideBottomSeparator",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.Z("design:type",Boolean)],P0.prototype,"shouldScrollInPanel",void 0);
_.I([_.K(),_.Z("design:type",Object)],P0.prototype,"isSearch",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],P0.prototype,"isConstrainedList",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",String)],P0.prototype,"responsiveSizing",void 0);_.I([_.K(),_.Z("design:type",Object)],P0.prototype,"hasChipsBar",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",String)],P0.prototype,"pageSubtype",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],P0.prototype,"engagementPanel",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],P0.prototype,"liveChatEngagementPanel",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],P0.prototype,"inReplyPanel",void 0);_.I([_.qR("#action-button"),_.Z("design:type",HTMLElement)],P0.prototype,"actionButton",void 0);_.I([_.K(),_.Z("design:type",Object)],P0.prototype,"scrollUpButtonData",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],P0.prototype,"engagementPanelDropdown",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],P0.prototype,"engagementPanelDialog",void 0);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],P0.prototype,"isClipList",null);_.I([_.qR("#contents"),_.Z("design:type",HTMLElement)],P0.prototype,"monitorScrollElement",void 0);_.I([_.qR("#contents"),_.Z("design:type",HTMLElement)],P0.prototype,"contents",void 0);
_.I([_.by("scroll"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],P0.prototype,"onScroll",null);_.I([_.Q({is:"ytd-section-list-renderer",disableElementRegistration:!0})],P0);
var kSu=_.DX()(P0,"ytd-section-list-renderer",function(){if(bi3===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);bi3=A}A=bi3;return A},{mode:1});var UC6;var vG3;var oGg;var ASH;var d5=function(){return _.G.apply(this,arguments)||this};
_.g(d5,_.G);d5.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
d5.prototype.onLikeButtonClick=function(A){A.stopPropagation();A.preventDefault()};
_.v2.Object.defineProperties(d5.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)!=null&&A.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)})}}}});
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],d5.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],d5.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],d5.prototype,"ytdReduxBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],d5.prototype,"ytRendererStamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],d5.prototype,"data",void 0);
_.I([_.K({selectorArgs:["data.likeStatusEntityKey"],selector:Bx}),_.Z("design:type",Object)],d5.prototype,"likeStatusEntity",void 0);_.I([_.r("data","likeStatusEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],d5.prototype,"likeButtonRenderer",null);_.I([_.Q({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],d5);
_.m(d5,"ytd-slim-metadata-toggle-button-renderer",function(){if(ASH!==void 0)return ASH;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);
return ASH=A},{mode:1});var YR=function(){var A=_.G.apply(this,arguments)||this;A.minimizePipBreakages=_.h("web_pip_minimize_breakages");A.showEqualizer=_.h("web_enable_playlist_video_lockup_equalizer");A.watchColorUpdate=_.h("kevlar_watch_color_update");A.actionMap={};return A};
_.g(YR,_.G);_.P=YR.prototype;_.P.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:"left"}}}},"data.actionButtons":{id:"action-buttons",mapping:{slimMetadataToggleButtonRenderer:"ytd-slim-metadata-toggle-button-renderer"}}}};
_.P.computeEditableClass=function(A){return A&&A.menu?"editable":""};
_.P.computeSelected=function(A){return!(A==null||!A.selected)};
_.P.computeUseColorPalette=function(A){return!!((A==null?0:A.lightColorPalette)&&(A==null?0:A.darkColorPalette))};
_.P.computeLargerPlaylistThumbs=function(A,L){return _.h("web_enable_playlist_bigger_thumbnails")&&!L};
_.P.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.P.onYtServiceRequestSent=function(A,L){L.endpoint&&this.isHideEnclosingAction(L.endpoint)&&!this.selected&&EmH(_.Aa(),this.data.videoId)};
_.P.isHideEnclosingAction=function(A){var L=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",A);A=this.get("likeEndpoint.status",A)==="INDIFFERENT";return L||A};
_.P.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.P.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.v2.Object.defineProperties(YR.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.h("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 A;return!!(this.withinMiniplayer&&((A=this.data)==null?0:A.actionButtons))}}});
YR.prototype.onYtServiceRequestSent=YR.prototype.onYtServiceRequestSent;YR.prototype.canReorderChanged=YR.prototype.canReorderChanged;_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],YR.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],YR.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],YR.prototype,"ytRendererBehavior",void 0);
_.I([_.N(_.of),_.Z("design:type",Object)],YR.prototype,"ytdLockupBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],YR.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],YR.prototype,"withinMiniplayer",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],YR.prototype,"minimizePipBreakages",void 0);_.I([_.K({computed:"computeSelected(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],YR.prototype,"selected",void 0);
_.I([_.K({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],YR.prototype,"useColorPalette",void 0);_.I([_.K({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],YR.prototype,"largerPlaylistThumbs",void 0);_.I([_.K(),_.Z("design:type",Object)],YR.prototype,"showEqualizer",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],YR.prototype,"canReorder",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],YR.prototype,"touchPersistentDragHandle",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],YR.prototype,"handleIsHovered",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],YR.prototype,"watchColorUpdate",void 0);_.I([_.K(),_.Z("design:type",String),_.Z("design:paramtypes",[])],YR.prototype,"reorderIcon",null);
_.I([_.r("largerPlaylistThumbs"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],YR.prototype,"thumbnailWidth",null);_.I([_.K({reflectToAttribute:!0}),_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],YR.prototype,"showActionButtons",null);_.I([_.iy("canReorder"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],YR.prototype,"canReorderChanged",null);
_.I([_.by("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.aQ]),_.Z("design:returntype")],YR.prototype,"onYtServiceRequestSent",null);_.I([_.Q({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],YR);
_.m(YR,"ytd-playlist-panel-video-renderer",function(){if(oGg!==void 0)return oGg;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return oGg=A},{mode:2});var uL=function(){return _.G.apply(this,arguments)||this};
_.g(uL,_.G);uL.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],uL.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],uL.prototype,"data",void 0);_.I([_.Q({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],uL);
_.m(uL,"ytd-playlist-panel-supported-items",function(){if(vG3!==void 0)return vG3;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return vG3=
A},{mode:1});ek6=!0;lEj("\\P{N}");var RRu;var Lj3=_.b3("END_OF_PLAYLIST",void 0,"End of playlist"),Of6=_.b3("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),Th=function(){var A=_.G.apply(this,arguments)||this;A.minimizePipBreakages=_.h("web_pip_minimize_breakages");A.updatedCoursePanel=_.h("move_three_dot_menu_to_playlist_panel_header_for_courses");A.hideHeaderText=!1;A.useColorPalette=!1;A.collapsed=!1;A.collapsedPreServerOverride="not_tracked";A.isHovered=!1;A.modernPanels=_.h("kevlar_watch_modern_panels");
A.expandLabel=_.b3("MINIPLAYER_EXPAND_LABEL");A.collapseLabel=_.b3("MINIPLAYER_COLLAPSE_LABEL");A.isFloating=!1;A.metaPanel=!1;A.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};A.currentIndex=void 0;return A};
_.g(Th,_.G);_.P=Th.prototype;
_.P.configureRendererStamper=function(){return{menuRendererData:{id:"playlist-action-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{forceIconButton:!1}}}},overflowMenuDataTopRow:{id:"overflow-menu-top-row",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},overflowMenuData:{id:"overflow-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.contentHeader":{id:"content-header",mapping:{messageRenderer:{component:"ytd-message-renderer",params:{panel:!0}}}},"data.contents":{id:"items",
events:!0,mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",attributes:{id:"playlist-items"},properties:{canReorder:"[[canReorder]]",withinMiniplayer:"[[withinMiniplayer]]"}},messageRenderer:{component:"ytd-message-renderer",params:{panel:!0}}}},"data.saveButton":{id:"save-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.topRowButtons":{id:"top-row-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.created=function(){this.scrollThrottle=new _.Of(this.onThrottledScroll,1E3,this)};
_.P.onMouseEnter=function(){this.isHovered=!0};
_.P.onMouseLeave=function(){this.isHovered=!1};
_.P.computeOverflowMenuData=function(A){return A&&A.menu?A.menu:null};
_.P.computeCollapsible=function(A){return!A};
_.P.computeHasPlaylistButtons=function(A){return!(!A||!A.playlistButtons)};
_.P.computeHasSeparateSaveButton=function(A){return!(!A||!A.saveButton)};
_.P.computeHasToolbarButton=function(A,L){return!(!A||!(L||A.saveButton||A.menu))};
_.P.computePlaylistType=function(A){if(A&&A.playlistId)return A.playlistId.substring(0,4)};
_.P.computeCanReorder=function(A){return A?A.playlistId&&A.playlistId.startsWith("TLPQ")?!0:!!A.isEditable&&!A.isInfinite:!1};
_.P.attached=function(){var A=this;try{_.X5().resolve(_.$q).setPlaylistComponent(this.hostElement)}catch(L){if(_.h("kevlar_park_on_playlist_token_killswitch"))throw L;_.kq().parkOrScheduleJob(function(){_.X5().resolve(_.$q).setPlaylistComponent(A.hostElement)},2,"ci")}_.xK(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.P.detached=function(){_.Jz(this.hostElement)};
_.P.computeTrailingIcon=function(A,L,O){return O?L?"yt-icons:collapse":"yt-icons:close":L?"yt-icons:expand":_.h("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.P.computeIndexMessage=function(A,L){return fw_(A+1)+" / "+fw_(L)};
_.P.onRenderStamperFinished=function(){if(this.scrollForStampDom){var A=!0;this.isHovered&&(A=!1);if(this.collapsed||this.hidden)A=!1;A&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.P.collapseChanged=function(){var A=this;this.collapsed||(_.fu(this.ytTaskEmitterBehavior.getTaskManager(),function(){A.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.P.hiddenChanged=function(){var A=this;this.hidden||_.fu(this.ytTaskEmitterBehavior.getTaskManager(),function(){A.scrollToCurrentVideo()})};
_.P.setupReordering=function(){var A=_.YJ(this.hostElement).querySelector("#items");MiN?_.BLn(this.ytReorderableBehavior,A,A,"playlist-drag-handle"):_.BLn(this.ytReorderableBehavior,A,A)};
_.P.scrollToCurrentVideo=function(){var A=this;_.c1.addJob(function(){var L=_.YJ(A.hostElement).querySelector("#items");if(L){L.style.setProperty("padding-bottom","");var O=_.YJ(A.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(O){L=O.parentElement||_.RS(document);var X=L||_.RS(document);var x=_.QS(O),J=_.QS(X),Y=_.zSV(X);if(X==_.RS(document)){var T=x.x-X.scrollLeft;x=x.y-X.scrollTop}else T=x.x-J.x-Y.left,x=x.y-J.y-Y.top;O=ZJN(O);J=X.clientHeight-
O.height;Y=X.scrollLeft;var V=X.scrollTop;Y+=T-(X.clientWidth-O.width)/2;X=new _.Cm(Y,V+(x-J/2));L.scrollLeft=X.x;L.scrollTop=X.y}}},8)};
_.P.dataChanged=function(){var A=this;_.z5V(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.kd(this,function(){_.p7(A.ytTaskEmitterBehavior.getTaskManager(),function(){A.ytRendererBehavior.markDirty();A.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.P.onFullBleedPlayerChanged=function(){_.h("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.P.onFullscreenChanged=function(){_.h("web_watch_imax_theater_mode")||_.h("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.P.updateNowPlayingOverlay=function(){_.h("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.P.onPlaylistLockupNowPlaying=function(A,L){L&&(this.activeNowPlayingRenderer=L);this.updateNowPlayingOverlay()};
_.P.onScroll=function(){this.scrollThrottle.fire()};
_.P.onThrottledScroll=function(){var A=this;_.p7(this.ytTaskEmitterBehavior.getTaskManager(),function(){A.ytRendererBehavior.markDirty()})};
_.P.onToggleExpanded=function(A){!this.collapsible||A&&(_.AT(A).tagName==="A"||_.xu(_.oa(A),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.P.setCollapsed=function(A){this.collapsible&&(this.collapsed=A,_.YK(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.P.handleCollapsedFromData=function(A){if(A){var L=A.playlistPanelCollapseState;L==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||L==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),L=L==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==L&&this.setCollapsed(L)):this.currentPlaylistId!==A.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(L=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==L&&this.setCollapsed(L),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=A.playlistId}};
_.P.handleDrop=function(A){var L=A.currDragItem;A=L.data.playlistSetVideoId;var O=_.Q_(L.parentNode.childNodes,L),X=void 0;O>0&&(X=L.parentNode.childNodes[O-1].data.playlistSetVideoId);L=_.Aa();if(L.responsePlaylistData&&L.responsePlaylistData.contents){var x=A3_(A,L.responsePlaylistData);L.responsePlaylistData=(0,_.lW.unsafeClone)(L.responsePlaylistData);leM(L.responsePlaylistData.contents,x,O);L.queueProxy?zKj(L.queueProxy,x,O,A,X):L.playlistProxy&&zKj(L.playlistProxy,x,O,A,X);_.LA(L,_.Oc(L,L.response?
L.response.autoplayRenderer:void 0))}};
_.P.handleDarkModeChange=function(A){A!==this.isDarkTheme&&(this.isDarkTheme=A)};
_.P.colorPaletteChanged=function(){var A,L=((A=this.data)==null?void 0:A.contents)||[],O;A=_.d(L);for(L=A.next();!L.done;L=A.next()){L=L.value;var X=void 0;if((X=L.playlistPanelVideoRenderer)==null?0:X.selected){A=L.playlistPanelVideoRenderer;X=L=void 0;(O=this.isDarkTheme?(L=A)==null?void 0:L.darkColorPalette:(X=A)==null?void 0:X.lightColorPalette)&&_.fy(this.hostElement,O);break}}this.useColorPalette=!!O};
_.v2.Object.defineProperties(Th.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var A,L;return!((A=this.data)==null||!A.playlistId)&&!((L=this.data)==null||!L.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var A=_.X5().resolve(_.Ot(_.$q)),L;if(((L=this.data)==null?0:L.contents)&&(A==null?0:A.hasAutoplayData())){var O;if(((O=this.playlistLoopStateEntity)==null?void 0:O.state)==="PLAYLIST_LOOP_STATE_ONE"){if(A=this.data.currentIndex,A!==void 0){var X,x;var J=(X=this.data.contents[A])==null?void 0:(x=X.playlistPanelVideoRenderer)==null?void 0:x.title}}else{var Y,T=(Y=_.q(A.getAutoplayEndpoint(),_.$O))==null?void 0:Y.videoId,V,E;J=(V=this.data.contents.find(function(n){var t;
return((t=n.playlistPanelVideoRenderer)==null?void 0:t.videoId)===T}))==null?void 0:(E=V.playlistPanelVideoRenderer)==null?void 0:E.title}return J}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)!=null&&A.nextVideoLabel?this.nextVideoTitle?_.vG(this.data.nextVideoLabel)+":":Lj3:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var A;if(((A=this.data)==null?0:A.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.h("web_mix_long_byline_from_data"))return _.Ue(Of6);var L;return(L=this.data)==null?void 0:L.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var A,L,O,X=(A=this.data)==null?void 0:(L=A.playlistButtons)==null?void 0:(O=L.menuRenderer)==null?void 0:O.topLevelButtons;if(X)for(A=_.d(X),L=A.next();!L.done;L=A.next())if(L=L.value,L.playlistLoopButtonRenderer)return L.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var A;return!!(this.collapsed&&((A=this.data)==null?0:A.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.h("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
Th.prototype.colorPaletteChanged=Th.prototype.colorPaletteChanged;Th.prototype.onPlaylistLockupNowPlaying=Th.prototype.onPlaylistLockupNowPlaying;Th.prototype.updateNowPlayingOverlay=Th.prototype.updateNowPlayingOverlay;Th.prototype.onFullscreenChanged=Th.prototype.onFullscreenChanged;Th.prototype.onFullBleedPlayerChanged=Th.prototype.onFullBleedPlayerChanged;Th.prototype.dataChanged=Th.prototype.dataChanged;Th.prototype.hiddenChanged=Th.prototype.hiddenChanged;Th.prototype.collapseChanged=Th.prototype.collapseChanged;
Th.prototype.onRenderStamperFinished=Th.prototype.onRenderStamperFinished;Th.prototype.onMouseLeave=Th.prototype.onMouseLeave;Th.prototype.onMouseEnter=Th.prototype.onMouseEnter;_.I([_.N(_.y9),_.Z("design:type",Object)],Th.prototype,"ironResizableBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Th.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Th.prototype,"ytRendererstamperBehavior",void 0);
_.I([_.N(WAj.YtPlaylistPanelBehavior),_.Z("design:type",Object)],Th.prototype,"ytPlaylistPanelBehavior",void 0);_.I([_.N(_.Y5.YtTaskEmitterBehavior),_.Z("design:type",Object)],Th.prototype,"ytTaskEmitterBehavior",void 0);_.I([_.N(_.MBg),_.Z("design:type",Object)],Th.prototype,"ytReorderableBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],Th.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],Th.prototype,"ytdReduxBehavior",void 0);
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],Th.prototype,"actionHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Th.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],Th.prototype,"autoplayData",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Th.prototype,"withinMiniplayer",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Th.prototype,"minimizePipBreakages",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Th.prototype,"updatedCoursePanel",void 0);_.I([_.K({computed:"setMenuData_(data)"}),_.Z("design:type",Object)],Th.prototype,"menuRendererData",void 0);_.I([_.K({computed:"computeOverflowMenuData(data)"}),_.Z("design:type",Object)],Th.prototype,"overflowMenuDataTopRow",void 0);_.I([_.K({computed:"computeOverflowMenuData(data)"}),_.Z("design:type",Object)],Th.prototype,"overflowMenuData",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Th.prototype,"hideHeaderText",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Th.prototype,"useColorPalette",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.Z("design:type",Boolean)],Th.prototype,"collapsible",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Th.prototype,"collapsed",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Th.prototype,"hidden",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.Z("design:type",Boolean)],Th.prototype,"hasPlaylistButtons",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.Z("design:type",Boolean)],Th.prototype,"hasSeparateSaveButton",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.Z("design:type",Boolean)],Th.prototype,"hasToolbar",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.Z("design:type",String)],Th.prototype,"playlistType",void 0);_.I([_.K(),_.Z("design:type",Object)],Th.prototype,"isHovered",void 0);_.I([_.K({selectorArgs:["playlistLoopStateEntityKey"],selector:_.$8r}),_.Z("design:type",Object)],Th.prototype,"playlistLoopStateEntity",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Th.prototype,"modernPanels",void 0);_.I([_.K({value:56}),_.Z("design:type",Number)],Th.prototype,"scrollMargin",void 0);_.I([_.K({computed:"computeCanReorder(data)"}),_.Z("design:type",Boolean)],Th.prototype,"canReorder",void 0);_.I([_.K(),_.Z("design:type",Object)],Th.prototype,"expandLabel",void 0);_.I([_.K(),_.Z("design:type",Object)],Th.prototype,"collapseLabel",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Th.prototype,"isFloating",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Th.prototype,"metaPanel",void 0);_.I([_.K({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.Z("design:type",String)],Th.prototype,"trailingIcon",void 0);_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],Th.prototype,"isDarkTheme",void 0);
_.I([_.K({selector:_.Qi}),_.Z("design:type",Boolean)],Th.prototype,"miniplayerIsActive",void 0);_.I([_.K({selector:function(A){return A.watch.playerState}}),
_.Z("design:type",Number)],Th.prototype,"playerState",void 0);_.I([_.K({selector:_.Wx}),_.Z("design:type",Boolean)],Th.prototype,"isFullscreen",void 0);_.I([_.K({selector:_.jt}),_.Z("design:type",Boolean)],Th.prototype,"isTheaterMode",void 0);_.I([_.K(),_.Z("design:type",Object)],Th.prototype,"activeNowPlayingRenderer",void 0);_.I([_.K({reflectToAttribute:!0}),_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Th.prototype,"moveThreeDotMenuToTopRow",null);
_.I([_.r("data","autoplayData","playlistLoopStateEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Th.prototype,"nextVideoTitle",null);_.I([_.r("data","nextVideoTitle"),_.Z("design:type",String),_.Z("design:paramtypes",[])],Th.prototype,"nextVideoLabel",null);_.I([_.r("collapsed"),_.Z("design:type",String),_.Z("design:paramtypes",[])],Th.prototype,"buttonAriaLabel",null);
_.I([_.r("data","playlistId","longBylineText"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Th.prototype,"mixLongByLine",null);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Th.prototype,"playlistLoopStateEntityKey",null);_.I([_.by("mouseenter"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Th.prototype,"onMouseEnter",null);
_.I([_.by("mouseleave"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Th.prototype,"onMouseLeave",null);_.I([_.K({reflectToAttribute:!0}),_.r("data","collapsed"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Th.prototype,"showNextVideoHeader",null);_.I([_.by("yt-rendererstamper-finished"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Th.prototype,"onRenderStamperFinished",null);
_.I([_.hT("collapsed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Th.prototype,"collapseChanged",null);_.I([_.hT("hidden"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Th.prototype,"hiddenChanged",null);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Th.prototype,"dataChanged",null);
_.I([_.r("isTheaterMode","isFullscreen"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Th.prototype,"isFullBleedPlayer",null);_.I([_.hT("isTheaterMode","isFullscreen"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Th.prototype,"onFullBleedPlayerChanged",null);_.I([_.hT("isFullscreen"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Th.prototype,"onFullscreenChanged",null);
_.I([_.hT("playerState","miniplayerIsActive"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Th.prototype,"updateNowPlayingOverlay",null);_.I([_.by("yt-playlist-lockup-now-playing-active"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],Th.prototype,"onPlaylistLockupNowPlaying",null);
_.I([_.hT("data","isDarkTheme"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Th.prototype,"colorPaletteChanged",null);_.I([_.Q({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],Th);
_.XNc=_.DX()(Th,"ytd-playlist-panel-renderer",function(){if(UC6===void 0){var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);UC6=A}A=UC6;return A},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var xk6;var V8=function(){var A=_.G.apply(this,arguments)||this;A.modern=_.h("web_button_rework");return A};
_.g(V8,_.G);V8.prototype.computeShouldButtonBeVertical=function(A,L){return A||L};
V8.prototype.onYtServiceRequestSent=function(A,L){(A=_.q(L.endpoint,_.Mw))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.NV("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:A.status})):this.handleLikeEndpoint(A))};
V8.prototype.computelikeStatusEntityKey=function(A){return A==null?void 0:A.likeStatusEntityKey};
V8.prototype.handleLikeEndpoint=function(A){A.status==="LIKE"?this.JSC$18019_ytdDislikeToggleButtonRenderer.toggle(!1):A.status==="DISLIKE"?this.JSC$18019_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$18019_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$18019_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.v2.Object.defineProperties(V8.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var A;return jTM(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(A=this.likeStatusEntity)==null?void 0:A.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var A;if(this.data&&((A=this.data)==null||!A.hideDislikeButton)){var L;return jTM(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(L=this.likeStatusEntity)==null?void 0:L.likeStatus)}}}});
V8.prototype.onYtServiceRequestSent=V8.prototype.onYtServiceRequestSent;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],V8.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],V8.prototype,"ytdReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],V8.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],V8.prototype,"vertical",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",String)],V8.prototype,"textTransform",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],V8.prototype,"useShortsIcon",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],V8.prototype,"underIconLabel",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],V8.prototype,"modern",void 0);_.I([_.K({value:"left"}),_.Z("design:type",String)],V8.prototype,"buttonTooltipPosition",void 0);
_.I([_.K(),_.Z("design:type",Object)],V8.prototype,"overrides",void 0);_.I([_.qR("#like-button"),_.Z("design:type",Object)],V8.prototype,"JSC$18019_ytdLikeToggleButtonRenderer",void 0);_.I([_.qR("#dislike-button"),_.Z("design:type",Object)],V8.prototype,"JSC$18019_ytdDislikeToggleButtonRenderer",void 0);_.I([_.r("data","likeStatusEntity.likeStatus","useShortsIcon"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],V8.prototype,"likeButton",null);
_.I([_.r("data","likeStatusEntity.likeStatus","useShortsIcon"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],V8.prototype,"dislikeButton",null);_.I([_.K({computed:"computelikeStatusEntityKey(data)"}),_.Z("design:type",String)],V8.prototype,"likeStatusEntityKey",void 0);_.I([_.K({selectorArgs:["likeStatusEntityKey"],selector:Bx}),_.Z("design:type",Object)],V8.prototype,"likeStatusEntity",void 0);
_.I([_.by("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.aQ]),_.Z("design:returntype")],V8.prototype,"onYtServiceRequestSent",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],V8);
var sBH=_.DX()(V8,"ytd-like-button-renderer",function(){if(xk6===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);xk6=A}A=xk6;return A},{mode:1});_.JSJ={};
_.JSJ.YtConditionalRendererBehavior=[_.B.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(A,L){var O=this,X,x;return _.u(function(J){switch(J.nextAddress){case 1:if(!L)return O.hidden=!0,O.showSpinner=!1,J.return();if((X=A)==null?0:(x=X.visibilityCondition)==null?0:x.mode)switch(A.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return J.jumpTo(5);default:return J.jumpTo(6)}O.showSpinner=
!1;O.hidden=!0;return J.yield(O.shouldShow_(A),4);case 4:O.hidden=!J.yieldResult;J.jumpTo(0);break;case 5:return J.yield(O.shouldShow_(A),8);case 8:O.showSpinner=J.yieldResult;O.hidden=!1;J.jumpTo(0);break;case 6:return O.showSpinner=!1,J.yield(O.shouldShow_(A),9);case 9:O.hidden=!J.yieldResult,_.qo(J)}})},
shouldShow_:function(A){return A&&A.supportedDatas&&A.supportedDatas.rendererVisibilityConditionData&&A.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(A.supportedDatas.rendererVisibilityConditionData.showIf):A&&A.visibilityCondition&&A.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(A.visibilityCondition.showIf):A&&A.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(A.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(A){switch(A){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(A){switch(A){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var A=_.dQ(this.hostElement,"yt-get-mdx-status");return A.length==1&&A[0].connected},
isLocationPermissionGranted_:function(){var A;return _.u(function(L){return L.nextAddress==1?navigator.permissions?L.yield(navigator.permissions.query({name:"geolocation"}),3):L.jumpTo(2):L.nextAddress!=2?(A=L.yieldResult,L.return(Promise.resolve(A.state==="granted"))):L.return(Promise.resolve(!1))})}}];var PXg=function(A,L){L=L===void 0?{}:L;var O=function(X){var x=document.createElement(A),J;var Y=(J=x.polymerController)!=null?J:x;kpy(x,Y,X,L);return x};
O.debugName=A+" (CoW wrapped)";return O}("yt-icon"),dk6=_.h("web_bypass_polymer_yt_icon")&&_.h("kevlar_use_wil_icons")?_.xa(function(A){var L=A.icon;
var O=A.active;var X=A.className;var x=A.style;var J=A.dataSelected;var Y=A.dataDisabled;var T=A.role;var V=A.themeOverride;var E=A.animateIcon;var n=A.ariaHidden;var t=A.ariaExpanded;var b=A.ariaLabel;var S=A.tabindex;var w=A.id;var l=A.iconFilter;var F=function(){var M=L==null?void 0:L(),H=null,z=void 0;M&&(M=Me3(M),M=izM(M),M.length&&(H=M[1],z=M[0]));return{iconName:H,iconSetName:z}},R=function(){return $3H(F().iconName,O==null?void 0:O(),void 0,void 0,F().iconSetName,_.X5().resolve(_.ht))},y=
function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:l==null?void 0:l()}};
return _.D(_.e,{cond:E,then:function(){return _.D(PXg,{icon:L,active:O,className:X,style:x,dataSelected:J,dataDisabled:Y,role:T,themeOverride:V,ariaHidden:n,ariaExpanded:t,ariaLabel:b,tabindex:S,id:w,iconFilter:l})},
else:function(){return _.D(_.e,{cond:R,then:function(M){return _.D("span",{class:_.qn("ytIconWrapperHost",X),role:T,"aria-label":b,"aria-hidden":n,tabindex:function(){return isNaN(Number(S==null?void 0:S()))?void 0:Number(S==null?void 0:S())},
id:w,style:x},_.D(ajP,{data:M,options:y}))}})}})},"ve"):PXg;var YwN=function(A){var L=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];zkD();_.oZ("ytglobal.ytUtilActivityCallback_",function(){_.YK(A,"yt-user-activity")});
new ON(function(){return L.JSC$18034_onMouseMove});
document.addEventListener("scroll",function(){return L.onScroll});
window.addEventListener("resize",function(){return L.onResize})},uRJ=function(A,L,O){L in A.eventJobIds||(O=_.Q7().addLowPriorityJob(function(){_.XJ();
delete A.eventJobIds[L]},O),A.eventJobIds[L]=O)};
YwN.prototype.onScroll=function(A){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):A.target===document&&uRJ(this,"scroll",200)};
YwN.prototype.onResize=function(){uRJ(this,"resize",200)};
YwN.prototype.JSC$18034_onMouseMove=function(){uRJ(this,"mousemove",100)};
_.dU=function(A){A.scrollEventsToIgnore+=1;A.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){A.scrollEventsToIgnore--},500))};var T4V=function(A){this.element=A;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
T4V.prototype.showFeedbackDialog=function(A,L,O,X){var x=V_V();if(!x)return!1;var J=oss();J.productId=x;L&&(J.flow="submit",J.report={description:L});O&&(V_V()==="59"?J.callback=_.j6(function(){_.lg("userFeedbackEvent",{});O()}):J.callback=_.j6(O));
J.bucket=X||_.ms("GOOGLE_FEEDBACK_BUCKET","Other");Dkn(J);A=e06(this,"GFEEDBACK",A);try{_.WRH(J,A)}catch(Y){return _.IO(Y),!1}return!0};
T4V.prototype.showHelpDialog=function(A,L,O){var X=this,x=V_V();if(!x)return!1;var J={helpCenterPath:"/youtube",productData:e06(this,"GUIDED_HELP",O)};Dkn(J);var Y=oss();Y.context=A||J.productData.context||"default";Y.defaultHelpArticleId=L;Y.enableSendFeedback=!0;(_.WY("gapi.load")||function(T,V){return V()})("client",function(){try{var T=q4J(x,J);
if(_.h("web_always_load_chat_support")&&!X.chatSupportLoaded)try{T.JSC$10997_loadChatSupport(Y),X.chatSupportLoaded=!0}catch(V){}T.startHelp(Y)}catch(V){_.IO(V)}})};
var V_V=function(){var A=_.ms("GOOGLE_FEEDBACK_PRODUCT_ID");A||_.IO(Error("ci"));return A},Dkn=function(A){A&&(A.locale=_.h("kevlar_help_use_locale")?_.ms("INNERTUBE_CONTEXT_HL","en"):_.ms("HTML_LANG","en"))},e06=function(A,L,O){var X=A.productData;
delete X.origin;X.device=_.n9();var x;a:{if(x=document.createElement("canvas")){var J=x.getContext("experimental-webgl",{stencil:!0});if(J){var Y=J.getExtension("WEBGL_debug_renderer_info");if(Y){x=J.getParameter(Y.UNMASKED_RENDERER_WEBGL);break a}}if(J=x.getContext("webgl")){x=J.getParameter(J.RENDERER);break a}}x=null}X.gpu=x;X.isSDC=!!_.ms("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(x=_.ms("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.lW.extend(X,x);_.UPJ(L,X);_.vs_(X);(A=_.YK(A.element,"yt-get-autonav-pause-debug-state"))&&
A.length&&(X.autonav_pause_state=A[0]);A=_.hD();X.browser_resolution=A.width+"\u00d7"+A.height+"@"+(window.devicePixelRatio||1)+"x";O&&_.lW.extend(X,O);return X};
T4V.prototype.resetProductData=function(){this.productData={}};var EyV=function(A){this.feedbackManager=new T4V(A)};
EyV.prototype.showFeedbackDialog=function(A,L,O,X){return this.feedbackManager.showFeedbackDialog(A,L,O,X)};
EyV.prototype.showHelpDialog=function(A,L,O){return this.feedbackManager.showHelpDialog(A,L,O)};var nyg=function(){this.baseUrl="";this.aTag=document.createElement("a")},kHJ=function(A,L,O){O=O===void 0?{}:O;
O.pbj||(O.pbj=1);O=_.KN9(L,O);A.baseUrl&&O&&!_.Us(O)[1]&&!_.vY(O)&&(L=A.baseUrl,PJ(L,"/")&&(L=L.slice(0,-1)),_.su(O,"/")&&(O=O.slice(1)),O=L+"/"+O);yo(A.aTag,C_(O||""));return A.aTag.href};
nyg.prototype.fetchData=function(A){return _.zRe(A)};
nyg.prototype.postData=function(A,L){var O={method:"POST"};if(L){for(var X=_.d(Object.keys(L)),x=X.next();!x.done;x=X.next()){x=x.value;var J=L[x];_.BJ(J)&&(L[x]=JSON.stringify(J))}O.postParams=L}return _.zRe(A,O)};
_.UuL=function(A,L,O,X,x){A=kHJ(A,L,O);if(!A)throw X=Error("di"),Object.assign(X,{params:L}),X;return _.zRe(A,x,X)};
nyg.prototype.requestDataForServiceEndpoint=function(A,L){if(_.q(A,_.QpD))return this.fetchData("/getAccountSwitcherEndpoint");L=L||{};var O=_.q(A,EqL);O?L.se=O.base64EncodedServiceEndpoint:L.sej=JSON.stringify(A);(O=_.Fn())&&_.h("enable_service_ajax_csn")&&(L.csn=O);L.theme=_.C3();_.q(A,F_D)&&_.ms("DELEGATION_CONTEXT")&&(L.delegation_context=JSON.stringify(_.ms("DELEGATION_CONTEXT")));O=null;for(var X in A)if(PJ(X,"Endpoint")||PJ(X,"Command")){O=X;break}if(!O){var x=Error("ei");Object.assign(x,{params:A});
_.iuO(x,"WARNING");return new _.eJ(function(Y,T){T(x)})}X={name:O};
var J;(O=(J=_.q(A,_.nM))==null?void 0:J.signal)&&(X.signal=O);(J=_.$L(window.location.href))&&J.internalcountrycode&&(X.internalcountrycode=J.internalcountrycode);J="/service_ajax";_.h("debug_forward_web_query_parameters")&&(J=_.jkp(J,window.location.search));J=_.kL(J,X);A.clickTrackingParams&&_.oF(J,{itct:A.clickTrackingParams});return this.postData(J,L)};_.t_L=new _.Yx("GFEEDBACK_TOKEN");var bfH;var h0n;var SwL;var qw6;var Dv=function(){var A=_.G.apply(this,arguments)||this;A.compact=!1;return A};
_.g(Dv,_.G);Dv.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Dv.prototype.computeHasIcon_=function(A){return!!A};
Dv.prototype.isSignInIcon_=function(A){return A=="yt-icons:prompted_sign_in"};
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Dv.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Dv.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.JSJ.YtConditionalRendererBehavior),_.Z("design:type",Object)],Dv.prototype,"ytConditionalRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Dv.prototype,"data",void 0);
_.I([_.K({computed:"computeIcon_(data.icon)"}),_.Z("design:type",Object)],Dv.prototype,"icon_",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.Z("design:type",Boolean)],Dv.prototype,"hasIcon_",void 0);_.I([_.K({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.Z("design:type",Boolean)],Dv.prototype,"signInIcon_",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Dv.prototype,"compact",void 0);
_.I([_.yU({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],Dv);
_.m(Dv,"yt-player-error-message-renderer",function(){if(qw6===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;SwL===void 0&&(SwL=document.createElement("template"));var X=SwL;O.call(L,X.content.cloneNode(!0),A.content.firstChild);qw6=A}A=qw6;return A},{mode:2});var gyN;var wNV;var eF=function(){return _.G.apply(this,arguments)||this};
_.g(eF,_.G);eF.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
eF.prototype.computeIcon_=function(A){return A?"yt-icons:"+A.iconType.toLowerCase():"error_outline"};
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],eF.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],eF.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],eF.prototype,"data",void 0);_.I([_.K({computed:"computeIcon_(data.icon)"}),_.Z("design:type",Object)],eF.prototype,"icon_",void 0);_.I([_.yU({is:"yt-player-kav-renderer",disableElementRegistration:!0})],eF);
_.m(eF,"yt-player-kav-renderer",function(){if(wNV===void 0){var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;gyN===void 0&&(gyN=document.createElement("template"));var X=gyN;O.call(L,X.content.cloneNode(!0),A.content.firstChild);wNV=A}A=wNV;return A},{mode:2});var O1s=_.AW(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.Y4(_.xa(function(A){var L=_.av("div"),O=_.d(_.uQ(0,void 0,"yt0wE")),X=O.next().value,x=O.next().value;O=_.d(_.uQ(null,void 0,"CnFp5"));var J=O.next().value,Y=O.next().value;_.GD(function(){XHu(L.value,x,Y);L.value.scrollIntoView()});
O=xme.bind(null,A.data,X);Al("resize",function(){var T=J();if(X()===1&&T!==null){var V;(V=window.grecaptcha)==null||V.reset(T)}});
return _.D("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.D("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.D("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var T,V;return(T=A.data().accessibility)==null?void 0:(V=T.accessibilityData)==null?void 0:V.label}),_.D(_.Xg,{text:O,
className:_.qn("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.D("div",{el:L,class:"ytwPlayerCaptchaViewModelGridItem"})))},"we"),"yt-player-captcha-view-model",{props:{data:_.dl}});var sVJ=!1;_.pN6=_.xa(function(A){var L=A.data;return _.D("yt-interstitial-view-model",{class:"interstitial-view-model-wiz"},_.D(_.e,{cond:function(){return L().icon},
then:function(O){return _.D("div",{class:"interstitial-view-model-wiz__interstitial-icon interstitial-view-model-wiz__flex-item"},_.D(_.XV,{data:O,alt:"",className:"interstitial-view-model-wiz__icon-image",preserveWidth:!0}))}}),_.D(_.e,{cond:function(){return L().title},
then:function(O){return _.D("div",{class:"interstitial-view-model-wiz__interstitial-title interstitial-view-model-wiz__flex-item"},_.D(_.Xg,{text:O}))}}),_.D(_.e,{cond:function(){return L().description},
then:function(O){return _.D("div",{class:"interstitial-view-model-wiz__interstitial-description interstitial-view-model-wiz__flex-item"},_.D(_.Xg,{text:O}))}}),_.D(_.ID,{data:function(){return L().primaryButton}},{buttonViewModel:function(O){return _.D(_.gj,{data:O.data,
className:"interstitial-view-model-wiz__flex-item"})}}),_.D(_.ID,{data:function(){return L().secondaryButton}},{buttonViewModel:function(O){return _.D(_.gj,{data:O.data,
className:"interstitial-view-model-wiz__flex-item"})}}))},"xe");
_.pN6.idomCompat=!0;var if6=_.xa(function(A){var L=A.data;_.Uf();return _.D("yt-player-interstitial-renderer",{class:"player-interstitial-renderer-wiz"},_.D("div",{class:"player-interstitial-renderer-wiz__scrim"},_.D(_.ID,{data:function(){return L().content}},{interstitialViewModel:_.pN6})))},"ye");
if6.idomCompat=!0;_.Y4(if6,"yt-player-interstitial-renderer",{props:{data:_.x5}});var EG=function(){var A=_.G.apply(this,arguments)||this;A.noBackground=!1;A.compact=!1;A.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return A};
_.g(EG,_.G);EG.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"}}}};
EG.prototype.onUpdatePlayerErrorMessageCommand_=function(A){if(_.q(A,GF6)){var L;if(A=(L=_.q(A,GF6))==null?void 0:L.newPlayerErrorMessageRenderer)this.data=A}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],EG.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],EG.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],EG.prototype,"ytActionHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],EG.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],EG.prototype,"status",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],EG.prototype,"noBackground",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],EG.prototype,"compact",void 0);_.I([_.yU({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],EG);
var N4L=_.DX()(EG,"yt-playability-error-supported-renderers",function(){if(h0n===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;bfH===void 0&&(bfH=document.createElement("template"));var X=bfH;O.call(L,X.content.cloneNode(!0),A.content.firstChild);h0n=A}A=h0n;return A},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var JK_=void 0,dmp=void 0;var Tby=new J06;var rSL=function(A){this.store=A;this.oXc=new _.Y46},yvM=function(A,L,O){var X,x;
if(!(x=((X=L.playabilityStatus)==null?void 0:X.status)!=="OK")){A=A.store;var J;x=L.offlineState&&((J=L.videoDetails)==null?0:J.videoId)?_.h("enable_pl_r_c_cd")?ot9(A.getState().entities,L.videoDetails.videoId):!!Nm9(A.getState().entities,L.videoDetails.videoId):!1}if(x)return!0;x=nAr(L);if(x===1){if(_.h("ab_v_vid_sig")){var Y,T=(Y=L.videoDetails)==null?void 0:Y.videoId;if(!T||!O||T!==O){var V;L=new _.pe("282054944_vid",{czJ:O,bGs:(V=L.videoDetails)==null?void 0:V.videoId});_.C7(L)}}return!0}Qfe=
0;var E,n;V=(T=L.auxiliaryUi)==null?void 0:(E=T.messageRenderers)==null?void 0:(n=E.bkaEnforcementMessageViewModel)==null?void 0:n.displayType;if(x!==3&&(V==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||V==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;V={reason:_.Xl(_.b3("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.h("ks_something_wrong_learn_more")?KIe("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.Xl(_.b3("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:_.Xl("282054944")};KjN(L,{playerErrorMessageRenderer:V});return!1},Zir=function(A,L){if(oru(L)){_.hi(1,!0);
var O=(O=oru(L))&&_.PzM()?O:void 0;O?(KjN(L,{enforcementMessageViewModel:O}),A.oXc.increment("IN_PLAYER"),_.hi(5)):(A.oXc.increment("SKIP_DISPLAY"),_.hi(2))}},KjN=function(A,L){A.playabilityStatus=Object.assign({},A.playabilityStatus,{status:"ERROR",
errorScreen:L});A.videoDetails=void 0};
rSL.prototype.handleResponse=function(A,L){if(A.playabilityStatus){var O,X,x,J=(L==null?void 0:(O=L.innerTubeRequest)==null?void 0:O.videoId)||(L==null?void 0:(X=L.innerTubeRequest)==null?void 0:(x=X.playerRequest)==null?void 0:x.videoId);yvM(this,A,J)&&Zir(this,A)}};
rSL[dx]=[V7];var fA9=new _.Yx("ADBLOCK_DETECTION_SERVICE_TOKEN");var Lq=function(A){this.e6n=A};
Lq.prototype.bindInnertubeChallengeFetcher=function(A){this.e6n.bicf(A)};
Lq.prototype.registerChallengeFetchedCallback=function(A){this.e6n.bcr(A)};
Lq.prototype.getLatestChallengeResponse=function(){return this.e6n.blc()};var GBj;GBj=_.AW(["https://static.doubleclick.net/instream/ad_status.js"]);_.lyV=_.JD(GBj);var R0N;_.nF=function(A,L,O){var X=this;this.network=A;this.options=L;this.networkStatusManager=O;this.sz=null;if(L.useBotguardEverywhere){var x=new _.EP;this.sz=x.promise;_.Ou.ytAtRC&&_.GP(_.c1,function(){var J,Y;return _.u(function(T){if(T.nextAddress==1){if(!_.Ou.ytAtRC)return T.return();J=cSV(null);return T.yield(X.lM(J),2)}Y=T.yieldResult;_.Ou.ytAtRC&&_.Ou.ytAtRC(JSON.stringify(Y));_.qo(T)})});
qy_().then(function(J){var Y,T,V,E;return _.u(function(n){if(n.nextAddress==1)return J.bindInnertubeChallengeFetcher(function(t){return X.lM(cSV(t))}),n.yield(GDO(),2);
Y=n.yieldResult;T=J.getLatestChallengeResponse();V=T.challenge;if(!V)throw Error("fi");E={challenge:V,zu:AR(V),vm:Y,bgChallenge:new vC};x.resolve(E);J.registerChallengeFetchedCallback(function(t){t=t.challenge;if(!t)throw Error("gi");t={challenge:t,zu:AR(t),vm:Y,bgChallenge:new vC};X.sz=Promise.resolve(t)});
_.qo(n)})})}else L.preload&&CXL(this,new Promise(function(J){_.p7(_.c1,function(){J(Fju(X))},0)}))};
R0N=function(A){var L={preload:!0,useBotguardEverywhere:!0},O=!1;if(typeof L==="boolean")var X={preload:L};else typeof L==="undefined"?X={preload:!0}:(X=L,O=!!L.f7J);L=O?void 0:new _.H1;_.nF.instance=new _.nF(A,X,L);return _.nF.instance};
_.nF.prototype.tpi=function(){var A=this;return _.u(function(L){return L.nextAddress==1?L.yield(Promise.race([A.sz,null]),2):L.return(!!L.yieldResult)})};
_.nF.prototype.pDY=function(A,L,O){var X=this,x,J,Y;return _.u(function(T){X.sz===null&&CXL(X,Fju(X));x=!1;J={};Y=function(){var V,E,n;return _.u(function(t){switch(t.nextAddress){case 1:return t.yield(X.sz,2);case 2:V=t.yieldResult;J.challenge=V.challenge;if(!V.vm){"c1a"in V.zu&&(J.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");t.jumpTo(3);break}E=Object.assign({},{c:V.challenge,e:A},L);_.e4(t,4);x=!0;return t.yield(V.vm.snapshot({eN:E}),6);case 6:(n=t.yieldResult)?J.webResponse=n:J.error="ATTESTATION_ERROR_VM_NO_RESPONSE";
_.zA(t,3);break;case 4:_.S4(t),J.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(A==="ENGAGEMENT_TYPE_PLAYBACK"){var b=V.zu,S={};if(b.c6a){var w=Number(_.ms("DCLKSTAT",0));S.reportingStatus=String(Number(b.c)^(isNaN(w)?0:w))}b.c6b&&(S.broadSpectrumDetectionResult=String(Number(b.c)^Number(_.ms("CATSTAT",0))));J.adblockReporting=S}return t.return(J)}})};
return T.return(Promise.race([Y(),QBJ(O,function(){var V=Object.assign({},J);x&&(V.error="ATTESTATION_ERROR_VM_TIMEOUT");return V})]))})};
var cSV=function(A){var L={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};A&&(L.interpreterHash=A);return L},Fju=function(A,L){L=L===void 0?0:L;
var O,X,x,J,Y,T,V,E,n,t,b,S;return _.u(function(w){switch(w.nextAddress){case 1:O=cSV(uq6().nhS);if(_.h("att_fet_ks"))return _.e4(w,7),w.yield(A.lM(O),9);_.e4(w,4);return w.yield(mkL(A,O),6);case 6:Y=w.yieldResult;x=Y.ylM;J=Y.rlk;X=Y;_.zA(w,3);break;case 4:return _.S4(w),_.Rv(Error("hi`"+L)),fy3(A,864E5),w.return({challenge:"",zu:{},vm:void 0,bgChallenge:void 0});case 9:X=w.yieldResult;if(!X)throw Error("ii");if(!X.challenge)throw Error("ji");x=X.challenge;J=AR(x);if("c1a"in J&&(!X.bgChallenge||!X.bgChallenge.program))throw Error("ki");
_.zA(w,3);break;case 7:T=_.S4(w);_.Rv(T);L++;if(L>=5)return _.Rv(Error("hi`"+L)),fy3(A,864E5),w.return({challenge:"",zu:{},vm:void 0,bgChallenge:void 0});V=1E3*Math.pow(2,L-1)+Math.random()*1E3;return w.return(new Promise(function(l){_.p7(_.c1,function(){l(Fju(A,L))},V)}));
case 3:E=Syu(J);fy3(A,E*1E3);n=void 0;if(!("c1a"in J&&X.bgChallenge)){w.jumpTo(10);break}t=hau(X.bgChallenge);_.e4(w,11);return w.yield(VVL(uq6(),t),13);case 13:_.zA(w,12);break;case 11:return b=_.S4(w),_.Rv(b),w.return({challenge:x,zu:J,vm:n,bgChallenge:t});case 12:return _.e4(w,14),n=new _.Wb({challenge:t,gwq:{kn:"aGIf"}}),w.yield(n.mqw,16);case 16:_.zA(w,10);break;case 14:S=_.S4(w),_.Rv(S),n=void 0;case 10:return w.return({challenge:x,zu:J,vm:n,bgChallenge:t})}})};
_.nF.prototype.lM=function(A){var L=this,O;return _.u(function(X){O=L.networkStatusManager;if(!O||O.isNetworkAvailable())return X.return(L.network.lM(A));_.mf("att_pna",void 0,"attestation_challenge_fetch");return X.return(new Promise(function(x){O.listenOnce("publicytnetworkstatus-online",function(){L.network.lM(A).then(x)})}))})};
var Iyg=function(A){if(!A)throw Error("ii");if(!A.challenge)throw Error("ji");var L=A.challenge,O=AR(L);if("c1a"in O&&(!A.bgChallenge||!A.bgChallenge.program))throw Error("ki");return Object.assign({},A,{ylM:L,rlk:O})},mkL=function(A,L){var O,X,x,J,Y;
return _.u(function(T){switch(T.nextAddress){case 1:O=void 0,X=0,x={};case 2:if(!(X<5)){T.jumpTo(4);break}if(!(X>0)){T.jumpTo(5);break}x.s7z=1E3*Math.pow(2,X-1)+Math.random()*1E3;return T.yield(new Promise(function(V){return function(E){_.p7(_.c1,function(){E(void 0)},V.s7z)}}(x)),5);
case 5:return _.e4(T,7),T.yield(A.lM(L),9);case 9:return J=T.yieldResult,T.return(Iyg(J));case 7:O=Y=_.S4(T),Y instanceof Error&&_.Rv(Y);case 8:X++;x={s7z:void 0};T.jumpTo(2);break;case 4:throw O;}})},CXL=function(A,L){A.sz=L},ySL=function(A){var L,O,X;
return _.u(function(x){if(x.nextAddress==1)return x.yield(Promise.race([A.sz,null]),2);L=x.yieldResult;var J=Fju(A);A.sz=J;(O=L)==null||(X=O.vm)==null||X.dispose();_.qo(x)})},fy3=function(A,L){var O=Date.now()+L,X=function(){var x;
return _.u(function(J){x=O-Date.now();return x<1E3?J.yield(ySL(A),0):(_.p7(_.c1,X,Math.min(x,6E4)),J.jumpTo(0))})};
X()},QBJ=function(A,L){return new Promise(function(O){_.p7(_.c1,function(){O(L())},A)})};var Zfg=function(){};
Zfg.prototype.processContext=function(A){var L=_.nF.instance;if(!L)return _.XG();var O=rKu(A);return O?new OU(L.pDY(O,pHu(A),500).then(function(X){var x;(A==null?0:(x=A.innerTubeRequest)==null?0:x.context)||(A.innerTubeRequest.context={});x=A.innerTubeRequest.context;x.request||(x.request={});x.request.attestationResponseData=X})):_.XG()};var jBc=function(A){this.innertubeTransportService=A};
jBc.prototype.lM=function(A){_.mf("att_fsr",void 0,"attestation_challenge_fetch");return _.MB(this.innertubeTransportService,A,_.L3(_.l1V)).then(function(L){_.mf("att_frr",void 0,"attestation_challenge_fetch");return L})};_.Wjn=function(A){this.innertubeTransportService=A};var HfH=new _.Yx("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var z0N=function(){},M_g=function(A,L,O,X,x){var J=_.ms("YPC_MB_URL");
_.uwP(J).then(function(){B43(J,A,L,O,X,x)})},B43=function(A,L,O,X,x,J){try{var Y=payments.business.integration,T=payments.business.integration.Style.create().withMaterialDesignStyle(),V=Y.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.h("enable_window_constrained_buy_flow_dialog")&&(V=V.usingPopupStyle("windowConstrained"));J&&(V=V.usingCloseCallback(J));var E=O?O:_.ms("YPC_GB_LANGUAGE"),n=_.ms("SESSION_INDEX");Y.bootstrap.fromPaymentsUrl(A);Y.bootstrap.asMashupMode(V).usingGaiaIndex(n).usingLocale(E).usingStyle(T).usingDefaultActivityStatusChangeHandler().inStandaloneContext(Y.standaloneContextAuthId.forGaia()).purchaseManager(L,function(t){X&&X(t)}).load(void 0,x)}catch(t){throw x&&x(t),_.C7(t),t;
}};var $kj=new _.Yx("PURCHASE_MANAGER_TOKEN");var ayn=function(){var A=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return A.videos},
getContinuationsPresent:function(){return A.continuationsPresent},
setVideos:function(L){A.videos=L},
getRecommendedVideos:function(){return A.recommendedVideos},
setRecommendedVideos:function(L){A.recommendedVideos=L}}};
ayn.prototype.addVideos=function(A){A&&(this.videos=A.filter(function(L){return!!_.G5p(L)}).map(function(L){var O=_.G5p(L);
a:{var X;if(L.playlistVideoRenderer&&((X=L.playlistVideoRenderer)==null?0:X.voteSortTiebreaker))var x=L.playlistVideoRenderer.voteSortTiebreaker;else{if(_.q(L,X2)){var J;if(X=(x=_.q(L,X2))==null?void 0:(J=x.playlistItemData)==null?void 0:J.voteSortTiebreaker){x=X;break a}}x=""}}return{itemId:O,videoId:_.CzJ(L),voteCount:_.FaP(L),voteSortTiebreaker:x}}),this.continuationsPresent=!!_.q(A[A.length-1],_.JR))};
var kBL=function(A,L){return A.videos.findIndex(function(O){return O.itemId===L})},UkJ=function(A,L){return A.recommendedVideos.findIndex(function(O){return O.itemId===L})},vy7=function(A){A={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:A}}}}};_.X5().resolve(_.x$).resolveCommand(A)};var oyL=function(){ayn.apply(this,arguments)};
_.g(oyL,ayn);
var Qq7=function(A,L,O,X){if(!A.parentElem)throw Error("pi");var x=kBL(A,L);x===-1&&(x=UkJ(A,L),x=x!==-1?x+A.videos.length:-1);if(x===-1)throw Error("qi");var J=x>=A.videos.length?A.recommendedVideos[x-A.videos.length]:A.videos[x];J.voteCount=O;J.voteSortTiebreaker=Date.now().toString();x>=A.videos.length?A.recommendedVideos.splice(x-A.videos.length,1):A.videos.splice(x,1);var Y=A.videos;for(var T=0,V=Y.length-1;T<=V;){var E=Math.floor((T+V)/2);if(Y[E].voteCount<J.voteCount)V=E-1;else if(Y[E].voteCount>J.voteCount)T=
E+1;else{a:{var n=J.voteSortTiebreaker;var t=Y[E].voteSortTiebreaker;if(n.length!==t.length)n=n.length>t.length;else{for(var b=0;b<n.length;b++){var S=n.charCodeAt(b),w=t.charCodeAt(b);if(S>w){n=!0;break a}if(S<w)break}n=!1}}n?V=E-1:T=E+1}}Y=T;if(Y===-1)throw Error("ri");A.videos.splice(Y,0,J);x!==Y&&AsZ(A,x,Y,L,O,X)},AsZ=function(A,L,O,X,x,J){var Y,T=(Y=A.parentElem)==null?void 0:Y.children,V=Math.min(L,O),E=Math.max(L,O);
if(T)for(Y=V;Y<=E;Y++)T[Y].style.viewTransitionName="item-"+String(Y);document.startViewTransition(function(){if(A.parentElem){var n=A.parentElem.children;if(!(!n||L<0||L>=n.length||O<0||O>=n.length)){var t=n[L];if(t){t.remove();A.showRefreshPill=O>=A.videos.length-1&&A.continuationsPresent;if(!A.showRefreshPill){n=n[O]||null;var b;(b=A.parentElem)==null||b.insertBefore(t,n)}_.P4(A.parentElem,"yt-update-video-data-voting-animation",{toIdx:O,itemId:X,newVoteCount:x,voteStatus:J,hideItem:A.showRefreshPill})}}}}).finished.then(function(){if(T)for(var n=
V;n<=E;n++)T[n].style.viewTransitionName="";
if(A.showRefreshPill)vy7(_.b3("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var t;if(t=n=(t=A.parentElem)==null?void 0:t.children[O])t=n.getBoundingClientRect(),n=t.bottom,t=!(t.top>=0&&n<=A.clientHeight);t&&(t=_.hz(L>O?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(L-O)),vy7(t))}})};var XJk=function(A,L){var O=this;A?this.innertubeTransportServicePromise=Promise.resolve(A):L&&(this.innertubeTransportServicePromise=L(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new LF(3E3,function(X){return LMz(O,X)},0);
this.validateMiniAppVideoIdRateLimiter=new LF(3E3,function(X){return O9M(O,X)},1)},Rrc=function(A,L){A.JSC$18146_miniAppId=L;
A.reportMiniAppValueRateLimiter=new LF(3E3,function(O){return LMz(A,O)},0);
A.validateMiniAppVideoIdRateLimiter=new LF(3E3,function(O){return O9M(A,O)},1)},mCN=function(A,L){var O;
return _.u(function(X){if(X.nextAddress==1)return X.yield(A.reportMiniAppValueRateLimiter.call(L),2);O=X.yieldResult;return X.return([O,L])})},LMz=function(A,L){var O,X,x,J,Y,T,V;
return _.u(function(E){switch(E.nextAddress){case 1:return E.yield(A.innertubeTransportServicePromise,2);case 2:return O=E.yieldResult,X=_.L3(mqV),x=Date.now(),J={externalPostId:A.JSC$18146_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(x/1E3),nanos:Math.round(x%1E3*1E6)},intValue:""+L}},_.e4(E,3),E.yield(_.MB(O,J,X),5);case 5:Y=E.yieldResult;_.zA(E,4);break;case 3:throw T=_.S4(E),T;case 4:if(Y){if("error"in Y&&Y.error)throw Y.error;if(Y.errorMetadata)throw Error("si`"+
Y.errorMetadata.status);if(V=Y.userStatResult)return E.return(V);throw Error("ti");}throw Error("ui");}})},IOg=function(A){var L,O,X,x,J;
_.u(function(Y){switch(Y.nextAddress){case 1:return Y.yield(A.innertubeTransportServicePromise,2);case 2:return L=Y.yieldResult,O=_.L3(mqV),X={externalPostId:A.JSC$18146_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.e4(Y,3),Y.yield(_.MB(L,X,O),5);case 5:x=Y.yieldResult;_.zA(Y,4);break;case 3:throw J=_.S4(Y),J;case 4:if(x==null)throw Error("ui");if("error"in x&&x.error)throw x.error;if(x.errorMetadata)throw Error("si`"+x.errorMetadata.status);_.qo(Y)}})};
XJk.prototype.flush=function(){var A=this;return _.u(function(L){return L.nextAddress==1?L.yield(A.reportMiniAppValueRateLimiter.flush(),2):L.yield(A.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var fOV=function(A,L){return _.u(function(O){return O.nextAddress==1?O.yield(A.validateMiniAppVideoIdRateLimiter.call(L),2):O.return(O.yieldResult)})},O9M=function(A,L){var O,X,x,J,Y,T;
return _.u(function(V){switch(V.nextAddress){case 1:return V.yield(A.innertubeTransportServicePromise,2);case 2:return O=V.yieldResult,X=_.L3(K9J),x={videoId:L},_.e4(V,3),V.yield(_.MB(O,x,X),5);case 5:J=V.yieldResult;_.zA(V,4);break;case 3:throw Y=_.S4(V),Y;case 4:if(J){if("error"in J&&J.error)throw J.error;if(J.errorMetadata)throw Error("si`"+J.errorMetadata.status);if(T=J.playabilityStatus)return V.return(T.status);throw Error("vi");}throw Error("ui");}})};
XJk[dx]=[_.Ot(_.Ia),_.Ot(JZJ)];var xy7=function(){this.clientData=new Map};
xy7.prototype.getData=function(A){return this.clientData.get(A)};var sdk=function(A){this.store=A};
sdk.prototype.handleResponse=function(A){(A=_.q(A.frameworkUpdates,Ok))&&_.hY(A,this.store)};
sdk[dx]=[_.al];var JsM=new _.Yx("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var Prk={account_advanced:[[0,1,155]],account_box:[[0,1,24],[1,1,24]],account_notifications:[[0,1,155]],account_playback:[[0,1,155]],account_privacy:[[0,1,155]],account_settings:[[0,1,155]],account_sharing:[[0,1,155]],admin_panel_settings:[[1,1,24]],ameba:[[0,1,60]],"arrow-back":[[1,1,24,!0]],"arrow-forward":[[1,1,24,!0]],arrow_drop_down:[[1,1,24]],arrow_drop_up:[[1,1,24]],artwork:[[0,1,140]],bebo:[[0,1,60]],blogger:[[0,1,60]],chrome_icon:[[0,1,192]],collections:[[0,1,24]],countdown_to_close:[[0,
1,100]],countdown_to_close_digit:[[0,1,100]],creation_post:[[0,1,24],[1,1,24]],creator_studio_red_logo:[[0,2,24]],cyworld:[[0,1,60]],dark_theme:[[0,1,24],[1,1,24]],digg:[[0,1,60]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0,1,36]],face_filled_very_happy:[[0,
1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,1,300]],hi5:[[0,
1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_eighty_updated:[[0,1,24]],offline_downloading_forty:[[0,
1,24]],offline_downloading_forty_updated:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_sixty_updated:[[0,1,24]],offline_downloading_spinner:[[0,1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_twenty_updated:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_downloading_zero_updated:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],
play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,2,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,1,100]],screen_light:[[1,1,24]],search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,
1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],video_call:[[0,1,24]],view_module:[[0,1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,
1,192]],youtube_community_post:[[0,1,60]],youtube_community_repost:[[0,1,60]],youtube_kids_round:[[0,2,24]],youtube_logo:[[0,1,24]],youtube_music:[[0,2,24]],youtube_round:[[0,2,24]],youtube_shorts_brand_24:[[0,2,24]],youtube_shorts_fill_no_triangle_red_16:[[0,1,16]],"yt-logo-red-updated":[[0,3,24]],"yt-logo-updated":[[0,3,24]]};var dyQ=new _.Yx("ICON_SET_TOKEN"),YuM=new _.Yx("ICON_URL_PROVIDER_TOKEN"),upX=new _.Yx("PREFETCH_ICONS_TOKEN"),TuS=new _.Yx("ICON_MAP_FN_TOKEN");var to={},VDS=(to.ACCESS_TIME="clock",to.ACCOUNT_BOX="person_account",to.ACCOUNT_BOX_CAIRO="person_account_cairo",to.ACCOUNT_CIRCLE="person_circle",to.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",to.ACCOUNT_LINKED="account_link_success",to.ACCOUNT_UNLINKED="account_link",to.ADD_FRIEND="people",to.ADD_MODERATOR="shield_add",to.ADD_TO_LIBRARY="bookmark",to.ADD_TO_PLAYLIST="add",to.ADD_TO_QUEUE_TAIL="list_queue",to.ADD_TO_REMOTE_QUEUE="list_music",to.ADD_TO_WATCH_LATER="clock",to.ADD_VIDEO_LINK="film_strip_add",
to.ALERT_WARN_RED="alert_triangle",to.ARROW_BACK="arrow_left",to.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",to.ARROW_DROP_DOWN="chevron_down",to.ARROW_DROP_UP="chevron_up",to.ARROW_FORWARD="arrow_right",to.AUDIOTRACK="audio",to.AUTO_AWESOME="sparkle",to.AVATAR_ANONYMOUS="person_circle",to.AVATAR_LOGGED_OUT="person_circle",to.BACK="arrow_left",to.BAR_CHART="bar_graph",to.BLOCK="slash_circle_left",to.BLOCK_USER="slash_circle_left",to.BOOKMARK_BORDER="bookmark",to.BREAKING_NEWS_ALT_1="article_alert",
to.BROADCAST_CAIRO="podcast_cairo",to.BUG_REPORT="bug",to.CAMERA_ALT="camera",to.CAMPAIGN="megaphone",to.CANCEL="x_circle",to.CAPTIONS="closed_caption",to.CAST_OUTLINE="chromecast",to.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",to.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",to.CHAT="message_bubble_left",to.CHAT_BUBBLE="message_bubble_empty",to.CHAT_SPARK="spark_message_bubble_left",to.CHECK_BOX_OUTLINE_BLANK="box_empty",to.CHECK_CIRCLE_OUTLINE="check_circle",to.CHECK_CIRCLE_THICK="check_circle",to.CLARIFY=
"article_clarify",to.CLOSED_CAPTION_SELECTED="closed_caption",to.CLOSE="x_mark",to.CLOUD_UPLOAD="cloud_arrow_up",to.COLLAPSE="chevron_up",to.COLLAPSE_CAIRO="chevron_up_cairo",to.COLLECTION="layers",to.COLOR_LENS="palette",to.COMMENT="message_bubble_right",to.CONSENT_SHIELD="person_shield",to.CONTENT_CUT="scissors",to.CONTENT_CUT_CAIRO="scissors_cairo",to.COURSE=_.h("web_enable_course_icon_update")?"creator_academy":"lightbulb",to.COURSE_CAIRO=_.h("web_enable_course_icon_update")?"creator_academy_cairo":
"lightbulb_cairo",to.CREATION_LIVE="radar_live",to.CREATION_POST="box_pencil",to.CREATION_UPLOAD="my_videos",to.CREATION_UPLOAD_RED="upload",to.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",to.CREATOR_STUDIO="youtube_studio",to.DASHBOARD="grid_asymmetrical",to.DELETE="trash_can",to.DELETE_SWEEP="trash_can",to.DESKTOP="laptop",to.DISLIKE="thumb_down",to.DISLIKE_SELECTED="thumb_down",to.DISMISSAL="x_mark",to.DISMISS_QUEUE="list_remove",to.DONE_ALL="check_double",to.DOWN_ARROW="arrow_down",to.DO_NOT_DISTURB=
"slash_circle_left",to.DRAFT="paper_corner_folded",to.DRAG_HANDLE="bars_2",to.EDIT="pencil",to.EMOJI="face_very_happy",to.EMOJI_FLAGS="flag",to.EMOJI_OBJECTS="lightbulb",to.EMOJI_PEOPLE="face_very_happy",to.EMOJI_RECENT="clock",to.EMPTY_HEART="heart",to.EMPTY_LIKE="thumb_up",to.ERROR_BLACK="alert_circle",to.ERROR_OUTLINE="alert_circle",to.EXIT_APP="arrow_in",to.EXIT_TO_APP="arrow_in",to.EXPAND="chevron_down",to.EXPAND_ALL="chevron_expand",to.EXPAND_CAIRO="chevron_down_cairo",to.EXPAND_LESS="chevron_up",
to.EXPAND_MORE="chevron_down",to.EXPLORE="compass",to.EXPLORE_DESTINATION="compass",to.EXTERNAL_LINK="open_new",to.FAB_UPLOAD="upload",to.FACE_HAPPY_OUTLINE="face_happy",to.FACT_CHECK="article_check",to.FASHION_LOGO="fashion",to.FASHION_LOGO_CAIRO="fashion_cairo",to.FAVORITE="heart",to.FEEDBACK="message_bubble_alert",to.FEEDBACK_CAIRO="message_bubble_alert_cairo",to.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",to.FILL_ARROW_SOLID_UP_16="arrow_solid_up",to.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",
to.FILTER="menu_filter",to.FIRST_PAGE="chevron_first",to.FLAG="flag",to.FULL_HEART="heart",to.GAME_CONSOLE_DPAD="game_console_dpad",to.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",to.GAMING_LOGO="gaming",to.GAMING_LOGO_CAIRO="gaming_cairo",to.GO_TO_PAGE="arrow_right",to.GROUPS="people_group",to.HAPPY="face_happy",to.HEALTH_AND_SAFETY="shield_plus",to.HELP="question_circle",to.HELP_CAIRO="question_circle_cairo",to.HELP_OUTLINE="question_circle",to.HIDE="slash_circle_left",to.IMAGE="image",
to.INFINITY_ICON="infinity",to.INFO="info_circle",to.INFO_OUTLINE="info_circle",to.INSERT_CHART="bar_graph_box_vertical",to.INSERT_CHART_OUTLINED="bar_graph_box_vertical",to.INSERT_PHOTO="image",to.KEEP="pin",to.KEEP_OFF="pin_off",to.KEYBOARD="keyboard",to.KEYBOARD_ARROW_DOWN="chevron_down",to.KEYBOARD_ARROW_UP="chevron_up",to.KIDS_BLOCK="slash_circle_left",to.LANGUAGE="globe",to.LAST_PAGE="chevron_last",to.LAUNCH="open_new",to.LEARNING="lightbulb",to.LEARNING_CAIRO="lightbulb_cairo",to.LIBRARY_ADD=
fas("library_add"),to.LIBRARY_OUTLINE="library",to.LIBRARY_REMOVE=fas(),to.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",to.LIKES_PLAYLIST="thumb_up",to.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",to.LIKE="thumb_up",to.LIKE_SELECTED="thumb_up",to.LIVE="radar_live",to.LIVE_CAIRO="radar_live_cairo",to.LIVE_UNLISTED="link",to.LOCATION_ON="location_point",to.LOCATION_PIN="location_point",to.LOOP="arrow_repeat",to.LOOP_ACTIVE="arrow_repeat",to.LOOP_ONE="arrow_repeat_1",to.LOOP_ONE_ACTIVE="arrow_repeat_1",to.MEH=
"face_meh",to.MEMBERS_ONLY_MODE_OFF="message_bubble_left",to.MESSAGE="message_bubble_left",to.MICROPHONE_ON="mic",to.MIX="youtube_mix",to.MONETIZATION_ON="dollar_sign_circle",to.MONEY_FILL="dollar_sign_container",to.MONEY_FILL_JPY="yen_sign_container",to.MONEY_HEART="dollar_sign_heart",to.MORE_HORIZ="overflow_horizontal",to.MORE_VERT="overflow_vertical",to.MUSIC="audio",to.MUSIC_CAIRO="audio_cairo",to.MUSIC_NOTE_SYMBOL="music",to.MUSIC_SHUFFLE="arrow_shuffle",to.MY_CHANNEL="person_circle",to.MY_LOCATION=
"location_point",to.NEWS_STORY="news",to.NEXT="chevron_right",to.NOTIFICATIONS="bell",to.NOTIFICATIONS_ACTIVE="bell_on",to.NOTIFICATIONS_CAIRO="bell_cairo",to.NOTIFICATIONS_DONE_CHECKMARK="check",to.NOTIFICATIONS_INBOX="bell",to.NOTIFICATIONS_NONE="bell",to.NOTIFICATIONS_OFF="bell_off",to.NOT_INTERESTED="slash_circle_left",to.OFFICIAL_ARTIST_BADGE="audio",to.OFFLINE_CLOUD="cloud_off",to.OFFLINE_DOWNLOAD="download",to.OFFLINE_DOWNLOAD_CAIRO="download_cairo",to.OFFLINE_PAUSE="pause",to.OPEN_IN_NEW=
"open_new",to.OUTLINE_ADJUST="adjust",to.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",to.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",to.OUTLINE_BAG="bag",to.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",to.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",to.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",to.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",to.PAID="dollar_sign",to.PAUSE_OUTLINED="pause",to.PAYMENT="credit_card",to.PERSON_RADAR_FILLED="person_radar",to.PHONE_DOWNLOAD="mobile_download",
to.PLAYABLES_LOGO="tic_tac_toe",to.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",to.PLAYLISTS="list_play_arrow",to.PLAYLISTS_CAIRO="list_play_arrow_cairo",to.PLAYLIST_ADD=fas("list_add"),to.PLAYLIST_ADD_CHECK=fas("list_check"),to.PLAYLIST_PLAY="list_play_arrow",to.PLAY_ALL="play_arrow",to.PLAY_CIRCLE="play_arrow_circle",to.PLAY_OUTLINED="play_arrow_circle",to.PRIVACY_INFO="shield",to.PRIVACY_PRIVATE="lock",to.PRIVACY_PUBLIC="earth",to.PRIVACY_UNLISTED="link",to.PROMOTE="megaphone",to.PURCHASES="price_tag",
to.PURCHASE_SUPER_CHAT="super_chat",to.PURCHASE_SUPER_STICKER="super_sticker",to.QUESTION_ANSWER="message_bubble_question",to.QUEUE_PLAY_LAST="list_queue_last",to.QUEUE_PLAY_NEXT="list_play_arrow",to.REMIX_FILLED="youtube_shorts_remix",to.REMOVE="bar_circle",to.REMOVE_CIRCLE="bar_circle",to.REMOVE_CIRCLE_OUTLINE="bar_circle",to.REMOVE_DONE="check_double_off",to.REMOVE_FROM_HISTORY="bar_circle",to.REMOVE_FROM_PLAYLIST="bar_circle",to.REMOVE_MODERATOR="shield_off",to.REPLAY="arrow_circle",to.REPLAY_10=
"skip_back_10",to.REPORT_PROBLEM="alert_triangle",to.SAD="face_sad",to.SAVE_PLAYLIST="bookmark",to.SCHEDULE="clock",to.SCHOOL="creator_academy",to.SCREEN_FULLSCREEN="screen_full",to.SEARCH_HISTORY="arrow_time",to.SELL="price_tag",to.SETTINGS="gear",to.SETTINGS_CAIRO="gear_cairo",to.SETTINGS_LIGHT="gear",to.SETTINGS_MATERIAL="gear",to.SHARE_ARROW="share",to.SHIELD_WITH_AVATAR="person_shield",to.SHOPPING_BAG="bag",to.SHOPPING_BAG_CAIRO="bag_cairo",to.SHOPPING_CART="cart",to.SHORTS_COMMENT="youtube_shorts_message_bubble_right",
to.SHORTS_DISLIKE="youtube_shorts_thumb_down",to.SHORTS_LIKE="youtube_shorts_thumb_up",to.SHORTS_SHARE="youtube_shorts_share",to.SHUFFLE="arrow_shuffle",to.SLOW_MODE_OFF="message_bubble_left",to.SOCIAL="people",to.SORT="menu_sort",to.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",to.SPEED_1X="1x",to.SPEED_1_POINT_2X="1_point_2x",to.SPEED_1_POINT_5X="1_point_5x",to.SPEED_1_POINT_8X="1_point_8x",to.SPEED_2X="2x",to.SPEED_POINT_2X="point_2x",to.SPEED_POINT_8X="point_8x",to.SPONSORSHIP_STAR=_.h("web_sponsorship_star_icon_killswitch")?
"memberships":"star_circle",to.STAFF_PICK="spotlight",to.START_DVR="add",to.STAR_BORDER="star",to.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",to.STICKER_EMOTICON="face_happy",to.STOP_DVR="stop",to.SUBSCRIBE="youtube_logo_icon",to.SUBSCRIBE_PLUS="add_cairo",to.SUBSCRIPTION_MANAGER="gear",to.SUPERVISOR_ACCOUNT="people",to.SUPER_CHAT_FOR_GOOD="hands_heart",to.SWAP_HORIZ="arrow_swap_horizontal",to.SWITCH_ACCOUNTS="person_account",to.TAB_ACCOUNT="person",to.TAB_ACTIVITY="bell",to.TAB_BOOKMARK="bookmark",
to.TAB_EXPLORE="compass",to.TAB_HOME="home",to.TAB_HOME_CAIRO="home_cairo",to.TAB_INBOX="mail",to.TAB_LIKED="thumb_up",to.TAB_MUSIC_PREMIUM="youtube_music",to.TAB_SHORTS="youtube_shorts",to.TAB_SHORTS_CAIRO="youtube_shorts_cairo",to.TAB_SUBSCRIPTIONS="subscriptions",to.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",to.TAB_TRENDING="fire",to.TIMER="stopwatch",to.TRAILER="youtube_originals",to.TRENDING="fire",to.TRENDING_CAIRO="fire_cairo",to.TRENDING_UP="rating_up",to.TROPHY="trophy",to.TROPHY_CELEBRATIONS=
"fireworks",to.TUNE="adjust",to.UNBLOCK_USER="bar_circle",to.UNLIMITED="youtube_logo_icon",to.UNPLUGGED_LIVE_GUIDE="radar_live",to.UNPLUGGED_SPORTS="eye_off",to.UPLOADS="library",to.UP_ARROW="arrow_up",to.VERTICAL_ALIGN_BOTTOM="download",to.VERY_HAPPY="face_very_happy",to.VERY_SAD="face_very_sad",to.VIDEOGAME_ASSET="gaming",to.VIDEOS="play_arrow_circle",to.VIDEO_CALL="video_camera_add",to.VIDEO_LIBRARY_WHITE="library",to.VIDEO_YOUTUBE="youtube_logo_icon",to.VIEW_LIST="list_view",to.VIEW_LIST_CAIRO=
"list_view_cairo",to.VISIBILITY="eye",to.VISIBILITY_OFF="eye_off",to.VOLUME_MUTE="volume_off",to.VOLUME_UP="volume_on",to.WALLPAPER="image",to.WARNING="alert_triangle",to.WATCH_HISTORY="arrow_time",to.WATCH_HISTORY_CAIRO="arrow_time_cairo",to.WATCH_LATER="clock",to.WATCH_LATER_CAIRO="clock_cairo",to.WATCH_RELATED_MIX="youtube_mix",to.WHAT_TO_WATCH="home",to.YOUTUBE_MUSIC_MONOCHROME="youtube_music",to.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",to.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",
to.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",to.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",to.YT_OUTLINE_MUSIC_24="music",to);var bL={},Dyk=(bL.ACCESS_TIME="clock",bL.ACCOUNT_BOX="person_square",bL.ACCOUNT_BOX_CAIRO="person_square",bL.ACCOUNT_CIRCLE="person_circle",bL.ACCOUNT_CIRCLE_CAIRO="person_circle",bL.ACCOUNT_LINKED="account_link",bL.ACCOUNT_UNLINKED="account_link",bL.ADD_CIRCLE="add_circle",bL.ADD_CIRCLE_OUTLINE="add_circle",bL.ADD_FRIEND="person_child",bL.ADD_MODERATOR="shield_add",bL.ADD_TO_LIBRARY="bookmark",bL.ADD_TO_PLAYLIST="add",bL.ADD_TO_QUEUE_TAIL="queue",bL.ADD_TO_REMOTE_QUEUE="playlist_audio",bL.ADD_TO_WATCH_LATER=
"clock",bL.ADD_VIDEO_LINK="film_strip_add",bL.ADMIN_PANEL_SETTINGS="person_gear",bL.ALERT_WARN_RED="alert_triangle",bL.ALIGN_LEFT="text_align_left",bL.ARROWS_ALERT="arrow_split_alert",bL.ARROW_BACK="arrow_left",bL.ARROW_CIRCLE="arrow_counterclockwise",bL.ARROW_CIRCLE_PLAY="replay",bL.ARROW_CIRCLE_RIGHT="arrow_clockwise",bL.ARROW_DIAGONAL="arrow_up_left",bL.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",bL.ARROW_DROP_DOWN="triangle_down",bL.ARROW_DROP_UP="triangle_up",bL.ARROW_FORWARD="arrow_right",bL.ARROW_PAUSE=
"pause_history",bL.ARROW_UNDO="undo",bL.ARTICLE="text_page",bL.ARTICLE_ALERT="text_page_alert",bL.ARTICLE_CHECK="text_page_check",bL.ARTICLE_CLARIFY="text_page_info",bL.AUDIOTRACK="audio",bL.AUDIO_BADGE="audio_badge",bL.AUDIO_SURROUND="surround_sound",bL.AUTO_AWESOME="sparkles",bL.AVATAR_ANONYMOUS="person_circle",bL.AVATAR_LOGGED_OUT="person_circle",bL.BACK="arrow_left",bL.BAR_CHART="chart_bar",bL.BAR_CIRCLE="minus_circle",bL.BAR_HORIZONTAL="minus",bL.BLOCK="circle_slash",bL.BLOCK_USER="circle_slash",
bL.BOOKMARK_BORDER="bookmark",bL.BOX_OPEN_CHECK="quiz",bL.BOX_PENCIL="square_pencil",bL.BOX_STACK_3="square3_stack",bL.BREAKING_NEWS_ALT_1="text_page_alert",bL.BROADCAST="podcast",bL.BROADCAST_CAIRO="podcast",bL.BUG_REPORT="bug",bL.CAMERA_ALT="camera",bL.CAMPAIGN="megaphone",bL.CANCEL="x_circle",bL.CAPTIONS="closed_captions",bL.CAST_ICON="chromecast",bL.CAST_OUTLINE="chromecast",bL.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",bL.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",bL.CHAT="text_bubble",
bL.CHAT_BUBBLE="bubble",bL.CHECK_BOX="check_square",bL.CHECK_BOX_OUTLINE_BLANK="square",bL.CHECK_CIRCLE_FILLED="check_circle",bL.CHECK_CIRCLE_OUTLINE="check_circle",bL.CHECK_CIRCLE_THICK="check_circle",bL.CHECK_DOUBLE="check_done",bL.CHECK_DOUBLE_OFF="check_done_slash",bL.CHEVRON_LEFT="chevron_left",bL.CHEVRON_RIGHT="chevron_right",bL.CHEVRON_RIGHT_CAIRO="chevron_right",bL.CIRCLES_OVERLAP="account_link",bL.CLAPPERBOARD_CAIRO="clapperboard",bL.CLARIFY="text_page_info",bL.CLOCK_ARROWS="clock_split",
bL.CLOCK_ARROWS_ALERT="clock_split_alert",bL.CLOSED_CAPTION="closed_captions",bL.CLOSED_CAPTION_SELECTED="closed_captions",bL.CLOSE="x",bL.CLOUD_UPLOAD="cloud_arrow_up",bL.COLLAPSE="chevron_up",bL.COLLAPSE_CAIRO="chevron_up",bL.COLLECTION="square3d_stack",bL.COLOR_LENS="paint_palette",bL.COMMENT="text_bubble",bL.CONSENT_SHIELD="person_shield",bL.CONTENT_CUT="scissors",bL.CONTENT_CUT_CAIRO="scissors",bL.COURSE="graduation_cap",bL.COURSE_CAIRO="graduation_cap",bL.CREATION_LIVE="live",bL.CREATION_POST=
"square_pencil",bL.CREATION_UPLOAD="video",bL.CREATION_UPLOAD_RED="upload",bL.CREATOR_ACADEMY="graduation_cap",bL.CREATOR_STUDIO="youtube_studio",bL.DARK_THEME="theme",bL.DELETE="trash_can",bL.DELETE_SWEEP="trash_can",bL.DESKTOP="laptop",bL.DISLIKE="thumb_down",bL.DISLIKE_SELECTED="thumb_down",bL.DISMISSAL="x",bL.DISMISS_QUEUE="playlist_x",bL.DOGFOOD="pawprint",bL.DOLLAR_SIGN="dollar_sign_circle",bL.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",bL.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",bL.DOWN_ARROW=
"arrow_down",bL.DO_NOT_DISTURB="circle_slash",bL.DRAFT="document",bL.DRAG_HANDLE="equal",bL.EARTH="globe",bL.EDIT="pencil",bL.EMOJI="face_very_happy",bL.EMOJI_FLAGS="flag",bL.EMOJI_OBJECTS="lightbulb",bL.EMOJI_PEOPLE="face_very_happy",bL.EMOJI_RECENT="clock",bL.EMPTY_HEART="heart",bL.EMPTY_LIKE="thumb_up",bL.ERROR_BLACK="alert_circle",bL.ERROR_OUTLINE="alert_circle",bL.ERROR_WHITE="alert_circle",bL.EXIT_APP="arrow_in",bL.EXIT_TO_APP="arrow_in",bL.EXPAND="chevron_down",bL.EXPAND_ALL="chevron_expand",
bL.EXPAND_CAIRO="chevron_down",bL.EXPAND_LESS="chevron_up",bL.EXPAND_MORE="chevron_down",bL.EXPLORE="compass",bL.EXPLORE_DESTINATION="compass",bL.EXTERNAL_LINK="arrow_up_right",bL.EYE_OFF="eye_slash",bL.FAB_UPLOAD="upload",bL.FACE_HAPPY_OUTLINE="face_happy",bL.FACE_MEH="face_neutral",bL.FACT_CHECK="text_page_check",bL.FASHION_LOGO="fashion",bL.FASHION_LOGO_CAIRO="fashion",bL.FAVORITE="thumb_up",bL.FEEDBACK="alert_bubble",bL.FEEDBACK_CAIRO="alert_bubble",bL.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",
bL.FILL_ARROW_SOLID_UP_16="arrow_solid_up",bL.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",bL.FLAG_CAIRO="flag",bL.FLASH_OFF="flash_slash",bL.FLASH_ON="flash",bL.FULL_HEART="heart",bL.GAMING_LOGO="gaming",bL.GAMING_LOGO_CAIRO="gaming",bL.GO_TO_PAGE="arrow_right",bL.GROUPS="person3",bL.HAND_SWIPE_LEFT="gesture_swipe_left",bL.HAND_SWIPE_RIGHT="gesture_swipe_right",bL.HAPPY="face_happy",bL.HEALTH_AND_SAFETY="shield_health",bL.HEART_BOX="heart_cube",bL.HELP="help_circle",bL.HELP_CAIRO="help_circle",
bL.HELP_OUTLINE="help_circle",bL.HIDE="circle_slash",bL.INCOGNITO_CAIRO="incognito",bL.INFINITY_ICON="infinity",bL.INFO="info_circle",bL.INFO_OUTLINE="info_circle",bL.INSERT_CHART="chart_bar_square",bL.INSERT_CHART_OUTLINED="chart_bar_square",bL.INSERT_PHOTO="image",bL.KEEP="pin",bL.KEEP_OFF="pin_slash",bL.KEYBOARD="keyboard",bL.KEYBOARD_ARROW_DOWN="chevron_down",bL.KEYBOARD_ARROW_UP="chevron_up",bL.KIDS_BLOCK="circle_slash",bL.LANGUAGE="globe",bL.LAUNCH="arrow_up_right",bL.LEARNING="lightbulb",bL.LEARNING_CAIRO=
"lightbulb",bL.LIBRARY_ADD="bookmark",bL.LIBRARY_IMAGE="image_stack",bL.LIBRARY_MUSIC="audio_square_stack",bL.LIBRARY_OUTLINE="play_square_stack",bL.LIBRARY_REMOVE="bookmark",bL.LIBRARY_SAVED="check_square_stack",bL.LIKES_PLAYLIST="thumb_up",bL.LIKES_PLAYLIST_CAIRO="thumb_up",bL.LIKE="thumb_up",bL.LIKE_SELECTED="thumb_up",bL.LIST_QUEUE="queue",bL.LIVE_CAIRO="live",bL.LIVE_UNLISTED="link",bL.LOCATION_ON="location_pin",bL.LOCATION_PIN="location_pin",bL.LOCATION_POINT="location_pin",bL.LOOP="repeat",
bL.LOOP_ACTIVE="repeat",bL.LOOP_ONE="repeat1",bL.LOOP_ONE_ACTIVE="repeat1",bL.MEET="google_meet",bL.MEH="face_neutral",bL.MEMBERSHIPS="memberships",bL.MEMBERS_ONLY_MODE_OFF="text_bubble",bL.MENU_FILTER="filter",bL.MESSAGE="text_bubble",bL.MESSAGE_BUBBLE_GEAR="bubble_gear",bL.MESSAGE_BUBBLE_LEFT="text_bubble",bL.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",bL.MESSAGE_BUBBLE_OVERLAP="bubble_stack",bL.MESSAGE_BUBBLE_QUESTION="help_bubble",bL.MICROPHONE_ON="mic",bL.MONETIZATION_ON="dollar_sign_circle",
bL.MONEY_FILL="dollar_sign_rectangle",bL.MONEY_FILL_JPY="yen_sign_rectangle",bL.MONEY_HAND="dollar_sign_circle_hand",bL.MONEY_HEART="dollar_sign_heart",bL.MOON_Z="sleep_timer",bL.MORE_HORIZ="overflow_horizontal",bL.MORE_VERT="overflow_vertical",bL.MUSIC="audio",bL.MUSIC_CAIRO="audio",bL.MUSIC_EXPLICIT_BADGE="explicit",bL.MUSIC_NEW_RELEASE="audio_badge",bL.MUSIC_NOTE_SYMBOL="audio",bL.MUSIC_SCISSORS="audio_scissors",bL.MUSIC_SHUFFLE="shuffle",bL.MY_CHANNEL="person_circle",bL.MY_LOCATION="location_pin",
bL.MY_VIDEOS="video",bL.MY_VIDEOS_CAIRO="video",bL.NEWS_CAIRO="news",bL.NEWS_STORY="news",bL.NEXT="chevron_right",bL.NOTE_ADD="bubble_pencil",bL.NOTIFICATIONS="bell",bL.NOTIFICATIONS_ACTIVE="bell_waves",bL.NOTIFICATIONS_CAIRO="bell",bL.NOTIFICATIONS_DONE_CHECKMARK="check",bL.NOTIFICATIONS_INBOX="bell",bL.NOTIFICATIONS_NONE="bell",bL.NOTIFICATIONS_OFF="bell_slash",bL.NOT_INTERESTED="circle_slash",bL.OFFICIAL_ARTIST_BADGE="audio",bL.OFFLINE_CLOUD="cloud_slash",bL.OFFLINE_DOWNLOAD="download",bL.OFFLINE_DOWNLOAD_CAIRO=
"download",bL.OFFLINE_PAUSE="pause",bL.OPEN_IN_NEW="arrow_up_right",bL.OUTLINE_ADJUST="adjust",bL.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",bL.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",bL.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",bL.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",bL.OUTLINE_BAG="bag",bL.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_dashed",bL.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",bL.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",bL.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",bL.PAID=
"dollar_sign_circle",bL.PAUSE_OUTLINED="pause",bL.PAYMENT="credit_card",bL.PEOPLE="person_child",bL.PEOPLE_2="person2_rectangle",bL.PEOPLE_GROUP="person3",bL.PEOPLE_NOTE="bubble_asterisk",bL.PERSON_2="person2",bL.PERSON_ACCOUNT="person_square_stack",bL.PERSON_MINUS="person_x",bL.PERSON_MUSIC="person_audio",bL.PERSON_RADAR="person_waves",bL.PERSON_RADAR_FILLED="person_waves",bL.PERSON_SETTING="person_gear",bL.PHONE="phone",bL.PHONE_DOWNLOAD="mobile_arrow_down",bL.PICTURE_IN_PICTURE="picture_in_picture",
bL.PLAYABLES_LOGO="playables",bL.PLAYABLES_LOGO_CAIRO="playables",bL.PLAYLISTS="playlist",bL.PLAYLISTS_CAIRO="playlist",bL.PLAYLIST_ADD_CHECK="bookmark",bL.PLAY_ALL="play",bL.PLAY_ARROW="play",bL.PLAY_ARROW_CIRCLE="play_circle",bL.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",bL.PLAY_CIRCLE="play_circle",bL.PLAY_OUTLINED="play_circle",bL.PODCAST_ADD="podcast_add",bL.PODCAST_CHECK="podcast_check",bL.PRIVACY_INFO="shield_x",bL.PRIVACY_PRIVATE="lock",bL.PRIVACY_PUBLIC="globe",bL.PRIVACY_UNLISTED=
"link",bL.PROMOTE="megaphone",bL.PURCHASES="price_tag",bL.PURCHASE_SUPER_CHAT="super_chat",bL.PURCHASE_SUPER_STICKER="super_sticker",bL.QUESTION_ANSWER="help_bubble",bL.QUESTION_CIRCLE="help_circle",bL.QUEUE_PLAY_LAST="queue_last",bL.QUEUE_PLAY_NEXT="playlist",bL.QUOTATION_MARK="quote",bL.RADAR_LIVE="live",bL.REMOVE="minus_circle",bL.REMOVE_CIRCLE="minus_circle",bL.REMOVE_CIRCLE_OUTLINE="minus_circle",bL.REMOVE_FROM_HISTORY="minus_circle",bL.REMOVE_FROM_PLAYLIST="minus_circle",bL.REMOVE_MODERATOR=
"shield_slash",bL.REPLAY="arrow_counterclockwise",bL.REPLAY_10="skip10_back",bL.REPLAY_ARROW="replay",bL.REPORT_PROBLEM="alert_triangle",bL.RSS_OFF="rss_slash",bL.SAD="face_sad",bL.SAVE_PLAYLIST="bookmark",bL.SCHEDULE="clock",bL.SCHOOL="graduation_cap",bL.SCREEN_DEFAULT="player_default",bL.SCREEN_FULLSCREEN="player_full_enter",bL.SCREEN_LIGHT="ambient_mode",bL.SCREEN_ROTATION="rotate_portrait",bL.SCREEN_SWITCH="player_switch",bL.SCREEN_THEATRE="player_theater",bL.SEARCH_CAIRO="search",bL.SEARCH_HISTORY=
"history",bL.SELL="price_tag",bL.SETTINGS="gear",bL.SETTINGS_CAIRO="gear",bL.SETTINGS_LIGHT="gear",bL.SETTINGS_MATERIAL="gear",bL.SETTINGS_REMOTE="remote_waves",bL.SHARE="share",bL.SHARE_ARROW="share",bL.SHARE_CAIRO="share",bL.SHIELD="shield_x",bL.SHIELD_OFF="shield_slash",bL.SHIELD_WITH_AVATAR="person_shield",bL.SHOPPING_BAG="bag",bL.SHOPPING_BAG_CAIRO="bag",bL.SHOPPING_CART="cart",bL.SHORTS_COMMENT="text_bubble",bL.SHORTS_DISLIKE="thumb_down",bL.SHORTS_LIKE="thumb_up",bL.SHORTS_SHARE="share",bL.SKIP_FORWARD_30=
"skip30_forward",bL.SLASH_CIRCLE_RIGHT="circle_slash",bL.SLOW_MODE="bubble_slow",bL.SLOW_MODE_OFF="text_bubble",bL.SOCIAL="person_child",bL.SPARKLE="sparkles",bL.SPARK_IMAGE="image_spark",bL.SPARK_RADAR="spark_waves",bL.SPARK_VIDEO="video_spark",bL.SPEAKER_GROUP="speaker_stack",bL.SPEAKER_OFF="speaker_slash",bL.SPEED_1X="n1x",bL.SPEED_1_POINT_2X="n1point2x",bL.SPEED_1_POINT_5X="n1point5x",bL.SPEED_1_POINT_8X="n1point8x",bL.SPEED_2X="n2x",bL.SPONSORSHIP_STAR="memberships",bL.SPORTS="basketball",bL.SPOTLIGHT=
"spotlight",bL.STAFF_PICK="spotlight",bL.START_DVR="add",bL.STAR_BORDER="star",bL.STAR_CIRCLE_RIBBON="memberships_gift",bL.STAR_HALF="star_half_filled",bL.STAR_SHOOTING="hype",bL.STICKER="sticker",bL.STICKER_EMOTICON="face_happy",bL.STOP_DVR="stop",bL.SUBSCRIBE="youtube",bL.SUBSCRIBE_PLUS="add",bL.SUBSCRIPTION_MANAGER="gear",bL.SUPERSTAR="super_star",bL.SUPERVISOR_ACCOUNT="person_child",bL.SUPER_CHAT_FOR_GOOD="hands_heart",bL.SWAP_HORIZ="arrow_swap_horizontal",bL.SWITCH_ACCOUNTS="person_square_stack",
bL.TAB_ACCOUNT="person",bL.TAB_ACTIVITY="bell",bL.TAB_BOOKMARK="bookmark",bL.TAB_EXPLORE="compass",bL.TAB_HOME="home",bL.TAB_HOME_CAIRO="home",bL.TAB_INBOX="mail",bL.TAB_LIKED="thumb_up",bL.TAB_MUSIC_PREMIUM="youtube_music",bL.TAB_SHORTS="shorts",bL.TAB_SHORTS_CAIRO="shorts",bL.TAB_SUBSCRIPTIONS="subscriptions",bL.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",bL.TAB_TRENDING="trending",bL.TARGET="target",bL.TARGET_ADD="target_add",bL.TEMPLATE_ADD="template_add",bL.TEXT="font",bL.TIMER="stopwatch",bL.TRENDING_CAIRO=
"trending",bL.TRENDING_UP="arrow_trend_up",bL.TROPHY_CAIRO="trophy",bL.TROPHY_CELEBRATIONS="fireworks",bL.TROPHY_STAR="star_trophy",bL.TUNE="adjust",bL.TV_OFF="tv_slash",bL.UNBLOCK_USER="minus_circle",bL.UNFAVORITE="thumb_down",bL.UNLIMITED="youtube",bL.UNPLUGGED_LIVE_GUIDE="live",bL.UNPLUGGED_SPORTS="eye_slash",bL.UPLOADS="play_square_stack",bL.UP_ARROW="arrow_up",bL.VERTICAL_ALIGN_BOTTOM="chevron_down_end",bL.VERTICAL_ALIGN_TOP="chevron_up_end",bL.VERY_HAPPY="face_very_happy",bL.VERY_SAD="face_very_sad",
bL.VIDEOS="play_circle",bL.VIDEO_CALL="video_camera_add",bL.VIDEO_LIBRARY_WHITE="play_square_stack",bL.VIDEO_QUALITY_4K="n4k",bL.VIDEO_QUALITY_8K="n8k",bL.VIDEO_YOUTUBE="youtube",bL.VIEW_LIST_CAIRO="view_list",bL.VIEW_MODULE="view_column3_row2",bL.VISIBILITY="eye",bL.VISIBILITY_OFF="eye_slash",bL.VOLUME_DOWN="volume_min",bL.VOLUME_MUTE="volume_mute",bL.VOLUME_OFF="volume_mute",bL.VOLUME_STABLE="stable_volume",bL.VOLUME_UP="volume_max",bL.WALLPAPER="image",bL.WARNING="alert_triangle",bL.WATCH_HISTORY=
"history",bL.WATCH_HISTORY_CAIRO="history",bL.WATCH_LATER="clock",bL.WATCH_LATER_CAIRO="clock",bL.WATCH_RELATED_MIX="mix",bL.WHAT_TO_WATCH="home",bL.YOUTUBE_LINKED_TV="tv_mobile",bL.YOUTUBE_MUSIC_MONOCHROME="youtube_music",bL.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",bL.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",bL.YOUTUBE_SHORTS_ARROW_UP="arrow_up",bL.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",bL.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",bL.YOUTUBE_SHORTS_OUTLINE_24="shorts",
bL);var ePQ={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,2,24],[1,2,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,4,24]],account_link:[[1,8,24]],account_link_error:[[1,6,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,9,16],[1,9,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,6,24],
[1,6,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,5,24],[1,5,20],[1,5,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,7,24],[1,7,24]],alert_circle:[[0,10,24],[1,10,16],[1,10,24]],alert_triangle:[[0,10,12],[0,10,24],[1,10,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,
36],[1,1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,7,24],[1,7,24]],arrow_left:[[1,
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,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_solid_up:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_split:[[0,3,24],[1,3,24]],arrow_swap_horizontal:[[0,5,24],[1,5,18],
[1,5,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,3,24],[1,3,24]],arrow_up_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,13,12],[0,13,16],[0,13,18],[0,13,24],[1,13,18],[1,13,24]],audio_badge:[[0,3,12],[0,3,16],[0,3,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,
1,24],[1,1,24]],background:[[1,1,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,12],[0,7,18],[0,7,24],[1,7,18],[1,7,24]],bag_bookmark:[[1,2,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,
2,24]],blur:[[1,2,24]],book:[[1,3,24]],bookmark:[[0,8,24],[1,8,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,10,24],[1,10,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,
13,12],[0,13,16],[0,13,24],[1,13,16],[1,13,24]],check_circle:[[0,10,18],[0,10,24],[1,10,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,3,24]],chevron_expand:[[1,5,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,9,16,!0],[1,9,18,!0],[1,9,24,!0]],chevron_left_circle:[[0,3,24]],chevron_left_ios:[[1,2,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
7,16,!0],[0,7,18,!0],[0,7,24,!0],[1,7,16,!0],[1,7,18,!0],[1,7,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,8,16],[1,8,18],[1,8,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,10,24],[1,10,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,7,24],[1,7,24]],circle_full:[[0,2,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,10,24],[1,10,16],[1,10,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
5,24],[1,5,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,16],[0,5,24],[1,5,12],[1,5,16],[1,5,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,10,16],[0,10,24],[1,10,16],[1,10,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,16],[1,23,24]],dollar_sign_off:[[1,3,24]],download:[[0,11,24],[1,11,16],[1,11,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,24]],downloading:[[1,5,
24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,7,18],[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[0,9,36],[1,9,24],[1,9,
36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],film_strip:[[0,7,24],[1,7,24]],film_strip_add:[[1,
2,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,8,24],[1,8,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,4,16],[0,4,24],[1,4,24]],football:[[0,4,24],[1,
4,24]],gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,8,24],[1,8,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],globe_image:[[0,2,24],[0,2,36],[1,2,24],[1,2,36]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,
24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,18,13],[0,18,24],[1,18,16],[1,18,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,
3,16],[1,3,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,10,16],[1,10,18],[1,10,20],[1,10,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],
library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,8,18],[1,8,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,
1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,12],[1,13,16],[1,13,18],[1,13,24]],lock_open:[[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],math_add:[[0,3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,
3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],meet:[[1,1,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,12],[0,9,16],[0,9,18],[0,9,24],[1,9,24]],mention:[[1,4,16],[1,4,24]],menu_filter:[[0,1,24],[1,1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,
6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_left_off:[[1,1,16],[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,1,24]],mic:[[0,12,24],[1,12,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,
1,24]],mobile:[[0,4,24],[1,4,24]],mobile_check:[[1,2,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,3,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,2,24]],move:[[1,2,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,3,24]],music_shape:[[1,3,24]],music_video:[[1,4,24]],music_video_off:[[1,
1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,3,24],[1,3,12],[1,3,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],note_add:[[1,1,16],[1,1,24]],note_spark:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,6,24],[1,6,32]],overflow_vertical:[[1,12,24]],overflow_vertical_cairo:[[1,1,24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,
2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,9,24]],pause_circle:[[0,2,12],[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,8,16],[1,8,18],[1,8,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,6,12],[0,6,13],[0,6,16],[0,6,24],[0,6,48],[1,6,13],[1,6,16],[1,6,24]],person_2:[[1,1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,
1,24]],person_add:[[1,6,24]],person_box:[[1,5,24]],person_circle:[[0,10,24],[1,10,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,2,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_waveform:[[1,2,24]],phone:[[0,2,24],[1,2,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,6,12],[0,6,24],[1,6,16],[1,6,
24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,5,24],[1,5,12],[1,5,16],[1,5,18],[1,5,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,9,16],[1,9,24],[1,9,40]],pound:[[1,3,24]],presentation:[[1,2,24]],presentation_remove:[[1,
1,24]],price_tag:[[0,8,12],[0,8,24],[1,8,24]],price_tag_heart:[[1,2,24]],qr_code:[[1,3,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,2,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,2,24]],remix:[[1,2,16],[1,2,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,
2,24]],rss:[[1,2,16],[1,2,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,2,12],[1,2,16],[1,2,18],[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,12],[0,8,24],[1,8,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,4,16],[1,4,18],[1,4,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_cairo:[[1,1,24]],screen_full_exit:[[1,6,24]],screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,1,24],[0,1,48],[1,1,24],[1,1,
48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,2,24]],sd:[[0,3,24],[1,3,24]],search:[[0,13,24],[1,13,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,2,24]],shadow_soft:[[0,2,24]],
shapes:[[0,3,24],[1,3,24]],share:[[0,11,24,!0],[0,11,32,!0],[1,11,16,!0],[1,11,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,24]],shield_add:[[1,2,24]],shield_check:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],
shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],
skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,7,24]],skip_previous:[[0,6,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,3,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,9,12],[0,9,16],[0,9,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,
2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,2,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],star_circle:[[0,5,12],[0,5,16],[0,5,18],[0,5,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],
[1,1,24],[1,1,36]],star_half:[[0,2,16],[0,2,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,4,24]],stopwatch:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,11,24],[1,11,18],[1,11,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,4,12],[0,4,24],[1,4,24]],super_chat:[[1,8,18],[1,8,24]],super_sticker:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],super_store:[[1,3,24]],superstar:[[1,1,24]],tablet:[[1,
1,24]],target:[[0,2,24],[1,2,16],[1,2,24]],target_add:[[0,2,24],[1,2,16],[1,2,24]],template_add:[[1,3,16],[1,3,24]],template_play:[[0,3,24],[1,3,24]],text:[[0,9,24],[1,9,16],[1,9,18],[1,9,24]],text_bell_cairo:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,1,24]],thermometer:[[1,
2,24]],thumb_down:[[0,24,16],[0,24,24],[0,24,36],[1,24,16],[1,24,24],[1,24,36]],thumb_up:[[0,22,16],[0,22,24],[0,22,36],[1,22,16],[1,22,24],[1,22,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,3,24],[1,3,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],ticket_star:[[1,1,24]],tilt:[[1,4,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,3,24]],toolbox:[[1,4,24]],transcript:[[1,2,16],[1,2,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,5,24],
[1,5,24]],translate:[[1,4,16],[1,4,24]],trash_can:[[1,9,16],[1,9,18],[1,9,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,12],[0,8,16],[0,8,24],[1,8,16],[1,8,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,5,24]],uploading:[[1,
1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,9,24],[1,9,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,5,16],[1,5,24]],video_stitch:[[1,2,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,2,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],volume_stable:[[0,1,24],[1,1,24]],vr:[[0,7,24],[1,7,24]],waveform:[[1,3,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,24],[1,3,24]],x:[[1,10,18],
[1,10,24]],x_cairo:[[1,1,24]],x_circle:[[1,8,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,2,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,
1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,
5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[0,1,24],[1,1,24]]};var Eek={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,9,18],[1,9,24]],add_circle:[[0,6,18],[0,6,24],[1,6,24],[1,6,36]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,5,24],[0,5,48],[1,5,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,7,24],[1,7,24],[1,7,48]],alert_bubble:[[1,1,24]],alert_circle:[[0,10,24],[1,10,24],[1,10,48]],alert_octagon:[[0,2,24],[1,2,24]],
alert_triangle:[[0,10,12],[0,10,24],[0,10,48],[1,10,24]],ambient_mode:[[1,1,24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,2,24],[1,2,48]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,7,24]],arrow_left:[[1,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,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_solid_up:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,2,12],[1,2,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,2,18],[1,2,24],[1,2,36]],
audio:[[0,13,12],[0,13,18],[0,13,24],[1,13,18],[1,13,24],[1,13,48]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bed:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],bell:[[0,10,24],[1,10,24]],bell_slash:[[1,1,
24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,8,24],[1,8,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_ellipsis:[[1,1,24]],bubble_gear:[[1,1,24]],bubble_list:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,24]],bubble_slow:[[0,2,24],[0,2,48],[1,2,24],[1,2,48]],
bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,10,24],[1,10,18],[1,10,24]],camera_audio:[[1,5,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,
1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,2,24],[1,2,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,13,12],[1,13,18],[1,13,24],[1,13,36]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,24]],check_square:[[0,2,24],[1,2,24]],check_square_stack:[[0,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],
[1,9,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_left_ios:[[1,2,24]],chevron_right:[[1,7,18,!0],[1,7,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,8,24]],chevron_up_circle:[[0,3,24],[1,3,24]],chevron_up_end:[[1,1,24]],chromecast:[[0,10,24],[1,10,18],[1,10,24],[1,10,
36]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,2,24]],circle:[[0,7,24],[1,7,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,2,24],[1,2,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_sparkles:[[0,1,24]],clock:[[0,10,24],[0,10,48],[1,10,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],
cloud_arrow_up:[[0,5,24],[1,5,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,2,24],[1,2,48]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,1,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,2,24],[1,2,24]],cover_claim:[[1,1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,18],[0,5,24],[1,5,24]],
csv:[[0,2,24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,10,24],[1,10,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,
1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,12],[1,23,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],dot:[[0,1,24]],download:[[1,11,18],[1,11,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,1,24]],equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_slash:[[1,1,24]],eyedropper:[[1,2,24]],face_happy:[[0,11,24],[0,11,36],[0,11,48],[1,11,24],[1,11,36]],
face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[1,9,24]],fashion:[[0,4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,
24]],film_strip:[[0,7,24],[0,7,48],[1,7,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,8,24],[1,8,24]],flash:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,1,24]],flip_vertical_half_dashed:[[1,1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,
1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_strikethrough:[[1,1,24]],font_underline:[[1,1,24]],football:[[0,4,24],[1,4,24],[1,4,36]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,8,24],[1,8,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,1,24]],gesture_swipe_left:[[1,1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,
24],[1,2,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,4,24]],glow:[[1,2,24]],google:[[0,1,24]],google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,2,24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,3,18],[0,3,24],[1,3,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,1,24]],hand:[[1,2,24]],hand_wave:[[1,2,24]],hands_clap:[[1,1,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],
hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],hearing:[[0,2,24],[1,2,24]],heart:[[0,18,24],[1,18,18],[1,18,24]],heart_circle:[[1,2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],help_circle:[[1,1,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,3,18],[1,3,24]],hype:[[0,2,24],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],
image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,10,18],[1,10,24]],info_circle_spark:[[1,1,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layout_bottom:[[1,1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,
1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],link:[[1,8,18],[1,8,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,
13,12],[0,13,24],[1,13,18],[1,13,24],[1,13,48]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,24],[0,9,36],[1,9,24]],memberships_gift:[[1,1,24]],mention:[[1,4,24]],menu:[[1,1,24]],mic:[[0,12,18],[0,12,24],[0,12,48],[1,12,24]],mic_slash:[[1,2,24]],minus:[[1,2,18],[1,2,24]],minus_circle:[[0,2,24],[1,2,24]],minus_square:[[0,
2,24],[1,2,24]],mix:[[0,2,24],[1,2,24]],mobile:[[0,4,24],[1,4,24]],mobile_arrow_down:[[1,1,24]],mobile_arrow_in:[[1,1,24]],mobile_arrow_out:[[1,1,24]],mobile_check:[[1,2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,2,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,1,24]],n1point5x:[[1,1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],n4d:[[1,1,24]],n4k:[[0,
1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,1,24]],news:[[0,3,24],[1,3,24]],news_alert:[[0,1,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],open_in_panel:[[1,1,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,6,24],[1,6,36]],overflow_vertical:[[1,12,24],[1,12,36]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,9,24],[0,9,36],[0,9,48],[1,9,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],
pawprint:[[1,1,24]],pdf:[[1,2,24]],pencil:[[1,8,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,6,24],[1,6,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],person3:[[0,1,24],[1,1,24]],person_add:[[0,6,24],[1,6,24]],person_audio:[[0,2,24],[1,2,24],[1,2,48]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[0,10,24],[1,10,24],[1,10,48]],person_circle_slash:[[1,2,24]],person_gear:[[0,2,24],[1,2,24]],person_shield:[[1,7,24]],person_square:[[0,1,24],[1,1,
24]],person_square_stack:[[0,1,24],[1,1,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,2,24],[1,2,24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,6,24],[1,6,24]],pin_slash:[[0,1,24],[1,1,24]],play:[[0,2,24],[0,2,36],[1,2,24]],play_circle:[[0,2,24],[0,2,48],[1,2,24]],play_circle_half_dashed:[[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,
1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,2,24],[1,2,18],[1,2,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,1,24]],player_full_enter_alt:[[1,1,24]],player_full_enter_portrait:[[1,2,24]],player_full_exit:[[1,1,24]],player_full_exit_alt:[[1,1,24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,3,12],[1,3,24],[1,3,48]],playlist_add:[[1,
1,24]],playlist_audio:[[0,2,24],[1,2,24],[1,2,48]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,2,24],[1,2,48]],playlist_x:[[1,1,24]],podcast:[[0,5,24],[1,5,18],[1,5,24],[1,5,48]],podcast_add:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,24]],poll:[[1,9,18],[1,9,24],[1,9,36]],premium:[[0,1,24],[1,1,24]],presentation:[[1,2,24]],price_tag:[[0,8,24],[0,8,48],[1,8,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,
1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],question_head:[[1,2,24]],queue:[[1,1,24]],queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,24]],repeat:[[0,1,24],[1,1,24]],repeat1:[[0,1,24],[1,1,24]],replay:[[1,2,24],[1,2,36]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,2,18],[1,2,24]],rotate_portrait:[[1,
1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,24],[1,8,18],[1,8,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],sd:[[0,3,24],[1,3,24]],search:[[0,13,24],[1,13,24],[1,13,48]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,1,24]],seek_forward:[[0,1,24]],seek_rewind:[[0,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],shadow:[[1,1,24]],shadow_hard:[[1,2,24]],shadow_soft:[[1,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,
11,24,!0],[1,11,24,!0]],share_android:[[0,2,24],[1,2,24]],share_ios:[[1,2,24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,2,24],[1,2,24]],shorts:[[0,3,18],[0,3,24],[1,3,24]],shorts_empty:[[0,3,18],[0,3,24],[1,3,24]],shuffle:[[0,2,24],[1,2,24]],skip10_back:[[1,2,24],[1,2,36]],skip10_forward:[[1,1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,
1,24]],skip30_forward:[[1,2,24],[1,2,36]],skip5_back:[[1,1,24]],skip5_forward:[[1,1,24]],skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,7,12],[0,7,24],[0,7,36],[1,7,24]],skip_previous:[[0,6,24],[0,6,36],[1,6,24]],skip_up:[[0,5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,1,24]],spacebar:[[1,2,24]],spark:[[0,9,12],[0,9,24],[1,9,24]],spark_bubble_chat:[[1,1,24]],
spark_waves:[[0,2,24],[1,2,24]],sparkles:[[0,2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,4,24]],spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[1,1,24]],square3_stack:[[0,2,24],[1,2,24]],square3d_stack:[[0,2,24],[1,2,24]],square_grid2x2:[[1,1,24]],square_grid3x3:[[0,2,24],[1,2,24]],square_pencil:[[0,2,24],[1,2,24]],stable_volume:[[0,
2,24],[1,2,24]],star:[[0,5,24],[1,5,24]],star_circle:[[0,5,18],[0,5,24],[0,5,36],[1,5,24]],star_half_filled:[[1,1,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,1,24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,4,24],[0,4,36],[1,4,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,11,24],[1,11,24],[1,11,48]],subtitles:[[0,4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],super_chat:[[0,8,24],[1,8,24]],super_star:[[1,
1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,3,24],[1,3,18],[1,3,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],text_page_check:[[1,1,24]],text_page_info:[[1,1,24]],texture:[[1,
1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,18],[0,24,24],[0,24,36],[0,24,48],[1,24,18],[1,24,24],[1,24,36],[1,24,48]],thumb_up:[[0,22,18],[0,22,24],[0,22,36],[0,22,48],[1,22,18],[1,22,24],[1,22,36],[1,22,48]],thumb_up_down:[[0,3,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],timestamp_add:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,18],[1,4,24]],trash_can:[[0,9,24],
[1,9,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,24],[1,8,24],[1,8,48]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,2,24],[1,2,36]],tv_slash:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[0,9,24],[0,9,48],[1,9,24],[1,9,48]],video_camera_add:[[1,2,24]],video_camera_slash:[[1,1,24]],
video_link:[[1,5,18],[1,5,24]],video_spark:[[1,1,24]],video_stitch:[[1,2,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,3,24],[1,3,48]],waveform_spark:[[1,
2,24]],wrench:[[0,3,18],[0,3,24],[1,3,18],[1,3,24]],x:[[1,10,18],[1,10,24]],x_circle:[[0,8,24],[1,8,18],[1,8,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_shorts:[[0,10,24],[1,10,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,2,24]]};var ne$={LIKE_DELHI_PLAYER:"LIKE",DISLIKE_DELHI_PLAYER:"DISLIKE",SHARE_DELHI_PLAYER:"SHARE",COMMENT_DELHI_PLAYER:"COMMENT",MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER:"MESSAGE_BUBBLE_OVERLAP",VOLUME_UP_DELHI_PLAYER_FILLED:"VOLUME_MAX",VOLUME_OFF_DELHI_PLAYER:"VOLUME_MUTE",VOLUME_DOWN_DELHI_PLAYER_FILLED:"VOLUME_MIN",CLOSED_CAPTION_DELHI_PLAYER:"CAPTIONS",CLOSED_CAPTION_DELHI_PLAYER_FILLED:"CAPTIONS",SUBTITLES_DELHI_PLAYER:"SUBTITLES",SUBTITLES_DELHI_PLAYER_FILLED:"SUBTITLES",PLAYER_FULL_ENTER_ALT:"PLAYER_FULL_ENTER_ALT",
PLAYER_FULL_EXIT_ALT:"PLAYER_FULL_EXIT_ALT",PAUSE_DELHI_PLAYER_FILLED:"PAUSE",PLAY_ARROW_DELHI_PLAYER_FILLED:"PLAY_ARROW"},ho=function(A){this.iconUrlProvider=A};
ho.prototype.resolveIcon=function(A,L){var O=ne$[A.iconName.toUpperCase()];O&&(A.iconName=O);var X=A.iconName;X=X.replace(/-/g,"_");A=Object.assign({},A,{iconName:this.mapIconTypeToStandardName(X,!!O)||X.toLowerCase()});if(_.h("enable_web_delhi_icons")||O){var x;return QVp(Eek,A,((x=this.iconUrlProvider)==null?void 0:x.getYtStandardUrl)||yKd,L)}var J;return QVp(ePQ,A,((J=this.iconUrlProvider)==null?void 0:J.getYtStandardUrl)||Iae,L)};
ho.prototype.mapIconTypeToStandardName=function(A,L){return _.h("enable_web_delhi_icons")||L?Dyk[A.toUpperCase()]:VDS[A.toUpperCase()]};
ho[dx]=[_.Ot(YuM)];var tDS=new Set("audio_badge offline_pause pause play_all play_arrow youtube_music".split(" ")),b9X=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),hPM=function(A){this.urlProvider=this.iconUrlProvider=A};
_.g(hPM,ho);
hPM.prototype.resolveIcon=function(A,L){A.iconName==="youtube_logo"&&(A.iconName="yt-logo-updated");if(A.iconName==="youtube_premium_logo"||A.iconName==="youtube_red_logo")A.iconName="yt-logo-red-updated";var O=Object.assign({},A);A.iconName==="menu"&&(_.h("enable_web_delhi_icons")||(O.iconName="bars_3"),O.iconStyle="youtube_outline");A.iconSetName==="socialNetworksRound"&&(A.iconName==="mail"&&(O.iconName="email"),A.iconName==="embed"&&(O.iconSize=60));A.iconName==="more"&&(O.iconName="overflow_horizontal");
A.iconName==="fullscreen"&&(O.iconName="screen_full");A.iconName==="premium_standalone"&&(O.iconName="premium_standalone_cairo");_.h("enable_connect_icon_update_web")&&A.iconName==="account_linked"&&(O.iconName="circles_overlap_check",O.iconStyle="youtube_fill");_.h("enable_connect_icon_update_web")&&A.iconName==="account_unlinked"&&(O.iconName="circles_overlap",O.iconStyle="youtube_outline");tDS.has(A.iconName)&&(O.iconStyle="youtube_fill");_.h("enable_web_delhi_icons")&&(A.iconName==="playlist_add"&&
(O.iconName="bookmark"),A.iconName==="offline_pin"&&(O.iconName="arrow_down_circle",O.iconStyle="youtube_fill"),b9X.has(A.iconName)&&(O.iconName+="_updated"));A=Object.assign({},O,{iconName:(ho.prototype.mapIconTypeToStandardName.call(this,O.iconName)||O.iconName).toLowerCase()});var X;return(A=QVp(Prk,A,((X=this.urlProvider)==null?void 0:X.getUrl)||Z1_,L))?A:ho.prototype.resolveIcon.call(this,O,L)};
hPM[dx]=[_.Ot(YuM)];_.SuJ=1;var SF=function(A,L){this.JSC$18177_commandHandler=A;this.innertubeTransportService=L};
_.g(SF,ML);SF.prototype.resolveCommand=function(A,L){var O=this,X,x,J;return _.u(function(Y){return(X=_.q(A,Mu6))?Y.return(quM(O,X,(x=L)==null?void 0:(J=x.form)==null?void 0:J.element)):Y.return()})};
var quM=function(A,L,O){L={profileCardContext:L.profileCardContext,profileOwnerExternalChannelId:L.profileOwnerExternalChannelId};var X=_.L3(VRu);return _.MB(A.innertubeTransportService,L,X).then(function(x){if(!x)throw new _.pe("GetProfileCard failed");if(x=x.popupCommand){A.JSC$18177_commandHandler.resolveCommand(x,{form:{element:O}});_.h7(_.iV(),66557);x=x==null?void 0:x.clickTrackingParams;var J=_.Ch();x&&J&&_.iV().graftServerVe(x,J)}})};
SF[dx]=[_.x$,_.Ia];var q$=function(){};
_.g(q$,ML);q$.prototype.resolveCommand=function(A){var L,O;return _.u(function(X){L=_.q(A,LSN);if(!L)return X.return();O=Number(L.enableDelayedPacfLoggingTvMs);if(isNaN(O)){var x=hZ();Iqu(x,L,0)}else Iqu(hZ(),L,O);_.qo(X)})};_.g5=function(){};
_.g(_.g5,ML);
_.g5.prototype.resolveCommand=function(A,L){var O=this,X,x,J,Y,T,V,E;return _.u(function(n){X=_.q(A,Ocj);J=(x=L.form)==null?void 0:x.element;T=(Y=J)==null?void 0:Y.closest("ytd-enforcement-message-view-model");if(!X||!T)return n.return();O.allowAdsAction||(V=X.fundingChoiceInstructionPageUrl,O.allowAdsAction=new pYn(window,_.CH(V)));var t=O.allowAdsAction;t.wallElement=T;t.allowAdsPopup.style.setProperty("display","flex","important");var b=t.scrollManager;b.originalBodyOverflow=b.JSC$11021_domHelper.JSC$10345_document_.body.style.overflow;b.JSC$11021_domHelper.JSC$10345_document_.body.style.overflow=
"hidden";t.wallElement.style.setProperty("display","none","important");QeN(t.accessibilityManager,t.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((E=O.allowAdsAction.allowAdsPopup)&&E instanceof HTMLElement)for(t=_.d(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),b=t.next();!b.done;b=t.next()){var S=_.d(b.value);b=S.next().value;S=S.next().value;E.style.setProperty(b,S)}_.qo(n)})};
_.g5.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var w5=function(){};
_.g(w5,ML);w5.prototype.resolveCommand=function(A){var L;return _.u(function(O){L=_.q(A,p_J);if(!L)return O.return();C0r(A);_.qo(O)})};var pF=function(A){this.JSC$18192_commandHandler=A};
_.g(pF,ML);
pF.prototype.resolveCommand=function(A){var L=this,O,X,x,J,Y,T,V,E;return _.u(function(n){if(n.nextAddress==1){O=_.q(A,ABj);if((X=O)==null||!X.text||!navigator.clipboard)return n.return();_.e4(n,2);return n.yield(navigator.clipboard.writeText(O.text),4)}if(n.nextAddress!=2){if(!O.successActions||O.successActions.length===0)return n.return();x=_.d(O.successActions);for(J=x.next();!J.done;J=x.next())Y=J.value,L.JSC$18192_commandHandler.resolveCommand(Y);return _.zA(n,0)}_.S4(n);if(!O.failureActions||O.failureActions.length===
0)return n.return();T=_.d(O.failureActions);for(V=T.next();!V.done;V=T.next())E=V.value,L.JSC$18192_commandHandler.resolveCommand(E);_.qo(n)})};
pF[dx]=[_.x$];var iL=function(A){this.JSC$18196_commandHandler=A};
_.g(iL,ML);
iL.prototype.resolveCommand=function(A,L){var O=this,X,x,J,Y,T,V,E,n,t,b;return _.u(function(S){switch(S.nextAddress){case 1:X=_.q(A,c7J);if(!X)return S.return();_.e4(S,2);if(!X.imageBytes&&!X.imageUrl)throw Error("wi");if(!X.imageUrl){if(X.imageBytes){J=X.imageBytes;Y=J.replace(/-/g,"+").replace(/_/g,"/");var w=H1d(Y);x=_.Qo(w)}S.jumpTo(4);break}return S.yield(fetch(X.imageUrl),5);case 5:return T=S.yieldResult,S.yield(T.blob(),6);case 6:V=S.yieldResult,x=_.Qo(V);case 4:t=(E=L)==null?void 0:(n=E.form)==
null?void 0:n.element;b=document.createElement("a");yo(b,x);t.appendChild(b);b.download="";b.click();t.removeChild(b);URL.revokeObjectURL(_.G2(x));X.successCommand&&O.JSC$18196_commandHandler.resolveCommand(X.successCommand);_.zA(S,0);break;case 2:_.S4(S),X.errorCommand&&O.JSC$18196_commandHandler.resolveCommand(X.errorCommand),_.qo(S)}})};
iL[dx]=[_.x$];var N$=function(A){this.store=A};
_.g(N$,ML);N$.prototype.resolveCommand=function(A){var L=this,O,X,x;return _.u(function(J){X=(O=_.q(A,_.Ya3))==null?void 0:O.entityBatchUpdate;if(!X)return J.jumpTo(0);x=Object.assign({},X,{mutations:[].concat(_.le(X.mutations||[]))});return J.yield(_.hY(x,L.store),0)})};var geM=function(A){this.JSC$18203_commandHandler=A;this.feedbackDialogMap=new Map};
geM.prototype.openDialog=function(A,L){(A=this.feedbackDialogMap.get(A))&&this.JSC$18203_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:A}},L)};
geM[dx]=[_.x$];var r5=new _.Yx("FEEDBACK_CONTROLLER_TOKEN");var KF=new _.Yx("APP_STORE_TOKEN");var Gh=function(A,L){this.store=A;this.controller=L};
_.g(Gh,ML);Gh.prototype.resolveCommand=function(A,L){var O=this,X,x,J,Y,T,V,E,n,t,b,S,w,l,F,R,y,M,H;return _.u(function(z){if(z.nextAddress==1){X=_.q(A,_.y7);if(J=(x=X)==null?void 0:x.contentId)for(T=_.d(((Y=X)==null?void 0:Y.actions)||[]),V=T.next();!V.done;V=T.next())E=V.value,wJJ(O,E,J);b=(n=L)==null?void 0:(t=n.form)==null?void 0:t.element;return z.yield(_.TZ(b,[A,{impression:(S=L)==null?void 0:S.disableClickTracking}]).catch(function(){}),2)}w=z.yieldResult;
((l=w)==null?0:(F=l.data)==null?0:(R=F.feedbackResponses)==null?0:R.length)&&(M=(y=w.data.feedbackResponses[0])==null?void 0:y.followUpDialog)&&J&&(H=O.controller)!=null&&H.feedbackDialogMap.set(J,M);_.qo(z)})};
var wJJ=function(A,L,O){var X=_.q(L,_.em);if(X){X=_.d(X.commands||[]);for(var x=X.next();!x.done;x=X.next())wJJ(A,x.value,O)}_.q(L,_.Cb)&&A.store.dispatch(_.NV("commandEntity",nku(O),{key:O,command:L}));_.q(L,ojg)&&A.store.dispatch(_.NV("commandEntity",nku(O),{key:O,command:L}))};
Gh[dx]=[KF,r5];var lL=function(A){this.controller=A};
_.g(lL,ML);lL.prototype.resolveCommand=function(A,L){var O=this,X,x,J,Y;return _.u(function(T){X=_.q(A,_.jJ);J=(x=X)==null?void 0:x.targetId;if(((Y=X)==null?void 0:Y.signal)!=="TELL_US_WHY"||!J)return T.return();O.controller.openDialog(J,L);_.qo(T)})};
lL[dx]=[r5];var c0=function(A){this.store=A};
_.g(c0,ML);c0.prototype.resolveCommand=function(A,L){var O=this,X,x,J,Y,T,V,E;return _.u(function(n){X=_.q(A,iKD);J=(x=X)==null?void 0:x.contentId;V=(Y=L)==null?void 0:(T=Y.form)==null?void 0:T.element;E=_.TZ(V,[A]);J&&O.undo(J);return n.yield(E,0)})};
c0.prototype.undo=function(A){this.store.dispatch(_.NV("commandEntity",nku(A),{key:A,command:void 0}))};
c0[dx]=[KF];var CF=function(A){this.JSC$18218_commandHandler=A};
_.g(CF,ML);CF.prototype.resolveCommand=function(A){var L=this,O,X,x,J,Y,T,V,E;return _.u(function(n){O=_.q(A,iDl);X=O.flowStateKey;x=O.validationFailureCommand;J=O.submitValidFormCommand;Y=dWP(_.xD,[X||""]);T=_.q(Y,rrn);((V=T)==null?0:V.isValid)&&J&&L.JSC$18218_commandHandler.resolveCommand(J);((E=T)==null?0:E.isValid)||!x||L.JSC$18218_commandHandler.resolveCommand(x);_.qo(n)})};
CF[dx]=[_.x$];var FY=function(A){this.innertubeTransportService=A};
_.g(FY,ML);FY.prototype.resolveCommand=function(A,L){var O=this,X;return _.u(function(x){return x.yield(_.oQ(O.innertubeTransportService,A,(X=L)==null?void 0:X.form).then(function(J){var Y,T;L==null||(Y=L.commandController)==null||(T=Y.onSuccess)==null||T.call(Y,A,J)},function(J){var Y,T;
L==null||(Y=L.commandController)==null||(T=Y.onServerError)==null||T.call(Y,A,J)}),0)})};
FY[dx]=[_.Ia];var RK=function(){};
_.g(RK,ML);RK.prototype.resolveCommand=function(A){var L,O,X,x;return _.u(function(J){if(L=_.q(A,_.Wng)){if(O=L.gtmId)X=_.ms("GL",""),_.y6(O,X);(x=L.gtmData)&&_.ZY(x)}_.qo(J)})};var Q8=function(A,L){this.innertubeTransportService=A;this.JSC$18229_actionRouter=L};
_.g(Q8,ML);Q8.prototype.resolveCommand=function(A){var L=this,O,X;return _.u(function(x){O=_.q(A,wbl);if(!O)return x.return();X=O.command;if(!X)return x.return();L.JSC$18229_actionRouter.triggerAction("yt-insert-rich-section-action",O);return x.yield(_.oQ(L.innertubeTransportService,X,{disableCache:!0}),0)})};
Q8[dx]=[_.Ia,dm];Bbp.bind(null,$6);var pJn=Bbp.bind(null,LI6);$me.bind(null,$6);var i9J=$me.bind(null,LI6);k5J.bind(null,$6);var Nu7=k5J.bind(null,LI6);var mV=function(){};
_.g(mV,ML);
mV.prototype.resolveCommand=function(A){var L,O,X,x,J,Y,T,V,E,n;return _.u(function(t){L=_.q(A,dIH);if(!L)return t.return();X=((O=L.operations)==null?void 0:O.operations)||[];x=_.d(X);for(J=x.next();!J.done;J=x.next())if(Y=J.value,Y.insertItemSectionContent){var b=Y.insertItemSectionContent,S=b.contents||[];b.insertByPositionInSection?pJn(b.insertByPositionInSection.sectionTargetId,S,b.insertByPositionInSection.position):b.insertByRelativePositionInSection&&b.insertByRelativePositionInSection.sectionTargetId&&b.insertByRelativePositionInSection.itemTargetId&&
i9J(b.insertByRelativePositionInSection.sectionTargetId,b.insertByRelativePositionInSection.itemTargetId,S,b.insertByRelativePositionInSection.relativePosition)}else Y.replaceSection?(b=Y.replaceSection,S={},b.replaceByTargetId?S=b.replaceByTargetId:b.replaceByGroupId&&(S={targetId:b.replaceByGroupId.groupId,newContent:b.replaceByGroupId.newContent,undoKey:""}),S.newContent&&xgn(S.targetId,{continuationItems:[S.newContent]})):Y.removeItem?(b=Y.removeItem,b.removeByTargetId&&b.sectionTargetId&&Nu7(b.sectionTargetId,
b.removeByTargetId.targetIds||[])):Y.removeSection&&(Y.removeSection.removeByTargetId?(T=void 0,rsz(((T=Y.removeSection)==null?void 0:T.removeByTargetId.targetIds)||[])):Y.removeSection.removeByGroupId&&(V=void 0,rsz(((V=Y.removeSection)==null?void 0:V.removeByGroupId.groupIds)||[])));n=((E=L.operations)==null?void 0:E.scrollConfig)||{};KMz(n);_.qo(t)})};
var rsz=function(A){A=_.d(A);for(var L=A.next();!L.done;L=A.next())xgn(L.value,{continuationItems:[]})},KMz=function(A){if(A.scrollToItem){var L=A.scrollToItem.item||{},O=L.itemTargetId;
L=L.sectionTargetId;if(O&&L){var X=document.querySelector("[data-target-id="+L+"]"),x=X==null?void 0:X.querySelector("[data-target-id="+O+"]");X&&x&&setTimeout(function(){var J=x.offsetTop-X.offsetTop,Y;if(((Y=A.scrollToItem)==null?void 0:Y.scrollPosition)==="SCROLL_POSITION_CENTER")J-=X.offsetHeight/2,J+=x.offsetHeight/2;else{var T;((T=A.scrollToItem)==null?void 0:T.scrollPosition)==="SCROLL_POSITION_END"&&(J-=X.offsetHeight,J+=x.offsetHeight)}X.scroll({top:J,behavior:"smooth"})},100)}}};var fF=new _.Yx("CLIENT_NAME_TOKEN");var GOn=new _.Yx("DEFAULT_STORE_EXPIRATION_TOKEN");var IAp=new _.Yx("CLIENT_LOCATION_SERVICE_TOKEN");var IK=function(A,L,O){this.clientName=A||_.ms("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=L||_.QH.getInstance();this.JSC$18257_commandHandler=O||_.S5.instance};
_.g(IK,ML);IK.prototype.resolveCommand=function(A){var L=this,O,X;return _.u(function(x){X=(O=_.q(A,t0l))==null?void 0:O.onComplete;L.clientLocationService.clearLocationPlayabilityToken(L.clientName);X&&L.JSC$18257_commandHandler.resolveCommand(X);_.qo(x)})};
IK[dx]=[fF,IAp,_.x$];var y8=function(A){this.innertubeTransportService=A};
_.g(y8,ML);y8.prototype.resolveCommand=function(A,L){var O=this,X,x,J,Y;return _.u(function(T){J=(X=L)==null?void 0:(x=X.form)==null?void 0:x.element;return T.yield(_.oQ(O.innertubeTransportService,A,(Y=L)==null?void 0:Y.form).then(function(V){$2s(J,new CustomEvent("yt-service-request-completed"),{data:V},_.ms("openPopupConfig"))}),0)})};
y8[dx]=[_.Ia];var Zv=function(){};
_.g(Zv,ML);Zv.prototype.resolveCommand=function(A){var L,O;return _.u(function(X){L=_.q(A,crL);O=document.querySelector("mini-app-container-view-model");if(!L||!O)return X.return();L.isPlaying?O.dispatchEvent(new Event("play")):O.dispatchEvent(new Event("pause"));_.qo(X)})};var jF=function(){};
_.g(jF,ML);jF.prototype.resolveCommand=function(A){var L,O,X,x,J,Y,T;return _.u(function(V){L=_.q(A,mru);if((O=L)==null||!O.paramKeys)return V.return();X=L.paramKeys;x=_.jV(window.location.href);J=_.d(X);for(Y=J.next();!Y.done;Y=J.next())T=Y.value,x.JSC$11053_queryData_.remove(T);window.history.replaceState(window.history.state,document.title,x.toString());_.qo(V)})};var le$=function(){this.dropdownMap=new Map};_.csB=new _.Yx("DROPDOWN_CONTROLLER_TOKEN");var W0=function(A){this.controller=A};
_.g(W0,ML);W0.prototype.resolveCommand=function(A){var L=this,O,X,x,J;return _.u(function(Y){O=_.q(A,n5u);if(!O)return Y.return();X=O;x=X.dropdownId;J=X.selectedOptionIndex;if(x===void 0||J===void 0)return Y.return();var T=L.controller.dropdownMap.get(x);T&&T(J);_.qo(Y)})};
W0[dx]=[_.csB];var H0=function(A){this.controller=A};
_.g(H0,ML);H0.prototype.resolveCommand=function(A){var L=this,O;return _.u(function(X){return(O=_.q(A,GCV))?X.yield(L.controller.closeDialog(),0):X.return()})};
H0[dx]=[_.Qy];var zh=function(A){this.controller=A};
_.g(zh,ML);zh.prototype.resolveCommand=function(A){var L=this,O,X;return _.u(function(x){O=_.q(A,VKJ);if(!O)return x.return();var J,Y=O.panelIdentifier||((J=O.identifier)==null?void 0:J.tag);if(!Y)throw Error("xi");return(X=Y)?x.yield(L.controller.hidePanel(X),0):x.jumpTo(0)})};
zh[dx]=[_.FC];var B0=function(A,L){this.innertubeTransportService=A;this.controller=L};
_.g(B0,ML);B0.prototype.resolveCommand=function(A){var L=this,O,X,x,J;return _.u(function(Y){if(Y.nextAddress==1)return O=_.q(A,D53),(X=O)!=null&&X.panelId?Y.yield(L.controller.getReloadContinuation(O.panelId),2):Y.return();if(Y.nextAddress!=3)return(x=Y.yieldResult)?Y.yield(_.oQ(L.innertubeTransportService,A,{continuation:x}),3):Y.return();J=Y.yieldResult;return Y.yield(L.controller.updatePanel(O.panelId,J.content,!1),0)})};
B0[dx]=[_.Ia,_.FC];var M$=function(A,L,O){this.innertubeTransportService=A;this.JSC$18293_screenManager=L;this.JSC$18293_commandHandler=O};
_.g(M$,ML);
M$.prototype.resolveCommand=function(A){var L=this,O,X,x,J,Y,T;return _.u(function(V){if(V.nextAddress==1){O=_.q(A,_.XBg);if(!O)return V.return();if(O.commands)for(X=_.d(O.commands),x=X.next();!x.done;x=X.next())J=x.value,L.JSC$18293_commandHandler.resolveCommand(J,{disableClickTracking:!0});Y=_.lV(A.clickTrackingParams);_.h7(L.JSC$18293_screenManager,21760,Y,{layer:7,parentLayer:0});return V.yield(_.oQ(L.innertubeTransportService,A),2)}T=V.yieldResult;if(!T)return V.return();L.JSC$18293_screenManager.graftServerVe(T.trackingParams,Y,
7);_.qo(V)})};
M$[dx]=[_.Ia,_.Rr,_.x$];var $R=new _.Yx("PANEL_LOADING_STRATEGY_TOKEN");var aK=function(A,L){this.controller=A;this.panelLoadingStrategy=L};
_.g(aK,ML);
aK.prototype.resolveCommand=function(A,L){var O=this,X,x,J;return _.u(function(Y){X=_.q(A,UvV);if((x=X)==null||!x.panelLoadingStrategy)return Y.return();J=function(T){var V,E,n,t,b,S,w,l,F;return _.u(function(R){E=_.q((V=T.dialogViewModel)==null?void 0:V.header,ts7);n={viewModel:T.dialogViewModel};t={};if(w=_.h("web_enable_dialog_header_label")?(b=E)==null?void 0:(S=b.headline)==null?void 0:S.content:void 0)t.ariaLabel=w;X.dismissOnBackgroundTap===!1&&(t.isModal=!0);return T.dialogViewModel?R.yield(O.controller.openDialog(n,
(l=L)==null?void 0:(F=l.form)==null?void 0:F.element,t),0):R.return()})};
return Y.yield(O.panelLoadingStrategy.execute({command:A,data:X.panelLoadingStrategy,renderFn:J,createScreenConfig:{layer:4}}),0)})};
aK[dx]=[_.Qy,$R];var kR=function(A,L,O){this.innertubeTransportService=A;this.controller=L;this.JSC$18313_screenManager=O};
_.g(kR,ML);
kR.prototype.resolveCommand=function(A,L){var O=this,X,x,J,Y,T,V,E,n,t,b,S,w;return _.u(function(l){switch(l.nextAddress){case 1:X=_.q(A,_.II);if(!X)return l.return();var F,R=X.panelIdentifier||((F=X.identifier)==null?void 0:F.tag);if(!R)throw Error("xi");x=R;return l.yield(O.controller.isVisible(x,!0),2);case 2:if((J=l.yieldResult)&&X.blockIfPanelOpen)return l.return();V=(T=(Y=O.controller).getPanelContent)==null?void 0:T.call(Y,x);if(!(F=V))if(X){var y;F=((y=X.globalConfiguration)==null?void 0:
y.initialState)||X.engagementPanel;if(y=!F)y=!!(X==null?0:(R=X.engagementPanelPresentationConfigs)==null?0:R.engagementPanelPopupPresentationConfig);y&&(F=_.Umr(X.panelIdentifier,X.identifier))}else F=void 0;E=F;n=X.engagementPanelPresentationConfigs;t=X.engagementPanelExtras;return l.yield(O.controller.showPanel(x,E,n,t,(b=L)==null?void 0:(S=b.form)==null?void 0:S.element),3);case 3:if(!X.globalConfiguration){l.jumpTo(0);break}_.h7(O.JSC$18313_screenManager,32633);return l.yield(_.oQ(O.innertubeTransportService,
A),5);case 5:return w=l.yieldResult,O.JSC$18313_screenManager.graftServerVe(w.trackingParams),l.yield(O.controller.updatePanel(x,w.content,!0,t,void 0,w.updatePanelContinuationData),0)}})};
kR[dx]=[_.Ia,_.FC,_.Rr];var UG=function(A,L){this.controller=A;this.panelLoadingStrategy=L};
_.g(UG,ML);UG.prototype.resolveCommand=function(A,L){var O=this,X,x,J,Y,T,V;return _.u(function(E){X=_.q(A,_.r0);if((x=X)==null||!x.panelLoadingStrategy)return E.return();T=Crn(O.controller,(J=L)==null?void 0:(Y=J.form)==null?void 0:Y.element);V=function(n){return _.u(function(t){return n.sheetViewModel?t.yield(O.controller.openSheet({viewModel:n.sheetViewModel},T),0):t.return()})};
return E.yield(O.panelLoadingStrategy.execute({command:A,data:X.panelLoadingStrategy,renderFn:V,createScreenConfig:{layer:0}}),0)})};
UG[dx]=[_.RW,$R];var v0=function(A,L){this.controller=A;this.JSC$18321_commandHandler=L};
_.g(v0,ML);v0.prototype.resolveCommand=function(A,L){var O=this,X,x,J;return _.u(function(Y){if(Y.nextAddress==1){X=_.q(A,tK7);var T=_.q(X.showCommand,_.II),V,E,n=(E=T==null?void 0:T.panelIdentifier)!=null?E:T==null?void 0:(V=T.identifier)==null?void 0:V.tag;if(!n)throw Error("yi");x=n;return Y.yield(O.controller.isVisible(x),2)}return(J=Y.yieldResult)?Y.yield(O.controller.hidePanel(x),0):Y.yield(O.JSC$18321_commandHandler.resolveCommand(X.showCommand,L),0)})};
v0[dx]=[_.FC,_.x$];var oK=function(A,L,O){this.innertubeTransportService=A;this.controller=L;this.JSC$18324_screenManager=O};
_.g(oK,ML);
oK.prototype.resolveCommand=function(A){var L=this,O,X,x,J,Y,T,V,E,n,t,b,S,w,l,F,R,y,M,H,z,a,xe;return _.u(function(ur){switch(ur.nextAddress){case 1:return X=O=_.q(A,bbn),x=X.targetPanelIdentifier,J=X.contentSourcePanelIdentifier,Y=X.globalConfiguration,((T=x)==null?0:T.tag)&&((V=J)==null?0:V.tag)?Y?ur.yield(L.controller.showPanel(x.tag,_.Umr(x.tag,x),void 0,void 0,void 0),5):ur.yield((b=(t=L.controller).getPanel)==null?void 0:b.call(t,J.tag),4):ur.return();case 4:S=ur.yieldResult;E=(w=S)==null?
void 0:(F=(l=w).getPanelContent)==null?void 0:F.call(l);ur.jumpTo(3);break;case 5:return ur.yield(_.oQ(L.innertubeTransportService,A),6);case 6:R=ur.yieldResult,((y=R)==null?0:y.trackingParams)&&L.JSC$18324_screenManager.graftServerVe(R.trackingParams),E=(M=R)==null?void 0:M.content,n=(H=R)==null?void 0:H.updatePanelContinuationData;case 3:if(a=(z=E)==null?void 0:z.engagementPanelSectionListRenderer)return ur.yield(L.controller.showPanel(x.tag,void 0,void 0,void 0,void 0,{content:a.content,secondaryHeaderContent:(xe=
a.header)!=null?xe:{},targetId:a.targetId},n),0);ur.jumpTo(0)}})};
oK[dx]=[_.Ia,_.FC,_.Rr];var AJ=function(){};
_.g(AJ,ML);var FMz=function(A){var L;return _.u(function(O){L=_.ms("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;A.JSC$18330_mainAppPlayer=new XC(L);document.addEventListener("yt-page-data-updated",A.JSC$18330_pauseOnNavigation.bind(A));_.qo(O)})};
AJ.prototype.JSC$18330_pauseOnNavigation=function(){var A=this,L,O;return _.u(function(X){if(X.nextAddress==1)return L=A.JSC$18330_mainAppPlayer,X.yield(L.api,2);O=X.yieldResult;O.pauseVideo();_.qo(X)})};
var RPk=function(A,L,O){var X;return _.u(function(x){X=A.JSC$18330_mainAppPlayer;return x.yield(X.loadVideoWithPlayerVars({videoId:L,audio_only:"1",player_params:O}),0)})};
AJ.prototype.pauseVideo=function(){var A=this,L,O;return _.u(function(X){if(X.nextAddress==1)return L=A.JSC$18330_mainAppPlayer,X.yield(L.api,2);O=X.yieldResult;O.pauseVideo();_.qo(X)})};
AJ.prototype.playVideo=function(){var A=this,L,O;return _.u(function(X){if(X.nextAddress==1)return L=A.JSC$18330_mainAppPlayer,X.yield(L.api,2);O=X.yieldResult;O.playVideo();_.qo(X)})};
var Qd$=function(A){var L,O;return _.u(function(X){if(X.nextAddress==1)return L=A.JSC$18330_mainAppPlayer,X.yield(L.api,2);O=X.yieldResult;O.mute();_.qo(X)})},myS=function(A){var L,O;
return _.u(function(X){if(X.nextAddress==1)return L=A.JSC$18330_mainAppPlayer,X.yield(L.api,2);O=X.yieldResult;O.unMute();_.qo(X)})},fen=function(A,L){return _.u(function(O){switch(O.nextAddress){case 1:switch(L){case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PLAY":return O.jumpTo(2);
case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PAUSE":return O.jumpTo(3);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_MUTE":return O.jumpTo(4);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_UNMUTE":return O.jumpTo(5)}O.jumpTo(0);break;case 2:return O.yield(A.playVideo(),7);case 7:O.jumpTo(0);break;case 3:return O.yield(A.pauseVideo(),8);case 8:O.jumpTo(0);break;case 4:return O.yield(Qd$(A),9);case 9:O.jumpTo(0);break;case 5:return O.yield(myS(A),10);case 10:O.jumpTo(0)}})};
AJ.prototype.resolveCommand=function(A){var L=this,O,X,x,J,Y,T,V,E,n,t,b;return _.u(function(S){return S.nextAddress==1?(O=_.q(A,NrL),((X=O)==null?0:X.newPlaybackParams)||((x=O)==null?0:x.controlAction)?L.JSC$18330_mainAppPlayer?S.jumpTo(2):S.yield(FMz(L),2):S.return()):((J=O)==null?0:J.newPlaybackParams)?(V=(Y=O)==null?void 0:(T=Y.newPlaybackParams)==null?void 0:T.externalVideoId,b=(t=(E=O)==null?void 0:(n=E.newPlaybackParams)==null?void 0:n.playerParams)!=null?t:"",V?S.yield(RPk(L,V,b),0):S.return()):
S.yield(fen(L,O.controlAction),0)})};var Lw=function(A){this.JSC$18337_commandHandler=A};
_.g(Lw,ML);
Lw.prototype.resolveCommand=function(A){var L=this,O,X,x,J,Y,T;return _.u(function(V){if(V.nextAddress==1)return(O=_.q(A,r_u))?V.yield(_.bS(),2):V.return();X=V.yieldResult;if(!X)return V.return();var E=X,n=(x=O)==null?void 0:x.languageCode,t=(J=O)==null?void 0:J.isAutoTranslated;E.getVideoData&&_.oA9(E).length&&((n=LoM(E,n,t))?E.setOption("captions","track",n):(E.setOption("captions","stickyLoading",{}),E.setOption("captions","track",{})));Y=X.isSubtitlesOn()?_.b3("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.b3("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");T=_.XZ(Y);L.JSC$18337_commandHandler.resolveCommand(T);_.qo(V)})};
Lw[dx]=[_.x$];var OF=function(A,L){this.shortsPlayerPromise=A;this.JSC$18341_commandHandler=L};
_.g(OF,ML);
OF.prototype.resolveCommand=function(A){var L=this,O,X,x,J,Y,T,V,E;return _.u(function(n){if(n.nextAddress==1)return(O=_.q(A,zCg))?n.yield(L.shortsPlayerPromise,2):n.return();X=n.yieldResult;var t=Oty(X);t!=null&&t.length||(X.loadModule("captions"),t=Oty(X));x=t;if((J=x)==null||!J.length)return Y=_.b3("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),T=_.XZ(Y),L.JSC$18341_commandHandler.resolveCommand(T),n.return();X.toggleSubtitles();V=X.isSubtitlesOn()?_.b3("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.b3("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");E=_.XZ(V);L.JSC$18341_commandHandler.resolveCommand(E);_.qo(n)})};
OF[dx]=[_.GGH,_.x$];var X$=function(A){this.JSC$18344_actionRouter=A;this.dismissPlayerOverlayActions=new Map([["player_overlay_timely_shelf",function(L,O){L.triggerAction("yt-dismiss-shopping-timely-shelf-action",O)}]])};
_.g(X$,ML);X$.prototype.resolveCommand=function(A){var L=this,O,X,x;return _.u(function(J){O=_.q(A,l_n);if((X=O)==null||!X.overlayId)return J.return();x=L.dismissPlayerOverlayActions.get(O.overlayId);if(!x)throw Error("zi`"+O.overlayId);x(L.JSC$18344_actionRouter,O);_.qo(J)})};
X$[dx]=[dm];var xn=function(A){this.JSC$18348_playerPromise=A};
_.g(xn,ML);xn.prototype.resolveCommand=function(A){var L=this,O,X,x,J;return _.u(function(Y){if(Y.nextAddress==1)return(O=_.q(A,Ep7))?Y.yield(L.JSC$18348_playerPromise,2):Y.return();X=Y.yieldResult;x=X.getVideoData().video_id;O.videoId===x&&(J=Number(O.offsetFromVideoStartMilliseconds),J>=0&&X.seekTo(J/1E3));_.qo(Y)})};
xn[dx]=[_.Dl];var Iez=_.Dn("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),sF=function(A){this.store=A};
_.g(sF,ML);
var ysJ=function(A){var L,O,X,x;return _.u(function(J){if(J.nextAddress==1)return L=_.ms("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,O=_.ms("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,X=L||O,A.JSC$18352_mainAppPlayer=new XC(X),J.yield(A.JSC$18352_mainAppPlayer.api,2);x=J.yieldResult;x.addEventListener("onStateChange",A.JSC$18352_playerStateChangeListener.bind(A));document.addEventListener("yt-page-data-updated",A.JSC$18352_pauseOnNavigation.bind(A));window.addEventListener("state-navigatestart",
A.JSC$18352_pauseOnNavigation.bind(A));_.qo(J)})};
sF.prototype.JSC$18352_playerStateChangeListener=function(A){switch(A){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"}Z9$(this)};
var Z9$=function(A){A.store.dispatch(_.NV("sfvAudioItemCurrentlyPlayingEntity",Iez,{key:Iez,externalVideoId:A.externalVideoId,sfvAudioItemPlaybackState:A.playbackState,nowPlayingEntityValue:A.nowPlayingEntityValue}))};
sF.prototype.JSC$18352_pauseOnNavigation=function(){var A=this,L,O,X,x;return _.u(function(J){if(J.nextAddress==1){if(!A.JSC$18352_mainAppPlayer){var Y=new _.pe("Error: mainAppPlayer is unavailable",A.JSC$18352_mainAppPlayer);_.C7(Y);return J.return()}return J.yield(A.JSC$18352_mainAppPlayer.api,2)}L=J.yieldResult;X=(O=L)==null?void 0:O.getPlayerState();X!==1||(x=L)!=null&&x.pauseVideo();_.qo(J)})};
sF.prototype.playVideo=function(A,L,O){var X=this,x,J;return _.u(function(Y){if(Y.nextAddress==1)return Y.yield((x=X.JSC$18352_mainAppPlayer)==null?void 0:x.api,2);J=Y.yieldResult;if(!X.JSC$18352_mainAppPlayer||!J){var T=new _.pe("Error: mainAppPlayer is unavailable",X.JSC$18352_mainAppPlayer);_.C7(T);return Y.return()}return Y.yield(X.JSC$18352_mainAppPlayer.loadVideoWithPlayerVars({videoId:X.externalVideoId,audio_only:"1",start:A/1E3,end:A/1E3+L,player_params:O}),0)})};
sF.prototype.pauseVideo=function(){var A=this,L,O;return _.u(function(X){if(X.nextAddress==1){if(!A.JSC$18352_mainAppPlayer){var x=new _.pe("Error: mainAppPlayer is unavailable",A.JSC$18352_mainAppPlayer);_.C7(x);return X.return()}return X.yield(A.JSC$18352_mainAppPlayer.api,2)}L=X.yieldResult;(O=L)==null||O.pauseVideo();_.qo(X)})};
sF.prototype.resolveCommand=function(A){var L=this,O,X,x,J,Y,T,V,E,n,t,b,S,w,l,F,R,y,M,H;return _.u(function(z){if(z.nextAddress==1)return O=_.q(A,ZbL),x=(X=O)==null?void 0:X.nowPlayingEntityValue,Y=(J=O)==null?void 0:J.externalVideoId,t=Number((n=(T=O)==null?void 0:(V=T.defaultStartPoints)==null?void 0:(E=V[0])==null?void 0:E.offsetMs)!=null?n:"0"),R=Number((F=(b=O)==null?void 0:(S=b.defaultStartPoints)==null?void 0:(w=S[0])==null?void 0:(l=w.duration)==null?void 0:l.seconds)!=null?F:"15"),H=(M=
(y=O)==null?void 0:y.playerParams)!=null?M:"",x&&Y?L.JSC$18352_mainAppPlayer?z.jumpTo(2):z.yield(ysJ(L),2):z.return();if(z.nextAddress!=6){if(L.nowPlayingEntityValue&&x===L.nowPlayingEntityValue)return L.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?z.yield(L.pauseVideo(),0):z.yield(L.playVideo(t,R,H),0);L.externalVideoId=Y;L.nowPlayingEntityValue=x;L.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return z.yield(L.playVideo(t,R,H),6)}Z9$(L);return z.jumpTo(0)})};
sF[dx]=[V7];var JJ=function(A){this.JSC$18372_commandHandler=A};
_.g(JJ,ML);JJ.prototype.resolveCommand=function(A,L){var O=this,X,x,J,Y,T;return _.u(function(V){if(V.nextAddress==1)return(X=_.q(A,KdV))?V.yield(_.bS(),2):V.return();x=V.yieldResult;if(!x)return V.return();(J=PFp(x))?O.JSC$18372_commandHandler.resolveCommand(J,L):(Y=_.b3("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),T=_.XZ(Y),O.JSC$18372_commandHandler.resolveCommand(T));_.qo(V)})};
JJ[dx]=[_.x$];var PE=function(A){this.JSC$18375_playerPromise=A};
_.g(PE,ML);PE.prototype.resolveCommand=function(A){var L=this,O,X,x,J,Y;return _.u(function(T){if(T.nextAddress==1){O=_.q(A,npV);if(!O)return T.return();X=O.overlayRenderer;return X?(x=_.q(X,cMN))?T.yield(L.JSC$18375_playerPromise,3):T.jumpTo(0):T.return()}J=T.yieldResult;J.renderChapterSeekingAnimation(1,_.vG(x.text),(Y=x.icon)==null?void 0:Y.iconType);_.qo(T)})};
PE[dx]=[_.Dl];var d7=function(A){this.store=A};
_.g(d7,ML);
d7.prototype.resolveCommand=function(A){var L=this,O,X,x;return _.u(function(J){if(J.nextAddress==1){O=_.q(A,rw6);if(!O)return J.return();X="";(x=L.store.getState().collabInviteLink)&&O.id===x.playlistId?X=x.inviteLinkURL:O.shortUrl&&(X=O.shortUrl);return X?J.yield(navigator.clipboard.writeText(X),3):J.jumpTo(0)}var Y={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.b3("COPY_LINK_SUCCESS_TOAST")}}}}};_.X5().resolve(_.x$).resolveCommand(Y);_.qo(J)})};
d7[dx]=[KF];var Yn=function(A,L){this.innertubeTransportService=A;this.JSC$18385_commandHandler=L};
_.g(Yn,ML);Yn.prototype.resolveCommand=function(A,L){var O=this,X,x,J,Y,T,V,E,n,t,b;return _.u(function(S){if(S.nextAddress==1)return(X=_.q(A,_.U7))?S.yield(_.oQ(O.innertubeTransportService,A,(x=L)==null?void 0:x.form),2):S.return();(J=S.yieldResult)&&J.errorMetadata&&(Y=J,T=_.XZ(Y.error.message),O.JSC$18385_commandHandler.resolveCommand(T));V=J;if((E=V)==null?0:E.actions)for(n=_.d(V.actions),t=n.next();!t.done;t=n.next())b=t.value,O.JSC$18385_commandHandler.resolveCommand(b);_.qo(S)})};
Yn[dx]=[_.Ia,_.x$];var u7=function(){};
_.g(u7,ML);u7.prototype.resolveCommand=function(A){var L;return _.u(function(O){L=_.q(A,tr6);if(!L)return O.return();(new l0L(L)).show();_.qo(O)})};_.TH=new _.Yx("PLAYLIST_EDIT_CONTROLLER_TOKEN");var Vm=function(A,L,O,X){this.store=A;this.innertubeTransportService=L;this.controller=O;this.JSC$18393_commandHandler=X};
_.g(Vm,ML);
Vm.prototype.resolveCommand=function(A,L){var O=this,X,x,J,Y,T,V,E,n,t,b,S,w,l,F,R,y,M,H,z,a,xe,ur,eD,gu,ir,SD;return _.u(function(HJ){if(HJ.nextAddress==1){X=_.q(A,_.zF);if(!X)return HJ.return();if(X.clientActions){x=_.d(X.clientActions);for(J=x.next();!J.done;J=x.next())Y=J.value,O.JSC$18393_commandHandler.resolveCommand(Y);var mM,Vu=L==null?void 0:(mM=L.form)==null?void 0:mM.element;Vu&&_.P4(Vu,"yt-dismissible-item-action",X.clientActions)}return HJ.yield(_.oQ(O.innertubeTransportService,A,(T=
L)==null?void 0:T.form),2)}if(V=HJ.yieldResult)V.errorMetadata?(E=V,n=_.XZ(E.error.message),O.JSC$18393_commandHandler.resolveCommand(n),"error"in V&&((t=L)==null?0:(b=t.commandController)==null?0:b.onServerError)&&((S=L)==null||(w=S.commandController)==null||w.onServerError(A,V))):(l=L)==null||(F=l.commandController)==null||(y=(R=F).onSuccess)==null||y.call(R,A,V);M=V;((H=M)==null?0:H.collaborationInviteLink)&&X.playlistId&&(_.h("web_enable_invite_collaborators_link")||_.h("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
O.store.dispatch(_.JY({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:X.playlistId,inviteLinkUrl:M.collaborationInviteLink}}));((z=M)==null?0:z.redirectEndpoint)&&O.JSC$18393_commandHandler.resolveCommand(M.redirectEndpoint);((a=M)==null?0:(xe=a.newHeader)==null?0:xe.playlistHeaderRenderer)?jdJ(O.controller,M.newHeader.playlistHeaderRenderer):((ur=M)==null?0:(eD=ur.newHeader)==null?0:eD.musicEditablePlaylistDetailHeaderRenderer)&&jdJ(O.controller,M.newHeader.musicEditablePlaylistDetailHeaderRenderer);
O.controller.playlistVideoListElement&&((gu=M)==null?0:(ir=gu.playlistEditResults)==null?0:(SD=ir[0])==null?0:SD.playlistEditVideoAddedResultData)&&((Vu=O.controller.playlistVideoListElement)==null||Vu.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:M.playlistEditResults[0].playlistEditVideoAddedResultData})));_.qo(HJ)})};
Vm[dx]=[KF,_.Ia,_.TH,_.x$];var Dj=function(A,L){this.controller=A;this.JSC$18403_commandHandler=L};
_.g(Dj,ML);Dj.prototype.resolveCommand=function(A,L){var O=this,X,x,J;return _.u(function(Y){X=_.q(A,KZg);O.controller.showRefreshPill&&((x=X)==null?0:x.command)&&(O.JSC$18403_commandHandler.resolveCommand((J=X)==null?void 0:J.command,L),O.controller.showRefreshPill=!1);_.qo(Y)})};
Dj[dx]=[_.ek,_.x$];var ey=function(A,L){this.store=A;this.JSC$18407_commandHandler=L||_.S5.instance};
_.g(ey,ML);ey.prototype.resolveCommand=function(A,L){var O=this,X,x,J,Y,T,V,E,n,t,b;return _.u(function(S){X=_.q(A,jLu);x=O.store.getState().radioButtonGroup;if((J=X)==null?0:J.command)O.JSC$18407_commandHandler.resolveCommand((Y=X)==null?void 0:Y.command,L);else if(x&&((T=X)==null?void 0:T.formId)===x.currentFormId)for(V=Object.values(x.commandsMap),E=_.d(V),n=E.next();!n.done;n=E.next())t=n.value,(b=_.HR(t))&&O.JSC$18407_commandHandler.resolveCommand(b,L);_.qo(S)})};
ey[dx]=[_.al];var EF=new _.Yx("USER_PREFS");var nw=function(A){this.JSC$18412_prefCookie=A};
_.g(nw,ML);nw.prototype.resolveCommand=function(A){var L=this,O;return _.u(function(X){(O=_.q(A,Y13))&&typeof O.useListView==="boolean"&&(_.gQ(0,155,O.useListView),L.JSC$18412_prefCookie.save());_.qo(X)})};
nw[dx]=[EF];var tJ=function(A){this.JSC$18416_prefCookie=A};
_.g(tJ,ML);tJ.prototype.resolveCommand=function(A){var L=this,O,X,x,J,Y;return _.u(function(T){O=_.q(A,hj6);if((X=O)==null||!X.gl)return T.return();x=O.gl;J={persist_gl:"1",gl:x};L.JSC$18416_prefCookie.set("gl",x);L.JSC$18416_prefCookie.save();Y=TwN(J);_.$c(Y);_.qo(T)})};
tJ[dx]=[EF];var b7=function(A){this.JSC$18420_prefCookie=A};
_.g(b7,ML);b7.prototype.resolveCommand=function(A){var L=this,O,X;return _.u(function(x){O=_.q(A,lP6);if(!O)return x.return();X=!1;O.flagNum&&typeof O.value==="boolean"?(_.gQ(0,O.flagNum,O.value),X=!0):O.key&&typeof O.stringValue==="string"&&(L.JSC$18420_prefCookie.set(O.key,O.stringValue),X=!0);X&&L.JSC$18420_prefCookie.save();_.qo(x)})};
b7[dx]=[EF];var hJ=new _.Yx("PREF_STORAGE_PROMISE_TOKEN");var Sy=function(A){this.JSC$18424_prefStoragePromise=A};
_.g(Sy,ML);Sy.prototype.resolveCommand=function(A){var L=this,O,X;return _.u(function(x){if(x.nextAddress==1)return(O=_.q(A,C5J))?x.yield(L.JSC$18424_prefStoragePromise,2):x.return();X=x.yieldResult;return X===void 0||O.key===void 0||O.value===void 0?x.return():x.yield(X.set(O.key,O.value),0)})};
Sy[dx]=[hJ];var WMX=function(A){this.innertubeTransportService=A};
_.g(WMX,ML);WMX.prototype.resolveCommand=function(A,L){var O=this,X,x;return _.u(function(J){(X=_.q(A,_.uGj))&&X&&X.isFirstRequest&&(_.Fz("search_overview_answer"),_.Rk("so_rq",void 0,"search_overview_answer"));return J.yield(_.oQ(O.innertubeTransportService,A,(x=L)==null?void 0:x.form),0)})};
WMX[dx]=[_.Ia];var H97=function(){};
_.g(H97,ML);
H97.prototype.resolveCommand=function(A){var L,O,X,x,J,Y,T,V,E;return _.u(function(n){L=_.q(A,eC3);if((O=L)==null?0:O.sectionIdentifier){if(L.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(x=(X=document.getElementsByTagName(L.sectionIdentifier))==null?void 0:X.item(0))x.scrollIntoView({behavior:"smooth"}),(J=mbP(x))&&J.focus({preventScroll:!0});return n.return()}Y=document.querySelector("[section-identifier="+L.sectionIdentifier+"]");T=document.querySelector("[section-identifier="+L.referenceSectionIdentifier+
"]");if(!Y)return n.return();V=L.verticalScrollOffsetDp?L.verticalScrollOffsetDp:0;T&&(V-=T.offsetTop);window.scrollTo({top:Y.offsetTop+V,behavior:"smooth"});(E=mbP(Y))&&E.focus({preventScroll:!0})}_.qo(n)})};var qu=function(A){this.JSC$18436_commandHandler=A};
_.g(qu,ML);
qu.prototype.resolveCommand=function(A){var L=this,O,X,x,J,Y,T,V;return _.u(function(E){if(E.nextAddress==1){O=_.q(A,C4g);if(!O||!O.imageBytes||!navigator.clipboard)return E.return();if(O.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.C7(Error("Bi")),E.return();_.e4(E,2);x=(X=O)==null?void 0:X.imageBytes;J=x.replace(/-/g,"+").replace(/_/g,"/");Y=H1d(J);T={};V=[new ClipboardItem((T[Y.type]=Y,T))];return E.yield(navigator.clipboard.write(V),4)}if(E.nextAddress!=2)return O.successCommand&&
L.JSC$18436_commandHandler.resolveCommand(O.successCommand),_.zA(E,0);_.S4(E);O.errorCommand&&L.JSC$18436_commandHandler.resolveCommand(O.errorCommand);_.qo(E)})};
qu[dx]=[_.x$];var g7=function(A,L){this.innertubeTransportService=A;this.JSC$18440_commandHandler=L};
_.g(g7,ML);g7.prototype.resolveCommand=function(A,L){var O=this,X,x,J,Y,T;return _.u(function(V){if(V.nextAddress==1)return(X=_.q(A,F07))?V.yield(_.oQ(O.innertubeTransportService,A,(x=L)==null?void 0:x.form),2):V.return();(J=V.yieldResult)&&J.errorMetadata&&X.onFailureCommand&&O.JSC$18440_commandHandler.resolveCommand(X.onFailureCommand);Y=J;((T=Y)==null?0:T.shareCommand)&&O.JSC$18440_commandHandler.resolveCommand(Y.shareCommand,L);_.qo(V)})};
g7[dx]=[_.Ia,_.x$];var w7=function(){};
_.g(w7,ML);w7.prototype.resolveCommand=function(A){var L,O;return _.u(function(X){L=_.q(A,ing);if(!L||!navigator.share)return X.return();O={url:L.url};try{return X.return(navigator.share(O))}catch(x){}_.qo(X)})};var pw=function(){};
_.g(pw,ML);pw.prototype.resolveCommand=function(){return _.u(function(A){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.qo(A)})};var i7=function(A){this.JSC$18450_navigationConfirmationService=A};
_.g(i7,ML);i7.prototype.resolveCommand=function(){var A=this;return _.u(function(L){A.JSC$18450_navigationConfirmationService.cancelPendingNavigation();_.qo(L)})};
i7[dx]=[iR];var Nu=function(A){this.JSC$18453_screenManager=A};
_.g(Nu,ML);Nu.prototype.resolveCommand=function(A,L){var O=this,X,x,J,Y,T,V,E;return _.u(function(n){x=(X=L.form)==null?void 0:X.event;Y=(J=L.form)==null?void 0:J.element;if(!x)throw new _.pe("Event not passed in when resolving command");T=_.d(x.composedPath());for(V=T.next();!V.done;V=T.next())if(E=V.value,E.tagName==="YT-COPY-LINK-RENDERER")return E.copyUrlToClipboard(),Y&&_.k4(O.JSC$18453_screenManager,Y),n.return();_.qo(n)})};
Nu[dx]=[_.Rr];var r7=function(){this.JSC$18457_miniAppClientDataProvider=_.X5().resolve(_.vv)};
_.g(r7,ML);r7.prototype.resolveCommand=function(){var A=this,L,O;return _.u(function(X){if(A.JSC$18457_miniAppClientDataProvider.clientData.has("video_id")){var x=A.JSC$18457_miniAppClientDataProvider,J=x.clientData.get("video_id");J&&x.clientData.delete("video_id");L="https://youtube.com/watch?v="+J;O=C_(L);if(O===void 0)throw Error("Ci`"+L);_.z2(window,O)}_.qo(X)})};var Kw=function(){};
_.g(Kw,ML);Kw.prototype.resolveCommand=function(){return _.u(function(A){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.qo(A)})};var GH=function(){};
_.g(GH,ML);GH.prototype.resolveCommand=function(){var A;return _.u(function(L){if(L.nextAddress==1)return L.yield(_.YSO(window.document.documentElement),2);(A=document.querySelector("mini-app-container-view-model iframe"))&&A.focus();_.qo(L)})};var l7=function(A){this.JSC$18464_navigationConfirmationService=A};
_.g(l7,ML);
l7.prototype.resolveCommand=function(){var A=this;return _.u(function(L){var O=A.JSC$18464_navigationConfirmationService,X=_.X5().resolve(_.Rl),x;if(((x=O.navigateParams)==null?void 0:x.data)!==void 0){var J;_.yPu(X,O.navigateParams.endpoint,O.navigateParams.data,(J=O.navigateParams.navigationType)!=null?J:1,O.navigateParams.tempData,O.navigateParams.isMiniplayer,void 0,!0);O.navigateParams=void 0;O.customConfirmationCommand=void 0}else O.navigateParams&&(X.navigate(O.navigateParams.endpoint,O.navigateParams.reload,
O.navigateParams.params,O.navigateParams.tempData,O.navigateParams.requestType,O.navigateParams.createScreenConfig,!0),O.navigateParams=void 0,O.customConfirmationCommand=void 0);_.qo(L)})};
l7[dx]=[iR];var cE=function(){};
_.g(cE,ML);cE.prototype.resolveCommand=function(){return _.u(function(A){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.qo(A)})};var Cw=function(A){this.JSC$18469_prefStorage=A};
_.g(Cw,ML);Cw.prototype.resolveCommand=function(){var A=this,L,O;return _.u(function(X){switch(X.nextAddress){case 1:return X.yield(A.JSC$18469_prefStorage,2);case 2:return(L=X.yieldResult)?X.yield(L.set("sfvle",!1),3):X.return();case 3:return X.yield(L.set("sfvles",!0),4);case 4:O=_.qG(),_.gQ(0,203,!1),_.gQ(0,204,!0),O.save(),_.qo(X)}})};
Cw[dx]=[hJ];var F$=function(A){this.JSC$18472_prefStorage=A};
_.g(F$,ML);F$.prototype.resolveCommand=function(){var A=this,L,O;return _.u(function(X){switch(X.nextAddress){case 1:return X.yield(A.JSC$18472_prefStorage,2);case 2:return(L=X.yieldResult)?X.yield(L.set("sfvle",!0),3):X.return();case 3:return X.yield(L.set("sfvles",!0),4);case 4:O=_.qG(),_.gQ(0,203,!0),_.gQ(0,204,!0),O.save(),_.qo(X)}})};
F$[dx]=[hJ];_.zPZ=new _.Yx("SNACKBAR_CONTROLLER_TOKEN");_.BuM=new _.Yx("SHOULD_SHOW_PIVOT_BAR_TOKEN");var R2=function(A){this.controller=A};
_.g(R2,ML);R2.prototype.resolveCommand=function(A){var L=this,O;return _.u(function(X){O=_.q(A,k6g);if(!O)return X.return();var x=L.controller;x.closeSnackbarFn&&x.closeSnackbarFn();_.qo(X)})};
R2[dx]=[_.zPZ];var Qm=function(A,L){this.controller=A;this.sheetController=L};
_.g(Qm,ML);Qm.prototype.resolveCommand=function(A,L){var O=this,X,x,J,Y,T,V;return _.u(function(E){X=_.q(A,v1l);if(!X)return E.return();Y=Crn(O.sheetController,(x=L)==null?void 0:(J=x.form)==null?void 0:J.element);T=_.q(X.content,Vs6);if(!T)return E.return();var n=O.controller,t=T,b=(V=X.animationStyle)!=null?V:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(n.showSnackbarFn)n.showSnackbarFn({snackbarViewModel:t,animationStyle:b,durationMs:X.durationSeconds*1E3,target:Y});else throw Error("lj");_.qo(E)})};
Qm[dx]=[_.zPZ,_.RW];var m3=function(){};
_.g(m3,ML);m3.prototype.resolveCommand=function(A){var L;return _.u(function(O){L=_.q(A,cwn);if(!L||typeof L.key!=="string"||typeof L.value!=="string")return O.return();window.localStorage.setItem(L.key,L.value);_.qo(O)})};var fw=function(A){this.store=A};
_.g(fw,ML);fw.prototype.resolveCommand=function(A){var L=this,O;return _.u(function(X){O=_.q(A,pcu);if(!O||!O.stepId||!O.token)return X.return();L.store.dispatch(cNj({stepId:O.stepId,token:O.token,isSelected:!1}));_.qo(X)})};
fw[dx]=[KF];var I2=function(A,L,O){this.innertubeTransportService=A;this.store=L;this.JSC$18491_screenManager=O};
_.g(I2,ML);
I2.prototype.resolveCommand=function(A){var L=this,O,X,x,J,Y,T,V,E,n,t,b,S,w,l,F,R,y,M,H,z,a,xe,ur;return _.u(function(eD){O=_.q(A,pb7);if(!O||(X=O.stepIds)==null||!X.length)return eD.return();x=L.store.getState().talkToRecs;J=[];Y=[];T=_.d(O.stepIds);for(V=T.next();!V.done;V=T.next())for(E=V.value,n=void 0,(t=(n=x.stepStates[E])==null?void 0:n.userQuery)&&Y.push({userQuery:t.userQuery,userQueryToken:t.token}),b=void 0,S=(b=x.stepStates[E])==null?void 0:b.selectionStates,w=_.d(Object.entries(S)),l=
w.next();!l.done;l=w.next())F=l.value,R=_.d(F),y=R.next().value,M=R.next().value,H=y,z=M,z.isSelected&&J.push(H);a={selectedChipTokens:J,userQueries:Y,submittedStepIds:O.stepIds};xe={browseTalk2recsFormData:a};O.browseEndpoint?(ur=A,_.Iy(ur,_.gM,O.browseEndpoint)):O.command&&(ur=O.command);return ur?eD.yield(_.oQ(L.innertubeTransportService,ur,{formData:xe,disableCache:!0}).then(function(gu){(gu==null?0:gu.trackingParams)&&L.JSC$18491_screenManager.graftServerVe(gu==null?void 0:gu.trackingParams)}),
0):eD.return()})};
I2[dx]=[_.Ia,KF,_.Rr];var ym=function(A){this.store=A};
_.g(ym,ML);ym.prototype.resolveCommand=function(A){var L=this,O;return _.u(function(X){O=_.q(A,wcd);if(!O||!O.stepId||!O.token)return X.return();L.store.dispatch(cNj({stepId:O.stepId,token:O.token,isSelected:!0}));_.qo(X)})};
ym[dx]=[KF];var Zj=function(A){this.store=A};
_.g(Zj,ML);Zj.prototype.resolveCommand=function(A,L){var O=this,X,x,J,Y,T;return _.u(function(V){X=_.q(A,icJ);if(!X||!X.stepId||!X.userQueryToken)return V.return();T=(Y=(x=L)==null?void 0:(J=x.form)==null?void 0:J.userQuery)!=null?Y:"";O.store.dispatch(_.JY({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:X.stepId,userQueryToken:X.userQueryToken,userQuery:T}}));_.qo(V)})};
Zj[dx]=[KF];_.MDM=new _.Yx("TIMELY_ACTIONS_CONTROLLER_TOKEN");var jy=function(A){this.controller=A};
_.g(jy,ML);jy.prototype.resolveCommand=function(A){var L=this,O,X,x,J;return _.u(function(Y){O=_.q(A,Tqn);if(!O)return Y.return();X=O;x=X.id;J=X.isVisible;if(x===void 0||J===void 0)return Y.return();var T;(T=L.controller.timelyActionsMap.get(x))==null||T(x,J);_.qo(Y)})};
jy[dx]=[_.MDM];var $y$=function(){this.timelyActionsMap=new Map};var WE=function(A){this.JSC$18518_commandHandler=A};
_.g(WE,ML);WE.prototype.resolveCommand=function(A){var L=this,O,X,x,J,Y;return _.u(function(T){O=_.q(A,_.cB);if(!O)return T.return();J=(X=O.item)==null?void 0:(x=X.notificationTextRenderer)==null?void 0:x.successResponseText;if(!J)return T.return();Y=_.OP(J);L.JSC$18518_commandHandler.resolveCommand(Y);_.qo(T)})};
WE[dx]=[_.x$];var HE=function(A,L){this.innertubeTransportService=A;this.JSC$18523_playerApiPromise=L};
_.g(HE,ML);
HE.prototype.resolveCommand=function(A){var L=this,O,X,x,J,Y,T,V,E,n;return _.u(function(t){if(t.nextAddress==1)return t.yield(L.JSC$18523_playerApiPromise,2);O=t.yieldResult;X=O.getOption("captions","track");x=Object.assign({},_.q(A,_.oIH));(Y=(J=O.getVideoData())==null?void 0:J.video_id)?x.externalVideoId=Y:_.HY(Error("Di"));if((T=X)==null?0:T.languageCode)x.languageCode=X.languageCode;if((V=X)==null?0:V.kind)x.kind=X.kind;if((E=X)==null?0:E.name)x.name=X.name;n=Object.assign({},A,{getTranscriptEndpoint:x});return t.yield(_.oQ(L.innertubeTransportService,
n),0)})};
HE[dx]=[_.Ia,_.Dl];var zH=function(){};
_.g(zH,ML);zH.prototype.resolveCommand=function(A){var L,O,X,x,J,Y,T,V;return _.u(function(E){L=_.q(A,ZnN);if((O=L)==null||!O.paramKeyValuePairs)return E.return();X=window.location.href;x=_.d(L.paramKeyValuePairs);for(J=x.next();!J.done;J=x.next())Y=J.value,Y.key&&Y.value&&(T={},X=_.aO(X,(T[Y.key]=Y.value,T)));V=_.X5().resolve(_.gU);_.qq(V,X);_.qo(E)})};var BE=function(A,L){this.JSC$18530_commandHandler=A;this.innertubeTransportService=L};
_.g(BE,ML);
BE.prototype.resolveCommand=function(A,L){var O=this,X,x,J,Y,T,V,E,n,t,b,S,w,l,F,R,y,M;return _.u(function(H){switch(H.nextAddress){case 1:return(J=(X=L)==null?void 0:(x=X.form)==null?void 0:x.element)&&_.aG(J),Y=_.qG().get("hl"),T="",_.e4(H,2),H.yield(TOu(Y),4);case 4:T=H.yieldResult;_.zA(H,3);break;case 2:return _.S4(H),J&&_.kf(J),_.C7(Error("Fi"),"ERROR"),H.return();case 3:V=_.q(A,yMl);if(!V)return J&&_.kf(J),H.return();(t=(E=V.commerceActionConfig)==null?void 0:(n=E.commandLifeCycleConfig)==null?
void 0:n.onStartCommand)&&O.JSC$18530_commandHandler.resolveCommand(t);return H.yield(_.oQ(O.innertubeTransportService,A,{client_data:{paymentsClientToken:{token:T}}}),5);case 5:(b=H.yieldResult)?(J&&_.kf(J),((F=b)==null?0:F.command)&&O.JSC$18530_commandHandler.resolveCommand(b.command),(M=(R=V.commerceActionConfig)==null?void 0:(y=R.commandLifeCycleConfig)==null?void 0:y.onSuccessCommand)&&O.JSC$18530_commandHandler.resolveCommand(M)):(J&&_.kf(J),_.C7(Error("Gi")),(l=(S=V.commerceActionConfig)==
null?void 0:(w=S.commandLifeCycleConfig)==null?void 0:w.onFailureCommand)&&O.JSC$18530_commandHandler.resolveCommand(l)),_.qo(H)}})};
BE[dx]=[_.x$,_.Ia];var Mu=function(A,L,O){this.store=A;this.JSC$18546_commandHandler=L;this.innertubeTransportService=O};
_.g(Mu,ML);
Mu.prototype.resolveCommand=function(A,L){var O=this,X,x,J,Y,T,V,E,n,t;return _.u(function(b){X=_.q(A,ZON);x=X.googlePaymentPayload;X.onStartCommand&&O.JSC$18546_commandHandler.resolveCommand(X.onStartCommand);J=x.encryptedPurchaseParams;Y=x.ypcLogWalletAnalyticDataEndpoint;T=X.serializedTransactionFlowLoggingParams;V=x.serializedPaymentsClientParams;E=X.ypcCujContext;t=e_u(O.innertubeTransportService,(n=L)==null?void 0:n.form,J,Y,T,V,E);return b.return(t.then(function(S){VHr(L==null?void 0:L.form,
!1);var w=O.store,l=O.JSC$18546_commandHandler,F=S.integratorData;F==null||F===""||S.error!=null?(String(S.error)==="-1"&&X.onDismissCommand?l.resolveCommand(X.onDismissCommand):String(S.error)!=="-1"&&X.onFailureCommand&&l.resolveCommand(X.onFailureCommand),String(S.error)!=="-1"&&String(S.error)!=="132"&&_.C7(Error("Hi"),"ERROR")):(X.googlePaymentEntityKey&&w.dispatch(_.NV("commerceAcquisitionClientPayloadEntity",X.googlePaymentEntityKey,{key:X.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:F,
fundsGuaranteeCallbackClientData:S.integratorClientCallbackData}}})),X.onSuccessCommand&&l.resolveCommand(X.onSuccessCommand));_.DQ()},function(S){VHr(L==null?void 0:L.form,!1);
_.C7(S,"ERROR");X.onFailureCommand&&O.JSC$18546_commandHandler.resolveCommand(X.onFailureCommand)}))})};
Mu[dx]=[V7,_.x$,_.Ia];var $n=function(A,L){this.JSC$18550_commandHandler=A;this.purchaseManager=L};
_.g($n,ML);
$n.prototype.resolveCommand=function(A){var L=this,O,X,x,J,Y,T,V,E,n;return _.u(function(t){O=_.q(A,jrV);((X=O)==null?0:(x=X.commandLifeCycleConfig)==null?0:x.onStartCommand)&&L.JSC$18550_commandHandler.resolveCommand(O.commandLifeCycleConfig.onStartCommand);if(!((J=O)==null?0:(Y=J.googlePaymentPurchaseManagerPayload)==null?0:Y.securePayloadBytes))return _.C7(Error("Ii"),"ERROR"),t.return();T=jaN(_.ke(O.googlePaymentPurchaseManagerPayload.securePayloadBytes));V=_.qG().get("hl");E=_.AI();M_g(T.serialize(),
V,function(b){E.resolve(b)},function(b){E.reject(b)},E.resolve);
n=E.promise;return t.return(n.then(function(b){if(b)if(b==null?0:b.errorCode){_.C7(Error("Ji`"+b.errorCode),"ERROR");var S,w;((S=O)==null?0:(w=S.commandLifeCycleConfig)==null?0:w.onFailureCommand)&&L.JSC$18550_commandHandler.resolveCommand(O.commandLifeCycleConfig.onFailureCommand)}else if(b==null?0:b.isCancelled){var l,F;((l=O)==null?0:(F=l.commandLifeCycleConfig)==null?0:F.onCancelCommand)&&L.JSC$18550_commandHandler.resolveCommand(O.commandLifeCycleConfig.onCancelCommand)}else{var R,y;((R=O)==
null?0:(y=R.commandLifeCycleConfig)==null?0:y.onSuccessCommand)&&L.JSC$18550_commandHandler.resolveCommand(O.commandLifeCycleConfig.onSuccessCommand)}},function(b){_.C7(b,"ERROR");
var S,w;((S=O)==null?0:(w=S.commandLifeCycleConfig)==null?0:w.onFailureCommand)&&L.JSC$18550_commandHandler.resolveCommand(O.commandLifeCycleConfig.onFailureCommand)}))})};
$n[dx]=[_.x$,$kj];var aeM=function(A,L){this.JSC$18558_commandHandler=A;this.commandAllowlistOverride=L;var O;this.commandAllowlist=(O=this.commandAllowlistOverride)!=null?O:Lu};
aeM.prototype.handleResponse=function(A,L,O){var X,x=L==null?void 0:(X=L.config)==null?void 0:X.command;if(!x||this.commandAllowlist.some(function(J){return!!_.q(x,J)})){L=void 0;
O!==void 0&&(L={form:{element:O}});A.onResponseReceivedCommand&&this.JSC$18558_commandHandler.resolveCommand(A.onResponseReceivedCommand,L);A.onResponseReceivedAction&&this.JSC$18558_commandHandler.resolveCommand(A.onResponseReceivedAction,L);A.onResponseReceivedEndpoint&&this.JSC$18558_commandHandler.resolveCommand(A.onResponseReceivedEndpoint,L);A.command&&this.JSC$18558_commandHandler.resolveCommand(A.command,L);if(A.onResponseReceivedCommands)for(O=_.d(A.onResponseReceivedCommands),X=O.next();!X.done;X=
O.next())this.JSC$18558_commandHandler.resolveCommand(X.value,L);if(A.onResponseReceivedActions)for(O=_.d(A.onResponseReceivedActions),X=O.next();!X.done;X=O.next())this.JSC$18558_commandHandler.resolveCommand(X.value,L);if(A.onResponseReceivedEndpoints)for(O=_.d(A.onResponseReceivedEndpoints),X=O.next();!X.done;X=O.next())this.JSC$18558_commandHandler.resolveCommand(X.value,L);if(A.actions)for(A=_.d(A.actions),O=A.next();!O.done;O=A.next())this.JSC$18558_commandHandler.resolveCommand(O.value,L)}};
aeM[dx]=[_.x$,_.Ot(y1p)];var kOQ=new _.Yx("INNERTUBE_TOKEN_SERVICE");var Uyn=new _.Yx("SCHEDULER_TOKEN");var veQ=function(A){this.scheduler=A;A={};this.tokenMap=(A.app={},A.user={},A)};
veQ.prototype.handleResponse=function(A,L){if(!L)throw Error("Ki");var O;if(A=(O=A.responseContext)==null?void 0:O.innertubeTokenJar){if(A.appTokens){var X,x,J;O=(X=L.innerTubeRequest.context)==null?void 0:(x=X.request)==null?void 0:(J=x.innertubeTokenJar)==null?void 0:J.appTokens;oeJ(this,A.appTokens,this.tokenMap.app,O)}if(A.userTokens){var Y,T,V;L=(Y=L.innerTubeRequest.context)==null?void 0:(T=Y.request)==null?void 0:(V=T.innertubeTokenJar)==null?void 0:V.userTokens;oeJ(this,A.userTokens,this.tokenMap.user,
L)}}};
veQ.prototype.processContext=function(A){A.request||(A.request={});var L=Object.keys(this.tokenMap.app).length,O=Object.keys(this.tokenMap.user).length;if(L||O)A.request.innertubeTokenJar={},L&&(A.request.innertubeTokenJar.appTokens=[].concat(_.le(Object.values(this.tokenMap.app).flat()))),O&&(A.request.innertubeTokenJar.userTokens=[].concat(_.le(Object.values(this.tokenMap.user).flat())))};
var oeJ=function(A,L,O,X){L=_.d(L);for(var x=L.next(),J={};!x.done;J={token$jscomp$138:void 0},x=L.next()){J.token$jscomp$138=x.value;if(J.token$jscomp$138.type===void 0)throw new _.pe("InnerTube token has no type",J.token$jscomp$138);if(J.token$jscomp$138.clearTokens)O[J.token$jscomp$138.type]=[];else if(J.token$jscomp$138.value!==void 0){O[J.token$jscomp$138.type]||(O[J.token$jscomp$138.type]=[]);if(X!==void 0&&X.length){x=_.d(X);for(var Y=x.next(),T={};!Y.done;T={requestToken:void 0},Y=x.next())T.requestToken=
Y.value,Y=O[J.token$jscomp$138.type].findIndex(function(V){return function(E){return E===V.requestToken||(0,_.lW.equals)(E,V.requestToken)}}(T)),Y>-1&&O[J.token$jscomp$138.type].splice(Y,1)}O[J.token$jscomp$138.type].push(J.token$jscomp$138);
J.token$jscomp$138.maxAgeSeconds&&Number(J.token$jscomp$138.maxAgeSeconds)>0&&A.scheduler.addLowPriorityJob(function(V){return function(){var E=O[V.token$jscomp$138.type].indexOf(V.token$jscomp$138);E>-1&&O[V.token$jscomp$138.type].splice(E,1)}}(J),Number(J.token$jscomp$138.maxAgeSeconds)*1E3)}else throw new _.pe("InnerTube token has no value",J.token$jscomp$138);
}};
veQ[dx]=[Uyn];var AcX=new _.Yx("LOCAL_INNERTUBE_ROUTER_TOKEN"),LlX=new _.Yx("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var a2=function(A){this.serviceMap=A};
a2.prototype.shouldPreferLocalResponse=function(A,L){return(A=O6J(this,A))?A.shouldPreferLocalResponse(L):!1};
a2.prototype.localInnertubeResponse=function(A,L){var O=this,X;return _.u(function(x){return(X=O6J(O,A))?x.return(X.localInnertubeResponse(L)):x.return(Promise.reject(Error("Li")))})};
a2.prototype.canProvideFallbackResponse=function(A,L){return(A=O6J(this,A))?A.canProvideFallbackResponse(L):!1};
a2.prototype.localFallbackInnertubeResponse=function(A,L){var O=this,X;return _.u(function(x){return(X=O6J(O,A))?x.return(X.localFallbackInnertubeResponse(L)):x.return(Promise.reject(Error("Li")))})};
var O6J=function(A,L){L=_.eh(L);return L?(A=A.serviceMap[L])?A:null:null};
a2[dx]=[LlX];var lE=function(){};
lE.prototype.shouldPreferLocalResponse=function(){return!1};
lE.prototype.localInnertubeResponse=function(){return _.u(function(A){return A.return(Promise.reject(Error("Mi")))})};
lE.prototype.canProvideFallbackResponse=function(){return!0};
lE.prototype.localFallbackInnertubeResponse=function(){var A,L,O;return _.u(function(X){A=GR("CLOSE_POPUP");L={openPopupAction:nhD()};O={actions:[A,L]};return X.return(O)})};var e4u=function(A,L){this.JSC$18608_upliftPromise=A;this.store=L};
_.P=e4u.prototype;_.P.shouldPreferLocalResponse=function(A){var L=A.videoId,O;if(O=L)O=ot9(this.store.getState().entities,A.videoId);return O&&A7r(this.store.getState().entities,L)?btM(this.store.getState().entities,A.playlistId):!1};
_.P.localInnertubeResponse=function(A){var L=this,O;return _.u(function(X){return(O=L.getPlayerResponse(A))?X.return(Promise.resolve(O)):X.return(Promise.reject(Error("Ni")))})};
_.P.canProvideFallbackResponse=function(A){return!!A.videoId};
_.P.localFallbackInnertubeResponse=function(A){var L=this,O;return _.u(function(X){if(X.nextAddress==1)return X.yield(L.JSC$18608_upliftPromise,2);O=L.getPlayerResponse(A);var x;O?x=X.return(Promise.resolve(O)):x=Na(L.store.getState().entities,A.videoId)?X.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.Xl(_.b3("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:G8p()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
X.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.Xl(_.b3("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:KIe()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return x})};
_.P.getPlayerResponse=function(A){return Nm9(this.store.getState().entities,A.videoId)};var G_=function(A,L){this.localPlayerService=A;this.localWatchNextService=L};
G_.prototype.shouldPreferLocalResponse=function(A){var L=A.playerRequest;A=A.watchNextRequest;return!!(L&&this.localPlayerService.shouldPreferLocalResponse(L)&&A&&this.localWatchNextService.shouldPreferLocalResponse(A))};
G_.prototype.localInnertubeResponse=function(A){var L=this,O,X,x,J;return _.u(function(Y){if(Y.nextAddress==1){O=A.playerRequest;X=A.watchNextRequest;if(!O||!X)throw new _.pe("Missing streaming request",A);return Y.yield(L.localPlayerService.localInnertubeResponse(O),2)}if(Y.nextAddress!=3)return x=Y.yieldResult,Y.yield(L.localWatchNextService.localInnertubeResponse(X),3);J=Y.yieldResult;return Y.return({playerResponse:x,watchNextResponse:J})})};
G_.prototype.canProvideFallbackResponse=function(A){var L=A.playerRequest;A=A.watchNextRequest;return!!(L&&this.localPlayerService.canProvideFallbackResponse(L)&&A&&this.localWatchNextService.canProvideFallbackResponse(A))};
G_.prototype.localFallbackInnertubeResponse=function(A){var L=this,O,X,x,J;return _.u(function(Y){if(Y.nextAddress==1)return O=A.playerRequest,X=A.watchNextRequest,O&&X?Y.yield(L.localPlayerService.localFallbackInnertubeResponse(O),2):Y.return(Promise.reject(new _.pe("Missing streaming request",A)));if(Y.nextAddress!=3)return x=Y.yieldResult,Y.yield(L.localWatchNextService.localFallbackInnertubeResponse(X),3);J=Y.yieldResult;return Y.return({playerResponse:x,watchNextResponse:J})})};var wo=function(A){this.JSC$18618_persistentStorePromiseAccessor=A};
wo.prototype.shouldPreferLocalResponse=function(){return!1};
wo.prototype.localInnertubeResponse=function(){return _.u(function(A){return A.return(Promise.reject(Error("Oi")))})};
wo.prototype.canProvideFallbackResponse=function(){return!0};
wo.prototype.localFallbackInnertubeResponse=function(){var A=this,L,O;return _.u(function(X){return X.nextAddress==1?X.yield(A.JSC$18618_persistentStorePromiseAccessor(),2):X.nextAddress!=3?(L=X.yieldResult)?X.yield(L.get("service:guide:fallback"),3):X.return(Promise.reject(Error("Pi"))):(O=X.yieldResult)&&_.uE(O)?X.return(h_r(_.uE(O))):X.return(Promise.reject(Error("Qi")))})};var cw=function(){};
cw.prototype.shouldPreferLocalResponse=function(){return!1};
cw.prototype.localInnertubeResponse=function(){return _.u(function(A){return A.return(Promise.reject(Error("Ri")))})};
cw.prototype.canProvideFallbackResponse=function(){return!0};
cw.prototype.localFallbackInnertubeResponse=function(){var A,L,O;return _.u(function(X){A=GR("CLOSE_POPUP");L={openPopupAction:nhD()};O={actions:[A,L]};return X.return(O)})};var go=function(){this.urlMap=Xn7;this.fallbackCommand=_.K2};
go.prototype.shouldPreferLocalResponse=function(A){return(A=A.url)?!!xNJ(this,A):!1};
go.prototype.localInnertubeResponse=function(A){var L=this,O;return _.u(function(X){return(O=A.url)?X.return(s6X(A,xNJ(L,O))):X.return(Promise.reject(Error("Si")))})};
go.prototype.canProvideFallbackResponse=function(){return!0};
go.prototype.localFallbackInnertubeResponse=function(A){var L=this,O,X,x,J,Y,T,V;return _.u(function(E){O=A.url;if(!O)return E.return(s6X(A,L.fallbackCommand));if(X=xNJ(L,O))return E.return(s6X(A,X));x=void 0;J=_.eh(O);J==="/watch"&&(Y=_.yI(O,"v"))&&(V=(T=_.yI(O,"list"))!=null?T:void 0,x=_.Oe(Y,V));x||(x=L.fallbackCommand);return E.return(s6X(A,x))})};
var xNJ=function(A,L){if(L)return A.urlMap[_.W3(L)]},s6X=function(A,L){L&&A.parentTrackingParams&&(L.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:A.parentTrackingParams}},L.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:L})};var ro=function(A,L,O){this.JSC$18628_upliftPromise=A;this.store=L;this.JSC$18628_persistentStorePromiseAccessor=O};
ro.prototype.shouldPreferLocalResponse=function(){return!1};
ro.prototype.localInnertubeResponse=function(){return _.u(function(A){return A.return(Promise.reject(Error("Ti")))})};
ro.prototype.canProvideFallbackResponse=function(){return!0};
ro.prototype.localFallbackInnertubeResponse=function(){var A=this;return _.u(function(L){return L.return(Jcn(A))})};
var Jcn=function(A){var L,O;return _.u(function(X){if(X.nextAddress==1)return X.yield(YD(A.JSC$18628_upliftPromise,A.store),2);L=X.yieldResult;O={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[tHp(L)]}}}};return X.return(PHM(A,O))})},PHM=function(A,L){var O,X;
return _.u(function(x){if(x.nextAddress==1)return x.yield(A.JSC$18628_persistentStorePromiseAccessor(),2);if(x.nextAddress!=3)return O=x.yieldResult,x.yield(T_(O),3);X=x.yieldResult;return x.return({responseContext:{},contents:L,topbar:X})})};var SO=function(A,L,O){this.JSC$18635_upliftPromise=A;this.store=L;this.JSC$18635_persistentStorePromiseAccessor=O};
SO.prototype.shouldPreferLocalResponse=function(A){var L=A.videoId;return L&&ot9(this.store.getState().entities,L)&&A7r(this.store.getState().entities,L)?btM(this.store.getState().entities,A.playlistId):!1};
SO.prototype.localInnertubeResponse=function(A){var L=this,O,X;return _.u(function(x){if(x.nextAddress==1)return(O=A.videoId)?x.yield(L.JSC$18635_upliftPromise,2):x.return(Promise.reject(Error("Ui")));if(x.nextAddress!=3)return x.yield(dNM(L,A,O),3);X=x.yieldResult;return x.return(YgM(L,X,O))})};
SO.prototype.canProvideFallbackResponse=function(A){return A.videoId?!0:!1};
SO.prototype.localFallbackInnertubeResponse=function(A){var L=this,O,X,x,J;return _.u(function(Y){switch(Y.nextAddress){case 1:return(O=A.videoId)?Y.yield(L.JSC$18635_upliftPromise,2):Y.return(Promise.reject(Error("Ui")));case 2:return Y.yield(dNM(L,A,O),3);case 3:X=Y.yieldResult;if(Na(L.store.getState().entities,O)){Y.jumpTo(4);break}return Y.yield(YD(L.JSC$18635_upliftPromise,L.store),5);case 5:return x=Y.yieldResult,Y.return(uLX(X,x));case 4:return ot9(L.store.getState().entities,O)&&A7r(L.store.getState().entities,
O)?Y.return(YgM(L,X,O)):(J={title:_.Xl(_.b3("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:G8p()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},Y.return(uLX(X,J)))}})};
var dNM=function(A,L,O){var X,x,J,Y,T;return _.u(function(V){if(V.nextAddress==1)return X=L.playlistId,x=_.Oe(O,X),V.yield(A.JSC$18635_persistentStorePromiseAccessor(),2);if(V.nextAddress!=3)return J=V.yieldResult,V.yield(T_(J),3);Y=V.yieldResult;T={responseContext:{},currentVideoEndpoint:x,topbar:Y};return V.return(T)})},YgM=function(A,L,O){if(A=Na(A.store.getState().entities,O)){var X;
O=A.videoEntity;var x,J={title:xB(O.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.se((X=O.localizedStrings)==null?void 0:X.viewCount),viewCount:_.se((x=O.localizedStrings)==null?void 0:x.viewCount)}}};O.publishedTimestampMillis&&(J.dateText=_.se(E1_(new Date(Number(O.publishedTimestampMillis)))));X={videoPrimaryInfoRenderer:J};x=A.videoEntity;A=A.channelEntity;A={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:xB(_.b3("SHOW_MORE",void 0,"Show more")),
showLessText:xB(_.b3("SHOW_LESS",void 0,"Show less")),description:x.formattedDescription,owner:{videoOwnerRenderer:{title:xB(A.title),thumbnail:A.avatar}}}};L.contents={twoColumnWatchNextResults:{results:{results:{contents:[X,A]}}}}}return L},uLX=function(A,L){A.contents={singleColumnWatchNextResults:{results:{results:{contents:[tHp(L)]}}}};
return A};var Kq=function(A,L,O){this.JSC$18640_upliftPromise=A;this.store=L;this.JSC$18640_persistentStorePromiseAccessor=O};
Kq.prototype.shouldPreferLocalResponse=function(){return!1};
Kq.prototype.localInnertubeResponse=function(){return _.u(function(A){return A.return(Promise.reject(Error("Vi")))})};
Kq.prototype.canProvideFallbackResponse=function(){return!0};
Kq.prototype.localFallbackInnertubeResponse=function(){var A=this,L,O,X,x;return _.u(function(J){switch(J.nextAddress){case 1:return J.yield(A.JSC$18640_persistentStorePromiseAccessor(),2);case 2:return L=J.yieldResult,J.yield(T_(L),3);case 3:return O=J.yieldResult,X={responseContext:{},topbar:O},J.yield(A.JSC$18640_upliftPromise,4);case 4:return J.yield(YD(A.JSC$18640_upliftPromise,A.store),5);case 5:return x=J.yieldResult,X.watchStatus={backgroundPromoRenderer:x},J.return(X)}})};var TJn=new _.Yx("ENDPOINT_MAP");var V3M=function(){var A=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return A.sequenceMap}}},Q2c=function(A,L,O){var X,x=(X=L.config)==null?void 0:X.sequenceStrategy;
if(!x)return O();A.sequenceMap.has(x.sequenceKey)||A.sequenceMap.set(x.sequenceKey,[]);A=A.sequenceMap.get(x.sequenceKey);switch(x.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return DNS(A,L,O);case "REQUEST_SEQUENCE_TYPE_REPLACE":return e7n(A,L,O);default:throw new _.pe("Request could not be sequenced",L);}},DNS=function(A,L,O){var X,x,J;
return _.u(function(Y){A.length>0?(x=A[A.length-1],X=x.responsePromise.then(function(){return O()})):X=O();
J={request:L,responsePromise:X};A.push(J);EVn(A,J);return Y.return(J.responsePromise)})},e7n=function(A,L,O){O=O();
if(A.length>0)for(var X=_.d(A),x=X.next();!x.done;x=X.next())x.value.responsePromise=O;var J={request:L,responsePromise:O};A.push(J);EVn(A,J);return Promise.resolve().then(function(){return A.indexOf(J)>0?J.responsePromise.then(function(Y){return Object.assign({},Y,{sequenceMetaData:{skipProcessing:!0}})}):J.responsePromise})},EVn=function(A,L){L.responsePromise.then(function(){var O=A.indexOf(L);
O>-1&&A.splice(O,1)})};var nVB=new _.Yx("REQUEST_SEQUENCING");var kn=function(){};
_.g(kn,qv);kn.prototype.getApiPaths=function(){return[]};
kn.prototype.getExtension=function(A){return _.q(A,zbJ)};
kn.prototype.JSC$14067_buildRequest=function(A,L){A.recaptchaToken=L.recaptchaToken};
kn.prototype.getApiUrl=function(){return"/das_captcha"};var UF=function(){};
_.g(UF,qv);UF.prototype.getApiPaths=function(){return f1l};
UF.prototype.getExtension=function(A){return _.q(A,hJ6)};
UF.prototype.JSC$14067_buildRequest=function(A,L,O){O=O===void 0?{}:O;L.createBackstagePostParams&&(A.createBackstagePostParams=L.createBackstagePostParams);O.comment_text&&(A.commentText=O.comment_text);if(O.attached_video_id)A.videoAttachment={videoId:O.attached_video_id};else if(O.image_poll_options)A.pollAttachmentData={options:O.image_poll_options};else if(O.poll_options)A.pollAttachment={choices:O.poll_options};else if(O.quiz_options)A.quizAttachmentData={options:O.quiz_options};else if(O.image_blob_id)A.imageAttachment=
{encryptedBlobId:O.image_blob_id},O.source_video_id&&(A.imageAttachment.sourceExternalVideoId=O.source_video_id),O.image_preview_coordinates&&(A.imageAttachment.previewCoordinates=JSON.parse(O.image_preview_coordinates));else if(O.images_data)A.imagesAttachment={imagesData:O.images_data};else if(O.clip_external_video_id!==void 0||O.clip_offset_ms!==void 0||O.clip_duration_ms!==void 0){var X,x,J,Y,T;A.clipAttachment={externalVideoId:(J=O.clip_external_video_id)!=null?J:"",offsetMs:(Y=(X=O.clip_offset_ms)==
null?void 0:X.toString())!=null?Y:"",durationMs:(T=(x=O.clip_duration_ms)==null?void 0:x.toString())!=null?T:""}}else O.shared_post_id&&(A.sharedPostAttachment={postId:O.shared_post_id});O.tagged_video_id&&(A.postCreationData={taggedVideoId:O.tagged_video_id});O.access_restrictions&&(typeof O.access_restrictions==="number"&&(L=O.access_restrictions,A.accessRestrictions={restriction:L!==1&&L===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof O.access_restrictions==="string"&&
(A.accessRestrictionsParams=O.access_restrictions));O.scheduled_publish_time_sec&&(A.scheduledPublishTimeSec=O.scheduled_publish_time_sec.toString())};var vE=function(){};
_.g(vE,qv);vE.prototype.getApiPaths=function(){return zGn};
vE.prototype.getExtension=function(A){return _.q(A,IUg)};
vE.prototype.JSC$14067_buildRequest=function(A,L,O){O=O===void 0?{}:O;L.decorateMessageParams&&(A.params=L.decorateMessageParams);O.text&&(A.text=O.text)};var o2=function(){};
_.g(o2,qv);o2.prototype.getApiPaths=function(){return TU3};
o2.prototype.getExtension=function(A){return _.q(A,SMl)};
o2.prototype.JSC$14067_buildRequest=function(A,L,O){O=O===void 0?{}:O;O.video_id&&(A.videoId=O.video_id)};var Ad=function(){};
_.g(Ad,qv);Ad.prototype.getApiPaths=function(){return nHH};
Ad.prototype.getExtension=function(A){return _.q(A,_.nM)};
Ad.prototype.JSC$14067_buildRequest=function(A,L,O){O.suggestions_query&&(A.input=O.suggestions_query)};var LG=function(){};
_.g(LG,qv);LG.prototype.getApiPaths=function(){return amJ};
LG.prototype.getExtension=function(A){return _.q(A,qM7)};
LG.prototype.JSC$14067_buildRequest=function(A,L,O){O.comment_text!==void 0&&(A.commentText=O.comment_text);O.scheduled_publish_time_sec&&(A.scheduledPublishTimeSec=O.scheduled_publish_time_sec.toString());A.updateBackstagePostParams=L.updateBackstagePostParams};var O_=function(){};
_.g(O_,qv);O_.prototype.getApiPaths=function(){return Or};
O_.prototype.getExtension=function(A){return _.q(A,_.Mn)};
O_.prototype.JSC$14067_buildRequest=function(A,L,O){O.formData&&(A.formData=O.formData);L.token?A.continuation=L.token:L.continuationTokenKey&&(O=_.Ai().getState(),L=_.eM(O.entities,"continuationTokenEntity",L.continuationTokenKey))&&(A.continuation=String(L.continuationToken))};
var t37=function(){};
_.g(t37,qv);_.P=t37.prototype;_.P.getApiPaths=function(){return Or};
_.P.getExtension=function(A){return _.q(A,_.gM)};
_.P.isNavigationCommand=function(){return!0};
_.P.JSC$14074_getStoreKey=function(A){if((A=this.getExtension(A))&&A.browseId){var L={browseId:A.browseId};A.browseEndpointContextSupportedConfigs&&(L.browseEndpointContextSupportedConfigs=JSON.stringify(A.browseEndpointContextSupportedConfigs));A.params&&(L.params=A.params);A.query&&(L.query=A.query);return _.MA("browse",L)}};
_.P.JSC$14067_buildRequest=function(A,L,O){L.browseId&&(A.browseId=L.browseId);L.params&&(A.params=L.params);L.query&&(A.query=L.query);O.formData?A.formData=O.formData:L.formData&&(A.formData=L.formData);L.browseId==="FEsubscriptions"&&_.qG().getFlag(155)&&(A.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");L.browseId==="SPaccount_playback"&&(O=_.qG(),A.formData||(A.formData={}),A.formData.accountSettingsFormData={flagCaptionsDefaultOff:O.getFlag(65),flagAutoCaptionsDefaultOn:O.getFlag(66),
flagDisableInlinePreview:O.getFlag(186),flagAudioDescriptionDefaultOn:O.getFlag(198)});if(L.browseId==="FEwhat_to_watch"){O=_.qG();var X=O.getFlag(196);O.getFlag(197)&&(A.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:X}}})}L.browseId==="FEwhat_to_watch"&&(L=_.qG().getFlag(186),A.inlineSettingStatus=L?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.P.getRequestConfig=function(A,L){L=L===void 0?{}:L;var O={};if(A=this.JSC$14074_getStoreKey(A,L))O.storeStrategy={storeKey:A,disableCache:L.disableCache};_.h("web_log_browse_ticks_ks")||(O.requestTick="br_s",O.responseTick="br_r");return O};var XB=function(){};
_.g(XB,qv);XB.prototype.getApiPaths=function(){return c3L};
XB.prototype.getExtension=function(A){return _.q(A,k7J)};
XB.prototype.JSC$14067_buildRequest=function(A,L,O){A.legacyYoutubeChannelUsername=O.legacyYouTubeChannelUsername||"";A.legacyYoutubeChannelPassword=O.legacyYouTubeChannelPassword||""};var xS=function(){};
_.g(xS,qv);xS.prototype.getApiPaths=function(){return ImN};
xS.prototype.getExtension=function(A){return _.q(A,GI6)};
xS.prototype.JSC$14067_buildRequest=function(A,L,O){O.recaptcha_response_token&&(A.recaptchaResponseToken=O.recaptcha_response_token);O.channel_id&&(A.channelId=O.channel_id)};var s_=function(){};
_.g(s_,qv);s_.prototype.getApiPaths=function(){return kUc};
s_.prototype.getExtension=function(A){return _.q(A,Q$V)};
s_.prototype.JSC$14067_buildRequest=function(A,L,O){L.externalChannelId&&(A.externalChannelId=L.externalChannelId);O.handle&&(A.handleUpdate={handle:O.handle},L.handleEditSource&&(A.handleUpdate.handleEditSource=L.handleEditSource))};var Jd=function(){};
_.g(Jd,qv);Jd.prototype.getApiPaths=function(){return A$N};
Jd.prototype.getExtension=function(A){return _.q(A,xIn)};
Jd.prototype.JSC$14067_buildRequest=function(A,L,O){L.request&&(A.channelId=L.request.channelId);var X;if(O==null?0:(X=O.uploadDefaults)==null?0:X.emojiReactionSet)A.uploadDefaultsRequest||(A.uploadDefaultsRequest={}),A.uploadDefaultsRequest.emojiReactionSet=O.uploadDefaults.emojiReactionSet};var Pa=function(){};
_.g(Pa,qv);Pa.prototype.getApiPaths=function(){return Xkj};
Pa.prototype.getExtension=function(A){return _.q(A,ltj)};
Pa.prototype.JSC$14067_buildRequest=function(A,L,O){L.externalChannelId&&(A.externalChannelId=L.externalChannelId);L.channelHandleEntityKey&&(A.channelHandleEntityKey=L.channelHandleEntityKey);L.handleEditSource&&(A.handleEditSource=L.handleEditSource);O.handle?A.handle=O.handle:O.name&&(A.name=O.name)};var dK=function(){};
_.g(dK,qv);dK.prototype.getApiPaths=function(){return RG3};
dK.prototype.getExtension=function(A){return _.q(A,b2c)};
dK.prototype.JSC$14067_buildRequest=function(A,L){L.actions?A.actions=L.actions:L.action&&(A.actions=[L.action])};var YS=function(){};
_.g(YS,qv);YS.prototype.getApiPaths=function(){return QfN};
YS.prototype.getExtension=function(A){return _.q(A,_.Mn)};
YS.prototype.JSC$14067_buildRequest=function(A,L){L.token&&(A.continuation=L.token)};var uo=function(){};
_.g(uo,qv);uo.prototype.getApiPaths=function(){return Yo6};
uo.prototype.getExtension=function(A){return _.q(A,_.Mn)};
uo.prototype.JSC$14067_buildRequest=function(A,L){A.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";L.token&&(A.fetchCommentsParams={continuation:L.token})};var TW=function(){};
_.g(TW,qv);TW.prototype.getApiPaths=function(){return Zlc};
TW.prototype.getExtension=function(A){return _.q(A,t9L)};
TW.prototype.JSC$14067_buildRequest=function(A,L,O){O=O===void 0?{}:O;L.createReplyParams&&(A.createReplyParams=L.createReplyParams);L.commentText&&(A.commentText=_.vG(L.commentText));O.comment_text&&(A.commentText=O.comment_text);O.image_blob_id&&(A.imageAttachment={encryptedBlobId:O.image_blob_id});O.botguard_response&&(A.botguardResponse=O.botguard_response)};
_.v2.Object.defineProperties(TW.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var V0=function(){};
_.g(V0,qv);V0.prototype.getApiPaths=function(){return jfg};
V0.prototype.getExtension=function(A){return _.q(A,_.nq7)};
V0.prototype.JSC$14067_buildRequest=function(A,L,O){O=O===void 0?{}:O;L.createCommentParams&&(A.createCommentParams=L.createCommentParams);L.commentText&&(A.commentText=_.vG(L.commentText));L.videoPositionMention&&(A.videoPositionMention=L.videoPositionMention);L.sources&&(A.sources=L.sources);O.comment_text&&(A.commentText=O.comment_text);O.attached_video_id?A.videoAttachment={videoId:O.attached_video_id}:O.poll_options?A.pollAttachment={choices:O.poll_options}:O.image_blob_id?A.imageAttachment=
{encryptedBlobId:O.image_blob_id}:O.shared_post_id&&(A.sharedPostAttachment={postId:O.shared_post_id});O.access_restrictions&&typeof O.access_restrictions==="number"&&(L=O.access_restrictions,A.accessRestrictions={restriction:L!==1&&L===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});O.botguard_response&&(A.botguardResponse=O.botguard_response)};
_.v2.Object.defineProperties(V0.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var D$=function(){};
_.g(D$,qv);D$.prototype.getApiPaths=function(){return Uqc};
D$.prototype.getExtension=function(A){return _.q(A,SU6)};
D$.prototype.JSC$14067_buildRequest=function(A,L,O){L.commentText&&(A.replyText=_.vG(L.commentText));O.comment_text&&(A.replyText=O.comment_text);A.updateReplyParams=L.updateReplyParams};
_.v2.Object.defineProperties(D$.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var eA=function(){};
_.g(eA,qv);eA.prototype.getApiPaths=function(){return vHj};
eA.prototype.getExtension=function(A){return _.q(A,hsg)};
eA.prototype.JSC$14067_buildRequest=function(A,L,O){L.commentText&&(A.commentText=_.vG(L.commentText));O.comment_text&&(A.commentText=O.comment_text);A.updateCommentParams=L.updateCommentParams};
_.v2.Object.defineProperties(eA.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var E_=function(){};
_.g(E_,qv);E_.prototype.getApiPaths=function(){return oHn};
E_.prototype.getExtension=function(A){return _.q(A,Aw3)};
E_.prototype.JSC$14067_buildRequest=function(A,L){L.settings&&(A.settings=L.settings)};var nG=function(){};
_.g(nG,qv);nG.prototype.getApiPaths=function(){return OEJ};
nG.prototype.getExtension=function(A){return _.q(A,cQL)};
nG.prototype.JSC$14067_buildRequest=function(A,L){L.channelCreationToken&&(A.channelCreationToken=L.channelCreationToken);L.source&&(A.source=L.source)};var td=function(){};
_.g(td,qv);td.prototype.getApiPaths=function(){return y3J};
td.prototype.getExtension=function(A){return _.q(A,RJ6)};
td.prototype.JSC$14067_buildRequest=function(A,L,O){O=O===void 0?{}:O;if(O.name&&(O.given_name||O.family_name))A=new _.pe("channel creation cannot set both GAIA and YouTube names",L),_.C7(A);else{if(L.zeroStepChannelCreationParams){if(!O.comment_text){A=new _.pe("zero_step_create_comment_params but no zero_step_texts",L);_.C7(A);return}A.zeroStepChannelCreationParams=L.zeroStepChannelCreationParams;A.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(A.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
O.comment_text,O.botguard_response&&(A.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=O.botguard_response))}A.channelCreationToken=L.channelCreationToken;O.given_name&&(A.givenName=O.given_name);O.family_name&&(A.familyName=O.family_name);L.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(A.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(O.name||O.handle||O.avatar_url||O.encryptedBlobId||O.isNameChanged!==void 0||O.isHandleChanged!==void 0||O.isDefaultProfilePhoto!==
void 0||O.obakeImageSource)A.overrideChannelCreationParams={},O.name&&(A.overrideChannelCreationParams.name=O.name),O.handle&&(A.overrideChannelCreationParams.handle=O.handle),O.avatar_url&&(A.overrideChannelCreationParams.avatarUrl=O.avatar_url),O.encryptedBlobId&&(A.overrideChannelCreationParams.blobEncryptionId=O.encryptedBlobId),O.enableIdentityForAllChannelCreationDialog&&(O.encryptedBlobId?A.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
O.isDefaultProfilePhoto!==void 0&&(A.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=O.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),O.isNameChanged!==void 0&&(A.overrideChannelCreationParams.identityForAllChannelCreationNameTag=O.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),O.isHandleChanged!==
void 0&&(A.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=O.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),O.obakeImageSource&&(A.overrideChannelCreationParams.obakeImageSourceType=O.obakeImageSource))}};var bo=function(){};
_.g(bo,qv);bo.prototype.getApiPaths=function(A){return(A=this.getExtension(A))&&A.status==="DISLIKE"?a13:A&&A.status==="INDIFFERENT"?F93:qoV};
bo.prototype.getExtension=function(A){return _.q(A,_.Mw)};
bo.prototype.JSC$14067_buildRequest=function(A,L){L.target&&(A.target=L.target);if(L=this.getParams(L))A.params=L};
bo.prototype.getParams=function(A){switch(A==null?void 0:A.status){case "DISLIKE":return A.dislikeParams;case "INDIFFERENT":return A.removeLikeParams;default:return A==null?void 0:A.likeParams}};var hd=function(){};
_.g(hd,qv);hd.prototype.getApiPaths=function(){return HEu};
hd.prototype.getExtension=function(A){return _.q(A,Nm6)};
hd.prototype.JSC$14067_buildRequest=function(A,L){L.settingItemId&&(A.settingItemId=L.settingItemId);L.stringValue!=null&&L.stringValue!==void 0?A.newValue={stringValue:L.stringValue}:L.intValue?A.newValue={intValue:L.intValue}:L.boolValue!==null&&L.boolValue!==void 0?A.newValue={boolValue:L.boolValue}:(A=new _.pe("Unknown value type for SetSettingEndpoint.",L),_.C7(A))};var SA=function(){};
_.g(SA,qv);SA.prototype.getApiPaths=function(){return BUJ};
SA.prototype.getExtension=function(A){return _.q(A,H2J)||void 0};
SA.prototype.JSC$14067_buildRequest=function(A,L,O){O=O===void 0?{}:O;L.channelIds&&(A.channelIds=L.channelIds);L.siloName&&(A.siloName=L.siloName);L.params&&(A.params=L.params);O.botguardResponse&&(A.botguardResponse=O.botguardResponse);O.feature&&(A.clientFeature=O.feature)};
_.v2.Object.defineProperties(SA.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var q2=function(){};
_.g(q2,qv);q2.prototype.getApiPaths=function(){return $q3};
q2.prototype.getExtension=function(A){return _.q(A,r7L)||void 0};
q2.prototype.JSC$14067_buildRequest=function(A,L){L.channelIds&&(A.channelIds=L.channelIds);L.siloName&&(A.siloName=L.siloName);L.params&&(A.params=L.params)};
_.v2.Object.defineProperties(q2.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var gK=function(A){this.shareClientParamsProvider=A};
_.g(gK,qv);gK.prototype.getApiPaths=function(){return i1s};
gK.prototype.getExtension=function(A){return _.q(A,ObN)||_.q(A,_.XBg)||_.q(A,LGN)};
gK.prototype.JSC$14067_buildRequest=function(A,L){L.serializedShareEntity&&(A.serializedSharedEntity=L.serializedShareEntity);if(L.clientParamIdentifier){var O;if((O=this.shareClientParamsProvider)==null?0:O.clientParams.has(L.clientParamIdentifier)){O=this.shareClientParamsProvider;L=L.clientParamIdentifier;var X=O.clientParams.get(L);X&&O.clientParams.delete(L);A.clientParams=X}}};
gK[dx]=[iQV];var wK=function(){};
_.g(wK,qv);wK.prototype.getApiPaths=function(){return KQV};
wK.prototype.getExtension=function(A){return _.q(A,Jrg)};
wK.prototype.JSC$14067_buildRequest=function(A,L){L.params&&(A.params=L.params)};var pG=function(){};
_.g(pG,qv);pG.prototype.getApiPaths=function(){return kcL};
pG.prototype.getExtension=function(A){return _.q(A,XF6)};
pG.prototype.JSC$14067_buildRequest=function(A,L){L.dismissal&&(A.items=[L.dismissal])};
_.v2.Object.defineProperties(pG.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var io=function(){};
_.g(io,qv);io.prototype.getApiPaths=function(){return h6H};
io.prototype.getExtension=function(A){return _.q(A,_.y7)||void 0};
io.prototype.JSC$14067_buildRequest=function(A,L,O){A.feedbackTokens=[];L.feedbackToken&&A.feedbackTokens.push(L.feedbackToken);if(L=L.cpn||O.cpn)A.feedbackContext={cpn:L};A.isFeedbackTokenUnencrypted=!!O.is_feedback_token_unencrypted;A.shouldMerge=!1;O.extra_feedback_tokens&&(A.shouldMerge=!0,A.feedbackTokens=A.feedbackTokens.concat(O.extra_feedback_tokens))};
_.v2.Object.defineProperties(io.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var N2=function(){};
_.g(N2,qv);N2.prototype.getApiPaths=function(){return h6H};
N2.prototype.getExtension=function(A){return _.q(A,_.nM)};
N2.prototype.JSC$14067_buildRequest=function(A,L,O){O.feedback_tokens&&(A.feedbackTokens=O.feedback_tokens,A.shouldMerge=!0)};
_.v2.Object.defineProperties(N2.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var rK=function(){};
_.g(rK,qv);rK.prototype.getApiPaths=function(){return h6H};
rK.prototype.getExtension=function(A){return _.q(A,iKD)};
rK.prototype.JSC$14067_buildRequest=function(A,L){L.undoToken&&(A.feedbackTokens=[L.undoToken]);L.isUndoTokenUnencrypted&&(A.isFeedbackTokenUnencrypted=L.isUndoTokenUnencrypted)};
_.v2.Object.defineProperties(rK.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var KG=function(){};
_.g(KG,qv);KG.prototype.getApiPaths=function(){return xfl};
KG.prototype.getExtension=function(A){return _.q(A,Arj)};
KG.prototype.JSC$14067_buildRequest=function(A,L){L.nextEndpoint&&_.q(L.nextEndpoint,_.Hh)?A.nextEndpoint={urlEndpoint:_.q(L.nextEndpoint,_.Hh)}:L.nextEndpoint&&_.q(L.nextEndpoint,_.$O)&&(A.nextEndpoint={watchEndpoint:_.q(L.nextEndpoint,_.$O)});L.setRacy&&(A.setRacy=L.setRacy);L.setControvercy&&(A.setControvercy=L.setControvercy)};var GW=function(A){this.JSC$18821_storeWithEntities=A};
_.g(GW,qv);GW.prototype.getApiPaths=function(){return vrl};
GW.prototype.getExtension=function(A){return _.q(A,pFc)};
GW.prototype.JSC$14067_buildRequest=function(A,L){L.flowId&&(A.flowId=L.flowId);L.targetId&&(A.targetId=L.targetId);L.continuation&&(A.continuation=L.continuation);var O=L.flowStateEntityKey;if(L.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&O&&this.JSC$18821_storeWithEntities){var X;if(L=(X=this.JSC$18821_storeWithEntities.getState())==null?void 0:X.entities)if(X=_.dh(O).entityType,X=_.eM(L,X,O))A.flowState=X,A.flowStateEntityKey=O}};
_.v2.Object.defineProperties(GW.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
GW[dx]=[V7];var b6X=function(){};
_.g(b6X,qv);_.P=b6X.prototype;_.P.getApiPaths=function(){return bEN};
_.P.JSC$14074_getStoreKey=function(){return _.MA("guide")};
_.P.getRequestConfig=function(){var A=this.JSC$14074_getStoreKey(),L;A&&(L={storeStrategy:{storeKey:A}});return L};
_.P.isNavigationCommand=function(){return!0};
_.P.getExtension=function(A){return _.q(A,_.nM)};
_.P.JSC$14067_buildRequest=function(A){A.fetchLiveState=!0};var lo=function(){};
_.g(lo,qv);lo.prototype.getApiPaths=function(){return CjV};
lo.prototype.getExtension=function(A){return _.q(A,DBN)};
lo.prototype.JSC$14067_buildRequest=function(){};var ca=function(){};
_.g(ca,qv);ca.prototype.getApiPaths=function(){return FQj};
ca.prototype.getExtension=function(A){return _.q(A,esu)};
ca.prototype.JSC$14067_buildRequest=function(){};var CG=function(){};
_.g(CG,qv);CG.prototype.getApiPaths=function(){return r3n};
CG.prototype.getExtension=function(A){return _.q(A,_.Mn)};
CG.prototype.JSC$14067_buildRequest=function(A,L){L.token&&(A.continuation=L.token);var O,X;A==null||(O=A.context)==null||(X=O.user)==null||delete X.onBehalfOfUser};
CG.prototype.getRequestConfig=function(A){var L={},O;if(((O=this.getExtension(A))==null?void 0:O.sessionIndex)!==void 0){var X;L={authStrategy:{sessionIndex:(X=this.getExtension(A))==null?void 0:X.sessionIndex}}}return L};var FB=function(){};
_.g(FB,qv);FB.prototype.JSC$14067_getRequest=function(A){var L=this.getExtension(A),O=A="";if(L==null?0:L.popup)A="true";if(L==null?0:L.disableSignout)O="true";L={};return{input:"/getAccountSwitcherEndpoint",requestShell:B3("/getAccountSwitcherEndpoint","GET",(L["X-YouTube-Delegation-Context"]=_.ms("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),L["X-YouTube-Account-Switcher-Popup"]=A,L["X-YouTube-Account-Switcher-Disable-Signout"]=O,L)),innerTubeRequest:{}}};
FB.prototype.getApiPaths=function(){return[]};
FB.prototype.getExtension=function(A){return _.q(A,_.QpD)};
FB.prototype.JSC$14067_buildRequest=function(){};var R1=function(){};
_.g(R1,qv);R1.prototype.JSC$14067_getRequest=function(A){var L="/cross_account_channel_transfer";(A=this.getExtension(A))&&(L=tmP(L,{target_session:A.targetSessionIndex,source_rapt:A.sourceRapt,rapt:A.targetRapt}));return{input:L,requestShell:B3(L,"GET"),innerTubeRequest:{}}};
R1.prototype.getApiPaths=function(){return[]};
R1.prototype.getExtension=function(A){return _.q(A,USL)};
R1.prototype.JSC$14067_buildRequest=function(){};var Q0=function(){};
_.g(Q0,qv);Q0.prototype.getApiPaths=function(){return orJ};
Q0.prototype.isNavigationCommand=function(){return!0};
Q0.prototype.getExtension=function(A){return _.q(A,_.nM)};
Q0.prototype.JSC$14067_buildRequest=function(A){var L=_.qG().get("gsml","");L&&(A.safetyModeLockerObfuscatedGaiaId=L);A.userInterfaceTheme=_.C3(!0);_.FZ()?A.deviceTheme="DEVICE_THEME_SELECTED":_.bEe()?A.deviceTheme="DEVICE_THEME_SUPPORTED":A.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var mE=function(){};
_.g(mE,qv);mE.prototype.getApiPaths=function(){return r3n};
mE.prototype.getExtension=function(A){return _.q(A,vjg)};
mE.prototype.JSC$14067_buildRequest=function(A,L){if(L&&L.requestType&&(A.requestType=L.requestType,L.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||L.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var O=L.nextUrl;O&&(_.hAy(O)||Aj(O))&&(A.nextNavendpoint={urlEndpoint:{url:O}})}L&&L.channelSwitcherQuery&&(A.channelSwitcherQuery=L.channelSwitcherQuery);L&&L.triggerChannelCreation&&(A.triggerChannelCreation=L.triggerChannelCreation);var X;if(L==null?0:(X=L.contentOwnerConfig)==
null?0:X.externalContentOwnerId)A.contentOwnerConfig=L.contentOwnerConfig;A.callCircumstance=L&&L.requestType&&L.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var x,J;L=A==null?void 0:(x=A.context)==null?void 0:(J=x.user)==null?void 0:J.onBehalfOfUser;if(L!==void 0){A.obfuscatedSelectedGaiaId=L;var Y,T;A==null||(Y=A.context)==null||(T=Y.user)==null||delete T.onBehalfOfUser}var V,E;if(x=A==null?void 0:(V=A.context)==null?void 0:(E=V.user)==null?
void 0:E.serializedDelegationContext)A.selectedSerializedDelegationContext=x};var fG=function(){};
_.g(fG,qv);fG.prototype.getApiPaths=function(){return Gc6};
fG.prototype.getExtension=function(A){return _.q(A,x13)};
fG.prototype.JSC$14067_buildRequest=function(A,L){L.params&&(A.params=L.params)};var I1=function(){};
_.g(I1,qv);I1.prototype.getApiPaths=function(){return I1c};
I1.prototype.getExtension=function(A){return _.q(A,_.bCN)};
I1.prototype.JSC$14067_buildRequest=function(A,L){if(L=L.createBroadcastRequest)A.useMasks=L.useMasks,A.broadcastType=L.broadcastType,A.broadcastSource=L.broadcastSource,A.broadcastMetadata=L.broadcastMetadata,A.broadcastMetadataMask=L.broadcastMetadataMask,A.videoMetadata=L.videoMetadata,A.videoMetadataMask=L.videoMetadataMask,A.liveChatSettingsUpdate=L.liveChatSettingsUpdate,A.liveChatSettingsUpdateMask=L.liveChatSettingsUpdateMask,A.cloneVideoId=L.cloneVideoId,A.cloneWithOverrides=L.cloneWithOverrides,
A.targetEntity=L.targetEntity,A.scheduledRedirectMetadata=L.scheduledRedirectMetadata};var y0=function(){};
_.g(y0,qv);y0.prototype.getApiPaths=function(){return WQN};
y0.prototype.getExtension=function(A){return _.q(A,V03)};
y0.prototype.JSC$14067_buildRequest=function(A,L,O){O=O===void 0?{}:O;L.params&&(A.params=L.params);O.questionText&&(A.questionText=O.questionText);O.optionText&&O.optionText.length>0&&(A.optionText=O.optionText)};var Z$=function(){};
_.g(Z$,qv);Z$.prototype.getApiPaths=function(){return BDu};
Z$.prototype.getExtension=function(A){return _.q(A,uon)};
Z$.prototype.JSC$14067_buildRequest=function(A,L){L.params&&(A.params=L.params)};var jA=function(){};
_.g(jA,qv);jA.prototype.getApiPaths=function(){return xqc};
jA.prototype.getExtension=function(A){return _.q(A,J_V)};
jA.prototype.JSC$14067_buildRequest=function(A,L){L.params&&(A.params=L.params)};var Wa=function(){};
_.g(Wa,qv);Wa.prototype.getApiPaths=function(){return J2g};
Wa.prototype.getExtension=function(A){return _.q(A,PPN)};
Wa.prototype.JSC$14067_buildRequest=function(A,L,O){L.params&&(A.params=L.params);L.continuation&&(A.continuation=L.continuation);O.currentPlayerState&&O.currentPlayerState.playerOffsetMs&&(A.currentPlayerState={playerOffsetMs:O.currentPlayerState.playerOffsetMs.toString()})};var Ha=function(){};
_.g(Ha,qv);Ha.prototype.getApiPaths=function(){return PRj};
Ha.prototype.getExtension=function(A){return _.q(A,sjl)};
Ha.prototype.JSC$14067_buildRequest=function(A,L,O){L.params&&(A.params=L.params);O.continuation&&(A.continuation=O.continuation);"hidden"in O&&(A.webClientInfo={isDocumentHidden:O.hidden});O.isInvalidationTimeoutRequest&&(A.isInvalidationTimeoutRequest=O.isInvalidationTimeoutRequest);O.invalidationPayload&&(L=x_6(_.ke(Le(O.invalidationPayload))),A.invalidationPayloadLastPublishAtUsec=ZF(L,2));O.reloadActionPanel&&(A.reloadActionPanel=O.reloadActionPanel);O.fullReload&&(A.fullReload=O.fullReload);
O.currentPlayerState&&(A.currentPlayerState=O.currentPlayerState)};var zW=function(){};
_.g(zW,qv);zW.prototype.getApiPaths=function(){return gH6};
zW.prototype.getExtension=function(A){return _.q(A,Ttc)};
zW.prototype.JSC$14067_buildRequest=function(A,L){A.params=L.params};var Ba=function(){};
_.g(Ba,qv);Ba.prototype.getApiPaths=function(){return sWj};
Ba.prototype.getExtension=function(A){return _.q(A,S7u)};
Ba.prototype.JSC$14067_buildRequest=function(A,L){L.params&&(A.params=L.params)};var M2=function(){};
_.g(M2,qv);M2.prototype.getApiPaths=function(){return dq6};
M2.prototype.getExtension=function(A){return _.q(A,q7j)};
M2.prototype.JSC$14067_buildRequest=function(A,L){L.params&&(A.params=L.params)};var $S=function(){};
_.g($S,qv);$S.prototype.getApiPaths=function(){return wWu};
$S.prototype.getExtension=function(A){return _.q(A,D_g)};
$S.prototype.JSC$14067_buildRequest=function(A,L){L.params&&(A.params=L.params)};var a1=function(){};
_.g(a1,qv);a1.prototype.getApiPaths=function(){return iE6};
a1.prototype.getExtension=function(A){return _.q(A,eQu)};
a1.prototype.JSC$14067_buildRequest=function(A,L){L.params&&(A.params=L.params)};var kS=function(){};
_.g(kS,qv);kS.prototype.getApiPaths=function(){return R6H};
kS.prototype.getExtension=function(A){return _.q(A,Plj)};
kS.prototype.JSC$14067_buildRequest=function(A,L){L.params&&(A.params=L.params)};var U_=function(){};
_.g(U_,qv);U_.prototype.getApiPaths=function(){return jWl};
U_.prototype.getExtension=function(A){return _.q(A,_.E9j)};
U_.prototype.JSC$14067_buildRequest=function(A,L,O){O=O===void 0?{}:O;L.params&&(A.params=L.params);O.client_message_id&&(A.clientMessageId=O.client_message_id);O.recaptcha_token&&(A.recaptchaToken=O.recaptcha_token);O.rich_message&&O.rich_message.text_segments?(L=O.rich_message.text_segments.map(function(X){var x={};X.text&&(x.text=X.text);X.emoji_id&&(x.emojiId=X.emoji_id);return x}),A.richMessage={textSegments:L}):O.message&&(A.message=O.message);
O.currentPlayerState&&(A.currentPlayerState=O.currentPlayerState)};var va=function(){};
_.g(va,qv);va.prototype.getApiPaths=function(){return W9n};
va.prototype.getExtension=function(A){return _.q(A,n9g)};
va.prototype.JSC$14067_buildRequest=function(A,L){L.params&&(A.params=L.params)};var o1=function(){};
_.g(o1,qv);o1.prototype.getApiPaths=function(){return MR6};
o1.prototype.getExtension=function(A){return _.q(A,bX6)};
o1.prototype.JSC$14067_buildRequest=function(A,L,O){L.isUserInitiated&&(A.isUserInitiated=L.isUserInitiated);L.initiationSource&&(A.initiationSource=L.initiationSource);O.locationInfo&&(A.context.client.locationInfo=O.locationInfo)};var A1=function(){};
_.g(A1,qv);A1.prototype.getApiPaths=function(){return pW7};
A1.prototype.getExtension=function(A){return _.q(A,hCH)};
A1.prototype.JSC$14067_buildRequest=function(A,L,O){L.metadataUpdateRequest&&(L=L.metadataUpdateRequest,A.encryptedVideoId=L.encryptedVideoId,L.liveChat&&(L=L.liveChat,A.liveChat||(A.liveChat={}),L.performAsExternalChannelId&&(A.liveChat.performAsExternalChannelId=L.performAsExternalChannelId),L.source&&(A.liveChat.source=L.source)));var X;if(O==null?0:(X=O.liveChat)==null?0:X.liveChatSettings)A.liveChat||(A.liveChat={}),O=O.liveChat.liveChatSettings,A.liveChat.newLiveChatSettings=O,A.liveChat.newLiveChatSettingsMask||
(A.liveChat.newLiveChatSettingsMask={}),O.emojiReactionSet&&(A.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var Lo=function(){};
_.g(Lo,qv);Lo.prototype.getApiPaths=function(){return OPV};
Lo.prototype.getExtension=function(A){return _.q(A,_.K0J)};
Lo.prototype.JSC$14067_buildRequest=function(A,L,O){O.continuation?A.continuation=O.continuation:L.videoId&&(A.videoId=L.videoId);O.clientParams&&(A.clientParams=O.clientParams)};var YQ=function(){};
_.g(YQ,qv);YQ.prototype.getApiPaths=function(){return Yo6};
YQ.prototype.getExtension=function(A){return _.q(A,_.HB)};
YQ.prototype.JSC$14067_buildRequest=function(A,L){A.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";A.fetchCommentsParams={};L.videoId&&(A.fetchCommentsParams.encryptedVideoId=L.videoId);L.postId&&(A.fetchCommentsParams.postId=L.postId);L.externalChannelId&&(A.fetchCommentsParams.externalChannelId=L.externalChannelId);L.linkedCommentId&&(A.fetchCommentsParams.linkedCommentId=L.linkedCommentId);(0,_.lW.isEmpty)(A.fetchCommentsParams)&&delete A.fetchCommentsParams};var u9=function(){};
_.g(u9,qv);u9.prototype.getApiPaths=function(){return Or};
u9.prototype.JSC$14067_buildRequest=function(A){A.browseId="FEnotifications_inbox"};
u9.prototype.getExtension=function(A){return _.q(A,_.nM)};var Tq=function(){};
_.g(Tq,qv);Tq.prototype.getApiPaths=function(){return Yo6};
Tq.prototype.JSC$14067_buildRequest=function(A,L){L.signal==="GET_NOTIFICATIONS_MENU"&&(A.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");L.ctoken&&(A.ctoken=L.ctoken)};
var h7X=function(){};
_.g(h7X,Tq);h7X.prototype.getExtension=function(A){return _.q(A,_.nM)};
var SgX=function(){};
_.g(SgX,Tq);SgX.prototype.getExtension=function(A){return _.q(A,UIn)};var VQ=function(){};
_.g(VQ,qv);VQ.prototype.getApiPaths=function(){return EHL};
VQ.prototype.getExtension=function(A){return _.q(A,_.nM)};
VQ.prototype.JSC$14067_buildRequest=function(){};var Du=function(){};
_.g(Du,qv);Du.prototype.getApiPaths=function(){return NU3};
Du.prototype.getExtension=function(A){return _.q(A,w_7)||void 0};
Du.prototype.JSC$14067_buildRequest=function(A,L){L.params&&(A.params=L.params);L.secondaryParams&&(A.secondaryParams=L.secondaryParams)};var eW=function(){};
_.g(eW,qv);eW.prototype.getApiPaths=function(){return r2H};
eW.prototype.getExtension=function(A){return _.q(A,stH)};
eW.prototype.JSC$14067_buildRequest=function(A,L){L.undo&&(A.undo=L.undo);L.serializedOptOut&&(A.serializedOptOut=L.serializedOptOut);L.serializedRecordInteractionsRequest&&(A.serializedRecordInteractionsRequest=L.serializedRecordInteractionsRequest)};var E2=function(){};
_.g(E2,qv);E2.prototype.getApiPaths=function(){return lm3};
E2.prototype.getExtension=function(A){return _.q(A,JB6)};
E2.prototype.JSC$14067_buildRequest=function(A,L){L.serializedInteractionsRequest&&(A.serializedRecordNotificationInteractionsRequest=L.serializedInteractionsRequest)};var no=function(){};
_.g(no,qv);no.prototype.getApiPaths=function(){return NbO};
no.prototype.getExtension=function(A){return _.q(A,HoM)};
no.prototype.JSC$14067_buildRequest=function(A,L,O){L=L===void 0?{}:L;O=O===void 0?{}:O;L.videoId?A.videoId=L.videoId:L.playlistId&&(A.playlistId=L.playlistId);var X,x=(X=L.offlineWebClientEligibility)!=null?X:O.offlineWebClientEligibility;x&&(A.offlineWebClientEligibility=x);var J;if(X=(J=L.preferredFormatType)!=null?J:O.preferredFormatType)A.preferredFormatType=X;var Y;if(J=(Y=L.lastOfflineQualitySettingsSavedMs)!=null?Y:O.lastOfflineQualitySettingsSavedMs)A.lastOfflineQualitySettingsSavedMs=J;
L.params&&(A.params=L.params)};var t1=function(){};
_.g(t1,qv);t1.prototype.getApiPaths=function(){return P_};
t1.prototype.getExtension=function(A){return _.q(A,_.Mn)};
t1.prototype.JSC$14067_buildRequest=function(A,L,O){O=O===void 0?{}:O;L.token&&(A.continuation=L.token);O.formData&&(A.formData=O.formData)};var b9=function(){};
_.g(b9,qv);b9.prototype.getApiPaths=function(){return P_};
b9.prototype.getExtension=function(A){return _.q(A,D53)};
b9.prototype.JSC$14067_buildRequest=function(A,L,O){O=O===void 0?{}:O;A.continuation=O.continuation};var h1=function(){};
_.g(h1,qv);h1.prototype.getApiPaths=function(){return P_};
h1.prototype.getExtension=function(A){return _.q(A,_.II)};
h1.prototype.JSC$14067_buildRequest=function(A,L){var O,X=L.panelIdentifier||((O=L.identifier)==null?void 0:O.tag);X&&(A.panelId=X);var x;if((x=L.globalConfiguration)==null?0:x.params){var J;A.params=(J=L.globalConfiguration)==null?void 0:J.params}};
_.v2.Object.defineProperties(h1.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var SW=function(){};
_.g(SW,qv);SW.prototype.getApiPaths=function(){return P_};
SW.prototype.getExtension=function(A){return _.q(A,UvV)};
SW.prototype.JSC$14067_buildRequest=function(A,L){L.panelLoadingStrategy&&wVJ(A,L.panelLoadingStrategy)};var qx=function(){};
_.g(qx,qv);qx.prototype.getApiPaths=function(){return P_};
qx.prototype.getExtension=function(A){return _.q(A,ton)};
qx.prototype.JSC$14067_buildRequest=function(A,L){L.loadingStrategy&&wVJ(A,L.loadingStrategy)};var gP=function(){};
_.g(gP,qv);gP.prototype.getApiPaths=function(){return P_};
gP.prototype.getExtension=function(A){return _.q(A,_.r0)};
gP.prototype.JSC$14067_buildRequest=function(A,L){L.panelLoadingStrategy&&wVJ(A,L.panelLoadingStrategy)};var wP=function(){};
_.g(wP,qv);wP.prototype.getApiPaths=function(){return P_};
wP.prototype.getExtension=function(A){return _.q(A,bbn)};
wP.prototype.JSC$14067_buildRequest=function(A,L){var O,X=(O=L.contentSourcePanelIdentifier)==null?void 0:O.tag;X&&(A.panelId=X);var x;if((x=L.globalConfiguration)==null?0:x.params){var J;A.params=(J=L.globalConfiguration)==null?void 0:J.params}};var po=function(){};
_.g(po,qv);po.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
po.prototype.getExtension=function(A){return _.q(A,hiJ)};
po.prototype.JSC$14067_buildRequest=function(A,L){L.params&&(A.params=L.params)};var i9=function(){};
_.g(i9,qv);i9.prototype.getApiPaths=function(){return LLV};
i9.prototype.getExtension=function(A){return _.q(A,gtu)};
i9.prototype.JSC$14067_buildRequest=function(A,L){L.externalChannelId&&(A.externalChannelId=L.externalChannelId);L.superChatAction&&(A.superChatAction=L.superChatAction);L.superStickersAction&&(A.superStickersAction=L.superStickersAction)};var Nx=function(){};
_.g(Nx,qv);Nx.prototype.getApiPaths=function(){return A2J};
Nx.prototype.getExtension=function(A){return _.q(A,V9c)||_.q(A,BPM)};
Nx.prototype.JSC$14067_buildRequest=function(A,L){L.videoIds?A.videoIds=L.videoIds:L.videoId&&(A.videoIds=[L.videoId]);L.playlistId&&(A.playlistId=L.playlistId);L.params&&(A.params=L.params);A.excludeWatchLater=!1};var rP=function(){};
_.g(rP,qv);rP.prototype.getApiPaths=function(){return Hl6};
rP.prototype.getExtension=function(A){return _.q(A,_.U7)};
rP.prototype.JSC$14067_buildRequest=function(A,L,O){O.create_playlist_title?A.title=O.create_playlist_title:L.title&&(A.title=L.title);if(O.create_playlist_privacy_status&&typeof O.create_playlist_privacy_status==="number"){a:{var X=O.create_playlist_privacy_status;if(X!==0){if(X===1){X="PUBLIC";break a}if(X===2){X="UNLISTED";break a}}X="PRIVATE"}A.privacyStatus=X}else L.privacyStatus&&(A.privacyStatus=L.privacyStatus);O.create_playlist_description&&(A.description=O.create_playlist_description);L.videoIds&&
(A.videoIds=L.videoIds);L.params&&(A.params=L.params);L.sourcePlaylistId&&(A.sourcePlaylistId=L.sourcePlaylistId)};var Ko=function(){};
_.g(Ko,qv);Ko.prototype.getApiPaths=function(){return Mb3};
Ko.prototype.getExtension=function(A){return _.q(A,qUH)};
Ko.prototype.JSC$14067_buildRequest=function(A,L){A.playlistId=L.playlistId};var Gq=function(){};
_.g(Gq,qv);Gq.prototype.getApiPaths=function(){return uCl};
Gq.prototype.getExtension=function(A){return _.q(A,op3)};
Gq.prototype.JSC$14067_buildRequest=function(A,L){L.playlistId&&(A.playlistId=L.playlistId);L.params&&(A.params=L.params)};var l9=function(){};
_.g(l9,qv);l9.prototype.getApiPaths=function(){return GUN};
l9.prototype.getExtension=function(A){return _.q(A,_.zF)||void 0};
l9.prototype.JSC$14067_buildRequest=function(A,L){L.actions&&(A.actions=L.actions);L.params&&(A.params=L.params);L.playlistId&&(A.playlistId=L.playlistId)};var cK=function(){};
_.g(cK,qv);_.P=cK.prototype;_.P.getApiPaths=function(){return c23};
_.P.getExtension=function(A){return _.q(A,_.rM)};
_.P.JSC$14067_buildRequest=function(A,L){L.videoId&&(A.playerRequest={videoId:L.videoId},L.playerParams&&(A.playerRequest.params=L.playerParams),L.racyCheckOk&&(A.playerRequest.racyCheckOk=!!L.racyCheckOk),L.contentCheckOk&&(A.playerRequest.contentCheckOk=!!L.contentCheckOk));L.params&&(A.params=L.params);L.inputType&&(A.inputType=L.inputType);A.disablePlayerResponse=!0};
_.P.getRequestConfig=function(A){var L;(A=this.JSC$14074_getStoreKey(A))&&(L={storeStrategy:{storeKey:A}});_.h("web_log_reels_ticks")&&(L=L||{},L.requestTick="r_wrs",L.responseTick="r_wrr");return L};
_.P.JSC$14074_getStoreKey=function(A){A=this.getExtension(A);if(_.h("shorts_controller_retrieve_seedless_sequence_v2")){if((A==null?void 0:A.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.MA("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if(_.h("web_shorts_prefetch_service_enabled")&&A!=null&&A.videoId){var L={videoId:A.videoId};A.params&&(L.params=A.params);return _.MA("reel_item_watch",L)}};var Co=function(){};
_.g(Co,qv);_.P=Co.prototype;_.P.getApiPaths=function(){return CRc};
_.P.getExtension=function(A){return _.q(A,_.rM)};
_.P.JSC$14067_buildRequest=function(A,L,O){O=O===void 0?{}:O;A.sequenceParams=L.sequenceParams;var X;((X=O)==null?0:X.contentPlaybackContext)&&_.h("web_shorts_prefetch_service_enabled")&&(A.playbackContext={contentPlaybackContext:O.contentPlaybackContext})};
_.P.JSC$14074_getStoreKey=function(A){if(_.h("web_enable_delay_shorts_sequence_call")||_.h("shorts_controller_retrieve_seedless_sequence_v2"))if(A=this.getExtension(A),A==null?0:A.sequenceParams)return _.MA("reel_watch_sequence",{sequenceParams:A.sequenceParams})};
_.P.getRequestConfig=function(A){A=this.JSC$14074_getStoreKey(A);var L;A&&(L={storeStrategy:{storeKey:A}});_.h("reel_watch_sequence_request_log_ticks")&&(L=L||{},L.requestTick="r_wsrs",L.responseTick="r_wsrr",L.processorTick="r_wsrp");return L};
var FA=function(){};
_.g(FA,qv);FA.prototype.getApiPaths=function(){return CRc};
FA.prototype.getExtension=function(A){return _.q(A,_.Mn)};
FA.prototype.JSC$14067_buildRequest=function(A,L,O){O=O===void 0?{}:O;L.token&&(A.continuation=L.token);var X;((X=O)==null?0:X.contentPlaybackContext)&&_.h("web_shorts_prefetch_service_enabled")&&(A.playbackContext={contentPlaybackContext:O.contentPlaybackContext})};
FA.prototype.getRequestConfig=function(A){A=this.JSC$14074_getStoreKey(A);var L;A&&(L={storeStrategy:{storeKey:A}});_.h("reel_watch_sequence_request_log_ticks")&&(L=L||{},L.requestTick="r_wsrs",L.responseTick="r_wsrr",L.processorTick="r_wsrp");return L};var Rp=function(){};
_.g(Rp,qv);Rp.prototype.getApiPaths=function(){return UUj};
Rp.prototype.getExtension=function(A){return _.q(A,_.wFn)};
Rp.prototype.JSC$14067_buildRequest=function(A,L,O){O=O===void 0?{}:O;L.flagAction&&(A.action=L.flagAction);L.flagRequestType&&(A.flagRequestType=L.flagRequestType);L.additionalDetailCheckboxChecked&&(A.additionalDetailCheckboxChecked=L.additionalDetailCheckboxChecked);L.legalCheckboxChecked&&(A.legalCheckboxChecked=L.legalCheckboxChecked);L={};O.flag_issue_type!==void 0&&(L.issue=O.flag_issue_type);O.flag_affiliation!==void 0&&(L.affiliation=O.flag_affiliation);O.flag_full_name&&(L.fullName=O.flag_full_name);
Object.keys(L).length&&(A.legalReportDetails=L);if(O.flag_description||O.text)A.userComments=O.flag_description||O.text;L={};O.minutes!==void 0&&O.seconds!==void 0&&(L.minutes=O.minutes,L.seconds=O.seconds);O.vss_id&&(L.vssId=O.vss_id);Object.keys(L).length&&(A.videoReportDetails=L);L={};O.video_ids&&(L.videoIds=O.video_ids);O.impersonated_channel_url&&(L.impersonatedChannelUrl=O.impersonated_channel_url);Object.keys(L).length&&(A.channelAbuseReportDetails=L)};
_.v2.Object.defineProperties(Rp.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var QQ=function(){};
_.g(QQ,qv);QQ.prototype.getApiPaths=function(){return XWu};
QQ.prototype.getExtension=function(A){return _.q(A,aIn)};
QQ.prototype.JSC$14067_buildRequest=function(A,L){L.blockedForKidsContent&&(A.blockedForKidsContent=L.blockedForKidsContent)};var m_=function(){};
_.g(m_,qv);m_.prototype.getApiPaths=function(){return QW7};
m_.prototype.getExtension=function(A){return _.q(A,zwP)};
m_.prototype.JSC$14067_buildRequest=function(A,L,O){A.params=L.params;O.impersonated_channel_url&&(A.impersonatedChannelUrl=O.impersonated_channel_url)};var fo=function(){};
_.g(fo,qv);fo.prototype.getApiPaths=function(){return Sol};
fo.prototype.getExtension=function(A){return _.q(A,_.kac)};
fo.prototype.JSC$14067_buildRequest=function(A,L){L.items&&(A.items=L.items);L.kidGaiaId&&(A.kidGaiaId=L.kidGaiaId)};var Ip=function(){};
_.g(Ip,qv);Ip.prototype.getApiPaths=function(){return L9H};
Ip.prototype.getExtension=function(A){return _.q(A,_.uGj)};
Ip.prototype.JSC$14067_buildRequest=function(A,L){L.params&&(A.params=L.params);L.targetId&&(A.targetId=L.targetId)};var yQ=function(){};
_.g(yQ,qv);yQ.prototype.getApiPaths=function(){return y2j};
yQ.prototype.getExtension=function(A){return _.q(A,vIj)};
yQ.prototype.JSC$14067_buildRequest=function(A,L){L.externalVideoId&&(A.externalVideoId=L.externalVideoId);L.query&&(A.query=L.query);L.sourceTimelines&&(A.sourceTimelines=L.sourceTimelines)};var Zu=function(){};
_.g(Zu,qv);Zu.prototype.getApiPaths=function(){return ZEN};
Zu.prototype.getExtension=function(A){return _.q(A,_.Mn)||void 0};
Zu.prototype.JSC$14067_buildRequest=function(A,L){L.token&&(A.continuation=L.token)};
_.qgz=function(){};
_.g(_.qgz,qv);_.P=_.qgz.prototype;_.P.getApiPaths=function(){return ZEN};
_.P.getExtension=function(A){return _.q(A,_.wM)||void 0};
_.P.isNavigationCommand=function(){return!0};
_.P.JSC$14074_getStoreKey=function(A,L){L=L===void 0?{}:L;if(!L.disableCache&&(A=this.getExtension(A))&&A.query)return L={query:A.query},A.params&&(L.params=A.params),_.MA("search",L)};
_.P.JSC$14067_buildRequest=function(A,L,O){L.query&&(A.query=L.query);L.params&&(A.params=L.params);if(!_.h("web_forward_suggest_stats_killswitch")){var X=_.q(L,BqJ);X&&(A.suggestStats=X)}var x;!_.h("kevlar_searchbox_stats_killswitch")&&((x=O.tempData)==null?0:x.gs_l)&&!_.q(L,BqJ)&&(A.webSearchboxStatsUrl="/search?oq="+(O.tempData.oq||"")+"&gs_l="+O.tempData.gs_l);var J;if((J=O.tempData)==null?0:J.entityMid)L=A.suggestionSearchParams||{},L.entityMid=O.tempData.entityMid,A.suggestionSearchParams=L;
_.h("enable_desktop_vdcbg_components")&&(O=_.qG().getFlag(186),A.inlineSettingStatus=O?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.P.getRequestConfig=function(A,L){L=L===void 0?{}:L;A=this.JSC$14074_getStoreKey(A,L);var O;A&&(O={storeStrategy:{storeKey:A}});_.h("web_log_search_ticks_ks")||(O=O||{},O.requestTick="sr_s",O.responseTick="sr_r");return O};var jW=function(){};
_.g(jW,qv);jW.prototype.getApiPaths=function(){return Dq6};
jW.prototype.getExtension=function(A){return _.q(A,F07)};
jW.prototype.JSC$14067_buildRequest=function(A,L){L.serializedGetSharingProviderDataParams&&(A.serializedGetSharingProviderDataParams=L.serializedGetSharingProviderDataParams)};var WK=function(){};
_.g(WK,qv);WK.prototype.getApiPaths=function(){return e6N};
WK.prototype.getExtension=function(A){return _.q(A,bD6)};
WK.prototype.JSC$14067_buildRequest=function(A,L){L.endpoint&&(A.endpoint=L.endpoint);L.action&&(A.action=L.action)};var HK=function(){};
_.g(HK,qv);HK.prototype.getApiPaths=function(){return $U7};
HK.prototype.getExtension=function(A){return _.q(A,gqn)};
HK.prototype.JSC$14067_buildRequest=function(A,L){A.videoId=L.videoId;L.scheduledRedirectMetadataSourceVideoId&&(A.scheduledRedirectMetadata={sourceVideoId:L.scheduledRedirectMetadataSourceVideoId})};var zq=function(){};
_.g(zq,qv);zq.prototype.getApiPaths=function(){return z6g};
zq.prototype.getExtension=function(A){return _.q(A,_.qRJ)};
zq.prototype.JSC$14067_buildRequest=function(A,L){A.params=L.params;A.correctionText=L.correctionText};var BK=function(){};
_.g(BK,qv);BK.prototype.getApiPaths=function(){return wHd};
BK.prototype.getExtension=function(A){return _.q(A,_.oIH)};
BK.prototype.JSC$14067_buildRequest=function(A,L){L.params&&(A.params=L.params);A.searchQuery=L.searchQuery;A.languageCode=L.languageCode;A.kind=L.kind;A.name=L.name;A.externalVideoId=L.externalVideoId};var Mx=function(){};
_.g(Mx,qv);Mx.prototype.getApiPaths=function(){return J$3};
Mx.prototype.getExtension=function(A){return _.q(A,QrL)};
Mx.prototype.JSC$14067_buildRequest=function(A,L){L.params&&(A.params=L.params)};var $Q=function(A){this.JSC$19092_storeWithEntities=A};
_.g($Q,qv);$Q.prototype.getApiPaths=function(){return mUg};
$Q.prototype.getExtension=function(A){return _.q(A,fbg)||_.q(A,yMl)};
$Q.prototype.JSC$14067_buildRequest=function(A,L,O){O.client_data&&(A.clientData=O.client_data);if(L.commerceActionConfig){var X=L.commerceActionConfig;L=X.actionId;X=X.commerceActionParams;L&&(A.actionId=L);X&&(A.commerceActionParams=X)}else{var x=L.actionId,J=L.commerceActionParams;O=L.entityKeys;x&&(A.actionId=x);J&&(A.commerceActionParams=J);var Y;L=(X=this.JSC$19092_storeWithEntities)==null?void 0:(Y=X.getState())==null?void 0:Y.entities;if(O&&L){X=[];Y=_.d(O);for(O=Y.next();!O.done;O=Y.next())if(x=
O.value,O=_.dh(x).entityType,x=_.eM(L,O,x))J={},X.push((J[O]=x,J));A.entityMutationPayloads=X}}};
$Q.prototype.getRequestConfig=function(A){var L,O=(L=_.q(A,fbg))==null?void 0:L.requestSequenceType;if(O&&A.clickTrackingParams&&O!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:A.clickTrackingParams,sequenceType:O}}};
$Q[dx]=[V7];var ap=function(){};
_.g(ap,qv);ap.prototype.getApiPaths=function(){return Pxl};
ap.prototype.getExtension=function(A){return _.q(A,_.xUu)};
ap.prototype.JSC$14067_buildRequest=function(A,L){L.feedbackData&&(A.feedbackData=L.feedbackData);L.params&&(A.itemParams=L.params)};
_.v2.Object.defineProperties(ap.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var kQ=function(){};
_.g(kQ,qv);kQ.prototype.getApiPaths=function(){return dfV};
kQ.prototype.getExtension=function(A){return _.q(A,sfV)};
kQ.prototype.JSC$14067_buildRequest=function(A,L,O){O.payments_payload&&(A.paymentsPayload=O.payments_payload);O.offer_params&&(A.offerParams=O.offer_params);L.transactionParams&&(A.transactionParams=L.transactionParams)};var U2=function(){};
_.g(U2,qv);U2.prototype.getApiPaths=function(){return Ydg};
U2.prototype.getExtension=function(A){return _.q(A,_.J3c)};
U2.prototype.JSC$14067_buildRequest=function(A,L,O){O=O===void 0?{}:O;L.buybucketParams&&(A.buybucketData={params:L.buybucketParams},L.stickerParams?A.buybucketData.stickerParams=L.stickerParams:(O.rich_chat_message?A.buybucketData.richChatMessage=O.rich_chat_message:O.chat_message_text&&(A.buybucketData.chatMessageText=O.chat_message_text),O.purchase_price_micros&&(A.buybucketData.purchasePriceMicros=O.purchase_price_micros.toString())));L.donationAmountMicros&&(A.tipAmountMicros=L.donationAmountMicros,
L.tipParams&&(A.tipParams=L.tipParams));L.offerParams&&(A.offerParams=L.offerParams);L.productData&&(A.productData=L.productData);L.transactionParams&&(A.transactionParams=L.transactionParams)};var vK=function(){};
_.g(vK,qv);vK.prototype.getApiPaths=function(){return uH7};
vK.prototype.getExtension=function(A){return _.q(A,YLu)};
vK.prototype.JSC$14067_buildRequest=function(A,L){L.updateFopParams&&(A.updateFopParams=L.updateFopParams)};var op=function(){};
_.g(op,qv);op.prototype.getApiPaths=function(){return TIL};
op.prototype.getExtension=function(A){return _.q(A,_.Yf)};
op.prototype.JSC$14067_buildRequest=function(A,L){L.couponCode&&(A.couponCode=L.couponCode);L.params&&(A.itemParams=L.params)};var AG=function(){};
_.g(AG,qv);AG.prototype.getApiPaths=function(){return VSL};
AG.prototype.getExtension=function(A){return _.q(A,_.Ib6)};
AG.prototype.JSC$14067_buildRequest=function(A,L,O){O=O===void 0?{}:O;L.params&&(A.params=L.params);O.ctk&&(A.clientToken=O.ctk)};var Lg=function(A){this.JSC$19127_storeWithEntities=A};
_.g(Lg,qv);Lg.prototype.getApiPaths=function(){return Dfl};
Lg.prototype.getExtension=function(A){return _.q(A,_.ot)};
Lg.prototype.JSC$14067_buildRequest=function(A,L,O){O.purchase_price_micros&&(A.productData={pdgData:{purchasePriceMicros:O.purchase_price_micros.toString()}},O.rich_chat_message&&(A.productData.pdgData.richChatMessage=O.rich_chat_message),O.currency_code&&(A.productData.pdgData.currencyCode=O.currency_code));L.transactionParams&&(A.transactionParams=L.transactionParams);L.clientLocationContext&&(A.clientLocationContext=L.clientLocationContext);O.payments_payload&&(A.paymentsPayload=O.payments_payload);
O.funds_guarantee_callback_client_data&&(A.fundsGuaranteeCallbackClientData=O.funds_guarantee_callback_client_data);var X,x;O=(X=this.JSC$19127_storeWithEntities)==null?void 0:(x=X.getState())==null?void 0:x.entities;if(L.entityKeys&&O){X=[];L=_.d(L.entityKeys);for(x=L.next();!x.done;x=L.next()){var J=x.value;x=_.dh(J).entityType;if(J=_.eM(O,x,J)){var Y={};X.push((Y[x]=J,Y))}}A.entityMutationPayloads=X}};
Lg[dx]=[V7];var O5=function(){};
_.g(O5,qv);O5.prototype.getApiPaths=function(){return ev6};
O5.prototype.getExtension=function(A){return _.q(A,Pj3)};
O5.prototype.JSC$14067_buildRequest=function(A,L,O){O=O===void 0?{}:O;O.backend_analytics&&(A.serializedBackendAnalyticsEvent=O.backend_analytics);L.offerParams&&(A.offerParams=L.offerParams)};var Xb=function(){};
_.g(Xb,qv);Xb.prototype.getApiPaths=function(){return TIL};
Xb.prototype.getExtension=function(A){return _.q(A,xj_)};
Xb.prototype.JSC$14067_buildRequest=function(A,L){L.params&&(A.itemParams=L.params)};var xE=function(){};
_.g(xE,qv);xE.prototype.getApiPaths=function(){return EZu};
xE.prototype.getExtension=function(A){return _.q(A,_.zWN)};
xE.prototype.JSC$14067_buildRequest=function(A,L,O){O.resume_time_ms&&(A.resumeTimeMs=O.resume_time_ms);L.pauseParams&&(A.pauseParams=L.pauseParams)};var s5=function(){};
_.g(s5,qv);s5.prototype.getApiPaths=function(){return nZL};
s5.prototype.getExtension=function(A){return _.q(A,_.dUJ)};
s5.prototype.JSC$14067_buildRequest=function(A,L,O){O=O===void 0?{}:O;O.c&&(A.redeemCode=O.c);O.rd&&(A.riskData=O.rd);O.ctk&&(A.clientToken=O.ctk)};var JG=function(){};
_.g(JG,qv);JG.prototype.getApiPaths=function(){return tSV};
JG.prototype.getExtension=function(A){return _.q(A,_.Bj3)};
JG.prototype.JSC$14067_buildRequest=function(A,L){L.resumeParams&&(A.resumeParams=L.resumeParams)};var P5=function(A,L){this.clientName=A;this.defaultExpirationDelayMs=L};
P5.prototype.put=function(A,L){var O=this,X;return _.u(function(x){X=Object.assign({},L.data);X.key=A;X.clientName=O.clientName;X.expireTimestampMs===void 0&&(X.expireTimestampMs=(Math.round((0,_.O$)())+O.defaultExpirationDelayMs).toString());return x.return(O.putInternal(A,X))})};
P5[dx]=[fF,GOn];var gVM=function(){P5.apply(this,arguments);this.JSC$19157_responseStore=new Map};
_.g(gVM,P5);_.P=gVM.prototype;_.P.get=function(A){var L=this;return _.u(function(O){return O.return(h2(L,A))})};
_.P.putInternal=function(A,L){var O=this,X,x,J;return _.u(function(Y){X=O.defaultExpirationDelayMs;L.expireTimestampMs&&(X=Number(L.expireTimestampMs)-Math.round((0,_.O$)()),x=_.PO("mweb_override_response_store_expiration_ms"),x>0&&x<X&&(X=x));J=setTimeout(function(){O.remove(A)},X);
O.JSC$19157_responseStore.set(A,{entryData:L,timer:J});_.qo(Y)})};
_.P.remove=function(A){var L=this;return _.u(function(O){wnX(L,A);_.qo(O)})};
_.P.removeAll=function(){var A=this;return _.u(function(L){A.JSC$19157_responseStore.forEach(function(O){clearTimeout(O.timer)});
A.JSC$19157_responseStore.clear();_.qo(L)})};
_.P.has=function(A){return!!this.JSC$19157_responseStore.get(A)};
_.P.getKeys=function(){return this.JSC$19157_responseStore.keys()};
var h2=function(A,L){if(A=A.JSC$19157_responseStore.get(L))return new _.bR(A.entryData)},wnX=function(A,L){var O=A.JSC$19157_responseStore.get(L);
O&&(clearTimeout(O.timer),A.JSC$19157_responseStore.delete(L))};var pVP;var rLu=function(A,L,O){P5.call(this,A,L);this.token=O};
_.g(rLu,P5);_.P=rLu.prototype;_.P.get=function(A){var L=this,O,X;return _.u(function(x){return x.nextAddress==1?x.yield(NOe(L.token),2):x.nextAddress!=3?(O=x.yieldResult,x.yield(O.get("ResponseStore",[A,L.clientName]),3)):(X=x.yieldResult)?x.return(new _.bR(X)):x.return(void 0)})};
_.P.putInternal=function(A,L){var O=this,X;return _.u(function(x){if(x.nextAddress==1)return x.yield(NOe(O.token),2);X=x.yieldResult;return x.yield(X.put("ResponseStore",L),0)})};
_.P.remove=function(A){var L=this,O;return _.u(function(X){if(X.nextAddress==1)return X.yield(NOe(L.token),2);O=X.yieldResult;return X.return(O.delete("ResponseStore",[A,L.clientName]))})};
_.P.removeAll=function(){var A=this,L;return _.u(function(O){if(O.nextAddress==1)return O.yield(NOe(A.token),2);L=O.yieldResult;return O.yield(W2g(L,IDBKeyRange.only(A.clientName)),0)})};
_.P.has=function(){throw Error("Wi");};_.dL=new _.Yx("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var pnJ=function(A){var L;this.stateTagsData=(L=A.responseContext)==null?void 0:L.stateTags},i6M=function(A){var L;
return((L=A.stateTagsData)==null?void 0:L.stateTagsModified)||[]};var NJk;NJk=function(A){this.JSC$19170_responseStore=A};
_.aI=function(A,L,O){if(!_.h("state_tags_killswitch")){var X=new pnJ(L);if(i6M(X).length>0){var x=A.JSC$19170_responseStore.getKeys();x=_.d(x);for(var J=x.next();!J.done;J=x.next()){J=J.value;var Y=h2(A.JSC$19170_responseStore,J);if(Y){var T=_.uE(Y);a:{var V=void 0;Y=i6M(X);T=((V=(new pnJ(T)).stateTagsData)==null?void 0:V.relevantStateTags)||[];V=_.d(T);for(T=V.next();!T.done;T=V.next())if(T=T.value,T.stateTag!=null&&Y.includes(T.stateTag)&&T.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){Y=
!0;break a}Y=!1}Y&&wnX(A.JSC$19170_responseStore,J)}}}}var E;X=(E=L.responseContext)==null?void 0:E.maxAgeSeconds;O&&X&&Number(X)>0&&(L=Ek(L,X),A.JSC$19170_responseStore.put(O,new _.bR(L)))};
NJk.prototype.handleResponse=function(A,L){if(!L)throw Error("Xi");var O,X;L=(O=L.config)==null?void 0:(X=O.storeStrategy)==null?void 0:X.storeKey;_.aI(this,A,L)};
NJk[dx]=[_.t2];_.Rx_=new _.Yx("STORE_RESPONSE_PROCESSOR_TOKEN");var rcX=function(A){this.JSC$19173_responseStore=A};
rcX.prototype.handleResponse=function(A,L){if(L.input.match(_.L3(CRc))){var O;if(A==null?0:(O=A.entries)==null?0:O.length)for(A=_.d(A.entries),L=A.next();!L.done;L=A.next()){O=L.value.command;var X=void 0;L=(X=_.q(O,_.rM))==null?void 0:X.unserializedPrefetchData;if(!O||!L)break;X=(new cK).JSC$14074_getStoreKey(O);var x=_.q(L,$16),J=void 0,Y=void 0,T=void 0,V=_.PO("web_shorts_prefetch_service_ttl_seconds")>0?_.PO("web_shorts_prefetch_service_ttl_seconds"):Number((T=(J=x)==null?void 0:(Y=J.responseContext)==
null?void 0:Y.maxAgeSeconds)!=null?T:3600);X&&V>0&&(x=Ek(x,V),this.JSC$19173_responseStore.put(X,new _.bR(x)));O=(new Nv).JSC$14074_getStoreKey(O);L=_.q(L,cBN);J=x=X=void 0;Y=_.PO("web_shorts_prefetch_service_ttl_seconds")>0?_.PO("web_shorts_prefetch_service_ttl_seconds"):Number((J=(X=L)==null?void 0:(x=X.responseContext)==null?void 0:x.maxAgeSeconds)!=null?J:3600);O&&Y>0&&(L=Ek(L,Y),this.JSC$19173_responseStore.put(O,new _.bR(L)))}}};
rcX[dx]=[_.t2];var Klk=function(A){this.innertubeTransportService=A};
Klk[dx]=[_.Ia];var GjS=new _.Yx("SUBMIT_API_SERVICE_TOKEN");var YE=function(){this.scheduler=_.Q7()},lNJ;
YE.prototype.pause=function(){throw Error("Yi");};
YE.prototype.resume=function(){throw Error("Yi");};
YE.prototype.queue=function(A){var L=this,O=_.AI(),X=_.p7(this.scheduler,function(){try{var x;if(_.S5.instance)var J=_.S5.instance;else{var Y=new _.pe("Error: Unexpected uninitialized CommandHandler.");_.C7(Y);J=void 0}(x=J)==null||x.resolveCommand(A.command);O.resolve()}catch(T){O.reject(T)}});
O.promise.thenCatch(function(x){x instanceof _.$f&&L.scheduler.cancelJob(X)});
return O.promise};
YE.prototype.queueAll=function(A){var L=new Map;A=_.d(A);for(var O=A.next();!O.done;O=A.next())O=O.value,L.set(O.id,this.queue(O));return L};var CHM=function(A,L){var O=this;this.taskModel=A;this.onTaskCancelledCallback=L;this.resolver=_.AI();A=A.proto.prefetchConfig;if(!A)throw Error("Zi");if(!A.prefetchAction)throw Error("$i");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(X){X instanceof _.$f&&(ccX(O,O.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),O.onTaskCancelledCallback(O.taskModel.id,O.jobId),O.tick("pcc"));
throw X;});
this.timerName=this.taskModel.id;_.Fz(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
CHM.prototype.getPriority=function(){switch(this.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}};
var ccX=function(A,L){_.CM({prefetchInfo:{cancellationReason:L}},A.timerName)};
CHM.prototype.tick=function(A){_.Rk(A,void 0,this.timerName)};var Tg=function(){var A=this;this.scheduler=_.Q7();this.maxInflightTasks=_.PO("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.PO("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new Tlc;this.onTaskCancelled=function(L,O){O&&A.scheduler.cancelJob(O);FlJ(A,L);uc(A,3)}},R7Z=function(){Tg.instance||(Tg.instance=new Tg);
return Tg.instance};
Tg.prototype.pause=function(){this.prefetchCoordinatorState=0};
Tg.prototype.resume=function(){uc(this,0)};
Tg.prototype.queue=function(A){A=Q6$(this,A);uc(this,1);return A};
Tg.prototype.queueAll=function(A){var L=new Map;A=_.d(A);for(var O=A.next();!O.done;O=A.next())O=O.value,L.set(O.id,Q6$(this,O));uc(this,1);return L};
var Q6$=function(A,L){var O=A.allPrefetchTasks.get(L.id);if(O)return O.cancellablePromise;try{var X=new CHM(L,A.onTaskCancelled)}catch(J){return _.Ry(J)}O=X;O.tick("pcq");var x={prefetchInfo:{taskId:O.taskModel.id,isPrefetch:!0,fetchAction:O.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:O.taskModel.command.clickTrackingParams}};O.taskModel.csn&&(x.clientScreenNonce=O.taskModel.csn);_.CM(x,O.timerName);A.allPrefetchTasks.set(L.id,X);A.drainingHeap.insert(-X.getPriority(),X);return X.cancellablePromise},
uc=function(A,L){A.prefetchCoordinatorState===L&&(A.prefetchCoordinatorState=2,mNB(A))},mNB=function(A){for(var L={};A.prefetchCoordinatorState!==0;L={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(A.inflightPrefetchTasks.size>=A.maxInflightTasks){A.prefetchCoordinatorState=3;break}L.prefetchTask$jscomp$1=A.drainingHeap.remove();if(!L.prefetchTask$jscomp$1){A.prefetchCoordinatorState=1;break}L.taskId$jscomp$3=L.prefetchTask$jscomp$1.taskModel.id;if(A.allPrefetchTasks.has(L.taskId$jscomp$3)){var O=-1;A.coordinatorTimeoutMs>0&&(O=_.p7(A.scheduler,function(X){return function(){Vs(A,X.taskId$jscomp$3,Error("aj"))}}(L),A.coordinatorTimeoutMs));
A.inflightPrefetchTasks.set(L.taskId$jscomp$3,O);if(!A.JSC$19191_commandHandler){if(!_.S5.instance){Vs(A,L.taskId$jscomp$3,Error("bj"));continue}A.JSC$19191_commandHandler=_.S5.instance}a:switch(L.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":O=1;break a;default:O=0}L.prefetchTask$jscomp$1.jobId=A.scheduler.addJob(function(X){return function(){X.prefetchTask$jscomp$1.tick("pcr");try{A.JSC$19191_commandHandler.resolveCommand(X.prefetchTask$jscomp$1.taskModel.command)||
Vs(A,X.taskId$jscomp$3,Error("cj"))}catch(x){Vs(A,X.taskId$jscomp$3,x)}}}(L),O,0)}}},fNX=function(A,L){(L=FlJ(A,L))!=null&&(L.resolver.resolve(),L.tick("pce"));
uc(A,3)},Vs=function(A,L,O){(L=FlJ(A,L,O))!=null&&(L.resolver.reject(O),L.tick("pcc"),ccX(L,"CANCELLATION_REASON_ERROR"),Math.random()<=_.PO("prefetch_coordinator_error_logging_sampling_rate")&&(O=new _.pe("Prefetch Command failed.",L.taskModel.id,O.message),_.C7(O)));
uc(A,3)},FlJ=function(A,L,O){var X=A.allPrefetchTasks.get(L);
X?((O=A.inflightPrefetchTasks.get(L))&&O!==-1&&A.scheduler.cancelJob(O),A.inflightPrefetchTasks.delete(L),A.allPrefetchTasks.delete(L)):_.Rv(new _.pe("Unexpected missing prefetch task when deleting task.",L,O==null?void 0:O.message));return X};var IN$=function(A,L,O,X,x){this.id=A;this.triggerOn=L;this.cancelOn=O;this.command=X;this.proto=x};
_.v2.Object.defineProperties(IN$.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var ycX=function(){this.JSC$19196_prefetchCoordinator=R7Z();lNJ||(lNJ=new YE);this.defaultCoordinator=lNJ},Z6M;
ycX.getInstance=function(){Z6M||(Z6M=new ycX);return Z6M};
ycX.prototype.get=function(A){switch(A){case 0:return this.JSC$19196_prefetchCoordinator;default:return this.defaultCoordinator}};var D3=function(){this.coordinatorSupplier=ycX.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},H6J=function(A){var L=_.Fn()||void 0,O=Object.keys(j6J)[0];
if(O){var X=A.taskIdByTriggerId.get(O);if(X!=null){A.taskIdByTriggerId.delete(O);O=[];X=_.d(X);for(var x=X.next();!x.done;x=X.next())if(x=A.tasks.get(x.value))L!=="UNDEFINED_CSN"&&(x.csn=L),O.push(x);O=lfe(O);L=[];O=_.d(O);for(X=O.next();!X.done;X=O.next()){x=_.d(X.value);X=x.next().value;x=x.next().value;X=A.coordinatorSupplier.get(X).queueAll(x);X=_.d(X);var J=X.next();for(x={};!J.done;x={taskId$jscomp$9:void 0},J=X.next()){var Y=_.d(J.value);J=Y.next().value;Y=Y.next().value;x.taskId$jscomp$9=
J;J=Y;L.push(x.taskId$jscomp$9);A.queuedPromisesByTask.set(x.taskId$jscomp$9,_.R$(J,function(T){return function(){WlJ(A,T.taskId$jscomp$9)}}(x)))}}}}else _.Rv(new _.pe("Unexpected malformed TriggerEvent."))};
D3.prototype.trigger=function(A,L){var O=this,X=this.tasks.get(A);if(!X||this.queuedPromisesByTask.has(A))return!1;z7Z(this,A,X.triggerOn);L!=="UNDEFINED_CSN"&&(X.csn=L);L=this.coordinatorSupplier.get(X.taskType).queue(X);this.queuedPromisesByTask.set(A,_.R$(L,function(){WlJ(O,A)}));
return!0};
D3.prototype.cancel=function(A){var L=this.queuedPromisesByTask.get(A);if(L)L.cancel();else return WlJ(this,A)};
var WlJ=function(A,L){A.queuedPromisesByTask.delete(L);var O=A.tasks.get(L);if(!O)return!1;A.tasks.delete(L);z7Z(A,L,O.triggerOn);(O=GdJ(O.cancelOn))&&(A=A.taskIdByCancelId.get(O))&&A.delete(L);return!0},z7Z=function(A,L,O){(O=Object.keys(O)[0])&&(A=A.taskIdByTriggerId.get(O))&&A.delete(L)};var j6J={taskRegistered:{}},eB=function(){D3.instance||(D3.instance=new D3);this.JSC$19205_taskManager=D3.instance};
_.g(eB,ML);
eB.prototype.resolveCommand=function(A){var L=this,O,X;return _.u(function(x){O=_.q(A,aYH);if((X=O)==null||!X.tasks){var J=new _.pe("RegisterTasksCommand is missing tasks.");_.C7(J);return x.return()}J=L.JSC$19205_taskManager;for(var Y=_.d(O.tasks),T=Y.next();!T.done;T=Y.next())if(T=T.value,T=T.id&&T.triggerOn&&T.cancelOn&&T.command?new IN$(T.id,T.triggerOn,T.cancelOn,T.command,T):void 0,T){var V=Object.keys(T.triggerOn)[0];if(V){var E=GdJ(T.cancelOn);E?(J.tasks.set(T.id,T),J.taskIdByTriggerId.has(V)||J.taskIdByTriggerId.set(V,
new Set),J.taskIdByTriggerId.get(V).add(T.id),J.taskIdByCancelId.has(E)||J.taskIdByCancelId.set(E,new Set),J.taskIdByCancelId.get(E).add(T.id)):_.Rv(new _.pe("Unexpected malformed cancelOn field."))}else _.Rv(new _.pe("Unexpected malformed triggerOn field."))}else _.Rv(new _.pe("Unexpected malformed Task proto."));H6J(L.JSC$19205_taskManager);_.qo(x)})};var BJJ={},M3J=(BJJ.rendered={priority:0,callback:function(){var A={};A.numCpu=navigator.hardwareConcurrency;var L={};L.ramGb=_.Ou.navigator.deviceMemory;var O={staticContext:{}};L.ramGb&&cLy(L.ramGb)&&(O.staticContext.memoryTotalKbytes=(L.ramGb*1048576).toString());A.numCpu&&cLy(A.numCpu)&&(O.staticContext.cpuCores=A.numCpu);if(_.h("web_enable_adaptive_appl_signal")){A={};L=_.fM("rses_dpj");var X=_.fM("rsef_dpj");L&&L>0&&X&&X>0&&(L=Math.ceil(X-L),L>0&&(A.loadLatency=L));A.loadLatency&&cLy(A.loadLatency)&&
(O.appL=A.loadLatency.toString())}_.lg("applicationStarted",O)}},BJJ);var $NM=new _.Yx("WINDOW_ON_ERROR"),aNX=new _.Yx("ERROR_WEIGHT_MAPS"),kjS=new _.Yx("INIT_ERROR");var UNM={},vVX=(UNM.initialized={priority:10,callback:function(A){A.injector.resolve(kjS)()}},UNM);var oVX=function(){},AkS=function(){var A=_.WY("meta_logger_impl");
A||(A=new oVX,_.oZ("meta_logger_impl",A));return A},L$X=function(){AkS().csiSubscriptionKey=DRJ("meta_logging_csi_event",function(A){var L=A.timerName;
if(A=A.timelineData){_.Fz(L,{startTime:A.startTime},L);A.infos&&_.CM(A.infos,L);for(var O=_.d(Object.keys(A.ticks)),X=O.next();!X.done;X=O.next())X=X.value,_.Rk(X,A.ticks[X],L)}})};
oVX.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&nJs(this.csiSubscriptionKey)};var OJX={},XXM=(OJX.initialized={priority:10,callback:function(){L$X()}},OJX);var xQz=function(A,L){this.innertubeClientName=A;this.JSC$19221_prefCookie=L};
xQz.prototype.record=function(){if(_.h("web_li_record_binary_eval_tick")){var A=_.fM("rsef_dpj");var L=_.fM("rses_dpj");A=A!==void 0&&L!==void 0?Math.round(A-L):void 0;if(A!==void 0&&A>0){L=_.wf(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var O=this.poolSize;if(!(L.valuesSeen>=1E9)){if(L.valuesSample.length<O)L.valuesSample.push(A);else{var X=Math.floor(Math.random()*(L.valuesSeen+1));X<O&&(L.valuesSample[X]=A)}L.valuesSeen+=1}_.gf(this.storagePrefix+"-"+this.innertubeClientName,
L,2592E3);A=L.valuesSample;L=CFJ(A);A=A.length<this.poolSize?void 0:L<400?1:L<1700?2:3;A!==void 0&&(this.JSC$19221_prefCookie.set(this.cookiePrefix+this.innertubeClientName,A),this.JSC$19221_prefCookie.save())}}else _.pA(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$19221_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$19221_prefCookie.save()};
xQz[dx]=[fF,EF];var s7B=function(){xQz.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.g(s7B,xQz);var Jk7=new _.Yx("PAGE_LOAD_TIME_TOKEN");var PJS=function(A){this.signal=A;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;A.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.p7(_.c1,this.disableLoggingAndSendPayload,1E4)};
PJS.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.c1.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),dQX(this))};
var dQX=function(A){var L=_.Ch();if(L){var O={webClientComponentsData:{components:Array.from(A.ids,function(X){return{id:X}})}};
A.ids.clear();_.iV().visualElementStateChanged(L,O)}};var YzQ=new _.Yx("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var E5=function(A,L){this.JSC$19250_storeWithEntities=A;this.JSC$19250_commandHandler=L;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
E5.prototype.start=function(){this.JSC$19250_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
E5.prototype.observeDownloadingEntities=function(){var A=_.$1d(this.JSC$19250_storeWithEntities.getState().entities).map(function(X){return aUP(X)});
if(A.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var L={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:lq9()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.Xl(_.b3("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$19250_commandHandler.resolveCommand(L)}this.downloadingEntities=A}else if(this.downloadingEntities.length){var O=MoP(this.JSC$19250_storeWithEntities.getState().entities).map(function(X){return aUP(X)});
this.downloadingEntities.filter(function(X){return O.includes(X)}).length&&(A={openPopupAction:EhP()},this.JSC$19250_commandHandler.resolveCommand(A));
this.downloadingEntities=[]}};
E5[dx]=[V7,_.x$];var uMX;_.tG=function(A,L,O,X,x,J,Y,T){this.JSC$19253_playerApiPromise=A;this.JSC$19253_commandHandler=L;this.JSC$19253_screenManager=O;this.offlineWebClientEligibility=X;this.JSC$19253_prefStorage=x;this.JSC$19253_actionRouter=J;this.entityTypeMap=Y;this.JSC$19253_persistentStorePromiseAccessor=T;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
uMX=function(){var A=_.X5().resolve(_.tG),L;_.u(function(O){if(O.nextAddress==1)return A.downloadFailureListenerBound?O.return():O.yield(A.JSC$19253_playerApiPromise,2);L=O.yieldResult;L.addEventListener("onOfflineOperationFailure",function(X){if(X.failureReason&&X.entityKey&&X.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(X.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var x=_.dh(X.entityKey).entityId;x&&A.JSC$19253_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
x)}else if(_.h("kevlar_woffle")){x=A.JSC$19253_commandHandler;var J=x.resolveCommand;X=X.failureReason;var Y=_.b3("TRANSFER_FAILED",void 0,"Download failed");X==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(Y=_.b3("STORAGE_FULL",void 0,"Storage full"));J.call(x,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Xl(Y),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
A.downloadFailureListenerBound=!0;_.qo(O)})};
_.tG.prototype.deleteVideo=function(A,L){var O=this,X,x,J;return _.u(function(Y){if(Y.nextAddress==1)return Y.yield(O.JSC$19253_playerApiPromise,2);X=Y.yieldResult;J={offlineLoggingData:{offlineDeleteReason:(x=L)!=null?x:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return Y.yield(X.queueOfflineAction(A,O.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",J),0)})};
_.tG.prototype.pauseVideoDownload=function(A){var L=this,O;return _.u(function(X){if(X.nextAddress==1)return X.yield(L.JSC$19253_playerApiPromise,2);O=X.yieldResult;O.pauseVideoDownload(A);_.qo(X)})};
_.tG.prototype.resumeVideoDownload=function(A){var L=this,O;return _.u(function(X){if(X.nextAddress==1)return X.yield(L.JSC$19253_playerApiPromise,2);O=X.yieldResult;return X.yield(O.resumeVideoDownload(A),0)})};
_.tG[dx]=[_.Dl,_.x$,_.Rr,YzQ,hJ,dm,hKJ,i6];var TBJ=new _.Yx("DOWNLOAD_STATE_STORE_TOKEN");var VZk=function(A,L){this.JSC$19273_persistentStorePromiseAccessor=A;this.store=L;this.upliftCompletionResolver=new _.EP},EXM=function(){var A=_.X5().resolve(DQS),L;
_.u(function(O){switch(O.nextAddress){case 1:if(A.upliftImplPromise)return O.return(A.upliftImplPromise);_.e4(O,2);A.upliftImplPromise=eSM(A);return O.yield(A.upliftImplPromise,4);case 4:A.upliftCompletionResolver.resolve();_.zA(O,3);break;case 2:throw L=_.S4(O),A.upliftCompletionResolver.reject(L),L;case 3:return O.return(A.upliftImplPromise)}})},eSM=function(A){var L,O,X;
return _.u(function(x){switch(x.nextAddress){case 1:return _.fB("LOGGED_IN")?x.yield(A.JSC$19273_persistentStorePromiseAccessor(),2):x.return();case 2:L=x.yieldResult;if(!L)return _.Rk("vdeur"),x.return();_.Rk("vdeus");_.e4(x,3);return x.yield(nX7(L),5);case 5:O=x.yieldResult;A.store.dispatch(Cle(O));L.observe(function(J){FGr(A.store,J)});
_.zA(x,4);break;case 3:throw X=_.S4(x),_.Rk("vdeur"),X;case 4:_.Rk("vdeuc"),_.qo(x)}})},nX7=function(A){var L;
return _.u(function(O){if(O.nextAddress==1)return O.yield(yLe(A),2);L=O.yieldResult;return O.return(L.reduce(function(X,x){if(!x.data||!x.key||!x.entityType)return X;X[x.entityType]||(X[x.entityType]={});X[x.entityType][x.key]=x.data;return X},{}))})};
VZk[dx]=[i6,_.al];var DQS;DQS=new _.Yx("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.bc=new _.Yx("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var hG=function(A,L){this.JSC$19276_persistentStorePromiseAccessor=A;this.transportService=L};
hG.prototype.refresh=function(){var A=this,L,O,X,x;return _.u(function(J){if(J.nextAddress==1)return _.fB("LOGGED_IN")?J.yield(A.JSC$19276_persistentStorePromiseAccessor(),2):J.return();if(J.nextAddress!=3)return(L=J.yieldResult)?J.yield(qm_(L),3):J.return();if((O=J.yieldResult)&&!(Number(O.data.refreshTimestampMs||0)<(0,_.O$)()))return J.return();X={browseId:"SPaccount_downloads"};x=_.L3(Or);_.MB(A.transportService,X,x).then(function(Y){var T;if(L&&(Y==null?void 0:(T=Y.responseContext)==null?void 0:
T.maxAgeSeconds)!==0){var V;T=(Y==null?void 0:(V=Y.responseContext)==null?void 0:V.maxAgeSeconds)||604800;V=String(Math.floor((0,_.O$)())+T*1E3);L.put("service:downloads_settings:fallback",new _.bR({innertubeResponse:Y,refreshTimestampMs:V}))}});
_.qo(J)})};
hG[dx]=[_.dL,_.Ia];var SB=function(A,L){this.JSC$19280_playerPromise=A;this.store=L;this.started=!1};
SB.prototype.start=function(){var A=this,L;return _.u(function(O){if(O.nextAddress==1)return A.started?O.return():O.yield(A.JSC$19280_playerPromise,2);L=O.yieldResult;L.addEventListener("onOrchestrationBecameLeader",A.updateIsLeader.bind(A,!0));L.addEventListener("onOrchestrationLostLeader",A.updateIsLeader.bind(A,!1));if(L.isOrchestrationLeader)A.updateIsLeader(L.isOrchestrationLeader());else{var X=new _.pe("Function isOrchestrationLeader is undefined",{"player.isReady":L.isReady(),"player.playVideo":L.playVideo?
"defined":"undefined"});_.C7(X);A.updateIsLeader(!1)}A.started=!0;_.qo(O)})};
SB.prototype.updateIsLeader=function(A){this.store.dispatch(_.JY({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:A}}))};
SB[dx]=[_.Dl,_.al];var tZS=function(A,L){this.networkStatusManager=A;this.JSC$19283_prefStoragePromise=L;this.redirectsToPreload=["https://youtube.com"]},bJM=function(){var A=_.X5().resolve(tZS),L,O,X,x,J,Y;
_.u(function(T){switch(T.nextAddress){case 1:return T.yield(A.JSC$19283_prefStoragePromise,2);case 2:L=T.yieldResult;if(!(O=L)){T.jumpTo(3);break}return T.yield(L.get("yt-redirect-prefetch-id"),4);case 4:O=T.yieldResult;case 3:if(O||!A.networkStatusManager.isNetworkAvailable())return T.return();X={cache:"reload",redirect:"manual"};x=_.d(A.redirectsToPreload);J=x.next();case 5:if(J.done){if(!L){T.jumpTo(0);break}return T.yield(L.set("yt-redirect-prefetch-id",!0,86400),0)}Y=J.value;_.e4(T,8);return T.yield(_.Ou.fetch(Y,
X),10);case 10:_.zA(T,6);break;case 8:_.S4(T);case 6:J=x.next(),T.jumpTo(5)}})};var q8=function(A){A?(this.container=A,this.containerWasInjected=!0):this.containerWasInjected=!1};
q8.prototype.openDialog=function(A,L,O){var X=this,x;return _.u(function(J){(x=X.container)==null||x.openDialog(A,L,O);_.qo(J)})};
q8.prototype.closeDialog=function(){var A=this,L;return _.u(function(O){(L=A.container)==null||L.closeDialog();_.qo(O)})};
q8.prototype.isDialogOpen=function(){var A=this,L,O;return _.u(function(X){return X.return((O=(L=A.container)==null?void 0:L.isDialogOpen())!=null?O:!1)})};
q8[dx]=[_.Ot(dc6)];_.hSS=new _.Yx("POPUP_CONTROLLER_TOKEN");var SzS=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
SzS.prototype.registerPanel=function(A,L){if(A){this.panelMap.set(A,L);var O=this.pendingPanelResolvers.get(A);O&&(O.resolve(L),this.pendingPanelResolvers.delete(A))}};
SzS.prototype.getPanel=function(A){var L=this,O;return _.u(function(X){return(O=L.panelMap.get(A))?X.return(O):X.return(qzM(L,A))})};
var qzM=function(A,L){var O,X;return _.u(function(x){if(O=A.pendingPanelResolvers.get(L))return x.return(O.promise);X=new _.EP;A.pendingPanelResolvers.set(L,X);return x.return(X.promise)})},gXZ=function(A){SzS.call(this);
var L=this;this.popupController=A;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return L.panelMap.size}}};
_.g(gXZ,SzS);_.P=gXZ.prototype;_.P.getReloadContinuation=function(A){var L=this,O;return _.u(function(X){if(X.nextAddress==1)return X.yield(L.getPanel(A),2);O=X.yieldResult;return X.return(O.getReloadContinuation())})};
_.P.showPanel=function(A,L,O,X,x,J,Y){var T=this,V,E,n,t;return _.u(function(b){if(b.nextAddress==1){Y&&T.updatePanelContinuationDatas.set(A,Y);if((V=O)==null?0:(E=V.engagementPanelPopupPresentationConfig)==null?0:E.popupType){n=O.engagementPanelPopupPresentationConfig.popupType;x===void 0&&(x=document.body);var S=b.return,w=T.popupController,l=w.openPopup;a:switch(n){case "PANEL_POPUP_TYPE_DIALOG":var F="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":F="DROPDOWN";break a;default:throw Error("ej`"+
n);}return S.call(b,l.call(w,A,L,F,x))}return b.yield(T.getPanel(A),2)}t=b.yieldResult;(L||J)&&t.updatePanel(L,!1,X,J);t.showPanel(X);_.qo(b)})};
_.P.hidePanel=function(A){var L=this,O;return _.u(function(X){if(X.nextAddress==1)return X.yield(L.getPanel(A),2);O=X.yieldResult;O.hidePanel();L.popupController.closePopup(A);_.qo(X)})};
_.P.isVisible=function(A,L){var O=this,X;return _.u(function(x){if(x.nextAddress==1)return L&&!O.panelMap.has(A)?x.return(!1):x.yield(O.getPanel(A),2);X=x.yieldResult;return x.return(X.isVisible())})};
_.P.updatePanel=function(A,L,O,X,x,J){O=O===void 0?!1:O;var Y=this,T;return _.u(function(V){if(V.nextAddress==1){if(!L&&!x)return V.return();J&&Y.updatePanelContinuationDatas.set(A,J);return V.yield(Y.getPanel(A),2)}T=V.yieldResult;T.updatePanel(L,O,X,x);_.qo(V)})};
_.P.registerPanelContent=function(A,L){A&&this.panelContentMap.set(A,L)};
_.P.unregisterPanelContent=function(A){this.panelContentMap.delete(A)};
_.P.getPanelContent=function(A){return this.panelContentMap.get(A)};
_.P.getUpdatePanelContinuationData=function(A){return this.updatePanelContinuationDatas.get(A)};
gXZ[dx]=[_.hSS];var gL=function(A,L){this.innertubeTransportService=A;this.JSC$19299_screenManager=L},wXS=function(A){var L;
return!((L=A.panelLoadingStrategy)==null||!L.requestTemplate)};
gL.prototype.makeRequest=function(A){var L=this,O,X;return _.u(function(x){switch(x.nextAddress){case 1:if(!wXS(L)){x.jumpTo(2);break}_.e4(x,3);return x.yield(_.oQ(L.innertubeTransportService,A),5);case 5:return O=x.yieldResult,O?x.return(O.content):(_.C7(Error("fj")),x.return(void 0));case 3:X=_.S4(x),_.C7(X);case 2:return x.return(void 0)}})};
gL.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
gL.prototype.execute=function(A){var L=this,O,X,x,J,Y,T,V,E,n,t;return _.u(function(b){if(b.nextAddress==1){O=A;X=O.data;x=O.fallbackVe;J=O.parentVe;Y=O.createScreenConfig;T=O.renderFn;V=O.command;L.panelLoadingStrategy=X;var S,w,l=((S=L.panelLoadingStrategy)==null?0:S.screenVe)?(w=L.panelLoadingStrategy)==null?void 0:w.screenVe:x;l&&_.h7(L.JSC$19299_screenManager,l,J,Y);return(E=L.getContent())?b.yield(T(E),2):b.jumpTo(2)}return b.nextAddress!=4?wXS(L)?b.yield(L.makeRequest(V),4):b.return():(t=n=
b.yieldResult)?b.yield(T(t),0):b.return()})};
gL[dx]=[_.Ia,_.Rr];var wL=function(){};
wL.prototype.getContainer=function(){return _.O0()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
wL.prototype.openSheet=function(A,L){var O=this,X,x,J,Y,T,V;return _.u(function(E){switch(E.nextAddress){case 1:return X={stack:[],error:void 0,hasError:!1},_.e4(E,2,3),x=k8,E.yield(O.isSheetOpen(),5);case 5:J=E.yieldResult;bUD(X,p1y(x));if(J){if(L&&O.currentTarget===L)return(Y=O.getContainer())==null||Y.closeSheet(),E.return();O.pendingData={data:A,target:Crn(O,L)};return E.return()}A.viewModel&&(A={viewModel:A.viewModel});(T=O.getContainer())==null||T.openSheet(A,L);O.currentTarget=L;case 3:_.tn(E);
h8P(X);_.hn(E,0);break;case 2:V=_.S4(E),X.error=V,X.hasError=!0,E.jumpTo(3)}})};
wL.prototype.closeSheet=function(){var A=this,L;return _.u(function(O){if(O.nextAddress==1)return O.yield((L=A.getContainer())==null?void 0:L.closeSheet(),2);if(O.nextAddress!=4)return A.currentTarget=void 0,A.pendingData?O.yield(A.openSheet(A.pendingData.data,A.pendingData.target),4):O.jumpTo(0);A.pendingData=void 0;_.qo(O)})};
wL.prototype.isSheetOpen=function(){var A=this,L,O;return _.u(function(X){return X.return((O=(L=A.getContainer())==null?void 0:L.isSheetOpen())!=null?O:!1)})};
var Crn=function(A,L){if(!_.h("web_parent_target_for_sheets"))return L;var O,X;return(X=(O=A.getContainer())==null?void 0:O.getParentTarget(L))!=null?X:L};var D7=window.documentPictureInPicture;var vhO=_.AW(["dark"]),ohO=_.AW(["system-icons"]),Ae9=_.AW(["typography"]),Lc9=_.AW(["lang"]),OZ_=_.AW(["style"]),$ir=_.AW(["dir"]),af9=_.AW(["rounded-container"]),kdD=_.AW(["style"]),xXd=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],pg=function(A){this.JSC$19311_clientRoot=A;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
pg.prototype.openWindow=function(A){var L=this,O,X;return _.u(function(x){if(x.nextAddress==1)return window.documentPictureInPicture&&_.K9()&&!L.currentPipWindow?x.yield((O=D7?D7:null)==null?void 0:O.requestWindow(A),2):x.return(!1);if(x.nextAddress!=3){X=x.yieldResult;if(!X)return x.return(!1);X.addEventListener("pagehide",function(){pXB(L)});
X.addEventListener("resize",L.handlePipWindowResize);L.pipWindowResizeDelay=new _.Lh(function(){L.currentPipWindow&&_.dQ(L.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.bW(L.currentPipWindow.innerWidth,L.currentPipWindow.innerHeight)])},X);
XIJ(X);Jee(X);return x.yield(MHJ(X),3)}if(!HtD())return x.return(!1);L.currentPipWindow=X;L.JSC$19311_eventForwarder=s_e(X,L.JSC$19311_clientRoot);L.pipWindowResizeDelay.start();return x.return(!0)})};
pg.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var pXB=function(A){if(A.currentPipWindow){var L,O;(L=D7?D7:null)==null||(O=L.window)==null||O.close();A.currentPipWindow.removeEventListener("resize",A.handlePipWindowResize);var X;(X=A.pipWindowResizeDelay)==null||X.dispose();A.pipWindowResizeDelay=void 0;var x;(x=A.JSC$19311_eventForwarder)==null||x.stop();A.JSC$19311_eventForwarder=void 0;L=_.d(A.onCloseCallbacks);for(O=L.next();!O.done;O=L.next())O=O.value,O();A.onCloseCallbacks=[];A.currentPipWindow=null}};
pg.prototype.getWindow=function(){return this.currentPipWindow};
var iJ7=function(A,L){var O;(O=A.onCloseCallbacks)==null||O.push(L)};
pg.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.K9()};
_.v2.Object.defineProperties(pg.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
pg[dx]=[KW3];var NBM=new _.Yx("PICTURE_IN_PICTURE_CONTROLLER");var PUs=function(A,L){this.lengthY=this.lengthX=0;this.lengthX=L.x-A.x;this.lengthY=L.y-A.y};var rkM=function(){},jdJ=function(A,L){var O;
(O=A.headerElement)==null||O.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:L}))};var K$M=function(){};
K$M.prototype.openPopup=function(A,L,O,X){var x=this,J;return _.u(function(Y){if(!x.container)return Y.return();J={openPopupAction:{popup:L,popupType:O,uniqueId:A}};return Y.return(x.container.handleOpenPopupAction(J,X))})};
K$M.prototype.closePopup=function(A){this.container&&this.container.closePopup(A)};var Gnz=function(){this.openTunnels=new Map},Ccp=function(A,L,O){if(DXe(O)){var X=_.yI(O,"gclid");
O={handleEvent:function(T){L&&!L.closed&&typeof L.postMessage==="function"&&T&&T.origin&&T.source===L&&T.data&&T.data.action==="gcl_setup"&&L.postMessage(Object.assign({},{action:"gcl_transfer"},X&&{gclid:X},{gadSource:2}),T.origin)}};
for(var x=_.d(A.openTunnels),J=x.next();!J.done;J=x.next()){var Y=_.d(J.value);J=Y.next().value;Y=Y.next().value;if(J.closed)try{window.removeEventListener("message",Y),A.openTunnels.delete(J)}catch(T){_.C7(T)}}L&&A.openTunnels.size<15&&(A.openTunnels.set(L,O),window.addEventListener("message",O))}};var lSk=function(){this.clientParams=new Map},QA3=function(A){for(var L=_.d(A.clientParams.keys()),O=L.next();!O.done;O=L.next())O=O.value,O.startsWith("yt-mini-app-share")&&A.clientParams.delete(O)};var ckM=function(A,L){_.p$.call(this);var O=this;this.shortsController=A;this.storeWithShorts=L;A=_.Ge(this.storeWithShorts,_.Gty,function(X){if(X){var x,J=(x=O.shortsController.getRoot())==null?void 0:x.getPlayer(),Y;(x=(Y=O.shortsController.alternativePlayerContainerElement)==null?void 0:Y.getPlayerContainer())&&(J==null||J.appendTo(x))}else{var T;Y=(T=O.shortsController.alternativePlayerContainerElement)==null?void 0:T.getPlayerContainer().querySelector("#player");x=O.shortsController.activeIndex;
(T=(J=O.shortsController.getRoot())==null?void 0:J.querySelector('ytd-reel-video-renderer[id="'+x+'"] #player-container'))&&(Y==null||Y.appendTo(T,void 0,!0))}});
this.addOnDisposeCallback(A)};
_.g(ckM,_.p$);var ic=function(A,L,O,X,x){var J=this;this.storeWithShorts=A;this.ephemeralResponseStore=L;this.store=O;this.innertubeTransportService=X;this.innertubeTransportLoader=x;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.zJ(_.bI);this.isShortsPipActive=_.zJ(_.hC);this.nextReelVe=_.tI(56921);this.prevReelVe=_.tI(56922);this.backButtonVe=_.tI(22156);this.TEST_ONLY={getActiveModules:function(){return J.activeModules}}},CJk=function(A){A.unsubscribeFromStore=
_.Ge(A.storeWithShorts,_.KOJ,function(L){A.initOrDisposeActiveModules(L);
!L&&A.storeWithShorts.getState().shorts.isFullscreen&&(_.Xz(document.documentElement),A.storeWithShorts.dispatch(_.i0j(!1)))});
A.initOrDisposeActiveModules(_.KOJ(A.storeWithShorts.getState()))},N2l,rm7,F$J;
ic.prototype.initOrDisposeActiveModules=function(A){A?this.activeModules.push(new ckM(this,this.storeWithShorts)):(_.Ag(this.activeModules),this.activeModules.length=0)};
ic.prototype.registerRootElement=function(A){this.rootElement=A;CJk(this)};
ic.prototype.getRoot=function(){return this.rootElement};
ic.prototype.setActiveIndex=function(A){this.activeIndex=A};
_.SWL=function(A,L){var O,X,x,J,Y,T,V;return _.u(function(E){switch(E.nextAddress){case 1:return O=new cK,(X=O.JSC$14074_getStoreKey(L))&&A.ephemeralResponseStore.has(X)?E.yield(A.ephemeralResponseStore.get(X),7):E.yield(F$J(A,L),4);case 4:x=E.yieldResult;if(!X){E.jumpTo(3);break}J=Ek(x,3600);return E.yield(A.ephemeralResponseStore.put(X,new _.bR(J)),3);case 7:x=(Y=E.yieldResult)==null?void 0:_.uE(Y);case 3:return((T=x)==null?0:T.replacementEndpoint)&&(V=_.q(x.replacementEndpoint,_.rM))&&x.sequenceContinuation&&
(V.sequenceParams=x.sequenceContinuation),E.return(x)}})};
N2l=function(A,L){L=(new Co).JSC$14074_getStoreKey(L);return!!L&&A.ephemeralResponseStore.has(L)};
rm7=function(A,L,O){var X,x,J,Y,T;_.u(function(V){if(V.nextAddress==1){X=new Co;x=X.JSC$14074_getStoreKey(L);if(!x)return V.return();if(O.reelWatchSequenceResponse)return J=Ek(O.reelWatchSequenceResponse,3600),A.ephemeralResponseStore.put(x,new _.bR(J)),V.jumpTo(0);if(!A.ephemeralResponseStore.has(x))return V.jumpTo(0);T=O;return V.yield(A.ephemeralResponseStore.get(x),4)}T.reelWatchSequenceResponse=(Y=V.yieldResult)==null?void 0:_.uE(Y);_.qo(V)})};
F$J=function(A,L){var O=O===void 0?{}:O;var X,x,J;return _.u(function(Y){switch(Y.nextAddress){case 1:if(A.innertubeTransportService){X=A.innertubeTransportService;Y.jumpTo(2);break}if(!A.innertubeTransportLoader){_.IO(Error("hj"));Y.jumpTo(2);break}return Y.yield(A.innertubeTransportLoader(),4);case 4:X=Y.yieldResult;case 2:return Y.yield((x=X)==null?void 0:_.oQ(x,L,O),5);case 5:return J=Y.yieldResult,Y.return(J)}})};
_.v2.Object.defineProperties(ic.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
ic[dx]=[T2J,_.t2,V7,_.Ot(_.Ia),_.Ot(JZJ)];_.RS7=new _.Yx("STORAGE_MANAGER_TOKEN");var EgO=["touchmove","scroll"];var hed={onSpanEnd:function(A){if(A.parent==null){var L=A.name;_.Fz(L);bZu(A,L)}}};var Q7X=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},mQ$;
Q7X.prototype.enqueue=function(A,L){L===1?this.currentPersistentToast=A:this.queue.push(A);this.openToast()};
Q7X.prototype.openToast=function(){var A;(A=this.currentToast)!=null&&A.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.N8=new _.Yx("TOAST_MANAGER_TOKEN");var fSS=new _.Yx("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var ISX=new _.Yx("VIEW_TRANSITION_COORDINATOR_TOKEN");var ykB=function(A){this.config=A;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;A=_.d(A.transitionConfigs);for(var L=A.next();!L.done;L=A.next())L=_.d(L.value).next().value,this.transitionTasksMap.set(L,[])};
ykB.prototype.registerElement=function(A,L,O){O=O===void 0?!1:O;for(var X=_.d(Object.keys(L)),x=X.next(),J={};!x.done;J={viewTransitionName:void 0},x=X.next()){x=x.value;J.viewTransitionName=L[x];var Y=this.elementTasksMap.get(A),T=void 0;if((T=Y)==null?0:T.has(x)){_.FJ(new _.pe("Element already registered for transition",A.tagName,x));break}Y=Y||new Map;Y.set(x,{beforeTransition:function(V){return function(){A.style.viewTransitionName=V.viewTransitionName}}(J),
afterTransition:function(){A.style.viewTransitionName&&(A.style.viewTransitionName="")},
runOnce:O});this.elementTasksMap.set(A,Y)}};
_.ku=function(A,L){var O=A.elementTasksMap.get(L);O&&(O.clear(),O.size===0&&A.elementTasksMap.delete(L))};
ykB[dx]=[fSS];var ZJQ;_.j7M=_.xa(function(A){return _.D("basic-content-view-model",{class:_.qn("ytBasicContentViewModelHost",_.LT(A.className))},_.D(_.e,{cond:function(){return A.data().headline},
then:function(L){return _.D("div",{class:"ytBasicContentViewModelHeadline"},_.D(_.Xg,{text:L}))}}),_.D(_.g9,{each:function(){return A.data().paragraphs||[]},
keyBy:"INDEX"},function(L){return _.D("div",{class:"ytBasicContentViewModelParagraph"},_.D(_.e,{cond:function(){var O=L();return!!(O.header||O.customHeader||O.headline)},
then:function(){return _.D(ZJQ,{paragraph:L})}}),_.D(_.e,{cond:function(){return L().asset||L().text},
then:function(){return _.D("div",{class:"ytBasicContentViewModelParagraphContent"},_.D(_.e,{cond:function(){return L().asset},
then:function(O){return _.D("div",{class:"ytBasicContentViewModelParagraphAsset"},_.D(_.ID,{data:O},{contentPreviewImageViewModel:_.uG}))}}),_.D(_.e,{cond:function(){return L().text},
then:function(O){return _.D("div",{class:"ytBasicContentViewModelParagraphText"},_.D(_.Xg,{text:O}))}}))}}))}))},"ze");
ZJQ=_.xa(function(A){var L=A.paragraph;return _.D(_.Xs,null,_.D(_.e,{cond:function(){return L().headline},
then:function(O){return _.D(_.Xg,{text:O,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.D(_.ID,{data:function(){return L().header||L().customHeader}},{sectionHeaderViewModel:function(O){return _.D(_.b$,{data:O.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Ae");var HJX=_.xa(function(A){var L=_.av("yt-expandable-metadata-header-view-model"),O=_.py(function(X){if(!_.Wm(_.j8(X),L.value,["A".toString(),"BUTTON".toString()])){var x;(x=A.expandedCallback)==null||x.call(A,!1)}});
return _.D("yt-expandable-metadata-header-view-model",{el:L,class:"ytExpandableMetadataHeaderViewModelHost"},_.D(_.e,{cond:function(){return A.expanded()},
then:function(){return _.D("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":O},_.D("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.D(_.e,{cond:function(){return A.data().expandedTitleImage},
then:function(X){return _.D("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.D(_.XV,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:X}))}}),_.D("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.D("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.D(_.Xg,{text:function(){return A.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.D(_.Xg,{text:function(){return A.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.D(_.Xg,{text:function(){return A.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.D("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.D(_.ID,{data:function(){return A.data().infoButton}},{buttonViewModel:_.gj}),_.D(_.ID,{data:function(){return A.data().collapseButton}},{buttonViewModel:function(X){return _.D(_.gj,{data:X.data,
onClick:function(){var x;(x=A.expandedCallback)==null||x.call(A,!1)}})}})))},
else:function(){return _.D(W$M,Object.assign({},A))}}))},"Be"),zSX=_.xa(function(A){return _.D("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.D(_.e,{cond:function(){return A.data().collapsedLabelImage},
then:function(L){return _.D("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.D(_.XV,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:L,alt:""}))}}),_.D(_.Xg,{text:function(){return A.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"Ce"),W$M=_.xa(function(A){return _.D("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.py(function(){var L;return void((L=A.expandedCallback)==null?void 0:L.call(A,!0))})},_.D("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.D(_.e,{cond:function(){return A.data().collapsedImage},
then:function(L){return _.D("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.D(_.XV,{width:16,height:16,data:L,alt:""}))}}),_.D(_.e,{cond:function(){return A.data().showLeadingCollapsedLabel},
then:function(){return _.D(zSX,Object.assign({},A))}}),_.D("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.D(_.Xg,{text:function(){return A.data().collapsedTitle}}))),_.D("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.D(_.e,{cond:function(){return!A.data().showLeadingCollapsedLabel},
then:function(){return _.D(zSX,Object.assign({},A))}}),_.D(_.ID,{data:function(){return A.data().infoButton}},{buttonViewModel:_.gj}),_.D(_.ID,{data:function(){return A.data().expandButton}},{buttonViewModel:function(L){return _.D(_.gj,{data:L.data,
onClick:function(){var O;(O=A.expandedCallback)==null||O.call(A,!0)}})}})))},"De");_.BBJ=_.xa(function(A){var L=_.d(_.Nn(function(){return A.data().initiallyExpanded})),O=L.next().value,X=L.next().value,x,J=(x=_.X5().resolve(_.Ot(_.oy)))==null?void 0:x(),Y=function(){var T=A.data().colorData;
if(T)return J?T==null?void 0:T.darkColorPalette:T==null?void 0:T.lightColorPalette};
return _.D("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.rl({"background-color":function(){var T=Y();return(T==null?0:T.section2Color)?_.Hy(T.section2Color):""}})},_.D(_.ID,{data:function(){return A.data().header}},{expandableMetadataHeaderViewModel:function(T){return _.D(HJX,{data:T.data,
expanded:function(){return!!O()},
expandedCallback:function(V){X(V)}})}}),_.D(_.e,{cond:function(){return O()},
then:function(){return _.D("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.D(_.ID,{data:function(){return A.data().expandedContent}},{horizontalShelfViewModel:function(T){return _.D(_.BZ,{data:T.data,
includeMargin:!0,forceNarrowLayout:!0,palette:Y})},
videoSummaryContentViewModel:function(T){return _.D(XjH,{data:T.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(T){return _.D(_.tN,{data:T.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(T){return _.D(_.j7M,{data:T.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.D(_.ID,{data:function(){return A.data().expandedBottomButtons}},{buttonViewModel:function(T){return _.D("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.D(_.gj,{data:T.data}))}}))}}))},"Ee");var MZS=_.xa(function(A){var L=A.text;var O=A.marqueeSpacing;var X=A.scrollDelay;var x=A.scrollDuration;var J=A.enableMarqueeScroll;A=A.large;var Y=_.d(_.uQ(!1,void 0,"kfNqfd")),T=Y.next().value,V=Y.next().value,E=_.d(_.uQ(0,void 0,"bYgZbf"));Y=E.next().value;var n=E.next().value,t=_.av("marquee-scroll");E=_.av("div");var b=_.av("span"),S=_.X5().resolve(_.Ly);_.ND(function(){if(J()){var F=b.value.getBoundingClientRect().width,R=t.value.getBoundingClientRect().width;if(F>R){var y=(S==="ltr"?-1:1)*
(F+(O?O():16));Promise.resolve().then(function(){V(!0);n(y)})}}},"giRlme");
var w={},l={};return _.D("marquee-scroll",{class:_.qn("ytMarqueeScrollHost",(w.ytMarqueeScrollHostLarge=A,w)),el:t},_.D("div",{id:"marquee-scroll-inner-container",class:_.qn("ytMarqueeScrollInnerContainer",(l.ytMarqueeScrollAnimationEnabled=function(){return T()},l)),
el:E,style:_.rl({gap:O?(0,_.ZG)(O):"16px","animation-duration":x?UXn(x):"16s","animation-delay":X?UXn(X):"3s","--marquee-translate":(0,_.ZG)(Y)})},_.D("span",{el:b,dir:"auto"},_.D(_.Xg,{text:L,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.D(_.e,{cond:T,then:function(){return _.D("span",{"aria-hidden":"true",dir:"auto"},_.D(_.Xg,{text:L,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"Fe");_.$QJ=_.xa(function(A){var L=A.data;var O=A.overlayDensity;A=_.py(function(){L().onTapCommand&&_.$a(L().onTapCommand);return!1});
var X=_.Ucs(),x=function(){return(O==null?void 0:O())===1?22:16},J={};
return _.D("reel-sound-metadata-view-model",{class:_.qn("ytReelSoundMetadataViewModelHost",(J.ytReelSoundMetadataViewModelHostLarge=function(){return(O==null?void 0:O())===1},J)),
"on:click":A,tabindex:0,role:"button","on:keydown":X},_.D("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.D(_.e,{cond:function(){return L().musicIcon},
then:function(Y){return _.D(_.XV,{data:Y,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:x})}}),_.D("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.D(MZS,{text:function(){return L().soundMetadata},
enableMarqueeScroll:function(){return!!L().enableMarqueeScroll},
large:function(){return(O==null?void 0:O())===1}}))))},"Ge");var aSS,knB,rL,AEQ,O_B,oXM,sPX,x07;aSS=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];knB=_.PO("wil_icon_max_concurrent_fetches",Infinity);
rL=function(A,L,O){var X=this;this.iconSet=A;this.appDirection=L;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.Ou.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.h("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.h("wil_icon_network_first");this.renderWhenIdle=_.h("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.h("wil_icon_load_immediately");this.isPurging=!1;A=function(){X.cacheStorageAvailable&&(X.cacheStorageAsync=_.Ou.caches.open("yt-icons").then(function(J){return X.cacheStorageSync=J}).catch(function(){X.cacheStorageAvailable=!1}))};
O=(O==null?void 0:O())||{};O=_.d(Object.entries(O));for(L=O.next();!L.done;L=O.next()){var x=_.d(L.value);L=x.next().value;x=x.next().value;x=nB(x);UQQ(x);this.iconCache[L]=x.cloneNode(!0)}this.isPurging=vXM(this);this.isPurging instanceof Promise?this.isPurging.then(A):A()};
_.Myr=function(A,L){var O=A.resolveIcon(L);return O?A.renderingMode===1?oXM(A,O,A.renderingMode):(L=A.iconCache[O.url])?(L=L.cloneNode(!0),AEQ(A,L),oXM(A,O,A.renderingMode,L)):_.LJS(A,O).then(function(X){var x=X?0:1;AEQ(A,X);return oXM(A,O,x,X)}):(_.FJ(new _.pe("Icon not found",{iconShape:L})),function(){})};
AEQ=function(A,L){if(L){A.counter+=1;A="_yt"+A.counter;L=[L].concat(_.le(L.getElementsByTagName("*")));L=_.d(L);for(var O=L.next();!O.done;O=L.next())if(O=O.value,O.tagName==="style"&&O.textContent)O.textContent=O_B(O.textContent,A,!0);else for(var X=_.d(O.attributes),x=X.next();!x.done;x=X.next()){x=x.value;x.name==="id"&&(x.value+=A);["mask","fill","clip-path"].includes(x.name)&&(x.value=O_B(x.value,A));if(x.name==="style"){var J=O.style;try{J.cssText=O_B(J.cssText,A,!0)}catch(n){var Y=void 0,T=
void 0,V=void 0,E=void 0;Kg({error:((Y=n)==null?void 0:(V=(T=Y).toString)==null?void 0:V.call(T))||"",el:O.outerHTML,style:!!J,cssText:(E=J)==null?void 0:E.cssText})}}x.name==="xlink:href"&&(x.value=x.value.replace(/#(.*)/,"#$1"+A))}}};
O_B=function(A,L,O){var X=/url\(["']?#(.*?)["']?\)/;(O===void 0?0:O)&&(X=/url\(["']?#(.*?)["']?\)/g);return A.replace(X,"url(#$1"+L+")")};
oXM=function(A,L,O,X){return function(x,J){var Y=Object.assign({},{iconColor:"currentcolor",iconWidth:L.size+"px",iconHeight:L.size+"px",iconDisplay:"block"},J);J=_.tg("DIV");var T=Y.iconColor,V=Y.iconFilter;Y="width: "+Y.iconWidth+"; height: "+Y.iconHeight+"; display: "+Y.iconDisplay+";";V&&(Y+=" filter: "+V+";");O===0&&(Y+=" fill: "+T+";");O===1&&(V=L.url,Y+=" -webkit-mask: url("+V+") no-repeat center / cover; mask: url("+(V+") no-repeat center / cover; background-color: ")+T);L.allowMirroring&&
A.appDirection==="rtl"&&(Y+=" transform: scale(-1, 1); transform-origin: center center;");J.setAttribute("style",Y);O===0&&X&&J.appendChild(X);x.appendChild(J)}};
_.LJS=function(A,L){var O,X,x;return _.u(function(J){O=function(Y){return jg(Y)};
X=L.url;if(!Xf$(X))throw Error("jj");x=x07(A,X);return J.return(x.then(function(Y){return Y.clone().text()}).then(function(Y){var T=O(Y);
Y=L.size;var V=_.tg("DIV");_.vf(V,T);T=_.hg(V.firstElementChild!==void 0?V.firstElementChild:_.Sz7(V.firstChild,!0));Y=UQQ(T,Y);A.iconCache[X]=Y.cloneNode(!0);delete A.responsePromises[X];return Y}).catch(function(){}))})};
sPX=function(A){var L,O=(L=A.requestAninmationFrameResolver)==null?void 0:L.promise;O||(A.requestAninmationFrameResolver=new _.EP,O=A.requestAninmationFrameResolver.promise,_.Ou.requestAnimationFrame(function(){var X;(X=A.requestAninmationFrameResolver)==null||X.resolve();A.requestAninmationFrameResolver=null}));
return O};
x07=function(A,L){var O,X;return _.u(function(x){if(x.nextAddress==1)return A.waitForAnimationFrame?x.yield(sPX(A),2):x.jumpTo(2);O=A.responsePromises[L];O||(X=function(){var J,Y,T;return _.u(function(V){switch(V.nextAddress){case 1:if(!A.cacheStorageAvailable){J=void 0;V.jumpTo(2);break}if(Y=A.cacheStorageSync){V.jumpTo(3);break}return V.yield(A.cacheStorageAsync,4);case 4:Y=V.yieldResult;case 3:J=Y;case 2:return T=J,A.isNetworkFirstStrategy?V.return(A.fetchAndUpdateCache(L,T).catch(A.getCacheStorageResponse.bind(A,
L,T))):V.return(A.getCacheStorageResponse(L,T).catch(A.fetchAndUpdateCache.bind(A,L,T)))}})},O=A.renderWhenIdle?new Promise(function(J,Y){_.p7(_.c1,function(){X().then(J).catch(Y)},10)}):X(),A.responsePromises[L]=O);
return x.return(O.catch(function(J){delete A.responsePromises[L];Kg({error:(J==null?0:J.toString)?J.toString():"",url:L});throw J;}))})};
rL.prototype.fetchAndUpdateCache=function(A,L){var O=this;return _.u(function(X){return X.return(JEn(O,A).then(function(x){PaJ(O,A,x,L);return x}))})};
var JEn=function(A,L){var O;return _.u(function(X){if(A.numFetches<knB)return A.numFetches+=1,X.return(d0n(A,L).finally(function(){--A.numFetches;if(Object.keys(A.queuedResponseResolvers).length){var x=Object.keys(A.queuedResponseResolvers)[0],J=A.queuedResponseResolvers[x];delete A.queuedResponseResolvers[x];J.resolve(JEn(A,x))}}));
O=new _.EP;A.queuedResponseResolvers[L]=O;return X.return(O.promise)})},d0n=function(A,L,O){O=O===void 0?2:O;
var X;return _.u(function(x){X={credentials:"same-origin",priority:"low"};return x.return(_.Ou.fetch(L,X).then(function(J){return J.ok?J:Promise.reject(Error("kj`"+J.status+"`"+J.statusText))}).catch(function(J){if(O>0)return d0n(A,L,O-1);
throw J;}))})},PaJ=function(A,L,O,X){_.u(function(x){return X?x.return(new Promise(function(J){_.p7(_.c1,function(){var Y,T;
return _.u(function(V){switch(V.nextAddress){case 1:if(!A.isNetworkFirstStrategy){Y=void 0;V.jumpTo(2);break}return V.yield(X.match(L).catch(function(){}),3);
case 3:Y=V.yieldResult;case 2:if(T=Y){V.jumpTo(4);break}return V.yield(X.put(L,O.clone()).catch(function(E){Kg({error:(E==null?0:E.toString)?E.toString():"",url:L})}),4);
case 4:J(),_.qo(V)}})},50)})):x.return()})};
rL.prototype.getCacheStorageResponse=function(A,L){return _.u(function(O){return L?O.return(L.match(A).then(function(X){return X&&X.ok?X:Promise.reject()})):O.return(Promise.reject())})};
var UQQ=function(A,L){L===void 0||A.getAttribute("viewBox")||A.setAttribute("viewBox","0 0 "+L+" "+L);A.setAttribute("focusable","false");A.setAttribute("aria-hidden","true");try{A.style.pointerEvents="none",A.style.display="inherit",A.style.width="100%",A.style.height="100%"}catch(x){var O;Kg({error:((O=x)==null?0:O.toString)?x.toString():""});try{A.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(J){var X;Kg({error:((X=J)==null?0:X.toString)?J.toString():
""})}}return A},Xf$=function(A){for(var L=_.d(aSS),O=L.next();!O.done;O=L.next())if(A.startsWith(O.value)&&A.endsWith(".svg"))return!0;
return!1};
rL.prototype.resolveIcon=function(A){return this.iconSet.resolveIcon(A)};
var Kg=function(A){_.Rv(new _.pe("Error in IconManager",A))},vXM=function(A){if(_.h("wil_icons_cache_purge_killswitch"))return!1;
try{var L=_.Ou.localStorage}catch(J){return!1}if(!L||!A.cacheStorageAvailable)return!1;var O=function(J){try{var Y;(Y=L)==null||Y.setItem("yt-icons-last-purged",J.toString())}catch(V){var T;Kg({error:((T=V)==null?0:T.toString)?V.toString():""})}},X=Number(L.getItem("yt-icons-last-purged"));
if(!X)return X=new Date,X=X.setDate(X.getDate()-Math.floor(Math.random()*90+1)),O(X),!1;if(function(J,Y){J=new Date(J);Y=new Date(Y);return Y.getMonth()-J.getMonth()+12*(Y.getFullYear()-J.getFullYear())}(X,Date.now())<3)return!1;
try{return _.Ou.caches.delete("yt-icons").then(function(J){J&&O(Date.now());return J}).catch(function(){return!1}).finally(function(){A.isPurging=!1})}catch(J){var x;
Kg({error:((x=J)==null?0:x.toString)?J.toString():""});return!1}};
rL[dx]=[dyQ,_.Ly,_.Ot(TuS)];_.Gg=function(A,L){this.iconManager=A;this.iconsToFetch=L};
_.Gg[dx]=[_.ht,_.Ot(upX)];var YBQ=function(){};var uPB=function(A,L,O){this.requestKey=A;this.kxz=L;this.qLT=O;this.c7i=function(){return new XMLHttpRequest};
this.aro=void 0;this.m2O=[]};
uPB.prototype.getLatestChallengeResponse=function(){return this.qLT};
var i$l=function(A,L,O){var X,x,J,Y;return _.u(function(T){if(T.nextAddress==1){_.Fz("attestation_challenge_fetch");_.Rk("att_fs",void 0,"attestation_challenge_fetch");if(!A.aro)throw new _.mS(9,"Missing fetcher");return T.yield(A.aro(L,O),2)}X=T.yieldResult;J=(x=X)==null?void 0:x.bgChallenge;if(!J)throw new _.mS(15,"Missing field");A.qLT=X;A.m2O.forEach(function(V){V(X)});
Y=hau(J);_.Rk("att_fc",void 0,"attestation_challenge_fetch");x5u("attestation_challenge_fetch");return T.return(Y)})},$Yu=function(A,L){var O,X,x,J,Y;
return _.u(function(T){switch(T.nextAddress){case 1:O=new Y8(100,3E5,.25,2),X=void 0;case 2:if(!(O.currBackoffCount_<10)){T.jumpTo(4);break}_.e4(T,5);if(!(O.currBackoffCount_>0)){T.jumpTo(7);break}return T.yield(qns(O.getValue()),7);case 7:return T.yield(TwQ(A,L),9);case 9:return x=T.yieldResult,T.return(x);case 5:J=_.S4(T);J instanceof _.mS?X=J:(Y=J instanceof Error?J.message:"Unknown",X=new _.mS(9,Y));Q9j(O);T.jumpTo(2);break;case 4:if(X)throw X;throw new _.mS(9,"Unknown error");}})},TwQ=function(A,
L){L=eYN(E8j(new DYJ,L),A.requestKey);
var O=new _.EP,X=A.c7i();X.open("POST",A.kxz);X.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");X.setRequestHeader("Content-Type","application/json+protobuf");X.onload=function(){if(_.Ffd(X)){var x=wuH(X.responseText);O.resolve(x)}else O.reject(new _.mS(_.kDy(_.uK(X)),X.statusText))};
X.onerror=function(){O.reject(new _.mS(_.kDy(_.uK(X)),X.statusText))};
X.send(L.serialize());return O.promise};var D0B=function(A){this.networkStatusManager=A;this.isDownloaded=ghJ===void 0?function(){return!1}:ghJ;
this.isReady=!1;this.wBJ=VgQ(this)},VgQ=function(A){var L;
return _.u(function(O){if(O.nextAddress==1)return O.yield(GDO(),2);if(O.nextAddress!=3)return L=O.yieldResult,O.yield(IDL(L),3);A.cN=O.yieldResult;wIe(A.cN).then(function(){A.isReady=!0});
return O.return(A.cN)})},e3B=function(A,L,O){A.cN?(A=A.cN.erf({eN:O,
pMo:!0,yT1:!0}),L.serviceIntegrityDimensions={poToken:A}):_.C7(Error("mj"))};
D0B.prototype.processContext=function(A){var L=this;if(!A.input.match(_.L3(K9J)))return _.XG();var O=A.innerTubeRequest,X=O.videoId;return!X||this.isDownloaded(O)||this.networkStatusManager&&!this.cN&&!this.networkStatusManager.isNetworkAvailable()?_.XG():this.cN?this.isReady?(e3B(this,O,X),_.XG()):new OU(wIe(this.cN).then(function(){e3B(L,O,X)})):new OU(this.wBJ.then(function(x){return _.u(function(J){if(J.nextAddress==1)return J.yield(wIe(x),2);
e3B(L,O,X);_.qo(J)})}))};var EWX=new _.Yx("WEB_PO_CONTEXT_PROCESSOR");var nWX=function(A,L){var O=this;this.vhj=0;var X;this.uD3=(X=L==null?void 0:L.uD3)!=null?X:window;this.networkStatusManagerPromise=L==null?void 0:L.networkStatusManagerPromise;var x;this.requestKey=(x=L==null?void 0:L.requestKey)!=null?x:_.dN("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var J;this.mQc=(J=L==null?void 0:L.mQc)!=null?J:function(V){return new zI(V)};
var Y;X=(Y=L==null?void 0:L.qu1)!=null?Y:function(V,E,n){return new uPB(V,E,n)};
this.bgChallenge=hau(A.bgChallenge);this.ttlSeconds=Syu(AR(A.challenge||""));this.rT=X(this.requestKey,_.h("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.Ou.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",A);gge(this.rT);var T;this.ylw=(T=L==null?void 0:L.ylw)!=null?T:function(V){_.CT(O.uD3.document,"visibilitychange",function(){O.uD3.document.visibilityState===
"visible"&&V()})}},b_7=function(A){if(!A.vm){var L={maxAttempts:5,
wcC:A.ttlSeconds*1E3};pIe(A.uD3);A.vm=A.mQc({rT:A.rT,gwq:{disable:_.h("html5_web_po_disable_remote_logging"),kn:"aGIf",eWN:KfP("html5_web_po_experiment_ids"),iVP:_.h("wpo_dis_lfdms")?0:1E3,qIa:function(X){var x=N36.get(X);x||(x=new iRn(X),x=new Dg(x),N36.set(X,x));return x}},
pUY:L,oeW:A.bgChallenge,rCc:iZr});A.vhj=Date.now();STJ(A.vm,function(){A.vhj=Date.now()});
Fsp(A.vm,function(){return _.u(function(X){return X.return(tgM(A))})});
var O=A.pgC.bind(A);A.networkStatusManagerPromise&&A.ttlSeconds>0&&A.networkStatusManagerPromise.then(function(X){X.listen("publicytnetworkstatus-online",O)});
A.ylw(O)}};
nWX.prototype.pgC=function(){if(Date.now()>this.vhj+this.ttlSeconds*1E3){var A;(A=this.vm)==null||hYn(A)}};
var tgM=function(A){if(A.eDj)return A.eDj;if(!A.vm)throw Error("nj");A.eDj=new a$({vm:A.vm,rT:A.rT,nSz:!0,onError:iZr});return A.eDj},reM=function(A,L){A=new nWX(A,L);
b_7(A);tgM(A)};var lc=function(A,L){this.store=A;this.queue=[];L==null||L.addEventListener("yt-navigate-start",this.reset.bind(this))};
lc.prototype.enqueue=function(A){var L=A.command,O=A.durationMs,X=A.elementToFocus;var x=A.label;var J=A.elementToFocus;A.command?x=_.b3("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:x,shortcut:_.b3("SHIFT_PLUS_ENTER")}):J&&(A=x+". "+_.b3("SHIFT_PLUS_ENTER")+" for more information.",x=_.b3("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:x,shortcut:_.b3("SHIFT_PLUS_ENTER")},A));O={announcement:x,durationMs:O!=null?O:8E3};L?O.command=L:X&&(X.classList.add("ephemeral-action-focusable-element"),O.selector=X.tagName+
".ephemeral-action-focusable-element");this.queue.push(O);h3M(this)};
lc.prototype.activate=function(A){var L=_.mie(this.store.getState());if(L){if(L==null?0:L.command)_.zi(L.command),this.store.dispatch(q86(null));if(L==null?0:L.selector)L=document.querySelector(L.selector),_.kAu(L);A.preventDefault()}};
var h3M=function(A){if(!_.mie(A.store.getState())&&A.queue.length){var L=A.queue.shift();L&&(A.previousAnnouncement===L.announcement&&(L.announcement+="\u00a0"),A.store.dispatch(q86(L)),A.previousAnnouncement=L.announcement,A.timeoutId=setTimeout(function(){if(L.selector){var O;(O=document.querySelector(L.selector))==null||O.classList.remove("ephemeral-action-focusable-element")}A.store.dispatch(q86(null));h3M(A)},L.durationMs))}};
lc.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(q86(null));this.queue.length=0;this.timeoutId=void 0};
lc[dx]=[_.al,_.Ot(_.Rl)];_.c5=new _.Yx("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var SBX=window.AbortController||I9V;var qBk=new _.Yx("AUTH_SERVICE_TOKEN");var lHp=_.AW(["about:blank"]),G9u;var Cg=new _.Yx("API_IFRAME_TOKEN"),gWJ=new _.Yx("FETCH_FN_TOKEN"),wfX=new _.Yx("PARSE_FN_TOKEN"),pf7=new _.Yx("WINDOW_REQUEST_TOKEN"),i_n=new _.Yx("TEXT_DECODER_TOKEN");var ir3;ir3=new _.Yx("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.NwM=new _.Yx("MISC_UI_SHARED_FLAGS_TOKEN");var rE$=function(){};
rE$.prototype.getFlag=function(A){if(A.configType!==2)throw Error("oj");return KJJ(A)};
var KJJ=function(A){switch(A.flagType){case "bool":return _.h(A.flagName);case "int":return _.R6(_.PO(A.flagName));case "double":return _.PO(A.flagName);case "string":return _.dN(A.flagName);case "int32_list":return KfP(A.flagName);case "int64_list":return KfP(A.flagName).map(function(L){return _.R6(L)});
case "string_list":return _.Y$(A.flagName);default:throw Error("pj");}};var Fb=function(A,L,O){L=L===void 0?{}:L;WF.call(this,O===void 0?"uninitialized":O);this.env=A;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}];L.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=L.shouldWaitOnAsyncImmediate)};
_.g(Fb,WF);Fb.prototype.init=function(A){var L=this,O;return _.u(function(X){if(X.nextAddress==1)return L.processPluginOptions.shouldWaitOnAsyncImmediate?X.yield(A(L.env),2):(A(L.env),X.jumpTo(2));if(X.nextAddress!=4)return L.jobSet?X.yield(L.jobSet.completedResolver.promise,4):X.jumpTo(4);O=_.kq();O.parkOrScheduleJob(function(){L.transition("rendering")},10,"ci");
_.qo(X)})};
Fb.prototype.initialRender=function(A){var L=this,O;return _.u(function(X){if(X.nextAddress==1)return L.processPluginOptions.shouldWaitOnAsyncImmediate?X.yield(A(L.env),2):(A(L.env),X.jumpTo(2));if(X.nextAddress!=4)return L.jobSet?X.yield(L.jobSet.completedResolver.promise,4):X.jumpTo(4);O=_.kq();O.parkOrScheduleJob(function(){L.transition("rendered")},10,"cr");
_.qo(X)})};
Fb.prototype.afterRenderImmediate=function(A){var L=this,O;return _.u(function(X){if(X.nextAddress==1)return L.processPluginOptions.shouldWaitOnAsyncImmediate?X.yield(A(L.env),2):(A(L.env),X.jumpTo(2));if(X.nextAddress!=4)return L.jobSet?X.yield(L.jobSet.completedResolver.promise,4):X.jumpTo(4);O=_.kq();O.parkOrScheduleJob(function(){L.transition("after-render-deferred")},10,"carml");
_.qo(X)})};
Fb.prototype.afterRenderDeferred=function(A){var L=this;return _.u(function(O){A(L.env);_.qo(O)})};var G2S;_.QT("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});G2S={};_.lDJ=(G2S.CSI=fHO(),G2S.ECATCHER=mXO(),G2S);var cEB={},CaZ=(cEB.rendered={priority:0,callback:function(A){YIN(A.injector.resolve(ig))}},cEB);var lA9=new _.Yx("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),FJz=new _.Yx("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var R3n=function(A){this.callbackFnMap=A;this.configMap={}};
R3n.prototype.handleResponse=function(A){var L;if(A=(L=A.responseContext)==null?void 0:L.serviceTrackingParams)for(L=_.d(A),A=L.next();!A.done;A=L.next()){A=A.value;var O=A.params,X=A.service;if(O&&X){this.configMap[X]||(this.configMap[X]=new Am6);A=this.configMap[X];var x=void 0,J=(x=this.callbackFnMap)==null?void 0:x[X];O=_.d(O);for(X=O.next();!X.done;X=O.next())x=X.value,X=x.key,x=x.value,X&&x&&(A.set(X,x),J&&J(X,x))}}};
R3n[dx]=[_.Ot(FJz)];var QP$=!1,Wcu=0,IHs=null,j_D=null;var m0S=new _.Yx("NETWORK_SLI_TOKEN");var fDz=function(A,L,O,X,x){this.networkSli=A;this.fetchFn=L;this.parseFn=O;this.requestFn=X;this.JSC$19436_textDecoder=x};
fDz.prototype.fetch=function(A,L,O){var X=this,x,J,Y;return _.u(function(T){x=IDM(X,A,L);Y=(J=X.fetchFn)!=null?J:fetch;return T.return(Y(x).then(function(V){return X.handleResponse(V,O)}).catch(function(V){_.Rv(V);
if((O==null?0:O.expectJsonStrict)&&V instanceof c$&&V.errorType===1)return Promise.reject(V)}))})};
var RtL=function(A,L,O,X){var x,J,Y,T,V,E,n;return _.u(function(t){switch(t.nextAddress){case 1:return x=IDM(A,L,O),_.e4(t,2),t.yield(fetch(x),4);case 4:J=t.yieldResult;_.zA(t,3);break;case 2:throw _.S4(t),new c$(2,"Failed to parse streaming response",x.url);case 3:if(!J.redirected&&!J.ok)throw(Y=A.networkSli)==null||Y.failure(),new _.pe("Streaming fetch request not ok",x.url);if(!J.body)throw new _.pe("No response body in streaming response",x.url);T={};if(_.h("web_streaming_fast"))return V=J.body.getReader(),
t.return(yEX(A,V,T,X));E=J.body.pipeThrough(new TextDecoderStream).getReader();n=new _.EQ;return t.return(Z_7(A,E,n,pKu,T,X))}})},IDM=function(A,L,O){if(A.networkSli){var X=_.eh(_.Az(L,"key"))||"/UNKNOWN_PATH";
A.networkSli.start(X)}X=O;_.h("wug_networking_gzip_request")&&(X=Z4r(O));var x;return new ((x=A.requestFn)!=null?x:window.Request)(L,X)},yEX=function(A,L,O,X){var x,J,Y,T,V,E,n,t,b,S,w;
return _.u(function(l){switch(l.nextAddress){case 1:x=A.JSC$19436_textDecoder?new A.JSC$19436_textDecoder("utf-8"):new TextDecoder("utf-8"),J="",Y=function(F){F=F.trim();F.length!==0&&F!=="]"&&F!=="["?(F.startsWith("[")&&(F=F.substring(1)),F.endsWith("]")&&(F=F.slice(0,-1)),F.endsWith(",")&&(F=F.slice(0,-1)),F=F.trim()):F=void 0;if(F)try{var R=JSON.parse(F);pKu(O,R);X==null||X(O,R)}catch(y){throw new c$(1,"Failed to parse streaming response",F);}},_.e4(l,2,3);
case 5:return l.yield(L.read(),8);case 8:T=l.yieldResult;V=T.value;if(E=T.done)return J.length>0&&Y(J),n=void 0,(n=A.networkSli)==null||n.success(),l.return(O);J+=x.decode(V,{stream:!0});t=J.split("\n");J=t.pop()||"";b=_.d(t);for(S=b.next();!S.done;S=b.next())w=S.value,Y(w);l.jumpTo(5);break;case 3:_.tn(l);L.releaseLock();_.hn(l,0);break;case 2:throw _.S4(l),new c$(1,"Failed to parse streaming response");}})},Z_7=function(A,L,O,X,x,J){var Y,T,V,E,n,t,b,S,w;
return _.u(function(l){if(l.nextAddress==1)return l.yield(L.read(),2);Y=l.yieldResult;T=Y.value;if(V=Y.done)return(E=A.networkSli)==null||E.success(),l.return(x);try{n=O.parse(T)}catch(F){throw new c$(1,"Failed to parse streaming response",T);}if(n!=null)for(t=_.d(n),b=t.next();!b.done;b=t.next())S=b.value,X(x,S),w=void 0,(w=J)==null||w(x,S);return l.return(Z_7(A,L,O,X,x,J))})};
fDz.prototype.handleResponse=function(A,L){var O,X=(O=this.parseFn)!=null?O:JSON.parse;O=A.text().then(function(x){if((L==null?0:L.jspbResponseCtor)&&A.ok)return IDp(L.jspbResponseCtor,x);x=x.replace(")]}'","");if((L==null?0:L.expectJsonStrict)&&x)try{var J=X(x)}catch(T){throw new c$(1,"JSON parsing failed after fetch");}var Y;return(Y=J)!=null?Y:X(x)});
A.redirected||A.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),O=O.then(function(x){_.Rv(new _.pe("Error: API fetch failed",A.status,A.url,x));return Object.assign({},x,{errorMetadata:{status:A.status}})}));
return O};
fDz[dx]=[_.Ot(m0S),_.Ot(gWJ),_.Ot(wfX),_.Ot(pf7),_.Ot(i_n)];var jP7=new _.Yx("NETWORK_MANAGER_TOKEN");var WJ$=[1,2,4,8,16,30],z3J=function(A){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=A.maxTimeMs;this.maxFrameCount=A.maxFrameCount===void 0?Math.ceil(60*A.maxTimeMs/1E3):A.maxFrameCount;A=_.d(WJ$);for(var L=A.next();!L.done;L=A.next())this.brokenFrameSummarizers.push(new H_Z(L.value/60*1E3))},Bw7=function(A){var L=A.frameCountInternal>=A.maxFrameCount;
return A.elapsedTimeMs>=A.maxTimeMs||L};
z3J.prototype.summarize=function(){for(var A=[],L=_.d(this.brokenFrameSummarizers),O=L.next();!O.done;O=L.next())O=O.value,O=O.brokenFrameCount!==0?{severityMs:Math.round(O.targetFrameTimeMs),eventCount:O.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(O.averageDurationBetweenEventsMs)}:void 0,O&&A.push(O);return{summaries:A,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.v2.Object.defineProperties(z3J.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 H_Z=function(A){this.targetFrameTimeMs=A;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.v2.Object.defineProperties(H_Z.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var MgS=function(){};
MgS.prototype.start=function(A,L){var O=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var X=new z3J({maxTimeMs:A});this.monitor=X;this.lastSummaryInternal=void 0;this.metadataToLog=L;return new Promise(function(x){var J=function(Y){if(Y===void 0)O.stop(),x(void 0);else if(O.monitor!==X)Y=Object.assign({},X.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),x(Y);else{var T=O.monitor;if(!Bw7(T)){T.frameCountInternal++;if(T.prevTime===
void 0)T.startTime=Y;else for(var V=Y-T.prevTime,E=_.d(T.brokenFrameSummarizers),n=E.next();!n.done;n=E.next()){n=n.value;var t=n.currTimeMs;n.currTimeMs+=V;V>n.targetFrameTimeMs+2&&(n.brokenFrameCount++,n.timeOfFirstBrokenFrameMs===void 0&&(n.timeOfFirstBrokenFrameMs=t),n.timeOfLastBrokenFrameMs=t)}T.prevTime=Y}Bw7(O.monitor)?x(O.stop()):_.c1.addJob(J,5,0)}};
_.c1.addJob(J,5,0)})};
MgS.prototype.stop=function(A){if(!this.monitor)return this.lastSummaryInternal;var L=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(L.monitoringDurationMs){A=A!=null?A:this.metadataToLog;var O={droppedFramesSummary:L,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};A&&(O[A.type]=A.data);_.lg("manualSmoothnessMeasurement",O)}this.monitor=void 0;this.lastSummaryInternal=L;this.metadataToLog=void 0;return L};_.$0n=new _.Yx("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var aDZ;aDZ=function(A){this.JSC$19459_expiringStorage=new NO(A)};
_.k2z=function(A){if(_.HZp()&&(A=_.tMp(_.gN()+"::"+A)))return new aDZ(A)};
aDZ.prototype.set=function(A,L,O){O=O!==void 0?Date.now()+O:void 0;this.JSC$19459_expiringStorage.set(A,L,O)};
aDZ.prototype.get=function(A){return this.JSC$19459_expiringStorage.get(A)};
aDZ.prototype.remove=function(A){this.JSC$19459_expiringStorage.remove(A)};var U0X=new _.Yx("SESSION_STORAGE");_.R5=function(){};
_.R5.getInstance=function(){var A=_.WY("ytglobal.storage_");A||(A=new _.R5,_.oZ("ytglobal.storage_",A));return A};
_.R5.prototype.estimate=function(){var A,L,O;return _.u(function(X){A=navigator;return((L=A.storage)==null?0:L.estimate)?X.return(A.storage.estimate()):((O=A.webkitTemporaryStorage)==null?0:O.queryUsageAndQuota)?X.return(zer()):X.return()})};
_.oZ("ytglobal.storageClass_",_.R5);var JOu=!!(PM[1]>>14&1);var vgu=0;var s39=!1;var vWS=_.AW(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),oWX=_.AW(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var Xn7={"/":_.K2,"/?feature=ytca":_.K2,"/feed/downloads":_.N$u};var ql=function(A,L,O){this.JSC$19475_upliftPromise=A;this.store=L;this.JSC$19475_persistentStorePromiseAccessor=O};
ql.prototype.shouldPreferLocalResponse=function(A){return A.browseId==="FEdownloads"||A.browseId==="FEsmart_downloads"&&_.h("kevlar_modern_downloads_page")?!0:!1};
ql.prototype.localInnertubeResponse=function(A){var L=this;return _.u(function(O){return A.browseId==="FEdownloads"?_.h("kevlar_modern_downloads_page")?O.return(AnM(L)):O.return(LhJ(L)):A.browseId==="FEsmart_downloads"&&_.h("kevlar_modern_downloads_page")?O.return(OLJ(L)):O.return(Promise.reject(Error("rj")))})};
ql.prototype.canProvideFallbackResponse=function(){return!0};
ql.prototype.localFallbackInnertubeResponse=function(A){var L=this,O,X,x;return _.u(function(J){switch(J.nextAddress){case 1:return J.yield(L.JSC$19475_persistentStorePromiseAccessor(),2);case 2:O=J.yieldResult;if(A.browseId!=="SPaccount_downloads"||!O){J.jumpTo(3);break}return J.yield(qm_(O),4);case 4:if(X=J.yieldResult)return J.return(_.uE(X));case 3:return A.browseId==="FEwhat_to_watch"?J.return(XzM(L)):(x=_.h("web_offline_continuation_automatic_retry")||_.h("web_offline_continuation_retry_button"))&&
A.continuation?J.return(xo$(L)):J.return(s97(L))}})};
var XzM=function(A){var L;return _.u(function(O){if(O.nextAddress==1)return O.yield(A.JSC$19475_upliftPromise,2);L=_.i2p(A.store.getState().entities);return L.length?O.return(Jn$(A,L)):O.return(s97(A))})},LhJ=function(A){var L,O;
return _.u(function(X){if(X.nextAddress==1)return X.yield(A.JSC$19475_upliftPromise,2);if(X.nextAddress!=3)return L=PeS([{offlineItemSectionRenderer:{}}]),X.yield(don(A,L),3);O=X.yieldResult;O.onResponseReceivedActions=[GR("REFRESH_DOWNLOADS")];return X.return(O)})},AnM=function(A){var L,O,X,x,J,Y,T,V,E,n,t,b,S,w,l,F;
return _.u(function(R){if(R.nextAddress==1)return R.yield(A.JSC$19475_upliftPromise,2);if(R.nextAddress!=3)return L=A.store.getState(),O=L.entities,X=_.lN(O),x=_.cG(O),J=_.OA_(L),Y=_.Lkd(L),T=_.X$e(L),V=_.K0u(O),E=_.pY(X),n=_.CY(O),t=_.C4u(O),b=_.sle(L),S=_.Im(L),w={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.jzJ(X,x,V,t,J,Y,E,n,T,b,S),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},l="",_.h("kevlar_modern_downloads_skip_downloads_title")||
(l=_.b3("DOWNLOADS",void 0,"Downloads")),R.yield(YJn(A,w,l),3);F=R.yieldResult;F.onResponseReceivedActions=[GR("REFRESH_DOWNLOADS")];return R.return(F)})},OLJ=function(A){var L,O,X,x,J,Y,T,V,E;
return _.u(function(n){if(n.nextAddress==1)return n.yield(A.JSC$19475_upliftPromise,2);if(n.nextAddress!=3)return L=A.store.getState(),O=L.entities,X=_.lN(O),x=_.pY(X),J=_.CY(O),Y={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.HNJ(X),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},T=_.b3("SMART_DOWNLOADS",void 0,"Smart downloads"),V=yXP(x,J),n.yield(YJn(A,Y,T,V),3);E=n.yieldResult;E.onResponseReceivedActions=
[GR("REFRESH_DOWNLOADS")];return n.return(E)})},s97=function(A){var L,O;
return _.u(function(X){if(X.nextAddress==1)return X.yield(YD(A.JSC$19475_upliftPromise,A.store),2);L=X.yieldResult;O=PeS([tHp(L)]);return X.return(don(A,O))})},xo$=function(A){var L,O,X,x;
return _.u(function(J){if(J.nextAddress==1)return L={},O=A.store.getState().continuation.continuationCommand,_.Iy(L,_.Mn,O),J.yield(YD(A.JSC$19475_upliftPromise,A.store,L,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);X=J.yieldResult;x={};_.Iy(x,_.sLj,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:X}}}],targetId:"browse-feedFEwhat_to_watch"});return J.return({responseContext:{},onResponseReceivedActions:[x]})})},PeS=function(A){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:A}}}}]}}},Jn$=function(A,L){var O,X;
return _.u(function(x){var J={contents:lI(L)};O=J&&J.contents?J:{};_.h("kevlar_modern_downloads_page")&&(O=Object.assign({},_.zMe(L),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));X={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:O}}}]}};return x.return(don(A,X))})},don=function(A,L){var O,X;
return _.u(function(x){if(x.nextAddress==1)return x.yield(A.JSC$19475_persistentStorePromiseAccessor(),2);if(x.nextAddress!=3)return O=x.yieldResult,x.yield(T_(O),3);X=x.yieldResult;return x.return({responseContext:{},contents:L,topbar:X})})},YJn=function(A,L,O,X){var x,J;
return _.u(function(Y){if(Y.nextAddress==1)return Y.yield(A.JSC$19475_persistentStorePromiseAccessor(),2);if(Y.nextAddress!=3)return x=Y.yieldResult,Y.yield(T_(x),3);J=Y.yieldResult;var T=Y.return;var V=O;var E=X;V=V===void 0?"":V;E=E===void 0?"":E;V={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:V}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.b3("SETTINGS",void 0,"Settings"),accessibilityText:_.b3("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:LY("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:E}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:V};
return T.call(Y,{responseContext:{},contents:L,topbar:J,header:{pageHeaderRenderer:V}})})};var u0J=function(){this.moduleRegistry={};this.fetchCount=0};
u0J.prototype.isFetching=function(){return this.fetchCount>0};
var Bw=function(A,L){A.moduleRegistry[L.toString()]={asyncId:L,isFetching:!1};return A};
u0J.prototype.JSC$19486_loadModules=function(){for(var A=this,L=new Map,O=[],X=_.d(_.f_.apply(0,arguments)),x=X.next();!x.done;x=X.next()){x=x.value;var J=this.moduleRegistry[x];J?J.resolver?L.set(x,J.resolver):(J.resolver=new _.EP,L.set(x,J.resolver),O.push(J.asyncId),J.isFetching=!0):(J=new _.EP,L.set(x,J),J.resolve(void 0))}O.length&&(this.fetchCount+=1,_.R$(_.b6.getMultipleAsync.apply(_.b6,_.le(O)).then(function(Y){for(var T=0;T<O.length;T++){var V=Y[T],E=A.moduleRegistry[O[T].toString()];E.isFetching=
!1;E.resolver.resolve(V)}}).catch(function(Y){for(var T=_.d(O),V=T.next();!V.done;V=T.next()){V=V.value;
var E=A.moduleRegistry[V.toString()];E.resolver=void 0;E.isFetching=!1;L.get(V.toString()).reject(Y)}}),function(){--A.fetchCount}));
return Promise.all([].concat(_.le(L.values())).map(function(Y){return Y.promise}))};_.Ml=new _.Yx("MODULE_REGISTRY_TOKEN");var Tpn={},V4Q=(Tpn.rendered={priority:0,callback:function(A){a:{var L=void 0;try{var O;b:{if(_.s49()){var X=_.nBd(_.gN()+"::pom");if(X){var x=new fA(X);break b}}x=void 0}var J=(O=x)==null?void 0:O.get("role_text");if(!J)break a;L={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:J}]}}}}}}catch(V){}L&&A.injector.resolve(_.x$).resolveCommand(L)}try{var Y=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(Y){var T=JSON.parse(Y);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
T&&A.injector.resolve(_.x$).resolveCommand(T)}}catch(V){}}},Tpn);var DoX,eoS={},E3J=(eoS.initialized={priority:10,callback:function(){DoX=F2()}},eoS.rendering={callback:function(A){var L;
return _.u(function(O){if(O.nextAddress==1)return O.yield(DoX,2);L=O.yieldResult;if(!L.endpoint)throw Error("tj`"+_.Ou.location.href);fq(A,L);_.qo(O)})}},eoS);var n3X={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(_.le(_.h("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(A){var L=A.stack;if(L.includes("chrome://")||L.includes("chrome-extension://")||A.message.includes("chrome-extension://")||L.includes("moz-extension://")||L.includes("local.adguard.org")||L.includes("auctioneer3.50million.club")||L.includes("youtubedownloader")||L.includes("youtube_home_page")||L.includes("is_youtube_video_no_longer_available")||
L.includes("switchScreenSizeHack")||L.includes("yt_main_big_banner.js")||L.includes("YouTubeCenter.js")||L.includes("/mytube.js")||L.includes("JSON.parseWrapper")||L.includes("/inj_js/common.js")||L.includes("firebug-lite")||L.includes(".repl.co/")||L.includes("linkfix")||L.includes("playAfterAd")||A.message.includes("Access is denied for this document")&&L.includes("<anonymous>")||A.fileName==="user-script"||A.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
L.includes("<anonymous>"))return!0;if(L.includes("https://www.youtube.com"))return!1;A=L.split("\n");if(!A.length)return!1;if(A.length<=3&&L.includes("s.onloadeddata"))return!0;L=0;for(var O=_.d(A),X=O.next();!X.done;X=O.next())X=X.value,(X.includes("https://")||X.includes("http://"))&&L++;return L/A.length>.95},
weight:0},{callback:function(A){return A.message==="Unknown Error"&&A.name.indexOf("NS_")===0},
weight:100},{callback:function(A){if(!_.Ei)return!1;var L=A.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||A.message.includes("available to complete this operation"),O=A.stack.includes("webcomponents")&&A.message==="Object doesn't support this action";A=A.message.includes("object that does not implement interface Element");return L||O||A},
weight:0},{callback:function(A){return A.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(A){return A.message==="Operation is not supported"&&(A.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(A){return A.stack.includes("eval code (eval (code:1:1)")||A.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(A){return A.message.includes("Permission denied")&&A.stack.includes("this.domHandler")?!0:A.name.includes("TypeError")&&A.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(A){if(!A.stack)return!1;var L=A.stack.trim().split("\n");L.length&&L[0].endsWith("Error: "+A.message)&&L.shift();L.length&&L[L.length-1].includes("at window.onerror (")&&L.pop();if(!L.length)return!0;if(A.message==="Script error.")return L[0].includes("www.youtube.com")||L.length>=2&&L[0].startsWith("at new")&&L[1].startsWith("at window.onerror");if(A.message==="Unexpected token")return!0;A=_.d(L);for(L=A.next();!L.done;L=A.next())if(L=L.value,!(L.includes("<anonymous>")||
L.startsWith("load@")||L.startsWith("global code@")||L.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(A){return A.message==="Cannot read property 'experiments'"&&A.stack.includes("/s/player/")},
weight:500},{callback:function(A){return A.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(A){return A.stack.includes("/embed.js")?(A.params&&A.params&&(A.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.h("use_error_suppression"))var A=_.ms("SUPPRESS_CLIENT_ERRORS",!1);else{if(A=_.SX)A=/Chrome\/(\d+)/.exec(_.n9()),A=(A?parseFloat(A[1]):NaN)>=66;A=!(A||_.hW&&_.b1(65)||_.fe&&_.b1(12.1)||Ut&&_.b1(79))}return A},
weight:500}]};var t4S={},bL$=(t4S.initialized={priority:10,callback:function(A){A.injector.addProvider({provide:KW3,useValue:A.root});A.injector.addProvider({provide:$NM,useValue:T0D});A.injector.addProvider({provide:aNX,useValue:n3X});var L={};A.injector.addProvider((L.provide=kjS,L.useFactory=function(O,X){return function(){QqP(O,X)}},L[dx]=[$NM,
aNX],L));A.injector.addProvider({provide:wU,useClass:wU})}},t4S);var hon={},SJX=(hon.initialized={priority:3,callback:function(){var A;if(A=Yes()){A=A.replace("/",".");var L=_.qG();L.set("tz",A);L.save();A=!0}else A=!1;A||(A=_.qG(),A.set("utco",-Math.floor((new Date).getTimezoneOffset())),A.save())}},hon);var qJX={},g3Z=(qJX.initialized={priority:10,callback:function(A){A.injector.resolve(wU).start();A=_.aa();var L=_.fB("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.fB("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.fB("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.fB("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.tR(_.R1J(),{mainAppWeb:Object.assign({},A,{pageType:L})});_.tR(mzO(),{mainAppWeb:Object.assign({},A,{pageType:L})});
_.tR(fI9(),{mainAppWeb:A});_.tR(IIO(),{mainAppWeb:A});qjL(function(){_.bE(fI9(),"FAILURE");_.bE(IIO(),"FAILURE")});
qXM();g0p();amu()}},qJX);var wzB={},pzM=(wzB.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.Rk("dl"),_.kq().processSignal("pcl");else{var A=function(){_.Rk("dl");_.kq().processSignal("pcl");window.removeEventListener("load",A)};
window.addEventListener("load",A)}}},wzB);var iLJ={},NpM=(iLJ.rendering={priority:0,callback:function(){var A=_.kq();A.parkOrScheduleJob(function(){A.processSignal("eocs")},10,"eor",5E3)}},iLJ);var rnz=function(){};
_.g(rnz,ML);
rnz.prototype.resolveCommand=function(A,L){var O,X,x,J,Y,T,V,E;return _.u(function(n){x=(O=_.q(A,_.a2V))==null?void 0:(X=O.dialog)==null?void 0:X.commentReplyDialogRenderer;if(!x)throw new _.pe("No dialog in createCommentReplyDialogEndpoint");Y=(J=L.form)==null?void 0:J.event;if(!Y)throw new _.pe("Event not passed in when resolving command");T=_.d(Y.composedPath());for(V=T.next();!V.done;V=T.next())if(E=V.value,E.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||E.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return E.showReplyDialog(x),n.return();
_.qo(n)})};var Qs=function(A){this.pageRequestService=A;this.JSC$19501_prefetchCoordinator=R7Z()};
_.g(Qs,ML);Qs.prototype.resolveCommand=function(A){var L=this,O,X,x,J;return _.u(function(Y){if(Y.nextAddress==1){O=_.q(A,KG6);if((X=O)==null||!X.taskId)throw Error("uj");x=O.taskId;_.e4(Y,2);return Y.yield(_.pA6(L.pageRequestService,A,{},"").then(function(T){if(!T)throw Error("vj");},function(T){throw Error("wj`"+T);
}),4)}if(Y.nextAddress!=2)return fNX(L.JSC$19501_prefetchCoordinator,x),_.zA(Y,0);
J=_.S4(Y);Vs(L.JSC$19501_prefetchCoordinator,x,J);_.qo(Y)})};
Qs[dx]=[Cq];var mA=function(A){this.innertubeTransportService=A};
_.g(mA,ML);mA.prototype.resolveCommand=function(A){var L=this,O,X;return _.u(function(x){O=_.q(A,Nm6);if(O.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||O.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")X=O.boolValue?2:1,_.Yq.getInstance().setState(X,!0,!0);return x.yield(_.oQ(L.innertubeTransportService,A),0)})};
mA[dx]=[_.Ia];var fg=function(A){this.innertubeTransportService=A};
_.g(fg,ML);fg.prototype.resolveCommand=function(A){var L=this,O,X;return _.u(function(x){O=_.q(A,UzH);if(!O)return x.return();X=[];O.contentCommand&&X.push(_.oQ(L.innertubeTransportService,O.contentCommand));O.watchCommand&&X.push(_.oQ(L.innertubeTransportService,O.watchCommand));return x.yield(Promise.all(X),0)})};
fg[dx]=[_.Ia];var I5={},KhX=(I5.addToPlaylistEndpoint=AY(y8),I5.addToToastAction=AY(WE),I5.adsControlFlowOpportunityReceivedCommand=AY(q$),I5.backgroundAudioPlaybackCommand=AY(AJ),I5.captionLanguageSelectActionCommand=AY(Lw),I5.captionPickerEndpoint=AY(OF),I5.changeMiniAppPlayStateCommand=AY(Zv),I5.changeTimelyActionVisibilityCommand=AY(jy),I5.channelCreationFormEndpoint=AY(FY),I5.clearLocationCommand=AY(IK),I5.clearUrlParamCommand=AY(jF),I5.copyLinkCommand=AY(d7),I5.copyTextEndpoint=AY(pF),I5.createCommentReplyDialogEndpoint=
ZCu(rnz),I5.createPlaylistServiceEndpoint=AY(Yn),I5.dismissDialogEndpoint=AY(H0),I5.dismissPlayerOverlayCommand=AY(X$),I5.entityUpdateCommand=AY(N$),I5.feedbackEndpoint=AY(Gh),I5.getAnswerCommand=AY(WMX),I5.getPaymentsClientTokenCommand=AY(BE),I5.getTranscriptEndpoint=AY(HE),I5.googlePaymentBillingCommand=AY(Mu),I5.googlePaymentPurchaseManagerCommand=AY($n),I5.hideEngagementPanelEndpoint=AY(zh),I5.hideSnackbarCommand=AY(R2),I5.insertRichSectionCommand=AY(Q8),I5.learningJourneyCanvasCommand=AY(fg),
I5.listMutationCommand=AY(mV),I5.logGtmCommand=AY(RK),I5.notifyDropdownOptionSelectedCommand=AY(W0),I5.openAdAllowlistInstructionCommand=AY(_.g5),I5.openOnePickAddVideoModalCommand=AY(u7),I5.persistSubscriptionsDisplayPreferencesCommand=AY(nw),I5.pingingEndpoint=AY(w5),I5.playlistEditEndpoint=AY(Vm),I5.playlistVotingRefreshPopupCommand=AY(Dj),I5.profileCardCommand=AY(SF),I5.refreshPanelEndpoint=AY(B0),I5.saveImageToDeviceEndpoint=AY(iL),I5.scrollToSectionEndpoint=ZCu(H97),I5.seekToVideoTimestampCommand=
AY(xn),I5.selectCountryCommand=AY(tJ),I5.setCookieCommand=AY(b7),I5.setLocalStorageCommand=AY(m3),I5.setPrefStorageEntryCommand=AY(Sy),I5.setSettingEndpoint=AY(mA),I5.sfvAudioItemPlaybackCommand=AY(sF),I5.shareImageCommand=AY(qu),I5.sharingProviderDataCommand=AY(g7),I5.showCaptionLanguageSelectActionCommand=AY(JJ),I5.showDialogCommand=AY(aK),I5.showEngagementPanelEndpoint=AY(kR),I5.showSheetCommand=AY(UG),I5.showSnackbarCommand=AY(Qm),I5.showTransientPlayerScrimOverlayCommand=AY(PE),I5.submitFormWithValidationFlowCommand=
AY(CF),I5.talkToRecsDeselectCommand=AY(fw),I5.talkToRecsNextCommand=AY(I2),I5.talkToRecsSelectCommand=AY(ym),I5.talkToRecsUpdateTextCommand=AY(Zj),I5.toggleEngagementPanelCommand=AY(v0),I5.undoFeedbackEndpoint=AY(c0),I5.updateEngagementPanelContentCommand=AY(oK),I5.updateUrlParamCommand=AY(zH),I5.verifyCommand=AY(FY),I5.webNativeShareCommand=AY(w7),I5.webSubmitFormCommand=AY(ey),I5.ACK_PLAYABLES_3P_DATA_CONSENT=AY(pw),I5.CANCEL_NAVIGATION=AY(i7),I5.COPY_SHARE_URL=AY(Nu),I5.MINI_APP_EXIT_DIALOG_SEEN=
AY(Kw),I5.MINI_APP_OPEN_URL=AY(r7),I5.REQUEST_MINI_APP_FULLSCREEN=AY(GH),I5.RESUME_NAVIGATION=AY(l7),I5.SHARE_PLAYABLE_WITH_HIGH_SCORE=AY(cE),I5.TELL_US_WHY=AY(lL),I5);_.h("web_enable_prefetching_videos_on_home")&&(KhX.prefetchWatchCommand=AY(Qs),KhX.registerTasksCommand=AY(eB));_.h("enable_share_panel_navigation_logging_fix_on_web")&&(KhX.shareEntityServiceEndpoint=AY(M$));var Cx7=Object.assign({},KhX);var GMJ={},lMZ=(GMJ.initialized={priority:10,callback:rOp},GMJ);var cnX={},CeZ=(cnX.initialized={callback:function(A){var L={},O={};bgy().install((L.document_disposed={callback:function(){_.h("finalize_all_timelines")?shJ():c4();yes("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.GgP();var X=A.injector.resolve(wU);X.intervalId!==void 0&&(X.intervalId&&_.c1.cancelJob(X.intervalId),X.intervalId=void 0,--X.currentPartitionIndex,X=nCg(X),X>0&&hGg({mainAppWeb:_.aa(),survivalSli:{partitionMinute:X,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));TDN(A7);L2!=null&&
L2.flush();Yc&&Yc.snapshotAndFlush();X=_.d(N36.values());for(var x=X.next();!x.done;x=X.next())x.value.snapshotAndFlush()}},L),(O.flush_logs={callback:function(){_.ch()}},O))}},cnX);var FhQ={},Ro$=(FhQ.rendered={priority:0,callback:function(){var A=new xDn;A.increment("STARTED");if(_.ms("LOGGED_IN")&&_.ms("SERVER_VERSION")!=="test"&&_.ms("SERVER_VERSION")!=="dev"&&!mNJ()&&!Q6l()){A.increment("EXECUTING");var L=document.createElement("iframe");L.style.display="none";_.s9d(L,2,_.RP("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.ms("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(L);A.increment("DONE")}}},FhQ);var Q9n={},mo7=(Q9n.rendered={callback:function(){R7Z().resume()}},Q9n);var fMS={acknowledgeChannelTouStrikeCommand:K3(wK),addToPlaylistServiceEndpoint:K3(Nx),addToPlaylistEndpoint:K3(Nx),addUpcomingEventReminderEndpoint:K3(fG),browseEndpoint:K3(t37),channelCreationFormEndpoint:K3(nG),channelCreationServiceEndpoint:K3(td),claimLegacyYoutubeChannelEndpoint:K3(XB),clearSearchHistoryEndpoint:K3(lo),clearWatchHistoryEndpoint:K3(ca),commerceActionCommand:Gm($Q),createBackstagePostEndpoint:K3(UF),createBroadcastCommand:K3(I1),createCommentEndpoint:K3(V0),createCommentReplyEndpoint:K3(TW),
createLiveChatPollEndpoint:K3(y0),createPlaylistServiceEndpoint:K3(rP),crossAccountChannelTransferEndpoint:K3(R1),deleteLiveChatMessageCommand:K3(Z$),deletePlaylistEndpoint:K3(Ko),deleteVideoEndpoint:K3(HK),dismissalEndpoint:K3(pG),feedbackEndpoint:K3(io),flagEndpoint:K3(Rp),getAccountSwitcherEndpoint:K3(FB),verifyCommand:K3(kn),getAccountsListInnertubeEndpoint:K3(mE),getCommentsFromInboxCommand:K3(YQ),getDownloadActionCommand:K3(no),getFlowCommand:Gm(GW),getKidsBlocklistPickerCommand:K3(QQ),getNotificationMenuEndpoint:K3(SgX),
getPaymentInstrumentsParamsCommand:K3(AG),getPaymentsClientTokenCommand:Gm($Q),getPdgBuyFlowCommand:K3(po),getReportFormEndpoint:K3(m_),getSearchInVideoCommand:K3(yQ),getAnswerCommand:K3(Ip),getSurveyCommand:K3(WK),getTranscriptEndpoint:K3(BK),getPostVideoPreviewEndpoint:K3(o2),decorateMessageEndpoint:K3(vE),likeEndpoint:K3(bo),liveChatActionEndpoint:K3(zW),liveChatEndpoint:K3(Ha),liveChatItemContextMenuEndpoint:K3(jA),liveChatPurchaseMessageEndpoint:K3(Ba),liveChatReplayEndpoint:K3(Wa),manageLiveChatUserEndpoint:K3($S),
metadataUpdateCommand:K3(A1),moderateLiveChatEndpoint:K3(a1),modifyChannelNotificationPreferenceEndpoint:K3(Du),notificationOptOutEndpoint:K3(eW),openSuperStickerBuyFlowCommand:K3(M2),performCommentActionEndpoint:K3(dK),playlistEditEndpoint:K3(l9),playlistEditorEndpoint:K3(Gq),recordNotificationInteractionsEndpoint:K3(E2),reelWatchEndpoint:K3(cK),refreshPanelEndpoint:K3(b9),removeUpcomingEventReminderEndpoint:K3(kS),resolveLocationCommand:K3(o1),revealBusinessEmailCommand:K3(xS),searchEndpoint:K3(_.qgz),
sendLiveChatMessageEndpoint:K3(U_),sendLiveChatVoteEndpoint:K3(va),setSettingEndpoint:K3(hd),shareEntityServiceEndpoint:Gm(gK),sharingProviderDataCommand:K3(jW),showEngagementPanelEndpoint:K3(h1),showMoreDrawerCommand:K3(qx),showSheetCommand:K3(gP),showDialogCommand:K3(SW),subscribeEndpoint:K3(SA),transcriptSubmitCaptionCorrectionCommand:K3(zq),undoFeedbackEndpoint:K3(rK),unsubscribeEndpoint:K3(q2),updateBackstagePostEndpoint:K3(LG),updateCommentEndpoint:K3(eA),updateCommentReplyEndpoint:K3(D$),updateCommentsSettingsEndpoint:K3(E_),
updateCreatorChannelInnertubeCommand:K3(Jd),updateKidsBlacklistEndpoint:K3(fo),updateEngagementPanelContentCommand:K3(wP),updatePdgFeatureEnablementCommand:K3(i9),updatedMetadataEndpoint:K3(Lo),validateChannelHandleCommand:K3(Pa),updateChannelPageSettingsEndpoint:K3(s_),verifyAgeEndpoint:K3(KG),watchEndpoint:Gm(Nv),whitelistEditEndpoint:K3(Mx),ypcCancelRecurrenceEndpoint:K3(ap),ypcCompleteTransactionEndpoint:K3(kQ),ypcFixInstrumentEndpoint:K3(vK),ypcGetCartEndpoint:K3(U2),ypcGetOffersEndpoint:K3(op),
ypcHandleTransactionEndpoint:Gm(Lg),ypcLogWalletAnalyticDataEndpoint:K3(O5),ypcOffersEndpoint:K3(Xb),ypcPauseSubscriptionCommand:K3(xE),ypcRedeemCodeEndpoint:K3(s5),ypcResumeSubscriptionCommand:K3(JG),ypcUpdateFopEndpoint:K3(vK)},ys={},IMX=(ys.GET_ACCOUNT_MENU=K3(Q0),ys.GET_NOTIFICATIONS_MENU=K3(h7X),ys.GET_NOTIFICATIONS_INBOX=K3(u9),ys.GET_UNSEEN_NOTIFICATION_COUNT=K3(VQ),ys.GET_USER_MENTION_SUGGESTIONS=K3(Ad),ys.LOAD_GUIDE=K3(b6X),ys.SUBMIT_FEEDBACK=K3(N2),ys),Z3={},ynB=(Z3.CONTINUATION_REQUEST_TYPE_BROWSE=
K3(O_),Z3.CONTINUATION_REQUEST_TYPE_SEARCH=K3(Zu),Z3.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=K3(KA),Z3.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=K3(CG),Z3.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=K3(uo),Z3.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=K3(YS),Z3.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=K3(FA),Z3.CONTINUATION_REQUEST_TYPE_GET_PANEL=K3(t1),Z3),ZLB={player:Gm(Nv),watchNext:K3(rf)},j97={player:Gm(Nv),reelItemWatch:K3(cK),reelWatchSequence:K3(Co)},WhX={watchEndpoint:Gm(G6)},HLz=
{commandEndpointMap:fMS,signalEndpointMap:IMX,continuationEndpointMap:ynB,watchEndpointMap:ZLB,reelWatchEndpointMap:j97,streamingEndpointMap:WhX};var zoZ,BpJ,M4$;_.$oJ=((BpJ=(zoZ=window).matchMedia)==null?void 0:(M4$=BpJ.call(zoZ,"(prefers-reduced-motion: reduce)"))==null?void 0:M4$.matches)||!document.startViewTransition;var aMZ={disableAllTransitions:_.$oJ,transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["lockup-to-watch",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["watch-next-appears",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:200}}],["learning-journey",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:600}}]])};var kMS=function(A){this.viewTransitionCoordinator=A;this.isBrowseTransitionEnabled=_.dN("web_page_transition_type")==="slide";this.isLockupToWatchTransitionEnabled=_.h("web_thumbnail_to_watch_transition");this.isLockupThumbnailRegistrationEnabled=_.h("web_thumbnail_to_watch_transition_register_thumbnail");this.isLearningJourneyTransitionEnabled=_.h("enable_plj_landing_page");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;
this.lockupThumbnailRegisteredFromWatchEndpoint=!1;this.registerRootElement()};
kMS.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var A={};this.viewTransitionCoordinator.registerElement(document.documentElement,(A.slide="root-slide",A["lockup-to-watch"]="root-lockup-to-watch",A["learning-journey"]="root-learning-journey",A))}};
_.QVL=function(A,L){A.isLockupToWatchTransitionEnabled&&A.isLockupThumbnailRegistrationEnabled&&(A.registeredLockupThumbnail?A.lockupThumbnailRegisteredFromWatchEndpoint?_.Rv(new _.pe("Lockup thumbnail registration order is incorrect.")):_.Rv(new _.pe("Lockup thumbnail already registered.")):(A.registeredLockupThumbnail=L,_.UoQ(A,L)))};
_.UoQ=function(A,L){var O={};A.viewTransitionCoordinator.registerElement(L,(O["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",O),!0)};
kMS[dx]=[ISX];var K6p={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 l5D=["videoPrimaryInfoRenderer","title"],cOu=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var v3k;v3k=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.o3n=_.xa(function(A){A=_.OY(A,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var L=A.data,O=A.playlistData,X=A.expanded,x=A.onExpandClick,J=A.isReadyToResume,Y=function(){var n;return!((n=O())==null||!n.contents)},T=function(){var n=O();
return n&&n.totalVideos&&n.currentIndex!==void 0?n.currentIndex+1+" / "+n.totalVideos:""};
A=_.py(function(){_.jB(_.X5().resolve(_.z_));return!1});
var V=_.py(function(){Y()&&x&&x()}),E={};
return _.D("ytd-miniplayer-info-bar",{class:_.qn("ytdMiniplayerInfoBarHost",(E.ytdMiniplayerInfoBarHasPlaylistData=Y,E)),"on:click":V},_.D("div",{class:"ytdMiniplayerInfoBarContent"},_.D("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":A},_.D(_.Xg,{text:function(){var n=L();var t=O();if(t==null?0:t.contents){var b;n=(b=_.XLM(t))==null?void 0:b.title}else n=n==null?void 0:n.miniplayerTitle;return F6p(n)},
noEndpoints:!0,ellipsisTruncate:!0})),_.D("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.D(_.e,{cond:J,then:function(){return _.D(N8n,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:v3k})}}),_.D("h1",null,_.D(_.Xg,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var n=L();var t=O();n=J()?{simpleText:_.b3("CONTINUE_WATCHING",void 0,"Continue watching")}:(t==null?0:t.contents)?t.titleText:n==null?void 0:n.miniplayerSubtitle;return F6p(n)},
noEndpoints:!0,ellipsisTruncate:!0})),_.D(_.e,{cond:function(){return!!T()&&!J()},
then:function(){return _.D("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.D("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.D("span",null,T))}}))),_.D(_.e,{cond:Y,
then:function(){return _.D("div",{class:"ytdMiniplayerInfoBarExpand"},_.D(_.xf,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(n){x&&(x(),n.stopPropagation())}}},
iconName:function(){return X()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"He");var AD7;AD7=_.xa(function(A){return _.D("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.D(_.xf,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:A.onTap}},
iconName:"yt-icons:close"}))},"Ie");
_.Lyk=_.xa(function(A){A=_.OY(A,{playabilityStatus:void 0,isDisabled:!1});var L=A.size,O=A.playabilityStatus,X=A.isDisabled,x=_.av("div");A=_.d(_.uQ(void 0,void 0,"bJr0Se"));var J=A.next().value,Y=A.next().value;A=_.zJ(_.hC);var T=!1,V=function(){return L().height<=0};
_.ND(function(){var b=L(),S=V(),w=J();w&&!S&&w.setInternalSize(b.width,b.height)},"OUOyKb");
_.r9(function(){var b,S,w;return _.u(function(l){if(l.nextAddress==1){b=_.X5().resolve(_.z_);S=b.getPlayerElement();if(!b.isMiniplayerActive()||!S||!x.value)return l.return();S.appendTo(x.value);return l.yield(S.getPlayerPromise(),2)}w=l.yieldResult;w.setSizeStyle(!1,!0);Y(w);_.qo(l)})});
_.rF(function(){E()});
_.ND(function(){var b=J();if(b)if(X()){var S=b.getPlayerState();(T=S===-1||S===1||S===3)&&b.pauseVideo()}else E()},"KKHe5");
var E=function(){if(T){T=!1;var b;(b=J())==null||b.playVideo()}},n=_.py(function(){_.jB(_.X5().resolve(_.z_))}),t={};
return _.D("ytd-miniplayer-player-container",{class:_.qn("ytdMiniplayerPlayerContainerHost",(t.ytdMiniplayerPlayerContainerHidden=V,t.ytdMiniplayerPlayerContainerHostShortsPip=A,t)),style:_.rl({width:function(){return L().width+"px"},
height:function(){return L().height+"px"}})},_.D("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:x}),_.D(_.e,{cond:function(){return!!O()&&!_.uDr(O())},
then:function(){return _.D(N4L,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var b;return((b=O())==null?void 0:b.errorScreen)||null},
status:function(){var b;return((b=O())==null?void 0:b.status)||null}})}}),_.D(_.e,{cond:X,
then:function(){return _.D("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":n},_.D(AD7,{onTap:function(){_.X5().resolve(_.z_).close()}}))}}))},"Je");_.OmX=_.xa(function(A){var L=A.toastData;var O=_.av("ytd-miniplayer-toast");A=_.d(_.Nn(function(){return!!L()}));
var X=A.next().value,x=A.next().value;A=_.d(_.uQ(!1,void 0,"xkrBze"));var J=A.next().value,Y=A.next().value,T=function(){var n;return _.vG((n=L())==null?void 0:n.data.title)};
_.GD(function(){_.ah.requestAvailability();L()&&x(!1)});
var V,E;_.ND(function(){X()&&(_.P4(O.value,"iron-announce",{text:L().label+" "+T()}),V&&_.c1.cancelJob(V),V=_.c1.addLowPriorityJob(function(){Y(!0)},2500))},"OTdL1e");
_.ND(function(){J()&&(E&&_.c1.cancelJob(E),E=_.c1.addLowPriorityJob(function(){x(!1);Y(!1)},300))},"yybqib");
A={};return _.D("ytd-miniplayer-toast",{el:O,class:_.qn("ytdMiniplayerToastHost",(A.ytdMiniplayerToastOpening=function(){return X()},A.ytdMiniplayerToastClosing=function(){return J()},A))},_.D(_.e,{cond:function(){var n;
return(n=L())==null?void 0:n.data},
then:function(n){return _.D(R96,{className:"ytdMiniplayerToastThumbnail",data:n,width:78})}}),_.D("div",{class:"ytdMiniplayerToastInfo"},_.D("div",{class:"ytdMiniplayerToastLabel"},function(){var n;
return(n=L())==null?void 0:n.label}),_.D("div",{class:"ytdMiniplayerToastTitle"},T)))},"Ke");var HKs;var M$J=null;var xFJ=_.xa(function(A){var L=A.progressState;var O=A.multiMarkersPlayerBarRenderer;var X=A.progressBarWidth;var x=function(){return UHP(O())},J=function(){return Av_(L())},Y=function(){return X()*(L().playedTime/L().videoDuration)};
return _.D("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.D(_.g9,{each:x},function(T,V){return _.D(XTX,{modifiedProps:J,chapters:x,index:V,playedProgressWidth:Y,backgroundGradientPosition:function(){var E=J(),n=x(),t=V(),b=Y();return(E.playedTime-Ww(_.q(n[t],jO)))/E.playedTime*b}})}))},"Le"),XTX=_.xa(function(A){var L=A.modifiedProps;
var O=A.chapters;var X=A.index;var x=A.playedProgressWidth;var J=A.backgroundGradientPosition;A={};A=_.qn("ytChapteredProgressBarChapteredPlayerBarChapter",(A.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return Y().isScrubbing},A.ytChapteredProgressBarHoveredMacroMarker=function(){return Y().scrubberHovering},A.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return Y().videoPosition==="seen"},A));
var Y=function(){return L5M(L(),O(),X())},T=function(){var V=L();
var E=O(),n=X();if(L5M(V,E,n).videoPosition!=="active")V=0;else{var t=Ww(_.q(E[n],jO));V=(V.playedTime-t)/((Ww(_.q(E[n+1],jO))||V.videoDuration)-t)}return V};
return _.D("div",{class:A,style:_.rl({width:function(){var V=L(),E=O(),n=X(),t=_.q(E[n],jO);E=_.q(E[n+1],jO);return(E?Ww(E)-Ww(t):V.videoDuration-Ww(t))/V.videoDuration*100+"%"},
"background-color":function(){a:{var V=Y();switch(V.videoPosition){case "pending":V=V.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":V=V.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:V=""}}return V},
"background-size":function(){return(Oir(Y())?x():"")+"px"},
"background-position-x":function(){return(Oir(Y())?J():"")+"px"}})},_.D("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var V=L(),E=O(),n=X();if(L5M(V,E,n).videoPosition==="seen")var t=0;else t=Ww(_.q(E[n],jO)),E=Ww(_.q(E[n+1],jO))||V.videoDuration,V=V.videoDuration*V.percentLoaded,t=E<=V?1:t>=V?0:(V-t)/(E-t);return"width: "+t*100+"%"}}),_.D("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.rl({width:function(){return T()*100+"%"},
"background-size":function(){return(Oir(Y(),T())?x():"")+"px"},
"background-position-x":function(){return(Oir(Y(),T())?J():"")+"px"}})}))},"Me");var son=function(A,L){L=L===void 0?GP7:L;var O,X=[],x,J=!1;return function(){var Y=_.f_.apply(0,arguments);if(J&&O===this&&L(Y,X))return x;x=A.apply(this,Y);J=!0;O=this;X=Y;return x}}(function(A){var L=A.heatMarkers,O=A.minHeightDp===void 0?0:A.minHeightDp,X=A.maxHeightDp===void 0?60:A.maxHeightDp;
var x=x===void 0?!1:x;var J=1E3/L.length;A=[];A.push({x:0,y:100});for(var Y=0;Y<L.length;Y++){var T=void 0,V=((T=_.q(L[Y],lbl))==null?void 0:T.heatMarkerIntensityScoreNormalized)||0;T=(Y+.5)*J;V=100-_.Z7(V*100,O/321*100,X/321*100);Y!==0||x||A.push({x:0,y:V});A.push({x:T,y:V});Y===L.length-1&&A.push({x:1E3,y:V})}A.push({x:1E3,y:100});L="";for(O=0;O<A.length;O++)x=A[O],O===0?x="M "+x.x.toFixed(1)+","+x.y.toFixed(1):(X=dXP(A[O-1],A[O-2],x),J=dXP(x,A[O-1],A[O+1],!0),x=" C "+(X.x.toFixed(1)+","+X.y.toFixed(1)+
" "+J.x.toFixed(1)+","+J.y.toFixed(1)+" "+x.x.toFixed(1)+","+x.y.toFixed(1))),L+=x;return L});var JDZ=_.xa(function(A){var L=A.progressBarProps;var O=A.config;var X={};A=_.qn("ytHeatSeekerHost",(X.ytHeatSeekerHighContrast=A.highContrast,X));var x=function(){return I5e(O().chapterData)};
return _.D("yt-progress-bar-heatseeker",{class:A,style:function(){var J;return"height: 320px; display: "+(L().isDragging&&((J=x())==null?0:J.heatMarkers)?"block":"none")}},_.D(_.e,{cond:x,
then:function(J){return _.D(_.e,{cond:function(){return J().heatMarkers},
then:function(){return _.D("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.D("path",{d:function(){return son(J())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Ne");var PWS=_.xa(function(A){var L=A.progressBarProps;var O=A.config;A={};A=_.qn("ytProgressBarLineProgressBarLine",(A.ytProgressBarLineProgressBarLineRounded=function(){return O().rounded},A.ytProgressBarLineProgressBarLineBottomInset=function(){return O().position===2},A));
return _.D("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.D("div",{class:A},_.D("div",{class:"ytProgressBarLineProgressBarBackground"}),_.D("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+L().percentLoaded*100+"%"}}),_.D("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var X=L();return"width: "+(X.videoDuration?_.Z7(X.hoveredTime/X.videoDuration,0,1):0)*100+"%"}}),_.D("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+Q3e(L())*100+"%"}})))},"Oe");
PWS.idomCompat=!0;var dFM=_.xa(function(A){var L=A.progressBarProps;var O=A.playheadData;var X=A.interpolateDotPosition;var x=A.hidePlayhead;A={};var J=_.qn("ytProgressBarPlayheadProgressBarPlayheadDot",(A.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return L().isDragging},A.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!L().isDragging&&x()},A));
return _.D("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.rl({"margin-left":function(){return mHe(L())*100+"%"},
transform:function(){return"translateX(-"+(X()?mHe(L())*12:6)+"px)"}})},_.D(_.e,{cond:function(){var Y;
return(Y=_.LT(O)())==null?void 0:Y.playheadImage},
then:function(Y){var T={};return _.D("div",{class:_.qn("ytProgressBarPlayheadProgressBarPlayheadCustom",(T.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return L().isDragging},T.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!L().isDragging&&x()},T)),
style:_.rl({"transform-origin":function(){return(X()?mHe(L())*20:10)+"px center"}})},_.D(_.XV,{data:Y,
alt:"","aria-hidden":"true"}))},
else:function(){return _.D("div",{class:J,style:_.rl({"transform-origin":function(){return(X()?mHe(L())*12:6)+"px center"}})})}}))},"Pe");
dFM.idomCompat=!0;var W5=function(A,L,O,X,x,J){this.getProgressBarRect=A;this.updateProgressBarRect=L;this.getFilmstripYPosition=O;this.setFineScrubbingDraggedTime=X;this.updateFilmStripDraggedYDistance=x;this.resetFilmStripYOffset=J;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.Of(this.onThrottledSeek,100,this)},YOJ=function(A,L,O){return function(X){A.handleClick(X,L(),O())}},Vxn=function(A,L){return function(O){uTk(A,
O,TzB(O),L())}},DFJ=function(A,L){return function(O){uTk(A,O,{x:O.clientX,
y:O.clientY},L())}},ETM=function(A,L,O){return function(X){var x=L(),J=O();
eEQ(A,X,TzB(X),x,J,!0);if(J.onTouchMove)J.onTouchMove(x)}},txM=function(A,L,O){return function(X){nTz(A,X,L(),O())}},bmM=function(A,L){return function(){A.handleMouseLeave(L())}},hE$=function(A,L,O){return function(){var X=L(),x=O();
H5(A,X,x);if(x.onTouchEnd)x.onTouchEnd(X)}},SOX=function(A,L,O){return function(){var X=L(),x=O();
H5(A,X,x);if(x.onTouchEnd)x.onTouchEnd(X)}},qOQ=function(A,L,O){return function(){H5(A,L(),O())}},gT7=function(A){return function(L){if(L.keyCode===39||L.keyCode===38){var O,X;
(O=A())==null||(X=O.playerApi)==null||X.seekBy(5,void 0,void 0,72)}else if(L.keyCode===37||L.keyCode===40){var x,J;(x=A())==null||(J=x.playerApi)==null||J.seekBy(-5,void 0,void 0,71)}}},wTJ=function(A,L,O){return function(X){!O().disableScrubbing&&A.startPosition&&nTz(A,X,L(),O())}},pTM=function(A,L,O){return function(){if(!O().disableScrubbing)if(A.startPosition){var X=L(),x=O();
H5(A,L(),O());if(x.onTouchEnd)x.onTouchEnd(X)}else L().setState({isDragging:!1})}},TzB=function(A){A=A.touches[0];
return{x:A.clientX,y:A.clientY}},nTz=function(A,L,O,X){if(L.buttons!==1){if(L.movementX||L.movementY)L.preventDefault(),L.stopPropagation(),A=imB(A,O,L.clientX),O.setState({isHovering:!0,
hoveredTime:A*O.videoDuration})}else NzB(O),eEQ(A,L,{x:L.clientX,y:L.clientY},O,X,!1)};
W5.prototype.handleMouseLeave=function(A){NzB(A)};
var NzB=function(A){A.isHovering&&A.setState({isHovering:!1,hoveredTime:0})},uTk=function(A,L,O,X){A.startPosition||(A.startPosition=O,A.updateProgressBarRect(),A.controlsWereVisibleBeforeDragging=X.controlsVisible,L.stopPropagation(),_.h("medium_progress_bar_modification")||L.preventDefault())},eEQ=function(A,L,O,X,x,J){if(A.startPosition)if(J&&x.isInlinePlayback&&A.startPosition&&!A.hasDraggedTheMinimumDistance&&Math.abs(O.y-A.startPosition.y)>Math.abs(O.x-A.startPosition.x))H5(A,X,x);
else if(L.preventDefault(),L.stopPropagation(),X.videoDuration&&(A.startPosition&&!A.hasDraggedTheMinimumDistance&&(A.hasDraggedTheMinimumDistance=Math.abs(O.x-A.startPosition.x)>=1),x.enableFineScrubbing&&(A.startPosition&&(A.isDraggedForFineScrubbing=-(O.y-A.startPosition.y)>=60),!A.startPosition||O.y>=A.startPosition.y||(X.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:X8e(X.draggedTime,X,x.chapterData)}),A.setFineScrubbingDraggedTime(X.draggedTime),A.updateFilmStripDraggedYDistance(A.startPosition.y,
O.y,X))),A.hasDraggedTheMinimumDistance)){L=imB(A,X,O.x);if(A.isDraggedForFineScrubbing){var Y;(Y=X.playerApi)==null||Y.pauseVideo();X.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:X.draggedTime,filmStripXDistance:X8e(L*X.videoDuration,X,x.chapterData)})}x.enableFineScrubbing&&(!x.enableFineScrubbing||A.getFilmstripYPosition(X)<68)||X.setState({draggedTime:L*X.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:A.controlsWereVisibleBeforeDragging});var T;(T=
x.cancelAutohideControlsFn)==null||T.call(x)}},H5=function(A,L,O){var X=O.enableFineScrubbing&&L.fineScrubbingActiveState!=="off";
if(L.isDragging||X){X={isDragging:!1,playedTime:L.draggedTime,controlsVisible:A.controlsWereVisibleBeforeDragging};O.enableFineScrubbing&&L.fineScrubbingActiveState!=="on"&&(A.resetFilmStripYOffset(),X.fineScrubbingActiveState="off");var x=x===void 0?M$J:x;var J=_.Fn(0);if(J&&x){var Y=Math.round(L.playedTime*1E3),T=Math.round(L.draggedTime*1E3);Y>2147483647||T>2147483647||_.ak(J,x,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(Y),endMediaTimeMs:String(T),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}L.setState(X);
A.seekThrottle.fire(L.draggedTime,L,7);_.h("mweb_new_progress_bar_play_on_seek")&&A.resumeVideo(L);O.unmuteOnSeek&&(O=L.playerApi,L.volumeMuted&&(O==null||O.unMute()))}else L.setState({controlsVisible:!L.controlsVisible}),(J=O.triggerAutohideControlsAfterDelayFn)==null||J.call(O);A.startPosition=null;A.hasDraggedTheMinimumDistance=!1;A.isDraggedForFineScrubbing=!1;A.controlsWereVisibleBeforeDragging=!1};
W5.prototype.handleClick=function(A,L,O){this.updateProgressBarRect();A.stopPropagation();A=imB(this,L,A.clientX)*L.videoDuration;L.setState({playedTime:A});if(L.playerState!==2){var X;(X=O.triggerAutohideControlsAfterDelayFn)==null||X.call(O)}this.seekThrottle.fire(A,L,7)};
var imB=function(A,L,O){A=A.getProgressBarRect(L);return _.Z7(0,(O-A.left)/A.width,1)};
W5.prototype.resumeVideo=function(A){if(A.draggedTime<A.videoDuration){var L;(L=A.playerApi)==null||L.playVideo()}};
W5.prototype.onThrottledSeek=function(A,L,O){if(L=L.playerApi){var X;if((X=L.getVideoData())==null?0:X.isLive)X=this.getProgressState(L),A+=(X==null?void 0:X.seekableStart)||0;L.seekTo(A,void 0,void 0,void 0,O)}};
W5.prototype.getProgressState=function(A){var L=A==null?void 0:A.getPresentingPlayerType();return A==null?void 0:A.getProgressState(L)};var G0M,KyB,l4M,CWk,rDX,FyM,REk,QoS,mFB;G0M=_.xa(function(A){var L=A.progressBarProps;var O=A.config;var X=A.progressBarWidthPx;var x=A.chapterData;var J=dhJ(L,function(){return O().isShortsPage}),Y=function(){return!L().isHovering&&!O().isShortsPage};
A={};var T=_.qn("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(A.ytPlayerStoryboardHostMwebShorts=function(){return O().isShortsPage&&!1},A));
return _.D("yt-player-storyboard",null,_.D(_.e,{cond:function(){return L().isDragging||L().isHovering},
then:function(){return _.D(_.e,{cond:J,then:function(V){return _.D(_.e,{cond:Y,then:function(){return _.D("div",{class:T,"aria-hidden":"true"},_.D(rDX,{props:L,config:O,isBigboard:!0,chapterData:x}))},
else:function(){return _.D(KyB,{props:L,frame:V,config:O,progressBarWidthPx:X,chapterData:x})}})}})}}))},"Qe");
_.cDz=_.xa(function(A){var L=A.progressBarProps;var O=dhJ(L,A.isShortsPage);return _.D("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.D(_.e,{cond:function(){return L().isDragging||L().isHovering},
then:function(){return _.D(_.e,{cond:O,then:function(X){return _.D(l4M,{frame:X,props:L,isBigboard:!0})}})}}))},"Re");
KyB=_.xa(function(A){var L=A.props;var O=A.frame;var X=A.config;var x=A.progressBarWidthPx;A=A.chapterData;var J={};J=_.qn("ytPlayerStoryboardHost",(J.ytPlayerStoryboardHostMwebShorts=function(){return X().isShortsPage&&!1},J.ytPlayerStoryboardHostInlinePlayer=function(){return X().isInlinePlayer},J.ytPlayerStoryboardHostFadeIn=function(){return X().useFadeInAnimation},J));
return _.D("div",{class:J,"aria-hidden":"true",style:function(){var Y=L(),T=xhO(O()),V=x();Y=sbu(Y)/Y.videoDuration;var E=V*Y,n=T/2+6;T=V-(T/2+6);return"left: "+(E<=n?n/V*100:E>=T?T/V*100:Y*100)+"%"}},_.D(_.e,{cond:function(){var Y=L();
return!(X().isShortsPage&&Y.videoDuration<15)},
then:function(){return _.D(l4M,{frame:O,props:L,isBigboard:!1})}}),_.D(rDX,{props:L,
config:X,isBigboard:!1,chapterData:A}))},"Se");
l4M=_.xa(function(A){var L=A.frame;var O=A.props;var X=A.isBigboard;var x=function(){var T,V;return(V=(T=O().playerApi)==null?void 0:T.getVideoContentRect())!=null?V:{width:0,height:0}},J=function(){return xhO(L())},Y=function(){var T=L();
return T?T.height/T.rows:0};
A={};A=_.qn((A.ytPlayerStoryboardBigboardImageWrapper=X,A.ytPlayerStoryboardStoryboardImageWrapper=function(){return!X()},A));
return _.D("div",{class:A,style:function(){return"width: "+(X()?x().width:J())+"px; height: "+(X()?x().height:Y())+"px;"}},_.D(CWk,{frame:L,
storyboardWidth:J,storyboardHeight:Y,storyboardScale:function(){return(X()?x().width:J())/J()}}))},"Te");
CWk=_.xa(function(A){var L=A.frame;var O=A.storyboardWidth;var X=A.storyboardHeight;var x=A.storyboardScale;var J=function(){var Y=L().row,T=L().column,V=O(),E=X(),n=x();return{left:-T*V*n,top:-Y*E*n}};
return _.D("img",{src:function(){return L().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+J().left+"px; top: "+J().top+"px; width: "+L().width*x()+"px; height: "+L().height*x()+"px;"}})},"Ue");
rDX=_.xa(function(A){var L=A.props;var O=A.config;var X=A.isBigboard;var x=A.chapterData;A={};A=_.qn("ytPlayerStoryboardMetadata",(A.ytPlayerStoryboardMetadataBigboard=X,A));return _.D("div",{class:A},_.D(_.e,{cond:X,then:function(){return _.D(_.Xs,null,_.D(FyM,{props:L,config:O}),_.D(_.e,{cond:function(){a:{var J=L();var Y=O(),T=x(),V;if((Y==null?0:Y.activeChapter)&&((V=_.q(Y==null?void 0:Y.activeChapter,jO))==null?0:V.title))J=!0;else{Y=_.d(yOJ(T));for(Y=Y.next();!Y.done;Y=Y.next()){J=(Y=_.q(Y.value,
CvH))&&JvJ(J,Y);break a}J=!1}}return J},
then:function(){return _.D(REk,{props:L,config:O,isBigboard:!0,chapterData:x})}}))},
else:function(){return _.D(_.Xs,null,_.D(REk,{props:L,config:O,isBigboard:!0,chapterData:x}),_.D(FyM,{props:L,config:O}))}}))},"Ve");
FyM=_.xa(function(A){var L=A.props;var O=A.config;A={};A=_.qn("ytPlayerStoryboardTimestamp",(A.ytPlayerStoryboardTimestampShorts=function(){return O().isShortsPage},A.ytPlayerStoryboardTimestampIsHovering=function(){return L().isHovering||O().isShortsPage&&!0},A));
return _.D("div",{class:A},_.D(_.Xs,null,function(){return _.Ppe(sbu(L()))}))},"We");
REk=_.xa(function(A){var L=A.props;var O=A.config;var X=A.isBigboard;var x=A.chapterData;A={};X=_.qn("ytPlayerStoryboardTitle",(A.ytPlayerStoryboardTitleBigboard=X,A));return _.D("div",{class:X},_.D(_.e,{cond:function(){return!O().isShortsPage},
then:function(){return _.D(QoS,{props:L,activeChapter:function(){return O().activeChapter},
chapterData:x})}}))},"Xe");
QoS=_.xa(function(A){var L=A.props;var O=A.activeChapter;var X=A.chapterData;return _.D(_.Xs,null,_.D(_.g9,{each:function(){return yOJ(X())},
keyBy:"INDEX"},function(x){return _.D(_.Xs,null,_.D(_.e,{cond:function(){return _.q(x(),CvH)&&JvJ(L(),_.q(x(),CvH))},
then:function(){return _.D(mFB,{timedMarker:function(){return _.q(x(),CvH)}})}}))}),_.D(_.e,{cond:function(){var x;
return O()&&((x=_.q(O(),jO))==null?void 0:x.title)},
then:function(x){return _.D(_.Xg,{text:x,noPreWrap:!0})}}))},"Ye");
mFB=_.xa(function(A){var L=A.timedMarker;return _.D(_.Xs,null,_.D("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.D(_.Ky,{icon:function(){return L().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.D(_.Xg,{text:function(){return L().label},
noPreWrap:!0}))},"Ze");_.f4X=_.xa(function(A){var L=A.progressBarProps;var O=A.playheadData;var X=A.config;A=_.av("yt-progress-bar");var x=_.av("div"),J=_.av("div"),Y=_.d(_.uQ({width:0,left:0},void 0,"NcXsUb")),T=Y.next().value,V=Y.next().value,E=function(){J.value&&V(J.value.getBoundingClientRect())},n=function(){T().width<=0&&E();
return T()};
Al("resize",E);var t=new W5(n,function(){},function(){return 0},function(){},function(){},function(){}),b=function(){return L()};
Y=_.d(_.uQ(!1,void 0,"ZsF6Xc"));var S=Y.next().value,w=Y.next().value;Y=_.py(function(){w(!0);X().position===2?setTimeout(function(){E()},100):E()});
var l=_.py(function(){w(!1);bmM(t,b)()}),F=_.py(function(mM){X().doSeekOnClick&&YOJ(t,b,X)(mM);
return!1}),R=_.py(function(mM){Vxn(t,b)(mM);
return!1}),y=_.py(function(mM){DFJ(t,b)(mM);
return!1}),M=_.py(function(mM){ETM(t,b,X)(mM);
return!1}),H=_.py(function(mM){txM(t,b,X)(mM);
return!1}),z=_.py(function(){hE$(t,b,X)();
return!1}),a=_.py(function(){SOX(t,b,X)();
return!1}),xe=_.py(function(){qOQ(t,b,X)();
return!1}),ur=_.py(function(mM){gT7(b)(mM);
return!1});
Al("mousemove",wTJ(t,b,X));Al("mouseup",pTM(t,b,X));_.GD(function(){$H9(x.value);w(!1);E();pTM(t,b,X)()});
var eD={};eD=_.qn("ytPlayerProgressBarHost",function(){return X().className},(eD.ytPlayerProgressBarHostReadOnly=function(){return X().disableScrubbing},eD.ytPlayerProgressBarHostHidden=function(){return X().hideProgressBar&&!S()},eD.ytPlayerProgressBarHostLowerPlayer=function(){return X().position===0},eD.ytPlayerProgressBarHostBottomEdge=function(){return X().position===1},eD.ytPlayerProgressBarHostBottomInset=function(){return X().position===2},eD.ytPlayerProgressBarHostCustom=function(){return X().position===
3},eD));
var gu={},ir=_.qn("ytPlayerProgressBarBackground",(gu.ytPlayerProgressBarBackgroundHide=function(){return X().position===2&&!S()&&!L().isDragging},gu));
gu={};gu=_.qn("ytPlayerProgressBarDragContainer",(gu.ytPlayerProgressBarDragContainerBottomEdge=function(){return X().position===1},gu));
var SD={};SD=_.qn("ytPlayerProgressBarProgressBar",(SD.ytPlayerProgressBarProgressBarInset=function(){return X().position===2},SD.ytPlayerProgressBarProgressBarInsetMinimized=function(){return X().position===2&&!S()&&!L().isDragging},SD));
var HJ=function(){return Math.floor(Q3e(L())*100)};
return _.D("yt-progress-bar",{el:A,class:eD},_.D(_.e,{cond:function(){return X().position===2},
then:function(){return _.D("div",{class:ir})}}),_.D("div",{el:x,
"on:click":F,"on:touchstart":R,"on:touchmove":M,"on:mouseenter":Y,"on:mousedown":y,"on:mouseleave":l,"on:mousemove":H,"on:mouseup":a,"on:touchend":z,"on:touchcancel":xe,"on:keydown":ur,class:gu,role:"slider","aria-valuenow":HJ,"aria-valuetext":function(){return HJ()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return L().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.b3("SEEK_SLIDER")},_.D("div",{el:J,class:SD},_.D(JDZ,{progressBarProps:L,config:X,highContrast:function(){return!!X().isInlinePlayback}}),_.D(_.e,{cond:function(){return X().chapterData&&ZKJ(X().chapterData)},
then:function(){return _.D(xFJ,{progressState:L,multiMarkersPlayerBarRenderer:function(){return X().chapterData},
progressBarWidth:function(){return T().width}})},
else:function(){return _.D(PWS,{progressBarProps:L,config:X})}}),_.D(dFM,{progressBarProps:L,
playheadData:O,interpolateDotPosition:function(){return X().position!==2},
hidePlayhead:function(){return X().playheadDotBehavior===1&&!S()}}))),_.D(G0M,{progressBarProps:L,
config:function(){return{activeChapter:o0s(L(),X().chapterData),getProgressBarWidthPx:function(){return n().width},
isShortsPage:!!X().isShortsPage,isInlinePlayer:!!X().isInlinePlayback,useFadeInAnimation:!!X().isInlinePlayback}},
progressBarWidthPx:function(){return T().width},
chapterData:function(){return X().chapterData}}))},"$e");
_.f4X.idomCompat=!0;Object.assign({},_.j3u(),{setState:function(){},
domMeasurements:{},appApi:_.R4y(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var I4$;
_.yDJ=_.xa(function(){var A,L=(A=_.Hw(Yxu().playerApi))!=null?A:void 0;A=_.d(_.uQ(!1,void 0,"HLFBmb"));var O=A.next().value,X=A.next().value;A=_.d(_.uQ(!1,void 0,"lHH9bc"));var x=A.next().value,J=A.next().value;A=_.d(_.uQ(!1,void 0,"zsY7yd"));var Y=A.next().value,T=A.next().value;A=_.d(_.uQ(!1,void 0,"KeHQgc"));var V=A.next().value,E=A.next().value;A=_.d(_.uQ(0,void 0,"gLLCj"));var n=A.next().value,t=A.next().value;A=_.d(_.uQ(0,void 0,"s3RYkf"));var b=A.next().value,S=A.next().value;A=_.d(_.uQ(!1,void 0,
"Dn608e"));var w=A.next().value,l=A.next().value;A=_.d(_.uQ(0,void 0,"AnkH1b"));var F=A.next().value,R=A.next().value;A=_.d(_.uQ(0,void 0,"QYNL0b"));var y=A.next().value,M=A.next().value;A=_.d(_.uQ("",void 0,"Yzw45d"));var H=A.next().value,z=A.next().value;A=_.d(_.uQ(-1,void 0,"iiVI0c"));var a=A.next().value,xe=A.next().value,ur=_.E4(function(){var eD={controlsVisible:O(),isOverlayHidden:x(),shouldWaitToHideControls:Y(),isDragging:V(),isHovering:w(),videoDuration:F(),playedTime:y(),videoId:H(),draggedTime:b(),
hoveredTime:n(),playerState:a()};return Object.assign({},_.j3u(),eD,{domMeasurements:{},setState:function(gu){gu.controlsVisible!==void 0&&X(gu.controlsVisible);gu.isOverlayHidden!==void 0&&J(gu.isOverlayHidden);gu.shouldWaitToHideControls!==void 0&&T(gu.shouldWaitToHideControls);gu.isDragging!==void 0&&E(gu.isDragging);gu.isHovering!==void 0&&l(gu.isHovering);gu.draggedTime!==void 0&&S(gu.draggedTime);gu.hoveredTime!==void 0&&t(gu.hoveredTime);gu.videoDuration!==void 0&&R(gu.videoDuration);gu.playedTime!==
void 0&&M(gu.playedTime);gu.videoId!==void 0&&z(gu.videoId);gu.playerState!==void 0&&xe(gu.playerState)},
appApi:_.R4y(),playerApi:L})},void 0,"ZW7y9");
_.r9(function(){L==null||L.addEventListener("onVideoProgress",Bys(ur));L==null||L.addEventListener("onVideoDataChange",z4u(ur));L==null||L.addEventListener("onStateChange",W69(ur))});
_.rF(function(){if(L==null?0:L.isReady())L==null||L.removeEventListener("onVideoProgress",Bys(ur)),L==null||L.removeEventListener("onVideoDataChange",z4u(ur)),L==null||L.removeEventListener("onStateChange",W69(ur))});
return _.D("desktop-shorts-player-controls",null,_.D(I4$,{playerControlsProps:ur}))},"af");
I4$=_.xa(function(A){var L=A.playerControlsProps;return _.D("div",{class:"desktopShortsPlayerControlsWizHost"},_.D(_.f4X,{progressBarProps:L,config:function(){return{isShortsPage:!0,hideProgressBar:L().videoDuration<30&&L().playerState!==2&&!L().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"bf");_.ZmM=_.xa(function(A){function L(eD){eD!==0||t()?eD>50&&(t()||!S())?(b(!1),w(!0)):eD<=50&&(t()||S())&&(b(!1),w(!1)):b(!0)}
function O(eD,gu){var ir;return _.u(function(SD){if(SD.nextAddress==1)return SD.yield(_.bS(),2);ir=SD.yieldResult;gu&&ir?(ir.unMute(!0),eD&&(TeO(eD,ir.getVolume()),F(ir.getVolume()))):ir&&(ir.mute(!0),eD&&TeO(eD,0));_.qo(SD)})}
function X(eD){var gu,ir;return _.u(function(SD){if(SD.nextAddress==1)return SD.yield(_.bS(),2);gu=SD.yieldResult;ir=50;gu&&(ir=gu.getVolume(),gu.isMuted()?TeO(eD,0):TeO(eD,ir));F(ir);_.qo(SD)})}
var x=A.orientation;A=_.av("desktop-shorts-volume-controls");var J=_.av("button"),Y=_.kw("input"),T=_.d(_.uQ(!1,void 0,"F6vt0d")),V=T.next().value,E=T.next().value,n=_.d(_.uQ(!1,void 0,"S5PCqb"));T=n.next().value;n=n.next().value;var t=T,b=n;n=_.d(_.uQ(!0,void 0,"Tgy4e"));T=n.next().value;n=n.next().value;var S=T,w=n;T=_.d(_.uQ(50,void 0,"Dq3efd"));var l=T.next().value,F=T.next().value;T=_.E4(function(){var eD=t();return _.h("web_shorts_keyboard_enable_mute_shortcut")?eD?_.b3("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.b3("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):eD?_.b3("UNMUTE_VOLUME",void 0,"Unmute"):_.b3("MUTE_VOLUME",void 0,"Mute")},void 0,"zjOD8c");
n=_.E4(function(){var eD=t(),gu=S();return{sources:[{clientResource:{imageName:eD?_.h("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":gu?_.h("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.h("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"bIZ5A");
var R=_.E4(function(){var eD=l();return t()?eD+"% volume muted":eD+"% volume"},void 0,"kvkmyc"),y=_.E4(function(){return x()==="vertical_down"},void 0,"zaNsZ");
_.GD(function(){function eD(){E(!0)}
function gu(){E(!1)}
Y&&Y.value&&(Y.value.addEventListener("focus",eD),Y.value.addEventListener("focusout",gu),X(Y.value).then(function(){L(Number(Var(Y.value)))}));
J&&J.value&&(J.value.addEventListener("focus",eD),J.value.addEventListener("focusout",gu));_.rF(function(){var ir;Y==null||(ir=Y.value)==null||ir.removeEventListener("focus",eD);var SD;Y==null||(SD=Y.value)==null||SD.removeEventListener("focusout",gu);var HJ;J==null||(HJ=J.value)==null||HJ.removeEventListener("focus",eD);var mM;J==null||(mM=J.value)==null||mM.removeEventListener("focusout",gu)})});
var M=_.py(function(){if(Y&&Y.value){var eD=Number(Var(Y.value));uvP(eD);F(eD);Y.value.style.setProperty("--gradient-percent",eD+"%");L(eD)}return!1}),H=_.py(function(){E(!0)}),z=_.py(function(){Y&&Y.value&&(O(Y.value,t()),b(!t()));
return!1}),a={},xe={},ur={};
return _.D("desktop-shorts-volume-controls",{"on:pointerleave":_.py(function(){E(!1)}),
class:_.qn("ytdDesktopShortsVolumeControlsHost",(a.ytdDesktopShortsVolumeControlsHostVertical=y,a.ytdDesktopShortsVolumeControlsHostExpanded=V,a)),el:A},_.D(_.e,{cond:function(){return!y()},
then:function(){var eD={};return _.D("div",{class:_.qn("ytdDesktopShortsVolumeControlsBackgroundScrim",(eD.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=V,eD))})}}),_.D("div",{class:_.qn((xe.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=y,xe))},_.D("button",{"aria-label":T,
title:T,el:J,"on:click":z,"on:pointerenter":H,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},n?_.D(_.XV,{data:n,alt:T,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.D("div",{class:_.qn("ytdDesktopShortsVolumeControlsSliderContainer",(ur.ytdDesktopShortsVolumeControlsSliderContainerExpanded=V,ur.ytdDesktopShortsVolumeControlsSliderContainerVertical=y,ur.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=y,ur.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=
function(){return V()&&y()},ur))},_.D("input",{"aria-label":_.b3("VOLUME"),
title:_.b3("VOLUME"),el:Y,"on:input":M,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input",role:"slider","aria-valuenow":l,"aria-valuetext":R,"aria-valuemin":0,"aria-valuemax":100})))},"cf");_.jok=_.xa(function(A){var L=A.data;return _.D("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.D(_.aD,{command:function(){return L().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.D(_.e,{cond:function(){return L().iconName},
then:function(O){return _.D(_.Ky,{icon:O})}}),_.D("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return L().text}),_.D(_.e,{cond:function(){return L().showEndChevron},
then:function(){return _.D(_.Ky,{icon:"CHEVRON_RIGHT"})}})))},"df");var WyM=_.xa(function(A){var L=A.data;var O=A.overlayDensity;A={};return _.D("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.D(_.ID,{data:function(){return L().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(X){var x=X.data;
return _.D(_.I4,{data:function(){return(O==null?void 0:O())===1?Object.assign({},x(),{avatar:{avatarViewModel:Object.assign({},_.q(x().avatar,_.MV),{avatarImageSize:"AVATAR_SIZE_48"})}}):x()}})}}),_.D(_.ID,{data:function(){return L().avatarStackViewModel}},{avatarStackViewModel:function(X){return _.D(_.yh,{data:X.data})}}),_.D(_.Xg,{className:_.qn("ytReelChannelBarViewModelChannelName",(A.ytReelChannelBarViewModelChannelNameLarge=function(){return(O==null?void 0:O())===1},A)),
text:function(){return L().channelName},
linkInheritColor:!0,userInput:!0}),_.D("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.D(_.ID,{data:function(){return L().subscribeButtonViewModel}},{subscribeButtonViewModel:function(X){var x=X.data;
return _.D(_.fE,{data:function(){return(O==null?void 0:O())===1?Object.assign({},x(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},x().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):x()},
isOverlay:!1})},
buttonViewModel:_.gj})),_.D("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.D(_.ID,{data:function(){var X,x;return(x=_.q((X=L())==null?void 0:X.sponsorButtonViewModel,Mo7))==null?void 0:x.sponsorButton}},{buttonViewModel:function(X){return _.D(_.gj,{data:X.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"ef");var Hm$=_.xa(function(A){var L=function(){var X;return(A==null?void 0:(X=A.overlayDensity)==null?void 0:X.call(A))===1?22:16},O={};
return _.D("yt-reel-multi-format-link-view-model",{class:_.qn("ytReelMultiFormatLinkViewModelHost",(O.ytReelMultiFormatLinkViewModelHostTall=!0,O.ytReelMultiFormatLinkViewModelHostLarge=function(){var X;return((X=A.overlayDensity)==null?void 0:X.call(A))===1},O))},_.D(_.aD,{ariaLabel:function(){return A.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return A.data().command}},_.D("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.D(_.e,{cond:function(){return A.data().icon},
then:function(X){return _.D(_.XV,{data:X,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:L})}}),_.D(_.Xg,{text:function(){return A.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"ff");
Hm$.idomCompat=!0;var zEn=_.xa(function(A){var L=A.data;var O=A.overlayDensity;var X=_.av("yt-shorts-suggested-action-view-model");A=_.d(_.uQ(!1,void 0,"xDqzhe"));var x=A.next().value,J=A.next().value;A=_.d(_.uQ(!1,void 0,"LI9CFd"));var Y=A.next().value,T=A.next().value,V=function(){return L().isMultiLineSa},E=_.iS(Rtp,function(){var H,z;
return(z=(H=L().toggleableContent)==null?void 0:H.entityKey)!=null?z:""}),n=function(){var H,z,a;
return(a=L().toggleableContent)!=null&&a.entityKey?(z=(H=E())==null?void 0:H.value)!=null?z:!1:!1},t=function(){var H,z,a,xe,ur,eD,gu,ir,SD,HJ,mM;
return L().toggleableContent?n()?(H=L().toggleableContent)==null?void 0:H.toggledData:(z=L().toggleableContent)==null?void 0:z.untoggledData:{primaryText:(ir=(a=L().defaultContent)==null?void 0:a.primaryText)!=null?ir:L().text,secondaryText:(xe=L().defaultContent)==null?void 0:xe.secondaryText,onTapCommand:(SD=(ur=L().defaultContent)==null?void 0:ur.onTapCommand)!=null?SD:L().onTapCommand,icon:(HJ=(eD=L().defaultContent)==null?void 0:eD.icon)!=null?HJ:L().icon,image:(mM=(gu=L().defaultContent)==null?
void 0:gu.image)!=null?mM:L().image}},b=function(){return V()?L().trailingTapTarget:void 0},S=function(H,z){return function(){return x()?z:H}},w=function(){return{leadingSection:S("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(O==null?void 0:O())===1?S("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):S("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:S("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:S("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")}};
A={};A=_.qn((A.ytShortsSuggestedActionViewModelStaticHost=function(){return!V()},A.ytShortsSuggestedActionViewModelDynamicHost=V,A.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return V()&&Y()},A.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return V()&&!Y()},A));
_.GD(function(){if(V()){var H=0,z;if((z=L().animationParams)==null?0:z.shouldExpand){var a,xe;H=((xe=(a=L().animationParams)==null?void 0:a.expansionDelaySecs)!=null?xe:0)*1E3}var ur,eD=((ur=L().animationParams)==null?0:ur.shouldExpand)?setTimeout(function(){J(!0)},H):void 0,gu,ir;
H=((gu=L().animationParams)==null?0:gu.visibilityDelaySecs)?((ir=L().animationParams)==null?NaN:ir.visibilityDelaySecs)*1E3:0;var SD=setTimeout(function(){T(!0)},H);
_.rF(function(){eD&&clearTimeout(eD);clearTimeout(SD)})}});
var l=function(H){_.$a(H,Object.assign({},{form:{element:X.value}}))},F=_.py(function(){var H,z=(H=t())==null?void 0:H.onTapCommand;
z&&l(z)}),R=_.py(function(){var H,z;
if(H=(z=b())==null?void 0:z.onTapCommand)return l(H),!1}),y=_.rl({"vertical-align":"bottom",
"border-radius":function(){var H;return V()?((H=L().defaultContent)==null?0:H.isCircleImage)?"50%":"4px":"0px"},
width:function(){var H,z,a;return V()&&((H=L().defaultContent)==null?0:H.imageSize)?((a=(z=L().defaultContent)==null?void 0:z.imageSize)!=null?a:24)+"px":null},
height:function(){var H,z,a;return V()&&((H=L().defaultContent)==null?0:H.imageSize)?((a=(z=L().defaultContent)==null?void 0:z.imageSize)!=null?a:24)+"px":null}}),M={};
return _.D("yt-shorts-suggested-action-view-model",{class:A,el:X},_.D("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.D("button",{class:_.qn(function(){return V()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var H;
return(H=L().useFullRoundedBorder)!=null&&H?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!b()&&V()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":V()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var H;
return(H=L().disableFixedHeight)!=null&&H?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(M.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(O==null?void 0:O())===1},M)),
"on:click":F},_.D(_.cx,{model:{color:4}}),_.D("div",{class:_.qn(function(){return V()?w().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.D(_.e,{cond:function(){var H;
return(H=t())==null?void 0:H.image},
then:function(H){return _.D(_.XV,{data:H,alt:"",className:function(){return V()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:y})}}),_.D(_.e,{cond:function(){var H,z;
return(H=t())==null?void 0:(z=H.icon)==null?void 0:z.iconType},
then:function(H){return _.D(_.Ky,{icon:H,active:n,className:function(){return V()?x()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.D("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.D(_.e,{cond:function(){var H;
return(H=t())==null?void 0:H.primaryText},
then:function(H){return _.D("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.D(_.Xg,{text:H}))}}),_.D(_.e,{cond:function(){var H;
return(H=t())==null?void 0:H.secondaryText},
then:function(H){return _.D("div",{class:function(){return w().secondaryText()}},_.D(_.Xg,{text:H}))}}))),_.D(_.e,{cond:b,
then:function(H){return _.D("div",{class:function(){return w().trailingSection()},
"aria-label":function(){var z;return(z=H().a11yLabel)!=null?z:""},
"on:click":R,role:"button",tabindex:0},_.D(_.cx,{model:{color:4}}),_.D(_.Ky,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"gf");var Bzk=_.xa(function(A){var L=A.data;var O=A.overlayDensity;var X=_.av("yt-shorts-video-title-view-model");A=_.py(function(Y){if(_.Wm(_.j8(Y),X.value,["A".toString()]))return!1;(Y=L().truncatedTextOnTapCommand)&&_.$a(Y);return!1});
var x={},J={};return _.D("yt-shorts-video-title-view-model",{el:X,class:_.qn("ytShortsVideoTitleViewModelHost",(x.ytShortsVideoTitleViewModelHostClickable=function(){return!!L().truncatedTextOnTapCommand},x)),
"on:click":A},_.D("h2",{class:_.qn("ytShortsVideoTitleViewModelShortsVideoTitle",(J.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(O==null?void 0:O())===1},J))},_.D(_.Xg,{text:function(){return L().text},
linkInheritColor:!0,noEndpoints:!1,stopPropagation:!0,userInput:!0})))},"hf");_.Mx$=_.xa(function(A){var L=A.data;var O=A.overlayDensity;return _.D("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.D(_.ID,{data:function(){return L().metadataItems}},{badgeViewModel:function(X){return _.D("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.D(_.Y6,{data:X.data}))},
playerDisclosureViewModel:function(X){return _.D("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.D(_.jok,{data:X.data}))},
shortsSuggestedActionViewModel:function(X){return _.D("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.D(zEn,{data:X.data,overlayDensity:O}))},
reelChannelBarViewModel:function(X){return _.D("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.D(WyM,{data:X.data,overlayDensity:O}))},
reelMultiFormatLinkViewModel:function(X){return _.D("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.D(Hm$,{data:X.data,overlayDensity:O}))},
shortsVideoTitleViewModel:function(X){return _.D("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.D(Bzk,{data:X.data,overlayDensity:O}))},
reelSoundMetadataViewModel:function(X){return _.D("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.D(_.$QJ,{data:X.data,overlayDensity:O}))},
toggleButtonViewModel:function(X){return _.D("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.D(_.fO,{data:X.data}))}}))},"jf");var $FX=_.xa(function(A){var L=_.OY(A,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),O=L.size,X=L.onTap,x=L.disabled,J=L.tooltipText;return _.D("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.D(_.xf,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:O(),disabled:x(),tooltipText:J(),onTap:X}},
iconName:A.iconType}))},"kf"),a4M=_.xa(function(A){function L(n){n.stopPropagation();
n.code==="ArrowUp"?(n.preventDefault(),Evd(T.value)):n.code==="ArrowDown"?(n.preventDefault(),nve(T.value)):n.code==="KeyM"?Dhr():(n.code==="KeyK"||n.code==="Space")&&exr(V())}
var O=_.OY(A,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});A=O.previousButtonDisabled;var X=O.nextButtonDisabled,x=O.data,J=O.playabilityStatus,Y=O.previewThumbnail,T=_.av("ytd-shorts-miniplayer-overlay"),V=_.zJ(_.H2u),E;_.r9(function(){(E=_.Ro(T.value))&&E.addEventListener("keydown",L)});
_.rF(function(){var n;(n=E)==null||n.removeEventListener("keydown",L)});
O=function(){var n,t,b;return(n=x())==null?void 0:(t=n.reelPlayerOverlayRenderer)==null?void 0:(b=t.likeButton)==null?void 0:b.likeButtonRenderer};
return _.D("ytd-shorts-miniplayer-overlay",{el:T,class:"ytdShortsMiniplayerOverlayHost"},_.D("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.rl({"background-image":function(){var n=Y();return n?'url("'+_.TJ(n.thumbnails)+'")':""}})}),_.D("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.D("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.D($FX,{iconType:function(){var n=V();
return n===2||n===-1||n===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){exr(V())},
tooltipText:function(){var n=V();return n===1||n===3?_.b3("PLAYER_LABEL_PAUSE"):_.b3("PLAYER_LABEL_PLAY")}}),_.D(_.ZmM,{orientation:"horizontal_right"})),_.D("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.D($FX,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:A,onTap:function(){Evd(T.value)},
tooltipText:_.b3("PREVIOUS_VIDEO_LABEL")}),_.D($FX,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:X,onTap:function(){nve(T.value)},
tooltipText:_.b3("NEXT_VIDEO_LABEL")}),_.h("web_shorts_pip_like_button")?_.D("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.D(sBH,{buttonTooltipPosition:"left",data:O,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.D("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.D(_.e,{cond:function(){var n,t;return _.q((n=x())==null?void 0:(t=n.reelPlayerOverlayRenderer)==null?void 0:t.metapanel,
_.WGc)},
then:function(n){return _.D("div",{class:_.qn("ytdShortsMiniplayerOverlayInteractive")},_.D(_.Mx$,{data:n}))}})),_.D("div",{class:_.qn("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var n;return!((n=x())==null||!n.adsOverlay)||J()&&!YnP(J())}},_.D("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.D(_.yDJ,null)))),_.D(_.e,{cond:function(){var n=x(),t,b;
n=_.q(n==null?void 0:(t=n.adsOverlay)==null?void 0:(b=t.fulfillmentContent)==null?void 0:b.fulfilledLayout,JQN);return _.q(n==null?void 0:n.renderingContent,T_6)},
then:function(n){return _.D("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.D(L8V,{data:n}))}}))},"lf");var tad=_.xa(function(){var A=_.d(_.uQ(new _.bW(NaN,NaN),void 0,"HSMFk")),L=A.next().value,O=A.next().value;A=_.d(_.uQ(!1,void 0,"uaAxwf"));var X=A.next().value,x=A.next().value,J=_.d(_.uQ(!1,void 0,"nVSwef"));A=J.next().value;var Y=J.next().value,T=_.X5().resolve(_.z_).miniplayerPropSignalMap[0],V=T.data,E=T.shortsData,n=T.nextButtonDisabled,t=T.shortsPreviewThumbnail,b=T.previousButtonDisabled,S=T.externalPlaylistData;J=T.toastData;var w=T.playabilityStatus,l=T.isDisabled,F=T.playerVe,R=T.closeVe;
T=_.zJ(_.hC);_.$w("yt-pip-window-resized",function(z){O(z)});
_.$w("yt-activate-pip-miniplayer",function(){return _.u(function(z){Y(!0);_.qo(z)})});
var y=function(){var z;return!((z=S())==null||!z.contents)&&X()},M=function(){var z=L(),a=!!V(),xe=y();
z=z.clone();a&&(z.height-=76);xe&&(z.height-=285);return z},H=function(){x(!X())};
_.ND(function(){var z=F(),a=_.Fn(11),xe=_.Ch(11);a&&xe&&z&&(_.W4(a,xe,z),xe=R())&&(_.H4(a,z,[xe]),_.B4(a,[xe]))},"HPkp0c");
return _.D("ytd-pip-container",{class:"ytdPipContainerHost"},_.D(_.e,{cond:A,then:function(){return _.D(_.Lyk,{isDisabled:l,playabilityStatus:w,size:M})}}),_.D(_.e,{cond:V,
then:function(){return _.D(_.o3n,{data:V,expanded:X,onExpandClick:H,playlistData:S})}}),_.D(_.e,{cond:y,
then:function(){return _.D("div",{class:"ytdPipContainerPlaylistPanel"},_.D(_.XNc,{data:S,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.D(_.e,{cond:T,
then:function(){return _.D(a4M,{data:E,nextButtonDisabled:n,previousButtonDisabled:b,playabilityStatus:w,previewThumbnail:t})}}),_.D("div",{class:"ytdPipContainerToast"},_.D(_.OmX,{toastData:J})))},"mf");var zg=function(A,L){var O=this;this.pipController=A;this.JSC$19641_clientRoot=L;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=Gre();this.watchPipEnabled=_.h("web_watch_pip");this.shortsPipEnabled=_.h("web_shorts_pip");this.JSC$19641_watchWhileEnabled=_.h("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;_.Ge(_.Ai(),_.y7s,function(X){O.isSingleOptionSurveyActive=X});
this.JSC$19641_onPlayerPlayVideo=this.JSC$19641_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);_.Bh(_.zu.getInstance(),this.miniplayerServiceActionMap,this.JSC$19641_clientRoot);A.pictureInPictureSupported()&&_.lg("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},cPj,sn7,LKZ,Jgz,PsS,ff3;
zg.prototype.handleMediaSessionPipActivation=function(){var A=this,L;return _.u(function(O){_.rm().mediaSessionPipActivation=!0;L=_.X5().resolve(_.JI);return L.isOnWatch()&&A.watchPipEnabled?(_.rm().watchPipActivation=!0,_.k0M(A,L.data),O.jumpTo(0)):L.isOnShorts()&&A.shortsPipEnabled?(_.rm().shortsPipActivation=!0,_.UFM(A),O.jumpTo(0)):A.isMiniplayerActive()&&A.watchPipEnabled&&!A.watchWhileMode?O.yield(vTX(A),0):O.jumpTo(0)})};
var vTX=function(A){var L,O,X,x;return _.u(function(J){if(J.nextAddress==1)return L=!A.miniplayerToPipMode,O=A.playerElement,X=A.miniplayerData,x=A.watchResponse,J.yield(A.deactivate(),2);if(J.nextAddress!=3)return L?(_.rm().mediaSessionPipActivation=!0,_.rm().watchPipActivation=!0):_.rm().miniplayerButtonActivation=!0,J.yield(A.activate(O,X,x),3);A.miniplayerToPipMode=L;_.qo(J)})};
zg.prototype.onDownloadedVideoDeleted=function(A){var L,O=_.q((L=this.miniplayerData)==null?void 0:L.watchEndpoint,_.$O),X,x;O&&((X=this.watchResponse)==null?void 0:(x=X.playerResponse)==null?void 0:x.offlineState)!==void 0&&(L=O.videoId)&&A&&L===A&&this.close()};
zg.prototype.onShowMiniplayerCommand=function(A){var L=this,O,X,x,J,Y,T,V,E,n,t,b,S,w;return _.u(function(l){switch(l.nextAddress){case 1:return O=_.q(A,CPg),x=(X=O)==null?void 0:X.miniplayerCommand,J=_.q(x,_.$O),x&&J&&!L.active?l.yield(_.m0.getInstance(),2):l.return();case 2:return Y=l.yieldResult,l.yield((T=Y)==null?void 0:T.get("yt-miniplayer-shown-video-id"),3);case 3:V=l.yieldResult;E=J.videoId;if(!E||V===E)return l.return();n=_.X5().resolve(_.JI);if(n.isOnWatch())return _.Rv(Error("Fj")),l.return();
t={channelItem:{externalId:btoa(E)}};L.readyToResumeVe=_.tI(121253,void 0,void 0,t);_.rm().showMiniplayerCommandActivation=!0;return l.yield(_.If3(L,x,!0),4);case 4:return L.active?(_.B5(L,{readyToResumeVe:L.readyToResumeVe,continueWatching:!0,premiumBranding:!((b=O)==null||!b.showPremiumBranding)}),_.h("ytd_miniplayer_to_wiz")&&_.B5(L,{isReadyToResume:!0}),L.isReadyToResume=!0):_.B5(L,{continueWatching:!0,premiumBranding:!((S=O)==null||!S.showPremiumBranding)}),l.yield((w=Y)==null?void 0:w.set("yt-miniplayer-shown-video-id",
J.videoId),5);case 5:L.readyToResumeVe=void 0,_.qo(l)}})};
zg.prototype.init=function(A){this.miniplayerEl?_.Rv(new _.pe("MiniplayerService already initialized.")):this.miniplayerEl=A};
zg.prototype.isInitialized=function(){var A=!!this.miniplayerEl;A||_.Rv(new _.pe("MiniplayerService used before initialized."));return A};
_.k0M=function(A,L){if(A.isInitialized()){var O=_.Cd_(L.response,L.playerResponse),X=_.X5().resolve(_.JI).getPlayerFromWatch();_.rm().currentEndpoint=O.watchEndpoint||null;A.activate(X,O,L)}};
_.UFM=function(A){if(A.isInitialized()){var L=_.X5().resolve(_.JI).getPlayerFromShorts();A.activate(L)}};
cPj=function(A,L){var O;(O=!A.isInitialized())||(O=_.X5().resolve(_.JI).isOnWatch()&&A.watchPipMode,O=!(A.isMiniplayerActive()&&(_.rm().userActivation||_.rm().lockupActivation||O)));if(O)return!1;oTM(A,L)?_.jB(A):ff3(A,L);return A.watchPipMode?!_.X5().resolve(_.JI).isOnWatch():!0};
zg.prototype.isMiniplayerActive=function(){return this.active};
var oTM=function(A,L){var O;L=(O=_.q(L,_.$O))==null?void 0:O.videoId;var X,x;A=(x=_.q((X=A.miniplayerData)==null?void 0:X.watchEndpoint,_.$O))==null?void 0:x.videoId;return L!=null&&L===A};
zg.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.P4(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.dQ(this.miniplayerEl,"yt-navigate-home-action"))};
_.If3=function(A,L,O,X){O=O===void 0?!1:O;var x,J,Y;return _.u(function(T){switch(T.nextAddress){case 1:if(A.active){T.jumpTo(2);break}x=_.X5().resolve(_.JI);if(Y=(J=A.playerElement)!=null?J:x.getPlayerFromWatch()){T.jumpTo(3);break}return T.yield(_.X5().resolve(_.Dl),4);case 4:Y=x.getPlayerFromWatch();case 3:if(!Y){_.Rv(Error("Hj"));T.jumpTo(2);break}return T.yield(A.activate(Y,X),2);case 2:return A.active?T.yield(ff3(A,L,O),0):T.return()}})};
zg.prototype.activate=function(A,L,O){var X=this,x,J,Y,T,V,E,n,t,b;return _.u(function(S){switch(S.nextAddress){case 1:if(!X.isInitialized())return S.return();if(!A)return _.Rv(Error("Hj")),S.return();if(_.j4n()||X.isMiniplayerActive())var w=!0;else w=_.rm().watchPipActivation||_.rm().watchWhileActivation,_.X5().resolve(_.JI).isOnWatch()&&!w?(_.Rv(new _.pe("miniplayer activated on watch page")),w=!0):w=_.rm().watchWhileActivation?X.userDeactivatedWatchWhile||!!document.pictureInPictureElement||HtD():
!1;if(w)return ZPu(),S.return();x=_.rm().mediaSessionPipActivation;J=_.rm().shortsPipActivation;Y=_.rm().watchPipActivation;V=(T=_.rm().watchWhileActivation)||Y;E=Y||J;if(!X.pictureInPictureEnabled()||!E){S.jumpTo(2);break}return S.yield(Ag7(X,x),3);case 3:if(!S.yieldResult)return _.Rv(Error("Gj")),ZPu(),S.return();case 2:return X.setActive(!0),X.watchResponse=O,X.playerElement=A,X.updateMiniplayerData(L),S.yield(LKZ(X,A),4);case 4:if(!X.active)return _.Rv(new _.pe("miniplayer deactivated during activation")),
X.removePlayerListeners(),S.return();w=_.X5().resolve(_.$q);w.addEventListener("yt-navigate",_.tT(X,X.onPlaylistNavigate));w.addEventListener("yt-playlist-data-updated",_.tT(X,X.JSC$19641_onPlaylistDataUpdated));X.JSC$19641_onPlaylistDataUpdated();ZPu();X.JSC$19641_watchWhileEnabled&&_.O$Q(X,T);X.pictureInPictureEnabled()&&X.shortsPipEnabled&&(X.shortsPipMode=J,_.Ai().dispatch(Nnc(X.shortsPipMode)));X.pictureInPictureEnabled()&&X.watchPipEnabled&&(X.watchPipMode=Y,_.BOu(X.handleMediaSessionPipActivation));
X.player&&(n=X.player.getPlayerState(),t=n===1,_.Ai().dispatch(RKg(n)),_.YK(X.miniplayerEl,"yt-miniplayer-play-state-changed",[t]),_.rm().isVideoPlaying=t);_.YK(X.miniplayerEl,"yt-miniplayer-endpoint-changed");XqX(X);_.xYn(X);return X.shortsPipMode||X.watchPipMode?S.yield(_.u3(X.miniplayerEl,"yt-activate-pip-miniplayer"),6):_.h("ytd_miniplayer_to_wiz")?S.yield(_.u3(X.miniplayerEl,"yt-activate-miniplayer",[V]),6):S.yield(_.u3(X.miniplayerEl,"yt-activate-miniplayer-action",[A,V]),6);case 6:if(X.watchResponse&&
!_.h("miniplayer_copy_screen_on_activation_killswitch")){w=X.getScreenLayer();var l=_.Fn(0),F=SaP(0);l&&F&&(_.Qq(l,F,w),w===0&&bDd(void 0,0))}sn7(X);Jgz(X,!0);(b=X.getPlayerElement())==null||b.focusOnPlayer();_.qo(S)}})};
zg.prototype.updateMiniplayerData=function(A){this.miniplayerData=A;_.B5(this,{data:A})};
_.xYn=function(A){var L,O,X=((L=A.miniplayerData)==null?void 0:(O=L.miniplayerRenderer)==null?void 0:O.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";L=A.watchWhileMode||A.watchPipMode?X&&!_.X5().resolve(_.JI).isOnWatch():X;_.B5(A,{isDisabled:L});var x,J;O=_.q((x=A.miniplayerData)==null?void 0:(J=x.miniplayerRenderer)==null?void 0:J.minimizedEndpoint,_.mG);L&&O&&_.X5().resolve(_.RW).openSheet({openPopupActionCommand:{openPopupAction:O}},A.miniplayerEl)};
sn7=function(A){if(A.watchResponse&&!PsS(A)){var L,O=(L=A.watchResponse.playerResponse)==null?void 0:L.trackingParams;O&&(_.B5(A,{expandVe:_.tI(35989),closeVe:_.tI(34699),readyToResumeCloseVe:_.tI(131070),repositionVe:_.tI(226204),resizeVe:_.tI(226205)}),_.B5(A,{playerVe:_.lV(O)}))}};
LKZ=function(A,L){return _.u(function(O){if(O.nextAddress==1)return L.preparePlayer(),O.yield(L.getPlayerPromise(),2);A.player=O.yieldResult;A.player&&(A.player.addEventListener("onPlayVideo",A.JSC$19641_onPlayerPlayVideo),A.player.addEventListener("onCloseMiniplayer",A.onPlayerCloseMiniplayer),A.player.addEventListener("onExpandMiniplayer",A.onPlayerExpandMiniplayer),A.player.addEventListener("onStateChange",A.onPlayerStateChange));_.qo(O)})};
_.P=zg.prototype;_.P.JSC$19641_onPlayerPlayVideo=function(A){var L=A.sessionData&&"autonav"in A.sessionData,O;A.sessionData&&A.sessionData.itct&&(O=A.sessionData.itct);var X=A.watchEndpoint;L=X&&L?_.Oge(X,O):_.Oe(A.videoId,A.listId||void 0,O);A.sessionData&&_.oF(_.q(L.commandMetadata,_.LM).url,A.sessionData);ff3(this,L)};
_.P.onPlayerExpandMiniplayer=function(){_.jB(this)};
_.P.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.P.onPlayerStateChange=function(){if(this.player){var A=this.player.getPlayerState(),L=A===1;_.Ai().dispatch(RKg(A));_.Ai().dispatch(_.fRV(A));_.YK(this.miniplayerEl,"yt-miniplayer-play-state-changed",[L]);_.rm().isVideoPlaying=L;if(A===0){L=!_.Yq.getInstance().isAutoplaySetExplicitly();var O,X,x,J,Y,T,V=(O=this.watchResponse.response)==null?void 0:(X=O.contents)==null?void 0:(x=X.twoColumnWatchNextResults)==null?void 0:(J=x.autoplay)==null?void 0:(Y=J.autoplay)==null?void 0:(T=Y.autoplayExplicitChoiceDialogRenderer)==
null?void 0:T.confirmDialogRenderer;L&&V&&this.player.setAutonavState(1)}A===0&&this.watchWhileMode&&this.deactivate()}};
_.P.onPlaylistNavigate=function(A,L){var O=this,X,x,J,Y,T,V,E;return _.u(function(n){if(n.nextAddress==1){if(!_.q(L.endpoint,_.$O))return n.return();_.rm().currentEndpoint=L.endpoint;_.YK(O.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.X5().resolve(_.JI).isOnWatch()&&(O.watchWhileMode||O.watchPipMode))return n.return();A.stopPropagation();(J=(x=_.q((X=L.endpoint)==null?void 0:X.commandMetadata,_.LM))==null?void 0:x.url)&&L.tempData&&!_.lW.isEmpty(L.tempData)&&_.oF(J,L.tempData);Y={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};T=new yZL(function(){return O.getPlayerElement()},Y,{layer:O.getScreenLayer()});
V=function(t){T.processChunk({endpoint:L.endpoint,data:t})};
dYS(O);O.miniplayerFetchRequest=YTZ(O,L.endpoint,V);_.e4(n,2);return n.yield(O.miniplayerFetchRequest,4)}if(n.nextAddress!=2)return E=n.yieldResult,uqJ(O,E),_.zA(n,0);_.S4(n);_.qo(n)})};
_.P.JSC$19641_onPlaylistDataUpdated=function(){var A=_.X5().resolve(_.$q).getPlaylistData();this.hasPlaylistData=!!A;_.B5(this,{externalPlaylistData:A||{}})};
_.P.close=function(A){if(this.isInitialized())if(A){if(!((this.watchWhileMode||this.watchPipMode)&&_.X5().resolve(_.JI).isOnWatch()||this.shortsPipMode)){var L;(L=this.getPlayerElement())==null||L.stop()}this.deactivate()}else _.Aa().closeMiniplayer(this.miniplayerEl)};
_.P.deactivate=function(A){var L=this,O,X,x,J;return _.u(function(Y){if(Y.nextAddress==1){if(!L.isInitialized()||!L.active)return Y.return();L.setActive(!1);dYS(L);(O=!!A&&oTM(L,A))&&L.isSingleOptionSurveyActive&&_.dQ(L.miniplayerEl,"yt-show-watch-page-survey",[L.isSingleOptionSurveyActive]);return Y.yield(TXS(L),2)}if(Y.nextAddress!=3){Jgz(L,!1);L.isReadyToResume=!1;L.watchResponse=void 0;L.updateMiniplayerData(void 0);L.shortsPipMode&&(L.shortsPipMode=!1,_.Ai().dispatch(Nnc(L.shortsPipMode)),pXB(L.pipController),
(X=L.player)==null||X.setInternalSize(NaN,NaN));L.watchPipMode&&(L.watchPipMode=!1,pXB(L.pipController));(x=L.watchWhileMode)&&_.O$Q(L,!1);L.removePlayerListeners();var T=_.X5().resolve(_.$q);T.removeEventListener("yt-navigate",_.tT(L,L.onPlaylistNavigate));T.removeEventListener("yt-playlist-data-updated",_.tT(L,L.JSC$19641_onPlaylistDataUpdated));_.rm().currentEndpoint=null;_.YK(L.miniplayerEl,"yt-miniplayer-endpoint-changed");L.playerElement=null;ZPu();return L.shortsPipMode||L.watchPipMode?Y.jumpTo(3):
Y.yield(_.u3(L.miniplayerEl,_.h("ytd_miniplayer_to_wiz")?"yt-deactivate-miniplayer":"yt-deactivate-miniplayer-action",[O,x]),3)}(J=L.player)==null||J.setInternalSize(NaN,NaN);L.player=null;_.qo(Y)})};
var TXS=function(A){var L;return _.u(function(O){L=_.X5().resolve(_.JI);return A.shortsPipMode?O.yield(L.movePlayerToShorts(A.playerElement),0):O.yield(L.movePlayerToWatch(A.playerElement),0)})};
zg.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$19641_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
zg.prototype.setActive=function(A){this.active=A;this.isSingleOptionSurveyActive?_.dQ(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.dQ(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.Ai().dispatch(_.JY({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.O$Q=function(A,L){A.watchWhileMode=L;_.B5(A,{watchWhile:L})};
Jgz=function(A,L){if(!PsS(A))if(A.shortsPipMode||A.watchPipMode){var O;(O=A.player)==null||O.setDocumentPictureInPicture(L)}else{var X;(X=A.player)==null||X.setMinimized(L)}};
PsS=function(A){return A.watchWhileMode&&_.h("kevlar_watch_while_counterfactual")};
_.jB=function(A){var L;return _.u(function(O){switch(O.nextAddress){case 1:if(!A.isInitialized())return O.return();_.e4(O,2);return O.yield(A.miniplayerFetchRequest,4);case 4:_.zA(O,3);break;case 2:_.S4(O);case 3:A.watchResponse&&A.miniplayerData&&A.miniplayerData.watchEndpoint?(L={url:A.watchResponse.url,endpoint:A.miniplayerData.watchEndpoint,data:A.watchResponse,miniplayer:!0},_.P4(A.miniplayerEl,"yt-navigate-cache",L)):A.miniplayerData&&A.miniplayerData.watchEndpoint&&_.P4(A.miniplayerEl,"yt-navigate",
{endpoint:A.miniplayerData.watchEndpoint}),_.qo(O)}})};
ff3=function(A,L,O){var X,x,J,Y;return _.u(function(T){if(T.nextAddress==1){if(oTM(A,L))return T.return();_.rm().currentEndpoint=L;_.YK(A.miniplayerEl,"yt-miniplayer-endpoint-changed");_.YK(A.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.rm().isVideoPlaying=!1;X={clientParams:{miniplayer:!0,autoSaveToQueue:!O}};x=new yZL(function(){return A.getPlayerElement()},X,{layer:A.getScreenLayer(),
parentLayer:0},void 0,A.readyToResumeVe);J=function(V){var E,n,t=Object.assign({},(E=V.playerResponse)==null?void 0:(n=E.playerConfig)==null?void 0:n.playbackStartConfig,{startPaused:!0}),b;O&&((b=V.playerResponse)==null?0:b.playerConfig)&&(V.playerResponse.playerConfig.playbackStartConfig=t);x.processChunk({endpoint:L,data:V})};
dYS(A);A.miniplayerFetchRequest=YTZ(A,L,J);_.e4(T,2);return T.yield(A.miniplayerFetchRequest,4)}if(T.nextAddress!=2)return Y=T.yieldResult,uqJ(A,Y),_.zA(T,0);_.S4(T);_.qo(T)})};
zg.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var dYS=function(A){A.miniplayerFetchRequest&&(A.miniplayerFetchRequest.cancel&&A.miniplayerFetchRequest.cancel("Active request obsolete"),A.miniplayerFetchRequest=null)},YTZ=function(A,L,O){var X=_.CA.instance,x,J=(x=_.q(L.commandMetadata,_.LM))==null?void 0:x.url,Y;
x=!J||_.h("disable_miniplayer_tempdata")?{}:(Y=J_e(J))!=null?Y:{};return $D(X,L,x,window.location.href,"watch",function(T,V){O(V)},function(T){return T!==A.miniplayerFetchRequest})},uqJ=function(A,L){var O;
_.u(function(X){if(!L)return X.return();A.watchResponse=L;sn7(A);XqX(A);O=_.Cd_(L.response,L.playerResponse);if(A.isMiniplayerActive()){L.response&&(A.playerElement.watchNextData=L.response);var x=_.lW.getValueByKeys.apply(_.lW,[L].concat(_.le(kGL)));_.lW.getValueByKeys.apply(_.lW,[L].concat(_.le(Lpu)))&&x&&_.X5().resolve(_.$q).setAutoplayRenderer(x);if(x)if(_.h("kevlar_is_pupi_enabled")){var J,Y,T,V,E,n=((J=L.response)==null?0:(Y=J.playerOverlays)==null?0:(T=Y.playerOverlayRenderer)==null?0:(V=T.autonavToggle)==
null?0:(E=V.autoplaySwitchButtonRenderer)==null?0:E.enabled)?2:1;_.Yq.getInstance().setState(n,!1,!1)}else J=SSp()?2:1,(n=A.player)==null||n.setAutonavState(J);A.updateMiniplayerData(O);_.xYn(A)}_.qo(X)})},XqX=function(A){var L,O,X=(L=A.watchResponse)==null?void 0:(O=L.playerResponse)==null?void 0:O.playabilityStatus,x;
L=X==null?void 0:(x=X.miniplayer)==null?void 0:x.miniplayerRenderer;(L==null?void 0:L.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&L.minimizedEndpoint&&_.TZ(A.miniplayerEl,[L.minimizedEndpoint]);_.B5(A,{miniplayerRenderer:L,playabilityStatus:X})};
zg.prototype.openToast=function(A,L){_.B5(this,{toastData:{data:A,label:L}})};
_.B5=function(A,L){var O=A.miniplayerEl,X;for(X in L)O[X]=L[X];(0,A.miniplayerPropSignalMap[1])(L)};
zg.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var A;return this.playerElement?this.playerElement:(A=_.YJ(this.miniplayerEl).querySelector("#player-container"))==null?void 0:A.firstElementChild};
zg.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var Ag7=function(A,L){L=L===void 0?!1:L;var O,X,x,J,Y,T,V;return _.u(function(E){if(E.nextAddress==1){O=navigator.userActivation.isActive||L;if(!O||!A.pictureInPictureSupported())return E.return(!1);X=VVM(A);x=X.width;J=X.height;return E.yield(A.pipController.openWindow({width:x,height:J}),2)}Y=E.yieldResult;T=A.pipController.getWindow();if(!T||!Y)return E.return(!1);T.document.body.style.overflow="hidden";V=biD(T);iJ7(A.pipController,function(){DYB(A);V()});
return E.return(!0)})},VVM=function(A){var L=_.rm().shortsPipActivation,O,X;
A=L?.5625:(X=(O=A.player)==null?void 0:O.getVideoAspectRatio())!=null?X:16/9;O=Math.min(window.innerWidth,window.innerHeight)/2;L=L?0:76;return A>1?new _.bW(O,L+O/A):new _.bW(O*A,L+O)},DYB=function(A){var L;
_.u(function(O){L=_.X5().resolve(_.JI);return L.isOnWatch()&&A.watchPipMode||L.isOnShorts()&&A.shortsPipMode?O.yield(A.deactivate(),0):A.miniplayerToPipMode?O.yield(vTX(A),0):A.watchPipMode?O.yield(_.jB(A),0):O.jumpTo(0)})};
zg.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.v2.Object.defineProperties(zg.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
zg[dx]=[NBM,KW3];var eYQ="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(" "),
E8n="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(" "),n8X="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
tVS="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var b$7=null;var hYX={},STB=(hYX.initialized={priority:10,callback:function(A){var L=_.X5();L.addProvider({provide:ir3,useClass:rE$});L.addProvider({provide:_.NwM,useFactory:function(){return new NF3}});
L.addProvider({provide:fF,useValue:_.ms("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});L.addProvider({provide:GOn,useValue:5184E6});L.addProvider({provide:Uyn,useValue:_.Q7()});L.addProvider({provide:Jk7,useClass:wvL});L.addProvider({provide:aE,useClass:aE});L.addProvider({provide:_.Dl,useFactory:function(){return rNH.promise}});
L.addProvider({provide:_.GGH,useFactory:function(){return _.KPg.promise}});
L.addProvider({provide:oEs,useValue:function(){var V;return((V=_.d0())==null?void 0:V.getPlayer())||null}});
var O={};L.addProvider((O.provide=_.dL,O.useFactory=function(V,E){return function(){return KoD(V,E)}},O[dx]=[fF,
GOn],O));O={};L.addProvider((O.provide=_.t2,O.useClass=gVM,O[dx]=[fF,GOn],O));O={};L.addProvider((O.provide=_.Rx_,O.useClass=NJk,O[dx]=[_.t2],O));L.addProvider({provide:KF,useFactory:_.Ai});L.addProvider({provide:V7,useFactory:_.Ai});L.addProvider({provide:TBJ,useFactory:_.Ai});L.addProvider({provide:T2J,useFactory:_.Ai});L.addProvider({provide:_.al,useFactory:_.Ai});L.addProvider({provide:i6,useValue:_.tY});L.addProvider({provide:qBk,useClass:SPP});L.addProvider({provide:JsM,useClass:sdk});L.addProvider({provide:$Q,
useClass:$Q});L.addProvider({provide:Nv,useClass:Nv});L.addProvider({provide:rf,useClass:rf});L.addProvider({provide:G6,useClass:G6});L.addProvider({provide:Lg,useClass:Lg});L.addProvider({provide:GW,useClass:GW});L.addProvider({provide:gK,useClass:gK});L.addProvider({provide:TJn,useValue:HLz});L.addProvider({provide:_.Rr,useFactory:_.iV});L.addProvider({provide:EF,useFactory:_.qG});O={};L.addProvider((O.provide=bKJ,O.useFactory=function(V){return function(E){var n=n===void 0?{}:n;var t,b,S=(b=_.q((t=
E.endpoint)==null?void 0:t.commandMetadata,_.LM))==null?void 0:b.rootVe;if(S){var w,l;if(t=E.previousCsn||((l=_.q((w=E.endpoint)==null?void 0:w.commandMetadata,dBL))==null?void 0:l.parentCsn)){var F=F===void 0?{}:F;if(t!==_.Fn(F.layer)||S!==SaP(F.layer))iDM(t,F.cttAuthInfo,F.layer||0),bDd(t,F.layer||0),w=F.layer||0,_.QT(h1r(w===void 0?0:w),S);n.parentCsn=t}E.endpoint&&t?iPl(V,E.endpoint,n):_.h7(V,S,void 0,n);var R;((R=E.response)==null?0:R.trackingParams)&&V.graftServerVe(E.response.trackingParams);
var y;((y=E.playerResponse)==null?0:y.trackingParams)&&V.graftServerVe(E.playerResponse.trackingParams);var M;((M=E.reelWatchSequenceResponse)==null?0:M.trackingParams)&&V.graftServerVe(E.reelWatchSequenceResponse.trackingParams)}}},O[dx]=[_.Rr],O));
O={};L.addProvider((O.provide=DQS,O.useClass=VZk,O[dx]=[i6,_.al],O));O={};L.addProvider((O.provide=SB,O.useClass=SB,O[dx]=[_.Dl,_.al],O));O={};L.addProvider((O.provide=E5,O.useClass=E5,O[dx]=[V7,_.x$],O));L.addProvider({provide:_.hSS,useClass:K$M});O={};L.addProvider((O.provide=_.FC,O.useClass=gXZ,O[dx]=[_.hSS],O));L.addProvider({provide:_.RW,useClass:wL});L.addProvider({provide:_.zPZ,useClass:YBQ});L.addProvider({provide:_.Qy,useClass:q8});O={};L.addProvider((O.provide=_.TH,O.useClass=rkM,O[dx]=
[_.TH],O));L.addProvider({provide:_.ek,useClass:oyL});L.addProvider({provide:FY,useClass:FY});L.addProvider({provide:AJ,useClass:AJ});L.addProvider({provide:y8,useClass:y8});L.addProvider({provide:fg,useClass:fg});O={};L.addProvider((O.provide=SF,O.useClass=SF,O[dx]=[_.x$,_.Ia],O));L.addProvider({provide:$R,useClass:gL});O={};L.addProvider((O.provide=UG,O.useClass=UG,O[dx]=[_.RW,$R],O));_.h("web_enable_feedback_endpoint_resolver")&&(O={},L.addProvider((O.provide=Gh,O.useClass=Gh,O[dx]=[KF,r5],O)),
L.addProvider({provide:r5,useClass:geM}));_.h("web_enable_feedback_endpoint_resolver_batch_2")&&(O={},L.addProvider((O.provide=c0,O.useClass=c0,O[dx]=[KF],O)),O={},L.addProvider((O.provide=lL,O.useClass=lL,O[dx]=[r5],O)));O={};L.addProvider((O.provide=aK,O.useClass=aK,O[dx]=[_.Qy,$R],O));O={};L.addProvider((O.provide=H0,O.useClass=H0,O[dx]=[_.Qy],O));O={};L.addProvider((O.provide=kR,O.useClass=kR,O[dx]=[_.Ia,_.FC],O));O={};L.addProvider((O.provide=M$,O.useClass=M$,O[dx]=[_.Ia,_.Rr],O));L.addProvider({provide:qu,
useClass:qu});O={};L.addProvider((O.provide=ey,O.useClass=ey,O[dx]=[KF],O));L.addProvider({provide:Qm,useClass:Qm});L.addProvider({provide:R2,useClass:R2});O={};L.addProvider((O.provide=fw,O.useClass=fw,O[dx]=[KF],O));O={};L.addProvider((O.provide=I2,O.useClass=I2,O[dx]=[_.Ia,KF],O));O={};L.addProvider((O.provide=ym,O.useClass=ym,O[dx]=[KF],O));O={};L.addProvider((O.provide=Zj,O.useClass=Zj,O[dx]=[KF],O));O={};L.addProvider((O.provide=zh,O.useClass=zh,O[dx]=[_.FC],O));O={};L.addProvider((O.provide=
Nu,O.useClass=Nu,O[dx]=[_.Rr],O));O={};L.addProvider((O.provide=Cw,O.useClass=Cw,O[dx]=[hJ],O));O={};L.addProvider((O.provide=F$,O.useClass=F$,O[dx]=[hJ],O));L.addProvider({provide:GH,useClass:GH});L.addProvider({provide:l7,useClass:l7});L.addProvider({provide:i7,useClass:i7});O={};L.addProvider((O.provide=v0,O.useClass=v0,O[dx]=[_.FC,_.x$],O));L.addProvider({provide:mV,useClass:mV});O={};L.addProvider((O.provide=B0,O.useClass=B0,O[dx]=[_.Ia,_.FC],O));L.addProvider({provide:Zv,useClass:Zv});O={};
L.addProvider((O.provide=Vm,O.useClass=Vm,O[dx]=[KF,_.Ia,_.TH],O));O={};L.addProvider((O.provide=Yn,O.useClass=Yn,O[dx]=[_.Ia,_.x$],O));L.addProvider({provide:Ek6,useValue:Wau});L.addProvider({provide:SZg,useValue:u$u});L.addProvider({provide:u7,useClass:u7});O={};L.addProvider((O.provide=d7,O.useClass=d7,O[dx]=[KF],O));O={};L.addProvider((O.provide=Dj,O.useClass=Dj,O[dx]=[_.ek,_.x$],O));O={};L.addProvider((O.provide=CF,O.useClass=CF,O[dx]=[_.x$],O));L.addProvider({provide:N$,useFactory:function(){return new N$(_.Ai())}});
L.addProvider({provide:IAp,useFactory:_.QH.getInstance});O={};L.addProvider((O.provide=IK,O.useClass=IK,O[dx]=[fF,IAp,_.x$],O));L.addProvider({provide:RK,useClass:RK});L.addProvider({provide:q$,useClass:q$});L.addProvider({provide:w5,useClass:w5});L.addProvider({provide:_.g5,useClass:_.g5});L.addProvider({provide:HE,useClass:HE});O={};L.addProvider((O.provide=sF,O.useClass=sF,O[dx]=[V7],O));O={};L.addProvider((O.provide=JJ,O.useClass=JJ,O[dx]=[_.x$],O));_.h("web_enable_prefetching_videos_on_home")&&
(L.addProvider({provide:eB,useClass:eB}),L.addProvider({provide:Qs,useClass:Qs}));O={};L.addProvider((O.provide=WE,O.useClass=WE,O[dx]=[_.x$],O));L.addProvider({provide:pF,useClass:pF});O={};L.addProvider((O.provide=g7,O.useClass=g7,O[dx]=[_.Ia,_.x$],O));O={};L.addProvider((O.provide=iL,O.useClass=iL,O[dx]=[_.x$],O));L.addProvider({provide:mA,useClass:mA});L.addProvider({provide:OF,useClass:OF});O={};L.addProvider((O.provide=Lw,O.useClass=Lw,O[dx]=[V7,_.x$],O));L.addProvider({provide:X$,useClass:X$});
O={};L.addProvider((O.provide=Mu,O.useClass=Mu,O[dx]=[V7,_.x$,_.Ia],O));O={};L.addProvider((O.provide=$n,O.useClass=$n,O[dx]=[_.x$],O));O={};L.addProvider((O.provide=BE,O.useClass=BE,O[dx]=[_.x$,_.Ia],O));O={};L.addProvider((O.provide=PE,O.useClass=PE,O[dx]=[_.Dl],O));O={};L.addProvider((O.provide=xn,O.useClass=xn,O[dx]=[_.Dl],O));L.addProvider({provide:b7,useClass:b7});L.addProvider({provide:Sy,useClass:Sy});L.addProvider({provide:m3,useClass:m3});L.addProvider({provide:w7,useClass:w7});L.addProvider({provide:tJ,
useClass:tJ});L.addProvider({provide:jF,useClass:jF});L.addProvider({provide:nw,useClass:nw});_.h("kevlar_enable_mss_lazy_load")&&L.addProvider({provide:_.Ml,useClass:u0J});L.addProvider({provide:_.l6,useClass:ic});L.addProvider({provide:dm,useFactory:function(){return _.zu.getInstance()}});
L.addProvider({provide:YzQ,useFactory:Wop});L.addProvider({provide:hJ,useFactory:function(){return _.m0.getInstance()}});
L.addProvider({provide:hKJ,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});O={};L.addProvider((O.provide=_.tG,O.useClass=_.tG,O[dx]=[_.Dl,_.x$,_.Rr,YzQ,hJ,dm,hKJ,i6],O));L.addProvider({provide:_.gU,useClass:VL7});L.addProvider({provide:_.csB,useClass:le$});O={};L.addProvider((O.provide=W0,O.useClass=W0,O[dx]=[_.csB],O));O={};L.addProvider((O.provide=_.bc,O.useFactory=function(V){return V.upliftCompletionResolver.promise},O[dx]=[DQS],O));
O=_.fB("IS_SHELL_LOAD")?"aa":"eocs";var X=_.fB("IS_SHELL_LOAD")?3:2;_.kq().parkOrScheduleJob(function(){EXM()},X,O);
_.kq().parkOrScheduleJob(function(){_.X5().resolve(SB).start()},2,"eocs");
_.kq().parkOrScheduleJob(function(){uMX()},2,"eocs");
_.kq().parkOrScheduleJob(function(){_.X5().resolve(E5).start()},2,"eocs");
_.h("kevlar_debug_data_app_registration_ks")||p5u();L.addProvider({provide:_.m4,useValue:new YwN(A.root)});L.addProvider({provide:Wh,useValue:new fl_});L.addProvider({provide:_.t_L,useValue:new EyV(A.root)});L.addProvider({provide:_.f3,useValue:new nyg});L.addProvider({provide:_.Rl,useClass:Nq});L.addProvider({provide:NBM,useClass:pg});_.h("kevlar_network_sli_killswitch")||L.addProvider({provide:m0S,useValue:u3H});L.addProvider({provide:Cg,useFactory:ceO});_.h("web_bind_fetch")&&(O={},L.addProvider((O.provide=
gWJ,O.useFactory=CUe,O[dx]=[_.Ot(Cg)],O)));_.h("web_bind_parse")&&(O={},L.addProvider((O.provide=wfX,O.useFactory=FcO,O[dx]=[_.Ot(Cg)],O)));_.h("web_bind_window_request")&&(O={},L.addProvider((O.provide=pf7,O.useFactory=Rep,O[dx]=[_.Ot(Cg)],O)));_.h("web_bind_text_decoder")&&(O={},L.addProvider((O.provide=i_n,O.useFactory=Q_e,O[dx]=[_.Ot(Cg)],O)));O={};L.addProvider((O.provide=LlX,O.useFactory=E0p,O[dx]=[_.bc,KF,_.dL],O));O={};L.addProvider((O.provide=AcX,O.useClass=a2,O[dx]=[LlX],O));L.addProvider({provide:nVB,
useClass:V3M});L.addProvider({provide:kOQ,useClass:veQ});O=[].concat(_.le(Lu));_.h("web_continuation_response_processing")&&O.push(_.Mn);O.push(fbg);_.h("enable_share_panel_navigation_logging_fix_on_web")&&O.push(_.XBg);L.addProvider({provide:y1p,useValue:O});L.addProvider({provide:jbe,useClass:aeM});L.addProvider({provide:jP7,useClass:fDz});O={};L.addProvider((O.provide=fA9,O.useClass=rSL,O[dx]=[V7],O));_.c1.addLowPriorityJob(function(){u9D()});
O={};L.addProvider((O.provide=ehN,O.useFactory=function(V){return function(E){var n,t=(n=_.q(E.commandMetadata,_.LM))==null?void 0:n.url;if(!t)throw new _.pe("No URL for PBJ Command",E);t=tmP(t,{pbj:"1"});n=fQp(t,{})||{};n=Object.assign({},n,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.ms("STS").toString()});E=_.ne({command:JSON.stringify(E),session_token:_.ms("XSRF_TOKEN")});return V.fetch(t,{method:"POST",headers:n,body:E})}},O[dx]=[jP7],O));
O=[];O.push(L.resolve(kOQ));X={};X=(X.client_location=_.QH.getInstance(),X.consistency=_.gH9(),X.entities=L.resolve(JsM),X.response_received_commands=L.resolve(jbe),X.store=L.resolve(_.Rx_),X.tokens=L.resolve(kOQ),X);_.h("web_service_params_response_processor")&&(L.addProvider({provide:FJz,useFactory:function(){var V={};return V.CSI=fHO(),V.ECATCHER=mXO(),V}}),L.addProvider({provide:lA9,
useClass:R3n}),X.service_params=L.resolve(lA9));if(_.h("web_shorts_prefetch_service_enabled")){var x=new rcX(L.resolve(_.t2));X.shorts_prefetch=x}X.adblock_detection=L.resolve(fA9);L.addProvider({provide:_.H1,useClass:_.H1});x=L.resolve(TJn);var J=[];_.h("PremiumClientSharedConfig__enable_att_context_processor")&&(L.addProvider({provide:HfH,useClass:Zfg}),J.push(L.resolve(HfH)));if(_.h("owl_pl_await")){var Y={};L.addProvider((Y.provide=EWX,Y.useFactory=function(V){return new D0B(V)},Y[dx]=[_.H1],
Y));
J.push(L.resolve(EWX))}ljL(x,L.resolve(jP7),L.resolve(qBk),X,L.resolve(_.t2),O,J,L.resolve(AcX),L.resolve(nVB));L.addProvider({provide:_.Ia,useValue:_.UC.instance});_.h("start_client_gcf")&&L.addProvider({provide:ig,useValue:J9j()});L.addProvider({provide:tZS,useFactory:function(){return new tZS(_.X5().resolve(_.H1),_.m0.getInstance())}});
_.kq().parkOrScheduleJob(function(){bJM()},1,"eocs");
O={};L.addProvider((O.provide=hG,O.useClass=hG,O[dx]=[_.dL,_.Ia],O));L.addProvider({provide:_.RS7,useFactory:_.R5.getInstance});_.kq().parkOrScheduleJob(function(){_.X5().resolve(hG).refresh()},0,"eocs");
EP6(HLz.watchEndpointMap||{},x.reelWatchEndpointMap||{},A.injector.resolve(_.Ia));L.addProvider({provide:Cq,useValue:_.CA.instance});_.h("kevlar_signal_collection_killswitch")||(O={},L.addProvider((O.provide=s7B,O.useClass=s7B,O[dx]=[fF,EF],O)),_.kq().parkOrScheduleJob(function(){_.X5().resolve(s7B).record()},1,"eocs"));
_.h("web_debug_handler_registration_killswitch")||_.kq().parkOrScheduleJob(function(){gEu("DOWNLOAD_PES",jqJ);_.h("offline_client_state_export_ks")||gEu("OFFLINE_CLIENT_STATE",IfD)},0,"eocs");
_.h("kevlar_prevent_polymer_dynamic_font_load")&&_.kq().parkOrScheduleJob(function(){var V=[_.JD(vWS),_.JD(oWX)];V=_.d(V);for(var E=V.next();!E.done;E=V.next()){E=E.value;var n=document.createElement("link");_.An(n,E,"stylesheet");document.head.appendChild(n)}},1,"eocs");
O=A.injector.resolve(_.Ia);_.Wjn.instance=new _.Wjn(O);gAy(R0N(new jBc(O)));O={};A.injector.addProvider((O.provide=Ld,O.useFactory=function(V){(V=V==null?void 0:V.getCurrentPage())?V=V.visibilityObserver:(b$7||(b$7=K9u()),V=b$7);return V},O[dx]=[_.Ot(_.JI)],O.skipCache=!0,O));
L.addProvider({provide:_.z_,useClass:zg});L.addProvider({provide:iR,useClass:h2l});A.injector.addProvider({provide:Y6V,useValue:dk6});L.addProvider({provide:Ahu,useValue:Iwr});L.addProvider({provide:_.oy,useValue:kb9});A=L.addProvider;mQ$||(mQ$=new Q7X);A.call(L,{provide:_.N8,useValue:mQ$});L.addProvider({provide:_.Ly,useValue:_.ms("HTML_DIR")==="rtl"?"rtl":"ltr"});L.addProvider({provide:dyQ,useClass:hPM});L.addProvider({provide:_.ht,useClass:rL});_.X5().addProvider({provide:upX,useValue:_.h("enable_web_delhi_icons")?
E8n.concat(tVS):eYQ.concat(n8X)});L.addProvider({provide:_.Gg,useClass:_.Gg});L.addProvider({provide:_.$0n,useValue:new MgS});L.addProvider({provide:Jqn,useClass:XJk});L.addProvider({provide:pw,useClass:pw});L.addProvider({provide:r7,useClass:r7});A={};L.addProvider((A.provide=oK,A.useClass=oK,A[dx]=[_.Ia,_.FC],A));L.addProvider({provide:zH,useClass:zH});L.addProvider({provide:iQV,useClass:lSk});L.addProvider({provide:cE,useClass:cE});L.addProvider({provide:vAu,useValue:mm3});L.addProvider({provide:_.vv,
useClass:xy7});_.h("enable_payments_purchase_manager")&&L.addProvider({provide:$kj,useClass:z0N});L.addProvider({provide:U0X,useFactory:function(){return function(V){return _.k2z(V)}}});
L.addProvider({provide:_.MDM,useClass:$y$});A={};L.addProvider((A.provide=jy,A.useClass=jy,A[dx]=[_.MDM],A));L.addProvider({provide:Kw,useClass:Kw});L.addProvider({provide:hxg,useValue:kSu});L.addProvider({provide:KqJ,useValue:_.BBJ});L.addProvider({provide:FAu,useClass:Gnz});L.addProvider({provide:fSS,useValue:aMZ});A={};L.addProvider((A.provide=ISX,A.useClass=ykB,A[dx]=[fSS],A));A={};L.addProvider((A.provide=_.iY,A.useClass=kMS,A[dx]=[ISX],A));A={};L.addProvider((A.provide=_.c5,A.useClass=lc,A[dx]=
[_.al,_.Rl],A));if(_.h("web_explore_hub_on_hover")||_.h("web_client_explore_hub_on_hover"))A={},L.addProvider((A.provide=Q8,A.useClass=Q8,A[dx]=[_.Ia,dm],A));if(_.h("web_enable_renderer_logger")){var T=new SBX;V0D(function(){T.abort()});
L.addProvider({provide:r5r,useValue:new PJS(T.signal)})}L.addProvider({provide:WwN,useValue:Ijs});A={};L.addProvider((A.provide=GjS,A.useClass=Klk,A[dx]=[_.Ia],A))}},hYX);var qT$={},g8Z=(qT$.initialized={priority:10,callback:function(){if(!QP$){zkD();yes("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.Vr(_.Sm(yes,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.h("log_heartbeat_with_lifecycles")){var A={};J2.instance||(J2.instance=new J2);J2.instance.install((A.document_visible={callback:ZZu,priority:10},A.document_hidden={callback:ZZu,priority:10},A))}else _.L7(document,"visibilitychange",ZZu);QP$=!0}(A=_.Fn())&&A!=="UNDEFINED_CSN"&&nxy(A)}},qT$);var wqJ={},pqJ=(wqJ.initialized={callback:function(A){var L=_.tI(232091),O=A.injector.resolve(_.Rr);_.S9(O,L);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?hxu()&&_.gm(O,L):(A=A.injector.resolve(U0X)("refresh_detector"))&&(A.get("first_tab_load")?_.gm(O,L):A.set("first_tab_load","1"))}},wqJ);var i$$={},NXM=(i$$.initialized={priority:10,callback:rvp},i$$);var rgZ={},KKJ=(rgZ.initialized={priority:0,callback:function(){var A=new Xuu,L="other";_.SX?L="chrome":_.hW?L="firefox":_.fe?L="safari":Ut&&(L="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(O){A.increment(_.qO(),O,L)}).catch(function(){A.increment(_.qO(),!1,L)}):A.increment(_.qO(),!1,L)}},rgZ);var GXZ={},lgn=(GXZ.rendering={priority:8,callback:K5D},GXZ);var cgM={},Cs7=(cgM.rendering={priority:10,callback:Hiu},cgM.rendered={callback:W5e},cgM),FK7={},RYz=(FK7.rendering={callback:Hiu},FK7.rendered={callback:W5e},FK7);var QnM=!1,mYz={},fgX=(mYz.initialized={priority:10,callback:function(){QnM||(nOP({didPatch:function(A){A.el&&UXJ(A.el,A.props)},
didUnmount:function(A){aHD(A.el)}}),QnM=!0)}},mYz);var IgS=/^\/shorts\/?$/;_.QT("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(_.h("kevlar_enable_mss")){_.o$D(new Wfl);var ygz=!0,Z$k,M8;ygz=ygz===void 0?!1:ygz;Z$k=Z$k===void 0?!1:Z$k;M8=M8===void 0?{}:M8;var jnB=M8.cssRowKey||"",WKz=M8.combinedSignature||"";!jnB&&window&&window._F_cssRowKey&&(jnB=window._F_cssRowKey,!WKz&&window._F_combinedSignature&&(WKz=window._F_combinedSignature));if(jnB&&typeof window._F_installCss!=="function")throw Error("ud");var H$M=M8.loaderClass||_.kx,$E=Ics("base-js"),zYk,BXJ=ZHO("",$E);zYk=_.gw(BXJ);var a5=new H$M(zYk,jnB,WKz,ygz,Z$k),MVM=
M8.useCors||$E&&$E.hasAttribute("crossorigin"),$YM=M8.corsMode||$E&&$E.getAttribute("crossorigin");MVM&&(a5.useCors_=MVM);$YM&&(a5.corsMode_=$YM);M8.urlMaxLength&&(a5.urlMaxLength=M8.urlMaxLength);M8.fetchPriority&&(a5.fetchPriority=M8.fetchPriority);var agX=ls();agX.JSC$11075_loader_=a5;agX.setBatchModeEnabled(!0)}
(function(){var A=document.querySelector("ytd-app");if(!A)throw Error("Ij");A=new Fb({root:A,injector:_.X5()});A.install(g8Z);var L={};A.install((L.initialized={priority:10,callback:hvu},L));_.h("wp_lat_b")&&(L={},A.install((L.initialized={priority:10,callback:function(){Kcp()}},L)));
L={};A.install((L.rendered={priority:0,callback:nZp},L));L={};A.install((L.rendered={priority:0,callback:function(){_.c1.addLowPriorityJob(function(){_.SuJ>1&&(Ydu(),ev9())},4E4)}},L));
A.install(pzM);A.install(pqJ);A.install(fgX);uUy();A.install(CeZ);A.install(bL$);A.install(g3Z);A.install(vVX);A.install(XXM);A.install(lMZ);A.install(STB);_.h("kevlar_enable_mss_lazy_load")&&A.install(NXM);A.install(SJX);A.install(KKJ);if(!_.fB("IS_SHELL_LOAD")||_.h("kevlar_fetch_initial_data_promise_client")||_.h("sw_nav_preload_pbj")){var O=_.eh(window.location.href);L=O&&O==="/watch";O=O&&O.match(IgS);L?A.install(RYz):O?A.install(lgn):A.install(Cs7)}else A.install(E3J);A.install(NpM);_.h("web_enable_prefetching_videos_on_home")&&
A.install(mo7);_.h("start_client_gcf")&&A.install(CaZ);A.install(M3J);(new xDn).increment("INSTALLED");A.install(Ro$);A.install(V4Q);A.transition("initialized");Sn_()})();
_.D9=[[["YW8xYno1dGo1bXBraW5kI3g=","YWYzcm1oNHZ2YWx1ZSNlNTMx"],"RUNPTkRTI2ZvaTh0Nm1yZDVnb0FEX1BMQUNFTUVOVF9LSU5EX01JTExJUw=="]];_.VH=["a2E0YWN4Z2xvYmFsQ2FsbGJhY2tzI3lwd3oxNg==","cm1hbGl0eURldGVjdGVkIzJiYzFhYmdyanAxdW9uQWJubw==","bkFkU2tpcCN3ZzVsNmlmMTFpMWdv","d19wbGF5ZXJfcmVzcG9uc2UjNmo3dnB0dHY1bzFwcmE=","ZXJBZHMjbnRpYjJhZzBnNmtycGxheQ=="];_.X6="a2E0YWN4Z2xvYmFsQ2FsbGJhY2tzI3lwd3oxNg== cm1hbGl0eURldGVjdGVkIzJiYzFhYmdyanAxdW9uQWJubw== bkFkU2tpcCN3ZzVsNmlmMTFpMWdv d19wbGF5ZXJfcmVzcG9uc2UjNmo3dnB0dHY1bzFwcmE= a3MjMXN2cHhyeWZyMXd3ZWJfcGxheWxpc3RfcXVldWVfbXVsdGlwbGVfc2tpcHNf Yl9zYV9lZiMxMDc0emEza2luM2xh ZXJBZHMjbnRpYjJhZzBnNmtycGxheQ==".split(" ");
_._ModuleManager_initialize=function(A,L){if(!_.K$){if(!_.GX)return;_.o$D(_.GX())}_.K$.setAllModuleInfoString(A,L)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5:2,3/sy6/sy7/sy8/sy9/sya/syb/kevlar_main_module:1,4,5,6,7,8,9/syd:2/syc:5,a,d/sye/syf:6/syg/h8y2qb:4,e,f,g,h/syh/JzFVk:d,g,h,j/syi:8/xwEKAe:3,9,f,h,l/syj:e/syk:1,b,e,f,j,l/syl:o/nmfa2d:h,n,p/sym:7,o/syn:g,h,p,r/CF909:n,s/Tm0L3c:s/L3n37:g,h,n,r/iuT5Oc',['sy2','sy3','sy8','syd','sya','sy5','syi','syh','sye','syc','syb','sy1','syk','sy7','sy6','sym','syl','syg','syf','syj','syn','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
_.o5=function(A,L,O,X,x){var J={};L&&(J[L]=O);X?J.errorType=X:x&&(J.errorReason=x);_.lg(A,J);_.ch()};
_.AP=function(A){var L=_.kq();return _.dpu(L,A,1)};
_.RJ({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 A=this.query;A&&(this.full||A[0]==="("||(A="("+A+")"),this._mq=window.matchMedia(A),this._add(),this.queryHandler(this._mq))},
queryHandler:function(A){this._setQueryMatches(A.matches)}});var seS;var J07;var PQB=function(){};
_.P=PQB.prototype;_.P.addOwnKeyBinding=function(){};
_.P.removeOwnKeyBindings=function(){};
_.P.keyboardEventMatchesKeys=function(){};
_.P._collectKeyBindings=function(){};
_.P._prepKeyBindings=function(){};
_.P._addKeyBinding=function(){};
_.P._resetKeyEventListeners=function(){};
_.P._listenKeyEventListeners=function(){};
_.P._unlistenKeyEventListeners=function(){};
_.P._onKeyBindingEvent=function(){};
_.P._triggerKeyHandler=function(){};
_.P._tapHandler=function(){};
_.P._focusChanged=function(){};
_.P._detectKeyboardFocus=function(){};
_.P._userActivate=function(){};
_.P._upHandler=function(){};
_.P._spaceKeyDownHandler=function(){};
_.P._spaceKeyUpHandler=function(){};
_.P._asyncClick=function(){};
_.P._pressedChanged=function(){};
_.P._ariaActiveAttributeChanged=function(){};
_.P._activeChanged=function(){};
_.P._controlStateChanged=function(){};
_.P._changedButtonState=function(){};
_.P._focusBlurHandler=function(){};
_.P._disabledChanged=function(){};
_.P._changedControlState=function(){};
_.P._downHandler=function(){};
_.P.ensureRipple=function(){};
_.P.getRipple=function(){};
_.P.hasRipple=function(){};
_.P._noinkChanged=function(){};
_.P._focusedChanged=function(){};
_.P._createRipple=function(){};
_.P.registered=function(){};
_.P._invalidChanged=function(){};
_.P.hasValidator=function(){};
_.P.validate=function(){};
_.P._getValidity=function(){};
_.P._requiredChanged=function(){};
_.P._valueChanged=function(){};
_.P._checkedChanged=function(){};
_.P._buttonStateChanged=function(){};
_.P._setPressed=function(){};
_.P._setPointerDown=function(){};
_.P._setReceivedFocusFromKeyboard=function(){};
_.P._setFocused=function(){};
PQB=_.RJ({is:"tp-yt-paper-radio-button",_template:function(){if(J07!==void 0)return J07;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;seS===void 0&&(seS=document.createElement("template"));var X=seS;O.call(L,X.content.cloneNode(!0),A.content.firstChild);return J07=A},
behaviors:[_.l7J],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(){_.kd(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var A=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),L=Math.floor(3*A);L%2!==A%2&&L++;this.updateStyles({"--paper-radio-button-ink-size":L+"px"})}})}});var dDn;var Y47;_.RJ({_template:function(){if(Y47!==void 0)return Y47;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;dDn===void 0&&(dDn=document.createElement("template"));var X=dDn;O.call(L,X.content.cloneNode(!0),A.content.firstChild);return Y47=A},
is:"tp-yt-paper-radio-group",behaviors:[_.Huj],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(A){var L=this._valueToItem(A);if(!L||!L.hasAttribute("disabled")){if(this.selected){L=this._valueToItem(this.selected);if(this.selected==A)if(this.allowEmptySelection)A="";else{L&&(L.checked=!0);return}L&&
(L.checked=!1)}_.kJ.select.apply(this,[A]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(A){this._focusPrevious();A.preventDefault();this._activateFocusedItem()},
_onDownKey:function(A){this._focusNext();A.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(A){_.WN3._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(A){_.WN3._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.kJ._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.Ih._resetTabindices.apply(this,arguments);this.items.forEach(function(A){A.removeAttribute("aria-selected")},this)}});var ux7;_.y3("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var Lk=function(){return _.G.apply(this,arguments)||this};
_.g(Lk,_.G);_.P=Lk.prototype;_.P.computeHasPrimaryIcon=function(A){return!(!A.icon&&!A.thumbnail)};
_.P.computeHasSecondary=function(A){return!(!A.secondaryIcon&&!A.secondaryNotificationText)};
_.P.computeHideSecondaryString=function(A){return!_.h("disable_hide_empty_secondary_string")&&!A.secondaryNotificationText};
_.P.computeCompactLinkStyle=function(A){return A?A.toLowerCase().replace(/_/g,"-"):""};
_.P.computeHasFitHeight=function(A){return A==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.P.isActiveEndpoint=function(A){return(A=this.get("commandMetadata.webCommandMetadata.url",A))?_.eh(window.location.href)!=="/account_transfer_channel"&&_.eh(window.location.href)!=="/gaia_link"&&_.eh(window.location.href)!=="/channel_switcher"||A!=="/account"?_.eh(window.location.href)===A:!0:!1};
_.P.onTap=function(){var A;((A=this.data)==null?0:A.serviceEndpoint)&&_.TZ(this.hostElement,[this.data.serviceEndpoint])};
Lk.prototype.onTap=Lk.prototype.onTap;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Lk.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Lk.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.Z("design:type",Boolean)],Lk.prototype,"active",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.Z("design:type",String)],Lk.prototype,"compactLinkStyle",void 0);
_.I([_.K({computed:"computeIcon_(data.icon)"}),_.Z("design:type",Object)],Lk.prototype,"icon",void 0);_.I([_.K({computed:"computeIcon_(data.secondaryIcon)"}),_.Z("design:type",Object)],Lk.prototype,"secondaryIcon",void 0);_.I([_.K({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],Lk.prototype,"hasSecondary",void 0);_.I([_.K({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],Lk.prototype,"hideSecondaryString",void 0);
_.I([_.by("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Lk.prototype,"onTap",null);_.I([_.Q({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],Lk);
_.m(Lk,"ytd-compact-link-renderer",function(){if(ux7!==void 0)return ux7;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return ux7=A},{mode:1});var TFB;_.y3("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var O3=function(){var A=_.G.apply(this,arguments)||this;A.role="link";A.tabindex="0";A.actionMap=_.h("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 A};
_.g(O3,_.G);_.P=O3.prototype;_.P.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.C3()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.P.getCurrentTheme=function(){return _.FZ()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.C3()};
_.P.onThemeSelected=function(A,L){var O=A||L?A:_.cy(),X=(O&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!O&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.h6r(_.eh(window.location.href));_.gQ(0,165,A);_.gQ(0,174,L);this.prefs.save();X&&_.dQ(this.hostElement,"yt-dark-mode-toggled-action",[O]);_.dQ(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.P.onTap=function(){this.data.serviceEndpoint&&_.TZ(this.hostElement,[this.data.serviceEndpoint])};
_.P.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.P.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.P.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
O3.prototype.onTap=O3.prototype.onTap;O3.prototype.dataChanged=O3.prototype.dataChanged;_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],O3.prototype,"actionHandlerBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],O3.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.XE),_.Z("design:type",Object)],O3.prototype,"paperItemBehaviors",void 0);_.I([_.K(),_.Z("design:type",Object)],O3.prototype,"data",void 0);_.I([_.K({value:function(){return _.qG()}}),
_.Z("design:type",_.Ta)],O3.prototype,"prefs",void 0);_.I([_.K(),_.Z("design:type",Object)],O3.prototype,"label",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],O3.prototype,"role",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],O3.prototype,"tabindex",void 0);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],O3.prototype,"dataChanged",null);
_.I([_.by("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],O3.prototype,"onTap",null);_.I([_.Q({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],O3);
_.m(O3,"ytd-toggle-theme-compact-link-renderer",function(){if(TFB!==void 0)return TFB;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return TFB=A},{mode:1});
}catch(e){_._DumpException(e)}
try{
var DDX,eUZ;_.Xm=function(A){return!!A.getOptions("captions")};
_.VIM=function(A){return(A=A.getOption("captions","track"))?!!A.displayName:!1};
_.xC=function(A,L){_.QZ(L,A,function(){return DDX[L]},function(O){DDX[L]=O;
if(!_.h("mweb_player_ve_show_ks")){var X=_.Fn(0);X&&O&&_.zZ(X,O)}})};
_.s3=function(A){(A=DDX[A])&&_.gm(_.iV(),A)};
DDX={};var ENJ;/*

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
*/
_.RJ({_template:function(){if(ENJ!==void 0)return ENJ;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;eUZ===void 0&&(eUZ=document.createElement("template"));var X=eUZ;O.call(L,X.content.cloneNode(!0),A.content.firstChild);return ENJ=A},
is:"tp-yt-paper-checkbox",behaviors:[_.l7J],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.kd(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var A=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),L="px",O=A.match(/[A-Za-z]+$/);O!==null&&(L=O[0]);A=parseFloat(A);O=8/3*A;L==="px"&&(O=Math.floor(O),O%2!==A%2&&O++);this.updateStyles({"--paper-checkbox-ink-size":O+
L})}})},
_computeCheckboxClass:function(A,L){var O="";A&&(O+="checked ");L&&(O+="invalid");return O},
_computeCheckmarkClass:function(A){return A?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.Kz6._createRipple.call(this)}});var nNX=new _.PF("radioButtonSurveyOptionRenderer"),tIJ=new _.PF("checkboxSurveyOptionRenderer");var brS;var hUQ;var S47=0,JP=function(){var A=_.G.call(this)||this;A.selected=!1;A.isOverlay=!1;A.inputId="toggle-option-"+S47;S47++;return A};
_.g(JP,_.G);JP.prototype.onTap=function(){_.P4(this.hostElement,"ytd-toggle-option-clicked")};
_.I([_.K(),_.Z("design:type",String)],JP.prototype,"label",void 0);_.I([_.K(),_.Z("design:type",String)],JP.prototype,"inputId",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],JP.prototype,"selected",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],JP.prototype,"isOverlay",void 0);_.I([_.Q({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.Z("design:paramtypes",[])],JP);
_.m(JP,"ytd-toggle-option-renderer",function(){if(hUQ!==void 0)return hUQ;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return hUQ=A},{mode:1});var Po=function(){var A=_.G.apply(this,arguments)||this;A.isToggleOption=!1;A.isOverlay=!1;return A};
_.g(Po,_.G);Po.prototype.onTap=function(A){A.preventDefault();this.data&&(A=!this.data.checked,this.set("data.checked",A),_.P4(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:A,value:this.data.value}))};
_.v2.Object.defineProperties(Po.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
Po.prototype.onTap=Po.prototype.onTap;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Po.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Po.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],Po.prototype,"isToggleOption",void 0);_.I([_.K(),_.Z("design:type",Object)],Po.prototype,"isOverlay",void 0);_.I([_.r("data.responseText"),_.Z("design:type",String),_.Z("design:paramtypes",[])],Po.prototype,"label",null);
_.I([_.by("ytd-toggle-option-clicked"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],Po.prototype,"onTap",null);_.I([_.Q({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],Po);
_.m(Po,"ytd-checkbox-survey-option-renderer",function(){if(brS!==void 0)return brS;var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return brS=A},{mode:1});var q4B;var gNB;var da=function(){var A=_.G.apply(this,arguments)||this;A.checked=!1;A.isToggleOption=!1;return A};
_.g(da,_.G);da.prototype.onTap=function(){this.data&&(this.checked?_.dQ(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.dQ(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
da.prototype.onTap=da.prototype.onTap;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],da.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],da.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],da.prototype,"checked",void 0);_.I([_.K(),_.Z("design:type",Object)],da.prototype,"isToggleOption",void 0);_.I([_.by("ytd-toggle-option-clicked"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],da.prototype,"onTap",null);
_.I([_.Q({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],da);
_.m(da,"ytd-radio-button-survey-option-renderer",function(){if(gNB!==void 0)return gNB;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return gNB=A},{mode:1});var YC=function(){var A=_.G.apply(this,arguments)||this;A.disableAnimation=!1;A.isToggleOption=!0;A.followUpSurveyCommand=null;A.selectedRatingEndpoint=null;A.isSlimlineSurveyFollowUp=!1;A.isShortsStyle=!1;A.styleOverrideAttribute=!0;A.isDarkMode=!1;A.isSubmitted=!1;A.roundedContainer=!0;A.improveShortsResponseRate=_.h("web_improve_shorts_response_rate");A.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 A};
_.g(YC,_.G);_.P=YC.prototype;
_.P.configureRendererStamper=function(){return{"data.inlineContent":{id:"inline-survey-compact-video-renderer",mapping:{compactVideoRenderer:{component:"ytd-compact-video-renderer",properties:{isShortsStyle:"[[isShortsStyle]]"}}}},"data.response.expandableSurveyResponseRenderer.options":{id:"rating-survey",mapping:{ratingSurveyRenderer:{component:"ytd-rating-survey-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]",
showResponseRangeText:"[[isShortsStyle]]"}}}},"followUpSurveyCommand.followUpOptions":{id:"follow-up-survey-options",mapping:{checkboxSurveyOptionRenderer:{component:"ytd-checkbox-survey-option-renderer",properties:{isToggleOption:"[[isToggleOption]]",isOverlay:"[[isShortsStyle]]"}},radioButtonSurveyOptionRenderer:{component:"ytd-radio-button-survey-option-renderer",properties:{isToggleOption:"[[isToggleOption]]"}}}},"data.response.expandableSurveyResponseRenderer.skipButton":{id:"skip-btn-footer",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.response.expandableSurveyResponseRenderer.continueButton":{id:"continue-btn-footer",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"post-submit-message",mapping:{messageRenderer:{component:"ytd-message-renderer"}}}}};
_.P.attached=function(){var A=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(O){var X;if((X=O[0])!=null&&X.isIntersecting){_.wW().reportShown(A.hostElement);var x;(x=A.intersectionObserver)==null||x.unobserve(A.hostElement)}},{rootMargin:"0px",
threshold:.6});var L;(L=this.intersectionObserver)==null||L.observe(this.hostElement)};
_.P.onDarkModeToggledAction=function(A){this.isDarkMode=A};
_.P.dataChanged=function(){var A;if(((A=this.data)==null?void 0:A.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var L;((L=this.data)==null?void 0:L.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var O,X,x,J;this.darkColorPalette=(O=this.data)==null?void 0:(X=O.inlineContent)==null?void 0:(x=X.compactVideoRenderer)==null?void 0:(J=x.thumbnail)==null?
void 0:J.darkColorPalette;var Y,T,V,E;this.lightColorPalette=(Y=this.data)==null?void 0:(T=Y.inlineContent)==null?void 0:(V=T.compactVideoRenderer)==null?void 0:(E=V.thumbnail)==null?void 0:E.lightColorPalette;var n,t;if(((n=this.data)==null?0:(t=n.inlineContent)==null?0:t.compactVideoRenderer)&&this.isShortsStyle){var b,S,w,l;A=_.TJ((b=this.data)==null?void 0:(S=b.inlineContent)==null?void 0:(w=S.compactVideoRenderer)==null?void 0:(l=w.thumbnail)==null?void 0:l.thumbnails);_.eq(this.hostElement,
{"--yt-background-url":"url("+A+")"})}};
_.P.handleRequestCompletion=function(){this.hostElement.hidden&&_.P4(this.hostElement,"yt-dismissible-item-dismissed")};
_.P.onPopupClosed=function(A){var L;((L=A.detail)==null?void 0:L.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.dQ(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.P.handleInlineSurveyRatingSelect=function(A,L){var O=this;this.selectedRatingEndpoint=A;this.followUpSurveyCommand=L;this.expanded=!!A;this.getOptionRenderers().forEach(function(X,x){O.notifyPath("followUpSurveyCommand.followUpOptions."+x+".checkboxSurveyOptionRenderer.checked");O.set("followUpSurveyCommand.followUpOptions."+x+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),A=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.dQ(this.hostElement,"yt-reel-non-video-content-dismissal-command",[A]))};
_.P.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.dQ(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var A,L=(A=this.data)==null?void 0:A.dismissalEndpoint;L&&this.ytComponentBehavior.resolveCommand(L)}};
_.P.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.dQ(this.hostElement,"yt-close-popup-action"))};
_.P.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var A=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{A=this.getOptionRenderers().filter(function(X){return X.checked});
if(A.length===0)return;A=A.map(function(X){return X.responseEndpoint})}var L=[];
A.forEach(function(X,x){x!==0&&(X=_.q(X,_.y7))&&X.feedbackToken&&L.push(X.feedbackToken)});
if(A=A[0]){var O={};L.length>0&&(O.extra_feedback_tokens=L);this.ytComponentBehavior.resolveCommand(A,{form:O})}}};
_.P.getOptionRenderers=function(){var A=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(L){A.isSingleSelect=!!_.q(L,nNX);return A.isSingleSelect?_.q(L,nNX):_.q(L,tIJ)}):[]};
_.P.handleInlineSurveyOptionSelect=function(A){A=this.optionSelector.indexOf(A);A!==-1&&this.optionSelector.selectIndex(A)};
_.P.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.P.maybeGetBackgroundColor=function(A){return this.isDarkMode?A.section2Color:A.section3Color};
_.P.colorPaletteChanged=function(){var A=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;A=A&&this.maybeGetBackgroundColor(A);this.dismissibleEl.style.backgroundColor=!A||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.Wy(A)};
_.v2.Object.defineProperties(YC.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
YC.prototype.colorPaletteChanged=YC.prototype.colorPaletteChanged;YC.prototype.onPopupClosed=YC.prototype.onPopupClosed;YC.prototype.handleRequestCompletion=YC.prototype.handleRequestCompletion;YC.prototype.dataChanged=YC.prototype.dataChanged;_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],YC.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],YC.prototype,"actionHandlerBehavior",void 0);
_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],YC.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],YC.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.BL),_.Z("design:type",Object)],YC.prototype,"ytdDismissibleItemBehavior",void 0);_.I([_.qR("#follow-up-survey-options"),_.Z("design:type",Object)],YC.prototype,"optionSelector",void 0);_.I([_.K(),_.Z("design:type",Object)],YC.prototype,"data",void 0);
_.I([_.K(),_.Z("design:type",Object)],YC.prototype,"disableAnimation",void 0);_.I([_.K(),_.Z("design:type",Object)],YC.prototype,"isToggleOption",void 0);_.I([_.K(),_.Z("design:type",Object)],YC.prototype,"followUpSurveyCommand",void 0);_.I([_.K(),_.Z("design:type",Object)],YC.prototype,"selectedRatingEndpoint",void 0);_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],YC.prototype,"expanded",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],YC.prototype,"isSlimlineSurveyFollowUp",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],YC.prototype,"isShortsStyle",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],YC.prototype,"styleOverrideAttribute",void 0);_.I([_.K(),_.Z("design:type",Boolean)],YC.prototype,"isSingleSelect",void 0);_.I([_.K(),_.Z("design:type",Object)],YC.prototype,"isDarkMode",void 0);
_.I([_.K(),_.Z("design:type",Object)],YC.prototype,"lightColorPalette",void 0);_.I([_.K(),_.Z("design:type",Object)],YC.prototype,"darkColorPalette",void 0);_.I([_.r("selectedRatingEndpoint","isShortsStyle"),_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],YC.prototype,"isOptionSelected",null);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],YC.prototype,"roundedContainer",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],YC.prototype,"improveShortsResponseRate",void 0);_.I([_.qR("#dismissible"),_.Z("design:type",HTMLElement)],YC.prototype,"dismissibleEl",void 0);_.I([_.qR("#dismiss-button yt-icon-button"),_.Z("design:type",HTMLElement)],YC.prototype,"dismissButtonEl",void 0);_.I([_.qR("#inline-survey-header yt-icon-button"),_.Z("design:type",HTMLElement)],YC.prototype,"inlineHeaderDismissButtonEl",void 0);
_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],YC.prototype,"dataChanged",null);_.I([_.by("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],YC.prototype,"handleRequestCompletion",null);_.I([_.by("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],YC.prototype,"onPopupClosed",null);
_.I([_.hT("darkColorPalette","lightColorPalette","isDarkMode"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],YC.prototype,"colorPaletteChanged",null);_.I([_.Q({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],YC);
_.m(YC,"ytd-inline-survey-renderer",function(){if(q4B!==void 0)return q4B;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return q4B=A},{mode:1});var wuJ=["en-CA","en","es-MX","fr-CA"];_.puM=_.xa(function(A){var L=_.OY(A,{isOverlay:!1,isModern:!1}),O=L.captionIconType,X=L.onClick;A=L.ariaLabel;var x=L.ariaPressed,J=L.isOverlay,Y=L.isModern;L=_.av("button",function(E){_.xC(E,127299)});
var T=_.py(function(E){_.s3(127299);X==null||X(E);return!1}),V={};
return _.D("ytm-closed-captioning-button",{class:_.qn("ytmClosedCaptioningButtonHost",(V.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return O()===-1&&J()},V.ytmClosedCaptioningButtonIconDisabled=function(){return O()===-1&&!J()},V))},_.D("button",{el:L,
class:"ytmClosedCaptioningButtonButton",title:A,"aria-label":A,"aria-pressed":x,"on:click":T},_.D(_.Ky,{icon:function(){var E="",n=Y();var t=n?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";n=n?"SUBTITLES_DELHI_PLAYER":"SUBTITLES";var b=_.qG().get("hl");t=!b||wuJ.includes(b)?t:n;n=O();switch(n){case -1:case 0:E=t;break;case 1:E=t+"_FILLED";break;default:_.ZN(n)}return E}})))},"nf");
_.puM.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.t5=function(A){return function(L,O){var X=A||O.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(L,O,{get:function(){var x;return this.$?this.$[X]:(x=_.Sq(this))==null?void 0:x.querySelector("#"+X)},
enumerable:!0,configurable:!0})}};_.bf=function(A){A=A===void 0?!1:A;_.p$.call(this);this.pubSub_=new _.tj(A);_.VI(this,this.pubSub_)};
_.Ty(_.bf,_.p$);_.bf.prototype.subscribe=function(A,L,O){return this.isDisposed()?0:this.pubSub_.subscribe(A,L,O)};
_.bf.prototype.unsubscribe=function(A,L,O){return this.isDisposed()?!1:this.pubSub_.unsubscribe(A,L,O)};
_.bf.prototype.unsubscribeByKey=function(A){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(A)};
_.bf.prototype.publish=function(A,L){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var tHM=function(){_.o5("ypcRedeemFlowStarted")},nZ=function(A){_.o5("ypcRedeemFlowFailed",void 0,void 0,void 0,A)},bt$=function(A,L,O){L&&O&&(A.videos.forEach(function(X){X.videoId===L&&(X.itemId=O)}),A.recommendedVideos.forEach(function(X){X.videoId===L&&(X.itemId=O)}))};var h_J;var SmS;/*

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
*/
_.RJ({_template:function(){if(SmS!==void 0)return SmS;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;h_J===void 0&&(h_J=document.createElement("template"));var X=h_J;O.call(L,X.content.cloneNode(!0),A.content.firstChild);return SmS=A},
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(A,L){var O=this._resolveSrc(A);O!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",A===""||L?this._setLoading(!1):(this._resolvedSrc=O,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 A=this.$.sizedImgDiv.style,L=this.$.placeholder.style;A.backgroundSize=L.backgroundSize=this.sizing;A.backgroundPosition=L.backgroundPosition=this.sizing?this.position:"";A.backgroundRepeat=L.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(A){A=_.Jl(A,this.$.baseURIAnchor.href);A.length>=2&&A[0]==="/"&&A[1]!=="/"&&(A=(location.origin||location.protocol+"//"+location.host)+A);return A}});var qmM;var ghX;_.RJ({_template:function(){if(ghX!==void 0)return ghX;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;qmM===void 0&&(qmM=document.createElement("template"));var X=qmM;O.call(L,X.content.cloneNode(!0),A.content.firstChild);return ghX=A},
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(A){return A?"false":"true"},
_headingChanged:function(A){var L=this.getAttribute("heading"),O=this.getAttribute("aria-label");typeof O==="string"&&O!==L||this.setAttribute("aria-label",A)},
_computeHeadingClass:function(A){return A?" over-image":""},
_computeAnimated:function(A){return A}});var wVX=new _.PF("addRendererToItemSectionAction");var pVS;var te=function(){return _.G.apply(this,arguments)||this};
_.g(te,_.G);te.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],te.prototype,"rendererBehavior",void 0);_.I([_.N(_.BL),_.Z("design:type",Object)],te.prototype,"dismissibleItemBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],te.prototype,"rendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],te.prototype,"data",void 0);_.I([_.Q({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],te);
_.m(te,"ytd-comment-history-entry-renderer",function(){if(pVS!==void 0)return pVS;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return pVS=A},{mode:1});var itJ;_.y3("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.y3("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var bU=function(){return _.G.apply(this,arguments)||this};
_.g(bU,_.G);_.P=bU.prototype;_.P.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.onKeyUp=function(A){if(A.keyCode===13)this.onTap()};
_.P.onTap=function(){this.data.recordClickEndpoint&&_.X5().resolve(_.x$).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var A=this.data.navigationEndpoint;A&&_.q(A,_.HB)&&_.X5().resolve(_.x$).resolveCommand(A,{form:{element:this.hostElement}})};
_.P.readChanged=function(){var A;_.TK(this.hostElement,"unread",!((A=this.data)==null?0:A.read))};
_.P.dataChanged=function(){this.data&&_.TK(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.P.computeThumbnailSize=function(){var A;return((A=this.data)==null?0:A.highPriorityNotification)?32:48};
_.P.getEndpointURL=function(A){return A&&!_.q(A,_.HB)?this.componentBehavior.computeHref_(A):null};
_.P.getEndpointData=function(A){return A&&!_.q(A,_.HB)?A:null};
bU.prototype.computeThumbnailSize=bU.prototype.computeThumbnailSize;bU.prototype.dataChanged=bU.prototype.dataChanged;bU.prototype.readChanged=bU.prototype.readChanged;bU.prototype.onKeyUp=bU.prototype.onKeyUp;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],bU.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],bU.prototype,"ytRendererstamperBehavior",void 0);
_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],bU.prototype,"componentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],bU.prototype,"data",void 0);_.I([_.K({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.Z("design:type",Number)],bU.prototype,"thumbnailSize",void 0);_.I([_.by("keyup"),_.Z("design:type",Function),_.Z("design:paramtypes",[KeyboardEvent]),_.Z("design:returntype")],bU.prototype,"onKeyUp",null);
_.I([_.hT("data.read"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],bU.prototype,"readChanged",null);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],bU.prototype,"dataChanged",null);_.I([_.hT("data.highPriorityNotification"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],bU.prototype,"computeThumbnailSize",null);
_.I([_.Q({is:"ytd-notification-renderer",disableElementRegistration:!0})],bU);
_.m(bU,"ytd-notification-renderer",function(){if(itJ!==void 0)return itJ;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return itJ=A},{mode:1});var NOX;var he=function(){return _.G.apply(this,arguments)||this};
_.g(he,_.G);he.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"}}}};
he.prototype.computeActionButtonClass=function(A){return!A.actionButtons||A.actionButtons.length<=1?"single-button":A.description?"vertical-buttons":"horizontal-buttons"};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],he.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],he.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],he.prototype,"data",void 0);_.I([_.Q({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],he);
_.m(he,"ytd-playlist-show-metadata-renderer",function(){if(NOX!==void 0)return NOX;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return NOX=A},{mode:1});var rLz;_.y3("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var Sw=function(){return _.G.apply(this,arguments)||this};
_.g(Sw,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Sw.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Sw.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Sw.prototype,"data",void 0);_.I([_.Q({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],Sw);
_.m(Sw,"ytd-purchase-item-renderer",function(){if(rLz!==void 0)return rLz;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return rLz=A},{mode:1});var KoZ;var GdX={};GdX.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(A){if(A)return A.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(A){if(A==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.y3("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var qX=function(){return _.G.apply(this,arguments)||this};
_.g(qX,_.G);qX.prototype.onYtNavigate=function(A){var L=this.openPopupBehavior.getNavigationEndpointPopupAction(A.detail.endpoint);L&&(A.stopPropagation(),this.openPopupBehavior.openPopup(L))};
qX.prototype.onYtNavigate=qX.prototype.onYtNavigate;_.I([_.N(GdX.YtSimpleTextSectionBehavior),_.Z("design:type",Object)],qX.prototype,"ytSimpleTextSectionBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],qX.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.J3),_.Z("design:type",Object)],qX.prototype,"openPopupBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],qX.prototype,"data",void 0);
_.I([_.by("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],qX.prototype,"onYtNavigate",null);_.I([_.Q({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],qX);
_.m(qX,"ytd-simple-text-section-renderer",function(){if(KoZ!==void 0)return KoZ;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return KoZ=A},{mode:1});var lfX;_.y3("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var gC=function(){return _.G.apply(this,arguments)||this};
_.g(gC,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],gC.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],gC.prototype,"data",void 0);_.I([_.Q({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],gC);
_.m(gC,"ytd-unlimited-page-feature-info-renderer",function(){if(lfX!==void 0)return lfX;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return lfX=A},{mode:1});var cLQ;var CFX;var wC=function(){return _.G.apply(this,arguments)||this};
_.g(wC,_.G);wC.prototype.dataChanged=function(){if(this.data){var A=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);A&&(A=_.uB(A,screen.width),this.hostElement.style.backgroundImage="url("+A+")")}};
wC.prototype.dataChanged=wC.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],wC.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],wC.prototype,"data",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],wC.prototype,"dataChanged",null);_.I([_.Q({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],wC);
_.m(wC,"ytd-post-redemption-section-renderer",function(){if(CFX!==void 0)return CFX;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return CFX=A},{mode:1});var FoJ;var pZ=function(){return _.G.apply(this,arguments)||this};
_.g(pZ,_.G);pZ.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],pZ.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],pZ.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],pZ.prototype,"data",void 0);_.I([_.Q({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],pZ);
_.m(pZ,"ytd-ypc-post-redemption-renderer",function(){if(FoJ!==void 0)return FoJ;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return FoJ=A},{mode:1});_.y3("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var iU=function(){var A=_.G.apply(this,arguments)||this;A.MIN_CODE_LENGTH=12;A.MAX_CODE_LENGTH=24;return A};
_.g(iU,_.G);_.P=iU.prototype;_.P.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.P.created=function(){this.riskService=new _.diD;this.loadPaymentThenable=_.uwP(_.ms("YPC_MB_URL"))};
_.P.ready=function(){var A=this;this.code.addEventListener("keypress",function(L){A.onCodeInputKeypress(L)})};
_.P.dataChanged=function(){var A=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(L){L=_.d(L);for(var O=L.next();!O.done;O=L.next())O=O.value,O.type==="attributes"&&O.attributeName==="dark"&&A.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.P.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var A=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+A+")")}};
_.P.computeRedeemButton=function(A){(A=this.get("redeemButton.buttonRenderer",A))&&(A=Object.assign({},A,{serviceEndpoint:void 0}));return A};
_.P.onRedeemButtonTap=function(A){A.stopPropagation();tHM();this.redeemCode()};
_.P.redeemCode=function(){var A=this;this.isLoading=!0;var L=this.riskService.init();_.Fe([L,this.loadPaymentThenable]).then(function(){var O=A.data.redeemButton.buttonRenderer.serviceEndpoint,X=_.Ymd(),x=payments.business.integration.ClientTokenFactory.createClientToken(_.q(O,_.dUJ).countryCode,X);X={c:A.code.value.trim(),rd:window.btoa(X),ctk:x};O&&_.X5().resolve(_.x$).resolveCommand(O,{form:Object.assign({},X,{element:A.hostElement})})},function(){A.showGenericError();
nZ("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.IO(Error("io"))})};
_.P.onYtServiceRequestCompleted=function(A){A.stopPropagation();this.isLoading=!1;var L,O;this.errorMessage=(L=A.detail)==null?void 0:(O=L.data)==null?void 0:O.errorMessage;var X,x;this.postRedemptionRenderer=(X=A.detail)==null?void 0:(x=X.data)==null?void 0:x.renderer;var J,Y;if(A=(J=A.detail)==null?void 0:(Y=J.data)==null?void 0:Y.redirectEndpoint)this.isLoading=!0,_.P4(this.hostElement,"yt-navigate",{endpoint:A});this.errorMessage?nZ("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
A)&&_.o5("ypcRedeemFlowSucceeded")};
_.P.onYtServiceRequestError=function(A){A.stopPropagation();this.isLoading=!1;if(A=this.get("detail.error.message",A))this.errorMessage=_.Ue(A);nZ("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.P.onInvokeInstrumentManagerActionCompleted=function(A){A.stopPropagation();this.redeemCode()};
_.P.onInvokeInstrumentManagerActionError=function(A){A.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",A)){case "instrumentManagerLoadError":this.showGenericError();nZ("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();nZ("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.o5("ypcRedeemFlowCancelled")}};
_.P.onInput=function(){var A=this;_.$J(this,"onInput",function(){var L=A.code.value.trim();A.redeemButtonDisabled=L.length<A.MIN_CODE_LENGTH||L.length>A.MAX_CODE_LENGTH},200)};
_.P.onCodeInputKeypress=function(A){A.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(tHM(),this.redeemCode())};
_.P.computeImageUrl=function(A){return A?_.uB(A.thumbnails,600):null};
_.P.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
iU.prototype.onInvokeInstrumentManagerActionError=iU.prototype.onInvokeInstrumentManagerActionError;iU.prototype.onInvokeInstrumentManagerActionCompleted=iU.prototype.onInvokeInstrumentManagerActionCompleted;iU.prototype.onYtServiceRequestError=iU.prototype.onYtServiceRequestError;iU.prototype.onYtServiceRequestCompleted=iU.prototype.onYtServiceRequestCompleted;iU.prototype.dataChanged=iU.prototype.dataChanged;
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],iU.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],iU.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],iU.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],iU.prototype,"isLoading",void 0);_.I([_.K(),_.Z("design:type",Boolean)],iU.prototype,"redeemButtonDisabled",void 0);
_.I([_.K(),_.Z("design:type",Object)],iU.prototype,"errorMessage",void 0);_.I([_.K(),_.Z("design:type",Object)],iU.prototype,"postRedemptionRenderer",void 0);_.I([_.K(),_.Z("design:type",Object)],iU.prototype,"observer",void 0);_.I([_.qR("#code"),_.Z("design:type",HTMLInputElement)],iU.prototype,"code",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],iU.prototype,"dataChanged",null);
_.I([_.by("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],iU.prototype,"onYtServiceRequestCompleted",null);_.I([_.by("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],iU.prototype,"onYtServiceRequestError",null);
_.I([_.by("yt-invoke-instrument-manager-action-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],iU.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.I([_.by("yt-invoke-instrument-manager-action-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],iU.prototype,"onInvokeInstrumentManagerActionError",null);_.I([_.Q({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],iU);
_.m(iU,"ytd-redeem-code-renderer",function(){if(cLQ!==void 0)return cLQ;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return cLQ=A},{mode:1});var R_S;_.y3("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var NX=function(){var A=_.G.apply(this,arguments)||this;A.businessEmailDisplayState="HIDE_SECTION";return A};
_.g(NX,_.G);_.P=NX.prototype;_.P.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.links":{id:"link-list-container",mapping:{channelExternalLinkViewModel:{component:"yt-channel-external-link-view-model",params:{useSmallFont:!0}}}}}};
_.P.dataChanged=function(){this.data&&(this.data.businessEmailButton||this.data.signInForBusinessEmail)?this.data.signInForBusinessEmail?this.businessEmailDisplayState="SIGN_IN_REQUIRED":this.businessEmailErrorMessage?this.businessEmailDisplayState="ERROR_MESSAGE":(this.businessEmailDisplayState="REVEAL_BUTTON",this.data.businessEmail&&(this.businessEmail=this.data.businessEmail)):this.businessEmailDisplayState="HIDE_SECTION"};
_.P.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.P.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.Zx(_.JLg),this.businessEmailDisplayState="CAPTCHA"))};
_.P.onYtServiceRequestCompleted=function(A){var L;if((L=A.detail.data)==null?0:L.businessEmail)this.businessEmail=A.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var O;if((O=A.detail.data)==null?0:O.errorMessage)this.businessEmailErrorMessage=A.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.P.computeEmailHref=function(A){return"mailto:"+A};
_.P.computeSafeUrl=function(A){if(A)return _.RP(A)};
_.P.onBusinessEmailCaptchaSubmit=function(){var A;(A=this.data)!=null&&A.onBusinessEmailRevealClickCommand&&(A=this.JSC$22621_captchaTextarea.value)&&(A={recaptcha_response_token:A,channel_id:this.data.channelId},_.X5().resolve(_.x$).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},A,{element:this.hostElement})}))};
_.P.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.v2.Object.defineProperties(NX.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 A,L;return!((A=this.data)==null||!A.primaryLinks)&&!((L=this.data)==null?0:L.links)&&this.data.primaryLinks.every(function(O){return O.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var A,L;return!((A=this.data)==null||!A.primaryLinks)&&!((L=this.data)==null?0:L.links)&&!this.shouldShowNewLinks}}});
NX.prototype.onYtServiceRequestCompleted=NX.prototype.onYtServiceRequestCompleted;NX.prototype.dataChanged=NX.prototype.dataChanged;_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],NX.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],NX.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],NX.prototype,"ytRendererstamperBehavior",void 0);
_.I([_.qR("#g-recaptcha-response"),_.Z("design:type",HTMLTextAreaElement)],NX.prototype,"JSC$22621_captchaTextarea",void 0);_.I([_.K(),_.Z("design:type",Object)],NX.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",String)],NX.prototype,"businessEmailDisplayState",void 0);_.I([_.K(),_.Z("design:type",String)],NX.prototype,"businessEmail",void 0);_.I([_.K(),_.Z("design:type",String)],NX.prototype,"businessEmailErrorMessage",void 0);
_.I([_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],NX.prototype,"hideDetailsSection",null);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],NX.prototype,"dataChanged",null);_.I([_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],NX.prototype,"shouldShowNewLinks",null);_.I([_.r("data","shouldShowLinks"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],NX.prototype,"shouldShowLegacyLinks",null);
_.I([_.by("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],NX.prototype,"onYtServiceRequestCompleted",null);_.I([_.Q({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],NX);
_.m(NX,"ytd-channel-about-metadata-renderer",function(){if(R_S!==void 0)return R_S;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return R_S=A},{mode:1});var QqS;_.y3("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var rC=function(){return _.G.apply(this,arguments)||this};
_.g(rC,_.G);rC.prototype.configureRendererStamper=function(){return{"data.items":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer",lockupViewModel:{component:"yt-lockup-view-model",params:{force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailFixedWidth]]",containerType:"[[lockupContainerType]]"}}}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],rC.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],rC.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],rC.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Number)],rC.prototype,"lockupContainerType",void 0);_.I([_.K(),_.Z("design:type",String)],rC.prototype,"thumbnailFixedWidth",void 0);
_.I([_.Q({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],rC);
_.m(rC,"ytd-channel-featured-content-renderer",function(){if(QqS!==void 0)return QqS;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return QqS=A},{mode:1});var miS;_.y3("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var KZ=function(){var A=_.G.apply(this,arguments)||this;A.roundContainer=!0;A.amsterdamEnabled=_.h("enable_desktop_amsterdam_info_panels");return A};
_.g(KZ,_.G);_.P=KZ.prototype;_.P.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.P.dataChanged=function(){this.imageWidth=this.imageHeight=24;var A=this.data;A.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!A.style&&A.image&&A.image.thumbnails.length&&(A=A.image.thumbnails[0],this.imageWidth=A.width||0,this.imageHeight=A.height||0)};
_.P.computeSource=function(A){return A.secondarySource?_.vG(A.secondarySource):_.vG(A.source)};
_.P.computeClarifyStyle=function(A){return A?A.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.P.isLargeStyle=function(A){return A==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.P.computeBackgroundStyle=function(A){return A?A.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.P.computeHasActionButton=function(A){return!!A.actionButton};
_.P.computeHasBottomSection=function(A){return!!A.ctaHasBottomSection};
_.P.computeIsSourceMissing=function(A){return A.ctaHasBottomSection===!1?!0:A&&this.computeSource(A)?!1:!0};
_.P.computeSecondaryEndpoint=function(A){return A.secondaryEndpoint||A.endpoint};
KZ.prototype.dataChanged=KZ.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],KZ.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],KZ.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],KZ.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Number)],KZ.prototype,"imageWidth",void 0);_.I([_.K(),_.Z("design:type",Number)],KZ.prototype,"imageHeight",void 0);
_.I([_.K({computed:"computeSecondaryEndpoint(data)"}),_.Z("design:type",Object)],KZ.prototype,"secondaryEndpoint",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.Z("design:type",Boolean)],KZ.prototype,"hasActionButton",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.Z("design:type",Boolean)],KZ.prototype,"hasBottomSection",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.Z("design:type",Boolean)],KZ.prototype,"missingSource",void 0);_.I([_.K({computed:"computeIcon_(data.icon)"}),_.Z("design:type",String)],KZ.prototype,"icon",void 0);_.I([_.K({computed:"computeIcon_(data.secondaryIcon)"}),_.Z("design:type",String)],KZ.prototype,"secondaryIcon",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.Z("design:type",String)],KZ.prototype,"clarifyStyle",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.Z("design:type",String)],KZ.prototype,"backgroundStyle",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],KZ.prototype,"roundContainer",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],KZ.prototype,"amsterdamEnabled",void 0);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],KZ.prototype,"dataChanged",null);
_.I([_.Q({is:"ytd-clarification-renderer",disableElementRegistration:!0})],KZ);
_.m(KZ,"ytd-clarification-renderer",function(){if(miS!==void 0)return miS;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return miS=A},{mode:1});var ffZ;var IfZ;var G9=function(){var A=_.G.apply(this,arguments)||this;A.amsterdamEnabled=_.h("enable_desktop_amsterdam_info_panels");return A};
_.g(G9,_.G);_.P=G9.prototype;_.P.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.P.computeIcon=function(A){return A?"yt-icons:"+A.toLowerCase():null};
_.P.computeUseContacts=function(A){return!!A.contacts&&A.contacts.length>0};
_.P.computePhoneContact=function(A){var L,O;return(L=A.contacts)==null?void 0:(O=L.find(function(X){var x;return(X==null?void 0:(x=X.icon)==null?void 0:x.iconType)==="PHONE"}))==null?void 0:O.actionText};
_.P.computeSmsContact=function(A){var L,O;return(L=A.contacts)==null?void 0:(O=L.find(function(X){var x;return(X==null?void 0:(x=X.icon)==null?void 0:x.iconType)==="SMS"}))==null?void 0:O.actionText};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],G9.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],G9.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],G9.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],G9.prototype,"amsterdamEnabled",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.Z("design:type",Boolean)],G9.prototype,"useContacts",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.Z("design:type",String)],G9.prototype,"phoneContact",void 0);_.I([_.Q({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],G9);
_.m(G9,"ytd-single-action-emergency-support-renderer",function(){if(IfZ!==void 0)return IfZ;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return IfZ=A},{mode:1});_.y3("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var lU=function(){var A=_.G.apply(this,arguments)||this;A.roundedContainer=!0;A.amsterdamEnabled=_.h("enable_desktop_amsterdam_info_panels");return A};
_.g(lU,_.G);lU.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"}}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],lU.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],lU.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],lU.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],lU.prototype,"roundedContainer",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],lU.prototype,"amsterdamEnabled",void 0);
_.I([_.Q({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],lU);
_.m(lU,"ytd-emergency-onebox-renderer",function(){if(ffZ!==void 0)return ffZ;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return ffZ=A},{mode:1});var yLS;_.y3("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var cI=function(){return _.G.apply(this,arguments)||this};
_.g(cI,_.G);cI.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"}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],cI.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],cI.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],cI.prototype,"data",void 0);_.I([_.Q({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],cI);
_.m(cI,"ytd-exploratory-results-renderer",function(){if(yLS!==void 0)return yLS;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return yLS=A},{mode:1});var ZtX;_.y3("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var CZ=function(){var A=_.G.apply(this,arguments)||this;A.messageData=null;return A};
_.g(CZ,_.G);_.P=CZ.prototype;_.P.onServiceRequestCompleted=function(A,L){A=L.actions||[];L=0;for(var O=A.length;L<O;L++){var X=A[L],x=void 0,J=void 0;if((x=_.q(X,_.Cb))==null?0:(J=x.item)==null?0:J.messageRenderer)this.messageData=_.q(X,_.Cb).item.messageRenderer}};
_.P.dataChanged=function(){var A=this.data;this.hostElement.hidden=!1;_.TK(this.hostElement,"is-channel",A&&!A.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.P.computeThumbnailWidth=function(A){return A?126:56};
_.P.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.P.onSubmitTap=function(){var A=this.data,L=this.selectedResponseIndex;A!==void 0&&L!==void 0&&(A=A.responses[L],A.responseData&&_.X5().resolve(_.x$).resolveCommand(A.responseData,{form:{element:this.hostElement}}))};
_.P.onDismissTap=function(){this.hostElement.hidden=!0;var A=this.data;A!==void 0&&A.dismissalEndpoint&&_.X5().resolve(_.x$).resolveCommand(A.dismissalEndpoint,{form:{element:this.hostElement}})};
_.P.updateSelectedResponseIndexFromBinding=function(A){this.selectedResponseIndex=A.detail.value};
CZ.prototype.onSelectedResponseIndexChange=CZ.prototype.onSelectedResponseIndexChange;CZ.prototype.dataChanged=CZ.prototype.dataChanged;CZ.prototype.onServiceRequestCompleted=CZ.prototype.onServiceRequestCompleted;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],CZ.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],CZ.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],CZ.prototype,"messageData",void 0);
_.I([_.K(),_.Z("design:type",Number)],CZ.prototype,"selectedResponseIndex",void 0);_.I([_.qR("#submit-button"),_.Z("design:type",HTMLButtonElement)],CZ.prototype,"submitButton",void 0);_.I([_.by("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.Xi]),_.Z("design:returntype")],CZ.prototype,"onServiceRequestCompleted",null);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],CZ.prototype,"dataChanged",null);
_.I([_.hT("selectedResponseIndex"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],CZ.prototype,"onSelectedResponseIndexChange",null);_.I([_.Q({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],CZ);
_.m(CZ,"ytd-feedback-elicitation-single-question-renderer",function(){if(ZtX!==void 0)return ZtX;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return ZtX=A},{mode:1});var jqX;var FD=function(){return _.G.apply(this,arguments)||this};
_.g(FD,_.G);FD.prototype.computeThumbnailWidth=function(A){return A?602:428};
FD.prototype.updateWideFromBinding=function(A){this.wide=A.detail.value};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],FD.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],FD.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Boolean)],FD.prototype,"wide",void 0);_.I([_.Q({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],FD);
_.m(FD,"ytd-newspaper-hero-video-renderer",function(){if(jqX!==void 0)return jqX;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return jqX=A},{mode:1});var WoM;var R_=function(){return _.G.apply(this,arguments)||this};
_.g(R_,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],R_.prototype,"rendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],R_.prototype,"data",void 0);_.I([_.Q({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],R_);
_.m(R_,"ytd-newspaper-mini-video-renderer",function(){if(WoM!==void 0)return WoM;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return WoM=A},{mode:1});var HtZ;_.y3("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var Qc=function(){return _.G.apply(this,arguments)||this};
_.g(Qc,_.G);Qc.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"}}}};
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Qc.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Qc.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Qc.prototype,"data",void 0);_.I([_.Q({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],Qc);
_.m(Qc,"ytd-newspaper-renderer",function(){if(HtZ!==void 0)return HtZ;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return HtZ=A},{mode:1});var z_J;_.y3("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var mc=function(){var A=_.G.apply(this,arguments)||this;A.isSegment=!1;A.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};A.nextContinuation={continuationType:"playlistVideoListContinuation"};return A};
_.g(mc,_.G);_.P=mc.prototype;_.P.attached=function(){_.X5();var A;(A=_.X5().resolve(_.Ot(_.TH)))!=null&&(A.playlistVideoListElement=this.hostElement)};
_.P.detached=function(){var A;(A=_.X5().resolve(_.Ot(_.TH)))!=null&&(A.playlistVideoListElement=void 0);A=_.X5().resolve(_.Ot(_.ek));_.h("web_enable_voting_animation")&&A&&(A.parentElem=void 0,A.videos=[],A.continuationsPresent=!1,A.showRefreshPill=!1)};
_.P.configureRendererStamper=function(){return{"data.contents":{id:"contents",reuseComponents:!1,mapping:{playlistVideoRenderer:{component:"ytd-playlist-video-renderer",properties:{canReorder:"[[canReorder]]"}},continuationItemRenderer:"ytd-continuation-item-renderer"},events:!0},"data.continuations":{id:"continuations",mapping:{nextContinuationData:"yt-next-continuation"}},"data.sortFilterMenu":{id:"sort-filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",
params:{closeOnActivate:"true"}}}}}};
_.P.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.P.dataChanged=function(){var A=_.X5().resolve(_.Ot(_.ek));if(_.h("web_enable_voting_animation")&&this.data&&A){var L=_.YJ(this.hostElement).querySelector("#contents");L&&(A.parentElem=L);A.addVideos(this.data.contents)}_.z5V(this.ytReorderableBehavior)};
_.P.onRendererstamperFinished=function(){this.canReorder&&_.BLn(this.ytReorderableBehavior,_.YJ(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.P.onPlaylistReloading=function(){this.isReloading=!0};
_.P.onUpdateSetVideoId=function(A){if(A.detail&&this.data&&this.data.contents){var L=A.detail;A=this.data.contents.findIndex(function(x){var J;return((J=x.playlistVideoRenderer)==null?void 0:J.videoId)===L.videoId});
if(!(A<0)&&L.setVideoId&&(this.set("data.contents."+A+".playlistVideoRenderer.setVideoId",L.setVideoId),_.h("web_enable_voting_animation"))){var O;if(A=_.q((O=this.data.contents[A].playlistVideoRenderer)==null?void 0:O.engagementBar,_.laM)){var X;(X=A.actions)==null||X.forEach(function(x){if(x=_.q(x,_.cKP))x.itemId=L.setVideoId})}(O=_.X5().resolve(_.Ot(_.ek)))&&bt$(O,L.videoId,L.setVideoId)}}};
_.P.computeContentsClass=function(A){return A?"reloading":""};
_.P.computeIsSortable=function(A,L){return A&&L>0&&!this.isSegment&&!_.h("shorts_in_playlists_web")};
_.P.computeIsEditable=function(A){return A};
_.P.computeCanReorder=function(A){return A};
_.P.handlePlaylistRemoveVideosAction=function(A){if(this.get("playlistRemoveVideosAction.setVideoIds",A)&&this.data&&this.data.contents){A=_.q(A,_.u_6).setVideoIds;for(var L=this.data.contents.length-1;L>=0;){var O=this.data.contents[L].playlistVideoRenderer;O&&O.setVideoId&&A.includes(O.setVideoId)&&this.splice("data.contents",L,1);L--}_.dQ(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.P.updateIndices=function(){if(this.data&&this.data.contents)for(var A=0;A<this.data.contents.length;A++)this.set("data.contents."+A+".playlistVideoRenderer.index",_.Ue(String(A+1)))};
_.P.handleDrop=function(A){A=A.currDragItem;var L=_.Q_(A.parentNode.childNodes,A),O=this.data.contents.splice(Number(_.vG(A.data.index))-1,1)[0];this.data.contents.splice(L,0,O);L=L?this.get("contents."+(L-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();A=this.buildReorderServiceEndpoint(A.data.setVideoId,L);this.ytComponentBehavior.resolveCommand(A)};
_.P.buildReorderServiceEndpoint=function(A,L){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",A),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",L),this.data.onReorderEndpoint):null};
_.P.handleUpdatePlaylistAction=function(A){var L;(A=_.q((L=_.q(A,_.Trg))==null?void 0:L.updatedRenderer,_.FGH))&&this.canReorder!==A.canReorder&&this.set("data.canReorder",A.canReorder);A&&A.contents&&(this.set("data.contents",A.contents),this.isReloading=!1);A&&A.continuations&&this.set("data.continuations",A.continuations)};
_.P.handleAddRendererToItemSectionAction=function(A){var L,O=(L=_.q(A,wVX))==null?void 0:L.renderer,X;O&&((X=_.q(A,wVX))==null?void 0:X.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,O),A=_.X5().resolve(_.Ot(_.ek)),_.h("web_enable_voting_animation")&&A&&(O&&(L=_.G5p(O))&&A.recommendedVideos.push({itemId:L,videoId:_.CzJ(O),voteCount:_.FaP(O),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.P.isVotingEnabledOnPlaylist=function(A){if(!A)return!1;A=_.d(A);for(A=A.next();!A.done;A=A.next()){var L=void 0;return!!_.q((L=A.value.playlistVideoRenderer)==null?void 0:L.engagementBar,_.laM)}return!1};
_.P.onAppendContinuationItemsActionFinished=function(){var A;this.isVotingEnabledOnPlaylist((A=this.data)==null?void 0:A.contents)&&(this.updateIndices(),A=_.X5().resolve(_.Ot(_.ek)),_.h("web_enable_voting_animation")&&A&&this.data&&A.addVideos(this.data.contents))};
_.P.updateVideoData=function(A){if(A.detail&&this.data&&this.data.contents){var L=A.detail;A=L.toIdx;var O=L.itemId,X=L.newVoteCount,x=L.voteStatus;L=L.hideItem;var J,Y,T=(J=this.data)==null?void 0:(Y=J.contents)==null?void 0:Y.findIndex(function(t){return _.G5p(t)===O});
if(!(T<0)){J=this.data.contents[T];var V;if((V=J.playlistVideoRenderer)==null?0:V.voteCount)J.playlistVideoRenderer.voteCount=X;var E;if(V=_.q((E=J.playlistVideoRenderer)==null?void 0:E.engagementBar,_.laM)){var n;(n=V.actions)==null||n.forEach(function(t){(t=_.q(t,_.cKP))&&t.initialState&&(t.initialState.votes=X,t.initialState.status=x)})}this.data.contents.splice(T,1);
L||this.data.contents.splice(A,0,J);this.updateIndices()}}};
mc.prototype.updateVideoData=mc.prototype.updateVideoData;mc.prototype.onAppendContinuationItemsActionFinished=mc.prototype.onAppendContinuationItemsActionFinished;mc.prototype.onUpdateSetVideoId=mc.prototype.onUpdateSetVideoId;mc.prototype.onPlaylistReloading=mc.prototype.onPlaylistReloading;mc.prototype.onRendererstamperFinished=mc.prototype.onRendererstamperFinished;mc.prototype.dataChanged=mc.prototype.dataChanged;
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],mc.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],mc.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],mc.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.vQ.YtNextContinuationBehavior),_.Z("design:type",Object)],mc.prototype,"ytNextContinuationBehavior",void 0);
_.I([_.N(_.MBg),_.Z("design:type",Object)],mc.prototype,"ytReorderableBehavior",void 0);_.I([_.N(_.U8),_.Z("design:type",Object)],mc.prototype,"ytContinuationHandlerBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],mc.prototype,"ytComponentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],mc.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Boolean)],mc.prototype,"isReloading",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],mc.prototype,"isSegment",void 0);_.I([_.K({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.Z("design:type",Boolean)],mc.prototype,"isSortable",void 0);_.I([_.K({computed:"computeIsEditable(data.isEditable)"}),_.Z("design:type",Boolean)],mc.prototype,"isEditable",void 0);_.I([_.K({computed:"computeCanReorder(data.canReorder)"}),_.Z("design:type",Boolean)],mc.prototype,"canReorder",void 0);
_.I([_.K({value:101}),_.Z("design:type",Number)],mc.prototype,"scrollMargin",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],mc.prototype,"dataChanged",null);_.I([_.by("yt-rendererstamper-finished"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],mc.prototype,"onRendererstamperFinished",null);
_.I([_.by("yt-playlist-reloading"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],mc.prototype,"onPlaylistReloading",null);_.I([_.by("yt-update-set-video-id"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],mc.prototype,"onUpdateSetVideoId",null);
_.I([_.by("yt-append-continuation-items-action-finished"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],mc.prototype,"onAppendContinuationItemsActionFinished",null);_.I([_.by("yt-update-video-data-voting-animation"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],mc.prototype,"updateVideoData",null);_.I([_.Q({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],mc);
_.m(mc,"ytd-playlist-video-list-renderer",function(){if(z_J!==void 0)return z_J;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return z_J=A},{mode:_.e5("kevlar_poly_si_batch_j047")?1:2});var BOB;var fZ=function(){return _.G.apply(this,arguments)||this};
_.g(fZ,_.G);fZ.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"}}}}};
fZ.prototype.onTextWrapperTap=function(A){var L=this.data&&this.data.navigationEndpoint;L&&!_.xu(_.oa(A),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.P4(this.hostElement,"yt-navigate",{endpoint:L})};
fZ.prototype.dataChanged=function(){var A=this.get("data.offerButton.buttonRenderer.serviceEndpoint");A&&A.commandMetadata&&_.q(A.commandMetadata,_.fb)&&_.q(A.commandMetadata,_.fb).fireAutomatically&&_.X5().resolve(_.x$).resolveCommand(A,{form:{element:this.hostElement}})};
fZ.prototype.dataChanged=fZ.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],fZ.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],fZ.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.of),_.Z("design:type",Object)],fZ.prototype,"ytdLockupBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],fZ.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0,value:function(){return _.h("enable_desktop_search_bigger_thumbs")}}),
_.Z("design:type",Boolean)],fZ.prototype,"useBiggerThumbs",void 0);_.I([_.K({reflectToAttribute:!0,value:function(){return _.dN("desktop_search_bigger_thumbs_style")}}),
_.Z("design:type",String)],fZ.prototype,"biggerThumbsStyle",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],fZ.prototype,"leftAligned",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],fZ.prototype,"dataChanged",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-movie-renderer"})],fZ);
_.m(fZ,"ytd-movie-renderer",function(){if(BOB!==void 0)return BOB;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return BOB=A},{mode:1});var MHX;var I_=function(){var A=_.G.apply(this,arguments)||this;A.rounded=!0;A.pageAttachedTo=void 0;A.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return A};
_.g(I_,_.G);I_.prototype.attached=function(){this.pageAttachedTo=_.X5().resolve(_.JI).getCurrentPage();_.P4(this.hostElement,"yt-player-attached",this.player)};
I_.prototype.detached=function(){var A;if((A=this.pageAttachedTo)==null?0:A.hostElement)_.P4(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
I_.prototype.dataChanged=function(){var A;if((A=this.data)==null?0:A.videoId)A={video_id:this.data.videoId,autoplay:!0},!_.h("miniplayer_stop_channel_video_autoplay_killswitch")&&_.X5().resolve(_.z_).isMiniplayerActive()&&(A.pause_at_start=!0,A.autoplay=!1),this.player.loadVideoWithPlayerVars(A)};
I_.prototype.handleSignalActionPausePlayer=function(){_.Yu().pause()};
I_.prototype.dataChanged=I_.prototype.dataChanged;_.I([_.K(),_.Z("design:type",Object)],I_.prototype,"data",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],I_.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],I_.prototype,"ytActionHandlerBehavior",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],I_.prototype,"rounded",void 0);_.I([_.qR("#player"),_.Z("design:type",Object)],I_.prototype,"player",void 0);
_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],I_.prototype,"dataChanged",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],I_);
_.m(I_,"ytd-channel-video-player-renderer",function(){if(MHX!==void 0)return MHX;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return MHX=A},{mode:1});var $iJ;var afJ;var kdZ;var yc=function(){var A=_.G.apply(this,arguments)||this;A.playing=!1;A.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.$e(A);A.active=!1;return A};
_.g(yc,_.G);_.P=yc.prototype;_.P.detached=function(){this.stop()};
_.P.play=function(){var A=this,L,O,X,x,J;return _.u(function(Y){if(Y.nextAddress==1)return A.active=!0,L=A.get("data.inlinePlaybackEndpoint.watchEndpoint"),O=L.videoId||A.data.videoId,X=L.startTimeSeconds||0,x=L.playerParams||null,_.h("kevlar_player_update_killswitch")?Y.yield(A.playerEl.update({args:{video_id:O,startSeconds:X,player_params:x}}),2):(A.playerEl.loadVideoWithPlayerVars({video_id:O,startSeconds:X,player_params:x,autoplay:!0}),Y.jumpTo(2));if(Y.nextAddress!=4)return Y.yield(A.playerEl.getPlayerPromise(),
4);J=Y.yieldResult;J.unloadModule("annotations_module");J.addEventListener("onStateChange",function(T){A.onPlayerStateChange(T)});
_.qo(Y)})};
_.P.onPlayerStateChange=function(A){if(this.active)switch(this.playing=A===1,A){case 1:_.P4(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.P4(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.P.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.P.resize=function(){var A=this,L;return _.u(function(O){if(O.nextAddress==1)return O.yield(A.playerEl.getPlayerPromise(),2);L=O.yieldResult;L.setSize(NaN,NaN);_.qo(O)})};
_.I([_.K(),_.Z("design:type",Object)],yc.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],yc.prototype,"playing",void 0);_.I([_.K(),_.Z("design:type",Object)],yc.prototype,"playerId",void 0);_.I([_.qR("#player"),_.Z("design:type",Object)],yc.prototype,"playerEl",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],yc);
_.m(yc,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(kdZ!==void 0)return kdZ;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return kdZ=A},{mode:1});var Uiz;var vhn;var ZH=function(){var A=_.G.apply(this,arguments)||this;A.width=0;return A};
_.g(ZH,_.G);_.P=ZH.prototype;_.P.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.tT(this,this.onEnded));this.mp4El.addEventListener("error",_.tT(this,this.onError))};
_.P.detached=function(){this.videoEl.removeEventListener("ended",_.tT(this,this.onEnded));this.mp4El.removeEventListener("error",_.tT(this,this.onError))};
_.P.play=function(){var A=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var L=this.videoEl.play();L?L.then(function(){A.handleVideoStartPlaying()}).catch(function(){_.P4(A.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.P4(this.hostElement,"yt-video-thumbnail-not-playing")};
_.P.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.P.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.P.dataChanged=function(){var A;if((A=this.data)==null?0:A.thumbnailPlaceholder)A=_.uB(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+A+")";this.stop();this.autoplay&&this.play()};
_.P.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.P.onEnded=function(){this.stop();_.P4(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.P.onError=function(){_.P4(this.hostElement,"yt-video-thumbnail-error")};
_.P.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.P.getVideoThumbnail=function(A){if(A&&A.length)return A[0]};
ZH.prototype.dataChanged=ZH.prototype.dataChanged;_.I([_.K(),_.Z("design:type",Object)],ZH.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],ZH.prototype,"animatePlaceholderOnEntrance",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],ZH.prototype,"autoplay",void 0);_.I([_.K({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.Z("design:type",Object)],ZH.prototype,"videoThumbnail",void 0);
_.I([_.K(),_.Z("design:type",Boolean)],ZH.prototype,"loop",void 0);_.I([_.K(),_.Z("design:type",Boolean)],ZH.prototype,"isVideoPlaying",void 0);_.I([_.K(),_.Z("design:type",Object)],ZH.prototype,"width",void 0);_.I([_.qR("#mp4"),_.Z("design:type",HTMLElement)],ZH.prototype,"mp4El",void 0);_.I([_.qR("#placeholder"),_.Z("design:type",HTMLElement)],ZH.prototype,"placeholderEl",void 0);_.I([_.qR("#video"),_.Z("design:type",HTMLVideoElement)],ZH.prototype,"videoEl",void 0);
_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ZH.prototype,"dataChanged",null);_.I([_.yU({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],ZH);
_.m(ZH,"yt-video-as-thumbnail-details",function(){if(vhn===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;Uiz===void 0&&(Uiz=document.createElement("template"));var X=Uiz;O.call(L,X.content.cloneNode(!0),A.content.firstChild);vhn=A}A=vhn;return A},{mode:2});var jw=function(){var A=_.G.apply(this,arguments)||this;A.disableGridStateAware=!1;A.animationEnabled=_.h("enable_web_ketchup_hero_animation");A.transitioningOut=!1;A.narrow=!1;A.narrower=!1;A.isCarouselInFeed=!1;A.videoTimeoutJobId=0;A.panelTimeoutJobId=0;A.panelTimeoutJobStartMs=0;A.actionMap={"yt-window-resized":"onWindowResized"};return A};
_.g(jw,_.G);_.P=jw.prototype;_.P.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.P.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var A;this.player&&((A=this.data)==null?0:A.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.P.attached=function(){this.onWindowResized()};
_.P.detached=function(){this.clearTimeouts()};
_.P.onWindowResized=function(){this.updateSize()};
_.P.computePanelLayout=function(A){return A&&A.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.P.playVideo=function(){var A;this.video&&((A=this.data)==null?0:A.videoThumbnail)&&this.video.play();var L;this.player&&((L=this.data)==null?0:L.inlinePlaybackRenderer)&&this.player.play()};
_.P.stopVideo=function(){var A;this.video&&((A=this.data)==null?0:A.videoThumbnail)&&this.video.stop();var L;this.player&&((L=this.data)==null?0:L.inlinePlaybackRenderer)&&this.player.stop()};
_.P.transitionOut=function(){var A=this;this.transitioningOut=!0;return new Promise(function(L){var O=function(){_.YJ(A.hostElement).querySelector("#action-button").removeEventListener("animationend",O);_.c1.cancelJob(X);L();A.transitioningOut=!1};
var X=_.p7(_.c1,O,1E3);_.YJ(A.hostElement).querySelector("#action-button").addEventListener("animationend",O);A.player&&(A.player.playing=!1)})};
_.P.computeMetadataOrder=function(A){return A&&A.metadataOrder&&A.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?A.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.P.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.P.computeAvatarSize=function(A){return A&&A.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.P.onContentClick=function(A){if(!_.xu(_.oa(A),this.hostElement,["A".toString(),"BUTTON".toString()])){var L;if((L=this.data)==null?0:L.navigationEndpoint){var O;this.componentBehavior.resolveCommand((O=this.data)==null?void 0:O.navigationEndpoint)}}};
_.P.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.P.setBackgroundImage=function(A){if(A=this.getBackgroundImageUrl(A))_.YJ(this.hostElement).querySelector("#hero").style.backgroundImage="url("+A+")"};
_.P.setScrimLayer=function(A){var L=this.getScrimLayerColorStops(A);A=((A==null?void 0:A.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(A=180);_.ms("HTML_DIR")==="rtl"&&(A=-A);L&&(_.YJ(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+A+"deg, "+L+")")};
_.P.isNarrower=function(){return this.hostElement.clientWidth<jw.NARROW_VERSION_SIZE};
_.P.getScrimLayerColorStops=function(){var A,L=(A=this.data)==null?void 0:A.scrimColorValues;if(!L)return null;if(L.length===1)return A=_.Hy(L[0]),A+" 0%, "+A+" 100%";if(L.length===3){var O=[0,72,98];return L.map(function(X,x){return _.Hy(X)+" "+O[x]+"%"}).join(",")}return null};
_.P.getBackgroundImageUrl=function(A){return A&&A.largeFormFactorBackgroundThumbnail?_.uB((A.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||A.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.P.onPlaying=function(){this.startVideoTimeout()};
_.P.onEnded=function(){this.rotate()};
_.P.startPanelTimeout=function(){var A=this;if(!this.panelTimeoutJobId){var L=this.get("data.minPanelDisplayDurationMs");L&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.p7(_.c1,function(){A.rotate()},L))}};
_.P.startVideoTimeout=function(){var A=this;if(!this.videoTimeoutJobId){_.c1.cancelJob(this.panelTimeoutJobId);var L=Date.now()-this.panelTimeoutJobStartMs;L=Math.max(0,this.get("data.minPanelDisplayDurationMs")-L);L=Math.max(this.get("data.minVideoPlayDurationMs")||0,L);this.videoTimeoutJobId=_.p7(_.c1,function(){A.rotate()},L)}};
_.P.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.c1.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.c1.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.P.rotate=function(){this.clearTimeouts();_.P4(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.v2.Object.defineProperties(jw.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.YJ(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.YJ(this.hostElement).querySelector("#video")}}});
_.v2.Object.defineProperties(jw,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
jw.prototype.onEnded=jw.prototype.onEnded;jw.prototype.onPlaying=jw.prototype.onPlaying;jw.prototype.dataChanged=jw.prototype.dataChanged;_.I([_.N(_.$r),_.Z("design:type",Object)],jw.prototype,"ytdGridStateAwareBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],jw.prototype,"componentBehavior",void 0);_.I([_.N(_.kr.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],jw.prototype,"ytdGuideStateAwareBehavior",void 0);
_.I([_.N(_.msn),_.Z("design:type",Object)],jw.prototype,"ytBooleanLogicBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],jw.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],jw.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],jw.prototype,"ytRendererBehavior",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],jw.prototype,"disableGridStateAware",void 0);_.I([_.K(),_.Z("design:type",Object)],jw.prototype,"data",void 0);_.I([_.K({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.Z("design:type",String)],jw.prototype,"panelLayout",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],jw.prototype,"animationEnabled",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],jw.prototype,"transitioningOut",void 0);
_.I([_.K({computed:"computeMetadataOrder(data)"}),_.Z("design:type",Boolean)],jw.prototype,"metadataOrder",void 0);_.I([_.K({computed:"computeByline(data)"}),_.Z("design:type",Object)],jw.prototype,"byline",void 0);_.I([_.K({computed:"computeAvatarSize(data)"}),_.Z("design:type",Number)],jw.prototype,"avatarSize",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],jw.prototype,"narrow",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],jw.prototype,"narrower",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],jw.prototype,"layoutStyle",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],jw.prototype,"isCarouselInFeed",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],jw.prototype,"dataChanged",null);_.I([_.by("yt-default-promo-panel-renderer-playing"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],jw.prototype,"onPlaying",null);
_.I([_.by("yt-default-promo-panel-renderer-ended"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],jw.prototype,"onEnded",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],jw);
_.m(jw,"ytd-default-promo-panel-renderer",function(){if(afJ!==void 0)return afJ;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return afJ=A},{mode:1});_.y3("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var WI=function(){var A=_.G.apply(this,arguments)||this;A.narrower=!1;A.dotMenuVisible=!1;A.paginationThumbnailsVisible=!1;A.active=!0;A.disableGridStateAware=!1;A.actionMap={"yt-window-resized":"onWindowResized"};return A};
_.g(WI,_.G);_.P=WI.prototype;_.P.configureRendererStamper=function(){return{currentItem:{id:"carousel-item",mapping:{defaultPromoPanelRenderer:{component:"ytd-default-promo-panel-renderer",attributes:{autoplay:!0},properties:{disableGridStateAware:"[[disableGridStateAware]]",layoutStyle:"[[data.layoutStyle]]",isCarouselInFeed:"[[isCarouselInFeed]]"}}}}}};
_.P.attached=function(){document.addEventListener("yt-page-type-changed",_.tT(this,this.onPageTypeChange));this.currentPageSubtype=_.SQ(location.pathname);this.onWindowResized()};
_.P.detached=function(){this.jobId&&_.c1.cancelJob(this.jobId);this.updateSizeJobId&&_.c1.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.tT(this,this.onPageTypeChange))};
_.P.onPageTypeChange=function(A){this.active=A.detail.newPageSubtype===this.currentPageSubtype};
_.P.onWindowResized=function(){this.updateSize()};
_.P.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.P.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.P.setCarouselItem=function(A){A>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.c1.cancelJob(this.jobId);var L=this.getCurrentPanelElement();L&&L.stopVideo();this.currentItemIndex=A%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(L||(L=this.getCurrentPanelElement()),L.playVideo()):this.startRotationJob()};
_.P.scrollThumbnails=function(A){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var L=this.getCurrentPaginationElement();if(L){var O=_.YJ(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?O.style.transform="translateX(0)":(L=L.offsetWidth+8,O.style.transform="translateX(-"+L*(A-Math.ceil(Math.floor(this.overlay.offsetWidth/L)/2)+1)+"px)")}}};
_.P.onDataChanged=function(){var A=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.fu(_.c1,function(){A.getCurrentPanelElement().updateSize();A.updateSize()}))};
_.P.getCurrentPanelElement=function(){return _.YJ(_.YJ(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.P.getCurrentPaginationElement=function(){return _.YJ(_.YJ(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.P.getNavigationClass=function(A,L){return A===L?"selected":""};
_.P.getNavigationDurationStyle=function(A){return"animation-duration:"+(this.get("data.carouselItems."+A+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.P.onNavigationTap=function(A){var L=this,O=A.model.index;O!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){L.setCarouselItem(O)}),this.autorotateActive=!1)};
_.P.onVideoThumbnailEnded=function(){var A=this;if(this.shouldRotate()){var L=this.getCurrentPaginationElement();L&&(L.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){L.classList.remove("finished");A.setNextCarouselItem()}))}};
_.P.onVideoThumbnailError=function(){this.startRotationJob()};
_.P.onVideoNotPlaying=function(){this.startRotationJob()};
_.P.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.P.startRotationJob=function(){var A=this;_.c1.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.c1.addLowPriorityJob(function(){A.getCurrentPanelElement().transitionOut().then(function(){A.setNextCarouselItem()})},this.rotationTimeout))};
_.P.computeDotMenuVisible=function(A,L){return!!A&&!!A.carouselItems&&A.carouselItems.length>1&&!A.paginationThumbnails||!!L};
_.P.computePaginationThumbnailsVisible=function(A,L){var O,X;return((X=A==null?void 0:(O=A.paginationThumbnails)==null?void 0:O.length)!=null?X:0)>1&&!L};
_.P.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.P.computePaginatorAlignment=function(A){return(A==null?void 0:A.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.P.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.P.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.P.isNarrower=function(A){return(A!=null?A:0)<jw.NARROW_VERSION_SIZE};
WI.prototype.activeChanged=WI.prototype.activeChanged;WI.prototype.onVideoNotPlaying=WI.prototype.onVideoNotPlaying;WI.prototype.onVideoThumbnailError=WI.prototype.onVideoThumbnailError;WI.prototype.onVideoThumbnailEnded=WI.prototype.onVideoThumbnailEnded;WI.prototype.onDataChanged=WI.prototype.onDataChanged;_.I([_.N(_.$r),_.Z("design:type",Object)],WI.prototype,"ytdGridStateAwareBehavior",void 0);
_.I([_.N(_.kr.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],WI.prototype,"ytdGuideStateAwareBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],WI.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],WI.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],WI.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],WI.prototype,"currentItem",void 0);
_.I([_.K(),_.Z("design:type",Number)],WI.prototype,"currentItemIndex",void 0);_.I([_.K(),_.Z("design:type",Number)],WI.prototype,"rotationTimeout",void 0);_.I([_.K(),_.Z("design:type",Number)],WI.prototype,"loopCount",void 0);_.I([_.K({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.Z("design:type",String)],WI.prototype,"paginatorAlignment",void 0);_.I([_.K(),_.Z("design:type",Number)],WI.prototype,"jobId",void 0);
_.I([_.K(),_.Z("design:type",Number)],WI.prototype,"updateSizeJobId",void 0);_.I([_.K({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],WI.prototype,"isCarouselInFeed",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],WI.prototype,"narrower",void 0);_.I([_.K({computed:"computeDotMenuVisible(data, narrower)"}),_.Z("design:type",Object)],WI.prototype,"dotMenuVisible",void 0);
_.I([_.K({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.Z("design:type",Object)],WI.prototype,"paginationThumbnailsVisible",void 0);_.I([_.K({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.Z("design:type",String)],WI.prototype,"layoutType",void 0);_.I([_.K({value:!0,reflectToAttribute:!0}),_.Z("design:type",Boolean)],WI.prototype,"autorotateActive",void 0);_.I([_.K(),_.Z("design:type",Object)],WI.prototype,"active",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],WI.prototype,"disableGridStateAware",void 0);_.I([_.qR("#overlay"),_.Z("design:type",HTMLElement)],WI.prototype,"overlay",void 0);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],WI.prototype,"onDataChanged",null);
_.I([_.by("yt-video-thumbnail-ended"),_.by("yt-default-promo-panel-renderer-rotate"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],WI.prototype,"onVideoThumbnailEnded",null);_.I([_.by("yt-video-thumbnail-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],WI.prototype,"onVideoThumbnailError",null);
_.I([_.by("yt-video-thumbnail-not-playing"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],WI.prototype,"onVideoNotPlaying",null);_.I([_.iy("active"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],WI.prototype,"activeChanged",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],WI);
_.m(WI,"ytd-carousel-item-renderer",function(){if($iJ!==void 0)return $iJ;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return $iJ=A},{mode:2});var ohn;var AeJ;var LcJ;var OZM;var HI=function(){var A=_.G.apply(this,arguments)||this;A.originalQuery=null;A.originalEndpoint=null;return A};
_.g(HI,_.G);HI.prototype.computeShowOriginalQueryWithoutEndpoint_=function(A,L){return!(!A||L)};
_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],HI.prototype,"ytComponentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],HI.prototype,"correctedText",void 0);_.I([_.K(),_.Z("design:type",Object)],HI.prototype,"correctedQuery",void 0);_.I([_.K(),_.Z("design:type",Object)],HI.prototype,"correctedEndpoint",void 0);_.I([_.K(),_.Z("design:type",Object)],HI.prototype,"originalText",void 0);_.I([_.K(),_.Z("design:type",Object)],HI.prototype,"originalQuery",void 0);
_.I([_.K(),_.Z("design:type",Object)],HI.prototype,"originalEndpoint",void 0);_.I([_.K({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.Z("design:type",Boolean)],HI.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.I([_.yU({is:"yt-search-query-correction",disableElementRegistration:!0})],HI);
_.m(HI,"yt-search-query-correction",function(){if(OZM===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;LcJ===void 0&&(LcJ=document.createElement("template"));var X=LcJ;O.call(L,X.content.cloneNode(!0),A.content.firstChild);OZM=A}A=OZM;return A},{mode:2});_.y3("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var z9=function(){return _.G.apply(this,arguments)||this};
_.g(z9,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],z9.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],z9.prototype,"data",void 0);_.I([_.yU({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],z9);
_.m(z9,"yt-did-you-mean-renderer",function(){if(AeJ===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;ohn===void 0&&(ohn=document.createElement("template"));var X=ohn;O.call(L,X.content.cloneNode(!0),A.content.firstChild);AeJ=A}A=AeJ;return A},{mode:2});var XIX;var xX7;_.y3("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var BI=function(){return _.G.apply(this,arguments)||this};
_.g(BI,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],BI.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],BI.prototype,"data",void 0);_.I([_.yU({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],BI);
_.m(BI,"yt-including-results-for-renderer",function(){if(xX7===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;XIX===void 0&&(XIX=document.createElement("template"));var X=XIX;O.call(L,X.content.cloneNode(!0),A.content.firstChild);xX7=A}A=xX7;return A},{mode:2});var s_X;var JeS;_.y3("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var MX=function(){return _.G.apply(this,arguments)||this};
_.g(MX,_.G);MX.prototype.computeExtraClasses_=function(A,L){var O="";A&&(O+=" "+A.toLowerCase().replace(/_/g,"-"));L&&(O+=" "+L.toLowerCase().replace(/_/g,"-"));return O};
MX.prototype.computeUrlImg_=function(){var A=this.data;A.image&&(_.YJ(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.uB(A.image.thumbnails,Number.MAX_VALUE)+")")};
MX.prototype.computeUrlImg_=MX.prototype.computeUrlImg_;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],MX.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],MX.prototype,"data",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],MX.prototype,"computeUrlImg_",null);_.I([_.yU({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],MX);
_.m(MX,"yt-music-pass-feature-info-renderer",function(){if(JeS===void 0){var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;s_X===void 0&&(s_X=document.createElement("template"));var X=s_X;O.call(L,X.content.cloneNode(!0),A.content.firstChild);JeS=A}A=JeS;return A},{mode:2});var PUk;var dXS;_.y3("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var $g=function(){return _.G.apply(this,arguments)||this};
_.g($g,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],$g.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],$g.prototype,"data",void 0);_.I([_.yU({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],$g);
_.m($g,"yt-no-results-found-showing-results-for-renderer",function(){if(dXS===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;PUk===void 0&&(PUk=document.createElement("template"));var X=PUk;O.call(L,X.content.cloneNode(!0),A.content.firstChild);dXS=A}A=dXS;return A},{mode:2});var YnS;var uDJ;_.y3("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var a_=function(){return _.G.apply(this,arguments)||this};
_.g(a_,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],a_.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],a_.prototype,"data",void 0);_.I([_.yU({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],a_);
_.m(a_,"yt-results-without-quotes-renderer",function(){if(uDJ===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;YnS===void 0&&(YnS=document.createElement("template"));var X=YnS;O.call(L,X.content.cloneNode(!0),A.content.firstChild);uDJ=A}A=uDJ;return A},{mode:2});var TCB;var VwS;_.y3("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var kg=function(){return _.G.apply(this,arguments)||this};
_.g(kg,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],kg.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],kg.prototype,"data",void 0);_.I([_.yU({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],kg);
_.m(kg,"yt-search-no-results-renderer",function(){if(VwS===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;TCB===void 0&&(TCB=document.createElement("template"));var X=TCB;O.call(L,X.content.cloneNode(!0),A.content.firstChild);VwS=A}A=VwS;return A},{mode:2});var DXX;var ee7;_.y3("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var Un=function(){return _.G.apply(this,arguments)||this};
_.g(Un,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Un.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Un.prototype,"data",void 0);_.I([_.yU({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],Un);
_.m(Un,"yt-showing-results-for-renderer",function(){if(ee7===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;DXX===void 0&&(DXX=document.createElement("template"));var X=DXX;O.call(L,X.content.cloneNode(!0),A.content.firstChild);ee7=A}A=ee7;return A},{mode:2});var Egn;var ngM;var twS;var bZz;var vI=function(){var A=_.G.apply(this,arguments)||this;A.answerExpanded=!1;return A};
_.g(vI,_.G);vI.prototype.toggleAnswer_=function(A){var L=_.AT(A);L&&L.classList.contains("yt-simple-endpoint")||(A.preventDefault(),A.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
vI.prototype.toggleAnswer_=vI.prototype.toggleAnswer_;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],vI.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],vI.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],vI.prototype,"answerExpanded",void 0);_.I([_.by("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],vI.prototype,"toggleAnswer_",null);
_.I([_.yU({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],vI);
_.m(vI,"yt-generic-faq-question-renderer",function(){if(bZz===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;twS===void 0&&(twS=document.createElement("template"));var X=twS;O.call(L,X.content.cloneNode(!0),A.content.firstChild);bZz=A}A=bZz;return A},{mode:2});_.y3("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var o_=function(){return _.G.apply(this,arguments)||this};
_.g(o_,_.G);o_.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],o_.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],o_.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],o_.prototype,"data",void 0);_.I([_.yU({is:"yt-faq-section-renderer",disableElementRegistration:!0})],o_);
_.m(o_,"yt-faq-section-renderer",function(){if(ngM===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;Egn===void 0&&(Egn=document.createElement("template"));var X=Egn;O.call(L,X.content.cloneNode(!0),A.content.firstChild);ngM=A}A=ngM;return A},{mode:2});var he7;var SnM;_.y3("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var AO=function(){return _.G.apply(this,arguments)||this};
_.g(AO,_.G);
AO.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"}}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],AO.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],AO.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],AO.prototype,"data",void 0);_.I([_.yU({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],AO);
_.m(AO,"yt-offer-item-expanded-renderer",function(){if(SnM===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;he7===void 0&&(he7=document.createElement("template"));var X=he7;O.call(L,X.content.cloneNode(!0),A.content.firstChild);SnM=A}A=SnM;return A},{mode:2});var qnk;var ggS;_.y3("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var LK=function(){return _.G.apply(this,arguments)||this};
_.g(LK,_.G);
LK.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"}}}}};
LK.prototype.computeFullWidthMode=function(A){return!(!A||!A.fullWidthMode)};
LK.prototype.computeBorderlessMode=function(A){return!(!A||!A.borderlessMode)};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],LK.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],LK.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],LK.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.Z("design:type",Boolean)],LK.prototype,"fullWidthMode",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.Z("design:type",Boolean)],LK.prototype,"borderlessMode",void 0);_.I([_.yU({is:"yt-offer-item-renderer",disableElementRegistration:!0})],LK);
_.m(LK,"yt-offer-item-renderer",function(){if(ggS===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;qnk===void 0&&(qnk=document.createElement("template"));var X=qnk;O.call(L,X.content.cloneNode(!0),A.content.firstChild);ggS=A}A=ggS;return A},{mode:2});var wIS;var pIX;_.y3("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var OX=function(){return _.G.apply(this,arguments)||this};
_.g(OX,_.G);OX.prototype.computeAriaLevel_=function(A){return this.getLevelID_(A)};
OX.prototype.getLevelID_=function(A){return(A=A.match(/[0-9]+$/))&&A.length==1?A[0]:"1"};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],OX.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],OX.prototype,"data",void 0);_.I([_.K({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.Z("design:type",String)],OX.prototype,"ariaLevel",void 0);_.I([_.K({value:"heading",reflectToAttribute:!0}),_.Z("design:type",String)],OX.prototype,"role",void 0);
_.I([_.K({value:-1,reflectToAttribute:!0}),_.Z("design:type",Number)],OX.prototype,"tabindex",void 0);_.I([_.yU({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],OX);
_.m(OX,"yt-subscription-product-header-renderer",function(){if(pIX===void 0){var A=document.createElement("template");_.p(A,"\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");A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;wIS===void 0&&(wIS=document.createElement("template"));var X=wIS;O.call(L,X.content.cloneNode(!0),A.content.firstChild);pIX=A}A=pIX;return A},{mode:2});var iZJ;var NCJ;_.y3("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var XU=function(){return _.G.apply(this,arguments)||this};
_.g(XU,_.G);XU.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:_.Zr("menuRenderer"),events:!0}}};
XU.prototype.onStampFinished_=function(){_.YJ(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
XU.prototype.onStampFinished_=XU.prototype.onStampFinished_;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],XU.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],XU.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],XU.prototype,"data",void 0);_.I([_.by("yt-rendererstamper-finished"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],XU.prototype,"onStampFinished_",null);
_.I([_.yU({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],XU);
_.m(XU,"yt-subscription-product-renderer",function(){if(NCJ===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;iZJ===void 0&&(iZJ=document.createElement("template"));var X=iZJ;O.call(L,X.content.cloneNode(!0),A.content.firstChild);NCJ=A}A=NCJ;return A},{mode:2});var re$;var KcM;_.y3("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var x0=function(){return _.G.apply(this,arguments)||this};
_.g(x0,_.G);x0.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
x0.prototype.imageScrimColorValuesChanged_=function(){var A,L=(A=this.data)==null?void 0:A.imageScrimColorValues;_.YJ(this.hostElement).querySelector("#scrim").style.backgroundColor=L?_.Hy(L[0]):"transparent"};
x0.prototype.imageScrimColorValuesChanged_=x0.prototype.imageScrimColorValuesChanged_;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],x0.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],x0.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],x0.prototype,"data",void 0);
_.I([_.hT("data.imageScrimColorValues"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],x0.prototype,"imageScrimColorValuesChanged_",null);_.I([_.yU({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],x0);
_.m(x0,"yt-subscription-product-upsell-offer-renderer",function(){if(KcM===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;re$===void 0&&(re$=document.createElement("template"));var X=re$;O.call(L,X.content.cloneNode(!0),A.content.firstChild);KcM=A}A=KcM;return A},{mode:2});var G9z;var lHM;var cen;var CUX;var Fcn;var ReM;var sX=function(){return _.G.apply(this,arguments)||this};
_.g(sX,_.G);sX.prototype.onYtServiceRequestError_=function(A){_.JC(this.hostElement,A.detail.error.message)};
sX.prototype.onYtServiceRequestError_=sX.prototype.onYtServiceRequestError_;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],sX.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],sX.prototype,"data",void 0);_.I([_.K({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],sX.prototype,"collapsible",void 0);_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],sX.prototype,"isManageRed",void 0);
_.I([_.by("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],sX.prototype,"onYtServiceRequestError_",null);_.I([_.yU({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],sX);
_.m(sX,"yt-single-ypc-offer-renderer",function(){if(ReM===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;Fcn===void 0&&(Fcn=document.createElement("template"));var X=Fcn;O.call(L,X.content.cloneNode(!0),A.content.firstChild);ReM=A}A=ReM;return A},{mode:2});var JO=function(){return _.G.apply(this,arguments)||this};
_.g(JO,_.G);JO.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],JO.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],JO.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],JO.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],JO.prototype,"isManageRed",void 0);_.I([_.yU({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],JO);
_.m(JO,"yt-single-ypc-offer-list-renderer",function(){if(CUX===void 0){var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;cen===void 0&&(cen=document.createElement("template"));var X=cen;O.call(L,X.content.cloneNode(!0),A.content.firstChild);CUX=A}A=CUX;return A},{mode:2});var Q_S;var mXn;_.y3("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var Pc=function(){return _.G.apply(this,arguments)||this};
_.g(Pc,_.G);Pc.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Pc.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Pc.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Pc.prototype,"data",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],Pc.prototype,"isManageRed",void 0);_.I([_.yU({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],Pc);
_.m(Pc,"yt-ypc-offers-list-renderer",function(){if(mXn===void 0){var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;Q_S===void 0&&(Q_S=document.createElement("template"));var X=Q_S;O.call(L,X.content.cloneNode(!0),A.content.firstChild);mXn=A}A=mXn;return A},{mode:2});_.y3("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var dy=function(){return _.G.apply(this,arguments)||this};
_.g(dy,_.G);
dy.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}}}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],dy.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],dy.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],dy.prototype,"data",void 0);_.I([_.yU({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],dy);
_.m(dy,"yt-unlimited-manage-subscription-page-renderer",function(){if(lHM===void 0){var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;G9z===void 0&&(G9z=document.createElement("template"));var X=G9z;O.call(L,X.content.cloneNode(!0),A.content.firstChild);lHM=A}A=lHM;return A},{mode:2});var fHn;var IHk;var Y0=function(){return _.G.apply(this,arguments)||this};
_.g(Y0,_.G);_.P=Y0.prototype;_.P.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.P.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.P.onKeypress_=function(A){A.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.P.handleHeaderTap_=function(A){A.preventDefault();A.stopPropagation();this.expandOffers_()};
_.P.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.P.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
Y0.prototype.dataChanged_=Y0.prototype.dataChanged_;_.I([_.N(_.lh),_.Z("design:type",Object)],Y0.prototype,"ironA11yKeysBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Y0.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Y0.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Y0.prototype,"data",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Y0.prototype,"offersVisible_",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Y0.prototype,"dataChanged_",null);_.I([_.yU({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],Y0);
_.m(Y0,"yt-collapsible-ypc-offer-renderer",function(){if(IHk===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;fHn===void 0&&(fHn=document.createElement("template"));var X=fHn;O.call(L,X.content.cloneNode(!0),A.content.firstChild);IHk=A}A=IHk;return A},{mode:2});var yek;var ZZB;_.y3("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var ud=function(){return _.G.apply(this,arguments)||this};
_.g(ud,_.G);_.P=ud.prototype;_.P.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.P.dataChanged_=function(){if(this.data.backgroundImage){var A=_.uB(this.data.backgroundImage.thumbnails,screen.width),L=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=L?"linear-gradient(180deg, "+L+"), url("+A+")":"url("+A+")";this.data.gtmId&&_.y6(this.data.gtmId,_.ms("GL",""))}};
_.P.onYtServiceRequestError_=function(A){_.JC(this.hostElement,A.detail.error.message)};
_.P.getScrimLayerColorStops_=function(){var A,L,O=(A=this.data.unlimitedHeaderV2Data)==null?void 0:(L=A.unlimitedHeaderV2Data)==null?void 0:L.scrimLayerColors;if(!O)return null;var X=100/O.length;return O.map(function(x,J){J*=X;return _.Hy(x)+" "+J+"%"}).join(",")};
_.P.computeLogoWithPadding=function(A){var L,O,X;return(A=(L=A.unlimitedLogoImage)==null?void 0:(O=L.thumbnails)==null?void 0:(X=O[0])==null?void 0:X.height)&&A%31===0?!0:!1};
ud.prototype.onYtServiceRequestError_=ud.prototype.onYtServiceRequestError_;ud.prototype.dataChanged_=ud.prototype.dataChanged_;_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],ud.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],ud.prototype,"ytRendererBehavior",void 0);_.I([_.K({computed:"computeLogoWithPadding(data)"}),_.Z("design:type",Boolean)],ud.prototype,"logoWithPadding",void 0);
_.I([_.K(),_.Z("design:type",Object)],ud.prototype,"data",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ud.prototype,"dataChanged_",null);_.I([_.by("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],ud.prototype,"onYtServiceRequestError_",null);_.I([_.yU({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],ud);
_.m(ud,"yt-unlimited-page-header-renderer",function(){if(ZZB===void 0){var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;yek===void 0&&(yek=document.createElement("template"));var X=yek;O.call(L,X.content.cloneNode(!0),A.content.firstChild);ZZB=A}A=ZZB;return A},{mode:2});var j_Z;var WcB;_.y3("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var Tr=function(){return _.G.apply(this,arguments)||this};
_.g(Tr,_.G);Tr.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Tr.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Tr.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Tr.prototype,"data",void 0);_.I([_.yU({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],Tr);
_.m(Tr,"yt-unlimited-user-notification-renderer",function(){if(WcB===void 0){var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;j_Z===void 0&&(j_Z=document.createElement("template"));var X=j_Z;O.call(L,X.content.cloneNode(!0),A.content.firstChild);WcB=A}A=WcB;return A},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.ylk=_.xa(function(A){var L=_.OY(A,{numberOfChips:5}).numberOfChips;return _.D("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.D(_.g9,{each:function(){return Array(L==null?void 0:L())}},function(){return _.D("div",{class:"ytGhostChipShelfChip"})}))},"Cg");_.ZdB=_.xa(function(A){var L=function(){var J;return((J=A.data)==null?void 0:J.call(A).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},O=_.S8(),X=_.X5().resolve(_.Ly);
_.r9(function(){requestAnimationFrame(function(){var J;(J=O.lottieEl)==null||J.addEventListener("DOMLoaded",function(){var Y;(Y=A.onLottieLoaded)==null||Y.call(A)})})});
var x={};return _.D("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var J;return((J=A.data)==null?void 0:J.call(A).targetId)||""}},_.D(_.ER,{className:_.qn((x.ytChatLoadingViewModelRtl=X==="rtl",x)),
animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:L()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||L()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:L()}}},
animationRef:O}))},"Dg");
}catch(e){_._DumpException(e)}
try{
var LsM,OBS,XYM,xEz,sOS,J8M,Pk7,dEX,us$,bBJ,wa,t67,DEJ,nLk,ELM,efk,V6B,hf7,SsX,qsZ,gLX,pk,wYX,pYX,r8J,ra,iB$,Kk,iT,Gs,N97,N9,Ksn,GDn,lJX,c8$,CkJ,FsM,QOJ,y8z,Ws$,HBz,zfk,B9n,M6Z,$EJ,aJz,UEz,oL7,L7k,OeQ,XOn,xOk,JjX,PKX,dOM,YtB,u5J,TN7,VhZ,enk,beB,thS,E$S,hnZ,n$S,StS,pOQ,wOX,qtn,g$$,co,ieQ,NNz,K7Q,Rnk,QZM,mOJ,fKQ,IKX,yjM,Zez,jZM,W7Z,HeZ,BNn,Mh7,$OX,cjJ;
_.SL=function(A){var L=new _.pe("Error accessing DB");return _.F9D().then(function(O){return new Promise(function(X,x){try{var J=O.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(A);J.onsuccess=function(){var Y=J.result;X(Y?Y.value:null)};
J.onerror=function(){L.params={key:A,source:"onerror"};x(L)}}catch(Y){L.params={key:A,
thrownError:String(Y)},x(L)}})},function(){return null})};
_.A8Z=function(A,L){var O=_.Lh9(L);O!=="javascript:"&&O!=="data:"&&A.setAttribute("href",L)};
LsM=function(A,L){return _.eM(A.entities,"flowStateEntity",L)};
OBS=function(A,L){return _.eM(A.entities,"contextNoteUserRatingEntityPayload",L)};
XYM=function(A){return _.Fp(A,function(L){return L.languageCode==="en"})};
xEz=function(A){var L=q9;if(_.VIM(A))A.setOption("captions","stickyLoading",{}),A.setOption("captions","track",{});else{var O=_.Fp(_.oA9(A),function(X){return X.displayName===L});
A.setOption("captions","track",O)}};
sOS=function(A){if(!A)return 0;var L=A.getPresentingPlayerType(),O=A.getVideoData();return O&&O.isLive?(A=A.getProgressState(L),A.seekableEnd-A.seekableStart):A.getDuration(L)};
J8M=function(A,L){for(var O=_.d(Object.keys(A)),X=O.next();!X.done;X=O.next())if(X=X.value,A[X]!==L[X])return!1;return!0};
Pk7=function(){return document.getElementById("player-control-overlay")};
dEX=function(A){A!==-1&&!_.h("player_controls_log_creation_killswitch")&&Pk7()&&(_.Rk("pcu_cs",A),_.Rk("pcu_ce"))};
us$=function(A){return _.D("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},(A.subscribeButton?[A.subscribeButton,A.channelAccess]:[A.channelAccess]).map(function(L){return _.D("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.D("div",{class:"yt-profile-identity-info-view-model-wiz--button"},YsS(L)))}))};
_.T9z=function(A){var L=A.data;var O=A.hideDivider;A=A.isChannelInfoCard;var X={};X=(X["yt-profile-identity-info-view-model-wiz__frame"]=!0,X["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=!L.channelBanner,X);X={class:_.gl(X)};var x,J={imageBannerViewModel:{image:(x=L.channelBanner)==null?void 0:x.image,style:"IMAGE_BANNER_STYLE_INSET"}};x=_.D("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},L.channelBanner?_.D("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},
YsS(J,{imageBannerViewModel:{isPositionRelative:!0}})):null);J=_.D("div",{class:"yt-profile-identity-info-view-model-wiz__avatar"},YsS(L.avatar));var Y;var T=_.D("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.D("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},L.channelDisplayName),L.verifiedOrOacBadge?_.D("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.D(_.XV,{data:{thumbnails:[{url:(Y=L.verifiedOrOacBadge)==null?void 0:Y.badgeUrl}]},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})):null);Y=_.D("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},T,YsS(L.threeDotMenu));T=_.D("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.D("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.D("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},L.channelHandle),L.channelPronouns&&L.channelHandle?_.D("span",
{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):null,_.D("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},L.channelPronouns)),_.D("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.D("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},L.leftOfBulletInfo),L.leftOfBulletInfo&&L.rightOfBulletInfo?_.D("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):
null,_.D("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},L.rightOfBulletInfo)));Y=_.D("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},Y,T);return _.D("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.D("div",X,x,_.D("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},J,Y),L.channelDescription?_.D("div",{class:A?"yt-profile-identity-info-view-model-wiz__channel-description-alternate":"yt-profile-identity-info-view-model-wiz__channel-description"},
L.channelDescription):null,us$(L),O?null:_.D("div",{class:"yt-profile-identity-info-view-model-wiz__divider"}," ")))};
bBJ=function(A,L){var O=_.LT(A,{}),X=V6B("top",L),x=V6B("bottom",L),J=V6B("left",L),Y=V6B("right",L);return _.rl({top:function(){return wa(O().position,X)},
bottom:function(){return wa(O().position,x)},
left:function(){return wa(O().position,J)},
right:function(){return wa(O().position,Y)},
position:function(){return wa(O().positionType,DEJ)},
height:function(){return wa(O().height,pk)},
width:function(){return wa(O().width,pk)},
"min-width":function(){return wa(O().minWidth,pk)},
"min-height":function(){return wa(O().minHeight,pk)},
"max-width":function(){return wa(O().maxWidth,pk)},
"max-height":function(){return wa(O().maxHeight,pk)},
"aspect-ratio":function(){return wa(O().aspectRatio,String)},
"margin-top":function(){return wa(O().margin,X)},
"margin-bottom":function(){return wa(O().margin,x)},
"margin-left":function(){return wa(O().margin,J)},
"margin-right":function(){return wa(O().margin,Y)},
"padding-top":function(){return wa(O().padding,X)},
"padding-bottom":function(){return wa(O().padding,x)},
"padding-left":function(){return wa(O().padding,J)},
"padding-right":function(){return wa(O().padding,Y)},
"flex-direction":function(){return wa(O().flexDirection,efk)},
"justify-content":function(){return wa(O().justifyContent,ELM)},
"align-items":function(){return wa(O().alignItems,nLk)},
"flex-grow":function(){return wa(O().flexGrow,String)},
"flex-shrink":function(){return wa(O().flexShrink,String)},
"flex-basis":function(){return wa(O().flexBasis,pk)},
"align-self":function(){return wa(O().alignSelf,nLk)},
"flex-wrap":function(){return wa(O().flexWrap,t67)},
"align-content":function(){return wa(O().alignContent,nLk)}})};
wa=function(A,L){return A!==void 0?L(A):void 0};
t67=function(A){switch(A){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
DEJ=function(A){switch(A){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
nLk=function(A){switch(A){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"}};
ELM=function(A){switch(A){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"}};
efk=function(A){switch(A){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"}};
V6B=function(A,L){var O=L==="rtl";switch(A){case "top":var X=hf7;break;case "bottom":X=SsX;break;case "left":X=qsZ;break;default:X=gLX}return function(x){return wa(X(x,O),pk)}};
hf7=function(A){var L=A.top;var O=A.vertical;A=A.all;var X;return(X=L!=null?L:O)!=null?X:A};
SsX=function(A){var L=A.bottom;var O=A.vertical;A=A.all;var X;return(X=L!=null?L:O)!=null?X:A};
qsZ=function(A,L){var O=A.left;var X=A.end;var x=A.start;var J=A.horizontal;A=A.all;var Y,T;return(T=(Y=O!=null?O:L?X:x)!=null?Y:J)!=null?T:A};
gLX=function(A,L){var O=A.right;var X=A.end;var x=A.start;var J=A.horizontal;A=A.all;var Y,T;return(T=(Y=O!=null?O:L?x:X)!=null?Y:J)!=null?T:A};
pk=function(A){var L=A.value;switch(A.unit){case "YPC_DIMENSION_UNIT_POINT":return L+"px";case "YPC_DIMENSION_UNIT_FRACTION":return L+"%";default:return""+L}};
wYX=function(A){switch(A){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"}};
pYX=function(A){var L=A!=null?A:{};A=L.fontRole;var O=L.fontSize;L=L.fontWeight;if(A!==null&&O!==null)switch(A){case "YPC_FONT_ROLE_DISPLAY":switch(O){case "YPC_FONT_SIZE_L":return L==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return L==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return L==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return L==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(O){case "YPC_FONT_SIZE_L":return L==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return L==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return L===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return L==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(O){case "YPC_FONT_SIZE_XL":return L==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return L==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return L==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return L==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return L==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
r8J=function(A,L,O){function X(n){return Object.values(n).map(function(t){var b=t.productId;t=t.pricingOptionIndex;return iT(x(b).pricingOptions,t).pricingOptionId})}
function x(n){return T().get(n)}
function J(n){n=X(n);O(n)}
var Y=N9([A,L],function(n,t){var b=n==null?void 0:n.selectedPricingOptions;n={};var S=!0;if(b&&t.length)for(var w=_.d(t),l=w.next();!l.done;l=w.next()){l=l.value;var F=iB$(l.pricingOptions,function(M){a:{M=M.pricingOptionId;for(var H=_.d(b),z=H.next();!z.done;z=H.next())if(z.value===M){M=!0;break a}M=!1}return M});
if(F>=0){S=!1;var R=iT(l.pricingOptions,F),y=void 0;n[l.groupId]={productId:l.productId,pricingOptionIndex:F,pricingGroupAttributes:(y=R)==null?void 0:y.pricingGroupAttributes}}}S&&t.length&&(S=iT(t[0].pricingOptions,0),n[t[0].groupId]={productId:t[0].productId,pricingOptionIndex:0,pricingGroupAttributes:S==null?void 0:S.pricingGroupAttributes});return n}),T=N9([L],function(n){return new Map(n.map(function(t){return[t.productId,
t]}))}),V=N9([L],function(n){var t=new Map;
n=_.d(n);for(var b=n.next();!b.done;b=n.next()){var S=b.value;b=S.groupId;var w=S.productId;S=_.d(ra(S.pricingOptions));for(var l=S.next();!l.done;l=S.next()){var F=_.d(l.value);l=F.next().value;F=F.next().value;t.set(F.pricingOptionId,{groupId:b,productId:w,index:l,pricingOption:F,pricingGroupAttributes:F.pricingGroupAttributes})}}return t}),E=N9([L],function(n){var t=new Map;
n=_.d(n);for(var b=n.next();!b.done;b=n.next()){var S=b.value;b=S.groupId;var w=S.productId,l=void 0;S=_.d(ra((l=S.pricingGroups)!=null?l:[]));for(l=S.next();!l.done;l=S.next()){var F=_.d(l.value);l=F.next().value;F=F.next().value;t.set(F.pricingGroupId,{groupId:b,productId:w,index:l,pricingGroup:F,pricingGroupAttributes:F.pricingGroupAttributes})}}return t});
return{getProductById:x,isProductSelected:function(n){var t=x(n);if(!t)return!1;var b;return((b=Y()[t.groupId])==null?void 0:b.productId)===n},
getSelectedPricingOptions:function(){return Object.values(Y()).map(function(n){var t=n.productId;n=n.pricingOptionIndex;return iT(x(t).pricingOptions,n)})},
getSelectedPricingGroupAttributesByGroupId:function(n){var t;return(n=(t=Y()[n])==null?void 0:t.pricingGroupAttributes)?Array.from(n):void 0},
getSelectedProductByGroupId:function(n){var t;return(n=(t=Y()[n])==null?void 0:t.productId)?x(n):void 0},
onProductSelected:function(n){var t=x(n);if(t){var b=Y(),S;if(((S=b[t.groupId])==null?void 0:S.productId)!==n){var w,l;S=(l=(w=b[t.groupId])==null?void 0:w.pricingOptionIndex)!=null?l:0;Kk(t.pricingOptions)<=S&&(S=0);w=iT(t.pricingOptions,S);var F;l={};J(Object.assign({},b,(l[t.groupId]={productId:n,pricingOptionIndex:S,pricingGroupAttributes:(F=w==null?void 0:w.pricingGroupAttributes)!=null?F:[]},l)))}}},
onPricingOptionSelected:function(n){var t=V().get(n);if(t){n=t.groupId;var b=t.productId;t=t.index;var S=Y(),w,l;if(((w=S[n])==null?void 0:w.productId)!==b||((l=S[n])==null?void 0:l.pricingOptionIndex)!==t){var F,R;w={};J(Object.assign({},S,(w[n]={productId:b,pricingOptionIndex:t,pricingGroupAttributes:(R=(F=S[n])==null?void 0:F.pricingGroupAttributes)!=null?R:[]},w)))}}},
onPricingGroupSelected:function(n){var t=E().get(n);if(t){n=t.groupId;var b=t.productId,S=t.pricingGroup.pricingGroupAttributes,w=x(b);if(w){t=Y();var l=t[n].pricingGroupAttributes,F;if(((F=t[n])==null?void 0:F.productId)!==b||!Gs(N97(l,Kk(S)),S)){F=Array.from(S);for(S=Kk(S);S<Kk(l);S++){var R="",y=!1,M=Array.from(F);M.push(iT(l,S));for(var H=_.d(w.pricingGroups),z=H.next();!z.done;z=H.next())if(z=z.value,Gs(z.pricingGroupAttributes,M)){F.push(iT(l,S));y=!0;break}else R===""&&Kk(z.pricingGroupAttributes)===
M.length&&Gs(N97(z.pricingGroupAttributes,F.length),F)&&(R=iT(z.pricingGroupAttributes,S));y||F.push(R)}R=t[n].pricingOptionIndex;S=[];y=new Map;M=0;w=_.d(ra(w.pricingOptions));for(H=w.next();!H.done;H=w.next())z=_.d(H.value),H=z.next().value,z=z.next().value,Gs(z.pricingGroupAttributes,F)&&S.push(H),Gs(z.pricingGroupAttributes,l)&&y.set(H,M++);S.length===0?l=0:(l=y.get(R),l=l!==void 0&&l<S.length?S[l]:S[0]);w={};J(Object.assign({},t,(w[n]={productId:b,pricingOptionIndex:l,pricingGroupAttributes:F},
w)))}}}},
onClearGroupSelected:function(n){var t=Y();t[n]&&(t=Object.fromEntries(Object.entries(t).filter(function(b){return _.d(b).next().value!==n})),J(t))}}};
ra=function(A){return function O(){var X,x,J,Y,T;return _.Er(O,function(V){switch(V.nextAddress){case 1:_.be(V,2),X=0,x=_.d(A),J=x.next();case 4:if(J.done){V.jumpTo(2);break}Y=J.value;T=_.nq;return V.yield([X++,Y],7);case 7:T(V.yieldResult);J=x.next();V.jumpTo(4);break;case 2:_.tn(V),_.hn(V,0)}})}()};
iB$=function(A,L){A=_.d(ra(A));for(var O=A.next();!O.done;O=A.next()){var X=_.d(O.value);O=X.next().value;X=X.next().value;if(L(X))return O}return-1};
Kk=function(A){var L=0;for(A=A[Symbol.iterator]();!A.next().done;)++L;return L};
iT=function(A,L){A=_.d(ra(A));for(var O=A.next();!O.done;O=A.next()){var X=_.d(O.value);O=X.next().value;X=X.next().value;if(O===L)return X}};
Gs=function(A,L){if(!A&&!L)return!0;if(!A||!L)return!1;A=Array.from(A);L=Array.from(L);if(A.length!==L.length)return!1;for(var O=0;O<A.length;O++)if(A[O]!==L[O])return!1;return!0};
N97=function(A,L){L=L===void 0?Infinity:L;var O=[];A=_.d(ra(A));for(var X=A.next();!X.done;X=A.next()){var x=_.d(X.value);X=x.next().value;x=x.next().value;if(X>=L)break;X>=0&&O.push(x)}return O};
N9=function(A,L){var O,X;return function(){for(var x=A.map(function(Y){return Y()}),J=0;J<x.length;J++)if(!O||x[J]!==O[J]){O=x;
X=L.apply(null,_.le(x));break}return X}};
Ksn=function(A,L,O){var X=[];A=_.d(A);for(var x=A.next();!x.done;x=A.next()){x=x.value;var J=void 0;((J=L)==null?0:J.length)&&!Gs(x.pricingGroupAttributes,L)||X.push({pricingOption:x,isSelected:O.includes(x.pricingOptionId)})}return X};
GDn=function(A,L){return _.eM(A.entities,"pdpStateEntity",L)};
lJX=function(A){var L,O;return!!(A.productId&&A.groupId&&((L=A.pricingOptions)==null?0:L.length)&&A.pricingOptions.every(function(X){return X.pricingOptionId})&&((O=A.pricingGroups)==null||!O.length||Array.isArray(A.pricingGroups)&&A.pricingGroups.every(function(X){return X.pricingGroupId&&X.pricingGroupAttributes&&X.pricingGroupAttributes.length>0})))};
c8$=function(A,L,O){return r8J(A,N9([L],function(X){return X.filter(lJX)}),O)};
CkJ=function(A,L){return L.length===0?[A]:[A.slice(0,L[0]),A.slice(L[0])].filter(function(O){return O.length>0})};
FsM=function(A){switch(A){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""}};
QOJ=function(A,L,O,X){X=Object.assign({},X);_.Iy(X,Rf7,{selectedOptionId:A,primaryButtonOverride:O});_.oJ().dispatch(_.NV("flowStateEntity",L,X))};
_.IJZ=function(){if(!mEz){var A=_.d(_.uQ(new Map,void 0,"Xuivje"));mEz=A.next().value;fJZ=A.next().value}return mEz};
y8z=function(A){if(A)return _.IJZ()().get(A)};
_.ZBM=function(A,L){if(A&&L){var O=_.IJZ();O().set(A,L);A=O();fJZ(new Map(A))}};
_.jOk=function(A){return{onSubmit:function(){var L;(L=y8z(A()))==null||L.onSubmit()},
isValid:function(){var L=y8z(A());return L?L.isValid():!0},
isSubmitting:function(){var L,O;return!!((L=y8z(A()))==null?0:(O=L.isSubmitting)==null?0:O.call(L))}}};
Ws$=function(A){switch(A){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleContentFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleContentFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleContentFontSizeM";default:return"ytLandingPageViewModelHeaderTitleContentFontSizeL"}};
HBz=function(A){switch(A){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeM";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_L":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XL":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXL";
default:return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL"}};
zfk=function(A,L){return _.eM(A.entities,"contextNoteFeedEntityPayload",L)};
B9n=function(A,L){switch(A){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return L==null?void 0:L.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return L==null?void 0:L.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return L==null?void 0:L.ratingNotHelpfulText}};
M6Z=function(A,L){return{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",accessibilityText:A.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:A.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:A.deleteDialogTitle}]},dialogMessages:[{runs:[{text:A.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:A.deleteActionText}]},command:{performCommentActionEndpoint:{action:L}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:A.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
$EJ=function(A){A.style.height="auto";A.style.height=A.scrollHeight+"px"};
aJz=function(A){return[A.syncStep,A.asyncStep].filter(function(L){return L!==void 0})};
UEz=function(A){var L,O,X;if(A=(L=A.structuredContextNoteFormSchema)==null?void 0:(O=L.fieldSchemas)==null?void 0:(X=O.noteBody)==null?void 0:X.validationSchema)for(L=_.d(aJz(A)),O=L.next();!O.done;O=L.next()){O=O.value.rules;if(!O)break;O=_.d(O);for(O=O.next();!O.done;O=O.next())return _.q(O.value,_.kDQ)}};
oL7=function(A){if(A){A=_.d(aJz(A));for(var L=A.next();!L.done;L=A.next()){L=L.value.rules;if(!L)break;L=_.d(L);for(L=L.next();!L.done;L=L.next())return _.q(L.value,vL$)}}};
L7k=function(A){if(A){A=_.d(aJz(A));for(var L=A.next();!L.done;L=A.next()){L=L.value.rules;if(!L)break;L=_.d(L);for(L=L.next();!L.done;L=L.next())return _.q(L.value,AjS)}}};
OeQ=function(A){A=/^https?:\/\//.test(A)?A:"http://"+A;try{var L=_.jV(A)}catch(O){return!1}if(L.toString()!==A)return!1;A=L.JSC$11053_domain_.split(".");return A.length>1&&A.every(function(O){return!!O})};
XOn=function(A,L,O,X){var x;X=(x=X.structuredContextNoteData)==null?void 0:x.createCommentEndpoint;if(x=_.q(X,_.nq7))return x.commentText=_.Ue(A),x.videoPositionMention=L,x.sources=O,X};
xOk=function(A){return A==null?void 0:A.stringValue};
JjX=function(A,L,O){A=A.map(function(X,x){return{listItemViewModel:{title:X.title,subtitle:X.subtitle,leadingImage:X.leadingImage,trailingImage:x===L?sZJ:void 0,rendererContext:{commandContext:{onTap:X.onTap}}}}});
return Object.assign({},O&&{header:{panelHeaderViewModel:{title:O}}},{content:{listViewModel:{listItems:A}}})};
PKX=function(A,L){if(A&&L)switch(L){case "SELECTION_TYPE_BOOL":return A.boolValue;case "SELECTION_TYPE_INT":return A.intValue;case "SELECTION_TYPE_STRING":return A.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return A.privacyStatusValue}};
dOM=function(A){var L;A=(L=A.options)==null?void 0:L.findIndex(function(O){return O.isSelected});
return A===void 0?-1:A};
YtB=function(A,L,O){var X=function(){return A().label},x={},J=_.qn("ytDropdownViewModelLabel",(x.ytDropdownViewModelLabelError=L,x));
return _.D(_.e,{cond:function(){return A().label&&!(O()===-1&&A().label&&!A().placeholderText)},
then:function(){return _.D("div",{class:J},_.D(_.Xg,{text:X}))}})};
u5J=function(A,L){var O={};O=_.qn("ytDropdownViewModelTitle",(O.ytDropdownViewModelTitlePlaceholder=function(){return L()===-1},O));
return _.D("div",{class:O},_.D(_.Xg,{text:function(){var X=A();var x=L();if(x===-1)X=X.placeholderText?X.placeholderText:X.label;else{var J,Y;X=(J=X.options)==null?void 0:(Y=J[x])==null?void 0:Y.title}return X}}))};
TN7=function(A,L){var O=function(){return A().hint};
return _.D(_.Xs,null,_.D(_.e,{cond:function(){return O()&&!L()},
then:function(){return _.D("div",{class:_.qn("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.D(_.Xg,{text:O,className:"ytDropdownViewModelSupportText"}))}}),_.D(_.e,{cond:L,
then:function(){return _.D("div",{id:"dropdown-view-model-error",role:"alert",class:_.qn("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.D(_.Ky,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.D(_.Xg,{text:L,className:"ytDropdownViewModelSupportText"}))}}))};
VhZ=function(A,L){var O=_.X5().resolve(_.csB);_.GD(function(){var X=A().id;X&&O!=null&&O.dropdownMap.set(X,L)})};
enk=function(A){A=_.q(A.scheduleButton,DOQ);A=_.q(A==null?void 0:A.primaryButton,_.Cu);A=_.q(A==null?void 0:A.onTap,_.WR);var L,O,X=((O=_.q(A,_.em))==null?void 0:O.commands)||[A];O=_.d(X);for(A=O.next();!A.done&&!(L=_.q(A.value,_.bCN));A=O.next());var x;L=(x=L)==null?void 0:x.createBroadcastRequest;if(!L)throw Error("Lj");return L};
beB=function(A,L,O){O=O===void 0?{}:O;var X,x;return _.u(function(J){if(X=E$S(L))return J.return(X);(x=n$S(A,L,O))&&thS(L,x);return J.return(x)})};
thS=function(A,L){var O=hnZ(A);O&&L.then(function(X){_.X5().resolve(_.t2).put(O,new _.bR({innertubeResponse:X}))})};
E$S=function(A){if(A=hnZ(A)){var L=_.X5().resolve(_.t2);if(L.has(A))return L.get(A).then(function(O){return O==null?void 0:_.uE(O)})}return null};
hnZ=function(A){var L=_.q(A.endpoint,_.$O);if(L!=null&&L.videoId)return L={videoId:L.videoId},_.h("web_imp_player_mute_params")&&(L.mutedAtStart=A.startPlaybackInMutedState),_.MA("inline_playback",L)};
n$S=function(A,L,O){A=_.oQ(A,L.endpoint,StS(L,O)).then(function(X){return X});
return Promise.resolve(A)};
StS=function(A,L){L=_.h("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!A.startPlaybackInMutedState},L):Object.assign({},{vis:5,autonav:"1"},L);var O;L={contentPlaybackContext:_.ln(L,(O=_.q(A.endpoint.commandMetadata,_.LM))==null?void 0:O.url,window.location.href)};_.h("web_imp_player_mute_params")&&(L.overrideMutedAtStart=!A.startPlaybackInMutedState);return L};
pOQ=function(A,L){var O=window.MutationObserver;O&&(lT=new O(function(X,x){X=_.d(X);for(var J=X.next();!J.done;J=X.next()){J=J.value;var Y;if(Y=J.type==="childList"&&J.target)a:{Y=A;J=qtn(J.target);Y=qtn(Y);for(var T=null,V=0;V<J.length;V++)if(Y.includes(J[V])){if(V===0){Y=!1;break a}T=J[V];break}T?(J=g$$(J,T),Y=g$$(Y,T),Y=J<Y):Y=!1}if(Y){L();x.disconnect();break}}}),(O=wOX())&&lT.observe(O,{childList:!0,
subtree:!0}))};
wOX=function(){var A=document.getElementsByTagName("ytd-rich-grid-renderer");if(A.length>0)return A[0];A=document.getElementsByTagName("ytd-section-list-renderer");return A.length>0?A[0]:null};
qtn=function(A){for(var L=[];A;)L.push(A),A=A.parentElement;return L};
g$$=function(A,L){var O=Array.from(L.children);L=A.indexOf(L);return L>0?O.indexOf(A[L-1]):-1};
co=function(A,L,O){O=O===void 0?{}:O;return _.b3(A,O,L)};
ieQ=function(A){switch(A){case "MUSIC":return!0;default:return!1}};
NNz=function(A){return A==null?void 0:A.filter(function(L){return L.premiereTrailerBadgeRenderer})};
K7Q=function(A){var L,O=A==null?void 0:(L=A.find(function(t){return t.thumbnailOverlayTimeStatusRenderer}))==null?void 0:L.thumbnailOverlayTimeStatusRenderer,X,x;
if((O==null?0:(X=O.icon)==null?0:X.iconType)&&ieQ(O==null?void 0:(x=O.icon)==null?void 0:x.iconType)){var J;return{icon:O==null?void 0:(J=O.icon)==null?void 0:J.iconType}}var Y,T;var V=(A=(Y=A==null?void 0:(V=A.find(function(t){return t.thumbnailBottomOverlayViewModel}))==null?void 0:V.thumbnailBottomOverlayViewModel)==null?void 0:(T=Y.badges)==null?void 0:T.find(function(t){var b,S;
return((b=_.q(t,rjM))==null?void 0:(S=b.inlinePlaybackBadgeData)==null?void 0:S.replicateAsTimestamp)===!0}))?_.q(A,rjM):void 0;
if(V==null?0:V.icon){var E,n;if((V=(E=_.tFr(V==null?void 0:V.icon))==null?void 0:(n=E.clientResource)==null?void 0:n.imageName)&&ieQ(V))return{icon:V}}return{}};
Rnk=function(A,L){var O=GA$,X=_.d(_.uQ(lKB(new cjJ(function(){},O,L)),void 0,"PAnyd")),x=X.next().value,J=X.next().value,Y=new cjJ(function(T){J(T)},O,L);
_.ND(function(){Promise.resolve().then(function(){var T,V=(T=A())!=null?T:{};Y.playerControlsData=V;_.h("player_controls_skip_double_signal_old")&&(Y.lastSeenPlayerApi=_.Hw(V.playerApi));_.h("player_controls_skip_double_signal_old")||(Y.lastSeenPlayerApi=_.Hw(V.playerApi));CKZ(Y)});
_.rF(function(){F7Q(Y)})},"HikUP");
_.rF(function(){F7Q(Y)});
return function(){return x()}};
QZM=function(A){return function(L){var O=A(),X={playerState:L};if(L===1){var x;(x=O.playerApi)==null||x.loadModule("captions")}if(L===0){var J;(J=O.playerApi)==null||J.unloadModule("captions")}(L!==-1||_.h("web_imp_controls_set_player_state_killswitch"))&&O.setState(X)}};
mOJ=function(A){return function(L){A().setState({playbackRate:L})}};
fKQ=function(A){return function(L){var O=A(),X=O.playerApi,x=X==null?void 0:X.getVideoData(),J=(x==null?void 0:x.isLive)||!1;x=x==null?void 0:x.video_id;J={videoDuration:sOS(X||void 0),isLive:J,videoId:x};J.videoId!==O.videoId&&(J=Object.assign({},_.j3u(X),J));if(L==null?0:L.playertype)J.playerType=L.playertype;if(X){J.captionsAvailable=_.Xm(X);L=J;var Y;x=(Y=X.getStoryboardLevel(X.getNumberOfStoryboardLevels()-1))==null?void 0:Y.intervalMs;L.storyboardInterval=x?x/1E3:void 0;J.captionsAvailable&&
(J.captionsEnabled=_.VIM(X))}J.volumeMuted=!(X==null||!X.isMuted());O.setState(J)}};
IKX=function(A){return function(L){var O=A(),X=O.playerApi;if(X){var x=X.getPresentingPlayerType();L={playedTime:L||0,percentLoaded:X.getVideoLoadedFraction(),playerType:x};O.playerState===0&&(L.playedTime=O.videoDuration);O.isLive&&(x=X.getProgressState(x),L.playedTime-=x.seekableStart,L.videoDuration=sOS(X));if(O.playerType===1)X=!1;else{var J;if((J=O.uxConfig)==null?0:J.showCuedOverlay){var Y;X=!((Y=O.playerApi)==null?0:Y.getPlayerStateObject(O.playerType).isDomPaused)}else X=!0}X&&delete L.playedTime;
O.setState(L)}}};
yjM=function(A){return function(){var L=A(),O,X,x,J={volume:(x=(O=L.playerApi)==null?void 0:O.getVolume())!=null?x:0,volumeMuted:!((X=L.playerApi)==null||!X.isMuted())};L.setState(J)}};
Zez=function(A){return function(){var L=A(),O=L.playerApi;if(O){var X={captionsAvailable:_.Xm(O)};X.captionsAvailable&&(X.captionsEnabled=_.VIM(O));L.setState(X)}}};
jZM=function(A){return function(){var L=A();if(L.playerApi&&!(L.volumeMuted||L.controlsVisible&&L.isProbablyAScreenreaderUser)){L.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var O;(O=document.querySelector(".player-control-play-pause-icon"))==null||O.focus()}}};
W7Z=function(A){return{appApi:Object.assign({},_.R4y(),{showCaptionsToggleToast:function(L){var O,X;(X=(O=A()).showCaptionsToggleToast)==null||X.call(O,L)},
openInMiniplayer:function(){var L,O;(O=(L=A()).openInMiniplayer)==null||O.call(L)}})}};
HeZ=function(A,L){var O,X,x;return!!(A==null?0:(O=A.playerResponse)==null?0:(X=O.playerConfig)==null?0:(x=X.inlinePlaybackConfig)==null?0:x.showScrubbingControls)&&!(L==null?0:L.hideScrubbingControls)};
_.znJ=function(A){var L=!A.miniplayerIsActive;return[5,2,0].includes(A.miniplayerPlaybackState)||L};
BNn={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};Mh7=function(A,L){var O,X,x,J,Y;_.u(function(T){if(!L.length)return T.return([]);O=[];X=_.d(L);for(x=X.next();!x.done;x=X.next())J=x.value,(Y=A.resolveIcon(J))&&!A.iconCache[Y.url]&&O.push(_.LJS(A,Y).then(function(){}).catch(function(){}));
return T.return(Promise.all(O))})};
$OX=function(A,L){var O=[];L=(new Set(L)).values();L=_.d(L);for(var X=L.next();!X.done;X=L.next()){X=X.value;for(var x=_.d(Object.values(BNn)),J=x.next();!J.done;J=x.next())O.push({iconName:X,iconStyle:J.value})}Mh7(A.iconManager,O)};
_.aKZ=function(A,L,O){var X=O!=null?O:A.iconsToFetch;X!=null&&X.length?L!==void 0&&L>=0?_.p7(_.c1,function(){$OX(A,X)},L):$OX(A,X):Promise.resolve()};
cjJ=function(A,L,O){var X=this;this.renderFn=A;this.listeners=L;this.context=O;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var x;this.lastSeenPlayerApi=_.Hw((x=this.playerControlsData)==null?void 0:x.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.j3u(),void 0);_.h("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){lKB(X).setState({playerState:-1});X.resetRecentlyNavigatedJobId&&_.c1.cancelJob(X.resetRecentlyNavigatedJobId);
X.recentlyNavigated=!0;X.resetRecentlyNavigatedJobId=_.c1.addJob(function(){X.recentlyNavigated=!1},8,1E4)})};
cjJ.prototype.setState=function(A){if(!_.h("mweb_player_skip_no_op_state_changes")||!J8M(A,this.state))if(this.state=Object.assign({},this.state,A),!_.h("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)A=-1,_.h("player_controls_log_creation_killswitch")||Pk7()||(A=(0,_.O$)()),_.Rk("pcu_s"),_.Rk("pcu_se"),_.Rk("pcu_rs"),this.renderFn(lKB(this)),_.Rk("pcu_re"),dEX(A),_.c1.addJob(function(){_.Rk("pcu_ap")},8)};
var lKB=function(A){var L;var O=_.Hw((L=A.playerControlsData)==null?void 0:L.playerApi);return Object.assign({},A.state,{setState:A.boundSetState,domMeasurements:{progressBarLineRect:A.progressBarLineRect},playerApi:O,appApi:A.context.appApi,playerContainer:A.context.playerContainer,playerControlContainer:A.context.playerControlContainer,uxConfig:A.context.uxConfig})},CKZ=function(A){A.listeners.forEach(function(L){A.eventListenerCleanupFunctions.push(L.register(function(){return lKB(A)},function(){return A.getData()}))})},
F7Q=function(A){A.eventListenerCleanupFunctions.forEach(function(L){L()});
A.eventListenerCleanupFunctions.length=0};
cjJ.prototype.getData=function(){return this.playerControlsData};var Ck=new _.PF("abuseReportFlowState");var kAB=new _.PF("feedbackFormFlowState");var UOk=new _.PF("inputBoxViewModel");var v$M=new _.PF("flowNextStepCommand");var o$Z=new _.PF("flowPrevStepCommand");var A4J=new _.PF("updateFlowCommand");_.Lgz=new _.PF("flowStepRenderer");_.kDQ=new _.PF("lengthValidationRule");var vL$=new _.PF("regexValidationRule");var AjS=new _.PF("selectedValidationRule");var OHz=new _.PF("talkToRecsViewModel");var X1Q=new _.PF("creatorGoalSetUpFlowDropdownItemViewModel");var x6z=new _.PF("creatorGoalSetUpFlowDropdownViewModel");var rjM=new _.PF("thumbnailBadgeViewModel");_.sNX=new _.PF("radioButtonGroupViewModel");var DOQ=new _.PF("panelFooterViewModel");var J4B=new _.PF("ypcCancelRecurrenceCommand");var P8z=new _.PF("cancellationFlowState");var Rf7=new _.PF("premiumPurchaseFlowState");var d6B=new _.PF("surveyAnswerCardRenderer");var Y$7=new _.PF("showMoreButtonRenderer");var uWB;var TRJ,VYJ=function(){if(TRJ!==void 0)return TRJ;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;uWB===void 0&&(uWB=document.createElement("template"));var X=uWB;O.call(L,X.content.cloneNode(!0),A.content.firstChild);return TRJ=A};var Fm=function(){var A=_.G.apply(this,arguments)||this;A.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";A.goalDescription="";A.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";A.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";A.startButtonId="start-button";A.exampleButtonId="example-button";return A};
_.g(Fm,_.G);_.P=Fm.prototype;_.P.getGoalDropdownItems=function(){var A,L;return(L=_.q((A=this.data)==null?void 0:A.purchaseTargetDropdown,x6z))==null?void 0:L.dropdownItems};
_.P.getTimerDropdownItems=function(){var A,L;return(L=_.q((A=this.data)==null?void 0:A.timerDropdown,x6z))==null?void 0:L.dropdownItems};
_.P.getColorDropdownItems=function(){var A,L;return(L=_.q((A=this.data)==null?void 0:A.colorDropdown,x6z))==null?void 0:L.dropdownItems};
_.P.getDropdownItemText=function(A){var L;return(L=_.q(A,X1Q))==null?void 0:L.itemLabel};
_.P.getDropdownItemValue=function(A){A=_.q(A,X1Q);return(A==null?void 0:A.timeLimit)||(A==null?void 0:A.purchaseTarget)||(A==null?void 0:A.eligiblePurchaseType)};
_.P.updateFlowState=function(A){_.dQ(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:A}])};
_.P.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.P.updateGoalValue=function(A){this.goal=A.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.P.onTextValueChanged=function(A){this.goalDescription=A.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.P.updateTimerValue=function(A){this.timer=A.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.P.updateTierValue=function(A){this.tier=A.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.P.getButtonViewModel=function(A){A=(A==null?void 0:A.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var L,O=_.q((L=this.data)==null?void 0:L.startGoalButton,_.Cu);return Object.assign({},O,{state:A})};
_.v2.Object.defineProperties(Fm,{template:{configurable:!0,enumerable:!0,get:function(){return VYJ()}}});
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Fm.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Fm.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],Fm.prototype,"goal",void 0);_.I([_.K(),_.Z("design:type",Object)],Fm.prototype,"goalDescription",void 0);_.I([_.K(),_.Z("design:type",Object)],Fm.prototype,"timer",void 0);_.I([_.K(),_.Z("design:type",Object)],Fm.prototype,"tier",void 0);
_.I([_.K(),_.Z("design:type",Object)],Fm.prototype,"startButtonId",void 0);_.I([_.K(),_.Z("design:type",Object)],Fm.prototype,"exampleButtonId",void 0);_.I([_.yU({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],Fm);_.m(Fm,"yt-creator-goal-set-up-flow-view-model",function(){return VYJ()},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var D6J;var eZJ;var EoQ;var noB=function(){return _.G.apply(this,arguments)||this};
_.g(noB,_.G);_.I([_.K(),_.Z("design:type",Object)],noB.prototype,"data",void 0);_.I([_.yU({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],noB);
_.m(noB,"yt-survey-answer-card-renderer",function(){if(EoQ===void 0){var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;eZJ===void 0&&(eZJ=document.createElement("template"));var X=eZJ;O.call(L,X.content.cloneNode(!0),A.content.firstChild);EoQ=A}A=EoQ;return A},{mode:2});var tYk;var bHk;var R8=function(){return _.G.apply(this,arguments)||this};
_.g(R8,_.G);_.P=R8.prototype;_.P.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.P.selectedItemChanged=function(A){_.dQ(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[A.feedbackToken||""]}])};
_.P.surveyAnswerCardRendererClicked=function(A){if(A.target&&_.q(A.model.item,d6B)){var L=A.target;A=_.q(A.model.item,d6B);A.onTapCommand?_.VN(L,[A.onTapCommand],L):this.data.onTapCommand&&_.VN(L,[this.data.onTapCommand],L);this.selectedItemChanged(A)}};
_.P.checkIsCancellationStyle=function(A){return A==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.P.updateSelectedItemFromBinding=function(A){this.selectedItem=A.detail.value};
R8.prototype.onSelectedItemChanged=R8.prototype.onSelectedItemChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],R8.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],R8.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],R8.prototype,"selectedItem",void 0);_.I([_.K({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],R8.prototype,"isCancellationStyle",void 0);
_.I([_.hT("selectedItem"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],R8.prototype,"onSelectedItemChanged",null);_.I([_.yU({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],R8);
_.m(R8,"yt-survey-flow-step-renderer",function(){if(bHk===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;tYk===void 0&&(tYk=document.createElement("template"));var X=tYk;O.call(L,X.content.cloneNode(!0),A.content.firstChild);bHk=A}A=bHk;return A},{mode:2});var Qp=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return A};
_.g(Qp,_.G);Qp.prototype.handleSurveyFlowStepOptionChanged=function(A){this.ytdReduxBehavior.dispatch(_.JY({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:A}));_.dQ(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:A}}])};
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],Qp.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],Qp.prototype,"ytdReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Qp.prototype,"data",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],Qp);
_.m(Qp,"ytd-survey-flow-step-renderer",function(){if(D6J!==void 0)return D6J;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return D6J=A},{mode:1});var YsS;YsS=_.cm({avatarViewModel:_.fP,buttonViewModel:_.gj,subscribeButtonViewModel:_.fE,imageBannerViewModel:_.$l});_.hZB=_.wl(_.T9z);_.Xh(_.T9z);var S$M;var mW=function(){return _.G.apply(this,arguments)||this};
_.g(mW,_.G);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],mW.prototype,"ytComponentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],mW.prototype,"data",void 0);_.I([_.Q({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],mW);
_.m(mW,"ytd-channel-history-renderer",function(){if(S$M!==void 0)return S$M;var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return S$M=A},{mode:1});var q$X;var goM=function(){return _.G.apply(this,arguments)||this};
_.g(goM,_.G);_.I([_.K(),_.Z("design:type",Object)],goM.prototype,"data",void 0);_.I([_.Q({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],goM);
_.m(goM,"ytd-feature-enablement-info-renderer",function(){if(q$X!==void 0)return q$X;var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return q$X=A},{mode:1});var w1$;var p1Q;var fk=function(){var A=_.G.apply(this,arguments)||this;A.textBoxMaxLength=_.h("enable_tvod_campaign_code_integration")?15:12;return A};
_.g(fk,_.G);_.P=fk.prototype;_.P.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.P.onSubmit=function(){var A=this.data.serviceEndpoint,L=_.q(A,_.Yf);L&&A&&(L.couponCode=this.userInput,_.X5().resolve(_.x$).resolveCommand(A,{form:{element:this.hostElement}}))};
_.P.validate=function(){var A=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=A&&!this.data.errorMessage;this.showErrorMessage=A&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.h("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.P.computeStyle=function(A){return A};
_.P.computeShowValidationBelowInput=function(A){return A!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.P.updateUserInputFromBinding=function(A){this.userInput=A.currentTarget.value};
_.P.updateShowErrorMessageFromBinding=function(A){this.showErrorMessage=A.detail.value};
_.v2.Object.defineProperties(fk.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
fk.prototype.dataChanged=fk.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],fk.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],fk.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",String)],fk.prototype,"userInput",void 0);_.I([_.K(),_.Z("design:type",Boolean)],fk.prototype,"disableApplyButton",void 0);_.I([_.K(),_.Z("design:type",Boolean)],fk.prototype,"hideApplyButton",void 0);
_.I([_.K(),_.Z("design:type",Boolean)],fk.prototype,"hideErrorMessage",void 0);_.I([_.K(),_.Z("design:type",Boolean)],fk.prototype,"showTick",void 0);_.I([_.K(),_.Z("design:type",Boolean)],fk.prototype,"showErrorMessage",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Z("design:type",String)],fk.prototype,"couponStyle",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.Z("design:type",Boolean)],fk.prototype,"showValidationBelowInput",void 0);_.I([_.K(),_.Z("design:type",Object)],fk.prototype,"textBoxMaxLength",void 0);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],fk.prototype,"dataChanged",null);
_.I([_.r("showTick","showErrorMessage","userInput"),_.Z("design:type",String),_.Z("design:paramtypes",[])],fk.prototype,"validationState",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],fk);
_.m(fk,"ytd-ypc-coupon-renderer",function(){if(p1Q!==void 0)return p1Q;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return p1Q=A},{mode:1});var I8=function(){return _.G.apply(this,arguments)||this};
_.g(I8,_.G);I8.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"}}}};
I8.prototype.computeStyle=function(A){return A};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],I8.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],I8.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],I8.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Z("design:type",String)],I8.prototype,"buttonStyle",void 0);_.I([_.Q({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],I8);
_.m(I8,"ytd-flow-bottom-bar-renderer",function(){if(w1$!==void 0)return w1$;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return w1$=A},{mode:1});var iHk;var NRS;var r4X;var yp=function(){return _.G.apply(this,arguments)||this};
_.g(yp,_.G);yp.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
yp.prototype.focus=function(A){this.title&&_.M6(this.title,A)};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],yp.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],yp.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],yp.prototype,"data",void 0);_.I([_.qR("#title"),_.Z("design:type",HTMLElement)],yp.prototype,"title",void 0);_.I([_.Q({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],yp);
_.m(yp,"ytd-flow-top-bar-renderer",function(){if(r4X!==void 0)return r4X;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return r4X=A},{mode:1});var KgJ;var GYS;var lcB;var ZL=function(){return _.G.apply(this,arguments)||this};
_.g(ZL,_.G);ZL.prototype.freeTextValueChanged=function(){_.dQ(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
ZL.prototype.updateFreeTextValueFromBinding=function(A){this.freeTextValue=A.detail.value};
_.v2.Object.defineProperties(ZL.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var A,L,O=(L=(A=this.data)==null?void 0:A.responseMaxLength)!=null?L:500,X;return((X=this.freeTextValue)!=null?X:"").length>=O?"maxed-out":""}}});
ZL.prototype.freeTextValueChanged=ZL.prototype.freeTextValueChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],ZL.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],ZL.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",String)],ZL.prototype,"freeTextValue",void 0);_.I([_.qR("#user-input"),_.Z("design:type",HTMLTextAreaElement)],ZL.prototype,"input",void 0);
_.I([_.r("freeTextValue"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ZL.prototype,"characterLimitClass",null);_.I([_.hT("freeTextValue"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ZL.prototype,"freeTextValueChanged",null);_.I([_.yU({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],ZL);
_.m(ZL,"yt-free-text-input-flow-step-renderer",function(){if(lcB===void 0){var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;GYS===void 0&&(GYS=document.createElement("template"));var X=GYS;O.call(L,X.content.cloneNode(!0),A.content.firstChild);lcB=A}A=lcB;return A},{mode:2});var jL=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return A};
_.g(jL,_.G);jL.prototype.handleFreeTextFlowStepInputChanged=function(A){_.dQ(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:A}}])};
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],jL.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],jL.prototype,"ytdReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],jL.prototype,"data",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],jL);
_.m(jL,"ytd-free-text-input-flow-step-renderer",function(){if(KgJ!==void 0)return KgJ;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return KgJ=A},{mode:1});var c4Z;var C8n;var Fgn=function(){return _.G.apply(this,arguments)||this};
_.g(Fgn,_.G);_.I([_.K(),_.Z("design:type",Object)],Fgn.prototype,"data",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],Fgn);
_.m(Fgn,"ytd-metadata-line-renderer",function(){if(C8n!==void 0)return C8n;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return C8n=A},{mode:1});var Wo=function(){return _.G.apply(this,arguments)||this};
_.g(Wo,_.G);Wo.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Wo.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Wo.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Wo.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Wo.prototype,"isMasthead",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],Wo);
_.m(Wo,"ytd-media-product-renderer",function(){if(c4Z!==void 0)return c4Z;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return c4Z=A},{mode:1});var RZM;var Ho=function(){return _.G.apply(this,arguments)||this};
_.g(Ho,_.G);Ho.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
Ho.prototype.onBillboardImageLoaded=function(){_.P4(this.hostElement,"yt-refit")};
Ho.prototype.onBillboardImageLoaded=Ho.prototype.onBillboardImageLoaded;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Ho.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Ho.prototype,"data",void 0);_.I([_.qR("#billboardImage"),_.Z("design:type",Object)],Ho.prototype,"billboardImage",void 0);_.I([_.by("yt-img-shadow-loaded"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ho.prototype,"onBillboardImageLoaded",null);
_.I([_.Q({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],Ho);
_.m(Ho,"ytd-billboard-masthead-renderer",function(){if(RZM!==void 0)return RZM;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return RZM=A},{mode:1});var QN7;var zs=function(){var A=_.G.apply(this,arguments)||this;A.smallSize=!1;return A};
_.g(zs,_.G);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],zs.prototype,"ytComponentBehaviorType",void 0);_.I([_.K(),_.Z("design:type",Object)],zs.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],zs.prototype,"smallSize",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],zs);
_.m(zs,"ytd-bullet-formatted-string",function(){if(QN7!==void 0)return QN7;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return QN7=A},{mode:1});var m6z;var Bo=function(){return _.G.apply(this,arguments)||this};
_.g(Bo,_.G);Bo.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Bo.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Bo.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Bo.prototype,"data",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],Bo);
_.m(Bo,"ytd-offer-detail-renderer",function(){if(m6z!==void 0)return m6z;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return m6z=A},{mode:1});var fcJ;var M9=function(){return _.G.apply(this,arguments)||this};
_.g(M9,_.G);M9.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"}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],M9.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],M9.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],M9.prototype,"data",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],M9);
_.m(M9,"ytd-offer-detail-step-renderer",function(){if(fcJ!==void 0)return fcJ;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return fcJ=A},{mode:1});var Ick;var $C=function(){var A=_.G.apply(this,arguments)||this;A.isInOfferModule=!1;return A};
_.g($C,_.G);_.P=$C.prototype;_.P.computeHasEndpoint=function(){var A;return!((A=this.data)==null||!A.onClickCommand)};
_.P.dataChanged=function(){var A;if((A=this.data)==null?0:A.onClickCommand)this.hostElement.addEventListener("click",this.handleClickEvent),this.hostElement.addEventListener("keydown",this.onContentKeyDown),this.hostElement.addEventListener("keyup",this.onContentKeyUp),this.hostElement.setAttribute("tabindex","0"),this.hostElement.setAttribute("role","link")};
_.P.detached=function(){var A;if((A=this.data)==null?0:A.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.P.handleClickEvent=function(){var A;if((A=this.data)==null?0:A.onClickCommand){var L;this.componentBehavior.resolveCommand((L=this.data)==null?void 0:L.onClickCommand)}};
_.P.onContentKeyDown=function(A){A.key==="Enter"?this.handleClickEvent(A):A.key===" "&&A.preventDefault()};
_.P.onContentKeyUp=function(A){A.key===" "&&this.handleClickEvent(A)};
$C.prototype.dataChanged=$C.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],$C.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],$C.prototype,"componentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],$C.prototype,"data",void 0);_.I([_.K({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],$C.prototype,"hasEndpoint",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],$C.prototype,"isInOfferModule",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$C.prototype,"dataChanged",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],$C);
_.m($C,"ytd-channel-masthead-renderer",function(){if(Ick!==void 0)return Ick;var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Ick=A},{mode:1});var y4X;var a8=function(){var A=_.G.apply(this,arguments)||this;A.thumbnailObjectFit="CONTAIN";A.thumbnailObjectPosition="LEFT";A.isExpanded=!1;return A};
_.g(a8,_.G);_.P=a8.prototype;_.P.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.P.dataChanged=function(){this.resetStates()};
_.P.computeisTapOnOfferInfoContainerEnabled=function(){var A;return((A=this.data)==null?void 0:A.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.P.onExpandBtnClick=function(){var A,L=_.q((A=this.data)==null?void 0:A.showMoreButtonRenderer,Y$7);L&&_.wm(_.iV(),L.trackingParams);this.isExpanded=!this.isExpanded};
_.P.onOfferInfoClick=function(A){this.isTapOnOfferInfoContainerEnabled&&(_.xu(_.oa(A)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.sk(_.oa(A)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.P.onBottomBarClick=function(){this.executeTapCommand()};
_.P.executeTapCommand=function(){var A,L=(A=this.data)==null?void 0:A.tapCommand;L&&this.ytComponentBehavior.resolveCommand(L)};
_.P.resetStates=function(){this.isExpanded=!1};
_.v2.Object.defineProperties(a8.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var A=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),L,O,X;return((L=this.data)==null?void 0:L.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&A&&!!((O=this.data)==null?0:(X=O.benefits)==null?0:X.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var A,L,O;return((L=_.q((A=this.data)==null?void 0:A.showMoreButtonRenderer,Y$7))==null?void 0:L.showMoreButtonTitle)||((O=this.data)==null?void 0:O.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var A,L,O;return((L=_.q((A=this.data)==null?void 0:A.showMoreButtonRenderer,Y$7))==null?void 0:L.showLessButtonTitle)||((O=this.data)==null?void 0:O.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var A;return(A=this.showLessButtonTitle)!=null?A:""}var L;return(L=this.showMoreButtonTitle)!=null?L:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var A,L,O;return((A=this.data)==null?void 0:A.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((L=this.data)==null?0:L.footerTitle)||((O=this.data)==null?0:O.footerSubtitle))}}});
a8.prototype.dataChanged=a8.prototype.dataChanged;_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],a8.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],a8.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],a8.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",String)],a8.prototype,"thumbnailObjectFit",void 0);
_.I([_.K(),_.Z("design:type",String)],a8.prototype,"thumbnailObjectPosition",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.Z("design:type",Boolean)],a8.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.I([_.K(),_.Z("design:type",Object)],a8.prototype,"isExpanded",void 0);_.I([_.K(),_.Z("design:type",Object)],a8.prototype,"data",void 0);_.I([_.K({computed:"computeIcon_(data.footerIcon)"}),_.Z("design:type",String)],a8.prototype,"icon",void 0);
_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],a8.prototype,"dataChanged",null);_.I([_.r("data.thumbnail"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],a8.prototype,"hasThumbnail",null);_.I([_.r("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],a8.prototype,"enableExpandButton",null);
_.I([_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],a8.prototype,"enableOfferContentIcon",null);_.I([_.r("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],a8.prototype,"showMoreButtonTitle",null);_.I([_.r("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],a8.prototype,"showLessButtonTitle",null);
_.I([_.r("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.Z("design:type",String),_.Z("design:paramtypes",[])],a8.prototype,"expandedBtnText",null);_.I([_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],a8.prototype,"enableBottomBar",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],a8);
_.m(a8,"ytd-offer-card-renderer",function(){if(y4X!==void 0)return y4X;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return y4X=A},{mode:1});var ZHn;var kC=function(){return _.G.apply(this,arguments)||this};
_.g(kC,_.G);kC.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"}}}};
kC.prototype.onClick=function(A){if(!_.xu(A.composedPath()||[],this.hostElement,["A".toString()])){var L,O;if((A=(O=_.q((L=this.data)==null?void 0:L.actionButton,_.$t))==null?void 0:O.command)&&!this.ytComponentBehavior.resolveCommand(A)){var X;(X=_.iV())==null||X.clickCommand(A);_.X5().resolve(_.x$).resolveCommand(A,{form:{element:this.hostElement}})}}};
_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],kC.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],kC.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],kC.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],kC.prototype,"data",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],kC);
_.m(kC,"ytd-offer-content-renderer",function(){if(ZHn!==void 0)return ZHn;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return ZHn=A},{mode:1});var jNM;var U3=function(){return _.G.apply(this,arguments)||this};
_.g(U3,_.G);U3.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.v2.Object.defineProperties(U3.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var A,L;return!((A=this.data)==null||!A.title)||!((L=this.data)==null||!L.description)}}});
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],U3.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],U3.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],U3.prototype,"data",void 0);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],U3.prototype,"hasHeaderData",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],U3);
_.m(U3,"ytd-offer-section-renderer",function(){if(jNM!==void 0)return jNM;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return jNM=A},{mode:1});var WgX;var vo=function(){return _.G.apply(this,arguments)||this};
_.g(vo,_.G);
vo.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"}}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],vo.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],vo.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],vo.prototype,"data",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],vo);
_.m(vo,"ytd-offer-selection-step-renderer",function(){if(WgX!==void 0)return WgX;var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return WgX=A},{mode:1});var HHn;var o8=function(){return _.G.apply(this,arguments)||this};
_.g(o8,_.G);o8.prototype.computeStyle=function(A){return A};
o8.prototype.computeImageWidth=function(A){return A==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.I([_.K({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.Z("design:type",String)],o8.prototype,"containerStyle",void 0);_.I([_.K({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.Z("design:type",String)],o8.prototype,"imageWidth",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],o8.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],o8.prototype,"data",void 0);
_.I([_.Q({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],o8);
_.m(o8,"ytd-confirmation-masthead-renderer",function(){if(HHn!==void 0)return HHn;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return HHn=A},{mode:1});var zZM;var A5=function(){return _.G.apply(this,arguments)||this};
_.g(A5,_.G);A5.prototype.computeStyle=function(A){return A};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],A5.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],A5.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.Z("design:type",String)],A5.prototype,"containerStyle",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],A5);
_.m(A5,"ytd-purchase-complete-detail-renderer",function(){if(zZM!==void 0)return zZM;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return zZM=A},{mode:1});var BRQ;var LI=function(){var A=_.G.apply(this,arguments)||this;A.scriptsAppended=!1;return A};
_.g(LI,_.G);LI.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"}}}};
LI.prototype.onDataChanged=function(){var A=this.get("data.gtmId");A&&(_.y6(A,_.ms("GL","")),this.setupConversionTracking())};
LI.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var A=document.createElement("noscript");A.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(A);this.scriptsAppended=!0}};
LI.prototype.onDataChanged=LI.prototype.onDataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],LI.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],LI.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],LI.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],LI.prototype,"scriptsAppended",void 0);
_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],LI.prototype,"onDataChanged",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],LI);
_.m(LI,"ytd-purchase-complete-step-renderer",function(){if(BRQ!==void 0)return BRQ;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return BRQ=A},{mode:1});var MYS;var OE=function(){var A=_.G.apply(this,arguments)||this;A.darkerDarkTheme=_.h("web_darker_dark_theme");return A};
_.g(OE,_.G);OE.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],OE.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],OE.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],OE.prototype,"darkerDarkTheme",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],OE);
_.m(OE,"ytd-ypc-transaction-error-message-renderer",function(){if(MYS!==void 0)return MYS;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return MYS=A},{mode:1});var $6M;var ac7;var Xd=function(){var A=_.G.apply(this,arguments)||this;A.handlePhoneVerificationSuccess=function(L){if(A.isValidPhoneVerificationCompletionMessageEvent(L)){var O;((O=A.data)==null?0:O.nextStepCommand)&&A.ytComponentBehavior.resolveCommand(A.data.nextStepCommand)}};
return A};
_.g(Xd,_.G);Xd.prototype.isValidPhoneVerificationCompletionMessageEvent=function(A){if(A.data!=="yt-phone-verification-complete")return!1;A=_.vY(A.origin);return A!==null&&A.includes("youtube.com")};
Xd.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
Xd.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],Xd.prototype,"ytComponentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Xd.prototype,"data",void 0);_.I([_.yU({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],Xd);
_.m(Xd,"yt-feature-enablement-soft-entry-renderer",function(){if(ac7===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;$6M===void 0&&($6M=document.createElement("template"));var X=$6M;O.call(L,X.content.cloneNode(!0),A.content.firstChild);ac7=A}A=ac7;return A},{mode:1});var kYM;var U67;var voM;var ooJ;var AyX=function(){return _.G.apply(this,arguments)||this};
_.g(AyX,_.G);_.I([_.K(),_.Z("design:type",Object)],AyX.prototype,"data",void 0);_.I([_.yU({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],AyX);
_.m(AyX,"yt-benefits-item-renderer",function(){if(ooJ===void 0){var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;voM===void 0&&(voM=document.createElement("template"));var X=voM;O.call(L,X.content.cloneNode(!0),A.content.firstChild);ooJ=A}A=ooJ;return A},{mode:2});var LxQ;var O7S;var x2=function(){return _.G.apply(this,arguments)||this};
_.g(x2,_.G);x2.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
x2.prototype.computeisWithoutPadding=function(){var A;return((A=this.data)==null?void 0:A.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],x2.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],x2.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.Z("design:type",Boolean)],x2.prototype,"isWithoutPadding",void 0);_.I([_.yU({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],x2);
_.m(x2,"yt-benefits-section-renderer",function(){if(O7S===void 0){var A=document.createElement("template");_.p(A,'\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>');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;LxQ===void 0&&(LxQ=document.createElement("template"));var X=LxQ;O.call(L,X.content.cloneNode(!0),A.content.firstChild);O7S=A}A=O7S;return A},{mode:2});var sE=function(){return _.G.apply(this,arguments)||this};
_.g(sE,_.G);sE.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
sE.prototype.computeisUsingLargeWidth=function(){var A;return((A=this.data)==null?void 0:A.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],sE.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],sE.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.Z("design:type",Boolean)],sE.prototype,"isUsingLargeWidth",void 0);_.I([_.yU({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],sE);
_.m(sE,"yt-benefits-flow-step-renderer",function(){if(U67===void 0){var A=document.createElement("template");_.p(A,'\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>');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;kYM===void 0&&(kYM=document.createElement("template"));var X=kYM;O.call(L,X.content.cloneNode(!0),A.content.firstChild);U67=A}A=U67;return A},{mode:2});var Xh$;var xdM;var J5=function(){return _.G.apply(this,arguments)||this};
_.g(J5,_.G);J5.prototype.checkIsUsingLargeWidth=function(){var A;return((A=this.data)==null?void 0:A.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.I([_.K(),_.Z("design:type",Object)],J5.prototype,"data",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],J5.prototype,"ytRendererBehavior",void 0);_.I([_.K({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.Z("design:type",Boolean)],J5.prototype,"isUsingLargeWidth",void 0);_.I([_.yU({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],J5);
_.m(J5,"yt-confirmation-flow-step-renderer",function(){if(xdM===void 0){var A=document.createElement("template");_.p(A,'\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>');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;Xh$===void 0&&(Xh$=document.createElement("template"));var X=Xh$;O.call(L,X.content.cloneNode(!0),A.content.firstChild);xdM=A}A=xdM;return A},{mode:2});var svX;var JyQ;var PgJ=function(){return _.G.apply(this,arguments)||this};
_.g(PgJ,_.G);_.I([_.K(),_.Z("design:type",Object)],PgJ.prototype,"data",void 0);_.I([_.yU({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],PgJ);
_.m(PgJ,"yt-info-flow-step-renderer",function(){if(JyQ===void 0){var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;svX===void 0&&(svX=document.createElement("template"));var X=svX;O.call(L,X.content.cloneNode(!0),A.content.firstChild);JyQ=A}A=JyQ;return A},{mode:2});var dd$;var YNX;var uJB=function(){return _.G.apply(this,arguments)||this};
_.g(uJB,_.G);_.I([_.K(),_.Z("design:type",Object)],uJB.prototype,"data",void 0);_.I([_.yU({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],uJB);
_.m(uJB,"yt-info-list-flow-step-renderer",function(){if(YNX===void 0){var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;dd$===void 0&&(dd$=document.createElement("template"));var X=dd$;O.call(L,X.content.cloneNode(!0),A.content.firstChild);YNX=A}A=YNX;return A},{mode:2});var TTB=_.xa(function(A){var L=A.data;return _.D("styled-text-view-model",{class:_.qn("ytStyledTextViewModelHost",function(){return pYX(L().fontAttributes)},function(){return wYX(L().color)})},_.D(_.Xg,{text:function(){return L().text},
ariaLabel:function(){var O,X,x;return(x=(O=L().accessibility)==null?void 0:(X=O.accessibilityData)==null?void 0:X.label)!=null?x:""}}))},"of");
TTB.idomCompat=!0;var VJQ=_.xa(function(A){var L=function(){var x,J,Y,T;return(T=(Y=(x=A.alt)==null?void 0:x.call(A))!=null?Y:(J=A.data().accessibilityData)==null?void 0:J.label)!=null?T:""},O=function(){return A.data().imageWidth},X=function(){return A.data().imageHeight};
return _.D("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.D(_.e,{cond:function(){var x=A.data();if(x){var J,Y,T;var V=((J=_.X5().resolve(_.Ot(_.oy)))==null?0:J())?(Y=x.imageDark)!=null?Y:x.imageLight:(T=x.imageLight)!=null?T:x.imageDark}else V=void 0;return V},
then:function(x){return _.D(_.XV,Object.assign({},A,{data:x,alt:L,targetWidth:O,targetHeight:X,preserveHeight:!0,preserveWidth:!0}))}}))},"pf");
VJQ.idomCompat=!0;var Pd=_.xa(function(A){var L=A.data;A=_.LT(function(){return L().slots},[]);
var O=_.LT(function(){return L().layoutProperties},{}),X=_.X5().resolve(_.Ly);
return _.D("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:bBJ(O,X)},_.D(_.g9,{each:A,keyBy:"INDEX"},function(x){return _.D("div",{class:"ytContainerLayoutViewModelSlot",style:bBJ(function(){return x().layoutProperties},X)},_.D(_.ID,{data:function(){return x().contents}},{containerLayoutViewModel:Pd,
badgeViewModel:_.Y6,buttonViewModel:_.gj,styledTextViewModel:TTB,contentPreviewImageViewModel:function(J){return _.D(_.uG,{data:J.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(J){return _.D(VJQ,{data:J.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"qf");
Pd.idomCompat=!0;var Dd$=_.xa(function(A){var L=A.data;var O=A.stateFns;var X=function(){var E=L(),n=E.productId;return!(!E.clearGroupId&&!n)},x=function(){var E=L(),n=E.clearGroupId;
return(E=E.productId)?O().isProductSelected(E):n?O().getSelectedProductByGroupId(n)==null:!1},J=function(){var E=L(),n=E.clearGroupId;
if(E=E.productId)O().onProductSelected(E);else if(n)O().onClearGroupSelected(n)},Y=function(){var E=L(),n=E.clearGroupId;
if(E=E.productId){var t;return"group:"+(((t=O().getProductById(E))==null?void 0:t.groupId)||"")}return n?"group:"+n:""},T=_.LT(function(){return L().header},[]),V=_.LT(function(){return L().body},[]);
return _.D("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.D(_.e,{cond:function(){return T().length>0||X()},
then:function(){return _.D("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.D("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.D(_.ID,{data:T},{containerLayoutViewModel:function(E){return _.D("div",{class:"ytPdpCardSectionViewModelContentItem"},_.D(Pd,{data:E.data}))},
styledTextViewModel:function(E){return _.D("div",{class:"ytPdpCardSectionViewModelContentItem"},_.D(TTB,{data:E.data}))}})),_.D(_.e,{cond:X,
then:function(){return _.D("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.D(_.WZ,{checked:x,name:Y,onChange:J}))}}))}}),_.D(_.e,{cond:function(){return V().length>0},
then:function(){return _.D("div",null,_.D(_.ID,{data:V},{containerLayoutViewModel:function(E){return _.D("div",{class:"ytPdpCardSectionViewModelContentItem"},_.D(Pd,{data:E.data}))}}))}}))},"rf");
Dd$.idomCompat=!0;var egS=_.xa(function(A){var L=A.data;var O=A.stateFns;return _.D("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.D(_.e,{cond:function(){return L().banner},
then:function(X){return _.D("div",{class:"ytPdpCardViewModelBanner"},_.D(_.Xg,{text:X}))}}),_.D(_.ID,{data:function(){return L().sections}},{pdpCardSectionViewModel:function(X){X=X.data;
var x={};return _.D("div",{class:_.qn("ytPdpCardViewModelSectionContainer",(x.ytPdpCardViewModelShowDividers=function(){return L().showDividers},x))},_.D(Dd$,{data:X,
stateFns:O}))}}))},"sf");
egS.idomCompat=!0;var Ewn=_.xa(function(A){var L=A.data;var O=A.isOverlay;A={};return _.D("pdp-masthead-view-model",{class:_.qn("ytPdpMastheadViewModelHost",(A.ytPdpMastheadViewModelIsOverlay=O,A))},_.D(_.ID,{data:function(){return L().image}},{contentPreviewImageViewModel:_.uG,
themedImageViewModel:function(X){return _.D(VJQ,{data:X.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.D(_.e,{cond:function(){return L().title},
then:function(X){return _.D("h1",{class:"ytPdpMastheadViewModelHeading"},_.D(_.Xg,{text:X,isOverlay:O}))}}),_.D(_.g9,{each:function(){var X;
return(X=L().finePrint)!=null?X:[]}},function(X){return _.D("div",{class:"ytPdpMastheadViewModelFinePrint"},_.D(_.Xg,{text:X,
isOverlay:O}))}))},"tf");
Ewn.idomCompat=!0;var nwB=_.xa(function(A){var L=A.data;var O=A.stateFns;var X=function(){return"pdp-pricing-group-selector-"+L().pricingGroupAttributeIds},x=_.LT(function(){return L().pricingGroupSelectorSectionHeader});
return _.D("pdp-pricing-group-selector-view-model",null,_.D(_.e,{cond:function(){return!!x()},
then:function(){return _.D(_.ID,{data:x},{sectionHeaderViewModel:function(J){J=J.data;var Y={};return _.D("div",{class:_.qn("ytPdpPricingGroupSelectorViewModelSectionHeader",(Y.ytPdpPricingGroupSelectorViewModelFullBleed=!0,Y.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,Y))},_.D(_.b$,{data:J}))}})}}),_.D("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.D(_.g9,{each:function(){var J=O().getSelectedProductByGroupId(L().groupId);
if(!J)return _.FJ(Error("Jj`"+L().groupId)),[];var Y,T=(Y=L().pricingGroupAttributeIds)!=null?Y:[],V;if((V=J.pricingGroups)==null||!V.length||!T.length)return[];Y=J.pricingGroups.filter(function(b){return T.length?b.pricingGroupAttributes.every(function(S){return T.includes(S)}):!1});
J=[];if(T.length>0){Y=[].concat(_.le(Y));V=_.d(T);for(var E=V.next(),n={};!E.done;n={targetAttrId:void 0},E=V.next())n.targetAttrId=E.value,E=Y.findIndex(function(b){return function(S){return S.pricingGroupAttributes.includes(b.targetAttrId)}}(n)),E!==-1&&(J.push(Y[E]),Y.splice(E,1))}var t=O().getSelectedPricingGroupAttributesByGroupId(L().groupId);
return J.map(function(b){var S=!1;t&&b.pricingGroupAttributes&&(S=Gs(b.pricingGroupAttributes,t));return{pricingGroup:b,isSelected:S}})},
keyBy:function(J){return J.pricingGroup.pricingGroupId}},function(J){return _.D("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.D("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.D(_.ID,{data:function(){return J().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:Pd})),_.D("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.D(_.WZ,{checked:function(){return J().isSelected},
name:X,onClick:function(){O().onPricingGroupSelected(J().pricingGroup.pricingGroupId)}})))})))},"uf");
nwB.idomCompat=!0;var tJ$=_.xa(function(A){var L=A.data;var O=A.stateFns;var X=function(){var Y=O().getSelectedPricingOptions().map(function(E){return E.pricingOptionId}),T=O().getSelectedProductByGroupId(L().groupId);
if(!T)return _.FJ(Error("Kj`"+L().groupId)),[];var V=O().getSelectedPricingGroupAttributesByGroupId(L().groupId);return Ksn(T.pricingOptions,V,Y)},x=_.LT(function(){return L().pricingOptionSelectorSectionHeader}),J=function(){return X().length>1};
return _.D("pdp-pricing-option-selector-view-model",null,_.D(_.e,{cond:function(){return!!x()&&J()},
then:function(){return _.D(_.ID,{data:x},{sectionHeaderViewModel:function(Y){Y=Y.data;var T={};return _.D("div",{class:_.qn("ytPdpPricingOptionSelectorViewModelSectionHeader",(T.ytPdpPricingOptionSelectorViewModelFullBleed=!0,T.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,T))},_.D(_.b$,{data:Y}))}})}}),_.D(_.e,{cond:J,
then:function(){return _.D("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.D(_.g9,{each:X,keyBy:"INDEX"},function(Y){return _.D("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.D("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.D(_.ID,{data:function(){return Y().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:Pd})),_.D("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.D(_.WZ,{checked:function(){return Y().isSelected},
onClick:function(){O().onPricingOptionSelected(Y().pricingOption.pricingOptionId);var T=Y().pricingOption.onSelectPricingOption;if(T=_.HR(T)){var V;(V=_.X5().resolve(_.x$))==null||V.resolveCommand(T)}}})))}))}}))},"vf");
tJ$.idomCompat=!0;var b7Q=_.xa(function(A){var L=A.data;var O=A.stateFns;return _.D("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.D(_.ID,{data:function(){var X,x;return(x=(X=O().getSelectedPricingOptions()[0])==null?void 0:X.primaryButton)!=null?x:L().emptyStateButton}},{buttonViewModel:_.gj}))},"wf");
b7Q.idomCompat=!0;var hg$=_.xa(function(A){var L=A.stateFns;return _.D("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.D(_.ID,{data:function(){return L().getSelectedPricingOptions().flatMap(function(O){return O.summaryLines}).filter(function(O){return!!O})}},{containerLayoutViewModel:function(O){return _.D("div",{class:"ytPdpSummaryViewModelLineItem"},_.D(Pd,{data:O.data}))}}))},"xf");
hg$.idomCompat=!0;var SNJ=_.xa(function(A){function L(F){var R=Y();_.At(_.ZE("pdpStateEntity",R,{key:R,selectedPricingOptions:F}))}
var O=A.data;var X=A.internalScrolling;var x=A.stateFnsForTesting;var J=_.LT(function(){return O().allProducts},[]),Y=_.LT(function(){return O().pdpStateEntityKey},""),T=_.iS(GDn,Y),V=_.E4(function(){_.GV(!0);
var F;return(F=x==null?void 0:x())!=null?F:c8$(T,J,L)},void 0,"pjJzrd"),E=_.LT(function(){return O().body},[]),n=_.LT(function(){return O().columnBreakHints},[]),t=function(){return O().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},b=function(){return t()||O().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},S=_.E4(function(){var F=_.AC(O().background),R;
if(F==null?0:(R=F.sources)==null?0:R.length){var y=y===void 0?!0:y;F=_.SGe(void 0,F.sources,void 0,y,y?1E3:void 0,y?void 0:1E3)}else F=null;return F},void 0,"GO4GAe");
A=_.rl({"--pdp-view-model-background":function(){return S()?"url("+S()+")":void 0}});
var w={};X=_.qn("ytPdpViewModelHost",(w.ytPdpViewModelHasBackground=function(){return b()||!!S()},w.ytPdpViewModelHasDarkBackground=b,w.ytPdpViewModelHasScrim=t,w.ytPdpViewModelInternalScrolling=_.LT(X,!1),w));
var l=function(F){var R={};return _.qn("ytPdpViewModelItem",(R.ytPdpViewModelFullBleed=function(){return _.YE_(F())==="dividerViewModel"||_.YE_(F())==="sectionHeaderViewModel"},R.ytPdpViewModelNoVerticalPadding=function(){return _.YE_(F())==="sectionHeaderViewModel"},R))};
_.GD(function(){var F=O().onStartCommand;if(F&&(F=_.HR(F))){var R;(R=_.X5().resolve(_.x$))==null||R.resolveCommand(F)}});
return _.D("pdp-view-model",{class:X,style:A},_.D("div",{class:"ytPdpViewModelColumnContainer"},_.D(_.g9,{each:function(){return CkJ(E(),n())},
keyBy:"INDEX"},function(F){return _.D("div",{class:"ytPdpViewModelColumn"},_.D(_.ID,{data:F},{containerLayoutViewModel:function(R,y){R=R.data;return _.D("div",{class:l(function(){return F()[y()]})},_.D(Pd,{data:R}))},
dividerViewModel:function(R,y){R=R.data;return _.D("div",{class:l(function(){return F()[y()]})},_.D(_.aH3,{data:R}))},
pdpCardViewModel:function(R,y){R=R.data;return _.D("div",{class:l(function(){return F()[y()]})},_.D(egS,{data:R,
stateFns:V}))},
pdpMastheadViewModel:function(R,y){R=R.data;return _.D("div",{class:l(function(){return F()[y()]})},_.D(Ewn,{data:R,
isOverlay:b}))},
pdpPricingGroupSelectorViewModel:function(R,y){R=R.data;return _.D("div",{class:l(function(){return F()[y()]})},_.D(nwB,{data:R,
stateFns:V}))},
pdpPricingOptionSelectorViewModel:function(R,y){R=R.data;return _.D("div",{class:l(function(){return F()[y()]})},_.D(tJ$,{data:R,
stateFns:V}))},
pdpPrimaryButtonViewModel:function(R,y){R=R.data;return _.D("div",{class:l(function(){return F()[y()]})},_.D(b7Q,{data:R,
stateFns:V}))},
pdpSummaryViewModel:function(R,y){R=R.data;return _.D("div",{class:l(function(){return F()[y()]})},_.D(hg$,{data:R,
stateFns:V}))},
sectionHeaderViewModel:function(R,y){R=R.data;return _.D("div",{class:l(function(){return F()[y()]})},_.D(_.b$,{data:R}))}}))})))},"yf");
SNJ.idomCompat=!0;_.Y4(SNJ,"pdp-view-model",{props:{data:_.x5,stateFnsForTesting:_.dl,internalScrolling:_.dl}});var qNX=_.xa(function(A){var L=A.data;var O=A.className;var X=_.iS(_.xD,function(){return L().flowStateEntityKey});
return _.D("ytm-premium-purchase-button-renderer",{class:_.qn("yt-premium-purchase-button-renderer",O)},_.D(_.ID,{data:function(){var x;return(x=_.q(X(),Rf7))==null?void 0:x.primaryButtonOverride}},{buttonRenderer:function(x){return _.D(_.AN,{data:x.data,
className:O})},
buttonViewModel:function(x){return _.D(_.gj,{data:x.data,className:O})}}))},"zf");
qNX.idomCompat=!0;var gwZ=_.xa(function(A){var L=A.data;A=A.className;var O=function(){return FsM(L().style)},X=_.qn("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",O),x=_.qn("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",O);
return _.D("yt-flow-bottom-bar-renderer",{class:_.qn("yt-flow-bottom-bar-renderer",A,O)},_.D(_.ID,{data:function(){return L().secondaryButton}},{buttonRenderer:function(J){return _.D(_.AN,{data:J.data,
className:x})},
buttonViewModel:function(J){return _.D(_.gj,{data:J.data,className:x})},
premiumPurchaseButtonRenderer:function(J){return _.D(qNX,{data:J.data,className:x})}}),_.D(_.ID,{data:function(){return L().primaryButton}},{buttonRenderer:function(J){return _.D(_.AN,{data:J.data,
className:X})},
buttonViewModel:function(J){return _.D(_.gj,{data:J.data,className:X})},
premiumPurchaseButtonRenderer:function(J){return _.D(qNX,{data:J.data,className:X})}}))},"Af");
gwZ.idomCompat=!0;_.Y4(gwZ,"yt-flow-bottom-bar-renderer",{props:{data:_.x5,className:_.x5}});var whZ=_.xa(function(A){var L=_.qn(A.className,"ytOfferSummaryRendererHost");return _.D("yt-offer-summary-renderer",{class:L},_.D("div",{class:"ytOfferSummaryRendererTextContainer"},_.D("div",{class:"ytOfferSummaryRendererEyebrowText"},_.D(_.Xg,{text:function(){return A.data().eyebrowText}})),_.D("div",{class:"ytOfferSummaryRendererTitle"},_.D(_.Xg,{text:function(){return A.data().title}})),_.D("div",{class:"ytOfferSummaryRendererSubtitle"},_.D(_.Xg,{text:function(){return A.data().subtitle}})),
_.D("div",{class:"ytOfferSummaryRendererFeatureListData"},_.D(_.g9,{each:function(){var O;
return(O=A.data().featureListData)!=null?O:[]}},function(O){var X;
return _.D("div",{class:"ytOfferSummaryRendererFeatureList"},_.D(_.Ky,{icon:(X=O.icon)==null?void 0:X.iconType,active:function(){return O.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(O.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOfferSummaryRendererFeatureListIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOfferSummaryRendererFeatureListIconSmall";default:return"ytOfferSummaryRendererFeatureListIconDefault"}}}),_.D("div",{class:"ytOfferSummaryRendererFeatureListText"},_.D(_.Xg,{text:O.text,
className:function(){return O.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.D("div",{class:"ytOfferSummaryRendererDescription"},_.D(_.Xg,{text:function(){return A.data().description}}))))},"Bf");_.Y4(_.xa(function(A){var L={};L=_.qn("ytOfferSummaryFlowStepRendererHost",(L.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=A.shouldDisableHeaderTopMargin,L));return _.D("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:L},_.D("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.D("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.D(_.Xg,{text:function(){return A.data().header}})),_.D("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.D(_.Xg,{text:function(){return A.data().subtitle}}))),_.D("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.D(_.ID,{data:function(){return A.data().offerSummary}},{offerSummaryRenderer:function(O){return _.D(whZ,{data:O.data,
className:A.flowClassName})}})))},"Cf"),"yt-offer-summary-flow-step-renderer",{props:{data:_.dl,
flowClassName:_.dl,flowStateEntityKey:_.dl,shouldDisableHeaderTopMargin:_.dl}});var phJ=_.xa(function(A){var L=A.data;var O=A.className;var X=A.flowStateEntityKey;var x=A.selectionStepStyle;A=_.py(function(V){var E=L(),n=X==null?void 0:X();V.target&&(V.stopPropagation(),V=n||"",n=_.xD(_.oJ().getState(),V),E=Object.assign({},n,{premiumPurchaseFlowState:{selectedOptionId:E.optionId,primaryButtonOverride:E.primaryButtonOverride}}),_.oJ().dispatch(_.NV("flowStateEntity",V,E)));return!1});
var J=function(){return(X==null?void 0:X())||""},Y=_.iS(_.xD,J);
_.GD(function(){var V=L(),E=J(),n=Y();V.defaultSelected&&E!==""&&V.primaryButtonOverride&&QOJ(V.optionId||"",E,V.primaryButtonOverride,n)});
var T={};return _.D("ytm-option-item-renderer",{"on:click":A,class:_.qn(O,"ytm-option-item-renderer",(T["ytm-option-item-renderer--lp2-style"]=function(){return(x==null?void 0:x())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},T))},_.D("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.D("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var V=L(),E=J(),n=Y();n=_.q(n,Rf7);return(n?(n==null?void 0:n.selectedOptionId)||"":V.defaultSelected&&E!==""?(V==null?void 0:V.optionId)||"":"")===L().optionId},
name:("input"+_.jr(_.IY)).toString()})),_.D("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.D(_.ID,{data:function(){return L().titleBadge}},{badgeViewModel:function(V){return _.D(_.Y6,{data:V.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.D(_.e,{cond:function(){return L().eyebrowText},
then:function(){return _.D("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.D(_.Xg,{text:function(){return L().eyebrowText}}))}}),_.D("div",{class:"ytm-option-item-renderer__option-item-title"},_.D(_.Xg,{text:function(){return L().title}})),_.D("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.D(_.Xg,{text:function(){return L().subtitle}})),_.D(_.e,{cond:function(){return L().featureListData},
then:function(){return _.D("div",{class:"ytm-option-item-renderer__feature-list-data"},_.D(_.g9,{each:function(){return L().featureListData||[]}},function(V){var E,n=(E=V.icon)==null?void 0:E.iconType;
a:switch(V.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":E="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":E="ytm-option-item-renderer__feature-list-icon-small";break a;default:E="ytm-option-item-renderer__feature-list-icon-default"}return _.D("div",{class:"ytm-option-item-renderer__feature-list"},_.D(_.Ky,{icon:n,className:E,active:function(){return V.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.D("div",{class:"ytm-option-item-renderer__feature-list-text"},_.D(_.Xg,{text:V.text,
className:function(){return V.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.D("div",{class:"ytm-option-item-renderer__option-item-description"},_.D(_.Xg,{text:function(){return L().description}}))))},"Df");var i77=_.xa(function(A){var L=A.data;var O=A.flowClassName;var X=A.flowStateEntityKey;var x=A.selectionStepStyle;return _.D("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"yt-option-section-renderer"},_.D("div",{class:"yt-option-section-renderer__option-section-header-section"},_.D("div",{class:"yt-option-section-renderer__option-section-header"},_.D(_.Xg,{text:function(){return L().title}}),_.D(_.ID,{data:function(){return L().titleBadge}},{badgeViewModel:function(J){return _.D(_.Y6,
{data:J.data,
class:"yt-option-section-renderer__option-section-title-badge"})}})),_.D(_.e,{cond:function(){return L().subtitle},
then:function(){return _.D("div",{class:"yt-option-section-renderer__option-section-subtitle"},_.D(_.Xg,{text:function(){return L().subtitle}}))}}),_.D(_.e,{cond:function(){return L().featureListData},
then:function(J){return _.D("div",{class:"yt-option-section-renderer__option-section-feature-list"},_.D(_.g9,{each:J},function(Y){var T;return _.D("div",{class:"yt-option-section-renderer__option-section-feature-item"},_.D(_.Ky,{icon:(T=Y.icon)==null?void 0:T.iconType,active:function(){return Y.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(Y.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"yt-option-section-renderer__option-section-feature-item-icon-green";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"yt-option-section-renderer__option-section-feature-item-icon-small";default:return"yt-option-section-renderer__option-section-feature-item-icon-default"}}}),_.D("div",{class:"yt-option-section-renderer__option-section-feature-item-text"},_.D(_.Xg,{text:Y.text,
className:function(){return Y.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"yt-option-section-renderer__option-section-feature-item-text-secondary":""}})))}))}}),_.D(_.e,{cond:function(){return L().secondaryTitle},
then:function(){return _.D("div",{class:"yt-option-section-renderer__option-section-secondary-title"},_.D(_.Xg,{text:function(){return L().secondaryTitle}}))}}),_.D(_.g9,{each:function(){return L().sectionDisclaimers||[]}},function(J){return _.D("div",{class:"yt-option-section-renderer__option-section-disclaimer"},_.D(_.Xg,{text:J}))})),_.D(_.ID,{data:function(){return L().optionItems}},{optionItemRenderer:function(J){return _.D("div",{class:"yt-option-section-renderer__option-item"},_.D(phJ,{data:J.data,
className:O,flowStateEntityKey:X,selectionStepStyle:x}))}}),_.D(_.e,{cond:function(){return L().offerText},
then:function(){return _.D("div",{class:"yt-option-section-renderer__option-section-offer-text"},_.D(_.Xg,{text:function(){return L().offerText}}))}}))},"Ef");
i77.idomCompat=!0;var NTJ=_.xa(function(A){var L=A.data;var O=A.flowClassName;var X=A.flowStateEntityKey;A=A.isDesktop;var x=function(){var E;return(E=L().flowStateEntityKey)!=null?E:X==null?void 0:X()},J=function(){return(x==null?void 0:x())||""},Y=function(){return L().style},T=_.iS(_.xD,J);
_.GD(function(){var E=L(),n=J(),t=T();!_.q(t,Rf7)&&E.noPreselect&&n!==""&&E.defaultButtonOverride&&QOJ("default",n,E.defaultButtonOverride,t)});
var V={};return _.D("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.qn("ytm-option-selection-flow-step-renderer",(V["ytm-option-selection-flow-step-renderer--desktop"]=A,V["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return L().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},V))},_.D("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"},
_.D("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.D(_.Xg,{text:function(){return L().header}})),_.D("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.D(_.Xg,{text:function(){return L().subtitle}}))),_.D(_.ID,{data:function(){return L().optionItems||[]}},{optionItemRenderer:function(E){return _.D("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.D(phJ,{data:E.data,
className:O,flowStateEntityKey:x,selectionStepStyle:Y}))},
optionSectionRenderer:function(E){return _.D("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.D(i77,{data:E.data,flowClassName:O,flowStateEntityKey:x,selectionStepStyle:Y}))}}))},"Ff");
NTJ.idomCompat=!0;_.Y4(NTJ,"yt-option-selection-flow-step-renderer",{props:{data:_.x5,flowClassName:_.x5,flowStateEntityKey:_.x5,isDesktop:_.x5}});var mEz,fJZ;_.d8=_.xa(function(A){var L=_.OY(A,{type:1,disablePadding:!1,disablePrimaryButton:!1}),O=L.data,X=L.type;A=L.disablePadding;var x=L.disablePrimaryButton,J=L.onClickPrimaryButton,Y=function(){return O().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},T=function(){return{disabled:x(),
state:x()?"disabled":"active"}},V=function(){return O().leadingLabel||O().trailingLabel};
L={};return _.D("yt-panel-footer-view-model",{class:_.qn("yt-panel-footer-view-model-wiz",(L["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return O().shouldHideDivider},L["yt-panel-footer-view-model-wiz--disable-padding"]=A,L))},_.D(_.e,{cond:V,
then:function(){var E={},n={};return _.D("div",{class:_.qn("yt-panel-footer-view-model-wiz__text-row",(E["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var t=O();return!(!t.leadingLabel&&!t.trailingLabel||!t.primaryButton&&!t.secondaryButton)},E))},_.D(_.Xg,{text:function(){return O().leadingLabel},
className:_.qn((n["yt-panel-footer-view-model-wiz--text-padding"]=V,n))}),_.D(_.Xg,{text:function(){return O().trailingLabel}}))}}),_.D(_.e,{cond:Y,
then:function(){var E={};return _.D("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.D("div",{class:_.qn("yt-panel-footer-view-model-wiz__primary-button",(E["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return O().secondaryButton},E))},_.D(_.ID,{data:function(){return O().primaryButton}},{buttonViewModel:function(n){return _.D(_.gj,{data:n.data,
buttonOverrides:T,onClick:J})}})),_.D(_.ID,{data:function(){return O().secondaryButton}},{buttonViewModel:_.gj}))}}),_.D(_.e,{cond:function(){return!Y()},
then:function(){var E={},n={},t={};return _.D("div",{class:_.qn("yt-panel-footer-view-model-wiz__button-row",(E["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===X()},E))},_.D("div",{class:_.qn("yt-panel-footer-view-model-wiz__button-row--left-button",(n["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===X()},n["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!O().secondaryButton||0===X()},n["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===X()},n))},_.D(_.ID,{data:function(){return O().secondaryButton}},{buttonViewModel:_.gj})),_.D("div",{class:_.qn("yt-panel-footer-view-model-wiz__primary-button",(t["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===X()||1===X()},t["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===X()},t))},_.D(_.ID,{data:function(){return O().primaryButton}},{buttonViewModel:function(b){return _.D(_.gj,{data:b.data,
buttonOverrides:T,onClick:J})}})))}}))},"Gf");
_.d8.idomCompat=!0;_.ry7=_.xa(function(A){A=_.OY(A,{disablePadding:!1});var L=A.data,O=A.disablePadding;A=_.jOk(function(){return L().formId});
var X=A.onSubmit,x=A.isValid,J=A.isSubmitting;return _.D("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.D(_.ID,{data:function(){return L().panelFooter}},{panelFooterViewModel:function(Y){return _.D(_.d8,{data:Y.data,
onClickPrimaryButton:function(){X()},
disablePrimaryButton:function(){return!x()||J()},
disablePadding:O})}}))},"Hf");_.Y4(_.ry7,"yt-form-footer-view-model",{props:{data:_.x5,disablePadding:_.x5}});_.Y4(_.xa(function(A){return _.D("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.D("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.D(_.e,{cond:function(){var L;return(L=A.data())==null?void 0:L.image},
then:function(L){return _.D(_.XV,{data:L,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.D("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.D(_.Xg,{text:function(){var L;
return(L=A.data())==null?void 0:L.title}})),_.D("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.D(_.Xg,{text:function(){var L;
return(L=A.data())==null?void 0:L.subtitle}})),_.D("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentButton"},_.D(_.ID,{data:function(){var L;
return(L=A.data())==null?void 0:L.viewTipsButton}},{buttonViewModel:_.gj}))))},"If"),"yt-contributor-zero-state-view-model",{props:{data:_.x5}});var KxZ=_.xa(function(A){var L=function(){var O;return(O=A.data())==null?void 0:O.image};
return _.D("yt-featured-content-item-view-model",{class:_.qn("ytFeaturedContentItemViewModelHost")},_.D("div",{class:_.qn(function(){return L()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.D("div",{class:function(){return L()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.D(_.e,{cond:L,
then:function(){return _.D("div",{class:"ytFeaturedContentItemViewModelImage"},_.D(_.ID,{data:function(){return A.data().image}},{themedImageViewModel:VJQ}))}}),_.D(_.e,{cond:function(){var O;
return!L()&&((O=A.data())==null?void 0:O.iconName)},
then:function(){return _.D("div",{class:"ytFeaturedContentItemViewModelIcon"},_.D(_.Ky,{icon:function(){return A.data().iconName}}))}}),_.D("div",{class:"ytFeaturedContentItemViewModelContent"},_.D(_.e,{cond:function(){var O;
return(O=A.data())==null?void 0:O.title},
then:function(){return _.D("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.D(_.Xg,{text:function(){return A.data().title}}))}}),_.D(_.e,{cond:function(){var O;
return(O=A.data())==null?void 0:O.body},
then:function(){return _.D("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.D(_.Xg,{text:function(){return A.data().body}}))}})))))},"Jf");var GuX=_.xa(function(A){var L=function(){var x;return Ws$((x=A.data())==null?void 0:x.titleFontSize)},O=function(){var x;
return HBz((x=A.data())==null?void 0:x.descriptionFontSize)},X=function(){var x;
return((x=A.data())==null?void 0:x.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.D("yt-landing-page-view-model",{class:_.qn("ytLandingPageViewModelHost",A.className)},_.D("div",{class:"ytLandingPageViewModelHeader"},_.D(_.e,{cond:function(){var x;return(x=A.data())==null?void 0:x.bannerImage},
then:function(x){return _.D("div",{class:"ytLandingPageViewModelHeaderImage"},_.D(_.ID,{data:function(){return x()}},{imageBannerViewModel:function(J){return _.D(_.$l,{data:J.data,
isPositionRelative:!0})}}))}}),_.D(_.e,{cond:function(){var x;
return(x=A.data())==null?void 0:x.bannerAnimation},
then:function(x){return _.D(_.ER,{data:function(){var J=x();if(J==null?0:J.url){var Y;J={path:(Y=J==null?void 0:J.url)!=null?Y:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(J==null?0:J.payload){var T;J={animationData:JSON.parse((T=J==null?void 0:J.payload)!=null?T:""),autoplay:!0,loop:!0,renderer:"svg"}}else J=void 0;return{animationConfig:J}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.D("div",{class:"ytLandingPageViewModelHeaderTitle"},_.D(_.e,{cond:function(){var x;
return(x=A.data())==null?void 0:x.title},
then:function(x){return _.D("div",{class:_.qn("ytLandingPageViewModelHeaderTitleContent",L)},_.D(_.Xg,{text:function(){return x()}}))}}),_.D(_.e,{cond:function(){var x;
return(x=A.data())==null?void 0:x.description},
then:function(x){var J={};return _.D(_.Xg,{className:_.qn("ytLandingPageViewModelHeaderTitleDescription",O,(J.ytLandingPageViewModelHeaderTitleDescriptionMargin=X,J)),text:function(){return x()}})}}))),_.D(_.e,{cond:function(){var x,J;
return(x=A.data())==null?void 0:(J=x.featuredContentList)==null?void 0:J.length},
then:function(){return _.D("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.D(_.ID,{data:function(){return A.data().featuredContentList}},{featuredContentItemViewModel:function(x){return _.D(KxZ,{data:x.data})}}))}}),_.D(_.e,{cond:function(){var x,J;
return(x=A.data())==null?void 0:(J=x.expandableContentList)==null?void 0:J.length},
then:function(){return _.D("div",{class:"ytLandingPageViewModelFaqSection"},_.D(_.ID,{data:function(){return A.data().expandableContentList}},{faqEntryViewModel:function(x){return _.D("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.D(_.CUV,{data:x.data}))}}))}}),_.D("div",{class:"ytLandingPageViewModelFooter"},_.D(_.e,{cond:function(){var x;
return(x=A.data())==null?void 0:x.legalCopy},
then:function(x){return _.D("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.D(_.Xg,{text:function(){return x()}}))}}),_.D(_.e,{cond:function(){var x;
return(x=A.data())==null?void 0:x.actions},
then:function(x){return _.D("div",null,_.D(_.ID,{data:function(){return x()}},{flexibleActionsViewModel:function(J){return _.D(_.yy,{data:J.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"Kf");_.Y4(_.xa(function(A){return _.D("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.D(_.ID,{data:function(){return A.data().sections}},{landingPageViewModel:function(L){return _.D(GuX,{data:L.data,
className:"ytLpSectionGroupViewModelSection"})}}))},"Lf"),"yt-lp-section-group-view-model",{props:{data:_.x5}});var lzn=_.xa(function(A){var L=_.iS(zfk,_.LT(function(){var T;return(T=A.data())==null?void 0:T.noteFeedEntityKey},"")),O=_.iS(OBS,_.LT(function(){var T;
return(T=A.data())==null?void 0:T.userRatingEntityKey},"")),X=_.h("enable_user_rating_web"),x=function(){var T,V,E;
return((T=L())==null?0:T.contributorNote)?(V=L())==null?void 0:V.contributorNote:(E=A.data())==null?void 0:E.existingNote},J=function(){var T,V;
return!!O()&&!!B9n((T=O())==null?void 0:T.helpfulnessValue,(V=A.data())==null?void 0:V.noteData)};
if(X){var Y={};return _.D("yt-note-view-model",{class:_.qn("ytNoteViewModelHostUserRating",(Y.ytNoteViewModelHostUserRatingPublishedNote=function(){var T,V;return(T=A.data())==null?void 0:(V=T.noteData)==null?void 0:V.isPublished},Y))},_.D("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.D("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.D(_.e,{cond:function(){var T,V;
return(T=A.data())==null?void 0:(V=T.noteData)==null?void 0:V.isPinned},
then:function(){return _.D(_.Ky,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.D(_.e,{cond:function(){var T,V;return(T=A.data())==null?void 0:(V=T.noteData)==null?void 0:V.isPublished},
then:function(){return _.D(_.Ky,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.D(_.ID,{data:function(){var T;
return(T=A.data())==null?void 0:T.metadata}},{contentMetadataViewModel:_.DR}),_.D("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var T,V;
return(V=_.q((T=A.data())==null?void 0:T.metadata,_.YRg))==null?void 0:V.delimiter}),_.D(_.Xg,{text:function(){var T;
return(T=x())==null?void 0:T.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.D(_.ID,{data:function(){var T,V,E,n,t,b,S,w=!!((T=A.data())==null?0:(V=T.noteData)==null?0:V.isPinned);T=J();V=(E=A.data())==null?void 0:E.noteData;E=(n=L())==null?void 0:(t=n.contributorNote)==null?void 0:t.deleteAction;n=(b=A.data())==null?void 0:b.overflowButtonNoteWithRatingOnTapOverride;b=(S=A.data())==null?void 0:S.overflowButton;return w?M6Z(V,E):T?{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",
state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",onTap:n}}:b}},{buttonViewModel:function(T){return _.D(_.gj,{data:T.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.D("div",{class:"ytNoteViewModelNoteContent"},_.D(_.Xg,{text:function(){var T;
return(T=x())==null?void 0:T.text}})),_.D(_.e,{cond:function(){var T,V;
return!((T=A.data())==null?0:(V=T.noteData)==null?0:V.isPinned)},
then:function(){return _.D(_.e,{cond:J,then:function(){return _.D("div",{class:"ytNoteViewModelUserRatingContainer"},_.D(_.Xg,{text:function(){var T,V;return B9n((T=O())==null?void 0:T.helpfulnessValue,(V=A.data())==null?void 0:V.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.D(_.ID,{data:function(){var T;return(T=A.data())==null?void 0:T.userRatingButton}},{buttonViewModel:function(T){return _.D(_.gj,{data:T.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.D(_.e,{cond:function(){var T,V;
return!((T=A.data())==null?0:(V=T.noteData)==null?0:V.ignoreDivider)},
then:function(){return _.D("div",{class:"ytNoteViewModelDivider"},_.D(_.ID,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(T){return _.D(_.aH3,{data:T.data})}}))}}))}return _.D("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.D("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.D("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.D(_.e,{cond:function(){var T,V;return(T=A.data())==null?void 0:(V=T.noteData)==null?void 0:V.isPinned},
then:function(){return _.D(_.Ky,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.D(_.e,{cond:function(){var T,V;return(T=A.data())==null?void 0:(V=T.noteData)==null?void 0:V.isPublished},
then:function(){return _.D(_.Ky,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.D(_.e,{cond:function(){return X},
then:function(){return _.D(_.ID,{data:function(){var T;return(T=A.data())==null?void 0:T.metadata}},{contentMetadataViewModel:function(T){return _.D(_.DR,{data:T.data})}})}}),_.D(_.Xg,{text:function(){var T,V;
return(T=A.data())==null?void 0:(V=T.noteData)==null?void 0:V.headerText}}),_.D("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.D(_.Xg,{text:function(){var T,V;
return(T=A.data())==null?void 0:(V=T.noteData)==null?void 0:V.delimiter}})),_.D(_.Xg,{text:function(){var T,V;
return(T=L())==null?void 0:(V=T.contributorNote)==null?void 0:V.publishedTimeText}})),_.D(_.ID,{data:function(){var T,V,E;
return M6Z((T=A.data())==null?void 0:T.noteData,(V=L())==null?void 0:(E=V.contributorNote)==null?void 0:E.deleteAction)}},{buttonViewModel:function(T){return _.D(_.gj,{data:T.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.D("div",{class:"ytNoteViewModelNoteContent"},_.D(_.Xg,{text:function(){var T,V;
return(T=L())==null?void 0:(V=T.contributorNote)==null?void 0:V.text}})))},"Mf");
lzn.idomCompat=!0;_.Y4(lzn,"yt-note-view-model",{props:{data:_.x5}});var Y2=_.xa(function(A){var L=_.OY(A,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),O=L.label,X=L.text,x=L.placeholder,J=L.hint;A=L.rows;var Y=L.overflowStyle,T=L.outline,V=L.disabled,E=L.disableNewLines,n=L.characterLimit,t=L.validation,b=L.onInput,S=_.av("textarea");L=_.d(_.Nn(function(){return X()}));
var w=L.next().value,l=L.next().value;L=_.d(_.uQ(!1,void 0,"fXvinf"));var F=L.next().value,R=L.next().value,y=function(){R(!0)},M=function(){R(!1)};
_.GD(function(){var HJ=S.value,mM=Y(),Vu=w();mM==="expand-vertically"&&Vu&&$EJ(HJ);S.value.addEventListener("focusin",y);S.value.addEventListener("focusout",M)});
_.rF(function(){S.value.removeEventListener("focusin",y);S.value.removeEventListener("focusout",M)});
var H=function(){var HJ;return(HJ=t())==null?void 0:HJ.validate(w())},z=function(){return n()&&!H()&&w().length>n().maxChars},a=function(){return!!H()||z()};
L=_.py(function(HJ){if(!HJ.currentTarget)return!1;HJ=HJ.currentTarget;l(HJ.value);Y()==="expand-vertically"&&$EJ(HJ);b==null||b(HJ.value);return!0});
var xe=_.py(function(HJ){E()&&HJ.key==="Enter"&&HJ.preventDefault();return!1}),ur=_.py(function(){S.value.focus()}),eD=function(){return x()||O()},gu={},ir={},SD={};
return _.D("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.D("div",{class:_.qn("ytStandardsTextareaShapeTextareaContainer",(gu.ytStandardsTextareaShapeTextareaContainerOutline=T,gu.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=V,gu.ytStandardsTextareaShapeTextareaContainerOutlineError=a,gu)),"on:click":ur},_.D("label",{class:_.qn("ytStandardsTextareaShapeLabel",(ir.ytStandardsTextareaShapeLabelFocused=F,ir.ytStandardsTextareaShapeLabelDisabled=V,ir.ytStandardsTextareaShapeLabelError=
function(){return a()&&!V()},ir.ytStandardsTextareaShapeLabelHidden=function(){return!F()&&!w()&&!!eD()},ir))},O),_.D("div",{class:_.qn("ytStandardsTextareaShapePlaceholder",(SD.ytStandardsTextareaShapePlaceholderVisible=function(){return!F()&&!w()},SD)),
"aria-hidden":"true"},eD),_.D("textarea",{el:S,class:"ytStandardsTextareaShapeTextarea",rows:A,disabled:V,placeholder:eD,"on:input":L,"on:keydown":xe},w)),_.D(_.e,{cond:function(){return J()&&!a()},
then:function(){var HJ={};return _.D("div",{class:_.qn("ytStandardsTextareaShapeHint",(HJ.ytStandardsTextareaShapeHintDisabled=V,HJ))},_.D("div",{class:"ytStandardsTextareaShapeHintHintMessage"},J))}}),_.D(_.e,{cond:H,
then:function(){return _.D(cyX,{disabled:V},_.D("div",{class:"ytStandardsTextareaShapeErrorMessage"},H))}}),_.D(_.e,{cond:n,
then:function(HJ){return _.D(_.e,{cond:z,then:function(){return _.D(cyX,{disabled:V},_.D("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return HJ().errorMessage}),_.D("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return w().length+"/"+HJ().maxChars}))}})}}))},"Nf");
Y2.idomCompat={callbacks:{onInput:!0}};var cyX=_.xa(function(A){var L={};return _.D("div",{class:_.qn("ytStandardsTextareaShapeError",(L.ytStandardsTextareaShapeErrorDisabled=A.disabled,L)),role:"alert"},_.D(_.Ky,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),A.children)},"Of");_.CgJ=_.xa(function(A){var L=A.data;return _.D("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.D(Y2,{text:A.text,label:function(){var O;return(O=L().contentProperties)==null?void 0:O.labelText},
placeholder:function(){var O;return(O=L().contentProperties)==null?void 0:O.placeholderText},
hint:function(){var O;return(O=L().contentProperties)==null?void 0:O.hintText},
outline:function(){var O;return!((O=L().displayProperties)==null?0:O.hideBorder)},
overflowStyle:function(){var O;return((O=L().displayProperties)==null?0:O.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:A.disabled,disableNewLines:function(){var O;return(O=L().displayProperties)==null?void 0:O.disableNewLines},
onInput:A.onInput,characterLimit:A.characterLimit,validation:A.validation,rows:function(){var O;return(O=L().displayProperties)==null?void 0:O.rows}}))},"Pf");_.FxS=_.xa(function(A){var L=A.data;return _.D("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.D(Y2,{text:A.text,label:function(){var O;return(O=L().contentProperties)==null?void 0:O.labelText},
placeholder:function(){var O;return(O=L().contentProperties)==null?void 0:O.placeholderText},
hint:function(){var O;return(O=L().contentProperties)==null?void 0:O.hintText},
outline:function(){var O;return!((O=L().displayProperties)==null?0:O.hideBorder)},
overflowStyle:function(){var O;return((O=L().displayProperties)==null?0:O.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var O;return(O=L().displayProperties)==null?void 0:O.disableNewLines},
onInput:A.onInput,characterLimit:A.characterLimit,validation:A.validation,rows:function(){var O;return(O=L().displayProperties)==null?void 0:O.rows}}))},"Qf");var RgZ=_.xa(function(A){var L=_.d(_.Nn(function(){var eD,gu;return((eD=A.data().structuredContextNoteFormSchema)==null?0:(gu=eD.initialValues)==null?0:gu.noteBody)?A.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),O=L.next().value,X=L.next().value;
L=_.d(_.Nn(function(){A.data();return!1}));
var x=L.next().value,J=L.next().value;L=_.d(_.Nn(function(){A.data();return!1}));
var Y=L.next().value,T=L.next().value;L=_.d(_.Nn(function(){var eD,gu;return((eD=A.data().structuredContextNoteFormSchema)==null?0:(gu=eD.initialValues)==null?0:gu.timestamp)?A.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var V=L.next().value,E=L.next().value;L=_.d(_.Nn(function(){A.data();return!1}));
var n=L.next().value,t=L.next().value;L=_.d(_.Nn(function(){var eD,gu;return((eD=A.data().structuredContextNoteFormSchema)==null?0:(gu=eD.initialValues)==null?0:gu.sources)?[A.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var b=L.next().value,S=L.next().value;L=_.d(_.Nn(function(){A.data();return!1}));
var w=L.next().value,l=L.next().value;L=_.d(_.Nn(function(){return!1}));
var F=L.next().value,R=L.next().value;_.GD(function(){var eD;_.ZBM((eD=A.data().structuredContextNoteFormSchema)==null?void 0:eD.id,{isSubmitting:F,onSubmit:function(){R(!0);var gu=XOn(O(),V(),b(),A.data()),ir=_.X5().resolve(_.x$);gu&&ir&&ir.resolveCommand(gu,{commandController:{onSuccess:function(){R(!1)}}})},
isValid:function(){return x()&&!Y()&&!n()&&!w()}})});
var y=function(eD){if(eD!==void 0&&(X(eD),!x()&&eD.length>0&&J(!0),x())){var gu=UEz(A.data());if(gu){var ir=gu.minLength;gu=gu.maxLength;ir&&eD.length<ir?T(!0):gu&&eD.length>gu?T(!0):T(!1)}}},M=function(eD){if(eD!==void 0){E(eD);
if(eD.length>0){var gu,ir,SD,HJ,mM=oL7((gu=A.data())==null?void 0:(ir=gu.structuredContextNoteFormSchema)==null?void 0:(SD=ir.fieldSchemas)==null?void 0:(HJ=SD.timestamp)==null?void 0:HJ.validationSchema);if(mM&&(gu=mM.regex)&&!(new RegExp(gu)).test(eD)){t(!0);return}}t(!1)}},H=function(eD){if(eD!==void 0){var gu=eD.split(/[ \n]/).map(function(ir){return ir.trim()});
S(gu);if(eD.length>0)for(eD=_.d(gu),gu=eD.next();!gu.done;gu=eD.next())if(!OeQ(gu.value)){l(!0);return}l(!1)}},z=function(){return{validate:function(eD){if(x()){var gu=UEz(A.data());
if(gu){var ir=gu.minLength;gu=gu.translations;if(ir&&eD.length<ir)return gu==null?void 0:gu.minLengthErrorMessage}}}}},a=function(){var eD=UEz(A.data()),gu=eD==null?void 0:eD.maxLength,ir;
eD=eD==null?void 0:(ir=eD.translations)==null?void 0:ir.maxLengthErrorMessage;if(gu&&eD)return{maxChars:gu,errorMessage:eD}},xe=function(){return{validate:function(eD){if(eD){var gu,ir,SD,HJ,mM=oL7((gu=A.data())==null?void 0:(ir=gu.structuredContextNoteFormSchema)==null?void 0:(SD=ir.fieldSchemas)==null?void 0:(HJ=SD.timestamp)==null?void 0:HJ.validationSchema);
if(mM&&(gu=mM.regex,mM=mM.translations,gu&&!(new RegExp(gu)).test(eD)))return mM==null?void 0:mM.regexErrorMessage}}}},ur=function(){return{validate:function(eD){if(eD){var gu,ir,SD,HJ,mM=L7k((gu=A.data())==null?void 0:(ir=gu.structuredContextNoteFormSchema)==null?void 0:(SD=ir.fieldSchemas)==null?void 0:(HJ=SD.sources)==null?void 0:HJ.validationSchema);
if(mM&&(gu=mM.translations,gu==null?0:gu.selectedErrorMessage))for(eD=eD.split(/[ \n]/).map(function(Vu){return Vu.trim()}),eD=_.d(eD),ir=eD.next();!ir.done;ir=eD.next())if(!OeQ(ir.value))return eD=void 0,(eD=gu)==null?void 0:eD.selectedErrorMessage}}}};
return _.D("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.D("div",{class:"ytStructuredContextNoteViewModelTextField"},_.D(_.ID,{data:function(){var eD;return(eD=A.data())==null?void 0:eD.noteContents}},{textFormFieldViewModel:function(eD){return _.D(_.FxS,{data:eD.data,
onInput:y,validation:z,characterLimit:a})},
textFieldViewModel:function(eD){return _.D(_.CgJ,{data:eD.data,onInput:y,validation:z,characterLimit:a})}})),_.D("div",{class:"ytStructuredContextNoteViewModelTextField"},_.D(_.ID,{data:function(){var eD;
return(eD=A.data())==null?void 0:eD.noteTimestamp}},{textFormFieldViewModel:function(eD){return _.D(_.FxS,{data:eD.data,
onInput:M,validation:xe})},
textFieldViewModel:function(eD){return _.D(_.CgJ,{data:eD.data,onInput:M,validation:xe})}})),_.D("div",{class:"ytStructuredContextNoteViewModelTextField"},_.D(_.ID,{data:function(){var eD;
return(eD=A.data())==null?void 0:eD.noteSources}},{textFormFieldViewModel:function(eD){return _.D(_.FxS,{data:eD.data,
onInput:H,validation:ur})},
textFieldViewModel:function(eD){return _.D(_.CgJ,{data:eD.data,onInput:H,validation:ur})}})))},"Rf");
RgZ.idomCompat=!0;_.Y4(RgZ,"yt-structured-context-note-view-model",{props:{data:_.x5}});var Qvk=_.xa(function(A){var L=_.d(_.Nn(function(){var J;if((J=A.controlled)==null?0:J.call(A))return[];var Y;return(((Y=A.data())==null?void 0:Y.chips)||[]).map(function(T){T=_.q(T,_.vB);if(T==null?0:T.selected)return xOk(T.chipValue)}).filter(function(T){return T!==void 0})})),O=L.next().value,X=L.next().value,x=function(J){var Y=xOk(J.chipValue);
if(Y!==void 0){var T;if((T=A.controlled)==null?0:T.call(A))return void A.controlled().onTap(Y);J=O().includes(Y)?[].concat(_.le(O().filter(function(E){return E!==Y}))):[].concat(_.le(O()),[Y]);
X(J);var V;if((V=A.uncontrolled)==null?0:V.call(A))A.uncontrolled().onUpdate(J)}};
return _.D("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.D(_.g9,{each:function(){return A.data().chips||[]}},function(J){return _.D("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.D(_.yj,{data:function(){return _.q(J,_.vB)},
selected:function(){var Y;if(Y=_.q(J,_.vB)){var T=xOk(Y.chipValue);if(T!==void 0){var V;Y=((V=A.controlled)==null?0:V.call(A))?A.controlled().selectedValues.includes(T):O().includes(T)}else Y=void 0}else Y=!1;return Y},
callback:x}))}))},"Sf");var mdz=_.xa(function(A){var L=A.data;var O=function(){var T;return((T=L())==null?void 0:T.flowStateKey)||""},X=_.iS(_.xD,O),x=function(){var T;
return(T=_.q(X(),kAB))==null?void 0:T.chips},J=function(T){if(T!==void 0){var V=x()||[];
V=V.find(function(E){return E===T})?V.filter(function(E){return E!==T}):[].concat(_.le(V),[T]);
V=Object.assign({},X(),{feedbackFormFlowState:Object.assign({},_.q(X(),kAB),{chips:V})});_.At(_.NV("flowStateEntity",O(),V))}},Y=function(){var T;
return _.q((T=L())==null?void 0:T.inputBox,UOk)};
A=_.Gv(function(T){var V=Y();V=!(V==null?0:V.maxChars)||T.length<=V.maxChars;T=Object.assign({},X(),{feedbackFormFlowState:Object.assign({},_.q(X(),kAB),{detail:T}),abuseReportFlowState:Object.assign({},_.q(X(),Ck),{navigationEnabled:V})});_.At(_.NV("flowStateEntity",O(),T))},150);
return _.D("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.D("div",{class:"ytFeedbackFormViewModelChips"},_.D(_.ID,{data:function(){var T;return(T=L())==null?void 0:T.chipSelection}},{chipSelectionFormFieldViewModel:function(T){return _.D(Qvk,{data:T.data,
controlled:function(){return{selectedValues:x()||[],onTap:J}}})}})),_.D("div",{class:"ytFeedbackFormViewModelInputBox"},_.D(Y2,{text:function(){var T;
return(T=_.q(X(),kAB))==null?void 0:T.detail},
placeholder:function(){var T;return((T=Y())==null?void 0:T.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var T=Y();if(T&&T.maxChars)return{maxChars:T.maxChars,errorMessage:T.maxCharsExceededErrorMessage||""}},
onInput:A})),_.D("div",{class:"ytFeedbackFormViewModelFooterText"},_.D(_.Xg,{text:function(){return L().footerText}})))},"Tf");
mdz.idomCompat=!0;_.Y4(mdz,"yt-feedback-form-view-model",{props:{data:_.x5}});var fz7=_.xa(function(A){var L=A.data;var O=function(){return L().flowStateKey||""},X=_.iS(LsM,O),x=function(){return _.q(X(),Ck)},J=function(){if(_.h("enable_gff_accessibility_fix")){var Y=!0,T;
if((T=x())==null?0:T.navigationEnabled){var V;_.$a((V=x())==null?void 0:V.navigationCommand);Y=!1}T=Object.assign({},X(),{abuseReportFlowState:Object.assign({},x(),{isReportFormDirty:Y})});_.At(_.NV("flowStateEntity",O(),T))}else _.$a((Y=x())==null?void 0:Y.navigationCommand)};
return _.D("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.D("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.D(_.ID,{data:function(){return L().cancelButton}},{buttonViewModel:function(Y){return _.D(_.gj,{data:Y.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:J})}}),_.D(_.ID,{data:function(){var Y;
if(L().navButton){var T=Object;var V=T.assign,E=_.q(L().navButton,_.Cu),n=((Y=x())==null?0:Y.navigationEnabled)||_.h("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",t,b;Y=_.q((t=x())==null?void 0:t.navigationCommand,_.WR);t=(b=_.q(Y,_.Hh))==null?void 0:b.url;T={buttonViewModel:V.call(T,{},E,{state:n,iconName:t?"OPEN_IN_NEW":""})}}else T=void 0;return T}},{buttonViewModel:function(Y){return _.D(_.gj,{data:Y.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:J})}})))},"Uf");
fz7.idomCompat=!0;_.Y4(fz7,"yt-report-form-bottom-bar-view-model",{props:{data:_.x5}});var Izn=_.xa(function(A){var L=A.nextStep;return _.D("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.D("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.D(_.Ky,{icon:function(){return L().iconName||""}})),_.D("div",null,_.D(_.Xg,{text:function(){return L().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"Vf"),yyJ=_.xa(function(A){var L=A.data;
var O,X=(O=_.X5().resolve(_.Ot(_.oy)))==null?void 0:O(),x=_.iS(_.xD,function(){return L().flowStateKey||""});
return _.D("yt-report-form-confirmation-page-view-model",{class:function(){var J;return((J=_.q(x(),Ck))==null?void 0:J.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.D("div",{class:function(){var J;
return((J=_.q(x(),Ck))==null?void 0:J.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.D(_.XV,{data:function(){return X&&L().imageDark?L().imageDark:L().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.D("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.D("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return L().confirmationHeader}),_.D("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.D(_.Xg,{text:function(){return L().confirmationText}})),_.D("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.D(_.Xg,{text:function(){return L().lawEnforcementText}})),
_.D("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return L().whatToExpectHeader}),_.D(_.e,{cond:function(){return L().nextSteps},
then:function(J){return _.D("div",null,_.D(_.g9,{each:J},function(Y){return _.D(Izn,{nextStep:Y})}))}}),_.D(_.e,{cond:function(){return L().legalReportText},
then:function(J){return _.D("div",null,_.D(_.Xg,{text:J,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"Wf");
yyJ.idomCompat=!0;_.Y4(yyJ,"yt-report-form-confirmation-page-view-model",{props:{data:_.x5}});var Z7Z=_.xa(function(A){var L=A.data;var O=function(){var J;return((J=_.q(L().inputBox,UOk))==null?void 0:J.maxChars)||500},X=function(){return L().flowStateKey||""},x=_.iS(_.xD,X);
A=_.Gv(function(J){J=Object.assign({},x(),{flowFormState:{isValid:J.length<=O()},abuseReportFlowState:{userComments:J,navigationEnabled:!(J.length>O()),isReportFormDirty:!0}});_.oJ().dispatch(_.ZE("flowStateEntity",X(),J))},150);
_.GD(function(){var J=Object.assign({},x(),{flowFormState:{isValid:!0}});_.oJ().dispatch(_.ZE("flowStateEntity",X(),J))});
return _.D("yt-report-form-details-page-view-model",{class:function(){var J;return((J=_.q(x(),Ck))==null?void 0:J.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.D("h1",{class:function(){var J;
return((J=_.q(x(),Ck))==null?void 0:J.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return L().detailsPageHeader}),_.D("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.D(_.Xg,{text:function(){return L().bodyText}})),_.D("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.D(Y2,{label:function(){var J;
return((J=_.q(L().inputBox,UOk))==null?void 0:J.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var J;return{errorMessage:((J=_.q(L().inputBox,UOk))==null?void 0:J.maxCharsExceededErrorMessage)||"",maxChars:O()}},
onInput:A})))},"Xf");
Z7Z.idomCompat=!0;_.Y4(Z7Z,"yt-report-form-details-page-view-model",{props:{data:_.x5}});var jvS=_.xa(function(A){var L=A.data;var O=A.selectedKey;var X=A.onSelected;var x=A.groupName;var J=function(){return L().text},Y=function(){return L().attributedText},T=function(){return L().subtext},V=function(){return L().attributedSubtext},E=_.D("div",{class:"ytRadioButtonItemViewModelLabel"},_.D(_.e,{cond:J,
then:function(){return _.D("div",null,J)}}),_.D(_.e,{cond:Y,
then:function(){return _.D(_.Xg,{text:Y})}}),_.D(_.e,{cond:T,
then:function(){return _.D("div",{class:"ytRadioButtonItemViewModelSubText"},T)}}),_.D(_.e,{cond:V,
then:function(){return _.D("div",{class:"ytRadioButtonItemViewModelSubText"},_.D(_.Xg,{text:V}))}})),n=function(){if(Y()){var b;
return(b=Y())==null?void 0:b.content}return J()},t=function(){if(V()){var b;
return(b=V())==null?void 0:b.content}return T()};
A={};return _.D("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.D(_.WZ,{name:x,checked:function(){return!(O==null||!O()||L().key!==(O==null?void 0:O()))},
onChange:function(b){X==null||X(b.target,L(),x==null?void 0:x())},
labelRenderable:function(){return E},
ariaLabel:function(){return t()?n()+", "+t():n()},
className:_.qn((A.ytRadioButtonItemViewModelSubTitle=function(){return!!L().subtext},A))}))},"Yf");_.WxM=_.xa(function(A){var L=A.data;var O=A.onSelected;var X=A.selectedKey;var x=A.groupName;var J=function(){return(x==null?void 0:x())||L().key};
return _.D("yt-radio-button-group-view-model",{class:"ytRadioButtonGroupViewModelHost",tabindex:0},_.D("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.D(_.ID,{data:function(){return L().radioButtons}},{radioButtonItemViewModel:function(Y){return _.D(jvS,{data:Y.data,
onSelected:O,selectedKey:X,groupName:J})}})))},"Zf");var H7M=_.xa(function(A){var L=A.data;var O=_.kw("div"),X=function(){return L().flowStateKey||""},x=_.iS(_.xD,X),J=function(){return _.q(x(),Ck)};
_.ND(function(){var Y,T;if(((Y=J())==null?0:Y.isReportFormDirty)&&((T=J())==null||!T.navigationEnabled)&&_.h("enable_gff_accessibility_fix")){var V;if(((V=J())==null?void 0:V.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var E;(E=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||E.scrollIntoView()}else{var n;(n=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||n.scrollIntoView()}}},"VvP2Ne");
return _.D("yt-report-form-reason-select-page-view-model",{class:function(){var Y;return((Y=J())==null?void 0:Y.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.D("h1",{class:function(){var Y;
return((Y=J())==null?void 0:Y.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return L().pageHeader}),_.D("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.D(_.Xg,{text:function(){return L().bodyText}})),_.D("div",{class:function(){var Y;
return((Y=J())==null?void 0:Y.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.D(_.e,{cond:function(){var Y,T;
return((Y=J())==null?void 0:Y.isReportFormDirty)&&!((T=J())==null?0:T.navigationEnabled)&&_.h("enable_gff_accessibility_fix")},
then:function(){return _.D("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:O},_.D(_.Ky,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.D("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return L().emptyReasonSelectErrorMessage}))}}),_.D(_.WxM,{data:function(){return _.q(L().radioButtonGroup,_.sNX)},
onSelected:function(Y,T){Y=Object.assign({},x(),{abuseReportFlowState:Object.assign({},J(),{reasonKey:T.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:T.command})});_.At(_.NV("flowStateEntity",X(),Y))},
selectedKey:function(){var Y;return(Y=J())==null?void 0:Y.reasonKey},
groupName:"report-form-reason-select-page"})))},"$f");
H7M.idomCompat=!0;_.Y4(H7M,"yt-report-form-reason-select-page-view-model",{props:{data:_.x5}});var zgX=_.xa(function(A){var L=A.data;var O,X=(O=_.X5().resolve(_.Ot(_.oy)))==null?void 0:O();return _.D("yt-report-form-sign-in-page-view-model",{class:"yt-report-form-sign-in-page-view-model"},_.D("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-image"},_.D(_.XV,{data:function(){return X&&L().imageDark?L().imageDark:L().image},
alt:""})),_.D("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-text-content"},_.D("h1",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-header"},function(){return L().header}),_.D(_.Xg,{text:function(){return L().text},
className:"yt-report-form-sign-in-page-view-model__sign-in-prompt-body"})))},"ag");
zgX.idomCompat=!0;_.Y4(zgX,"yt-report-form-sign-in-page-view-model",{props:{data:_.x5}});_.Y4(_.xa(function(A){var L=A.data;var O=function(){return L().titleSuperscript},X=function(){return L().answersShelf},x=function(){return L().videoShelf},J=function(){var M;
return(M=L().textInputPlaceholder)==null?void 0:M.content},Y=function(){return L().showOpenTextInput&&!_.h("web_hide_explore_hub_until_user_navigates_back_to_home")},T=function(){var M;
return(M=L().textInputValue)==null?void 0:M.content},V=!1,E=_.kw("input");
A=_.d(_.uQ(!1,void 0,"dqEOSc"));var n=A.next().value,t=A.next().value,b=function(){return{state:n()?"active":"disabled"}};
_.r9(function(){Y()&&T()&&E.value&&(E.value.value=T())});
var S=function(M){M=M.target.value.trim();var H=L().onUpdateText;H&&_.$a(H,{form:{userQuery:M}});L().userQuery=M},w=_.Gv(function(M){S(M)},150),l=_.py(function(M){var H;
t(!((H=M.target.value)==null||!H.trim())||V);w(M);return!1}),F=_.py(function(M){if(M.key==="Enter"&&n()){S(M);
M=void 0;var H=_.q(L().nextButtonViewModel,_.Cu),z,a;if(H==null?0:(z=H.loggingDirectives)==null?0:(a=z.clientVeSpec)==null?0:a.uiType){var xe,ur;M=_.tI((xe=H.loggingDirectives)==null?void 0:(ur=xe.clientVeSpec)==null?void 0:ur.uiType)}(z=L().onNextStepCommand)&&_.$a(z,{forceClickLogging:!0,clickedVisualElement:M})}return!1}),R=_.av("yt-talk-to-recs-view-model"),y=function(){V=!0;
t(!0);if(_.h("web_hide_explore_hub_until_user_navigates_back_to_home")){var M,H,z;(z=(H=(M=R.value)==null?void 0:M.closest("ytd-flow-step-renderer"))==null?void 0:H.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||z.click()}};
A={};return _.D("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:R},_.D("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.D(_.ID,{data:function(){return L().topCornerButton}},{buttonViewModel:_.gj})),_.D("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.D("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.D(_.Xg,{text:function(){return L().title}}),_.D(_.e,{cond:O,
then:function(){return _.D("sup",{class:"ytwTalkToRecsSuperScript"},_.D(_.Xg,{text:O}))}})),_.D("div",{class:"ytwTalkToRecsSubtitle"},_.D(_.Xg,{text:function(){return L().subtitle}})),_.D("div",{class:"ytwTalkToRecsResultsShelf"},_.D(_.e,{cond:X,
then:function(){return _.D(_.ID,{data:X},{chipsShelfViewModel:function(M){return _.D("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.D(_.Xc7,{data:M.data,callback:y,enableSingleChipSelection:!0}))}})}}),_.D(_.e,{cond:x,
then:function(){return _.D(_.ID,{data:x},{horizontalShelfViewModel:function(M){return _.D("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.D(_.BZ,{data:M.data}))}})}})),_.D("div",{class:_.qn("ytwTalkToRecsRefinementContainer",(A.ytwTalkToRecsBottomMargin=function(){return L().isMultiTurnFlow},A))},_.D(_.e,{cond:Y,
then:function(){return _.D("div",{class:"ytwTalkToRecsUserInputBox"},_.D("input",{el:E,type:"text",class:"ytwTalkToRecsTextInput",placeholder:J,value:function(){return L().userQuery},
"on:input":l,"on:keyup":F,maxlength:200}))}}),_.D(_.ID,{data:function(){return L().isMultiTurnFlow?L().nextButtonViewModel:void 0}},{buttonViewModel:function(M){return _.D("div",{class:"ytwTalkToRecsFlowControlButtons"},_.D(_.gj,{data:M.data,
buttonOverrides:b}))}}),_.D(_.ID,{data:function(){return L().isMultiTurnFlow?L().resetButtonViewModel:void 0}},{buttonViewModel:function(M){return _.D("div",{class:"ytwTalkToRecsFlowControlButtons"},_.D(_.gj,{data:M.data}))}}))))},"bg"),"yt-talk-to-recs-view-model",{props:{data:_.x5}});var sZJ={sources:[{clientResource:{imageName:"CHECK"}}]};_.BTJ=_.xa(function(A){var L=_.av("div");A=_.OY(A,{error:void 0});var O=A.data,X=A.error,x=A.onSelected;A=_.d(_.Nn(function(){return dOM(O())}));
var J=A.next().value,Y=A.next().value;VhZ(O,function(b){Y(b);var S,w,l=PKX((S=O().options)==null?void 0:(w=S[b])==null?void 0:w.value,O().type);x==null||x(l);L.value.focus()});
A=_.py(function(){if(!O().disabled){var b=O(),S=J(),w=L.value;b.options&&(b=JjX(b.options,S,b.label),_.X5().resolve(_.RW).openSheet({viewModel:b},w))}});
var T=_.v2d(),V=function(){return!!X()},E=function(){return!!O().disabled},n={},t={};
return _.D("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.D("div",{class:_.qn("ytDropdownViewModelDropdownContainer",(n.ytDropdownViewModelDropdownContainerErrorBorder=V,n.ytDropdownViewModelDropdownContainerDisabled=E,n)),"on:click":A,el:L,role:"combobox",tabindex:0,"on:keydown":T,"aria-invalid":V,"aria-disabled":E,"aria-describedby":function(){return V()?"dropdown-view-model-error":void 0}},_.D("div",{class:"ytDropdownViewModelText"},YtB(O,V,J),u5J(O,J)),_.D("div",{class:_.qn("ytDropdownViewModelChevronDown",
(t.ytDropdownViewModelChevronDownDisabled=E,t))},_.D(_.Ky,{icon:"CHEVRON_DOWN"}))),TN7(O,X))},"cg");_.Y4(_.xa(function(A){var L=A.data;var O=function(x){var J=enk(L());J.videoMetadata||(J.videoMetadata={});J.videoMetadata.sponsorshipsMetadata||(J.videoMetadata.sponsorshipsMetadata={});J.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(x)},X=function(x){var J=enk(L());
J.scheduledRedirectMetadata||(J.scheduledRedirectMetadata={});J.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(x)};
return _.D("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.D("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.D("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.D(_.Xg,{text:function(){return L().title}}),_.D(_.Ky,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.D(_.Xg,{text:function(){return L().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.D(_.ID,{data:function(){return L().tierChoices}},{dropdownViewModel:function(x){return _.D("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.D(_.BTJ,{data:x.data,
onSelected:O}))}}),_.D(_.ID,{data:function(){return L().startTimeChoices}},{dropdownViewModel:function(x){return _.D("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.D(_.BTJ,{data:x.data,
onSelected:X}))}}),_.D(_.Xg,{text:function(){return L().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.D("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.D(_.ID,{data:function(){return L().scheduleButton}},{panelFooterViewModel:_.d8})))},"dg"),"ytfz-schedule-fanzone-view-model",{props:{data:_.x5}});_.Y4(_.xa(function(A){var L=A.data;A=A.className===void 0?"":A.className;var O=_.iS(LsM,function(){return L().flowStateEntityKey||""}),X={};
X=_.qn("ytFlowBottomBarViewModelFlowBottomBarButtons",(X.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return L().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||L().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},X));
var x={},J=_.qn("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",X,(x.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return L().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},x.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return L().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},x));
x={};var Y=_.qn("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",X,(x.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return L().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},x.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return L().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},x));
X={};X=_.qn("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(X.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return L().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},X.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return L().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},X.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return L().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
X));
A=_.qn("ytFlowBottomBarViewModelHost",A);return _.D("yt-flow-bottom-bar-view-model",{class:A},_.D(_.e,{cond:function(){var T;return(T=L())==null?void 0:T.textSection},
then:function(T){return _.D("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.D(_.Xg,{text:T}))}}),_.D("div",{class:X},_.D(_.ID,{data:function(){return L().secondaryButton}},{buttonViewModel:function(T){return _.D(_.gj,{data:T.data,
className:Y})}}),_.D(_.ID,{data:function(){return L().primaryButton}},{buttonViewModel:function(T){return _.D(_.gj,{data:T.data,
className:J,buttonOverrides:function(){var V;return{disabled:!((V=O())==null||!V.primaryButtonDisabled)}}})}})))},"eg"),"yt-flow-bottom-bar-view-model",{props:{data:_.x5,
className:_.dl}});var MJQ="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),uf=function(){var A=_.G.apply(this,arguments)||this;A.enableScrollingFix=!0;A.bottomBar=!1;A.hideBottomBar=!1;A.fitContent=!1;return A};
_.g(uf,_.G);_.P=uf.prototype;_.P.ready=function(){_.h("enable_pdp_icon_prefetch")&&_.aKZ(_.X5().resolve(_.Gg),0,MJQ)};
_.P.focus=function(A){this.topBar?_.M6(this.topBar,A):this.paperDialog.focus(A)};
_.P.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$20013_scroller&&(this.JSC$20013_scroller.dialogElement=this.paperDialog,this.JSC$20013_scroller.attached&&typeof this.JSC$20013_scroller.attached==="function"&&this.JSC$20013_scroller.attached())};
_.P.onDataChanged=function(){var A;this.fitContent=!((A=this.data)==null||!A.fitContent);var L;this.bottomBar=!((L=this.data)==null||!L.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.P.onProgressChanged=function(){var A,L,O=((L=(A=this.data)==null?void 0:A.progress)!=null?L:0)*100;this.progressElement.style.width=O+"%"};
_.P.isProgressHidden=function(){var A;return!((A=this.data)==null?0:A.progress)};
_.P.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",lpSectionGroupViewModel:"yt-lp-section-group-view-model",noteViewModel:"yt-note-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",
offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",
sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},
offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},flowBottomBarRenderer:{matcher:function(A){return _.h("enable_wiz_next_lp2_msof")&&
A&&!A.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.v2.Object.defineProperties(uf.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var A;return _.h("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.q((A=this.data)==null?void 0:A.content,OHz)}}});
uf.prototype.onProgressChanged=uf.prototype.onProgressChanged;uf.prototype.onDataChanged=uf.prototype.onDataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],uf.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],uf.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],uf.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],uf.prototype,"enableScrollingFix",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],uf.prototype,"bottomBar",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],uf.prototype,"hideBottomBar",void 0);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],uf.prototype,"containsExploreHub",null);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],uf.prototype,"fitContent",void 0);_.I([_.qR("#progress"),_.Z("design:type",HTMLElement)],uf.prototype,"progressElement",void 0);
_.I([_.qR("#scroller"),_.Z("design:type",Object)],uf.prototype,"JSC$20013_scroller",void 0);_.I([_.qR("ytd-flow-top-bar-renderer"),_.Z("design:type",HTMLElement)],uf.prototype,"topBar",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],uf.prototype,"onDataChanged",null);_.I([_.hT("data.progress"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],uf.prototype,"onProgressChanged",null);
_.I([_.Q({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],uf);
_.m(uf,"ytd-flow-step-renderer",function(){if(NRS!==void 0)return NRS;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return NRS=A},{mode:1});var $dX=function(A){this.resolveCommand=A;this.steps={}},az7=function(A,L){L=_.d(L||[]);
for(var O=L.next();!O.done;O=L.next()){O=O.value;var X=Object.values(O)[0],x=void 0;if((x=X)==null?0:x.stepId)A.steps[X.stepId]=O}},vwS=function(A,L){var O,X,x,J,Y;
return _.u(function(T){if((O=A.state)==null||!O.currentStepId)return T.return(void 0);X=kuJ(A);if(!X)return T.return(Ud7(A));if(x=_.q(X,_.Lgz)){var V;((V=x.screenLoggingData)==null?0:V.screenVeType)&&_.h7(_.iV(),x.screenLoggingData.screenVeType);((J=x)==null?0:J.onStepStartCommand)&&A.resolveCommand((Y=x)==null?void 0:Y.onStepStartCommand,{})}if(x&&L){V=x;var E,n,t,b;((E=L.flowLoggingData)==null?0:E.eventNamespace)&&((n=V.flowEventData)==null?0:n.eventType)&&((t=V.flowEventData)==null?0:t.eventMetadata)&&
((b=L.flowLoggingData)==null?0:b.flowType)&&(E=_.n3(L.flowLoggingData.eventNamespace,V.flowEventData.eventType,V.flowEventData.eventMetadata),_.ti(_.bn(),E,L.flowLoggingData.flowType));L.steps&&!L.steps.includes(X)&&L.steps.push(X)}return T.return(X)})};
$dX.prototype.back=function(){var A;(A=this.state)!=null&&A.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
$dX.prototype.handleUpdateFlowCommand=function(A){A.steps&&az7(this,A.steps);A.entityUpdateCommand&&this.resolveCommand(A.entityUpdateCommand,{});A.flowContinuationCommand&&(A=A.flowContinuationCommand)&&(this.getFlowContinuationCommand=A);this.awaitFlowContinuation&&(this.awaitFlowContinuation(kuJ(this)),this.awaitFlowContinuation=void 0)};
$dX.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var Ud7=function(A){return _.u(function(L){return A.getFlowContinuationCommand?L.return(new Promise(function(O){A.awaitFlowContinuation=O;A.getFlowContinuationCommand&&A.resolveCommand(A.getFlowContinuationCommand,{flow_state:A.state})})):L.return(Promise.resolve(void 0))})},kuJ=function(A){var L;
if((L=A.state)!=null&&L.currentStepId)return A.steps[A.state.currentStepId]};var TQ=function(){var A=_.G.apply(this,arguments)||this;A.flowState=new $dX(function(L,O){O=O===void 0?{}:O;_.S5.instance.resolveCommand(L,{form:{form:O,element:A.hostElement}})});
A.initialState=!0;A.isLoading=!1;A.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 A};
_.g(TQ,_.G);_.P=TQ.prototype;_.P.onPopupClosed=function(A){A&&this.hostElement!==A.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.P.configureRendererStamper=function(){return{"data.topBar":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},currentFlowStep:{id:"flow-step",mapping:{flowStepRenderer:"ytd-flow-step-renderer"}}}};
_.P.focus=function(A){var L=this;_.MR(function(){var O=_.YJ(L.hostElement).querySelector("ytd-flow-step-renderer");(O==null?0:O.topBar)?O.focus(A):L.topBar&&_.M6(L.topBar,A)},1)};
_.P.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.P.computeTopBarHidden=function(A){var L;return!((L=_.q(A,_.Lgz))==null||!L.topBarOverride)};
_.P.dataChanged=function(){var A=this,L,O;return _.u(function(X){if(X.nextAddress==1){((L=A.data)==null?0:L.steps)&&az7(A.flowState,A.data.steps);if((O=A.data)==null?0:O.flowContinuationCommand){var x=A.flowState,J=A.data.flowContinuationCommand;J&&(x.getFlowContinuationCommand=J)}return X.yield(vwS(A.flowState,A.data),2)}A.currentFlowStep=X.yieldResult;_.qo(X)})};
_.P.flowChanged=function(){var A=this,L;return _.u(function(O){if(O.nextAddress==1){if(!A.flow)return O.return();A.flowState.state=A.flow;A.isLoading=!0;return O.yield(vwS(A.flowState,A.data),2)}L=O.yieldResult;if(!L||A.flow.isLoading)return O.return();A.currentFlowStep=L;A.initialState=!1;A.isLoading=!1;A.autofocusAndRefit();_.qo(O)})};
_.P.autofocusAndRefit=function(){var A=this,L=_.X5().resolve(_.Ot(_.bv)),O=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),X=document.querySelector("yt-report-form-confirmation-page-view-model"),x=document.querySelector("yt-report-form-details-page-view-model"),J=document.querySelector("yt-report-form-reason-select-page-view-model"),Y=document.querySelector("yt-contributor-zero-state-view-model"),
T=document.querySelector("yt-structured-context-note-view-model"),V=document.querySelector("yt-note-view-model");(!O&&L&&L.isKeyBoardInUse()||X||!O&&x||!O&&J||Y||T||V)&&_.$o(this.hostElement);_.kd(this,function(){_.P4(A.hostElement,"yt-refit")})};
_.P.handleUpdateFlowCommand=function(A){this.data&&(A=_.q(A,A4J),A.targetId===this.data.targetId&&(A.flowContinuationCommand&&(this.data.flowContinuationCommand=A.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(A),this.autofocusAndRefit()))};
_.P.handleFlowNextStepCommand=function(A){this.data&&this.flow&&this.flow.key&&(A=_.q(A,v$M),A.targetId===this.data.targetId&&(A=A.stepId||"",this.ytdReduxBehavior.dispatch(_.ZE("flowStateEntity",this.flow.key,{currentStepId:A,stepIdStack:(this.flow.stepIdStack||[]).concat(A)}))))};
_.P.handleFlowPrevStepCommand=function(A){if(this.data&&this.flow&&this.flow.key&&(A=_.q(A,o$Z),A.targetId===this.data.targetId)){var L=[].concat(_.le(this.flow.stepIdStack||[]));L.length>1?(L.pop(),this.ytdReduxBehavior.dispatch(_.ZE("flowStateEntity",this.flow.key,{currentStepId:L[L.length-1],stepIdStack:L}))):A.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(A.onFirstStepCommand)}};
_.P.handleYpcCancelRecurrenceCommand=function(A){if(this.data&&this.flow&&this.flow.key&&(A=_.q(A,J4B),A.targetId===this.data.targetId&&A.endpointCommand)){var L=_.q(this.flow,P8z);L&&_.q(A.endpointCommand,_.xUu)&&(_.q(A.endpointCommand,_.xUu).feedbackData=L.surveyFeedback);this.ytComponentBehavior.resolveCommand(A.endpointCommand)}};
_.P.handlePartialUpdateFlowStateEntity=function(A){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.ZE("flowStateEntity",this.flow.key,A,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
TQ.prototype.flowChanged=TQ.prototype.flowChanged;TQ.prototype.dataChanged=TQ.prototype.dataChanged;TQ.prototype.onPopupClosed=TQ.prototype.onPopupClosed;_.I([_.N(_.HL),_.Z("design:type",Object)],TQ.prototype,"ytdReduxBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],TQ.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],TQ.prototype,"ytComponentBehavior",void 0);
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],TQ.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],TQ.prototype,"ytActionHandlerBehavior",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],TQ.prototype,"initialState",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],TQ.prototype,"isLoading",void 0);_.I([_.K(),_.Z("design:type",Object)],TQ.prototype,"data",void 0);
_.I([_.K(),_.Z("design:type",Object)],TQ.prototype,"currentFlowStep",void 0);_.I([_.by("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],TQ.prototype,"onPopupClosed",null);_.I([_.K({selectorArgs:["data.flowStateEntityKey"],selector:LsM}),_.Z("design:type",Object)],TQ.prototype,"flow",void 0);_.I([_.qR("ytd-flow-top-bar-renderer"),_.Z("design:type",HTMLElement)],TQ.prototype,"topBar",void 0);
_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype",Promise)],TQ.prototype,"dataChanged",null);_.I([_.iy("flow"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype",Promise)],TQ.prototype,"flowChanged",null);_.I([_.Q({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],TQ);
_.owM=_.DX()(TQ,"ytd-flow-root-renderer",function(){if(iHk!==void 0)return iHk;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return iHk=A},{mode:_.e5("kevlar_poly_si_batch_j025")?1:2});var AlX;var lT=null;_.Y4(_.xa(function(A){return _.D("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.D("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.D(_.Xg,{text:function(){return A.data().text}}),_.D("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"fg"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.x5}});var L2S=_.xa(function(A){var L=A.playerControlsProps;var O=A.isShortsPage;return _.D("yt-bigboard",null,_.D(_.e,{cond:function(){return L().isDragging},
then:function(){return _.D("div",{class:"ytBigboardStoryboardHost"},_.D(_.cDz,{progressBarProps:L,isShortsPage:O}))}}))},"gg");
L2S.idomCompat=!0;_.Vg={ACCOUNT_LABEL:co("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:co("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:co("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:co("AD_BADGE_HINT"),AD_BADGE_TEXT:co("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:co("ALL_CHANNELS_LABEL"),AMBIENT_MODE:co("AMBIENT_MODE"),AMBIENT_MODE_OFF:co("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:co("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:co("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:co("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:co("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:co("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:co("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:co("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:co("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:co("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:co("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:co("AUTO_ZOOM","Auto zoom"),BACK:co("BACK"),CANCEL:co("CANCEL"),CHANNEL_SWITCHER_LABEL:co("CHANNEL_SWITCHER_LABEL"),CLOSE:co("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:co("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:co("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:co("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:co("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:co("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:co("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:co("COMMENT_MODAL_CONTENT"),CONFIRM_OK:co("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:co("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:co("COPIED_TO_CLIPBOARD"),COPY:co("COPY"),COPY_DEBUG_INFO:co("COPY_DEBUG_INFO"),COPY_EMBED_CODE:co("COPY_EMBED_CODE"),
COPY_LINK_LABEL:co("COPY_LINK_LABEL"),COPY_VIDEO_URL:co("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:co("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:co("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:co("DELETE_FROM_DOWNLOADS"),DIALOG:co("DIALOG"),DONE:co("DONE"),DOWNLOAD:co("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:co("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:co("FLAG_CONFIRM"),FLAG_CONTENT:co("FLAG_CONTENT"),FLAG_LABEL:co("FLAG_LABEL"),FLAG_TITLE:co("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:co("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:co("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:co("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:co("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:co("HIDE_SEARCH_FILTERS_LABEL"),HOME:co("HOME","Home"),INVALID_RESPONSE_RECEIVED:co("INVALID_RESPONSE_RECEIVED"),LIBRARY:co("LIBRARY","Library"),LISTENING:co("LISTENING"),LOADING:co("LOADING"),LONG_PRESS_MIC_TO_SPEAK:co("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:co("LOOP"),MENU_DESKTOP:co("MENU_DESKTOP"),
MENU_EXIT:co("MENU_EXIT"),MENU_FEEDBACK:co("MENU_FEEDBACK"),MENU_HELP:co("MENU_HELP"),MENU_IMPRESSUM:co("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:co("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:co("MENU_SETTINGS"),MENU_SIGN_IN:co("MENU_SIGN_IN"),MENU_TITLE:co("MENU_TITLE"),MENU_YOUR_DATA:co("MENU_YOUR_DATA"),MORE_INFO:co("MORE_INFO"),MORE_OPTIONS:co("MORE_OPTIONS"),MUTE_VOLUME:co("MUTE_VOLUME"),NEW_PLAYLIST:co("NEW_PLAYLIST"),NEXT_VIDEO:co("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:co("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:co("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:co("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:co("NOT_FOUND_TITLE"),NO_DOWNLOADS:co("NO_DOWNLOADS"),NO_MIC_INPUT:co("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:co("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:co("OOPS_MESSAGE"),OPEN_APP:co("OPEN_APP"),OPEN_YOUTUBE:co("OPEN_YOUTUBE"),PAUSE:co("PAUSE"),PLAY:co("PLAY"),PLAYER_CAPTION:co("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:co("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:co("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:co("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:co("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:co("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:co("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:co("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:co("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:co("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:co("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:co("PLAYER_MINIMIZE"),PLAYER_NEXT:co("PLAYER_NEXT"),PLAYER_PAUSE:co("PLAYER_PAUSE"),PLAYER_PLAY:co("PLAYER_PLAY"),
PLAYER_PREVIOUS:co("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:co("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:co("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:co("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:co("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:co("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:co("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:co("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:co("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:co("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:co("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:co("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:co("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:co("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:co("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:co("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:co("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:co("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:co("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:co("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:co("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:co("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:co("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:co("PLAY_ALL"),PLEASE_FIX_ERRORS:co("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:co("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:co("PREVIOUS_VIDEO"),PRIVACY_POLICY:co("PRIVACY_POLICY"),RELOAD:co("RELOAD"),REQUIRED_LABEL:co("REQUIRED_LABEL"),SAVE_PLAYLIST:co("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:co("SCRUB_SLIDE_USER_EDU"),SEARCH:co("SEARCH","Search"),
SEARCH_APPEND_LABEL:co("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:co("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:co("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:co("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:co("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:co("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:co("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:co("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:co("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:co("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:co("SEEK_SLIDER"),SETTINGS_LABEL:co("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:co("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:co("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:co("SHOW_LESS"),SHOW_MORE:co("SHOW_MORE"),SHOW_PLAYER_CONTROLS:co("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:co("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:co("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:co("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:co("SIGN_IN_ON_WEB"),STABLE_VOLUME:co("STABLE_VOLUME"),STABLE_VOLUME_OFF:co("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:co("STABLE_VOLUME_ON"),STATS_FOR_NERDS:co("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:co("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:co("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:co("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:co("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:co("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:co("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:co("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:co("TIMESTAMP_SECONDS"),TOGGLE_OFF:co("TOGGLE_OFF"),TOGGLE_ON:co("TOGGLE_ON"),TRENDING:co("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:co("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:co("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:co("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:co("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:co("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:co("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:co("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:co("VIDEO_LINK_LABEL")};var OdS=_.xa(function(A){var L=A.playerApi;A=_.av("button",function(X){_.xC(X,36843)});
var O=co("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.D("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.D("button",{el:A,class:"ytPlayerControlsJumpForwardButtonButton",title:O,"aria-label":O,"on:click":_.py(function(){_.s3(36843);L&&L().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.D("span",null,_.D(_.Ky,{icon:"FAST_FORWARD"}))))},"hg");var X2B=_.xa(function(A){var L=A.appApi;A=_.av("button",function(X){_.xC(X,62946)});
var O=co("OPEN_IN_MINIPLAYER");return _.D("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.D("button",{el:A,class:"ytMiniplayerButtonButton",title:O,"aria-label":O,"on:click":_.py(function(){_.s3(62946);var X,x;(x=(X=L()).openInMiniplayer)==null||x.call(X);return!1})},_.D(_.Ky,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"ig");var x7J=_.xa(function(A){var L=A.playerApi;A=_.av("button",function(J){_.xC(J,142812)});
var O=_.d(_.uQ(!1,void 0,"I3VCyb")),X=O.next().value,x=O.next().value;O=function(){return co("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(X()?1:2)})};
return _.D("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.D("button",{el:A,class:"ytPlaybackSpeedButtonButton",title:O,"aria-label":O,"on:click":_.py(function(){_.s3(142812);if(L){var J=L(),Y=X();J.setPlaybackRate(Y?1:2);x(!X())}return!1})},_.D("span",null,_.D(_.Ky,{icon:function(){return X()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"jg");var sU$=_.xa(function(A){var L=A.title;var O=A.ariaLabel;var X=A.icon;var x=A.command;var J=A.veType;A=_.av("button",function(Y){J&&_.xC(Y,J())});
return _.D("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.D("button",{el:A,class:"ytdThumbnailOverlayButtonButton",title:L,"aria-label":O,"on:click":_.py(function(){J&&_.s3(J());x&&_.X5().resolve(_.x$).resolveCommand(x())})},_.D(_.Ky,{icon:X})))},"kg");var q9="";var Jl7=_.xa(function(A){var L=A.playerControlsProps,O=A.onClickFn;A=_.E4(function(){var J=L(),Y=-1;J.captionsAvailable&&(Y=J.captionsEnabled?1:0);return Y},void 0,"WecR8e");
var X=_.E4(function(){var J=L();return J.captionsAvailable?_.b3(J.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.b3("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),x=_.E4(function(){var J=L();
J=J.captionsAvailable?J.captionsEnabled:void 0;return J},void 0,"Q17ly");
return _.D("yt-closed-captions-toggle-button",null,_.D(_.puM,{captionIconType:A,ariaLabel:X,ariaPressed:x,onClick:function(J){var Y=L();if(Y.captionsAvailable){var T=Y.playerApi;if(T){var V=Y.playerApi;if(V){var E=q9;if(E){V=V.getOption("captions","track");var n;q9=(n=V?V.displayName:null)!=null?n:E}else _.Xm(V)?(E=_.oA9(V),q9=E.length?(n=XYM(E))?n.displayName:E[0].displayName:""):q9=""}xEz(T);_.h("mweb_disable_set_state_captions_killswitch")&&Y.setState({captionsEnabled:!Y.captionsEnabled})}}var t,
b;(b=(t=Y.appApi).showCaptionsToggleToast)==null||b.call(t,Y);O==null||O(J)},
isOverlay:!0}))},"lg");var POJ=_.xa(function(A){var L=A.data;return _.D("yt-premiere-trailer-badge",{class:"yt-premiere-trailer-badge"},_.D(_.HW,{data:function(){return{type:17,text:_.hMy(L().label)}}}))},"mg");var d7J=_.xa(function(A){var L=_.qn("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return A.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return A.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return A.size()==="small"?A.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
A.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.D("animated-seek-arrows",{class:_.qn("ytPlayerControlsAnimatedSeekArrowsHost")},_.D("span",{class:L}),_.D("span",{class:L}),_.D("span",{class:L}))},"ng");
d7J.idomCompat=!0;var YjX=_.xa(function(){var A=_.b3("PLAYER_SECONDS",{seconds_placeholder:"30"}),L=_.d(_.uQ(!1,void 0,"Yj8msb")),O=L.next().value,X=L.next().value,x=_.d(_.uQ(!1,void 0,"r9Z50e"));L=x.next().value;var J=x.next().value;x={};var Y=_.qn("jumpForwardOverlayOverlay",(x.jumpForwardOverlayOverlayHidden=L,x));_.GD(function(){var T=null,V=null,E=function(){T!==null&&_.Q7().cancelJob(T);V!==null&&_.Q7().cancelJob(V);J(!0);X(!0);_.et(_.Q7(),function(){J(!1)});
T=_.et(_.Q7(),function(){J(!0);V=_.et(_.Q7(),function(){X(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",E);_.rF(function(){window.removeEventListener("jump-forward-clicked",E)})});
return _.D("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.D(_.e,{cond:O,then:function(){return _.D("div",{class:Y},_.D(d7J,{direction:1,size:"large"}),_.D("div",null,A))}}))},"og");var uhM=_.Vg.MUTE_VOLUME,TVM=_.Vg.UNMUTE_VOLUME,VvJ=_.xa(function(A){var L=A.muteIconType;var O=A.onClick;var X=A.useOutlineIcon;var x=A.useDelhiIcons;A=_.av("button",function(T){_.xC(T,28662)});
var J=function(){var T=L(),V=X==null?void 0:X(),E=x==null?void 0:x(),n="",t="";switch(T){case -1:case 0:n=V?"VOLUME_OFF":E?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";t=TVM;break;case 1:n=V?"VOLUME_UP_OUTLINE":E?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";t=uhM;break;case 2:n=V?"VOLUME_DOWN_OUTLINE":E?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";t=uhM;break;default:_.ZN(T)}return{iconName:n,ariaLabel:t}},Y=function(){return J().ariaLabel};
return _.D("ytm-mute-button",{class:"ytmMuteButtonHost"},_.D("button",{el:A,class:"ytmMuteButtonButton",title:Y,"aria-label":Y,"on:click":_.py(function(T){_.s3(28662);O==null||O(T);return!1})},_.D("span",null,_.D(_.Ky,{icon:function(){return J().iconName}}))))},"pg");var D7Q=_.xa(function(A){var L=A.volumeProps;var O=A.onClickFn;var X=A.useOutlineIcon;var x=A.useDelhiIcons;return _.D("yt-mute-toggle-button",null,_.D(VvJ,{muteIconType:function(){var J=L();return J.volumeMuted||J.volume===0?0:J.volume>50?1:2},
onClick:function(J){var Y=L().playerApi;Y&&(Y.isMuted()?Y.unMute():Y.mute(!1));O==null||O(J)},
useOutlineIcon:function(){return!(X==null||!X())},
useDelhiIcons:function(){return!(x==null||!x())}}))},"qg");
D7Q.idomCompat=!0;var eLM=_.xa(function(A){var L=A.data;var O=_.av("ytm-paid-content-overlay-renderer");return _.D("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:O,"on:animationend":_.py(function(){O.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.D(_.aD,{command:function(){return L().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.D(_.e,{cond:function(){var X;return(X=L().icon)==null?void 0:X.iconType},
then:function(){return _.D("span",null,_.D(_.Ky,{icon:function(){var X;return(X=L().icon)==null?void 0:X.iconType}}))}}),_.D("div",{class:"ytmPaidContentOverlayText"},_.D(_.Xg,{text:function(){return L().text}})),_.D(_.e,{cond:function(){return L().navigationEndpoint},
then:function(){return _.D(_.Ky,{icon:"CHEVRON_RIGHT"})}})))},"rg");
eLM.idomCompat=!0;var GA$=[].concat(_.le([{register:function(A){var L=yjM(A),O;(O=A().playerApi)==null||O.addEventListener("onVolumeChange",L);return function(){}}},
{register:function(A){var L=Zez(A);A=A().playerApi;A==null||A.addEventListener("captionschanged",L);A==null||A.addEventListener("captionssettingschanged",L);A==null||A.addEventListener("onCaptionsTrackListChanged",L);return function(){}}},
{register:function(A){if(!_.h("mweb_screenreader_accessible_player"))return function(){};
var L=jZM(A),O=document.querySelector("video");O==null||O.addEventListener("touchend",L);return function(){O==null||O.removeEventListener("touchend",L)}}},
{register:function(A){if(!_.h("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var L=jZM(A),O=document.querySelector("video");O==null||O.addEventListener("focus",L);return function(){O==null||O.removeEventListener("focus",L)}}}]),[{register:function(A){var L=QZM(A),O;
(O=A().playerApi)==null||O.addEventListener("onStateChange",L);return function(){}}},
{register:function(A){var L=mOJ(A),O;(O=A().playerApi)==null||O.addEventListener("onPlaybackRateChange",L);return function(){}}},
{register:function(A){var L=fKQ(A),O;(O=A().playerApi)==null||O.addEventListener("onVideoDataChange",L);return function(){}}},
{register:function(A){var L=IKX(A),O,X;(O=A())==null||(X=O.playerApi)==null||X.addEventListener("onVideoProgress",L);return function(){}}}]);var Edk=_.xa(function(A){var L=A.data;var O=function(){return _.b3("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+L().playbackRate})};
return _.D(_.e,{cond:function(){return L().playbackRate&&L().playbackRate!==1},
then:function(){return _.D("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.D("div",{class:"ytPlaybackRateOverlayOverlay"},_.D(d7J,{direction:1,size:"small"}),_.D("div",{class:"ytPlaybackRateOverlayLabel"},O)))}})},"sg");var ndS=_.xa(function(A){var L=A.data;return _.D("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.D(_.e,{cond:function(){var O,X=(O=L())==null?void 0:O.playerResponse,x;return X==null?void 0:(x=X.paidContentOverlay)==null?void 0:x.paidContentOverlayRenderer},
then:function(O){return _.D(eLM,{data:O})}}))},"ug"),tvk=_.xa(function(A){var L=A.props;
var O=A.data;var X=A.options;var x=function(){var E,n,t,b;return(E=O())==null?void 0:(n=E.playerResponse)==null?void 0:(t=n.playerConfig)==null?void 0:(b=t.inlinePlaybackConfig)==null?void 0:b.showAudioControls},J=function(){var E,n;
if(x()&&((E=X())==null?void 0:(n=E.additionalButton)==null?void 0:n.button)!==void 0){var t,b,S;E=(t=O())==null?void 0:(b=t.playerApi)==null?void 0:(S=b.getSize())==null?void 0:S.height;if(!(E===void 0||E<180)){var w,l;return(w=X())==null?void 0:(l=w.additionalButton)==null?void 0:l.button}}},Y=function(){var E,n;
return(E=X())==null?void 0:(n=E.additionalButton)==null?void 0:n.thumbnailOverlayButtonRenderers},T=function(){var E,n;
return(E=X())==null?void 0:(n=E.additionalButton)==null?void 0:n.thumbnailOverlayButtonViewModels},V=function(){var E=[_.D(D7Q,{volumeProps:L}),
_.D(Jl7,{playerControlsProps:L})];J()===1&&E.push(_.D(OdS,{playerApi:function(){return L().playerApi}}));
J()===2&&E.push(_.D(X2B,{appApi:function(){return L().appApi}}));
J()===3&&E.push(_.D(x7J,{playerApi:function(){return L().playerApi}}));
var n=Y();if(J()===4&&n){n=_.d(n);for(var t=n.next(),b={};!t.done;b={tooltip$jscomp$2:void 0,ariaLabel$jscomp$22:void 0,icon$jscomp$54:void 0,command$jscomp$588:void 0},t=n.next()){t=t.value;b.tooltip$jscomp$2=t.tooltip;var S=void 0,w=void 0;b.ariaLabel$jscomp$22=((S=t.accessibility)==null?void 0:(w=S.accessibilityData)==null?void 0:w.label)||b.tooltip$jscomp$2;S=void 0;b.icon$jscomp$54=(S=t.icon)==null?void 0:S.iconType;b.command$jscomp$588=t.command;b.tooltip$jscomp$2&&b.ariaLabel$jscomp$22&&b.icon$jscomp$54&&
E.push(_.D(sU$,{title:function(l){return function(){return l.tooltip$jscomp$2}}(b),
ariaLabel:function(l){return function(){return l.ariaLabel$jscomp$22}}(b),
icon:function(l){return function(){return l.icon$jscomp$54}}(b),
command:function(l){return function(){return l.command$jscomp$588}}(b)}))}}n=T();
if(J()===4&&n)for(n=_.d(n),t=n.next(),b={};!t.done;b={tooltip$jscomp$3:void 0,ariaLabel$jscomp$23:void 0,icon$jscomp$55:void 0,command$jscomp$589:void 0},t=n.next())t=t.value,b.tooltip$jscomp$3=t.title,b.ariaLabel$jscomp$23=t.accessibilityText||b.tooltip$jscomp$3,b.icon$jscomp$55=t.iconName,b.command$jscomp$589=_.HR(t.onTap),b.tooltip$jscomp$3&&b.ariaLabel$jscomp$23&&b.icon$jscomp$55&&E.push(_.D(sU$,{title:function(l){return function(){return l.tooltip$jscomp$3}}(b),
ariaLabel:function(l){return function(){return l.ariaLabel$jscomp$23}}(b),
icon:function(l){return function(){return l.icon$jscomp$55}}(b),
command:function(l){return function(){return l.command$jscomp$589}}(b)}));
return E};
return _.D(_.e,{cond:x,then:function(){return _.D("div",{class:"ytInlinePlayerControlsTopRightControls"},_.D(_.g9,{each:V},function(E){return _.D("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.D("div",{class:"ytInlinePlayerControlsButtonIcon"},E))}))}})},"vg"),SjZ=_.xa(function(A){var L=A.props;
var O=A.data;var X=A.options;A={};A=_.qn("ytInlinePlayerControlsBottomRightControls",(A.ytInlinePlayerControlsBottomRightControlsHidden=function(){var x;return HeZ(O(),X())&&((x=X())==null?void 0:x.insetProgressBar)&&(L().isHovering||L().isDragging)},A));
return _.D("div",{class:A},_.D(bdM,{data:O}),_.D(_.e,{cond:function(){var x;return!((x=X())==null?0:x.hideTimeDisplay)},
then:function(){return _.D(hLX,{props:L,data:O})}}))},"wg"),bdM=_.xa(function(A){var L=A.data;
return _.D(_.ID,{data:function(){var O;return NNz((O=L())==null?void 0:O.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:POJ})},"xg"),hLX=_.xa(function(A){var L=A.props;
var O=A.data;return _.D(_.e,{cond:function(){return L().isLive},
then:function(){return _.D(qjM,null)},
else:function(){return _.D(gdJ,{props:L,data:O})}})},"yg"),gdJ=_.xa(function(A){var L=A.props;
var O=A.data;var X=_.E4(function(){var x;return K7Q((x=O())==null?void 0:x.thumbnailOverlays)},void 0,"kUmuA");
return _.D("div",{class:_.qn("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.Vg.PLAYER_TIME_ELAPSED+" "+_.Ppe(L().playedTime)}},_.D(_.HW,{data:function(){var x=_.Ppe(L().videoDuration-L().playedTime);
return Object.assign({},{type:17,text:x},X())}}))},"zg"),qjM=_.xa(function(){var A=_.qn("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge");
return _.D("div",{class:A},_.D(_.HW,{data:{type:18,text:_.Vg.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"Ag"),w2X=_.xa(function(A){var L=A.props;
var O=A.data;var X=A.options;return _.D(_.f4X,{progressBarProps:L,config:function(){var x,J=_.q((x=O())==null?void 0:x.multiMarkersPlayerBar,_.Gf3),Y;x=((Y=X())==null?0:Y.insetProgressBar)?2:1;var T;Y=(T=X())==null?void 0:T.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:x,chapterData:J,isInlinePlayback:!0,doSeekOnClick:Y,playheadDotBehavior:Y?1:0}}})},"Bg");_.Y4(_.xa(function(A){var L=A.data;var O=A.appApi;var X=A.options;var x=Rnk(L,W7Z(O));A={};O={};return _.D("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.D("div",{class:_.qn("ytInlinePlayerControlsDarkenedOverlay",(A.ytInlinePlayerControlsDarkenedOverlayShow=function(){return x().isHovering},A))}),_.D(YjX,null),_.D(Edk,{data:x}),_.D(ndS,{data:L}),_.D(L2S,{playerControlsProps:x,
isShortsPage:!1}),_.D("div",{class:_.qn((O.ytInlinePlayerControlsControlsHidden=function(){return x().isDragging},O))},_.D(tvk,{props:x,
data:L,options:X}),_.D(SjZ,{props:x,data:L,options:X})),_.D(_.e,{cond:function(){return HeZ(L(),X())},
then:function(){return _.D(w2X,{props:x,data:L,options:X})}}))},"tg"),"yt-inline-player-controls",{props:{data:_.x5,
appApi:_.dl,options:_.x5}});var D8=function(){var A=_.G.apply(this,arguments)||this;A.opts=null;A.playerControlsData=null;A.playerControlsAppApi={openInMiniplayer:function(){A.openInMiniplayer()}};
A.playerControlsOptions={};A.noAnimation=!1;A.playbackIntentTriggered=!1;A.positionData=null;A.hidden=!0;A.active=!1;A.playing=!1;A.videoPreviewDataIndex=0;A.JSC$20069_playerPromise=null;A.player=null;A.enableAudioControls=!1;A.hasBeenUnmuted=!1;A.captionsHaveBeenTurnedOff=!1;A.JSC$20069_playerEvents=new Map;A.videoPreviewFetchRequest=null;A.scheduledPreviewEndJobId=null;A.JSC$20069_preventProgressSaveTimer=null;A.watchEndpointStartTimeUpdaterInterval=null;A.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};A.windowOnBlurFn=function(){A.deactivate()};
return A};
_.g(D8,_.G);_.P=D8.prototype;
_.P.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":_.h("web_enable_rich_item_on_focus_effect")?{id:"endorsement",mapping:{}}:{id:"endorsement",mapping:{thumbnailOverlayEndorsementRenderer:{component:"ytd-thumbnail-overlay-endorsement-renderer",params:{disableAnimation:!0,rounded:!0}},attributionViewModel:{component:"yt-thumbnail-overlay-attribution-view-model"}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",
thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model"}}}};
_.P.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$20069_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$20069_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$20069_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$20069_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.tT(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.tT(this,this.onScroll))};
_.P.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.tT(this,this.onScroll))};
_.P.onPageTypeChange=function(){this.deactivate()};
_.P.onWindowResized=function(){this.deactivate()};
_.P.onCaptionsChanged=function(A){A=!!A.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!A);this.setCaptionSize()};
_.P.setCaptionSize=function(){var A;if(this.active&&!this.captionsHaveBeenTurnedOff&&((A=this.player)==null?0:A.getCaptionWindowContainerId())){var L;(L=this.player)==null||L.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.P.currentPageAllowed=function(){return!this.isWatchPage};
_.P.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData)return!1;var A=this.positionData,L=A.initialTopPosition,O=A.initialHorizontalPosition;_.eq(this.hostElement,{"--ytd-video-preview-translate-left":A.finalHorizontalPosition-O+"px","--ytd-video-preview-translate-top":A.finalTopPosition-L+"px","--ytd-video-preview-original-top-position":L+"px","--ytd-video-preview-original-horizontal-position":O+"px",
"--ytd-video-preview-initial-scale":"scale("+A.initialScale+")","--ytd-video-preview-width":A.videoPreviewWidth+"px","--ytd-video-preview-height":A.videoPreviewHeight+"px"});return!0};
_.P.handleOpenVideoPreviewAction=function(A){var L=this,O;return _.u(function(X){if(!L.currentPageAllowed())return X.return(0);L.opts=A;return(O=L.alignVideoPreviewForAnimation(A.thumbnail))?X.return(L.activate()):X.return(0)})};
_.P.onMouseLeave=function(A){this.shouldDeactivateOnMouseLeave(A)&&this.deactivate()};
_.P.onScroll=function(){var A,L;((A=this.opts)==null?0:A.isAutoplay)&&((L=this.opts)==null?0:L.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.P.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.c1.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.P.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.P.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",D8.JSC$20068_DEFAULT_CLICK_LOCATION_BEHAVIOR,D8.JSC$20068_CLICK_LOCATION_ID_MAP)};
_.P.shouldDeactivateOnMouseLeave=function(A){A=A.relatedTarget;if(!A)return!0;var L;return(L=this.opts)!=null&&L.mediaRenderer?!_.uy(this.opts.mediaRenderer).contains(A):!0};
_.P.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.P.onPlaybackStart=function(){var A=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$20069_preventProgressSaveTimer=
_.et(_.c1,function(){A.resetPreventProgressSaveTimer()},1E4);
var L;if((L=this.opts)==null?0:L.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.et(_.c1,function(){A.hasMultipleVideoPreviews()?A.startPlaybackForNextVideo():A.deactivate()},this.opts.videoPreviewDurationMs);
var O;this.player.setGlobalCrop(((O=this.opts)==null?0:O.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.P.getRoundedCornersSize=function(){var A;if((A=this.opts)==null?0:A.roundedCornersSize){var L;return(L=this.opts)==null?void 0:L.roundedCornersSize}var O;if((O=this.opts)==null?0:O.enableRounding){var X;if(((X=this.opts)==null?void 0:X.thumbnailSize)==="small")return 1;var x;if(((x=this.opts)==null?void 0:x.thumbnailSize)==="medium")return 2;var J;if(((J=this.opts)==null?void 0:J.thumbnailSize)==="large")return 3}return _.h("web_imp_inset_progress_bar")?3:0};
_.P.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.P.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.P.onMediaContainerClick=function(A){this.isShortcutClick(A)||(this.navigateToWatch(A),A.preventDefault(),A.stopPropagation())};
_.P.activate=function(){var A=this,L,O,X,x,J,Y,T,V,E;return _.u(function(n){switch(n.nextAddress){case 1:if(!A.currentPageAllowed())return n.return(0);O=(L=A.videoPreviewData)==null?void 0:L.inlinePlaybackEndpoint;X=_.UC.instance;if(!O||!X)return n.return(0);A.playbackIntentTriggered=!0;((x=A.opts)==null?0:x.mediaRenderer)&&((J=A.opts)==null||!J.isAutoplay)&&pOQ(A.opts.mediaRenderer,function(){A.deactivate()});
_.kd(A,function(){A.revealPreviewUi()});
Y={};_.h("enable_unknown_lact_fix_on_html5")&&(_.X5().resolve(_.m4),Y.lact=_.xw());A.videoPreviewFetchRequest=beB(X,A.getInlinePlaybackRequestData(A.videoPreviewData),Y);_.e4(n,2);return n.yield(A.videoPreviewFetchRequest,4);case 4:T=n.yieldResult;if(((V=T)==null?void 0:(E=V.playabilityStatus)==null?void 0:E.status)==="OK")return n.return(A.handlePlayerResponse(T));throw Error("Mj");case 2:_.S4(n),A.deactivate();case 3:return n.return(1)}})};
_.P.getInlinePlaybackRequestData=function(A){var L,O=_.h("web_imp_player_mute_params")?((L=this.opts)==null?void 0:L.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:A.inlinePlaybackEndpoint,startPlaybackInMutedState:O}};
_.P.handlePlayerResponse=function(A){var L=this,O,X,x,J,Y,T,V,E,n,t;return _.u(function(b){if(b.nextAddress==1){O=L.getInlinePlaybackVideoId();if(!(((X=A)==null?0:(x=X.videoDetails)==null?0:x.videoId)&&L.currentPageAllowed()&&L.playbackIntentTriggered&&L.opts&&O))return L.deactivate(),b.return(0);if(A.videoDetails.videoId!==O)return b.return(0);L.enableAudioControls=!!((J=A.playerConfig)==null?0:(Y=J.inlinePlaybackConfig)==null?0:Y.showAudioControls);A.trackingParams=L.getInlinePlaybackTrackingParams();
if(!L.inlinePlayer)return b.return(0);T={};if(E=_.q((V=L.videoPreviewData)==null?void 0:V.inlinePlaybackEndpoint,_.$O))T.watch_endpoint=E;if(L.videoPreviewData){var S,w=(S=_.q(L.videoPreviewData.inlinePlaybackEndpoint,_.$O))==null?void 0:S.startTimeSeconds;w!==void 0&&(A.playerConfig||(A.playerConfig={}),A.playerConfig.playbackStartConfig||(A.playerConfig.playbackStartConfig={}),A.playerConfig.playbackStartConfig.startPosition||(A.playerConfig.playbackStartConfig.startPosition={}),A.playerConfig.playbackStartConfig.startSeconds=
w,A.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(w*1E3))}L.inlinePlayer.loadVideoWithPlayerResponse(A,T);if(L.JSC$20069_playerPromise)return b.jumpTo(2);L.JSC$20069_playerPromise=L.inlinePlayer.getPlayerPromise();return b.yield(L.JSC$20069_playerPromise,3)}b.nextAddress!=2&&(n=b.yieldResult,n.setInlinePreview(!0),n.setSizeStyle(!1,!0),L.ytPlayerListenerBehavior.listenToPlayerEvents(n,L.JSC$20069_playerEvents),L.player=n,_.P4(L.hostElement,"player-api-ready"));((t=L.opts)==
null?0:t.showPlayerControls)&&L.videoPreviewData&&L.player&&(L.playerControlsData={playerResponse:A,isInlinePlayback:!0,thumbnailOverlays:L.videoPreviewData.thumbnailOverlays,playerApi:L.player},L.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!L.unroundCornersForPlayback,additionalButton:L.getAdditionalButtonType(L.videoPreviewData.thumbnailOverlays)});return b.return(2)})};
_.P.revealPreviewUi=function(){var A=this;this.playbackIntentTriggered&&_.Gy9(this,function(){A.hasThumbnailPositionChangedSinceTriggered()||(A.updateActiveState(!0),A.noAnimation=!1)})};
_.P.hasThumbnailPositionChangedSinceTriggered=function(){var A=this.positionData,L=this.getThumbnailPositionData();return(A==null?void 0:A.initialTopPosition)!==(L==null?void 0:L.initialTopPosition)||(A==null?void 0:A.initialHorizontalPosition)!==(L==null?void 0:L.initialHorizontalPosition)};
_.P.getThumbnailPositionData=function(){var A,L;if((L=this.opts)==null||!L.thumbnail)return null;L=this.opts.thumbnail;var O=((A=this.opts)==null?0:A.cropPlayerToFillThumbnailHorizontally)?!1:!0;var X=L.getBoundingClientRect();A=X.width;L=X.height;var x=X.top+window.scrollY;X=X.left+window.scrollX;var J=O?Math.ceil(A):A;O=O?Math.ceil(L):L;var Y=A/J;A={initialScale:Y,initialTopPosition:x-12*Y,finalTopPosition:x-12-(O-L)/2,initialHorizontalPosition:X-(12+(J-A)/2),finalHorizontalPosition:X-12-(J-A)/
2,videoPreviewWidth:J,videoPreviewHeight:O};return A};
_.P.updateActiveState=function(A){this.active=A;this.ytdReduxBehavior.dispatch(_.JY({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:A}))};
_.P.stopPlayer=function(A){A=A.resetWatchEndpointStartTime===void 0?!1:A.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(A)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.c1.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.P.deactivate=function(A){A=A===void 0?{}:A;A=A.resetWatchEndpointStartTime===void 0?!1:A.resetWatchEndpointStartTime;lT&&(lT.disconnect(),lT=null);this.stopPlayer({resetWatchEndpointStartTime:A});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.P.isValidThumbnailOverlayButton=function(A,L){A=A.thumbnailOverlayButtonRenderer;var O;return!!A&&!!A.tooltip&&!((O=A.icon)==null||!O.iconType)&&L.includes(A.icon.iconType)};
_.P.isValidThumbnailOverlayButtonViewModel=function(A,L){var O;A=_.q((O=A.thumbnailOverlayButtonViewModel)==null?void 0:O.overlayButton,_.Cu);return!!A&&!!A.title&&!!A.iconName&&L.includes(A.iconName)};
_.P.getAdditionalButtonType=function(A){var L=this;if(_.h("web_imp_fastforward_button"))return{button:1};if(_.h("web_imp_miniplayer_button"))return{button:2};if(_.h("web_imp_playback_speed_button"))return{button:3};var O=["BOX_STACK_3"],X=(A||[]).filter(function(J){return L.isValidThumbnailOverlayButton(J,O)}).map(function(J){return J.thumbnailOverlayButtonRenderer});
if(X.length)return{button:4,thumbnailOverlayButtonRenderers:X};var x=["BOX_STACK_3"];A=(A||[]).filter(function(J){return L.isValidThumbnailOverlayButtonViewModel(J,x)}).map(function(J){return _.q(J.thumbnailOverlayButtonViewModel.overlayButton,_.Cu)});
if(A.length)return{button:4,thumbnailOverlayButtonViewModels:A}};
_.P.allowCaptions=function(){var A;return!((A=this.opts)==null?0:A.forceCaptionsOff)};
_.P.allowUnmuting=function(){var A;return this.enableAudioControls&&!((A=this.opts)==null?0:A.forceMutedVolume)};
_.P.beginStartTimeUpdater=function(){var A=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.Vr(function(){A.updateWatchEndpointStartTime()},1E3)};
_.P.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.P.resetPreventProgressSaveTimer=function(){this.JSC$20069_preventProgressSaveTimer!==null&&(_.c1.cancelJob(this.JSC$20069_preventProgressSaveTimer),this.JSC$20069_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.P.updateWatchEndpointStartTime=function(A){var L=this.videoPreviewData;if(this.player&&L!=null&&L.inlinePlaybackEndpoint&&!this.JSC$20069_preventProgressSaveTimer){A=A?0:Math.floor(this.player.getCurrentTime());var O=_.q(L.navigationEndpoint,_.$O);O&&(O.startTimeSeconds=A);if(L=_.q(L.inlinePlaybackEndpoint,_.$O))L.startTimeSeconds=A}};
_.P.isShortcutClick=function(A){return!!A&&(A.ctrlKey||A.shiftKey||A.metaKey)};
_.P.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.P.openInMiniplayer=function(){var A=this,L,O;return _.u(function(X){if(X.nextAddress==1){O=(L=A.videoPreviewData)==null?void 0:L.navigationEndpoint;if(!O)return X.return();_.rm().lockupActivation=!0;return X.yield(_.If3(_.X5().resolve(_.z_),O),2)}_.rm().userActivation=!0;_.qo(X)})};
_.P.navigateToWatch=function(A){var L,O=(L=this.videoPreviewData)==null?void 0:L.navigationEndpoint;if(O){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(O,A,!0);else{var X;_.h("web_thumbnail_to_watch_transition")&&((X=this.opts)==null?0:X.thumbnail)&&_.QVL(_.X5().resolve(_.iY),this.opts.thumbnail);_.P4(this.hostElement,"yt-navigate",{endpoint:O})}this.deactivate()}};
_.P.getInlinePlaybackVideoId=function(){var A,L;return(L=_.q((A=this.videoPreviewData)==null?void 0:A.inlinePlaybackEndpoint,_.$O))==null?void 0:L.videoId};
_.P.getInlinePlaybackTrackingParams=function(){var A,L;return(A=this.videoPreviewData)==null?void 0:(L=A.inlinePlaybackEndpoint)==null?void 0:L.clickTrackingParams};
_.P.hasMultipleVideoPreviews=function(){var A;return!!(((A=this.opts)==null?0:A.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.P.startPlaybackForNextVideo=function(){var A;(A=this.opts)!=null&&A.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())};
_.v2.Object.defineProperties(D8.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.opts)==null?0:A.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.opts)==null||!A.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 A;if(Array.isArray((A=this.opts)==null?void 0:A.videoPreviewData)){var L;return(L=this.opts)==null?void 0:L.videoPreviewData[this.videoPreviewDataIndex]}var O;return(O=this.opts)==null?void 0:O.videoPreviewData}}});
D8.prototype.onIsAdsVideoChange=D8.prototype.onIsAdsVideoChange;D8.prototype.onInlinePreviewIsEnabledChange=D8.prototype.onInlinePreviewIsEnabledChange;D8.prototype.optsChanged=D8.prototype.optsChanged;D8.prototype.onMouseLeave=D8.prototype.onMouseLeave;D8.JSC$20068_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);D8.JSC$20068_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"}];
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],D8.prototype,"actionHandlerBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],D8.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.LE.YtPlayerListenerBehavior),_.Z("design:type",_.Oo)],D8.prototype,"ytPlayerListenerBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],D8.prototype,"componentBehavior",void 0);
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],D8.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],D8.prototype,"ytdReduxBehavior",void 0);_.I([_.N(_.uR.YtSparklesClickLocationBehavior),_.Z("design:type",Object)],D8.prototype,"ytSparklesClickLocationBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],D8.prototype,"opts",void 0);_.I([_.K(),_.Z("design:type",Object)],D8.prototype,"playerControlsData",void 0);
_.I([_.K(),_.Z("design:type",Object)],D8.prototype,"playerControlsAppApi",void 0);_.I([_.K(),_.Z("design:type",Object)],D8.prototype,"playerControlsOptions",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],D8.prototype,"noAnimation",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],D8.prototype,"hidden",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],D8.prototype,"active",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],D8.prototype,"playing",void 0);_.I([_.K({selector:_.W0e}),_.Z("design:type",Boolean)],D8.prototype,"inlinePreviewIsEnabled",void 0);_.I([_.K(),_.Z("design:type",String)],D8.prototype,"pagePath",void 0);_.I([_.K({selector:_.fY}),_.Z("design:type",Boolean)],D8.prototype,"isWatchPage",void 0);_.I([_.r("videoPreviewData"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],D8.prototype,"thumbnailData",null);
_.I([_.r("opts","active"),_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],D8.prototype,"hidePlayerControls",null);_.I([_.r("opts"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],D8.prototype,"isAdsVideo",null);_.I([_.r("opts"),_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],D8.prototype,"roundedCornersSmall",null);
_.I([_.r("opts"),_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],D8.prototype,"roundedCornersMedium",null);_.I([_.r("opts"),_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],D8.prototype,"roundedCornersLarge",null);_.I([_.r("opts"),_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],D8.prototype,"unroundCornersForPlayback",null);
_.I([_.r("opts","videoPreviewDataIndex"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],D8.prototype,"videoPreviewData",null);_.I([_.K(),_.Z("design:type",Object)],D8.prototype,"videoPreviewDataIndex",void 0);_.I([_.qR("#inline-player"),_.Z("design:type",Object)],D8.prototype,"inlinePlayer",void 0);_.I([_.by("mouseleave"),_.Z("design:type",Function),_.Z("design:paramtypes",[MouseEvent]),_.Z("design:returntype")],D8.prototype,"onMouseLeave",null);
_.I([_.iy("opts"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],D8.prototype,"optsChanged",null);_.I([_.iy("inlinePreviewIsEnabled"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],D8.prototype,"onInlinePreviewIsEnabledChange",null);_.I([_.hT("isAdsVideo"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],D8.prototype,"onIsAdsVideoChange",null);
_.I([_.Q({is:"ytd-video-preview",disableElementRegistration:!0})],D8);
_.m(D8,"ytd-video-preview",function(){if(AlX!==void 0)return AlX;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return AlX=A},{mode:2});
}catch(e){_._DumpException(e)}
try{
var GSz,lOS,cqJ;GSz=function(A){return _.h("kevlar_watch_cinematics_invisible")||A.fullscreen&&_.h("kevlar_watch_cinematics_invisible_in_fullscreen")||A.theater&&!A.fullscreen&&_.h("kevlar_watch_cinematics_invisible_in_theater")};
lOS=function(){var A=document.createElement("canvas"),L=A.getContext("2d");if(!L)throw Error("mo");_.zv(A,{position:"absolute",width:"100%",height:"100%"});return{element:A,context:L}};
cqJ=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.h("kevlar_watch_cinematics_css_blur")};
_.CDB=function(A,L,O){return Math.abs(A-L)<=(O||1E-6)};
_.FY7=function(A,L){return A==L?!0:A&&L?A.width==L.width&&A.height==L.height:!1};_.Rrk=new _.PF("notificationActionRenderer");var QAZ=function(A){var L=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.EP;this.element.addEventListener("load",function(){L.loaded=!0;L.resolver.resolve(L.element)});
this.element.addEventListener("error",function(){L.failed=!0});
this.element.src=A};var mCQ=function(A,L){this.image=A;this.frame=L};
mCQ.prototype.drawToCanvas=function(A,L){var O=this.frame.width/this.frame.columns,X=this.frame.height/this.frame.rows,x=L.offsetX,J=L.offsetY;GSz(L)?(A.fillStyle=L.fullscreen?"#000":"#0f0f0f",A.fillRect(x,J,(L==null?void 0:L.width)||O,(L==null?void 0:L.height)||X)):A.drawImage(this.image,this.frame.column*O,this.frame.row*X,O,X,x,J,(L==null?void 0:L.width)||O,(L==null?void 0:L.height)||X)};
var fOX=function(A){this.color=A};
fOX.prototype.drawToCanvas=function(A,L){var O=L.offsetX,X=L.offsetY,x=L.width,J=L.height;A.fillStyle=GSz(L)?L.fullscreen?"#000":"#0f0f0f":this.color;A.fillRect(O,X,x,J)};var xY=function(A,L){_.bf.call(this);this.playerApi=L;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.bW(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();IOz(this,A);yqS(this);this.update()};
_.g(xY,_.bf);xY.prototype.addEventListeners=function(){var A=this,L=function(){A.update()},O=function(x){A.paused||(x.type==="newdata"&&(A.mosaics.clear(),ZQJ(A),sq(A)),yqS(A),A.update())},X=function(){A.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",L);this.playerApi.addEventListener("onVideoDataChange",O);this.playerApi.addEventListener("onStateChange",X);this.addOnDisposeCallback(function(){A.playerApi.removeEventListener("onVideoProgress",L);A.playerApi.removeEventListener("onVideoDataChange",O);A.playerApi.removeEventListener("onStateChange",X)})};
var IOz=function(A,L){A.cinematicContainerRenderer!==L&&(A.cinematicContainerRenderer=L,ZQJ(A),sq(A),A.colorStoreUpdateJobId=_.c1.addLowPriorityJob(function(){var O;if((O=A.cinematicContainerRenderer.colorStore)!=null&&O.sampledColors){O=Infinity;for(var X=_.d(A.cinematicContainerRenderer.colorStore.sampledColors),x=X.next();!x.done;x=X.next()){x=x.value;var J=Number(x.key);J!==0&&J<O&&(O=J);J=_.Hy(x.value);A.colorStore.set(x.key,J)}A.colorStoreTimeInterval=O}}))},ZQJ=function(A){A.colorStoreUpdateJobId&&
(_.c1.cancelJob(A.colorStoreUpdateJobId),A.colorStoreUpdateJobId=void 0);
A.colorStore.clear();A.currentStoryboardColor=void 0},jA$=function(A,L){var O;
return(O=A.getStoryboardFrame(L))==null?void 0:O.url};
xY.prototype.onPlayerStateChange=function(){this.update()};
xY.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var yqS=function(A){var L=A.getStoryboardFrame(0);L&&(L=new _.bW(L.width/L.columns,L.height/L.rows),_.FY7(A.currentStoryboardSize,L)||(A.currentStoryboardSize=L,A.publish("STORYBOARD_SIZE_CHANGED",A.currentStoryboardSize)))},WYM=function(A,L){A.currentStoryboardIndex=L;
A.pendingStoryboardIndex=NaN;L=A.getStoryboardFrame(A.currentStoryboardIndex);A.currentStoryboard=new mCQ(A.mosaics.get(L.url).element,L);A.publish("STORYBOARD_CHANGED",A.currentStoryboard);A.lastUpdateTime=(0,_.O$)()};
xY.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var sq=function(A){A.currentStoryboardIndex=NaN;A.pendingStoryboardIndex=NaN;A.currentStoryboard&&(A.currentStoryboard=void 0,A.publish("STORYBOARD_CHANGED",void 0));A.lastUpdateTime=NaN};
xY.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)sq(this);else{var A=this.playerApi.getPlayerState(1);if(A===-1||A===5||A===0)sq(this);else if(isNaN(this.lastUpdateTime)||!((0,_.O$)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(A=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){A=""+Math.round(A*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var L=this.colorStore.get(A);L?L!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=L,this.currentStoryboard=new fOX(L),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.O$)()):(_.Rv(new _.pe("Could not find color for timestamp: "+A,this.cinematicContainerRenderer)),sq(this))}else sq(this);else HQz(this,A)}};
var HQz=function(A,L){var O=A.getStoryboardFrameIndex(L);if(O!==A.currentStoryboardIndex&&O!==A.pendingStoryboardIndex){L=jA$(A,O);var X=A.mosaics.get(L);X?X.loaded&&WYM(A,O):(A.pendingStoryboardIndex=O,O=new QAZ(L),A.mosaics.set(L,O),O.resolver.promise.then(function(){if(!A.isDisposed()&&!A.paused&&!isNaN(A.pendingStoryboardIndex)){var x=jA$(A,A.pendingStoryboardIndex);if(x){var J;(J=A.mosaics.get(x))!=null&&J.loaded&&WYM(A,A.pendingStoryboardIndex)}else sq(A)}}))}};
xY.prototype.getStoryboardFrameIndex=function(A){var L=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(A,L)};
xY.prototype.getStoryboardFrame=function(A){var L=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,O,X;return((X=(O=this.playerApi).getStoryboardFrame)==null?void 0:X.call(O,A,L))||null};
xY.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var Pl=function(A,L,O,X){X=X===void 0?!1:X;_.p$.call(this);this.cinematicContainerRenderer=L;this.playerApi=O;this.theater=this.fullscreen=!1;var x;this.ambientLightThemeEnabled=!X&&!!(L==null?0:(x=L.config)==null?0:x.enableInLightTheme);this.ambientFullscreenEnabled=X&&_.h("web_cinematic_fullscreen");this.ambientTheaterModeEnabled=X&&_.h("web_cinematic_theater_mode");this.container=document.createElement("div");A.appendChild(this.container);var J;if(_.h("web_cinematic_theater_mode")||_.h("web_cinematic_fullscreen")||
(L==null?0:(J=L.config)==null?0:J.enableInLightTheme))this.ambientV2Container=document.createElement("div"),this.container.appendChild(this.ambientV2Container);zrM(this);A=this.ambientV2Container||this.container;this.backCanvas=lOS();this.frontCanvas=lOS();A.appendChild(this.backCanvas.element);A.appendChild(this.frontCanvas.element);this.storyboardManager=new xY(L,this.playerApi);_.VI(this,this.storyboardManager);this.addEventListeners();BHM(this)?MTJ(this,100+Ju(this)*3*2,100+Ju(this)*3*2):$Ck(this);
aOS(this,this.storyboardManager.currentStoryboard)};
_.g(Pl,_.p$);var zrM=function(A){A.ambientV2Container?kSM(A):(_.zv(A.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+UCJ(A)+", "+vGZ(A)+")"}),cqJ()&&_.zv(A.container,"filter","blur("+_.PO("cinematic_watch_css_filter_blur_strength",40)+"px)"))},kSM=function(A){if(A.ambientV2Container){var L=A.playerApi.getVideoAspectRatio();
_.zv(A.container,{"aspect-ratio":""+L,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.zv(A.ambientV2Container,{"aspect-ratio":""+L,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+UCJ(A)+", "+vGZ(A)+")"});cqJ()&&_.zv(A.ambientV2Container,"filter","blur("+_.PO("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
Pl.prototype.setFullscreen=function(A,L){this.fullscreen=A;this.theater=!!L;zrM(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),A=this.storyboardManager.currentStoryboard,oGz(this),A&&ASJ(this,A)};
Pl.prototype.addEventListeners=function(){var A=this,L=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(x){aOS(A,x)}),O=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){$Ck(A)});
this.addOnDisposeCallback(function(){A.storyboardManager.unsubscribeByKey(L);A.storyboardManager.unsubscribeByKey(O)});
if(this.ambientV2Container){var X=function(){kSM(A)};
this.playerApi.addEventListener("onVideoDataChange",X);this.addOnDisposeCallback(function(){A.playerApi.removeEventListener("onVideoDataChange",X)})}};
var $Ck=function(A){if(!BHM(A)){var L=A.storyboardManager.currentStoryboardSize;isNaN(L.width)||isNaN(L.height)||MTJ(A,Number(L.width)+Ju(A)*3*2,Number(L.height)+Ju(A)*3*2)}},MTJ=function(A,L,O){A.backCanvas.element.width=L;
A.backCanvas.element.height=O;A.frontCanvas.element.width=L;A.frontCanvas.element.height=O},BHM=function(A){return A.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},aOS=function(A,L,O){O=O===void 0?!1:O;
var X=A.frontCanvas.element.getAnimations()[0];X?(X.pause(),A.backCanvas.context.globalAlpha=Number(getComputedStyle(A.frontCanvas.element).opacity),A.frontCanvas.element.style.opacity="0",X.finish()):A.backCanvas.context.globalAlpha=1;A.backCanvas.context.drawImage(A.frontCanvas.element,0,0,A.backCanvas.element.width,A.backCanvas.element.height);oGz(A);L&&ASJ(A,L);L=L?A.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.PO("cinematic_watch_fade_out_duration",500);X=_.PO("cinematic_watch_transition_frame_rate")/
1E3;var x={};X&&(x={easing:"steps("+Math.round(L*X)+")"});(O===void 0?0:O)||A.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:L,iterations:1},x));A.frontCanvas.element.style.opacity="1"},oGz=function(A){var L=A.ambientLightThemeEnabled||A.ambientTheaterModeEnabled,O=A.ambientLightThemeEnabled||A.ambientFullscreenEnabled;
A.frontCanvas.context.fillStyle=A.theater&&L||A.fullscreen&&O?"#000":"#0f0f0f";cqJ()||(A.frontCanvas.context.filter="blur(0)");A.frontCanvas.context.fillRect(0,0,A.frontCanvas.element.width,A.frontCanvas.element.height)},ASJ=function(A,L){cqJ()||(A.frontCanvas.context.filter="blur("+Ju(A)+"px)");
A.frontCanvas.context.globalAlpha=A.fullscreen&&A.ambientFullscreenEnabled||A.theater&&A.ambientTheaterModeEnabled?_.PO("cinematic_watch_effect_letterbox_opacity",.4):_.PO("cinematic_watch_effect_opacity",.4);var O={offsetX:Ju(A)*3,offsetY:Ju(A)*3,theater:A.theater,fullscreen:A.fullscreen};BHM(A)&&(O.width=100,O.height=100);L.drawToCanvas(A.frontCanvas.context,O);A.frontCanvas.context.globalAlpha=1},Ju=function(A){var L;
return(L=A.cinematicContainerRenderer.config.blurStrength)!=null?L:5},UCJ=function(A){var L,O;
if((A.fullscreen||A.theater)&&((L=A.cinematicContainerRenderer.config)==null?0:(O=L.watchFullscreenConfig)==null?0:O.colorSourceWidthMultiplier))return A.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var X;return(X=A.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?X:A.cinematicContainerRenderer.config.colorSourceSizeMultiplier},vGZ=function(A){var L,O;
if((A.fullscreen||A.theater)&&((L=A.cinematicContainerRenderer.config)==null?0:(O=L.watchFullscreenConfig)==null?0:O.colorSourceHeightMultiplier))return A.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var X;return(X=A.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?X:A.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
Pl.prototype.disposeInternal=function(){_.p$.prototype.disposeInternal.call(this);this.container.remove()};
Pl.prototype.clear=function(){aOS(this,void 0,!0)};
Pl.prototype.pause=function(){this.storyboardManager.pause()};var LjZ;LjZ=_.K5(function(){var A,L,O=!((L=(A=document.createElement("canvas")).getContext)==null||!L.call(A,"2d")),X;A=!((X=CSS)==null||!X.supports("filter: blur(0)"));X=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var x;return O&&A&&X&&!((x=CSS)==null||!x.supports("aspect-ratio: 1 / 1"))});
_.dY=function(A,L){_.bf.call(this);this.container=A;this.playerApi=L;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=OfJ(this);this.update()};
_.g(_.dY,_.bf);_.XNk=function(A){var L=document.documentElement.hasAttribute("dark");A.isDarkModeEnabled=L;A.update()};
_.xkJ=function(A,L){A.settingEnabled=L;A.update()};
_.dY.prototype.setFullscreen=function(A,L){this.fullscreen=A;this.theater=!!L;this.update()};
_.sBJ=function(A,L){A.cinematicContainerRenderer=L;A.cinematicContainerRenderer&&(A.cinematicsVe=_.tI(A.isShorts()?227858:159022),_.S9(_.iV(),A.cinematicsVe),A.loggingClientData={watchCinematicContainerData:{presentationStyle:A.cinematicContainerRenderer.presentationStyle}});A.update()};
_.dY.prototype.isShorts=function(){var A,L;return((A=this.cinematicContainerRenderer)==null?void 0:(L=A.config)==null?void 0:L.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.dY.prototype.isAllowed=function(){var A;if(A=LjZ()){var L,O,X;A=((O=this.cinematicContainerRenderer)==null?void 0:O.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((X=this.cinematicContainerRenderer)==null||!X.colorStore)||((L=this.cinematicContainerRenderer)==null?void 0:L.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(A)if(_.h("web_cinematics_pausing")){var x,J;A=this.isDarkModeEnabled||!!((x=this.cinematicContainerRenderer)==
null?0:(J=x.config)==null?0:J.enableInLightTheme)}else{var Y,T;x=!!((Y=this.cinematicContainerRenderer)==null?0:(T=Y.config)==null?0:T.enableInLightTheme)&&(_.ms("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);A=this.isDarkModeEnabled||x}if(Y=A){var V,E;Y=!((E=(V=this.prefersReducedMotionQuery)==null?void 0:V.matches)!=null&&E)}return Y};
_.JSB=function(A){(A=A.currentCinematicEffect)!=null&&(A=A.storyboardManager,A.paused=!1,yqS(A),A.update())};
_.dY.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var OfJ=function(A){if(!_.h("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var L=window.matchMedia("(prefers-reduced-motion: reduce)"),O=function(){A.update()};
L.addListener(O);A.addOnDisposeCallback(function(){L.removeListener(O)});
return L}};
_.dY.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var A=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new Pl(this.container,A,this.playerApi,this.isDarkModeEnabled),_.VI(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var L=this.currentCinematicEffect;L.cinematicContainerRenderer!==
A&&(L.cinematicContainerRenderer=A,IOz(L.storyboardManager,A),zrM(L));A=_.qG();_.gQ(0,194,!0);A.save();A=_.Fn();this.cinematicsVe&&A&&_.B4(A,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(A=_.Fn(),this.cinematicsVe&&A&&_.MG(A,[this.cinematicsVe],!1,this.loggingClientData),_.oo(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.v2.Object.defineProperties(_.dY.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var sAS;var JqX;_.RJ({_template:function(){if(JqX!==void 0)return JqX;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=
A.content,O=L.insertBefore;sAS===void 0&&(sAS=document.createElement("template"));var X=sAS;O.call(L,X.content.cloneNode(!0),A.content.firstChild);return JqX=A},
is:"tp-yt-iron-pages",behaviors:[_.y9,_.kJ],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var L5$;_.OiJ=function(){if(_.h("kevlar_home_skeleton")&&!L5$){var A=document.querySelector("#home-page-skeleton");A&&(_.Rk("hgcr"),_.hg(A),L5$=!0)}};
L5$=!1;_.id=new _.PF("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var zeJ,MwM,$XS,aHZ,k9k,UXX,vgz,ogX,L6S,OKJ,XcS,JOz,dHM,YXS,PdX,xHS,s3J,V$M;_.HZM=function(A,L,O){L=L===void 0?5:L;if(L!==0){var X=typeof A==="function"?A():document.querySelector(A);X?(O==null?0:O.enableSmartFocus)?_.kAu(X):X.focus():setTimeout(function(){_.HZM(A,L-1,O)},500)}};
zeJ=function(A){return String.raw.apply(String,[{raw:A}].concat(_.le(_.f_.apply(1,arguments).map(function(L){return L instanceof Array?L.join(""):L}))))};
MwM=function(A){var L=_.f_.apply(1,arguments),O=L.length;if(!Array.isArray(A)||!Array.isArray(A.raw)||A.length!==A.raw.length||!_.Ieg&&A===A.raw||!(_.Ieg&&!_.ysH||_.p_(A))||O+1!==A.length)throw new TypeError("$");return new BCS(Object.freeze({strings:Object.freeze(A),args:Object.freeze(L)}))};
$XS=function(A){return _.xfM(_.XkO(A&16777215))<.5};
aHZ=function(A,L,O){var X=O.minimumRowsOfVideosBetweenSections===void 0?1:O.minimumRowsOfVideosBetweenSections;return A<(O.minimumRowsOfVideosAtStart===void 0?2:O.minimumRowsOfVideosAtStart)||L!==null&&A-L<=X?!1:!0};
k9k=function(A,L){var O=0,X=0;A=_.d(A);for(var x=A.next();!x.done;x=A.next()){var J=x.value;if(J.richItemRenderer)J.richItemRenderer.rowIndex=X,J.richItemRenderer.colIndex=O++,O===L&&(O=0,X++);else if(J.richGroupRenderer&&J.richGroupRenderer.numColumns!==void 0)J.richGroupRenderer.rowIndex=X,J.richGroupRenderer.colIndex=O,O+=J.richGroupRenderer.numColumns,O===L&&(O=0,X++);else if(J.richSectionRenderer){var Y=x=void 0;if(J=_.q((x=J)==null?void 0:(Y=x.richSectionRenderer)==null?void 0:Y.content,_.BrL))J.rowIndex=
X++}}};
UXX=function(A,L){var O=L.contentElement;L=L.rendererToTagNameMap;if(O&&L&&L.size!==0){for(var X=new Map,x=_.d(O.children),J=x.next();!J.done;J=x.next()){J=J.value;var Y=J.tagName.toLowerCase(),T=X.get(Y);T||(T=[],X.set(Y,T));T.push(J)}if(X.size!==0)for(x=Math.min(A.length,O.children.length),J=new Map,Y=0;Y<x;Y++){T=Object.keys(A[Y])[0];T=L.get(T);if(!T)break;var V=J.get(T);V===void 0&&(V=0,J.set(T,V));var E=X.get(T);if(!E||V>=E.length)break;J.set(T,V+1);T=E[V];V=O.children[Y];V!==T&&(_.AJs=!0,_.L3r.set(T,
!0),O.insertBefore(T,V),_.L3r.delete(T),_.AJs=!1)}}};
vgz=function(A,L,O,X,x,J,Y){X=X===void 0?{}:X;if(!A||!A.length)return[];A=A.slice();var T=[],V=[];x=null;for(var E=0,n=function(R){V.sort(function(H,z){return z.skippedOnRow-H.skippedOnRow});
for(var y,M=(y=V.shift())==null?void 0:y.content;M;)!M.richSectionRenderer&&R||T.push(M),y=void 0,M=(y=V.shift())==null?void 0:y.content},t=void 0;A.length>0||V.length>0;){for(var b=[],S=L;S>0;){var w=void 0,l=void 0,F=(l=V[0]&&V[0].skippedOnRow<E?(w=V.shift())==null?void 0:w.content:void 0)!=null?l:A.shift();
if(!F)break;if(F.richItemRenderer)w=F.richItemRenderer.targetId,l=void 0,w&&((l=Y)==null?0:l.has(w))&&(w=Y.get(w),!t||w&&w.timestamp>t.timestamp)&&(t=w),b.push(F),S--;else if(F.richGroupRenderer&&F.richGroupRenderer.numColumns!==void 0)F.richGroupRenderer.numColumns<=S?(b.push(F),S-=F.richGroupRenderer.numColumns):S===L&&F.richGroupRenderer.numColumns>L?(b.push({richGroupRenderer:Object.assign({},F.richGroupRenderer,{numColumns:L})}),S=0):V.push({content:F,skippedOnRow:E});else if(F.richSectionRenderer)if(aHZ(E,
x,X)&&S===L){T.push(F);x=E;E++;continue}else V.push({content:F,skippedOnRow:E});else if(F.continuationItemRenderer){n(!0);T.push(F);S=0;break}if(S===0)T.push.apply(T,_.le(b));else if(!O&&A.length===0){n(!1);T.push.apply(T,_.le(b));S=0;break}}E++;t&&(T.push(t.content),E++);t=void 0}k9k(T,L);J&&UXX(T,J);return T};
ogX=function(){return _.f_.apply(0,arguments).flat().filter(function(A){return A}).join(";")};
L6S=function(){return MwM(AOS,ogX.apply(null,_.le(_.f_.apply(0,arguments))))};
OKJ=function(A){switch(A){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
XcS=function(A){return A.talkToRecs};
JOz=function(A,L){if(L){var O=_.Ai().getState().entities.flowStateEntity,X=xHS(A),x=[L];X&&X!==L&&x.push(X);var J=!0,Y;if(O&&A.flowStateEntityKey&&((Y=O[A.flowStateEntityKey])==null?void 0:Y.primaryButtonDisabled)!==void 0){var T;J=!((T=O[A.flowStateEntityKey])==null||!T.primaryButtonDisabled)}s3J(A,X!=null?X:L,x,J)}};
dHM=function(A){return _.Ge(_.Ai(),function(L){return L.entities.flowStateEntity},function(L,O){if(A.flowStateEntityKey){var X,x=L==null?void 0:(X=L[A.flowStateEntityKey])==null?void 0:X.currentStepId,J;
O=O==null?void 0:(J=O[A.flowStateEntityKey])==null?void 0:J.currentStepId;J=_.Ai().getState().talkToRecs;if(x&&x!==O){var Y;L=(L==null?void 0:(Y=L[A.flowStateEntityKey])==null?void 0:Y.stepIdStack)||Object.keys(J.stepStates);Y=!PdX(J==null?void 0:J.stepStates[x]);s3J(A,x,L,Y)}}})};
YXS=function(A){return _.Ge(_.Ai(),XcS,function(L){var O=xHS(A);if(O){var X=Object.keys(L.stepStates);L=!PdX(L==null?void 0:L.stepStates[O]);s3J(A,O,X,L)}})};
PdX=function(A){var L=Object.keys((A==null?void 0:A.selectionStates)||{}).reduce(function(J,Y){return J||(A==null?void 0:A.selectionStates[Y].isSelected)},!1),O,X,x=!!(A==null?0:(O=A.userQuery)==null?0:(X=O.userQuery)==null?0:X.trim());
return L||x};
xHS=function(A){if(A.flowStateEntityKey){var L,O,X=(L=_.Ai().getState().entities.flowStateEntity)==null?void 0:(O=L[A.flowStateEntityKey])==null?void 0:O.currentStepId;if(X)return X}};
s3J=function(A,L,O,X){_.Ai().dispatch(_.NV("flowStateEntity",A.flowStateEntityKey,{currentStepId:L,stepIdStack:O,key:A.flowStateEntityKey,primaryButtonDisabled:X}))};
_.uUQ=function(A,L){return _.eM(A.entities,"youchatPendingResponseEntity",L)};
_.Tyz=function(A){return function(L){_.At(_.NV("youchatPendingResponseEntity",A,{entityKey:A,isPendingResponse:L}))}};
V$M=function(A){A==null||A.addEventListener("DOMLoaded",function(){A.goToAndPlay(A.totalFrames-48,!0)})};
_.A8=function(A){this.__isSoyCss=!0;this.css=zeJ.apply(null,[A.strings].concat(_.le(A.args)))};
_.A8.prototype.toString=function(){return this.css};
var BCS=function(){_.A8.apply(this,arguments)};
_.g(BCS,_.A8);var AOS=_.AW(["",""]);var DHJ;var e4z;_.RJ({_template:function(){if(e4z!==void 0)return e4z;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);
var L=A.content,O=L.insertBefore;DHJ===void 0&&(DHJ=document.createElement("template"));var X=DHJ;O.call(L,X.content.cloneNode(!0),A.content.firstChild);return e4z=A},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var E0M=new _.PF("talkToRecsFlowRenderer");var n0J=new _.PF("flowRootRenderer");var t$n=new _.PF("learningJourneyQuizViewModel");var bKX=new _.PF("chipsShelfViewModel");var h4M=new _.PF("responsiveContainerConfiguration");var SXz=new _.PF("horizontalShelfViewModel");_.qX$=new _.PF("engagementPanelSectionListRenderer");var g0M=new _.PF("conversationResourceViewModel");var wc7=function(){this.horizontal=!1},pcB=function(A,L){A.horizontal=L};
wc7.prototype.position=function(A,L,O,X){X=X===void 0?1:X;A=this.delta(A)*X+L;X=Math.max(L,O);return A>=Math.min(L,O)&&A<=X?A:O};
wc7.prototype.axis=function(A){A=this.direction(A);return A==="up"||A==="down"?"Y":"X"};var VE=function(A,L,O){L=L===void 0?_.mk():L;this.target=A;this.manager=L;this.touchAction=O;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
VE.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(_.le(this.events)));for(var A=_.d(this.events),L=A.next();!L.done;L=A.next())this.listen(L.value)}};
VE.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.le(this.events)));for(var A=_.d(this.events),L=A.next();!L.done;L=A.next())this.unlisten(L.value)}};
VE.prototype.listen=function(A){this.eventMap[A]&&this.target.addEventListener(A,this.eventMap[A])};
VE.prototype.unlisten=function(A){this.eventMap[A]&&this.target.removeEventListener(A,this.eventMap[A])};var D5=function(){wc7.apply(this,arguments)};
_.g(D5,wc7);D5.prototype.direction=function(A){var L=A.detail;A=L.deltaY;L=L.deltaX;return A&&!this.horizontal?A>0?"down":"up":L&&this.horizontal?L>0?"right":"left":"none"};
D5.prototype.distance=function(A){return Math.abs(this.delta(A))};
D5.prototype.delta=function(A){var L=this.direction(A),O=A.detail;A=O.deltaX;O=O.deltaY;return L==="up"||L==="down"?O||0:A||0};
D5.prototype.velocity=function(A){var L=this.direction(A),O=A.detail;A=O.velocityX;O=O.velocityY;return Math.abs(L==="up"||L==="down"?O||0:A||0)};_.e$=function(A,L,O,X,x,J){x=x===void 0?new D5:x;J=J===void 0?_.mk():J;VE.call(this,L,J,X);var Y=this;this.element=A;this.target=L;this.config=O;this.input=x;this.manager=J;this.events=["panstart","panmove","panend"];this.onPanStart=function(){Y.config.draggingClass&&Y.element.classList.add(Y.config.draggingClass);Y.config.startAction&&Y.config.startAction()};
this.onPanMove=function(T){var V=iKZ(Y,T);if(V){Y.move(T,V);V.fade&&Y.fade(T,V);var E=Y.input.direction(T);V.moveAction&&V.moveAction(NyS(Y,T,V),E)}};
this.onPanEnd=function(T){var V,E,n,t,b,S;return _.u(function(w){if(w.nextAddress==1){Y.animationRequestId&&cancelAnimationFrame(Y.animationRequestId);Y.animationRequestId=void 0;V=iKZ(Y,T);if(!V)return w.return();E=V;n=E.triggerAction;t=E.fade;b=E.disableFinish;S=E.translateBack;var l=Y.input.velocity(T),F=Y.input.distance(T),R=Y.threshold(V);return l>.3&&F>10||F>R?b?w.jumpTo(6):t?w.yield(rOM(Y,T),6):w.yield(K6M(Y,T,V),6):S?w.yield(Y.translateBack(T),3):w.jumpTo(3)}w.nextAddress!=3&&n&&n();Y.config.draggingClass&&
Y.element.classList.remove(Y.config.draggingClass);Y.reset();_.qo(w)})};
A=Object.keys(O.triggers);this.directions=new Set(A);pcB(this.input,this.directions.has("right")||this.directions.has("left"))};
_.g(_.e$,VE);_.e$.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var iKZ=function(A,L){L=A.input.direction(L);return A.config.triggers[L]};
_.e$.prototype.move=function(A,L){var O=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var X=O.input.axis(A),x=O.input.position(A,O.config.startPosition,L.endPosition,L.moveRatio||1);O.element.style.transform="translate"+X+"("+x+"px)";O.animationRequestId=void 0}))};
var NyS=function(A,L,O){var X=O.moveRatio||1;O=Math.abs(A.config.startPosition-O.endPosition);return Math.min(A.input.distance(L)*X,O)/O};
_.e$.prototype.fade=function(A,L){var O=L.endOpacity;A=NyS(this,A,L);A>0&&(this.element.style.opacity=""+(((O||0)-1)*A+1))};
_.e$.prototype.threshold=function(A){return A.threshold?A.threshold:Math.abs(A.endPosition-this.config.startPosition)/3};
var K6M=function(A,L,O){var X,x,J,Y,T,V,E;return _.u(function(n){if(n.nextAddress==1)return X=A.input.delta(L)+A.config.startPosition,x=A.input.axis(L),J=O,Y=J.endPosition,T=J.transitionEndPosition,E=(V=T)!=null?V:Y,n.yield(A.element.animate([{transform:"translate"+x+"("+X+"px)"},{transform:"translate"+x+"("+E+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);A.element.style.transform="translate"+x+"("+E+"px)";_.qo(n)})};
_.e$.prototype.translateBack=function(A){var L=this,O,X;return _.u(function(x){if(x.nextAddress==1){if(!L.element.style.transform)return x.return();O=L.input.axis(A);X=L.config.startPosition;return x.yield(L.element.animate([{transform:L.element.style.transform},{transform:"translate"+O+"("+X+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}L.element.style.transform="translate"+O+"("+X+"px)";_.qo(x)})};
var rOM=function(A,L){var O,X,x,J;return _.u(function(Y){if(Y.nextAddress==1)return O=A.input.delta(L)+A.config.startPosition,X=A.input.axis(L),x=O+70,J=A.element.style.opacity===""?1:A.element.style.opacity,Y.yield(A.element.animate([{transform:"translate"+X+"("+O+"px)",opacity:J},{transform:"translate"+X+"("+x+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);A.element.style.transform="translate"+X+"("+x+"px)";A.element.style.opacity="0";_.qo(Y)})};var EX=function(){var A=_.wd.apply(this,arguments)||this;A._noAccessors=!0;A.scrollRate=3;A.autoScrollAnimationStart=0;A.autoScrollPaused=!1;A.autoScrollRafId=0;return A};
_.g(EX,_.wd);_.P=EX.prototype;_.P.created=function(){var A=this;this.boundAutoScrollHandler=function(L){A.autoScroll(L)}};
_.P.detached=function(){this.hostElement.removeEventListener("mouseout",_.tT(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.tT(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.tT(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.P.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.tT(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.tT(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.tT(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.tT(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.tT(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.tT(this,this.endAutoScroll)),this.endAutoScroll())};
_.P.autoScroll=function(A){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=A);var L;if(L=!this.autoScrollPaused&&this.scrollTarget)L=this.scrollTarget,L=L.scrollHeight-L.scrollTop!==L.clientHeight;L&&(L=1E3/this.scrollRate,A-=this.autoScrollAnimationStart,A>L&&(this.scrollTarget.scrollTop+=Math.ceil(A/L),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.P.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.P.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
EX.prototype.autoScrollEnabledChanged=EX.prototype.autoScrollEnabledChanged;_.I([_.K(),_.Z("design:type",Object)],EX.prototype,"scrollRate",void 0);_.I([_.K(),_.Z("design:type",Object)],EX.prototype,"scrollTarget",void 0);_.I([_.K(),_.Z("design:type",Boolean)],EX.prototype,"autoScrollEnabled",void 0);_.I([_.hT("autoScrollEnabled"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],EX.prototype,"autoScrollEnabledChanged",null);_.I([_.p4()],EX);_.GrS=[EX.prototype];var l5Z;var nK=function(){var A=_.G.apply(this,arguments)||this;A.buttonUpdate=_.h("web_button_rework");A.dismissButtonOverrides=_.h("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;A.forceDarkTheme=!1;A.forceLightTheme=!1;A.dynamicTextHeight=94;A.hasOverflowButton=!1;A.isInfeedModernization=!1;return A};
_.g(nK,_.G);_.P=nK.prototype;_.P.computeUrlImg=function(A){if(A)return _.TJ(A.thumbnails)};
_.P.getLogoHeight=function(A){return this.logoWithPadding(A)?"31":"24"};
_.P.getLogoClassName=function(A){return this.logoWithPadding(A)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.P.logoWithPadding=function(A){var L,O;return(A=(L=A.thumbnails)==null?void 0:(O=L[0])==null?void 0:O.height)&&A%31===0?!0:!1};
_.P.sendImpressionEndpoints=function(A){A.impressionEndpoints&&_.TZ(this.hostElement,A.impressionEndpoints)};
_.P.observeBasicPalette=function(){var A,L,O=(A=this.data)==null?void 0:(L=A.colorData)==null?void 0:L.basicColorPaletteData;O?_.fy(this.hostElement,O):_.fy(this.hostElement,{})};
_.P.observeDataChanged=function(){var A;this.dynamicTextHeight=((A=this.data)==null?0:A.supplementalText)?74:94;var L;this.hasSupplementalText=!((L=this.data)==null||!L.supplementalText);if(_.h("web_button_rework")){var O,X,x,J;A=(O=this.data)==null?void 0:(X=O.actionButton)==null?void 0:(x=X.buttonRenderer)==null?void 0:(J=x.colorData)==null?void 0:J.basicColorPaletteData;var Y,T,V;if(!((Y=this.data)==null?0:(T=Y.actionButton)==null?0:(V=T.buttonRenderer)==null?0:V.style)&&A){this.computeIsInfeedModernization(this.data)||
(A.borderColor=A.foregroundTitleColor);var E,n;this.set("data.actionButton.buttonRenderer",_.lW.unsafeClone((E=this.data)==null?void 0:(n=E.actionButton)==null?void 0:n.buttonRenderer))}}};
_.P.observeDataForCounterfactual=function(){if(_.h("kevlar_banner_cf_extra_logging")){var A;((A=this.data)==null?0:A.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.P.computeSupplementalStyle=function(){var A;if((A=this.data)!=null&&A.supplementalText){var L,O,X;if((L=this.data)==null?0:(O=L.colorData)==null?0:(X=O.basicColorPaletteData)==null?0:X.foregroundActivatedColor)return A=_.Wy(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+A+"; --yt-endpoint-hover-color:"+A+"; --yt-endpoint-visited-color:"+A+"; --yt-formatted-string-bold-font-weight:700;"}};
_.P.computeForcedDarkTheme=function(){var A,L,O,X=(A=this.data)==null?void 0:(L=A.actionButton)==null?void 0:(O=L.buttonRenderer)==null?void 0:O.style,x,J,Y;A=$XS(((x=this.data)==null?void 0:(J=x.colorData)==null?void 0:(Y=J.basicColorPaletteData)==null?void 0:Y.backgroundColor)||0);return X&&A};
_.P.computeForcedLightTheme=function(){var A,L,O,X=(A=this.data)==null?void 0:(L=A.actionButton)==null?void 0:(O=L.buttonRenderer)==null?void 0:O.style,x,J,Y;A=!$XS(((x=this.data)==null?void 0:(J=x.colorData)==null?void 0:(Y=J.basicColorPaletteData)==null?void 0:Y.backgroundColor)||0);return X&&A};
_.P.computeHasOverflowButton=function(A){return!!A.overflowButton};
_.P.computeHasTitle=function(A){return!!A.title};
_.P.computeTitleMaxFontSize=function(A){return this.computeHasOverflowButton(A)?28:64};
_.P.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.P.computeIsInfeedModernization=function(){var A,L,O,X,x=(A=this.data)==null?void 0:(L=A.actionButton)==null?void 0:(O=L.buttonRenderer)==null?void 0:(X=O.colorData)==null?void 0:X.basicColorPaletteData;return(x==null?void 0:x.backgroundColor)===452984831||(x==null?void 0:x.backgroundColor)===218103808};
nK.prototype.observeDataForCounterfactual=nK.prototype.observeDataForCounterfactual;nK.prototype.observeDataChanged=nK.prototype.observeDataChanged;nK.prototype.observeBasicPalette=nK.prototype.observeBasicPalette;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],nK.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.BL),_.Z("design:type",Object)],nK.prototype,"ytdDismissibleItemBehavior",void 0);
_.I([_.N(_.kr.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],nK.prototype,"ytdGuideStateAwareBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],nK.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],nK.prototype,"buttonUpdate",void 0);_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],nK.prototype,"hasSupplementalText",void 0);_.I([_.K(),_.Z("design:type",Object)],nK.prototype,"dismissButtonOverrides",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.Z("design:type",Boolean)],nK.prototype,"hasTitle",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.Z("design:type",Object)],nK.prototype,"forceDarkTheme",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.Z("design:type",Object)],nK.prototype,"forceLightTheme",void 0);_.I([_.K(),_.Z("design:type",Object)],nK.prototype,"dynamicTextHeight",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.Z("design:type",Object)],nK.prototype,"hasOverflowButton",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.Z("design:type",Object)],nK.prototype,"isInfeedModernization",void 0);_.I([_.hT("data.colorData.basicColorPaletteData"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],nK.prototype,"observeBasicPalette",null);
_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],nK.prototype,"observeDataChanged",null);_.I([_.hT("data.isVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],nK.prototype,"observeDataForCounterfactual",null);_.I([_.Q({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],nK);
_.m(nK,"ytd-banner-promo-renderer",function(){if(l5Z!==void 0)return l5Z;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return l5Z=A},{mode:1});var cOz;var CdM;var F6M;var tO=function(){return _.G.apply(this,arguments)||this};
_.g(tO,_.G);_.I([_.K(),_.Z("design:type",Object)],tO.prototype,"data",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],tO.prototype,"ytRendererBehavior",void 0);_.I([_.Q({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],tO);
_.m(tO,"ytd-hashtag-grid-tile-renderer",function(){if(F6M!==void 0)return F6M;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return F6M=A},{mode:1});var bd=function(){return _.G.apply(this,arguments)||this};
_.g(bd,_.G);bd.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
bd.prototype.updateRichGridTrendingHashtagsVisibility=function(){var A,L;if(((A=this.data)==null||!A.isExpanded)&&(L=this.data)!=null&&L.tiles){A=this.data.tiles.length;L=A>this.richGridItemsPerRow?this.richGridItemsPerRow+1:A;var O=Math.ceil(A/L);this.fullyVisibleRows=A%L===1&&O===2?1:Math.min(O,2);this.isShowMoreVisible=this.fullyVisibleRows<O}};
bd.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
bd.prototype.updateRichGridTrendingHashtagsVisibility=bd.prototype.updateRichGridTrendingHashtagsVisibility;_.I([_.K(),_.Z("design:type",Object)],bd.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Number)],bd.prototype,"fullyVisibleRows",void 0);_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],bd.prototype,"isShowMoreVisible",void 0);_.I([_.K({selector:_.Rm,value:0}),_.Z("design:type",Number)],bd.prototype,"richGridItemsPerRow",void 0);
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],bd.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],bd.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],bd.prototype,"ytdReduxBehavior",void 0);_.I([_.hT("data","richGridItemsPerRow"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],bd.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.I([_.Q({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],bd);
_.m(bd,"ytd-hashtag-grid-shelf-renderer",function(){if(CdM!==void 0)return CdM;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return CdM=A},{mode:1});var R4Q;var Q3S;var hO=function(){var A=_.G.apply(this,arguments)||this;A.visibleVideos=[];A.hiddenVideos=[];A.modern=_.h("web_modern_buttons");A.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return A};
_.g(hO,_.G);_.P=hO.prototype;_.P.attached=function(){var A=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",A);this.onDarkModeToggledAction(A)};
_.P.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.header":{id:"section-header-container",mapping:{sectionHeaderViewModel:{component:"yt-section-header-view-model",params:{disableHorizontalPadding:!0}}}},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},visibleVideos:{id:"visible-video-container",mapping:{videoRenderer:{component:"ytd-rich-grid-media",params:{disableInlinePreview:!0},
properties:{metadataColor:"[[videoMetadataColor]]"}},movieRenderer:{component:"ytd-rich-grid-slim-media",params:{disableInlinePreview:!0},properties:{metadataColor:"[[videoMetadataColor]]"}}}},hiddenVideos:{id:"hidden-video-container",mapping:{videoRenderer:{component:"ytd-rich-grid-media",params:{disableInlinePreview:!0},properties:{hidden:"[[true]]",metadataColor:"[[videoMetadataColor]]"}},movieRenderer:{component:"ytd-rich-grid-slim-media",params:{disableInlinePreview:!0},properties:{hidden:"[[true]]",
metadataColor:"[[videoMetadataColor]]"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.P.dataChanged=function(){var A=this;this.requestElementsPerRow();var L,O;this.currentColorPalette=this.isDarkTheme?(L=this.data)==null?void 0:L.darkColorData:(O=this.data)==null?void 0:O.lightColorData;var X;if((X=this.currentColorPalette)==null?0:X.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.kd(this,function(){A.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.P.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.P.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.P.computeIsFirstFeedItem=function(A){return A};
_.P.onDarkModeToggledAction=function(A){A!==this.isDarkTheme&&this.set("isDarkTheme",A);this.data&&(this.currentColorPalette=A?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.P.getCurrentLogo=function(A,L){if(A)return L?A.darkLogoImage:A.lightLogoImage};
_.P.computeTitleStyle=function(A){var L;if((L=this.data)!=null&&L.title&&A&&A.textPrimary!==void 0)return"color:"+_.Wy(A.textPrimary)+";"};
_.P.computeSubtitleStyle=function(A){var L;if((L=this.data)!=null&&L.subtitle&&A&&A.textSecondary!==void 0)return"color:"+_.Wy(A.textSecondary)+";"};
_.P.computeDismissIconStyle=function(A){if(this.data&&this.data.dismissButton&&A&&A.textPrimary!==void 0)return"--yt-button-color:"+_.Wy(A.textPrimary)+";"};
_.P.computeOverflowButtonStyle=function(A){if(this.data&&this.data.overflowButton&&A&&A.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.Wy(A.textPrimary)+";--yt-spec-icon-active-other:"+_.Wy(A.textPrimary)+";"};
_.P.computeBackgroundStyle=function(A){if(A&&this.data){var L="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var O=_.TJ((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);O&&(L+='background-image:url("'+O+'");')}A.backgroundColor!==void 0&&(L+="background-color:"+_.Hy(A.backgroundColor)+";");return L}};
_.P.computeButton=function(){var A,L=Object.assign({},_.q((A=this.data)==null?void 0:A.showMoreButton,_.$t));if(this.modern&&L){L.style="STYLE_MONO_OUTLINE";var O;if(A=(O=this.currentColorPalette)==null?void 0:O.textPrimary)L.colorData={basicColorPaletteData:{foregroundTitleColor:A,borderColor:A}}}return L};
_.P.shouldShowBottomButton=function(A,L){return!(A==null?0:A.header)&&!(A==null||!A.primaryButton)&&L<3};
_.P.checkExpanded=function(A){this.isExpanded=A&&A.content?this.hiddenVideos.length===0:!0};
_.P.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.P.getLogoHeight=function(A){return this.logoWithPadding(A)?"26":"20"};
_.P.getLogoImageId=function(A){return this.logoWithPadding(A)?"logo-image-with-padding":"logo-image"};
_.P.computeHasSectionHeader=function(A){return!!A.header};
_.P.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var A;if((A=this.data.primaryButton)==null?0:A.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 L;((L=this.data.dismissButton)==null?0:L.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var O,X;((O=this.data)==null?0:(X=O.primaryButton)==null?0:X.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.P.setVisibleVideos=function(A){if(this.data&&this.data.content)if(this.data.content.length){var L=this.data.content.length;this.data.header?A?(this.visibleVideos=this.data.content.slice(0,Math.min(L,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(L,this.slimItemsPerRow),L)):(this.visibleVideos=this.data.content.slice(0,Math.min(L,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(L,this.elementsPerRow),L)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(L,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(L,this.elementsPerRow),L)):(this.visibleVideos=this.data.content.slice(0,Math.min(L,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(L,this.elementsPerRow-1),L))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.P.setHasMovieRenderer=function(){var A;if((A=this.data)!=null&&A.content){var L;this.hasMovieRenderer=!!_.q((L=this.data)==null?void 0:L.content[0],_.iCJ)}else this.hasMovieRenderer=!1};
_.P.requestElementsPerRow=function(){_.P4(this.hostElement,"yt-request-elements-per-row")};
_.P.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var A=_.d(this.hiddenMediaRenderers),L=A.next();!L.done;L=A.next())L.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(A=_.YJ(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&A.focus()}};
_.P.updateTitleSpec=function(){var A;(A=this.data)!=null&&A.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.P.logoWithPadding=function(A){var L,O,X;return(A=(L=this.getCurrentLogo(A,this.isDarkTheme))==null?void 0:(O=L.thumbnails)==null?void 0:(X=O[0])==null?void 0:X.height)&&A%31===0?!0:!1};
_.P.onUpdateElementsPerRowAction=function(A,L,O){A&&this.elementsPerRow!==A&&(this.elementsPerRow=A);O&&this.slimItemsPerRow!==O&&(this.slimItemsPerRow=O)};
hO.prototype.slimItemsPerRowChanged=hO.prototype.slimItemsPerRowChanged;hO.prototype.elementsPerRowChanged=hO.prototype.elementsPerRowChanged;hO.prototype.dataChanged=hO.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],hO.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],hO.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.BL),_.Z("design:type",Object)],hO.prototype,"ytdDismissibleItemBehavior",void 0);
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],hO.prototype,"actionHandlerBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],hO.prototype,"ytdReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],hO.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],hO.prototype,"currentColorPalette",void 0);_.I([_.K(),_.Z("design:type",Array)],hO.prototype,"visibleVideos",void 0);_.I([_.K(),_.Z("design:type",Array)],hO.prototype,"hiddenVideos",void 0);
_.I([_.K(),_.Z("design:type",Object)],hO.prototype,"primaryButton",void 0);_.I([_.K({reflectToAttribute:!0,value:3}),_.Z("design:type",Number)],hO.prototype,"elementsPerRow",void 0);_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],hO.prototype,"isDarkTheme",void 0);_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],hO.prototype,"isExpanded",void 0);_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],hO.prototype,"largeTitle",void 0);
_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],hO.prototype,"hasMovieRenderer",void 0);_.I([_.K(),_.Z("design:type",Number)],hO.prototype,"slimItemsPerRow",void 0);_.I([_.K(),_.Z("design:type",Boolean)],hO.prototype,"showLightVideoMetadata",void 0);_.I([_.K(),_.Z("design:type",Boolean)],hO.prototype,"showDarkVideoMetadata",void 0);_.I([_.K(),_.Z("design:type",Number)],hO.prototype,"videoMetadataColor",void 0);
_.I([_.K({reflectToAttribute:!0,selector:_.Fl}),_.Z("design:type",Boolean)],hO.prototype,"miniMode",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.Z("design:type",Boolean)],hO.prototype,"isFirstFeedItem",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.Z("design:type",Boolean)],hO.prototype,"hasSectionHeader",void 0);
_.I([_.K({reflectToAttribute:!0,value:!0}),_.Z("design:type",Boolean)],hO.prototype,"roundedContainer",void 0);_.I([_.gd("#visible-video-container ytd-rich-grid-media"),_.Z("design:type",Array)],hO.prototype,"visibleMediaRenderers",void 0);_.I([_.gd("#hidden-video-container ytd-rich-grid-media"),_.Z("design:type",Array)],hO.prototype,"hiddenMediaRenderers",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],hO.prototype,"modern",void 0);
_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],hO.prototype,"dataChanged",null);_.I([_.hT("elementsPerRow"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],hO.prototype,"elementsPerRowChanged",null);_.I([_.hT("slimItemsPerRow"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],hO.prototype,"slimItemsPerRowChanged",null);
_.I([_.Q({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],hO);
_.m(hO,"ytd-brand-video-shelf-renderer",function(){if(Q3S!==void 0)return Q3S;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Q3S=A},{mode:1});var mHS;var S$=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return A};
_.g(S$,_.G);_.P=S$.prototype;_.P.attached=function(){var A=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",A);this.onDarkModeToggledAction(A)};
_.P.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.P.dataChanged=function(){this.requestElementsPerRow();var A,L;this.currentColorPalette=this.isDarkTheme?(A=this.data)==null?void 0:A.darkColorData:(L=this.data)==null?void 0:L.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.P.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.P.computeIsFirstFeedItem=function(A){return A};
_.P.onDarkModeToggledAction=function(A){A!==this.isDarkTheme&&this.set("isDarkTheme",A);this.data&&(this.currentColorPalette=A?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(A),this.updateButtonPalette())};
_.P.shouldShowThumbnailInMetadata=function(A){return A<=1};
_.P.computeVideoMetadataColor=function(){if(this.data){var A;if((A=this.currentColorPalette)==null?0:A.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.P.computeTitleStyle=function(A){var L;if((L=this.data)!=null&&L.title&&A&&A.textPrimary!==void 0)return"color:"+_.Wy(A.textPrimary)+";"};
_.P.computeSubtitleStyle=function(A){var L;if((L=this.data)!=null&&L.subtitle&&A&&A.textSecondary!==void 0)return"color:"+_.Wy(A.textSecondary)+";"};
_.P.computeOverflowButtonStyle=function(A){if(this.data&&this.data.overflowButton&&A.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.Wy(A.textPrimary)+";--yt-spec-icon-active-other:"+_.Wy(A.textPrimary)+";"};
_.P.computeBackgroundStyle=function(A){if(A&&this.data){var L="";A.backgroundColor!==void 0&&(L+="background-color:"+_.Hy(A.backgroundColor)+";");return L}};
_.P.computeHasOverflowButton=function(A){return!!A.overflowButton};
_.P.updateButtonPalette=function(){if(this.data){var A;if((A=this.data.primaryButton)==null?0:A.buttonRenderer){var L;if((L=this.currentColorPalette)==null?0:L.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var O;((O=this.currentColorPalette)==null?0:O.primaryButtonStyleType)?(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0):this.data.primaryButton.buttonRenderer.style="STYLE_MONO_TONAL"}this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)})}}};
_.P.requestElementsPerRow=function(){_.P4(this.hostElement,"yt-request-elements-per-row")};
_.P.updateTitleSpec=function(){var A;(A=this.data)!=null&&A.titleLength&&(this.titleSize=this.elementsPerRow<=3?this.data.titleLength<=10?"TITLE_SIZE_MEDIUM":"TITLE_SIZE_SMALL":this.data.titleLength<=13?"TITLE_SIZE_LARGE":this.data.titleLength<=30?"TITLE_SIZE_MEDIUM":"TITLE_SIZE_SMALL")};
_.P.onUpdateElementsPerRowAction=function(A){A&&this.elementsPerRow!==A&&(this.elementsPerRow=A)};
S$.prototype.elementsPerRowChanged=S$.prototype.elementsPerRowChanged;S$.prototype.dataChanged=S$.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],S$.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],S$.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.BL),_.Z("design:type",Object)],S$.prototype,"ytdDismissibleItemBehavior",void 0);
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],S$.prototype,"actionHandlerBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],S$.prototype,"ytdReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],S$.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],S$.prototype,"currentColorPalette",void 0);_.I([_.K(),_.Z("design:type",Object)],S$.prototype,"primaryButton",void 0);
_.I([_.K({reflectToAttribute:!0,value:3}),_.Z("design:type",Number)],S$.prototype,"elementsPerRow",void 0);_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],S$.prototype,"isDarkTheme",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",String)],S$.prototype,"titleSize",void 0);_.I([_.K(),_.Z("design:type",Number)],S$.prototype,"videoMetadataColor",void 0);_.I([_.K({reflectToAttribute:!0,selector:_.Fl}),_.Z("design:type",Boolean)],S$.prototype,"miniMode",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.Z("design:type",Boolean)],S$.prototype,"isFirstFeedItem",void 0);_.I([_.K({reflectToAttribute:!0,value:!0}),_.Z("design:type",Boolean)],S$.prototype,"roundedContainer",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.Z("design:type",Boolean)],S$.prototype,"hasOverflowButton",void 0);
_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],S$.prototype,"dataChanged",null);_.I([_.hT("elementsPerRow"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],S$.prototype,"elementsPerRowChanged",null);_.I([_.Q({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],S$);
_.m(S$,"ytd-brand-video-singleton-renderer",function(){if(mHS!==void 0)return mHS;var A=document.createElement("template");_.p(A,'\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>');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return mHS=A},{mode:_.e5("kevlar_poly_si_batch_j070")?1:2});var f5J;var I5X=_.xa(function(A){var L=A.data;return _.D(_.XV,{data:function(){return L().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(L().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var O=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":O=88;break a;default:O=88}return O},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return L().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"bj"),ZKX=_.xa(function(A){var L=A.metadataRow;
var O=A.delimiter;return _.D(_.g9,{each:function(){return L().textParts||[]},
keyBy:"INDEX"},function(X,x){return _.D(_.Xs,null,_.D(_.Xg,{text:X,noWrap:!0,userInput:!0}),_.D(yOX,{delimiter:O,max:function(){return L().textParts.length},
index:x}))})},"cj"),yOX=_.xa(function(A){var L=A.delimiter;
var O=A.max;var X=A.index;return _.D(_.e,{cond:function(){return(L==null?void 0:L())&&O()-1>X()},
then:function(){return _.D("span",null,L)}})},"dj"),j3B=_.xa(function(A){var L=A.data;
A={};return _.D("yt-profile-page-header-information-view-model",{class:_.qn("profile-page-header-information-view-model-wiz",(A["profile-page-header-information-view-model-wiz--mobile"]=!1,A))},_.D(_.e,{cond:function(){return L().onTap},
then:function(){return _.D(_.aD,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.HR(L().onTap)}},_.D(_.ID,{data:function(){return L().thumbnail}},{profilePageHeaderThumbnailViewModel:I5X}))},
else:function(){return _.D("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.D(_.ID,{data:function(){return L().thumbnail}},{profilePageHeaderThumbnailViewModel:I5X}))}}),_.D("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.D(_.e,{cond:function(){return L().onTap},
then:function(){return _.D(_.ID,{data:function(){return L().title}},{profilePageHeaderTitleViewModel:function(O){var X=O.data;
return _.D(_.aD,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.HR(X().onTap)}},_.D(_.Xg,{text:function(){return X().title}}))}})},
else:function(){return _.D(_.ID,{data:function(){return L().title}},{profilePageHeaderTitleViewModel:function(O){var X=O.data;
return _.D(_.Xg,{text:function(){return X().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.D(_.ID,{data:function(){return L().metadata}},{profilePageHeaderMetadataViewModel:function(O){var X=O.data;
return _.D(_.e,{cond:function(){return X().metadataRows},
then:function(x){return _.D("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.D(_.g9,{each:x,keyBy:"INDEX"},function(J,Y){return _.D(_.Xs,null,_.D(ZKX,{metadataRow:J,delimiter:" \u2022 "}),_.D(yOX,{delimiter:" \u2022 ",max:function(){return x().length},
index:Y}))}))}})}})))},"ej");
j3B.idomCompat=!0;_.Y4(j3B,"yt-profile-page-header-information-view-model",{props:{data:_.x5}});var qH=function(){return _.G.apply(this,arguments)||this};
_.g(qH,_.G);qH.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],qH.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],qH.prototype,"data",void 0);_.I([_.Q({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],qH);
_.m(qH,"ytd-effect-pivot-header-view-model",function(){if(f5J!==void 0)return f5J;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return f5J=
A},{mode:1});var W6J;var gy=function(){return _.G.apply(this,arguments)||this};
_.g(gy,_.G);gy.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],gy.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],gy.prototype,"data",void 0);_.I([_.Q({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],gy);
_.m(gy,"ytd-source-pivot-header-renderer",function(){if(W6J!==void 0)return W6J;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return W6J=A},{mode:1});_.HKk=_.xa(function(A){var L=A.data;var O=function(){var X;return _.zP((X=L())==null?void 0:X.rendererContext)};
A={};return _.D("content-list-item-view-model",{el:_.sC(_.Bm(function(){return L().rendererContext})),
class:_.qn("ytContentListItemViewModelHost",(A.ytContentListItemViewModelTappable=O,A)),role:function(){return O()?"listitem":void 0},
tabindex:function(){return O()?0:void 0}},_.D("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.D("div",{class:"ytContentListItemViewModelImageContainer"},_.D(_.e,{cond:function(){return L().image},
then:function(X){return _.D(_.XV,{data:X,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.D(_.ID,{data:function(){var X;
return(X=L())==null?void 0:X.avatar}},{avatarViewModel:_.fP})),_.D("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.D("div",{class:_.qn("ytContentListItemViewModelTitle",function(){a:{switch(L().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var X="ytContentListItemViewModelProminentTitle";
break a}X=void 0}return X})},_.D(_.Xg,{text:function(){return L().title}})),_.D("div",{class:"ytContentListItemViewModelMetadata"},_.D(_.ID,{data:function(){return L().metadata}},{contentMetadataViewModel:function(X){return _.D(_.DR,{data:X.data,
layout:1})}})))),_.D("div",{class:"ytContentListItemViewModelActionButton"},_.D(_.ID,{data:function(){var X;
return(X=L())==null?void 0:X.actionButton}},{buttonViewModel:_.gj,
toggleButtonViewModel:_.fO})))},"fj");_.Y4(_.xa(function(A){var L=function(){return A.data().background},O=function(){return A.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},X=function(){return A.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"};
return _.D("yt-card-view-model",{class:_.qn("ytCardViewModelHost",A.className)},_.D(_.eC,{contentId:function(){return A.data().contentId}},function(){return _.D("div",{class:_.qn("ytCardViewModelCardViewModelInner",function(){return OKJ(A.data().cardStyle)})},_.D(_.ID,{data:L},{cinematicContainerViewModel:function(x){return _.D(_.Q3N,{data:x.data})}}),_.D("div",{class:"ytCardViewModelContentWrapper"},_.D(_.e,{cond:function(){return!O()},
then:function(){var x={};return _.D("div",{class:"ytCardViewModelTopContent"},_.D(_.ID,{data:function(){return A.data().topContent}},{contentListItemViewModel:function(J){return _.D(_.HKk,{data:J.data})}}),_.D("div",{class:_.qn("ytCardViewModelInlineTrailingAction",(x.ytCardViewModelInlineCenterTrailingAction=X,x))},_.D(_.ID,{data:function(){return A.data().trailingAction}},{buttonViewModel:function(J){return _.D(_.gj,{data:J.data})}})))}}),_.D("div",{class:"ytCardViewModelBodyContent"},_.D(_.ID,
{data:function(){return A.data().bodyContent}},{contentListItemViewModel:function(x){return _.D(_.HKk,{data:x.data})}}))),_.D(_.e,{cond:function(){return O()},
then:function(){return _.D("div",{class:"ytCardViewModelOverlayTrailingAction"},_.D(_.ID,{data:function(){return A.data().trailingAction}},{buttonViewModel:function(x){return _.D(_.gj,{data:x.data})}}))}}))}))},"gj"),"yt-card-view-model",{props:{data:_.x5,
className:_.x5}});_.Y4(_.xa(function(A){var L=function(){return _.q(A.data().flowRoot,n0J)};
_.GD(function(){var O=L(),X=function(){},x=function(){};
if(O){var J,Y,T,V=((T=_.q((J=L())==null?void 0:(Y=J.steps)==null?void 0:Y[0],_.Lgz))==null?void 0:T.stepId)||"";JOz(O,V);X=dHM(O);x=YXS(O)}_.rF(function(){var E=L();E&&_.Ai().dispatch(_.NV("flowStateEntity",E.flowStateEntityKey));X();X=function(){};
x();x=function(){}})});
return _.D("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.D(_.eC,{contentId:function(){return A.data().contentId}},function(){return _.D("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.D(_.e,{cond:L,
then:function(O){return _.D(_.owM,{data:O})}}))}))},"hj"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.x5}});_.Y4(_.xa(function(){return _.D("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.D("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.D("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.D(_.ylk,null)),_.D(_.adN,{data:{rows:1},isExploreHub:!0}))},"ij"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.Y4(_.xa(function(A){var L=A.data;var O=A.standardUnitMinWidth;A=_.d((0,_.oML)(L));var X=A.next().value,x=A.next().value,J=function(){var T,V=(T=X())==null?void 0:T.contents;return V==null||V.length===0},Y=function(){x(Object.assign({},X(),{contents:[]}))};
return _.D("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.sC(_.Oj({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var T=_.q(L().chipsShelf,bKX);if(T!=null&&T!=null&&T.autoselectChipOnVisible){var V,E,n=_.q(T==null?void 0:(V=T.contents)==null?void 0:V[(E=T.autoselectedChipIndex)!=null?E:0],_.vB);n&&n.tapCommand&&_.$a(n.tapCommand)}}}))},_.D(_.eC,{contentId:function(){return L().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.D("div",null,_.D("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.D(_.ID,{data:function(){return L().header}},{sectionHeaderViewModel:function(T){return _.D(_.b$,{data:T.data,
disableHorizontalPadding:!0})}})),_.D("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.D(_.ID,{data:function(){return L().chipsShelf}},{chipsShelfViewModel:function(T){return _.D(_.Xc7,{data:T.data,
callback:Y,enableSingleChipSelection:!0})}})),_.D("div",null,_.D(_.e,{cond:J,
then:function(){return _.D("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.D(_.adN,{data:{rows:1},isExploreHub:!0}))}}),_.D(_.ID,{data:function(){var T;
return(T=X())==null?void 0:T.contents}},{richShelfRenderer:function(T){return _.D(_.Lol,{data:T.data,
isInnerShelf:!0,standardUnitMinWidth:O})}})))}))},"jj"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.x5,
standardUnitMinWidth:_.x5}});var wy=function(){return _.G.apply(this,arguments)||this};
_.g(wy,_.G);
wy.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}}};
wy.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.I([_.N(_.HL),_.Z("design:type",Object)],wy.prototype,"ytdReduxBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],wy.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.U8),_.Z("design:type",Object)],wy.prototype,"ytContinuationHandlerBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],wy.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],wy.prototype,"data",void 0);
_.I([_.K(),_.Z("design:type",Number)],wy.prototype,"standardUnitMinWidth",void 0);_.I([_.Q({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],wy);
_.m(wy,"ytd-rich-section-renderer",function(){if(R4Q!==void 0)return R4Q;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return R4Q=A},{mode:_.e5("kevlar_poly_si_batch_j029")?
1:2});_.Y4(_.hZB,"yt-profile-identity-info-view-model",{props:{data:_.x5,hideDivider:_.x5,isChannelInfoCard:_.x5}});_.Y4(_.HKc,"yt-page-header-view-model",{props:{data:_.x5,noPadding:_.x5,enableBanner:_.x5,cinematicContainerTopbarOffset:_.x5,allowCinematicContainerOverflow:_.x5,displayAsSidebar:_.x5,displayAsPanel:_.x5,alwaysUseMediumTextDescription:_.x5}});_.Y4(_.xa(function(A){var L=A.data;var O=function(){var x;return(x=L().numColumns)!=null?x:2},X=function(){return O()>1?3:2};
A={};return _.D("ytd-rich-grid-group",{class:_.qn("ytdRichGridGroupHost",(A.ytdRichGridGroupHostFirstColumn=function(){return L().colIndex===0},A)),
style:_.rl({"--ytd-rich-grid-group-num-columns":O,"--ytd-rich-grid-items-per-group":X})},_.D("div",{class:"ytdRichGridGroupContents"},_.D(_.ID,{data:function(){var x;return(x=L().contents)==null?void 0:x.slice(0,X())}},{richItemRenderer:function(x){return _.D(_.oA6,{data:x.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"kj"),"ytd-rich-grid-group",{props:{data:_.x5}});var pK=function(){var A=_.G.apply(this,arguments)||this;A.resizeOnObserverInit=!1;A.isInlinePreviewDisabled=_.h("web_disable_inline_preview");A.disableStickyFilterBar=!1;A.transparentBackgroundChipsBar=!1;A.hideChipsBar=!1;A.isWatchDefaultLayout=!0;A.continuationShowButton=!1;A.rowReducedHorizontalMargin=!1;A.useCompactList=!1;A.manualDownloadsPresent=!1;A.smartDownloadsPresent=!1;A.shouldRenderDownloadsBanner=!1;A.hasOptedIntoSmartDownloads=!1;A.elementsPerRow=4;A.typographyBump=!1;A.showGnomeContents=
!1;A.showExploreHubContents=!1;A.slimItemsPerRow=1;A.pageLoadingFromNavigation=!1;A.loggingRefactor=_.h("kevlar_rich_grid_logging_fix");A.resizeObserver=null;A.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"};A.rendererToTagNameMap=
new Map(Object.entries(A.contentMapping()).map(function(L){var O=_.d(L);L=O.next().value;O=O.next().value;return[L,O.component]}));
A.insertedContent=new Map;return A};
_.g(pK,_.G);_.P=pK.prototype;_.P.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var A=_.d(_.YJ(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),L=A.next();!L.done;L=A.next())L.value.useCompactList=this.useCompactList};
_.P.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var A=_.d(_.YJ(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),L=A.next();!L.done;L=A.next())L=L.value,L.sizing=this.sizing,L.typographyBump=this.typographyBump};
_.P.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.P.contentMapping=function(){return{richGroupRenderer:{component:"ytd-rich-grid-group"},richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isShortsGrid:"[[isShortsGrid]]",isSlimGrid:"[[isSlimGrid]]",isCompactGrid:"[[isCompactGrid]]",isShortsPanelGrid:"[[isShortsPanel]]",noGutterMargins:"[[noRichItemGutterMargins]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",useCompactList:"[[useCompactList]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",
isHomeGrid:"[[isHomePage]]"},params:{renderedFromRichGrid:!0}},richSectionRenderer:{component:"ytd-rich-section-renderer",properties:{standardUnitMinWidth:"[[data.minItemWidth]]"}},continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{isShortsGrid:"[[isShortsGrid]]",showButton:"[[continuationShowButton]]",continuationTriggerOffset:"[[continuationTriggerOffset]]"}}}};
_.P.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",properties:{fluidWidth:"[[isDefaultGrid]]",disableSticky:"[[disableStickyFilterBar]]",transparentBackground:"[[transparentBackgroundChipsBar]]"}},chipBarViewModel:{component:"chip-bar-view-model",params:{className:"ytd-rich-grid-renderer chip-bar"}},pageHeaderViewModel:{component:"yt-page-header-view-model",params:{displayAsPanel:!0}},profileIdentityInfoViewModel:{component:"yt-profile-identity-info-view-model"}}},
bigYoodleData:{id:"big-yoodle",mapping:{brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",statementBannerRenderer:"ytd-statement-banner-renderer"},reuseComponents:!1},mastheadData:{id:"masthead-ad",mapping:{bannerPromoRenderer:"ytd-banner-promo-renderer",adSlotRenderer:"ytd-ad-slot-renderer"},reuseComponents:!1},shownItems:{id:"contents",mapping:this.contentMapping(),reuseComponents:!1}}};
_.P.attached=function(){document.addEventListener("yt-page-type-changed",_.tT(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.JSC$22812_throttledOnResize=new _.Of(this.resizeObserved,_.PO("rich_grid_resize_delay_ms",50),this)};
_.P.detached=function(){var A;(A=this.resizeObserver)==null||A.disconnect();document.removeEventListener("yt-page-type-changed",_.tT(this,this.onPageChange))};
_.P.insertRichSection=function(A){var L=A.richItemTargetId;A=A.richSectionRendererToInsert;L&&A&&(this.insertedContent.set(L,{content:A,timestamp:Date.now()}),this.reflowContent())};
_.P.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.P.computeIsInlinePreviewEnabled=function(A,L,O){return _.h("web_disable_inline_preview")?!1:!O&&_.znJ({miniplayerIsActive:A,miniplayerPlaybackState:L})};
_.P.computeSizing=function(){var A=_.o_p(this.data);if(A||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return A?this.useCompactList?"COMPACT":A:this.miniMode?"COMPACT":_.h("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.P.updateItemMinAndMaxWidth=function(){var A=_.PO("rich_grid_max_item_width",500);A>0&&_.eq(this.hostElement,{"--ytd-rich-grid-item-max-width":A+"px"});var L;A=this.getRichItemMinWidth((L=this.hostElement)==null?void 0:L.clientWidth);A>0&&_.eq(this.hostElement,{"--ytd-rich-grid-item-min-width":A+"px"})};
_.P.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.P.resizeObserved=function(){_.YK(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.P.navigateBackToHome=function(){_.h("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.h("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var A=_.X5().resolve(_.JI).isOnWatch(),L,O=((L=_.SQ(location.pathname))==null?void 0:L.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(O)||A)&&this.gnomeContents&&_.h("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);A&&this.exploreHubContents&&_.h("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.Ai().dispatch(_.JY({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.P.onPageChange=function(){var A=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.h("disable_chip_select_on_nav")||_.YK(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.c1.addJob(function(){A.pageLoadingFromNavigation=!1;_.h("disable_chip_select_on_nav")&&_.h("h5_reset_cache_and_filter_before_update_masthead")&&A.resetCacheAndIsFilteredFeed();A.setMasthead();A.maybeSetBigYoodle();A.forceRefreshAndLog();A.terminateVideoPreview();_.h("web_hide_gnome_until_user_navigates_back_to_home")&&
(A.dataChanged(),_.kd(A,function(){if(A.showGnomeContents){var L=Array.from(_.YJ(A.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(X){X=_.YJ(X).querySelector("ytd-rich-shelf-renderer");return!!X&&X.isGnomeShelf()});
if(L){L=L.offsetTop-A.contentsElement.offsetTop;var O=_.X5().resolve(_.JI).getCurrentPage();O&&O.getPageScrollingElement().scrollTo({top:L,behavior:"smooth"})}}}));
_.h("web_hide_explore_hub_until_user_navigates_back_to_home")&&(A.dataChanged(),_.kd(A,function(){if(A.showExploreHubContents&&!_.h("web_explore_hub_no_scroll")){var L=Array.from(_.YJ(A.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(X){return!!X.querySelector("ytd-talk-to-recs-flow-renderer")});
if(L){L=L.offsetTop-A.contentsElement.offsetTop;var O=_.X5().resolve(_.JI).getCurrentPage();O&&O.getPageScrollingElement().scrollTo({top:L,behavior:"smooth"})}}}))},8)):((_.h("web_hide_gnome_until_user_navigates_back_to_home")||_.h("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.P.dataChanged=function(){var A=this,L=_.PO("web_rich_grid_row_margin",0);L>0&&_.eq(this.hostElement,{"--ytd-rich-grid-row-margin":L+"px"});_.YK(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.kd(this,function(){A.updateRichItemGridPositions();A.contentsElement&&_.eq(A.hostElement,{"--ytd-rich-grid-content-offset-top":A.contentsElement.offsetTop+
"px"})}),this.initResizeObserver())};
_.P.initResizeObserver=function(){var A=this;if(window.ResizeObserver){var L;(L=this.resizeObserver)==null||L.disconnect();var O=!1;this.resizeObserver=new ResizeObserver(function(){if(O){var X;(X=A.resizeObserver)==null||X.disconnect();var x;(x=A.JSC$22812_throttledOnResize)==null||x.fire();requestAnimationFrame(function(){var Y;(Y=A.JSC$22812_throttledOnResize)==null||Y.fire();A.initResizeObserver()})}else if(O=!0,A.resizeOnObserverInit){var J;
(J=A.JSC$22812_throttledOnResize)==null||J.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.P.contentLengthChanged=function(){if(_.h("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.YK(this.hostElement,"ytd-rich-item-index-update-action")};
_.P.updateElementsPerRow=function(){_.YK(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.JY({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.JY({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.P.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.P.onRichShelfRendererCollapse=function(A){if(this.shownItems){var L=A.detail;A=this.shownItems.findIndex(function(X){var x,J;return((J=_.q(X==null?void 0:(x=X.richSectionRenderer)==null?void 0:x.content,_.BrL))==null?void 0:J.trackingParams)===L});
var O=A+1;A<0||O>=this.contentsElement.children.length||!this.shownItems[O].richItemRenderer||this.contentsElement.children[O].scrollIntoView({behavior:"smooth",block:"start"})}};
_.P.onSoftReloadPage=function(){this.scrollUpToTop()};
_.P.handleRerenderDownloadsData=function(){_.h("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.P.handlePlaylistRemoveVideosAction=function(A){var L;if(((L=_.q(A,_.u_6))==null?0:L.setVideoIds)&&this.data&&this.data.contents){A=_.q(A,_.u_6).setVideoIds;for(L=this.data.contents.length-1;L>=0;){var O=_.q(this.data.contents[L],_.It);(O=O&&_.q(O.content,_.M1))&&O.setVideoId&&A.includes(O.setVideoId)&&this.splice("data.contents",L,1);L--}this.updateIndices()}};
_.P.updateIndices=function(){if(this.data&&this.data.contents)for(var A=0;A<this.data.contents.length;A++)this.set("data.contents."+A+".richItemRenderer.index",_.Ue(String(A+1)))};
_.P.hasTopRowInlinePlayableVideoWithEndorsement=function(A){var L;return!((L=A.slice(0,this.getItemsPerRow()))==null||!L.some(function(O){var X;O=_.q(O==null?void 0:(X=O.richItemRenderer)==null?void 0:X.content,_.kt);var x;return(O==null?void 0:O.inlinePlaybackEndpoint)&&(O==null?void 0:(x=O.thumbnailOverlays)==null?void 0:x.some(function(J){return J.thumbnailOverlayEndorsementRenderer}))}))};
_.P.refreshGridLayoutNew=function(A,L,O,X){var x=X.postsPerRow;var J=X.slimItemsPerRow;var Y=X.gameCardsPerRow;X=X.miniGameCardsPerRow;var T;if((T=this.data)==null||!T.contents||!this.containerWidth)return!1;var V;if((V=this.data.responsiveContainerConfiguration)==null?0:V.responsiveSize){var E=_.aqe(this.data.responsiveContainerConfiguration,this.containerWidth),n;T=_.oD(Object.assign({},E,{standardUnitMinWidth:(n=this.data)==null?void 0:n.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&E.isCompactList)}else T=_.oD({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(E=this.data)==null?void 0:E.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=T.typographyBump;n=!1;if(A||this.elementsPerRow!==T.numItems||this.postsPerRow!==x||this.slimItemsPerRow!==J||this.gameCardsPerRow!==
Y||this.miniGameCardsPerRow!==X||this.gutter!==T.gutter)n=this.elementsPerRow!==T.numItems,this.elementsPerRow=T.numItems,this.postsPerRow=x,this.slimItemsPerRow=J,this.gameCardsPerRow=Y,this.miniGameCardsPerRow=X,this.gutter=T.gutter,this.itemWidth=T.itemWidth,this.reflowContent(L),_.eq(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":T.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(O);this.ytdReduxBehavior.dispatch(_.JY({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:T.maxContainerWidth}));return n};
_.P.refreshGridLayout=function(A,L){var O,X=(O=this.hostElement)==null?void 0:O.clientWidth;this.containerWidth=this.adjustRichGridWidth(X,!0);var x;if((x=this.data)==null||!x.contents||!this.containerWidth)return A&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&!_.h("rg_pending_reflow_ks")&&(A=!0,this.pendingForceReflow=!1);O=this.getRichItemMinWidth(X);var J=this.isShortsPanel?146:194,Y=this.getMiniGameCardMinWidth(),T=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;
X=O=this.calcElementsPerRow(O,T);(x=O<=3&&this.miniModeAllowed())&&(O=this.calcElementsPerRow(240,4));var V=this.calcMaxSlimElementsPerRow(O,T,this.isDefaultGrid);T=this.calcElementsPerRow(J,V);var E=this.calcElementsPerRow(this.isCompactGrid?J:154,V);J=this.calcElementsPerRow(this.isCompactGrid?J:Y,V);Y=!1;if(this.sizing)return this.refreshGridLayoutNew(A,L,x,{postsPerRow:X,slimItemsPerRow:T,gameCardsPerRow:E,miniGameCardsPerRow:J});if(A||this.elementsPerRow!==O||this.postsPerRow!==X||this.slimItemsPerRow!==
T||this.gameCardsPerRow!==E||this.miniGameCardsPerRow!==J)Y=this.elementsPerRow!==O,this.elementsPerRow=O,this.postsPerRow=X,this.slimItemsPerRow=T,this.gameCardsPerRow=E,this.miniGameCardsPerRow=J,this.reflowContent(L),this.updateElementsPerRow(),_.eq(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)&&_.eq(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(x);_.YK(this.hostElement,"yt-rich-grid-layout-refreshed");return Y};
_.P.getRichItemMinWidth=function(A){var L=_.PO("rich_grid_min_item_width",310);if(!_.h("kevlar_disable_min_width_override")){var O,X;L=(X=(O=this.data)==null?void 0:O.minItemWidth)!=null?X:L}return L+_.Bgu(A)};
_.P.calcMaxSlimElementsPerRow=function(A,L,O){return(O===void 0?0:O)?A===1?2:A%2===0?_.h("web_shorts_2_by_3_reduce_items_per_row")&&A>=4?A/2*3-1:A/2*3:_.h("web_shorts_2_by_3_reduce_items_per_row")&&A>=3?A+1:A+2:L*2};
_.P.adjustRichGridWidth=function(A,L){var O=_.h("disable_rich_grid_guide_compensation");if(!this.isWatch&&!O){O=_.X5().resolve(_.Ot(_.af));var X=O==null?void 0:O.guideElement;if(!(!O||O.getData()||X!=null&&X.opened||O.getMiniGuideVisible()))if(O.canFitPersistentGuide(A)&&O.getGuideExpandsAutomatically()){var x,J,Y=Number((x=window.getComputedStyle(this.hostElement))==null?void 0:(J=x.getPropertyValue("--app-drawer-width"))==null?void 0:J.replace("px",""));A-=Y||0}else if(O.canFitMiniGuide(A)){var T;
x=Number((Y=window.getComputedStyle(this.hostElement))==null?void 0:(T=Y.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:T.replace("px",""));A-=x||0}}A>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(A-=L?32:48));return A};
_.P.calcElementsPerRow=function(A,L){var O=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),X=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((O+X)/(A+X))||1,L)};
_.P.reflowContent=function(A){var L=this;if(!this.isReflowing){this.isReflowing=!0;var O,X,x=!!((O=this.data)==null?0:(X=O.contents)==null?0:X.some(function(S){return _.q(S,_.JR)}));
O=this.getItemsPerRow();var J;X=(J=this.data)==null?void 0:J.reflowOptions;A&&(_.Rk("rgr_s"),_.kd(this,function(){_.Rk("rgr_nrf")}));
A={};(J=_.YJ(this.hostElement).querySelector("#contents"))&&(A={contentElement:J,rendererToTagNameMap:this.rendererToTagNameMap});J=(J=this.data.contents)?J.slice():[];var Y=(_.h("web_hide_gnome_behind_feed_filter_chip")||_.h("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,T=_.h("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,V=-1,E=-1;if(this.isHomePage&&T){for(T=0;T<J.length;T++){var n=void 0,t=void 0;_.q((n=J[T])==null?void 0:
(t=n.richSectionRenderer)==null?void 0:t.content,E0M)&&(E=T)}E>-1&&(this.exploreHubContents=J.splice(E,1))}if(this.isHomePage&&Y){for(E=0;E<J.length;E++)t=n=void 0,(T=_.q((n=J[E])==null?void 0:(t=n.richSectionRenderer)==null?void 0:t.content,_.BrL))&&Y&&(t=n=void 0,T=_.q((n=T)==null?void 0:(t=n.contents)==null?void 0:t[0],_.It),n=void 0,_.q((n=T)==null?void 0:n.content,_.Bx3)&&(V=E));V>-1&&(this.gnomeContents=J.splice(V,1))}var b=vgz(J,O,x,X,this.getRichGridStyle(),A,this.insertedContent);x=function(){L.shownItems=
b;L.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(b),_.kd(this,x)):x()}};
_.P.getFirstRowItems=function(A){for(var L=[],O=0;O<A.length;O++){var X=void 0,x=void 0,J=void 0,Y=void 0,T=void 0,V=void 0;if(((X=A[O])==null?void 0:(x=X.richItemRenderer)==null?void 0:x.rowIndex)===0||((J=A[O])==null?void 0:(Y=J.richGroupRenderer)==null?void 0:Y.rowIndex)===0||((T=A[O])==null?void 0:(V=T.richSectionRenderer)==null?void 0:V.rowIndex)===0)L.push(A[O]);else break}return L};
_.P.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.P.resetInsertedContentIfNeeded=function(){(_.h("web_explore_hub_on_hover")||_.h("web_client_explore_hub_on_hover"))&&this.insertedContent.size>0&&(this.insertedContent.clear(),this.reflowContent())};
_.P.handleChipCloudChipSelectAction=function(A,L){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents||this.setCacheAndIsFilteredFeed();_.h("web_hide_gnome_behind_feed_filter_chip")&&(L?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.P.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);_.h("enable_rich_grid_continuation_reflow_fix")||this.reflowContent();this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.P.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();_.h("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.P.terminateVideoPreview=function(){_.YK(this.hostElement,"yt-terminate-video-preview-action")};
_.P.updateRichItemGridPositions=function(){var A={gridData:{gridColumnCount:this.elementsPerRow}},L;if((L=this.data)==null?0:L.trackingParams)this.loggingRefactor?_.iV().stateChanged(this.data.trackingParams,A):(L=_.Fn())&&_.kK(L,_.lV(this.data.trackingParams),A);_.YK(this.hostElement,"ytd-rich-item-index-update-action")};
_.P.miniModeAllowed=function(){return _.h("disable_channels_mini_mode")?!1:this.isChannelPage};
_.P.getMiniGameCardMinWidth=function(){return 154};
_.P.updateMiniMode=function(A){this.miniMode=this.miniModeAllowed()&&A;this.ytdReduxBehavior.dispatch(_.JY({type:"SET_RICH_GRID_MINI_MODE",payload:A}))};
_.P.isCurrentPage=function(){return location.pathname===this.pagePath};
_.P.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var A=_.X5().resolve(_.JI).getCurrentPage();A&&A.setScrollTop(0)}};
_.P.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.P.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.P.maybeSetBigYoodle=function(){var A,L=(A=this.data)==null?void 0:A.bigYoodle;this.bigYoodleData!==L&&(this.bigYoodleData=L)};
_.P.setMasthead=function(){var A;((A=this.data)==null?0:A.masthead)?this.mastheadData=this.data.masthead:_.h("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.P.getRichGridStyle=function(){var A,L;return(L=(A=this.data)==null?void 0:A.style)!=null?L:"RICH_GRID_STYLE_UNKNOWN"};
_.P.onIsShortsGridChange=function(){var A=this.ytdReduxBehavior,L=A.dispatch,O=this.getRichGridStyle();L.call(A,_.JY({type:"SET_RICH_GRID_STYLE",payload:O}))};
_.v2.Object.defineProperties(pK.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var A;return(((A=this.data)==null?void 0:A.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var A;return(((A=this.data)==null?void 0:A.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var A=_.X5().resolve(_.JI).getCurrentPage(),L,O,X;return(((L=this.data)==null?void 0:L.targetId)==="browse-feedFEsfv_audio_pivot"||_.h("web_enable_channel_pivot_panel")&&((O=this.data)==null?void 0:O.targetId)==="browse-feedFEsfv_channel_pivot"||_.h("web_enable_effect_pivot_panel")&&((X=this.data)==null?void 0:X.targetId)==="browse-feedFEsfv_effect_pivot")&&(A==null?void 0:A.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.h("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 A;return!((A=this.data)==null?0:A.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var A;return((A=_.X5().resolve(_.JI).getCurrentPage())==null?void 0:A.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var A;return((A=_.X5().resolve(_.JI).getCurrentPage())==null?void 0:A.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 A;return this.hideChipsBar||(((A=this.data)==null?void 0:A.targetId)||"")==="browse-feedFEwhat_to_watch"&&_.h("kevlar_hide_chips_on_home")}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var A;return(((A=this.data)==null?void 0:A.targetId)||"")==="watch-next-feed"&&!_.h("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var A,L,O;return((A=this.data)==null?0:A.enableContentSpecificAspectRatio)||((L=this.data)==null?0:(O=L.responsiveContainerConfiguration)==null?0:O.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.PO("web_continuation_handler_margin",0):0}}});
pK.prototype.onIsShortsGridChange=pK.prototype.onIsShortsGridChange;pK.prototype.onReloadContinuationFinish=pK.prototype.onReloadContinuationFinish;pK.prototype.reflowContent=pK.prototype.reflowContent;pK.prototype.handleRerenderDownloadsData=pK.prototype.handleRerenderDownloadsData;pK.prototype.onRichShelfRendererCollapse=pK.prototype.onRichShelfRendererCollapse;pK.prototype.onRequestElementsPerRow=pK.prototype.onRequestElementsPerRow;pK.prototype.contentLengthChanged=pK.prototype.contentLengthChanged;
pK.prototype.dataChanged=pK.prototype.dataChanged;pK.prototype.onSizingChange=pK.prototype.onSizingChange;pK.prototype.onUseCompactListChange=pK.prototype.onUseCompactListChange;_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],pK.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],pK.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.y9),_.Z("design:type",Object)],pK.prototype,"ironResizableBehavior",void 0);
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],pK.prototype,"actionHandlerBehavior",void 0);_.I([_.N(_.U8),_.Z("design:type",Object)],pK.prototype,"ytContinuationHandlerBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],pK.prototype,"componentBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],pK.prototype,"ytdReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],pK.prototype,"data",void 0);
_.I([_.K({reflectToAttribute:!0,selector:_.Fl}),_.Z("design:type",Boolean)],pK.prototype,"miniMode",void 0);_.I([_.K({value:[]}),_.Z("design:type",Array)],pK.prototype,"shownItems",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],pK.prototype,"isReflowing",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],pK.prototype,"isFilteredFeed",void 0);_.I([_.K({selector:_.IT9}),_.Z("design:type",Boolean)],pK.prototype,"guideIsExpanded",void 0);
_.I([_.K({selectorArgs:["entitySelectorType"],selector:function(A,L){if(_.h("kevlar_modern_downloads_page")&&L&&L!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(L){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":L=A.entities;var O=_.lN(L),X=_.cG(L),x=_.OA_(A),J=_.Lkd(A),Y=_.X$e(A),T=_.K0u(L),V=_.pY(O),E=_.CY(L);return _.jzJ(O,X,T,_.C4u(L),x,J,V,E,Y,_.sle(A),_.Im(A));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return A=_.lN(A.entities),_.HNJ(A);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return A=
_.i2p(A.entities),_.zMe(A);default:_.Rv(new _.pe("Error: entitySelectorType defined but not matched in selector.",A,L))}}}),
_.Z("design:type",Object)],pK.prototype,"entityDrivenRichGridData",void 0);_.I([_.K(),_.Z("design:type",Object)],pK.prototype,"resizeOnObserverInit",void 0);_.I([_.K(),_.Z("design:type",Object)],pK.prototype,"bigYoodleData",void 0);_.I([_.K(),_.Z("design:type",Object)],pK.prototype,"mastheadData",void 0);_.I([_.K(),_.Z("design:type",Boolean)],pK.prototype,"isInlinePreviewDisabled",void 0);_.I([_.K(),_.Z("design:type",Object)],pK.prototype,"disableStickyFilterBar",void 0);
_.I([_.K(),_.Z("design:type",Object)],pK.prototype,"transparentBackgroundChipsBar",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],pK.prototype,"hideChipsBar",void 0);_.I([_.K(),_.Z("design:type",Object)],pK.prototype,"isWatchDefaultLayout",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],pK.prototype,"continuationShowButton",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],pK.prototype,"rowReducedHorizontalMargin",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],pK.prototype,"useCompactList",void 0);_.I([_.K({selector:function(A){return _.cG(A.entities).length>0}}),
_.Z("design:type",Object)],pK.prototype,"manualDownloadsPresent",void 0);_.I([_.K({selector:function(A){return _.lN(A.entities).length>0}}),
_.Z("design:type",Object)],pK.prototype,"smartDownloadsPresent",void 0);_.I([_.K({selector:_.Lkd}),_.Z("design:type",Object)],pK.prototype,"shouldRenderDownloadsBanner",void 0);_.I([_.K({selector:_.OA_}),_.Z("design:type",Object)],pK.prototype,"hasOptedIntoSmartDownloads",void 0);_.I([_.hT("useCompactList"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],pK.prototype,"onUseCompactListChange",null);
_.I([_.hT("sizing","typographyBump"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],pK.prototype,"onSizingChange",null);_.I([_.K({selector:_.H2u}),_.Z("design:type",Number)],pK.prototype,"miniplayerPlaybackState",void 0);_.I([_.K({selector:_.Qi}),_.Z("design:type",Boolean)],pK.prototype,"miniplayerIsActive",void 0);
_.I([_.K({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.Z("design:type",Boolean)],pK.prototype,"isInlinePreviewEnabled",void 0);_.I([_.K({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.Z("design:type",String)],pK.prototype,"sizing",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],pK.prototype,"elementsPerRow",void 0);
_.I([_.K(),_.Z("design:type",Object)],pK.prototype,"typographyBump",void 0);_.I([_.K(),_.Z("design:type",Number)],pK.prototype,"itemWidth",void 0);_.I([_.qR("#header"),_.Z("design:type",HTMLElement)],pK.prototype,"headerElement",void 0);_.I([_.qR("#contents"),_.Z("design:type",HTMLElement)],pK.prototype,"contentsElement",void 0);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],pK.prototype,"dataChanged",null);
_.I([_.iy("data.contents.length"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],pK.prototype,"contentLengthChanged",null);_.I([_.by("yt-request-elements-per-row"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],pK.prototype,"onRequestElementsPerRow",null);
_.I([_.by("yt-rich-shelf-renderer-collapse"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],pK.prototype,"onRichShelfRendererCollapse",null);_.I([_.iy("shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],pK.prototype,"handleRerenderDownloadsData",null);
_.I([_.r("data"),_.Z("design:type",String),_.Z("design:paramtypes",[])],pK.prototype,"entitySelectorType",null);_.I([_.K({reflectToAttribute:!0}),_.r("data.targetId"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],pK.prototype,"isSub",null);_.I([_.K({reflectToAttribute:!0}),_.r("data.targetId"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],pK.prototype,"isWatch",null);
_.I([_.K({reflectToAttribute:!0}),_.r("data.targetId"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],pK.prototype,"isShortsPanel",null);_.I([_.K({reflectToAttribute:!0}),_.r("isWatch"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],pK.prototype,"reducedTopMargin",null);_.I([_.K({reflectToAttribute:!0}),_.r("data","isWatch","isWatchDefaultLayout"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],pK.prototype,"noTopMargin",null);
_.I([_.K({reflectToAttribute:!0}),_.r("isInlinePreviewEnabled","shownItems"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],pK.prototype,"topRowEndorsement",null);_.I([_.r("data.header"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],pK.prototype,"hideHeader",null);_.I([_.by("yt-rich-grid-reflow"),_.Z("design:type",Function),_.Z("design:paramtypes",[Boolean]),_.Z("design:returntype")],pK.prototype,"reflowContent",null);
_.I([_.by("yt-reload-continuation-finish"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],pK.prototype,"onReloadContinuationFinish",null);_.I([_.r("data"),_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],pK.prototype,"isSlimGrid",null);_.I([_.r("data"),_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],pK.prototype,"isShortsGrid",null);
_.I([_.r("data","isSlimGrid","isShortsGrid"),_.K(),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],pK.prototype,"noRichItemGutterMargins",null);_.I([_.r("data"),_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],pK.prototype,"isShortsGridSlim",null);_.I([_.r("data"),_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],pK.prototype,"isCompactGrid",null);
_.I([_.r("data"),_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],pK.prototype,"isDefaultGrid",null);_.I([_.r("data.targetId"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],pK.prototype,"hideChipsBarOnHome",null);_.I([_.r("data.targetId"),_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],pK.prototype,"hideChipsBarOnWatch",null);
_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],pK.prototype,"onIsShortsGridChange",null);_.I([_.r("data.enableContentSpecificAspectRatio"),_.K(),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],pK.prototype,"force16By9ThumbnailAspectRatio",null);_.I([_.r("data"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],pK.prototype,"continuationTriggerOffset",null);_.I([_.Q({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],pK);
_.m(pK,"ytd-rich-grid-renderer",function(){if(cOz!==void 0)return cOz;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return cOz=A},{mode:2});var z4z=_.xa(function(A){var L=A.thumbsUp,O=A.thumbsDown,X=A.rightAlignThumbs;A=_.d(_.uQ(!1,void 0,"FjNDrf"));var x=A.next().value,J=A.next().value;A=_.d(_.uQ(!1,void 0,"Tphjfb"));var Y=A.next().value,T=A.next().value;A={};return _.D("div",{class:_.qn("ytwThumbsUpDownThumbs",(A.ytwThumbsUpDownRightAlign=function(){return X==null?void 0:X()},A))},_.D(_.fO,{data:L,
onToggle:function(V){J(V);Y()&&T(!1)},
buttonShapeOverrides:function(){return{toggled:x()}}}),_.D(_.fO,{data:O,
onToggle:function(V){T(V);x()&&J(!1)},
buttonShapeOverrides:function(){return{toggled:Y()}}}))},"lj");
z4z.idomCompat=!0;var M$X=_.xa(function(A){var L=function(){return A.data().pendingStateEntityKey||""},O=_.iS(_.uUQ,L),X=function(){var T;
if(!(T=A.disabled())){var V;T=!((V=O())==null||!V.isPendingResponse)}return T},x=_.d(_.uQ(L6S(""),void 0,"aC8eBe")),J=x.next().value,Y=x.next().value;
_.r9(function(){requestAnimationFrame(function(){var T=A.data().onShowAnimationMs||0;T=T>0?L6S("--chip-animation-duration: "+T+"ms;"):L6S("");Y(T)})});
return _.D("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:J},_.D(_.g9,{each:function(){return A.data().chipData||[]},
keyBy:"REFERENCE"},function(T){return _.D(Byk,{data:T,disabled:X,pendingStateKey:L,onError:A.onError})}))},"mj"),Byk=_.xa(function(A){var L=_.kw("button"),O=_.d(_.uQ(!0,void 0,"NaMiCd")),X=O.next().value,x=O.next().value,J=function(){return A.data().text.content},Y=_.py(function(T){var V,E,n,t,b,S,w,l;
return _.u(function(F){switch(F.nextAddress){case 1:T.stopPropagation();if(A.disabled())return F.return();E=String(Math.floor(((V=_.hI())==null?void 0:V.getCurrentTime())||0)*1E3);n="youchat-"+Date.now();t=function(){_.zi(A.data().onClick||{});var R={continuationCommand:{token:A.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},y={inputComposerFormData:{clientMessageId:n,playerOffsetMs:E}};return new Promise(function(M,H){_.zi(R,{form:{formData:y},commandController:{onSuccess:function(z,
a){M(a)},
onServerError:function(z,a){H(a.error)}}})})};
b=_.Tyz(A.pendingStateKey());b(!0);_.HZM("#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");x(!1);_.e4(F,2);return F.yield(t(),4);case 4:_.zA(F,3);break;case 2:S=_.S4(F),(l=(w=A).onError)==null||l.call(w,S);case 3:b(!1),_.qo(F)}})});
return _.D(_.e,{cond:X,then:function(){return _.D("div",{class:"ytwYouChatChipsDataChipWrapper"},_.D("button",{el:L,class:"ytwYouChatChipsDataChip","data-disabled":A.disabled,"on:click":Y,tabindex:0},J))}})},"nj");var $HJ=_.xa(function(A){var L=A.data;var O=A.initiallyExpanded;var X=function(){var E;return(E=L().conversationResourceData)==null?void 0:E.learningGuideData};
A=_.d(_.Nn(function(){var E;return(E=O==null?void 0:O())!=null?E:!1}));
var x=A.next().value,J=A.next().value,Y=function(){J(!0)},T=_.E4(function(){var E,n;
return(n=(E=X())==null?void 0:E.sections)!=null?n:[]},void 0,"xl8NRc"),V=_.E4(function(){return T().length>4},void 0,"oAM7of");
A=_.E4(function(){var E;return!x()&&V()&&(E=X())!=null&&E.expandButton?T().slice(0,4):T()},void 0,"uzQ9rc");
return _.D("yt-conversation-resource-view-model",{class:_.qn("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.D(_.ID,{data:A},{expandableMetadataViewModel:_.BBJ}),_.D(_.e,{cond:function(){return V()&&!x()},
then:function(){return _.D("div",{id:"showMoreButton"},_.D(_.ID,{data:function(){var E;return(E=X())==null?void 0:E.expandButton}},{buttonViewModel:function(E){return _.D(_.gj,{data:E.data,
onClick:Y})}}))}}))},"oj");var a5B=_.xa(function(A){var L=function(){var a;return(a=A.data().text)==null?void 0:a.content},O=function(){var a,xe;
return(a=A.data().webData)==null?void 0:(xe=a.textResult)==null?void 0:xe.content},X=_.X5().resolve(_.Ly),x=_.S8(),J=function(){return A.data().chatResponseStyle},Y=function(){return!A.data().transparentBackground},T=function(){return A.data().rightAlignThumbs},V=function(){return A.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||A.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"},E=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:V()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:A.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},n=function(){var a;
return A.data().webData||((a=A.data().text)==null?void 0:a.content)||A.data().videoResultsData||A.data().conversationResourceViewModel||A.data().quiz},t=function(){return!!A.data().sectionHeader||n()},b=function(){var a;
return(a=A.data().videoResultsData)==null?void 0:a.videoShelf},S=function(){var a;
return _.q(((a=A.data().videoResultsData)==null?void 0:a.videoShelf)||{},SXz)},w=function(){var a;
return(a=A.data().webData)==null?void 0:a.sourcesShelf},l=function(){var a;
return _.q(((a=A.data().webData)==null?void 0:a.sourcesShelf)||{},SXz)},F=function(){return _.q(A.data().conversationResourceViewModel||{},g0M)},R=function(){return _.q(A.data().quiz||{},t$n)},y=function(){return J()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||J()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:A.data().thumbsDownViewModel&&A.data().thumbsUpViewModel},M=function(){return _.q(A.data().thumbsUpViewModel,_.Fi)},H=function(){return _.q(A.data().thumbsDownViewModel,_.Fi)};
_.r9(function(){requestAnimationFrame(function(){var a;(a=A.shouldAnimateIcon)!=null&&a.call(A)&&V$M(x.lottieEl)})});
var z={};return _.D("you-chat-item-view-model",{class:_.qn("ytwYouChatItemViewModelYouChatItemViewModel",(z.ytwYouChatItemViewModelColumnLayout=function(){return V()},z)),
"data-target-id":function(){return A.data().id||""}},_.D(_.e,{cond:function(){return A.data().removeIcon?!1:t()},
then:function(){var a={};return _.D("div",{"aria-hidden":"true"},_.D(_.ER,{className:_.qn("ytwYouChatItemViewModelIcon",(a.ytwYouChatItemViewModelRtl=X==="rtl",a.ytwYouChatItemViewModelHidden=function(){return!(A.data().hideIcon||J()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||J()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:t())},a)),
animationName:"YOUCHAT_ICON",data:E,animationRef:x}))}}),_.D(_.e,{cond:t,
then:function(){var a={};return _.D("div",{class:_.qn("ytwYouChatItemViewModelHost",(a.ytwYouChatItemViewModelHostNoPadding=function(){return!!A.data().sectionHeader&&!n()},a.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return J()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},a.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return J()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},a.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return J()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
a.ytwYouChatItemViewModelGradientBackground=Y,a)),
role:"alert"},_.D(_.e,{cond:L,then:function(xe){return _.D(_.aY,{text:xe,wrapCodeBlocks:!0})}}),_.D(_.ID,{data:function(){return A.data().sectionHeader}},{sectionHeaderViewModel:function(xe){var ur={};
return _.D(_.b$,{data:xe.data,className:_.qn("ytwYouChatItemViewModelSectionHeader",(ur.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!A.data().sectionHeader&&!n()},ur))})}}),_.D(_.e,{cond:O,
then:function(xe){return _.D(_.aY,{text:xe,wrapCodeBlocks:!0})}}),_.D(_.e,{cond:b,
then:function(){return _.D("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.D(_.BZ,{data:S,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.D(_.e,{cond:w,
then:function(){return _.D("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.D(_.BZ,{data:l,hasPeek:!0,disableArrows:!1}))}}),_.D(_.e,{cond:F,
then:function(){return _.D($HJ,{data:F})}}),_.D(_.e,{cond:R,
then:function(){return _.D(_.iK3,{data:R})}}),_.D(_.e,{cond:y,
then:function(){return _.D(z4z,{thumbsUp:M,thumbsDown:H,rightAlignThumbs:T})}}))}}),_.D(_.e,{cond:function(){return A.data().chipsData},
then:function(a){return _.D(M$X,{data:a,disabled:A.pending,onError:A.onError})}}))},"pj");
a5B.idomCompat={callbacks:{onError:!0,onSend:!0}};var krX=_.xa(function(A){var L=function(){return A.data().choiceSelectedText},O=function(){return A.data().hasGradientBackground},X={};
return _.D("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.D(_.e,{cond:L,then:function(){return _.D("div",{class:"ytYouChatUserTurnChoiceSelected"},_.D(_.Xg,{text:L}))}}),_.D("div",{class:_.qn("ytYouChatUserTurnUserMessage",(X.ytYouChatUserTurnGradientContainer=O,X.ytYouChatUserTurnDefaultContainer=function(){return!O()},X))},function(){return A.data().text}))},"qj");var UHS=_.xa(function(A){var L=_.d((0,_.ON3)(A.data)).next().value;return _.D("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return A.data().targetId||""}},_.D(_.ID,{data:function(){return A.data().header}},{chipBarViewModel:_.$XN}),_.D(_.ID,{data:function(){return L().contents}},{accordionViewModel:_.GrN,
alertBannerViewModel:_.L67,chatLoadingViewModel:_.ZdB,chatUserTurnViewModel:krX,learningJourneyLoaderViewModel:_.pcJ,lockupViewModel:function(O){return _.D(_.tN,{data:O.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:A.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
youChatItemViewModel:function(O){return _.D(a5B,{data:O.data,pending:!1})}}))},"rj");_.Y4(_.xa(function(A){var L=_.d((0,_.ON3)(A.data)).next().value,O=_.av("yt-section-list-renderer"),X=_.d(_.uQ(void 0,void 0,"rQpPgc")),x=X.next().value,J=X.next().value,Y=function(){var T;return _.q((T=A.data().sectionListLayoutConfiguration)==null?void 0:T.layoutConfiguration,h4M)};
_.GD(function(){var T,V=(T=O.value)==null?void 0:T.clientWidth;if(Y()){T=Y();var E=T.responsiveSize;V=V<528?"CONTAINER_SIZE_NARROW":V<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE";b:{var n=_.d(T.responsiveMap||[]);for(var t=n.next();!t.done;t=n.next())if(t=t.value,t.containerSize===V){n=t.containerType;break b}n=void 0}if(n&&E){b:{if(n==="CONTAINER_TYPE_VERTICAL_LIST")if(E==="RESPONSIVE_SIZE_STANDARD"){if(V!=="CONTAINER_SIZE_NARROW"){t="50%";break b}}else{t=V==="CONTAINER_SIZE_NARROW"?"50%":
"33.3%";break b}t=void 0}T={responsiveSize:E,containerSize:V,containerType:n,force16By9ThumbnailAspectRatio:!T.enableContentSpecificAspectRatio,contentPreviewWidth:t,fullbleed:(n==="CONTAINER_TYPE_VERTICAL_LIST"||n==="CONTAINER_TYPE_GRID")&&V==="CONTAINER_SIZE_NARROW"&&!1}}else T=void 0}else T=void 0;J(T)});
return _.D("yt-section-list-renderer",{class:_.qn("ytSectionListRendererHost",A.className),el:O,"data-target-id":function(){return A.data().targetId||""}},_.D(_.ID,{data:function(){return L().contents}},{itemSectionRenderer:function(T){return _.D(UHS,{data:T.data,
containerLayoutConfig:x})}}))},"sj"),"yt-section-list-renderer",{props:{data:_.x5,
className:_.dl}});var v0S;var o0k;var AvM=function(){return _.G.apply(this,arguments)||this};
_.g(AvM,_.G);_.I([_.K(),_.Z("design:type",Object)],AvM.prototype,"data",void 0);_.I([_.yU({is:"yt-alert-renderer",disableElementRegistration:!0})],AvM);
_.m(AvM,"yt-alert-renderer",function(){if(o0k===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;v0S===void 0&&(v0S=document.createElement("template"));var X=v0S;O.call(L,X.content.cloneNode(!0),A.content.firstChild);o0k=A}A=o0k;return A},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.A0M=function(A,L){var O,X;L=L===void 0?{}:L;var x,J,Y,T,V,E,n,t,b,S,w,l;return _.u(function(F){switch(F.nextAddress){case 1:x=L;J=x.shouldWrap===void 0?!0:x.shouldWrap;Y=x.skipTransitionTimeoutMs===void 0?300:x.skipTransitionTimeoutMs;T=x.beforeTransition;V=x.afterTransition;if(!J||!document.startViewTransition||document.visibilityState==="hidden")return F.return(A());O=window.innerWidth;X=window.innerHeight;E=!1;(n=T)==null||n();_.e4(F,2);t=document.startViewTransition(A);b=setTimeout(function(){t.skipTransition();
E=!0},Y);
return F.yield(t.ready,4);case 4:return clearTimeout(b),F.yield(t.finished,5);case 5:clearTimeout(b);(S=V)==null||S();_.zA(F,0);break;case 2:w=_.S4(F),(l=V)==null||l(),w&&!E&&document.visibilityState!=="hidden"&&O===window.innerWidth&&X===window.innerHeight&&_.C7(w),_.qo(F)}})};
_.kE=function(){for(var A=Array(36),L=0,O,X=0;X<36;X++)X==8||X==13||X==18||X==23?A[X]="-":X==14?A[X]="4":(L<=2&&(L=33554432+Math.random()*16777216|0),O=L&15,L>>=4,A[X]=_.vu7[X==19?O&3|8:O]);return A.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 LvS=_.AW(['<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>']),
OrJ=_.fnu(LvS);OrJ.setAttribute("style","display: none;");document.head.appendChild(OrJ.content);_.U5=_.bHs(function(A){var L=_.tg("DIV");A&&(L.className=A);L.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";A=_.tg("DIV");_.fSN(A,"200px","200px");L.appendChild(A);document.body.appendChild(L);A=L.offsetWidth-L.clientWidth;_.hg(L);return A});var XuM;var xDX;var v5=function(){var A=_.G.apply(this,arguments)||this;A.icon=null;return A};
_.g(v5,_.G);v5.prototype.dismiss=function(){_.P4(this.hostElement,"yt-live-chat-error-message-dismiss")};
v5.prototype.computeIcon=function(A){return A&&A.iconType?"yt-icons:"+A.iconType.toLowerCase():"yt-icons:close"};
_.I([_.K(),_.Z("design:type",Object)],v5.prototype,"data",void 0);_.I([_.K({computed:"computeIcon(data.icon)"}),_.Z("design:type",Object)],v5.prototype,"icon",void 0);_.I([_.yU({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],v5);
_.m(v5,"yt-live-chat-error-message-renderer",function(){if(xDX===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;XuM===void 0&&(XuM=document.createElement("template"));var X=XuM;O.call(L,X.content.cloneNode(!0),A.content.firstChild);xDX=A}A=xDX;return A},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var dy0,YuP,upW,TuD,EeE,b9W,hPo,Sua,l2,quo,geP,cl,wJa,pJ2,i9a,NuP,rsB,KMB,GO2,leJ,csw,Cr2,FMB,RPE,QdJ,my3,fe2,IeB,ysa,Z9J,jda,CU,WMf,H9P,zPg,$yJ,aeP,kO0,Uy2,ve0,oe_,Buo,MDo,LlW,O6a,XnP,xN_,s6W,Acf,PHo;dy0=function(A,L){return _.eM(A.entities,"timedMarkersListSyncEntity",L)};
YuP=function(A,L){return _.eM(A.entities,"liveReactionsDataEntity",L)};
upW=function(A,L){A=_.eM(A.entities,"booleanEntity",L);return!(!A||!A.value)};
TuD=function(A,L){var O=_.Fn();O&&A&&_.W4(O,_.lV(A),L)};
_.VD3=function(A){return A.watch.isWatchActive};
_.DyE=function(A){return _.jt(A)||_.Wx(A)||_.nQu(A)};
_.eP0=function(A){return!_.DyE(A)};
_.Gl=function(A){return A.watch.watchScrollTop};
EeE=function(A){return A.watch.isLiveChatCollapsed};
_.neJ=function(){_.h("web_watch_log_theater_mode")&&_.I8_("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.tD3=function(A,L,O){if(!A.includes("START_TIME_PLACEHOLDER")||!A.includes("END_TIME_PLACEHOLDER"))return A;var X=new Date(0),x=new Date(0);X.setUTCMilliseconds(L);x.setUTCMilliseconds(O);return A.replace("START_TIME_PLACEHOLDER",_.Ma(X,7)).replace("END_TIME_PLACEHOLDER",_.Ma(x,7))};
b9W=function(A,L){return _.eM(A.entities,"booleanEntity",L)};
hPo=function(){return function(A){_.At(_.NV("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:A}))}};
Sua=function(A){switch(A){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}};
l2=function(A,L,O){var X=_.HR(O);A&&L&&X&&A.getPlayerPromise().then(function(x){_.ZgP(X)&&_.ch();(new _.F7(x)).executeCommand(X,L);_.h("continue_playback_on_desktop_companion_click")||x.pauseVideo()})};
quo=function(A){var L=_.d0(),O;if(O=_.WY("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var X;O=(X=O())==null?void 0:X.layoutId}else O=null;l2(L,O,A)};
geP=function(A){var L=_.d0(),O;if(O=_.WY("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var X;O=(X=O())==null?void 0:X.layoutId}else O=null;l2(L,O,A)};
cl=function(A,L){var O=A<0?"-":"";A=Math.abs(A);var X=Math.floor(A/3600),x=Math.floor(A)%3600,J=Math.floor(x/60);x=Math.floor(x)%60;var Y="";(L===void 0?0:L)&&(Y="."+Math.round((A-Math.floor(A))*10));return X>0?O+X+":"+(J<10?"0"+J:""+J)+":"+(x<10?"0"+x:""+x)+Y:O+J+":"+(x<10?"0"+x:""+x)+Y};
wJa=function(A){var L=A.match(/[^0-9:\.]/g);if(L&&L.length>0)return null;A=A.split(":");if(A.length===0||A.length>3)return null;L=1;for(var O=0;A.length>0;){var X=A.pop();if(X===void 0)break;var x=Number(X);if(X===""||isNaN(x))return null;O+=x*L;L*=60}return O};
pJ2=function(A,L,O,X){A=Math.max(O,A);L=Math.min(L,X-O);A+L>X?(O=X,A=O-L):O=A+L;return{start:A,end:O}};
i9a=function(A,L,O,X,x,J){A<O?A=O:A+x>X&&(A=X-x);L>X&&(L=X);L=Math.min(A+J,Math.max(A+x,L));return{start:A,end:L}};
NuP=function(A,L,O,X,x,J){L>X?L=X:L-x<O&&(L=O+x);A<O&&(A=O);A=Math.min(L-x,Math.max(L-J,A));return{start:A,end:L}};
rsB=function(A){return _.h("web_transcript_cue_id_killswitch")?String(A):"ytd-transcript-renderer_"+A};
KMB=function(A){return _.h("web_transcript_cue_id_killswitch")?!0:A.startsWith("ytd-transcript-renderer")};
GO2=function(A){var L=_.d0(),O;if(O=_.WY("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var X;O=(X=O())==null?void 0:X.layoutId}else O=null;l2(L,O,A)};
leJ=function(A){A.style.height="auto";A.style.height=Math.min(A.scrollHeight||20,80)+"px"};
csw=function(A,L,O){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:L,hasGradientBackground:O}}],insertByPositionInSection:{sectionTargetId:A,position:"INSERTION_POSITION_LAST"}}}]}}}};
Cr2=function(A){var L=_.d0(),O;O=(O=_.WY("yt.www.ads.eventcache.getLastCompanionData"))?(O=O())&&O.layoutId:null;l2(L,O,A)};
FMB=function(A){var L=_.d0(),O;O=(O=_.WY("yt.www.ads.eventcache.getLastCompanionData"))?(O=O())&&O.layoutId:null;l2(L,O,A)};
RPE=function(A,L){L=L===void 0?!1:L;if(A.simpleText)A=[{text:A.simpleText}];else{var O;A=((O=A.runs)!=null?O:[]).map(function(X){return Object.assign({},X)})}if(L)for(L=_.d(A),O=L.next();!O.done;O=L.next())O.value.bold=!0;
return A};
QdJ=function(A){var L=A.startEndTimeTemplate,O=A.startTimeUtcMillis;A=A.endTimeUtcMillis;if(L&&O&&A)return _.Ue(_.tD3(_.vG(L),Number(O),Number(A)))};
my3=function(A,L){var O,X,x=A==null?void 0:(O=A.viewCount)==null?void 0:(X=O.videoViewCountRenderer)==null?void 0:X.shortViewCount;if(!L&&x)return x;var J,Y;return A==null?void 0:(J=A.viewCount)==null?void 0:(Y=J.videoViewCountRenderer)==null?void 0:Y.viewCount};
fe2=function(A,L){var O=A==null?void 0:A.relativeDateText;return!L&&O?[O,!0]:[A==null?void 0:A.dateText,!1]};
IeB=function(A,L,O,X,x){X=X===void 0?!0:X;x=x===void 0?"":x;var J=my3(A,L),Y=_.d(fe2(A,L)),T=Y.next().value;Y=Y.next().value;L=L?A==null?void 0:A.sponsorsOnlyFirstTimeLongText:A==null?void 0:A.sponsorsOnlyFirstTimeShortText;var V=[];O&&J&&V.push(J);!O&&Y||!T||V.push(T);A=[].concat(_.le(V),[L,A==null?void 0:A.stationName,A==null?void 0:A.rating,A?QdJ(A):void 0,A==null?void 0:A.upNextProgramText,A==null?void 0:A.superTitleLink]).filter(function(E){return!!E});
O={runs:[]};for(J=0;J<A.length;J++)O.runs.push.apply(O.runs,_.le(RPE(A[J],X))),J<A.length-1&&O.runs.push({text:" "+x+" ",bold:X});return O};
ysa=function(A){if(A)return{runs:[{text:A,bold:!0}]}};
Z9J=function(A){var L,O,X,x;if(A=A==null?void 0:(L=A.contents)==null?void 0:(O=L.twoColumnWatchNextResults)==null?void 0:(X=O.results)==null?void 0:(x=X.results)==null?void 0:x.contents){var J,Y;return(Y=(J=A.find(function(T){return!!T.videoPrimaryInfoRenderer}))==null?void 0:J.videoPrimaryInfoRenderer)==null?void 0:Y.updatedMetadataEndpoint}};
jda=function(A,L){var O;return(O=A.sourceConfigs)==null?void 0:O.find(function(X){return X.videoId===L})};
CU=function(A){return A==="End of video"||A==="End of playlist"};
WMf=function(A){var L,O,X,x;return(L=A.getWatchNextResponse())==null?void 0:(O=L.contents)==null?void 0:(X=O.twoColumnWatchNextResults)==null?void 0:(x=X.playlist)==null?void 0:x.playlist};
H9P=function(A){var L,O,X,x,J,Y;return(L=WMf(A))==null?void 0:(O=L.playlistButtons)==null?void 0:(X=O.menuRenderer)==null?void 0:(x=X.topLevelButtons)==null?void 0:(J=x[0])==null?void 0:(Y=J.playlistLoopButtonRenderer)==null?void 0:Y.playlistLoopStateEntityKey};
zPg=function(A){var L=_.X5().resolve(_.$q),O;return(L=(O=_.q(L.getAutoplayEndpoint(),_.$O))==null?void 0:O.playlistId)&&L===A};
$yJ=function(A,L,O,X,x){function J(){_.c1.cancelJob(FX);var Y=Buo(L,O/A.getPlaybackRate()),T=Y.hours,V=Y.minutes;Y=(Y.seconds*1E3||6E4)/A.getPlaybackRate();A.setVideoTimeLeft(MDo(T,V));X&&A.getPlayerState()!==0&&A.setSleepTimerTimeLeft(MDo(T,V,!0));(T>0||V>0)&&!x&&(FX=_.GP(_.c1,J,Y))}
_.c1.cancelJob(FX);FX=_.GP(_.c1,J)};
aeP=function(A,L,O){function X(){_.c1.cancelJob(Rg);var x=Buo(L,O),J=x.hours;x=x.minutes;var Y=6E4/A.getPlaybackRate();if(J>0||x>0)A.setSleepTimerTimeLeft(MDo(J,x,!0)),Rg=_.GP(_.c1,X,Y)}
_.c1.cancelJob(Rg);Rg=_.GP(_.c1,X)};
kO0=function(A,L){var O=A.getVolume()/(L/500),X=function(x){_.c1.cancelJob(QY);var J=Math.floor(x-O);A.setVolume(J,!1);J>0&&(QY=_.GP(_.c1,function(){X(J)},500))};
_.c1.cancelJob(QY);QY=_.GP(_.c1,function(){X(A.getVolume())})};
Uy2=function(A,L){_.c1.cancelJob(QY);L&&A.syncVolume()};
ve0=function(){var A={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.b3("SLEEP_TIMER_DISRUPTED")}}}}};_.X5().resolve(_.x$).resolveCommand(A)};
oe_=function(A){return(A.getDuration()-A.getProgressState().current)*1E3};
Buo=function(A,L){A=A+L-(0,_.O$)();if(A<=0)return{hours:0,minutes:0,seconds:0};var O=new Acf(0,0,0,0,0,0,A);A=O.getHours();L=O.getMinutes();O=O.getSeconds();O!==0&&L++;L!==0&&L%60===0&&(A++,L=0);return{hours:A,minutes:L,seconds:O}};
MDo=function(A,L,O){return A>0&&L>0?O?_.b3("TIME_LEFT_HOURS_MINUTES",{hours:A.toString(),minutes:L.toString()}):_.b3("TIME_HOURS_MINUTES",{hours:A.toString(),minutes:L.toString()}):A>0?O?_.hz("TIME_LEFT_HOURS",A):_.hz("TIME_HOURS",A):O?_.b3("TIME_LEFT_MINUTES",{minutes:L.toString()}):_.b3("TIME_MINUTES",{minutes:L.toString()})};
LlW=function(A,L){if(A.timelyActions)return A.timelyActions.find(function(O){var X;return((X=_.q(O,mt))==null?void 0:X.cueRangeId)===L})};
O6a=function(A){var L=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.b5(A);A.keyMap_.forEach(function(O,X){_.Id(L,X)||this.remove(X)},A)};
XnP=function(A,L){A.reloadContinuationItemsCommandMatcher=L};
_.fU=function(A,L){A.insertBefore(L,A.childNodes[0]||null)};
xN_=function(A){if(A>=48&&A<=57||A>=96&&A<=106||A>=65&&A<=90||_.tW&&A==0)return!0;switch(A){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 _.ns;default:return!1}};
s6W=function(A){if(A.altKey&&!A.ctrlKey||A.metaKey||A.keyCode>=112&&A.keyCode<=123)return!1;if(xN_(A.keyCode))return!0;switch(A.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!_.ns;default:return A.keyCode<166||A.keyCode>183}};
Acf=function(A,L,O,X,x,J,Y){this.date=typeof A==="number"?new Date(A,L||0,O||1,X||0,x||0,J||0,Y||0):new Date(A&&A.getTime?A.getTime():_.u1())};
_.Ty(Acf,_.Fo);_.P=Acf.prototype;_.P.getHours=function(){return this.date.getHours()};
_.P.getMinutes=function(){return this.date.getMinutes()};
_.P.getSeconds=function(){return this.date.getSeconds()};
_.P.getMilliseconds=function(){return this.date.getMilliseconds()};
_.P.getUTCDay=function(){return this.date.getUTCDay()};
_.P.getUTCHours=function(){return this.date.getUTCHours()};
_.P.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.P.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.P.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.P.setHours=function(A){this.date.setHours(A)};
_.P.setMinutes=function(A){this.date.setMinutes(A)};
_.P.setSeconds=function(A){this.date.setSeconds(A)};
_.P.setMilliseconds=function(A){this.date.setMilliseconds(A)};
_.P.setUTCHours=function(A){this.date.setUTCHours(A)};
_.P.setUTCMinutes=function(A){this.date.setUTCMinutes(A)};
_.P.setUTCSeconds=function(A){this.date.setUTCSeconds(A)};
_.P.setUTCMilliseconds=function(A){this.date.setUTCMilliseconds(A)};
_.P.add=function(A){_.Fo.prototype.add.call(this,A);A.hours&&this.setUTCHours(this.date.getUTCHours()+A.hours);A.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+A.minutes);A.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+A.seconds)};
_.P.JSC$12296_toIsoString=function(A){var L=_.Fo.prototype.JSC$12296_toIsoString.call(this,A);return A?L+"T"+_.Tv(this.getHours(),2)+":"+_.Tv(this.getMinutes(),2)+":"+_.Tv(this.getSeconds(),2):L+"T"+_.Tv(this.getHours(),2)+_.Tv(this.getMinutes(),2)+_.Tv(this.getSeconds(),2)};
_.P.equals=function(A){return this.getTime()==A.getTime()};
_.P.toString=function(){return this.JSC$12296_toIsoString()};
_.P.clone=function(){var A=new Acf(this.date);A.firstDayOfWeek_=this.firstDayOfWeek_;A.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return A};
_.Jc2=function(A){return _.JY({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:A}})};
PHo=new _.PF("imageTileRenderer");var dNP=new _.PF("adGridCardCollectionViewModel");var Ygo=new _.PF("carouselTitleViewModel");var uLW=new _.PF("ctaCarouselItemViewModel");var TJ2=new _.PF("textFieldViewModel");_.V3o=new _.PF("engagementPanelHeaderShowNavigationButtonCommand");var DND=new _.PF("hideEngagementPanelScrimAction");var e72=new _.PF("setActivePanelItemAction");var EV2=new _.PF("showEngagementPanelScrimAction");var nVw=new _.PF("updateEngagementPanelAction");var t3P=new _.PF("updateSearchInVideoResultsAction");var b6f=new _.PF("transcriptCueGroupRenderer");var h7W=new _.PF("transcriptCueRenderer");var SgW=new _.PF("transcriptFooterRenderer");var qgB=new _.PF("engagementPanelAdSubtitleRenderer");var gVP=new _.PF("videoDescriptionFantasySectionViewModel");var wnW=new _.PF("deleteClipEngagementPanelCommand");var pna=new _.PF("loopCommand");var i6P=new _.PF("changeCreatorEndscreenVisibilityCommand");var NJE=new _.PF("liveChatCallForQuestionsRenderer");var rcW=new _.PF("updateTimedMarkersSyncObserverCommand");var mt=new _.PF("timelyActionViewModel");var KlE=new _.PF("timelyActionsOverlayViewModel");var GjD=new _.PF("repeatChapterCommand");var lNa=new _.PF("watchPlayerOverflowMenuCommand");var ccf=new _.PF("compositeVideoOverlayRenderer");var CHP=new _.PF("sortFilterSubMenuRenderer");var Fla=new _.PF("switchListItemViewModel");var R7g=new _.PF("inputComposerViewModel");var Q6J=new _.PF("transcriptEditSegmentCommand");var mNw=new _.PF("transcriptUpdateSegmentTextCommand");var fNW=new _.PF("transcriptSearchBoxRenderer");var INJ=new _.PF("transcriptSegmentListRenderer");var ycW=new _.PF("transcriptSegmentRenderer");_.Z6o=new _.PF("updateDateTextAction");var j6a=new _.PF("updateTitleAction");var Wl_=new _.PF("updateViewershipAction");var H6_=new _.PF("carouselLockupRenderer");var Ig=new _.PF("expandableVideoDescriptionBodyRenderer");var z7g=new _.PF("videoDescriptionHeaderRenderer");var BJ_=new _.PF("videoDescriptionYouchatSectionViewModel");_.yY=_.PO("kevlar_watch_page_horizontal_margin",24);_.M3a=_.PO("kevlar_watch_page_columns_top_padding",24);_.$No=426+_.yY*2;_.Zp=_.PO("kevlar_watch_two_column_width_threshold",1E3);_.aNf=_.yY*2;_.kj3=_.PO("kevlar_watch_secondary_width",402);_.UNP=_.PO("kevlar_watch_max_player_width",1280);_.vVW=_.PO("kevlar_watch_flexy_metadata_height",136);_.oVW=_.aNf+310+_.yY;_.Ak3=_.aNf+360+_.yY;var L$W={PAUSE_CHAT:18};var OJW;var XXP;var j2=function(){return _.G.apply(this,arguments)||this};
_.g(j2,_.G);j2.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
j2.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var A=_.q(this.data.button,_.Cu);A&&(A.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.v2.Object.defineProperties(j2,{template:{configurable:!0,enumerable:!0,get:function(){if(XXP===void 0){var A=document.createElement("template");_.p(A,'\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>');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;OJW===void 0&&(OJW=document.createElement("template"));var X=OJW;O.call(L,X.content.cloneNode(!0),A.content.firstChild);XXP=A}A=XXP;return A}}});
_.I([_.N(_.k1),_.Z("design:type",Object)],j2.prototype,"ytLiveChatReduxBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],j2.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K({selectorArgs:["data.enabledEntityKey"],selector:upW,observer:"onEnabledChange"}),_.Z("design:type",Boolean)],j2.prototype,"enabled",void 0);_.I([_.K(),_.Z("design:type",Object)],j2.prototype,"data",void 0);_.I([_.yU({is:"yt-disableable-button-view-model",noInjection:!0})],j2);var xQB;var s7w;var JkP=["transVert01","transVert02","transVert03"],PJ3="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),Wl=function(){var A=_.G.apply(this,arguments)||this;A.emojiManager=_.k5;A.isDarkTheme=document.documentElement.hasAttribute("dark");A.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};A.reactionBuckets=[];A.noEmojiIdentifier="NO_EMOJI";return A};
_.g(Wl,_.G);_.P=Wl.prototype;_.P.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.P.desktopFountainEmojiSizePxChanged=function(){_.eq(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.P.createUserReactionAnimation=function(A){this.createEmojiAnimation(A,!0)};
_.P.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var A;((A=this.data)==null?0:A.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.NV("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.le(this.emojiContainer.children)).forEach(function(L){L.remove()})};
_.P.detached=function(){this.cleanupFountain()};
_.P.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var A;this.reactionBuckets=_.lW.unsafeClone((A=this.emojiFountainData)==null?void 0:A.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.P.processEmojiBucket=function(A){var L=this;if(this.reactionBuckets&&!(A>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var O=this.reactionBuckets[A];this.generateEmojiAnimations(O);if(A<this.reactionBuckets.length-1){var X;if(O==null?0:(X=O.duration)==null?0:X.seconds)this.emojiBucketTimerId=setTimeout(function(){L.processEmojiBucket(A+1)},Number(O.duration.seconds)*1E3)}}};
_.P.generateEmojiAnimations=function(A){var L=this,O=this.getRandomEmojiIdFromBucketWithOverride(A);if(O&&O!==this.noEmojiIdentifier){var X=0;A.targetEps?(X=this.linearInterpolateBounded(1,20,100,12,A.emojiSizeIndex||0),this.createEmojiAnimation(O,!1,A.emojiAnimationMs,X),X=this.getEmojiDelayMsFromTargetEps(A.targetEps)):(this.createEmojiAnimation(O),X=this.getEmojiDelayMsFromDistribution(A.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){L.generateEmojiAnimations(A)},X)}};
_.P.getRandomEmojiIdFromBucketWithOverride=function(A){if(!(A&&A.reactionsData&&A.reactionsData.length&&A.totalReactions))return this.noEmojiIdentifier;for(var L=A.totalReactions,O=1,X=_.d(A.reactionsData),x=X.next();!x.done;x=X.next())x=x.value,(x.reactionWeightOverride||x.reactionWeightOverride===0)&&x.reactionCount&&(L-=x.reactionCount,O-=x.reactionWeightOverride);X=!0;O<0&&(X=!1,L=A.totalReactions,O=1);if(X&&O>0&&L===0)if(O===1){x=0;for(var J=_.d(A.reactionsData),Y=J.next();!Y.done;Y=J.next())Y=
Y.value,Y.reactionCount&&Y.reactionCount>0&&x++;x=1/x;J=_.d(A.reactionsData);for(Y=J.next();!Y.done;Y=J.next())Y.value.reactionWeightOverride=x}else for(x=1/(1-O),J=_.d(A.reactionsData),Y=J.next();!Y.done;Y=J.next())Y=Y.value,Y.reactionWeightOverride&&(Y.reactionWeightOverride*=x);x=Math.random();J=0;Y=_.d(A.reactionsData);for(var T=Y.next();!T.done;T=Y.next())if(T=T.value,T.reactionCount&&(J=(T.reactionWeightOverride||T.reactionWeightOverride===0)&&X?J+T.reactionWeightOverride:J+O*T.reactionCount/
L,J>x&&(T.reactionCount--,A.totalReactions--,T=this.reactionItemToEmojiString(T),T!==this.noEmojiIdentifier)))return T;return this.noEmojiIdentifier};
_.P.reactionItemToEmojiString=function(A){if(A.unicodeEmojiId)return A.unicodeEmojiId;if(A.emoteId)return A.emoteId;if(A.videoReactionType)switch(A.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.P.createEmojiAnimation=function(A,L,O,X){L=L===void 0?!1:L;this.lastEmojiRequestedForTesting=A;var x=A.startsWith("yt-icons:"),J=_.$5(this.emojiManager,A);if(J||x){var Y=document.createElement("emoji");Y.classList.add("yt-emoji-fountain-view-model");Y.classList.add(JkP[Math.floor(Math.random()*JkP.length)]);var T=document.createElement("div");T.classList.add("yt-emoji-fountain-view-model");T.classList.add("horizontal-container");T.classList.add(PJ3[Math.floor(Math.random()*PJ3.length)]);L?(O=document.createElement("div"),
O.classList.add("user-reaction-bubble"),O.classList.add("yt-emoji-fountain-view-model"),T.appendChild(O)):(O&&(Y.style.animationDuration=O+"ms",T.style.animationDuration=O+"ms"),X&&(Y.style.width=X+"px",Y.style.height=X+"px"));x?(x=document.createElement("yt-icon"),x.polymerController.icon=A,X&&(x.style.width=X+"px",x.style.height=X+"px"),A=x):A=this.emojiManager.createEmoji(J,!1);A.classList.add("yt-emoji-fountain-view-model");T.appendChild(A);Y.appendChild(T);this.emojiContainer.appendChild(Y);
Y.addEventListener("animationend",function(){Y.remove()});
var V,E;if((V=this.data)==null?0:(E=V.loggingDirectives)==null?0:E.trackingParams)L=L?_.tI(183501):_.tI(183500),TuD(this.data.loggingDirectives.trackingParams,L),_.HG9(L);setTimeout(function(){Y&&Y.remove()},2E3)}};
_.P.getEmojiDelayMsFromDistribution=function(A){return Math.random()*(A||1)*1E3};
_.P.getEmojiDelayMsFromTargetEps=function(A){return Math.random()*2*(1/A)*1E3};
_.P.linearInterpolateBounded=function(A,L,O,X,x){x=Math.min(Math.max(x,A),O);return(L*(O-x)+X*(x-A))/(O-A)};
Wl.prototype.onEmojiFountainDataEntityUpdate=Wl.prototype.onEmojiFountainDataEntityUpdate;Wl.prototype.desktopFountainEmojiSizePxChanged=Wl.prototype.desktopFountainEmojiSizePxChanged;Wl.prototype.isActiveChanged=Wl.prototype.isActiveChanged;_.I([_.K(),_.Z("design:type",_.Mr)],Wl.prototype,"emojiManager",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Wl.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.k1),_.Z("design:type",Object)],Wl.prototype,"ytLiveChatReduxBehavior",void 0);
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],Wl.prototype,"ytActionHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Wl.prototype,"data",void 0);_.I([_.K({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(A,L){return _.eM(A.entities,"emojiFountainDataEntity",L)}}),
_.Z("design:type",Object)],Wl.prototype,"emojiFountainData",void 0);_.I([_.K(),_.Z("design:type",Boolean)],Wl.prototype,"isActive",void 0);_.I([_.hT("isActive"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Wl.prototype,"isActiveChanged",null);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Wl.prototype,"isDarkTheme",void 0);_.I([_.K(),_.Z("design:type",String)],Wl.prototype,"lastEmojiRequestedForTesting",void 0);
_.I([_.K({value:function(){return _.PO("desktop_fountain_emoji_size_px",20)}}),
_.Z("design:type",Number)],Wl.prototype,"desktopFountainEmojiSizePx",void 0);_.I([_.hT("desktopFountainEmojiSizePx"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Wl.prototype,"desktopFountainEmojiSizePxChanged",null);_.I([_.qR("#emoji-container"),_.Z("design:type",HTMLElement)],Wl.prototype,"emojiContainer",void 0);
_.I([_.hT("emojiFountainData"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Wl.prototype,"onEmojiFountainDataEntityUpdate",null);_.I([_.yU({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],Wl);
_.m(Wl,"yt-emoji-fountain-view-model",function(){if(s7w===void 0){var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;xQB===void 0&&(xQB=document.createElement("template"));var X=xQB;O.call(L,X.content.cloneNode(!0),A.content.firstChild);s7w=A}A=s7w;return A},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var dQf;var Yz0;var Hl=function(){return _.G.apply(this,arguments)||this};
_.g(Hl,_.G);Hl.prototype.onChoiceChanged=function(){this.data&&_.eq(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
Hl.prototype.onChoiceChanged=Hl.prototype.onChoiceChanged;_.I([_.K(),_.Z("design:type",Object)],Hl.prototype,"data",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Hl.prototype,"onChoiceChanged",null);_.I([_.Q({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],Hl);
_.m(Hl,"yt-live-chat-banner-poll-choice",function(){if(Yz0===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;dQf===void 0&&(dQf=document.createElement("template"));var X=dQf;O.call(L,X.content.cloneNode(!0),A.content.firstChild);Yz0=A}A=Yz0;return A},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var uMf;var TBa;var zl=function(){var A=_.G.apply(this,arguments)||this;A.modern=_.h("web_button_rework_with_live");A.small=!1;return A};
_.g(zl,_.G);zl.prototype.computeIsSmall=function(){var A;return((A=this.buttonOverrides)==null?void 0:A.size)==="S"};
zl.prototype.computeId=function(){return this.data&&this.data.targetId};
_.I([_.N(_.Uc.YtLiveChatTooltipTargetingBehavior),_.Z("design:type",Object)],zl.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.I([_.K({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.Z("design:type",String)],zl.prototype,"id",void 0);_.I([_.K(),_.Z("design:type",Object)],zl.prototype,"buttonOverrides",void 0);_.I([_.K(),_.Z("design:type",Object)],zl.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],zl.prototype,"modern",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.Z("design:type",Object)],zl.prototype,"small",void 0);_.I([_.Q({disableElementRegistration:!0,is:"yt-live-chat-button"})],zl);
_.m(zl,"yt-live-chat-button",function(){if(TBa===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;uMf===void 0&&(uMf=document.createElement("template"));var X=uMf;O.call(L,X.content.cloneNode(!0),A.content.firstChild);TBa=A}A=TBa;return A},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var VZE;var DQ3;var Bl=function(){var A=_.G.apply(this,arguments)||this;A.inCollapsedBanner=!1;A.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};A.questionButtonOverrides={style:"mono",type:"filled"};return A};
_.g(Bl,_.G);_.P=Bl.prototype;_.P.configureRendererStamper=function(){return{"data.overflowMenuButton":{id:"menu",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"menu-button"},properties:{overrides:"[[buttonOverrides]]"}}}},"data.askQuestionButton":{id:"ask-question",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"ask-question-button"},properties:{overrides:"[[questionButtonOverrides]]"}}}}}};
_.P.onContextMenuButtonClick=function(A){this.ytLiveChatItemBehavior.showContextMenu(A)};
_.P.onYtRendererstamperFinished=function(){this.menuButton=_.YJ(this.hostElement).querySelector("#menu-button")};
_.P.dataChanged=function(){var A,L;if((L=_.q((A=this.data)==null?void 0:A.overflowMenuButton,_.$t))==null?0:L.command)this.data.contextMenuEndpoint=_.q(this.data.overflowMenuButton,_.$t).command};
_.P.onButtonClick=function(){var A,L=_.q((A=this.data)==null?void 0:A.askQuestionButton,_.$t);if(L){if(L.trackingParams&&(A=_.lV(L.trackingParams))){var O=_.Fn();O&&_.$K(O,A)}_.P4(this.hostElement,"innertube-command",L.command)}};
Bl.prototype.onYtRendererstamperFinished=Bl.prototype.onYtRendererstamperFinished;_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Bl.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.k1),_.Z("design:type",Object)],Bl.prototype,"ytLiveChatReduxBehavior",void 0);_.I([_.N(_.UR.YtLiveChatItemBehavior),_.Z("design:type",_.vP)],Bl.prototype,"ytLiveChatItemBehavior",void 0);_.I([_.K({observer:"dataChanged"}),_.Z("design:type",Object)],Bl.prototype,"data",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Bl.prototype,"inCollapsedBanner",void 0);_.I([_.K(),_.Z("design:type",Object)],Bl.prototype,"buttonOverrides",void 0);_.I([_.K(),_.Z("design:type",Object)],Bl.prototype,"questionButtonOverrides",void 0);_.I([_.by("yt-rendererstamper-finished"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Bl.prototype,"onYtRendererstamperFinished",null);
_.I([_.Q({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],Bl);
_.m(Bl,"yt-live-chat-call-for-questions-renderer",function(){if(DQ3===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;VZE===void 0&&(VZE=document.createElement("template"));var X=VZE;O.call(L,X.content.cloneNode(!0),A.content.firstChild);DQ3=A}A=DQ3;return A},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var eSo={};eSo.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 A=this;window.requestAnimationFrame(function(){A.restoreFocusNode_||(A.restoreFocusNode_=document.activeElement);var L=_.YrJ(A.hostElement);L.length&&L[L.length-1].focus()})},
isAttachedChanged_:function(A,L){A?this.focusChild_():L&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(A){this.hidden||_.oa(A).indexOf(this.hostElement)!==-1||(A.stopPropagation(),this.focusChild_())}};var EXP;var nXP;var Ms=function(){return _.G.apply(this,arguments)||this};
_.g(Ms,_.G);Ms.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Ms.prototype.onClick=function(A){A.target!==this.confirmButton&&A.target!==this.cancelButton&&(this.hidden=!0)};
_.I([_.qR("#confirm_button"),_.Z("design:type",Object)],Ms.prototype,"confirmButton",void 0);_.I([_.qR("#cancel_button"),_.Z("design:type",Object)],Ms.prototype,"cancelButton",void 0);_.I([_.K(),_.Z("design:type",tZ3)],Ms.prototype,"data",void 0);_.I([_.K({value:!0,reflectToAttribute:!0}),_.Z("design:type",Boolean)],Ms.prototype,"hidden",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Ms.prototype,"ytRendererstamperBehavior",void 0);
_.I([_.N(eSo.YtLiveChatDialogBehavior),_.Z("design:type",Object)],Ms.prototype,"ytLiveChatDialogBehavior",void 0);_.I([_.yU({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],Ms);
var tZ3=_.m(Ms,"yt-live-chat-dialog-renderer",function(){if(nXP===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;EXP===void 0&&(EXP=document.createElement("template"));var X=EXP;O.call(L,X.content.cloneNode(!0),A.content.firstChild);nXP=A}A=nXP;return A},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var bJo;var hSD,Sz3=function(){if(hSD!==void 0)return hSD;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;bJo===void 0&&(bJo=document.createElement("template"));var X=bJo;O.call(L,X.content.cloneNode(!0),A.content.firstChild);return hSD=A};var qzP;var gXg;var $Y=function(){var A=_.G.apply(this,arguments)||this;A.tooltip=null;A.data=null;A.id="";A.active=!1;A.icon="";A.disabled=!1;A.showTooltip=!1;A.useToggledActiveState=!0;A.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return A};
_.g($Y,_.G);_.P=$Y.prototype;
_.P.dataChanged=function(){var A;((A=this.data)==null?0:A.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,_.DB)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var L;if((L=this.data)==null?0:L.disabled)this.disabled=!0};
_.P.computeId=function(A){return A};
_.P.computeIcon=function(A,L){if(!A)return"";if(this.useToggledActiveState)return"yt-icons:"+A.toLowerCase();var O,X;return L&&((O=this.data)==null?0:(X=O.toggledIcon)==null?0:X.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+A.toLowerCase()};
_.P.logPDGEntryPoint=function(){_.OEu(_.n3("FLOW_EVENT_NAMESPACE_PDG_BUY_FLOW",1,{pdgBuyFlowContext:{entryPointClickedContext:{sharedPdgBuyFlowEntryPoint:"SHARED_PDG_BUY_FLOW_ENTRY_POINT_LIVE_CHAT_MONEY_BUTTON"}}}),"FLOW_TYPE_PDG_BUY_FLOW")};
_.P.immediatelyShowTooltip=function(){var A=_.YJ(this.hostElement).querySelector("#tooltip");A.animationDelay=0;A.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};A.show()};
_.P.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.P.onClick=function(A){var L;((L=this.data)==null?0:L.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(),A.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.P4(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.P.computeShowTooltip=function(A,L){return!!(A&&A.tooltip&&L)};
_.P.maybeUpdateTooltipText=function(){var A=this,L;if((L=this.data)==null?0:L.tooltip){var O=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.DB)(A.tooltip).textContent=O},250)}};
_.P.handleLiveChatActions=function(A){var L=this;A.length&&(this.id!=="creator"&&this.id!=="product-picker"||A.forEach(function(O){(O=L.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",O))&&O.durationSec===O.fullDurationSec&&L.startBubble(L.colorFromDecimal(O.startBackgroundColor))}))};
_.P.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.P.startBubble=function(A){_.eq(this.hostElement,{"--yt-live-chat-monetization-button-glow":A});this.hostElement.setAttribute("bubble","")};
_.P.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.P.colorFromDecimal=function(A){typeof A==="string"&&(A=Number(A));return"rgba("+[A>>16&255,A>>8&255,A&255,(A>>24&255)/255].join()+")"};
$Y.prototype.onAnimationEnd=$Y.prototype.onAnimationEnd;$Y.prototype.disabledChanged=$Y.prototype.disabledChanged;$Y.prototype.dataChanged=$Y.prototype.dataChanged;_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],$Y.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],$Y.prototype,"ytRendererBehavior",void 0);
_.I([_.N(_.Uc.YtLiveChatTooltipTargetingBehavior),_.Z("design:type",Object)],$Y.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],$Y.prototype,"data",void 0);_.I([_.K({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.Z("design:type",Object)],$Y.prototype,"id",void 0);_.I([_.K({notify:!0,reflectToAttribute:!0}),_.Z("design:type",Object)],$Y.prototype,"active",void 0);
_.I([_.K({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.Z("design:type",Object)],$Y.prototype,"icon",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],$Y.prototype,"disabled",void 0);_.I([_.K({computed:"computeShowTooltip(data, disabled)"}),_.Z("design:type",Object)],$Y.prototype,"showTooltip",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],$Y.prototype,"useToggledActiveState",void 0);
_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$Y.prototype,"dataChanged",null);_.I([_.hT("disabled"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$Y.prototype,"disabledChanged",null);_.I([_.by("animationend"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],$Y.prototype,"onAnimationEnd",null);
_.I([_.yU({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],$Y);
_.m($Y,"yt-live-chat-icon-toggle-button-renderer",function(){if(gXg===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;qzP===void 0&&(qzP=document.createElement("template"));var X=qzP;O.call(L,X.content.cloneNode(!0),A.content.firstChild);gXg=A}A=gXg;return A},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var wX3;var pXw;var ag=function(){return _.G.apply(this,arguments)||this};
_.g(ag,_.G);ag.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.I([_.K(),_.Z("design:type",Object)],ag.prototype,"data",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],ag.prototype,"ytRendererstamperBehavior",void 0);_.I([_.Q({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],ag);
_.m(ag,"yt-live-chat-message-input-prompt-header-renderer",function(){if(pXw===void 0){var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;wX3===void 0&&(wX3=document.createElement("template"));var X=wX3;O.call(L,X.content.cloneNode(!0),A.content.firstChild);pXw=A}A=pXw;return A},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var iJP;var NBP;var rko;var K$o;var GnB;var lSE;var cko=function(){return _.G.apply(this,arguments)||this};
_.g(cko,_.G);_.I([_.K(),_.Z("design:type",Object)],cko.prototype,"data",void 0);_.I([_.yU({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],cko);
_.m(cko,"yt-live-chat-message-subtext-renderer",function(){if(lSE===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;GnB===void 0&&(GnB=document.createElement("template"));var X=GnB;O.call(L,X.content.cloneNode(!0),A.content.firstChild);lSE=A}A=lSE;return A},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var kY=function(){var A=_.G.apply(this,arguments)||this;A.subtextOnBottom=!1;A.buttonOverrides={style:"mono",type:"tonal"};return A};
_.g(kY,_.G);kY.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"}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],kY.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],kY.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],kY.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],kY.prototype,"subtextOnBottom",void 0);_.I([_.K(),_.Z("design:type",Object)],kY.prototype,"buttonOverrides",void 0);
_.I([_.yU({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],kY);
_.m(kY,"yt-live-chat-message-renderer",function(){if(K$o===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;rko===void 0&&(rko=document.createElement("template"));var X=rko;O.call(L,X.content.cloneNode(!0),A.content.firstChild);K$o=A}A=K$o;return A},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var CJE;var F$a;var Uq=function(){var A=_.G.apply(this,arguments)||this;A.isRemovable=!1;A.hasPrefilledText=!1;A.isInputDirty=!1;A.overCharacterLimit=!1;A.underCharacterLimit=!1;A.showErrorMessage=!1;return A};
_.g(Uq,_.G);_.P=Uq.prototype;_.P.computeId=function(){return this.data.id};
_.P.computeInputData=function(){return this.data.inputData};
_.P.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.P.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.P.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.P.getLiveChatRichMessageInput=function(){return _.YJ(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.P.clearInput=function(){_.YJ(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.P.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.P.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.P.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.P.handleTextInputCharCountChanged=function(A){A=A.detail&&A.detail.characterCount;A!==void 0&&(this.characterCount=A,A!==0&&(this.isInputDirty=!0))};
_.P.onInputFocusOut=function(){this.isInputDirty=!0};
_.P.onClickCloseButton=function(){_.P4(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
Uq.prototype.handleTextInputCharCountChanged=Uq.prototype.handleTextInputCharCountChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Uq.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Uq.prototype,"data",void 0);_.I([_.K({computed:"computeId(data.id)"}),_.Z("design:type",String)],Uq.prototype,"id",void 0);_.I([_.K({computed:"computeInputData(data.inputData)"}),_.Z("design:type",Object)],Uq.prototype,"inputData",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.Z("design:type",Object)],Uq.prototype,"isRemovable",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.Z("design:type",Object)],Uq.prototype,"hasPrefilledText",void 0);_.I([_.K({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.Z("design:type",Number)],Uq.prototype,"charactersRemaining",void 0);
_.I([_.K(),_.Z("design:type",Number)],Uq.prototype,"characterCount",void 0);_.I([_.K(),_.Z("design:type",Object)],Uq.prototype,"isInputDirty",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.Z("design:type",Object)],Uq.prototype,"overCharacterLimit",void 0);_.I([_.K({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.Z("design:type",Object)],Uq.prototype,"underCharacterLimit",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.Z("design:type",Object)],Uq.prototype,"showErrorMessage",void 0);_.I([_.by("yt-live-chat-text-input-field-renderer-character-count-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Uq.prototype,"handleTextInputCharCountChanged",null);
_.I([_.yU({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],Uq);
_.m(Uq,"yt-live-chat-poll-editor-input",function(){if(F$a===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;CJE===void 0&&(CJE=document.createElement("template"));var X=CJE;O.call(L,X.content.cloneNode(!0),A.content.firstChild);F$a=A}A=F$a;return A},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var RSP;var Q7W;var mQJ={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},vl=function(){var A=_.G.apply(this,arguments)||this;A.modern=_.h("web_button_rework_with_live");A.closeButtonOverrides={iconPosition:"icon-only"};A.startButtonOverrides={style:"mono",type:"filled"};A.addOptionButtonOverrides={style:"mono",type:"text"};return A};
_.g(vl,_.G);_.P=vl.prototype;
_.P.configureRendererStamper=function(){return{"data.pollEditorInfo.addOptionButton":{id:"add-option-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[addOptionButtonOverrides]]"}}}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[closeButtonOverrides]]"}}}},"data.startButton":{id:"start-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[startButtonOverrides]]"}}}},pollQuestionData:{id:"poll-question",
mapping:{liveChatTextInputFieldRenderer:{component:"yt-live-chat-text-input-field-renderer",attributes:{id:"poll-question-input","is-valid-with-no-input-text":!0}}}},pollOptionsData:{id:"poll-options",mapping:{liveChatPollOptionInput:{component:"yt-live-chat-poll-editor-input"}}}}};
_.P.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var A;_.q((A=this.data)==null?void 0:A.startButton,_.$t)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.P.computeId=function(){return this.data&&this.data.id||""};
_.P.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.P.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.P.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.P.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.P.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var A=0;A<this.pollEditorInfoWithDefaults.minPollOptions;A++)this.addPollOptionData()};
_.P.getIsValidPoll=function(){var A=this;if(!this.pollEditorInfoWithDefaults)return!1;var L=this.pollEditorInfoWithDefaults,O=L.minPollOptionChars,X=L.maxPollOptionChars,x=L.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>L.maxPollQuestionChars)return!1;L=_.YJ(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(L).every(function(J,Y){J=J.characterCount;!J&&x[Y]&&(J=A.ytRendererBehavior.getSimpleString(x[Y]).length);return J!==void 0&&J>=O&&J<=X})};
_.P.isValidPollChanged=function(){var A;_.q((A=this.data)==null?void 0:A.startButton,_.$t)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.P.addPollOptionData=function(){var A=this.pollEditorInfoWithDefaults,L=A.maxPollOptionChars,O=A.optionPlaceholderText,X=A.customOptionPlaceholderText,x=A.pollOptionData;this.currentNumPollOptions>=A.maxPollOptions||(A={liveChatPollOptionInput:{inputData:{placeholder:X[this.currentNumPollOptions]||O,maxCharacterLimit:L},maxCharacterLimit:L,minCharacterLimit:A.minPollOptionChars,hasPrefilledText:!!X[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=A.minPollOptions}},x.charCountErrorText&&
(A.liveChatPollOptionInput.charCountErrorText=x.charCountErrorText),x.charsRemainingAltLabel&&(A.liveChatPollOptionInput.charsRemainingAltLabel=x.charsRemainingAltLabel),x.removeOptionAltText&&(A.liveChatPollOptionInput.removeOptionAltText=x.removeOptionAltText),this.push("pollOptionsData",A),x=Array.from(_.YJ(_.YJ(this.hostElement).querySelector("#poll-options")).children),x.forEach(function(J,Y){J.polymerController.set("data.id",Y)}),_.YJ(x[x.length-1]).querySelector("#input").focus())};
_.P.getPollOptionInputValues=function(){var A=this,L=[],O=_.YJ(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),X=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(O).forEach(function(x,J){var Y=null;x=x.getLiveChatRichMessageInput();var T;(x==null?0:(T=x.textSegments)==null?0:T.length)?Y=_.$4(x):X[J]&&(Y=A.formattedStringToLiveChatRichMessageInput(X[J]));L.push(Y)});
return L};
_.P.requestCreateAndStartPoll=function(A){var L=this.getPollOptionInputValues();if(!L.some(function(X){return!X})){L={optionText:L};
var O=_.YJ(_.YJ(this.hostElement).querySelector("#poll-question")).firstChild;O&&O.liveChatRichMessageInput&&(L.questionText=_.$4(O.liveChatRichMessageInput));_.TZ(this.hostElement,[A,L])}};
_.P.selectedChanged=function(){if(this.selected){var A=_.YJ(_.YJ(this.hostElement).querySelector("#start-button")).firstElementChild;if(A){var L;(L=_.YJ(A).querySelector("#button")||_.uy(A).querySelector("button"))==null||L.focus()}}};
_.P.handleTextInputChanged=function(A){var L;((L=A.target)==null?void 0:L.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=A.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.P.handleStartButtonAction=function(A){A.detail.actionName==="yt-service-request"&&(A.stopPropagation(),(A=A.detail.args[1])&&this.requestCreateAndStartPoll(A))};
_.P.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.P.handleServiceRequestCompleted=function(A){this.createPollRequestInFlight=!1;(A=A.detail&&A.detail.data)&&A.success&&(_.P4(this.hostElement,"picker-cancelled"),_.dQ(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.P.onCloseClick=function(){_.P4(this.hostElement,"picker-cancelled");_.dQ(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.P.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.P.handlePollEditorInputClosed=function(A){var L=this.pollOptionsData.findIndex(function(O){return O.liveChatPollOptionInput.id===A.detail.id});
this.splice("pollOptionsData",L,1);this.isValidPoll=this.getIsValidPoll()};
_.P.onPickerCancelled=function(){this.reset()};
_.P.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var A=_.YJ(_.YJ(this.hostElement).querySelector("#poll-question")).firstChild;A&&A.setLiveChatRichMessageInput(null);if(A=_.YJ(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){A=_.d(Array.from(A));for(var L=A.next();!L.done;L=A.next())L.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.P.formattedStringToLiveChatRichMessageInput=function(A){return A.simpleText?{text_segments:[A.simpleText]}:{text_segments:A.runs}};
_.v2.Object.defineProperties(vl.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(mQJ,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
vl.prototype.onPickerCancelled=vl.prototype.onPickerCancelled;vl.prototype.handlePollEditorInputClosed=vl.prototype.handlePollEditorInputClosed;vl.prototype.handleServiceRequestCompleted=vl.prototype.handleServiceRequestCompleted;vl.prototype.handleServiceRequestSent=vl.prototype.handleServiceRequestSent;vl.prototype.handleTextInputChanged=vl.prototype.handleTextInputChanged;vl.prototype.selectedChanged=vl.prototype.selectedChanged;vl.prototype.isValidPollChanged=vl.prototype.isValidPollChanged;
vl.prototype.shouldInitializePollChanged=vl.prototype.shouldInitializePollChanged;vl.prototype.dataChanged=vl.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],vl.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],vl.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],vl.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],vl.prototype,"modern",void 0);
_.I([_.K(),_.Z("design:type",Object)],vl.prototype,"closeButtonOverrides",void 0);_.I([_.K(),_.Z("design:type",Object)],vl.prototype,"startButtonOverrides",void 0);_.I([_.K(),_.Z("design:type",Object)],vl.prototype,"addOptionButtonOverrides",void 0);_.I([_.K({computed:"computeId(data.id)",reflectToAttribute:!0}),_.Z("design:type",String)],vl.prototype,"id",void 0);_.I([_.K({value:function(){return[]}}),
_.Z("design:type",Array)],vl.prototype,"pollOptionsData",void 0);_.I([_.r("pollEditorInfoWithDefaults"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],vl.prototype,"pollQuestionData",null);_.I([_.K({value:0}),_.Z("design:type",Number)],vl.prototype,"pollQuestionCharacterCount",void 0);_.I([_.r("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],vl.prototype,"pollQuestionCharactersRemaining",null);
_.I([_.K({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.Z("design:type",Boolean)],vl.prototype,"overQuestionCharacterLimit",void 0);_.I([_.r("data.pollEditorInfo"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],vl.prototype,"pollEditorInfoWithDefaults",null);_.I([_.K({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.Z("design:type",Number)],vl.prototype,"currentNumPollOptions",void 0);
_.I([_.K({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],vl.prototype,"hasMaxNumPollOptions",void 0);_.I([_.r("pollEditorInfoWithDefaults","pollOptionsData"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],vl.prototype,"shouldInitializePoll",null);_.I([_.K(),_.Z("design:type",Object)],vl.prototype,"isValidPoll",void 0);
_.I([_.K({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],vl.prototype,"createPollRequestInFlight",void 0);_.I([_.K(),_.Z("design:type",Object)],vl.prototype,"selected",void 0);_.I([_.K({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.Z("design:type",Boolean)],vl.prototype,"showQuestionErrorMessage",void 0);
_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vl.prototype,"dataChanged",null);_.I([_.hT("shouldInitializePoll"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vl.prototype,"shouldInitializePollChanged",null);_.I([_.hT("isValidPoll"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vl.prototype,"isValidPollChanged",null);
_.I([_.hT("selected"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vl.prototype,"selectedChanged",null);_.I([_.by("yt-live-chat-text-input-field-renderer-character-count-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],vl.prototype,"handleTextInputChanged",null);
_.I([_.by("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vl.prototype,"handleServiceRequestSent",null);_.I([_.by("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],vl.prototype,"handleServiceRequestCompleted",null);
_.I([_.by("yt-live-chat-poll-editor-input-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],vl.prototype,"handlePollEditorInputClosed",null);_.I([_.by("picker-cancelled"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vl.prototype,"onPickerCancelled",null);_.I([_.yU({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],vl);
_.m(vl,"yt-live-chat-poll-editor-panel-renderer",function(){if(Q7W===void 0){var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;RSP===void 0&&(RSP=document.createElement("template"));var X=RSP;O.call(L,X.content.cloneNode(!0),A.content.firstChild);Q7W=A}A=Q7W;return A},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var fSD;var ISW;var og=function(){return _.G.apply(this,arguments)||this};
_.g(og,_.G);og.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
og.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.v2.Object.defineProperties(og.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var A,L;return(A=this.data)==null?void 0:(L=A.title)==null?void 0:L.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var A;return _.HR((A=this.data)==null?void 0:A.onTapCommand)}}});
_.I([_.N(_.Nr.YtEndpointBehavior),_.Z("design:type",Object)],og.prototype,"ytEndpointBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],og.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],og.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],og.prototype,"itemId",null);
_.I([_.K({reflectToAttribute:!0}),_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],og.prototype,"hasPromotion",null);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],og.prototype,"innertubeCommand",null);_.I([_.yU({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],og);
_.m(og,"yt-live-chat-product-picker-panel-item-view-model",function(){if(ISW===void 0){var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;fSD===void 0&&(fSD=document.createElement("template"));var X=fSD;O.call(L,X.content.cloneNode(!0),A.content.firstChild);ISW=A}A=ISW;return A},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var ykw;var ZJ0;var Aq=function(){var A=_.G.apply(this,arguments)||this;A.id="product-picker";A.selected=!1;A.closeButtonId="close-button";A.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return A};
_.g(Aq,_.G);_.P=Aq.prototype;_.P.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.P.observeSelected=function(){this.selected&&this.hostElement.focus();var A=_.YJ(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");A.length&&A[0].focus()};
_.P.onCloseBuyFlow=function(){_.P4(this.hostElement,"picker-cancelled")};
_.P.onCloseClick=function(){_.P4(this.hostElement,"picker-cancelled");var A;((A=this.data)==null?0:A.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.q(this.data.closeButton,_.Cu))};
_.P.onCloseEngageWithAudienceEditorPanels=function(){_.P4(this.hostElement,"picker-cancelled")};
Aq.prototype.observeSelected=Aq.prototype.observeSelected;_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],Aq.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Aq.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Aq.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Aq.prototype,"data",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Aq.prototype,"id",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Aq.prototype,"selected",void 0);_.I([_.K(),_.Z("design:type",Object)],Aq.prototype,"closeButtonId",void 0);_.I([_.hT("selected"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Aq.prototype,"observeSelected",null);
_.I([_.yU({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],Aq);
_.m(Aq,"yt-live-chat-product-picker-panel-view-model",function(){if(ZJ0===void 0){var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;ykw===void 0&&(ykw=document.createElement("template"));var X=ykw;O.call(L,X.content.cloneNode(!0),A.content.firstChild);ZJ0=A}A=ZJ0;return A},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var j7o;var W$o;var LQ=function(){var A=_.G.apply(this,arguments)||this;A.iconId="";A.icon="";A.disabled=!1;A.systemIcons=_.h("kevlar_system_icons");return A};
_.g(LQ,_.G);_.P=LQ.prototype;_.P.computeIconId=function(A){return A&&A.icon&&A.icon.iconType?A.icon.iconType.toLowerCase():""};
_.P.computeIcon=function(A){return A&&A.icon&&A.icon.iconType?(A=A.icon.iconType.toLowerCase(),(A.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+A):""};
_.P.computeDisabled=function(A){return!!A};
_.P.computeCommand=function(A,L){return L?void 0:A};
_.P.computeTooltip=function(A,L){return L&&A?A:""};
_.P.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.v2.Object.defineProperties(LQ.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var A="",L,O,X;if((L=this.data)==null?0:(O=L.text)==null?0:(X=O.runs)==null?0:X.length)A=this.data.text.runs[0].text||"";else{var x,J;if((x=this.data)==null?0:(J=x.text)==null?0:J.simpleText)A=this.data.text.simpleText}var Y,T,V;if((Y=this.data)==null?0:(T=Y.subtext)==null?0:(V=T.runs)==null?0:V.length)A&&(A+=". "),A+=this.data.subtext.runs[0].text||"";else{var E,n;if((E=this.data)==null?0:(n=E.subtext)==
null?0:n.simpleText)A&&(A+=". "),A+=this.data.subtext.simpleText}return A}}});
_.I([_.N(_.Nr.YtEndpointBehavior),_.Z("design:type",Object)],LQ.prototype,"ytEndpointBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],LQ.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],LQ.prototype,"data",void 0);_.I([_.K({computed:"computeIconId(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],LQ.prototype,"iconId",void 0);
_.I([_.K({computed:"computeIcon(data)",reflectToAttribute:!0}),_.Z("design:type",Object)],LQ.prototype,"icon",void 0);_.I([_.K({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.Z("design:type",Object)],LQ.prototype,"disabled",void 0);_.I([_.K({computed:"computeCommand(data.command, disabled)"}),_.Z("design:type",Object)],LQ.prototype,"command",void 0);_.I([_.K({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.Z("design:type",String)],LQ.prototype,"tooltip",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],LQ.prototype,"systemIcons",void 0);_.I([_.r("data.text","data.subtext"),_.K(),_.Z("design:type",String),_.Z("design:paramtypes",[])],LQ.prototype,"ariaLabel",null);_.I([_.yU({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],LQ);
_.m(LQ,"yt-live-chat-product-button-renderer",function(){if(W$o===void 0){var A=document.createElement("template");_.p(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_button_renderer.yt.live.chat.product.button.renderer.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-button-renderer" data="[[command]]" title$="[[tooltip]]">\n  <tp-yt-paper-item id="container" aria-label$="[[ariaLabel]]" disabled$="[[disabled]]" role="menuitem" on-click="onClick" class="style-scope yt-live-chat-product-button-renderer">\n    <div id="icon" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-product-button-renderer"></yt-icon>\n      <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-product-button-renderer">[[data.iconBadgeText]]</span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      <div id="subtext" class="style-scope yt-live-chat-product-button-renderer">\n        <yt-formatted-string text="[[data.subtext]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      </div>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;j7o===void 0&&(j7o=document.createElement("template"));var X=j7o;O.call(L,X.content.cloneNode(!0),A.content.firstChild);W$o=A}A=W$o;return A},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var HJf;var zSW;var OA=function(){var A=_.G.apply(this,arguments)||this;A.selected=!1;A.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 A};
_.g(OA,_.G);_.P=OA.prototype;_.P.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{liveChatProductButtonRenderer:"yt-live-chat-product-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{liveChatProductButtonRenderer:"yt-live-chat-product-button-renderer"}}}};
_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.P.computeId=function(A){return A.id||""};
_.P.onCloseClick=function(){_.P4(this.hostElement,"picker-cancelled")};
_.P.observeSelected=function(){this.selected&&this.hostElement.focus();var A=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");A.length&&A[0].focus()};
_.P.onCloseBuyFlow=function(){_.P4(this.hostElement,"picker-cancelled")};
_.P.onCloseEngageWithAudienceEditorPanels=function(){_.P4(this.hostElement,"picker-cancelled")};
OA.prototype.observeSelected=OA.prototype.observeSelected;_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],OA.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],OA.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],OA.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],OA.prototype,"data",void 0);
_.I([_.K({computed:"computeId(data)",reflectToAttribute:!0}),_.Z("design:type",String)],OA.prototype,"id",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],OA.prototype,"selected",void 0);_.I([_.hT("selected"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],OA.prototype,"observeSelected",null);_.I([_.yU({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],OA);
_.m(OA,"yt-live-chat-product-picker-renderer",function(){if(zSW===void 0){var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;HJf===void 0&&(HJf=document.createElement("template"));var X=HJf;O.call(L,X.content.cloneNode(!0),A.content.firstChild);zSW=A}A=zSW;return A},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var BB_;var MZD;var $Qa;var aS3;var Xj=function(){return _.G.apply(this,arguments)||this};
_.g(Xj,_.G);Xj.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()};
Xj.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
Xj.prototype.created=function(){this.ids={background:_.kE(),maskOne:_.kE(),maskTwo:_.kE(),gradient:_.kE(),largeBackground:_.kE(),largeGradientOne:_.kE(),largeGradientTwo:_.kE(),largeGradientPath:_.kE()}};
Xj.prototype.maybeLoadAnimationBackground=Xj.prototype.maybeLoadAnimationBackground;_.I([_.K({value:!1}),_.Z("design:type",Boolean)],Xj.prototype,"useLargeBackground",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],Xj.prototype,"useAnimationBackground",void 0);_.I([_.K({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.Z("design:type",Boolean)],Xj.prototype,"useRegularBackground",void 0);
_.I([_.K(),_.Z("design:type",Object)],Xj.prototype,"ids",void 0);_.I([_.K(),_.Z("design:type",Object)],Xj.prototype,"lottieAnimation",void 0);_.I([_.qR("#animation-background"),_.Z("design:type",HTMLDivElement)],Xj.prototype,"animationBackground",void 0);_.I([_.hT("useAnimationBackground"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Xj.prototype,"maybeLoadAnimationBackground",null);
_.I([_.yU({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],Xj);
_.m(Xj,"yt-live-interactivity-component-background",function(){if(aS3===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;$Qa===void 0&&($Qa=document.createElement("template"));var X=$Qa;O.call(L,X.content.cloneNode(!0),A.content.firstChild);aS3=A}A=aS3;return A},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var xG=function(){var A=_.G.apply(this,arguments)||this;A.characterCount=0;A.showInputErrorMessage=!1;A.startQnaRequestInFlight=!1;A.modern=_.h("web_button_rework_with_live");A.buttonOverrides={style:"mono",type:"filled"};A.closeButtonOverrides={iconPosition:"icon-only"};A.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return A};
_.g(xG,_.G);_.P=xG.prototype;
_.P.configureRendererStamper=function(){return{"data.creatorCallForQuestions.liveChatCreatorCallForQuestionsRenderer.overflowMenuButton":{id:"menu",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"menu-button"}}}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[closeButtonOverrides]]"}}}},"data.startButton":{id:"start-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.P.onCharacterCountChanged=function(A){var L,O,X,x,J=(O=_.q(this==null?void 0:(L=this.data)==null?void 0:L.creatorCallForQuestions,NJE))==null?void 0:(X=O.inputField)==null?void 0:(x=X.liveChatTextInputFieldRenderer)==null?void 0:x.maxCharacterLimit,Y,T;J!=null&&(A==null?void 0:(Y=A.detail)==null?void 0:Y.characterCount)!=null&&_.q(this==null?void 0:(T=this.data)==null?void 0:T.startButton,_.$t)&&(L=A.detail.characterCount>J,this.set("data.startButton.buttonRenderer.isDisabled",A.detail.characterCount===
0||L),this.showInputErrorMessage=L)};
_.P.onCloseClick=function(){_.P4(this.hostElement,"picker-cancelled");_.dQ(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.P.onPickerCancelled=function(){var A=_.YJ(this.hostElement).querySelector("#qna-creator-text-input-field");A&&A.setLiveChatRichMessageInput(null)};
_.P.handleOpenQnaStartPanel=function(){var A=_.YJ(this.hostElement).querySelector("#qna-creator-text-input-field");A&&A.focus()};
_.P.handleStartButtonAction=function(A){var L=this;if(A.detail.actionName==="yt-service-request"&&(A.stopPropagation(),A=A.detail.args[1])){var O=_.YJ(this.hostElement).querySelector("#qna-creator-text-input-field"),X;(O==null?0:(X=O.liveChatRichMessageInput)==null?0:X.textSegments)&&O.liveChatRichMessageInput.textSegments.length!==0&&(X={rich_message:_.$4(O.liveChatRichMessageInput)},_.TZ(this.hostElement,[A,X]).then(function(){_.P4(L.hostElement,"picker-cancelled")}))}};
_.P.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.P.handleServiceRequestCompleted=function(A){var L;A=A==null?void 0:(L=A.detail)==null?void 0:L.data;(A==null?0:A.actions)&&A.actions.length>0?this.startQnaRequestInFlight=!1:_.dQ(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.P.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
xG.prototype.handleServiceRequestError=xG.prototype.handleServiceRequestError;xG.prototype.handleServiceRequestCompleted=xG.prototype.handleServiceRequestCompleted;xG.prototype.handleServiceRequestSent=xG.prototype.handleServiceRequestSent;xG.prototype.onPickerCancelled=xG.prototype.onPickerCancelled;xG.prototype.onCharacterCountChanged=xG.prototype.onCharacterCountChanged;_.I([_.K(),_.Z("design:type",Object)],xG.prototype,"characterCount",void 0);
_.I([_.K(),_.Z("design:type",Object)],xG.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],xG.prototype,"showInputErrorMessage",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],xG.prototype,"startQnaRequestInFlight",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],xG.prototype,"modern",void 0);_.I([_.K(),_.Z("design:type",Object)],xG.prototype,"buttonOverrides",void 0);
_.I([_.K(),_.Z("design:type",Object)],xG.prototype,"closeButtonOverrides",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],xG.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.k1),_.Z("design:type",Object)],xG.prototype,"ytLiveChatReduxBehavior",void 0);_.I([_.N(_.UR.YtLiveChatItemBehavior),_.Z("design:type",_.vP)],xG.prototype,"ytLiveChatItemBehavior",void 0);
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],xG.prototype,"ytActionHandlerBehavior",void 0);_.I([_.by("yt-live-chat-text-input-field-renderer-character-count-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],xG.prototype,"onCharacterCountChanged",null);_.I([_.by("picker-cancelled"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],xG.prototype,"onPickerCancelled",null);
_.I([_.by("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],xG.prototype,"handleServiceRequestSent",null);_.I([_.by("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],xG.prototype,"handleServiceRequestCompleted",null);
_.I([_.by("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],xG.prototype,"handleServiceRequestError",null);_.I([_.Q({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],xG);
_.m(xG,"yt-live-chat-qna-start-panel-renderer",function(){if(MZD===void 0){var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;BB_===void 0&&(BB_=document.createElement("template"));var X=BB_;O.call(L,X.content.cloneNode(!0),A.content.firstChild);MZD=A}A=MZD;return A},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var knw;var UQ0;var sA=function(){return _.G.apply(this,arguments)||this};
_.g(sA,_.G);sA.prototype.dismiss=function(){_.P4(this.hostElement,"yt-live-chat-error-message-dismiss")};
sA.prototype.edit=function(){_.P4(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.I([_.K(),_.Z("design:type",Object)],sA.prototype,"data",void 0);_.I([_.yU({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],sA);
_.m(sA,"yt-live-chat-text-actions-error-message-renderer",function(){if(UQ0===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;knw===void 0&&(knw=document.createElement("template"));var X=knw;O.call(L,X.content.cloneNode(!0),A.content.firstChild);UQ0=A}A=UQ0;return A},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var vXo;var oXP;var AE0;var LJ3;var Jq=function(){var A=_.G.apply(this,arguments)||this;A.isDarkTheme=document.documentElement.hasAttribute("dark");A.newnessDotEligible=!1;return A};
_.g(Jq,_.G);Jq.prototype.sendReaction=function(){var A,L,O=((A=this.data)==null?void 0:A.emojiId)||((L=this.data)==null?void 0:L.emoteId),X;O&&((X=this.data)==null?0:X.shouldTriggerAnimation)&&_.dQ(this.hostElement,"yt-create-user-reaction-animation",[O]);var x;(A=_.HR((x=this.data)==null?void 0:x.onTap))&&_.qb(A,this.hostElement);this.showNewnessDot&&_.dQ(this.hostElement,"yt-hide-newness-dot")};
Jq.prototype.onClick=function(A){(!A||A.clientX||A.clientY)&&this.sendReaction()};
Jq.prototype.onKeyDown=function(A){A.key!=="Enter"&&A.key!==" "||A.repeat||this.sendReaction()};
_.v2.Object.defineProperties(Jq.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var A,L;return!!(((A=this.data)==null?0:A.emojiId)||((L=this.data)==null?0:L.emoteId))}}});
_.I([_.K(),_.Z("design:type",Object)],Jq.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Jq.prototype,"isDarkTheme",void 0);_.I([_.K(),_.Z("design:type",Object)],Jq.prototype,"newnessDotEligible",void 0);_.I([_.r("data.maybeShowNewnessDot"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Jq.prototype,"showNewnessDot",null);_.I([_.r("data.emojiId","data.emoteId"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Jq.prototype,"useYtImage",null);
_.I([_.yU({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],Jq);
_.m(Jq,"yt-reaction-control-panel-button-view-model",function(){if(LJ3===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;AE0===void 0&&(AE0=document.createElement("template"));var X=AE0;O.call(L,X.content.cloneNode(!0),A.content.firstChild);LJ3=A}A=LJ3;return A},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var O_w;var XfJ;var Pp=function(){var A=_.G.apply(this,arguments)||this;A.reactionControlPanelExpanded=!1;A.isDarkTheme=document.documentElement.hasAttribute("dark");A.newnessDotEligible=!1;return A};
_.g(Pp,_.G);_.P=Pp.prototype;_.P.expandedButtonsChanged=function(){var A,L;_.eq(this.hostElement,{"--expanded-buttons-height":((L=(A=this.expandedButtonsData)==null?void 0:A.length)!=null?L:0)*36+"px"})};
_.P.configureRendererStamper=function(){return{expandedButtonsData:{id:"expanded-buttons",mapping:{reactionControlPanelButtonViewModel:{component:"yt-reaction-control-panel-button-view-model",properties:{newnessDotEligible:"[[newnessDotEligible]]"}}},reuseComponents:!0},"data.collapsedButton":{id:"collapsed-button",mapping:{reactionControlPanelButtonViewModel:{component:"yt-reaction-control-panel-button-view-model",properties:{newnessDotEligible:"[[newnessDotEligible]]"}}},reuseComponents:!0}}};
_.P.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.P.onMouseLeave=function(){var A=this;this.collapseTimer=setTimeout(function(){A.reactionControlPanelExpanded=!1},500)};
_.P.onFocusIn=function(){this.onMouseEnter()};
_.P.onFocusOut=function(){this.onMouseLeave()};
_.P.onCollapsedButtonFocusIn=function(){var A=this;setTimeout(function(){var L;(L=A.expandedButtons.querySelector("button"))==null||L.focus()},100)};
_.P.onCollapsedButtonFocusOut=function(A){A.stopPropagation()};
_.v2.Object.defineProperties(Pp.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var A,L;return _.lW.unsafeClone((A=this.liveReactionsData)==null?void 0:A.emojiButtonData)||((L=this.data)==null?void 0:L.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var A;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((A=this.data)==null||!A.maybeShowNewnessDot)}}});
Pp.prototype.expandedButtonsChanged=Pp.prototype.expandedButtonsChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Pp.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Pp.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.k1),_.Z("design:type",Object)],Pp.prototype,"ytLiveChatReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Pp.prototype,"data",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Pp.prototype,"reactionControlPanelExpanded",void 0);_.I([_.K({selectorArgs:["data.liveReactionsDataEntityKey"],selector:YuP}),_.Z("design:type",Object)],Pp.prototype,"liveReactionsData",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Pp.prototype,"isDarkTheme",void 0);_.I([_.K(),_.Z("design:type",Object)],Pp.prototype,"newnessDotEligible",void 0);
_.I([_.r("liveReactionsData","data.expandedButtons"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Pp.prototype,"expandedButtonsData",null);_.I([_.r("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.K({reflectToAttribute:!0}),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Pp.prototype,"showNewnessDot",null);_.I([_.qR("#expanded-buttons"),_.Z("design:type",HTMLElement)],Pp.prototype,"expandedButtons",void 0);
_.I([_.hT("expandedButtonsData"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Pp.prototype,"expandedButtonsChanged",null);_.I([_.yU({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],Pp);
_.m(Pp,"yt-reaction-control-panel-view-model",function(){if(XfJ===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;O_w===void 0&&(O_w=document.createElement("template"));var X=O_w;O.call(L,X.content.cloneNode(!0),A.content.firstChild);XfJ=A}A=XfJ;return A},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var dH=new _.mg("yt-live-chat"),x0P=Date.parse("2024-7-24"),YG=function(){var A=_.G.apply(this,arguments)||this;A.emojiManager=_.k5;A.newnessDotEligible=!1;A.newnessDotImpressionCounted=!1;A.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return A};
_.g(YG,_.G);_.P=YG.prototype;_.P.emojiCustomizationEnabledChanged=function(){var A;((A=this.data)==null?0:A.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((A=dH.getCreationTime("emoji-customization-count"))&&A<x0P&&dH.set("emoji-customization-count","0"),A=Number(dH.get("emoji-customization-count"))||0,A<3&&(this.newnessDotEligible=!0,dH.set("emoji-customization-count",(A+1).toString())),this.newnessDotImpressionCounted=!0)};
_.P.hideNewnessDot=function(){this.newnessDotEligible=!1;dH.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.P.handleReactionsMute=function(A){var L=_.Fn(),O=_.tI(206221),X={checkboxData:{state:A?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};L&&_.$K(L,O,X);this.reactionsMuted=A};
_.P.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.P.configureRendererStamper=function(){return{"data.emojiFountain":{id:"emoji-fountain",mapping:{emojiFountainViewModel:{component:"yt-emoji-fountain-view-model",properties:{emojiManager:"[[emojiManager]]",isActive:"[[liveReactionsEnabled]]"}}},reuseComponents:!0},"data.reactionControlPanel":{id:"reaction-control-panel",mapping:{reactionControlPanelViewModel:{component:"yt-reaction-control-panel-view-model",properties:{newnessDotEligible:"[[newnessDotEligible]]"}}},reuseComponents:!0}}};
_.v2.Object.defineProperties(YG.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var A;return(!((A=this.liveReactionsData)==null||!A.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
YG.prototype.liveReactionsSettingChanged=YG.prototype.liveReactionsSettingChanged;YG.prototype.emojiCustomizationEnabledChanged=YG.prototype.emojiCustomizationEnabledChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],YG.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],YG.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.k1),_.Z("design:type",Object)],YG.prototype,"ytLiveChatReduxBehavior",void 0);
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],YG.prototype,"ytActionHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],YG.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",_.Mr)],YG.prototype,"emojiManager",void 0);_.I([_.K(),_.Z("design:type",Object)],YG.prototype,"newnessDotEligible",void 0);_.I([_.K(),_.Z("design:type",Object)],YG.prototype,"newnessDotImpressionCounted",void 0);
_.I([_.K({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:upW}),_.Z("design:type",Boolean)],YG.prototype,"liveReactionsSetting",void 0);_.I([_.K({selectorArgs:["data.liveReactionsDataEntityKey"],selector:YuP}),_.Z("design:type",Object)],YG.prototype,"liveReactionsData",void 0);_.I([_.K({value:function(){var A=_.h("enable_lwe_web_mute"),L=dH.get("allow-reactions");return L===void 0?!1:!L&&A}}),
_.Z("design:type",Boolean)],YG.prototype,"reactionsMuted",void 0);_.I([_.K({reflectToAttribute:!0}),_.r("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],YG.prototype,"liveReactionsEnabled",null);_.I([_.hT("data.emojiCustomizationEnabled"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],YG.prototype,"emojiCustomizationEnabledChanged",null);
_.I([_.hT("liveReactionsEnabled"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],YG.prototype,"liveReactionsSettingChanged",null);_.I([_.yU({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],YG);
_.m(YG,"yt-reaction-control-panel-overlay-view-model",function(){if(oXP===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;vXo===void 0&&(vXo=document.createElement("template"));var X=vXo;O.call(L,X.content.cloneNode(!0),A.content.firstChild);oXP=A}A=oXP;return A},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var sPW={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(A){var L=this.$.pickers.selected;if(L){_.YJ(this.hostElement).removeAttribute(L+"-open");var O="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(O="#picker-buttons",L==="emoji"&&_.YJ(this.hostElement).querySelector("#emoji-picker-button")&&(O="#emoji-picker-button"));if(O=_.YJ(this.hostElement).querySelector(O).querySelector("#"+L))O.active=!1}O=A;L==A&&(O=null);L!=
A&&_.YJ(this.hostElement).setAttribute(A+"-open","");this.$.pickers.selected=O;_.dQ(this.hostElement,"yt-live-chat-picker-changed",[O])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var uD=function(){var A=_.G.apply(this,arguments)||this;A.numSentMessages=0;A.timeoutDurationMs=0;A.timeoutMs=0;A.lastTimeoutTimeMs=0;A.pendingMessageId="";A.hasFiredInitialFocusActions=!1;A.isBeforeFocusEnabled=!0;A.id="";A.characterCount=0;A.maxCharacterLimit=0;A.remainingCharacterCount=0;A.inputExpanded=!1;A.buttonOverrides={iconPosition:"icon-only"};A.inReplyPanel=!1;A.countdownRatio=0;A.isTooltipVisible=!1;A.tooltipTimeout=1E4;A.systemIcons=_.h("kevlar_system_icons");A.tallerEmojiPicker=_.h("live_chat_taller_emoji_picker");
A.sendReplyMessageInFlight=!1;A.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"};A.onResize=function(){A.maybeToggleCharacterCount()};
return A};
_.g(uD,_.G);_.P=uD.prototype;
_.P.configureRendererStamper=function(){return{"data.sendButton":{id:"send-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.pickers":{id:"pickers",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{disableIncrementalLoading:"[[disableEmojiPickerIncrementalLoading]]"}},liveChatProductPickerRenderer:"yt-live-chat-product-picker-renderer",liveChatProductPickerPanelViewModel:"yt-live-chat-product-picker-panel-view-model",liveChatPollEditorPanelRenderer:"yt-live-chat-poll-editor-panel-renderer",
liveChatQnaStartPanelRenderer:"yt-live-chat-qna-start-panel-renderer"}},"data.emojiPickerButton":{id:"emoji-picker-button",mapping:{liveChatIconToggleButtonRenderer:{component:"yt-live-chat-icon-toggle-button-renderer",properties:{disabled:"[[hasInteractionMessage]]"}},buttonRenderer:{component:"yt-button-renderer",params:{buttonTooltipPosition:"top",sendServiceEndpointWhenDisabled:!0}}}},"data.pickerButtons":{id:"picker-buttons",mapping:{liveChatIconToggleButtonRenderer:{component:"yt-live-chat-icon-toggle-button-renderer",
properties:{disabled:"[[hasInteractionMessage]]"}},buttonRenderer:{component:"yt-button-renderer",params:{buttonTooltipPosition:"top",sendServiceEndpointWhenDisabled:!0},properties:{overrides:"[[buttonOverrides]]"}},reactionControlPanelOverlayViewModel:{component:"yt-reaction-control-panel-overlay-view-model"}}},"data.interactionMessage":{id:"interaction-message",mapping:{messageRenderer:{component:"yt-live-chat-message-renderer",params:{subtextOnBottom:!0}}}},errorMessage:{id:"error-message",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer",
liveChatTextActionsErrorMessageRenderer:"yt-live-chat-text-actions-error-message-renderer"}}}};
_.P.attached=function(){window.addEventListener("resize",this.onResize)};
_.P.detached=function(){window.removeEventListener("resize",this.onResize)};
_.P.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.P.sendMessage=function(){var A=this,L,O,X,x;return _.u(function(J){if(A.sendDisabled)return J.return();A.isTooltipVisible&&_.dQ(A.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(A.data.sendButton&&A.data.sendButton.buttonRenderer){A.input.completeEmojis();L=A.data.sendButton.buttonRenderer.serviceEndpoint;if(!L)return J.return();X=((O=_.q(L,_.E9j))==null?void 0:O.clientIdPrefix)||"";x={client_message_id:X+String(A.numSentMessages++),rich_message:_.$4(A.input.liveChatRichMessageInput)};
A.pendingMessageId=x.client_message_id;A.inReplyPanel&&(A.sendReplyMessageInFlight=!0);_.TZ(A.hostElement,[L,x]);A.input.setLiveChatRichMessageInput(null)}_.qo(J)})};
_.P.handleSendButtonAction=function(A){A.detail.actionName==="yt-service-request"&&(A.stopPropagation(),this.sendMessage())};
_.P.onSendCompleted=function(A,L){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(A=this.get("timeoutDurationUsec",L.data))&&this.handleTimeout(Number(A)/1E3);this.errorMessage=this.get("errorMessage",L.data);this.pendingMessageId=""};
_.P.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.dQ(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.P.handlePickerButtonToggle=function(A){A=A.detail.targetId;this.ytPickerBehavior.togglePicker_(A);if(A==="emoji")this.input.focus();else if(A==="qna-start-panel"){var L,O;(L=_.YJ(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(O=L.querySelector("#qna-creator-text-input-field"))==null||O.focus()}};
_.P.onComponentReplaced=function(A){var L,O;A.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((L=A.replacement.liveChatMessageInputRenderer)==null?0:(O=L.headerRenderer)==null?0:O.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.P.onEmojiSelect=function(A){this.input.focus();this.input.insertEmoji(A.detail)};
_.P.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.P.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.dQ(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.dQ(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.P.onOpenPopupAction=function(A,L){var O=this;L===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.dQ(O.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.P.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.P.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.P.focusChanged=function(){this.maybeToggleCharacterCount()};
_.P.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var A=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",A>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.P.computeId=function(){return this.data&&this.data.targetId||""};
_.P.computeSendDisabled=function(A,L,O,X){A=!!(!A||L&&A>L||X);(L=_.YJ(this.hostElement).querySelector("#send-button"))&&L.children.length&&(L.children[0].disabled=A);return A};
_.P.handleTimeout=function(A){this.timeoutDurationMs=this.timeoutMs=A;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.P.updateTimeout=function(A){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(A-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=A,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.P.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.P.onErrorMessageEdit=function(A){this.input.setLiveChatRichMessageInput(A.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.P.errorMessageChanged=function(){var A=this;_.MR(function(){_.dQ(A.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.P.computeAuthorNameColor=function(A){var L;if(_.h("live_chat_author_name_color_usernames")&&(A==null?0:(L=A.authorName)==null?0:L.simpleText))return _.wZd(_.pZu(A.authorName.simpleText));if(_.h("live_chat_seed_color_usernames")&&(A==null?0:A.authorSeedColorArgb))return _.wZd(_.nT(A.authorSeedColorArgb));if(_.h("live_chat_colored_usernames"))return"#cc0000";var O;return _.h("live_chat_simple_color_usernames")&&(A==null?0:(O=A.authorName)==null?0:O.simpleText)&&(A==null?0:A.authorUsernameColorLight)&&
(A==null?0:A.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.nT(A.authorUsernameColorDark):_.nT(A.authorUsernameColorLight):""};
_.P.onIsTooltipVisibleChanged=function(){var A=_.YJ(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){A.hidden=!1;A.setAttribute("role","alert")},0):(A.hidden=!0,A.removeAttribute("role"))};
_.P.onFocusedChanged=function(A){this.inputFocused=A.detail.value};
_.v2.Object.defineProperties(uD.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 A;return!((A=this.data)==null||!A.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var A,L;return((A=this.data)==null?void 0:(L=A.pickers)==null?void 0:L.find(function(O){return O.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var A=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return A?this.ytRendererBehavior.getSimpleString(A):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
uD.prototype.onIsTooltipVisibleChanged=uD.prototype.onIsTooltipVisibleChanged;uD.prototype.errorMessageChanged=uD.prototype.errorMessageChanged;uD.prototype.onErrorMessageEdit=uD.prototype.onErrorMessageEdit;uD.prototype.onErrorMessageDismiss=uD.prototype.onErrorMessageDismiss;uD.prototype.focusChanged=uD.prototype.focusChanged;uD.prototype.characterCountChanged=uD.prototype.characterCountChanged;uD.prototype.onEmojiSelect=uD.prototype.onEmojiSelect;uD.prototype.handlePickerButtonToggle=uD.prototype.handlePickerButtonToggle;
uD.prototype.onSendError=uD.prototype.onSendError;uD.prototype.onSendCompleted=uD.prototype.onSendCompleted;uD.prototype.sendMessage=uD.prototype.sendMessage;uD.prototype.dataChanged=uD.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],uD.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],uD.prototype,"ytActionHandlerBehavior",void 0);
_.I([_.N(sPW.YtPickerBehavior),_.Z("design:type",Object)],uD.prototype,"ytPickerBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],uD.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.Uc.YtLiveChatTooltipTargetingBehavior),_.Z("design:type",Object)],uD.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],uD.prototype,"hasFiredInitialFocusActions",void 0);
_.I([_.K(),_.Z("design:type",Object)],uD.prototype,"isBeforeFocusEnabled",void 0);_.I([_.K(),_.Z("design:type",Object)],uD.prototype,"data",void 0);_.I([_.K({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.Z("design:type",Object)],uD.prototype,"id",void 0);_.I([_.K(),_.Z("design:type",Object)],uD.prototype,"characterCount",void 0);_.I([_.K(),_.Z("design:type",Object)],uD.prototype,"maxCharacterLimit",void 0);
_.I([_.K(),_.Z("design:type",Object)],uD.prototype,"remainingCharacterCount",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],uD.prototype,"inputExpanded",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],uD.prototype,"inputFocused",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],uD.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.I([_.K(),_.Z("design:type",_.Ll)],uD.prototype,"participantsManager",void 0);
_.I([_.K(),_.Z("design:type",Object)],uD.prototype,"buttonOverrides",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],uD.prototype,"inReplyPanel",void 0);_.I([_.r("characterCount, maxCharacterLimit, countdownActive"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],uD.prototype,"sendDisabled",null);_.I([_.K(),_.Z("design:type",Object)],uD.prototype,"countdownRatio",void 0);
_.I([_.r("countdownRatio"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],uD.prototype,"countdownStrokeDashOffset",null);_.I([_.r("countdownRatio"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],uD.prototype,"countdownActive",null);_.I([_.r("data.interactionMessage"),_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],uD.prototype,"hasInteractionMessage",null);
_.I([_.r("data.emojiPickerButton"),_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],uD.prototype,"hasEmojiPickerButton",null);_.I([_.r("data, characterCount"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],uD.prototype,"showAvatar",null);_.I([_.r("data.pickers"),_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],uD.prototype,"hasProductPickerPanelViewModel",null);
_.I([_.K(),_.Z("design:type",Object)],uD.prototype,"errorMessage",void 0);_.I([_.K(),_.Z("design:type",Object)],uD.prototype,"genericErrorMessage",void 0);_.I([_.K(),_.Z("design:type",Object)],uD.prototype,"isTooltipVisible",void 0);_.I([_.K(),_.Z("design:type",Object)],uD.prototype,"tooltipTimeout",void 0);_.I([_.r("data.onInitialFocusCommand"),_.Z("design:type",String),_.Z("design:paramtypes",[])],uD.prototype,"tooltipMessage",null);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],uD.prototype,"systemIcons",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],uD.prototype,"tallerEmojiPicker",void 0);_.I([_.r("data"),_.Z("design:type",String),_.Z("design:paramtypes",[])],uD.prototype,"authorNameColor",null);_.I([_.K(),_.Z("design:type",Object)],uD.prototype,"sendReplyMessageInFlight",void 0);_.I([_.qR("#input"),_.Z("design:type",_.Jdj)],uD.prototype,"input",void 0);
_.I([_.qR("#count"),_.Z("design:type",HTMLElement)],uD.prototype,"count",void 0);_.I([_.qR("#input-container"),_.Z("design:type",HTMLElement)],uD.prototype,"inputContainer",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],uD.prototype,"dataChanged",null);_.I([_.by("yt-live-chat-send-message"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype",Promise)],uD.prototype,"sendMessage",null);
_.I([_.by("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event,_.Xi]),_.Z("design:returntype")],uD.prototype,"onSendCompleted",null);_.I([_.by("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],uD.prototype,"onSendError",null);
_.I([_.by("yt-live-chat-icon-toggle-button-renderer-toggle"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],uD.prototype,"handlePickerButtonToggle",null);_.I([_.by("yt-emoji-select"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],uD.prototype,"onEmojiSelect",null);
_.I([_.hT("characterCount"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],uD.prototype,"characterCountChanged",null);_.I([_.hT("inputFocused"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],uD.prototype,"focusChanged",null);_.I([_.by("yt-live-chat-error-message-dismiss"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],uD.prototype,"onErrorMessageDismiss",null);
_.I([_.by("yt-live-chat-error-message-edit"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],uD.prototype,"onErrorMessageEdit",null);_.I([_.hT("errorMessage"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],uD.prototype,"errorMessageChanged",null);_.I([_.hT("isTooltipVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],uD.prototype,"onIsTooltipVisibleChanged",null);
_.I([_.yU({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],uD);
_.m(uD,"yt-live-chat-message-input-renderer",function(){if(NBP===void 0){var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;iJP===void 0&&(iJP=document.createElement("template"));var X=iJP;O.call(L,X.content.cloneNode(!0),A.content.firstChild);NBP=A}A=NBP;return A},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var JE2;var Paa;var TS=function(){var A=_.G.apply(this,arguments)||this;A.systemIcons=_.h("kevlar_system_icons");A.firedOnClickCommand=!1;A.inReplyPanel=!1;return A};
_.g(TS,_.G);
TS.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"}}}};
TS.prototype.onButtonToggle=function(A){A.target.disabled||this.ytPickerBehavior.togglePicker_(A.detail.targetId)};
TS.prototype.onClick=function(){var A=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.dQ(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return A.firedOnClickCommand=!1},5E3))};
_.v2.Object.defineProperties(TS.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var A,L;return((A=this.data)==null?void 0:(L=A.panels)==null?void 0:L.find(function(O){return O.liveChatProductPickerPanelViewModel}))!==void 0}}});
TS.prototype.onButtonToggle=TS.prototype.onButtonToggle;_.I([_.N(sPW.YtPickerBehavior),_.Z("design:type",Object)],TS.prototype,"ytPickerBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],TS.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],TS.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],TS.prototype,"data",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],TS.prototype,"systemIcons",void 0);_.I([_.K({reflectToAttribute:!1}),_.Z("design:type",Object)],TS.prototype,"firedOnClickCommand",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],TS.prototype,"inReplyPanel",void 0);_.I([_.r("data.pickers"),_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],TS.prototype,"hasProductPickerPanelViewModel",null);
_.I([_.by("yt-live-chat-icon-toggle-button-renderer-toggle"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],TS.prototype,"onButtonToggle",null);_.I([_.yU({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],TS);
_.m(TS,"yt-live-chat-restricted-participation-renderer",function(){if(Paa===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;JE2===void 0&&(JE2=document.createElement("template"));var X=JE2;O.call(L,X.content.cloneNode(!0),A.content.firstChild);Paa=A}A=Paa;return A},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var VJ=function(){var A=_.G.apply(this,arguments)||this;A.genericErrorMessage=_.Ue("Error, try again.");A.inReplyPanel=!1;A.hideBorder=!1;return A};
_.g(VJ,_.G);VJ.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}}}}}};
_.v2.Object.defineProperties(VJ,{template:{configurable:!0,enumerable:!0,get:function(){return Sz3()}}});
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],VJ.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],VJ.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],VJ.prototype,"genericErrorMessage",void 0);_.I([_.K(),_.Z("design:type",Object)],VJ.prototype,"inReplyPanel",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],VJ.prototype,"hideBorder",void 0);
_.I([_.yU({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],VJ);_.m(VJ,"yt-live-chat-engagement-panel-input-renderer",function(){return Sz3()},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var d02,YB0;d02=_.tI(115994);YB0=_.tI(115993);_.DO=function(A,L,O){var X=this;var x=O.dragDownAction;this.layer=0;this.JSC$23459_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return X.dragDownAction()}}}};
this.JSC$23459_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return X.dragDownAction()}}}};
this.fullscreen=!1;var J=_.iV();_.qB(J,d02,this.layer);_.qB(J,YB0,this.layer);this.dragDownAction=function(){x();_.k4(J,{visualElement:X.fullscreen?d02:YB0})};
this.gesture=new _.e$(A,L,this.JSC$23459_watchConfig,"pandown");this.attach()};
_.DO.prototype.attach=function(){this.gesture.attach()};
_.DO.prototype.detach=function(){this.gesture.detach()};
_.DO.prototype.update=function(A){this.fullscreen=A;this.gesture.config=A?this.JSC$23459_watchFullScreenConfig:this.JSC$23459_watchConfig};var uPw={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(A){if(A&&A.length==1&&Array.isArray(A[0].loggingUrls)){A=_.lW.unsafeClone(A[0]);var L=this.macros||{},O=this.getAdModuleClient_();if(!O)return _.DQ();A.loggingUrls.forEach(function(X){if(X.baseUrl){var x=X.baseUrl;var J=L;J=J===void 0?{}:J;x=O.getOptions().includes("replaceUrlMacros")?_.SHN(O,"replaceUrlMacros",{url:x,additionalMapping:J}):x;X.baseUrl=x}},this);
A=[A]}return _.TZ(this.hostElement,A)},
getAdModuleClient_:function(){var A=_.d0(this);return A?(A=A.getPlayer())?new _.F7(A):null:null}}]};var Tw0;var eT=function(){var A=_.G.apply(this,arguments)||this;A.isCollapsed=!1;A.modernPanels=_.h("kevlar_watch_modern_panels");A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return A};
_.g(eT,_.G);_.P=eT.prototype;_.P.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.P.onDonateTap=function(){var A=this.get("data.donateButton.buttonRenderer.command");if(A){var L=_.Fn(),O=this.get("data.donateButton.buttonRenderer.trackingParams");L&&O&&_.$K(L,_.lV(O));this.ytOpenPopupBehavior.openPopup(A)}};
_.P.onShowMore=function(){this.isCollapsed=!1;var A=_.Fn(),L=this.get("data.expandButton.buttonRenderer.trackingParams");A&&L&&_.$K(A,_.lV(L))};
_.P.onShowLess=function(){this.isCollapsed=!0};
_.P.dataChanged=function(){_.eq(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.P.onDarkModeToggledAction=function(A){this.isDarkTheme=A};
_.P.handleUpdate=function(A){if(A=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",A))this.set("data.startLabel",A.startLabel),this.set("data.endLabel",A.endLabel),this.set("data.progress",A.progress),this.set("data.amountRaisedLabel",A.amountRaisedLabel),this.dataChanged()};
_.P.handleOpenPopupAction=function(A){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",A)&&_.dQ(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.P.computeHeaderBackgroundUrl=function(A,L){if(A)return L?A.headerBackgroundDarkUrl:A.headerBackgroundUrl};
_.P.isProgressBarVisible=function(A){return!(!A||A.progress===void 0)};
_.P.headerBackgroundClass=function(){return _.ms("HTML_DIR")==="rtl"?"flip":""};
eT.prototype.dataChanged=eT.prototype.dataChanged;_.I([_.N(_.iv.YtOpenPopupBehavior),_.Z("design:type",Object)],eT.prototype,"ytOpenPopupBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],eT.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],eT.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],eT.prototype,"ytActionHandlerBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],eT.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],eT.prototype,"isCollapsed",void 0);_.I([_.K({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.Z("design:type",String)],eT.prototype,"headerBackgroundUrl",void 0);_.I([_.K(),_.Z("design:type",Boolean)],eT.prototype,"isDarkTheme",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],eT.prototype,"modernPanels",void 0);
_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],eT.prototype,"dataChanged",null);_.I([_.Q({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],eT);
_.m(eT,"ytd-donation-shelf-renderer",function(){if(Tw0!==void 0)return Tw0;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Tw0=A},{mode:1});var Vg0;var D0w=function(){return _.G.apply(this,arguments)||this};
_.g(D0w,_.G);_.I([_.K(),_.Z("design:type",Object)],D0w.prototype,"data",void 0);_.I([_.Q({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],D0w);
_.m(D0w,"ytd-donation-unavailable-renderer",function(){if(Vg0!==void 0)return Vg0;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Vg0=A},{mode:1});var e3w;var EA=function(){return _.G.apply(this,arguments)||this};
_.g(EA,_.G);EA.prototype.computeIconType=function(A){return A?"yt-icons:"+A.toLowerCase():null};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],EA.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],EA.prototype,"data",void 0);_.I([_.Q({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],EA);
_.m(EA,"ytd-limited-state-message-renderer",function(){if(e3w!==void 0)return e3w;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return e3w=A},{mode:1});var EWf;var nQ=function(){return _.G.apply(this,arguments)||this};
_.g(nQ,_.G);nQ.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
nQ.prototype.onTap=function(A){var L=this.data&&this.data.endpoint;L&&!_.xu(_.oa(A),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.P4(this.hostElement,"yt-navigate",{endpoint:L})};
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],nQ.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],nQ.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],nQ.prototype,"data",void 0);_.I([_.Q({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],nQ);
_.m(nQ,"ytd-autotagging-metadata-renderer",function(){if(EWf!==void 0)return EWf;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return EWf=A},{mode:1});var nWW;var tq=function(){return _.G.apply(this,arguments)||this};
_.g(tq,_.G);tq.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],tq.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],tq.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],tq.prototype,"data",void 0);_.I([_.Q({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],tq);
_.m(tq,"ytd-autotagging-metadata-row-renderer",function(){if(nWW!==void 0)return nWW;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return nWW=A},{mode:1});var tgP;var b_P;var bD=function(){var A=_.G.apply(this,arguments)||this;A.engagementPanelContent=!1;return A};
_.g(bD,_.G);bD.prototype.computeHasDividerLine=function(A,L){return A&&!L};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],bD.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],bD.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.Z("design:type",Boolean)],bD.prototype,"hasDividerLine",void 0);_.I([_.K(),_.Z("design:type",Object)],bD.prototype,"engagementPanelContent",void 0);
_.I([_.Q({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],bD);
_.m(bD,"ytd-metadata-row-header-renderer",function(){if(b_P!==void 0)return b_P;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return b_P=A},{mode:1});var h3o;var hq=function(){return _.G.apply(this,arguments)||this};
_.g(hq,_.G);hq.prototype.computeHasDividerLine=function(A){return A};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],hq.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],hq.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.Z("design:type",Boolean)],hq.prototype,"hasDividerLine",void 0);_.I([_.Q({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],hq);
_.m(hq,"ytd-metadata-row-renderer",function(){if(h3o!==void 0)return h3o;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return h3o=A},{mode:1});var SBW;var ST=function(){return _.G.apply(this,arguments)||this};
_.g(ST,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],ST.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],ST.prototype,"data",void 0);_.I([_.Q({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],ST);
_.m(ST,"ytd-metadata-with-image-row-renderer",function(){if(SBW!==void 0)return SBW;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return SBW=A},{mode:1});var qBE;var qC=function(){var A=_.G.apply(this,arguments)||this;A.rounded=!0;A.fixie=!1;A.fullWidth=!1;return A};
_.g(qC,_.G);_.P=qC.prototype;_.P.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.onDataChanged=function(){var A=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(L){A.onEndpointLinkKeyPress(L)}))};
_.P.onEndpointLinkKeyPress=function(A){A.target===this.endpointLink&&A.keyCode===13&&_.P4(this.hostElement,"click")};
_.P.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var A;if((A=this.data)==null?0:A.endpoint)_.VN(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.P.onYtNavigate=function(A){this.endpointHref||(A.stopPropagation(),A.preventDefault())};
_.P.onInformationButtonContainerClick=function(A){A.target.id!=="information-button-container"&&(A.stopPropagation(),A.preventDefault())};
_.P.computeStyle=function(A){return A};
_.P.computeIsThumbnailStyle=function(A){return A==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.P.computeThumbnailWidth=function(A){switch(A){case "RICH_METADATA_RENDERER_STYLE_THUMBNAIL":return 178;case "RICH_METADATA_RENDERER_STYLE_BOX_ART":return 72;case "RICH_METADATA_RENDERER_STYLE_TOPIC":return 96;case "RICH_METADATA_RENDERER_STYLE_SQUARE":return 100;default:return 68}};
_.P.computeThumbnailObjectFit=function(A){switch(A){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.v2.Object.defineProperties(qC.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?0:A.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
qC.prototype.onYtNavigate=qC.prototype.onYtNavigate;qC.prototype.onClick=qC.prototype.onClick;qC.prototype.onDataChanged=qC.prototype.onDataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],qC.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],qC.prototype,"componentBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],qC.prototype,"ytRendererstamperBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],qC.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Z("design:type",String)],qC.prototype,"componentStyle",void 0);_.I([_.K({computed:"computeIsThumbnailStyle(data.style)"}),_.Z("design:type",Boolean)],qC.prototype,"isThumbnailStyle",void 0);_.I([_.K({computed:"computeThumbnailObjectFit(data.style)"}),_.Z("design:type",String)],qC.prototype,"thumbnailObjectFit",void 0);
_.I([_.K({computed:"computeThumbnailWidth(data.style)"}),_.Z("design:type",Number)],qC.prototype,"thumbnailWidth",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],qC.prototype,"rounded",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],qC.prototype,"fixie",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],qC.prototype,"fullWidth",void 0);_.I([_.qR("#endpoint-link"),_.Z("design:type",HTMLAnchorElement)],qC.prototype,"endpointLink",void 0);
_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qC.prototype,"onDataChanged",null);_.I([_.r("data.endpoint"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],qC.prototype,"endpointHref",null);_.I([_.by("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],qC.prototype,"onClick",null);
_.I([_.by("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],qC.prototype,"onYtNavigate",null);_.I([_.Q({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],qC);
_.m(qC,"ytd-rich-metadata-renderer",function(){if(qBE!==void 0)return qBE;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return qBE=A},{mode:_.e5("kevlar_poly_si_batch_j075")?1:2});var gW_;var gH=function(){var A=_.G.apply(this,arguments)||this;A.fixie=!1;A.fullWidth=!1;return A};
_.g(gH,_.G);gH.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
gH.prototype.computeHasDividerLine=function(A){return A};
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],gH.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],gH.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.Z("design:type",Boolean)],gH.prototype,"hasDividerLine",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],gH.prototype,"fixie",void 0);_.I([_.K(),_.Z("design:type",Object)],gH.prototype,"fullWidth",void 0);
_.I([_.Q({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],gH);
_.m(gH,"ytd-rich-metadata-row-renderer",function(){if(gW_!==void 0)return gW_;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return gW_=A},{mode:1});var wH=function(){var A=_.G.apply(this,arguments)||this;A.engagementPanelContent=!1;A.fixie=!1;A.fullWidth=!1;return A};
_.g(wH,_.G);
wH.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"}}}};
wH.prototype.computeCollapsibleItems=function(A,L,O){return A===void 0||L===void 0||O===void 0||O?[]:A.slice(L)};
wH.prototype.computeAlwaysShownItems=function(A,L){return A&&A.length?A.slice(0,L):[]};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],wH.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],wH.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],wH.prototype,"data",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],wH.prototype,"collapsed",void 0);
_.I([_.K({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.Z("design:type",Array)],wH.prototype,"alwaysShownItems",void 0);_.I([_.K({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.Z("design:type",Array)],wH.prototype,"collapsibleItems",void 0);_.I([_.K(),_.Z("design:type",Object)],wH.prototype,"engagementPanelContent",void 0);_.I([_.K(),_.Z("design:type",Object)],wH.prototype,"fixie",void 0);
_.I([_.K(),_.Z("design:type",Object)],wH.prototype,"fullWidth",void 0);_.I([_.Q({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],wH);
_.m(wH,"ytd-metadata-row-container-renderer",function(){if(tgP!==void 0)return tgP;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return tgP=A},{mode:1});var wfW;var pQ=function(){var A=_.G.apply(this,arguments)||this;A.currentPageUrl="";A.baseUrl="";A.isHiddenByUser=null;A.hidden=!1;A.showAboveScrim=!1;A.watchNextGrid=_.h("kevlar_watch_grid");A.modernButtons=_.h("web_modern_buttons");A.roundedContainer=!0;A.noBorder=!1;A.roundBackground=!_.h("live_chat_round_background_killswitch");A.overflowHideChat=_.h("live_chat_overflow_hide_chat");A.forceDarkTheme=!1;A.theaterWatchWhile=!1;A.isListeningForPlayerProgress=!1;A.JSC$23495_playerEvents=new Map;A.isFrameReady=
!1;A.player=null;A.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 A};
_.g(pQ,_.G);_.P=pQ.prototype;_.P.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.YK(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.P.created=function(){var A=this;this.handleIframeEventListener=function(L){A.handleIframeEvent(L)};
this.handleKeyboardEventListener=function(L){A.handleKeyboardEvent(L)};
this.JSC$23495_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$23495_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$23495_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$23495_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$23495_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.P.attached=function(){window.addEventListener("message",this.handleIframeEventListener);window.addEventListener("keydown",this.handleKeyboardEventListener);window.addEventListener("keyup",this.handleKeyboardEventListener);this.currentPageUrl=window.location.href;this.setupPlayerProgressRelay();this.collapsedChanged()};
_.P.detached=function(){window.removeEventListener("message",this.handleIframeEventListener);window.removeEventListener("keydown",this.handleKeyboardEventListener);window.removeEventListener("keyup",this.handleKeyboardEventListener);this.currentPageUrl="";this.isListeningForPlayerProgress=!1;this.setPlayer(null);this.isFrameReady=!1};
_.P.computeBaseUrl=function(A){var L="/live_chat";this.isChatReplay()&&(L="/live_chat_replay");return _.DP(_.Vv(_.T7(_.jV(A),L),null),"").toString()};
_.P.dataChanged=function(){_.h("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.P.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var A=this.url;if(this.isChatReplay()&&this.player){var L=Math.floor(this.player.getProgressState().current*1E3);A=_.Hq(_.jV(A),"playerOffsetMs",L.toString()).toString()}L=this.chatframe;try{var O=A==="about:blank"?_.Z9l:_.RP(A),X=L.contentDocument.location,x=_.IP(O);x!==void 0&&X.replace(x)}catch(J){L.src=A}}};
_.P.collapsedChanged=function(){_.P4(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.P.handleIframeEvent=function(A){if(A&&this.baseUrl.startsWith(A.origin)&&A.source===this.chatframe.contentWindow&&_.BJ(A.data))if(A.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(A);else if(A.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(A.data["yt-show-feedback-dialog"]){var L=_.X5().resolve(_.Ot(_.t_L));if(L){var O=A.ports,X;O&&O.length&&(X=function(){O[0].postMessage({})});
A=A.data["yt-show-feedback-dialog"];L.showFeedbackDialog(A.customProductData,A.feedbackContent,X,A.bucket)}}else if(A.data["yt-show-survey"])_.P4(this.hostElement,"yt-show-survey",A.data["yt-show-survey"]);else if(A.data["yt-purchase-membership"])_.X5().resolve(_.x$).resolveCommand(A.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(A.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(A.data["yt-tunnel-out-live-service-request"]);else if(A.data["yt-user-activity"])_.XJ();
else if(A.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(A.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(A.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(A.data["yt-open-popup"]);else if(A.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(A.data["yt-log-flow-logging-event-command"]);else if(A.data["yt-hide-live-chat"])this.onShowHideChat();else A.data["yt-report-moderation-state-log"]&&
this.player&&(L={cpn:this.player.getVideoData().cpn},_.lg("liveChatBeingModerated",L))};
_.P.attachLiveChatResponseVeTrackingParams=function(A){A=_.lV(A);var L=_.Fn(),O=_.WY("liveChatRenderer.trackingParams",this.data);L&&O&&_.W4(L,_.lV(O),A)};
_.P.handleBuyflowMessages=function(A){var L=A.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,O=A.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,X=A.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.Dir(_.Pw(_.vy),L.replace(/-/g,"+").replace(/_/g,"/"),function(x){A.ports[0].postMessage({success:!0,buyFlowResponse:x})},void 0,function(x){A.ports[0].postMessage({success:!1,
error:x&&x.message||"Buyflow rejected without error."})},_.qG().get("hl"),void 0,function(){A.ports[0].postMessage({closed:!0})},O,X)};
_.P.setupPlayerProgressRelay=function(){var A=this;if(!this.isListeningForPlayerProgress){var L=_.Yu();L!=null&&L.getPlayerPromise&&(L.getPlayerPromise().then(function(O){A.playerApiReady(O)}),this.isListeningForPlayerProgress=!0)}};
_.P.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.P.playerApiReady=function(A){this.setPlayer(A)};
_.P.playerProgressHandler=function(){if(this.player){var A=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":A.current})}};
_.P.playerAdStartHandler=function(A){this.postToContentWindow({"yt-player-ad-start":A})};
_.P.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.P.playerStateChangeHandler=function(A){this.postToContentWindow({"yt-player-state-change":A})};
_.P.setPlayer=function(A){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$23495_playerEvents);A&&(this.player=A,this.ytPlayerListenerBehavior.listenToPlayerEvents(A,this.JSC$23495_playerEvents),_.P4(this.hostElement,"player-api-ready"))};
_.P.liveChatPageUrl=function(A,L,O,X){return!O||L?"about:blank":O.liveChatRenderer?(L=_.jV(this.currentPageUrl).JSC$11053_queryData_,O6a(L),A=_.jV(A),L.add("continuation",O.liveChatRenderer.continuations[0].reloadContinuationData.continuation),O=_.C3()==="USER_INTERFACE_THEME_DARK",(X||O)&&L.add("dark_theme","true"),_.Vv(A,L),X=_.jV(A.toString()),O=X.JSC$11053_queryData_,"SESSION_INDEX"in _.RO&&(O.add("authuser",_.ms("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.RO&&O.add("pageId",_.ms("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.RO&&O.add("sdc",_.ms("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),X.toString()):""};
_.P.isCollapsed=function(A,L){return L!==null?L:this.isChatReplay()||A&&A.conversationBarRenderer&&A.conversationBarRenderer.availabilityMessage?!0:A?A.liveChatRenderer?A.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.h("live_chat_hide_premiere_replay_message")||A.conversationBarRenderer&&A.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.P.isHidden=function(A,L,O){var X=L&&L.conversationBarRenderer&&L.conversationBarRenderer.availabilityMessage,x=L&&L.liveChatRenderer&&L.liveChatRenderer.showHideButton,J=L&&L.liveChatRenderer&&L.liveChatRenderer.showButton;return O&&A&&!X&&!J||!O&&A&&!X&&!x?!0:L&&L.liveChatRenderer&&L.liveChatRenderer.initialDisplayState?L.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.P.computeButtonOverride=function(A,L){if(A&&L)return{type:"outline"}};
_.P.setCollapsedState=function(A){_.q(A,_.LdH)&&(this.isHiddenByUser=!!_.q(A,_.LdH).collapsed,!this.isHiddenByUser&&_.h("enable_teaser_framework_web_client")&&_.dQ(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.P.forwardReduxActionToIframe=function(A){this.postToContentWindow({"yt-live-chat-forward-redux-action":A})};
_.P.onLoopRangeChange=function(A){this.showAboveScrim=!(A==null||!A.postId)};
_.P.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.P.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.P.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.P.sendDarkThemePostMessage=function(A){this.postToContentWindow({"yt-live-chat-set-dark-theme":A})};
_.P.onLiveChatBuyFlowCallback=function(A){this.postToContentWindow({"yt-live-chat-buy-flow-callback":A})};
_.P.handleKeyboardEvent=function(A){(0,_.lW.containsValue)(L$W,A.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:A.type,keyCode:A.keyCode}})};
_.P.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.P.postToContentWindow=function(A){if(this.isFrameReady)try{var L=window.location.protocol+"//"+window.location.host,O;(O=this.chatframe)!=null&&O.contentWindow?this.chatframe.contentWindow.postMessage(A,L):_.Rv(new _.pe("Tried posting a message to an iframe with no content window",A))}catch(X){_.C7(X)}};
_.P.shouldHideChatFrame=function(A){return A&&_.h("hide_live_chat_button_when_collapsed")};
_.v2.Object.defineProperties(pQ.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.h("live_chat_overflow_hide_chat")||_.h("web_watch_chat_hide_button_killswitch"))return _.h("live_chat_overflow_hide_chat");var A,L,O,X;return!!((A=this.data)==null?0:(L=A.liveChatRenderer)==null?0:(O=L.header)==null?0:(X=O.liveChatHeaderRenderer)==null?0:X.collapseButton)}}});
pQ.prototype.collapsedChanged=pQ.prototype.collapsedChanged;pQ.prototype.urlChanged=pQ.prototype.urlChanged;pQ.prototype.dataChanged=pQ.prototype.dataChanged;pQ.prototype.onShowHideChat=pQ.prototype.onShowHideChat;_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],pQ.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],pQ.prototype,"ytRendererBehavior",void 0);
_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],pQ.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.LE.YtPlayerListenerBehavior),_.Z("design:type",_.Oo)],pQ.prototype,"ytPlayerListenerBehavior",void 0);_.I([_.N(_.iv.YtOpenPopupBehavior),_.Z("design:type",Object)],pQ.prototype,"ytOpenPopupBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],pQ.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],pQ.prototype,"currentPageUrl",void 0);
_.I([_.K({computed:"computeBaseUrl(currentPageUrl,data)"}),_.Z("design:type",Object)],pQ.prototype,"baseUrl",void 0);_.I([_.K({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.Z("design:type",String)],pQ.prototype,"url",void 0);_.I([_.K(),_.Z("design:type",Object)],pQ.prototype,"isHiddenByUser",void 0);_.I([_.K({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.Z("design:type",Object)],pQ.prototype,"hidden",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.Z("design:type",Boolean)],pQ.prototype,"collapsed",void 0);_.I([_.K({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.Z("design:type",Boolean)],pQ.prototype,"hideChatFrame",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],pQ.prototype,"showAboveScrim",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],pQ.prototype,"watchNextGrid",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],pQ.prototype,"modernButtons",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],pQ.prototype,"roundedContainer",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],pQ.prototype,"noBorder",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],pQ.prototype,"roundBackground",void 0);
_.I([_.K({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.Z("design:type",Object)],pQ.prototype,"toggleButtonOverride",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],pQ.prototype,"overflowHideChat",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],pQ.prototype,"forceDarkTheme",void 0);_.I([_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],pQ.prototype,"enableShowWithoutHideChatButton",null);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],pQ.prototype,"theaterWatchWhile",void 0);_.I([_.qR("#chatframe"),_.Z("design:type",HTMLIFrameElement)],pQ.prototype,"chatframe",void 0);_.I([_.by("yt-toggle-button"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],pQ.prototype,"onShowHideChat",null);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],pQ.prototype,"dataChanged",null);
_.I([_.hT("url"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],pQ.prototype,"urlChanged",null);_.I([_.hT("collapsed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],pQ.prototype,"collapsedChanged",null);_.I([_.Q({is:"ytd-live-chat-frame",disableElementRegistration:!0})],pQ);
_.m(pQ,"ytd-live-chat-frame",function(){if(wfW!==void 0)return wfW;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return wfW=A},{mode:1});var pfP;var iD=function(){var A=_.G.apply(this,arguments)||this;A.modern=_.h("web_modern_buttons");A.buttonOverrides={style:"call-to-action",type:"filled"};return A};
_.g(iD,_.G);iD.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=_.Wy(this.data.backgroundColor)))};
iD.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var A=this.getFormattedStringLoggingDirectives(this.data.headline);A&&this.rendererBehavior.logExplicitClick(A)}};
iD.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var A=this.getFormattedStringLoggingDirectives(this.data.description);A&&this.rendererBehavior.logExplicitClick(A)}};
iD.prototype.getFormattedStringLoggingDirectives=function(A){return A&&A.runs&&A.runs.length>0&&A.runs[0]&&A.runs[0].loggingDirectives?A.runs[0].loggingDirectives:null};
iD.prototype.dataChanged=iD.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],iD.prototype,"rendererBehavior",void 0);_.I([_.N(uPw.YtMacroReplacementBehavior),_.Z("design:type",Object)],iD.prototype,"macroReplacementBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],iD.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],iD.prototype,"navigationEndpoint",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],iD.prototype,"enableColors",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],iD.prototype,"modern",void 0);_.I([_.K(),_.Z("design:type",Object)],iD.prototype,"buttonOverrides",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],iD.prototype,"dataChanged",null);_.I([_.Q({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],iD);
_.m(iD,"ytd-action-basic-immersive-content-renderer",function(){if(pfP!==void 0)return pfP;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return pfP=A},{mode:1});var i_2;var Nwo;var NC=function(){return _.G.apply(this,arguments)||this};
_.g(NC,_.G);NC.prototype.dataChanged=function(){var A;((A=this.data)==null?void 0:A.backgroundColor)!==void 0&&_.eq(this.hostElement,{"--bgu-color":_.Wy(this.data.backgroundColor)})};
NC.prototype.onImageTileClick=function(){var A;((A=this.data)==null?0:A.navigationEndpoint)&&_.P4(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var L;((L=this.data)==null?0:L.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.v2.Object.defineProperties(NC.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var A;if(((A=this.data)==null?void 0:A.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 A;return((A=this.data)==null?void 0:A.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var A,L,O;if(((A=this.data)==null?void 0:(L=A.detailsLine)==null?void 0:L.texts)!=null&&((O=this.data)==null?void 0:O.detailsLine.texts.length)>0){var X;return(X=this.data)==null?void 0:X.detailsLine.texts.map(function(x){return x.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var A,L,O;if(((A=this.data)==null?void 0:(L=A.optionalDetailsLine)==null?void 0:L.texts)!=null&&((O=this.data)==null?void 0:O.optionalDetailsLine.texts.length)>0){var X;return(X=this.data)==null?void 0:X.optionalDetailsLine.texts.map(function(x){return x.text}).join("")}return null}}});
NC.prototype.dataChanged=NC.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],NC.prototype,"rendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],NC.prototype,"componentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],NC.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.r("data.backgroundColor"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],NC.prototype,"hasBackgroundColor",null);
_.I([_.r("data.objectFit"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],NC.prototype,"getObjectFit",null);_.I([_.K({reflectToAttribute:!0}),_.r("data.tileRenderingStyle"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],NC.prototype,"hasTileMetadata",null);_.I([_.r("data.detailsLine"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],NC.prototype,"getSecondaryDetails",null);
_.I([_.r("data.optionalDetailsLine"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],NC.prototype,"getOptionalDetails",null);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],NC.prototype,"dataChanged",null);_.I([_.Q({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],NC);
_.m(NC,"ytd-image-tile-renderer",function(){if(Nwo!==void 0)return Nwo;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Nwo=A},{mode:1});var rEJ;var rH=function(){return _.G.apply(this,arguments)||this};
_.g(rH,_.G);rH.prototype.getOpenLinkIcon=function(){return _.h("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
rH.prototype.onSitelinkTap=function(){_.P4(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.h("kevlar_command_handler_migration_killswitch"))_.VN(this.hostElement,this.data.clickCommands,this.hostElement);else for(var A=_.d(this.data.clickCommands),L=A.next();!L.done;L=A.next())this.ytComponentBehavior.resolveCommand(L.value)};
_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],rH.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],rH.prototype,"rendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],rH.prototype,"data",void 0);_.I([_.Q({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],rH);
_.m(rH,"ytd-sitelink-renderer",function(){if(rEJ!==void 0)return rEJ;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return rEJ=A},{mode:1});var KQ=function(){var A=_.G.apply(this,arguments)||this;A.paddingFix=_.h("enable_ads_web_ep_buenos_aires_and_padding_fix");return A};
_.g(KQ,_.G);KQ.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"}}}};
KQ.prototype.dataChanged=function(){var A=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(L){L.clickTrackingParams&&delete L.clickTrackingParams;A.ytMacroReplacementBehavior.sendServiceRequestAction([L])})};
KQ.prototype.shouldHideFooter=function(A){return!(A&&_.h("use_ads_engagement_panel_desktop_footer_cta"))};
_.v2.Object.defineProperties(KQ.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var A,L;return((A=this.data)==null?void 0:A.imageTileRenderers)===void 0||((L=this.data)==null?void 0:L.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(O){var X;return(X=_.q(O,PHo))==null?void 0:X.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var A,L;return((A=this.data)==null?void 0:A.imageTileRenderers)===void 0||((L=this.data)==null?void 0:L.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(O){var X;return((X=_.q(O,PHo))==null?void 0:X.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
KQ.prototype.dataChanged=KQ.prototype.dataChanged;_.I([_.N(uPw.YtMacroReplacementBehavior),_.Z("design:type",Object)],KQ.prototype,"ytMacroReplacementBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],KQ.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],KQ.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],KQ.prototype,"data",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],KQ.prototype,"paddingFix",void 0);_.I([_.K({reflectToAttribute:!0}),_.r("data.imageTileRenderers"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],KQ.prototype,"removeBorderFromImageTiles",null);_.I([_.K({reflectToAttribute:!0}),_.r("data.imageTileRenderers"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],KQ.prototype,"useFooteredMetadataRenderingStyle",null);
_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],KQ.prototype,"dataChanged",null);_.I([_.Q({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],KQ);
_.m(KQ,"ytd-action-engagement-panel-content-renderer",function(){if(i_2!==void 0)return i_2;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return i_2=A},{mode:1});var KJa;var G2D=_.xa(function(A){var L=A.data;var O=A.customCommandResolver;return _.D("ad-grid-card-image-full-metadata-view-model",{class:function(){var X;return((X=L().interaction)==null?0:X.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.sC(_.Oj({visibilityCallback:function(X){var x,J=(x=L().interaction)==null?void 0:x.onFirstVisible;X&&J&&_.$a(J)},
showOption:_.JN}),_.Uk(function(){return L().interaction},O)),
"aria-label":function(){var X,x;return(X=L().interaction)==null?void 0:(x=X.accessibility)==null?void 0:x.label}},_.D("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.D(_.ID,{data:function(){return L().adImage}},{adImageViewModel:function(X){return _.D(_.g3,{data:X.data,
customCommandResolver:O})}})),_.D("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.D(_.e,{cond:function(){return L().headline},
then:function(X){return _.D(_.Xg,{text:X,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.D(_.e,{cond:function(){return L().detailsLine},
then:function(X){return _.D("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.D(_.ID,{data:X},{adDetailsLineViewModel:function(x){return _.D(_.n0,{data:x.data,customCommandResolver:O,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.D(_.e,{cond:function(){return L().secondaryDetailsLine},
then:function(X){return _.D("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.D(_.ID,{data:X},{adDetailsLineViewModel:function(x){return _.D(_.n0,{data:x.data,customCommandResolver:O,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Bj");var lDa=_.xa(function(A){var L=A.data;var O=A.customCommandResolver;return _.D("ad-grid-card-image-view-model",{class:function(){var X;return((X=L().interaction)==null?0:X.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.sC(_.Oj({visibilityCallback:function(X){var x,J=(x=L().interaction)==null?void 0:x.onFirstVisible;X&&J&&_.$a(J)},
showOption:_.JN}),_.Uk(function(){return L().interaction},O)),
"aria-label":function(){var X,x;return(X=L().interaction)==null?void 0:(x=X.accessibility)==null?void 0:x.label}},_.D(_.ID,{data:function(){return L().adImage}},{adImageViewModel:function(X){return _.D(_.g3,{data:X.data,
customCommandResolver:O})}}),_.D("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.D(_.ID,{data:function(){return L().adCardBadge}},{adCardBadgeViewModel:_.HNn})))},"Cj");var cEw=_.xa(function(A){var L=A.data;var O=A.customCommandResolver;return _.D("ad-grid-card-text-view-model",{class:function(){var X;return((X=L().interaction)==null?0:X.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.sC(_.Oj({visibilityCallback:function(X){var x,J=(x=L().interaction)==null?void 0:x.onFirstVisible;X&&J&&_.$a(J)},
showOption:_.JN}),_.Uk(function(){return L().interaction},O)),
"aria-label":function(){var X,x;return(X=L().interaction)==null?void 0:(x=X.accessibility)==null?void 0:x.label}},_.D("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.D(_.e,{cond:function(){return L().title},
then:function(X){return _.D(_.Xg,{text:X,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.D("div",{class:function(){return _.h("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.D(_.g9,{each:function(){var X;
return((X=L())==null?void 0:X.descriptions)||[]},
keyBy:"INDEX"},function(X){return _.D(_.Xg,{text:X,className:function(){return _.h("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.D("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.D(_.ID,{data:function(){return L().moreInfoButton}},{adButtonViewModel:function(X){return _.D(_.dn,{data:X.data,
customCommandResolver:O})}})))},"Dj");var Cag=_.xa(function(A){var L=A.data;var O=A.customCommandResolver;var X=A.adGridCardCollectionStyle;return _.D("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.sC(_.Oj({visibilityCallback:function(x){var J,Y=(J=L().interaction)==null?void 0:J.onFirstVisible;x&&Y&&_.$a(Y)},
showOption:_.JN})),style:function(){return"grid-template-columns: repeat("+Sua(X?X():L().style)+", minmax(0, 1fr));"}},_.D(_.ID,{data:function(){var x;
return(x=L())==null?void 0:x.gridCards}},{adGridCardImageViewModel:function(x){return _.D(lDa,{data:x.data,
customCommandResolver:O})},
adGridCardImageFullMetadataViewModel:function(x){return _.D(G2D,{data:x.data,customCommandResolver:O})},
adGridCardTextViewModel:function(x){return _.D(cEw,{data:x.data,customCommandResolver:O})}}))},"Ej");_.Y4(_.xa(function(A){var L=A.data;return _.D("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.sC(_.Oj({visibilityCallback:function(O){var X,x=(X=L().interaction)==null?void 0:X.onFirstVisible;O&&x&&_.$a(x)},
showOption:_.JN}),_.Uk(function(){return L().interaction},quo))},_.D("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.D(_.e,{cond:_.HVr("(min-width: "+((0,_.U5)()+_.Zp)+"px)"),
then:function(){return _.D(_.ID,{data:function(){return L().adGridCardCollection}},{adGridCardCollectionViewModel:function(O){return _.D(Cag,{data:O.data,
customCommandResolver:quo})}})},
else:function(){return _.D(_.ID,{data:function(){return L().adGridCardCollection}},{adGridCardCollectionViewModel:function(O){return _.D(Cag,{data:O.data,
customCommandResolver:quo,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.D("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.D(_.ID,{data:function(){return L().adButton}},{adButtonViewModel:function(O){return _.D(_.dn,{data:O.data,
customCommandResolver:quo})}})))},"Fj"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.x5}});_.Y4(_.xa(function(A){var L=A.data;return _.D("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.sC(_.Oj({visibilityCallback:function(O){var X,x=(X=L().interaction)==null?void 0:X.onFirstVisible;O&&x&&_.$a(x)},
showOption:_.JN}),_.Uk(function(){return L().interaction},geP))},_.D("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.D(_.ID,{data:function(){if(_.HVr("(min-width: "+((0,_.U5)()+_.Zp)+"px)")())var O=L().adGridCardCollection;
else{O=Object.assign({},_.q(L().adGridCardCollection,dNP));var X;O.gridCards!==void 0&&((X=O.gridCards)==null?void 0:X.length)>1?O.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":O.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";O={adGridCardCollectionViewModel:O}}return O}},{adGridCardCollectionViewModel:function(O){return _.D(Cag,{data:O.data,
customCommandResolver:geP})}})),_.D("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.D(_.ID,{data:function(){return L().adButton}},{adButtonViewModel:function(O){return _.D(_.dn,{data:O.data,
customCommandResolver:geP})}})))},"Gj"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.x5}});var GS=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return A};
_.g(GS,_.G);_.P=GS.prototype;_.P.configureRendererStamper=function(){return{"data.contentRenderer":{id:"content",mapping:{actionEngagementPanelContentRenderer:"ytd-action-engagement-panel-content-renderer",basicImmersiveEngagementPanelContentRenderer:"ytd-action-basic-immersive-content-renderer",panelTextIconImageTilesButtonLayoutContentViewModel:"panel-text-icon-image-tiles-button-layout-content-view-model",panelTextIconTextGridCardsSubLayoutContentViewModel:"panel-text-icon-text-grid-cards-sub-layout-content-view-model"}}}};
_.P.attached=function(){this.getDataFromPlayerAndRender()};
_.P.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.P.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.P.getDataFromPlayerAndRender=function(){var A=this,L=_.d0(this.hostElement);L&&L.getPlayerPromise().then(function(O){A.getCachedDataAndListen(O)})};
_.P.getCachedDataAndListen=function(A){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(A,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(A,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=A)};
_.P.resolveCachedActions=function(){var A=_.WY("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(A=A&&A())&&!_.lW.isEmpty(A)&&this.sendUpdateEngagementPanelAction(A);(A=(A=_.WY("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&A())&&!_.lW.isEmpty(A)&&this.sendChangeEngagementPanelVisibilityAction(A);(A=(A=_.WY("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&A())&&!_.lW.isEmpty(A)&&this.sendScrollToEngagementPanelCommand(A)};
_.P.sendUpdateEngagementPanelAction=function(A){var L;_.dQ(this.hostElement,"yt-update-engagement-panel-action",[(L=_.lW.get(A,"action"))!=null?L:A])};
_.P.sendChangeEngagementPanelVisibilityAction=function(A){_.dQ(this.hostElement,"yt-change-engagement-panel-visibility-action",[A])};
_.P.sendScrollToEngagementPanelCommand=function(A){_.dQ(this.hostElement,"yt-scroll-to-engagement-panel-command",[A])};
_.P.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.h("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.Rv(Error("wo"))};
GS.prototype.dataChanged=GS.prototype.dataChanged;_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],GS.prototype,"actionHandlerBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],GS.prototype,"componentBehavior",void 0);_.I([_.N(_.LE.YtPlayerListenerBehavior),_.Z("design:type",_.Oo)],GS.prototype,"ytPlayerListenerBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],GS.prototype,"ytRendererBehavior",void 0);
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],GS.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],GS.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],GS.prototype,"player",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],GS.prototype,"dataChanged",null);_.I([_.Q({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],GS);
_.m(GS,"ytd-ads-engagement-panel-content-renderer",function(){if(KJa!==void 0)return KJa;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);
return KJa=A},{mode:1});var FJB;var lD=function(){var A=_.G.apply(this,arguments)||this;A.player=null;A.JSC$23532_playerEvents=new Map;A.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return A};
_.g(lD,_.G);_.P=lD.prototype;_.P.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer",commentActionButtonsRenderer:{component:"ytd-comment-action-buttons-renderer",properties:{voteCount:"[[voteCount]]"}}}}}};
_.P.created=function(){this.player=null;this.JSC$23532_playerEvents=new Map;this.JSC$23532_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$23532_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$23532_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$23532_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.P.attached=function(){var A=this,L=_.d0();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));L&&L.getPlayerPromise().then(function(O){A.setPlayer(O);A.set("isPageLoad",!1)})};
_.P.setPlayer=function(A){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$23532_playerEvents);this.set("player",A);A&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(A,this.JSC$23532_playerEvents),A.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.P.onLoopRangeChange=function(A){var L=_.X5().resolve(_.Ot(_.JI));if((!L||L.isOnWatch())&&this.hostElement.clientHeight){var O;!A&&((O=this.data)==null?0:O.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.P.onVideoProgress=function(A){var L,O,X=((L=this.player)==null?void 0:(O=L.getPresentingPlayerType)==null?void 0:O.call(L))===2;this.isAdPlaying!==X&&this.set("isAdPlaying",X);var x;if(!X&&(x=this.player)!=null&&x.getLoopRange()){O=this.player.getLoopRange();L=O.startTimeMs;O=O.endTimeMs;X=this.player.getProgressState(1).seekableStart;var J;L<X*1E3&&((J=this.data)==null?0:J.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
A=O<A*1E3;var Y;((Y=this.player)==null?0:Y.getLoopRange())&&A&&this.player.seekTo(L/1E3)}};
_.P.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.P.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.P.onYtDeleteClipEngagementPanelCommand=function(A){_.q(A,wnW).command&&this.ytComponentBehavior.resolveCommand(_.q(A,wnW).command)};
_.v2.Object.defineProperties(lD.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.voteCount)||_.Ue("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],lD.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],lD.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],lD.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],lD.prototype,"ytRendererBehavior",void 0);
_.I([_.N(_.LE.YtPlayerListenerBehavior),_.Z("design:type",_.Oo)],lD.prototype,"ytPlayerListenerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],lD.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],lD.prototype,"isAdPlaying",void 0);_.I([_.K({reflectToAttribute:!0,value:!0}),_.Z("design:type",Boolean)],lD.prototype,"isPageLoad",void 0);_.I([_.K({reflectToAttribute:!0,value:!0}),_.Z("design:type",Boolean)],lD.prototype,"isDarkTheme",void 0);
_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],lD.prototype,"voteCount",null);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],lD.prototype,"channelEndpoint",null);_.I([_.r("channelEndpoint"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],lD.prototype,"channelHref",null);_.I([_.Q({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],lD);
_.m(lD,"ytd-clip-attribution-renderer",function(){if(FJB!==void 0)return FJB;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return FJB=A},{mode:1});var R32;var cp=function(){var A=_.G.apply(this,arguments)||this;A.player=null;A.JSC$23537_playerEvents=new Map;return A};
_.g(cp,_.G);_.P=cp.prototype;_.P.created=function(){this.player=null;this.JSC$23537_playerEvents=new Map;this.JSC$23537_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$23537_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$23537_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.P.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.P.attached=function(){var A=this,L=_.d0();L&&L.getPlayerPromise().then(function(O){A.setPlayer(O);A.set("isPageLoad",!1)})};
_.P.setPlayer=function(A){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$23537_playerEvents);this.set("player",A);if(A){this.ytPlayerListenerBehavior.listenToPlayerEvents(A,this.JSC$23537_playerEvents);var L;(A==null?void 0:(L=A.getPresentingPlayerType)==null?void 0:L.call(A))===2&&this.playerAdStartHandler()}};
_.P.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.P.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.P.onVideoProgress=function(){var A,L,O=((A=this.player)==null?void 0:(L=A.getPresentingPlayerType)==null?void 0:L.call(A))===2;this.isAdPlaying!==O&&this.set("isAdPlaying",O)};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],cp.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],cp.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.LE.YtPlayerListenerBehavior),_.Z("design:type",_.Oo)],cp.prototype,"ytPlayerListenerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],cp.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],cp.prototype,"isAdPlaying",void 0);
_.I([_.K({reflectToAttribute:!0,value:!0}),_.Z("design:type",Boolean)],cp.prototype,"isPageLoad",void 0);_.I([_.Q({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],cp);
_.m(cp,"ytd-clip-section-footer-renderer",function(){if(R32!==void 0)return R32;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return R32=A},{mode:1});var QPJ;var m03;var CQ=function(){return _.G.apply(this,arguments)||this};
_.g(CQ,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],CQ.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],CQ.prototype,"data",void 0);_.I([_.Q({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],CQ);
_.m(CQ,"ytd-clip-ad-state-renderer",function(){if(m03!==void 0)return m03;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return m03=A},{mode:1});var fDB;var Fj=function(){var A=_.G.apply(this,arguments)||this;A.value="";A.valid=!1;A.userChangedValue=!1;A.disabled=!1;A.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return A};
_.g(Fj,_.G);_.P=Fj.prototype;_.P.detached=function(){this.userChangedValue=!1};
_.P.handleKeyDown=function(A){if(_.ns)var L=13;else _.$sd&&_.tW?L=13:L=13;A.keyCode===L&&A.preventDefault()};
_.P.handleInput=function(){var A=_.YJ(this.hostElement).querySelector("#title");if(A){var L=(A.value||"").replace(/\r|\n/g," ");this.set("value",L);A.value=L;this.valid=A.validate();this.userChangedValue=!0}};
_.P.handleBlur=function(){this.valid=_.YJ(this.hostElement).querySelector("#title").validate()};
_.P.onValueChanged=function(){_.P4(this.hostElement,"title-changed",{title:this.value})};
_.P.onValidChanged=function(){_.P4(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.P.setInput=function(A,L){var O=_.YJ(this.hostElement).querySelector("#title");O&&(O.value=A,this.handleInput(),L&&(O.invalid=!1,this.valid=!0))};
_.P.onClipCreationDisable=function(){this.set("disabled",!0)};
_.P.onClipCreationEnable=function(){this.set("disabled",!1)};
_.P.onClipCreationVisibilityChange=function(A){var L=this;A.visible?requestAnimationFrame(function(){var O;((O=_.YJ(L.hostElement).querySelector("#title"))==null?void 0:O.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
Fj.prototype.onValidChanged=Fj.prototype.onValidChanged;Fj.prototype.onValueChanged=Fj.prototype.onValueChanged;Fj.prototype.handleBlur=Fj.prototype.handleBlur;Fj.prototype.handleInput=Fj.prototype.handleInput;Fj.prototype.handleKeyDown=Fj.prototype.handleKeyDown;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Fj.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],Fj.prototype,"ytActionHandlerBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],Fj.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],Fj.prototype,"value",void 0);_.I([_.K(),_.Z("design:type",Object)],Fj.prototype,"valid",void 0);_.I([_.K(),_.Z("design:type",Object)],Fj.prototype,"userChangedValue",void 0);_.I([_.K(),_.Z("design:type",Object)],Fj.prototype,"disabled",void 0);_.I([_.by("keydown"),_.Z("design:type",Function),_.Z("design:paramtypes",[KeyboardEvent]),_.Z("design:returntype")],Fj.prototype,"handleKeyDown",null);
_.I([_.by("input"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Fj.prototype,"handleInput",null);_.I([_.by("blur"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Fj.prototype,"handleBlur",null);_.I([_.hT("value"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Fj.prototype,"onValueChanged",null);
_.I([_.hT("valid"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Fj.prototype,"onValidChanged",null);_.I([_.Q({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],Fj);
_.m(Fj,"ytd-clip-creation-text-input-renderer",function(){if(fDB!==void 0)return fDB;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return fDB=A},{mode:1});var IDP;var yEW;var Z_P;var jPP;var WJJ;var RA=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};A.pendingStoryboardImages_={};A.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];A.tickLabelInterval=30;A.mediumTickInterval=5;A.largeTickInterval=15;A.aboveRulerHeight=32;A.rulerHeight=50;A.smallTickHeight=4;A.mediumTickHeight=8;A.largeTickHeight=16;A.mediaListeners_=
{};return A};
_.g(RA,_.G);_.P=RA.prototype;_.P.attached=function(){var A=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(L){L=_.d(["screen and (min-resolution: "+L+")","screen and (max-resolution: "+L+")"]);for(var O=L.next();!O.done;O=L.next()){O=O.value;var X=window.matchMedia(O);X&&(A.mediaListeners_[O]=A.updatePixelRatio_.bind(A),X.addEventListener?X.addEventListener("change",A.mediaListeners_[O]):X.addListener?X.addListener(A.mediaListeners_[O]):delete A.mediaListeners_[O])}})};
_.P.detached=function(){this.setPlayer(null);for(var A=_.d(Object.keys(this.mediaListeners_)),L=A.next();!L.done;L=A.next()){var O=L.value;L=this.mediaListeners_[O];(O=window.matchMedia(O))&&(O.removeEventListener?O.removeEventListener("change",L):O.removeListener&&O.removeListener(L))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.P.onVisibilityChangedAction_=function(A){var L=this;A.visible&&!this.player_&&(A=_.d0())&&A.getPlayerPromise().then(function(O){L.setPlayer(O)})};
_.P.setPlayer=function(A){A&&this.set("player_",A)};
_.P.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.P.setUpCanvas_=function(){var A=this.rulerWidth,L=this.devicePixelRatio_,O=this.visible;this.set("canvasReady_",!1);if(O&&L!==0){O=this.aboveRulerHeight+this.rulerHeight;var X=_.YJ(this.hostElement).querySelector("#ticks");X.width=A*L;X.height=O*L;X.style.width=A+"px";X.style.height=O+"px";X.getContext("2d").scale(L,L);this.set("canvasReady_",!0)}};
_.P.drawRuler_=function(A,L,O,X,x,J,Y,T,V,E,n,t){A&&O&&L&&(A=_.YJ(this.hostElement).querySelector("#ticks"),L=A.getContext("2d"),L.clearRect(0,0,A.width,A.height),L.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),L.lineWidth=2,L.beginPath(),L.moveTo(0,this.aboveRulerHeight),L.lineTo(A.width,this.aboveRulerHeight),L.moveTo(0,A.height),L.lineTo(A.width,A.height),L.stroke(),this.drawRulerTicks_(A,J,x,X),this.drawStoryboardImages_(A,O,J,x,X),L.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
L.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(Y-J,X,!1),this.rulerHeight),O=this.timeToPixels_(T-J,X,!1),L.fillRect(O,this.aboveRulerHeight,A.width-O,this.rulerHeight),this.drawSpeedLines_(A,J,t))};
_.P.drawRulerTicks_=function(A,L,O,X){var x=A.getContext("2d");x.save();x.lineWidth=1;for(var J=Math.floor(Math.max(0,L-this.tickLabelInterval));J<L+O;J++){x.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var Y=(J-L)*X;x.beginPath();x.moveTo(Y,A.height);var T=this.smallTickHeight;J%this.largeTickInterval===0?T=this.largeTickHeight:J%this.mediumTickInterval===0&&(T=this.mediumTickHeight);x.lineTo(Y,A.height-T);x.stroke();J%this.tickLabelInterval===0&&(x.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),x.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),x.fillText(cl(J),Y+4,12),x.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),x.moveTo(Y,0),x.lineTo(Y,this.aboveRulerHeight),x.stroke())}x.restore()};
_.P.percentToHex_=function(A){A=Math.round(A*255).toString(16);A.length<2&&(A="0"+A);return A};
_.P.drawSpeedLines_=function(A,L,O){var X=A.getContext("2d");X.save();var x=Math.min(25,Math.abs(O)-15)/25,J=A.width*.3*x,Y=A.width*-.3,T=A.width*1.3,V=this.aboveRulerHeight;A=A.height;var E=Math.round(4*x),n=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");n.length<7&&(n="#"+n.substring(1,4).repeat(2));var t=this.percentToHex_(.5+x/2);t=n+t;n+="00";if(x>0)for(x=0;x<E;x++){var b=Y+Math.random()*(T-Y),S=V+Math.random()*(A-V),w=J+L%J,l=X.createLinearGradient(b,S,b+w,S);
O<0?(l.addColorStop(0,t),l.addColorStop(.4,t),l.addColorStop(.9,n)):(l.addColorStop(.1,n),l.addColorStop(.6,t),l.addColorStop(1,t));X.strokeStyle=l;X.lineWidth=1;X.beginPath();X.moveTo(b,S);X.lineTo(b+w,S);X.stroke()}X.restore()};
_.P.getStoryboardForTime_=function(A,L,O){O===void 0&&(O=L.getNumberOfStoryboardLevels()-1);A=L.getStoryboardFrameIndex(A,O);return L.getStoryboardFrame(A,O)};
_.P.drawStoryboardImages_=function(A,L,O,X,x){if(!this.disabled){A=A.getContext("2d");var J=this.getStoryboardForTime_(0,L);if(J){var Y=J.width/J.columns;J=J.height/J.rows;var T=Y/J,V=this.rulerHeight*T;V=this.tickLabelInterval*(T<this.tickLabelInterval*x/this.rulerHeight?1/Math.floor(this.tickLabelInterval*x/V):Math.round(V/(this.tickLabelInterval*x)));var E=V*x,n=this.rulerHeight,t=E/this.rulerHeight,b=Math.floor(Math.max(0,O-V));for(b-=b%V;b<O+X;b+=V){var S=this.getStoryboardForTime_(b,L),w=this.getPreloadedStoryboard_(S.url);
if(w){var l=(b-O)*x,F=this.aboveRulerHeight,R=S.column*Y,y=S.row*J;if(T<t){var M=n/(E/T);S=Y;M*=J;y+=(J-M)/2}else S=E/(n*T)*Y,M=J,R+=(Y-S)/2;A.drawImage(w,R,y,S,M,l,F,E,n)}else this.fetchStoryboardImage_(S)}}}};
_.P.getPreloadedStoryboard_=function(A){return this.storyboardImages_.find(function(L){if(L.src==A)return!0;var O=L.src.indexOf(A);return O!=-1&&O==L.src.length-A.length})};
_.P.fetchStoryboardImage_=function(A){var L=this,O=this.getPreloadedStoryboard_(A.url),X=this.pendingStoryboardImages_[A.url];O||X!==void 0||(O=new Promise(function(x){var J=new Image(A.width,A.height);J.src=A.url;J.onload=function(){x(J)};
J.onerror=function(){x(null)}}),this.pendingStoryboardImages_[A.url]=O,O.then(function(x){x&&L.push("storyboardImages_",x);
return x}).finally(function(){delete L.pendingStoryboardImages_[A.url]}))};
_.P.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.P.timeToPixels_=function(A,L,O){A*=L;return O===void 0||O?A+"px":A};
_.P.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
RA.prototype.drawRuler_=RA.prototype.drawRuler_;RA.prototype.setUpCanvas_=RA.prototype.setUpCanvas_;_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],RA.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],RA.prototype,"ytRendererBehavior",void 0);_.I([_.K({value:0}),_.Z("design:type",Number)],RA.prototype,"start",void 0);_.I([_.K({value:30}),_.Z("design:type",Number)],RA.prototype,"end",void 0);
_.I([_.K({value:!1}),_.Z("design:type",Boolean)],RA.prototype,"visible",void 0);_.I([_.K(),_.Z("design:type",Object)],RA.prototype,"player_",void 0);_.I([_.K(),_.Z("design:type",Number)],RA.prototype,"tickSpacing",void 0);_.I([_.K(),_.Z("design:type",Number)],RA.prototype,"windowSizeSec",void 0);_.I([_.K({value:0}),_.Z("design:type",Number)],RA.prototype,"rulerWidth",void 0);_.I([_.K({value:0}),_.Z("design:type",Number)],RA.prototype,"rulerShift",void 0);
_.I([_.K({value:!1}),_.Z("design:type",Boolean)],RA.prototype,"canvasReady_",void 0);_.I([_.K({value:function(){return[]}}),
_.Z("design:type",Array)],RA.prototype,"storyboardImages_",void 0);_.I([_.K({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],RA.prototype,"disabled",void 0);_.I([_.K({value:0}),_.Z("design:type",Number)],RA.prototype,"forceRender_",void 0);_.I([_.K({value:1}),_.Z("design:type",Number)],RA.prototype,"devicePixelRatio_",void 0);_.I([_.K({value:0}),_.Z("design:type",Number)],RA.prototype,"windowSpeed",void 0);
_.I([_.hT("visible","devicePixelRatio_","rulerWidth"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],RA.prototype,"setUpCanvas_",null);
_.I([_.hT("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.Z("design:type",Function),_.Z("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.Z("design:returntype")],RA.prototype,"drawRuler_",null);_.I([_.yU({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],RA);
_.m(RA,"yt-clip-creation-scrubber-canvas",function(){if(WJJ===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);WJJ=A}A=WJJ;return A},
{mode:2});var H_g;var z3_;var QJ=function(){var A=_.G.apply(this,arguments)||this;A.start=0;A.end=30;A.visible=!1;A.draggingLeft_=!1;A.draggingRight_=!1;A.draggingRuler_=!1;A.draggingWindow_=!1;A.seekableStart=0;A.seekableEnd=0;A.rulerWidth_=0;A.rulerShift_=0;A.windowSlideSpeed=0;A.disabled=!1;A.initialized=!1;A.durationAccessibilityLabel="";A.activeLoopRange_=!1;A.rulerDragMouseStart_=0;A.rulerDragRulerStart_=0;A.rulerDragStartTime_=0;A.rulerDragEndTime_=0;A.dragMouseLastX_=0;A.scrollInterval_=null;A.scrubberVe_=null;A.boundHandlers_=
{};A.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return A};
_.g(QJ,_.G);_.P=QJ.prototype;
_.P.created=function(){var A=this;this.JSC$23550_playerEvents=new Map;this.JSC$23550_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$23550_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$23550_playerEvents.set("onStateChange",this.onStateChange_);var L={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(L).forEach(function(O){A.boundHandlers_[O]=L[O].bind(A)})};
_.P.attached=function(){this.activeLoopRange_=!1;_.YJ(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.YJ(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.tI(156731)};
_.P.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.YJ(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.YJ(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.P.onVisibilityChangedAction_=function(A){var L=this;A.visible&&!this.player_&&(A=_.d0())&&A.getPlayerPromise().then(function(O){L.setPlayer(O)})};
_.P.setPlayer=function(A){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$23550_playerEvents);A&&(this.set("player_",A),this.ytPlayerListenerBehavior.listenToPlayerEvents(A,this.JSC$23550_playerEvents))};
_.P.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.P.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.P.beginHandleDrag_=function(A){this.disabled||(A.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=A.clientX,A.target===_.YJ(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():A.target===_.YJ(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.P.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.P.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.P.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.P.beginRulerDrag_=function(A){this.disabled||(A.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=A.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.P.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.P.beginWindowScroll_=function(){var A=this;this.scrollInterval_=setInterval(function(){var L=A.windowSlideSpeed;if(L=_.CDB(A.start,A.boundedRulerStartLimit_())?L-.1:_.CDB(A.end,A.boundedRulerEndLimit_())?L+.1:0){var O=A.capRulerOffset_(A.rulerShift_+L);O==A.rulerShift_?L=0:(A.set("rulerShift_",O),_.P4(A.hostElement,"set-fixed-length-range",{start:A.start+L,duration:A.end-A.start}))}A.set("windowSlideSpeed",L)},33)};
_.P.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.P.endDrag_=function(){this.logClick();var A=void 0;this.draggingRight_?A=this.end-1:this.draggingLeft_&&(A=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,A);this.removeMouseEventHandlers_();this.rulerShift_+this.windowSizeSec_<this.end+this.pixelsToTime_(16)&&this.set("rulerShift_",this.end-this.windowSizeSec_+this.pixelsToTime_(16));
this.rulerShift_>this.start-this.pixelsToTime_(16)&&this.set("rulerShift_",this.start-this.pixelsToTime_(16))};
_.P.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.P.updateRulerSize_=function(){this.set("rulerWidth_",_.YJ(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.P.handleMouseDrag_=function(A){A.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(A):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(A):this.draggingWindow_&&this.handleWindowDrag_(A))};
_.P.handleRulerDrag_=function(A){A=this.pixelsToTime_(A.clientX-this.rulerDragMouseStart_);A=this.capRulerOffset_(this.rulerDragRulerStart_-A);this.set("rulerShift_",A);var L=this.rulerDragStartTime_-(this.rulerDragRulerStart_-A);_.P4(this.hostElement,"set-fixed-length-range",{start:L,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-A)-L})};
_.P.handleWindowDrag_=function(A){var L=A.clientX-this.dragMouseLastX_;this.dragMouseLastX_=A.clientX;A=this.pixelsToTime_(L);_.P4(this.hostElement,"set-fixed-length-range",{start:this.start+A,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.P.capRulerOffset_=function(A){var L=this.seekableStart-this.pixelsToTime_(16),O=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(L,A),O)};
_.P.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.P.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.P.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.P.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.P.handleWindowHandleDrag_=function(A){var L=A.clientX-this.dragMouseLastX_;this.dragMouseLastX_=A.clientX;A=this.pixelsToTime_(L);if(this.draggingLeft_){var O=this.start+A;var X=this.end}else this.draggingRight_&&(O=this.start,X=this.end+A);_.P4(this.hostElement,"set-range",{start:O,end:X,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.P.onVideoProgress_=function(A){this.disabled||(A=this.timeToPixels_(A-this.rulerShift_,this.tickSpacing_),_.YJ(this.hostElement).querySelector("#playhead").style.transform="translateX("+A+")")};
_.P.onClipCreationDisable_=function(){this.endDrag_()};
_.P.timeToPixels_=function(A,L,O){A*=L;return O===void 0||O?A+"px":A};
_.P.pixelsToTime_=function(A){return A/this.tickSpacing_};
_.P.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.P.centerRuler_=function(A,L,O){this.set("rulerShift_",this.capRulerOffset_(A+(L-A)/2-O/2))};
_.P.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.P.updateLoopRange_=function(A,L,O,X,x,J,Y){A&&(L&&X&&!O?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(A.pauseVideo(),A.seekTo(x,!1,void 0,void 0,50)):this.draggingRight_?(A.pauseVideo(),A.seekTo(J-.1,!1,void 0,void 0,50)):(Y!==void 0?A.seekTo(Y,!0,void 0,void 0,50):(L=A.getCurrentTime(),L<x||L>J?A.seekTo(x,!0,void 0,void 0,50):A.seekTo(L,!0,void 0,void 0,50)),A.playVideo()),A.setLoopRange({startTimeMs:x*1E3,endTimeMs:J*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(A.getCurrentTime())):
this.activeLoopRange_&&(A.setLoopRange(null),this.activeLoopRange_=!1))};
_.P.updateHandles_=function(){_.YJ(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.YJ(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.P.updateRuler_=function(){var A=this.end,L=this.start,O=this.draggableStartLimit_(),X=this.draggableEndLimit_();(L<O-.001||A>X+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.P.computeDurationLabel_=function(A,L){return A?A.replace("$clip_length",parseFloat(L).toFixed(1)):""};
_.P.computeDuration_=function(A,L){return this.isValidTime_(A)&&this.isValidTime_(L)&&A<L?L-A:0};
_.P.isValidTime_=function(A){return isNaN(parseFloat(A))||A<0?!1:this.player_?A>=this.seekableStart&&A<=this.seekableEnd:!0};
_.P.computeWindowSizeSec_=function(A,L,O){return Math.min((A||12E4)/1E3,O-L)};
_.P.computeTickSpacing_=function(A,L){return L?L/A:1};
_.P.onDragStateChanged_=function(){_.P4(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.P.centerRangeOnTime_=function(A){var L=this.duration;A=pJ2(A-L/2,L,this.seekableStart,this.seekableEnd);_.P4(this.hostElement,"set-fixed-length-range",{start:A.start,duration:A.end-A.start})};
_.P.nearlyLessThan_=function(A,L,O){return A+(O===void 0?1E-6:O)<L};
_.P.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var A=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(A,this.start)||this.nearlyLessThan_(this.end,A))&&this.centerRangeOnTime_(A)}};
_.P.onStateChange_=function(A){this.visible&&!this.disabled&&A==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.P.computeDragState_=function(A,L,O,X){return A?"left":L?"right":O?"ruler":X?"window":"none"};
_.P.logClick=function(){var A=_.Fn(),L=_.Ch();A&&L&&this.scrubberVe_&&(_.h("combine_ve_grafts")?_.S9(_.iV(),this.scrubberVe_,L):_.W4(A,L,this.scrubberVe_),_.$K(A,this.scrubberVe_))};
QJ.prototype.onDragStateChanged_=QJ.prototype.onDragStateChanged_;QJ.prototype.updateRuler_=QJ.prototype.updateRuler_;QJ.prototype.updateHandles_=QJ.prototype.updateHandles_;QJ.prototype.onUpdateLoopRange=QJ.prototype.onUpdateLoopRange;QJ.prototype.onInitializedChanged_=QJ.prototype.onInitializedChanged_;QJ.prototype.onVisibleChanged_=QJ.prototype.onVisibleChanged_;_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],QJ.prototype,"ytActionHandlerBehavior",void 0);
_.I([_.N(_.LE.YtPlayerListenerBehavior),_.Z("design:type",Object)],QJ.prototype,"ytPlayerListenerBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],QJ.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],QJ.prototype,"start",void 0);_.I([_.K(),_.Z("design:type",Object)],QJ.prototype,"end",void 0);_.I([_.K({computed:"computeDuration_(start, end)"}),_.Z("design:type",Number)],QJ.prototype,"duration",void 0);
_.I([_.K(),_.Z("design:type",String)],QJ.prototype,"lengthTemplate",void 0);_.I([_.K({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.Z("design:type",String)],QJ.prototype,"durationLabel",void 0);_.I([_.K(),_.Z("design:type",Object)],QJ.prototype,"visible",void 0);_.I([_.K(),_.Z("design:type",Object)],QJ.prototype,"player_",void 0);_.I([_.K(),_.Z("design:type",Object)],QJ.prototype,"draggingLeft_",void 0);_.I([_.K(),_.Z("design:type",Object)],QJ.prototype,"draggingRight_",void 0);
_.I([_.K(),_.Z("design:type",Object)],QJ.prototype,"draggingRuler_",void 0);_.I([_.K({value:!1}),_.Z("design:type",Object)],QJ.prototype,"draggingWindow_",void 0);_.I([_.K({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.Z("design:type",Number)],QJ.prototype,"tickSpacing_",void 0);_.I([_.K(),_.Z("design:type",Object)],QJ.prototype,"seekableStart",void 0);_.I([_.K(),_.Z("design:type",Object)],QJ.prototype,"seekableEnd",void 0);
_.I([_.K(),_.Z("design:type",Number)],QJ.prototype,"windowSizeMs",void 0);_.I([_.K({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.Z("design:type",Number)],QJ.prototype,"windowSizeSec_",void 0);_.I([_.K(),_.Z("design:type",Object)],QJ.prototype,"rulerWidth_",void 0);_.I([_.K(),_.Z("design:type",Object)],QJ.prototype,"rulerShift_",void 0);_.I([_.K(),_.Z("design:type",Object)],QJ.prototype,"windowSlideSpeed",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],QJ.prototype,"disabled",void 0);_.I([_.K(),_.Z("design:type",Object)],QJ.prototype,"initialized",void 0);_.I([_.K(),_.Z("design:type",Object)],QJ.prototype,"durationAccessibilityLabel",void 0);_.I([_.K({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.Z("design:type",String)],QJ.prototype,"dragState",void 0);
_.I([_.hT("visible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],QJ.prototype,"onVisibleChanged_",null);_.I([_.hT("initialized"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],QJ.prototype,"onInitializedChanged_",null);_.I([_.hT("player_","visible","disabled","initialized","start","end"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],QJ.prototype,"onUpdateLoopRange",null);
_.I([_.hT("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],QJ.prototype,"updateHandles_",null);_.I([_.hT("start","end"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],QJ.prototype,"updateRuler_",null);
_.I([_.hT("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],QJ.prototype,"onDragStateChanged_",null);_.I([_.yU({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],QJ);
_.m(QJ,"yt-clip-creation-scrubber-view",function(){if(z3_===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;H_g===void 0&&(H_g=document.createElement("template"));var X=H_g;O.call(L,X.content.cloneNode(!0),A.content.firstChild);z3_=A}A=z3_;return A},{mode:2});var mY=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};A.startHighlightTimeout=0;A.endHighlightTimeout=0;return A};
_.g(mY,_.G);_.P=mY.prototype;_.P.attached=function(){var A=this;this.startInput.addEventListener("input",function(L){return A.handleStartInput_(L)});
this.endInput.addEventListener("input",function(L){return A.handleEndInput_(L)});
this.startInput.addEventListener("focusout",function(L){return A.handleStartBlur_(L)});
this.endInput.addEventListener("focusout",function(L){return A.handleEndBlur_(L)})};
_.P.setPlayer=function(A){this.set("player_",A)};
_.P.onSetFixedLengthRange_=function(A){var L=A.detail;A=L.start;var O=L.duration,X=L.startLimit;L=L.endLimit;X||(X=this.seekableStart_);L||(L=this.seekableEnd_);A=pJ2(A,O,X,L);this.start=A.start;this.end=A.end};
_.P.onSetRange_=function(A){var L=A.detail;A=L.start;var O=L.end,X=L.startLimit;L=L.endLimit;X||(X=this.seekableStart_);L||(L=this.seekableEnd_);if(A=i9a(A,O,X,L,this.minLengthSec,this.maxLengthSec))this.start=A.start,this.end=A.end};
_.P.updateInputs_=function(){var A=this.end,L=this.start;this.startInput.focused||(this.startInput.value=cl(L,!0));this.endInput.focused||(this.endInput.value=cl(A,!0))};
_.P.handleStartInput_=function(A){A=wJa(A.target.value);if(A===null)this.set("startValid",!1);else{var L=this.end,O=i9a(A,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);O?(this.set("endWillUpdate",O.end!==L),this.set("startValid",O.start===A)):this.set("startValid",!1)}};
_.P.handleEndInput_=function(A){A=wJa(A.target.value);if(A===null)this.set("endValid",!1);else{var L=this.start,O=NuP(this.start,A,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);O?(this.set("startWillUpdate",O.start!==L),this.set("endValid",O.end===A)):this.set("endValid",!1)}};
_.P.handleStartBlur_=function(A){A=wJa(A.target.value);A===null?this.startInput.value=cl(this.start,!0):this.forceUpdateInputs_(i9a(A,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.P.handleEndBlur_=function(A){A=wJa(A.target.value);A===null?this.endInput.value=cl(this.end,!0):this.forceUpdateInputs_(NuP(this.start,A,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.P.forceUpdateInputs_=function(A){A&&(this.start=A.start,this.end=A.end);this.startInput.value=cl(this.start,!0);this.endInput.value=cl(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.P.initializeClipRange_=function(){var A=this.seekableEnd_,L=this.seekableStart_,O=this.visible_,X=this.player_;if(!X||!O||L===null||!A)this.set("initialized",!1);else if(!this.initialized){var x=X.getCurrentTime(),J=this.getDefaultLengthSec_();O=X.getVideoData();var Y=X.getPlayerState()==1,T=O.isLive;J=Math.min(J,A-L);x=Math.max(0,x);A=T?NuP(x-J,x,L,A,this.minLengthSec,this.maxLengthSec):Y?pJ2(x-J/2,J,L,A):pJ2(x,J,L,A);this.start=A.start;this.end=A.end;this.set("initialized",!0);O.isLive&&X.seekTo(A.start);
this.startInput.value=cl(this.start,!0);this.endInput.value=cl(this.end,!0)}};
_.P.onStartChanged_=function(){var A=this;_.P4(this.hostElement,"start-changed",{start:this.start});var L;isNaN((L=this.oldStart)!=null?L:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){A.set("highlightStart",!1);A.startHighlightTimeout=0;A.oldStart=A.start},3E3))};
_.P.onEndChanged_=function(){var A=this;_.P4(this.hostElement,"end-changed",{end:this.end});var L;isNaN((L=this.oldEnd)!=null?L:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){A.set("highlightEnd",!1);A.endHighlightTimeout=0;A.oldEnd=A.end},3E3))};
_.P.onVisibilityChangedAction_=function(A){var L=this;this.set("visible_",A.visible);this.visible_&&!this.player_&&(A=_.d0())&&A.getPlayerPromise().then(function(O){L.setPlayer(O)})};
_.P.computeMinLengthSec_=function(A){return A/1E3||5};
_.P.computeMaxLengthSec_=function(A){return A/1E3||60};
_.P.computeDefaultLengthSec_=function(A){return A/1E3};
_.P.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.P.computeSeekableStart_=function(A,L){return A&&L?A.getProgressState(1).seekableStart:0};
_.P.computeSeekableEnd_=function(A,L){return A&&L?A.getProgressState(1).seekableEnd:0};
_.P.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.P.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.P.onDragState_=function(A){this.set("highlightStart",A.detail.startChanging);this.set("highlightEnd",A.detail.endChanging)};
mY.prototype.onDragState_=mY.prototype.onDragState_;mY.prototype.onEndChanged_=mY.prototype.onEndChanged_;mY.prototype.onStartChanged_=mY.prototype.onStartChanged_;mY.prototype.initializeClipRange_=mY.prototype.initializeClipRange_;mY.prototype.updateInputs_=mY.prototype.updateInputs_;mY.prototype.onSetRange_=mY.prototype.onSetRange_;mY.prototype.onSetFixedLengthRange_=mY.prototype.onSetFixedLengthRange_;
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],mY.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],mY.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],mY.prototype,"data",void 0);_.I([_.K({value:0}),_.Z("design:type",Number)],mY.prototype,"start",void 0);_.I([_.K({value:!0}),_.Z("design:type",Boolean)],mY.prototype,"startValid",void 0);
_.I([_.K({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],mY.prototype,"startWillUpdate",void 0);_.I([_.K({value:30}),_.Z("design:type",Number)],mY.prototype,"end",void 0);_.I([_.K({value:!0}),_.Z("design:type",Boolean)],mY.prototype,"endValid",void 0);_.I([_.K({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],mY.prototype,"endWillUpdate",void 0);_.I([_.K({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.Z("design:type",Number)],mY.prototype,"minLengthSec",void 0);
_.I([_.K({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.Z("design:type",Number)],mY.prototype,"maxLengthSec",void 0);_.I([_.K({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.Z("design:type",Number)],mY.prototype,"defaultLengthSec",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],mY.prototype,"visible_",void 0);_.I([_.K(),_.Z("design:type",Object)],mY.prototype,"player_",void 0);
_.I([_.K({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.Z("design:type",Number)],mY.prototype,"seekableStart_",void 0);_.I([_.K({computed:"computeSeekableEnd_(player_, visible_)"}),_.Z("design:type",Number)],mY.prototype,"seekableEnd_",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],mY.prototype,"initialized",void 0);_.I([_.K({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],mY.prototype,"disabled",void 0);
_.I([_.K({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],mY.prototype,"highlightStart",void 0);_.I([_.K({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],mY.prototype,"highlightEnd",void 0);_.I([_.qR("#start"),_.Z("design:type",HTMLInputElement)],mY.prototype,"startInput",void 0);_.I([_.qR("#end"),_.Z("design:type",HTMLInputElement)],mY.prototype,"endInput",void 0);
_.I([_.by("set-fixed-length-range"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],mY.prototype,"onSetFixedLengthRange_",null);_.I([_.by("set-range"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],mY.prototype,"onSetRange_",null);_.I([_.hT("start","end"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],mY.prototype,"updateInputs_",null);
_.I([_.hT("player_","visible_","seekableStart_","seekableEnd_"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],mY.prototype,"initializeClipRange_",null);_.I([_.hT("start"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],mY.prototype,"onStartChanged_",null);_.I([_.hT("end"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],mY.prototype,"onEndChanged_",null);
_.I([_.by("clips-drag-state"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],mY.prototype,"onDragState_",null);_.I([_.yU({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],mY);
_.m(mY,"yt-clip-creation-scrubber-renderer",function(){if(jPP===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;Z_P===void 0&&(Z_P=document.createElement("template"));var X=Z_P;O.call(L,X.content.cloneNode(!0),A.content.firstChild);jPP=A}A=jPP;return A},{mode:2});var fQ=function(){var A=_.G.apply(this,arguments)||this;A.player_=null;A.JSC$23564_playerEvents=new Map;A.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return A};
_.g(fQ,_.G);_.P=fQ.prototype;_.P.configureRendererStamper=function(){return{submitButton_:{id:"share",mapping:{buttonRenderer:"yt-button-renderer"}},cancelButton_:{id:"cancel",mapping:{buttonRenderer:"yt-button-renderer"}},"data.titleInput":{id:"title-input",mapping:{clipCreationTextInputRenderer:"ytd-clip-creation-text-input-renderer"}},"data.scrubber":{id:"scrubber",mapping:{clipCreationScrubberRenderer:"yt-clip-creation-scrubber-renderer"}},"data.adStateOverlay":{id:"ad-state",mapping:{clipAdStateRenderer:"ytd-clip-ad-state-renderer"}}}};
_.P.created=function(){this.JSC$23564_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$23564_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$23564_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$23564_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.P.detached=function(){this.setPlayer(null)};
_.P.onVisibilityChangedAction_=function(A){var L=this,O;if((O=this.data)==null?0:O.externalVideoId){var X;this.videoId=(X=this.data)==null?void 0:X.externalVideoId}this.getPlayer().then(function(x){if(A.visible)L.returnTime=x.getCurrentTime(),L.isAtLiveHead=x.getProgressState().isAtLiveHead;else{var J=L.returnTime;L.isAtLiveHead&&(J=Number.POSITIVE_INFINITY);x.seekTo(J,void 0,void 0,void 0,51)}})};
_.P.getPlayer=function(){var A=this;if(!this.player_){var L=_.d0();if(L)return L.getPlayerPromise().then(function(O){A.setPlayer(O);return O})}return Promise.resolve(this.player_)};
_.P.setPlayer=function(A){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$23564_playerEvents);if(A){this.player_=A;var L;((L=this.data)==null?0:L.externalVideoId)||this.set("videoId",A.getVideoData().video_id||"");var O;(A==null?void 0:(O=A.getPresentingPlayerType)==null?void 0:O.call(A))===2&&(this.set("isAdPlaying",!0),_.dQ(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(A,this.JSC$23564_playerEvents)}};
_.P.ready=function(){_.YJ(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.P.onTitleChanged_=function(A){this.set("titleValue",A.detail.title)};
_.P.onStartChanged_=function(A){this.set("start",A.detail.start)};
_.P.onEndChanged_=function(A){this.set("end",A.detail.end)};
_.P.onTitleValidChanged_=function(A){this.set("titleValid",A.detail.valid)};
_.P.onStartValidChanged_=function(A){this.set("startValid",A.detail.valid)};
_.P.onEndValidChanged_=function(A){this.set("endValid",A.detail.valid)};
_.P.onVideoDataChange_=function(){var A;if((A=this.data)==null||!A.externalVideoId){var L;this.set("videoId",((L=this.player_)==null?void 0:L.getVideoData().video_id)||"")}};
_.P.computeFormValid_=function(A,L,O,X){return!!(A&&L&&O&&X)};
_.P.computeCancelButton_=function(A,L,O){return A&&_.q(A,_.$t)?{buttonRenderer:Object.assign({},_.q(A,_.$t),{isDisabled:L||O})}:null};
_.P.computeSubmitButton_=function(A,L,O){return A&&_.q(A,_.$t)?{buttonRenderer:Object.assign({},_.q(A,_.$t),{command:void 0,isDisabled:!this.formValid||L||O})}:null};
_.P.computeSubmitCommand_=function(A){return A||null};
_.P.onSubmit_=function(A){var L=this;A.stopPropagation();A.preventDefault();this.submitCommand_&&(A={},A.comment_text=this.titleValue,A.clip_external_video_id=this.videoId,A.clip_offset_ms=parseInt(this.start*1E3,10),A.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.TZ(this.hostElement,[this.submitCommand_,A]).then(function(){L.set("isLoading_",!1)},function(){L.set("isLoading_",!1)}))};
_.P.playerAdStartHandler_=function(){_.dQ(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.P.playerAdEndHandler_=function(){_.dQ(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.P.onVideoProgress_=function(){var A=this;this.getPlayer().then(function(L){var O,X=(L==null?void 0:(O=L.getPresentingPlayerType)==null?void 0:O.call(L))===2;A.isAdPlaying!==X&&(X?A.playerAdStartHandler_():A.playerAdEndHandler_())})};
fQ.prototype.onEndValidChanged_=fQ.prototype.onEndValidChanged_;fQ.prototype.onStartValidChanged_=fQ.prototype.onStartValidChanged_;fQ.prototype.onTitleValidChanged_=fQ.prototype.onTitleValidChanged_;fQ.prototype.onEndChanged_=fQ.prototype.onEndChanged_;fQ.prototype.onStartChanged_=fQ.prototype.onStartChanged_;fQ.prototype.onTitleChanged_=fQ.prototype.onTitleChanged_;_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],fQ.prototype,"ytActionHandlerBehavior",void 0);
_.I([_.N(_.LE.YtPlayerListenerBehavior),_.Z("design:type",Object)],fQ.prototype,"ytPlayerListenerBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],fQ.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],fQ.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],fQ.prototype,"data",void 0);_.I([_.K({value:""}),_.Z("design:type",String)],fQ.prototype,"titleValue",void 0);
_.I([_.K({value:!1}),_.Z("design:type",Boolean)],fQ.prototype,"titleValid",void 0);_.I([_.K({value:0}),_.Z("design:type",Number)],fQ.prototype,"start",void 0);_.I([_.K({value:!0}),_.Z("design:type",Boolean)],fQ.prototype,"startValid",void 0);_.I([_.K({value:0}),_.Z("design:type",Number)],fQ.prototype,"end",void 0);_.I([_.K({value:!0}),_.Z("design:type",Boolean)],fQ.prototype,"endValid",void 0);_.I([_.K({value:""}),_.Z("design:type",String)],fQ.prototype,"videoId",void 0);
_.I([_.K({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.Z("design:type",Boolean)],fQ.prototype,"formValid",void 0);_.I([_.K({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.Z("design:type",Object)],fQ.prototype,"submitButton_",void 0);_.I([_.K({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.Z("design:type",Object)],fQ.prototype,"submitCommand_",void 0);
_.I([_.K({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.Z("design:type",Object)],fQ.prototype,"cancelButton_",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],fQ.prototype,"isLoading_",void 0);_.I([_.K({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],fQ.prototype,"isAdPlaying",void 0);_.I([_.K({value:0}),_.Z("design:type",Number)],fQ.prototype,"returnTime",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],fQ.prototype,"isAtLiveHead",void 0);
_.I([_.by("title-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],fQ.prototype,"onTitleChanged_",null);_.I([_.by("start-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],fQ.prototype,"onStartChanged_",null);_.I([_.by("end-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],fQ.prototype,"onEndChanged_",null);
_.I([_.by("title-valid-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],fQ.prototype,"onTitleValidChanged_",null);_.I([_.by("start-valid-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],fQ.prototype,"onStartValidChanged_",null);_.I([_.by("end-valid-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],fQ.prototype,"onEndValidChanged_",null);
_.I([_.yU({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],fQ);
_.m(fQ,"yt-clip-creation-renderer",function(){if(yEW===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;IDP===void 0&&(IDP=document.createElement("template"));var X=IDP;O.call(L,X.content.cloneNode(!0),A.content.firstChild);yEW=A}A=yEW;return A},{mode:2});var IA=function(){return _.G.apply(this,arguments)||this};
_.g(IA,_.G);IA.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"}}}};
IA.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(A){return A.hasOwnProperty("clipCreationRenderer")})&&_.dQ(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
IA.prototype.onPanelContentVisibleChanged=IA.prototype.onPanelContentVisibleChanged;_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],IA.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],IA.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.LO.YtVisibilityBehavior),_.Z("design:type",Object)],IA.prototype,"ytVisibilityBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],IA.prototype,"ytdReduxBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],IA.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],IA.prototype,"panelContentVisible",void 0);_.I([_.hT("panelContentVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],IA.prototype,"onPanelContentVisibleChanged",null);_.I([_.Q({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],IA);
_.m(IA,"ytd-clip-section-renderer",function(){if(QPJ!==void 0)return QPJ;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return QPJ=A},{mode:1});var BwP;var yJ=function(){return _.G.apply(this,arguments)||this};
_.g(yJ,_.G);_.P=yJ.prototype;
_.P.onKeyDown=function(A){if(this.snippetElements.length!==0&&(A=A.keyCode,A===38||A===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);A===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.Z7(this.highlightedIndex,-1,this.snippetElements.length);A=this.snippetElements.length;var L=this.highlightedIndex%A;this.highlightedIndex=L*A<0?L+A:L;A=this.snippetElements[this.highlightedIndex];this.highlightSnippet(A);this.ensureVisible(A)}};
_.P.onKeyUp=function(A){var L=this;s6W(A)&&(A.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.c1.cancelJob(this.inputTimerId),this.inputTimerId=_.c1.addLowPriorityJob(function(){L.typedValue&&(L.fetchSnippets(L.typedValue),L.logInputGesture(L.data))},1E3))};
_.P.onClick=function(A){(A=_.F$H(A.target,null,"snippet-item"))&&this.selectSnippet(A)};
_.P.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.P.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.P.ready=function(){var A=this;this.inputElement.addEventListener("focus",function(){A.snippetsWrapper.style.removeProperty("display")})};
_.P.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.P.getSourceTimelines=function(){if(!this.data)return[];var A=[];if(this.data.searchInVideoSources)for(var L=_.d(this.data.searchInVideoSources),O=L.next();!O.done;O=L.next())O=O.value,O==="SEARCH_IN_VIDEO_SOURCE_ASR"?A.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):O==="SEARCH_IN_VIDEO_SOURCE_OCR"&&A.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return A};
_.P.fetchSnippets=function(A){var L=_.dQ(this.hostElement,"yt-get-current-video-id-action")[0],O=this.getSourceTimelines();A={getSearchInVideoCommand:{externalVideoId:L,query:A!=null?A:"",sourceTimelines:O},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.X5().resolve(_.x$).resolveCommand(A,{form:{element:this.hostElement}})};
_.P.filterSnippets=function(A,L){var O=this;if(L){this.filteredSnippets=(0,_.lW.unsafeClone)(A);var X=RegExp(_.ftJ(L),"i");this.filteredSnippets=this.filteredSnippets.filter(function(Y){return X.test(O.ytRendererBehavior.getSimpleString(Y.snippet))});
A=_.d(this.filteredSnippets);for(var x=A.next();!x.done;x=A.next()){x=x.value;var J=this.ytRendererBehavior.getSimpleString(x.snippet);x.snippet={runs:[{text:J.substring(0,J.toLowerCase().indexOf(L))},{text:J.substring(J.toLowerCase().indexOf(L),J.toLowerCase().indexOf(L)+L.length),bold:!0},{text:J.substring(J.toLowerCase().indexOf(L)+L.length,J.length)}]}}}else this.filteredSnippets=A};
_.P.onUpdateSearchInVideoResults=function(A){if(!(this.snippets.length>0)){var L,O,X;if((X=(L=_.q(A,t3P))==null?void 0:(O=L.results)==null?void 0:O.length)!=null&&X){var x;this.filteredSnippets=this.snippets=((x=_.q(A,t3P))==null?void 0:x.results).map(function(J){var Y,T,V;return{startMs:J==null?void 0:(Y=J.searchInVideoResultRenderer)==null?void 0:Y.startMs,startTimeText:J==null?void 0:(T=J.searchInVideoResultRenderer)==null?void 0:T.startTimeText,snippet:J==null?void 0:(V=J.searchInVideoResultRenderer)==
null?void 0:V.snippet}})}}};
_.P.updateSnippetElements=function(){this.snippetElements=Array.from(this.snippetsWrapper.getElementsByClassName("snippet-item"));this.highlightedIndex>=0&&this.highlightedIndex<this.snippetElements.length&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);this.highlightedIndex=-1;this.snippetsWrapper.scrollTop=0};
_.P.highlightSnippet=function(A){A.classList.add("highlighted")};
_.P.removeSnippetHighlight=function(A){A.classList.remove("highlighted")};
_.P.selectSnippet=function(A){this.typedValue=String(A.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(A);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.P.ensureVisible=function(A){var L=this.snippetsWrapper.scrollTop,O=L+this.snippetsWrapper.clientHeight,X=A.offsetTop-this.snippetsWrapper.offsetTop;A=X+A.clientHeight;X<L?this.snippetsWrapper.scrollTop-=L-X:A>O&&(this.snippetsWrapper.scrollTop+=A-O)};
_.P.seekPlayer=function(A){var L,O;return _.u(function(X){if(X.nextAddress==1){if(!A)return X.jumpTo(0);L=Number(A.dataset.startOffset);return X.yield(_.Yu().getPlayerPromise(),3)}O=X.yieldResult;O.seekTo(L/1E3,!0);O.wakeUpControls();_.qo(X)})};
_.P.logInputGesture=function(A){var L=_.Fn();L&&(A==null?0:A.trackingParams)&&_.ak(L,_.lV(A.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.P.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.A3("typed-value-changed",this.typedValue))};
_.P.updateTypedValueFromBinding=function(A){this.typedValue=A.currentTarget.value};
yJ.prototype.typedValueChangedForBinding=yJ.prototype.typedValueChangedForBinding;yJ.prototype.dataChanged=yJ.prototype.dataChanged;yJ.prototype.panelContentVisibleChanged=yJ.prototype.panelContentVisibleChanged;yJ.prototype.onClick=yJ.prototype.onClick;yJ.prototype.onKeyUp=yJ.prototype.onKeyUp;yJ.prototype.onKeyDown=yJ.prototype.onKeyDown;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],yJ.prototype,"ytRendererBehavior",void 0);
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],yJ.prototype,"ytActionHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],yJ.prototype,"data",void 0);_.I([_.K({value:[]}),_.Z("design:type",Array)],yJ.prototype,"snippets",void 0);_.I([_.K({value:[]}),_.Z("design:type",Array)],yJ.prototype,"filteredSnippets",void 0);_.I([_.K({value:[]}),_.Z("design:type",Array)],yJ.prototype,"snippetElements",void 0);
_.I([_.qR("#siv-input"),_.Z("design:type",HTMLElement)],yJ.prototype,"inputElement",void 0);_.I([_.qR("#siv-snippets-wrapper"),_.Z("design:type",HTMLElement)],yJ.prototype,"snippetsWrapper",void 0);_.I([_.K(),_.Z("design:type",String)],yJ.prototype,"typedValue",void 0);_.I([_.K({value:-1}),_.Z("design:type",Number)],yJ.prototype,"highlightedIndex",void 0);_.I([_.by("keydown"),_.Z("design:type",Function),_.Z("design:paramtypes",[_.NJ]),_.Z("design:returntype")],yJ.prototype,"onKeyDown",null);
_.I([_.by("keyup"),_.Z("design:type",Function),_.Z("design:paramtypes",[_.NJ]),_.Z("design:returntype")],yJ.prototype,"onKeyUp",null);_.I([_.by("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],yJ.prototype,"onClick",null);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],yJ.prototype,"panelContentVisible",void 0);
_.I([_.hT("panelContentVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],yJ.prototype,"panelContentVisibleChanged",null);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],yJ.prototype,"dataChanged",null);_.I([_.hT("typedValue"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],yJ.prototype,"typedValueChangedForBinding",null);
_.I([_.Q({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],yJ);
_.m(yJ,"ytd-search-in-video-renderer",function(){if(BwP!==void 0)return BwP;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return BwP=A},{mode:1});var Mg3;var ZO=function(){return _.G.apply(this,arguments)||this};
_.g(ZO,_.G);ZO.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
ZO.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]]"}}}}}};
ZO.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var A,L,O,X,x=(L=_.q((A=this.data)==null?void 0:A.onClickCommand,_.cB))==null?void 0:(O=L.item)==null?void 0:(X=O.notificationTextRenderer)==null?void 0:X.successResponseText;x&&_.vku(this.hostElement,x)}};
_.v2.Object.defineProperties(ZO.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var A,L,O,X;return this.isProductPlaceholder&&((A=this.data)==null?void 0:(L=A.hiddenProductOptions)==null?void 0:L.showDropCountdown)&&!!((O=this.data)==null?0:(X=O.hiddenProductOptions)==null?0:X.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var A;return!this.isProductPlaceholder&&!((A=this.data)==null?0:A.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var A,L;return!((A=this.data)==null?0:A.priceReplacementText)&&!((L=this.data)==null||!L.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],ZO.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],ZO.prototype,"componentBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],ZO.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],ZO.prototype,"data",void 0);
_.I([_.K({reflectToAttribute:!0}),_.r("isProductPlaceholder"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ZO.prototype,"useCenterLayoutContainer",null);_.I([_.K({computed:"computeButtonOverride(data)"}),_.Z("design:type",Object)],ZO.prototype,"buttonOverride",void 0);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ZO.prototype,"isProductPlaceholder",null);
_.I([_.r("isProductPlaceholder"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ZO.prototype,"showDropCountdown",null);_.I([_.r("isProductPlaceholder","data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ZO.prototype,"showBrandName",null);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ZO.prototype,"showPriceReplacementText",null);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ZO.prototype,"showPrice",null);
_.I([_.r("isProductPlaceholder"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ZO.prototype,"showMetadata",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],ZO);
_.m(ZO,"ytd-product-list-item-renderer",function(){if(Mg3!==void 0)return Mg3;var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Mg3=A},{mode:1});var $02;var jT=function(){return _.G.apply(this,arguments)||this};
_.g(jT,_.G);jT.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
jT.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
jT.prototype.panelContentVisibleChanged=function(){var A=this,L;return _.u(function(O){if(O.nextAddress==1)return A.playerApi?O.jumpTo(2):O.yield(_.Yu().getPlayerPromise(),3);O.nextAddress!=2&&(A.playerApi=O.yieldResult);(L=A.playerApi)==null||L.productsInVideoVisibilityUpdated(!!A.panelContentVisible);_.qo(O)})};
jT.prototype.panelContentVisibleChanged=jT.prototype.panelContentVisibleChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],jT.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],jT.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],jT.prototype,"panelContentVisible",void 0);_.I([_.K(),_.Z("design:type",Object)],jT.prototype,"data",void 0);
_.I([_.hT("panelContentVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype",Promise)],jT.prototype,"panelContentVisibleChanged",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],jT);
_.m(jT,"ytd-product-list-renderer",function(){if($02!==void 0)return $02;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return $02=A},{mode:1});var aDg;var Wp=function(){var A=_.G.apply(this,arguments)||this;A.hideTimestamps=!!_.wf("hide-transcript-timestamps");A.currentCueIndex=-1;A.flatCues=[];A.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};A.TEST_ONLY={getFlatCues:function(){return A.flatCues}};
return A};
_.g(Wp,_.G);_.P=Wp.prototype;_.P.hideTimestampsChanged=function(){_.gf("hide-transcript-timestamps",this.hideTimestamps)};
_.P.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.P.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.P.dataChanged=function(){var A;if((A=this.data)!=null&&A.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;A=_.d(this.data.cueGroups);for(var L=A.next();!L.done;L=A.next()){L=_.d(_.q(L.value,b6f).cues);for(var O=L.next();!O.done;O=L.next())this.flatCues.push(Number(_.q(O.value,h7W).startOffsetMs))}}};
_.P.onYtPlayerTimeChanged=function(A){if(!(A<0)){for(var L=this.currentCueIndex,O=L;;){var X=O>=0?this.flatCues[O]/1E3:-1;if(A+.5<X)--O;else if(X=O+1<this.flatCues.length?this.flatCues[O+1]/1E3:Infinity,A+.5>X)O+=1;else break}O!==L&&(L>=0&&((A=this.getCueElement(L))&&A.classList.remove("active"),(L=this.getCueGroupElement(L))&&L.classList.remove("active")),(L=this.getCueElement(O))&&L.classList.add("active"),(L=this.getCueGroupElement(O))&&L.classList.add("active"),this.currentCueIndex=O,this.isHovered||
this.scrollElementToTop(O))}};
_.P.scrollElementToTop=function(A){A=this.getCueElement(A>=3?A-3:0);this.hostElement.scrollTop=Math.min(A.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.P.getCueElement=function(A){return _.YJ(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[A]+'"]')};
_.P.getCueGroupElement=function(A){return(A=this.getCueElement(A))&&A.parentElement?A.parentElement.parentElement:null};
_.P.onTap=function(A){var L=_.AT(A);A.target.classList.contains("cue")&&this.seekCueElement(L)};
_.P.onKeyPress=function(A){A.keyCode==13&&(A=_.F$H(A.target,null,"cue"))&&this.seekCueElement(A)};
_.P.seekCueElement=function(A){A=Number(A.getAttribute("start-offset"));_.dQ(this.hostElement,"yt-transcript-player-seek",[A/1E3])};
_.P.onMouseEnter=function(){this.isHovered=!0};
_.P.onMouseLeave=function(){this.isHovered=!1};
Wp.prototype.onMouseLeave=Wp.prototype.onMouseLeave;Wp.prototype.onMouseEnter=Wp.prototype.onMouseEnter;Wp.prototype.onKeyPress=Wp.prototype.onKeyPress;Wp.prototype.onTap=Wp.prototype.onTap;Wp.prototype.dataChanged=Wp.prototype.dataChanged;Wp.prototype.hideTimestampsChanged=Wp.prototype.hideTimestampsChanged;_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],Wp.prototype,"ytActionHandlerBehavior",void 0);
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Wp.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Wp.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Wp.prototype,"hideTimestamps",void 0);_.I([_.K(),_.Z("design:type",Boolean)],Wp.prototype,"isHovered",void 0);_.I([_.hT("hideTimestamps"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Wp.prototype,"hideTimestampsChanged",null);
_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Wp.prototype,"dataChanged",null);_.I([_.by("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],Wp.prototype,"onTap",null);_.I([_.by("keypress"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],Wp.prototype,"onKeyPress",null);
_.I([_.by("mouseenter"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Wp.prototype,"onMouseEnter",null);_.I([_.by("mouseleave"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Wp.prototype,"onMouseLeave",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],Wp);
_.m(Wp,"ytd-transcript-body-renderer",function(){if(aDg!==void 0)return aDg;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return aDg=A},{mode:1});var k2B;var Hp=function(){var A=_.G.apply(this,arguments)||this;A.darkerPanels=_.h("web_watch_darker_panels");return A};
_.g(Hp,_.G);Hp.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Hp.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Hp.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Hp.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Hp.prototype,"darkerPanels",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],Hp);
_.m(Hp,"ytd-transcript-footer-renderer",function(){if(k2B!==void 0)return k2B;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return k2B=A},{mode:1});var U0f;var vWD;var zS=function(){var A=_.G.apply(this,arguments)||this;A.systemIcons=_.h("kevlar_system_icons");A.showClearButton=!1;return A};
_.g(zS,_.G);_.P=zS.prototype;_.P.handleInput=function(A){var L=this;A.target.value.length?_.$J(this,"ytdTranscriptSearchBoxSearch",function(){L.emitSearchEvent(A)},500):(_.GL9(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=A.target.value.length>0};
_.P.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.P.handleClick=function(){var A,L=(A=this.data)==null?void 0:A.trackingParams;L&&_.wm(_.iV(),L)};
_.P.handleClear=function(){_.GL9(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var A,L,O=(L=_.q((A=this.data)==null?void 0:A.clearButton,_.$t))==null?void 0:L.trackingParams;O&&_.wm(_.iV(),O);this.clear()};
_.P.emitSearchEvent=function(A){_.P4(this.hostElement,"yt-transcript-search-box-search",{query:A.target.value});var L,O;(A=(O=_.q((L=this.data)==null?void 0:L.searchButton,_.$t))==null?void 0:O.trackingParams)&&_.wm(_.iV(),A)};
_.P.emitClearEvent=function(){_.P4(this.hostElement,"yt-transcript-search-box-clear")};
_.v2.Object.defineProperties(zS.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.YJ(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],zS.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],zS.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],zS.prototype,"systemIcons",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],zS);
_.m(zS,"ytd-transcript-search-box-renderer",function(){if(vWD!==void 0)return vWD;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return vWD=A},{mode:1});var oWW;var Ano;var Bp=function(){return _.G.apply(this,arguments)||this};
_.g(Bp,_.G);Bp.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var A,L;this.sectionHeaderAriaLabel=(A=this.data)==null?void 0:(L=A.accessibility)==null?void 0:L.accessibilityData.label}};
Bp.prototype.fireSelectedEvent=function(A){_.P4(this.hostElement,"ytd-transcript-section-header",{startMs:A})};
Bp.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
Bp.prototype.handleKeyPress=function(A){this.data&&A.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.v2.Object.defineProperties(Bp.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var A,L;return(L=(A=this.data)==null?void 0:A.enableTappableTranscriptHeader)!=null?L:!1}}});
Bp.prototype.dataChanged=Bp.prototype.dataChanged;_.I([_.K(),_.Z("design:type",Object)],Bp.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",String)],Bp.prototype,"sectionHeaderAriaLabel",void 0);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Bp.prototype,"enableTappableTranscriptHeader",null);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Bp.prototype,"dataChanged",null);
_.I([_.Q({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],Bp);
_.m(Bp,"ytd-transcript-section-header-renderer",function(){if(Ano!==void 0)return Ano;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Ano=A},{mode:1});var Lh_;var OL_;var MC=function(){var A=_.G.apply(this,arguments)||this;A.isEditMode=!1;A.touchCaptionsEnabled=!1;A.deleteCaptionCorrectionPopupCommand=null;A.voteCaptionCorrectionPopupCommand=null;A.roundedContainer=!0;A.mouseOver=!1;A.textChanged=!1;A.messages={suggest_correction:_.b3("suggest_correction",void 0,"Edit caption"),suggested_caption:_.b3("suggested_caption",void 0,"Suggested caption"),submit_correction:_.b3("submit_correction",void 0,"Submit for review"),cancel_correction:_.b3("cancel_correction",
void 0,"Cancel"),replay_segment:_.b3("replay_segment",void 0,"Re-play segment"),delete_correction:_.b3("delete_correction",void 0,"Delete correction")};A.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return A};
_.g(MC,_.G);_.P=MC.prototype;_.P.dataChanged=function(){this.isEditMode=!1;this.editedText=this.data?this.data.userCorrection:void 0;this.data&&this.data.deleteCaptionCorrectionPopupCommand&&(this.deleteCaptionCorrectionPopupCommand=this.data.deleteCaptionCorrectionPopupCommand);this.data&&this.data.voteCaptionCorrectionPopupCommand&&(this.voteCaptionCorrectionPopupCommand=this.data.voteCaptionCorrectionPopupCommand);this.data&&this.data.accessibility&&(this.segmentAriaLabel=this.data.accessibility.accessibilityData.label)};
_.P.handleDelete=function(A){if(this.deleteCaptionCorrectionPopupCommand){var L=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);L&&this.ytdOpenPopupBehavior.openPopup(L);A.stopPropagation()}};
_.P.handleSubmit=function(A){if(this.data&&this.data.submitCaptionCorrectionCommand&&(A.stopPropagation(),this.textChanged)){var L;A=(L=_.q(this.data.submitCaptionCorrectionCommand,_.qRJ))==null?void 0:L.params;L=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:A,correctionText:String(this.ironTextAreaElement.value),originalText:_.vG(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(L);this.isEditMode=!1}};
_.P.handleUpdateSegmentText=function(A){(A=_.q(A,mNw))&&A.targetId&&this.data&&A.targetId===this.data.targetId&&(A.userCorrection&&(this.editedText=A.userCorrection),A.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.vG(this.data.snippet)),A.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=A.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=A.voteCaptionCorrectionPopupCommand?
A.voteCaptionCorrectionPopupCommand:null,A.accessibility&&(this.segmentAriaLabel=A.accessibility.accessibilityData.label))};
_.P.handleCancel=function(A){this.isEditMode=!1;A.stopPropagation();this.logClientVe(159409)};
_.P.handleEditSegmentCommand=function(A){(A=_.q(A,Q6J))&&A.targetId&&this.data&&A.targetId===this.data.targetId&&this.handleEdit()};
_.P.handleEditButtonClick=function(A){this.data&&(this.handleEdit(),A.stopPropagation())};
_.P.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var A;(A=this.ironTextAreaElement.textarea)==null||A.focus();this.logClientVe(159407)}};
_.P.handleMouseEnter=function(){this.mouseOver=!0};
_.P.handleMouseLeave=function(){this.mouseOver=!1};
_.P.handleReplay=function(A){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),A.stopPropagation(),this.logClientVe(159408))};
_.P.handleClick=function(){this.data&&(this.voteCaptionCorrectionPopupCommand?(this.ytComponentBehavior.resolveCommand(this.voteCaptionCorrectionPopupCommand),this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs))):(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()))};
_.P.handleKeypress=function(A){this.data&&(this.isEditMode?A.stopPropagation():this.isEnterPress(A)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(A)&&this.logClientVe(138758))};
_.P.handleTextboxClick=function(A){A.stopPropagation()};
_.P.handleTextboxKeydown=function(A){this.isControlEnterPress(A)?this.handleSubmit(A):A.key==="Escape"&&this.handleCancel(A)};
_.P.handleTextboxKeyup=function(){this.textChanged=_.vG(this.latestText)!==String(this.ironTextAreaElement.value)};
_.P.fireSelectedEvent=function(A){_.P4(this.hostElement,"yt-transcript-segment-selected",{startMs:A})};
_.P.fireReplayEvent=function(A,L){_.P4(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(A-100,0),endMs:L})};
_.P.fireEditEvent=function(A,L){_.P4(this.hostElement,"yt-transcript-segment-edit",{startMs:A,endMs:L})};
_.P.isEnterPress=function(A){return A.key==="Enter"||A.code==="Enter"||A.code==="NumpadEnter"||A.keyCode===13?!0:!1};
_.P.isControlEnterPress=function(A){var L=A.key==="Enter"||A.code==="Enter"||A.code==="NumpadEnter"||A.keyCode===13;return(A.ctrlKey||A.metaKey)&&L};
_.P.isCopyPress=function(A){var L=A.ctrlKey;return A.key==="c"&&L};
_.P.logClick=function(){var A,L=(A=this.data)==null?void 0:A.trackingParams;L&&_.wm(_.iV(),L)};
_.P.logClientVe=function(A){_.gm(_.iV(),_.tI(A))};
_.v2.Object.defineProperties(MC.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}}});
MC.prototype.handleMouseLeave=MC.prototype.handleMouseLeave;MC.prototype.handleMouseEnter=MC.prototype.handleMouseEnter;MC.prototype.dataChanged=MC.prototype.dataChanged;_.I([_.N(_.es.YtActionHandlerBehavior),_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],MC.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.J3),_.Z("design:type",Object)],MC.prototype,"ytdOpenPopupBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],MC.prototype,"ytRendererBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],MC.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],MC.prototype,"isEditMode",void 0);_.I([_.K(),_.Z("design:type",Object)],MC.prototype,"touchCaptionsEnabled",void 0);_.I([_.K(),_.Z("design:type",Object)],MC.prototype,"editedText",void 0);_.I([_.K(),_.Z("design:type",Object)],MC.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.I([_.K(),_.Z("design:type",Object)],MC.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.I([_.K(),_.Z("design:type",String)],MC.prototype,"segmentAriaLabel",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],MC.prototype,"roundedContainer",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],MC.prototype,"mouseOver",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],MC.prototype,"textChanged",void 0);_.I([_.K(),_.Z("design:type",Object)],MC.prototype,"messages",void 0);
_.I([_.qR("#suggestion"),_.Z("design:type",Object)],MC.prototype,"ironTextAreaElement",void 0);_.I([_.r("data","editedText"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],MC.prototype,"latestText",null);_.I([_.r("touchCaptionsEnabled","isEditMode"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],MC.prototype,"enableEditButton",null);
_.I([_.r("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],MC.prototype,"enableUndoButton",null);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],MC.prototype,"dataChanged",null);_.I([_.by("mouseenter"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],MC.prototype,"handleMouseEnter",null);
_.I([_.by("mouseleave"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],MC.prototype,"handleMouseLeave",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],MC);
_.m(MC,"ytd-transcript-segment-renderer",function(){if(OL_!==void 0)return OL_;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return OL_=A},{mode:1});var $G=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};A.isError=!1;A.darkerPanels=_.h("web_watch_darker_panels");A.useParentMaxHeight=_.h("web_watch_transscript_use_parent_max_height");A.segmentOffsets=[];A.segmentIndex=-1;return A};
_.g($G,_.G);_.P=$G.prototype;_.P.configureRendererStamper=function(){return{segments:{id:"segments-container",mapping:{transcriptSegmentRenderer:{component:"ytd-transcript-segment-renderer",properties:{touchCaptionsEnabled:"[[data.touchCaptionsEnabled]]"}},transcriptSectionHeaderRenderer:{component:"ytd-transcript-section-header-renderer"}}}}};
_.P.segmentsChanged=function(){this.updateOffsets()};
_.P.onYtPlayerTimeChanged=function(A){for(var L=this.segmentIndex,O=L;;){if(O>=0){var X=this.segmentOffsets[O].start;var x=this.segmentOffsets[O].isAutoScrollable}else X=-1,x=!0;var J=A+.5;if(!x){X=O+1<this.segmentOffsets.length?this.segmentOffsets[O+1].start:Infinity;if(J>=X){O+=1;continue}O=-1;break}if(J<X)X=O-1>=0&&this.segmentOffsets[O-1].isAutoScrollable,x=O===0||X?1:2,O-=x;else if(x=O+1<this.segmentOffsets.length&&this.segmentOffsets[O+1].isAutoScrollable?1:2,X=O+x<this.segmentOffsets.length?
this.segmentOffsets[O+x].start:Infinity,J>X)O+=x;else{if(O<0)break;O<this.segmentOffsets.length&&J>this.segmentOffsets[O].end&&(O=-1);break}}if(L!==O){if(L>=0){var Y;(Y=this.getSegmentElement(L))==null||Y.classList.remove("active")}this.segmentIndex=O;if(!(O<0)){var T;(T=this.getSegmentElement(O))==null||T.classList.add("active");this.isHovered||this.scrollElementToTop(O)}}};
_.P.handleSegmentEdit=function(A){A.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=A.target,_.dQ(this.hostElement,"yt-transcript-player-edit",[A.detail.startMs/1E3,A.detail.endMs/1E3]))};
_.P.handleSegmentSelected=function(A){_.dQ(this.hostElement,"yt-transcript-player-seek",[A.detail.startMs/1E3])};
_.P.handleSegmentReplay=function(A){_.dQ(this.hostElement,"yt-transcript-player-replay",[A.detail.startMs/1E3,A.detail.endMs/1E3])};
_.P.handleSectionHeaderSelected=function(A){_.dQ(this.hostElement,"yt-transcript-player-seek",[A.detail.startMs/1E3])};
_.P.onMouseEnter=function(){this.isHovered=!0};
_.P.onMouseLeave=function(){this.isHovered=!1};
_.P.onRetryButtonClick=function(){_.P4(this.hostElement,"transcript-retry-button-click")};
_.P.getSegmentElement=function(A){return _.YJ(this.hostElement).querySelector(":nth-child("+(A+1)+")")};
_.P.scrollElementToTop=function(A){A=this.getSegmentElement(A>=2?A-2:0);this.hostElement.scrollTop=Math.min(A.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.P.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(A){var L,O=(L=A.transcriptSegmentRenderer)!=null?L:A.transcriptSectionHeaderRenderer;return{start:Number(O.startMs)/1E3,end:Number(O.endMs)/1E3,isAutoScrollable:A.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.P.clearHighlightedSegments=function(){var A=_.YJ(this.hostElement);A=_.d(A.querySelectorAll("ytd-transcript-segment-renderer"));for(var L=A.next();!L.done;L=A.next())L.value.classList.remove("active")};
_.v2.Object.defineProperties($G.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var A,L;return((A=this.data)==null?void 0:A.searchResultSegments)||((L=this.data)==null?void 0:L.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
$G.prototype.onMouseLeave=$G.prototype.onMouseLeave;$G.prototype.onMouseEnter=$G.prototype.onMouseEnter;$G.prototype.handleSectionHeaderSelected=$G.prototype.handleSectionHeaderSelected;$G.prototype.handleSegmentReplay=$G.prototype.handleSegmentReplay;$G.prototype.handleSegmentSelected=$G.prototype.handleSegmentSelected;$G.prototype.handleSegmentEdit=$G.prototype.handleSegmentEdit;$G.prototype.segmentsChanged=$G.prototype.segmentsChanged;
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],$G.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],$G.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],$G.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],$G.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],$G.prototype,"isError",void 0);
_.I([_.K(),_.Z("design:type",Object)],$G.prototype,"noResultLabel",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],$G.prototype,"darkerPanels",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],$G.prototype,"useParentMaxHeight",void 0);_.I([_.r("data"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],$G.prototype,"segments",null);
_.I([_.r("segments","noResultLabel"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],$G.prototype,"displayNoResults",null);_.I([_.hT("segments"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$G.prototype,"segmentsChanged",null);_.I([_.by("yt-transcript-segment-edit"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],$G.prototype,"handleSegmentEdit",null);
_.I([_.by("yt-transcript-segment-selected"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],$G.prototype,"handleSegmentSelected",null);_.I([_.by("yt-transcript-segment-replay"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],$G.prototype,"handleSegmentReplay",null);
_.I([_.by("ytd-transcript-section-header"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],$G.prototype,"handleSectionHeaderSelected",null);_.I([_.by("mouseenter"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$G.prototype,"onMouseEnter",null);_.I([_.by("mouseleave"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$G.prototype,"onMouseLeave",null);
_.I([_.Q({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],$G);
_.m($G,"ytd-transcript-segment-list-renderer",function(){if(Lh_!==void 0)return Lh_;var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Lh_=A},{mode:1});var aA=function(){var A=_.G.apply(this,arguments)||this;A.hideTimestamps=!!_.wf("hide-transcript-timestamps");A.isLoadingTranscripts=!1;A.darkerPanels=_.h("web_watch_darker_panels");A.isError=!1;A.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return A};
_.g(aA,_.G);_.P=aA.prototype;_.P.headerChanged=function(){var A,L;this.baseGetTranscriptsCommand=(L=_.q((A=this.data)==null?void 0:A.header,fNW))==null?void 0:L.onTextChangeCommand};
_.P.bodyChanged=function(){var A=this.getBodyRenderer();A&&(A.initialSegments&&(this.initialTranscriptsRenderer=A),A.noResultLabel&&(this.noResultLabel=A.noResultLabel),A.retryLabel&&(this.retryLabel=A.retryLabel))};
_.P.detached=function(){this.clearSearchBoxText()};
_.P.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.P.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{transcriptSearchBoxRenderer:"ytd-transcript-search-box-renderer"}},"data.body":{id:"body",mapping:{transcriptSegmentListRenderer:{component:"ytd-transcript-segment-list-renderer",properties:{noResultLabel:"[[noResultLabel]]"}}}},"data.footer":{id:"footer",mapping:{transcriptFooterRenderer:"ytd-transcript-footer-renderer"}}}};
_.P.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.P.fireSearch=function(A){var L=this;if(A){var O=A.detail.query;if(this.baseGetTranscriptsCommand){var X;A=(X=_.q(this.baseGetTranscriptsCommand,_.oIH))==null?void 0:X.params;var x;X=_.q((x=this.data)==null?void 0:x.footer,SgW);var J;if((x=(J=_.q(X==null?void 0:X.languageMenu,CHP))==null?void 0:J.subMenuItems)&&x.length>0&&(J=x.find(function(V){return V.selected}))){var Y,T;
A=(Y=J.continuation)==null?void 0:(T=Y.reloadContinuationData)==null?void 0:T.continuation}Y=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:A,searchQuery:O}});this.ytComponentBehavior.resolveCommand(Y,{commandController:{onServerError:function(){L.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});XnP(this.ytContinuationHandlerBehavior,function(){return O===L.getCurrentSearchBoxText()})}}};
_.P.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.P.onRetryButtonClick=function(){this.isError=!1;var A={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:A}))};
_.P.hideTimestampsChanged=function(){_.gf("hide-transcript-timestamps",this.hideTimestamps)};
_.P.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.P.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.P.handleSignalActionCopyTranscript=function(){var A=this,L=this.getBodyRenderer();L&&(L=((L==null?void 0:L.searchResultSegments)||(L==null?void 0:L.initialSegments)||[]).map(function(O){return _.q(O,ycW)}).filter(function(O){return!!O}).map(function(O){return{snippet:O.snippet||{runs:[{text:""}]},
startTimeText:O.startTimeText||{simpleText:""}}}).map(function(O){var X=(O.snippet.runs||[]).reduce(function(x,J){return x+J.text},"");
return A.hideTimestamps?X:O.startTimeText.simpleText+" "+X}).join("\n"),this.copyToClipboard(L))};
_.P.copyToClipboard=function(A){navigator.clipboard&&navigator.clipboard.writeText(A)};
_.P.getCurrentSearchBoxText=function(){var A;return(A=this.searchBox)==null?void 0:A.value};
_.P.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.P.getBodyRenderer=function(){var A;return _.q((A=this.data)==null?void 0:A.body,INJ)};
_.P.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.v2.Object.defineProperties(aA.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.YJ(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
aA.prototype.hideTimestampsChanged=aA.prototype.hideTimestampsChanged;aA.prototype.searchCleared=aA.prototype.searchCleared;aA.prototype.fireSearch=aA.prototype.fireSearch;aA.prototype.onReloadContinuationFinish=aA.prototype.onReloadContinuationFinish;aA.prototype.bodyChanged=aA.prototype.bodyChanged;aA.prototype.headerChanged=aA.prototype.headerChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],aA.prototype,"ytRendererBehavior",void 0);
_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],aA.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],aA.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.U8),_.Z("design:type",Object)],aA.prototype,"ytContinuationHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],aA.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],aA.prototype,"hideTimestamps",void 0);
_.I([_.K(),_.Z("design:type",Object)],aA.prototype,"isLoadingTranscripts",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],aA.prototype,"darkerPanels",void 0);_.I([_.K(),_.Z("design:type",Object)],aA.prototype,"isError",void 0);_.I([_.hT("data.header"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],aA.prototype,"headerChanged",null);
_.I([_.iy("data.body"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],aA.prototype,"bodyChanged",null);_.I([_.by("yt-reload-continuation-finish"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],aA.prototype,"onReloadContinuationFinish",null);_.I([_.by("yt-transcript-search-box-search"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],aA.prototype,"fireSearch",null);
_.I([_.by("yt-transcript-search-box-clear"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],aA.prototype,"searchCleared",null);_.I([_.hT("hideTimestamps"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],aA.prototype,"hideTimestampsChanged",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],aA);
_.m(aA,"ytd-transcript-search-panel-renderer",function(){if(oWW!==void 0)return oWW;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return oWW=A},{mode:1});var kG=function(){var A=_.G.apply(this,arguments)||this;A.player=null;A.playerPollJobId=0;return A};
_.g(kG,_.G);_.P=kG.prototype;_.P.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.P.onLoadReloadContinuation=function(A){_.h("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:A.target.data.continuation}}):(A={clickTrackingParams:A.target.data.clickTrackingParams,getTranscriptEndpoint:{params:A.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.X5().resolve(_.x$).resolveCommand(A,{form:{element:this.hostElement}}))};
_.P.configureRendererStamper=function(){return{"data.footer":{id:"footer",mapping:{transcriptFooterRenderer:"ytd-transcript-footer-renderer"}},"data.body":{id:"body",mapping:{transcriptBodyRenderer:"ytd-transcript-body-renderer"}},"data.content":{id:"content",mapping:{transcriptSearchPanelRenderer:"ytd-transcript-search-panel-renderer"}}}};
_.P.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.P.attached=function(){this.updatePlayerListening()};
_.P.detached=function(){this.updatePlayerListening()};
_.P.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.P.startPlayerListening=function(){var A=this,L;return _.u(function(O){if(O.nextAddress==1)return(L=_.d0())?O.yield(L.getPlayerPromise(),2):O.return();A.player=O.yieldResult;A.playerPollJobId=_.c1.addLowPriorityJob(function(){A.getPlayerVideoProgress()},1E3);
A.player.addEventListener("onCueRangeEnter",function(X){A.onCueRangeEnter(X)});
A.player.addEventListener("onCueRangeExit",function(X){A.onCueRangeExit(X)});
A.player.addEventListener("onStateChange",function(X){A.onPlayerStateChange(X)});
A.player.addEventListener("SEEK_TO",function(X){A.onPlayerSeek(X)});
_.qo(O)})};
_.P.getPlayerVideoProgress=function(){var A=this;_.c1.cancelJob(this.playerPollJobId);if(this.player){var L=this.player.getCurrentTime();_.dQ(this.hostElement,"yt-player-time-changed",[L])}this.playerPollJobId=_.c1.addLowPriorityJob(function(){A.getPlayerVideoProgress()},1E3)};
_.P.stopPlayerListening=function(){this.player=null;_.c1.cancelJob(this.playerPollJobId)};
_.P.onPlayerStateChange=function(A){A===2&&this.removePendingCue()};
_.P.onPlayerSeek=function(A){var L;if(L=this.pendingReplayCueId)L=this.pendingReplayCueId,L=A===(_.h("web_transcript_cue_id_killswitch")?Number(L):Number(L.split("_")[1]));L||this.removePendingCue()};
_.P.onCueRangeEnter=function(A){KMB(A)&&(this.pendingReplayCueId=A)};
_.P.onCueRangeExit=function(A){KMB(A)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.P.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.P.onYtTranscriptPlayerSeek=function(A){this.player&&this.player.seekTo(A,!0)};
_.P.onYtTranscriptPlayerReplay=function(A,L){this.player&&(this.player.addCueRange(rsB(A),A,L),this.player.seekTo(A,!0),this.player.playVideo())};
_.P.onYtTranscriptPlayerEdit=function(A,L){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(rsB(A),A,L),this.player.seekTo(A,!0))};
kG.prototype.onLoadReloadContinuation=kG.prototype.onLoadReloadContinuation;kG.prototype.panelContentVisibleChanged=kG.prototype.panelContentVisibleChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],kG.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],kG.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],kG.prototype,"ytRendererstamperBehavior",void 0);
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],kG.prototype,"ytActionHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],kG.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],kG.prototype,"panelContentVisible",void 0);_.I([_.hT("panelContentVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],kG.prototype,"panelContentVisibleChanged",null);
_.I([_.by("yt-load-reload-continuation"),_.Z("design:type",Function),_.Z("design:paramtypes",[Object]),_.Z("design:returntype")],kG.prototype,"onLoadReloadContinuation",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],kG);
_.m(kG,"ytd-transcript-renderer",function(){if(U0f!==void 0)return U0f;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return U0f=A},{mode:1});var XzP;var xoJ;var UA=function(){return _.G.apply(this,arguments)||this};
_.g(UA,_.G);UA.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.P4(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.VN(this.hostElement,[this.data.clickCommand],this.hostElement))};
UA.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.U5)()+_.Zp)+"px)"};
UA.prototype.updateShouldHideFromBinding=function(A){this.shouldHide=A.detail.value};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],UA.prototype,"rendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],UA.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Boolean)],UA.prototype,"shouldHide",void 0);_.I([_.Q({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],UA);
_.m(UA,"ytd-ad-engagement-panel-banner-renderer",function(){if(xoJ!==void 0)return xoJ;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return xoJ=A},{mode:_.e5("kevlar_poly_si_batch_j070")?1:2});var s9P;var vp=function(){var A=_.G.apply(this,arguments)||this;A.modernPanels=_.h("kevlar_watch_modern_panels");A.buttonUpdate=_.h("web_modern_buttons");A.adsSemanticText=_.h("enable_ads_web_ep_buenos_aires_and_padding_fix");return A};
_.g(vp,_.G);vp.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.I([_.K(),_.Z("design:type",Object)],vp.prototype,"data",void 0);_.I([_.K({computed:"computeHideDefaultAdBadge(data)"}),_.Z("design:type",Boolean)],vp.prototype,"hideDefaultAdBadge",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],vp.prototype,"modernPanels",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],vp.prototype,"buttonUpdate",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],vp.prototype,"adsSemanticText",void 0);
_.I([_.Q({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],vp);
_.m(vp,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(s9P!==void 0)return s9P;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return s9P=A},{mode:1});var JnJ;var oA=function(){var A=_.G.apply(this,arguments)||this;A.darkerPanels=_.h("web_watch_darker_panels");A.enableSqueezebackPanels=_.h("web_shorts_enable_squeezeback_panels");A.enableAnchoredPanel=_.h("desktop_shorts_v2_anchored_panel");A.modernPanels=_.h("kevlar_watch_modern_panels");A.headerClickListener=function(L){A.onHeaderClick(L)};
A.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return A};
_.g(oA,_.G);_.P=oA.prototype;_.P.computeAdsInfoButton=function(){if(_.h("web_modern_buttons")){var A,L;return(L=_.q((A=this.data)==null?void 0:A.subtitleComplex,qgB))==null?void 0:L.adInfoRenderer}};
_.P.updateHeaderClickListener=function(){var A,L,O;((A=this.data)==null?0:A.navigationEndpoint)||((L=this.data)==null?0:L.onClickCommand)||_.q((O=this.data)==null?void 0:O.visibilityButton,_.at)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.P.configureRendererStamper=function(){return{"data.visibilityButton":{id:"visibility-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer",sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},"data.subtitleComplex":{id:"subtitle-complex",mapping:{engagementPanelAdSubtitleRenderer:"ytd-engagement-panel-ad-subtitle-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}},
adsInfoButton:{id:"ads-info-button",mapping:{adHoverTextButtonRenderer:{component:"ytd-ad-hover-text-button-renderer",params:{modernUpdate:!0}}}},"data.informationButton":{id:"information-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.banner":{id:"banner",mapping:{adEngagementPanelBannerRenderer:"ytd-ad-engagement-panel-banner-renderer"}},"data.navigationButton":{id:"navigation-button",mapping:{buttonRenderer:"ytd-button-renderer"},reuseComponents:!1},"data.subheader":{id:"subheader",
mapping:{chipBarViewModel:{component:"chip-bar-view-model",params:{disableDeselection:!0}}}}}};
_.P.collapsedChanged=function(){var A;(A=this.data)!=null&&A.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.h("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.P.focus=function(A){var L=this;this.titleElement&&_.c1.addJob(function(){_.M6(L.titleElement,A)},0,500)};
_.P.computeTitleAriaLabel=function(A){var L=[];if(A.title){var O,X;L.push(this.ytRendererBehavior.getSimpleString(A.title)||((O=A.title.accessibility)==null?void 0:(X=O.accessibilityData)==null?void 0:X.label))}A.contextualInfo&&L.push(this.ytRendererBehavior.getSimpleString(A.contextualInfo));return L.join(" ")};
_.P.onHeaderClick=function(A){this.shouldTriggerHeaderClick(A)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.P4(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.VN(this.hostElement,[this.data.onClickCommand],this.hostElement)):(A=this.getVisibilityToggleButton())&&A.click())};
_.P.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var A=_.q(this.data.visibilityButton,_.$t)||_.q(this.data.visibilityButton,_.at);A&&this.ytRendererBehavior.logExplicitClick(A)}};
_.P.getVisibilityToggleButton=function(){var A=_.YJ(this.hostElement).querySelector("#visibility-button").firstElementChild;return(A==null?void 0:A.is)==="ytd-toggle-button-renderer"?A:null};
_.P.shouldTriggerHeaderClick=function(A){return!_.xu(_.oa(A),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.P.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(A){A=_.q(A,_.V3o);this.targetId&&(A==null?void 0:A.targetId)===this.targetId&&(A=A.navigationButton)&&this.set("data.navigationButton",A)};
_.v2.Object.defineProperties(oA.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.h("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var A;return!!(((A=this.entity)==null?0:A.isActionButtonHidden)||this.hideActionButton)}}});
oA.prototype.collapsedChanged=oA.prototype.collapsedChanged;oA.prototype.updateHeaderClickListener=oA.prototype.updateHeaderClickListener;_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],oA.prototype,"actionHandlerBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],oA.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],oA.prototype,"ytRendererstamperBehavior",void 0);
_.I([_.N(_.HL),_.Z("design:type",Object)],oA.prototype,"ytdReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],oA.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",String)],oA.prototype,"targetId",void 0);_.I([_.K(),_.Z("design:type",Boolean)],oA.prototype,"collapsed",void 0);_.I([_.K(),_.Z("design:type",Boolean)],oA.prototype,"hideActionButton",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],oA.prototype,"shortsPanel",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],oA.prototype,"liveChatEngagementPanel",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],oA.prototype,"learningChatEngagementPanel",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],oA.prototype,"darkerPanels",void 0);_.I([_.qR("#title"),_.Z("design:type",HTMLElement)],oA.prototype,"titleElement",void 0);_.I([_.qR("#header"),_.Z("design:type",HTMLElement)],oA.prototype,"headerElement",void 0);
_.I([_.K({computed:"computeAdsInfoButton(data)"}),_.Z("design:type",Object)],oA.prototype,"adsInfoButton",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],oA.prototype,"enableSqueezebackPanels",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],oA.prototype,"enableAnchoredPanel",void 0);_.I([_.K({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(A,L){return _.eM(A.entities,"engagementPanelTitleHeaderEntity",L)}}),
_.Z("design:type",Object)],oA.prototype,"entity",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],oA.prototype,"modernPanels",void 0);_.I([_.K({reflectToAttribute:!0}),_.r("targetId"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],oA.prototype,"adsSemanticText",null);_.I([_.hT("data","data.navigationEndpoint","data.onClickCommand"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],oA.prototype,"updateHeaderClickListener",null);
_.I([_.iy("collapsed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],oA.prototype,"collapsedChanged",null);_.I([_.r("entity","hideActionButton"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],oA.prototype,"isActionButtonHidden",null);_.I([_.Q({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],oA);
_.m(oA,"ytd-engagement-panel-title-header-renderer",function(){if(JnJ!==void 0)return JnJ;var A=document.createElement("template");_.p(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-title-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" aria-hidden="true" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="ads-info-button" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="header" class="style-scope ytd-engagement-panel-title-header-renderer">\n  <div id="navigation-button" hidden="[[!data.navigationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-engagement-panel-title-header-renderer"></yt-img-shadow>\n  <div id="title-container" class="style-scope ytd-engagement-panel-title-header-renderer">\n    <h2 id="title" aria-label$="[[computeTitleAriaLabel(data)]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      <yt-formatted-string id="title-text" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="contextual-info" hidden="[[!data.contextualInfo]]" text="[[data.contextualInfo]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </yt-formatted-string>\n    <ytd-badge-supported-renderer hidden="[[!data.titleBadge]]" top-standalone-badge="[[data.titleBadge]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="subtitle-complex" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  </div>\n  <div id="action-button" hidden="[[isActionButtonHidden]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="menu" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="visibility-button" on-click="onVisibilityButtonClick" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n</div>\n<div id="subheader" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return JnJ=A},{mode:1});var Pe3;var AS=function(){return _.G.apply(this,arguments)||this};
_.g(AS,_.G);AS.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],AS.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],AS.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],AS.prototype,"data",void 0);_.I([_.Q({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],AS);
_.m(AS,"ytd-macro-markers-info-item-renderer",function(){if(Pe3!==void 0)return Pe3;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return Pe3=A},{mode:1});var do2;var Lf=function(A,L,O,X,x,J){_.p$.call(this);var Y=this;this.JSC$23666_containerElement=A;this.hostElement=L;this.supportedSyncItems=O;this.syncEntityKey=X;this.options=x;this.renderLazyListItems=J;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;YJ2(this);u0_(this);this.JSC$23666_scrollAnimation=new _.U6(function(T){A.scrollTop=T});
_.VI(this,this.JSC$23666_scrollAnimation);this.addOnDisposeCallback(function(){Y.exitBrowsingMode(!1);Y.activeItem&&Y.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.g(Lf,_.p$);var YJ2=function(A){var L=_.Ge(_.X5().resolve(_.al),function(O){return O.entities.markersEngagementPanelSyncEntity||{}},function(O,X){var x;
O[A.syncEntityKey]!==X[A.syncEntityKey]&&((x=O[A.syncEntityKey])==null?void 0:x.activeItemIndex)!==void 0&&A.updatePanelActiveItem(O[A.syncEntityKey].activeItemIndex)});
A.unsubscribeFromTimedMarkersListSyncEntity=L;A.addOnDisposeCallback(L);Tp2(A)},Tp2=function(A){var L=_.X5().resolve(_.al);
L=_.ljp(L.getState(),A.syncEntityKey);(L==null?void 0:L.activeItemIndex)!==void 0&&(L=A.getItemByIndex(L.activeItemIndex))&&A.setActiveItem(L)},u0_=function(A){var L=new _.Of(A.onScroll,50,A);
_.VI(A,L);var O=function(){L.fire()};
A.JSC$23666_containerElement.addEventListener("scroll",O);A.addOnDisposeCallback(function(){A.JSC$23666_containerElement.removeEventListener("scroll",O)})};
_.P=Lf.prototype;
_.P.updatePanelActiveItem=function(A){var L=this.getItemByIndex(A);if(L){if(this.setActiveItem(L),this.contentVisible)if(this.browsingMode){var O;((O=this.options)==null?void 0:O.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(A=V40(this),L.offsetTop<this.JSC$23666_containerElement.clientHeight+this.JSC$23666_containerElement.scrollTop&&A&&!this.activeItemBelowSyncPosition&&this.exitBrowsingMode(!1));DoW(this)}else this.scrollToItem(L)}else _.Rv(new _.pe("Could not find "+this.supportedSyncItems+
" sync child to set active.",A,this.JSC$23666_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.P.getItemByIndex=function(A){var L;(L=this.renderLazyListItems)==null||L.call(this,A);L=this.JSC$23666_containerElement.querySelectorAll(this.supportedSyncItems);if(L.length>A)return L[A]};
_.P.setActiveItem=function(A){this.activeItem&&this.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));A.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));this.activeItem=A};
_.P.scrollToItem=function(A){A=this.getScrollPositionForItem(A);this.JSC$23666_containerElement.scrollTop!==A&&this.JSC$23666_scrollAnimation.start(this.JSC$23666_containerElement.scrollTop,A,300)};
_.P.getScrollPositionForItem=function(A){if(this.JSC$23666_containerElement.querySelectorAll(this.supportedSyncItems)[0]===A)return 0;var L,O=((L=this.options)==null?0:L.percentOffset)?this.JSC$23666_containerElement.clientHeight*this.options.percentOffset:0;A=_.QS(A).y+this.JSC$23666_containerElement.scrollTop-(_.QS(this.JSC$23666_containerElement).y+O);return Math.max(0,Math.min(A,this.JSC$23666_containerElement.scrollHeight-this.JSC$23666_containerElement.offsetHeight))};
_.P.onScroll=function(){this.activeItemBelowSyncPosition=V40(this);if(this.activeItem&&!this.JSC$23666_scrollAnimation.isAnimating()&&Math.abs(this.JSC$23666_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var A;switch((A=this.options)==null?void 0:A.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":this.enterBrowsingMode(!eoD(this));DoW(this);break;default:this.enterBrowsingMode(!0)}}};
_.P.enterBrowsingMode=function(A){var L=this,O,X;return _.u(function(x){if(x.nextAddress==1){if(L.browsingMode)return x.return();L.browsingMode=!0;A&&L.hostElement.classList.add("browsing-mode");L.playerExitBrowsingModeListener=function(){L.exitBrowsingMode(!1)};
return x.yield(_.bS(),2)}O=x.yieldResult;(X=O)==null||X.addEventListener("SEEK_TO",L.playerExitBrowsingModeListener);_.qo(x)})};
_.P.exitBrowsingMode=function(A){A=A===void 0?!0:A;this.browsingMode&&(this.browsingMode=!1,this.hostElement.classList.remove("browsing-mode"),A&&this.scrollToItem(this.activeItem),this.removePlayerSeekListener())};
_.P.removePlayerSeekListener=function(){var A=this,L,O;return _.u(function(X){if(X.nextAddress==1)return A.playerExitBrowsingModeListener?X.yield(_.bS(),3):X.jumpTo(0);L=X.yieldResult;(O=L)==null||O.removeEventListener("SEEK_TO",A.playerExitBrowsingModeListener);A.playerExitBrowsingModeListener=void 0;_.qo(X)})};
var DoW=function(A){var L;((L=A.options)==null?void 0:L.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(eoD(A)?A.hostElement.classList.remove("browsing-mode"):A.activeItem&&A.hostElement.classList.add("browsing-mode"))},V40=function(A){if(!A.activeItem)return!1;
var L,O=((L=A.options)==null?0:L.percentOffset)?A.JSC$23666_containerElement.clientHeight*A.options.percentOffset:0;return A.activeItem.offsetTop>=A.JSC$23666_containerElement.scrollTop+O},eoD=function(A){if(!A.activeItem)return!1;
var L=A.activeItem.offsetTop+14<=A.JSC$23666_containerElement.scrollTop+A.JSC$23666_containerElement.clientHeight;return A.activeItem.offsetTop+A.activeItem.clientHeight-14>=A.JSC$23666_containerElement.scrollTop&&L};
Lf.prototype.panelContentVisibleChanged=function(A){(this.contentVisible=A)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var E3_=function(A,L){A.syncEntityKey=L;var O;(O=A.unsubscribeFromTimedMarkersListSyncEntity)==null||O.call(A);YJ2(A)};
Lf.prototype.setOptions=function(A){this.options=A};var Ow=function(){var A=_.G.apply(this,arguments)||this;A.browsingMode=!1;A.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return A};
_.g(Ow,_.G);_.P=Ow.prototype;_.P.activeItemChanged=function(){if(!_.h("synced_panel_scrolling_controller")){var A;((A=this.syncEntity)==null?void 0:A.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.P.created=function(){var A=this;_.h("synced_panel_scrolling_controller")||(this.JSC$23670_scrollAnimation=new _.U6(function(L){A.contents.scrollTop=L}),this.boundExitBrowsingMode=function(){A.exitBrowsingMode(!1)})};
_.P.detached=function(){if(_.h("synced_panel_scrolling_controller")){var A;(A=this.scrollController)==null||A.dispose();this.scrollController=void 0}else this.removePlayerSeekListener()};
_.P.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{macroMarkersListItemRenderer:{component:"ytd-macro-markers-list-item-renderer",properties:{useCustomColors:"[[useCustomColors]]"},params:{seekWithAnimationOnClick:!0}},macroMarkersInfoItemRenderer:"ytd-macro-markers-info-item-renderer",itemSectionRenderer:"ytd-item-section-renderer"}}}};
_.P.dataChanged=function(){var A=this;_.h("synced_panel_scrolling_controller")?_.kd(this,function(){if(A.scrollController){var L;(L=A.scrollController)==null||L.exitBrowsingMode(!1);var O,X,x;(X=A.scrollController)==null||E3_(X,(x=(O=A.data)==null?void 0:O.syncModelEntityKey)!=null?x:"default-macro-markers-list-renderer-entity-key");var J,Y,T;(T=A.scrollController)==null||T.setOptions({percentOffset:(J=A.data)==null?void 0:J.selectedItemAlignmentPercentOffset,floatingPillType:(Y=A.data)==null?void 0:
Y.floatingPillType})}else{var V,E,n,t;A.scrollController=new Lf(A.contents,A.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(t=(V=A.data)==null?void 0:V.syncModelEntityKey)!=null?t:"default-macro-markers-list-renderer-entity-key",{percentOffset:(E=A.data)==null?void 0:E.selectedItemAlignmentPercentOffset,floatingPillType:(n=A.data)==null?void 0:n.floatingPillType},function(b){A.renderLazyListItems(b)})}A.scrollController.panelContentVisibleChanged(!!A.panelContentVisible)}):
this.exitBrowsingMode()};
_.P.computeButtonShape=function(){var A=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){A.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.P.computeSyncEnabled=function(A){return!(A==null||!A.syncButtonLabel)};
_.P.renderLazyListItems=function(A){for(var L=this.contents.children,O=0,X=0;X<L.length;X++){var x=void 0;(x=L[X].ytLazyListBehavior)==null||x.fillRemainingListItems();var J=void 0,Y=void 0;x=_.q((J=this.data)==null?void 0:(Y=J.contents)==null?void 0:Y[X],_.ss6);Y=J=void 0;if((J=x)==null?0:(Y=J.contents)==null?0:Y.length)O+=x.contents.length;if(O>=A)break}};
_.P.getItemByIndex=function(A){this.renderLazyListItems(A);var L=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(L.length>A)return L[A]};
_.P.setActiveItem=function(A){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);A.active!==void 0&&(A.active=!0);this.currentActiveItem=A};
_.P.handleSetActivePanelItemAction=function(A){if((A=_.q(A,e72))&&this.panelTargetId===A.panelTargetId){A=A.itemIndex;if(_.h("synced_panel_scrolling_controller")){var L,O;var X=(O=(L=this.data)==null?void 0:L.syncModelEntityKey)!=null?O:"default-macro-markers-list-renderer-entity-key"}else{var x;X=(x=this.data)==null?void 0:x.syncModelEntityKey}if(X){var J;((J=this.syncEntity)==null?void 0:J.activeItemIndex)!==A&&this.ytdReduxBehavior.dispatch(_.NV("markersEngagementPanelSyncEntity",X,{key:X,activeItemIndex:A}))}else this.updatePanelActiveItem(A)}};
_.P.updatePanelActiveItem=function(A){var L=this.getItemByIndex(A);L?(this.setActiveItem(L),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(L)):_.Rv(new _.pe("Could not find ytd-macro-markers-list-renderer sync child to set active.",A,this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model").length))};
_.P.scrollToItem=function(A){A=this.getScrollPositionForItem(A);this.contents.scrollTop!==A&&this.JSC$23670_scrollAnimation.start(this.contents.scrollTop,A,300)};
_.P.getScrollPositionForItem=function(A){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===A)return 0;A=_.QS(A).y+this.contents.scrollTop-_.QS(this.contents).y-this.getStickyHeaderHeight(A);return Math.min(A,this.contents.scrollHeight-this.contents.offsetHeight)};
_.P.getStickyHeaderHeight=function(A){if(A.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var L,O,X;return(X=(L=A.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(O=L.header)==null?void 0:O.offsetHeight)!=null?X:0}return 0};
_.P.onScroll=function(){_.h("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$23670_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.P.enterBrowsingMode=function(){var A=this;return _.u(function(L){if(L.nextAddress==1){if(A.browsingMode)return L.return();A.browsingMode=!0;return L.yield(_.Yu().getPlayerPromise(),2)}A.player=L.yieldResult;A.player.addEventListener("SEEK_TO",A.boundExitBrowsingMode);_.qo(L)})};
_.P.exitBrowsingMode=function(A){this.browsingMode&&(this.browsingMode=!1,(A===void 0||A)&&this.scrollToItem(this.currentActiveItem),this.removePlayerSeekListener())};
_.P.removePlayerSeekListener=function(){this.player&&(this.player.removeEventListener("SEEK_TO",this.boundExitBrowsingMode),this.player=void 0)};
_.P.onSyncClick=function(){if(_.h("synced_panel_scrolling_controller")){var A;(A=this.scrollController)==null||A.exitBrowsingMode()}else this.exitBrowsingMode()};
_.P.panelContentVisibleChanged=function(){if(_.h("synced_panel_scrolling_controller")){var A;(A=this.scrollController)==null||A.panelContentVisibleChanged(!!this.panelContentVisible)}else this.panelContentVisible&&this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&this.scrollToItem(this.currentActiveItem)};
Ow.prototype.panelContentVisibleChanged=Ow.prototype.panelContentVisibleChanged;Ow.prototype.dataChanged=Ow.prototype.dataChanged;Ow.prototype.activeItemChanged=Ow.prototype.activeItemChanged;_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],Ow.prototype,"actionHandlerBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Ow.prototype,"ytRendererBehavior",void 0);
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Ow.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],Ow.prototype,"ytdReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Ow.prototype,"data",void 0);_.I([_.K({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],Ow.prototype,"useCustomColors",void 0);_.I([_.K({computed:"computeSyncEnabled(data)"}),_.Z("design:type",Boolean)],Ow.prototype,"syncEnabled",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",String)],Ow.prototype,"panelTargetId",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Ow.prototype,"panelContentVisible",void 0);_.I([_.qR("#contents"),_.Z("design:type",HTMLElement)],Ow.prototype,"contents",void 0);_.I([_.qR("#sync-container"),_.Z("design:type",HTMLElement)],Ow.prototype,"syncContainer",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Ow.prototype,"browsingMode",void 0);
_.I([_.K({selectorArgs:["data.syncModelEntityKey"],selector:_.ljp}),_.Z("design:type",Object)],Ow.prototype,"syncEntity",void 0);_.I([_.hT("syncEntity.activeItemIndex"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ow.prototype,"activeItemChanged",null);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ow.prototype,"dataChanged",null);
_.I([_.hT("panelContentVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ow.prototype,"panelContentVisibleChanged",null);_.I([_.Q({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],Ow);
_.m(Ow,"ytd-macro-markers-list-renderer",function(){if(do2!==void 0)return do2;var A=document.createElement("template");_.p(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" on-scroll="onScroll" class="style-scope ytd-macro-markers-list-renderer"></div>\n<div id="sync-container" hidden="[[!syncEnabled]]" class="style-scope ytd-macro-markers-list-renderer">\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return do2=A},{mode:1});var n3W;var xy=function(){return _.G.apply(this,arguments)||this};
_.g(xy,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],xy.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],xy.prototype,"ytComponentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],xy.prototype,"data",void 0);_.I([_.Q({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],xy);
_.m(xy,"ytd-error-corrections-section-item-renderer",function(){if(n3W!==void 0)return n3W;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return n3W=A},{mode:1});var t43;var sw=function(){return _.G.apply(this,arguments)||this};
_.g(sw,_.G);sw.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],sw.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],sw.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],sw.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],sw.prototype,"data",void 0);_.I([_.Q({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],sw);
_.m(sw,"ytd-error-corrections-section-renderer",function(){if(t43!==void 0)return t43;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return t43=A},{mode:1});var bLJ;var JS=function(){return _.G.apply(this,arguments)||this};
_.g(JS,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],JS.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],JS.prototype,"componentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],JS.prototype,"data",void 0);_.I([_.Q({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],JS);
_.m(JS,"ytd-topic-link-renderer",function(){if(bLJ!==void 0)return bLJ;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return bLJ=A},{mode:1});var ho2;var PN=function(){var A=_.G.apply(this,arguments)||this;A.modern=_.h("kevlar_modern_sd_v2");A.modernLockupV2=_.h("modernize_structured_description_playlist_lockups_v2");A.modernTypography=_.h("web_modern_typography");return A};
_.g(PN,_.G);PN.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"}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],PN.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],PN.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],PN.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],PN.prototype,"modern",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],PN.prototype,"modernLockupV2",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],PN.prototype,"modernTypography",void 0);_.I([_.Q({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],PN);
_.m(PN,"ytd-video-description-course-section-renderer",function(){if(ho2!==void 0)return ho2;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return ho2=A},{mode:1});var SJf;var d4=function(){var A=_.G.apply(this,arguments)||this;A.modern=_.h("kevlar_modern_sd_v2");A.modernTypography=_.h("web_modern_typography");return A};
_.g(d4,_.G);d4.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"}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],d4.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],d4.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],d4.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],d4.prototype,"modern",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],d4.prototype,"modernTypography",void 0);
_.I([_.Q({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],d4);
_.m(d4,"ytd-video-description-files-section-renderer",function(){if(SJf!==void 0)return SJf;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return SJf=A},{mode:1});var qJW;var Yy=function(){return _.G.apply(this,arguments)||this};
_.g(Yy,_.G);Yy.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"}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Yy.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Yy.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Yy.prototype,"data",void 0);_.I([_.Q({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],Yy);
_.m(Yy,"ytd-video-description-gaming-section-renderer",function(){if(qJW!==void 0)return qJW;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return qJW=A},{mode:1});var g3g;var uX=function(){var A=_.G.apply(this,arguments)||this;A.isExpanded=!1;return A};
_.g(uX,_.G);uX.prototype.computeHasDefaultMetadataEndpoint=function(A){var L;A=A==null?void 0:(L=A.defaultMetadata)==null?void 0:L.runs;return!(!A||A.length!==1||!A[0].navigationEndpoint)};
uX.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.v2.Object.defineProperties(uX.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],uX.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],uX.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],uX.prototype,"isExpanded",void 0);_.I([_.K({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],uX.prototype,"hasDefaultMetadataEndpoint",void 0);
_.I([_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],uX.prototype,"isExpandable",null);_.I([_.r("data","isExpandable","isExpanded"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],uX.prototype,"showExpandedMetadata",null);_.I([_.Q({is:"ytd-info-row-renderer",disableElementRegistration:!0})],uX);
_.m(uX,"ytd-info-row-renderer",function(){if(g3g!==void 0)return g3g;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return g3g=A},{mode:1});var wzw;var TB=function(){var A=_.G.apply(this,arguments)||this;A.currentIndex=0;A.supportComponentResize=!0;A.modern=_.h("kevlar_modern_sd_v2");A.JSC$23696_lastScrollContainerWidth=NaN;return A};
_.g(TB,_.G);_.P=TB.prototype;
_.P.configureRendererStamper=function(){return{videoLockups:{id:"items",mapping:{compactVideoRenderer:{component:"ytd-compact-video-renderer",params:{forceOneLineTitle:!0,musicMetadataVideoLockup:!0,hideThumbnail:!0}}},reuseComponents:!1},infoRows:{id:"info-rows",mapping:{infoRowRenderer:"ytd-info-row-renderer"}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",
properties:{"on-tap":"[[boundNextClick]]"}}}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
_.P.getItemsPath=function(){return"videoLockups"};
_.P.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.P.onIronResize=function(){this.updateVideoLockupStyles()};
_.P.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.P.updateVideoLockupStyles=function(){var A;this.JSC$23696_scrollContainer!==void 0&&(A=this.videoLockups)!=null&&A.length&&(A=this.JSC$23696_scrollContainer.clientWidth,A!==this.JSC$23696_lastScrollContainerWidth&&(this.JSC$23696_lastScrollContainerWidth=A,_.eq(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(A*.8,415)+"px"}),_.P4(this.hostElement,"iron-resize")))};
_.v2.Object.defineProperties(TB.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var A=[],L;if((L=this.data)==null||!L.carouselLockups)return A;L=_.d(this.data.carouselLockups);for(var O=L.next();!O.done;O=L.next()){O=O.value;var X=void 0;((X=_.q(O,H6_))==null?0:X.videoLockup)&&A.push(_.q(O,H6_).videoLockup)}return A}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.videoLockups)==null||!A.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var A=[],L;if((L=this.data)==null||!L.carouselLockups)return A;var O;return(O=_.q(this.data.carouselLockups[this.scrollCount],H6_))==null?void 0:O.infoRows}}});
TB.prototype.dataChanged=TB.prototype.dataChanged;TB.prototype.onIronResize=TB.prototype.onIronResize;TB.prototype.hiddenChanged=TB.prototype.hiddenChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],TB.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],TB.prototype,"componentBehavior",void 0);_.I([_.N(_.Vy.YtdHorizontalListBehavior),_.Z("design:type",Object)],TB.prototype,"ytdHorizontalListBehavior",void 0);
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],TB.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],TB.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],TB.prototype,"inlineStructuredDescription",void 0);_.I([_.K({value:2}),_.Z("design:type",Number)],TB.prototype,"initialCount",void 0);_.I([_.K(),_.Z("design:type",Object)],TB.prototype,"currentIndex",void 0);
_.I([_.K(),_.Z("design:type",Number)],TB.prototype,"scrollCount",void 0);_.I([_.K(),_.Z("design:type",Object)],TB.prototype,"supportComponentResize",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],TB.prototype,"contentHidden",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],TB.prototype,"modern",void 0);_.I([_.qR("#scroll-container"),_.Z("design:type",HTMLDivElement)],TB.prototype,"JSC$23696_scrollContainer",void 0);
_.I([_.hT("contentHidden"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],TB.prototype,"hiddenChanged",null);_.I([_.r("data"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],TB.prototype,"videoLockups",null);_.I([_.r("videoLockups"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],TB.prototype,"hasVideoLockups",null);
_.I([_.by("iron-resize"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],TB.prototype,"onIronResize",null);_.I([_.r("data","scrollCount"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],TB.prototype,"infoRows",null);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],TB.prototype,"dataChanged",null);_.I([_.Q({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],TB);
_.m(TB,"ytd-video-description-music-section-renderer",function(){if(wzw!==void 0)return wzw;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return wzw=A},{mode:_.e5("kevlar_poly_si_batch_j081")?1:2});var pzP;var VA=function(){var A=_.G.apply(this,arguments)||this;A.modern=_.h("kevlar_modern_sd_v2");A.modernTypography=_.h("web_modern_typography");return A};
_.g(VA,_.G);VA.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],VA.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],VA.prototype,"ytRendererBehavior",void 0);_.I([_.K({}),_.Z("design:type",Object)],VA.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],VA.prototype,"modern",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],VA.prototype,"modernTypography",void 0);
_.I([_.Q({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],VA);
_.m(VA,"ytd-video-description-transcript-section-renderer",function(){if(pzP!==void 0)return pzP;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return pzP=A},{mode:1});var iLa;_.Y4(_.xa(function(A){var L=_.iS(_.l89,function(){return A.data().firstProviderLinkStatusEntityKey}),O=_.iS(_.l89,function(){return A.data().secondProviderLinkStatusEntityKey}),X=function(){var x,J;
return((x=L())==null?void 0:x.linked)||((J=O())==null?void 0:J.linked)};
return _.D("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.D(_.Xg,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return A.data().sectionTitle}}),_.D(_.Xg,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return X()?A.data().connectedMessage:A.data().notConnectedMessage}}),_.D(_.e,{cond:X,
then:function(){return _.D(_.ID,{data:function(){return A.data().connectedButton}},{buttonViewModel:function(x){return _.D(_.gj,{data:x.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.D(_.e,{cond:function(){return!X()},
then:function(){return _.D(_.ID,{data:function(){return A.data().notConnectedButton}},{buttonViewModel:function(x){return _.D(_.gj,{data:x.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Hj"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.x5}});_.Y4(_.xa(function(A){var L=A.data;return _.D("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.D("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.D(_.Xg,{text:function(){return L().sectionTitle}})),_.D("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.D(_.Xg,{text:function(){return L().bodyHeader}})),_.D("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.D(_.Xg,{text:function(){return L().bodyText}})),_.D(_.e,
{cond:function(){return L().attributionText},
then:function(){return _.D("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.D(_.Xg,{text:function(){return L().attributionText}}))}}))},"Ij"),"how-this-was-made-section-view-model",{props:{data:_.x5}});_.Y4(_.xa(function(A){return _.D("yt-video-description-youchat-section-view-model",{class:_.qn("ytVideoDescriptionYouchatSectionViewModelHost")},_.D("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.D(_.Xg,{text:function(){return A.data().sectionTitle}})),_.D("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.D(_.Xg,{text:function(){return A.data().subHeaderText}})),_.D("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.D(_.gj,{data:function(){return _.q(A.data().primaryButton,
_.Cu)}})))},"Jj"),"yt-video-description-youchat-section-view-model",{props:{data:_.x5}});var Dy=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return A};
_.g(Dy,_.G);_.P=Dy.prototype;
_.P.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{videoDescriptionHeaderRenderer:{component:"ytd-video-description-header-renderer",properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[watchWhileSdp]]",engagementPanel:"[[engagementPanel]]"}},expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{panelContentVisible:"[[panelContentVisible]]",hasDescriptionOnly:"[[hasDescriptionOnly]]",engagementPanel:"[[engagementPanel]]",
shortsPanel:"[[shortsPanel]]"}},horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{inlineStructuredDescription:"[[inlineStructuredDescription]]"}},metadataRowContainerRenderer:{component:"ytd-metadata-row-container-renderer",params:{engagementPanelContent:!0}},merchandiseShelfRenderer:"ytd-merch-shelf-renderer",videoDescriptionCourseSectionRenderer:"ytd-video-description-course-section-renderer",videoDescriptionFilesSectionRenderer:"ytd-video-description-files-section-renderer",
videoDescriptionTranscriptSectionRenderer:"ytd-video-description-transcript-section-renderer",videoDescriptionFantasySectionViewModel:"ytw-video-description-fantasy-section-view-model",videoDescriptionGamingSectionRenderer:"ytd-video-description-gaming-section-renderer",videoDescriptionInfocardsSectionRenderer:{component:"ytd-video-description-infocards-section-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoDescriptionMusicSectionRenderer:{component:"ytd-video-description-music-section-renderer",
properties:{inlineStructuredDescription:"[[inlineStructuredDescription]]"}},errorCorrectionsSectionRenderer:"ytd-error-corrections-section-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},shelfRenderer:"ytd-shelf-renderer",courseProgressViewModel:"yt-course-progress-view-model",howThisWasMadeSectionViewModel:"how-this-was-made-section-view-model",videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoDescriptionYouchatSectionViewModel:"yt-video-description-youchat-section-view-model"}},
videoSummary:{id:"video-summary",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},merchShelf:{id:"merch-shelf",mapping:{merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",params:{watchMetadataRefresh:!0,inStructuredDescription:!0}}}}}};
_.P.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.P.dataChanged=function(){var A,L;this.hasDescriptionOnly=!(((A=this.data)==null?void 0:(L=A.items)==null?void 0:L.length)!==1||!_.q(this.data.items[0],Ig))};
_.P.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.P.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.P.autoFocusDescription=function(){var A;((A=_.X5().resolve(_.Ot(_.bv)))==null?0:A.isKeyBoardInUse())&&this.description&&_.$o(this.description)};
_.P.resize=function(){if(_.h("kevlar_disable_sd_resize"))this.JSC$23704_cardList&&_.P4(this.JSC$23704_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.P4(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.P4(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.P.scrollToSection=function(A){if(A=this.getSectionElement(A))_.dQ(this.hostElement,"yt-scroll-to-watch-element",[A]),A.focus()};
_.P.getSectionElement=function(A){switch(A){case "infocards-item-section":var L;return(L=this.infocardsSection)!=null?L:null;case "transcript-item-section":var O;return(O=this.transcriptSection)!=null?O:null;case "how-this-was-made-section-item-section":var X;return(X=this.howThisWasMadeSection)!=null?X:null;case "files-item-section":var x;return(x=this.filesSection)!=null?x:null;default:return null}};
_.P.handleSetActiveItemAction=function(A){var L=_.q(A,e72),O=L&&(L==null?void 0:L.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$23704_cardList;if(L&&O){A=this.currentActiveChapter;var X=this.currentActiveProblem;L=O==null?void 0:O.getItemByIndex(L.itemIndex);var x=O=!0;L&&(L.active=!0,L.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(O=A!==L,x=!1,this.currentActiveChapter=L):(L==null?void 0:L.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(O=!1,x=X!==L,this.currentActiveProblem=L));A&&O&&(A.active=!1);X&&x&&(X.active=!1)}};
_.v2.Object.defineProperties(Dy.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.h("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
Dy.prototype.onYtExpanderMoreTapped=Dy.prototype.onYtExpanderMoreTapped;Dy.prototype.onHiddenChanged=Dy.prototype.onHiddenChanged;Dy.prototype.dataChanged=Dy.prototype.dataChanged;Dy.prototype.panelContentVisibleChanged=Dy.prototype.panelContentVisibleChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Dy.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Dy.prototype,"ytRendererstamperBehavior",void 0);
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],Dy.prototype,"actionHandlerBehavior",void 0);_.I([_.N(_.y9),_.Z("design:type",Object)],Dy.prototype,"ironResizableBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Dy.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Boolean)],Dy.prototype,"panelContentVisible",void 0);_.I([_.K(),_.Z("design:type",Boolean)],Dy.prototype,"hasDescriptionOnly",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Dy.prototype,"inlineStructuredDescription",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Dy.prototype,"hidden",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Dy.prototype,"shortsPanel",void 0);_.I([_.K(),_.Z("design:type",Object)],Dy.prototype,"videoSummary",void 0);_.I([_.K(),_.Z("design:type",Object)],Dy.prototype,"merchShelf",void 0);
_.I([_.r("videoSummary"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Dy.prototype,"showVideoSummary",null);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Dy.prototype,"engagementPanel",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Dy.prototype,"watchWhileSdp",void 0);_.I([_.qR("ytd-expandable-video-description-body-renderer"),_.Z("design:type",Object)],Dy.prototype,"description",void 0);
_.I([_.qR("ytd-horizontal-card-list-renderer"),_.Z("design:type",Object)],Dy.prototype,"JSC$23704_cardList",void 0);_.I([_.qR("ytd-horizontal-card-list-renderer[center-items]"),_.Z("design:type",Object)],Dy.prototype,"problemWalkthroughCardList",void 0);_.I([_.qR("ytd-shelf-renderer"),_.Z("design:type",Object)],Dy.prototype,"shelfSection",void 0);_.I([_.qR("ytd-video-description-music-section-renderer"),_.Z("design:type",Object)],Dy.prototype,"musicMetadataSection",void 0);
_.I([_.qR("ytd-video-description-infocards-section-renderer"),_.Z("design:type",Object)],Dy.prototype,"infocardsSection",void 0);_.I([_.qR("ytd-video-description-transcript-section-renderer"),_.Z("design:type",Object)],Dy.prototype,"transcriptSection",void 0);_.I([_.qR("how-this-was-made-section-view-model"),_.Z("design:type",Object)],Dy.prototype,"howThisWasMadeSection",void 0);_.I([_.qR("ytd-video-description-files-section-renderer"),_.Z("design:type",Object)],Dy.prototype,"filesSection",void 0);
_.I([_.hT("panelContentVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Dy.prototype,"panelContentVisibleChanged",null);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Dy.prototype,"dataChanged",null);_.I([_.hT("hidden"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Dy.prototype,"onHiddenChanged",null);
_.I([_.by("yt-expander-more-tapped"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Dy.prototype,"onYtExpanderMoreTapped",null);_.I([_.Q({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],Dy);
_.m(Dy,"ytd-structured-description-content-renderer",function(){if(iLa!==void 0)return iLa;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return iLa=A},{mode:2});var Npo;var rnB;var e_=function(){return _.G.apply(this,arguments)||this};
_.g(e_,_.G);e_.prototype.computeAriaLabel=function(A){var L,O;return(A==null?void 0:(L=A.accessibility)==null?void 0:(O=L.accessibilityData)==null?void 0:O.label)||_.b3("LOADING",void 0,"Loading")};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],e_.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],e_.prototype,"data",void 0);_.I([_.K({computed:"computeAriaLabel(data)"}),_.Z("design:type",String)],e_.prototype,"ariaLabel",void 0);_.I([_.yU({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],e_);
_.m(e_,"yt-content-loading-renderer",function(){if(rnB===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;Npo===void 0&&(Npo=document.createElement("template"));var X=Npo;O.call(L,X.content.cloneNode(!0),A.content.firstChild);rnB=A}A=rnB;return A},{mode:_.e5("kevlar_poly_si_batch_j043")?1:2});_.Y4(_.xa(function(A){var L=_.d(_.uQ(!1,void 0,"QkPiwb")),O=L.next().value,X=L.next().value;L=_.d(_.uQ(!1,void 0,"AFECB"));var x=L.next().value,J=L.next().value;_.GD(function(){var V=_.q(A.data().collaboratePlaylistCollaborationSetting,Fla);V&&X(V.switchedOnByDefault);var E=_.q(A.data().allowNewCollaboratorsPlaylistCollaborationSetting,Fla);E&&J(E.switchedOnByDefault);if(!V&&!E||!V&&A.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")X(!0),J(!0)});
var Y=function(V){X(V);J(V);var E=A.data().playlistCollaborationEntityKey||"";var n=_.oJ().getState();(n=_.eM(n.entities,"playlistCollaborationEntity",E))&&(n==null?void 0:n.isCollaborative)===V||_.oJ().dispatch(_.NV("playlistCollaborationEntity",E,Object.assign({},n,{isCollaborative:V})))},T=function(V){J(V)};
return _.D("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.D("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.D(_.ID,{data:function(){return A.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(V){return _.D(_.Tyg,{data:V.data,
onSwitch:Y})}})),_.D(_.e,{cond:O,
then:function(){return _.D(_.Xs,null,_.D("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.D(_.ID,{data:function(){return A.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(V){return _.D(_.Tyg,{data:V.data,
onSwitch:T,overrideDisabled:!1})}})),_.D(_.e,{cond:x,
then:function(){return _.D("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.D(_.ID,{data:function(){return A.data().copyLinkButton}},{buttonViewModel:_.gj}))}}),_.D("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.D(_.ID,{data:function(){return A.data().playlistCollaborators}},{contentListItemViewModel:_.HKk})))}}))},"Kj"),"playlist-collaboration-view-model",{props:{data:_.x5}});var KhW=_.xa(function(A){var L=A.data;var O=A.customCommandResolver;return _.D(_.Xs,null,_.D("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.D(_.ID,{data:function(){return L().adAvatar}},{adAvatarViewModel:function(X){return _.D(_.zzc,{data:X.data,
customCommandResolver:O})}})),_.D("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.D(_.e,{cond:function(){return L().headline},
then:function(X){return _.D(_.Xg,{text:X,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.D("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.D(_.ID,{data:function(){return L().adBadge}},{adBadgeViewModel:function(X){return _.D(_.E8,{data:X.data,
hasDot:function(){return L().primaryDetailsLine!==void 0},
customCommandResolver:O,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.D(_.ID,{data:function(){return L().primaryDetailsLine}},{adDetailsLineViewModel:function(X){return _.D(_.n0,{data:X.data,
customCommandResolver:O,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Lj"),GM_=_.xa(function(A){var L=A.data;
var O=A.customCommandResolver;return _.D("ad-avatar-lockup-view-model",{class:function(){var X;return((X=L().interaction)==null?0:X.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.sC(_.Oj({visibilityCallback:function(X){var x,J=(x=L().interaction)==null?void 0:x.onFirstVisible;X&&J&&_.$a(J)},
showOption:_.JN}),_.Uk(function(){return L().interaction},O)),
"aria-label":function(){var X,x;return(X=L().interaction)==null?void 0:(x=X.accessibility)==null?void 0:x.label}},_.D(_.ik,null,_.D(_.w9,{when:function(){return L().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.D(KhW,{data:L,
customCommandResolver:O})}),_.D(_.pB,null,function(){return null})))},"Mj");_.Y4(_.xa(function(A){var L=A.data;var O=A.panelContentVisibility;A=_.Oj({visibilityCallback:function(J){var Y,T=(Y=L().interaction)==null?void 0:Y.onFirstVisible;J&&T&&_.$a(T)},
showOption:_.JN});var X=_.Uk(function(){return L().interaction},GO2);
_.lQ(function(){var J,Y;if(Y=_.WY("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var T;Y=(T=Y())==null?void 0:T.onLayoutVisibleCallback}else Y=null;(J=Y)==null||J()});
var x=function(){return O()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.D("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.sC(A,X)},_.D("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.D("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.D(_.e,{cond:_.HVr("(min-width: "+((0,_.U5)()+_.Zp)+"px) or (max-width: 600px)"),then:function(){return _.D(_.ID,{data:function(){return L().adImage}},{adImageViewModel:function(J){return _.D(_.g3,{data:J.data,
targetHeight:80,customCommandResolver:GO2})}})}})),_.D("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.D("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.D(_.ID,{data:function(){return L().adAvatarLockup}},{adAvatarLockupViewModel:function(J){return _.D(GM_,{data:J.data,
customCommandResolver:GO2})}})),_.D(_.e,{cond:x,
then:function(){return _.D(_.ID,{data:function(){return L().adButton}},{adButtonViewModel:function(J){return _.D(_.dn,{data:J.data,
customCommandResolver:GO2})}})},
else:function(){return _.D(_.ID,{data:function(){return L().menu}},{buttonViewModel:_.gj})}}),_.D("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.D(_.ID,{data:function(){var J=_.q(L().toggleButton,_.Fi);
return{toggleButtonViewModel:Object.assign({},J,{isTogglingDisabled:!0,isToggled:x()})}}},{toggleButtonViewModel:_.fO})))))},"Nj"),"panel-ad-header-image-lockup-view-model",{props:{data:_.x5,
panelContentVisibility:_.x5}});_.Y4(_.xa(function(A){var L=function(){return _.q(A.data().inputComposerViewModel,R7g)},O=function(){var w;
return((w=L())==null?void 0:w.youchatPendingResponseEntityKey)||""},X=_.iS(_.uUQ,O),x=function(){var w;
return!((w=X())==null||!w.isPendingResponse)},J=_.d(_.uQ(!0,void 0,"DR0q1d")),Y=J.next().value,T=J.next().value,V=function(){return L().sectionTargetId||"youchat_messages_section"};
J=_.kw("yt-chat-input-view-model");var E=_.av("textarea"),n=_.iS(b9W,"chat_input_view_model_state"),t=hPo(),b=function(){var w;return!((w=n())==null||!w.value)};
_.GD(function(){var w;if(!b()&&((w=L())==null?0:w.welcomeFeatureContinuation)){var l;((l=L())==null?0:l.setPendingResponseOnWelcome)&&_.Tyz(O())(!0);w={continuationCommand:{token:L().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};var F;l=String(Math.floor(((F=_.hI())==null?void 0:F.getCurrentTime())||0)*1E3);F={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),playerOffsetMs:l}};_.zi(w,{form:{formData:F}});t(!0)}var R=V(),y;(y=_.X5().resolve(_.Ot(_.Rl)))==null||
y.addEventListener("yt-navigate-start",function(){_.RD.remove(R);t(!1)},{once:!0})});
var S=function(){var w=E.value.value;E.value.value="";leJ(E.value);var l,F=((l=L())==null?void 0:l.enableGradientColorBg)||!1;l=csw(V(),w,F);_.zi(l);var R=_.Tyz(O()),y;_.$a(((y=L())==null?void 0:y.onSubmitCommand)||{});R(!0);var M;y=String(Math.floor(((M=_.hI())==null?void 0:M.getCurrentTime())||0)*1E3);var H;M={continuationCommand:{token:(H=L())==null?void 0:H.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};w={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:w,
playerOffsetMs:y}};_.zi(M,{form:{formData:w},commandController:{onSuccess:function(){R(!1)},
onServerError:function(){var z=V();_.zi({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:z}}]}}});R(!1)}}})};
return _.D("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:J},_.D("div",{class:"chatInputViewModelChatInputWrapper"},_.D("form",{class:"chatInputViewModelChatInputForm"},_.D("textarea",{class:"chatInputViewModelChatInput",el:E,"on:keydown":_.py(function(w){var l=x()||!1;leJ(E.value);l||w.key!=="Enter"||w.shiftKey||(w.preventDefault(),S());return!1}),
"on:keyup":_.py(function(){T(E.value.value.length===0);return!1}),
placeholder:function(){var w,l;var F=_.q((l=L())==null?void 0:l.inputFormField,TJ2);return F==null?void 0:(w=F.contentProperties)==null?void 0:w.placeholderText},
rows:1}),_.D(_.gj,{data:function(){return _.q(A.data().sendButton,_.Cu)},
onClick:function(w){w.preventDefault();S();T(E.value.value.length===0)},
buttonOverrides:function(){return{disabled:Y()||x()}}})),_.D(_.Xg,{className:"chatInputViewModelChatDisclaimer",
text:function(){var w;return(w=_.q(A.data().disclaimer,_.J7N))==null?void 0:w.text}})))},"Oj"),"yt-chat-input-view-model",{props:{data:_.x5}});var lMg=["engagement-panel-clip-create","engagement-panel-clip-view"],cnW=0,Ew=function(){var A=_.G.apply(this,arguments)||this;var L;A.headerData=(L=A.data)==null?void 0:L.header;A.darkerPanels=_.h("web_watch_darker_panels");A.matchContentTheme=_.h("web_watch_panel_content_match_theme");A.disableAutoFill=!1;A.isFullscreen=!1;A.isTheaterMode=!1;A.modernPanels=_.h("kevlar_watch_modern_panels");A.liveChatReplyPanel=!1;A.enableAnchoredPanel=_.h("desktop_shorts_v2_anchored_panel");A.disableBackdropFilter=
_.h("web_disable_backdrop_filter");A.trackEngagementPanelVisibility=_.h("web_watch_track_engagement_panel_visibility");A.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 A};
_.g(Ew,_.G);_.P=Ew.prototype;
_.P.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]",learningChatEngagementPanel:"[[learningChatEngagementPanel]]"}},panelAdHeaderImageLockupViewModel:{component:"panel-ad-header-image-lockup-view-model"},pageHeaderViewModel:{component:"yt-page-header-view-model"}},events:!0},
"data.content":{id:"content",mapping:{sectionListRenderer:{matcher:function(A){var L;return(A==null?void 0:(L=A.webComponentHint)==null?void 0:L.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]"}},continuationItemRenderer:"ytd-continuation-item-renderer",richGridRenderer:"ytd-rich-grid-renderer",transcriptRenderer:"ytd-transcript-renderer",clipSectionRenderer:"ytd-clip-section-renderer",adsEngagementPanelContentRenderer:"ytd-ads-engagement-panel-content-renderer",
macroMarkersListRenderer:"ytd-macro-markers-list-renderer",searchInVideoRenderer:"ytd-search-in-video-renderer",structuredDescriptionContentRenderer:{component:"ytd-structured-description-content-renderer",params:{engagementPanel:!0},properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[isWatchWhilePanel]]"}},mediaUpsellRenderer:"ytd-media-upsell-renderer",productListRenderer:"ytd-product-list-renderer",contentLoadingRenderer:"yt-content-loading-renderer",flowRootRenderer:"ytd-flow-root-renderer",
sponsorshipsGiftingOptInRenderer:"ytd-sponsorships-gifting-opt-in-renderer",playlistCollaborationViewModel:"playlist-collaboration-view-model"},events:!0},"data.footer":{id:"footer",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}},cardItemRenderer:"yt-card-item-renderer",chatInputViewModel:"yt-chat-input-view-model",liveChatEngagementPanelInputRenderer:{component:"yt-live-chat-engagement-panel-input-renderer",properties:{inReplyPanel:"[[liveChatReplyPanel]]",
hideBorder:"[[hideFooterBorder]]"}},liveLeaderboardItemViewModel:"ytvl-live-leaderboard-item-view-model",disableableButtonViewModel:"yt-disableable-button-view-model"}}}};
_.P.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var A;if((A=this.hostElement.parentElement)==null?0:A.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.P.detached=function(){this.updateTheaterDisablement()};
_.P.showPanel=function(){var A=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.c1.addJob(function(){A.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.P.maybeScrollToItemSection=function(A){var L=this,O,X=A==null?void 0:(O=A.sectionListEngagementPanelExtras)==null?void 0:O.scrollToItemSectionIdentifier;X&&_.c1.addJob(function(){var x;(x=L.sectionListRendererElement)==null||x.scrollToItemSection(X)},8)};
_.P.hidePanel=function(){var A=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.c1.addJob(function(){A.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.P.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.P.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.P.updatePanel=function(A,L,O,X){var x=this;if((A=A==null?void 0:A.engagementPanelSectionListRenderer)||X){if(A){X=A.header;var J=A.content,Y=A.footer;(A=A.targetId)&&this.set("data.targetId",A);X&&this.set("data.header",X);J&&this.set("data.content",J);Y&&this.set("data.footer",Y)}else X&&(A=X.content,J=X.secondaryHeaderContent,(X=X.targetId)&&this.set("data.targetId",X),A&&this.set("data.content",A),J&&(this.secondaryHeaderData=J));this.updateChildVisibilityProperties();if(L){var T;_.h("kevlar_update_panel_focus_scroll_killswitch")||
(T={preventScroll:!0});this.focus(T)}_.kd(this,function(){_.P4(x.hostElement,"yt-refit");x.maybeScrollToItemSection(O)})}};
_.P.computeHeaderData=function(){var A,L=(0,_.lW.unsafeClone)((A=this.data)==null?void 0:A.header);if(L){A=new _.PF(Object.keys(L)[0]);var O=_.q(L,A),X=_.q(this.secondaryHeaderData,A);X&&_.Iy(L,A,Object.assign({},X,O))}return L};
_.P.getReloadContinuation=function(){var A,L,O,X=_.d(((A=this.data)==null?void 0:(L=A.content)==null?void 0:(O=L.sectionListRenderer)==null?void 0:O.continuations)||[]);for(A=X.next();!A.done;A=X.next())if(A=A.value,A.reloadContinuationData)return A.reloadContinuationData.continuation};
_.P.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var A;((A=this.data)==null?0:A.targetId)&&(A=this.contentElement.firstElementChild)&&A.setAttribute("panel-target-id",this.data.targetId)};
_.P.forwardPopupClosedToFlowRootRenderer=function(){var A=_.YJ(this.hostElement).querySelector("ytd-flow-root-renderer");if(A)A.onPopupClosed()};
_.P.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var A;if(!lMg.includes((A=this.theaterDisablementPanelIdentifier)!=null?A:""))if(A=_.h("web_watch_imax_theater_mode")&&this.isTheaterMode,A=_.h("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||A,_.h("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||A){var L;this.visibility=(L=this.data)==null?void 0:L.visibility;var O;this.trackEngagementPanelVisibility&&((O=this.data)==null?void 0:O.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var X,x,J,Y;this.contentEmpty=!!(((X=this.data)==null?0:(x=X.content)==null?0:x.structuredDescriptionContentRenderer)&&Object.keys((J=this.data)==null?void 0:(Y=J.content)==null?void 0:
Y.structuredDescriptionContentRenderer).length===0);(L=_.X5().resolve(_.FC))&&L.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.P.isTheaterModeChanged=function(){_.h("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.P.isFullscreenChanged=function(){_.h("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.P.focus=function(A){if(this.header)this.header.focus(A);else{var L;(L=_.YJ(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||L.focus(A)}};
_.P.visibilityChanged=function(){if(!_.h("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var A=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",L=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",O=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",X=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",x=X||!this.lastVisibility,J,Y,T,V=((J=this.data)==null?void 0:(Y=J.identifier)==null?void 0:
Y.tag)||((T=this.data)==null?void 0:T.panelIdentifier);if(A&&x){var E;((E=this.data)==null?0:E.onShowCommands)&&_.VN(this.hostElement,this.data.onShowCommands,this.hostElement);V&&_.Ai().dispatch(_.JY({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:V}}))}else if(L&&O){var n;((n=this.data)==null?0:n.onHideCommands)&&_.VN(this.hostElement,this.data.onHideCommands,this.hostElement);V&&_.Ai().dispatch(_.JY({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:V}}))}A&&this.lastVisibility!==
void 0&&(this.hostElement.style.order=String(-1*cnW++));_.h("kevlar_watch_focus_on_engagement_panels")&&A&&X&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.P.notifyVisibilityChanged=function(A){var L;_.YK(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,A,(L=this.data)==null?void 0:L.targetId])};
_.P.updateTheaterDisablement=function(){if(!_.h("kevlar_watch_theater_disablement_killswitch")){var A=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&lMg.includes(A)&&!_.h("watch_next_grid_ignore_disallowed_panels")){var L=_.jt(_.Ai().getState()),O=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";A!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():O?(this.originalTheaterState===void 0&&(this.originalTheaterState=L,this.theaterDisablementPanelIdentifier=
A),L&&_.dQ(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.P.clearTheaterDisablement=function(){_.dQ(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.P.updateChildVisibilityProperties=function(){this.hostElement||_.h("kevlar_panel_property_init_killswitch")||this._enableProperties();var A=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=A);var L,O=(L=this.headerElement)==null?void 0:L.firstElementChild;if(O&&!this.adHeaderImageLockupViewModel){L=A==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";O.collapsed=L;O=_.YJ(O).querySelector("#visibility-button");if(!O)return;(O=O.firstElementChild)&&
O.polymerController.is==="ytd-toggle-button-renderer"&&O.polymerController.data.isToggled!==L&&O.polymerController.set("data.isToggled",L)}var X;if(L=(X=this.contentElement)==null?void 0:X.firstElementChild)if(A&&A!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")L.removeAttribute("panel-content-visible");else{L.setAttribute("panel-content-visible","");var x;(x=L.markDirty)==null||x.call(L)}};
_.P.onYtChangeEngagementPanelVisibilityAction=function(A){var L=this,O,X=(O=this.data)==null?void 0:O.targetId,x,J,Y;O=((x=this.data)==null?void 0:(J=x.identifier)==null?void 0:J.tag)||((Y=this.data)==null?void 0:Y.panelIdentifier);var T=_.q(A,_.JwN),V;A=X&&(T==null?void 0:T.targetId)===X||O&&(T==null?void 0:(V=T.panelIdentifier)==null?void 0:V.tag)===O;this.dialog&&A&&(T==null?void 0:T.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(X==="engagement-panel-comments-section"?_.dQ(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.dQ(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",O]));!_.h("kevlar_use_engagement_panel_management_component")&&A&&(X=T.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!X?_.c1.addJob(function(){L.visibility=T.visibility},2,this.hideDelayMs):this.visibility=T.visibility,T.visibility&&this.notifyVisibilityChanged(T.visibility))};
_.P.onYtScrollToEngagementPanelCommand=function(A){var L,O=(L=this.data)==null?void 0:L.targetId,X,x,J;L=((X=this.data)==null?void 0:(x=X.identifier)==null?void 0:x.tag)||((J=this.data)==null?void 0:J.panelIdentifier);A=_.q(A,_.bnV);var Y;(O&&(A==null?void 0:A.targetId)===O||L&&(A==null?void 0:(Y=A.panelIdentifier)==null?void 0:Y.tag)===L)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.dQ(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.P.attachVEs=function(A){var L,O;(A==null?0:(L=A.content)==null?0:(O=L.productListRenderer)==null?0:O.trackingParams)&&_.iV().graftServerVe(A.content.productListRenderer.trackingParams);var X,x;(A==null?0:(X=A.content)==null?0:(x=X.transcriptRenderer)==null?0:x.trackingParams)&&_.iV().graftServerVe(A.content.transcriptRenderer.trackingParams)};
_.P.onYtUpdateEngagementPanelAction=function(A){var L,O=(L=this.data)==null?void 0:L.targetId;A=_.q(A,nVw);O&&(A==null?void 0:A.targetId)===O&&(this.updatePanel({engagementPanelSectionListRenderer:{header:A==null?void 0:A.header,content:A==null?void 0:A.content}},!1),this.attachVEs(A))};
_.P.onYtShowEngagementPanelScrimAction=function(A){var L,O=(L=this.data)==null?void 0:L.targetId;A=_.q(A,EV2);O&&(A==null?void 0:A.engagementPanelTargetId)===O&&(this.scrimmed=!0)};
_.P.onYtHideEngagementPanelScrimAction=function(A){var L,O=(L=this.data)==null?void 0:L.targetId;A=_.q(A,DND);O&&(A==null?void 0:A.engagementPanelTargetId)===O&&(this.scrimmed=!1)};
_.P.getIdentifier=function(){var A,L,O;return((A=this.data)==null?void 0:A.panelIdentifier)||((L=this.data)==null?void 0:(O=L.identifier)==null?void 0:O.tag)};
_.P.getSurface=function(){var A,L;return(A=this.data)==null?void 0:(L=A.identifier)==null?void 0:L.surface};
_.v2.Object.defineProperties(Ew.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var A=this.getIdentifier();return A==="engagement-panel-youchat"||A==="PAyouchat"}}});
Ew.prototype.visibilityChanged=Ew.prototype.visibilityChanged;Ew.prototype.isFullscreenChanged=Ew.prototype.isFullscreenChanged;Ew.prototype.isTheaterModeChanged=Ew.prototype.isTheaterModeChanged;Ew.prototype.dataChanged=Ew.prototype.dataChanged;Ew.prototype.forwardPopupClosedToFlowRootRenderer=Ew.prototype.forwardPopupClosedToFlowRootRenderer;Ew.prototype.onYtRendererstamperFinished=Ew.prototype.onYtRendererstamperFinished;
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],Ew.prototype,"actionHandlerBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Ew.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],Ew.prototype,"ytdReduxBehavior",void 0);_.I([_.N(_.KP.YtEventForwardingBehavior),_.Z("design:type",Object)],Ew.prototype,"ytEventForwardingBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Ew.prototype,"data",void 0);
_.I([_.K({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.Z("design:type",Object)],Ew.prototype,"headerData",void 0);_.I([_.K(),_.Z("design:type",Object)],Ew.prototype,"secondaryHeaderData",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Ew.prototype,"visibility",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Ew.prototype,"contentEmpty",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Ew.prototype,"scrimmed",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Ew.prototype,"dialog",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Ew.prototype,"dropdown",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Ew.prototype,"darkerPanels",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Ew.prototype,"matchContentTheme",void 0);_.I([_.K(),_.Z("design:type",Object)],Ew.prototype,"disableAutoFill",void 0);
_.I([_.K({reflectToAttribute:!0,value:_.h("optimal_reading_width_comments_ep")}),_.Z("design:type",Boolean)],Ew.prototype,"optimalReadingWidthComments",void 0);_.I([_.K(),_.Z("design:type",Number)],Ew.prototype,"hideDelayMs",void 0);_.I([_.K({selector:_.Wx,reflectToAttribute:!0}),_.Z("design:type",Object)],Ew.prototype,"isFullscreen",void 0);_.I([_.K({selector:_.jt,reflectToAttribute:!0}),_.Z("design:type",Object)],Ew.prototype,"isTheaterMode",void 0);
_.I([_.K(),_.Z("design:type",Number)],Ew.prototype,"showDelayMs",void 0);_.I([_.K({reflectToAttribute:!0}),_.r("data.targetId"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Ew.prototype,"targetId",null);_.I([_.K({reflectToAttribute:!0}),_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Ew.prototype,"webSize",null);_.I([_.K(),_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Ew.prototype,"hideFooterBorder",null);
_.I([_.K(),_.Z("design:type",Object)],Ew.prototype,"isWatch",void 0);_.I([_.K(),_.Z("design:type",Object)],Ew.prototype,"originalTheaterState",void 0);_.I([_.K(),_.Z("design:type",Object)],Ew.prototype,"theaterDisablementPanelIdentifier",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Ew.prototype,"modernPanels",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Ew.prototype,"isWatchWhilePanel",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Ew.prototype,"shortsPanel",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Ew.prototype,"liveChatEngagementPanel",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Ew.prototype,"learningChatEngagementPanel",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Ew.prototype,"liveChatReplyPanel",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Ew.prototype,"enableAnchoredPanel",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Ew.prototype,"disableBackdropFilter",void 0);_.I([_.K(),_.Z("design:type",Object)],Ew.prototype,"trackEngagementPanelVisibility",void 0);_.I([_.qR("#header"),_.Z("design:type",HTMLElement)],Ew.prototype,"headerElement",void 0);_.I([_.qR("#header > *"),_.Z("design:type",HTMLElement)],Ew.prototype,"header",void 0);
_.I([_.qR("ytd-section-list-renderer"),_.Z("design:type",Object)],Ew.prototype,"sectionListRendererElement",void 0);_.I([_.qR("panel-ad-header-image-lockup-view-model"),_.Z("design:type",HTMLElement)],Ew.prototype,"adHeaderImageLockupViewModel",void 0);_.I([_.qR("#content"),_.Z("design:type",HTMLElement)],Ew.prototype,"contentElement",void 0);
_.I([_.by("yt-rendererstamper-finished"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ew.prototype,"onYtRendererstamperFinished",null);_.I([_.by("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ew.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.I([_.iy("data","isFullscreen","isTheaterMode"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ew.prototype,"dataChanged",null);
_.I([_.hT("isTheaterMode"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ew.prototype,"isTheaterModeChanged",null);_.I([_.hT("isFullscreen"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ew.prototype,"isFullscreenChanged",null);_.I([_.hT("visibility"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ew.prototype,"visibilityChanged",null);
_.I([_.Q({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],Ew);
_.m(Ew,"ytd-engagement-panel-section-list-renderer",function(){if(XzP!==void 0)return XzP;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return XzP=A},{mode:_.e5("kevlar_poly_si_batch_j028")?1:2});var Ceg;var nf=function(){var A=_.G.apply(this,arguments)||this;A.lastRenderedPanelIds=new Set;A.visiblePanels=[];A.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return A};
_.g(nf,_.G);_.P=nf.prototype;_.P.dataChanged=function(){if(this.data){for(var A=[],L=_.d(this.data),O=L.next();!O.done;O=L.next()){O=O.value;var X=void 0,x=void 0,J=(X=O)==null?void 0:(x=X.engagementPanelSectionListRenderer)==null?void 0:x.visibility;x=X=void 0;((X=O)==null?0:(x=X.engagementPanelSectionListRenderer)==null?0:x.targetId)&&J!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&A.push(O)}this.visiblePanels=A}else this.visiblePanels=[]};
_.P.configureRendererStamper=function(){return{visiblePanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0},properties:{hideDelayMs:"[[hideDelayMs]]",isWatchWhilePanel:"[[isWatchWhilePanel]]"}}},reuseComponents:!1}}};
_.P.withoutVisiblePanelById=function(A){return this.visiblePanels.filter(function(L){var O;return((O=L.engagementPanelSectionListRenderer)==null?void 0:O.targetId)!==A})};
_.P.onYtChangeEngagementPanelVisibilityAction=function(A){var L=this,O=_.q(A,_.JwN);if(this.data&&(O==null?0:O.targetId)&&(O==null?0:O.visibility)){var X,x=(X=this.data.find(function(Y){var T;return((T=Y.engagementPanelSectionListRenderer)==null?void 0:T.targetId)===O.targetId}))==null?void 0:X.engagementPanelSectionListRenderer;
if(x){var J=this.withoutVisiblePanelById(O.targetId);O.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(A=this.data.find(function(Y){var T;return((T=Y.engagementPanelSectionListRenderer)==null?void 0:T.targetId)===O.targetId}))&&(J=[A].concat(_.le(J)));
this.hideDelayMs&&O.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&J.length===0?_.c1.addJob(function(){x.visibility=O.visibility;L.visiblePanels=J},10,this.hideDelayMs):(x.visibility=O.visibility,this.visiblePanels=J);
_.YK(this.hostElement,"yt-engagement-panels-visible-changed",[J])}}};
_.P.onRendererstamperFinished=function(){var A=new Set(this.visiblePanels.map(function(L){var O;return(O=L.engagementPanelSectionListRenderer)==null?void 0:O.targetId}));
this.handlePanelVisibilityChange(A,this.lastRenderedPanelIds);this.lastRenderedPanelIds=A};
_.P.handlePanelVisibilityChange=function(A,L){A=A===void 0?new Set:A;L=L===void 0?new Set:L;if(this.data)for(var O=_.d(this.data),X=O.next();!X.done;X=O.next()){X=X.value;var x=void 0,J=void 0,Y=(x=X)==null?void 0:(J=x.engagementPanelSectionListRenderer)==null?void 0:J.targetId;if(Y&&(x=L.has(Y),J=A.has(Y),Y=void 0,!x&&J?(J=x=void 0,Y=(x=X)==null?void 0:(J=x.engagementPanelSectionListRenderer)==null?void 0:J.onShowCommands):x&&!J&&(J=x=void 0,Y=(x=X)==null?void 0:(J=x.engagementPanelSectionListRenderer)==
null?void 0:J.onHideCommands),Y))for(X=_.d(Y),Y=X.next();!Y.done;Y=X.next())this.ytComponentBehavior.resolveCommand(Y.value)}};
nf.prototype.onRendererstamperFinished=nf.prototype.onRendererstamperFinished;nf.prototype.dataChanged=nf.prototype.dataChanged;_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],nf.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],nf.prototype,"actionHandlerBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],nf.prototype,"ytRendererBehavior",void 0);
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],nf.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],nf.prototype,"lastRenderedPanelIds",void 0);_.I([_.K(),_.Z("design:type",Number)],nf.prototype,"hideDelayMs",void 0);_.I([_.K(),_.Z("design:type",Array)],nf.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Array)],nf.prototype,"visiblePanels",void 0);_.I([_.K(),_.Z("design:type",Boolean)],nf.prototype,"isWatchWhilePanel",void 0);
_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],nf.prototype,"dataChanged",null);_.I([_.by("yt-rendererstamper-finished"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],nf.prototype,"onRendererstamperFinished",null);_.I([_.Q({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],nf);
_.m(nf,"ytd-watch-engagement-panels",function(){if(Ceg!==void 0)return Ceg;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return Ceg=A},{mode:1});var Fh0;var tS=function(){return _.G.apply(this,arguments)||this};
_.g(tS,_.G);tS.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.vf(_.YJ(this.hostElement).querySelector("#text"),_.$Nu(_.UNL,this.data.companionLegalText))};
tS.prototype.computeAutoScrollEnabled=function(A,L){return A&&!L};
tS.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
tS.prototype.onToggleTap=function(){this.expanded=!this.expanded};
tS.prototype.expandedChanged=tS.prototype.expandedChanged;tS.prototype.dataChanged=tS.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],tS.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.GrS),_.Z("design:type",Object)],tS.prototype,"ytdAutoScrollBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],tS.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],tS.prototype,"expanded",void 0);
_.I([_.K({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.Z("design:type",Boolean)],tS.prototype,"autoScrollEnabled",void 0);_.I([_.K(),_.Z("design:type",String)],tS.prototype,"expanderIcon",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],tS.prototype,"dataChanged",null);
_.I([_.hT("expanded"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],tS.prototype,"expandedChanged",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],tS);
_.m(tS,"ytd-companion-legal-text-renderer",function(){if(Fh0!==void 0)return Fh0;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Fh0=A},{mode:1});var RoJ;var bX=function(){var A=_.G.apply(this,arguments)||this;A.buttonUpdate=_.h("web_modern_buttons");A.kevlarWatchGrid=_.h("kevlar_watch_grid");A.centerAlignDescription=_.h("action_companion_center_align_description");A.truncateDomain=_.h("action_companion_truncate_domain");return A};
_.g(bX,_.G);_.P=bX.prototype;_.P.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.P.getOnLayoutVisibleCallback=function(){var A=_.WY("yt.www.ads.eventcache.getLastCompanionData");return A?(A=A())&&A.onLayoutVisibleCallback:null};
_.P.getLayoutId=function(){var A=_.WY("yt.www.ads.eventcache.getLastCompanionData");return A?(A=A())&&A.layoutId:null};
_.P.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",bX.JSC$23750_DEFAULT_AD_BADGE_RENDERER);var A=this.getOnLayoutVisibleCallback();A&&A()}};
_.P.getButtonRenderer=function(A){return A.actionButton&&_.q(A.actionButton,_.$t)?(delete _.q(A.actionButton,_.$t).navigationEndpoint,_.q(A.actionButton,_.$t)):{}};
_.P.onClick=function(A){var L=this;if((!_.h("web_modern_buttons")||!_.xu(_.oa(A),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){A=_.d0();var O=this.getLayoutId();A&&O&&_.h("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?A.getPlayerPromise().then(function(X){(new _.F7(X)).executeCommand(L.data.navigationEndpoint,O)}):_.h("kevlar_companion_resolve_command_killswitch")?_.P4(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.dQ(this.hostElement,"yt-companion-ad-clicked",["action-companion",O])}};
_.v2.Object.defineProperties(bX.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var A,L,O;return((A=this.data)==null?0:(L=A.detailsLine)==null?0:(O=L.adRating)==null?0:O.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 A,L,O,X;return((A=this.data)==null?0:(L=A.detailsLine)==null?0:(O=L.adRating)==null?0:(X=O.ratingIcon)==null?0:X.iconType)?_.bV(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var A,L,O,X;return((A=this.data)==null?0:(L=A.detailsLine)==null?0:(O=L.texts)==null?0:(X=O[0])==null?0:X.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 A,L;return((A=this.data)==null?0:(L=A.description)==null?0:L.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var A=_.WY("yt.www.ads.eventcache.getLastCompanionData");return A?(A=A())&&A.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var A=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return A?A.indexOf("/default_banner")!==-1:!0}}});
bX.prototype.onClick=bX.prototype.onClick;bX.prototype.dataChanged=bX.prototype.dataChanged;bX.JSC$23750_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.b3("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],bX.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],bX.prototype,"rendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],bX.prototype,"data",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],bX.prototype,"buttonUpdate",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],bX.prototype,"kevlarWatchGrid",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],bX.prototype,"centerAlignDescription",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],bX.prototype,"truncateDomain",void 0);
_.I([_.K({computed:"computeButtonOverride(buttonUpdate)"}),_.Z("design:type",Object)],bX.prototype,"buttonOverride",void 0);_.I([_.r("data.detailsLine.adRating.ratingText"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],bX.prototype,"getRating",null);_.I([_.r("getRating"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],bX.prototype,"computeRatingHidden",null);
_.I([_.r("data.detailsLine.adRating.ratingIcon.iconType"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],bX.prototype,"iconType",null);_.I([_.r("data.detailsLine.texts.0.text"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],bX.prototype,"getDetailsLine",null);_.I([_.r("getDetailsLine"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],bX.prototype,"computeDetailsLineHidden",null);
_.I([_.r("data.description.text"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],bX.prototype,"getDescriptionText",null);_.I([_.r("getDescriptionText"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],bX.prototype,"computeDescriptionTextHidden",null);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],bX.prototype,"interactionLoggingClientData",null);
_.I([_.K({reflectToAttribute:!0}),_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],bX.prototype,"hideBanner",null);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],bX.prototype,"dataChanged",null);_.I([_.by("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],bX.prototype,"onClick",null);_.I([_.Q({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],bX);
_.m(bX,"ytd-action-companion-ad-renderer",function(){if(RoJ!==void 0)return RoJ;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return RoJ=A},{mode:_.e5("kevlar_poly_si_batch_j067")?1:2});var Q92;var moP;var hS=function(){var A=_.G.apply(this,arguments)||this;A.buttonUpdate=_.h("web_modern_buttons");A.hideLegacyBanner=_.h("enable_dsa_one_click_ata_translators_infeed_elements");A.adInfoButtonStyle="mono";A.adInfoButtonType="text";A.noDotAdBadge=!0;return A};
_.g(hS,_.G);_.P=hS.prototype;_.P.getOnLayoutVisibleCallback=function(){var A=_.WY("yt.www.ads.eventcache.getLastCompanionData");return A?(A=A())&&A.onLayoutVisibleCallback:null};
_.P.getLayoutId=function(){var A=_.WY("yt.www.ads.eventcache.getLastCompanionData");return A?(A=A())&&A.layoutId:null};
_.P.dataChanged=function(){if(this.data){if(this.data.image&&this.data.image.thumbnail&&this.data.image.thumbnail.thumbnails&&this.data.image.thumbnail.thumbnails.length){var A=this.data.image.thumbnail.thumbnails[0];this.imageSrc=A.url?_.RP(A.url):void 0;this.imageWidth=A.width||0;this.imageHeight=A.height||0}this.data.clickthroughEndpoint&&_.q(this.data.clickthroughEndpoint,_.Hh)&&(A=_.q(this.data.clickthroughEndpoint,_.Hh).url,_.h("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
A||"":A?(A=_.RP(A),this.clickThroughUrl=_.G2(A)):this.clickThroughUrl=void 0);(A=this.getOnLayoutVisibleCallback())&&A()}};
_.P.onClick=function(A){_.xu(_.oa(A),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(A)};
_.P.handleClick=function(){var A=this;this.data&&this.data.clickthroughEndpoint&&(_.P4(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(L){A.macroReplacementBehavior.sendServiceRequestAction([L])}),_.dQ(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.P.onLoad=function(){_.YK(this.hostElement,"yt-refit-popups-action")};
_.v2.Object.defineProperties(hS.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var A=_.WY("yt.www.ads.eventcache.getLastCompanionData");return A?(A=A())&&A.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var A=_.WY("yt.www.ads.eventcache.getLastCompanionData");return A?(A=A())&&A.interactionLoggingClientData:null}}});
hS.prototype.onLoad=hS.prototype.onLoad;hS.prototype.onClick=hS.prototype.onClick;hS.prototype.dataChanged=hS.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],hS.prototype,"rendererBehavior",void 0);_.I([_.N(uPw.YtMacroReplacementBehavior),_.Z("design:type",Object)],hS.prototype,"macroReplacementBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],hS.prototype,"data",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],hS.prototype,"buttonUpdate",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],hS.prototype,"hideLegacyBanner",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],hS.prototype,"adInfoButtonStyle",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],hS.prototype,"adInfoButtonType",void 0);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],hS.prototype,"macros",null);
_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],hS.prototype,"interactionLoggingClientData",null);_.I([_.K(),_.Z("design:type",String)],hS.prototype,"clickThroughUrl",void 0);_.I([_.K(),_.Z("design:type",_.ia)],hS.prototype,"imageSrc",void 0);_.I([_.K(),_.Z("design:type",Number)],hS.prototype,"imageWidth",void 0);_.I([_.K(),_.Z("design:type",Number)],hS.prototype,"imageHeight",void 0);_.I([_.K(),_.Z("design:type",Object)],hS.prototype,"noDotAdBadge",void 0);
_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],hS.prototype,"dataChanged",null);_.I([_.by("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],hS.prototype,"onClick",null);_.I([_.by("load"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],hS.prototype,"onLoad",null);_.I([_.Q({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],hS);
_.m(hS,"ytd-image-companion-renderer",function(){if(moP!==void 0)return moP;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return moP=A},{mode:_.e5("kevlar_poly_si_batch_j067")?1:2});var fMD;var S_=function(){return _.G.apply(this,arguments)||this};
_.g(S_,_.G);_.P=S_.prototype;_.P.dataChanged=function(){this.set("data.adBadge",S_.JSC$23759_DEFAULT_AD_BADGE_RENDERER);if(this.data){var A=this.getOnLayoutVisibleCallback();A&&A()}};
_.P.getOnLayoutVisibleCallback=function(){var A=_.WY("yt.www.ads.eventcache.getLastCompanionData");return A?(A=A())&&A.onLayoutVisibleCallback:null};
_.P.getLayoutId=function(){var A=_.WY("yt.www.ads.eventcache.getLastCompanionData");return A?(A=A())&&A.layoutId:null};
_.P.onCompanionClicked=function(A){this.data&&(A.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.dQ(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.P.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var A=_.d0(),L=this.getLayoutId(),O=this.data.clickToAdvSiteEndpoint;A&&L&&_.h("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?A.getPlayerPromise().then(function(X){(new _.F7(X)).executeCommand(O,L)}):_.P4(this.hostElement,"yt-navigate",{endpoint:O})}};
_.P.sendTrackingPings=function(A){if(A&&A.length!==0&&A[0].loggingUrls&&(A=A[0].loggingUrls.map(this.getBaseUrl)))for(var L=0;L<A.length;L++)_.jY(A[L])};
_.P.getBaseUrl=function(A){return A.baseUrl||""};
_.v2.Object.defineProperties(S_.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var A=_.WY("yt.www.ads.eventcache.getLastCompanionData");return A?(A=A())&&A.interactionLoggingClientData:null}}});
S_.prototype.onCompanionClicked=S_.prototype.onCompanionClicked;S_.prototype.dataChanged=S_.prototype.dataChanged;S_.JSC$23759_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.b3("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],S_.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],S_.prototype,"data",void 0);_.I([_.qR("#title"),_.Z("design:type",HTMLElement)],S_.prototype,"shopTitle",void 0);
_.I([_.iy("data.impressionEndpoints"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],S_.prototype,"dataChanged",null);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],S_.prototype,"interactionLoggingClientData",null);_.I([_.by("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],S_.prototype,"onCompanionClicked",null);
_.I([_.Q({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],S_);
_.m(S_,"ytd-shopping-companion-renderer",function(){if(fMD!==void 0)return fMD;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return fMD=A},{mode:1});_.Y4(_.xa(function(A){var L=A.data;A=_.Oj({visibilityCallback:function(X){var x,J=(x=L().interaction)==null?void 0:x.onFirstVisible;X&&J&&_.$a(J)},
showOption:_.JN});var O=_.Uk(function(){return L().interaction},Cr2);
_.lQ(function(){var X,x;x=(x=_.WY("yt.www.ads.eventcache.getLastCompanionData"))?(x=x())&&x.onLayoutVisibleCallback:null;(X=x)==null||X()});
return _.D("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.py(function(X){_.YK(X.currentTarget,"yt-refit-popups-action")}),
el:_.sC(A,O),"aria-label":function(){var X,x;return(X=L().interaction)==null?void 0:(x=X.accessibility)==null?void 0:x.label}},_.D("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.D(_.ID,{data:function(){return L().adImage}},{adImageViewModel:function(X){return _.D(_.g3,{data:X.data,
targetHeight:80,customCommandResolver:Cr2})}})),_.D("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.D("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.D(_.ID,{data:function(){return L().adBadge}},{adBadgeViewModel:function(X){return _.D(_.E8,{data:X.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.D("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.D(_.ID,{data:function(){return L().menu}},{buttonViewModel:_.gj}))))},"Pj"),"banner-image-layout-view-model",{props:{data:_.x5}});_.Y4(_.xa(function(A){var L=A.data;A=_.Oj({visibilityCallback:function(X){var x,J=(x=L().interaction)==null?void 0:x.onFirstVisible;X&&J&&_.$a(J)},
showOption:_.JN});var O=_.Uk(function(){return L().interaction},FMB);
_.lQ(function(){var X,x;x=(x=_.WY("yt.www.ads.eventcache.getLastCompanionData"))?(x=x())&&x.onLayoutVisibleCallback:null;(X=x)==null||X()});
return _.D("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.sC(A,O)},_.D("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.D(_.ID,{data:function(){return L().adImage}},{adImageViewModel:function(X){return _.D(_.g3,{data:X.data,
targetHeight:80,customCommandResolver:FMB})}})),_.D("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.D("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.D(_.ID,{data:function(){return L().adAvatarLockup}},{adAvatarLockupViewModel:function(X){return _.D(GM_,{data:X.data,
customCommandResolver:FMB})}})),_.D(_.ID,{data:function(){return L().adButton}},{adButtonViewModel:function(X){return _.D(_.dn,{data:X.data,
customCommandResolver:FMB})}}),_.D("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.D(_.ID,{data:function(){return L().menu}},{buttonViewModel:_.gj}))))},"Qj"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.x5}});var IMW={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"},qk=function(){var A=_.G.apply(this,arguments)||this;A.updateCompanionDataJobId=0;A.contentVideoId=null;A.player=null;A.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return A};
_.g(qk,_.G);_.P=qk.prototype;_.P.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:IMW}}};
_.P.attached=function(){var A=this,L=_.d0();L&&L.getPlayerPromise().then(function(O){A.getCachedDataAndListen(O)})};
_.P.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.P.updateRendererStamper=function(){var A={};if(this.data)for(var L in IMW)if(this.data[L]){A[L]=this.data[L];break}if(this.oneofRenderer!=void 0||Object.keys(A).length)this.oneofRenderer=A};
_.P.getCachedDataAndListen=function(A){var L=this.retrieveCachedCompanionData();L&&Object.keys(L).length&&this.receiveCompanionData(L);this.ytPlayerListenerBehavior.listenToPlayerEvent(A,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=A};
_.P.retrieveCachedCompanionData=function(){return _.Ou.yt&&_.Ou.yt.www&&_.Ou.yt.www.ads&&_.Ou.yt.www.ads.eventcache&&_.Ou.yt.www.ads.eventcache.getLastCompanionData?_.Ou.yt.www.ads.eventcache.getLastCompanionData():null};
_.P.receiveCompanionData=function(A){A&&Object.keys(A).length?(this.contentVideoId=A.contentVideoId,this.setCompanionData(A)):this.setCompanionData(A)};
_.P.setCompanionData=function(A){this.cancelPendingCompanionAdJobs();if(A){this.updateCompanionDataJobId=0;for(var L in IMW)IMW.hasOwnProperty(L)&&(this.data[L]=void 0);A.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",A.shoppingCompanionCarouselRenderer):A.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",A.imageCompanionAdRenderer):A.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",A.actionCompanionAdRenderer),_.YK(this.hostElement,
"yt-hide-unlimited-offer-module"),_.YK(this.hostElement,"yt-hide-tvfilm-offer-module")):A.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",A.bannerImageLayoutViewModel):A.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",A.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.P.dataChanged=function(){var A=this,L=_.d0();L?L.getPlayerPromise().then(function(O){A.contentVideoId&&O.getVideoUrl().includes("v="+A.contentVideoId)||(A.cancelPendingCompanionAdJobs(),A.updateRendererStamper())}):_.HY(Error("xo"))};
_.P.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.c1.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.P.handleCompanionAdClicked=function(A,L){this.player.onAdUxClicked(A,L);this.player.pauseVideo()};
qk.prototype.dataChanged=qk.prototype.dataChanged;_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],qk.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],qk.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],qk.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],qk.prototype,"ytRendererstamperBehavior",void 0);
_.I([_.N(_.LE.YtPlayerListenerBehavior),_.Z("design:type",_.Oo)],qk.prototype,"ytPlayerListenerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],qk.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],qk.prototype,"oneofRenderer",void 0);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qk.prototype,"dataChanged",null);_.I([_.Q({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],qk);
_.m(qk,"ytd-companion-slot-renderer",function(){if(Q92!==void 0)return Q92;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return Q92=A},{mode:_.e5("kevlar_poly_si_batch_j067")?
1:2});var ynw;var g4=function(){return _.G.apply(this,arguments)||this};
_.g(g4,_.G);g4.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
g4.prototype.dataChanged=g4.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],g4.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],g4.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],g4.prototype,"companionSlotData",void 0);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],g4.prototype,"dataChanged",null);
_.I([_.Q({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],g4);
_.m(g4,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(ynw!==void 0)return ynw;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return ynw=A},{mode:1});var ZLw;var w4=function(){var A=_.G.apply(this,arguments)||this;A.skinnyMode=!1;A.COMPACT_EVENT_COUNT=4;A.onShelfToggleButtonTap=function(){A.logTap(A.data);A.showingMore=!A.showingMore};
A.onShelfToggleButtonFocus=function(){A.showingMore||(A.logTap(A.data),A.showingMore=!0,_.kd(A,function(){var L=A.COMPACT_EVENT_COUNT-1,O;(O=_.YJ(A.hostElement).querySelector("#event-"+L))==null||O.focus()}))};
return A};
_.g(w4,_.G);_.P=w4.prototype;_.P.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.P.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.P.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.tT(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.tT(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.tT(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.tT(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.tT(this.infoTooltip,this.infoTooltip.hide))};
_.P.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.tT(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.tT(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.tT(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.tT(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.tT(this.infoTooltip,this.infoTooltip.hide))};
_.P.dataChanged=function(){this.firstEvent=this.get("data.events.0.ticketEventRenderer");this.data&&this.data.events&&(this.canShowMore=this.data.events.length>this.COMPACT_EVENT_COUNT,this.separator.style.visibility=this.data.events.length>1?"visible":"hidden");this.showingMore=!1;this.showingMoreChanged(!1)};
_.P.onShowingMoreChanged=function(){var A;this.showingMoreChanged((A=this.showingMore)!=null?A:!1)};
_.P.showingMoreChanged=function(A){var L=this.get("data.events")||[];this.set("restEvents",L.slice(1,A?L.length:this.COMPACT_EVENT_COUNT).map(function(O){return O.ticketEventRenderer}));
L.slice(0,A?L.length:this.COMPACT_EVENT_COUNT).forEach(function(O){var X=_.Fn();O=O.ticketEventRenderer.trackingParams;_.Ch()&&X&&O&&(O=_.lV(O),X&&_.zZ(X,O))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.P.computeAriaLabel=function(A){return A.subtitle1+", "+A.subtitle2};
_.P.logTap=function(A){_.Ch()&&this.ytRendererBehavior.logExplicitClick(A)};
_.P.isKeyboardAction=function(A){return this.get("detail.x",A)===0&&this.get("detail.y",A)===0};
_.P.onFirstEventTap=function(A){A.target&&this.handleTap(A.target,this.firstEvent,this.isKeyboardAction(A))};
_.P.onTicketLinkTap=function(A){A.target&&this.handleTap(A.target,A.model.item,this.isKeyboardAction(A))};
_.P.handleTap=function(A,L,O){if(L.buttonCommand)if(L.hasMultipleOffers)Object.assign(_.q(L.buttonCommand,_.mG),{properties:{source:O?"keyboard":"tap"}}),this.logTap(L),this.popupPositionTarget=A,_.VN(this.hostElement,[L.buttonCommand],this.hostElement);else{var X;if((X=_.q(L.buttonCommand,_.Hh))==null?0:X.url)this.logTap(L),_.z2(window,_.q(L.buttonCommand,_.Hh).url)}};
w4.prototype.onShowingMoreChanged=w4.prototype.onShowingMoreChanged;w4.prototype.dataChanged=w4.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],w4.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],w4.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],w4.prototype,"firstEvent",void 0);_.I([_.K(),_.Z("design:type",Object)],w4.prototype,"restEvents",void 0);_.I([_.K(),_.Z("design:type",String)],w4.prototype,"imageUrl",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],w4.prototype,"showingMore",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],w4.prototype,"canShowMore",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],w4.prototype,"skinnyMode",void 0);_.I([_.K(),_.Z("design:type",HTMLElement)],w4.prototype,"popupPositionTarget",void 0);_.I([_.qR("#banner-info-tooltip"),_.Z("design:type",Object)],w4.prototype,"infoTooltip",void 0);
_.I([_.qR("#info-container"),_.Z("design:type",HTMLElement)],w4.prototype,"infoContainer",void 0);_.I([_.qR("#shelf-toggler"),_.Z("design:type",HTMLElement)],w4.prototype,"shelfToggleButton",void 0);_.I([_.qR("#separator"),_.Z("design:type",HTMLDivElement)],w4.prototype,"separator",void 0);_.I([_.K(),_.Z("design:type",String)],w4.prototype,"shelfTogglerLabelText",void 0);_.I([_.K(),_.Z("design:type",String)],w4.prototype,"shelfTogglerIcon",void 0);
_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],w4.prototype,"dataChanged",null);_.I([_.iy("showingMore"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],w4.prototype,"onShowingMoreChanged",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],w4);
_.m(w4,"ytd-ticket-shelf-renderer",function(){if(ZLw!==void 0)return ZLw;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return ZLw=A},{mode:1});var j9P;var Whf;var pf=function(){return _.G.apply(this,arguments)||this};
_.g(pf,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],pf.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],pf.prototype,"data",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],pf);
_.m(pf,"ytd-comments-entry-point-message-renderer",function(){if(Whf!==void 0)return Whf;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Whf=A},{mode:1});var HLB;var iX=function(){return _.G.apply(this,arguments)||this};
_.g(iX,_.G);_.v2.Object.defineProperties(iX.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.teaserAvatar)}}});
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],iX.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],iX.prototype,"data",void 0);_.I([_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],iX.prototype,"hasAvatar",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],iX);
_.m(iX,"ytd-comments-entry-point-teaser-renderer",function(){if(HLB!==void 0)return HLB;var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return HLB=A},{mode:1});var zog;var Nk=function(){return _.G.apply(this,arguments)||this};
_.g(Nk,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Nk.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Nk.prototype,"data",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],Nk);
_.m(Nk,"ytd-comments-simplebox-renderer",function(){if(zog!==void 0)return zog;var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return zog=A},{mode:1});var r4=function(){var A=_.G.apply(this,arguments)||this;A.fullHeight=!_.h("comment_teaser_full_height_kill_switch")&&_.h("kevlar_watch_grid");return A};
_.g(r4,_.G);r4.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"}}}};
r4.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
r4.prototype.onTap=function(){var A=this.tapCommand;A&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(A))};
r4.prototype.onKeyUp=function(A){if(A.keyCode===13)this.onTap()};
_.v2.Object.defineProperties(r4.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)==null?0:A.onTap)return this.data.onTap;var L,O;if(((L=this.data)==null?0:L.teaserContent)||((O=this.data)==null?0:O.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)!=null&&A.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
r4.prototype.onKeyUp=r4.prototype.onKeyUp;r4.prototype.onTap=r4.prototype.onTap;_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],r4.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],r4.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],r4.prototype,"ytComponentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],r4.prototype,"data",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],r4.prototype,"fullHeight",void 0);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],r4.prototype,"tapCommand",null);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],r4.prototype,"simpleboxPlaceholder",null);_.I([_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],r4.prototype,"hasSimpleboxPlaceholder",null);
_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],r4.prototype,"simpleboxAvatar",null);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],r4.prototype,"teaserContent",null);_.I([_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],r4.prototype,"hasTeaserContent",null);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],r4.prototype,"teaserAvatar",null);
_.I([_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],r4.prototype,"hasTeaserAvatar",null);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],r4.prototype,"messageText",null);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],r4.prototype,"contentRenderer",null);_.I([_.r("data"),_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],r4.prototype,"hasContents",null);
_.I([_.r("data"),_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],r4.prototype,"hasContentRenderer",null);_.I([_.by("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],r4.prototype,"onTap",null);_.I([_.by("keypress"),_.Z("design:type",Function),_.Z("design:paramtypes",[_.NJ]),_.Z("design:returntype")],r4.prototype,"onKeyUp",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],r4);
_.m(r4,"ytd-comments-entry-point-header-renderer",function(){if(j9P!==void 0)return j9P;var A=document.createElement("template");_.p(A,'\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>');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return j9P=A},{mode:1});var Bp_;_.h("web_enable_sink_animated_rolling_character_and_number")?_.Y4(_.d$l,"yt-animated-rolling-number",{props:{numberText:_.x5,numberValue:_.x5,heightPx:_.x5,fontSizeMultiplier:_.x5,shouldAnimate:_.x5,forceRollUp:_.x5}}):_.tF(_.paP,"yt-animated-rolling-number",{propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]});var M4J=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),$o_={numberText:"",heightPx:2*M4J,shouldAnimate:!1},Kf=function(){var A=_.G.apply(this,arguments)||this;A.usingAnimatedComponents=!0;A.wasDetailed=!1;A.JSC$23796_browserSupportsAnimation=_.h("web_supports_animations_api");A.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};A.detailed=!1;A.shouldAnimate=!1;A.viewCountProps=$o_;A.dateTextProps=
$o_;A.metadataBadgesInDescription=_.h("web_metadata_badges_in_description");return A};
_.g(Kf,_.G);_.P=Kf.prototype;_.P.resetAnimationState=function(){this.shouldAnimate=!1};
_.P.updateDynamicMetadata=function(){if(this.JSC$23796_browserSupportsAnimation){if(!this.detailed){var A,L,O,X;var x=(A=this.videoPrimaryInfoRenderer)==null?void 0:(L=A.viewCount)==null?void 0:(O=L.videoViewCountRenderer)==null?void 0:(X=O.extraShortViewCount)==null?void 0:X.simpleText;var J,Y,T,V;var E=(J=this.videoPrimaryInfoRenderer)==null?void 0:(Y=J.viewCount)==null?void 0:(T=Y.videoViewCountRenderer)==null?void 0:(V=T.shortViewCount)==null?void 0:V.simpleText}if(!E){var n,t,b,S;x=(n=this.videoPrimaryInfoRenderer)==
null?void 0:(t=n.viewCount)==null?void 0:(b=t.videoViewCountRenderer)==null?void 0:(S=b.unlabeledViewCountValue)==null?void 0:S.simpleText;var w,l,F,R;E=(w=this.videoPrimaryInfoRenderer)==null?void 0:(l=w.viewCount)==null?void 0:(F=l.videoViewCountRenderer)==null?void 0:(R=F.viewCount)==null?void 0:R.simpleText}var y,M,H;A=Number((y=this.videoPrimaryInfoRenderer)==null?void 0:(M=y.viewCount)==null?void 0:(H=M.videoViewCountRenderer)==null?void 0:H.originalViewCount);var z,a;y=(z=this.videoPrimaryInfoRenderer)==
null?void 0:(a=z.relativeDateText)==null?void 0:a.simpleText;var xe;z=!((xe=this.videoPrimaryInfoRenderer)==null||!xe.relativeDateText);if(x&&E&&A&&(y||!z)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;xe=E.split(new RegExp("("+x+")"));x=ysa(xe[0]);var ur;E={numberText:(ur=xe[1])!=null?ur:"",numberValue:A,heightPx:2*M4J,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var eD;ur=((eD=xe[2])!=null?eD:"")+"  ";this.setViewCount(E,x,ysa(ur));
if(!this.detailed&&z){x=y.split(/(\d+)/);eD=ysa(x[0]);var gu;ur={numberText:(gu=x[1])!=null?gu:"",heightPx:2*M4J,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var ir;gu=((ir=x[2])!=null?ir:"")+"  ";this.setDateText(ur,eD,ysa(gu))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.P.setViewCount=function(A,L,O){_.vG(L)!==_.vG(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=L);this.viewCountProps.numberText!==(A==null?void 0:A.numberText)&&(this.viewCountProps=A||$o_);_.vG(O)!==_.vG(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=O)};
_.P.setDateText=function(A,L,O){_.vG(L)!==_.vG(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=L);this.dateTextProps.numberText!==(A==null?void 0:A.numberText)&&(this.dateTextProps=A||$o_);_.vG(O)!==_.vG(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=O)};
_.P.onYtUpdateViewershipAction=function(A){this.videoPrimaryInfoRenderer&&(_.q(A,Wl_).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.q(A,Wl_).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.q(A,Wl_).viewCount)))};
_.P.onYtUpdateDateTextAction=function(A){if(this.videoPrimaryInfoRenderer){A=_.q(A,_.Z6o).dateText;this.shouldAnimate=!0;var L;((L=this.videoPrimaryInfoRenderer)==null?0:L.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",A):this.set("videoPrimaryInfoRenderer.dateText",A)}};
_.v2.Object.defineProperties(Kf.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return IeB(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.vG(IeB(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.vG(this.viewCountPreNumberText),this.viewCountProps.numberText,_.vG(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.vG(this.dateTextPreNumberText),this.dateTextProps.numberText,_.vG(this.dateTextPostNumberText)].join("")}}});
Kf.prototype.updateDynamicMetadata=Kf.prototype.updateDynamicMetadata;Kf.prototype.resetAnimationState=Kf.prototype.resetAnimationState;_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],Kf.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Kf.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Kf.prototype,"ytRendererstamperBehavior",void 0);
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],Kf.prototype,"ytActionHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Kf.prototype,"videoPrimaryInfoRenderer",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Kf.prototype,"detailed",void 0);_.I([_.K(),_.Z("design:type",Object)],Kf.prototype,"shouldAnimate",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Kf.prototype,"viewCountPreNumberText",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Kf.prototype,"viewCountProps",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Kf.prototype,"viewCountPostNumberText",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Kf.prototype,"dateTextPreNumberText",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Kf.prototype,"dateTextProps",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Kf.prototype,"dateTextPostNumberText",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Kf.prototype,"metadataBadgesInDescription",void 0);_.I([_.r("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Kf.prototype,"infoText",null);
_.I([_.r("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.Z("design:type",String),_.Z("design:paramtypes",[])],Kf.prototype,"descriptionInfoTooltipText",null);_.I([_.r("detailed"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Kf.prototype,"showDescriptionInfoTooltip",null);
_.I([_.r("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.Z("design:type",String),_.Z("design:paramtypes",[])],Kf.prototype,"animatedViewCountAccessibilityLabel",null);_.I([_.r("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.Z("design:type",String),_.Z("design:paramtypes",[])],Kf.prototype,"animatedDateTextAccessibilityLabel",null);
_.I([_.hT("videoPrimaryInfoRenderer"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Kf.prototype,"resetAnimationState",null);_.I([_.hT("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Kf.prototype,"updateDynamicMetadata",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-watch-info-text"})],Kf);
_.m(Kf,"ytd-watch-info-text",function(){if(Bp_!==void 0)return Bp_;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return Bp_=A},{mode:1});var aMg;var kM3="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var Uo0=_.xa(function(A){var L=A.data;var O=A.setTapCommand;_.ND(function(){var X=_.HR(L().onTap);O(X)},"X4onJd");
return _.D("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.D(_.ID,{data:function(){return L().avatar}},{avatarViewModel:_.fP}),_.D("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.D("span",null,function(){return L().simpleboxText})))},"Rj");var v3E=_.xa(function(A){return _.D("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.D(_.e,{cond:function(){return _.q(A.data().avatar,_.MV)},
then:function(L){return _.D(_.fP,{data:L,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.D("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.D(_.Xg,{text:function(){return A.data().teaserText}})))},"Sj");var o32=_.xa(function(A){var L=A.data;var O=A.setTapCommand;_.ND(function(){var X=_.HR(L().onTap);O(X)},"PmAol");
return _.D("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.D(_.ID,{data:function(){return L().teasers}},{commentsEntryPointTeaserViewModel:v3E}))},"Tj");var ADP=_.xa(function(A){var L=A.data;var O=A.setTapCommand;_.ND(function(){var X=_.HR(L().onTap);O(X)},"Nh3Hjd");
return _.D("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.D(_.Xg,{text:function(){return L().messageText}}))},"Uj");var LyE=_.xa(function(A){var L=A.data;var O=A.setTapCommand;var X=A.isDisabled;_.ND(function(){var x=(X==null?0:X())?void 0:_.HR(L().onTap);O(x)},"omeiWe");
return _.D("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.D(_.Ky,{icon:function(){return L().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.D(_.e,{cond:function(){return L().image},
then:function(x){return _.D(_.XV,{data:x,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.D(_.Xg,{text:function(){return L().text},
className:function(){return L().image||L().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.D(_.ID,{data:function(){return L().button}},{buttonViewModel:function(x){return _.D(_.gj,{data:x.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:X==null?void 0:X()}}})}}))},"Vj");var OmW=_.xa(function(A){var L=A.data;var O=A.itemIndex;var X=A.selectedIndex;var x=A.indexUpdatedCallback;var J=A.observer;A=A.title;var Y=_.av("yt-carousel-item-view-model",function(t){_.h("web_metadata_carousel_elref_bugfix")&&J&&J().observe(t)}),T=function(t){O()===X()&&x(t)},V=_.zJ(EeE),E=_.zJ(_.tWu),n=function(){var t,b,S;
return((t=L())==null?void 0:t.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!V()||((b=L())==null?void 0:b.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&E().includes("PAposts_by_host")||((S=L())==null?void 0:S.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&E().includes("PAyouchat")};
_.GD(function(){_.h("web_metadata_carousel_elref_bugfix")||J&&J().observe(Y.value)});
return _.D("yt-carousel-item-view-model",{el:Y,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":A},_.D(_.ID,{data:function(){var t,b;return(b=(t=_.q(L().carouselItem,uLW))==null?void 0:t.textCarousel)!=null?b:L().carouselItem}},{textCarouselItemViewModel:function(t){return _.D(LyE,{data:t.data,
setTapCommand:T,isDisabled:n})},
commentTeaserCarouselItemViewModel:function(t){return _.D(o32,{data:t.data,setTapCommand:T})},
commentInputBoxCarouselItemViewModel:function(t){return _.D(Uo0,{data:t.data,setTapCommand:T})},
commentsEntryPointMessageViewModel:function(t){return _.D(ADP,{data:t.data,setTapCommand:T})}}))},"Wj");var XTW=_.xa(function(A){var L=A.numDots;var O=A.activeIndex;return _.D("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.D(_.g9,{each:function(){return Array.from({length:L()})},
keyBy:"INDEX"},function(X,x){return _.D("div",{class:function(){var J={};return _.gl("ytCarouselDotsShapeDot",(J.ytCarouselDotsShapeDotActive=x===O(),J))}})}))},"Xj");var xFa=_.xa(function(A){var L=A.data;var O=A.handleCarouselNavigation;var X=A.numItems;var x=A.selectedIndex;var J=function(){return{disabled:x()===0}},Y=function(){return{disabled:x()===X()-1}};
return _.D("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.D("div",null,_.D("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return L().title}),_.D(_.e,{cond:function(){return L().subtitle},
then:function(T){return _.D("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return L().subtitleAccessibilityText}},T)}})),_.D(_.e,{cond:function(){return X()>1},
then:function(){return _.D("div",{class:"ytCarouselTitleViewModelNavigation"},_.D(XTW,{numDots:X,activeIndex:x}),_.D(_.e,{cond:function(){return L().previousButton},
then:function(T){return _.D(_.ID,{data:T},{buttonViewModel:function(V){return _.D(_.gj,{data:V.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return O(-1)},
buttonOverrides:J})}})}}),_.D(_.e,{cond:function(){return L().nextButton},
then:function(T){return _.D(_.ID,{data:T},{buttonViewModel:function(V){return _.D(_.gj,{data:V.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return O(1)},
buttonOverrides:Y})}})}}))}}))},"Yj");_.Y4(_.xa(function(A){var L=A.data;var O,X=_.av("yt-video-metadata-carousel-view-model"),x=_.av("div",function(z){if(_.h("web_metadata_carousel_elref_bugfix")){var a=function(){var xe=z.offsetWidth*l(),ur=24*(l()-1);b(xe+ur)};
a();window.ResizeObserver&&(O=new ResizeObserver(a),O.observe(z))}}),J=_.ms("HTML_DIR")==="rtl",Y=!1,T=0,V=0;
A=_.d(_.uQ(0,void 0,"f4aYxe"));var E=A.next().value,n=A.next().value;A=_.d(_.uQ(0,void 0,"kU9O9"));var t=A.next().value,b=A.next().value;A=_.d(_.uQ(!1,void 0,"GqphDd"));var S=A.next().value,w=A.next().value,l=function(){var z,a,xe;return(xe=(z=L())==null?void 0:(a=z.carouselTitles)==null?void 0:a.length)!=null?xe:0},F=function(){x.value&&x.value.scrollLeft!==T&&n((J?x.value.scrollLeft<T:x.value.scrollLeft>T)?Math.min(E()+1,l()-1):Math.max(E()-1,0))},R;
window.IntersectionObserver&&(R=new IntersectionObserver(function(z){z=_.d(z);for(var a=z.next();!a.done;a=z.next())if(a.value.isIntersecting){if(Y){Y=!1;break}F()}else n(V)},{threshold:.2}));
_.ND(function(){if(x.value){var z=(J?-1:1)*(t()/l()+12)*(S()&&R?V:E());typeof x.value.scrollTo==="function"?x.value.scrollTo({left:z,behavior:"smooth"}):x.value.scrollLeft=z;T=z;V=S()&&R?V:E()}},"ZP1VMb");
var y,M=function(z){y=z};
_.GD(function(){if(!_.h("web_metadata_carousel_elref_bugfix")){var z=function(){var xe=x.value.offsetWidth*l(),ur=24*(l()-1);b(xe+ur)};
z();if(window.ResizeObserver){var a=new ResizeObserver(z);a.observe(x.value);_.rF(function(){a.disconnect();R&&R.disconnect()})}}});
_.rF(function(){if(_.h("web_metadata_carousel_elref_bugfix")){var z;(z=O)==null||z.disconnect();var a;(a=R)==null||a.disconnect()}});
var H=function(z){z=E()+z;z>=0&&z<l()&&(Y=!0,n(z))};
return _.D("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:X,"on:click":_.py(function(z){if(_.Wm(_.j8(z),X.value,["BUTTON".toString()])||!y)return!1;_.X5().resolve(_.x$).resolveCommand(y,{forceClickLogging:!0});return!1}),
"on:touchstart":_.py(function(){w(!0);return!1}),
"on:touchend":_.py(function(){R||F();w(!1);return!1}),
hidden:function(){var z,a;return!((z=L())==null?0:(a=z.carouselItems)==null?0:a.length)}},_.D("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.D(_.e,{cond:function(){return L().carouselTitles},
then:function(z){return _.D(_.ID,{data:function(){return z()[S()&&R?V:E()]}},{carouselTitleViewModel:function(a){return _.D(xFa,{data:a.data,
handleCarouselNavigation:H,numItems:l,selectedIndex:E})}})}})),_.D("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:x},_.D("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+t()+"px;"}},_.D(_.e,{cond:function(){return L().carouselItems},
then:function(z){return _.D(_.g9,{each:z},function(a,xe){return _.D(_.ID,{data:function(){return a}},{carouselItemViewModel:function(ur){return _.D(OmW,{data:ur.data,
itemIndex:xe,selectedIndex:E,indexUpdatedCallback:M,observer:R,title:function(){a:{var eD=xe();var gu,ir=(gu=L())==null?void 0:gu.carouselTitles;if(ir&&(eD=ir[eD])){var SD;eD=(SD=_.q(eD,Ygo))==null?void 0:SD.title;break a}eD=void 0}return eD}})}})})}}))))},"Zj"),"yt-video-metadata-carousel-view-model",{props:{data:_.x5}});var so2=_.h("web_action_buttons_update_owner_width")?32:12,GB=function(){var A=_.G.apply(this,arguments)||this;A.isHovering=!1;A.enableColorSampling=_.h("web_delhi_colorful_sd");A.metadataBadgesInDescription=_.h("web_metadata_badges_in_description");A.descriptionCollapsed=!0;A.useFadedScrimDescription=_.h("kevlar_enable_faded_scrim_on_description");A.skinnyMode=!1;A.playlist=!1;A.isDark=document.documentElement.hasAttribute("dark");A.disableVideoOwnerOnTap=_.h("swatchie_video_owner_on_tap_ks");A.swatcherooDelayLoad=
_.h("swatcheroo_enable_ghost_cards");A.primaryMenuWidth=0;A.videoId="";A.titleHeadlineXs=_.h("web_watch_typography_title_headline_xs");A.titleHeadlineS=_.h("web_watch_typography_title_headline_s");A.titleHeadlineM=_.h("web_watch_typography_title_headline_m");A.titleHashtagBlackLinkified=_.h("web_title_hashtag_black_linkified");A.titleHashtagGreyLinkified=_.h("web_title_hashtag_grey_linkified");A.actionButtonsUpdateOwnerWidth=_.h("web_action_buttons_update_owner_width");A.shouldForceIconOnly=!1;A.actionMap=
{"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};A.isFullscreen=!1;A.isTheaterMode=!1;return A};
_.g(GB,_.G);_.P=GB.prototype;_.P.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.P.updateOwnerAndDescriptionPosition=function(){_.h("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.fU(this.bottomRowElement,this.ownerElement)):(_.fU(this.bottomRowElement,this.descriptionElement),_.fU(this.topRowElement,this.ownerElement)))};
_.P.titleOnTap=function(A){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.xu(_.oa(A)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var L;((L=window.getSelection())==null?0:L.toString().length)||this.handleExpandDescriptionCommands()}};
_.P.videoOwnerOnTap=function(A){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.xu(_.oa(A)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.P.detached=function(){var A=this,L;return _.u(function(O){(L=A.resizeObserver)==null||L.disconnect();_.qo(O)})};
_.P.maybeAttachResizeObserver=function(){var A=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.Of(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){A.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.P.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var A=this.hostElement.clientWidth,L=Math.max(this.largerItemWrap?400:350,A/2-so2);if(_.h("web_action_buttons_update_owner_width")){var O;L=(((O=document.getElementById("owner"))==null?void 0:O.clientWidth)||0)+so2}this.actionsOnSeparateLine=this.primaryMenuWidth>A-L?!0:!1}};
_.P.stripAttributedDescription=function(A){return{content:A.content.replace(/[\r\n]{2,}/g,"\n")}};
_.P.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.h("web_modern_buttons"),forceIconButton:!_.h("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:_.h("web_action_buttons_minimize_subscribe")},properties:{forceIconOnly:"[[shouldForceIconOnly]]"}},subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},commentsEntryPointHeaderRenderer:{id:"comment-teaser",mapping:{commentsEntryPointHeaderRenderer:"ytd-comments-entry-point-header-renderer"}},videoMetadataCarousel:{id:"teaser-carousel",mapping:{videoMetadataCarouselViewModel:"yt-video-metadata-carousel-view-model"}},
infoPanelBelowMetadata:{id:"middle-row",mapping:{infoPanelContentRenderer:"ytd-info-panel-content-renderer"}}}};
_.P.videoPrimaryInfoRendererChanged=function(){var A;if((A=this.videoPrimaryInfoRenderer)==null?0:A.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.P.videoSecondaryInfoRendererChanged=function(){var A,L;(L=(A=this.descriptionInlineExpander).collapse)==null||L.call(A);this.descriptionExpandClientVe=_.tI(110509);this.descriptionCollapseClientVe=_.tI(110510);A=_.Fn();L=_.Ch();A&&L&&(_.h("combine_ve_grafts")?(_.S9(_.iV(),this.descriptionExpandClientVe,L),_.S9(_.iV(),this.descriptionCollapseClientVe,L)):_.H4(A,L,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.P.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.P.updateTopLevelIconsOnly=function(){var A=this;_.h("top_level_update_killswitch")||this.menu&&_.c1.addLowPriorityJob(function(){A.menu.topLevelIconsOnly=A.skinnyMode},_.PO("swathceroo_delay_flexible_menu_update",100))};
_.P.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.h("web_action_buttons_minimize_subscribe")};
_.P.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.P.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.P.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.P.onYtTextInlineExpanderExpandedChanged=function(){if(!_.h("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var A,L;(L=(A=this.structuredDescriptionContentRendererElement).resize)==null||L.call(A)}};
_.P.onRenderStamperFinished=function(A){(A==null?void 0:A.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.P.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.P.onYtExpanderLessTapped=function(){var A,L=(A=this.videoSecondaryInfoRenderer)==null?void 0:A.showLessCommand;L&&this.ytComponentBehavior.resolveCommand(L)};
_.P.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.P.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.P.onDescriptionClick=function(A){if(!_.xu(_.oa(A)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var L;((L=window.getSelection())==null?0:L.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.h("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.P.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.P.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.P.logCollapseClick=function(){var A=_.Fn();A&&this.descriptionCollapseClientVe&&_.$K(A,this.descriptionCollapseClientVe)};
_.P.logExpandClick=function(){var A=_.Fn();A&&this.descriptionExpandClientVe&&_.$K(A,this.descriptionExpandClientVe)};
_.P.collapseDescription=function(){this.descriptionCollapsed=!0};
_.P.scrollToTopOfContainer=function(){_.dQ(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.P.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.P.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.P.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.P.resize=function(){if(this.descriptionInlineExpander){var A,L;(L=(A=this.descriptionInlineExpander).resize)==null||L.call(A)}else _.Rv(new _.pe("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var O;(O=this.menu)==null||O.maybeFlushDebouncer();this.primaryMenuWidth===0?this.updatePrimaryMenuWidth():(_.h("web_action_buttons_overlap_fix")&&this.updatePrimaryMenuWidth(),this.maybeUpdateActionsOnSeparateLine())}};
_.P.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var A,L,O,X,x=_.h("web_action_buttons_update_owner_width")?(O=(A=_.YJ(this.menu).querySelector("#button-shape"))==null?void 0:A.clientWidth)!=null?O:0:(X=(L=_.YJ(this.menu).querySelector("#button"))==null?void 0:L.clientWidth)!=null?X:0,J,Y;A=((Y=(J=_.YJ(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:J.clientWidth)!=null?Y:0)+8+x;var T,V;x=(V=(T=_.YJ(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:T.children.length)!=null?V:2;A<=8*x||(this.primaryMenuWidth=A)}};
_.P.onYtUpdateTitleAction=function(A){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.q(A,j6a).title)};
_.P.onYtUpdateDescriptionAction=function(A){if(A=_.q(A,_.Nj6)){var L,O=!((L=this.videoSecondaryInfoRenderer)==null||!L.attributedDescription);A.isEmpty||!A.description&&!A.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):A.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",A.attributedDescription):A.description&&(O?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.yz(A.description)):this.set("videoSecondaryInfoRenderer.description",A.description))}};
_.P.onYtDarkModeToggledAction=function(A){this.isDark=A};
_.P.registerPanel=function(){if(!_.h("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var A=_.h("web_watch_imax_theater_mode")&&this.isTheaterMode;A=_.h("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||A;var L=_.X5().resolve(_.FC);L&&!A&&L.registerPanel("engagement-panel-structured-description",this)}};
_.P.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.P.parseColorSamplingData=function(){var A;if(_.h("web_delhi_colorful_sd")&&((A=this.structuredDescriptionContentRenderer)==null?0:A.items)&&(A=this.structuredDescriptionContentRenderer.items.find(function(x){return!!_.q(x,Ig)}))){var L,O;
this.hoverColor={lightTheme:(L=_.q(A,Ig))==null?void 0:L.lightThemeColorPalette,darkTheme:(O=_.q(A,Ig))==null?void 0:O.darkThemeColorPalette};var X;this.hoverText=(X=_.q(A,Ig))==null?void 0:X.colorSampledDescriptionBodyText}};
_.P.updateHoverColor=function(){if(_.h("web_delhi_colorful_sd")){var A=this.hoverColor,L={},O;A=(O=this.isDark?A==null?void 0:A.darkTheme:A==null?void 0:A.lightTheme)!=null?O:{};O=_.d(kM3);for(var X=O.next();!X.done;X=O.next()){X=X.value;var x=A[X];L["--yt-saturated-"+_.t9(X)]=x?_.Hy(x):"initial"}_.eq(this.hostElement,L)}};
_.P.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.P.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.P.showPanel=function(A){this.expandDescription();var L=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;L.resize();var O,X=A==null?void 0:(O=A.sectionListEngagementPanelExtras)==null?void 0:O.scrollToItemSectionIdentifier;X?_.c1.addJob(function(){L==null||L.scrollToSection(X)},8):this.scrollToTopOfContainer()};
_.P.isVisible=function(){return!this.descriptionCollapsed};
_.P.getReloadContinuation=function(){};
_.P.hidePanel=function(){};
_.P.updatePanel=function(){};
_.v2.Object.defineProperties(GB.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var A;return _.h("web_delhi_colorful_sd")&&(A=this.structuredDescriptionContentRenderer)!=null&&A.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(L){return!_.q(L,Ig)&&!_.q(L,z7g)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.structuredDescriptionContentRendererComputed)!=null&&A.items){var L;A=_.d((L=this.structuredDescriptionContentRendererComputed)==null?void 0:L.items);for(L=A.next();!L.done;L=A.next())if(L=_.q(L.value,_.wiV))return L}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.videoPrimaryInfoRenderer)==null?0:A.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var A,L,O;return!!((A=this.videoSecondaryInfoRenderer)==null?0:(L=A.owner)==null?0:(O=L.videoOwnerRenderer)==null?0:O.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var A,L;if((A=this.videoSecondaryInfoRenderer)==null?0:(L=A.attributedDescription)==null?0:L.content){var O,X;return(X=this.stripAttributedDescription((O=this.videoSecondaryInfoRenderer)==null?void 0:O.attributedDescription))!=null?X:{runs:[]}}}if(_.h("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var x,J,Y,T;return(T=(Y=(x=this.videoSecondaryInfoRenderer)==
null?void 0:x.description)!=null?Y:(J=this.videoSecondaryInfoRenderer)==null?void 0:J.attributedDescription)!=null?T:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var A,L;return(L=(A=this.videoSecondaryInfoRenderer)==null?void 0:A.headerRuns)!=null?L:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.commentsEntryPointHeaderRenderer)==null||!A.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.videoMetadataCarousel)==null||!A.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.PO("swatchie_desc_lines",3):this.hasTeaserCarousel?_.PO("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var A,L,O=Object.assign({},(A=this.videoSecondaryInfoRenderer)==null?void 0:(L=A.metadataRowContainer)==null?void 0:L.metadataRowContainerRenderer);if(O&&O.rows&&O.collapsedItemCount!==void 0&&!(O.rows.length<=O.collapsedItemCount))return O.rows=O.rows.slice(O.collapsedItemCount),O.collapsedItemCount=0,O}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var A,L,O=Object.assign({},(A=this.videoSecondaryInfoRenderer)==null?void 0:(L=A.metadataRowContainer)==null?void 0:L.metadataRowContainerRenderer);if(O&&O.rows&&O.collapsedItemCount!==void 0)return O.rows=O.rows.slice(0,O.collapsedItemCount),O.collapsedItemCount=O.rows.length,O}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var A,L;return!!((A=this.structuredDescriptionContentRendererComputed)==null?0:(L=A.items)==null?0:L.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRendererComputed)return null;var A;return(A=this.videoSecondaryInfoRenderer)==null?void 0:A.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var A,L,O;return((A=this.videoSecondaryInfoRenderer)==null?0:(L=A.owner)==null?0:(O=L.videoOwnerRenderer)==null?0:O.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var A,L,O,X;return!!((A=this.videoPrimaryInfoRenderer)==null?0:(L=A.videoActions)==null?0:(O=L.menuRenderer)==null?0:(X=O.flexibleItems)==null?0:X.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.AF(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.AF(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var A=this;if(_.h("web_title_hashtag_grey_delinkified")){var L,O=_.lW.unsafeClone((L=this.videoPrimaryInfoRenderer)==null?void 0:L.title);(L=O==null?void 0:O.runs)&&L.forEach(function(X){if(X==null?0:X.navigationEndpoint)X.textColor=4284506208,A.isDark&&(X.textColor=4289374890)});
return O}return(O=this.videoPrimaryInfoRenderer)==null?void 0:O.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.h("web_title_hashtag_black_delinkified")||_.h("web_title_hashtag_grey_delinkified")}}});
GB.prototype.updateHoverColor=GB.prototype.updateHoverColor;GB.prototype.parseColorSamplingData=GB.prototype.parseColorSamplingData;GB.prototype.resetDescriptionState=GB.prototype.resetDescriptionState;GB.prototype.registerPanel=GB.prototype.registerPanel;GB.prototype.onYtExpanderLessTapped=GB.prototype.onYtExpanderLessTapped;GB.prototype.onYtExpanderMoreTapped=GB.prototype.onYtExpanderMoreTapped;GB.prototype.onRenderStamperFinished=GB.prototype.onRenderStamperFinished;
GB.prototype.onYtTextInlineExpanderExpandedChanged=GB.prototype.onYtTextInlineExpanderExpandedChanged;GB.prototype.onYtTextInlineExpanderCollapseClicked=GB.prototype.onYtTextInlineExpanderCollapseClicked;GB.prototype.onYtTextInlineExpanderExpandClicked=GB.prototype.onYtTextInlineExpanderExpandClicked;GB.prototype.moveActionsElement=GB.prototype.moveActionsElement;GB.prototype.updateShouldForceIconOnly=GB.prototype.updateShouldForceIconOnly;GB.prototype.updateTopLevelIconsOnly=GB.prototype.updateTopLevelIconsOnly;
GB.prototype.structuredDescriptionContentRendererChanged=GB.prototype.structuredDescriptionContentRendererChanged;GB.prototype.videoSecondaryInfoRendererChanged=GB.prototype.videoSecondaryInfoRendererChanged;GB.prototype.videoPrimaryInfoRendererChanged=GB.prototype.videoPrimaryInfoRendererChanged;GB.prototype.maybeUpdateActionsOnSeparateLine=GB.prototype.maybeUpdateActionsOnSeparateLine;GB.prototype.updateOwnerAndDescriptionPosition=GB.prototype.updateOwnerAndDescriptionPosition;
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],GB.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],GB.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],GB.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],GB.prototype,"ytRendererstamperBehavior",void 0);
_.I([_.N(_.HL),_.Z("design:type",Object)],GB.prototype,"ytdReduxBehavior",void 0);_.I([_.qR("#above-the-fold"),_.Z("design:type",HTMLElement)],GB.prototype,"aboveTheFoldContainer",void 0);_.I([_.qR("#menu ytd-menu-renderer"),_.Z("design:type",Object)],GB.prototype,"menu",void 0);_.I([_.qR("#description-inline-expander"),_.Z("design:type",Object)],GB.prototype,"descriptionInlineExpander",void 0);
_.I([_.qR("#faded-structured-description"),_.Z("design:type",Object)],GB.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.I([_.qR("#structured-description"),_.Z("design:type",Object)],GB.prototype,"structuredDescriptionContentRendererElement",void 0);_.I([_.qR("#title"),_.Z("design:type",HTMLElement)],GB.prototype,"titleElement",void 0);_.I([_.qR("#description"),_.Z("design:type",HTMLElement)],GB.prototype,"descriptionElement",void 0);
_.I([_.qR("#description-interaction"),_.Z("design:type",Object)],GB.prototype,"descriptionInteraction",void 0);_.I([_.qR("#owner"),_.Z("design:type",HTMLElement)],GB.prototype,"ownerElement",void 0);_.I([_.qR("#top-row"),_.Z("design:type",HTMLElement)],GB.prototype,"topRowElement",void 0);_.I([_.qR("#bottom-row"),_.Z("design:type",HTMLElement)],GB.prototype,"bottomRowElement",void 0);_.I([_.qR("#actions"),_.Z("design:type",HTMLElement)],GB.prototype,"actionsElement",void 0);
_.I([_.qR("#bottom-actions"),_.Z("design:type",HTMLElement)],GB.prototype,"bottomActionsElement",void 0);_.I([_.qR("#ytd-watch-info-text"),_.Z("design:type",Object)],GB.prototype,"watchInfoTextElement",void 0);_.I([_.K(),_.Z("design:type",Object)],GB.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],GB.prototype,"videoPrimaryInfoRenderer",void 0);_.I([_.K(),_.Z("design:type",Object)],GB.prototype,"videoSecondaryInfoRenderer",void 0);
_.I([_.K(),_.Z("design:type",Object)],GB.prototype,"commentsEntryPointHeaderRenderer",void 0);_.I([_.K(),_.Z("design:type",Object)],GB.prototype,"videoMetadataCarousel",void 0);_.I([_.K(),_.Z("design:type",Object)],GB.prototype,"structuredDescriptionContentRenderer",void 0);_.I([_.r("structuredDescriptionContentRenderer"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],GB.prototype,"structuredDescriptionContentRendererComputed",null);
_.I([_.K(),_.Z("design:type",Object)],GB.prototype,"videoSummary",void 0);_.I([_.K(),_.Z("design:type",Object)],GB.prototype,"merchShelf",void 0);_.I([_.K(),_.Z("design:type",Object)],GB.prototype,"infoPanelBelowMetadata",void 0);_.I([_.K(),_.Z("design:type",Object)],GB.prototype,"hoverColor",void 0);_.I([_.K(),_.Z("design:type",Object)],GB.prototype,"hoverText",void 0);_.I([_.K(),_.Z("design:type",Object)],GB.prototype,"isHovering",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],GB.prototype,"enableColorSampling",void 0);_.I([_.r("structuredDescriptionContentRendererComputed"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],GB.prototype,"productShelf",null);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],GB.prototype,"metadataBadgesInDescription",void 0);_.I([_.r("videoPrimaryInfoRenderer"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],GB.prototype,"shouldHideBadges",null);
_.I([_.r("productShelf","descriptionCollapsed"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],GB.prototype,"shouldShowProductShelf",null);_.I([_.K(),_.Z("design:type",Boolean)],GB.prototype,"isWatchFlexy",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],GB.prototype,"descriptionCollapsed",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],GB.prototype,"useFadedScrimDescription",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],GB.prototype,"skinnyMode",void 0);_.I([_.K({reflectToAttribute:!0}),_.r("videoSecondaryInfoRenderer"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],GB.prototype,"largerItemWrap",null);_.I([_.K(),_.Z("design:type",Object)],GB.prototype,"playlist",void 0);_.I([_.K(),_.Z("design:type",Object)],GB.prototype,"clarifyBox",void 0);_.I([_.K(),_.Z("design:type",Object)],GB.prototype,"playerAds",void 0);
_.I([_.K(),_.Z("design:type",Boolean)],GB.prototype,"isDark",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],GB.prototype,"actionsOnSeparateLine",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],GB.prototype,"disableVideoOwnerOnTap",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],GB.prototype,"swatcherooDelayLoad",void 0);_.I([_.K(),_.Z("design:type",Boolean)],GB.prototype,"suppressTopLevelMetadataRows",void 0);
_.I([_.K(),_.Z("design:type",Object)],GB.prototype,"primaryMenuWidth",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],GB.prototype,"videoId",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],GB.prototype,"titleHeadlineXs",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],GB.prototype,"titleHeadlineS",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],GB.prototype,"titleHeadlineM",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],GB.prototype,"titleHashtagBlackLinkified",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],GB.prototype,"titleHashtagGreyLinkified",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],GB.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.I([_.K(),_.Z("design:type",Object)],GB.prototype,"shouldForceIconOnly",void 0);
_.I([_.iy("skinnyMode"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],GB.prototype,"updateOwnerAndDescriptionPosition",null);_.I([_.iy("skinnyMode"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],GB.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.I([_.r("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],GB.prototype,"descriptionText",null);_.I([_.r("videoSecondaryInfoRenderer.headerRuns"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],GB.prototype,"headerRuns",null);
_.I([_.K({value:!1}),_.r("commentsEntryPointHeaderRenderer"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],GB.prototype,"hasTeaser",null);_.I([_.K({value:!1,reflectToAttribute:!0}),_.r("videoMetadataCarousel"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],GB.prototype,"hasTeaserCarousel",null);_.I([_.K({value:3}),_.r("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],GB.prototype,"descriptionMaxLines",null);
_.I([_.r("videoSecondaryInfoRenderer.metadataRowContainer"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],GB.prototype,"collapsibleMetadataRows",null);_.I([_.r("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],GB.prototype,"alwaysVisibleMetadataRows",null);
_.I([_.r("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],GB.prototype,"hasInlineStructuredDescription",null);_.I([_.r("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],GB.prototype,"showInlineStructuredDescription",null);
_.I([_.r("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],GB.prototype,"descriptionExpandCommand",null);_.I([_.r("videoSecondaryInfoRenderer.owner"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],GB.prototype,"videoOwnerCommand",null);_.I([_.K({reflectToAttribute:!0}),_.r("videoPrimaryInfoRenderer.videoActions"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],GB.prototype,"flexMenuEnabled",null);
_.I([_.K({selector:_.Wx,reflectToAttribute:!0}),_.Z("design:type",Object)],GB.prototype,"isFullscreen",void 0);_.I([_.K({selector:_.jt,reflectToAttribute:!0}),_.Z("design:type",Object)],GB.prototype,"isTheaterMode",void 0);_.I([_.r("descriptionText","useFadedScrimDescription"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],GB.prototype,"showAttributedStringDescription",null);
_.I([_.r("descriptionText","useFadedScrimDescription"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],GB.prototype,"showFormattedStringDescription",null);_.I([_.r("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],GB.prototype,"showFadedStructuredDescription",null);
_.I([_.iy("videoPrimaryInfoRenderer"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],GB.prototype,"videoPrimaryInfoRendererChanged",null);_.I([_.r("videoPrimaryInfoRenderer.title"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],GB.prototype,"videoTitle",null);_.I([_.r("videoPrimaryInfoRenderer"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],GB.prototype,"noEndpoints",null);
_.I([_.iy("videoSecondaryInfoRenderer"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],GB.prototype,"videoSecondaryInfoRendererChanged",null);_.I([_.hT("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],GB.prototype,"structuredDescriptionContentRendererChanged",null);
_.I([_.hT("skinnyMode"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],GB.prototype,"updateTopLevelIconsOnly",null);_.I([_.hT("skinnyMode"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],GB.prototype,"updateShouldForceIconOnly",null);_.I([_.hT("skinnyMode"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],GB.prototype,"moveActionsElement",null);
_.I([_.by("yt-text-inline-expander-expand-clicked"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],GB.prototype,"onYtTextInlineExpanderExpandClicked",null);_.I([_.by("yt-text-inline-expander-collapse-clicked"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],GB.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.I([_.by("yt-text-inline-expander-expanded-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],GB.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.I([_.by("yt-rendererstamper-finished"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],GB.prototype,"onRenderStamperFinished",null);
_.I([_.by("yt-expander-more-tapped"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],GB.prototype,"onYtExpanderMoreTapped",null);_.I([_.by("yt-expander-less-tapped"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],GB.prototype,"onYtExpanderLessTapped",null);
_.I([_.hT("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],GB.prototype,"registerPanel",null);_.I([_.hT("videoSecondaryInfoRenderer"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],GB.prototype,"resetDescriptionState",null);
_.I([_.hT("structuredDescriptionContentRenderer"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],GB.prototype,"parseColorSamplingData",null);_.I([_.hT("hoverColor","isDark"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],GB.prototype,"updateHoverColor",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-watch-metadata"})],GB);
_.m(GB,"ytd-watch-metadata",function(){if(aMg!==void 0)return aMg;var A=document.createElement("template");_.p(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-metadata--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="above-the-fold" class="style-scope ytd-watch-metadata">\n  <div id="title" on-click="titleOnTap" class="style-scope ytd-watch-metadata">\n    <ytd-badge-supported-renderer hidden="[[!videoPrimaryInfoRenderer.topStandaloneBadge]]" top-standalone-badge="[[videoPrimaryInfoRenderer.topStandaloneBadge]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n    <h1 class="style-scope ytd-watch-metadata">\n      <yt-formatted-string force-default-style="" no-endpoints="[[noEndpoints]]" text="[[videoTitle]]" title="[[getSimpleString(videoPrimaryInfoRenderer.title)]]" class="style-scope ytd-watch-metadata">\n      </yt-formatted-string>\n    </h1>\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[shouldHideBadges]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n  </div>\n\n  <div id="top-row" class="style-scope ytd-watch-metadata">\n    <div id="owner" class="item style-scope ytd-watch-metadata" hidden="[[!videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" on-click="videoOwnerOnTap">\n      <ytd-video-owner-renderer data="[[videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" subscribe-key="[[videoSecondaryInfoRenderer.subscribeButton.subscribeButtonRenderer.subscribedEntityKey]]" watch-metadata-refresh="" class="style-scope ytd-watch-metadata">\n      </ytd-video-owner-renderer>\n      <div id="subscribe-button" class="style-scope ytd-watch-metadata"></div>\n    </div>\n    <div id="actions" class="item style-scope ytd-watch-metadata">\n      <div id="actions-inner" class="style-scope ytd-watch-metadata">\n        <div id="menu" class="style-scope ytd-watch-metadata"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="middle-row" class="style-scope ytd-watch-metadata"></div>\n\n  <div id="bottom-row" class="style-scope ytd-watch-metadata">\n    <div id="description" class="item style-scope ytd-watch-metadata" on-down="onDescriptionDown" on-up="onDescriptionUp" on-click="onDescriptionClick" on-mouseenter="onDescriptionMouseEnter" on-mouseleave="onDescriptionMouseLeave">\n      <div id="description-inner" class="style-scope ytd-watch-metadata">\n        <ytd-watch-info-text id="ytd-watch-info-text" detailed="[[!descriptionCollapsed]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" class="style-scope ytd-watch-metadata"></ytd-watch-info-text>\n        \n        <template is="dom-if" if="[[shouldShowProductShelf]]" restamp="" id="product-shelf" class="style-scope ytd-watch-metadata">\n          <ytd-merch-shelf-renderer data="[[productShelf]]" class="style-scope ytd-watch-metadata"> </ytd-merch-shelf-renderer>\n        </template>\n        <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n        </yt-formatted-string>\n        <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n          <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n          </yt-attributed-string>\n          \n          <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <ytd-structured-description-content-renderer id="faded-structured-description" data="[[structuredDescriptionContentRendererComputed]]" disable-upgrade$="[[!showFadedStructuredDescription]]" hidden="[[!showFadedStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n          </ytd-structured-description-content-renderer>\n          <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n          </ytd-metadata-row-container-renderer>\n          <tp-yt-paper-button id="collapse-button" class="button style-scope ytd-watch-metadata" hidden="[[descriptionCollapsed]]" on-click="handleCollapseDescriptionClick">[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]</tp-yt-paper-button>\n        </div>\n        <ytd-text-inline-expander id="description-inline-expander" always-show-expand-button="" collapse-label="[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]" disable-upgrade$="[[useFadedScrimDescription]]" expand-command="[[descriptionExpandCommand]]" expand-label="[[getSimpleString(videoSecondaryInfoRenderer.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[useFadedScrimDescription]]" max-lines="[[descriptionMaxLines]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          <div slot="extra-content" class="style-scope ytd-watch-metadata">\n            <ytd-structured-description-content-renderer id="structured-description" data="[[structuredDescriptionContentRendererComputed]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="" merch-shelf="[[merchShelf]]" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n            </ytd-structured-description-content-renderer>\n            <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n            </ytd-metadata-row-container-renderer>\n          </div>\n        </ytd-text-inline-expander>\n      </div>\n      <yt-interaction id="description-interaction" class="rounded-large style-scope ytd-watch-metadata" hidden="[[skinnyMode]]"></yt-interaction>\n    </div>\n    <div id="bottom-actions" class="style-scope ytd-watch-metadata"></div>\n    <div id="comment-teaser" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaser]]"></div>\n    <div id="teaser-carousel" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaserCarousel]]"></div>\n  </div>\n</div>\n\n<ytd-metadata-row-container-renderer data="[[alwaysVisibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n</ytd-metadata-row-container-renderer>\n');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return aMg=A},{mode:2});_.DFa=function(A){_.p$.call(this);this.JSC$23821_watchApi=A;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;JDg(this);PWD(this);dFo(this);YOa(this);uTE(this);Tzw(this);Vx2(this)};
_.g(_.DFa,_.p$);var dFo=function(A){var L=function(){_.h("kevlar_is_pupi_enabled")||lX(A)};
A.JSC$23821_watchApi.getRoot().addEventListener("yt-player-updated",L);A.addOnDisposeCallback(function(){A.JSC$23821_watchApi.getRoot().removeEventListener("yt-player-updated",L)})},uTE=function(A){if(_.h("kevlar_endscreen_auto_theater_mode")){var L=A.JSC$23821_watchApi.subscribeToActiveChanged(function(){eE0(A)},!1);
A.addOnDisposeCallback(L)}},JDg=function(A){var L,O,X,x,J;
_.u(function(Y){if(Y.nextAddress==1)return Y.yield(A.JSC$23821_watchApi.playerApi,2);L=Y.yieldResult;O=function(T){T=!!T;ETo(A)&&(T=T?2:1,_.Yq.getInstance().setState(T,!0,!1))};
X=function(T){T&&_.eP0(_.Ai().getState())&&(_.dQ(A.JSC$23821_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),A.temporaryTheaterMode=!0)};
x=function(T){_.h("kevlar_player_update_autonav_on_new_data")&&T.type==="newdata"&&(_.h("kevlar_is_pupi_enabled")||lX(A))};
J=function(T){A.onPlayerStateChange(T)};
_.h("kevlar_endscreen_auto_theater_mode")&&L.addEventListener("onAutonavCancelled",X);L.addEventListener("onAutonavChangeRequest",O);L.addEventListener("onVideoDataChange",x);L.addEventListener("onStateChange",J);A.addOnDisposeCallback(function(){L.removeEventListener("onAutonavChangeRequest",O);L.removeEventListener("onVideoDataChange",x);L.removeEventListener("onStateChange",J);_.h("kevlar_endscreen_auto_theater_mode")&&L.removeEventListener("onAutonavCancelled",X)});
_.qo(Y)})},PWD=function(A){A.JSC$23821_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){A.autonavCancelledBySignal=!0;
_.h("kevlar_is_pupi_enabled")||lX(A)});
A.JSC$23821_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(L,O,X){O&&lX(A,X)});
A.JSC$23821_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){ETo(A)&&_.Yq.getInstance().setState(2,!0,!0)});
A.JSC$23821_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){ETo(A)&&_.Yq.getInstance().setState(1,!0,!0)});
A.addOnDisposeCallback(function(){A.JSC$23821_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");A.JSC$23821_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");A.JSC$23821_watchApi.unregisterActionHandler("yt-enable-autoplay-command");A.JSC$23821_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},YOa=function(A){var L=A.JSC$23821_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Vx2(A)}),O=A.JSC$23821_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){Tzw(A)});
A.addOnDisposeCallback(function(){A.JSC$23821_watchApi.unsubscribeByKey(L);A.JSC$23821_watchApi.unsubscribeByKey(O)})},Vx2=function(A){A.autonavCancelledBySignal=!1;
_.h("kevlar_is_pupi_enabled")||lX(A)},Tzw=function(A){var L=A.JSC$23821_watchApi.getWatchNextResponse(),O,X;
var x=(L=(X=_.q(L==null?void 0:(x=L.playerOverlays)==null?void 0:(O=x.playerOverlayRenderer)==null?void 0:O.autonavToggle,_.Kn6))==null?void 0:X.enabled)?2:1;_.h("kevlar_is_pupi_enabled")?_.Yq.getInstance().setState(x,!1,!1):lX(A);_.h("web_persist_server_autonav_state_on_client")&&typeof L==="boolean"&&_.qSu(x===2)},ETo=function(A){if(A.autonavCancelledBySignal)return!1;
var L,O,X,x;return!!((L=A.JSC$23821_watchApi.getWatchNextResponse())==null?0:(O=L.contents)==null?0:(X=O.twoColumnWatchNextResults)==null?0:(x=X.autoplay)==null?0:x.autoplay)};
_.DFa.prototype.onPlayerStateChange=function(A){if(A===0){A=!_.Yq.getInstance().isAutoplaySetExplicitly();var L=this.JSC$23821_watchApi.getWatchNextResponse(),O,X,x,J;L=_.q(L==null?void 0:(O=L.contents)==null?void 0:(X=O.twoColumnWatchNextResults)==null?void 0:(x=X.autoplay)==null?void 0:(J=x.autoplay)==null?void 0:J.autoplayExplicitChoiceDialogRenderer,_.kFg);ETo(this)&&A&&L&&_.S5.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:L},popupType:"DIALOG"}})}else eE0(this)};
var eE0=function(A){A.temporaryTheaterMode&&(A.temporaryTheaterMode=!1,_.dQ(A.JSC$23821_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},lX=function(A,L){L=L===void 0?!1:L;
var O;_.u(function(X){if(X.nextAddress==1)return X.yield(A.JSC$23821_watchApi.playerApi,2);O=X.yieldResult;ETo(A)?O.setAutonavState(_.Yq.getInstance().getState(),L):O.setAutonavState(1,L);_.qo(X)})};var nTB={PLAYLIST:"PLAYLIST",ERROR_SCREEN:"ERROR_SCREEN",PRIMARY_INFO:"PRIMARY_INFO",SECONDARY_INFO:"SECONDARY_INFO",CLARIFICATION:"CLARIFICATION",INFO_PANEL_BELOW_METADATA:"INFO_PANEL_BELOW_METADATA",RICH_METADATA:"RICH_METADATA",COMMENTS_ENTRY_POINT_HEADER:"COMMENTS_ENTRY_POINT_HEADER",MERCH_SHELF:"MERCH_SHELF",MERCH_SHELF_IN_SD:"MERCH_SHELF_IN_SD",DONATION_SHELF:"DONATION_SHELF",OFFER_MODULE:"OFFER_MODULE",TICKET_SHELF:"TICKET_SHELF",LIMITED_STATE:"LIMITED_STATE",ALERTS:"ALERTS",SINGLE_COLUMN_CONTENTS:"SINGLE_COLUMN_CONTENTS",
COMMENTS:"COMMENTS",ENGAGEMENT_PANELS:"ENGAGEMENT_PANELS",INLINE_ENGAGEMENT_PANELS:"INLINE_ENGAGEMENT_PANELS",RICH_GRID_RENDERER:"RICH_GRID_RENDERER",WATCH_NEXT_SECONDARY_RESULTS:"WATCH_NEXT_SECONDARY_RESULTS",EXPANDABLE_METADATA:"EXPANDABLE_METADATA",LIVE_CHAT:"LIVE_CHAT",VIDEO_METADATA_CAROUSEL:"VIDEO_METADATA_CAROUSEL",SHOPPING_TIMELY_SHELF:"SHOPPING_TIMELY_SHELF"};_.bmP=function(A){_.p$.call(this);var L=this;this.JSC$23826_watchApi=A;var O=this.JSC$23826_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){txo(L)});
this.addOnDisposeCallback(function(){L.JSC$23826_watchApi.unsubscribeByKey(O)});
txo(this)};
_.g(_.bmP,_.p$);var txo=function(A){var L=A.JSC$23826_watchApi.getPlayerResponse(),O=A.JSC$23826_watchApi.getWatchNextResponse();if(!_.uDr(L==null?void 0:L.playabilityStatus,O==null?void 0:O.playerOverlays)){var X;var x=L==null?void 0:(X=L.playabilityStatus)==null?void 0:X.errorScreen}A.JSC$23826_watchApi.provideRenderingData("ERROR_SCREEN",x)};var hEJ=_.xa(function(A){var L=A.data;A=_.h("web_watch_video_details_hide_subtitle");var O=_.h("web_watch_video_details_single_line_title"),X=_.py(function(){var T=L().onTap;T&&_.X5().resolve(_.x$).resolveCommand(T)}),x={},J={},Y={};
return _.D("yt-player-overlay-video-details-renderer",{class:_.qn("ytPlayerOverlayVideoDetailsRendererHost",(x.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.h("web_watch_video_details_transparent_background"),x)),"on:click":X,role:"button"},_.D("h2",{class:_.qn("ytPlayerOverlayVideoDetailsRendererTitle",(J.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return O},J))},_.D(_.Xg,{text:function(){return L().title}})),_.D("div",{class:_.qn("ytPlayerOverlayVideoDetailsRendererSubtitle",
(Y.ytPlayerOverlayVideoDetailsRendererHideSubtitle=A,Y))},_.D(_.Xg,{text:function(){return L().subtitle}})))},"$j");var cN={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},SOW=_.xa(function(A){var L=A.data;var O=_.zJ(_.Wx),X=_.h("web_watch_action_bar_resize_buttons"),x=_.h("delhi_modern_web_player_icons")&&!_.h("enable_web_delhi_icons"),J=function(){return X&&!O()?{size:"M"}:void 0};
A={};return _.D("yt-player-quick-action-buttons",{class:_.qn("ytPlayerQuickActionButtonsHost",(A.ytPlayerQuickActionButtonsHostTheaterMode=function(){return!O()},A))},_.D(_.g9,{each:function(){if(x){var Y=L();
Y=JSON.parse(JSON.stringify(Y));for(var T=_.d(Y),V=T.next();!V.done;V=T.next()){var E=V.value,n=void 0;V=_.q((n=_.q(E,_.WB))==null?void 0:n.toggleButtonViewModel,_.Fi);var t=void 0;n=_.q((t=_.q(E,_.jo))==null?void 0:t.toggleButtonViewModel,_.Fi);t=_.q(E,_.Cu);E=_.q(E,_.Fi);if(V)n=_.q(V.defaultButtonViewModel,_.Cu),V=_.q(V.toggledButtonViewModel,_.Cu),n&&n.iconName&&(n.iconName=cN[n.iconName]),V&&V.iconName&&(V.iconName=cN[V.iconName]);else if(n)V=_.q(n.defaultButtonViewModel,_.Cu),n=_.q(n.toggledButtonViewModel,
_.Cu),V&&V.iconName&&(V.iconName=cN[V.iconName]),n&&n.iconName&&(n.iconName=cN[n.iconName]);else if(t)t.iconName&&(t.iconName=cN[t.iconName]);else if(E){V=_.q(E.defaultButtonViewModel,_.Cu);n=_.q(E.toggledButtonViewModel,_.Cu);E=void 0;if((E=V)==null?0:E.iconName)V.iconName=cN[V.iconName];V=void 0;if((V=n)==null?0:V.iconName)n.iconName=cN[n.iconName]}}}else Y=L();return Y}},function(Y){return _.D(_.ID,{data:function(){return Y}},{buttonViewModel:function(T){return _.D(_.gj,{data:T.data,
buttonOverrides:J})},
likeButtonViewModel:function(T){return _.D(_.jR,{data:T.data,buttonShapeOverrideables:J})},
dislikeButtonViewModel:function(T){return _.D(_.Zm,{data:T.data,buttonShapeOverrideables:J})},
toggleButtonViewModel:function(T){return _.D(_.fO,{data:T.data,buttonShapeOverrides:J})}})}))},"ak");_.gTP=function(A){_.p$.call(this);var L=this;this.JSC$23830_watchApi=A;A=_.d(_.uQ({},void 0,"n9wCVe"));this.quickActionsViewModel=A.next().value;this.setQuickActionsViewModel=A.next().value;A=_.d(_.uQ({},void 0,"JD2YUd"));this.playerOverlayVideoDetailsRenderer=A.next().value;this.setPlayerOverlayVideoDetailsRenderer=A.next().value;var O=this.JSC$23830_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){qO0(L)});
this.addOnDisposeCallback(function(){L.JSC$23830_watchApi.unsubscribeByKey(O)});
qO0(this)};
_.g(_.gTP,_.p$);
var qO0=function(A){var L,O,X,x,J,Y,T,V,E,n,t,b,S,w;_.u(function(l){if(l.nextAddress==1)return l.yield(A.JSC$23830_watchApi.playerApi,2);L=l.yieldResult;O=A.JSC$23830_watchApi.getWatchNextResponse();J=(X=O)==null?void 0:(x=X.playerOverlays)==null?void 0:x.playerOverlayRenderer;T=_.q((Y=J)==null?void 0:Y.fullscreenQuickActionsBar,_.lUJ);(E=(V=A).setQuickActionsViewModel)==null||E.call(V,T||{});T&&wTa(A,L);b=(n=J)==null?void 0:(t=n.videoDetails)==null?void 0:t.playerOverlayVideoDetailsRenderer;(w=(S=
A).setPlayerOverlayVideoDetailsRenderer)==null||w.call(S,b||{});b&&pTP(A,L);_.qo(l)})},wTa=function(A,L){if(!A.quickActionButtonsContainer)if(L.setFullscreenQuickActions){A.quickActionButtonsContainer=document.createElement("div");
L.setFullscreenQuickActions(A.quickActionButtonsContainer);var O=function(){return A.quickActionsViewModel().quickActionButtons||[]},X=_.NE(A.quickActionButtonsContainer,function(){return _.D(SOW,{data:O})});
A.addOnDisposeCallback(function(){L.setFullscreenQuickActions(void 0);X()})}else _.Rv(new _.pe("setFullscreenQuickActions not defined",{playerApi:Object.keys(L),
isReady:L.isReady(),appState:L.getAppState()}))},pTP=function(A,L){if(!A.playerOverlayVideoDetailsRendererContainer)if(L.setPlayerOverlayVideoDetailsRenderer){A.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
L.setPlayerOverlayVideoDetailsRenderer(A.playerOverlayVideoDetailsRendererContainer);var O=_.NE(A.playerOverlayVideoDetailsRendererContainer,function(){return _.D(hEJ,{data:A.playerOverlayVideoDetailsRenderer})});
A.addOnDisposeCallback(function(){L.setPlayerOverlayVideoDetailsRenderer(void 0);O()})}else _.Rv(new _.pe("setPlayerOverlayVideoDetailsRenderer not defined",{playerApi:Object.keys(L),
isReady:L.isReady(),appState:L.getAppState()}))};_.Cf=function(A){_.p$.call(this);var L=this;this.JSC$23836_watchApi=A;this.JSC$23836_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;A=_.Ge(_.Ai(),_.Wx,function(O){L.onFullscreenChanged(O)});
this.addOnDisposeCallback(A);A=_.Ge(_.Ai(),_.Gl,function(O){L.onWatchScroll(O)});
this.addOnDisposeCallback(A);_.h("kevlar_watch_while_v2")&&(A=_.Ge(_.Ai(),_.Qi,function(O){imw(L,O)}),this.addOnDisposeCallback(A));
Nzw(this);rDf(this);Kyw();this.onWatchScroll(_.Gl(_.Ai().getState()));_.fB("START_IN_FULL_WINDOW_MODE")&&this.JSC$23836_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.g(_.Cf,_.p$);var Nzw=function(A){A.JSC$23836_watchApi.registerActionHandler("yt-fullscreen-change-action",function(L){var O=A.JSC$23836_watchApi.isActive();L&&!O||_.Ai().dispatch(_.JY({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!L}}))});
A.addOnDisposeCallback(function(){A.JSC$23836_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},rDf=function(A){var L,O;
_.u(function(X){if(X.nextAddress==1)return X.yield(A.JSC$23836_watchApi.playerApi,2);L=X.yieldResult;O=function(){A.onFullerscreenEduClicked()};
L.addEventListener("onFullerscreenEduClicked",O);A.addOnDisposeCallback(function(){L.removeEventListener("onFullerscreenEduClicked",O)});
_.qo(X)})};
_.Cf.prototype.onFullscreenChanged=function(A){var L=this,O;return _.u(function(X){if(X.nextAddress==1)return L.isFullscreen=!!_.O0(),X.yield(L.JSC$23836_watchApi.playerApi,2);O=X.yieldResult;L.JSC$23836_miniplayerActive||O.setFauxFullscreen(L.isFullscreen);if(A&&(L.JSC$23836_watchApi.focusOnPlayer(),!L.fullerscreenEduButtonShownThisPlayback)){L.fullerscreenEduButtonShownThisPlayback=!0;var x=_.wf("yt-fullerscreen-edu-button-shown-count")||0;_.gf("yt-fullerscreen-edu-button-shown-count",x+1,31536E3);
L.updateFullerscreenEduButtonSubtleModeState()}_.qo(X)})};
var imw=function(A,L){var O;_.u(function(X){if(X.nextAddress==1)return A.JSC$23836_miniplayerActive=L,X.yield(A.JSC$23836_watchApi.playerApi,2);O=X.yieldResult;O.setFauxFullscreen(!A.JSC$23836_miniplayerActive&&A.isFullscreen);_.qo(X)})};
_.Cf.prototype.onWatchScroll=function(A){var L=this,O,X;return _.u(function(x){if(x.nextAddress==1)return _.h("external_fullscreen_with_edu")?x.yield(L.JSC$23836_watchApi.playerApi,2):x.return();O=x.yieldResult;X=A<=0;L.shouldShowFullerscreenEdu!==X&&(L.shouldShowFullerscreenEdu=X,O.updateFullerscreenEduButtonVisibility(!L.shouldShowFullerscreenEdu));_.qo(x)})};
_.Cf.prototype.onFullerscreenEduClicked=function(){this.JSC$23836_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var A=_.wf("yt-fullerscreen-edu-button-click-count")||0;_.gf("yt-fullerscreen-edu-button-click-count",A+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.Cf.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var A=this,L,O,X,x,J,Y;return _.u(function(T){if(T.nextAddress==1)return L=_.wf("yt-fullerscreen-edu-button-click-count")||0,O=_.wf("yt-fullerscreen-edu-button-shown-count")||0,X=_.PO("external_fullscreen_button_click_threshold"),x=_.PO("external_fullscreen_button_shown_threshold"),J=L>=X||O>=x,T.yield(A.JSC$23836_watchApi.playerApi,2);Y=T.yieldResult;Y.updateFullerscreenEduButtonSubtleModeState(J);_.qo(T)})};
_.Cf.prototype.disposeInternal=function(){_.p$.prototype.disposeInternal.call(this);var A=_.O0();_.h("kevlar_exit_fullscreen_leaving_watch")&&A&&_.Xz(A)};
var Kyw=function(){if(_.h("web_watch_add_viewport_meta_tag")){var A=document.querySelector("meta[name=viewport]"),L=document.head;L&&!A&&(A=document.createElement("meta"),A.name="viewport",A.content="width=device-width, initial-scale=1.0, viewport-fit=cover",L.appendChild(A))}};_.l4o=function(A){_.p$.call(this);var L=this;this.JSC$23840_watchApi=A;this.jobId=0;this.pendingRequestId=void 0;var O=this.JSC$23840_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){G0o(L)});
this.addOnDisposeCallback(function(){L.JSC$23840_watchApi.unsubscribeByKey(O)});
G0o(this)};
_.g(_.l4o,_.p$);var cDB=function(A){_.c1.cancelJob(A.jobId);A.pendingRequestId=void 0},G0o=function(A){cDB(A);
var L=Z9J(A.JSC$23840_watchApi.getWatchNextResponse());if(L){var O=250,X,x=(X=_.q(L,_.K0J))==null?void 0:X.initialDelayMs;_.h("web_watch_updated_metadata_server_initial_delay")&&x&&(O=x);A.jobId=_.c1.addLowPriorityJob(function(){return A.fetchUpdatedMetadata(L)},O)}};
_.l4o.prototype.fetchUpdatedMetadata=function(A,L){var O=this,X,x,J,Y,T,V,E,n,t,b,S,w,l,F,R;return _.u(function(y){switch(y.nextAddress){case 1:L&&(X={continuation:L});if(!_.h("web_get_updated_metadata_fantasy_panel_continuation_params")){y.jumpTo(2);break}x=_.X5().resolve(_.FC);J="PAsports_fantasy";return y.yield(x.isVisible(J,!0),3);case 3:y.yieldResult&&(E=(T=(Y=x).getUpdatePanelContinuationData)==null?void 0:(V=T.call(Y,J))==null?void 0:V.updatePanelContinuationRequest)&&(X||(X={}),X.clientParams=
{panelContinuationParams:{panelContinuation:E}});case 2:n=_.X5().resolve(_.Ia);if(!n)return _.C7(Error("yo")),y.return();t={};O.pendingRequestId=t;return y.yield(_.oQ(n,A,X),4);case 4:b=y.yieldResult;if(t!==O.pendingRequestId)return y.return();l=(S=b)==null?void 0:(w=S.continuation)==null?void 0:w.timedContinuationData;((F=l)==null?0:F.continuation)&&((R=l)==null?0:R.timeoutMs)&&(O.jobId=_.c1.addLowPriorityJob(function(){return O.fetchUpdatedMetadata(A,l.continuation)},l.timeoutMs));
_.qo(y)}})};
_.l4o.prototype.disposeInternal=function(){_.p$.prototype.disposeInternal.call(this);cDB(this)};var CWE=_.xa(function(A){var L=_.py(function(){var X=A.data().videoId;if(A.active())X=_.Oe(X),_.X5().resolve(_.x$).resolveCommand(X);else{var x=A.playerApi(),J=x.getAvailableAudioTracks(),Y,T,V=(Y=A.sourceVideoConfig().audioTracks)==null?void 0:(T=Y.find(function(E){return E.isDefaultForSource}))==null?void 0:T.id;
if(J=J.find(function(E){return E.getLanguageInfo().getId()===V}))x.setAudioTrack(J,!0),x.setCompositeParam({activeVideoId:X}),A.setActiveSourceId(X)}}),O={};
return _.D("ytw-composite-source-video-overlay",{class:_.qn("ytwCompositeSourceVideoOverlayHost",(O.ytwCompositeSourceVideoOverlayActive=A.active,O.ytwCompositeSourceVideoOverlayInteracting=A.interacting,O)),style:_.rl({left:function(){var X;return((X=A.data().topLeftCornerX)!=null?X:0)*100+"%"},
top:function(){var X;return((X=A.data().topLeftCornerY)!=null?X:0)*100+"%"},
width:function(){var X;return((X=A.data().width)!=null?X:0)*100+"%"},
height:function(){var X;return((X=A.data().height)!=null?X:0)*100+"%"}}),
"on:click":L},_.D("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"bk");var FyP=_.xa(function(A){var L=_.d(_.Nn(function(){var Y,T=(Y=A.data().sources)==null?void 0:Y.find(function(V){return V.isActive});
if(T)return T.videoId})),O=L.next().value,X=L.next().value;
L=_.d(_.uQ(!1,void 0,"WI4BUb"));var x=L.next().value,J=L.next().value;return _.D("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.py(function(){J(!0)}),
"on:mouseout":_.py(function(){J(!1)})},_.D(_.e,{cond:function(){return A.data().sources},
then:function(Y){return _.D(_.g9,{each:Y},function(T){return _.D(CWE,{data:T,active:function(){return T.videoId===O()},
setActiveSourceId:X,interacting:x,playerApi:A.playerApi,sourceVideoConfig:function(){return jda(A.compositeVideoConfig(),T.videoId)}})})}}))},"ck");_.mFw=function(A){_.p$.call(this);this.JSC$23856_watchApi=A;A=_.d(_.uQ({},void 0,"RgF9Ae"));this.compositeVideoOverlayRenderer=A.next().value;this.setCompositeVideoOverlayRenderer=A.next().value;A=_.d(_.uQ({},void 0,"OlaJpc"));this.compositeVideoConfig=A.next().value;this.setCompositeVideoConfig=A.next().value;REE(this);Qo3(this)};
_.g(_.mFw,_.p$);var REE=function(A){var L=A.JSC$23856_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Qo3(A)});
A.addOnDisposeCallback(function(){A.JSC$23856_watchApi.unsubscribeByKey(L)})},f4W=function(A){var L;
return _.u(function(O){if(O.nextAddress==1)return O.yield(A.JSC$23856_watchApi.playerApi,2);L=O.yieldResult;L.setCompositeVideoOverlayRendererComponent(A.container);_.qo(O)})},I4J=function(A){var L;
return _.u(function(O){if(O.nextAddress==1)return O.yield(A.JSC$23856_watchApi.playerApi,2);L=O.yieldResult;L.setCompositeVideoOverlayRendererComponent(void 0);_.qo(O)})},yD_=function(A){var L,O;
return _.u(function(X){if(X.nextAddress==1)return X.yield(A.JSC$23856_watchApi.playerApi,2);L=X.yieldResult;A.container=document.createElement("div");O=_.NE(A.container,function(){return _.D(FyP,{data:A.compositeVideoOverlayRenderer,compositeVideoConfig:A.compositeVideoConfig,playerApi:L})});
A.addOnDisposeCallback(O);_.qo(X)})},Qo3=function(A){var L,O,X,x,J,Y,T,V;
_.u(function(E){return E.nextAddress==1?(L=A.JSC$23856_watchApi.getPlayerResponse(),J=_.q((O=L)==null?void 0:(X=O.overlay)==null?void 0:(x=X.playerControlsOverlayRenderer)==null?void 0:x.compositeVideoOverlay,ccf),V=(Y=L)==null?void 0:(T=Y.playerConfig)==null?void 0:T.compositeVideoConfig,J&&A.setCompositeVideoOverlayRenderer(J),V&&A.setCompositeVideoConfig(V),J&&V?A.container?E.jumpTo(6):E.yield(yD_(A),6):ZmP(A)?E.yield(I4J(A),0):E.jumpTo(0)):ZmP(A)?E.jumpTo(0):E.yield(f4W(A),0)})},ZmP=function(A){var L;
return!((L=A.container)==null||!L.parentElement)};
_.mFw.prototype.disposeInternal=function(){ZmP(this)&&I4J(this);_.p$.prototype.disposeInternal.call(this)};_.BzE=function(A){_.p$.call(this);var L=this;this.JSC$23862_watchApi=A;var O=this.JSC$23862_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var X=L.JSC$23862_watchApi.getPlayerResponse();if(X){var x,J;if(X=_.q((x=X.endscreen)==null?void 0:(J=x.endscreenRenderer)==null?void 0:J.hideButton,_.Fi)){var Y;(Y=L.setEndscreenHideButton)==null||Y.call(L,X);joE(L)}}});
this.addOnDisposeCallback(function(){L.JSC$23862_watchApi.unsubscribeByKey(O)});
A=_.d(_.uQ({},void 0,"ER3tqb"));this.endscreenHideButton=A.next().value;this.setEndscreenHideButton=A.next().value;Wyo(this);HmJ(this);zE2(this)};
_.g(_.BzE,_.p$);var joE=function(A){var L,O;_.u(function(X){if(X.nextAddress==1)return A.creatorEndscreenHideButtonContainer?X.return():X.yield(A.JSC$23862_watchApi.playerApi,2);L=X.yieldResult;A.creatorEndscreenHideButtonContainer=document.createElement("div");_.zX(A.creatorEndscreenHideButtonContainer,!1);L.setCreatorEndscreenHideButton(A.creatorEndscreenHideButtonContainer);O=_.NE(A.creatorEndscreenHideButtonContainer,function(){return _.D(_.fO,{data:A.endscreenHideButton,useOutlinedIcon:!0})});
A.addOnDisposeCallback(function(){O();var x;(x=L)==null||x.setCreatorEndscreenHideButton(void 0)});
_.qo(X)})},Wyo=function(A){var L,O;
_.u(function(X){if(X.nextAddress==1)return X.yield(A.JSC$23862_watchApi.playerApi,2);L=X.yieldResult;O=function(){A.creatorEndscreenHideButtonContainer&&_.zX(A.creatorEndscreenHideButtonContainer,!0)};
L.addEventListener("endscreenelementshown",O);A.addOnDisposeCallback(function(){var x;(x=L)==null||x.removeEventListener("endscreenelementshown",O)});
_.qo(X)})},HmJ=function(A){var L=function(){A.creatorEndscreenHideButtonContainer&&_.zX(A.creatorEndscreenHideButtonContainer,!1)},O=A.JSC$23862_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",L),X=A.JSC$23862_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",L);
A.addOnDisposeCallback(function(){A.JSC$23862_watchApi.unsubscribeByKey(O);A.JSC$23862_watchApi.unsubscribeByKey(X)})},zE2=function(A){A.JSC$23862_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(L){var O=_.q(L,i6P);
A.JSC$23862_watchApi.playerApi.then(function(X){X==null||X.setCreatorEndscreenVisibility(!!O.hide)})});
A.addOnDisposeCallback(function(){A.JSC$23862_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.$FW=function(A){_.p$.call(this);this.JSC$23868_watchApi=A;MxJ(this)};
_.g(_.$FW,_.p$);var MxJ=function(A){var L,O;_.u(function(X){if(X.nextAddress==1)return X.yield(A.JSC$23868_watchApi.playerApi,2);L=X.yieldResult;O=function(x){_.Ai().dispatch(_.JY({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:x}}))};
L.addEventListener("onRetroModeChanged",O);A.addOnDisposeCallback(function(){L.removeEventListener("onRetroModeChanged",O)});
_.qo(X)})};var Rg=0,FX=0,QY=0;var a4o;a4o=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.FR=function(A){_.p$.call(this);this.JSC$23881_watchApi=A;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;k0o(this)};
_.g(_.FR,_.p$);
var k0o=function(A){var L,O,X;_.u(function(x){if(x.nextAddress==1)return x.yield(A.JSC$23881_watchApi.playerApi,2);L=x.yieldResult;if(A.isDisposed())return x.return();A.sessionStorage=_.k2z("yt-sleep-timer");A.sessionStorage||_.Rv(new _.pe("SessionStorage for Sleep Timer is undefined."));((O=A.sessionStorage)==null?void 0:O.get("yt-sleep-timer"))==="true"&&(ve0(),(X=A.sessionStorage)==null||X.remove("yt-sleep-timer"),L.syncVolume());UFP(A,L);vTf(A,L);oTo(A,L);_.qo(x)})},UFP=function(A,L){var O=function(E){A.onSleepTimerSettingsChanged(E,
L)},X=function(E){A.onPlayerStateChange(E,L)},x=function(){A.onLoopChange(L)},J=function(){A.onCloseMiniplayer(L)},Y=function(){$yJ(L,(0,_.O$)(),oe_(L),A.selectedOption==="End of video",L.getPlayerState()!==1)},T=function(){A.onSeekComplete(L)},V=function(){_.c1.cancelJob(FX);
var E=L.getCurrentTime()>=L.getDuration(),n=A.selectedOption==="End of video"||A.selectedOption==="End of playlist"&&!zPg(A.playlistId);E&&n&&AgP(A,L)};
L.addEventListener("onSleepTimerSettingsChanged",O);L.addEventListener("onLoopChange",x);L.addEventListener("onLoopRangeChange",x);L.addEventListener("onStateChange",X);L.addEventListener("onCloseMiniplayer",J);L.addEventListener("onSleepTimerFeatureAvailable",Y);L.addEventListener("SEEK_COMPLETE",T);L.addEventListener("onAdStart",V);A.addOnDisposeCallback(function(){L.removeEventListener("onSleepTimerSettingsChanged",O);L.removeEventListener("onLoopChange",x);L.removeEventListener("onLoopRangeChange",
x);L.removeEventListener("onStateChange",X);L.removeEventListener("onCloseMiniplayer",J);L.removeEventListener("onSleepTimerFeatureAvailable",Y);L.removeEventListener("SEEK_COMPLETE",T);L.removeEventListener("onAdStart",V)})},vTf=function(A,L){var O=A.JSC$23881_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var X=L.getVideoData().video_id,x,J=(x=WMf(A.JSC$23881_watchApi))==null?void 0:x.playlistId;
A.pauseAutonavPlayback&&(L.pauseVideo(),L.syncVolume(),A.pauseAutonavPlayback=!1);if(A.selectedOption==="End of video"&&X!==A.videoId)RB(A,L);else{if(A.selectedOption==="End of playlist"){x=zPg(A.playlistId);if(J!==A.playlistId){RB(A,L);break a}x?x&&LKg(A,L):O$0(A,L)}A.videoId=X;A.playlistId=J}}});
A.addOnDisposeCallback(function(){A.JSC$23881_watchApi.unsubscribeByKey(O)})},oTo=function(A,L){var O=_.X5().resolve(_.al),X=_.Ge(O,_.Z2u,function(J){J&&A.selectedOption!=="Off"&&RB(A,L)}),x=A.JSC$23881_watchApi.subscribeToActiveChanged(function(J){var Y,T;
return _.u(function(V){if(V.nextAddress==1)return V.yield(_.rm().navigationFinishPromise,2);Y=!_.j4n();T=_.X5().resolve(_.z_).isMiniplayerActive();J||!CU(A.selectedOption)||T||Y||RB(A,L);_.qo(V)})},!1);
O=_.Ge(O,function(J){return J.entities.playlistLoopStateEntity||{}},function(J){J=J===void 0?{}:J;
var Y=H9P(A.JSC$23881_watchApi);if(Y){var T;((T=J[Y])==null?void 0:T.state)==="PLAYLIST_LOOP_STATE_ALL"&&CU(A.selectedOption)&&RB(A,L)}});
A.addOnDisposeCallback(X);A.addOnDisposeCallback(O);A.addOnDisposeCallback(x)};
_.FR.prototype.onSleepTimerSettingsChanged=function(A,L){switch(A){case "Off":this.selectedOption!=="Off"&&RB(this,L);break;case "End of video":case "End of playlist":XqW(this,A,L);break;default:XqW(this,A,L,a4o.get(A))}};
_.FR.prototype.onLoopChange=function(A){(A.getLoopVideo()||A.getLoopRange())&&CU(this.selectedOption)&&RB(this,A)};
_.FR.prototype.onCloseMiniplayer=function(A){CU(this.selectedOption)&&RB(this,A)};
var XqW=function(A,L,O,X){xY2(A,O);A.selectedOption=L;A.videoId=O.getVideoData().video_id;A.playlistId="";var x;(x=A.sessionStorage)==null||x.set("yt-sleep-timer","true");A.adjustmentsCount++;$yJ(O,(0,_.O$)(),oe_(O),A.selectedOption==="End of video");if(A.selectedOption==="End of video")O$0(A,O),snP(A,O);else if(A.selectedOption==="End of playlist"){snP(A,O);var J,Y;A.playlistId=(Y=(J=WMf(A.JSC$23881_watchApi))==null?void 0:J.playlistId)!=null?Y:"";zPg(A.playlistId)||O$0(A,O)}else X&&(A.presetFadeSchedulerId=
_.GP(_.c1,function(){kO0(O,15E3)},X-15E3),A.presetPauseSchedulerId=_.GP(_.c1,function(){AgP(A,O)},X),aeP(O,(0,_.O$)(),X))},AgP=function(A,L){if(A.JSC$23881_watchApi.isActive()){var O={dismissDialogEndpoint:{}};
var X={commandExecutorCommand:{commands:[O,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};O={buttonViewModel:{title:_.b3("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:O}}};X={buttonViewModel:{title:_.b3("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:X}}};var x={dialogHeaderViewModel:{headline:{content:_.b3("SLEEP_TIMER_ENDED_TITLE")}}},
J={basicContentViewModel:{paragraphs:[{text:{content:_.b3("SLEEP_TIMER_ENDED_TEXT")}}]}};O={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:x,content:J,footer:{panelFooterViewModel:{primaryButton:O,secondaryButton:X,shouldHideDivider:!0}}}}}}};_.X5().resolve(_.x$).resolveCommand(O,{form:{element:A}})}else ve0();JgB(A,!1);Ps3(A,L);L.pauseVideo();_.Yq.getInstance().getState()===2&&L.getPlayerState()===5&&(A.pauseAutonavPlayback=!0)},RB=function(A,L){JgB(A,!0);
Ps3(A,L);ve0()},Ps3=function(A,L){xY2(A,L);
A.selectedOption="Off";A.videoId="";A.playlistId="";A.adjustmentsCount=0;var O;(O=A.sessionStorage)==null||O.remove("yt-sleep-timer");_.c1.cancelJob(Rg);L.resetSleepTimerMenuSettings()},JgB=function(A,L){L={timer_length_adjustment_times_during_session:A.adjustmentsCount-1,
is_session_cancelled:L};switch(A.selectedOption){case "Off":L.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":L.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":L.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:L.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",L.option_duration_in_minutes=a4o.get(A.selectedOption)/6E4}_.lg("sleepTimerSessionFinishEvent",L)};
_.FR.prototype.onPlayerStateChange=function(A,L){A===1?$yJ(L,(0,_.O$)(),oe_(L),this.selectedOption==="End of video"):A===0?(_.c1.cancelJob(FX),L.setVideoTimeLeft(MDo(0,0))):A===2&&_.c1.cancelJob(FX);this.selectedOption==="End of video"?A===0?AgP(this,L):A===2&&Uy2(L):this.selectedOption!=="End of playlist"||zPg(this.playlistId)||(A===0?AgP(this,L):A===2&&Uy2(L))};
_.FR.prototype.onSeekComplete=function(A){A.getPlayerState()===2&&$yJ(A,(0,_.O$)(),oe_(A),this.selectedOption==="End of video",!0)};
_.FR.prototype.onCueRangeEnter=function(A,L){A==="sleep-timer-fade-audio"&&kO0(L,(L.getDuration()-L.getProgressState().current)*1E3)};
_.FR.prototype.onCueRangeExit=function(A,L){A==="sleep-timer-fade-audio"&&L.getPlayerState()!==0&&Uy2(L,!0)};
var O$0=function(A,L){L.addCueRange("sleep-timer-fade-audio",L.getDuration()-15,L.getDuration());L.addEventListener("onCueRangeEnter",function(O){A.onCueRangeEnter(O,L)});
L.addEventListener("onCueRangeExit",function(O){A.onCueRangeExit(O,L)})},LKg=function(A,L){L.removeCueRange("sleep-timer-fade-audio");
L.removeEventListener("onCueRangeEnter",function(O){A.onCueRangeEnter(O,L)});
L.removeEventListener("onCueRangeExit",function(O){A.onCueRangeExit(O,L)})},xY2=function(A,L){CU(A.selectedOption)?LKg(A,L):(_.c1.cancelJob(A.presetPauseSchedulerId),_.c1.cancelJob(A.presetFadeSchedulerId),A.presetPauseSchedulerId=0,A.presetFadeSchedulerId=0);
Uy2(L,!0)},snP=function(A,L){L.setLoop(!1);
L.setLoopVideo(!1);L.setLoopRange(null);(A=H9P(A.JSC$23881_watchApi))&&_.X5().resolve(_.al).dispatch(_.NV("playlistLoopStateEntity",A,{key:A,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.TX3=function(A){_.p$.call(this);this.JSC$23884_watchApi=A;dY3(this);YTg(this);uq_(this);A=A.getRoot();if(A.is==="ytd-watch-flexy"||A.is==="ytd-watch-grid")A.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.neJ();_.h("web_watch_log_theater_mode_cookie_state")&&_.hj.get("wide","0")==="1"&&_.I8_("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.g(_.TX3,_.p$);var dY3=function(A){var L,O;_.u(function(X){if(X.nextAddress==1)return X.yield(A.JSC$23884_watchApi.playerApi,2);L=X.yieldResult;O=function(x){VVP(A,!!x)};
L.addEventListener("SIZE_CLICKED",O);A.addOnDisposeCallback(function(){L.removeEventListener("SIZE_CLICKED",O)});
_.qo(X)})},YTg=function(A){A.JSC$23884_watchApi.registerActionHandler("yt-toggle-theater-mode",function(L,O){VVP(A,L,O===void 0?!0:O)});
A.addOnDisposeCallback(function(){A.JSC$23884_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.TX3.prototype.getState=function(){return _.jt(_.Ai().getState())};
var VVP=function(A,L,O){O=O===void 0?!0:O;var X,x,J,Y=_.h("enable_player_resize_transition")&&!!A.JSC$23884_watchApi.getWatchNextResponse()&&!((X=A.JSC$23884_watchApi.getWatchNextResponse())==null?0:(x=X.contents)==null?0:(J=x.twoColumnWatchNextResults)==null?0:J.conversationBar);_.A0M(function(){_.Ai().dispatch(_.JY({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:L}}));_.h("theater_mode_scroll_to_top_killswitch")||A.JSC$23884_watchApi.scrollWatchTo(0,!1);_.O0()&&_.h("external_fullscreen")&&_.Xz(document.documentElement);
uq_(A);O&&_.Sh("wide",L?"1":"0",-1);_.dQ(A.JSC$23884_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);A.JSC$23884_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:L});L&&_.neJ()},{shouldWrap:Y})},uq_=function(A){var L;
_.u(function(O){if(O.nextAddress==1)return O.yield(A.JSC$23884_watchApi.playerApi,2);L=O.yieldResult;L.setSizeStyle(!0,A.getState());_.qo(O)})};var E82=function(A){_.p$.call(this);var L=this;this.playerApi=A;this.timeToPanelSyncKeyMap={};var O;if(A==null?0:(O=A.isReady)==null?0:O.call(A)){O=_.Ge(_.X5().resolve(_.al),function(x){return x.entities.timedMarkersListSyncEntity||{}},function(x,J){x=x===void 0?{}:x;
J=J===void 0?{}:J;for(var Y=_.d(Object.keys(J)),T=Y.next();!T.done;T=Y.next())T=T.value,x[T]!==J[T]&&DYw(L,J[T]);J=_.d(Object.keys(x));for(Y=J.next();!Y.done;Y=J.next())Y=Y.value,T=x[Y],L.timeToPanelSyncKeyMap[Y]&&eY0(L,T)});
this.addOnDisposeCallback(O);var X=function(x){L.onCueRangeEnter(x)};
A.addEventListener("onCueRangeEnter",X);this.addOnDisposeCallback(function(){var x;(x=A.removeEventListener)==null||x.call(A,"onCueRangeEnter",X)})}};
_.g(E82,_.p$);
var eY0=function(A,L){var O,X;if((O=A.playerApi)==null?0:(X=O.isReady)==null?0:X.call(O)){var x;if((O=L==null?void 0:(x=L.timedListData)==null?void 0:x.sections)&&L!=null&&L.key)for(x=_.d(O),O=x.next();!O.done;O=x.next())if(O=O.value,O.timedSyncDataList&&O.sectionId)for(X=0;X<O.timedSyncDataList.length;X++){var J=O.timedSyncDataList[X];J.syncItemId&&A.playerApi.addCueRange(O.sectionId+"_"+L.key+"_"+J.syncItemId,Number(J.videoTimeMs)/1E3,X===O.timedSyncDataList.length-1?0x8000000000000:Number(O.timedSyncDataList[X+
1].videoTimeMs)/1E3)}}},DYw=function(A,L){var O,X;
if((O=A.playerApi)==null?0:(X=O.isReady)==null?0:X.call(O)){var x;if((O=L==null?void 0:(x=L.timedListData)==null?void 0:x.sections)&&L!=null&&L.key)for(x=_.d(O),O=x.next();!O.done;O=x.next())if(O=O.value,O.timedSyncDataList&&O.sectionId){X=_.d(O.timedSyncDataList);for(var J=X.next();!J.done;J=X.next())J=J.value,J.syncItemId&&A.playerApi.removeCueRange(O.sectionId+"_"+L.key+"_"+J.syncItemId)}}};
E82.prototype.onCueRangeEnter=function(A){for(var L=_.d(Object.keys(this.timeToPanelSyncKeyMap)),O=L.next();!O.done;O=L.next()){O=O.value;var X=_.d(A.split("_"+O+"_")),x=X.next().value;X=X.next().value;if(x&&X){A=_.X5().resolve(_.al);L=this.timeToPanelSyncKeyMap[O];var J=_.ljp(A.getState(),L);O=n8W(O,x,X);if(O===-1)break;O={activeSyncId:X,activeItemIndex:O,activeSectionInfo:{sectionIdentifier:x}};J?A.dispatch(_.ZE("markersEngagementPanelSyncEntity",L,O)):A.dispatch(_.NV("markersEngagementPanelSyncEntity",
L,Object.assign({},{key:L},O)));break}}};
var n8W=function(A,L,O){var X=_.X5().resolve(_.al),x,J;A=(x=dy0(X.getState(),A))==null?void 0:(J=x.timedListData)==null?void 0:J.sections;if(!A)return-1;x=0;J=_.d(A);for(A=J.next();!A.done;A=J.next()){A=A.value;X=A.timedSyncDataList||[];if(A.sectionId===L)return L=X.findIndex(function(Y){return Y.syncItemId===O}),L===-1?L:x+L;
x+=X.length}return-1};_.hYf=function(A){_.p$.call(this);var L=this;this.JSC$23897_watchApi=A;this.unresolvedCommands=[];this.JSC$23897_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(O){tV3(L,O)});
this.addOnDisposeCallback(function(){L.JSC$23897_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
b$P(this)};
_.g(_.hYf,_.p$);var b$P=function(A){var L;_.u(function(O){if(O.nextAddress==1)return O.yield(A.JSC$23897_watchApi.playerApi,2);L=O.yieldResult;if(A.isDisposed())return O.return();A.timedSyncObserver=new E82(L);A.unresolvedCommands.length&&(A.unresolvedCommands.forEach(function(X){return tV3(A,X)}),A.unresolvedCommands=[]);
_.VI(A,A.timedSyncObserver);_.qo(O)})},tV3=function(A,L){if(A.timedSyncObserver){var O=_.q(L,rcW);
if(O&&O.timedSyncEntityKey&&O.panelSyncEntityKey){A=A.timedSyncObserver;L=O.timedSyncEntityKey;var X=O.panelSyncEntityKey;O=!!O.isEnabled;O=O===void 0?!0:O;var x=_.X5().resolve(_.al);x=dy0(x.getState(),L);O?A.timeToPanelSyncKeyMap[L]||(A.timeToPanelSyncKeyMap[L]=X,eY0(A,x)):(delete A.timeToPanelSyncKeyMap[L],DYw(A,x))}}else A.unresolvedCommands.push(L)};var STw=_.xa(function(A){var L=A.data,O=A.maybeLogSmartSkipClientData,X=null,x=null,J=_.h("web_enable_auto_focus_for_timely_action_button"),Y=function(){X=document.activeElement},T=function(){L().smartSkipMetadata&&(X=document.activeElement,_.HZM(function(){return x}))},V=function(n){if(L().smartSkipMetadata&&(!n||n.key!=="Enter")){X&&X.isConnected&&(_.HZM(function(){return X}),X=null);
var t;(t=x)==null||t.blur()}};
A=_.py(function(){O==null||O(!0,L());return!1});
var E=_.sC(_.Bm(function(){return L().rendererContext},{onTap:function(n,t){t({disableClickTracking:!0})}}),_.Oj({visibilityCallback:function(n){if(J)n?x&&L().smartSkipMetadata&&(T(),document.addEventListener("focusin",Y)):(document.removeEventListener("focusin",Y),V());
else if(n){n=_.Hm(L().rendererContext);var t=Number(L().maxVisibleDurationMilliseconds),b,S=(b=_.q(L().rendererContext,_.ll))==null?void 0:b.label;n&&t&&S&&(b={label:S,command:n,durationMs:t},_.X5().resolve(_.c5).enqueue(b))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.r9(function(){if(J){var n;if((x=(n=E.value)==null?void 0:n.querySelector("button"))&&L().smartSkipMetadata){var t;(t=E.value)==null||t.addEventListener("keydown",V)}}});
_.rF(function(){J&&(x&&L().smartSkipMetadata&&x.removeEventListener("keydown",V),document.removeEventListener("focusin",Y),V())});
return _.D("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:E,"on:click":A},_.D(_.ID,{data:function(){return L().content}},{buttonViewModel:_.gj}))},"dk");var qTJ=_.xa(function(A){var L=A.data,O=A.playerApi,X=_.X5().resolve(_.MDM);A=_.d(_.Nn(function(){L()}));
var x=A.next().value,J=A.next().value,Y=function(){return LlW(L(),x())},T=function(E,n){var t,b,S=(t=_.q(n==null?void 0:n.rendererContext,_.Nb))==null?void 0:(b=t.loggingDirectives)==null?void 0:b.trackingParams;
if((n=n==null?void 0:n.smartSkipMetadata)&&n.loggingData&&(b=n.loggingData,n=b.algorithmId,t=b.startMilliseconds,b=b.endMilliseconds,n&&t!==void 0&&b!==void 0)){var w,l;E={smartSkipData:Object.assign({},{versionName:n,startMediaTimeMs:t,endMediaTimeMs:b},E&&{userInteractionMediaTimeMs:(Math.floor(((w=_.d0())==null?void 0:(l=w.getPlayer())==null?void 0:l.getCurrentTime())||0)*1E3).toString()})};w=_.Fn();var F;S&&(F=_.lV(S));w&&F&&_.kK(w,F,E)}},V=function(E,n){var t=LlW(L(),E);
if(t){var b=_.q(t,mt),S;if(S=n)S=O(),t=_.q(t,mt),S=t!=null&&t.smartSkipMetadata?!(S==null?0:S.isSameMarkerTypeVisible((t==null?void 0:t.smartSkipMetadata.markerKey)||"")):!0;if(S){var w,l;(b==null?0:(w=b.smartSkipMetadata)==null?0:(l=w.loggingData)==null?0:l.isCounterfactual)||(T(!1,b),J(E))}else n||x()!==E||J(void 0)}};
_.ND(function(){var E=L().timelyActions;if(E){E=_.d(E);for(var n=E.next();!n.done;n=E.next()){n=_.q(n.value,mt);var t=void 0;(t=n)!=null&&t.cueRangeId&&X.timelyActionsMap.set(n.cueRangeId,V)}_.rF(function(){X.timelyActionsMap.clear()})}},"Z1Qwtc");
return _.D("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.D(_.ID,{data:Y},{timelyActionViewModel:function(E){return _.D(STw,{data:E.data,maybeLogSmartSkipClientData:function(){T(!0,_.q(Y(),mt))}})}}))},"ek");_.wqa=function(A){_.p$.call(this);this.JSC$23909_watchApi=A;A=_.d(_.uQ({},void 0,"UN7k5e"));this.timelyActionsOverlay=A.next().value;this.setTimelyActionsOverlay=A.next().value;g8g(this)};
_.g(_.wqa,_.p$);var g8g=function(A){var L,O,X,x;_.u(function(J){if(J.nextAddress==1)return pq_(A),i$J(A),A.timelyActionsContainer=document.createElement("div"),J.yield(A.JSC$23909_watchApi.playerApi,2);L=J.yieldResult;(X=(O=L).insertTimelyActionUi)==null||X.call(O,A.timelyActionsContainer);x=_.NE(A.timelyActionsContainer,function(){return _.D(qTJ,{data:A.timelyActionsOverlay,playerApi:L})});
A.addOnDisposeCallback(x);_.qo(J)})},i$J=function(A){var L=A.JSC$23909_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){pq_(A)});
A.addOnDisposeCallback(function(){A.JSC$23909_watchApi.unsubscribeByKey(L)})},pq_=function(A){var L=A.JSC$23909_watchApi.getWatchNextResponse();
if(L){var O,X;if(L=_.q((O=L.playerOverlays)==null?void 0:(X=O.playerOverlayRenderer)==null?void 0:X.timelyActionsOverlayViewModel,KlE)){var x;(x=A.setTimelyActionsOverlay)==null||x.call(A,L)}}};_.rgg=function(A){_.p$.call(this);this.JSC$23913_watchApi=A;NXP(this)};
_.g(_.rgg,_.p$);var NXP=function(A){var L,O;_.u(function(X){if(X.nextAddress==1)return X.yield(A.JSC$23913_watchApi.playerApi,2);L=X.yieldResult;O=function(x){_.S5.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.q(x,_.Rrk)},popupType:"TOAST"}})};
L.addEventListener("onYtShowToast",O);A.addOnDisposeCallback(function(){L.removeEventListener("onYtShowToast",O)});
_.qo(X)})};var KK_,cgP,mYB,GXg,lg2,QnP,FKP,RYB,fgf,IgD;KK_=!1;_.CsP=function(A){_.p$.call(this);this.JSC$23916_watchApi=A;this.fullscreen=this.theater=!1;GXg(this);lg2(this);cgP(this)};
_.g(_.CsP,_.p$);cgP=function(A){var L,O,X;_.u(function(x){if(x.nextAddress==1)return x.yield(A.JSC$23916_watchApi.playerApi,2);L=x.yieldResult;if(A.isDisposed())return x.return();O=A.JSC$23916_watchApi.getElement("CINEMATICS");if(!O)return x.return();A.JSC$23916_cinematicController=new _.dY(O,L);_.VI(A,A.JSC$23916_cinematicController);_.XNk(A.JSC$23916_cinematicController);FKP(A,_.EHp());X=A.JSC$23916_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(J){RYB(A,J)});
A.addOnDisposeCallback(function(){A.JSC$23916_watchApi.unsubscribeByKey(X)});
QnP(A);RYB(A,A.JSC$23916_cinematicController.isAllowed());_.h("web_cinematic_manager_redux_killswitch")?_.QA(A,A.fullscreen,A.theater):mYB(A);fgf(A);_.qo(x)})};
mYB=function(A){A.fullscreen=_.Wx(_.Ai().getState());A.theater=_.jt(_.Ai().getState());_.QA(A,A.fullscreen,A.theater);var L=_.Ge(_.Ai(),_.Wx,function(X){A.fullscreen=X;_.QA(A,A.fullscreen,A.theater)}),O=_.Ge(_.Ai(),_.jt,function(X){A.theater=X;
_.QA(A,A.fullscreen,A.theater)});
A.addOnDisposeCallback(L);A.addOnDisposeCallback(O)};
GXg=function(A){var L=A.JSC$23916_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){QnP(A)});
A.addOnDisposeCallback(function(){A.JSC$23916_watchApi.unsubscribeByKey(L)})};
lg2=function(A){var L,O;_.u(function(X){if(X.nextAddress==1)return X.yield(A.JSC$23916_watchApi.playerApi,2);L=X.yieldResult;O=function(x){FKP(A,x)};
L.addEventListener("cinematicSettingsToggleChange",O);A.addOnDisposeCallback(function(){L.removeEventListener("cinematicSettingsToggleChange",O)});
_.qo(X)})};
QnP=function(A){var L=A.JSC$23916_watchApi.getWatchNextResponse(),O;L=_.q(L==null?void 0:(O=L.pageVisualEffects)==null?void 0:O[0],_.id);var X;(X=A.JSC$23916_cinematicController)==null||_.sBJ(X,L)};
FKP=function(A,L){var O;(O=A.JSC$23916_cinematicController)==null||_.xkJ(O,L);IgD(A)};
RYB=function(A,L){var O;_.u(function(X){if(X.nextAddress==1)return _.h("kevlar_watch_cinematics_invisible")&&(L=!1),X.yield(A.JSC$23916_watchApi.playerApi,2);O=X.yieldResult;O.updateCinematicSettings(L);IgD(A);_.qo(X)})};
fgf=function(A){var L=_.qG();if(_.h("kevlar_measure_ambient_mode_idle")&&!L.getFlag(192)&&!KK_){KK_=!0;var O=_.p7(_.c1,function(){_.X5().resolve(_.$0n).start(1E4)},5E3);
A.addOnDisposeCallback(function(){_.c1.cancelJob(O);_.X5().resolve(_.$0n).stop()})}};
_.QA=function(A,L,O){A.fullscreen=L;A.theater=O;var X;(X=A.JSC$23916_cinematicController)==null||X.setFullscreen(A.fullscreen,A.theater);if(_.h("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(A.theater||A.fullscreen){var x;(x=A.JSC$23916_cinematicController)==null||_.JSB(x)}else if((A=A.JSC$23916_cinematicController)!=null){var J;(J=A.currentCinematicEffect)==null||J.pause()}};
IgD=function(A){if(_.h("web_cinematic_theater_mode")||_.h("web_cinematic_fullscreen")){var L;A.JSC$23916_watchApi.getRoot().toggleCinematicsActive(!((L=A.JSC$23916_cinematicController)==null||!L.isEnabled()))}};_.WKB=function(A){_.p$.call(this);var L=this;this.JSC$23919_watchApi=A;this.commentsReady=!1;this.setCommentsJobId=0;A=_.Ge(_.Ai(),_.Gl,function(){ygB(L)});
this.addOnDisposeCallback(A);var O=this.JSC$23919_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Z$E(L)}),X=this.JSC$23919_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){Z$E(L)});
this.addOnDisposeCallback(function(){L.JSC$23919_watchApi.unsubscribeByKey(O);L.JSC$23919_watchApi.unsubscribeByKey(X)});
var x=function(){_.h("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&jnw(L,"false")};
this.JSC$23919_watchApi.getRoot().addEventListener("yt-page-data-will-update",x);this.addOnDisposeCallback(function(){L.JSC$23919_watchApi.getRoot().removeEventListener("yt-page-data-will-update",x)});
Z$E(this)};
_.g(_.WKB,_.p$);var Z$E=function(A){A.commentsReady=!1;_.c1.cancelJob(A.setCommentsJobId);A.setCommentsJobId=_.p7(_.c1,function(){ygB(A)},1E3)},ygB=function(A){if(!A.commentsReady){_.Rk("cmi");
_.c1.cancelJob(A.setCommentsJobId);var L,O,X,x,J=(L=A.JSC$23919_watchApi.getWatchNextResponse())==null?void 0:(O=L.contents)==null?void 0:(X=O.twoColumnWatchNextResults)==null?void 0:(x=X.results)==null?void 0:x.results.contents;L=void 0;if(J&&J.length)for(J=_.d(J),O=J.next();!O.done;O=J.next())if(O=O.value,x=X=void 0,((X=O)==null?void 0:(x=X.itemSectionRenderer)==null?void 0:x.sectionIdentifier)==="comment-item-section"){_.h("web_watch_provide_undefined_comments")?L=O.itemSectionRenderer:A.JSC$23919_watchApi.provideRenderingData("COMMENTS",
O.itemSectionRenderer);jnw(A,"true");break}_.h("web_watch_provide_undefined_comments")&&A.JSC$23919_watchApi.provideRenderingData("COMMENTS",L);A.commentsReady=!0;A.JSC$23919_watchApi.dispatchEvent("yt-watch-comments-ready")}},jnw=function(A,L){var O;
(O=A.JSC$23919_watchApi.getElement("COMMENTS"))==null||O.setAttribute("canScheduleJobs",L)};_.$Yo=function(A){_.p$.call(this);var L=this;this.JSC$23922_watchApi=A;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.h("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.h("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.h("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.PO("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)H$P(this);
else{var O=this.JSC$23922_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){zYE(L);mj(L)}),X=this.JSC$23922_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){ff(L);
mj(L)});
this.JSC$23922_watchApi.getRoot().is==="ytd-watch-grid"&&_.h("swatcheroo_pbs_load_grid")&&(BX_(this),MVP(this));this.addOnDisposeCallback(function(){L.JSC$23922_watchApi.unsubscribeByKey(O);L.JSC$23922_watchApi.unsubscribeByKey(X);_.c1.cancelJob(L.provideRichGridJobId)});
zYE(this);ff(this)}};
_.g(_.$Yo,_.p$);var H$P=function(A){var L=A.JSC$23922_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){A.providePlayerJobId=_.fu(_.c1,function(){zYE(A);mj(A)},A.provideAllDataDelayMs)}),O=A.JSC$23922_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){A.provideWatchNextJobId=_.fu(_.c1,function(){ff(A);
mj(A)},A.provideAllDataDelayMs)}),X=A.JSC$23922_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){A.provideWatchNextJobId=_.fu(_.c1,function(){ff(A);
mj(A)},A.provideAllDataDelayMs)});
A.JSC$23922_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.p7(_.c1,function(){zYE(A);ff(A);mj(A)},100)});
A.JSC$23922_watchApi.addPageDisposeJob(function(){_.c1.cancelJob(A.provideWatchNextJobId);_.c1.cancelJob(A.providePlayerJobId)});
A.addOnDisposeCallback(function(){A.JSC$23922_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");A.JSC$23922_watchApi.unsubscribeByKey(L);A.JSC$23922_watchApi.unsubscribeByKey(O);A.JSC$23922_watchApi.unsubscribeByKey(X);_.c1.cancelJob(A.providePlayerJobId);_.c1.cancelJob(A.provideWatchNextJobId)});
zYE(A);ff(A)},zYE=function(A){var L=A.JSC$23922_watchApi.getPlayerResponse(),O,X,x=(X=L==null?void 0:(O=L.playabilityStatus)==null?void 0:O.messageRenderers)!=null?X:[],J,Y;
L=(Y=L==null?void 0:(J=L.playabilityStatus)==null?void 0:J.messages)!=null?Y:[];J=_.d(L);for(Y=J.next();!Y.done;Y=J.next())x.push({alertRenderer:{text:_.Ue(Y.value),type:"WARNING"}});A.JSC$23922_watchApi.provideRenderingData("ALERTS",x)},ff=function(A){var L=[],O,X,x,J=A.JSC$23922_watchApi.getWatchNextResponse(),Y,T,V,E,n=J==null?void 0:(Y=J.contents)==null?void 0:(T=Y.twoColumnWatchNextResults)==null?void 0:(V=T.results)==null?void 0:(E=V.results)==null?void 0:E.contents;
if(n)for(Y=_.d(n),T=Y.next();!T.done;T=Y.next())if(T=T.value,T.videoPrimaryInfoRenderer)var t=T;else if(T.videoSecondaryInfoRenderer){var b=T;E=V=void 0;T=Object.assign({},(V=T.videoSecondaryInfoRenderer)==null?void 0:(E=V.metadataRowContainer)==null?void 0:E.metadataRowContainerRenderer);if(T.rows&&T.collapsedItemCount!==void 0){T.rows=T.rows.slice(0,T.collapsedItemCount).filter(function(Wn){return!!Wn.richMetadataRowRenderer});
T.collapsedItemCount=T.rows.length;var S={metadataRowContainerRenderer:T}}}else if(T.merchandiseShelfRenderer)var w=T;else if(T.ticketShelfRenderer)var l=T;else if(T.expandableMetadataRenderer)var F=T;else if(T.itemSectionRenderer)if(V=T.itemSectionRenderer.contents,E=void 0,A.directlyProvideComments&&((E=T.itemSectionRenderer)==null?void 0:E.sectionIdentifier)==="comment-item-section")_.Rk("cmi"),A.JSC$23922_watchApi.provideRenderingData("COMMENTS",T.itemSectionRenderer);else if(V)for(T=_.d(V),V=
T.next();!V.done;V=T.next())if(V=V.value,V.commentsEntryPointHeaderRenderer)var R=V;else if(V.clarificationRenderer||V.infoPanelContainerRenderer||V.infoPanelContentRenderer||V.emergencyOneboxRenderer){L.push(V);var y=y||!!b}else V.limitedStateMessageRenderer?X=V:V.videoMetadataCarouselViewModel&&(x=V);if(_.h("web_watch_merch_in_sd_when_ticket_shelf_present")&&w&&l){var M=w;w=void 0}if(A.provideWatchNextSecondaryResults){var H,z,a;A.JSC$23922_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
J==null?void 0:(H=J.contents)==null?void 0:(z=H.twoColumnWatchNextResults)==null?void 0:(a=z.secondaryResults)==null?void 0:a.secondaryResults)}if(A.JSC$23922_watchApi.getRoot().is==="ytd-watch-grid"){var xe,ur;A.JSC$23922_watchApi.provideRenderingData("LIVE_CHAT",J==null?void 0:(xe=J.contents)==null?void 0:(ur=xe.twoColumnWatchNextResults)==null?void 0:ur.conversationBar)}var eD,gu,ir,SD;(H=J==null?void 0:(eD=J.contents)==null?void 0:(gu=eD.twoColumnWatchNextResults)==null?void 0:(ir=gu.secondaryResults)==
null?void 0:(SD=ir.secondaryResults)==null?void 0:SD.offerModule)&&(H.donationShelfRenderer||H.donationUnavailableRenderer)&&A.JSC$23922_watchApi.getRoot().is!=="ytd-watch-grid"&&(O=H);eD=A.JSC$23922_watchApi.getPlayerResponse();if(!eD||!_.uDr(eD.playabilityStatus,J==null?void 0:J.playerOverlays)){var HJ;if(J==null?0:(HJ=J.contents)==null?0:HJ.singleColumnWatchNextResults){var mM,Vu;var cn=J==null?void 0:(mM=J.contents.singleColumnWatchNextResults.results)==null?void 0:(Vu=mM.results)==null?void 0:
Vu.contents}else{var Tj,Uu,Eg,DN;HJ=!!(n==null?0:(Tj=n[0])==null?0:(Uu=Tj.itemSectionRenderer)==null?0:(Eg=Uu.contents)==null?0:(DN=Eg[0])==null?0:DN.backgroundPromoRenderer);var NN,bJ;Tj=!!(J==null?0:(NN=J.contents)==null?0:(bJ=NN.twoColumnWatchNextResults)==null?0:bJ.secondaryResults);HJ&&!Tj&&(cn=n)}}n=L[0];NN=L[1];y&&L.length===1&&(NN=n,n=void 0);A.JSC$23922_watchApi.provideRenderingData("PRIMARY_INFO",t);A.JSC$23922_watchApi.provideRenderingData("SECONDARY_INFO",b);A.JSC$23922_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
R);A.JSC$23922_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",x);A.JSC$23922_watchApi.provideRenderingData("CLARIFICATION",n);A.JSC$23922_watchApi.provideRenderingData("RICH_METADATA",S);A.JSC$23922_watchApi.provideRenderingData("MERCH_SHELF",w);_.h("web_watch_merch_in_sd_when_ticket_shelf_present")&&A.JSC$23922_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",M);A.JSC$23922_watchApi.provideRenderingData("TICKET_SHELF",l);A.JSC$23922_watchApi.provideRenderingData("LIMITED_STATE",X);A.JSC$23922_watchApi.getRoot().is!==
"ytd-watch-grid"&&A.JSC$23922_watchApi.provideRenderingData("DONATION_SHELF",O);A.JSC$23922_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",cn);A.JSC$23922_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",NN);A.JSC$23922_watchApi.provideRenderingData("EXPANDABLE_METADATA",F);if(A.swatcherooProvideAllDataOnScheduledJob){var MN,Js,XL,gJ,hk,hc;t=J==null?void 0:(MN=J.contents)==null?void 0:(Js=MN.twoColumnWatchNextResults)==null?void 0:(XL=Js.secondaryResults)==null?void 0:(gJ=XL.secondaryResults)==
null?void 0:(hk=gJ.results)==null?void 0:(hc=hk[0])==null?void 0:hc.richGridRenderer;A.JSC$23922_watchApi.provideRenderingData("RICH_GRID_RENDERER",t)}};
_.$Yo.prototype.hasCompanionAds=function(A){var L,O;return(O=A==null?void 0:(L=A.adPlacements)==null?void 0:L.some(function(X){var x,J,Y,T;return(X==null?void 0:(x=X.adPlacementRenderer)==null?void 0:(J=x.renderer)==null?void 0:J.actionCompanionAdRenderer)||(X==null?void 0:(Y=X.adPlacementRenderer)==null?void 0:(T=Y.renderer)==null?void 0:T.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?O:!1};
var mj=function(A){if(!_.h("swaterdoo_ps_wn_handle_ks")){A.swatcherooProvideAllDataOnScheduledJob||MVP(A,3E3);var L=A.JSC$23922_watchApi.getPlayerResponse(),O,X,x,J,Y,T=(O=A.JSC$23922_watchApi.getWatchNextResponse())==null?void 0:(X=O.contents)==null?void 0:(x=X.twoColumnWatchNextResults)==null?void 0:(J=x.secondaryResults)==null?void 0:(Y=J.secondaryResults)==null?void 0:Y.offerModule;L=A.hasCompanionAds(L);var V,E;O=(T==null?void 0:(V=T.tvfilmOfferModuleRenderer)==null?void 0:V.clientShouldSuppressIfCompanionAdDisplayed)||
(T==null?void 0:(E=T.unlimitedOfferModuleRenderer)==null?void 0:E.suppressIfCompanionAds);V=L&&O;A.JSC$23922_watchApi.getRoot().is==="ytd-watch-grid"&&A.JSC$23922_watchApi.provideRenderingData("OFFER_MODULE",V?void 0:T)}},MVP=function(A,L){_.h("swatcheroo_pbs_load_grid")&&(A.provideRichGridJobId&&_.c1.cancelJob(A.provideRichGridJobId),A.provideRichGridJobId=_.fu(_.c1,function(){A.provideRichGridJobId=0;
var O,X,x,J,Y,T,V,E=(O=A.JSC$23922_watchApi.getWatchNextResponse())==null?void 0:(X=O.contents)==null?void 0:(x=X.twoColumnWatchNextResults)==null?void 0:(J=x.secondaryResults)==null?void 0:(Y=J.secondaryResults)==null?void 0:(T=Y.results)==null?void 0:(V=T[0])==null?void 0:V.richGridRenderer;E&&A.JSC$23922_watchApi.provideRenderingData("RICH_GRID_RENDERER",E)},L))},BX_=function(A){var L,O;
_.u(function(X){if(X.nextAddress==1)return X.yield(A.JSC$23922_watchApi.playerApi,2);L=X.yieldResult;O=function(){A.onPlaybackStart()};
L.addEventListener("onPlaybackStartExternal",O);A.addOnDisposeCallback(function(){L.removeEventListener("onPlaybackStartExternal",O)});
_.qo(X)})};
_.$Yo.prototype.onPlaybackStart=function(){MVP(this)};_.kXf=function(A){_.p$.call(this);var L=this;this.JSC$23932_watchApi=A;A.playerApi.then(function(O){L.player=O});
this.gestures=new _.DO(this.JSC$23932_watchApi.getRoot(),A.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.VD3(_.Ai().getState())&&_.Gl(_.Ai().getState())<=0)if(_.Wx(_.Ai().getState())){var O;(O=L.player)==null||O.toggleFullscreen()}else _.dQ(L.JSC$23932_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
agW(this)};
_.g(_.kXf,_.p$);var agW=function(A){var L=_.Ge(_.Ai(),_.Wx,function(O){A.onFullscreenChanged(O)});
A.addOnDisposeCallback(L);L=_.Ge(_.Ai(),_.Gl,function(O){A.gestures&&(O>0?A.gestures.detach():A.gestures.attach())});
A.addOnDisposeCallback(L)};
_.kXf.prototype.onFullscreenChanged=function(A){this.gestures&&this.gestures.update(A)};_.v8f=function(A){_.p$.call(this);var L=this;this.JSC$23935_watchApi=A;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(A.subscribeToActiveChanged(function(O){L.onActiveChanged(O)}));
UYP(this)};
_.g(_.v8f,_.p$);var o8a=function(A){if(_.h("swatcheroo_page_dispose_all_watch_data"))A.pageDisposalDataTypes=Object.values(nTB).filter(function(O){return O!=="PLAYLIST"});
else if(_.h("swatcheroo_page_dispose_rich_grid")){var L;(L=A.pageDisposalDataTypes)==null||L.push("RICH_GRID_RENDERER")}},UYP=function(A){_.h("swatcheroo_enable_ghost_cards")&&(o8a(A),A.JSC$23935_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.c1.cancelJob(A.clearDataJobId);
A.clearDataJobId=0}),A.runPageDisposeJob=function(){var L=_.X5().resolve(_.JI).getDestinationPageType()==="watch";
A.clearDataJobId=_.fu(_.c1,A.runClearDataJob,L?0:_.PO("web_watch_delay_page_dispose_ms",1E4))},A.runClearDataJob=function(){A0o(A)},A.runOnYtNavigateAwayFinish=function(){A.clearDataJobId&&(_.c1.cancelJob(A.clearDataJobId),A.clearDataJobId=0,A0o(A))},document.addEventListener("yt-navigate-finish",A.runOnYtNavigateAwayFinish),A.JSC$23935_watchApi.addPageDisposeJob(A.runPageDisposeJob),A.addOnDisposeCallback(function(){A.JSC$23935_watchApi.removePageDisposeJob(A.runPageDisposeJob);
A.JSC$23935_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",A.runOnYtNavigateAwayFinish)}))},A0o=function(A){A.pageDisposalDataTypes.forEach(function(L){A.JSC$23935_watchApi.provideRenderingData(L,void 0)});
A.clearDataJobId=0};
_.v8f.prototype.onActiveChanged=function(A){A&&((A=document.querySelector("#watch-page-skeleton"))&&_.hg(A),Lv3(this),document.body.removeAttribute("no-y-overflow"),_.fB("IS_SHELL_LOAD")&&_.OiJ())};
var Lv3=function(A){_.u(function(L){if(L.nextAddress==1)return L.yield(A.JSC$23935_watchApi.playerApi,2);_.Uf();_.qo(L)})};var Ora;Ora=_.h("kevlar_watch_while_counterfactual")?0:.25;_.J0P=function(A){_.p$.call(this);this.JSC$23938_watchApi=A;this.JSC$23938_watchWhileEnabled=_.h("kevlar_watch_while_v2");this.pipEnabled=_.h("web_enable_pip_on_miniplayer");Xuo(this);xDf(this);seD(this)};
_.g(_.J0P,_.p$);var Xuo=function(A){A.JSC$23938_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){PQw(A)});
A.addOnDisposeCallback(function(){A.JSC$23938_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},xDf=function(A){var L,O;
_.u(function(X){if(X.nextAddress==1)return X.yield(A.JSC$23938_watchApi.playerApi,2);L=X.yieldResult;O=function(){PQw(A)};
L.addEventListener("onCollapseMiniplayer",O);A.addOnDisposeCallback(function(){L.removeEventListener("onCollapseMiniplayer",O)});
_.qo(X)})},seD=function(A){var L=A.JSC$23938_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&L&&A.JSC$23938_watchWhileEnabled&&(A.playerIntersectionObserver=new IntersectionObserver(function(O){A.handleIntersect(O)},{threshold:[Ora]}),A.playerIntersectionObserver.observe(L),A.addOnDisposeCallback(function(){var O;
(O=A.playerIntersectionObserver)==null||O.disconnect()}))},PQw=function(A){var L,O,X;
_.u(function(x){if(x.nextAddress==1){L=_.X5().resolve(_.JI);O=L.data;X=_.Cd_(O.response,O.playerResponse);_.rm().miniplayerButtonActivation=!0;if(A.pipEnabled)return _.rm().watchPipActivation=!0,x.jumpTo(2);_.X5().resolve(_.z_).collapse();return x.yield(_.rm().navigationFinishPromise,2)}if(x.nextAddress!=4)return _.rm().currentEndpoint=X.watchEndpoint||null,x.yield(_.X5().resolve(_.z_).activate(A.JSC$23938_watchApi.getElement("PLAYER"),X,O),4);_.rm().userActivation=!0;_.qo(x)})};
_.J0P.prototype.handleIntersect=function(A){dD2(this,A[A.length-1])};
var dD2=function(A,L){A.watchWhileJobId&&_.c1.cancelJob(A.watchWhileJobId);A.watchWhileJobId=_.c1.addLowPriorityJob(function(){var O,X;return _.u(function(x){if(x.nextAddress==1)return A.watchWhileJobId=void 0,O=_.X5().resolve(_.z_),L.intersectionRatio>Ora?O.isMiniplayerActive()?x.yield(O.deactivate(),0):x.jumpTo(0):(X=!O.isMiniplayerActive())?x.yield(Y4P(A),5):x.jumpTo(4);x.nextAddress!=4&&(X=x.yieldResult);if(!X)return x.jumpTo(0);_.rm().watchWhileActivation=!0;return x.yield(uxP(A),0)})},100)},
Y4P=function(A){return _.u(function(L){return L.nextAddress==1?_.h("kevlar_watch_while_paused")?L.return(!0):L.yield(A.isPlayerPlaying(),2):L.return(L.yieldResult)})};
_.J0P.prototype.isPlayerPlaying=function(){var A=this,L;return _.u(function(O){if(O.nextAddress==1)return O.yield(A.JSC$23938_watchApi.playerApi,2);L=O.yieldResult;return O.return(L.getPlayerStateObject().isPlaying)})};
var uxP=function(A){var L,O;return _.u(function(X){L=_.X5().resolve(_.JI).data;O=_.Cd_(L.response,L.playerResponse);_.rm().currentEndpoint=O.watchEndpoint||null;return X.yield(_.X5().resolve(_.z_).activate(A.JSC$23938_watchApi.getElement("PLAYER"),O,L),0)})};_.DDf=function(A){_.p$.call(this);this.JSC$23942_watchApi=A;TFw(this);VIo(this)};
_.g(_.DDf,_.p$);var VIo=function(A){var L,O;_.u(function(X){if(X.nextAddress==1)return X.yield(A.JSC$23942_watchApi.playerApi,2);L=X.yieldResult;O=function(x){var J;x.sessionData&&x.sessionData.itct&&(J=x.sessionData.itct);var Y=x.watchEndpoint;if(Y&&x.sessionData&&x.sessionData.autonav)Y=_.Oge(Y,J);else{var T;Y=_.Oe(x.videoId,(T=x.listId)!=null?T:void 0,J)}J={endpoint:Y};x.sessionData&&(J.tempData=x.sessionData);A.JSC$23942_watchApi.dispatchEvent("yt-navigate",J)};
L.addEventListener("onPlayVideo",O);A.addOnDisposeCallback(function(){L.removeEventListener("onPlayVideo",O)});
_.qo(X)})},TFw=function(A){var L=function(O){A.onYtNavigate(O)};
A.JSC$23942_watchApi.getRoot().addEventListener("yt-navigate",L);A.addOnDisposeCallback(function(){A.JSC$23942_watchApi.getRoot().removeEventListener("yt-navigate",L)})};
_.DDf.prototype.onYtNavigate=function(A){var L=this,O,X,x,J,Y,T,V,E,n;return _.u(function(t){if(t.nextAddress==1){if(!((O=A.detail)==null?0:(X=O.endpoint)==null?0:X.watchEndpoint))return t.return();x=A.detail.endpoint.watchEndpoint;J=L.JSC$23942_watchApi.getWatchNextResponse();T=_.q((Y=J)==null?void 0:Y.currentVideoEndpoint,_.$O);if(!T)return t.return();if(x.videoId!==T.videoId||x.playlistId&&x.playlistId!==T.playlistId||typeof x.startTimeSeconds!=="number")return t.jumpTo(0);A.stopPropagation();
(V=_.h("kevlar_watch_while_v2")&&!_.h("kevlar_watch_while_counterfactual"))&&_.X5().resolve(_.z_).isMiniplayerActive()||L.JSC$23942_watchApi.scrollWatchTo(0,!0);return t.yield(L.JSC$23942_watchApi.playerApi,3)}E=t.yieldResult;n=x.startTimeSeconds;E.seekTo(n,void 0,void 0,void 0,84);E.wakeUpControls();n<E.getDuration()&&E.playVideo();_.qo(t)})};_.ENa=function(A){_.p$.call(this);var L=this;this.JSC$23945_watchApi=A;var O=this.JSC$23945_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){eUg(L)});
this.addOnDisposeCallback(function(){L.JSC$23945_watchApi.unsubscribeByKey(O)});
eUg(this)};
_.g(_.ENa,_.p$);var eUg=function(A){var L=A.JSC$23945_watchApi.getWatchNextResponse();if(L){var O,X=[].concat(_.le((O=L==null?void 0:L.engagementPanels)!=null?O:[]));X.unshift.apply(X,_.le(nNW(L)));A.JSC$23945_watchApi.provideRenderingData("ENGAGEMENT_PANELS",X)}},tI_=function(A){var L,O,X,x=(L=A.engagementPanels)==null?void 0:(O=L.find(function(S){var w;
return((w=S.engagementPanelSectionListRenderer)==null?void 0:w.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(X=O.engagementPanelSectionListRenderer.content)==null?void 0:X.structuredDescriptionContentRenderer,J;
if(_.q(x==null?void 0:(J=x.items)==null?void 0:J.find(function(S){return!!_.q(S,BJ_)}),BJ_))return!0;
var Y,T,V,E;if(A=(((Y=A.contents)==null?void 0:(T=Y.twoColumnWatchNextResults)==null?void 0:(V=T.results)==null?void 0:(E=V.results)==null?void 0:E.contents)||[]).find(function(S){return S.videoPrimaryInfoRenderer})){var n,t,b;
return(((n=A.videoPrimaryInfoRenderer)==null?void 0:(t=n.videoActions)==null?void 0:(b=t.menuRenderer)==null?void 0:b.flexibleItems)||[]).some(function(S){S=_.q(S,_.vt6);if(!S)return!1;var w,l;S=(w=S.topLevelButton)==null?void 0:(l=w.buttonViewModel)==null?void 0:l.onTap;if(!S)return!1;w=_.HR(S);if(!w)return!1;var F;return((F=_.q(w,_.II))==null?void 0:F.panelIdentifier)==="PAyouchat"})}return!1},nNW=function(A){var L=[];
if(!_.h("web_watch_inject_placeholder_fantasy_panel_killswitch")){var O,X,x,J=(O=A.engagementPanels)==null?void 0:(X=O.find(function(T){var V;return((V=T.engagementPanelSectionListRenderer)==null?void 0:V.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(x=X.engagementPanelSectionListRenderer.content)==null?void 0:x.structuredDescriptionContentRenderer,Y;
_.q(J==null?void 0:(Y=J.items)==null?void 0:Y.find(function(T){return!!_.q(T,gVP)}),gVP)&&(O=_.Umr("PAsports_fantasy"),O.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",L.push(O))}tI_(A)&&(A=_.Umr("PAyouchat"),A.engagementPanelSectionListRenderer.targetId="PAyouchat",A.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",L.push(A));
return L};_.hU0=function(A){_.p$.call(this);this.JSC$23948_watchApi=A;br3(this)};
_.g(_.hU0,_.p$);var br3=function(A){A.JSC$23948_watchApi.registerActionHandler("yt-loop-command",function(L){S4P(A,L)});
A.JSC$23948_watchApi.registerActionHandler("yt-repeat-chapter-command",function(L){q4w(A,L)});
A.addOnDisposeCallback(function(){A.JSC$23948_watchApi.unregisterActionHandler("yt-loop-command");A.JSC$23948_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},S4P=function(A,L){var O;
_.u(function(X){if(X.nextAddress==1)return X.yield(A.JSC$23948_watchApi.playerApi,2);O=X.yieldResult;_.q(L,pna).loop?(O.setLoopRange({startTimeMs:Number(_.q(L,pna).startTimeMs),endTimeMs:Number(_.q(L,pna).endTimeMs),postId:_.q(L,pna).postId,type:"clips"}),O.playVideo()):O.setLoopRange(null);_.qo(X)})},q4w=function(A,L){var O,X;
_.u(function(x){if(x.nextAddress==1)return x.yield(A.JSC$23948_watchApi.playerApi,2);O=x.yieldResult;X=_.q(L,GjD).repeat;X==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(O.setLoopRange({startTimeMs:Number(_.q(L,GjD).startTimeMs),endTimeMs:Number(_.q(L,GjD).endTimeMs),type:"repeatChapter"}),O.playVideo()):X==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&O.setLoopRange(null);_.qo(x)})};_.wua=function(A){_.p$.call(this);this.JSC$23953_watchApi=A;gNw(this)};
_.g(_.wua,_.p$);var gNw=function(A){A.JSC$23953_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(L){puo(A,L)});
A.addOnDisposeCallback(function(){A.JSC$23953_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},puo=function(A,L){var O,X,x,J,Y,T,V,E,n,t,b;
_.u(function(S){if(S.nextAddress==1)return S.yield(A.JSC$23953_watchApi.playerApi,2);O=S.yieldResult;if(J=(x=(X=_.q(L,lNa))==null?void 0:X.highlightedMenuItemKey)!=null?x:"")(T=(Y=O).highlightSettingsMenuItem)==null||T.call(Y,J);if(n=(E=(V=_.q(L,lNa))==null?void 0:V.openMenuItemKey)!=null?E:"")(b=(t=O).openSettingsMenuItem)==null||b.call(t,n);_.qo(S)})};var irg=_.Dn("/youtube/app/watch/player_state","playerStateEntity");_.r0W=function(A){_.p$.call(this);this.JSC$23956_watchApi=A;NFg(this)};
_.g(_.r0W,_.p$);var Kva=function(A){switch(A){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"}},NFg=function(A){var L,O;
_.u(function(X){if(X.nextAddress==1)return X.yield(A.JSC$23956_watchApi.playerApi,2);L=X.yieldResult;O=function(x){A.onPlayerStateChange(x)};
L.addEventListener("onStateChange",O);A.addOnDisposeCallback(function(){L.removeEventListener("onStateChange",O)});
_.qo(X)})};
_.r0W.prototype.onPlayerStateChange=function(A){var L=this,O,X;return _.u(function(x){if(x.nextAddress==1)return x.yield(L.JSC$23956_watchApi.playerApi,2);O=x.yieldResult;X=O.getVideoData().video_id;_.oJ().dispatch(_.NV("playerStateEntity",irg,{key:irg,playerState:Kva(A),videoId:X}));_.qo(x)})};_.lW_=function(A){_.p$.call(this);var L=this;this.JSC$23960_watchApi=A;this.enableExternalPlaylistPanelInPlayer=_.h("delhi_web_player_use_external_playlist_panel");_.X5().resolve(_.$q).setPlayer(this.JSC$23960_watchApi.getElement("PLAYER"));A=this.JSC$23960_watchApi.subscribeToActiveChanged(function(O){L.onActiveChanged(O)});
this.addOnDisposeCallback(A);GV0(this)};
_.g(_.lW_,_.p$);var GV0=function(A){var L,O;_.u(function(X){if(X.nextAddress==1)return A.enableExternalPlaylistPanelInPlayer?X.yield(A.JSC$23960_watchApi.playerApi,2):X.return();L=X.yieldResult;O=function(){if(A.playlistPanelElement)A.playlistPanelElement.onToggleExpanded()};
L.addEventListener("onToggleExternalPlaylistPanel",O);A.addOnDisposeCallback(function(){L.removeEventListener("onToggleExternalPlaylistPanel",O)});
_.qo(X)})};
_.lW_.prototype.onActiveChanged=function(A){var L=this,O=_.X5().resolve(_.$q),X=function(){c02(L)};
A?(this.playlistPanelElement=this.JSC$23960_watchApi.getElement("PLAYLIST_PANEL"))?(O.setPlaylistComponent(this.playlistPanelElement),O.addEventListener("yt-playlist-data-updated",X),this.addOnDisposeCallback(function(){O.removeEventListener("yt-playlist-data-updated",X)}),c02(this)):_.HY(Error("zo")):(O.removeEventListener("yt-playlist-data-updated",X),O.cancelVideoSkip())};
var c02=function(A){var L=_.X5().resolve(_.$q);A.JSC$23960_watchApi.provideRenderingData("PLAYLIST",L.getPlaylistData())};_.IB=function(A){_.p$.call(this);var L=this;this.JSC$23963_watchApi=A;this.onPageScroll=function(){L.scrollThrottle.fire();L.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.Of(this.onThrottledScroll,200,this);_.VI(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.Of(this.onMastheadThrottledScroll,50,this);_.VI(this,this.mastheadScrollThrottle);this.animation=new _.U6(function(O){L.JSC$23963_watchApi.getRoot().setScrollTop(O)});
A=_.Ge(_.Ai(),_.Wx,function(){L.onFullscreenChanged()});
this.addOnDisposeCallback(A);CQP(this);Fva(this);this.onThrottledScroll()};
_.g(_.IB,_.p$);
_.IB.prototype.onFullscreenChanged=function(){var A=this,L=this.JSC$23963_watchApi.getRoot();!this.pageScrollElement&&L.pageScrollElement?(this.pageScrollElement=L.pageScrollElement,L.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){A.pageScrollElement&&A.pageScrollElement.removeEventListener("scroll",A.onPageScroll)})):this.pageScrollElement&&!L.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var CQP=function(A){window.addEventListener("scroll",A.onPageScroll);A.addOnDisposeCallback(function(){window.removeEventListener("scroll",A.onPageScroll)})},Fva=function(A){A.JSC$23963_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(L){a:{var O;
if(O=A.JSC$23963_watchApi.getRoot().contains(L)&&!A.animation.isAnimating()){O=L.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var X,x,J=(L==null?void 0:(X=L.parentElement)==null?void 0:(x=X.parentElement)==null?void 0:x.id)==="fixed-secondary";O=!(O&&J)}if(O){if(_.h("kevlar_watch_scroll_manager_absolute_offset_killswitch"))X=L.offsetTop;else for(X=0,x=L;x!==null;)X+=x.offsetTop,X-=x.scrollTop,x=x.offsetParent;x=X;X=x-24;L=x+L.offsetHeight+24;x=A.JSC$23963_watchApi.getRoot().getPageScrollingElement();
O=A.JSC$23963_watchApi.getRoot().getScrollTop();J=O+x.clientHeight-56;if(X<O+56)L=X-56;else if(L>J)L-=x.clientHeight;else break a;A.scrollWatchTo(Math.max(0,L),!0)}}});
A.addOnDisposeCallback(function(){A.JSC$23963_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.IB.prototype.onThrottledScroll=function(){var A=_.Ai(),L=A.dispatch,O=this.JSC$23963_watchApi.getRoot().getScrollTop();L.call(A,_.JY({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:O}}))};
_.IB.prototype.onMastheadThrottledScroll=function(){this.JSC$23963_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$23963_watchApi.getRoot().getScrollTop())};
_.IB.prototype.scrollWatchTo=function(A,L){(L===void 0?0:L)?this.animation.start(this.JSC$23963_watchApi.getRoot().getScrollTop(),Math.max(0,A),500):this.JSC$23963_watchApi.getRoot().setScrollTop(A)};_.mDP=function(A){_.p$.call(this);var L=this;this.JSC$23966_watchApi=A;var O=this.JSC$23966_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){RUE(L)}),X=this.JSC$23966_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Qe0(L)});
this.addOnDisposeCallback(function(){L.JSC$23966_watchApi.unsubscribeByKey(O);L.JSC$23966_watchApi.unsubscribeByKey(X)});
RUE(this);Qe0(this)};
_.g(_.mDP,_.p$);
var RUE=function(A){var L,O,X,x=(X=(L=A.JSC$23966_watchApi.getPlayerResponse())==null?void 0:(O=L.videoDetails)==null?void 0:O.title)!=null?X:"";A.JSC$23966_watchApi.dispatchEvent("yt-update-title",x)},Qe0=function(A){var L,O,X,x,J,Y,T,V=(T=((Y=(L=A.JSC$23966_watchApi.getWatchNextResponse())==null?void 0:(O=L.contents)==null?void 0:(X=O.twoColumnWatchNextResults)==null?void 0:(x=X.results)==null?void 0:(J=x.results)==null?void 0:J.contents)!=null?Y:[]).find(function(E){return!!E.videoPrimaryInfoRenderer}))==null?
void 0:T.videoPrimaryInfoRenderer;
(L=_.vG(V==null?void 0:V.title))&&A.JSC$23966_watchApi.dispatchEvent("yt-update-title",L)};_.IWD=function(A){_.p$.call(this);this.JSC$23969_watchApi=A;fW3(this)};
_.g(_.IWD,_.p$);var fW3=function(A){var L,O;_.u(function(X){if(X.nextAddress==1)return X.yield(A.JSC$23969_watchApi.playerApi,2);L=X.yieldResult;O=function(){A.onYpcContentRequest()};
L.addEventListener("onYpcContentRequest",O);A.addOnDisposeCallback(function(){L.removeEventListener("onYpcContentRequest",O)});
_.qo(X)})};
_.IWD.prototype.onYpcContentRequest=function(){var A,L,O,X,x,J=(A=this.JSC$23969_watchApi.getWatchNextResponse())==null?void 0:(L=A.contents)==null?void 0:(O=L.twoColumnWatchNextResults)==null?void 0:(X=O.secondaryResults)==null?void 0:(x=X.secondaryResults)==null?void 0:x.offerModule,Y,T,V,E;A=(E=(V=(T=(Y=J==null?void 0:J.episodeOfferModuleRenderer)!=null?Y:J==null?void 0:J.movieOfferModuleRenderer)!=null?T:J==null?void 0:J.unlimitedOfferModuleRenderer)!=null?V:J==null?void 0:J.liveOfferModuleRenderer)!=
null?E:J==null?void 0:J.tvfilmOfferModuleRenderer;var n,t,b;J=(b=J==null?void 0:(n=J.tvfilmOfferModuleRenderer)==null?void 0:(t=n.actionButtons)==null?void 0:t.length)!=null?b:0;t=Math.max(J-1,0);var S,w,l;n=(l=A==null?void 0:(S=A.offerButton)==null?void 0:S.buttonRenderer)!=null?l:A==null?void 0:(w=A.actionButtons)==null?void 0:w[t].buttonRenderer;var F,R;(S=(R=(F=n==null?void 0:n.navigationEndpoint)!=null?F:n==null?void 0:n.serviceEndpoint)!=null?R:n==null?void 0:n.command)&&_.S5.instance.resolveCommand(S)};
}catch(e){_._DumpException(e)}
try{
var clM,K2Z,NVS;_.rlX=function(){var A=_.lW.clone(idJ),L;return(new _.eJ(function(O,X){A.onSuccess=function(x){_.Ffd(x)?O(new NVS(x)):X(new _.e1("Request failed, status="+_.uK(x),"net.badstatus",x))};
A.onError=function(x){X(new _.e1("Unknown request error","net.unknown",x))};
A.onTimeout=function(x){X(new _.e1("Request timed out","net.timeout",x))};
L=_.Et("//googleads.g.doubleclick.net/pagead/id",A)})).thenCatch(function(O){if(O instanceof _.$f){var X;
(X=L)==null||X.abort()}return _.Ry(O)})};
_.GkQ=function(A){a:{var L="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(L="EMBEDDED_PLAYER_MODE_PFL");var O=A.raw_embedded_player_response;if(!O&&(A=A.embedded_player_response))try{O=JSON.parse(A)}catch(x){break a}if(O)b:for(var X in K2Z)if(K2Z[X]==O.embeddedPlayerMode){L=K2Z[X];break b}}return L==="EMBEDDED_PLAYER_MODE_PFL"};
_.lZk=function(){if(_.h("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("nf");if(!_.Ldr())return Error("of");var A=_.ms("PLAYER_VARS",{});if(_.lW.get(A,"privembed",!1)=="1")return Error("pf");if(_.GkQ(A))return Error("qf")};
clM=function(A){switch(A){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:_.ZN(A,"unknown result type")}};
_.COM=function(A,L,O){L=_.A2u[L];O={detected:A===0,source:L.b91,detectionResult:clM(A),contentCpn:O};_.lg("biscottiBasedDetection",O);_.cZl.increment(L.b91,A);L.vVw!==void 0&&_.QT("CATSTAT",_.vrM(A,L))};
_.EE=function(A,L){var O={};O.key=A;O.value=L;return _.F9D().then(function(X){return new Promise(function(x,J){try{var Y=X.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(O);Y.onsuccess=function(){x()};
Y.onerror=function(){J()}}catch(T){J(T)}})})};
_.RLJ=function(){var A=_.PO("user_engagement_experiments_rate_limit_ms"),L=F2X.get("last-user-engagement-exp-trigger-timestamp");return!L||(0,_.O$)()>=L+A?(F2X.set("last-user-engagement-exp-trigger-timestamp",(0,_.O$)()),!0):!1};
_.nI=function(A,L,O,X,x){L=L===void 0?null:L;O=O===void 0?null:O;X=X===void 0?null:X;x=x===void 0?null:x;A={youThereEventType:A};O&&(A.lactThresholdMs=O.lactThresholdMs,A.mediaPosSec=O.promptDelaySec,A.lactServerRequestMs=O.lactServerRequestMs,A.triggerReason=O.triggerReason);x!=null&&(A.renderingMediaPosSec=Math.round(x));L||(L=_.Fn());L&&(A.clientScreenNonce=L);X&&(A.clientPlaybackNonce=X);_.lg("youThere",A)};
K2Z={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"};NVS=function(A){this.xhr=A};
_.e1=function(A,L,O){_.As.call(this,A+", errorCode="+L);this.errorCode=L;this.xhr=O;this.name="PromiseAjaxError"};
_.g(_.e1,_.As);var idJ={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var F2X=new _.mg("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.p2M=function(A){return _.JY({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:A})};
}catch(e){_._DumpException(e)}
try{
var WN,dEW,usJ,T9B,V6w,DEa,ELP,pYf,iBJ,N9P,efE,Ys3,hfP,bBa,GD2;_.PkP=function(){var A=window.location.hash;A.charAt(0)==="#"&&(A=A.charAt(1)==="!"?A.substring(2):A.substring(1));return _.ME(A)};
WN=function(A,L,O){var X;return _.u(function(x){if(x.nextAddress==1)return x.yield(L(),2);X=x.yieldResult;O(X,A);_.qo(x)})};
dEW=function(){return _.u(function(A){return A.nextAddress==1?A.yield((_.lZk()!==void 0?_.Ry(Error("rf")):_.rlX()).then(function(){return 1},function(L){if(L.message==="Biscotti id is disabled")return 3;
_.Rv("Failed fetching bid");return 0}),2):A.return(A.yieldResult)})};
usJ=function(){var A=_.xc("ZW4tZW1iZWQtcGxheWVyIzd0cjdpOGkyenhzeXl0LWhhdg=="),L=_.xc("bm5reDRpZnJhbWUjZjJpNTJsNg==");return document.querySelector(L+Ys3+A)?0:1};
T9B=function(){return _.I1s(_.X6)};
V6w=function(){return _.y3u()===0?0:_.Zls()};
DEa=function(){return _.BD_(_.PjD([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
ELP=function(){return _.l1e(efE)};
_.nLE=function(A){_.u(function(L){switch(L.nextAddress){case 1:return L.yield(WN("b.f_",dEW,A),2);case 2:return L.yield(WN("j.s_",_.KQe,A),3);case 3:return L.yield(WN("r.s_",_.ils,A),4);case 4:return L.yield(WN("e.h_",ELP,A),5);case 5:if(!_.h("ab_det_sc_inj")){L.jumpTo(6);break}return L.yield(WN("s.i_",_.mUu,A),6);case 6:if(_.h("ab_deg_unex_thr")){L.jumpTo(8);break}return L.yield(WN("a.o_",_.RGD,A),8);case 8:if(_.h("ks_get_o_pp")){L.jumpTo(10);break}return L.yield(WN("g.o_",_.FQO,A),10);case 10:if(_.h("ks_det_gpbl")){L.jumpTo(12);
break}return L.yield(WN("p.i_",_.Cje,A),12);case 12:return L.yield(WN("f.i_",_.eGr,A),14);case 14:return L.yield(WN("a.b_",_.wLD,A),15);case 15:return L.yield(WN("p.m_",_.tbJ,A),16);case 16:if(!_.h("ab_det_el_h_v2")){L.jumpTo(17);break}return L.yield(WN("n.h_",DEa,A),17);case 17:return L.yield(WN("o.p_",T9B,A),19);case 19:return L.yield(WN("e.i_",usJ,A),20);case 20:if(_.h("ab_det_apm"))return L.yield(WN("o.a_",V6w,A),0);L.jumpTo(0)}})};
_.t6P=function(A,L){A={videoId:A};L&&(A.playlistId=L);return A};
_.Ssf=function(){if(_.Ldr()){var A=_.ms("PLAYER_VARS",{});if(_.lW.get(A,"privembed",!1)!="1"&&!_.GkQ(A)){var L=function(){bBa=!0;"google_ad_status"in window?_.QT("DCLKSTAT",1):_.QT("DCLKSTAT",2)};
try{_.Zx(_.lyV,L)}catch(O){}hfP.push(_.c1.addLowPriorityJob(function(){if(!(bBa||"google_ad_status"in window)){try{_.Mpd(_.lyV.toString(),L)}catch(O){}bBa=!0;_.QT("DCLKSTAT",3)}},5E3))}}};
_.qsg=function(A,L,O){O=O===void 0?!1:O;var X=Math.max(A.width,_.$No);if(_.h("kevlar_watch_feed_big_thumbs")&&A.width>=1550-_.U5()&&A.height>=800)X-=_.Ak3;else if(A.width>=_.Zp){var x=_.aNf+_.kj3+_.yY;_.h("kevlar_watch_feed_big_thumbs")&&(x=_.oVW);X-=x}else X-=_.aNf;X=Math.min(X,_.UNP);x=240;O&&(x=380);L<.5624||(!_.h("kevlar_watch_flexy_disable_small_window_sizing")&&(A.height<630&&A.width>=657||A.height>=630&&A.width>=_.Zp&&A.width<1327)?x=360:!_.h("kevlar_watch_flexy_disable_large_window_sizing")&&
A.height>=630&&A.width>=1327&&(x=480));var J=Math.min(X*L,A.height-(56+_.M3a+_.vVW));J=Math.max(J,x);L<1?X=J/L:A.width>=_.Zp&&(X=_.qsg(A,.5625,O).width);return new _.bW(Math.round(X),Math.round(J))};
_.gLf=function(A){var L=0;A.indexOf("h")!=-1&&(A=A.split("h"),L=A[0]*60*60,A=A[1]);A.indexOf("m")!=-1&&(A=A.split("m"),L=A[0]*60+L,A=A[1]);A.indexOf("s")!=-1?(A=A.split("s"),L=A[0]*1+L):L=A*1+L;return L};
_.wYf=function(){_.PO("service_worker_push_logged_out_prompt_watches")!=-1&&_.SL("WatchCount").then(function(A){A>=100||_.EE("WatchCount",A+1)})};
pYf=function(A){var L=A.externalVideoId||"";return L?A.isShortsEligible?"https://www.youtube.com/shorts/"+L:"https://www.youtube.com/watch?v="+L:""};
iBJ=function(A){var L=[];A.viewCount&&L.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:A.viewCount});A.likeCount&&L.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:A.likeCount});return L};
N9P=function(A){var L,O,X={"@context":"https://schema.org","@type":"VideoObject",description:_.vG(A.description),duration:"PT"+(A.lengthSeconds||"0")+"S",embedUrl:A.embed?A.embed.iframeUrl:"",name:_.vG(A.title),thumbnailUrl:((L=A.thumbnail)==null?void 0:(O=L.thumbnails)==null?void 0:O.map(function(n){return n&&n.url||""}))||[],
uploadDate:A.publishDate};_.h("mweb_video_schema_id_killswitch")||(X["@id"]=pYf(A));L=iBJ(A);L.length&&(X.interactionStatistic=L);A.category&&(X.genre=A.category);A.ownerChannelName&&(X.author=A.ownerChannelName);A.liveBroadcastDetails&&(X.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:A.liveBroadcastDetails.startTimestamp,endDate:A.liveBroadcastDetails.endTimestamp}]);if(A.learningResource){A=A.learningResource;X["@type"]=["VideoObject","LearningResource"];var x;if((x=A.learningResourceType)==
null?0:x.length)X.learningResourceType=A.learningResourceType[0];var J;if((J=A.educationalAlignment)==null?0:J.length)X.educationalAlignment={"@type":"AlignmentObject",targetName:A.educationalAlignment[0]};var Y;if((Y=A.educationalLevel)==null?0:Y.length){x=A.educationalLevel[0];var T;if((T=A.educationalLevelCountry)==null?0:T.length)x+=" ("+A.educationalLevelCountry+")";X.educationalLevel=x}var V,E;if(((V=A.learningResourceType)==null?0:V.length)&&A.learningResourceType[0]==="Problem walkthrough"&&
((E=A.problemDescriptions)==null?0:E.length))for(X.hasPart=[],T=_.d(A.problemDescriptions),V=T.next();!V.done;V=T.next())x=V.value,V=x.problemDescriptionText,E=x.startOffset,x=x.url,V&&E!==void 0&&x&&X.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:V,text:V,startOffset:E,url:x})}return X};
_.r8_=function(A){return _.JY({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:A}})};
efE=[[["OWRwcmltYXJ5I2wwdjZkNDMwMXI=",null,null],[null,["eTMyanF0czBkMTJ5dGQtdHdvLWNvbHVtbi1icm93c2UtcmVzdWx0cy1yZW5kZXJlciN1","ZSN1MjBmOHE5cmx1M21zdHlsZS1zY29w"],null],["ZCMzbDMycG9ydnR0MzFtYXN0aGVhZC1h",["Y2gtZ3JpZC1yZW5kZXJlciNoeTR1cXpyY2pvbXl0ZC1yaQ=="],null],[null,["LWdyaWQtcmVuZGVyZXIjaDR5eW80NHFhaWx5eXRkLXJpY2g=","ZSNmMG9rcGE0NW80dnRzdHlsZS1zY29w"],null],[null,["bW8tcmVuZGVyZXIjNTdnOGZqMjVqdXU1eXRkLWJhbm5lci1wcm8=","ZSNmZXB3aHFsYjB0ZzNzdHlsZS1zY29w"],null],[null,["YWQtc2xvdC1yZW5kZXJlciNyNzhuMmhncmh3M3p5dGQt"],
null]],[["YWRzI3Y1YmFnN3R1aTdxY3BsYXllci0=",null,null]],[["OWUzeWRlc2NyaXB0aW9uLWlubmVyIzlnOWpjc2U=",null,null],[null,null,"ZWxmLXJlbmRlcmVyI2Z6MjlxbWQxbndlY3l0ZC1tZXJjaC1zaA=="],["MDFhd2Qyam14YjBtYWluI3E=",["c2hlbGYtcmVuZGVyZXIjYmtoYjdsZ2wzOHB5dGQtbWVyY2gt"],null]]];Ys3="#";hfP=[];bBa=!1;_.Ks2=["engagement-panel-ads"];GD2=new _.PF("updateSentimentBarStateCommand");_.lJW=new _.PF("showSurveyCommand");_.HN=new _.PF("changeMarkersVisibilityCommand");var Cka,FsP,fJg,mEB,QOa,zB;_.c8J=function(A,L){this.playerProvider_=A;this.actionSenderElement_=L;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.c8J.prototype.reset=function(){Cka(this);this.isUserPredictedAbsent_=!1};
Cka=function(A,L){!A.youThereData_||A.showWarningJob_||L!==void 0&&L||(_.nI("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.Fn(),A.youThereData_,A.clientPlaybackNonce_),_.ch());_.c1.cancelJob(A.showWarningJob_);A.showWarningJob_=0;_.c1.cancelJob(A.showBlockingWarningJob_);A.showBlockingWarningJob_=0;_.c1.cancelJob(A.pausePlaybackJob_);A.pausePlaybackJob_=0;A.youThereData_=null;A.clientPlaybackNonce_=void 0;A.inYouThereFlow_=!1};
_.RfP=function(A,L){var O,X,x;_.u(function(J){if(J.nextAddress==1)return A.reset(),J.yield(A.playerProvider_().getPlayerPromise(),2);O=J.yieldResult;A.clientPlaybackNonce_=O.getVideoData().cpn;A.youThereData_=L.configData.youThereData;if(!A.youThereData_)return J.return();if(A.youThereData_.triggerReason&&A.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.RLJ())return _.nI("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.Fn(),A.youThereData_,A.clientPlaybackNonce_),J.return();X=A.youThereData_.promptDelaySec;
x=O.getCurrentTime();A.showWarningJob_=_.c1.addLowPriorityJob(function(){return _.u(function(Y){A.showWarningJob_=0;return Y.yield(FsP(A),0)})},Math.max(X-x,0)*1E3);
_.qo(J)})};
FsP=function(A){var L,O,X,x,J,Y;return _.u(function(T){if(T.nextAddress==1)return T.yield(A.playerProvider_().getPlayerPromise(),2);if(T.nextAddress!=3)return L=T.yieldResult,O=L.getCurrentTime(),T.yield(QOa(A),3);X=T.yieldResult;if(!X||!A.youThereData_)return T.return();if(_.h("check_user_lact_at_prompt_shown_time_on_web")&&(x=parseInt(A.youThereData_.lactThresholdMs,10),_.xw()<x))return _.nI("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.Fn(),A.youThereData_,A.clientPlaybackNonce_),T.return();if(A.youThereData_.playbackPauseDelayMs<=
0)return mEB(A),T.return();!_.h("external_fullscreen")&&(J=_.O0())&&(A.ignoreFullscreenExitUserActivity_=!0,_.c1.addLowPriorityJob(function(){A.ignoreFullscreenExitUserActivity_=!1},2E3),_.Xz(J));
A.youThereData_.showToastWarningPrompt&&(zB(A,A.youThereData_.showWarningActions),A.inYouThereFlow_=!0,_.nI("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.Fn(),A.youThereData_,A.clientPlaybackNonce_,O),_.nI("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.Fn(),A.youThereData_,A.clientPlaybackNonce_,O));Y=0;A.youThereData_.blockingPromptDelayMs&&(Y=A.youThereData_.blockingPromptDelayMs);A.showBlockingWarningJob_=_.c1.addLowPriorityJob(function(){return _.u(function(V){A.showBlockingWarningJob_=0;return V.yield(fJg(A),
0)})},Y);
_.qo(T)})};
fJg=function(A){var L,O,X;return _.u(function(x){if(x.nextAddress==1)return x.yield(QOa(A),2);L=x.yieldResult;if(!A.youThereData_)return x.return();L&&(A.youThereData_.showBlockingWarningAction&&(_.nI("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.Fn(),A.youThereData_,A.clientPlaybackNonce_),(O=_.q(A.youThereData_.showBlockingWarningAction,_.em))?zB(A,O.commands):zB(A,[A.youThereData_.showBlockingWarningAction]),A.inYouThereFlow_=!0),X=A.youThereData_.playbackPauseDelayMs,A.pausePlaybackJob_=
_.c1.addLowPriorityJob(function(){return _.u(function(J){A.pausePlaybackJob_=0;return J.yield(mEB(A),0)})},X));
_.qo(x)})};
mEB=function(A){var L;return _.u(function(O){if(O.nextAddress==1)return O.yield(QOa(A),2);L=O.yieldResult;if(!A.youThereData_)return O.return();L&&(_.nI("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.Fn(),A.youThereData_,A.clientPlaybackNonce_),zB(A,A.youThereData_.showPausedActions),A.inYouThereFlow_=!0);_.qo(O)})};
_.c8J.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var A=_.q(this.youThereData_.userActiveDuringFlowAction,_.em);A?zB(this,A.commands):zB(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.nI("YOU_THERE_EVENT_TYPE_LACT_RESET",_.Fn(),this.youThereData_,this.clientPlaybackNonce_),_.ch());Cka(this,!0)}_.IJg(this,!1)};
_.y8B=function(A){_.nI("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.Fn(),A.youThereData_,A.clientPlaybackNonce_)};
QOa=function(A){var L,O;return _.u(function(X){if(X.nextAddress==1)return X.yield(A.playerProvider_().getPlayerPromise(),2);L=X.yieldResult;O=L.getPlayerState();return X.return(O==-1||O==1||O==3)})};
_.IJg=function(A,L){var O;_.u(function(X){if(X.nextAddress==1){if(A.isUserPredictedAbsent_==L)return X.jumpTo(0);A.isUserPredictedAbsent_=L;return X.yield(A.playerProvider_().getPlayerPromise(),3)}O=X.yieldResult;O.setUserEngagement(L);L&&_.nI("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.Fn(),A.youThereData_,A.clientPlaybackNonce_);_.qo(X)})};
zB=function(A,L){if(_.h("handle_service_request_actions")||_.h("kevlar_youthere_service_endpoint_actions_killswitch"))_.VN(A.actionSenderElement_,L,A.actionSenderElement_);else{L=_.d(L);for(var O=L.next();!O.done;O=L.next())O=O.value,O.commandMetadata&&O.commandMetadata.webCommandMetadata&&O.commandMetadata.webCommandMetadata.sendPost?_.TZ(A.actionSenderElement_,[O]):_.VN(A.actionSenderElement_,[O],A.actionSenderElement_)}};var ZBo;var jOE;var BN=function(){var A=_.G.apply(this,arguments)||this;A.systemIcons=_.h("kevlar_system_icons");A.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return A};
_.g(BN,_.G);BN.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var A=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(A=this.data.percentIfLiked||0,this.activated=!0):(A=this.data.percentIfIndifferent||0,this.activated=!1);_.YJ(this.hostElement).querySelector("#like-bar").style.width=A+"%"}};
BN.prototype.handleUpdateSentimentBarStateCommand=function(A){this.data&&this.set("data.likeStatus",_.q(A,GD2).likeStatus)};
BN.prototype.observeLikeStatus=BN.prototype.observeLikeStatus;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],BN.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],BN.prototype,"ytActionHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],BN.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],BN.prototype,"activated",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],BN.prototype,"systemIcons",void 0);_.I([_.hT("data.likeStatus"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],BN.prototype,"observeLikeStatus",null);_.I([_.Q({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],BN);
_.m(BN,"ytd-sentiment-bar-renderer",function(){if(jOE!==void 0)return jOE;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return jOE=A},{mode:1});var WsJ;var Mk=function(){var A=_.G.apply(this,arguments)||this;A.small=!0;return A};
_.g(Mk,_.G);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],Mk.prototype,"ytComponentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Mk.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Mk.prototype,"small",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],Mk);
_.m(Mk,"ytd-video-view-count-renderer",function(){if(WsJ!==void 0)return WsJ;var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return WsJ=A},{mode:_.e5("kevlar_poly_si_batch_j080")?1:2});var $y=function(){var A=_.G.apply(this,arguments)||this;A.infoFormattedStrings=[];A.wrapVideoActions=_.h("kevar_watch_wrap_video_actions");A.hideSentimentBar=_.h("kevlar_watch_hide_sentiment_bar");A.actionMap={};return A};
_.g($y,_.G);_.P=$y.prototype;_.P.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.h("web_modern_buttons"),forceIconButton:!_.h("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.P.dataChanged=function(){_.h("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.P.computeInfoFormattedStrings=function(A){if(!A)return[];var L=[];A.dateText&&L.push(A.dateText);A.stationName&&L.push(A.stationName);A.rating&&L.push(A.rating);A.startEndTimeTemplate&&A.startTimeUtcMillis&&A.endTimeUtcMillis&&L.push(_.Ue(_.tD3(_.vG(A.startEndTimeTemplate),Number(A.startTimeUtcMillis),Number(A.endTimeUtcMillis))));A.upNextProgramText&&L.push(A.upNextProgramText);return L};
_.P.scheduleInitialUpdatedMetadataRequest=function(){var A,L=(A=this.data)==null?void 0:A.updatedMetadataEndpoint;if(L){var O;A=Number((O=_.q(L,_.K0J))==null?void 0:O.initialDelayMs);O=isNaN(A)?250:A;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),O)}};
_.P.setSentimentBarWidth=function(){var A=this;_.kd(this,function(){var L=_.YJ(A.hostElement).querySelector("ytd-menu-renderer");if(L){L=L.topLevelButtons;for(var O=0,X=0;X<L.length;X++){var x=L[X],J=A.get("toggleButtonSupportedData.toggleButtonIdData.id",x.data);if(J==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||J==="TOGGLE_BUTTON_ID_TYPE_LIKE")O+=x.clientWidth+8;else break}O&&(A.sentiment.style.width=O-8+" px")}})};
_.P.fetchUpdatedMetadata=function(A){var L;A&&(L={continuation:A});var O;(A=(O=this.data)==null?void 0:O.updatedMetadataEndpoint)&&_.X5().resolve(_.x$).resolveCommand(A,{form:Object.assign({},L,{element:this.hostElement})})};
_.P.onYtServiceRequestSent=function(A,L){L.endpoint&&_.q(L.endpoint,_.Mw)&&(this.hasUpdateSentimentBarStateCommands()&&!_.h("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.q(L.endpoint,_.Mw).status),this.setSentimentBarWidth())};
_.P.hasUpdateSentimentBarStateCommands=function(){var A,L,O,X,x=(X=(A=this.data)==null?void 0:(L=A.videoActions)==null?void 0:(O=L.menuRenderer)==null?void 0:O.topLevelButtons)!=null?X:[];A=_.d(x);for(L=A.next();!L.done;L=A.next()){L=L.value;x=X=O=void 0;var J=(O=L.toggleButtonRenderer)==null?void 0:(X=O.toggleButtonSupportedData)==null?void 0:(x=X.toggleButtonIdData)==null?void 0:x.id;if(J==="TOGGLE_BUTTON_ID_TYPE_LIKE"||J==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){X=O=void 0;L=(X=_.q((O=L.toggleButtonRenderer)==
null?void 0:O.defaultServiceEndpoint,_.em))==null?void 0:X.commands;if(!L)break;L=_.d(L);for(O=L.next();!O.done;O=L.next())if(_.q(O.value,GD2))return!0}}return!1};
_.P.onYtServiceRequestCompleted=function(A,L){var O;(A=(O=L.data)==null?void 0:O.loggingDirectives)&&_.XcP(_.iV(),A);this.get("continuation.timedContinuationData",L.data)&&this.data&&this.data.updatedMetadataEndpoint&&(L=L.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,L.continuation),L.timeoutMs))};
_.P.computeHasDateText=function(A){return!!A&&!!A.dateText};
_.v2.Object.defineProperties($y.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var A,L,O,X;return!((X=(A=this.data)==null?void 0:(L=A.videoActions)==null?void 0:(O=L.menuRenderer)==null?void 0:O.flexibleItems)==null||!X.length)}}});
$y.prototype.onYtServiceRequestCompleted=$y.prototype.onYtServiceRequestCompleted;$y.prototype.onYtServiceRequestSent=$y.prototype.onYtServiceRequestSent;$y.prototype.dataChanged=$y.prototype.dataChanged;_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],$y.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],$y.prototype,"ytRendererBehavior",void 0);
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],$y.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.Y5.YtTaskEmitterBehavior),_.Z("design:type",Object)],$y.prototype,"ytTaskEmitterBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],$y.prototype,"data",void 0);_.I([_.K({computed:"computeInfoFormattedStrings(data)"}),_.Z("design:type",Array)],$y.prototype,"infoFormattedStrings",void 0);
_.I([_.K({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],$y.prototype,"hasDateText",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],$y.prototype,"wrapVideoActions",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],$y.prototype,"hideSentimentBar",void 0);_.I([_.K({reflectToAttribute:!0}),_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],$y.prototype,"flexMenuEnabled",null);
_.I([_.qR("#sentiment"),_.Z("design:type",Object)],$y.prototype,"sentiment",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$y.prototype,"dataChanged",null);_.I([_.by("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.aQ]),_.Z("design:returntype")],$y.prototype,"onYtServiceRequestSent",null);
_.I([_.by("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.Xi]),_.Z("design:returntype")],$y.prototype,"onYtServiceRequestCompleted",null);
_.m($y,"ytd-video-primary-info-renderer",function(){if(ZBo===void 0){var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);ZBo=A}A=ZBo;return A},{mode:1});var HBB;var aB=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return A};
_.g(aB,_.G);_.P=aB.prototype;_.P.configureRendererStamper=function(){return{subscribeButtonData:{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:{component:"ytd-subscribe-button-renderer",params:{withCount:!0}},subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
_.P.dataChanged=function(){var A;this.descriptionToggled=!((A=this.data)==null||!A.defaultExpanded);var L;this.collapsed=this.descriptionAlwaysCollapsed||!((L=this.data)==null?0:L.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.tI(110509);this.showLessClientVe=_.tI(110510);A=_.Fn();L=_.Ch();A&&L&&_.H4(A,L,[this.showMoreClientVe,this.showLessClientVe])};
_.P.onYtExpanderMoreTapped=function(){var A,L=(A=this.data)==null?void 0:A.showMoreCommand;L&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(L);(A=_.Fn())&&this.showMoreClientVe&&_.$K(A,this.showMoreClientVe)};
_.P.onYtExpanderLessTapped=function(){var A=_.Fn();A&&this.showLessClientVe&&_.$K(A,this.showLessClientVe);var L;(A=(L=this.data)==null?void 0:L.showLessCommand)&&this.componentBehavior.resolveCommand(A)};
_.P.handleUpdateDateTextAction=function(A){this.data&&this.data.dateText&&this.set("data.dateText",_.q(A,_.Z6o).dateText)};
_.P.handleUpdateDescriptionAction=function(A){if(A=_.q(A,_.Nj6))A.isEmpty||!A.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.yz(A.description)):this.set("data.description",A.description)};
_.P.onYtChangeEngagementPanelVisibilityAction=function(A){if(_.h("web_structured_description_show_more")||_.h("web_engagement_panel_open_description")){var L,O=(L=_.q(A,_.JwN))==null?void 0:L.targetId,X;A=((X=_.q(A,_.JwN))==null?void 0:X.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";O==="engagement-panel-structured-description"&&A&&(this.descriptionToggled=!0)}};
_.P.updateCollapsedFromBinding=function(A){this.collapsed=A.detail.value};
_.P.updateDescriptionToggledFromBinding=function(A){this.descriptionToggled=A.detail.value};
_.P.updateCanCollapseFromBinding=function(A){this.canCollapse=A.detail.value};
_.v2.Object.defineProperties(aB.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var A,L,O=(A=this.data)==null?void 0:(L=A.metadataRowContainer)==null?void 0:L.metadataRowContainerRenderer;return!!O&&!!O.rows&&O.rows.length>O.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.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}}});
aB.prototype.onYtExpanderLessTapped=aB.prototype.onYtExpanderLessTapped;aB.prototype.onYtExpanderMoreTapped=aB.prototype.onYtExpanderMoreTapped;aB.prototype.dataChanged=aB.prototype.dataChanged;_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],aB.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],aB.prototype,"ytRendererBehavior",void 0);
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],aB.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],aB.prototype,"componentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],aB.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Boolean)],aB.prototype,"collapsed",void 0);_.I([_.K(),_.Z("design:type",Boolean)],aB.prototype,"descriptionToggled",void 0);
_.I([_.K(),_.Z("design:type",Boolean)],aB.prototype,"canCollapse",void 0);_.I([_.K(),_.Z("design:type",Object)],aB.prototype,"subscribeButtonData",void 0);_.I([_.K(),_.Z("design:type",Number)],aB.prototype,"descriptionCollapsedHeight",void 0);_.I([_.K(),_.Z("design:type",Object)],aB.prototype,"structuredDescriptionContentRenderer",void 0);_.I([_.K({value:function(){return _.h("web_watch_description_always_collapsed")}}),
_.Z("design:type",Boolean)],aB.prototype,"descriptionAlwaysCollapsed",void 0);_.I([_.qR("#description"),_.Z("design:type",HTMLDivElement)],aB.prototype,"description",void 0);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],aB.prototype,"dataChanged",null);_.I([_.by("yt-expander-more-tapped"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],aB.prototype,"onYtExpanderMoreTapped",null);
_.I([_.by("yt-expander-less-tapped"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],aB.prototype,"onYtExpanderLessTapped",null);_.I([_.r("data.metadataRowContainer"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],aB.prototype,"metadataCollapsible",null);_.I([_.r("data","structuredDescriptionContentRenderer"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],aB.prototype,"hasInlineStructuredDescription",null);
_.I([_.r("data.attributedDescription"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],aB.prototype,"hasAttributedDescription",null);_.I([_.r("hasInlineStructuredDescription","collapsed"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],aB.prototype,"loadStructuredDescription",null);_.I([_.r("data","structuredDescriptionContentRenderer","collapsed"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],aB.prototype,"showInlineStructuredDescription",null);
_.I([_.r("data","hasInlineStructuredDescription","metadataCollapsible"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],aB.prototype,"descriptionAlwaysCollapsible",null);
_.m(aB,"ytd-video-secondary-info-renderer",function(){if(HBB===void 0){var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);HBB=A}A=HBB;return A},{mode:2});var zfE;var ky=function(){return _.G.apply(this,arguments)||this};
_.g(ky,_.G);ky.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:_.h("web_modern_buttons"),forceIconButton:!_.h("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
ky.prototype.activate=function(A){A.appendTo(this.player);A.getPlayerPromise().then(function(L){L.setMinimized(!0)});
this.active=!0};
ky.prototype.deactivate=function(){var A=this.player.firstElementChild;A.getPlayerPromise().then(function(L){L.setMinimized(!1)});
this.active=!1;return A};
ky.prototype.onScrollUpTap=function(){var A=_.X5().resolve(_.JI).getCurrentPage();A&&A.setScrollTop(0)};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],ky.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],ky.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],ky.prototype,"componentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],ky.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],ky.prototype,"active",void 0);
_.I([_.K({reflectToAttribute:!0,value:function(){return _.h("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.Z("design:type",Boolean)],ky.prototype,"darkLaunch",void 0);_.I([_.qR("#player"),_.Z("design:type",HTMLDivElement)],ky.prototype,"player",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],ky);
_.m(ky,"ytd-miniplayer-bar-renderer",function(){if(zfE!==void 0)return zfE;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return zfE=A},{mode:1});_.Y4(_.xa(function(A){var L=_.av("script");_.ND(function(){var O;if(O=JSON)O=N9P(A.data()),O=_.$W(JSON.stringify(O).replace(/</g,"\\u003C"));var X=A.data(),x=_.vG(X.title).trim().length===0,J=!X.publishDate||X.publishDate.trim().length===0,Y,T,V,E,n=!((Y=X.thumbnail)==null?0:(T=Y.thumbnails)==null?0:T.length)||!((V=X.thumbnail)==null?0:V.thumbnails[0].url)||((E=X.thumbnail)==null?void 0:E.thumbnails[0].url.trim().length)===0;L.value&&O&&!(x||J||n)&&_.kW(L.value,O)},"I9AhLd");
return _.D("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.D("script",{el:L,type:"application/ld+json"}))},"fk"),"player-microformat-renderer",{props:{data:_.dl}});
}catch(e){_._DumpException(e)}
try{
var ZrJ,Wvw;_.y0P=function(A){return A.watch.watchWindowSize};
ZrJ=function(A,L,O,X){if(A.isLockupToWatchTransitionEnabled){if(L){var x={};A.viewTransitionCoordinator.registerElement(L,(x["lockup-to-watch"]="player-lockup-to-watch",x["watch-next-appears"]="player-watch-next-loaded",x))}O&&(L={},A.viewTransitionCoordinator.registerElement(O,(L["lockup-to-watch"]="below-lockup-to-watch",L["watch-next-appears"]="below-watch-next-loaded",L)));X&&(O={},A.viewTransitionCoordinator.registerElement(X,(O["watch-next-appears"]="secondary-watch-next-loaded",O)))}};
_.jea=function(A){return _.JY({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:A}})};
Wvw=new _.PF("shoppingTimelyShelfContentViewModel");var zUP=function(A){_.p$.call(this);this.JSC$23973_watchApi=A;Hro(this)};
_.g(zUP,_.p$);var Hro=function(A){_.u(function(L){if(L.nextAddress==1)return L.yield(BF_(A),2);MIa(A);_.qo(L)})},BF_=function(A){var L,O,X;
return _.u(function(x){if(x.nextAddress==1)return x.yield(A.JSC$23973_watchApi.playerApi,2);L=x.yieldResult;O=A.JSC$23973_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){MIa(A)});
X=function(J){A.onCueRangeEnter(J)};
L.addEventListener("onCueRangeEnter",X);A.addOnDisposeCallback(function(){A.JSC$23973_watchApi.unsubscribeByKey(O);L.removeEventListener("onCueRangeEnter",X)});
_.qo(x)})},$DD=function(A){var L,O,X,x,J,Y,T,V,E;
return(J=(L=A.contents)==null?void 0:(O=L.twoColumnWatchNextResults)==null?void 0:(X=O.results)==null?void 0:(x=X.results)==null?void 0:x.contents)==null?void 0:(Y=J.find(function(n){var t,b,S;return(t=n.itemSectionRenderer)==null?void 0:(b=t.contents)==null?void 0:(S=b[0])==null?void 0:S.shoppingTimelyShelfViewModel}))==null?void 0:(T=Y.itemSectionRenderer)==null?void 0:(V=T.contents)==null?void 0:(E=V[0])==null?void 0:E.shoppingTimelyShelfViewModel},MIa=function(A){var L;
_.u(function(O){if(O.nextAddress==1)return(L=A.JSC$23973_watchApi.getWatchNextResponse())?O.yield(aWw(A),2):O.return();A.shoppingTimelyShelfViewModel=$DD(L);kVP(A);UDW(A);_.qo(O)})},kVP=function(A){var L,O=(L=A.shoppingTimelyShelfViewModel)==null?void 0:L.offerIdToVariants;
O&&(L=O.filter(function(X){return X.key&&X.value}).map(function(X){return[X.key,
X.value]}),A.variantsMap=new Map(L))},UDW=function(A){var L,O,X,x,J,Y;
_.u(function(T){if(T.nextAddress==1)return(O=(L=A.shoppingTimelyShelfViewModel)==null?void 0:L.cueRanges)?T.yield(A.JSC$23973_watchApi.playerApi,2):T.return();X=T.yieldResult;A.cueRanges=O;x=_.d(O);for(J=x.next();!J.done;J=x.next())Y=J.value,Y.startTime!==void 0&&Y.endTime!==void 0&&Y.id!==void 0&&X.addCueRange("shopping_timely_shelf"+Y.id,vN_(Y.startTime),vN_(Y.endTime));_.qo(T)})},vN_=function(A){return Number(A.seconds||0)+(A.nanos||0)/1E9};
zUP.prototype.onCueRangeEnter=function(A){if(A.startsWith("shopping_timely_shelf")){A=A.substring(21);var L,O,X=(L=this.variantsMap)==null?void 0:(O=L.get(A))==null?void 0:O.shelf;(L=_.q(X,Wvw))&&this.JSC$23973_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",L)}};
var aWw=function(A){var L,O,X,x,J;return _.u(function(Y){if(Y.nextAddress==1)return Y.yield(A.JSC$23973_watchApi.playerApi,2);L=Y.yieldResult;if(A.cueRanges)for(O=_.d(A.cueRanges),X=O.next();!X.done;X=O.next())x=X.value,x.id&&(J="shopping_timely_shelf"+x.id,L.removeCueRange(J));A.JSC$23973_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{});A.shoppingTimelyShelfViewModel=void 0;A.cueRanges=void 0;A.variantsMap=void 0;_.qo(Y)})};var XYP=function(A){_.p$.call(this);var L=this;this.JSC$23980_watchApi=A;A=_.Ge(_.Ai(),_.nQu,function(){oN0(L)});
this.addOnDisposeCallback(A);A=_.Ge(_.Ai(),_.y0P,function(){oN0(L)});
this.addOnDisposeCallback(A);A8g(this);LsP(this);OB3()};
_.g(XYP,_.p$);var A8g=function(A){var L=function(X){_.Ai().dispatch(_.Jc2(X.matches))},O=window.matchMedia("(max-width: "+(999+_.U5())+"px)");
O.addListener(L);A.addOnDisposeCallback(function(){O.removeListener(L)});
L(O)},LsP=function(A){A.JSC$23980_watchApi.registerActionHandler("yt-window-resized",function(){OB3()});
A.addOnDisposeCallback(function(){A.JSC$23980_watchApi.unregisterActionHandler("yt-window-resized")})},OB3=function(){var A=_.NT();
_.Ai().dispatch(_.JY({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:A.width,height:A.height}}}))},oN0=function(A){var L;
_.u(function(O){if(O.nextAddress==1)return O.yield(A.JSC$23980_watchApi.playerApi,2);L=O.yieldResult;L.setSize(NaN,NaN);_.qo(O)})};var xEB=function(A){_.p$.call(this);var L=_.X5().resolve(_.iY);ZrJ(L,A.getElement("PLAYER_CONTAINER"),A.getElement("BELOW_THE_PLAYER"),A.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var O=A.getElement("PLAYER_CONTAINER"),X=A.getElement("BELOW_THE_PLAYER"),x=A.getElement("SECONDARY");L.isLockupToWatchTransitionEnabled&&(O&&_.ku(L.viewTransitionCoordinator,O),X&&_.ku(L.viewTransitionCoordinator,X),x&&_.ku(L.viewTransitionCoordinator,x))})};
_.g(xEB,_.p$);_.yA=function(A){_.bf.call(this);var L=this;this.rootElement=A;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return L.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(O){L.initOrDisposeActiveModules(O)}));
this.onAttached()};
_.g(_.yA,_.bf);_.P=_.yA.prototype;_.P.getRoot=function(){return this.rootElement};
_.P.getElement=function(A){return this.rootElement.getElement(A)};
_.P.setPlayerResponse=function(A){this.playerResponse=A;this.publish("PLAYER_RESPONSE_UPDATED",A)};
_.P.getPlayerResponse=function(){return this.playerResponse};
_.P.setWatchNextResponse=function(A){this.watchNextResponse===A?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=A,this.publish("WATCH_NEXT_RESPONSE_UPDATED",A))};
_.P.getWatchNextResponse=function(){return this.watchNextResponse};
_.P.registerActionHandler=function(A,L){var O=this;if(_.h("web_watch_controller_reg_multiple_handlers_killswitch")){var X={};_.Bh(_.zu.getInstance(),(X[A]=L,X),this.getRoot())}else this.actionHandlers.has(A)||(this.actionHandlers.set(A,[]),X={},_.Bh(_.zu.getInstance(),(X[A]=function(){var x=_.f_.apply(0,arguments);return(O.actionHandlers.get(A)||[]).map(function(J){return J.apply(null,_.le(x))})},X),this.getRoot())),this.actionHandlers.get(A).push(L)};
_.P.unregisterActionHandler=function(A){if(_.h("web_watch_controller_reg_multiple_handlers_killswitch")){var L={};_.Md(_.zu.getInstance(),(L[A]=!0,L),this.getRoot())}else(L=this.actionHandlers.get(A))?(L.pop(),L.length===0&&(L={},_.Md(_.zu.getInstance(),(L[A]=!0,L),this.getRoot()),this.actionHandlers.delete(A))):_.Rv(new _.pe("Attempted to unregister an action handler which is not registered.",A))};
_.P.addPageDisposeJob=function(A){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.gep(this.rootElement.pageDisposeJobs,A)};
_.P.removePageDisposeJob=function(A){this.rootElement.pageDisposeJobs&&_.y_(this.rootElement.pageDisposeJobs,A)};
_.P.dispatchEvent=function(A,L){_.P4(this.rootElement,A,L)};
_.P.provideRenderingData=function(A,L){this.rootElement.provideRenderingData(A,L)};
_.P.scrollWatchTo=function(A,L){var O;(O=this.watchScrollManager)==null||O.scrollWatchTo(A,L)};
_.P.focusOnPlayer=function(){var A=this.getElement("PLAYER");_.kd(A,function(){if(A&&A.firstElementChild){var L=A.querySelector(".html5-video-player");L&&(_.dU(_.X5().resolve(_.m4)),L.focus())}else _.Rv(Error("Ao"))})};
_.P.updateCinematicFullscreenConfig=function(){if(_.h("web_cinematic_manager_redux_killswitch")){var A=!!this.rootElement.theater,L=!!this.rootElement.fullscreen,O;(O=this.watchCinematicManager)==null||_.QA(O,L,A)}};
_.P.subscribeToActiveChanged=function(A,L){L=L===void 0?!0:L;var O=_.Ge(_.Ai(),_.VD3,function(X){A(X)});
L&&A(_.VD3(_.Ai().getState()));return O};
_.P.isActive=function(){return _.VD3(_.Ai().getState())};
_.P.onAttached=function(){var A=_.h("external_fullscreen");_.h("use_unified_flag_accessor")&&(A=_.X5().resolve(_.NwM).retriever.getFlag(_.puu));(A||_.fB("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var sO3=function(A){return A.getRoot().is==="ytd-watch-flexy"||A.getRoot().is==="ytd-watch-grid"},Zy=function(A){return A.getRoot().is==="ytd-watch-fixie"};
_.yA.prototype.initPersistentModules=function(){if(Zy(this)||sO3(this)&&_.h("kevlar_watch_flexy_theater_manager")){var A=new _.TX3(this);_.VI(this,A)}A=new _.v8f(this);_.VI(this,A);A=new _.Cf(this);_.VI(this,A);A=new _.$Yo(this);_.VI(this,A);A=new _.r0W(this);_.VI(this,A);A=new _.FR(this);_.VI(this,A);if(Zy(this)||sO3(this)&&_.h("kevlar_watch_flexy_playlist_manager"))A=new _.lW_(this),_.VI(this,A);_.h("web_thumbnail_to_watch_transition")&&(A=new xEB(this),_.VI(this,A))};
_.yA.prototype.initOrDisposeActiveModules=function(A){A?(this.watchScrollManager=new _.IB(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.DDf(this)),_.h("web_enable_shopping_timely_shelf_client")&&this.activeModules.push(new zUP(this)),this.activeModules.push(new _.DFa(this)),Zy(this)&&this.activeModules.push(new XYP(this)),this.activeModules.push(new _.mDP(this)),this.activeModules.push(new _.J0P(this)),(Zy(this)||_.h("kevlar_watch_flexy_error_screen_data_provider"))&&
this.activeModules.push(new _.bmP(this)),this.activeModules.push(new _.hU0(this)),(Zy(this)||_.h("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.IWD(this)),(Zy(this)||_.h("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.rgg(this)),_.h("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.CsP(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.h("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.wua(this)),
_.h("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.kXf(this)),A=_.h("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.h("kevlar_watch_flexy_comments_manager")&&!A&&this.activeModules.push(new _.WKB(this)),_.h("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.l4o(this)),this.activeModules.push(new _.hYf(this)),this.activeModules.push(new _.ENa(this)),_.h("web_enable_timely_actions")&&this.activeModules.push(new _.wqa(this)),
_.h("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.BzE(this)),_.h("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.mFw(this)),_.h("web_fullscreen_components")&&this.activeModules.push(new _.gTP(this)),_.h("web_player_rtr_ctrls")&&this.activeModules.push(new _.$FW(this))):(_.Ag(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.yA.prototype.disposeInternal=function(){_.bf.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.v2.Object.defineProperties(_.yA.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var xhn,ry,sbB,JvX,dhX,YxB,PpS,uvS;xhn=function(){var A=_.wQ();A.info||(A.info={});return A.info};
ry=function(A){return Math.round(_.rQ()+A)};
sbB=function(){var A;if(_.h("csi_use_performance_navigation_timing")){var L,O,X,x=_.NG==null?void 0:(A=_.NG.getEntriesByType)==null?void 0:(L=A.call(_.NG,"navigation"))==null?void 0:(O=L[0])==null?void 0:(X=O.toJSON)==null?void 0:X.call(O);x?(x.requestStart=ry(x.requestStart),x.responseEnd=ry(x.responseEnd),x.redirectStart=ry(x.redirectStart),x.redirectEnd=ry(x.redirectEnd),x.domainLookupEnd=ry(x.domainLookupEnd),x.connectStart=ry(x.connectStart),x.connectEnd=ry(x.connectEnd),x.responseStart=ry(x.responseStart),
x.secureConnectionStart=ry(x.secureConnectionStart),x.domainLookupStart=ry(x.domainLookupStart),x.isPerformanceNavigationTiming=!0,A=x):A=_.NG.timing}else A=_.h("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.NG.timing)):_.NG.timing;return A};
JvX=function(){if(_.NG.getEntriesByType){var A=_.NG.getEntriesByType("paint");if(A=_.Fp(A,function(O){return O.name==="first-paint"}))return ry(A.startTime)}var L;
_.h("csi_use_performance_navigation_timing")?L=_.NG.getEntriesByType("first-paint")[0].startTime:L=_.NG.timing.msFirstPaint;return L?Math.max(0,L):0};
dhX=function(){var A=window.location.protocol,L=_.NG.getEntriesByType("resource");L=_.DF(L,function(O){return O.name.indexOf(A+"//fonts.gstatic.com/s/")===0});
(L=PpS(L,function(O,X){return X.duration>O.duration?X:O}))&&L.startTime>0&&L.responseEnd>0&&(_.KM("wffs",ry(L.startTime)),_.KM("wffe",ry(L.responseEnd)))};
YxB=function(A,L){A=document.querySelector(A);if(!A)return!1;var O="",X=A.nodeName;X==="SCRIPT"?(O=A.src,O||(O=A.getAttribute("data-timing-href"))&&(O=window.location.protocol+O)):X==="LINK"&&(O=A.href);_.Bf(document)&&A.setAttribute("nonce",_.Bf(document));return O?(A=_.NG.getEntriesByName(O))&&A[0]&&(A=A[0],O=_.rQ(),_.KM("rsf_"+L,O+Math.round(A.fetchStart)),_.KM("rse_"+L,O+Math.round(A.responseEnd)),A.transferSize!==void 0&&A.transferSize===0)?!0:!1:!1};
_.KK=function(A,L){_.j6(function(){_.i3("").info.actionType=A;L&&_.QT("TIMING_AFT_KEYS",L);_.QT("TIMING_ACTION",A);var O=_.M0e(_.ms("TIMING_INFO",{}));Object.keys(O).length>0&&_.GZ(O);O={isNavigation:!0,actionType:_.FdJ(_.ms("TIMING_ACTION"))};var X=_.ms("PREVIOUS_ACTION");X&&(O.previousAction=_.FdJ(X));if(X=_.ms("CLIENT_PROTOCOL"))O.httpProtocol=X;if(X=_.ms("CLIENT_TRANSPORT"))O.transportProtocol=X;(X=_.Fn())&&X!=="UNDEFINED_CSN"&&(O.clientScreenNonce=X);X=_.Bty();if(X===1||X===-1)O.isVisible=!0;
X=_.iXM().loadType==="cold";var x=xhn();X||(X=x.yt_lt==="cold");if(X){O.loadType="cold";X=xhn();x=sbB();var J=_.rQ(),Y=_.ms("CSI_START_TIMESTAMP_MILLIS",0);Y>0&&!_.h("embeds_web_enable_csi_start_override_killswitch")&&(J=Y);J&&(_.KM("srt",x.responseStart),X.prerender!==1&&_.I_u(J));X=JvX();X>0&&_.KM("fpt",X);X=sbB();X.isPerformanceNavigationTiming&&_.GZ({performanceNavigationTiming:!0},void 0);_.KM("nreqs",X.requestStart,void 0);_.KM("nress",X.responseStart,void 0);_.KM("nrese",X.responseEnd,void 0);
X.redirectEnd-X.redirectStart>0&&(_.KM("nrs",X.redirectStart,void 0),_.KM("nre",X.redirectEnd,void 0));X.domainLookupEnd-X.domainLookupStart>0&&(_.KM("ndnss",X.domainLookupStart,void 0),_.KM("ndnse",X.domainLookupEnd,void 0));X.connectEnd-X.connectStart>0&&(_.KM("ntcps",X.connectStart,void 0),_.KM("ntcpe",X.connectEnd,void 0));X.secureConnectionStart>=_.rQ()&&X.connectEnd-X.secureConnectionStart>0&&(_.KM("nstcps",X.secureConnectionStart,void 0),_.KM("ntcpe",X.connectEnd,void 0));_.NG&&"getEntriesByType"in
_.NG&&dhX();X=[];if(document.querySelector&&_.NG&&_.NG.getEntriesByName)for(var T in uvS)uvS.hasOwnProperty(T)&&(x=uvS[T],YxB(T,x)&&X.push(x));if(X.length>0)for(O.resourceInfo=[],T=_.d(X),X=T.next();!X.done;X=T.next())O.resourceInfo.push({resourceCache:X.value})}_.GZ(O);O=_.pM();O.preLoggedGelInfos||(O.preLoggedGelInfos=[]);T=O.preLoggedGelInfos;O=_.r__();X=void 0;for(x=0;x<T.length;x++)if(J=T[x],J.loadType){X=J.loadType;break}if(_.iXM().loadType==="cold"&&(O.loadType==="cold"||X==="cold")){X=_.NtP();
x=_.pM();x=x.gelTicks?x.gelTicks:x.gelTicks={};for(var V in X)if(!(V in x))if(typeof X[V]==="number")_.KM(V,_.l3(V));else if(_.h("log_repeated_ytcsi_ticks"))for(J=_.d(X[V]),Y=J.next();!Y.done;Y=J.next())Y=Y.value,_.KM(V.slice(1),Y);V={};X=!1;T=_.d(T);for(x=T.next();!x.done;x=T.next())X=x.value,_.fh(O,X),_.fh(V,X),X=!0;X&&_.GZ(V)}_.U_r(!0);V=_.ms("TIMING_ACTION");_.WY("ytglobal.timingready_")&&V&&_.Ph_()&&_.kCr()&&_.HXe()})()};
PpS=function(A,L){return Array.prototype.reduce.call(A,L,{duration:0})};
uvS={'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 Ten={};Ten.YtVisibilityRootBehavior=[_.izl.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.oo(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.ms("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var A=_.ms("INNERTUBE_CLIENT_NAME")!=="WEB";_.h("kevlar_use_vimio_behavior")&&A&&_.pkL()}}];_.Gr={};_.Gr.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(A){A.detail.contextProvider=this;A.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
Ten.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.AI();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(A){var L=this;this.pageCount+=1;_.h("kevlar_use_vimio_behavior")&&(_.ms("INNERTUBE_CLIENT_NAME")==="WEB"?_.c1.addJob(function(){L.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(A)},
loadPage_:function(A){this.data=A},
ytPageBehaviorActiveObserver_:function(A){var L=this;_.h("kevlar_use_vimio_behavior")&&(A?_.ms("INNERTUBE_CLIENT_NAME")==="WEB"?_.c1.addJob(function(){L.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(A){if(!this.setScrollTopJobId_){var L=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){L.setScrollTopJobId_=0;var O=_.X5().resolve(_.Ot(_.m4));O&&_.dU(O);this.getPageScrollingElement().scrollTop=A}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.RS(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var X8X;var NH=function(){var A=_.G.apply(this,arguments)||this;A.playerListenerConfig=null;A.actionMap={"yt-show-watch-page-survey":"openSurvey"};return A};
_.g(NH,_.G);_.P=NH.prototype;_.P.dataChanged=function(){var A=this,L=_.d0();L&&L.getPlayerPromise().then(function(X){A.maybeRemovePlayerListeners(X)});
var O=this.data&&this.data.survey;O&&((O=(O=O.singleOptionSurveyRenderer||O.checkboxSurveyRenderer||O.multiStageSurveyRenderer)&&O.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(L,O):this.openSurvey())};
_.P.triggerWatchPageSurvey=function(A,L){var O=this,X,x,J,Y,T,V,E,n,t;return _.u(function(b){if(b.nextAddress==1)return A?b.yield(A.getPlayerPromise(),2):b.return();O.player=b.yieldResult;if(!O.player)return b.return();X={};x=_.d(L);for(J=x.next();!J.done;J=x.next())Y=J.value,T=_.d(O.createEventListenerPair(Y)),V=T.next().value,E=T.next().value,n=V,t=E,n&&t&&(X[n]=t,O.ytPlayerListenerBehavior.listenToPlayerEvent(O.player,n,t));O.playerListenerConfig=X;_.qo(b)})};
_.P.createEventListenerPair=function(A){var L=A.playbackEventTrigger;return L?this.handlePlaybackTrigger(L):(A=A.watchTimeTrigger)?this.handleWatchTimeTrigger(A):[void 0,void 0]};
_.P.handleWatchTimeTrigger=function(A){var L=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var O=A.videoWatchFraction,X=A.watchTimeSec;return X&&O?["onVideoProgress",function(){L.player&&L.isWatchTimeConditionMet(L.player,O,X)&&L.showSurvey()}]:[void 0,
void 0]};
_.P.isWatchTimeConditionMet=function(A,L,O){var X=A.getProgressState(),x=X.current-this.lastKnownPlaybackPosition;x<5&&(this.accumulatedMediaTime+=x);this.lastKnownPlaybackPosition=X.current;X=Math.round(this.accumulatedMediaTime/X.duration*1E3)/1E3;return A.getPresentingPlayerType&&A.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>O||X>L)};
_.P.handlePlaybackTrigger=function(A){var L=this;A=A.playbackEvent;if(A==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var O="onStateChange";var X=function(x){x===0&&L.showSurvey()}}else A==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(O="onVideoProgress",X=function(x){L.player&&L.player.getPresentingPlayerType&&L.player.getPresentingPlayerType()===1&&x&&L.showSurvey()}):A==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(O="onAdEnd",X=this.showSurvey);
return[O,X]};
_.P.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.P.openSurvey=function(){var A=this,L=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.p2M(!!L));_.c1.addJob(function(){A.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:L}})},0,0)};
_.P.maybeRemovePlayerListeners=function(A){if(this.playerListenerConfig){for(var L=_.d(Object.keys(this.playerListenerConfig)),O=L.next();!O.done;O=L.next())O=O.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(A,O,this.playerListenerConfig[O]);this.playerListenerConfig=null}};
NH.prototype.dataChanged=NH.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],NH.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.J3),_.Z("design:type",Object)],NH.prototype,"ytdOpenPopupBehavior",void 0);_.I([_.N(_.LE.YtPlayerListenerBehavior),_.Z("design:type",_.Oo)],NH.prototype,"ytPlayerListenerBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],NH.prototype,"ytActionHandlerBehavior",void 0);
_.I([_.N(_.HL),_.Z("design:type",Object)],NH.prototype,"ytdReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],NH.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],NH.prototype,"playerListenerConfig",void 0);_.I([_.K({value:0}),_.Z("design:type",Number)],NH.prototype,"lastKnownPlaybackPosition",void 0);_.I([_.K({value:0}),_.Z("design:type",Number)],NH.prototype,"accumulatedMediaTime",void 0);_.I([_.K(),_.Z("design:type",Object)],NH.prototype,"player",void 0);
_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],NH.prototype,"dataChanged",null);_.I([_.Q({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],NH);
_.m(NH,"ytd-survey-trigger-renderer",function(){if(X8X!==void 0)return X8X;var A=document.createElement("template");_.p(A,"\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");A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return X8X=A},{mode:1});
}catch(e){_._DumpException(e)}
try{
var kBM=new _.PF("promotedSparklesWebRenderer");var UkB=new _.PF("relatedChipCommand");var vyS;var oyM;var S2=function(){return _.G.apply(this,arguments)||this};
_.g(S2,_.G);S2.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],S2.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],S2.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],S2.prototype,"data",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],S2);
_.m(S2,"ytd-compact-tvfilm-entry-point-renderer",function(){if(oyM!==void 0)return oyM;var A=document.createElement("template");_.p(A,'\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>');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return oyM=A},{mode:1});var Asg;var LMB;var O9o;var qs=function(){return _.G.apply(this,arguments)||this};
_.g(qs,_.G);qs.prototype.ready=function(){this.initializeDefs()};
qs.prototype.initializeDefs=function(){var A=this.meta.byKey("yt-icons"),L=_.YJ(A).querySelector("#star"),O=_.YJ(A).querySelector("#star_half");A=_.YJ(A).querySelector("#star_border");L&&this.defs.appendChild(L.cloneNode(!0));O&&this.defs.appendChild(O.cloneNode(!0));A&&this.defs.appendChild(A.cloneNode(!0))};
qs.prototype.percentChanged=function(){for(var A=this.rating;A.firstChild;)A.removeChild(A.firstChild);var L=Math.round(this.percent/10);A=Math.floor(L/2);L%=2;var O=5-A-L;this.appendStars("star",A,0);this.appendStars("star_half",L,A);this.appendStars("star_border",O,A+L)};
qs.prototype.appendStars=function(A,L,O){for(var X=0;X<L;X++){var x=(18+this.spacing)*(X+O),J=document.createElementNS("http://www.w3.org/2000/svg","use");_.A8Z(J,"#"+A);J.setAttribute("x",""+x);J.setAttribute("y","0");this.rating.appendChild(J)}};
qs.prototype.percentChanged=qs.prototype.percentChanged;_.I([_.qR("#defs"),_.Z("design:type",HTMLElement)],qs.prototype,"defs",void 0);_.I([_.qR("#rating"),_.Z("design:type",HTMLElement)],qs.prototype,"rating",void 0);_.I([_.K(),_.Z("design:type",Number)],qs.prototype,"percent",void 0);_.I([_.K({value:6}),_.Z("design:type",Number)],qs.prototype,"spacing",void 0);_.I([_.K({value:_.CX.create("iron-meta",{type:"iconset"})}),_.Z("design:type",_.Q9)],qs.prototype,"meta",void 0);
_.I([_.hT("percent"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qs.prototype,"percentChanged",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-ratings"})],qs);
_.m(qs,"ytd-ratings",function(){if(O9o!==void 0)return O9o;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return O9o=A},{mode:1});var gY=function(){return _.G.apply(this,arguments)||this};
_.g(gY,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],gY.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],gY.prototype,"data",void 0);_.I([_.Q({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],gY);
_.m(gY,"ytd-offer-review-renderer",function(){if(LMB!==void 0)return LMB;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return LMB=A},{mode:1});var wY=function(){var A=_.G.apply(this,arguments)||this;A.badges=[{textBadge:{label:_.Ue("CC")}}];return A};
_.g(wY,_.G);_.P=wY.prototype;_.P.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.P.dataChanged=function(){var A=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(A&&A.commandMetadata&&_.q(A.commandMetadata,_.fb)&&_.q(A.commandMetadata,_.fb).fireAutomatically)_.X5().resolve(_.x$).resolveCommand(A,{form:{element:this.hostElement}});else{var L;A&&((L=_.q(A,_.fb))==null?0:L.fireAutomatically)&&_.X5().resolve(_.x$).resolveCommand(A,{form:{element:this.hostElement}})}};
_.P.isEmptyContent=function(A){return this.isStorefrontEntryPointEmpty(A)&&this.shouldHideOfferModule(A)};
_.P.isStorefrontEntryPointEmpty=function(A){return!A||!A.storefrontEntryPoint};
_.P.shouldHideOfferModule=function(A){return!!A.hideVideoDetails};
_.P.isOfferModuleNavigationInactive=function(A){return!A.navigationEndpoint&&!A.serviceEndpoint};
_.P.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.X5().resolve(_.x$).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
wY.prototype.dataChanged=wY.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],wY.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],wY.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],wY.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.Z("design:type",Boolean)],wY.prototype,"hidden",void 0);
_.I([_.K(),_.Z("design:type",Object)],wY.prototype,"badges",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],wY.prototype,"dataChanged",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],wY);
_.m(wY,"ytd-movie-offer-module-renderer",function(){if(Asg!==void 0)return Asg;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Asg=A},{mode:1});var XJE;var pU=function(){return _.G.apply(this,arguments)||this};
_.g(pU,_.G);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],pU.prototype,"componentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],pU.prototype,"data",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],pU);
_.m(pU,"ytd-media-masthead-renderer",function(){if(XJE!==void 0)return XJE;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return XJE=A},{mode:1});var xyP;_.Y4(_.yOn,"course-metadata-view-model",{props:{data:_.dl,isOverlay:_.dl}});var i2=function(){var A=_.G.apply(this,arguments)||this;A.isMetadataVisible=!1;A.modernPanels=_.h("kevlar_watch_modern_panels");A.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return A};
_.g(i2,_.G);_.P=i2.prototype;
_.P.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}},"data.expandMetadataButton":{id:"expand-metadata-button",mapping:{toggleButtonViewModel:{component:"yt-toggle-button-view-model",properties:{scopingClassName:"[[is]]"}}}},"data.masthead":{id:"masthead",mapping:{mediaMastheadRenderer:{component:"ytd-media-masthead-renderer"},channelMastheadRenderer:{component:"ytd-channel-masthead-renderer",params:{isInOfferModule:!0}}}},
"data.expandedMetadata":{id:"expanded-metadata",mapping:{courseMetadataViewModel:{component:"course-metadata-view-model"}}}}};
_.P.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.P.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.P.expanderChanged=function(){var A;if((A=this.data)==null?0:A.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.P.isExpandButtonToggled=function(){var A,L;return(L=_.q((A=this.data)==null?void 0:A.expandMetadataButton,_.Fi))==null?void 0:L.isToggled};
_.P.onVisibilityButtonClick=function(){var A;if((A=this.data)==null?0:A.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.P.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
i2.prototype.expanderChanged=i2.prototype.expanderChanged;i2.prototype.dataChanged=i2.prototype.dataChanged;i2.prototype.descriptionChanged=i2.prototype.descriptionChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],i2.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],i2.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N([_.es.YtActionHandlerBehavior]),_.Z("design:type",Object)],i2.prototype,"actionHandlerBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],i2.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],i2.prototype,"isMetadataVisible",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],i2.prototype,"modernPanels",void 0);_.I([_.qR("#expander"),_.Z("design:type",Object)],i2.prototype,"expander",void 0);_.I([_.hT("data.description"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],i2.prototype,"descriptionChanged",null);
_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],i2.prototype,"dataChanged",null);_.I([_.hT("isMetadataVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],i2.prototype,"expanderChanged",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],i2);
_.m(i2,"ytd-tvfilm-offer-module-renderer",function(){if(xyP!==void 0)return xyP;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return xyP=A},{mode:2});var sdE;var Ns=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return A};
_.g(Ns,_.G);Ns.prototype.dataChanged=function(){this.hostElement.hidden=!1};
Ns.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
Ns.prototype.onThumbnailTap=function(A){this.data&&this.data.serviceEndpoint&&(_.X5().resolve(_.x$).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),A.stopPropagation())};
Ns.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
Ns.prototype.dataChanged=Ns.prototype.dataChanged;_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Ns.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Ns.prototype,"rendererBehaviors",void 0);_.I([_.N([_.es.YtActionHandlerBehavior]),_.Z("design:type",Object)],Ns.prototype,"actionHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Ns.prototype,"data",void 0);
_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ns.prototype,"dataChanged",null);_.I([_.Q({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],Ns);
_.m(Ns,"ytd-unlimited-offer-module-renderer",function(){if(sdE!==void 0)return sdE;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return sdE=A},{mode:1});var Jso;var PrE;var rY=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return A};
_.g(rY,_.G);rY.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
rY.prototype.handleRelatedChipCommand=function(A){A=_.q(A,UkB);var L=A.contents;L?_.YK(this.hostElement,"yt-item-section-replace-action",[L,A.targetSectionIdentifier]):_.YK(this.hostElement,"yt-item-section-continuation-action",[A.continuationData,A.targetSectionIdentifier])};
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],rY.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],rY.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],rY.prototype,"actionHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],rY.prototype,"data",void 0);_.I([_.yU({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],rY);
_.m(rY,"yt-related-chip-cloud-renderer",function(){if(PrE===void 0){var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;Jso===void 0&&(Jso=document.createElement("template"));var X=Jso;O.call(L,X.content.cloneNode(!0),A.content.firstChild);PrE=A}A=PrE;return A},{mode:2});var KU=function(){var A=_.G.apply(this,arguments)||this;A.isTwoColumns=!0;A.hideOfferModules=!1;A.watchFeedBigThumbs=_.h("kevlar_watch_feed_big_thumbs");A.watchFeedBigThumbsOnLockup=_.h("web_watch_next_big_thumbs");A.watchNextGridHideChips=_.h("kevlar_watch_grid_hide_chips");A.eligibleToSwitchToGrid=_.h("web_watch_eligible_to_switch_to_grid");A.disableShortsShelfHeightOverride=_.h("web_shorts_wn_shelf_ratio_tuning");A.isWatchNextGrid=!1;A.reuseComponents=!_.h("kevlar_watch_grid");A.nextContinuation=
{continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return A};
_.g(KU,_.G);_.P=KU.prototype;
_.P.configureRendererStamper=function(){return{"data.offerModule":{id:"offer-module",mapping:{movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},shownItems:{id:"items",reuseComponents:this.reuseComponents,mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-watch-next-secondary-results-renderer lockup",sizing:"COMPACT",thumbnailFixedWidth:"168px",force16By9ThumbnailAspectRatio:!0},properties:{containerType:"[[lockupContainerType]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",
compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",adSlotRenderer:"ytd-ad-slot-renderer",relatedChipCloudRenderer:"yt-related-chip-cloud-renderer",itemSectionRenderer:{component:"ytd-item-section-renderer",params:{isWatch:!0},properties:{continuationShowButton:"[[showButton]]",eligibleToSwitchToGrid:"[[eligibleToSwitchToGrid]]",
useBigThumbs:"[[watchFeedBigThumbsOnLockup]]"}},reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.h("web_watch_grid_resize_on_observer_init_killswitch")}},continuationItemRenderer:{component:"ytd-continuation-item-renderer",
properties:{showButton:"[[showButton]]"}}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]"}}},renderPriority:0}}};
_.P.getItemsPath=function(){return"data.results"};
_.P.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.P.created=function(){this.ytLazyListBehavior.initialCount=1};
_.P.ready=function(){_.eq(this.hostElement,{"--yt-img-shadow-placeholder-color":"var(--yt-spec-10-percent-layer)","--yt-img-shadow-min-height":"100%","--yt-img-shadow-min-width":"100%"})};
_.P.resultsChanged=function(){if(this.data&&this.data.results){for(var A=this.data.results,L=null,O=null,X=0;X<A.length;X++)A[X].relatedChipCloudRenderer?L=A[X].relatedChipCloudRenderer:A[X].itemSectionRenderer&&(O=A[X].itemSectionRenderer);if(L&&O)for(this.set("data.continuations",[]),A=_.q(L.content,_.L0c).chips,L=0;L<A.length;L++)if(X=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",A[L]),X.loadCached||!X.contents){X.contents=O.contents;break}}};
_.P.dataChanged=function(){var A=this,L;if((L=this.data)!=null&&L.results&&this.hasAllowedInstreamAd(this.playerData)){if(L=this.data.results.filter(function(T){return!!T.promotedSparklesWebRenderer})){for(var O=0;O<L.length;O++){var X=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",L[O]);
if(X)for(var x=0;x<X.length;x++)X[x]&&X[x].baseUrl&&_.jY(X[x].baseUrl)}this.set("data.results",this.data.results.filter(function(T){return!T.promotedSparklesWebRenderer}))}if(L=this.data.results.filter(function(T){return!!A.getSparklesAd(T)})){L=_.d(L);
for(x=L.next();!x.done;x=L.next())if(X=O=void 0,x=(O=this.getSparklesAd(x.value))==null?void 0:(X=O.errorCommand)==null?void 0:X.loggingUrls)for(O=_.d(x),X=O.next();!X.done;X=O.next())(X=X.value)&&X.baseUrl&&_.jY(X.baseUrl);var J,Y;this.set("data.results",(J=this.data)==null?void 0:(Y=J.results)==null?void 0:Y.filter(function(T){return!T.adSlotRenderer}))}}};
_.P.getSparklesAd=function(A){var L,O;A=_.q((L=A.adSlotRenderer)==null?void 0:(O=L.fulfillmentContent)==null?void 0:O.fulfilledLayout,_.s$V);return _.q(A==null?void 0:A.renderingContent,kBM)};
_.P.hasAllowedInstreamAd=function(A){A=this.get("adPlacements",A)||[];for(var L=0;L<A.length;L++){var O=this.get("adPlacementRenderer.config.adPlacementConfig",A[L]);if(O&&O.suppressDisplayAd)return!0}return!1};
_.P.computeHideUnlimitedOfferModule=function(A,L){return A&&A.offerModule&&L&&A.offerModule.unlimitedOfferModuleRenderer&&A.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(L)?!0:!1};
_.P.hideUnlimitedOfferModuleChanged=function(){var A=_.YJ(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");A&&(A.hidden=this.hideUnlimitedOfferModule)};
_.P.updateLockupContainerTypes=function(A){if(this.eligibleToSwitchToGrid){var L;(L=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||L.forEach(function(O){O.containerType=A})}};
_.P.computeHideTvfilmOfferModule=function(A,L){var O,X;return!!((A==null?0:(O=A.offerModule)==null?0:(X=O.tvfilmOfferModuleRenderer)==null?0:X.clientShouldSuppressIfCompanionAdDisplayed)&&L&&this.hasCompanionAds(L))};
_.P.hideTvfilmOfferModuleChanged=function(){var A=_.YJ(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");A&&(A.hidden=this.hideTvfilmOfferModule)};
_.P.hasCompanionAds=function(A){A=this.get("adPlacements",A)||[];for(var L=0;L<A.length;L++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",A[L]))return!0;var O=void 0,X=void 0,x=void 0;if(!_.h("web_watch_top_banner_companion_check_killswitch")&&((O=A[L])==null?0:(X=O.adPlacementRenderer)==null?0:(x=X.renderer)==null?0:x.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.P.hasSuppressedResults=function(A){return A==null?!0:A.filter(function(L){return!L.continuationItemRenderer&&!L.compactPromotedVideoRenderer&&!L.promotedSparklesWebRenderer}).length===0};
_.P.computeShowButton=function(A,L){return this.isWatchNextGrid?A:A||this.hasSuppressedResults(L)};
_.P.showButtonChanged=function(){if(this.isWatchNextGrid){var A=_.YJ(this.hostElement).querySelector("ytd-rich-grid-renderer");A&&this.showButton!==null&&(A.continuationShowButton=this.showButton)}else{A=_.YJ(this.hostElement).querySelector("yt-next-continuation");var L=_.YJ(this.hostElement).querySelector("ytd-continuation-item-renderer"),O=_.YJ(this.hostElement).querySelector("ytd-item-section-renderer");A&&(A.showButton=this.showButton);L&&(L.showButton=this.showButton);O&&(O.continuationShowButton=
this.showButton)}};
_.P.continuationTap=function(A){var L;if(((L=this.data)==null?void 0:L.continuations)!=null&&A.target.tagName==="TP-YT-PAPER-BUTTON")for(A=this.data.continuations,L=0;L<A.length;L++)A[L].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(A[L].nextContinuationData||{})};
_.P.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.A3("shown-items-changed",this.shownItems))};
_.v2.Object.defineProperties(KU.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.watchFeedBigThumbsOnLockup?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockups:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.shownItems)==null||!A.some(function(L){return!!L.lockupViewModel||L.compactVideoRenderer}))}}});
KU.prototype.shownItemsChangedForBinding=KU.prototype.shownItemsChangedForBinding;KU.prototype.showButtonChanged=KU.prototype.showButtonChanged;KU.prototype.hideTvfilmOfferModuleChanged=KU.prototype.hideTvfilmOfferModuleChanged;KU.prototype.updateLockupContainerTypes=KU.prototype.updateLockupContainerTypes;KU.prototype.hideUnlimitedOfferModuleChanged=KU.prototype.hideUnlimitedOfferModuleChanged;KU.prototype.dataChanged=KU.prototype.dataChanged;KU.prototype.resultsChanged=KU.prototype.resultsChanged;
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],KU.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],KU.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.TU.YtLazyListBehavior),_.Z("design:type",Object)],KU.prototype,"ytLazyListBehavior",void 0);_.I([_.N(_.vQ.YtNextContinuationBehavior),_.Z("design:type",Object)],KU.prototype,"ytNextContinuationBehavior",void 0);
_.I([_.N(_.U8),_.Z("design:type",Object)],KU.prototype,"ytContinuationHandlerBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],KU.prototype,"ytdReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],KU.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],KU.prototype,"playerData",void 0);_.I([_.K({value:!0}),_.Z("design:type",Boolean)],KU.prototype,"autoFill",void 0);_.I([_.K({value:60}),_.Z("design:type",Number)],KU.prototype,"targetFramerate",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],KU.prototype,"isTwoColumns",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],KU.prototype,"hideOfferModules",void 0);_.I([_.K(),_.Z("design:type",Object)],KU.prototype,"shownItems",void 0);_.I([_.K({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.Z("design:type",Boolean)],KU.prototype,"hideUnlimitedOfferModule",void 0);
_.I([_.K({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.Z("design:type",Boolean)],KU.prototype,"hideTvfilmOfferModule",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],KU.prototype,"watchFeedBigThumbs",void 0);_.I([_.K(),_.Z("design:type",Object)],KU.prototype,"watchFeedBigThumbsOnLockup",void 0);_.I([_.K(),_.Z("design:type",Object)],KU.prototype,"watchNextGridHideChips",void 0);_.I([_.K(),_.Z("design:type",Object)],KU.prototype,"eligibleToSwitchToGrid",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],KU.prototype,"disableShortsShelfHeightOverride",void 0);_.I([_.K({selector:_.Hx,reflectToAttribute:!0}),_.Z("design:type",Object)],KU.prototype,"isGridViewEnabled",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],KU.prototype,"showMoreButton",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],KU.prototype,"isWatchNextGrid",void 0);
_.I([_.K({computed:"computeShowButton(showMoreButton, data.results)"}),_.Z("design:type",Boolean)],KU.prototype,"showButton",void 0);_.I([_.iy("data.results.*"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],KU.prototype,"resultsChanged",null);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],KU.prototype,"dataChanged",null);
_.I([_.hT("hideUnlimitedOfferModule"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],KU.prototype,"hideUnlimitedOfferModuleChanged",null);_.I([_.r("isGridViewEnabled","containsLockups","data"),_.K({reflectToAttribute:!0}),_.Z("design:type",Number),_.Z("design:paramtypes",[])],KU.prototype,"lockupContainerType",null);
_.I([_.hT("lockupContainerType","data"),_.Z("design:type",Function),_.Z("design:paramtypes",[Number]),_.Z("design:returntype")],KU.prototype,"updateLockupContainerTypes",null);_.I([_.hT("hideTvfilmOfferModule"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],KU.prototype,"hideTvfilmOfferModuleChanged",null);_.I([_.hT("showButton"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],KU.prototype,"showButtonChanged",null);
_.I([_.hT("shownItems"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],KU.prototype,"shownItemsChangedForBinding",null);_.I([_.r("shownItems"),_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],KU.prototype,"containsLockups",null);
_.m(KU,"ytd-watch-next-secondary-results-renderer",function(){if(vyS===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);vyS=A}A=vyS;return A},{mode:1});
}catch(e){_._DumpException(e)}
try{
var B92=function(A){if((A==null?void 0:A.value)===void 0||A==null||!A.unit)return"initial";a:{switch(A.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var L="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":L="%";break a}L=void 0}return L?""+A.value+L:"initial"},M6g=new _.PF("shoppingContentLineItemViewModel");var $E_=_.xa(function(A){var L=_.OY(A,{}).data;return _.D("yt-shopping-content-line-item-view-model",{class:_.qn("ytShoppingContentLineItemViewModelHost")},_.D(_.Xg,{text:function(){var O;return(O=L().text)==null?void 0:O.attributedString}}))},"gk");var aJB=_.xa(function(A){A=_.OY(A,{});var L=A.data;return _.D("yt-shopping-content-line-view-model",{class:_.qn("ytShoppingContentLineViewModelHost",A.className),style:_.rl({"--shopping-content-line-gap":function(){return L().itemGap?L().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return L().lineHeight?L().lineHeight+"px":void 0}})},_.D(_.g9,{each:function(){return(L().items||[]).map(function(O){return _.q(O,M6g)}).filter(function(O){return!!O})}},function(O){return _.D($E_,{data:O})}))},"hk");_.Y4(_.xa(function(A){var L=_.OY(A,{}).data,O=function(){var x;return((x=L().image)==null?void 0:x.width)||40},X=function(){var x;
return((x=L().image)==null?void 0:x.height)||40};
return _.D("yt-shopping-timely-shelf-content-view-model",{el:_.sC(_.Bm(function(){var x;return(x=L())==null?void 0:x.rendererContext},void 0,void 0,["BUTTON".toString(),
"A".toString()])),class:_.qn("ytShoppingTimelyShelfContentViewModelHost"),style:_.rl({"--shopping-timely-shelf-content-padding-top":function(){var x;return B92((x=L().padding)==null?void 0:x.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var x;return B92((x=L().padding)==null?void 0:x.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var x;return B92((x=L().padding)==null?void 0:x.start)},
"--shopping-timely-shelf-content-padding-end":function(){var x;return B92((x=L().padding)==null?void 0:x.end)}})},_.D(_.e,{cond:function(){var x;
return(x=L().image)==null?void 0:x.image},
then:function(x){return _.D(_.XV,{preserveHeight:!0,preserveWidth:!0,width:O,height:X,data:x,alt:"",className:"ytShoppingTimelyShelfContentViewModelImage"})}}),_.D(_.ID,{data:function(){return L().avatar}},{avatarViewModel:_.fP}),_.D("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.D(_.ID,{data:function(){return L().line1}},{shoppingContentLineViewModel:function(x){return _.D(aJB,{data:x.data})}}),_.D(_.ID,{data:function(){return L().line2}},{shoppingContentLineViewModel:function(x){return _.D(aJB,
{data:x.data})}})),_.D("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.D(_.g9,{each:function(){var x;
return(x=L().button)!=null?x:[]}},function(x){return _.D(_.ID,{data:function(){return x}},{buttonViewModel:_.gj})})))},"ik"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.x5}});_.kD0={};
_.kD0.YtdWatchBehavior=[_.B.YtRendererBehavior,_.LE.YtPlayerListenerBehavior,_.Db.YtRendererstamperBehavior,_.es.YtActionHandlerBehavior,_.Gr.YtPageBehavior,_.Nr.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},shoppingTimelyShelf:{type:Object,computed:"getShoppingTimelyShelf(data, shoppingTimelyShelfValue)"},offerModule:{type:Object},
engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},clarifyBoxValue:{type:Object},shoppingTimelyShelfValue:{type:Object},conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},merchShelfInSd:{type:Object},singleColumn:{type:Object,
computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},
theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.fB("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.h("web_watch_provide_secondary_results_renderer")}},
enableFullBleedSingleColumnDefaultPlayer:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("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 _.fB("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerUnavailableFixedVisibility:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("web_watch_error_screen_fix")}},
playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,
value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isTwoColumnsInitialized:{type:Boolean,
value:!1},isSingleColumn:{type:Boolean,computed:"computeIsSingleColumn(isTwoColumns_, isTwoColumnsInitialized)"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,
value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.h("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 _.PO("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.PO("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!_.h("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.h("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 _.h("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("web_watch_fullerscreen_deprecation_ui")}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.h("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater, isSingleColumn)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.h("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.h("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("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 _.h("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("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 _.h("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 A={info:{id:"info-contents",mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},
offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",
properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},
donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},shoppingTimelyShelf:{id:"shopping-timely-shelf",mapping:{shoppingTimelyShelfContentViewModel:"yt-shopping-timely-shelf-content-view-model"}},clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},
limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},initialRenderPriority:3,waitForSignal:_.AP(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.AP(["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"||_.h("swa_prov_panels_ks")?A.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}:(A.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},A.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return A},
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 A=this;this.watchController=void 0;this.pageDisposeJobs=[function(){A.showMetadataPlaceholder_()},
function(){_.h("web_watch_dont_clear_comments")||A.clearComments_()},
function(){A.clearPlayerAds_()},
function(){A.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;_.h("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.h("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.c8J(function(){return _.Pm(A)},this.hostElement);
this.pageDisposeJobs.push(function(){A.youThereManager_.reset()});
_.h("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){A.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.bh;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;_.h("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));_.h("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.tT(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(A){A&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:A}),A.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(A){_.h("kevlar_watch_flexy_theater_manager")&&(this.theater=A,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(A){!_.h("kevlar_watch_while_v2")&&!_.h("web_watch_pip")||A||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(A){this.active!==void 0&&(this.fullscreen=A,_.h("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(A){this.active!==void 0&&(_.P4(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.h("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.h("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(A>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(A){this.initCsi_();this.updatePageData_(A)},
updatePageData_:function(A){var L=this;if(A)if(this.data===A){this.onPageLoadWithSameData_();var O;(O=this.watchController)==null||O.setWatchNextResponse(this.data)}else this.data=A;this.playlist&&_.CM({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Rk("nw");this.loading=!1;_.p7(_.c1,function(){L.initDclkstatus_();var X,x=((X=L.player)==null?void 0:X.getVideoData().cpn)||"";_.nLE(function(J,Y){_.COM(J,Y,x)})})},
onPageLoadWithSameData_:function(){_.h("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 A=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!A);this.set("loadingData.playlistLoading",A&&A!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),A=this.watchNextSkeletonEl_.firstElementChild;A;)A.classList.remove("hidden"),A=A.nextElementSibling;if(_.h("kevlar_watch_frame0_loading_state")){var L,O,X;A=(L=this.loadingData)==null?void 0:(O=L.endpoint)==null?void 0:(X=O.watchEndpoint)==null?void 0:X.videoId;var x;A&&(x="https://i.ytimg.com/vi/"+A+"/frame0.jpg");_.YJ(this.hostElement).querySelector("#player").style.backgroundImage=x?"url("+x+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var A=_.YJ(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&A&&(A.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var L,O;(O=(L=this.watchMetadata).updateSentimentBarWidth)==
null||O.call(L);var X,x;(x=(X=this.watchMetadata).resize)==null||x.call(X)}_.h("kevlar_watch_frame0_loading_state")&&(_.YJ(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(A){var L=_.YJ(this.hostElement).querySelector(A);L?_.xK(L,!1):_.Rv(new _.pe("Overscroll monitor not found for component: ",A))},
removeSplitScrollMouseTrap:function(A){var L=_.YJ(this.hostElement).querySelector(A);L?_.Jz(L):_.Rv(new _.pe("Disposal component for  overscroll monitoring not found: ",A))},
onLoadingChanged_:function(A){A?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.h("web_thumbnail_to_watch_transition")&&!_.$oJ||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.h("web_thumbnail_to_watch_transition")&&!_.$oJ||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(A){var L=this;A?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.c1.addLowPriorityJob(function(){L.onWindowResized_(_.NT(!0))})},
updateTheaterModeState_:function(A){if(!_.h("kevlar_watch_flexy_theater_manager")){A=A||this.fullWindowMode_;if(this.theater!==void 0||A)this.theater=A;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();A&&_.neJ()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();_.h("web_watch_error_screen_fix")&&this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var A=this.theater||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer;_.h("external_fullscreen")&&this.fullscreen&&(A=!0);_.h("web_watch_error_screen_fix")&&(A=this.fullBleedPlayer);A=A?_.YJ(this.hostElement).querySelector("#player-full-bleed-container"):_.YJ(this.hostElement).querySelector("#player-container-inner");var L=this.getPlayerContainer(),O=_.h("kevlar_watch_while_v2")||_.h("web_watch_pip");L.parentElement!==A&&(O&&this.isMiniplayerActive()?
this.deactivateMiniplayerAndResetPlayer():(_.Pm(this).appendTo(A,L),_.h("web_watch_error_screen_fix")||A.appendChild(_.YJ(this.hostElement).querySelector("#error-screen"))))},
updateErrorScreenLocation:function(){var A=_.YJ(this.hostElement).querySelector("#error-screen"),L=this.fullBleedPlayer?_.YJ(this.hostElement).querySelector("#player-full-bleed-container"):_.YJ(this.hostElement).querySelector("#player");A.parentElement!==L&&L.appendChild(A)},
deactivateMiniplayerAndResetPlayer:function(){var A=this;return _.u(function(L){if(L.nextAddress==1)return L.yield(_.X5().resolve(_.z_).deactivate(),2);A.updatePlayerLocation();_.qo(L)})},
updateCinematicsLocation:function(){var A=this.getElement("CINEMATICS");if(A){var L=this.getCinematicsLocationContainer();A.parentElement!==L&&L.appendChild(A);var O;(O=this.watchController)==null||O.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.enableFullBleedSingleColumnDefaultPlayer&&this.isSingleColumn)?_.YJ(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.YJ(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(A,L,O){var X=document.documentElement.hasAttribute("dark"),x=X&&_.h("web_cinematic_theater_mode"),J=X&&_.h("web_cinematic_fullscreen");X=!X&&this.cinematicLightTheme;return O||A&&x||L&&J||(L||A)&&X},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var A=this,L;(L=this.watchController)==null||L.setWatchNextResponse(this.data);_.h("kevlar_watch_flexy_comments_manager")||this.initComments_();_.h("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.X5().resolve(_.$q).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,_.h("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.c1.addLowPriorityJob(function(){_.YK(A.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.h("web_watch_start_chat_in_theater_mode")){var O,X,x;if((O=this.data)==null?0:(X=O.contents)==null?0:(x=X.twoColumnWatchNextResults)==null?0:x.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var J,Y;((J=this.data)==null?0:(Y=J.contents)==null?0:Y.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(A){var L;(L=this.watchController)==null||L.setPlayerResponse(this.playerData);A&&A.playabilityStatus&&(L=this.isVideoPlayable_(A.playabilityStatus,this.getPlayerOverlays_(this.data)),A=this.isLiveStreamOffline_(A.playabilityStatus),L&&!A||_.kd(this,function(){_.Rk("pbu")}));
this.setPlayerAds_();_.YK(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(A,L){if((_.h("kevlar_watch_while_v2")||_.h("web_watch_pip"))&&this.playerData&&L)return this.playerData.videoDetails},
watchPageActiveChanged_:function(A){_.Ai().dispatch(_.jea(this.active));A?this.activate_():this.deactivate_()},
attached:function(){var A=this;this.watchController=new _.yA(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);_.h("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var L=_.Pm(this);_.h("kevlar_disable_prepare_player")||
L.preparePlayer();_.h("kevlar_watch_flexy_playlist_manager")||_.X5().resolve(_.$q).setPlayer(L);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();L={"--ytd-watch-flexy-scrollbar-width":_.U5()+"px"};this.is==="ytd-watch-grid"&&(L["--ytd-watch-flexy-sidebar-width"]=_.kj3+"px",L["--ytd-watch-grid-horizontal-page-margins"]=_.yY+"px",L["--ytd-watch-grid-columns-top-margins"]=_.M3a+"px",L["--ytd-watch-grid-min-player-height-medium"]="360px");!_.PO("kv_pl_mx_sz_ks")&&
_.PO("kevlar_watch_max_player_width")&&(L["--ytd-watch-flexy-max-player-width-wide-screen"]=_.UNP+"px");_.PO("kevlar_watch_flexy_metadata_height")&&(L["--ytd-watch-flexy-space-below-player"]=_.vVW+"px");this.safeUpdateStyles(L);_.h("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.DO(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return A.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.YJ(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var A=_.U5(),L=_.Zp+A,O=L;this.fixedPanels&&(L+=_.kj3);var X=657+A;A=1327+A;_.YJ(this.hostElement).querySelector("#two-column-query").query="(min-width: "+L+"px)";_.YJ(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(X+"px), (min-height: 630px) and (min-width: ")+(L+"px) and (max-width: ")+(A+"px)");_.YJ(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(A+"px)");
_.YJ(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+O+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var A=_.YJ(this.hostElement).querySelector("#miniplayer-bar").firstChild,L=this.squeezeback&&!_.h("web_watch_squeezeback_player_size_killswitch");return A&&A.active||this.theater||_.h("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||L||!this.active||!this.windowSize_||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer?new _.bW(NaN,NaN):_.qsg(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||
this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.qsg(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.oo(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var A=this;this.onWindowResized_(_.NT());_.h("browse_skeleton_removal_on_watch_killswitch")||_.fB("IS_SHELL_LOAD")&&_.OiJ();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var L=_.Pm(this);L.addEventListener("yt-player-updated",_.tT(this,this.onPlayerUpdated_));L.getPlayerPromise().then(function(O){A.playerApiReady_(O)});
_.h("kevlar_watch_flexy_playlist_manager")||(L=_.X5().resolve(_.$q),_.h("kevlar_watch_observe_playlist_navigations_killswitch")&&L.addEventListener("yt-navigate",_.tT(this,this.onYtNavigate_)),L.setPlaylistComponent(_.YJ(this.hostElement).querySelector("#playlist")),L.addEventListener("yt-playlist-data-updated",_.tT(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.c1.addLowPriorityJob(function(){_.P4(A.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.Pm(this).removeEventListener("yt-player-updated",_.tT(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.h("kevlar_watch_flexy_playlist_manager")){var A=_.X5().resolve(_.$q);_.h("kevlar_watch_observe_playlist_navigations_killswitch")&&A.removeEventListener("yt-navigate",_.tT(this,this.onYtNavigate_));
A.cancelVideoSkip();A.removeEventListener("yt-playlist-data-updated",_.tT(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.h("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.P4(this.hostElement,"yt-autonav-pause-player",!1);A=_.O0();_.h("kevlar_exit_fullscreen_leaving_watch")&&A&&_.Xz(A)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(A){this.player&&this.player.updateVideoData({rvs:A.rvs})},
getPageContents:function(A){return A&&A.contents&&A.contents.twoColumnWatchNextResults&&A.contents.twoColumnWatchNextResults.results&&A.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getShoppingTimelyShelf:function(){return this.shoppingTimelyShelfValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(A){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",A)},
onRetrieveLocation_:function(A,L){L.hasComments?L.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):L.locationRetrieved("/related_ajax",void 0);A.stopPropagation()},
onSubscriptionChanged_:function(A,L){this.player&&(L?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.KK("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.YJ(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.YJ(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(A){this.player=A;this.setPlayerState(A.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.h("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.h("kevlar_unified_player")||_.h("kevlar_player_new_bootstrap_adoption"))&&_.Uf()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(A,L){L=L===void 0?!0:L;_.O0()&&_.h("external_fullscreen")&&_.Xz(document.documentElement);this.theaterRequested_=A;L&&_.Sh("wide",A?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.dQ(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.P4(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(A){_.Q$(A,typeof this.player),this.player&&_.Q$(A,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var A;((A=this.player)==null?0:A.isFullscreen())?this.player.toggleFullscreen():_.dQ(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(A,L){return this.loading?L:!!Object.keys(A).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(A){if(A){A=_.d(A);for(var L=A.next();!L.done;L=A.next())L=L.value,L.youThereRenderer&&_.RfP(this.youThereManager_,L.youThereRenderer)}},
setPlaylistData_:function(A){return A||{}},
userEngagementConfigDataChanged_:function(A){if(A)if(A.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var L=this.youThereManager_;_.xw()<A.lowEngagementThresholdMs||_.IJg(L,!0)}else A.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.dQ(this.hostElement,"yt-autonav-pause-user-engagement",[A])},
isPlayerUnavailable_:function(A,L,O){return!!A&&!this.isVideoPlayable_(A,O)&&!L},
getPlayerOverlays_:function(A){return(A==null?void 0:A.playerOverlays)||null},
isVideoPlayable_:function(A,L){if(!A)return!1;var O=A.status==="OK"||A.status==="LIVE_STREAM_OFFLINE",X=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",A)||this.get("errorScreen.ypcTrailerRenderer",A);A=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",A);var x;L=L==null?void 0:(x=L.playerOverlayRenderer)==null?void 0:x.gatedActionsOverlayRenderer;return!!O||!!X||!!A||!!L},
hasWatchNextResponseErrorRenderer:function(A){var L=this.getPageContents(A),O,X,x,J,Y;return!(A==null?0:(O=A.contents)==null?0:(X=O.twoColumnWatchNextResults)==null?0:X.secondaryResults)&&!!((x=L[0])==null?0:(J=x.itemSectionRenderer)==null?0:(Y=J.contents[0])==null?0:Y.backgroundPromoRenderer)},
isLiveStreamOffline_:function(A){return A?A.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(A,L,O){var X=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",L),x=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];x=_.h("web_no_skip_video_on_verification_checks")?(A==null?void 0:A.status)&&x.includes(A.status):A&&A.status==="AGE_CHECK_REQUIRED";var J=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",A);J==void 0&&(J=!0);!O||this.isVideoPlayable_(A,this.getPlayerOverlays_(L))||
X||x||!J||_.X5().resolve(_.$q).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.wYf()},
onPlayerFeedbackStartRequest_:function(A){_.dQ(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:A}])},
onPlayerFeedbackArticleRequest_:function(A){_.dQ(this.hostElement,"yt-help-dialog-requested",[A])},
onPlayerYpcContentRequest_:function(){var A,L,O,X,x,J,Y,T,V=((A=this.data)==null?NaN:(L=A.contents)==null?NaN:(O=L.twoColumnWatchNextResults)==null?NaN:(X=O.secondaryResults)==null?NaN:(x=X.secondaryResults)==null?NaN:(J=x.offerModule)==null?NaN:(Y=J.tvfilmOfferModuleRenderer)==null?NaN:(T=Y.actionButtons)==null?NaN:T.length)-1;A=[".offerButton.buttonRenderer.",".actionButtons."+(V>=0?V:0)+".buttonRenderer."];L=_.d(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(O=L.next();!O.done;O=L.next())for(O=O.value,X=_.d(A),x=X.next();!x.done;x=X.next())if(x="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+O+x.value,x=this.get(x+"navigationEndpoint",this.data)||this.get(x+"serviceEndpoint",this.data)||this.get(x+"command",this.data)){_.qb(x,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(A){_.P4(this.hostElement,"yt-autonav-pause-player",A)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(A){A()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(A){switch(A){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(A){switch(A){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.P4(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(A)},
setPlayerState:function(A){_.Ai().dispatch(_.fRV(A))},
onPlayerSubscribe_:function(A){_.dQ(this.hostElement,"yt-player-subscribe",[A])},
onPlayerUnsubscribe_:function(A){_.dQ(this.hostElement,"yt-player-unsubscribe",[A])},
onPlayerAdYtShowToast_:function(A){_.dQ(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:A.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(A){if(A)return A},
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(A){return!_.h("web_watch_move_summary_to_sd")&&!!A},
computeWatchMetadataRefresh:function(){return _.h("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.h("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var A,L,O,X;this.watchNextSecondaryResults=(A=this.data)==null?void 0:(L=A.contents)==null?void 0:(O=L.twoColumnWatchNextResults)==null?void 0:(X=O.secondaryResults)==null?void 0:X.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.h("swatcheroo_pbs_load_grid")&&!_.h("swatcheroo_provide_all_data_on_scheduled_job")){_.c1.cancelJob(this.setRichGridJobId_);var A,L,O,X,x,J,Y;this.setRichGridRendererData((A=this.data)==null?void 0:(L=A.contents)==null?void 0:(O=L.twoColumnWatchNextResults)==null?void 0:(X=O.secondaryResults)==null?void 0:(x=X.secondaryResults)==null?void 0:(J=x.results)==null?void 0:(Y=J[0])==null?
void 0:Y.richGridRenderer)}},
setRichGridRendererData:function(A){this.richGridRendererData=A},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var A,L=(A=this.data)==null?void 0:A.engagementPanels;if(L==null?0:L.length){A=null;L=_.d(L);for(var O=L.next();!O.done;O=L.next()){O=O.value;var X=void 0;if(((X=O.engagementPanelSectionListRenderer)==null?void 0:X.targetId)==="engagement-panel-structured-description"){A=O;break}}var x,J,Y;A=(x=A)==null?void 0:(J=x.engagementPanelSectionListRenderer)==null?void 0:(Y=J.content)==null?void 0:Y.structuredDescriptionContentRenderer;if(A==null?0:A.items){x=
[];J=_.d(A.items);for(Y=J.next();!Y.done;Y=J.next()){Y=Y.value;if(!_.h("sd_horizontal_list_show_nav_killswitch")){var T=X=O=L=A=void 0,V=void 0,E=(A=Y.horizontalCardListRenderer)==null?void 0:(L=A.header)==null?void 0:(O=L.richListHeaderRenderer)==null?void 0:(X=O.navigationButton)==null?void 0:(T=X.buttonRenderer)==null?void 0:(V=T.command)==null?void 0:V.commandExecutorCommand;E&&E.commands&&(E.commands=E.commands.filter(function(n){return!_.q(n,_.V3o)}))}(!Y.expandableVideoDescriptionBodyRenderer&&
!Y.videoDescriptionHeaderRenderer||_.h("web_delhi_colorful_sd"))&&x.push(Y)}return{items:x}}}},
constructWarning_:function(A){return{text:_.Ue(A),type:"WARNING"}},
isPlaShelfEnabled_:function(A){if((this.get("adPlacements",A)||[]).length)return!0;A=this.get("playerAds",A)||[];return!(!A.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",A[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var A=this;_.P4(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.h("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var L=this.getScrollTop()>0;this.gestures_&&(L?this.gestures_.detach():this.gestures_.attach());L!==this.showFullerscreenEdu_&&_.h("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=L,_.Pm(this).getPlayerPromise().then(function(O){O.updateFullerscreenEduButtonVisibility(A.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.P4(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var A=this;this.commentsReady=!1;_.c1.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.p7(_.c1,function(){A.setComments_()},1E3)},
setComments_:function(){if(!_.h("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Rk("cmi");_.c1.cancelJob(this.setCommentsJobId_);var A=this.getPageContents(this.data);if(A&&A.length){A=_.d(A);for(var L=A.next();!L.done;L=A.next())if(L=L.value,this.get("itemSectionRenderer.sectionIdentifier",L)==="comment-item-section"){this.comments=L.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.P4(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.h("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.h("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Rk("cmc")},
doRemoveComments_:function(){this.comments={};_.h("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.c1.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.c1.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(A,L){var O=_.q(L.endpoint,_.$O);O&&(!(L=this.get("data.currentVideoEndpoint.watchEndpoint"))||O.videoId!==L.videoId||O.playlistId&&O.playlistId!==L.playlistId||O.index!==void 0&&O.index!==L.index||typeof O.startTimeSeconds!=="number"||(A.stopPropagation(),this.setScrollTop(0),_.Pm(this).getPlayerPromise().then(function(X){var x=O.startTimeSeconds;X.seekTo(x);X.wakeUpControls();x<X.getDuration()&&X.playVideo()})))},
updatePlayerStartTime_:function(){var A=_.PkP();"t"in A&&(A=_.gLf(A.t),this.player.seekTo(A,!0))},
updateTitleFromWatchNext:function(A){A=this.getPageContents(A);var L,O;(A=_.vG(A==null?void 0:(L=A[0])==null?void 0:(O=L.videoPrimaryInfoRenderer)==null?void 0:O.title))&&_.P4(this.hostElement,"yt-update-title",A)},
updateTitle_:function(A){A=this.get("videoDetails.title",A)||"";_.P4(this.hostElement,"yt-update-title",A)},
syncWithRemoteVideo_:function(A,L,O){if(this.active&&this.player){var X=this.player.getVideoData();if(X.video_id===O&&(O=X.list,_.h("polymer_enable_mdx_queue")&&O&&O.startsWith("RQ")&&(O=void 0),X.video_id!==A||O!=L)){var x;_.h("kevlar_player_watch_endpoint_navigation")?x=_.Oge(_.t6P(A,L)):x=this.buildWatchEndpoint_(A,L);_.P4(this.hostElement,"yt-navigate",{endpoint:x,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(A,L,O){return _.Oe(A,L,O)},
initDclkstatus_:function(){_.Ssf()},
attachWatchPageSkeleton_:function(){var A=document.querySelector("#watch-page-skeleton");if(A){var L=A.querySelector("#primary-info"),O=A.querySelector("#secondary-info"),X=A.querySelector("#related");L&&_.YJ(this.hostElement).querySelector("#info-skeleton").appendChild(L);O&&_.YJ(this.hostElement).querySelector("#meta-skeleton").appendChild(O);X&&(_.YJ(this.hostElement).querySelector("#related-skeleton").appendChild(X),this.watchNextSkeletonEl_=X);_.hg(A)}},
handlePlayerUpdated_:function(){_.Pm(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(A,L){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof L!=="undefined"){var O=this.watchNextSkeletonEl_.children,X=A&&A.indexSplices.length?A.indexSplices[0].index:0;A=Math.min(this.watchNextShownItems.length,O.length);L||(X=0,A=O.length);for(L=X;L<A;L++)O[L].classList.add("hidden")}},
onPlayerFullscreenChange_:function(A){_.h("external_fullscreen")||_.dQ(this.hostElement,"yt-player-fullscreen",[A.fullscreen])},
onFullscreenChange_:function(A){this.fullscreen=A;this.gestures_&&this.gestures_.update(this.fullscreen);var L=_.Pm(this);L.getPlayerPromise().then(function(O){O.setFauxFullscreen(!!_.O0())});
this.updateFullBleedElementLocations();A&&(L.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(A,L){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!L},
computeIsDonationShelfCollapsed_:function(A){return A},
computeShouldShowMerchShelf:function(A,L){return L&&!!A},
computeResponseHasComments:function(A){var L,O,X,x,J;return!!(A==null?0:(L=A.contents)==null?0:(O=L.twoColumnWatchNextResults)==null?0:(X=O.results)==null?0:(x=X.results)==null?0:(J=x.contents)==null?0:J.some(function(Y){var T;return(Y==null?void 0:(T=Y.itemSectionRenderer)==null?void 0:T.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(A,L,O,X){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&X?!1:!!A&&!!Object.keys(A).length&&!L},
identity:_.Rd,onWindowResized_:function(A){this.windowSize_=A;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.h("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(A){var L=this;A&&A.type!=="dataloaded"&&A.type!=="dataupdated"||_.Pm(this).getPlayerPromise().then(function(O){var X=O.getPlayerState();X!==5&&X!==0&&(O=1/O.getVideoAspectRatio(),L.videoHeightToWidthRatio_!==O&&(L.videoHeightToWidthRatio_=O))})},
schedulePlayerSizeUpdate_:function(A){var L=this,O=_.h("kevlar_watch_while_v2")||_.h("web_watch_pip"),X=function(){if(L.watchMetadata){var x,J;(J=(x=L.watchMetadata).resize)==null||J.call(x)}_.Pm(L).getPlayerPromise().then(function(Y){if(_.h("kevlar_set_internal_player_size")){if(!O||!L.isMiniplayerActive()){var T=L.calculateCurrentPlayerSize_();Y.setInternalSize(T.width,T.height)}}else Y.setSize(NaN,NaN);_.h("kevlar_watch_while")&&L.updateWatchWhileScrollThreshold_()})};
A?X():_.fu(_.c1,X)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(A){this.set("data.survey",A.detail)},
onYtShowSurveyCommand_:function(A){this.set("data.survey",_.q(A,_.lJW).survey)},
onDownloadedVideoDeleted:function(A){var L=this,O,X;return _.u(function(x){if(x.nextAddress==1){if(!L.active||(O=L.playerData)==null||!O.offlineState||L.videoId!==A)return x.return();(X=L.player)==null||X.stopVideo();_.rm().navigatingAwayFromWatchDeletedVideo=!0;_.qb(_.N$u,L.hostElement);return x.yield(_.rm().navigationFinishPromise,2)}_.rm().navigatingAwayFromWatchDeletedVideo=!1;_.qo(x)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var A;this.theater?A=_.Z7(.5625*this.windowSize_.width,480,this.windowSize_.height-185):A=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==A&&(this.watchWhileScrollThreshold_=A,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var A=_.YJ(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&A){var L=this.windowSize_.height>=624,O=this.active?this.getScrollTop():0;!A.active&&L&&O>=this.watchWhileScrollThreshold_?(A.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):A.active&&(!L||O<this.watchWhileScrollThreshold_&&!_.O0())&&(A.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var A=_.YJ(this.hostElement).querySelector("#secondary-inner");if(A){var L=_.YJ(this.hostElement).querySelector("#below"),O=_.YJ(this.hostElement).querySelector("#secondary"),X=_.YJ(this.hostElement).querySelector("#comments");X&&O&&L&&(this.defaultTwoColumnLayout?(A.appendChild(X),O.appendChild(A)):(L.appendChild(X),_.fU(L,A)))}}},
isTwoColumnsChanged_:function(A,L){if(A!==!0||L!==void 0)if(this.enableFullBleedSingleColumnDefaultPlayer&&this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(A=_.YJ(this.hostElement).querySelector("#secondary-inner"))){L=_.YJ(this.hostElement).querySelector("#below");var O=_.YJ(this.hostElement).querySelector("#secondary"),X=_.YJ(this.hostElement).querySelector("#comments");X&&O&&L&&(this.isTwoColumns_?(A.appendChild(X),O.appendChild(A)):(L.appendChild(X),
_.fU(L,A)))}}else{A=!_.h("web_watch_enable_fs_squeezeback_panels")||!(this.fullscreen||this.iMaxTheaterMode&&this.theater);L=_.YJ(this.hostElement).querySelector("#panels");var x=_.YJ(this.hostElement).querySelector("#alerts");O=_.YJ(this.hostElement).querySelector("#playlist");X=_.YJ(this.hostElement).querySelector("#related");var J=_.YJ(this.hostElement).querySelector("#donation-shelf"),Y=_.YJ(this.hostElement).querySelector("#comments");this.isTwoColumns_?(x=_.YJ(this.hostElement).querySelector("#secondary-inner"),
A&&(x.appendChild(L),x.appendChild(O)),x.appendChild(J),x.appendChild(X)):(A&&(_.y5(L,x),_.y5(O,x)),_.y5(J,x),Y&&_.y5(X,Y));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.h("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.h("web_watch_enable_fs_squeezeback_panels")&&_.h("web_watch_theater_chat")){var A=_.YJ(this.hostElement).querySelector("#chat-container"),L=this.theater&&!this.fullscreen||_.h("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&L?(L=_.YJ(this.hostElement).querySelector("#columns"),(A==null?void 0:A.parentElement)!==L&&L.append(A),this.fixedPanels=!0):(this.fixedPanels=
!1,L=_.YJ(this.hostElement).querySelector("#playlist"),A&&L?_.ZV(A,L):_.Rv(new _.pe("Missing element when updating chat location",{"chatContainer defined":!!A,"playlist defined":!!L})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(A,L){return _.h("sw_metadata_vis_toggle_ks")?!0:!!A||!!L},
computeForceDarkPanelTheme:function(A){return _.h("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&A:!1},
safeUpdateStyles:function(A){try{_.eq(this.hostElement,A)}catch(L){_.Rv(L)}},
videoHeightToWidthRatioChanged_:function(A,L){L&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(A){this.videoHeightToWidthRatio_=1/A},
computeIsVerticalVideo_:function(A){return A>=1},
computeIsFourThreeToSixteenNineVideo_:function(A){return A<=.7501&&A>=.5624},
computeIsExtraWideVideo_:function(A){return A<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.Pm(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.Pm(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.y8B(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(A){var L=_.wf(A)||0;_.gf(A,L+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var A=_.wf("yt-fullerscreen-edu-button-click-count")||0,L=_.wf("yt-fullerscreen-edu-button-shown-count")||0,O=_.PO("external_fullscreen_button_shown_threshold"),X=A>=_.PO("external_fullscreen_button_click_threshold")||L>=O;_.Pm(this).getPlayerPromise().then(function(x){x.updateFullerscreenEduButtonSubtleModeState(X)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(A,L){return L},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.X5().resolve(_.$q).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var A=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.c1.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.c1.addLowPriorityJob(function(){A.fullHeightPanelPositionUpdateJobId=0;var L=_.YJ(A.hostElement).querySelector("#secondary"),O=_.YJ(A.hostElement).querySelector("#fixed-secondary");L=L.getBoundingClientRect();var X=L.width;A.swatcherooSqueezeback&&
(X+=_.yY);if(A.swatcherooSqueezeback){var x=_.YJ(A.hostElement).querySelector("#squeezeback-constraining-container");x.style.width=X+"px";x.style.flex="0 0 "+X+"px"}O.style.width=X+"px";O.style.left=L.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var A=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.c1.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.c1.addLowPriorityJob(function(){A.panelMaxHeightUpdateJob_=0;var L;!A.isTwoColumns_||A.theater||A.fullscreen?L=460:L=A.calculateNormalPlayerSize_().height;var O=L+"px";_.h("live_chat_taller_height")&&!A.theater&&(O="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.h("live_chat_medium_height")&&!A.theater&&(O="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.h("live_chat_scaled_height")&&!A.theater&&(O="calc(100vh - var(--ytd-toolbar-height) - 238px)");A.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":L+"px","--ytd-watch-flexy-chat-max-height":O,"--ytd-watch-flexy-structured-description-max-height":L+"px","--ytd-watch-flexy-comments-panel-max-height":L+"px","--ytd-comments-engagement-panel-content-height":L+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(A){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",A)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.VN(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(A){var L=_.YJ(this.hostElement).querySelector("#engagement-panel-scrim");A?L.addEventListener("tap",_.tT(this,this.onEngagementPanelScrimClick_)):L.removeEventListener("tap",_.tT(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(A){if(this.hostElement.contains(A)&&!this.scrollToAnimation_.isAnimating()){var L=A.offsetTop-24;A=A.offsetTop+A.offsetHeight+24;var O=this.getPageScrollingElement(),X=this.getScrollTop(),x=X+O.clientHeight-56;if(L<X+56)L-=56;else if(A>x)L=A-O.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,L),500)}},
onYtSignalActionScrollToComments:function(){var A=this.hostElement.querySelector("#comments");if(A&&!this.scrollToAnimation_.isAnimating()){A=A.offsetTop-56-24;if(_.h("kevlar_comment_teaser_scroll_to_midpoint")&&(A-=_.hD().height/3,A<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,A),500)}},
onYtEngagementPanelVisibleChanged:function(A,L,O){if(this.active&&this.trackEngagementPanelVisibility&&!_.Ks2.includes(O)){if(L==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.YK(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var X=_.X5().resolve(_.FC);this.visiblePanelIdentifiers_.forEach(function(x){x!==O&&X.hidePanel(x)})}this.visiblePanelIdentifiers_.add(O)}L!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&L!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(O);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(A){return A?"":"watch-active-metadata"},
computeNewMetadataClass:function(A){return A?"watch-active-metadata":""},
computeIsSingleColumn:function(A,L){return L&&!A},
computeFullBleedPlayer:function(A,L,O){return _.h("web_watch_error_screen_fix")?_.h("external_fullscreen")&&A||L||this.enableFullBleedSingleColumnDefaultPlayer&&O:A||L||this.enableFullBleedSingleColumnDefaultPlayer&&O},
computeDefaultLayout:function(A){return!A},
computeDefaultTwoColumnLayout:function(A,L){return!A&&L},
updatePanelsLocation:function(){if(_.h("web_watch_enable_fs_squeezeback_panels")){var A=_.YJ(this.hostElement).querySelector("#below"),L=_.YJ(this.hostElement).querySelector("#panels"),O=_.YJ(this.hostElement).querySelector("#playlist"),X=_.YJ(this.hostElement).querySelector("#chat-container"),x=_.YJ(this.hostElement).querySelector("#panels-full-bleed-container"),J=_.YJ(this.hostElement).querySelector("#secondary-inner");if(A&&L&&O&&X&&x&&J){var Y=this.fullscreen||this.theater&&this.iMaxTheaterMode,
T=this.theater&&!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;Y?(x.appendChild(L),x.appendChild(X),x.appendChild(O)):this.isTwoColumns_?(T?(A=_.YJ(this.hostElement).querySelector("#columns"),(X==null?void 0:X.parentElement)!==A&&A.append(X),this.fixedPanels=!0):_.fU(J,X),_.fU(J,L),_.fU(J,O)):(A.appendChild(L),A.appendChild(X),A.appendChild(O))}}},
swatcherooUpdatePanelsLocation:function(A,L,O,X,x,J){if(this.is==="ytd-watch-grid"){L=A&&!L;this.swatcherooSplitScroll&&(L?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));O=_.YJ(this.hostElement).querySelector("#panels");var Y=_.YJ(this.hostElement).querySelector("#playlist"),T=_.YJ(this.hostElement).querySelector("#fixed-secondary"),V=_.YJ(this.hostElement).querySelector("#fixed-below"),
E=_.YJ(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),n=_.YJ(this.hostElement).querySelector("#chat-container");J&&(A?T.appendChild(O):V.appendChild(O));x?A?T.appendChild(n):V.appendChild(n):_.ZV(n,E);X?A?T.appendChild(Y):V.appendChild(Y):_.ZV(Y,E);this.swatcherooSplitScroll&&(A=_.YJ(this.hostElement).querySelector("#secondary"),X=_.YJ(this.hostElement).querySelector("#columns"),x=_.YJ(this.hostElement).querySelector("#fixed-columns-secondary"),L?
x.appendChild(A):X.appendChild(A))}},
computeMetadataSkinnyMode:function(A,L,O){return this.is!=="ytd-watch-grid"?!1:A?O:L},
computeWatchWhilePanelsActive:function(A,L){return A||L},
computeNoBorderOnChat:function(A){return _.h("web_watch_theater_chat_no_border")&&A},
computeLiveChatPresentAndExpanded:function(A,L){return A&&!L},
computePanelExpanded:function(A,L,O){return A||L||O},
computeSqueezeback:function(A,L,O,X){if(_.h("web_watch_enable_fs_squeezeback_panels")){var x=this.iMaxTheaterMode&&this.theater;return(A||L||O)&&(X||x)}},
computeSwatcherooSqueezeback:function(A,L,O){return this.is!=="ytd-watch-grid"||_.h("ww_squeezeback_killswitch")?!1:A&&L&&O},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(A){_.Pm(this).getPlayerPromise().then(function(L){var O;(O=L.changeMarkerVisibility)==null||O.call(L,_.q(A,_.HN).isVisible||!1,_.q(A,_.HN).entityKeys||[],_.q(A,_.HN).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(A){this.liveChatCollapsed=A.detail;_.Ai().dispatch(_.r8_(A.detail));if(!this.liveChatCollapsed&&this.squeezeback){var L=_.X5().resolve(_.FC);this.visiblePanelIdentifiers_.forEach(function(O){L.hidePanel(O)})}},
onSetPlaylistCollapsed:function(A){_.h("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!A)},
provideRenderingData:function(A,L){switch(A){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=L;break;case "PRIMARY_INFO":_.h("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=L);this.videoPrimaryInfoRendererValue=L==null?void 0:L.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.h("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=L);this.videoSecondaryInfoRendererValue=L==null?void 0:L.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
L;break;case "CLARIFICATION":this.clarifyBoxValue=L;break;case "LIVE_CHAT":this.conversationBar=L;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=L;break;case "PLAYLIST":this.externalPlaylistData_=L!=null?L:{};break;case "MERCH_SHELF":this.merchShelfValue=L==null?void 0:L.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=L;break;case "TICKET_SHELF":this.ticket=L;break;case "OFFER_MODULE":this.offerModule=L;break;case "LIMITED_STATE":this.limitedStateValue=
L;break;case "DONATION_SHELF":this.donation=L;break;case "ALERTS":this.alertsValue=L;break;case "COMMENTS":this.comments=L;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=L;break;case "ENGAGEMENT_PANELS":this.engagementPanels=L;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=L;break;case "RICH_GRID_RENDERER":this.richGridRendererData=L;break;case "EXPANDABLE_METADATA":this.expandableMetadata=L;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
L;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=L}},
toggleCinematicsActive:function(A){this.cinematicsActive=A},
isMiniplayerActive:function(){return _.X5().resolve(_.z_).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var m77;_.QUX=function(A){if(!(0,_.qA9)(A))throw Error("K``"+String(A));};
_.fZn=function(A){return A.findIndex(function(L){return m77.indexOf(L.tagName)>-1})>-1};
_.IZn=function(){var A=_.X5().resolve(_.l6);_.QyD(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(A.isFullscreenEnabled()?_.Xz(document.documentElement):_.YSO(document.documentElement))};
m77=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.h5=new Map;_.h5.set(32,59972);_.h5.set(27,50765);_.h5.set(70,60102);_.h5.set(76,60221);_.h5.set(77,60222);_.h5.set(74,60223);_.h5.set(84,60224);_.h5.set(38,61941);_.h5.set(40,61942);_.h5.set(73,62521);_.h5.set(67,62522);_.h5.set(80,63390);_.h5.set(78,63397);_.h5.set(75,59972);_.h5.set(188,63385);_.h5.set(190,63384);_.h5.set(36,63387);
_.h5.set(35,63386);_.h5.set(37,63388);_.h5.set(39,63389);_.h5.set(79,63423);_.h5.set(87,63424);_.h5.set(107,63426);_.h5.set(109,63425);_.h5.set(65,63428);_.h5.set(83,63430);_.h5.set(68,63429);_.h5.set(221,63431);_.h5.set(219,63432);_.h5.set(97,63439);_.h5.set(98,63440);_.h5.set(99,63441);_.h5.set(100,63442);_.h5.set(101,63443);_.h5.set(102,63444);_.h5.set(103,63445);_.h5.set(104,63446);_.h5.set(105,63447);_.S1=new Map;_.S1.set(80,63390);_.S1.set(78,63397);_.S1.set(188,63400);_.S1.set(190,63401);
_.S1.set(191,60765);_.S1.set(13,247917);_.qc=new Map;_.g8=new Map;
}catch(e){_._DumpException(e)}
try{
var GVQ,CQ7,FvJ,RUk;_.irZ=function(A){return A.ui.guideIsVisibleButNotPersistent};
_.NFZ=function(A){return A.ui.tabGesturesIsActive};
_.r0X=function(){var A=_.dN("service_worker_scope");try{return navigator.serviceWorker.getRegistration(A)}catch(L){return Promise.reject(L)}};
_.KvJ=function(A){return!(!A||!A.pushManager)};
GVQ=function(){return _.r0X().then(_.KvJ).catch(function(){return!1})};
_.lWJ=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?GVQ():Promise.resolve(!1)};
_.c0n=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
CQ7=function(){var A,L,O;return _.u(function(X){switch(X.nextAddress){case 1:return X.yield(_.m0.getInstance(),2);case 2:A=X.yieldResult;if(!A){L=void 0;X.jumpTo(3);break}return X.yield(A.get("lmqf"),4);case 4:L=X.yieldResult;case 3:switch((O=L)||(O="SD"),O){case "HD":return X.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return X.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return X.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return X.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return X.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
FvJ=function(A){var L,O,X;return _.u(function(x){if(x.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.h("disable_av1_setting")){var J=window.localStorage["yt-player-av1-pref"];J=J==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":J==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else J="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(L=A===J)return x.jumpTo(2);X=O=A;return x.yield(CQ7(),3)}x.nextAddress!=2&&(L=X===x.yieldResult);return x.return(L)})};var QeQ;var mDM=_.Ft.IronButtonState,fWS=(0,_.cg)(HTMLElement);
_.RJ({_template:function(){if(QeQ!==void 0)return QeQ;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;RUk===void 0&&(RUk=document.createElement("template"));var X=RUk;O.call(L,X.content.cloneNode(!0),A.content.firstChild);return QeQ=A},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[mDM,_.ci,_.Rh,_.fC],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(A){var L=(0,_.bO)(this);L.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:A});L.shadowRoot.appendChild(A);return fWS.prototype._attachDom.call(this,A)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var A=this.contentElement;A&&A.selectedItem&&this._setSelectedItem(A.selectedItem)},
get contentElement(){for(var A=_.ii(this.$.content).getDistributedNodes(),L=0,O=A.length;L<O;L++)if(A[L].nodeType===Node.ELEMENT_NODE)return A[L]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(A){this._setSelectedItem(A.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(A){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A)===this&&this.open()},
_selectedItemChanged:function(A){var L="";A?L=A.label||A.getAttribute("label")||A.textContent.trim():L="";this.value=L;this._setSelectedItemLabel(L)},
_computeMenuVerticalOffset:function(A,L){return L?L:A?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var A=this.opened?"true":"false",L=this.contentElement;L&&L.setAttribute("aria-expanded",A)}});_.uT=new _.PF("navigateAction");var IWS=new _.PF("formRenderer");var Ts=function(){var A=_.wd.apply(this,arguments)||this;A.showInput=!1;return A};
_.g(Ts,_.wd);_.P=Ts.prototype;_.P.detached=function(){this.showInput&&window.removeEventListener("click",_.tT(this,this.closeOnOutsideClick_))};
_.P.stopPropagation_=function(A){this.showInput&&A.stopPropagation()};
_.P.closeOnOutsideClick_=function(A){this.closeOnOutsideClickCondition(A)&&(this.showInput=!1,window.removeEventListener("click",_.tT(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.P.closeOnOutsideClickCondition=function(){return!0};
_.P.closeOnOutsideClickHandler=function(){};
_.P.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.tT(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.P.openOnClickHandler=function(){};
_.P.showInputChanged=function(){};
_.P.setShowInput=function(A){this.showInput=A};
Ts.prototype.setShowInput=Ts.prototype.setShowInput;Ts.prototype.showInputChanged=Ts.prototype.showInputChanged;Ts.prototype.openOnClickHandler=Ts.prototype.openOnClickHandler;Ts.prototype.openOnClick_=Ts.prototype.openOnClick_;Ts.prototype.closeOnOutsideClickHandler=Ts.prototype.closeOnOutsideClickHandler;Ts.prototype.closeOnOutsideClickCondition=Ts.prototype.closeOnOutsideClickCondition;Ts.prototype.closeOnOutsideClick_=Ts.prototype.closeOnOutsideClick_;Ts.prototype.stopPropagation_=Ts.prototype.stopPropagation_;
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Ts.prototype,"showInput",void 0);_.I([_.by("click"),_.by("keydown"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],Ts.prototype,"stopPropagation_",null);_.I([_.hT("showInput"),_.Z("design:type",Function),_.Z("design:paramtypes",[Boolean]),_.Z("design:returntype")],Ts.prototype,"showInputChanged",null);_.I([_.p4()],Ts);_.y0M=[Ts.prototype];var Zr$;var jeJ;var Vp=function(){return _.G.apply(this,arguments)||this};
_.g(Vp,_.G);_.P=Vp.prototype;_.P.computePreselectedOption=function(A,L){return L===this.itemSelected_?A:void 0};
_.P.dataChanged_=function(){var A=this;this.preselectedSubreason=this.itemSelected_=-1;var L;(L=this.data)!=null&&L.key&&_.kd(this,function(){var O,X=Number((O=A.data)==null?void 0:O.key);!Number.isNaN(X)&&(A.itemSelected_=X,O=(O=(A.data.items||[])[X])&&O.optionSelectableItemRenderer&&O.optionSelectableItemRenderer.preselectedIndex)&&(A.preselectedSubreason=O)})};
_.P.isSubReasonHidden_=function(A,L){return A!=L};
_.P.onTopItemSelected_=function(A,L){for(var O=_.YJ(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),X=0,x=O.length;X<x;X++)O[X].select(0);_.dQ(this.hostElement,"yt-report-form-update",[L.item.value]);A.stopPropagation()};
_.P.onItemSelected_=function(A,L){_.dQ(this.hostElement,"yt-report-form-update",[L.item.value]);A.stopPropagation()};
_.P.getItem_=function(A){return A.serviceItem?A.serviceItem:A.navigationItem?A.navigationItem:A.optionSelectableItemRenderer?A.optionSelectableItemRenderer:null};
_.P.computeText_=function(A){return(A=this.getItem_(A))?this.ytRendererBehavior.getSimpleString(A.text):null};
_.P.validate=function(){return this.itemSelected_!==-1};
_.P.computeAriaLabel_=function(A){var L=_.vG(A.text);(A=A.accessibility&&A.accessibility.accessibilityData&&A.accessibility.accessibilityData.label)&&(L+=". "+A);return L};
_.P.computeItemSelected_=function(A){return A};
_.P.preventSelection_=function(A){A.stopPropagation();this.tooltipTapped=!0};
_.P.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.P.updateItemSelectedFromBinding=function(A){this.itemSelected_=A.detail.value};
_.P.save=function(){var A;this.validate()&&(A=this.data)!=null&&A.items&&(A=this.data.items[this.itemSelected_],A!=null&&A.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(A.optionSelectableItemRenderer.submitEndpoint)||_.TZ(this.hostElement,[A.optionSelectableItemRenderer.submitEndpoint])))};
Vp.prototype.onPaperRippleTransitionEnd_=Vp.prototype.onPaperRippleTransitionEnd_;Vp.prototype.dataChanged_=Vp.prototype.dataChanged_;_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],Vp.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Vp.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Vp.prototype,"data",void 0);_.I([_.K({value:-1}),_.Z("design:type",Number)],Vp.prototype,"itemSelected_",void 0);
_.I([_.K({computed:"computeItemSelected_(itemSelected_)"}),_.Z("design:type",Number)],Vp.prototype,"value",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],Vp.prototype,"restoreFocusOnClose",void 0);_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],Vp.prototype,"tooltipTapped",void 0);_.I([_.K({value:-1}),_.Z("design:type",Number)],Vp.prototype,"preselectedSubreason",void 0);
_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Vp.prototype,"dataChanged_",null);_.I([_.by("transitionend"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Vp.prototype,"onPaperRippleTransitionEnd_",null);_.I([_.yU({is:"yt-options-renderer",disableElementRegistration:!0})],Vp);
_.m(Vp,"yt-options-renderer",function(){if(jeJ===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;Zr$===void 0&&(Zr$=document.createElement("template"));var X=Zr$;O.call(L,X.content.cloneNode(!0),A.content.firstChild);jeJ=A}A=jeJ;return A},{mode:2});var WvB;var HrM;var zUM;var BFJ;var MIJ;var $DS;var DL=function(){return _.G.apply(this,arguments)||this};
_.g(DL,_.G);DL.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
DL.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
DL.prototype.onTap=function(A){if(this.hostElement.classList.contains("selected")||_.u3(this.hostElement,"yt-share-panel-can-select-contact-action"))A&&A.detail&&(A.detail.x||A.detail.y)&&_.YJ(this.hostElement).querySelector("#target").blur(),(A=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),A={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:A?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.dQ(this.hostElement,"yt-share-panel-select-contact-action",[A])};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],DL.prototype,"ytRendererBehavior",void 0);_.I([_.K({observer:"onDataChanged"}),_.Z("design:type",Object)],DL.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.Z("design:type",String)],DL.prototype,"componentTitle",void 0);_.I([_.qR("#thumbnail"),_.Z("design:type",Object)],DL.prototype,"thumbnail",void 0);_.I([_.yU({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],DL);
_.m(DL,"yt-enrolled-contact-renderer",function(){if($DS===void 0){var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;MIJ===void 0&&(MIJ=document.createElement("template"));var X=MIJ;O.call(L,X.content.cloneNode(!0),A.content.firstChild);$DS=A}A=$DS;return A},{mode:2});var aWB;var kVM;var eL=function(){return _.G.apply(this,arguments)||this};
_.g(eL,_.G);eL.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
eL.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
eL.prototype.onTap=function(A){if(this.hostElement.classList.contains("selected")||_.u3(this.hostElement,"yt-share-panel-can-select-contact-action"))A&&A.detail&&(A.detail.x||A.detail.y)&&_.YJ(this.hostElement).querySelector("#target").blur(),(A=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),A={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:A?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.dQ(this.hostElement,"yt-share-panel-select-contact-action",[A])};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],eL.prototype,"ytRendererBehavior",void 0);_.I([_.K({observer:"onDataChanged"}),_.Z("design:type",Object)],eL.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.Z("design:type",String)],eL.prototype,"componentTitle",void 0);_.I([_.qR("#thumbnail"),_.Z("design:type",Object)],eL.prototype,"thumbnail",void 0);_.I([_.yU({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],eL);
_.m(eL,"yt-suggested-contact-renderer",function(){if(kVM===void 0){var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;aWB===void 0&&(aWB=document.createElement("template"));var X=aWB;O.call(L,X.content.cloneNode(!0),A.content.firstChild);kVM=A}A=kVM;return A},{mode:2});var E3=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"yt-share-panel-reset-action":"onReset"};return A};
_.g(E3,_.G);E3.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"}}}}}};
E3.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.dQ(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
E3.prototype.onReset=function(){for(var A=_.YJ(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),L=A.length-1;L>=0;L--)A[L].classList.toggle("selected")};
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],E3.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],E3.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],E3.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K({observer:"onDataChanged"}),_.Z("design:type",Object)],E3.prototype,"data",void 0);
_.I([_.yU({is:"yt-contact-section-renderer",disableElementRegistration:!0})],E3);
_.m(E3,"yt-contact-section-renderer",function(){if(BFJ===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;zUM===void 0&&(zUM=document.createElement("template"));var X=zUM;O.call(L,X.content.cloneNode(!0),A.content.firstChild);BFJ=A}A=BFJ;return A},{mode:2});var nk=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return A};
_.g(nk,_.G);_.P=nk.prototype;_.P.configureRendererStamper=function(){return{"data.fields":{id:"fields",mapping:{textInputFormFieldRenderer:{component:"yt-text-input-form-field-renderer",params:{required:!0},properties:{hideLabel:"[[data.hideLabels]]"}},toggleFormFieldRenderer:{component:"yt-toggle-form-field-renderer"},optionsRenderer:"yt-options-renderer",contactSectionRenderer:"yt-contact-section-renderer"}}}};
_.P.onYtRefreshFormCommand=function(A){var L;(A=_.q((L=_.q(A,_.nI3))==null?void 0:L.formRenderer,IWS))&&this.set("data",A)};
_.P.reset=function(){var A=_.YJ(this.hostElement).querySelector("#fields").children;A=_.d(A);for(var L=A.next();!L.done;L=A.next())L=L.value,L.reset&&L.reset()};
_.P.getForm=function(){var A={},L=_.YJ(this.hostElement).querySelector("#fields").children;L=_.d(L);for(var O=L.next();!O.done;O=L.next()){O=O.value;if(!O.validate())return null;A[O.data.key]=O.value}return A};
_.P.submitFormFields=function(){if(this.fields)for(var A=_.d(this.fields),L=A.next();!L.done;L=A.next())L=L.value,L.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?L.save():L.nodeName==="YT-OPTIONS-RENDERER"&&L.save()};
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],nk.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],nk.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],nk.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],nk.prototype,"data",void 0);_.I([_.gd("#fields > *"),_.Z("design:type",Array)],nk.prototype,"fields",void 0);
_.I([_.yU({is:"yt-form-renderer",disableElementRegistration:!0})],nk);
_.m(nk,"yt-form-renderer",function(){if(HrM===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;WvB===void 0&&(WvB=document.createElement("template"));var X=WvB;O.call(L,X.content.cloneNode(!0),A.content.firstChild);HrM=A}A=HrM;return A},{mode:2});var UDX;var tP=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return A};
_.g(tP,_.G);tP.prototype.onCheckboxChange=function(A){this.data&&(A=(this.checked=_.AT(A).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.X5().resolve(_.x$).resolveCommand(A,{form:{element:this.hostElement}})};
tP.prototype.handleUpdateCheckboxCommand=function(A){(A=_.q(A,_.FZN))&&this.data&&this.data.id===A.id&&(this.set("data.disabled",A.disabled),this.set("data.title",A.title))};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],tP.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],tP.prototype,"ytActionHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],tP.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Boolean)],tP.prototype,"checked",void 0);_.I([_.Q({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],tP);
_.m(tP,"ytd-settings-checkbox-renderer",function(){if(UDX!==void 0)return UDX;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return UDX=A},{mode:1});var vNJ;var bT=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return A};
_.g(bT,_.G);bT.prototype.dataChanged=function(){var A=this,L;return _.u(function(O){if(O.nextAddress==1)return A.radio.removeAttribute("checked"),!A.data||!A.data.id||A.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.c0n()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(L=A.data&&A.data.id)?O.yield(FvJ(A.data.id),4):O.jumpTo(3):(A.set("data.hidden",!0),O.jumpTo(0));O.nextAddress!=3&&(L=O.yieldResult);L&&_.dQ(A.hostElement,"yt-select-settings-radio-option",[A.data.id]);_.qo(O)})};
bT.prototype.onButtonChanged=function(A){_.AT(A).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.X5().resolve(_.x$).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.dQ(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
bT.prototype.onSelectOption=function(A){this.data&&this.data.id&&(this.data.id===A?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
bT.prototype.dataChanged=bT.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],bT.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],bT.prototype,"ytActionHandlerBehavior",void 0);_.I([_.qR("#radio"),_.Z("design:type",Object)],bT.prototype,"radio",void 0);_.I([_.K(),_.Z("design:type",Object)],bT.prototype,"data",void 0);
_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype",Promise)],bT.prototype,"dataChanged",null);_.I([_.Q({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],bT);
_.m(bT,"ytd-settings-radio-option-renderer",function(){if(vNJ!==void 0)return vNJ;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return vNJ=A},{mode:1});var oNQ;var hP=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return A};
_.g(hP,_.G);
hP.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"}}}};
hP.prototype.handleUpdateTextCommand=function(A){(A=_.q(A,_.Rj3))&&this.data&&this.data.id===A.id&&this.set("data",A)};
hP.prototype.handleUpdateConnectedAppRendererCommand=function(A){if(_.q(A,_.fP7)&&this.data){var L,O;if(A=(L=_.q(A,_.fP7))==null?void 0:(O=L.newConnectedAppRenderer)==null?void 0:O.connectedAppRenderer)this.data=A}};
hP.prototype.computeConnectedAppStyle=function(A){return A.style?A.style.toLowerCase().replace(/_/g,"-"):""};
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],hP.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],hP.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],hP.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],hP.prototype,"data",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.Z("design:type",String)],hP.prototype,"connectedAppStyle",void 0);_.I([_.Q({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],hP);
_.m(hP,"ytd-connected-app-renderer",function(){if(oNQ!==void 0)return oNQ;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return oNQ=A},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.cq("iuT5Oc");

_.C$();
}catch(e){_._DumpException(e)}
try{
_.cq("L3n37");
var XO2=function(A){return A.watch.isLearningJourneyActive},xOE=_.tI(115994),sZa=_.tI(115993),JjW=function(A,L,O){var X=this;
var x=O.dragDownAction;this.layer=0;this.JSC$24049_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return X.dragDownAction()}}}};
this.JSC$24049_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return X.dragDownAction()}}}};
this.fullscreen=!1;var J=_.iV();_.qB(J,xOE,this.layer);_.qB(J,sZa,this.layer);this.dragDownAction=function(){x();_.k4(J,{visualElement:X.fullscreen?xOE:sZa})};
this.gesture=new _.e$(A,L,this.JSC$24049_watchConfig,"pandown");this.attach()};
JjW.prototype.attach=function(){this.gesture.attach()};
JjW.prototype.detach=function(){this.gesture.detach()};
JjW.prototype.update=function(A){this.fullscreen=A;this.gesture.config=A?this.JSC$24049_watchFullScreenConfig:this.JSC$24049_watchConfig};var PKW=function(A){_.bf.call(this);var L=this;this.rootElement=A;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return L.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(O){L.initOrDisposeActiveModules(O)}));
this.onAttached()};
_.g(PKW,_.bf);_.P=PKW.prototype;_.P.getRoot=function(){return this.rootElement};
_.P.getElement=function(A){return this.rootElement.getElement(A)};
_.P.setPlayerResponse=function(A){this.playerResponse=A;this.publish("PLAYER_RESPONSE_UPDATED",A)};
_.P.getPlayerResponse=function(){return this.playerResponse};
_.P.setWatchNextResponse=function(A){this.watchNextResponse===A?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=A,this.publish("WATCH_NEXT_RESPONSE_UPDATED",A))};
_.P.getWatchNextResponse=function(){return this.watchNextResponse};
_.P.registerActionHandler=function(A,L){var O=this;if(_.h("web_watch_controller_reg_multiple_handlers_killswitch")){var X={};_.Bh(_.zu.getInstance(),(X[A]=L,X),this.getRoot())}else this.actionHandlers.has(A)||(this.actionHandlers.set(A,[]),X={},_.Bh(_.zu.getInstance(),(X[A]=function(){var x=_.f_.apply(0,arguments);return(O.actionHandlers.get(A)||[]).map(function(J){return J.apply(null,_.le(x))})},X),this.getRoot())),this.actionHandlers.get(A).push(L)};
_.P.unregisterActionHandler=function(A){if(_.h("web_watch_controller_reg_multiple_handlers_killswitch")){var L={};_.Md(_.zu.getInstance(),(L[A]=!0,L),this.getRoot())}else(L=this.actionHandlers.get(A))?(L.pop(),L.length===0&&(L={},_.Md(_.zu.getInstance(),(L[A]=!0,L),this.getRoot()),this.actionHandlers.delete(A))):_.Rv(new _.pe("Attempted to unregister an action handler which is not registered.",A))};
_.P.addPageDisposeJob=function(A){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.gep(this.rootElement.pageDisposeJobs,A)};
_.P.removePageDisposeJob=function(A){this.rootElement.pageDisposeJobs&&_.y_(this.rootElement.pageDisposeJobs,A)};
_.P.dispatchEvent=function(A,L){_.P4(this.rootElement,A,L)};
_.P.provideRenderingData=function(A,L){this.rootElement.provideRenderingData(A,L)};
_.P.scrollWatchTo=function(A,L){var O;(O=this.watchScrollManager)==null||O.scrollWatchTo(A,L)};
_.P.focusOnPlayer=function(){var A=this.getElement("PLAYER");_.kd(A,function(){if(A&&A.firstElementChild){var L=A.querySelector(".html5-video-player");L&&(_.dU(_.X5().resolve(_.m4)),L.focus())}else _.Rv(Error("Ao"))})};
_.P.updateCinematicFullscreenConfig=function(){var A=!!this.rootElement.theater,L=!!this.rootElement.fullscreen,O;(O=this.watchCinematicManager)==null||_.QA(O,L,A)};
_.P.subscribeToActiveChanged=function(A,L){L=L===void 0?!0:L;var O=_.Ge(_.Ai(),XO2,function(X){A(X)});
L&&A(XO2(_.Ai().getState()));return O};
_.P.isActive=function(){return XO2(_.Ai().getState())};
_.P.onAttached=function(){var A=_.h("external_fullscreen");_.h("use_unified_flag_accessor")&&(A=_.X5().resolve(_.NwM).retriever.getFlag(_.puu));(A||_.fB("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.P.initPersistentModules=function(){if(_.h("kevlar_watch_flexy_theater_manager")){var A=new _.TX3(this);_.VI(this,A)}A=new _.v8f(this);_.VI(this,A);A=new _.Cf(this);_.VI(this,A);A=new _.$Yo(this);_.VI(this,A);A=new _.r0W(this);_.VI(this,A);A=new _.FR(this);_.VI(this,A);_.h("kevlar_watch_flexy_playlist_manager")&&(A=new _.lW_(this),_.VI(this,A))};
_.P.initOrDisposeActiveModules=function(A){A?(this.watchScrollManager=new _.IB(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.DDf(this)),this.activeModules.push(new _.DFa(this)),this.activeModules.push(new _.mDP(this)),this.activeModules.push(new _.J0P(this)),_.h("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.bmP(this)),this.activeModules.push(new _.hU0(this)),_.h("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.IWD(this)),
_.h("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.rgg(this)),_.h("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.CsP(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.h("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.wua(this)),_.h("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.kXf(this)),A=_.h("swatcheroo_directly_provide_comments")&&this.getRoot().is===
"ytd-watch-grid",_.h("kevlar_watch_flexy_comments_manager")&&!A&&this.activeModules.push(new _.WKB(this)),_.h("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.l4o(this)),this.activeModules.push(new _.hYf(this)),this.activeModules.push(new _.ENa(this)),_.h("web_enable_timely_actions")&&this.activeModules.push(new _.wqa(this)),_.h("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.BzE(this)),_.h("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.mFw(this)),
_.h("web_fullscreen_components")&&this.activeModules.push(new _.gTP(this)),_.h("web_player_rtr_ctrls")&&this.activeModules.push(new _.$FW(this))):(_.Ag(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.P.disposeInternal=function(){_.bf.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.v2.Object.defineProperties(PKW.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var dOo={},Ytw=["learning-journey-engagement-panel","PAlearning_chat"];
dOo.YtdLearningJourneyWatchBehavior=[_.B.YtRendererBehavior,_.LE.YtPlayerListenerBehavior,_.Db.YtRendererstamperBehavior,_.es.YtActionHandlerBehavior,_.Gr.YtPageBehavior,_.Nr.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 _.fB("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.h("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 _.fB("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 _.h("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.h("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 _.PO("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.PO("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!_.h("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.h("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 _.h("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("web_watch_fullerscreen_deprecation_ui")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("web_watch_rounded_player_large")||_.h("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 _.h("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.h("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("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 _.h("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.h("web_watch_while_panel_margin")}},
watchWhilePanelsActive:{type:Boolean,reflectToAttribute:!0,computed:"computeWatchWhilePanelsActive(fixedPanels, panelsBesidePlayer)"},noBorderOnChat:{type:Boolean,computed:"computeNoBorderOnChat(watchWhilePanelsActive)"},forceDarkPanelTheme:{type:Boolean,computed:"computeForceDarkPanelTheme(panelsBesidePlayer)"},hasMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeHasMetadata(videoPrimaryInfoRenderer)"},watchWhileWindowSizeSufficient:{type:Boolean,observer:"watchWhileWindowSizeSufficientChanged"},
thumbnailToWatchTransition:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);updateChatLocation(liveChatPresentAndExpanded);watchNextSecondaryResultsChanged(data)".split(";"),monitorScroll:!0,configureRendererStamper:function(){return{info:{id:"info-contents",
mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",
properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},
tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},
clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},
initialRenderPriority:3,waitForSignal:_.AP(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.AP(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},
singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},learningJourneyEngagementPanels:{id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0,learningChatEngagementPanel:!0}}}},nonLearningJourneyEngagementPanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}}},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var A=this;this.watchController=void 0;this.pageDisposeJobs=[function(){A.showMetadataPlaceholder_()},
function(){_.h("web_watch_dont_clear_comments")||A.clearComments_()},
function(){A.clearPlayerAds_()},
function(){A.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;_.h("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.h("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new _.c8J(function(){return _.Pm(A)},this.hostElement);
this.pageDisposeJobs.push(function(){A.youThereManager_.reset()});
_.h("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){A.resetFullerscreenEduButtonForNewPlayback_()}));
_.h("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.bh;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;_.h("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.h("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));_.h("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.tT(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(A){A&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:A}),A.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(A){_.h("kevlar_watch_flexy_theater_manager")&&(this.theater=A,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.h("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(A){!_.h("kevlar_watch_while_v2")&&!_.h("web_watch_pip")||A||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(A){this.active!==void 0&&(this.fullscreen=A,_.h("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(A){this.active!==void 0&&(_.P4(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.h("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.h("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(A>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(A){this.initCsi_();this.updatePageData_(A)},
updatePageData_:function(A){var L=this;if(A)if(this.data===A){this.onPageLoadWithSameData_();var O;(O=this.watchController)==null||O.setWatchNextResponse(this.data)}else this.data=A;this.playlist&&_.CM({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Rk("nw");this.loading=!1;_.p7(_.c1,function(){L.initDclkstatus_();var X,x=((X=L.player)==null?void 0:X.getVideoData().cpn)||"";_.nLE(function(J,Y){_.COM(J,Y,x)})})},
onPageLoadWithSameData_:function(){_.h("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 A=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!A);this.set("loadingData.playlistLoading",A&&A!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),A=this.watchNextSkeletonEl_.firstElementChild;A;)A.classList.remove("hidden"),A=A.nextElementSibling;var L,O,X;A=(L=this.loadingData)==null?void 0:(O=L.endpoint)==null?void 0:(X=O.watchEndpoint)==null?void 0:X.videoId;var x;A&&(x="https://i.ytimg.com/vi/"+A+"/frame0.jpg");_.YJ(this.hostElement).querySelector("#player").style.backgroundImage=x?"url("+x+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var A=_.YJ(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&A&&(A.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var L,O;(O=(L=this.watchMetadata).updateSentimentBarWidth)==
null||O.call(L);var X,x;(x=(X=this.watchMetadata).resize)==null||x.call(X)}_.YJ(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(A){var L=_.YJ(this.hostElement).querySelector(A);L?_.xK(L,!1):_.Rv(new _.pe("Overscroll monitor not found for component: ",A))},
removeSplitScrollMouseTrap:function(A){var L=_.YJ(this.hostElement).querySelector(A);L?_.Jz(L):_.Rv(new _.pe("Disposal component for  overscroll monitoring not found: ",A))},
onLoadingChanged_:function(A){A?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(A){var L=this;A?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.c1.addLowPriorityJob(function(){L.onWindowResized_(_.NT(!0))})},
updateTheaterModeState_:function(A){if(!_.h("kevlar_watch_flexy_theater_manager")){A=A||this.fullWindowMode_;if(this.theater!==void 0||A)this.theater=A;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();A&&_.neJ()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var A=this.theater;_.h("external_fullscreen")&&this.fullscreen&&(A=!0);A=A?_.YJ(this.hostElement).querySelector("#player-full-bleed-container"):_.YJ(this.hostElement).querySelector("#player-container-inner");var L=this.getPlayerContainer(),O=_.h("kevlar_watch_while_v2")||_.h("web_watch_pip");L.parentElement!==A&&(O&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.Pm(this).appendTo(A,L),A.appendChild(_.YJ(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var A=this;return _.u(function(L){if(L.nextAddress==1)return L.yield(_.X5().resolve(_.z_).deactivate(),2);A.updatePlayerLocation();_.qo(L)})},
updateCinematicsLocation:function(){var A=this.getElement("CINEMATICS");if(A){var L=this.getCinematicsLocationContainer();A.parentElement!==L&&L.appendChild(A);var O;(O=this.watchController)==null||O.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.YJ(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.YJ(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(A,L){var O=document.documentElement.hasAttribute("dark"),X=O&&_.h("web_cinematic_theater_mode"),x=O&&_.h("web_cinematic_fullscreen");O=!O&&this.cinematicLightTheme;return A&&X||L&&x||(L||A)&&O},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var A;(A=this.watchController)==null||A.setWatchNextResponse(this.data);_.h("kevlar_watch_flexy_comments_manager")||this.initComments_();_.h("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.X5().resolve(_.$q).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.h("web_watch_start_chat_in_theater_mode")){var L,
O,X;if((L=this.data)==null?0:(O=L.contents)==null?0:(X=O.twoColumnWatchNextResults)==null?0:X.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var x,J;((x=this.data)==null?0:(J=x.contents)==null?0:J.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(A){var L;(L=this.watchController)==null||L.setPlayerResponse(this.playerData);A&&A.playabilityStatus&&(L=this.isVideoPlayable_(A.playabilityStatus,this.getPlayerOverlays_(this.data)),A=this.isLiveStreamOffline_(A.playabilityStatus),L&&!A||_.kd(this,function(){_.Rk("pbu")}));
this.setPlayerAds_();_.YK(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(A){_.Ai().dispatch(_.JY({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));A?this.activate_():this.deactivate_()},
attached:function(){var A=this;this.watchController=new PKW(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.h("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var L=_.Pm(this);_.h("kevlar_disable_prepare_player")||L.preparePlayer();_.h("kevlar_watch_flexy_playlist_manager")||_.X5().resolve(_.$q).setPlayer(L);this.updatePageMediaQueries();L={"--ytd-watch-flexy-scrollbar-width":_.U5()+
"px"};!_.PO("kv_pl_mx_sz_ks")&&_.PO("kevlar_watch_max_player_width")&&(L["--ytd-watch-flexy-max-player-width-wide-screen"]=_.UNP+"px");_.PO("kevlar_watch_flexy_metadata_height")&&(L["--ytd-watch-flexy-space-below-player"]=_.vVW+"px");this.safeUpdateStyles(L);_.h("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new JjW(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return A.onPlayerTouchPanDown_()}}));
_.h("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.YJ(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var A=_.U5(),L=_.Zp+A,O=L;this.fixedPanels&&(L+=_.kj3);var X=657+A;A=1327+A;_.YJ(this.hostElement).querySelector("#two-column-query").query="(min-width: "+L+"px)";_.YJ(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(X+"px), (min-height: 630px) and (min-width: ")+(L+"px) and (max-width: ")+(A+"px)");_.YJ(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(A+"px)");
_.YJ(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+O+"px)"},
calculateCurrentPlayerSize_:function(){var A=_.YJ(this.hostElement).querySelector("#miniplayer-bar").firstChild;return A&&A.active||this.theater||_.h("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.bW(NaN,NaN):_.qsg(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.qsg(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.oo(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var A=this;this.onWindowResized_(_.NT());_.h("browse_skeleton_removal_on_watch_killswitch")||_.fB("IS_SHELL_LOAD")&&_.OiJ();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var L=_.Pm(this);L.addEventListener("yt-player-updated",_.tT(this,this.onPlayerUpdated_));L.getPlayerPromise().then(function(O){A.playerApiReady_(O)});
_.h("kevlar_watch_flexy_playlist_manager")||(L=_.X5().resolve(_.$q),_.h("kevlar_watch_observe_playlist_navigations_killswitch")&&L.addEventListener("yt-navigate",_.tT(this,this.onYtNavigate_)),L.setPlaylistComponent(_.YJ(this.hostElement).querySelector("#playlist")),L.addEventListener("yt-playlist-data-updated",_.tT(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.c1.addLowPriorityJob(function(){_.P4(A.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.Pm(this).removeEventListener("yt-player-updated",_.tT(this,this.onPlayerUpdated_));if(!_.h("kevlar_watch_flexy_playlist_manager")){var A=_.X5().resolve(_.$q);_.h("kevlar_watch_observe_playlist_navigations_killswitch")&&A.removeEventListener("yt-navigate",_.tT(this,this.onYtNavigate_));A.cancelVideoSkip();A.removeEventListener("yt-playlist-data-updated",_.tT(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.h("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.P4(this.hostElement,"yt-autonav-pause-player",!1);A=_.O0();_.h("kevlar_exit_fullscreen_leaving_watch")&&A&&_.Xz(A)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(A){this.player&&this.player.updateVideoData({rvs:A.rvs})},
getPageContents:function(A){return A&&A.contents&&A.contents.twoColumnWatchNextResults&&A.contents.twoColumnWatchNextResults.results&&A.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(A){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",A)},
onRetrieveLocation_:function(A,L){L.hasComments?L.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):L.locationRetrieved("/related_ajax",void 0);A.stopPropagation()},
onSubscriptionChanged_:function(A,L){this.player&&(L?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.KK("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.YJ(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.YJ(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(A){this.player=A;this.setPlayerState(A.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.h("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.h("kevlar_unified_player")||_.h("kevlar_player_new_bootstrap_adoption"))&&_.Uf()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(A,L){L=L===void 0?!0:L;_.O0()&&_.h("external_fullscreen")&&_.Xz(document.documentElement);this.theaterRequested_=A;L&&_.Sh("wide",A?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.h("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.dQ(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.P4(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(A){_.Q$(A,typeof this.player),this.player&&_.Q$(A,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var A;((A=this.player)==null?0:A.isFullscreen())?this.player.toggleFullscreen():_.dQ(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(A,L){return this.loading?L:!!Object.keys(A).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(A){if(A){A=_.d(A);for(var L=A.next();!L.done;L=A.next())L=L.value,L.youThereRenderer&&_.RfP(this.youThereManager_,L.youThereRenderer)}},
setPlaylistData_:function(A){return A||{}},
userEngagementConfigDataChanged_:function(A){if(A)if(A.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var L=this.youThereManager_;_.xw()<A.lowEngagementThresholdMs||_.IJg(L,!0)}else A.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.dQ(this.hostElement,"yt-autonav-pause-user-engagement",[A])},
isPlayerUnavailable_:function(A,L,O){return!!A&&!this.isVideoPlayable_(A,O)&&!L},
getPlayerOverlays_:function(A){return(A==null?void 0:A.playerOverlays)||null},
isVideoPlayable_:function(A,L){if(!A)return!1;var O=A.status==="OK"||A.status==="LIVE_STREAM_OFFLINE",X=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",A)||this.get("errorScreen.ypcTrailerRenderer",A);A=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",A);var x;L=L==null?void 0:(x=L.playerOverlayRenderer)==null?void 0:x.gatedActionsOverlayRenderer;return!!O||!!X||!!A||!!L},
hasWatchNextResponseErrorRenderer:function(A){var L=this.getPageContents(A),O,X,x,J,Y;return!(A==null?0:(O=A.contents)==null?0:(X=O.twoColumnWatchNextResults)==null?0:X.secondaryResults)&&!!((x=L[0])==null?0:(J=x.itemSectionRenderer)==null?0:(Y=J.contents[0])==null?0:Y.backgroundPromoRenderer)},
isLiveStreamOffline_:function(A){return A?A.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(A,L,O){var X=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",L),x=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];x=_.h("web_no_skip_video_on_verification_checks")?(A==null?void 0:A.status)&&x.includes(A.status):A&&A.status==="AGE_CHECK_REQUIRED";var J=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",A);J==void 0&&(J=!0);!O||this.isVideoPlayable_(A,this.getPlayerOverlays_(L))||
X||x||!J||_.X5().resolve(_.$q).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.wYf()},
onPlayerFeedbackStartRequest_:function(A){_.dQ(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:A}])},
onPlayerFeedbackArticleRequest_:function(A){_.dQ(this.hostElement,"yt-help-dialog-requested",[A])},
onPlayerYpcContentRequest_:function(){var A,L,O,X,x,J,Y,T,V=((A=this.data)==null?NaN:(L=A.contents)==null?NaN:(O=L.twoColumnWatchNextResults)==null?NaN:(X=O.secondaryResults)==null?NaN:(x=X.secondaryResults)==null?NaN:(J=x.offerModule)==null?NaN:(Y=J.tvfilmOfferModuleRenderer)==null?NaN:(T=Y.actionButtons)==null?NaN:T.length)-1;A=[".offerButton.buttonRenderer.",".actionButtons."+(V>=0?V:0)+".buttonRenderer."];L=_.d(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(O=L.next();!O.done;O=L.next())for(O=O.value,X=_.d(A),x=X.next();!x.done;x=X.next())if(x="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+O+x.value,x=this.get(x+"navigationEndpoint",this.data)||this.get(x+"serviceEndpoint",this.data)||this.get(x+"command",this.data)){_.qb(x,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(A){_.P4(this.hostElement,"yt-autonav-pause-player",A)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(A){A()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(A){switch(A){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(A){switch(A){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.P4(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(A)},
setPlayerState:function(A){_.Ai().dispatch(_.fRV(A))},
onPlayerSubscribe_:function(A){_.dQ(this.hostElement,"yt-player-subscribe",[A])},
onPlayerUnsubscribe_:function(A){_.dQ(this.hostElement,"yt-player-unsubscribe",[A])},
onPlayerAdYtShowToast_:function(A){_.dQ(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:A.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(A){if(A)return A},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(A){return!_.h("web_watch_move_summary_to_sd")&&!!A},
computeWatchMetadataRefresh:function(){return _.h("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var A,L,O,X;this.watchNextSecondaryResults=(A=this.data)==null?void 0:(L=A.contents)==null?void 0:(O=L.twoColumnWatchNextResults)==null?void 0:(X=O.secondaryResults)==null?void 0:X.secondaryResults}},
setRichGridRendererData:function(A){this.richGridRendererData=A},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var A,L=(A=this.data)==null?void 0:A.engagementPanels;if(L==null?0:L.length){A=null;L=_.d(L);for(var O=L.next();!O.done;O=L.next()){O=O.value;var X=void 0;if(((X=O.engagementPanelSectionListRenderer)==null?void 0:X.targetId)==="engagement-panel-structured-description"){A=O;break}}var x,J,Y;A=(x=A)==null?void 0:(J=x.engagementPanelSectionListRenderer)==null?void 0:(Y=J.content)==null?void 0:Y.structuredDescriptionContentRenderer;if(A==null?0:A.items){x=
[];J=_.d(A.items);for(Y=J.next();!Y.done;Y=J.next()){Y=Y.value;if(!_.h("sd_horizontal_list_show_nav_killswitch")){var T=X=O=L=A=void 0,V=void 0,E=(A=Y.horizontalCardListRenderer)==null?void 0:(L=A.header)==null?void 0:(O=L.richListHeaderRenderer)==null?void 0:(X=O.navigationButton)==null?void 0:(T=X.buttonRenderer)==null?void 0:(V=T.command)==null?void 0:V.commandExecutorCommand;E&&E.commands&&(E.commands=E.commands.filter(function(n){return!_.q(n,_.V3o)}))}Y.expandableVideoDescriptionBodyRenderer||
Y.videoDescriptionHeaderRenderer||x.push(Y)}return{items:x}}}},
constructWarning_:function(A){return{text:_.Ue(A),type:"WARNING"}},
isPlaShelfEnabled_:function(A){if((this.get("adPlacements",A)||[]).length)return!0;A=this.get("playerAds",A)||[];return!(!A.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",A[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var A=this;_.P4(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.h("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var L=this.getScrollTop()>0;this.gestures_&&(L?this.gestures_.detach():this.gestures_.attach());L!==this.showFullerscreenEdu_&&_.h("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=L,_.Pm(this).getPlayerPromise().then(function(O){O.updateFullerscreenEduButtonVisibility(A.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.P4(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var A=this;this.commentsReady=!1;_.c1.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.p7(_.c1,function(){A.setComments_()},1E3)},
setComments_:function(){if(!_.h("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Rk("cmi");_.c1.cancelJob(this.setCommentsJobId_);var A=this.getPageContents(this.data);if(A&&A.length){A=_.d(A);for(var L=A.next();!L.done;L=A.next())if(L=L.value,this.get("itemSectionRenderer.sectionIdentifier",L)==="comment-item-section"){this.comments=L.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.P4(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.h("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.h("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Rk("cmc")},
doRemoveComments_:function(){this.comments={};_.h("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.c1.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.c1.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(A,L){var O=_.q(L.endpoint,_.$O);O&&(!(L=this.get("data.currentVideoEndpoint.watchEndpoint"))||O.videoId!==L.videoId||O.playlistId&&O.playlistId!==L.playlistId||O.index!==void 0&&O.index!==L.index||typeof O.startTimeSeconds!=="number"||(A.stopPropagation(),this.setScrollTop(0),_.Pm(this).getPlayerPromise().then(function(X){var x=O.startTimeSeconds;X.seekTo(x);X.wakeUpControls();x<X.getDuration()&&X.playVideo()})))},
updatePlayerStartTime_:function(){var A=_.PkP();"t"in A&&(A=_.gLf(A.t),this.player.seekTo(A,!0))},
updateTitleFromWatchNext:function(A){A=this.getPageContents(A);var L,O;(A=_.vG(A==null?void 0:(L=A[0])==null?void 0:(O=L.videoPrimaryInfoRenderer)==null?void 0:O.title))&&_.P4(this.hostElement,"yt-update-title",A)},
updateTitle_:function(A){A=this.get("videoDetails.title",A)||"";_.P4(this.hostElement,"yt-update-title",A)},
syncWithRemoteVideo_:function(A,L,O){if(this.active&&this.player){var X=this.player.getVideoData();if(X.video_id===O&&(O=X.list,_.h("polymer_enable_mdx_queue")&&O&&O.startsWith("RQ")&&(O=void 0),X.video_id!==A||O!=L)){var x;_.h("kevlar_player_watch_endpoint_navigation")?x=_.Oge(_.t6P(A,L)):x=this.buildWatchEndpoint_(A,L);_.P4(this.hostElement,"yt-navigate",{endpoint:x,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(A,L,O){return _.Oe(A,L,O)},
initDclkstatus_:function(){_.Ssf()},
attachWatchPageSkeleton_:function(){var A=document.querySelector("#watch-page-skeleton");if(A){var L=A.querySelector("#primary-info"),O=A.querySelector("#secondary-info"),X=A.querySelector("#related");L&&_.YJ(this.hostElement).querySelector("#info-skeleton").appendChild(L);O&&_.YJ(this.hostElement).querySelector("#meta-skeleton").appendChild(O);X&&(_.YJ(this.hostElement).querySelector("#related-skeleton").appendChild(X),this.watchNextSkeletonEl_=X);_.hg(A)}},
handlePlayerUpdated_:function(){_.Pm(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(A,L){if(this.watchNextSkeletonEl_&&typeof L!=="undefined"){var O=this.watchNextSkeletonEl_.children,X=A&&A.indexSplices.length?A.indexSplices[0].index:0;A=Math.min(this.watchNextShownItems.length,O.length);L||(X=0,A=O.length);for(L=X;L<A;L++)O[L].classList.add("hidden")}},
onPlayerFullscreenChange_:function(A){_.h("external_fullscreen")||_.dQ(this.hostElement,"yt-player-fullscreen",[A.fullscreen])},
onFullscreenChange_:function(A){this.fullscreen=A;this.gestures_&&this.gestures_.update(this.fullscreen);var L=_.Pm(this);L.getPlayerPromise().then(function(O){O.setFauxFullscreen(!!_.O0())});
this.updateFullBleedElementLocations();A&&(L.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(A,L){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!L},
computeIsDonationShelfCollapsed_:function(A){return A},
computeShouldShowMerchShelf:function(A,L){return L&&!!A},
computeResponseHasComments:function(A){var L,O,X,x,J;return!!(A==null?0:(L=A.contents)==null?0:(O=L.twoColumnWatchNextResults)==null?0:(X=O.results)==null?0:(x=X.results)==null?0:(J=x.contents)==null?0:J.some(function(Y){var T;return(Y==null?void 0:(T=Y.itemSectionRenderer)==null?void 0:T.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(A,L){this.responseHasComments=this.computeResponseHasComments(this.data);return!!A&&!!Object.keys(A).length&&!L},
identity:_.Rd,onWindowResized_:function(A){this.windowSize_=A;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.h("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.h("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(A){var L=this;A&&A.type!=="dataloaded"&&A.type!=="dataupdated"||_.Pm(this).getPlayerPromise().then(function(O){var X=O.getPlayerState();X!==5&&X!==0&&(O=1/O.getVideoAspectRatio(),L.videoHeightToWidthRatio_!==O&&(L.videoHeightToWidthRatio_=O))})},
schedulePlayerSizeUpdate_:function(A){var L=this,O=_.h("kevlar_watch_while_v2")||_.h("web_watch_pip"),X=function(){if(L.watchMetadata){var x,J;(J=(x=L.watchMetadata).resize)==null||J.call(x)}_.Pm(L).getPlayerPromise().then(function(Y){if(_.h("kevlar_set_internal_player_size")){if(!O||!L.isMiniplayerActive()){var T=L.calculateCurrentPlayerSize_();Y.setInternalSize(T.width,T.height)}}else Y.setSize(NaN,NaN);_.h("kevlar_watch_while")&&L.updateWatchWhileScrollThreshold_()})};
A?X():_.fu(_.c1,X)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(A){this.set("data.survey",A.detail)},
onYtShowSurveyCommand_:function(A){this.set("data.survey",_.q(A,_.lJW).survey)},
onDownloadedVideoDeleted:function(A){var L=this,O,X;return _.u(function(x){if(x.nextAddress==1){if(!L.active||(O=L.playerData)==null||!O.offlineState||L.videoId!==A)return x.return();(X=L.player)==null||X.stopVideo();_.rm().navigatingAwayFromWatchDeletedVideo=!0;_.qb(_.N$u,L.hostElement);return x.yield(_.rm().navigationFinishPromise,2)}_.rm().navigatingAwayFromWatchDeletedVideo=!1;_.qo(x)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var A;this.theater?A=_.Z7(.5625*this.windowSize_.width,480,this.windowSize_.height-185):A=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==A&&(this.watchWhileScrollThreshold_=A,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var A=_.YJ(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&A){var L=this.windowSize_.height>=624,O=this.active?this.getScrollTop():0;!A.active&&L&&O>=this.watchWhileScrollThreshold_?(A.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):A.active&&(!L||O<this.watchWhileScrollThreshold_&&!_.O0())&&(A.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(A,L){if(A!==!0||L!==void 0){A=!_.h("live_chat_over_engagement_panels");L=_.YJ(this.hostElement).querySelector("#chat-container");var O=_.YJ(this.hostElement).querySelector("#plj-sidebar"),X=_.YJ(this.hostElement).querySelector("#panels"),x=_.YJ(this.hostElement).querySelector("#plj-panels"),J=_.YJ(this.hostElement).querySelector("#plj-playlist"),Y=_.YJ(this.hostElement).querySelector("#alerts"),T=_.YJ(this.hostElement).querySelector("#playlist"),V=_.YJ(this.hostElement).querySelector("#related"),
E=_.YJ(this.hostElement).querySelector("#donation-shelf"),n=_.YJ(this.hostElement).querySelector("#comments");this.isTwoColumns_?(Y=_.YJ(this.hostElement).querySelector("#secondary-inner"),Y.appendChild(O),O.appendChild(J),J.appendChild(T),O.appendChild(x),A&&Y.appendChild(X),_.h("web_watch_theater_chat")||Y.appendChild(L),A||Y.appendChild(X),Y.appendChild(E),Y.appendChild(V)):(A&&_.y5(X,Y),_.y5(T,Y),_.h("web_watch_theater_chat")||_.y5(L,Y),A||_.y5(X,Y),_.y5(E,Y),n&&(x&&_.y5(x,n),_.y5(V,n)));_.h("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.h("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.h("web_watch_theater_chat")){var A=_.YJ(this.hostElement).querySelector("#chat-container"),L=this.theater&&!this.fullscreen||_.h("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&L?_.h("web_watch_theater_chat_beside_player")?(L=_.YJ(this.hostElement).querySelector("#panels-full-bleed-container"),(A==null?void 0:A.parentElement)!==L&&L.append(A),this.panelsBesidePlayer=!0):_.h("web_watch_theater_fixed_chat")&&
(L=_.YJ(this.hostElement).querySelector("#columns"),(A==null?void 0:A.parentElement)!==L&&L.append(A),this.fixedPanels=!0):(_.h("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.h("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),L=_.YJ(this.hostElement).querySelector("#playlist"),A&&L?_.ZV(A,L):_.Rv(new _.pe("Missing element when updating chat location",{"chatContainer defined":!!A,"playlist defined":!!L})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(A,L){return _.h("sw_metadata_vis_toggle_ks")?!0:!!A||!!L},
computeForceDarkPanelTheme:function(A){return _.h("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&A:!1},
safeUpdateStyles:function(A){try{_.eq(this.hostElement,A)}catch(L){_.Rv(L)}},
videoHeightToWidthRatioChanged_:function(A,L){L&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.h("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(A){this.videoHeightToWidthRatio_=1/A},
computeIsVerticalVideo_:function(A){return A>=1},
computeIsFourThreeToSixteenNineVideo_:function(A){return A<=.7501&&A>=.5624},
computeIsExtraWideVideo_:function(A){return A<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.Pm(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.Pm(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.y8B(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(A){var L=_.wf(A)||0;_.gf(A,L+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var A=_.wf("yt-fullerscreen-edu-button-click-count")||0,L=_.wf("yt-fullerscreen-edu-button-shown-count")||0,O=_.PO("external_fullscreen_button_shown_threshold"),X=A>=_.PO("external_fullscreen_button_click_threshold")||L>=O;_.Pm(this).getPlayerPromise().then(function(x){x.updateFullerscreenEduButtonSubtleModeState(X)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(A,L){return L},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.X5().resolve(_.$q).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var A=this;this.panelMaxHeightUpdateJob_&&_.c1.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.c1.addLowPriorityJob(function(){A.panelMaxHeightUpdateJob_=0;var L;!A.isTwoColumns_||A.theater||A.fullscreen?L=460:L=A.calculateNormalPlayerSize_().height;var O=L+"px";_.h("live_chat_taller_height")&&!A.theater&&(O="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.h("live_chat_medium_height")&&
!A.theater&&(O="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.h("live_chat_scaled_height")&&!A.theater&&(O="calc(100vh - var(--ytd-toolbar-height) - 238px)");A.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":L+"px","--ytd-watch-flexy-chat-max-height":O,"--ytd-watch-flexy-structured-description-max-height":L+"px","--ytd-watch-flexy-comments-panel-max-height":L+"px","--ytd-comments-engagement-panel-content-height":L+"px"})})},
onYtShowEngagementPanelScrimAction_:function(A){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",A)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.VN(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(A){var L=_.YJ(this.hostElement).querySelector("#engagement-panel-scrim");A?L.addEventListener("tap",_.tT(this,this.onEngagementPanelScrimClick_)):L.removeEventListener("tap",_.tT(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(A){if(this.hostElement.contains(A)&&!this.scrollToAnimation_.isAnimating()){var L=A.offsetTop-24;A=A.offsetTop+A.offsetHeight+24;var O=this.getPageScrollingElement(),X=this.getScrollTop(),x=X+O.clientHeight-56;if(L<X+56)L-=56;else if(A>x)L=A-O.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,L),500)}},
onYtSignalActionScrollToComments:function(){var A=this.hostElement.querySelector("#comments");if(A&&!this.scrollToAnimation_.isAnimating()){A=A.offsetTop-56-24;if(_.h("kevlar_comment_teaser_scroll_to_midpoint")&&(A-=_.hD().height/3,A<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,A),500)}},
onYtEngagementPanelVisibleChanged:function(A,L,O){this.active&&this.trackEngagementPanelVisibility&&!_.Ks2.includes(O)&&(L==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(O),L!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&L!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(O),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(A){return A?"":"watch-active-metadata"},
computeNewMetadataClass:function(A){return A?"watch-active-metadata":""},
computeFullBleedPlayer:function(A,L){return A||L},
computeDefaultLayout:function(A){return!A},
computeDefaultTwoColumnLayout:function(A,L){return!A&&L},
computeWatchWhilePanelsActive:function(A,L){return A||L},
computeNoBorderOnChat:function(A){return _.h("web_watch_theater_chat_no_border")&&A},
computeLiveChatPresentAndExpanded:function(A,L){return A&&!L},
computePanelExpanded:function(A,L,O){return A||L||O},
onChangeMarkersVisibility:function(A){_.Pm(this).getPlayerPromise().then(function(L){var O;(O=L.changeMarkerVisibility)==null||O.call(L,_.q(A,_.HN).isVisible||!1,_.q(A,_.HN).entityKeys||[],_.q(A,_.HN).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(A){this.liveChatCollapsed=A.detail;_.Ai().dispatch(_.r8_(A.detail))},
provideRenderingData:function(A,L){switch(A){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=L;break;case "PRIMARY_INFO":_.h("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=L);this.videoPrimaryInfoRendererValue=L==null?void 0:L.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.h("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=L);this.videoSecondaryInfoRendererValue=L==null?void 0:L.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
L;break;case "CLARIFICATION":this.clarifyBoxValue=L;break;case "LIVE_CHAT":this.conversationBar=L;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=L;break;case "PLAYLIST":this.externalPlaylistData_=L!=null?L:{};break;case "MERCH_SHELF":this.merchShelfValue=L==null?void 0:L.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=L;break;case "OFFER_MODULE":this.offerModule=L;break;case "LIMITED_STATE":this.limitedStateValue=L;break;case "DONATION_SHELF":this.donation=L;break;
case "ALERTS":this.alertsValue=L;break;case "COMMENTS":this.comments=L;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=L;break;case "ENGAGEMENT_PANELS":this.engagementPanels=L;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=L;break;case "RICH_GRID_RENDERER":this.richGridRendererData=L;break;case "EXPANDABLE_METADATA":this.expandableMetadata=L;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=L}},
toggleCinematicsActive:function(A){this.cinematicsActive=A},
isMiniplayerActive:function(){return _.X5().resolve(_.z_).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(A){return Ytw.map(function(L){return A.find(function(O){var X;return(O==null?void 0:(X=O.engagementPanelSectionListRenderer)==null?void 0:X.targetId)===L})}).filter(function(L){return L!==void 0})},
getNonLearningJourneyEngagementPanels:function(A){return A.filter(function(L){var O;return!Ytw.includes((L==null?void 0:(O=L.engagementPanelSectionListRenderer)==null?void 0:O.targetId)||"")})}}];var u5_;var oB=function(){var A=_.G.apply(this,arguments)||this;A.flexy=!0;A.learningJourney=!0;A.roundedInfoPanel=!0;A.viewTransitionEnabled=_.h("enable_player_resize_transition");A.smallerChatMinHeight=_.h("live_chat_smaller_min_height");A.cinematicTheaterMode=_.h("web_cinematic_theater_mode");A.transparentTheaterMode=_.h("web_transparent_theater_mode");A.cinematicFullscreen=_.h("web_cinematic_fullscreen");A.useLargerMaxPlayerValue=_.h("kevlar_flexy_use_larger_player_value");A.cinematicFullscreenV2=_.h("web_cinematic_fullscreen_v2");
A.isDarkTheme=document.documentElement.hasAttribute("dark");A.theaterLargerPlayer=_.h("web_watch_theater_larger_player");A.defaultCollapsePlaylist=_.h("web_watch_default_collapse_playlist");return A};
_.g(oB,_.G);_.P=oB.prototype;_.P.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.P.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.P.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.P.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.P.ready=function(){var A=this,L=function(){A.onColumnScroll()};
this.primary.addEventListener("scroll",L);this.secondary.addEventListener("scroll",L)};
_.P.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.P.updateIsTwoColumnsFromBinding=function(A){_.h("web_watch_update_narrow_width_killswitch")||_.Ai().dispatch(_.Jc2(!A.detail.value));this.ytdWatchBehavior.isTwoColumns_=A.detail.value};
_.P.updateFlexySmallWindowFromBinding=function(A){this.ytdWatchBehavior.flexySmallWindow_=A.detail.value};
_.P.updateFlexyLargeWindowFromBinding=function(A){this.ytdWatchBehavior.flexyLargeWindow_=A.detail.value};
_.P.updateWatchWhileWindowSizeSufficientFromBinding=function(A){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=A.detail.value};
_.P.updateWatchNextCanShowMoreFromBinding=function(A){this.ytdWatchBehavior.watchNextCanShowMore=A.detail.value};
_.P.updateShownItemsFromBinding=function(A){A.detail.path?this.set(A.detail.path,A.detail.value):this.ytdWatchBehavior.watchNextShownItems=A.detail.value};
_.P.getElement=function(A){switch(A){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$24058_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$24058_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.v2.Object.defineProperties(oB.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)==null||!A.pageVisualEffects)return!1;for(var L=0;L<this.data.pageVisualEffects.length;L++)if(A=_.q(this.data.pageVisualEffects[L],_.id))return L=void 0,(L=A.config)==null?void 0:L.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.learningJourneyEngagementPanels)==null?void 0:A.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var A,L=(A=this.learningJourneyEngagementPanels)==null?void 0:A.find(function(b){var S;return(b==null?void 0:(S=b.engagementPanelSectionListRenderer)==null?void 0:S.panelIdentifier)==="learning-journey-engagement-panel"});
if(L){var O,X,x,J,Y,T,V,E,n;if(A=(E=((V=(Y=((J=L==null?void 0:(O=L.engagementPanelSectionListRenderer)==null?void 0:(X=O.content)==null?void 0:(x=X.sectionListRenderer)==null?void 0:x.contents)!=null?J:[])[0])==null?void 0:(T=Y.itemSectionRenderer)==null?void 0:T.contents)!=null?V:[])[0])==null?void 0:(n=E.accordionViewModel)==null?void 0:n.onTitleTap){var t=_.HR(A);if(t)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.S5.instance.resolveCommand(t)}}}}}}});
_.v2.Object.defineProperties(oB,{template:{configurable:!0,enumerable:!0,get:function(){if(u5_===void 0){var A=document.createElement("template");_.p(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-learning-journey--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);u5_=A}A=u5_;return A}}});
oB.prototype.updateMiniplayerIsActiveValue=oB.prototype.updateMiniplayerIsActiveValue;oB.prototype.updateScrollTopValue=oB.prototype.updateScrollTopValue;oB.prototype.updateFullscreenValue=oB.prototype.updateFullscreenValue;oB.prototype.updateTheaterValue=oB.prototype.updateTheaterValue;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],oB.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],oB.prototype,"ytComponentBehavior",void 0);
_.I([_.N(dOo.YtdLearningJourneyWatchBehavior),_.Z("design:type",Object)],oB.prototype,"ytdWatchBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],oB.prototype,"ytdReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],oB.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],oB.prototype,"playerData",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],oB.prototype,"flexy",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],oB.prototype,"learningJourney",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],oB.prototype,"roundedInfoPanel",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],oB.prototype,"viewTransitionEnabled",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],oB.prototype,"smallerChatMinHeight",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],oB.prototype,"cinematicTheaterMode",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],oB.prototype,"transparentTheaterMode",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],oB.prototype,"cinematicFullscreen",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],oB.prototype,"useLargerMaxPlayerValue",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],oB.prototype,"cinematicFullscreenV2",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],oB.prototype,"isDarkTheme",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],oB.prototype,"theaterLargerPlayer",void 0);_.I([_.K(),_.Z("design:type",Object)],oB.prototype,"defaultCollapsePlaylist",void 0);_.I([_.K({selector:_.jt}),_.Z("design:type",Object)],oB.prototype,"theaterValue",void 0);
_.I([_.K({selector:_.Wx}),_.Z("design:type",Object)],oB.prototype,"fullscreenValue",void 0);_.I([_.K({selector:_.Gl}),_.Z("design:type",Object)],oB.prototype,"scrollTopValue",void 0);_.I([_.K({selector:_.Qi}),_.Z("design:type",Object)],oB.prototype,"miniplayerIsActiveValue",void 0);_.I([_.qR("#ytd-plj-player"),_.Z("design:type",HTMLElement)],oB.prototype,"ytdPlayer",void 0);_.I([_.qR("#playlist"),_.Z("design:type",HTMLElement)],oB.prototype,"JSC$24058_ytdPlaylistPanelRenderer",void 0);
_.I([_.t5("ytd-comments"),_.Z("design:type",HTMLElement)],oB.prototype,"ytdComments",void 0);_.I([_.qR("#primary"),_.Z("design:type",HTMLElement)],oB.prototype,"primary",void 0);_.I([_.qR("#secondary"),_.Z("design:type",HTMLElement)],oB.prototype,"secondary",void 0);_.I([_.qR("#player-container"),_.Z("design:type",HTMLElement)],oB.prototype,"playerContainer",void 0);_.I([_.qR("#cinematics"),_.Z("design:type",HTMLElement)],oB.prototype,"JSC$24058_cinematics",void 0);
_.I([_.hT("theaterValue"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],oB.prototype,"updateTheaterValue",null);_.I([_.hT("fullscreenValue"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],oB.prototype,"updateFullscreenValue",null);_.I([_.hT("scrollTopValue"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],oB.prototype,"updateScrollTopValue",null);
_.I([_.hT("miniplayerIsActiveValue"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],oB.prototype,"updateMiniplayerIsActiveValue",null);_.I([_.K({reflectToAttribute:!0}),_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],oB.prototype,"cinematicLightTheme",null);_.I([_.K({reflectToAttribute:!0}),_.r("learningJourneyEngagementPanels"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],oB.prototype,"hasLearningJourneyPanels",null);
_.I([_.r("learningJourneyEngagementPanels"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],oB.prototype,"backButtonData",null);_.I([_.Q({is:"ytd-watch-learning-journey"})],oB);_.b6.registerService(_.Nee,oB);
_.C$();
}catch(e){_._DumpException(e)}
try{
_.cq("Tm0L3c");
var vLJ;var oLP;var Aj3=function(){return _.G.apply(this,arguments)||this};
_.g(Aj3,_.G);_.I([_.Q({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],Aj3);
_.m(Aj3,"ytd-ghost-comments-renderer",function(){if(oLP===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);oLP=A}A=oLP;return A},{mode:1});var L7E;var Oe0=function(){return _.G.apply(this,arguments)||this};
_.g(Oe0,_.G);_.I([_.Q({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],Oe0);
_.m(Oe0,"ytd-ghost-watch-metadata-renderer",function(){if(L7E===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);L7E=A}A=L7E;return A},{mode:1});var vN=function(){var A=_.G.apply(this,arguments)||this;A.ghostGridRenderer={rows:6};A.roundedInfoPanel=!0;A.hideOfferModules=!0;A.smallerChatMinHeight=_.h("live_chat_smaller_min_height");A.cinematicTheaterMode=_.h("web_cinematic_theater_mode");A.transparentTheaterMode=_.h("web_transparent_theater_mode");A.darkerPanels=_.h("web_watch_darker_panels");A.cinematicFullscreen=_.h("web_cinematic_fullscreen");A.cinematicFullscreenV2=_.h("web_cinematic_fullscreen_v2");A.isDarkTheme=document.documentElement.hasAttribute("dark");
return A};
_.g(vN,_.G);_.P=vN.prototype;_.P.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.P.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.P.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.P.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.P.ready=function(){var A=this,L=function(){A.onColumnScroll()};
this.primary.addEventListener("scroll",L);this.secondary.addEventListener("scroll",L)};
_.P.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.P.updateIsTwoColumnsFromBinding=function(A){this.ytdWatchBehavior.isTwoColumns_=A.detail.value};
_.P.updateFlexySmallWindowFromBinding=function(A){this.ytdWatchBehavior.flexySmallWindow_=A.detail.value};
_.P.updateFlexyLargeWindowFromBinding=function(A){this.ytdWatchBehavior.flexyLargeWindow_=A.detail.value};
_.P.updateWatchWhileWindowSizeSufficientFromBinding=function(A){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=A.detail.value};
_.P.updateWatchNextCanShowMoreFromBinding=function(A){this.ytdWatchBehavior.watchNextCanShowMore=A.detail.value};
_.P.updateShownItemsFromBinding=function(A){_.h("swatcheroo_direct_use_rich_grid")||(A.detail.path?this.set(A.detail.path,A.detail.value):this.ytdWatchBehavior.watchNextShownItems=A.detail.value)};
_.P.getElement=function(A){switch(A){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$24046_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$24046_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.v2.Object.defineProperties(vN.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)==null||!A.pageVisualEffects)return!1;for(var L=0;L<this.data.pageVisualEffects.length;L++)if(A=_.q(this.data.pageVisualEffects[L],_.id))return L=void 0,(L=A.config)==null?void 0:L.enableInLightTheme;return!1}}});
vN.prototype.updateMiniplayerIsActiveValue=vN.prototype.updateMiniplayerIsActiveValue;vN.prototype.updateScrollTopValue=vN.prototype.updateScrollTopValue;vN.prototype.updateFullscreenValue=vN.prototype.updateFullscreenValue;vN.prototype.updateTheaterValue=vN.prototype.updateTheaterValue;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],vN.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],vN.prototype,"ytComponentBehavior",void 0);
_.I([_.N(_.kD0.YtdWatchBehavior),_.Z("design:type",Object)],vN.prototype,"ytdWatchBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],vN.prototype,"ytdReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],vN.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],vN.prototype,"ghostGridRenderer",void 0);_.I([_.K(),_.Z("design:type",Object)],vN.prototype,"playerData",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],vN.prototype,"roundedInfoPanel",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],vN.prototype,"hideOfferModules",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],vN.prototype,"smallerChatMinHeight",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],vN.prototype,"cinematicTheaterMode",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],vN.prototype,"transparentTheaterMode",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],vN.prototype,"darkerPanels",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],vN.prototype,"cinematicFullscreen",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],vN.prototype,"cinematicFullscreenV2",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],vN.prototype,"isDarkTheme",void 0);_.I([_.K({selector:_.jt}),_.Z("design:type",Object)],vN.prototype,"theaterValue",void 0);
_.I([_.K({selector:_.Wx}),_.Z("design:type",Object)],vN.prototype,"fullscreenValue",void 0);_.I([_.K({selector:_.Gl}),_.Z("design:type",Object)],vN.prototype,"scrollTopValue",void 0);_.I([_.K({selector:_.Qi}),_.Z("design:type",Object)],vN.prototype,"miniplayerIsActiveValue",void 0);_.I([_.qR("#ytd-player"),_.Z("design:type",HTMLElement)],vN.prototype,"ytdPlayer",void 0);_.I([_.qR("#playlist"),_.Z("design:type",HTMLElement)],vN.prototype,"JSC$24046_ytdPlaylistPanelRenderer",void 0);
_.I([_.qR("#ytd-comments"),_.Z("design:type",HTMLElement)],vN.prototype,"ytdComments",void 0);_.I([_.qR("#primary"),_.Z("design:type",HTMLElement)],vN.prototype,"primary",void 0);_.I([_.qR("#secondary"),_.Z("design:type",HTMLElement)],vN.prototype,"secondary",void 0);_.I([_.qR("#player-container"),_.Z("design:type",HTMLElement)],vN.prototype,"playerContainer",void 0);_.I([_.qR("#cinematics"),_.Z("design:type",HTMLElement)],vN.prototype,"JSC$24046_cinematics",void 0);
_.I([_.hT("theaterValue"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vN.prototype,"updateTheaterValue",null);_.I([_.hT("fullscreenValue"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vN.prototype,"updateFullscreenValue",null);_.I([_.hT("scrollTopValue"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vN.prototype,"updateScrollTopValue",null);
_.I([_.hT("miniplayerIsActiveValue"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vN.prototype,"updateMiniplayerIsActiveValue",null);_.I([_.K({reflectToAttribute:!0}),_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],vN.prototype,"cinematicLightTheme",null);
_.m(vN,"ytd-watch-grid",function(){if(vLJ===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);vLJ=A}A=vLJ;return A},{mode:2});_.b6.registerService(_.iir,vN);
_.C$();
}catch(e){_._DumpException(e)}
try{
_.cq("CF909");
var UEB;var Uw=function(){var A=_.G.apply(this,arguments)||this;A.flexy=!0;A.roundedInfoPanel=!0;A.viewTransitionEnabled=_.h("enable_player_resize_transition");A.smallerChatMinHeight=_.h("live_chat_smaller_min_height");A.cinematicTheaterMode=_.h("web_cinematic_theater_mode");A.transparentTheaterMode=_.h("web_transparent_theater_mode");A.cinematicFullscreen=_.h("web_cinematic_fullscreen");A.useLargerMaxPlayerValue=_.h("kevlar_flexy_use_larger_player_value");A.isDarkTheme=document.documentElement.hasAttribute("dark");
A.defaultCollapsePlaylist=_.h("web_watch_default_collapse_playlist");A.retroModeReduxValue=!1;return A};
_.g(Uw,_.G);_.P=Uw.prototype;_.P.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.P.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.P.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.P.updateRetroModeReduxValue=function(){_.h("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.P.ready=function(){var A=this,L=function(){A.onColumnScroll()};
this.primary.addEventListener("scroll",L);this.secondary.addEventListener("scroll",L)};
_.P.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.P.updateIsTwoColumnsFromBinding=function(A){_.h("web_watch_update_narrow_width_killswitch")||_.Ai().dispatch(_.Jc2(!A.detail.value));this.ytdWatchBehavior.isTwoColumns_=A.detail.value};
_.P.updateFlexySmallWindowFromBinding=function(A){this.ytdWatchBehavior.flexySmallWindow_=A.detail.value};
_.P.updateFlexyLargeWindowFromBinding=function(A){this.ytdWatchBehavior.flexyLargeWindow_=A.detail.value};
_.P.updateWatchWhileWindowSizeSufficientFromBinding=function(A){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=A.detail.value};
_.P.updateWatchNextCanShowMoreFromBinding=function(A){this.ytdWatchBehavior.watchNextCanShowMore=A.detail.value};
_.P.updateShownItemsFromBinding=function(A){A.detail.path?this.set(A.detail.path,A.detail.value):this.ytdWatchBehavior.watchNextShownItems=A.detail.value};
_.P.getElement=function(A){switch(A){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$24041_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$24041_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments;case "BELOW_THE_PLAYER":return this.below;case "SECONDARY":return this.secondary}};
_.v2.Object.defineProperties(Uw.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)==null||!A.pageVisualEffects)return!1;for(var L=0;L<this.data.pageVisualEffects.length;L++)if(A=_.q(this.data.pageVisualEffects[L],_.id))return L=void 0,(L=A.config)==null?void 0:L.enableInLightTheme;return!1}}});
_.v2.Object.defineProperties(Uw,{template:{configurable:!0,enumerable:!0,get:function(){if(UEB===void 0){var A=document.createElement("template");_.p(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="shopping-timely-shelf" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);UEB=A}A=UEB;return A}}});
Uw.prototype.updateRetroModeReduxValue=Uw.prototype.updateRetroModeReduxValue;Uw.prototype.updateScrollTopValue=Uw.prototype.updateScrollTopValue;Uw.prototype.updateFullscreenValue=Uw.prototype.updateFullscreenValue;Uw.prototype.updateTheaterValue=Uw.prototype.updateTheaterValue;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Uw.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],Uw.prototype,"ytComponentBehavior",void 0);
_.I([_.N(_.kD0.YtdWatchBehavior),_.Z("design:type",Object)],Uw.prototype,"ytdWatchBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],Uw.prototype,"ytdReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Uw.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],Uw.prototype,"playerData",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Uw.prototype,"flexy",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Uw.prototype,"roundedInfoPanel",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Uw.prototype,"viewTransitionEnabled",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Uw.prototype,"smallerChatMinHeight",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Uw.prototype,"cinematicTheaterMode",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Uw.prototype,"transparentTheaterMode",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Uw.prototype,"cinematicFullscreen",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Uw.prototype,"useLargerMaxPlayerValue",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Uw.prototype,"isDarkTheme",void 0);_.I([_.K(),_.Z("design:type",Object)],Uw.prototype,"defaultCollapsePlaylist",void 0);
_.I([_.K({selector:_.jt}),_.Z("design:type",Object)],Uw.prototype,"theaterValue",void 0);_.I([_.K({selector:_.Wx}),_.Z("design:type",Object)],Uw.prototype,"fullscreenValue",void 0);_.I([_.K({selector:_.Gl}),_.Z("design:type",Object)],Uw.prototype,"scrollTopValue",void 0);_.I([_.K({selector:_.Qi}),_.Z("design:type",Object)],Uw.prototype,"miniplayerIsActive",void 0);_.I([_.K({selector:function(A){return A.watch.isWatchRetroMode}}),
_.Z("design:type",Object)],Uw.prototype,"retroModeReduxValue",void 0);_.I([_.t5("ytd-player"),_.Z("design:type",HTMLElement)],Uw.prototype,"ytdPlayer",void 0);_.I([_.qR("#playlist"),_.Z("design:type",HTMLElement)],Uw.prototype,"JSC$24041_ytdPlaylistPanelRenderer",void 0);_.I([_.t5("ytd-comments"),_.Z("design:type",HTMLElement)],Uw.prototype,"ytdComments",void 0);_.I([_.qR("#primary"),_.Z("design:type",HTMLElement)],Uw.prototype,"primary",void 0);
_.I([_.qR("#secondary"),_.Z("design:type",HTMLElement)],Uw.prototype,"secondary",void 0);_.I([_.qR("#player-container"),_.Z("design:type",HTMLElement)],Uw.prototype,"playerContainer",void 0);_.I([_.qR("#below"),_.Z("design:type",HTMLElement)],Uw.prototype,"below",void 0);_.I([_.qR("#cinematics"),_.Z("design:type",HTMLElement)],Uw.prototype,"JSC$24041_cinematics",void 0);
_.I([_.hT("theaterValue"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Uw.prototype,"updateTheaterValue",null);_.I([_.hT("fullscreenValue"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Uw.prototype,"updateFullscreenValue",null);_.I([_.hT("scrollTopValue"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Uw.prototype,"updateScrollTopValue",null);
_.I([_.hT("retroModeReduxValue"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Uw.prototype,"updateRetroModeReduxValue",null);_.I([_.K({reflectToAttribute:!0}),_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Uw.prototype,"cinematicLightTheme",null);_.I([_.Q({is:"ytd-watch-flexy"})],Uw);_.b6.registerService(_.p8u,Uw);
_.C$();
}catch(e){_._DumpException(e)}
try{
_.cq("nmfa2d");
var J8o;var j_=function(){var A=_.G.apply(this,arguments)||this;A.hidden=!1;A.errorScreen=null;A.playlistData={};return A};
_.g(j_,_.G);_.P=j_.prototype;_.P.getPlayer=function(){return this.ytdPlayer};
_.P.configureRendererStamper=function(){return{singleColumnContents:{id:"single-column",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},clarificationData:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",
attributes:{"class":"watch"}}}},donationShelf:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[hasChat]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},richMetadataRowContainer:{id:"rich-metadata",mapping:{metadataRowContainerRenderer:{component:"ytd-metadata-row-container-renderer",params:{fixie:!0}}}},
ticketShelf:{id:"ticket-shelf",mapping:{ticketShelfRenderer:"ytd-ticket-shelf-renderer"}},"playerData.playerAds":{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},initialRenderPriority:3,waitForSignal:_.AP(["aa","eocs"])}}};
_.P.onActiveChanged=function(){_.Ai().dispatch(_.jea(this.ytPageBehavior.active))};
_.P.playerDataChanged=function(){var A;(A=this.watchController)==null||A.setPlayerResponse(this.playerData)};
_.P.dataChanged=function(){var A;(A=this.watchController)==null||A.setWatchNextResponse(this.data)};
_.P.sizeChanged=function(){var A,L;(L=(A=this.metadata).resize)==null||L.call(A)};
_.P.attached=function(){this.watchController=new _.yA(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.P.detached=function(){_.oo(this.watchController);this.watchController=void 0};
_.P.getPlayerContainer=function(){return this.playerContainer};
_.P.getElement=function(A){switch(A){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23989_playlistPanel}};
_.P.provideRenderingData=function(A,L){switch(A){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=L;break;case "ERROR_SCREEN":this.errorScreen=L!=null?L:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=L;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=L;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=L;break;case "RICH_METADATA":this.richMetadataRowContainer=L;break;case "CLARIFICATION":this.clarificationData=L;break;case "PLAYLIST":this.playlistData=
L!=null?L:{};break;case "MERCH_SHELF":this.merchShelf=L;break;case "TICKET_SHELF":this.ticketShelf=L;break;case "LIMITED_STATE":this.limitedState=L;break;case "DONATION_SHELF":this.donationShelf=L;break;case "ALERTS":this.alerts=L}};
_.v2.Object.defineProperties(j_.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var A,L,O;return!this.hidden&&!!((A=this.data)==null?0:(L=A.contents)==null?0:(O=L.twoColumnWatchNextResults)==null?0:O.conversationBar)}}});
j_.prototype.sizeChanged=j_.prototype.sizeChanged;j_.prototype.dataChanged=j_.prototype.dataChanged;j_.prototype.playerDataChanged=j_.prototype.playerDataChanged;j_.prototype.onActiveChanged=j_.prototype.onActiveChanged;_.I([_.N(_.Gr.YtPageBehavior),_.Z("design:type",Object)],j_.prototype,"ytPageBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],j_.prototype,"ytComponentBehavior",void 0);
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],j_.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],j_.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],j_.prototype,"ytdReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],j_.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],j_.prototype,"playerData",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],j_.prototype,"hidden",void 0);_.I([_.qR("#ytd-player"),_.Z("design:type",HTMLElement)],j_.prototype,"ytdPlayer",void 0);_.I([_.qR("#player-container"),_.Z("design:type",HTMLElement)],j_.prototype,"playerContainer",void 0);_.I([_.qR("#metadata"),_.Z("design:type",Object)],j_.prototype,"metadata",void 0);_.I([_.qR("#playlist"),_.Z("design:type",HTMLElement)],j_.prototype,"JSC$23989_playlistPanel",void 0);
_.I([_.K({selector:_.eP0,reflectToAttribute:!0}),_.Z("design:type",Object)],j_.prototype,"fixie",void 0);_.I([_.K({selector:_.DyE,reflectToAttribute:!0}),_.Z("design:type",Object)],j_.prototype,"singleColumn",void 0);_.I([_.K({selector:function(A){return _.jt(A)&&!_.Wx(A)},
reflectToAttribute:!0}),_.Z("design:type",Object)],j_.prototype,"theater",void 0);_.I([_.K({selector:_.Wx,reflectToAttribute:!0}),_.Z("design:type",Object)],j_.prototype,"fullscreen",void 0);_.I([_.K({selector:_.y0P}),_.Z("design:type",Object)],j_.prototype,"windowSize",void 0);_.I([_.K(),_.Z("design:type",Object)],j_.prototype,"singleColumnContents",void 0);_.I([_.K(),_.Z("design:type",Object)],j_.prototype,"errorScreen",void 0);_.I([_.K(),_.Z("design:type",Object)],j_.prototype,"playlistData",void 0);
_.I([_.K(),_.Z("design:type",Object)],j_.prototype,"videoPrimaryInfoRenderer",void 0);_.I([_.K(),_.Z("design:type",Object)],j_.prototype,"videoSecondaryInfoRenderer",void 0);_.I([_.K(),_.Z("design:type",Object)],j_.prototype,"richMetadataRowContainer",void 0);_.I([_.K(),_.Z("design:type",Object)],j_.prototype,"clarificationData",void 0);_.I([_.K(),_.Z("design:type",Object)],j_.prototype,"commentsEntryPointHeaderRenderer",void 0);_.I([_.K(),_.Z("design:type",Object)],j_.prototype,"ticketShelf",void 0);
_.I([_.K(),_.Z("design:type",Object)],j_.prototype,"merchShelf",void 0);_.I([_.K(),_.Z("design:type",Object)],j_.prototype,"donationShelf",void 0);_.I([_.K(),_.Z("design:type",Object)],j_.prototype,"limitedState",void 0);_.I([_.K(),_.Z("design:type",Object)],j_.prototype,"alerts",void 0);_.I([_.r("playlistData"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],j_.prototype,"hasPlaylistData",null);
_.I([_.r("data","hidden"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],j_.prototype,"hasChat",null);_.I([_.hT("active"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],j_.prototype,"onActiveChanged",null);_.I([_.hT("playerData"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],j_.prototype,"playerDataChanged",null);
_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],j_.prototype,"dataChanged",null);_.I([_.hT("windowSize","singleColumn"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],j_.prototype,"sizeChanged",null);
_.m(j_,"ytd-watch-fixie",function(){if(J8o===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);J8o=A}A=J8o;return A},{mode:1});_.b6.registerService(_.w8d,j_);
_.C$();
}catch(e){_._DumpException(e)}
try{
_.cq("xwEKAe");
var PXz=function(A){return _.aN(A)?A.getAttribute("jsname")==="coFSxe":!1},dkJ=function(A,L){L.id||(L.id="ow"+_.$e(L));
A.setAttribute("jsowner",L.id);A.__owner=L;var O=_.my(L,PXz);O&&(_.Izj.has(O)||_.Izj.set(O,[]),_.Izj.get(O).push(A));(O=_.fz6.get(L))||_.fz6.set(L,O=[]);O.includes(A)||O.push(A);L.setAttribute("__IS_OWNER",!0)},YwQ=function(){var A=_.w1M(1);
A=_.vq(A,_.GYe);if(!(_.gop(A)||A[_.Mfy]&&!A.__hasBeenSet))return A.value},uRB=function(A){var L=_.qG();
if(L.getFlag(202))L=L.getFlag(201);else{var O;L=(A==null?void 0:(O=A.config)==null?void 0:O.settingOnByDefault)!==void 0?A.config.settingOnByDefault:!_.h("web_shorts_cinematics_disabled_by_default")}return L},T4X=function(A){var L=_.qG();
_.gQ(0,201,A);_.gQ(0,202,!0);L.save()},V_X=function(A){return(A=_.eVD(A))?_.nR9(A):0},DkX=function(A){return A.shorts.isSmallScreenSqueezeback},e07=function(A){return A.shorts.isPlaybackStarted},t_M=function(A){var L=_.w1M(2),O=new Set;
_.rF(function(){return void O.forEach(function(X){return void X()})});
return function(X){var x=_.UT(L);try{var J=EyX(nyz(A),X);O.add(J);return function(){J();O.delete(J)}}finally{_.UT(x)}}},bfJ=function(A){var L=A.children;
var O=A.root;_.r9(function(){var X=t_M(O)(L);_.rF(X)});
return document.createTextNode("")},EyX=function(A,L){var O=h0X(A);
(A=YwQ())&&dkJ(O,A);L=_.d(_.Efu(L,!0));A=L.next().value;var X=L.next().value;O.append.apply(O,_.le(A));return function(){X();O.remove()}},nyz=function(A){if(typeof A==="string")return A=document.querySelector(A),_.QUX(A),A;
if(_.ss(A)&&A.nodeType===Node.ELEMENT_NODE)return A;if(!A.__value&&!A.__optional){var L=_.ax_.USE_ELEMENT_NOT_ASSIGNED(A.__expectedTagName);A.__hasErrored=!0;throw L;}return A.value},h0X=function(A){var L=document.createElementNS(A.namespaceURI,A.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return A.appendChild(L)},SwM=function(A,L,O,X){A=L-A;
O=X-O;return Math.sqrt(A*A+O*O)},qwJ=function(A,L){A&&_.X5().resolve(_.x$).resolveCommand(A,{forceClickLogging:!0,
form:{element:L}})},gyS=function(A,L,O,X){A=L-A;
O=X-O;return Math.sqrt(A*A+O*O)},wNX=function(A,L){A&&_.X5().resolve(_.x$).resolveCommand(A,{forceClickLogging:!0,
form:{element:L}})},pNJ=function(){return _.X5().resolve(_.l6).dismissedIndices},if7=function(A){return _.JY({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:A}})},N4M=function(A){return _.JY({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:A}})},YY=function(A){return _.JY({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:A}})};var u2=function(A,L){if(A instanceof u2)this.array_=A.array_;else{var O;if(O=_.jD(A))a:{for(var X=O=0;X<A.length;X++){if(!_.jD(A[X])||O>0&&A[X].length!=O){O=!1;break a}for(var x=0;x<A[X].length;x++)if(typeof A[X][x]!=="number"){O=!1;break a}O==0&&(O=A[X].length)}O=O!=0}if(O)this.array_=_.Ze(A);else if(A instanceof _.bW)this.array_=rSM(A.height,A.width);else if(typeof A==="number"&&typeof L==="number"&&A>0&&L>0)this.array_=rSM(A,L);else throw Error("no");}this.size_=new _.bW(this.array_[0].length,
this.array_.length)},KjQ=function(A,L,O){for(var X=0;X<A.getSize().height;X++)for(var x=0;x<A.getSize().width;x++)L.call(O,A.array_[X][x],X,x,A)},GBn=function(A,L){var O=new u2(A.getSize());
KjQ(A,function(X,x,J){O.array_[x][J]=L.call(void 0,X,x,J,A)});
return O},rSM=function(A,L){for(var O=[],X=0;X<A;X++){O[X]=[];
for(var x=0;x<L;x++)O[X][x]=0}return O};
u2.prototype.add=function(A){if(!_.FY7(this.size_,A.getSize()))throw Error("oo");return GBn(this,function(L,O,X){return L+A.array_[O][X]})};
u2.prototype.equals=function(A,L){if(this.size_.width!=A.size_.width||this.size_.height!=A.size_.height)return!1;L=L||0;for(var O=0;O<this.size_.height;O++)for(var X=0;X<this.size_.width;X++)if(!_.CDB(this.array_[O][X],A.array_[O][X],L))return!1;return!0};
u2.prototype.getSize=function(){return this.size_};
var Tl=function(A,L,O){return L>=0&&L<A.size_.height&&O>=0&&O<A.size_.width?A.array_[L][O]:null};
u2.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var VY=function(A,L,O,X){if(!(L>=0&&L<A.size_.height&&O>=0&&O<A.size_.width))throw Error("po`"+L+"`"+O+"`"+A.size_.height+"`"+A.size_.width);A.array_[L][O]=X};
u2.prototype.multiply=function(A){if(A instanceof u2){if(this.size_.width!=A.getSize().height)throw Error("qo");return lyX(this,A)}if(typeof A==="number")return cSX(this,A);throw Error("ro");};
var lyX=function(A,L){var O=new u2(A.size_.height,L.getSize().width);KjQ(O,function(X,x,J){for(var Y=X=0;Y<this.size_.width;Y++)X+=Tl(this,x,Y)*Tl(L,Y,J);VY(O,x,J,X)},A);
return O},cSX=function(A,L){return GBn(A,function(O){return O*L})};var CXM=new _.PF("inlineSurveyRenderer");var FjM=new _.PF("interstitialViewModel");var R0Q=new _.PF("reelNavigateCommand");var QBB=new _.PF("reelNonVideoContentDismissalCommand");var mkM=new _.PF("showReelsCommentsOverlayCommand");var fyZ=new _.PF("shortsSuggestedActionViewModel");var Iyz=new _.PF("videoInteractionPopUpRenderer");var ySM;var Zfz;var jBk;var Dp=function(){var A=_.G.apply(this,arguments)||this;A.ctaVisualElement=null;A.currentCsn=null;return A};
_.g(Dp,_.G);_.P=Dp.prototype;_.P.onDataChanged=function(){this.maybeLogShows()};
_.P.computeButtonShape=function(){var A=this;if(this.data)return{buttonText:_.vG(this.data.text),state:"active",onTap:function(){A.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.P.maybeCreateCtaVe=function(){var A;if((A=this.data)!=null&&A.badgeInteractionLogging){var L;if(A=(L=this.data.badgeInteractionLogging)==null?void 0:L.trackingParams)this.ctaVisualElement=_.lV(A)}};
_.P.maybeLogClicks=function(){this.currentCsn=_.Fn(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.$K(this.currentCsn,this.ctaVisualElement)};
_.P.maybeLogShows=function(){this.currentCsn=_.Fn(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.B4(this.currentCsn,[this.ctaVisualElement])};
_.P.onTap=function(){var A;if((A=this.data)!=null&&A.onClickCommand){var L;this.ytComponentBehavior.resolveCommand((L=this.data)==null?void 0:L.onClickCommand);this.maybeLogClicks()}};
Dp.prototype.onDataChanged=Dp.prototype.onDataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Dp.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],Dp.prototype,"ytComponentBehavior",void 0);_.I([_.K({}),_.Z("design:type",Object)],Dp.prototype,"data",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Dp.prototype,"onDataChanged",null);
_.I([_.Q({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],Dp);
_.m(Dp,"ytd-shopping-overlay-badge-renderer",function(){if(jBk!==void 0)return jBk;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return jBk=A},{mode:1});_.Y4(_.$QJ,"reel-sound-metadata-view-model",{props:{data:_.dl,overlayDensity:_.dl}});_.Y4(_.jok,"player-disclosure-view-model",{props:{data:_.x5}});_.Y4(_.aqV,"pivot-button-view-model",{props:{data:_.dl,className:_.dl}});_.Y4(_.k8N,"reel-action-bar-view-model",{props:{data:_.x5,buttonShapeOverrideables:_.x5}});_.Y4(_.xa(function(A){function L(){var ur,eD,gu,ir,SD=(eD=_.q((ur=M())==null?void 0:ur.command,_.cB))==null?void 0:(gu=eD.item)==null?void 0:(ir=gu.notificationTextRenderer)==null?void 0:ir.successResponseText;if(SD)_.dQ(X.value,"yt-open-popup-action",[_.OP(SD),X.value]);else if(H())qwJ(H(),w.value);else{var HJ;qwJ((HJ=M())==null?void 0:HJ.command,w.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var O=A.data;var X=_.av("yt-player-overlay-video-interactions");A=_.d(_.uQ("0px",void 0,"O1N7Ce"));var x=A.next().value,J=A.next().value;A=_.d(_.uQ("0px",void 0,"tTDBdb"));var Y=A.next().value,T=A.next().value;A=_.d(_.uQ(0,void 0,"fh8Zkc"));var V=A.next().value,E=A.next().value;A=_.d(_.uQ(0,void 0,"CUjqGd"));var n=A.next().value,t=A.next().value,b=function(){var ur;if(((ur=_.hI())==null?void 0:ur.getPlayerState())!==-1){X.value.style.display="inherit";var eD;(eD=_.hI())==null||eD.removeEventListener("onStateChange",
b)}S()},S=function(){var ur=document.querySelector("video");
if(ur){E(ur.getBoundingClientRect().width);t(ur.getBoundingClientRect().height);var eD;J((ur==null?void 0:(eD=ur.style)==null?void 0:eD.left)||"0px");var gu;T((ur==null?void 0:(gu=ur.style)==null?void 0:gu.top)||"0px")}};
_.ND(function(){var ur,eD,gu;if(((ur=_.hI())==null?void 0:ur.getPlayerState())===-1&&Math.round(((gu=(eD=_.hI())==null?void 0:eD.getVideoAspectRatio())!=null?gu:0)*100)!==Math.round(V()/n()*100)){X.value.style.display="none";var ir,SD;t(V()/((SD=(ir=_.hI())==null?void 0:ir.getVideoAspectRatio())!=null?SD:1))}},"VB5m5");
_.r9(function(){var ur;(ur=_.hI())==null||ur.addEventListener("onStateChange",b);window.addEventListener("resize",S);S();var eD,gu,ir;if((ir=(eD=O())==null?void 0:(gu=eD.regions)==null?void 0:gu[0])==null||!ir.transformationMatrix)throw Error("vo");var SD;if((SD=O())==null?0:SD.trackingParams){var HJ;_.iV().graftServerVe((HJ=O().trackingParams)!=null?HJ:"")}_.rF(function(){var mM;(mM=_.hI())==null||mM.removeEventListener("onStateChange",b);window.removeEventListener("resize",S)})});
var w=_.av("svg"),l=_.d(_.uQ(!1,void 0,"TPsTce"));A=l.next().value;var F=l.next().value,R=_.d(_.uQ(!1,void 0,"Uz6CHf"));l=R.next().value;var y=R.next().value,M=function(){var ur;return _.q((ur=O())==null?void 0:ur.popUp,Iyz)},H=function(){var ur;
return(ur=O())==null?void 0:ur.command},z=function(){return _.q(H(),_.r0)!==void 0};
R=_.py(function(){L();return!1});
var a={},xe={};return _.D("yt-player-overlay-video-interactions",{el:X},_.D("svg",{"on:mouseover":_.py(function(){z()&&F(!0);y(!0);return!1}),
"on:mouseout":_.py(function(){F(!1);y(!1);return!1}),
"on:keydown":_.py(function(ur){ur.key==="Enter"&&L();return!1}),
"on:focus":_.py(function(){z()&&F(!0);return!1}),
"on:blur":_.py(function(){z()&&F(!1);return!1}),
el:w,tabindex:0,"aria-label":function(){var ur;return(ur=O())==null?void 0:ur.a11yString},
id:"player-overlay-video-interaction-svg",class:_.qn("yt-player-overlay-video-interactions__interactions-svg",(a["yt-player-overlay-video-interactions__interactions-svg-hover"]=A,a),(xe["yt-player-overlay-video-interactions__interactions-svg-hide-outline"]=l,xe)),role:"button",style:function(){var ur,eD,gu,ir=(gu=(ur=O())==null?void 0:(eD=ur.regions)==null?void 0:eD[0].transformationMatrix)!=null?gu:[];ur=V();eD=n();gu=[];for(var SD=0,HJ=-1;SD<ir.length;SD++)SD%3===0&&(HJ++,gu[HJ]=[]),gu[HJ].push(ir[SD]);
ir=new u2(gu);gu=new u2([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);gu=ir.multiply(gu);ir=new u2([[0,0],[0,0],[0,0],[0,0]]);for(SD=0;SD<gu.getSize().width;SD++){HJ=Tl(gu,0,SD);var mM=Tl(gu,1,SD);if(HJ===null||mM===null)throw Error("uo`"+(SD+1).toString());VY(ir,SD,0,HJ*ur);VY(ir,SD,1,mM*eD)}ur=Tl(ir,0,0);SD=Tl(ir,1,0);eD=Tl(ir,0,1);HJ=Tl(ir,1,1);if(ur===null||SD===null||eD===null||HJ===null)throw Error("so");gu=SwM(ur,SD,eD,HJ);mM=Tl(ir,3,0);ir=Tl(ir,3,1);if(mM===null||ir===null)throw Error("to");ir=SwM(ur,
mM,eD,ir);HJ=(Number((HJ*-1).toFixed(2))-Number((eD*-1).toFixed(2)))/(Number(SD.toFixed(2))-Number(ur.toFixed(2)));mM=Math.atan(HJ)*180/Math.PI;SD=HJ===Number.POSITIVE_INFINITY?-90:HJ===Number.NEGATIVE_INFINITY?90:Object.is(HJ,-0)?180:HJ===0?0:HJ>0?mM*-1:ur<SD?mM*-1:Math.abs(mM)+180;return"left:calc("+ur+"px + "+x()+"); top:calc("+(eD+"px + "+Y()+"); width:")+(gu+"px; height:")+(ir+"px; transform:rotate(")+(SD+"deg);")},
"on:click":R}))},"wj"),"yt-player-overlay-video-interactions",{props:{data:_.x5}});_.Y4(_.Mx$,"yt-reel-metapanel-view-model",{props:{data:_.x5,overlayDensity:_.x5}});var WjX=_.xa(function(A){var L=A.children;var O=A.region;A=_.d(_.uQ(void 0,void 0,"rwJZyc"));var X=A.next().value,x=A.next().value;A=_.d(_.uQ("0px",void 0,"H14H5c"));var J=A.next().value,Y=A.next().value;A=_.d(_.uQ("0px",void 0,"Mn8Uvf"));var T=A.next().value,V=A.next().value;A=_.d(_.uQ(0,void 0,"QQCIqc"));var E=A.next().value,n=A.next().value;A=_.d(_.uQ(0,void 0,"HyEvh"));var t=A.next().value,b=A.next().value,S=function(){var M=X();if(M){var H;if(((H=_.hI())==null?void 0:H.getPlayerState())!==-1){M.style.display=
"inherit";var z;(z=_.hI())==null||z.removeEventListener("onStateChange",S)}l()}},w=function(){var M=document.querySelectorAll("video");
return Array.from(M).find(function(H){var z;return H==null?void 0:(z=H.style)==null?void 0:z.width})},l=function(){var M=w();
if(M){n(M.getBoundingClientRect().width);b(M.getBoundingClientRect().height);var H;Y((M==null?void 0:(H=M.style)==null?void 0:H.left)||"0px");var z;V((M==null?void 0:(z=M.style)==null?void 0:z.top)||"0px")}};
_.ND(function(){var M=X();if(M){var H,z,a;if(((H=_.hI())==null?void 0:H.getPlayerState())===-1&&Math.round(((a=(z=_.hI())==null?void 0:z.getVideoAspectRatio())!=null?a:0)*100)!==Math.round(E()/t()*100)){M.style.display="none";var xe,ur;b(E()/((ur=(xe=_.hI())==null?void 0:xe.getVideoAspectRatio())!=null?ur:1))}}},"RdGxIf");
var F=function(){l()},R;
_.r9(function(){l();var M;if(!(O==null?0:(M=O())==null?0:M.transformationMatrix))throw Error("vo");var H;(H=_.hI())==null||H.addEventListener("onStateChange",S);if(window.ResizeObserver){if(M=w())R=new ResizeObserver(F),R.observe(M)}else window.addEventListener("resize",l);_.rF(function(){var z;(z=_.hI())==null||z.removeEventListener("onStateChange",S);R?R.disconnect():window.removeEventListener("resize",l)})});
var y=function(){var M,H,z=(H=O==null?void 0:(M=O())==null?void 0:M.transformationMatrix)!=null?H:[];M=E();H=t();for(var a=[],xe=0,ur=-1;xe<z.length;xe++)xe%3===0&&(ur++,a[ur]=[]),a[ur].push(z[xe]);z=new u2(a);a=new u2([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);a=z.multiply(a);z=new u2([[0,0],[0,0],[0,0],[0,0]]);for(xe=0;xe<a.getSize().width;xe++){ur=Tl(a,0,xe);var eD=Tl(a,1,xe);if(ur===null||eD===null)throw Error("uo`"+(xe+1).toString());VY(z,xe,0,ur*M);VY(z,xe,1,eD*H)}M=Tl(z,0,0);xe=Tl(z,1,0);H=Tl(z,0,1);
ur=Tl(z,1,1);if(M===null||xe===null||H===null||ur===null)throw Error("so");a=gyS(M,xe,H,ur);eD=Tl(z,3,0);z=Tl(z,3,1);if(eD===null||z===null)throw Error("to");z=gyS(M,eD,H,z);ur=(Number((ur*-1).toFixed(2))-Number((H*-1).toFixed(2)))/(Number(xe.toFixed(2))-Number(M.toFixed(2)));eD=Math.atan(ur)*180/Math.PI;xe=ur===Number.POSITIVE_INFINITY?-90:ur===Number.NEGATIVE_INFINITY?90:Object.is(ur,-0)?180:ur===0?0:ur>0?eD*-1:M<xe?eD*-1:Math.abs(eD)+180;return"left:calc("+M+"px + "+J()+"); top:calc("+(H+"px + "+
T()+"); width:")+(a+"px; height:")+(z+"px; transform:rotate(")+(xe+"deg);")};
return _.D(bfJ,{root:"#sticker-layer"},function(){return _.D("yt-overlay-sticker",{el:_.sC(x),style:y,class:"ytOverlayStickerHost"},L)})},"xj");var HfJ=_.xa(function(A){function L(){var S,w,l,F,R=(w=_.q((S=V())==null?void 0:S.command,_.cB))==null?void 0:(l=w.item)==null?void 0:(F=l.notificationTextRenderer)==null?void 0:F.successResponseText;if(R)_.dQ(X.value,"yt-open-popup-action",[_.OP(R),X.value]);else if(E())wNX(E(),X.value);else{var y;wNX((y=V())==null?void 0:y.command,X.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var O=A.data;var X=_.av("svg"),x=_.d(_.uQ(!1,void 0,"T9Bq7b"));A=x.next().value;var J=x.next().value,Y=_.d(_.uQ(!1,void 0,"iMHq9c"));x=Y.next().value;var T=Y.next().value,V=function(){var S;return _.q((S=O())==null?void 0:S.popUp,Iyz)},E=function(){var S;
return(S=O())==null?void 0:S.command},n=function(){return _.q(E(),_.r0)!==void 0};
Y=_.py(function(){L();return!1});
var t={},b={};return _.D("svg",{"on:mouseover":_.py(function(){n()&&J(!0);T(!0);return!1}),
"on:mouseout":_.py(function(){J(!1);T(!1);return!1}),
"on:keydown":_.py(function(S){S.key==="Enter"&&L();return!1}),
"on:focus":_.py(function(){n()&&J(!0);return!1}),
"on:blur":_.py(function(){n()&&J(!1);return!1}),
el:X,tabindex:0,"aria-label":function(){var S;return(S=O())==null?void 0:S.a11yString},
id:"player-overlay-video-interaction-svg",class:_.qn("ytPlayerOverlayInteractionInteractionsSvg",(t.ytPlayerOverlayInteractionInteractionsSvgHover=A,t),(b.ytPlayerOverlayInteractionInteractionsSvgHideOutline=x,b)),role:"button","on:click":Y})},"zj");_.Y4(_.xa(function(A){var L=A.data;_.r9(function(){var O;if((O=L())==null?0:O.trackingParams){var X;_.iV().graftServerVe((X=L().trackingParams)!=null?X:"")}});
return _.D("yt-player-overlay-interaction",null,_.D(WjX,{region:function(){var O,X;return(O=L())==null?void 0:(X=O.regions)==null?void 0:X[0]}},_.D(HfJ,Object.assign({},A))))},"yj"),"yt-player-overlay-interaction",{props:{data:_.x5}});var e2=function(){var A=_.G.apply(this,arguments)||this;A.showScrubber=!1;A.isWatchWhileMode=!1;A.enableAnchoredPanel=_.h("desktop_shorts_v2_anchored_panel");A.enableNewStickers=_.h("use_shorts_sticker_overlay_web");A.anchoredPanelActive=!1;A.enableLivingroomLayout=_.h("reels_enable_livingroom_layout");A.enablePlayerMetadataContainer=_.h("reels_web_enable_metadata_container");A.enableSqueezebackPanels=_.h("web_shorts_enable_squeezeback_panels");A.useAspectRatio=_.h("web_use_aspect_ratio");A.isSqueezebackActive=
!1;A.smallScreenSqueezeback=!1;A.isPlayerStarted=!1;A.overlayDensity=0;A.isOverlay=!1;A.isImmersive=!1;A.isImmersiveHorizontal=!1;A.isFullscreen=!1;A.onWindowResized=function(){var L;A.set("isImmersive",((L=window.getComputedStyle(A.hostElement))==null?void 0:L.getPropertyValue("--immersive-mode-on"))==="1");A.set("isImmersiveHorizontal",A.isImmersive&&A.enableLivingroomLayout&&!A.isWatchWhileMode)};
return A};
_.g(e2,_.G);_.P=e2.prototype;_.P.updateIsOverlay=function(A){this.isOverlay=A.detail.value};
_.P.computeIsShortsOverlay=function(){this.enableLivingroomLayout&&(this.isWatchWhileMode?(this.isImmersiveHorizontal=!1,this.isOverlay=!0):(!this.isOverlay&&this.isImmersive&&(this.isImmersiveHorizontal=!0),this.isOverlay=!1));if(_.h("web_enable_flexible_overlay")||_.h("web_enable_format_first")||_.h("web_enable_format_first_organic_only"))this.isOverlay=this.overlayDensity===2;return this.isWatchWhileMode&&!this.enableAnchoredPanel&&!this.enableLivingroomLayout||this.isOverlay};
_.P.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.P.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.P.computeActionBarButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",iconPosition:"icon-with-label",size:"L"}};
_.P.computeButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.P.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.P.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.P.ready=function(){(_.h("enable_reel_action_bar_view_model")||this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer"))&&(!_.h("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.dN("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.dN("reels_action_justified_content")||"flex-start")};
_.P.configureRendererStamper=function(){return{"data.pivotButton":{id:"pivot-button",mapping:{pivotButtonViewModel:{component:"pivot-button-view-model",params:{className:"ytd-reel-player-overlay-renderer"}}},renderPriority:0},"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}},renderPriority:0},"data.disclosure":{id:"disclosure",mapping:{playerDisclosureViewModel:{component:"player-disclosure-view-model"}},
renderPriority:0},"data.infoPanel":{id:"info-panel",mapping:{infoPanelContainerRenderer:{component:"ytd-info-panel-container-renderer",params:{roundedContainer:!1}}},renderPriority:0}}};
_.P.setFakeLoadingButtons=function(){_.h("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.b3("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.b3("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.b3("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.b3("SHARE_LABEL",void 0,"Share")}}}),this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.b3("REMIX_LABEL",void 0,"Remix")}}}));this.set("data.menu",{menuRenderer:{items:[{menuServiceItemRenderer:{}}]}});this.set("data.pivotButton",{pivotButtonViewModel:{backgroundColor:"THEME_ATTRIBUTE_OVERLAY_BACKGROUND_MEDIUM",icon:{iconType:"WAVEFORM"}}});this.setEmptyOverlayMetadata()};
_.P.setEmptyOverlayMetadata=function(){_.h("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}))};
_.v2.Object.defineProperties(e2.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.infoPanel)}}});
e2.prototype.onIsActiveChanged=e2.prototype.onIsActiveChanged;_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],e2.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],e2.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],e2.prototype,"ytdReduxBehavior",void 0);_.I([_.N(_.kr.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],e2.prototype,"ytdGuideStateAwareBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],e2.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Boolean)],e2.prototype,"isActive",void 0);_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],e2.prototype,"hidden",void 0);_.I([_.K({value:!0}),_.Z("design:type",Boolean)],e2.prototype,"useShortsIcon",void 0);_.I([_.K({value:"left"}),_.Z("design:type",String)],e2.prototype,"buttonTooltipPosition",void 0);
_.I([_.K({value:_.h("reels_enable_livingroom_layout")?"top":"left"}),_.Z("design:type",String)],e2.prototype,"likeButtonTooltipPosition",void 0);_.I([_.K({value:"none"}),_.Z("design:type",String)],e2.prototype,"textTransform",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],e2.prototype,"showScrubber",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],e2.prototype,"isWatchWhileMode",void 0);
_.I([_.K({reflectToAttribute:!0}),_.r("data.infoPanel"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],e2.prototype,"hasInfoPanel",null);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],e2.prototype,"enableAnchoredPanel",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],e2.prototype,"enableNewStickers",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],e2.prototype,"anchoredPanelActive",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],e2.prototype,"enableLivingroomLayout",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],e2.prototype,"enablePlayerMetadataContainer",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],e2.prototype,"enableSqueezebackPanels",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],e2.prototype,"useAspectRatio",void 0);
_.I([_.K({selector:_.Gty,reflectToAttribute:!0}),_.Z("design:type",Object)],e2.prototype,"isSqueezebackActive",void 0);_.I([_.K({selector:DkX,reflectToAttribute:!0}),_.Z("design:type",Object)],e2.prototype,"smallScreenSqueezeback",void 0);_.I([_.K({selector:e07}),_.Z("design:type",Object)],e2.prototype,"isPlayerStarted",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],e2.prototype,"overlayDensity",void 0);_.I([_.K(),_.Z("design:type",Object)],e2.prototype,"isOverlay",void 0);
_.I([_.K({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.Z("design:type",Boolean)],e2.prototype,"isShortsOverlay",void 0);_.I([_.K(),_.Z("design:type",Object)],e2.prototype,"isImmersive",void 0);_.I([_.K(),_.Z("design:type",Object)],e2.prototype,"isImmersiveHorizontal",void 0);_.I([_.K({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.Z("design:type",Boolean)],e2.prototype,"isShortsImmersive",void 0);
_.I([_.K({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.Z("design:type",Object)],e2.prototype,"buttonOverride",void 0);_.I([_.K({computed:"computeActionBarButtonOverride(isOverlay, isWatchWhileMode)"}),_.Z("design:type",Object)],e2.prototype,"actionBarButtonOverride",void 0);_.I([_.K({selector:_.bI,reflectToAttribute:!0}),_.Z("design:type",Object)],e2.prototype,"isFullscreen",void 0);
_.I([_.hT("isActive"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],e2.prototype,"onIsActiveChanged",null);_.I([_.Q({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],e2);
_.m(e2,"ytd-reel-player-overlay-renderer",function(){if(Zfz!==void 0)return Zfz;var A=document.createElement("template");_.p(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!enableNewStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-video-interactions data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-video-interactions>\n      </template>\n    </template>\n    <template is="dom-if" if="[[enableNewStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-interaction data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-interaction>\n      </template>\n    </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n      <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[isShortsOverlay]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n    </div>\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[actionBarButtonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Zfz=A},{mode:1});var z0Q;var Eq=function(){var A=_.G.apply(this,arguments)||this;A.videoDuration=0;A.playedTime=0;A.isActive=!1;A.JSC$23238_playerEvents=new Map;return A};
_.g(Eq,_.G);_.P=Eq.prototype;_.P.created=function(){this.JSC$23238_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$23238_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.P.attached=function(){this.getPlayerAndInitializeListeners()};
_.P.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$23238_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.tT(this,this.onPageChanged))};
_.P.getPlayerAndInitializeListeners=function(){var A=this,L;return _.u(function(O){if(O.nextAddress==1)return L=_.d0(),L?O.yield(L.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.tT(A,A.onPageChanged)),O.jumpTo(0));A.player=O.yieldResult;A.initializePlayerListeners();_.qo(O)})};
_.P.onPageChanged=function(A){var L=this;return _.u(function(O){if(O.nextAddress==1)return A.detail.newPageType!=="ytd-shorts"?O.return():O.yield(_.Yu().getPlayerPromise(),2);L.player=O.yieldResult;L.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.tT(L,L.onPageChanged));_.qo(O)})};
_.P.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$23238_playerEvents)};
_.P.onVideoDataChange=function(A){var L=this;return _.u(function(O){if(!L.player||A.type!=="newdata")return O.return();L.videoDuration=_.h("web_shorts_use_progress_state_for_gapless")?L.player.getProgressState(A.playertype).seekableEnd:L.player.getDuration(A.playertype);L.playedTime=0;_.qo(O)})};
_.P.onVideoProgress=function(A){var L=this,O,X;return _.u(function(x){if(!L.player)return x.return();O=L.player.getPresentingPlayerType();X=L.player.getPlayerState();L.videoDuration=_.h("web_shorts_use_progress_state_for_gapless")?L.player.getProgressState(O).seekableEnd:L.player.getDuration(O);L.playedTime=X===0?L.videoDuration:A;_.qo(x)})};
_.P.getPercentPlayed=function(A,L){return A?_.Z7(L/A,0,1):0};
_.v2.Object.defineProperties(Eq.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 A="";return A=this.videoDuration&&this.playedTime?A+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):A+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],Eq.prototype,"componentBehavior",void 0);_.I([_.N(_.LE.YtPlayerListenerBehavior),_.Z("design:type",_.Oo)],Eq.prototype,"ytPlayerListenerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Eq.prototype,"player",void 0);_.I([_.K(),_.Z("design:type",Object)],Eq.prototype,"videoDuration",void 0);_.I([_.K(),_.Z("design:type",Object)],Eq.prototype,"playedTime",void 0);_.I([_.K(),_.Z("design:type",Object)],Eq.prototype,"isActive",void 0);
_.I([_.r("videoDuration","playedTime"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],Eq.prototype,"percentPlayed",null);_.I([_.r("videoDuration","playedTime"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Eq.prototype,"percentPlayedStyle",null);_.I([_.r("videoDuration","isActive"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Eq.prototype,"hideProgressBar",null);
_.m(Eq,"ytd-progress-bar-line",function(){if(z0Q===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);z0Q=A}A=z0Q;return A},{mode:_.e5("kevlar_poly_si_batch_j028")?1:2});var B4Z;_.Y4(_.puM,"ytm-closed-captioning-button",{props:{captionIconType:_.x5,onClick:_.dl,ariaLabel:_.x5,ariaPressed:_.x5,isOverlay:_.dl,isModern:_.dl}});_.Y4(_.ZmM,"desktop-shorts-volume-controls",{props:{orientation:_.x5}});var nU=function(){var A=_.G.apply(this,arguments)||this;A.playerState=null;A.isMuted=!1;A.shortsModernControlsEnabled=_.h("web_shorts_modern_controls");A.volumeControlsOrientationState=_.h("web_shorts_modern_controls")?"vertical_down":"horizontal_right";A.isOverlay=!0;A.captionIconType=-1;A.ariaLabel="";A.overlayDensity=0;A.JSC$23241_playerEvents=new Map;A.onClosedCaptionsButtonClick=function(){A.player&&_.Xm(A.player)&&(A.player.toggleSubtitles(),A.updateCaptionIconType())};
return A};
_.g(nU,_.G);_.P=nU.prototype;_.P.created=function(){this.JSC$23241_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$23241_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$23241_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.P.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.tI(28662);this.playPauseButtonClientVE=_.tI(36842);this.fullscreenButtonToggleOffClientVE=_.tI(222256);this.fullscreenButtonToggleOnClientVE=_.tI(222257);var A=_.Fn(),L=_.Ch();A&&L&&(_.h("combine_ve_grafts")?(_.S9(_.iV(),this.muteButtonClientVE,L),_.S9(_.iV(),this.playPauseButtonClientVE,L)):_.H4(A,L,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.P.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$23241_playerEvents),this.player=null)};
_.P.updateCaptionIconType=function(){var A=-1,L=void 0,O=_.b3("CLOSED_CAPTIONS_DISABLED");this.player&&_.Xm(this.player)&&(_.VIM(this.player)?(L=!0,O=_.b3("CLOSED_CAPTIONS_ON"),A=1):(L=!1,O=_.b3("CLOSED_CAPTIONS_OFF"),A=0));this.captionIconType=A;this.ariaPressedState=L;this.ariaLabel=O};
_.P.getPlayerAndInitializeListeners=function(){var A=this,L;return _.u(function(O){if(O.nextAddress==1)return L=_.d0(),L?O.yield(L.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.tT(A,A.onPageChanged)),O.jumpTo(0));A.player=O.yieldResult;A.initializePlayerListeners();_.qo(O)})};
_.P.onPageChanged=function(A){var L=this;return _.u(function(O){if(O.nextAddress==1)return A.detail.newPageType!=="ytd-shorts"?O.return():O.yield(_.Yu().getPlayerPromise(),2);L.player=O.yieldResult;L.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.tT(L,L.onPageChanged));_.qo(O)})};
_.P.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$23241_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.P.onPlayerStateChange=function(A){this.playerState=A};
_.P.onPlayerVolumeChange=function(A){this.isMuted=A.muted};
_.P.onPlayPauseButtonClick=function(){var A=this,L,O;return _.u(function(X){if(X.nextAddress==1)return X.yield(_.Yu().getPlayerPromise(),2);L=X.yieldResult;(O=_.Fn())&&A.playPauseButtonClientVE&&_.$K(O,A.playPauseButtonClientVE);L.getPlayerState()!==1?L.playVideo():L.pauseVideo();_.qo(X)})};
_.P.computePlayPauseIcon=function(A){return A===2||A===-1||A===5?_.h("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.h("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.h("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.P.computeFullscreenLabel=function(A){return A?_.b3("FULLSCREEN_EXIT_LABEL"):_.b3("FULLSCREEN_ENTER_LABEL")};
_.P.computePlayPauseLabel=function(A){return A===1||A===3?_.b3("PLAYER_LABEL_PAUSE"):_.b3("PLAYER_LABEL_PLAY")};
_.P.onMuteButtonClick=function(){var A=this,L,O;return _.u(function(X){if(X.nextAddress==1)return X.yield(_.Yu().getPlayerPromise(),2);L=X.yieldResult;(O=_.Fn())&&A.muteButtonClientVE&&_.$K(O,A.muteButtonClientVE);L.isMuted()?L.unMute(!0):L.mute(!0);_.qo(X)})};
_.P.computeMuteIcon=function(A){return A?"miniplayer:volume-off":"miniplayer:volume-up"};
_.P.computeMuteLabel=function(A){return A?_.b3("PLAYER_LABEL_UNMUTE"):_.b3("PLAYER_LABEL_MUTE")};
_.P.onFullscreenButtonClick=function(){var A=_.Fn();A&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.$K(A,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.$K(A,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.IZn()};
_.v2.Object.defineProperties(nU.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var A=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(){A.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?_.h("web_shorts_modern_controls")?"player_full_exit_alt":_.h("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.h("web_shorts_modern_controls")?"player_full_enter_alt":_.h("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],nU.prototype,"componentBehavior",void 0);_.I([_.N(_.LE.YtPlayerListenerBehavior),_.Z("design:type",_.Oo)],nU.prototype,"ytPlayerListenerBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],nU.prototype,"ytdReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],nU.prototype,"player",void 0);_.I([_.K(),_.Z("design:type",Object)],nU.prototype,"playerState",void 0);_.I([_.K(),_.Z("design:type",Object)],nU.prototype,"isMuted",void 0);
_.I([_.K({computed:"computePlayPauseIcon(playerState)"}),_.Z("design:type",String)],nU.prototype,"playPauseIcon",void 0);_.I([_.K({computed:"computeMuteIcon(isMuted)"}),_.Z("design:type",String)],nU.prototype,"muteIcon",void 0);_.I([_.K({selector:_.bI}),_.Z("design:type",Boolean)],nU.prototype,"isFullscreen",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],nU.prototype,"shortsModernControlsEnabled",void 0);
_.I([_.K(),_.Z("design:type",Object)],nU.prototype,"volumeControlsOrientationState",void 0);_.I([_.K(),_.Z("design:type",Object)],nU.prototype,"isOverlay",void 0);_.I([_.K(),_.Z("design:type",Object)],nU.prototype,"captionIconType",void 0);_.I([_.K(),_.Z("design:type",Object)],nU.prototype,"ariaLabel",void 0);_.I([_.K(),_.Z("design:type",Object)],nU.prototype,"ariaPressedState",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],nU.prototype,"overlayDensity",void 0);
_.I([_.r("playerState"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],nU.prototype,"playPauseButtonData",null);_.I([_.r("isFullscreen"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],nU.prototype,"fullscreenButtonData",null);_.I([_.K(),_.Z("design:type",Object)],nU.prototype,"onClosedCaptionsButtonClick",void 0);_.I([_.r("isFullscreen"),_.Z("design:type",String),_.Z("design:paramtypes",[])],nU.prototype,"fullscreenIcon",null);
_.m(nU,"ytd-shorts-player-controls",function(){if(B4Z===void 0){var A=document.createElement("template");_.p(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts-player-controls--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n</yt-button-shape>\n<template is="dom-if" if="[[shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <div id="right-controls" class="style-scope ytd-shorts-player-controls">\n    <desktop-shorts-volume-controls orientation="[[volumeControlsOrientationState]]" class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n    <div id="closed-captioning-button-container" class="style-scope ytd-shorts-player-controls">\n      <ytm-closed-captioning-button aria-label="[[ariaLabel]]" aria-pressed="[[ariaPressedState]]" caption-icon-type="[[captionIconType]]" is-modern="[[shortsModernControlsEnabled]]" is-overlay="[[isOverlay]]" on-click="[[onClosedCaptionsButtonClick]]" class="style-scope ytd-shorts-player-controls">\n      </ytm-closed-captioning-button>\n    </div>\n    <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n    </yt-button-shape>\n  </div>\n</template>\n<template is="dom-if" if="[[!shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <desktop-shorts-volume-controls class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>\n');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);B4Z=A}A=B4Z;return A},{mode:1});var M_z;_.Y4(_.pN6,"yt-interstitial-view-model",{props:{data:_.x5}});var $kn=_.xa(function(A){var L=A.data;return _.D("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.D("h1",{class:"reelWatchBreakViewModelHostTitle"},_.D(_.Xg,{text:function(){return L().title}})),_.D("h2",{class:"reelWatchBreakViewModelHostBody"},_.D(_.Xg,{text:function(){return L().body},
isOverlay:!0})),_.D(_.ID,{data:function(){return L().buttons}},{buttonViewModel:function(O,X){return _.D("div",{class:function(){return X()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.D(_.gj,{data:O.data}))}}))},"Aj");
$kn.idomCompat=!0;_.Y4($kn,"reel-watch-break-view-model",{props:{data:_.x5}});var tu=function(){return _.G.apply(this,arguments)||this};
_.g(tu,_.G);tu.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}}};
_.v2.Object.defineProperties(tu.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var A;return!!_.q((A=this.data)==null?void 0:A.renderer,CXM)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var A;return!!_.q((A=this.data)==null?void 0:A.renderer,FjM)}}});
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],tu.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],tu.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],tu.prototype,"ytdReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],tu.prototype,"data",void 0);
_.I([_.K({reflectToAttribute:!0}),_.r("data.renderer"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],tu.prototype,"isSurvey",null);_.I([_.K({reflectToAttribute:!0}),_.r("data.renderer"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],tu.prototype,"isInterstitialViewModel",null);_.I([_.Q({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],tu);
_.m(tu,"ytd-reel-non-video-content-renderer",function(){if(M_z!==void 0)return M_z;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);
return M_z=A},{mode:_.e5("kevlar_poly_si_batch_j028")?1:2});var ayX;_.Y4(_.yDJ,"desktop-shorts-player-controls",{});var b2=function(){var A=_.G.apply(this,arguments)||this;A.isPlayerPaused=!1;A.isPlayerStarted=!1;A.showPlayerControls=!1;A.showScrubber=!1;A.autoHideJobId=0;A.modern=_.h("web_button_rework");A.overlayType=_.dN("web_shorts_expanded_overlay_type");A.panelData=void 0;A.isWatchWhileMode=!1;A.hasError=!1;A.panelShowDelayMs=1;A.scrubberComponent={};A.isFullscreen=!1;A.shouldHideOverlay=!1;A.enableAnchoredPanel=_.h("desktop_shorts_v2_anchored_panel");A.enablePersistentAnchoredPanel=_.h("desktop_shorts_v2_persistent_anchored_panel");
A.hideWatchWhilePanel=_.h("web_shorts_hide_watch_while_panel");A.useAspectRatio=_.h("web_use_aspect_ratio");A.isPersistentPanelActive=!1;A.anchoredPanelActive=!1;A.isShortsPipActive=!1;A.smallScreenSqueezeback=!1;A.enableFlexibleOverlay=_.h("web_enable_flexible_overlay");A.overlayDensity=0;A.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};A.onWindowResized=function(){_.$J(A,
"calculateOverlayDensity",function(){A.calculateOverlayDensity()},100)};
return A};
_.g(b2,_.G);_.P=b2.prototype;_.P.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.P.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.P.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var A=_.X5().resolve(_.FC);this.isWatchWhileMode&&(_.h("web_enable_shorts_new_carousel")?_.c1.addJob(function(){A.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):A.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.P.handleShowReelsCommentsOverlayCommand=function(A){A=_.q(A,mkM);this.isActive&&(A==null?0:A.engagementPanel)&&this.data&&(this.isWatchWhileMode&&this.isWatchWhileMode&&this.activeWatchWhilePanel==="engagement-panel-comments-section"?this.updateEngagementPanelVisibility("engagement-panel-comments-section",!1):this.updateEngagementPanelVisibility("engagement-panel-comments-section",!0))};
_.P.updateEngagementPanelVisibility=function(A,L){A&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:L?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:A}})};
_.P.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.P.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.X5().resolve(_.l6).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.P.handleWatchWhilePanelScrimClick=function(){var A=_.X5().resolve(_.FC);this.activeWatchWhilePanel&&(A.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.P.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.P.configureRendererStamper=function(){return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},initialRenderPriority:2},overlayComponent:{id:"experiment-overlay",mapping:{reelPlayerOverlayRenderer:{component:"ytd-reel-player-overlay-renderer",properties:{anchoredPanelActive:"[[anchoredPanelActive]]",disableUpgrade:"[[shouldHideOverlay]]",hidden:"[[shouldHideOverlay]]",isActive:"[[isActive]]",isWatchWhileMode:"[[watchWhileOrPersistentActive]]",
overlayDensity:"[[overlayDensity]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]"}}},renderPriority:_.h("web_enable_shorts_new_carousel")?0:void 0}}};
_.P.handlePlayerClick=function(A){var L=this,O,X;if((X=(O=window).matchMedia)!=null&&X.call(O,"(any-pointer: coarse)").matches||!A)this.showPlayerControls=!0,_.c1.cancelJob(this.autoHideJobId),this.autoHideJobId=_.p7(_.c1,function(){L.showPlayerControls=!1},4E3)};
_.P.isFirstReel=function(){return this.index===0};
_.P.handleMouseenter=function(){_.c1.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.P.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.P.handleScrubberEnter=function(){this.showScrubber=!0};
_.P.handleScrubberLeave=function(){this.showScrubber=!1};
_.P.maybeLogNonDefaultAspectRatio=function(){var A;(A=this.data)!=null&&A.thumbnail&&this.isActive&&.5625!==V_X(this.data.thumbnail)&&_.I8_("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.P.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var A=document.querySelector("#shorts-container");if(A){A=A.offsetWidth/2-this.playerContainer.offsetWidth/2;A=A>=368?1:A>=72?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&A===1&&(A=0);this.isPersistentPanelActive&&(A=0);window.innerWidth<=599&&(A=2);this.overlayDensity=A;var L;(L=this.onOverlayDensityChanged)==null||L.call(this,this.index,this.overlayDensity)}}};
_.P.onOverlayDensityChange=function(){var A;(A=this.onOverlayDensityChanged)==null||A.call(this,this.index,this.overlayDensity);(A=_.YJ(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))&&A.set("overlayDensity",this.overlayDensity);if(A=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))A.overlayDensity=this.overlayDensity};
_.P.isVideoContent=function(A){_.X5().resolve(_.l6);return!!_.q(A,_.rM)};
_.P.isNonVideoContent=function(A){_.X5().resolve(_.l6);return!!_.q(A,_.BB)};
_.P.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.v2.Object.defineProperties(b2.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var A,L;return _.h("web_enable_format_first")||((A=this.data)==null?void 0:A.adsOverlay)&&_.h("web_enable_format_first_ads_only")||((L=this.data)==null?void 0:L.reelPlayerOverlayRenderer)&&_.h("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&(this.isPlayerStarted||!_.h("web_shorts_modern_controls"))}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var A;return!this.isActive||!this.isPlayerStarted||(A=this.data)!=null&&A.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var A;if(((A=this.data)==null?0:A.command)&&this.isVideoContent(this.data.command)){var L,O;if(((L=this.data)==null?0:L.adsOverlay)&&Object.keys((O=this.data)==null?void 0:O.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var X,x;if(((X=this.data)==null?0:X.reelPlayerOverlayRenderer)&&Object.keys((x=this.data)==null?void 0:x.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
b2.prototype.onOverlayDensityChange=b2.prototype.onOverlayDensityChange;b2.prototype.calculateOverlayDensity=b2.prototype.calculateOverlayDensity;b2.prototype.maybeLogNonDefaultAspectRatio=b2.prototype.maybeLogNonDefaultAspectRatio;b2.prototype.onEngagementPanelsChanged=b2.prototype.onEngagementPanelsChanged;b2.prototype.onScrubberDataChange=b2.prototype.onScrubberDataChange;b2.prototype.updateShouldHideOverlay=b2.prototype.updateShouldHideOverlay;
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],b2.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],b2.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.kr.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],b2.prototype,"ytdGuideStateAwareBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],b2.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Number)],b2.prototype,"index",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],b2.prototype,"isActive",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],b2.prototype,"isHiddenInDom",void 0);_.I([_.K(),_.Z("design:type",Object)],b2.prototype,"isPlayerPaused",void 0);_.I([_.K({selector:e07}),_.Z("design:type",Object)],b2.prototype,"isPlayerStarted",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],b2.prototype,"showPlayerControls",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],b2.prototype,"showScrubber",void 0);_.I([_.K(),_.Z("design:type",Object)],b2.prototype,"autoHideJobId",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],b2.prototype,"modern",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],b2.prototype,"overlayType",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],b2.prototype,"ytdReduxBehavior",void 0);
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],b2.prototype,"ytActionHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],b2.prototype,"watchWhileEngagementPanels",void 0);_.I([_.K(),_.Z("design:type",Object)],b2.prototype,"panelData",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],b2.prototype,"isWatchWhileMode",void 0);_.I([_.K(),_.Z("design:type",String)],b2.prototype,"activeWatchWhilePanel",void 0);
_.I([_.K(),_.Z("design:type",Object)],b2.prototype,"hasError",void 0);_.I([_.K(),_.Z("design:type",Object)],b2.prototype,"panelShowDelayMs",void 0);_.I([_.K(),_.Z("design:type",Object)],b2.prototype,"scrubberComponent",void 0);_.I([_.K({selector:_.bI,reflectToAttribute:!0}),_.Z("design:type",Object)],b2.prototype,"isFullscreen",void 0);_.I([_.K(),_.Z("design:type",Object)],b2.prototype,"shouldHideOverlay",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],b2.prototype,"enableAnchoredPanel",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],b2.prototype,"enablePersistentAnchoredPanel",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],b2.prototype,"hideWatchWhilePanel",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],b2.prototype,"useAspectRatio",void 0);
_.I([_.K({selector:_.Gty,reflectToAttribute:!0}),_.Z("design:type",Object)],b2.prototype,"isPersistentPanelActive",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],b2.prototype,"anchoredPanelActive",void 0);_.I([_.K({selector:_.hC,reflectToAttribute:!0}),_.Z("design:type",Object)],b2.prototype,"isShortsPipActive",void 0);_.I([_.K({selector:DkX,reflectToAttribute:!0}),_.Z("design:type",Object)],b2.prototype,"smallScreenSqueezeback",void 0);
_.I([_.K({reflectToAttribute:!0}),_.r("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],b2.prototype,"enableFormatFirst",null);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],b2.prototype,"enableFlexibleOverlay",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],b2.prototype,"overlayDensity",void 0);_.I([_.K(),_.Z("design:type",Function)],b2.prototype,"onOverlayDensityChanged",void 0);
_.I([_.K(),_.r("isActive","hasError","isPlayerStarted"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],b2.prototype,"shouldRenderPlayerElements",null);_.I([_.K(),_.r("isActive","isWatchWhileMode"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],b2.prototype,"watchWhileOrPersistentActive",null);_.I([_.hT("isActive","hasError","showingExpandedOverlay"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],b2.prototype,"updateShouldHideOverlay",null);
_.I([_.K({reflectToAttribute:!0}),_.r("isActive","isPlayerStarted","data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],b2.prototype,"shouldRenderScrubber",null);_.I([_.hT("shouldRenderScrubber"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],b2.prototype,"onScrubberDataChange",null);_.I([_.r("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],b2.prototype,"overlayComponent",null);
_.I([_.hT("watchWhileEngagementPanels"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],b2.prototype,"onEngagementPanelsChanged",null);_.I([_.qR("#player-container"),_.Z("design:type",HTMLElement)],b2.prototype,"playerContainer",void 0);_.I([_.qR("#cinematic-container"),_.Z("design:type",HTMLElement)],b2.prototype,"cinematicContainer",void 0);
_.I([_.hT("isPersistentPanelActive","data.thumbnail"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],b2.prototype,"maybeLogNonDefaultAspectRatio",null);_.I([_.hT("isPersistentPanelActive"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],b2.prototype,"calculateOverlayDensity",null);_.I([_.hT("overlayDensity"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],b2.prototype,"onOverlayDensityChange",null);
_.I([_.Q({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],b2);
_.m(b2,"ytd-reel-video-renderer",function(){if(ayX!==void 0)return ayX;var A=document.createElement("template");_.p(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="sticker-layer" class="sticker-layer style-scope ytd-reel-video-renderer"></div>\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls disable-upgrade="[[!isActive]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n            </div>\n          </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return ayX=A},{mode:_.e5("kevlar_poly_si_batch_j028")?1:2});var hu=function(){var A=_.G.apply(this,arguments)||this;A.isPreviousPageShorts=!1;A.index=0;A.delayedActiveIndex=0;A.playablePreviousIndex=null;A.isPlayerPaused=!1;A.isPlayerStarted=!1;A.intersectionObserverThreshold=.6;A.fitToVisibleBounds=!1;A.pageSubtype="shorts";A.enablePreviousContinuation=_.h("shorts_in_playlists_web");A.shortsPipEnabled=_.h("web_shorts_pip");A.isDark=document.documentElement.hasAttribute("dark");A.shortsViewTransitions=_.h("web_shorts_view_transitions");A.isFullscreen=!1;A.isShortsPipActive=
!1;A.buttonOverride={iconPosition:"icon-only",size:"XL"};A.anchoredPanelActive=!1;A.isActive=!1;A.smallScreenPersistentPanel=!1;A.isPersistentPanelActive=!1;A.smallScreenSqueezeBack=!1;A.enableScrollIntoViewCenter=_.h("web_scroll_into_view_center");A.formatFirst=_.h("web_enable_format_first")||_.h("web_enable_format_first_ads_only")||_.h("web_enable_format_first_organic_only");A.enableFlexibleOverlay=_.h("web_enable_flexible_overlay");A.useAspectRatio=_.h("web_use_aspect_ratio");A.isShortsInitialized=
!1;A.hidePreviousButtonImmediately=!1;A.showPreviousButtonImmediately=!1;A.endOfNextContinuation=!1;A.currentPlayerIndex=0;A.nextReelVe=_.tI(56921);A.prevReelVe=_.tI(56922);A.loopToggleOffVe=_.tI(198013);A.loopToggleOnVe=_.tI(198014);A.ambientModeToggleVe=_.tI(227860);A.reelPlayerPausedStateRendererVe=_.tI(141313);A.storedPlaybackSpeed=null;A.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"};A.onOverlayDensityChanged=function(L,O){var X;(X=A.getActiveReelVideo(L))==null||X.setAttribute("overlay-density",String(O))};
return A};
_.g(hu,_.G);_.P=hu.prototype;
_.P.deflateInactivePreviousSlides=function(){var A=_.PO("web_shorts_deflate_inactive_slides_aggressive_distance");if(A>0&&this.shortsProcessedSequence&&this.activeIndex){A=this.activeIndex-A;for(var L=0;L<=A;L++){var O=void 0;((O=this.shortsProcessedSequence[L].reelPlayerOverlayRenderer)==null?0:O.metapanel)&&this.set("shortsProcessedSequence."+L+".reelPlayerOverlayRenderer",{});O=void 0;((O=this.shortsProcessedSequence[L].adsOverlay)==null?0:O.adSlotMetadata)&&this.set("shortsProcessedSequence."+L+
".adsOverlay",{})}}};
_.P.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.P.onResize=function(){var A=_.Ai(),L=A.dispatch,O=this.calculateIsSmallWidth();L.call(A,_.JY({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:O}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.P.configureRendererStamper=function(){return{"data.overlay.reelPlayerOverlayRenderer.backNavigationButton":{id:"back-nav-button",mapping:{buttonRenderer:"ytd-button-renderer"},renderPriority:0},"data.watchStatus":{id:"offline-container",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer"},renderPriority:_.h("web_enable_shorts_new_carousel")?0:void 0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatchWhilePanel:!0,shortsPanel:!0}}},renderPriority:0}}};
_.P.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var A=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,L=A,O=0;A<250&&(L=A+this.shortsInnerContainer.clientWidth,O=24);_.eq(this.hostElement,{"--ytd-shorts-header-width":L+"px","--ytd-shorts-top-spacing":O+"px"})}};
_.P.isFirstShorts=function(A){return A?this.index===-A.length:this.index===0};
_.P.isActiveReel=function(A,L,O){O&&(L=this.calculatePrevIndex(L,O));return A===L};
_.P.onFullscreenChange=function(){if(_.h("web_fullscreen_shorts")){var A;(A=this.getActiveReelVideo(this.activeIndex))==null||A.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.X5().resolve(_.z_).close(!0)}};
_.P.engagementPanelsChanged=function(){var A;this.watchWhileEngagementPanels=(A=this.data)==null?void 0:A.engagementPanels};
_.P.unregisterPanels=function(){var A=_.X5().resolve(_.FC);if(this.watchWhileEngagementPanels)for(var L=_.d(this.watchWhileEngagementPanels),O=L.next();!O.done;O=L.next()){var X=O.value,x=void 0,J=void 0;O=(x=X.engagementPanelSectionListRenderer)==null?void 0:(J=x.identifier)==null?void 0:J.tag;X=this.getPanelContentIdentifier(X.engagementPanelSectionListRenderer);A&&(O&&A.panelMap.delete(O),X&&_.h("web_shorts_panel_caching_bugfix")&&(x=O=void 0,(x=(O=A).unregisterPanelContent)==null||x.call(O,X)))}};
_.P.isVideoContent=function(A){return this.isVideoContentCommand(A==null?void 0:A.command)};
_.P.getActiveReelVideo=function(A){return _.YJ(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+A+'"]')};
_.P.calculatePrevIndex=function(A,L){return L?A-((L==null?void 0:L.length)||0):-1};
_.P.onKeydown=function(A){var L=_.oa(A)||[];if(!_.fZn(L))if(A.code==="ArrowUp")A.preventDefault(),this.handlePrevButtonClick();else if(A.code==="ArrowDown")A.preventDefault(),this.handleNextButtonClick();else if(A.code==="KeyM")this.toggleMuteUnmuteVideo();else if(A.code==="KeyK"||A.code==="Space")this.togglePlayPauseVideo();else if((A.code==="KeyA"||A.code==="ArrowLeft")&&_.h("web_shorts_keyboard_enable_seek_shortcuts")){var O;(O=this.player)==null||O.seekBy(-5)}else if((A.code==="KeyD"||A.code===
"ArrowRight")&&_.h("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var X;(X=this.player)==null||X.seekBy(5)}};
_.P.onServiceRequestCompleted=function(A,L){A=L.data;A.continuationEndpoint&&A.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:A.entries,continuationEndpoint:A.continuationEndpoint}}):A.prevContinuationEndpoint&&A.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:A.prevEntries,prevContinuationEndpoint:A.prevContinuationEndpoint}}):this.shortsProcessedSequence&&
this.index>0&&(this.endOfNextContinuation=!0)};
_.P.handleEngagementPanelVisibilityChanged=function(A,L){var O=_.X5().resolve(_.FC);if(A&&O){var X=this.getPanelIdentifier(A);if(L==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==X){O.hidePanel(this.activePanel);var x;this.activePanel=((x=A.identifier)==null?void 0:x.tag)||A.panelIdentifier}else this.isPersistentPanelActive=!0,_.Ai().dispatch(if7(!0)),this.anchoredPanelActive=!0,this.activePanel=X;else L==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&this.activePanel===
X&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.Ai().dispatch(if7(!1)))}};
_.P.handlePanelScrimClick=function(){var A=_.X5().resolve(_.FC);this.activePanel&&(A.hidePanel(this.activePanel),_.Ai().dispatch(if7(!1)))};
_.P.getShortsLoopSetting=function(){var A,L,O,X,x;return _.u(function(J){switch(J.nextAddress){case 1:return _.h("kevlar_shorts_auto_advance")?J.yield(_.m0.getInstance(),2):J.return(!0);case 2:return(A=J.yieldResult)?J.yield(A.get("sfvles"),3):J.return(!0);case 3:return O=(L=J.yieldResult)!=null?L:!1,J.yield(A.get("sfvle"),4);case 4:return x=(X=J.yieldResult)!=null?X:!0,O?J.return(x):J.return(!0)}})};
_.P.handleSignalActionToggleLoopShortsOff=function(){var A=this,L,O,X;return _.u(function(x){switch(x.nextAddress){case 1:if(!A.player)return x.return();A.player.setLoopVideo(!1);L=_.iV();_.gm(L,A.loopToggleOffVe);return x.yield(_.m0.getInstance(),2);case 2:return(O=x.yieldResult)?x.yield(O.set("sfvle",!1),3):x.return();case 3:return x.yield(O.set("sfvles",!0),4);case 4:X=_.qG(),_.gQ(0,203,!1),_.gQ(0,204,!0),X.save(),_.qo(x)}})};
_.P.handleSignalActionToggleLoopShortsOn=function(){var A=this,L,O,X;return _.u(function(x){switch(x.nextAddress){case 1:if(!A.player)return x.return();A.player.setLoopVideo(!0);L=_.iV();_.gm(L,A.loopToggleOnVe);return x.yield(_.m0.getInstance(),2);case 2:return(O=x.yieldResult)?x.yield(O.set("sfvle",!0),3):x.return();case 3:return x.yield(O.set("sfvles",!0),4);case 4:X=_.qG(),_.gQ(0,203,!0),_.gQ(0,204,!0),X.save(),_.qo(x)}})};
_.P.handleSignalActionToggleCinematicShortsOn=function(){T4X(!0);var A;(A=this.JSC$23265_cinematicController)==null||_.xkJ(A,!0);_.gm(_.iV(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.P.handleSignalActionToggleCinematicShortsOff=function(){T4X(!1);var A;(A=this.JSC$23265_cinematicController)==null||_.xkJ(A,!1);_.gm(_.iV(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.P.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.P.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.P.unhideCurrentOverlay=function(){if(this.overlayContainer){var A=this.overlayContainer.querySelector("#experiment-overlay");A&&_.c1.addLowPriorityJob(function(){A.style.display="unset"},100)}};
_.P.getCurrentShort=function(){if(this.currentEndpoint){var A=this.currentEndpoint;if(this.isNonVideoContentCommand(A)){var L=_.q(A,_.BB);return{reelNonVideoContentRenderer:_.q(L==null?void 0:L.renderer,_.Hbl),command:A}}if(this.data){var O;L=(O=_.q(this.currentEndpoint,_.rM))==null?void 0:O.thumbnail;var X;O=(X=this.data.overlay)==null?void 0:X.reelPlayerOverlayRenderer;_.X5().resolve(_.l6);A=this.data;var x,J;X=(x=A.overlay)==null?void 0:(J=x.shortsAdsRenderer)==null?void 0:J.adSlots;if(X!==void 0)X.length===
0?(_.sf("Shorts ads returned no ad slots."),A=void 0):(X.length>1&&_.sf("Shorts ads has more than one ad slots."),A=_.q(X[0],_.Pb3));else{var Y,T;A=_.q((Y=A.overlay)==null?void 0:(T=Y.shortsAdsRenderer)==null?void 0:T.overlay,_.Pb3)}Y=A;A=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.q(this.currentEndpoint,_.rM),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:O,thumbnail:L,command:A,adsOverlay:Y}}}};
_.P.created=function(){var A=this;this.scrollToVideoThrottle=new _.Of(function(L){var O;(O=A.getActiveReelVideo(L))==null||O.scrollIntoView({behavior:"smooth",block:"nearest",inline:A.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.Of(function(L){var O;(O=A.getActiveReelVideo(L))==null||O.scrollIntoView({behavior:"auto",block:"nearest",inline:A.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.P.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.P.attached=function(){var A=this;_.X5().resolve(_.l6).registerRootElement(this);this.pageScrollElement=_.YJ(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.tT(this,this.processResetAction));_.h("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var L=A.getActiveReelVideo(A.activeIndex);A.maybeCreateIntersectionObserver();L==null||L.scrollIntoView({behavior:"instant",
block:"nearest",inline:A.enableScrollIntoViewCenter?"center":"start"});A.shortsContainer.style.overflowY="scroll"}))};
_.P.calculateSqueezebackPanelSize=function(){var A=this,L=window.innerWidth-456-(window.innerHeight-106)*.5625;_.c1.addLowPriorityJob(function(){L<360?_.Ai().dispatch(N4M(!0)):(A.hostElement.style.setProperty("--anchored-panel-width",Math.min(L,480)+"px"),_.Ai().dispatch(N4M(!1)))})};
_.P.detached=function(){var A=_.X5().resolve(_.l6);A.rootElement=void 0;var L;(L=A.unsubscribeFromStore)==null||L.call(A);A.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.tT(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.P.onResizeFinished=function(A,L){var O=this,X=new ResizeObserver(function(){O.shortsContainer.style.overflowY="hidden";_.c1.addLowPriorityJob(function(){L()},100)});
X.observe(A);return X};
_.P.resetDocumentScrollTop=function(){var A,L;if((A=document)==null?0:(L=A.scrollingElement)==null?0:L.scrollTop)document.scrollingElement.scrollTop=0};
_.P.loadPage_=function(A){var L=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),A){var O;!_.h("web_enable_delay_shorts_sequence_call")&&((O=_.q(this.currentEndpoint,_.rM))==null?0:O.sequenceParams)&&(this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index));this.data=A;this.isPlayerStarted?this.handleOnPlaybackCommand():
this.afterPlayerStarted=function(){L.isPlayerStarted&&(L.handleOnPlaybackCommand(),L.afterPlayerStarted=function(){})};
this.registerPanel(A)}};
_.P.afterPlayerStarted=function(){};
_.P.handleOnPlaybackCommand=function(){if(_.h("web_shorts_comment_stickers")&&this.isPlayerStarted){var A,L=(A=_.q(this.currentEndpoint,_.rM))==null?void 0:A.onPlaybackCommand;L&&this.ytComponentBehavior.resolveCommand(L)}};
_.P.maybeCreateIntersectionObserver=function(){var A=this,L=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==L){this.intersectionObserverThreshold=L;var O={rootMargin:"0px",threshold:L},X;(X=this.intersectionObserver)==null||X.disconnect();this.intersectionObserver=new IntersectionObserver(function(x){x=_.d(x);for(var J=x.next();!J.done;J=x.next())if(J=J.value,J.intersectionRatio>L){J=Number(J.target.id);if(isNaN(J))break;if(J===A.index)break;
_.Xis();A.loadVideo(J);_.mf("r_vtc")}},O);
this.observeShorts()}};
_.P.observeShorts=function(){var A=[].concat(_.le(_.YJ(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));A=_.d(A);for(var L=A.next();!L.done;L=A.next()){L=L.value;var O=void 0;(O=this.intersectionObserver)==null||O.observe(L)}};
_.P.initCsi=function(){_.KK("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var A={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"}},L,O;if((L=this.playerData)==null?0:(O=L.cacheMetadata)==null?0:O.isCacheHit)A.isCacheHit=!0;var X;if(L=(X=_.q(this.currentEndpoint,_.rM))==null?void 0:
X.prefetchTaskId)A.prefetchInfo={taskId:L};_.CM(A)};
_.P.isAd=function(){var A,L;return!!((A=_.q(this.currentEndpoint,_.rM))==null?0:(L=A.adClientParams)==null?0:L.isAd)};
_.P.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.P.getPlayerContainer=function(){var A;return(A=_.YJ(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:A.playerContainer};
_.P.onPlayerStateChange=function(A){var L=this;this.isPlayerPaused=A===2;A!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?A===1&&this.index===0&&(this.isPlayerStarted||_.Ai().dispatch(YY(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.Ai().dispatch(YY(!0)));this.player&&!this.player.getLoopVideo()&&_.c1.addLowPriorityJob(function(){L.getShortsLoopSetting().then(function(O){var X;(X=L.player)==null||X.setLoopVideo(O)})});
this.isPlayerPaused&&_.h("web_shorts_paused_state_logging")&&_.B4(_.Fn(),[this.reelPlayerPausedStateRendererVe])};
_.P.isInBackground=function(){var A=window.document.visibilityState;return!(!A||A==="visible")};
_.P.isShortPlayable=function(){if(_.h("kevlar_playable_short_killswitch"))return!0;var A;return(A=this.playerData)!=null&&A.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.P.setNormalPlaybackSpeed=function(){var A=this,L,O;return _.u(function(X){if(X.nextAddress==1)return X.yield(A.getPlayer().getPlayerPromise(),2);L=X.yieldResult;O=L.getPlaybackRate();O!==1&&(A.storedPlaybackSpeed=O,L.setPlaybackRate(1));_.qo(X)})};
_.P.restorePlaybackSpeed=function(){var A=this,L;return _.u(function(O){if(O.nextAddress==1)return A.storedPlaybackSpeed===null?O.jumpTo(0):O.yield(A.getPlayer().getPlayerPromise(),3);L=O.yieldResult;L.setPlaybackRate(A.storedPlaybackSpeed);A.storedPlaybackSpeed=null;_.qo(O)})};
_.P.playerDataChanged=function(){var A=this,L,O,X,x,J,Y,T,V,E;return _.u(function(n){if(n.nextAddress==1){L=A.getPlayer();(O=A.intersectionObserver)==null||O.disconnect();if(A.playerData){if(((X=A.playerData.videoDetails)==null?void 0:X.videoId)!==((x=L.getPlayer())==null?void 0:x.getVideoData().video_id)){J={};if(Y=_.q(A.currentEndpoint,_.rM))J.watch_endpoint=Y,Y.endTimeSeconds&&(J.end=Y.endTimeSeconds);L.loadVideoWithPlayerResponse(A.playerData,J)}}else return n.return();return A.player?n.jumpTo(2):
n.yield(L.getPlayerPromise(),3)}n.nextAddress!=2&&(A.player=n.yieldResult,A.JSC$23265_playerStateChangeListener=A.onPlayerStateChange.bind(A),A.player.addEventListener("onStateChange",A.JSC$23265_playerStateChangeListener),_.h("kevlar_client_enable_shorts_player_bootstrap")&&_.Uf(),A.scrollToVideoThrottle.fire(A.index),A.movePlayerToVideo(A.index),_.c1.addLowPriorityJob(function(){A.getShortsLoopSetting().then(function(t){var b;(b=A.player)==null||b.setLoopVideo(t)})}),_.KPg.resolve(A.player),A.player.syncVolume(),
A.getPlayer().focusOnPlayer());
_.c1.addLowPriorityJob(function(){A.observeShorts()},100);
T=A.player.getPlayerState(A.player.getPresentingPlayerType());T!==1||A.isPlayerStarted||_.Ai().dispatch(YY(!0));A.updateBackNavContainerWidth();V=_.q(A.currentEndpoint,_.rM);((E=V)==null?0:E.startTimeSeconds)&&A.player.seekTo(V.startTimeSeconds);if(A.JSC$23265_cinematicController||A.cinematicsInitializeJobId)return n.return();A.cinematicsInitializeJobId=_.c1.addLowPriorityJob(function(){A.initCinematicController();A.cinematicsInitializeJobId=void 0});
_.qo(n)})};
_.P.onShortUndoDismiss=function(){var A=this,L=pNJ().pop();L!==void 0&&(_.kd(this,function(){A.showCardWithIndex(L)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.P.onShortsDismiss=function(A){if(A=A.detail.reelDismissalActionRenderer)(A=_.q(A.onDismissalCompletionRenderer,_.Rrk))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:A}}}),this.scrollAndDismissCard()};
_.P.processReelNonVideoContentDismissalCommand=function(A){var L=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);A=_.q(A,QBB);this.activeDimissalTimeout=setTimeout(function(){L.scrollAndDismissCard()},Number(A==null?void 0:A.delayMs))};
_.P.scrollAndDismissCard=function(){var A=this,L=this.index;pNJ().push(L);_.kd(this,function(){var O=A.getPlayableNextIndex();O!==null&&(O=A.getActiveReelVideo(O),A.hideCardWithIndex(L),O==null||O.scrollIntoView({behavior:"smooth",block:"nearest",inline:A.enableScrollIntoViewCenter?"center":"start"}))})};
_.P.hideCardWithIndex=function(A){if(A=this.getActiveReelVideo(A))A.hidden=!0};
_.P.showCardWithIndex=function(A){if(A=this.getActiveReelVideo(A))A.hidden=!1};
_.P.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.P.activeChanged=function(A){_.Ai().dispatch(_.JY({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:A}}));if(A)document.addEventListener("keydown",_.tT(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var L;(L=this.player)==null||L.sendAbandonmentPing()}var O;(O=this.player)==null||O.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.tT(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.P.graftClientVisualElements=function(){if(this.data){var A=_.iV();_.KLn(A,_.DQ({response:this.reelWatchSequenceResponse}));_.S9(A,this.nextReelVe);_.S9(A,this.prevReelVe);_.h("kevlar_shorts_auto_advance")&&(_.S9(A,this.loopToggleOffVe),_.S9(A,this.loopToggleOnVe));_.S9(A,this.ambientModeToggleVe);_.B4(_.Fn(),[this.nextReelVe,this.prevReelVe]);_.h("web_shorts_paused_state_logging")&&_.S9(A,this.reelPlayerPausedStateRendererVe)}};
_.P.graftNvcRenderer=function(){var A,L,O,X,x=this.index<0?(A=this.shortsProcessedPrevSequence)==null?void 0:(L=A[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:L.command:(O=this.shortsProcessedSequence)==null?void 0:(X=O[this.index])==null?void 0:X.command;if(x&&this.isNonVideoContentCommand(x)){A=_.q(x,_.BB);var J,Y;(A=(J=_.q(A==null?void 0:A.renderer,_.Hbl))==null?void 0:(Y=J.loggingDirectives)==null?void 0:Y.trackingParams)&&_.iV().graftServerVe(A)}};
_.P.setActiveIndex=function(){_.X5().resolve(_.l6).setActiveIndex(this.index)};
_.P.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.P.lazyUpdateMiniplayerData=function(){var A=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.c1.addLowPriorityJob(function(){A.updateMiniplayerData();A.updateMiniplayerDataJobId=void 0}))};
_.P.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.c1.cancelJob(this.updateMiniplayerDataJobId)};
_.P.updateMiniplayerData=function(){var A,L,O,X=_.X5().resolve(_.z_),x={shortsData:this.getCurrentShort(),previousButtonDisabled:!((A=this.prevButtonData)==null||!A.isDisabled),nextButtonDisabled:!((L=this.nextButtonData)==null||!L.isDisabled),playabilityStatus:(O=this.playerData)==null?void 0:O.playabilityStatus};_.B5(X,x)};
_.P.resetPlayerLocation=function(){var A=this.getPlayer();this.initialPlayerContainer&&A.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.P.movePlayerToVideo=function(A,L){var O=this;L=L===void 0?!0:L;var X=this.getActiveReelVideo(A),x=this.getPlayer();if(X){this.overlayContainer?X.appendChild(this.overlayContainer):(this.overlayContainer=_.YJ(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,X.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||x.appendTo(this.overlayContainer.playerContainer,void 0,!0));var J;(J=this.player)==null||J.setSize(NaN,NaN);this.isActive||_.p7(_.c1,function(){O.isActive=
!0});
x.style.visibility="visible";_.h("reels_web_disable_rtr_tick")||_.h("reels_web_use_pbs_first_shorts")&&A===0||_.Rk("r_tr");this.currentPlayerIndex=A;X.appendChild(this.errorScreenContainer);var Y;(Y=this.JSC$23265_cinematicController)==null||_.JSB(Y)}else L?_.c1.addLowPriorityJob(function(){O.movePlayerToVideo(O.index,!1)}):Math.random()<=_.PO("web_shorts_error_logging_threshold")&&_.FJ(new _.pe("Trying to movePlayerToVideo with undefined container.",{firstAttempt:L,
index:A}))};
_.P.enableFormatFirst=function(A){return _.h("web_enable_format_first")||A.adsOverlay&&_.h("web_enable_format_first_ads_only")||A.reelPlayerOverlayRenderer&&_.h("web_enable_format_first_organic_only")};
_.P.getAspectRatio=function(A){if(A!=null&&A.thumbnail&&this.enableFormatFirst(A))return"--ytd-shorts-player-ratio: "+V_X(A.thumbnail)};
_.P.getBackgroundImage=function(A){if(A!=null&&A.thumbnail)return(A=_.TJ(A.thumbnail.thumbnails))?'background-image:url("'+A+'");':"background-color:black;"};
_.P.onPersistentPanelActiveChanged=function(){var A=this.getCurrentShort();if(A&&this.enableFormatFirst(A)&&(A==null?0:A.thumbnail)&&V_X(A.thumbnail)!==.5625){var L;(L=this.player)==null||L.setSize(NaN,NaN)}};
_.P.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.P.moveCinematicsToVideo=function(){var A=_.YJ(this.hostElement).querySelector("ytd-reel-video-renderer");(A==null?0:A.cinematicContainer)&&A.cinematicContainer!==this.shortsCinematicContainer.parentElement&&A.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.P.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.P.updatePrevButtonData=function(){var A=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(A){var L;this.prevButtonData=A=Object.assign({},A,{accessibility:{label:_.b3("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:A.isDisabled||this.index===-(((L=this.shortsProcessedPrevSequence)==null?void 0:L.length)||0),tooltip:this.isUpArrowHidden?"":_.b3("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=A=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.P.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.P.updateNextButtonData=function(){var A=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(A){var L;this.nextButtonData=A=Object.assign({},A,{accessibility:{label:_.b3("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:A.isDisabled||this.index===((L=this.shortsProcessedSequence)==null?void 0:L.length),tooltip:_.b3("NEXT_VIDEO_LABEL")||""})}};
_.P.getPlayablePreviousIndex=function(){for(var A,L=this.index-1;L>=-(((A=this.prevShortsSequence)==null?void 0:A.length)||0);L--)if(!pNJ().includes(L))return L;return null};
_.P.getIndexInSequence=function(A,L){return A.findIndex(function(O){var X;return((X=_.q(O.command,_.rM))==null?void 0:X.videoId)===L})};
_.P.handlePrevButtonClick=function(A){var L=this,O,X;return _.u(function(x){O=L.getPlayablePreviousIndex();if(O===null)return x.return();L.gestureType=((X=A)==null?void 0:X.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";O===0&&(L.hidePreviousButtonImmediately=!0);if(L.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){L.transitionToVideoThrottle.fire(O)}),x.return();
L.scrollToVideoThrottle.fire(O);_.qo(x)})};
_.P.getPlayableNextIndex=function(){for(var A,L=this.index+1;L<(((A=this.shortsProcessedSequence)==null?void 0:A.length)||0);L++)if(!pNJ().includes(L))return L;return null};
_.P.handleNextButtonClick=function(A,L){var O=this,X,x;return _.u(function(J){X=O.getPlayableNextIndex();if(X===null)return J.return();X===1&&(O.showPreviousButtonImmediately=!0);O.gestureType=((x=A)==null?void 0:x.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";L&&(O.gestureType=L);if(O.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){O.transitionToVideoThrottle.fire(X)}),J.return();
O.scrollToVideoThrottle.fire(X);_.qo(J)})};
_.P.handleReelNavigateCommand=function(A,L,O){(A=_.q(A,R0Q))&&L&&A.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(O)};
_.P.loadVideo=function(A,L){L=L===void 0?!1:L;if(A!==this.currentPlayerIndex){_.Ai().dispatch(YY(!1));if(this.isAd()&&!L){var O;(O=this.player)==null||O.notifyShortsAdSwipeEvent()}if((L=this.JSC$23265_cinematicController)!=null){var X;(X=L.currentCinematicEffect)==null||X.pause()}if((X=this.JSC$23265_cinematicController)!=null){var x;(x=X.currentCinematicEffect)==null||x.clear()}X=A>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(X));
this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var J,Y,T,V;x=A<0?(J=this.shortsProcessedPrevSequence)==null?void 0:(Y=J[this.shortsProcessedPrevSequence.length+A])==null?void 0:Y.command:(T=this.shortsProcessedSequence)==null?void 0:(V=T[A])==null?void 0:V.command;this.index=A;this.gestureType||(this.gestureType=X?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");
x&&this.isVideoContentCommand(x)&&(this.ytComponentBehavior.resolveCommand(x,{form:{createScreenConfig:{clickedVisualElement:X?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(x&&this.isNonVideoContentCommand(x)){this.currentEndpoint=x;this.data=void 0;J=_.iV();Y=_.q(x,_.BB);var E,n;(Y=(E=_.q(Y==null?void 0:Y.renderer,_.Hbl))==null?void 0:(n=E.screenLoggingData)==null?void 0:n.screenVeType)&&_.h7(J,Y);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&
this.player.pauseVideo();(E=this.getActiveReelVideo(A))&&E.appendChild(this.overlayContainer)}var t,b;if(((t=this.reelWatchSequenceResponse)==null?0:t.continuationEndpoint)&&((b=this.reelWatchSequenceResponse)==null?0:b.entries)&&A===this.reelWatchSequenceResponse.entries.length-1){var S,w;t={contentPlaybackContext:_.ln({},(w=_.q((S=this.currentEndpoint)==null?void 0:S.commandMetadata,_.LM))==null?void 0:w.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,
{form:t})}var l,F,R;((l=this.reelWatchSequenceResponse)==null?0:l.prevContinuationEndpoint)&&A===-(((F=this.reelWatchSequenceResponse)==null?void 0:(R=F.prevEntries)==null?void 0:R.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.P.setMiniplayerPreview=function(A){A=(A===void 0?0:A)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var L,O,X=_.X5().resolve(_.z_),x={shortsData:void 0,shortsPreviewThumbnail:A?(L=this.shortsProcessedSequence)==null?void 0:(O=L[A])==null?void 0:O.thumbnail:void 0};_.B5(X,x)};
_.P.updateTitle=function(A){var L,O;A=(A==null?0:A.adSlots)?"":(O=A==null?void 0:(L=A.videoDetails)==null?void 0:L.title)!=null?O:"";_.P4(this.hostElement,"yt-update-title",A)};
_.P.registerPanel=function(A){var L=_.X5().resolve(_.FC);if(L){A=_.d(A.engagementPanels||[]);for(var O=A.next();!O.done;O=A.next()){O=O.value;var X=this.getPanelContentIdentifier(O.engagementPanelSectionListRenderer),x=void 0,J=void 0;(J=(x=L).registerPanelContent)==null||J.call(x,X,O)}}};
_.P.getPanelIdentifier=function(A){var L;return(A==null?void 0:(L=A.identifier)==null?void 0:L.tag)||(A==null?void 0:A.panelIdentifier)||(A==null?void 0:A.targetId)};
_.P.getPanelContentIdentifier=function(A){var L;return(A==null?void 0:A.targetId)||(A==null?void 0:A.panelIdentifier)||(A==null?void 0:(L=A.identifier)==null?void 0:L.tag)};
_.P.processResetAction=function(){this.currentPlayerIndex=this.index=0;this.playerData=this.player=void 0;this.unregisterPanels();this.currentEndpoint=this.reelWatchSequenceResponse=this.data=void 0;this.endOfNextContinuation=this.isPersistentPanelActive=this.anchoredPanelActive=!1;_.Ai().dispatch(YY(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;_.Ai().dispatch(if7(!1));var A=_.X5().resolve(_.l6);A.dismissedIndices=[];A.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&
_.X5().resolve(_.z_).close(!0)};
_.P.processAppendReelWatchSequenceContinuationEntriesAction=function(A){var L=this,O;(O=this.intersectionObserver)==null||O.disconnect();A=A.appendReelWatchSequenceContinuationEntriesAction;if(A==null?0:A.entries){var X;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.le(((X=this.reelWatchSequenceResponse)==null?void 0:X.entries)||[]),_.le(A.entries)),continuationEndpoint:A.continuationEndpoint})}else if(A==null?0:A.prevEntries){var x;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.le(((x=this.reelWatchSequenceResponse)==null?void 0:x.prevEntries)||[]),_.le(A.prevEntries)),prevContinuationEndpoint:A.prevContinuationEndpoint});_.c1.addLowPriorityJob(function(){L.movePlayerToVideo(L.index);var J;(J=L.getActiveReelVideo(L.index))==null||J.scrollIntoView({block:"nearest",inline:L.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.c1.addLowPriorityJob(function(){L.observeShorts()},100)};
_.P.processWatchSequence=function(A){var L=this;return A.map(function(O){O=O.command;if(L.isVideoContentCommand(O)){var X=_.q(O,_.rM);return{reelPlayerOverlayRenderer:_.q(X==null?void 0:X.overlay,_.zi6),thumbnail:X.thumbnail,command:O}}return L.isNonVideoContentCommand(O)?(X=_.q(O,_.BB),{reelNonVideoContentRenderer:_.q(X==null?void 0:X.renderer,_.Hbl),command:O}):{command:O}})};
_.P.calculateIntersectionObserverThreshold=function(){var A=_.YJ(this.hostElement).querySelector("ytd-reel-video-renderer"),L=1;(A==null?0:A.offsetHeight)&&(A==null?0:A.offsetWidth)&&(L=Math.min(A.offsetHeight,this.shortsContainer.offsetHeight)/A.offsetHeight*(Math.min(A.offsetWidth,this.shortsContainer.offsetWidth)/A.offsetWidth));return Math.round(L*.6*10)/10};
_.P.isVideoContentCommand=function(A){_.X5().resolve(_.l6);return!!_.q(A,_.rM)};
_.P.isNonVideoContentCommand=function(A){_.X5().resolve(_.l6);return!!_.q(A,_.BB)};
_.P.initCinematicController=function(){var A=this;if(this.player&&this.shortsCinematicContainer){this.JSC$23265_cinematicController=new _.dY(this.shortsCinematicContainer,this.player);var L,O=_.q((L=this.data)==null?void 0:L.background,_.id);_.sBJ(this.JSC$23265_cinematicController,O);_.xkJ(this.JSC$23265_cinematicController,uRB(O));_.XNk(this.JSC$23265_cinematicController);_.c1.addLowPriorityJob(function(){A.moveCinematicsToVideo()})}};
_.P.handleMiniplayerNavigateShorts=function(A){A==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():A==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.P.handleSignalActionToggleShortsPictureInPicture=function(){if(_.X5().resolve(_.z_).pictureInPictureSupported()){var A=_.X5().resolve(_.l6);if(_.h("web_shorts_pip")){var L=_.X5().resolve(_.z_);A.isShortsPipActive()?L.deactivate():L.isMiniplayerActive()||(_.rm().shortsPipActivation=!0,_.UFM(L))}}else(A=this.player)==null||A.togglePictureInPicture()};
_.v2.Object.defineProperties(hu.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.reelWatchSequenceResponse)!=null&&A.prevEntries)return this.processWatchSequence([].concat(_.le(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){var A=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!A)return this.shortsProcessedPrevSequence;if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var L=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.le(this.prevShortsSequence.slice(0,L)),[A],_.le(this.prevShortsSequence.slice(L+
1)))}L=this.index+this.shortsProcessedPrevSequence.length;A.thumbnail=this.shortsProcessedPrevSequence[L].thumbnail;return[].concat(_.le(this.shortsProcessedPrevSequence.slice(0,L)),[A],_.le(this.shortsProcessedPrevSequence.slice(L+1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.reelWatchSequenceResponse)!=null&&A.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){if(this.data||this.shortsSequence){var A=this.getCurrentShort();if(!A||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[A];if(A==null||!A.reelNonVideoContentRenderer){var L=this.getIndexInSequence(this.shortsSequence,_.q(this.currentEndpoint,_.rM).videoId);if(this.index===0&&L!==-1)return this.currentPlayerIndex=this.index=L,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index),
[].concat(_.le(this.shortsSequence.slice(0,this.index)),[A],_.le(this.shortsSequence.slice(this.index+1)))}if(this.shortsProcessedSequence){A.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var O,X,x,J;L=((X=_.q((O=this.shortsProcessedSequence[0])==null?void 0:O.command,_.rM))==null?void 0:X.videoId)===((J=_.q((x=this.shortsSequence[0])==null?void 0:x.command,_.rM))==null?void 0:J.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.le(this.shortsProcessedSequence.slice(0,
this.index)),[A],_.le(this.shortsSequence.slice(L)))}return[A].concat(_.le(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var A=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;A&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(A)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 A,L;return this.index===((A=this.reelWatchSequenceResponse)==null?void 0:(L=A.entries)==null?void 0:L.length)}var O;return!((O=this.reelWatchSequenceResponse)==null?0:O.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var A;(A=this.delayedActiveIndexUpdateDebouncer)==null||A.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var A,L,O;return this.isShortPlayable()||((L=_.q((A=this.data)==null?void 0:A.watchStatus,_.A7H))==null?void 0:(O=L.style)==null?void 0:O.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var A=this,L=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),O;if((this.data||L)&&(((O=this.data)==null?0:O.engagementPanels)||this.isAd()||L)){L=!1;this.activePanel="shorts-comments-panel";var X;O=_.d(((X=this.data)==null?void 0:X.engagementPanels)||[]);for(X=O.next();!X.done;X=O.next())if(this.getPanelIdentifier(X.value.engagementPanelSectionListRenderer)===this.activePanel){L=!0;break}if(this.isPersistentPanelActive){var x=
_.X5().resolve(_.FC);_.p7(_.c1,function(){x.showPanel(A.activePanel,void 0,void 0,void 0,null)},100)}var J;
X=[].concat(_.le(Object.values(((J=this.data)==null?void 0:J.engagementPanels)||{})));if(_.h("enable_preview_panel_for_shorts_search_suggested_action")){var Y,T,V,E,n;((E=_.q((Y=this.data)==null?void 0:(T=Y.overlay)==null?void 0:(V=T.reelPlayerOverlayRenderer)==null?void 0:V.metapanel,_.WGc))==null?void 0:(n=E.metadataItems)==null?void 0:n.find(function(t){var b,S;return((b=_.q(t,fyZ))==null?void 0:(S=b.icon)==null?void 0:S.iconType)==="SEARCH"}))!==void 0&&X.push({engagementPanelSectionListRenderer:{identifier:{tag:"PAsearch_preview"},
targetId:"PAsearch_preview"}})}J=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);Y=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return J===void 0&&Y===void 0||(J==null?0:J.isDisabled)||(Y==null?void 0:Y.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!L?(L=X==null?void 0:X.findIndex(function(t){var b,
S;return((b=t.engagementPanelSectionListRenderer)==null?void 0:(S=b.identifier)==null?void 0:S.tag)==="shorts-comments-panel"}),L===-1||L===void 0||X!=null&&X.splice(L,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.b3("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.b3("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:_.b3("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.b3("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(_.le(Object.values(X||
{})))):X}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.shortsProcessedSequence)==null?void 0:A[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var A=this,L,O,X;if((L=this.playerData)==null?0:(O=L.playabilityStatus)==null?0:(X=O.errorScreen)==null?0:X.playerInterstitialRenderer)return _.c1.addLowPriorityJob(function(){A.movePlayerToVideo(A.index)}),this.playerData.playabilityStatus.errorScreen;
var x,J;return((x=this.data)==null?void 0:x.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((J=this.data)==null?0:J.watchStatus)&&_.q(this.data.watchStatus,_.$zV)?(_.c1.addLowPriorityJob(function(){A.movePlayerToVideo(A.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.v2.Object.defineProperties(hu,{template:{configurable:!0,enumerable:!0,get:function(){if(ySM===void 0){var A=document.createElement("template");_.p(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-backgrounds="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n      <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n      <template class="style-scope ytd-shorts">\n        <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n          <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n          </div>\n        </div>\n      </template>\n    </dom-repeat>\n    <ytd-reel-video-renderer id="reel-video-renderer" data="[[getCurrentShort(data)]]" has-error="[[hasError]]" index="[[index]]" is-active="[[isActive]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]" on-overlay-density-changed="[[onOverlayDensityChanged]]" class="style-scope ytd-shorts">\n    </ytd-reel-video-renderer>\n  </div>\n</div>\n<div id="shorts-panel-container" class="style-scope ytd-shorts">\n  <div id="anchored-panel-scrim" on-click="handlePanelScrimClick" class="style-scope ytd-shorts"></div>\n  <div id="anchored-panel" class="anchored-panel style-scope ytd-shorts"></div>\n</div>\n<div class="navigation-container style-scope ytd-shorts">\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-up">\n    <ytd-button-renderer button-tooltip-position="left" data="[[prevButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handlePrevButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-down">\n    <ytd-button-renderer button-tooltip-position="left" data="[[nextButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handleNextButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);ySM=A}A=ySM;return A}}});
hu.prototype.onNextButtonDataChange=hu.prototype.onNextButtonDataChange;hu.prototype.onPrevButtonDataChange=hu.prototype.onPrevButtonDataChange;hu.prototype.onPersistentPanelActiveChanged=hu.prototype.onPersistentPanelActiveChanged;hu.prototype.lazyUpdateMiniplayerData=hu.prototype.lazyUpdateMiniplayerData;hu.prototype.onShortsPipActiveChanged=hu.prototype.onShortsPipActiveChanged;hu.prototype.setActiveIndex=hu.prototype.setActiveIndex;hu.prototype.graftNvcRenderer=hu.prototype.graftNvcRenderer;
hu.prototype.graftClientVisualElements=hu.prototype.graftClientVisualElements;hu.prototype.onActiveChanged=hu.prototype.onActiveChanged;hu.prototype.onShortsDismiss=hu.prototype.onShortsDismiss;hu.prototype.onShortUndoDismiss=hu.prototype.onShortUndoDismiss;hu.prototype.playerDataChanged=hu.prototype.playerDataChanged;hu.prototype.afterPlayerStarted=hu.prototype.afterPlayerStarted;hu.prototype.unhideCurrentOverlay=hu.prototype.unhideCurrentOverlay;hu.prototype.onServiceRequestCompleted=hu.prototype.onServiceRequestCompleted;
hu.prototype.engagementPanelsChanged=hu.prototype.engagementPanelsChanged;hu.prototype.onFullscreenChange=hu.prototype.onFullscreenChange;hu.prototype.onResize=hu.prototype.onResize;_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],hu.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.Gr.YtPageBehavior),_.Z("design:type",Object)],hu.prototype,"ytPageBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],hu.prototype,"ytActionHandlerBehavior",void 0);
_.I([_.N(_.y9),_.Z("design:type",Object)],hu.prototype,"ironResizableBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],hu.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.BL),_.Z("design:type",Object)],hu.prototype,"ytdDismissibleItemBehavior",void 0);_.I([_.N(_.kr.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],hu.prototype,"ytdGuideStateAwareBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],hu.prototype,"ytdReduxBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],hu.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],hu.prototype,"playerData",void 0);_.I([_.K(),_.Z("design:type",Object)],hu.prototype,"reelWatchSequenceResponse",void 0);_.I([_.K(),_.Z("design:type",Object)],hu.prototype,"cachedReelWatchSequenceResponse",void 0);_.I([_.K(),_.Z("design:type",Object)],hu.prototype,"cachedSequenceParams",void 0);_.I([_.K(),_.Z("design:type",Object)],hu.prototype,"cachedSequenceProvider",void 0);
_.I([_.K(),_.Z("design:type",Object)],hu.prototype,"currentEndpoint",void 0);_.I([_.K(),_.Z("design:type",Object)],hu.prototype,"nextButtonData",void 0);_.I([_.K(),_.Z("design:type",Object)],hu.prototype,"prevButtonData",void 0);_.I([_.K(),_.Z("design:type",Object)],hu.prototype,"isPreviousPageShorts",void 0);_.I([_.K(),_.Z("design:type",Object)],hu.prototype,"index",void 0);_.I([_.K(),_.Z("design:type",Object)],hu.prototype,"delayedActiveIndex",void 0);
_.I([_.K(),_.Z("design:type",Object)],hu.prototype,"playablePreviousIndex",void 0);_.I([_.K(),_.Z("design:type",Object)],hu.prototype,"player",void 0);_.I([_.K(),_.Z("design:type",Object)],hu.prototype,"isPlayerPaused",void 0);_.I([_.K({selector:e07}),_.Z("design:type",Object)],hu.prototype,"isPlayerStarted",void 0);_.I([_.K(),_.Z("design:type",Object)],hu.prototype,"intersectionObserver",void 0);_.I([_.K(),_.Z("design:type",Number)],hu.prototype,"cinematicsInitializeJobId",void 0);
_.I([_.K(),_.Z("design:type",Number)],hu.prototype,"updateMiniplayerDataJobId",void 0);_.I([_.K(),_.Z("design:type",Object)],hu.prototype,"fitToVisibleBounds",void 0);_.I([_.K(),_.Z("design:type",Object)],hu.prototype,"pageSubtype",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],hu.prototype,"enablePreviousContinuation",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],hu.prototype,"shortsPipEnabled",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],hu.prototype,"isDark",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],hu.prototype,"shortsViewTransitions",void 0);_.I([_.K({selector:_.bI,reflectToAttribute:!0}),_.Z("design:type",Object)],hu.prototype,"isFullscreen",void 0);_.I([_.K({selector:_.hC,reflectToAttribute:!0}),_.Z("design:type",Object)],hu.prototype,"isShortsPipActive",void 0);
_.I([_.qR("#shorts-inner-container"),_.Z("design:type",HTMLElement)],hu.prototype,"shortsInnerContainer",void 0);_.I([_.qR("#back-nav-button ytd-button-renderer"),_.Z("design:type",_.dD)],hu.prototype,"backNavButton",void 0);_.I([_.qR("#shorts-container"),_.Z("design:type",HTMLElement)],hu.prototype,"shortsContainer",void 0);_.I([_.t5("error-screen"),_.Z("design:type",HTMLElement)],hu.prototype,"errorScreenContainer",void 0);
_.I([_.t5("player"),_.Z("design:type",Object)],hu.prototype,"playerElement",void 0);_.I([_.t5("shorts-cinematic-container"),_.Z("design:type",HTMLElement)],hu.prototype,"shortsCinematicContainer",void 0);_.I([_.t5("initial-player-container"),_.Z("design:type",HTMLElement)],hu.prototype,"initialPlayerContainer",void 0);_.I([_.K(),_.Z("design:type",Object)],hu.prototype,"buttonOverride",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],hu.prototype,"anchoredPanelActive",void 0);
_.I([_.K(),_.Z("design:type",String)],hu.prototype,"activePanel",void 0);_.I([_.K(),_.Z("design:type",Object)],hu.prototype,"isActive",void 0);_.I([_.K({selector:DkX,reflectToAttribute:!0}),_.Z("design:type",Object)],hu.prototype,"smallScreenPersistentPanel",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],hu.prototype,"isPersistentPanelActive",void 0);_.I([_.K(),_.Z("design:type",Object)],hu.prototype,"smallScreenSqueezeBack",void 0);
_.I([_.K(),_.Z("design:type",Object)],hu.prototype,"enableScrollIntoViewCenter",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],hu.prototype,"formatFirst",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],hu.prototype,"enableFlexibleOverlay",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],hu.prototype,"useAspectRatio",void 0);_.I([_.K(),_.Z("design:type",Object)],hu.prototype,"panelContainer",void 0);
_.I([_.K(),_.Z("design:type",Object)],hu.prototype,"overlayContainer",void 0);_.I([_.K(),_.Z("design:type",Object)],hu.prototype,"isShortsInitialized",void 0);_.I([_.r("reelWatchSequenceResponse"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],hu.prototype,"prevShortsSequence",null);_.I([_.r("data","prevShortsSequence"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],hu.prototype,"shortsProcessedPrevSequence",null);
_.I([_.r("reelWatchSequenceResponse"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],hu.prototype,"shortsSequence",null);_.I([_.r("data","shortsSequence"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],hu.prototype,"shortsProcessedSequence",null);
_.I([_.K({reflectToAttribute:!0}),_.r("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],hu.prototype,"isUpArrowHidden",null);_.I([_.K({reflectToAttribute:!0}),_.r("reelWatchSequenceResponse","index","endOfNextContinuation"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],hu.prototype,"isDownArrowHidden",null);
_.I([_.K(),_.r("index"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],hu.prototype,"activeIndex",null);_.I([_.r("isShortPlayable","data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],hu.prototype,"shouldRenderOfflineContent",null);_.I([_.by("iron-resize"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],hu.prototype,"onResize",null);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],hu.prototype,"anchoredEngagementPanels",null);
_.I([_.K(),_.Z("design:type",Object)],hu.prototype,"watchWhileEngagementPanels",void 0);_.I([_.hT("isFullscreen"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],hu.prototype,"onFullscreenChange",null);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],hu.prototype,"engagementPanelsChanged",null);
_.I([_.by("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.Xi]),_.Z("design:returntype")],hu.prototype,"onServiceRequestCompleted",null);_.I([_.r("data","shortsSequence","index"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],hu.prototype,"activeReel",null);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],hu.prototype,"unhideCurrentOverlay",null);
_.I([_.hT("isPlayerStarted"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],hu.prototype,"afterPlayerStarted",null);_.I([_.r("playerData","reelWatchSequenceResponse","data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],hu.prototype,"errorScreen",null);_.I([_.r("errorScreen"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],hu.prototype,"hasError",null);
_.I([_.hT("playerData"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype",Promise)],hu.prototype,"playerDataChanged",null);_.I([_.by("yt-dismissible-item-undo-feedback"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],hu.prototype,"onShortUndoDismiss",null);_.I([_.by("yt-disable-lockup-interaction"),_.Z("design:type",Function),_.Z("design:paramtypes",[Object]),_.Z("design:returntype")],hu.prototype,"onShortsDismiss",null);
_.I([_.iy("active"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],hu.prototype,"onActiveChanged",null);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],hu.prototype,"graftClientVisualElements",null);_.I([_.hT("currentPlayerIndex"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],hu.prototype,"graftNvcRenderer",null);
_.I([_.hT("index"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],hu.prototype,"setActiveIndex",null);_.I([_.hT("isShortsPipActive"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],hu.prototype,"onShortsPipActiveChanged",null);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],hu.prototype,"lazyUpdateMiniplayerData",null);
_.I([_.K(),_.Z("design:type",Object)],hu.prototype,"onOverlayDensityChanged",void 0);_.I([_.hT("isPersistentPanelActive"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],hu.prototype,"onPersistentPanelActiveChanged",null);_.I([_.hT("index","data","isUpArrowHidden"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],hu.prototype,"onPrevButtonDataChange",null);
_.I([_.hT("index","data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],hu.prototype,"onNextButtonDataChange",null);_.I([_.Q({is:"ytd-shorts"})],hu);_.b6.registerService(_.gvu,hu);
_.C$();
}catch(e){_._DumpException(e)}
try{
_.cq("JzFVk");
var dC7=function(A){return _.D("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},PDQ(A.data.ctaButton,{buttonViewModel:{}}),_.D(_.Xg,{text:A.data.subtext,className:"ytwYtdButtonBannerViewModelSubtext"}))};var YAS;var ujJ;var m5=function(){return _.G.apply(this,arguments)||this};
_.g(m5,_.G);m5.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
m5.prototype.computeBlueBottomLink=function(A){return A};
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],m5.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],m5.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],m5.prototype,"data",void 0);_.I([_.K({computed:"computeIcon_(data.bottomIcon)"}),_.Z("design:type",String)],m5.prototype,"bottomIcon",void 0);
_.I([_.K({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],m5.prototype,"enableBlueBottomLink",void 0);_.I([_.Q({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],m5);
_.m(m5,"ytd-web-answer-renderer",function(){if(ujJ!==void 0)return ujJ;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return ujJ=A},{mode:_.e5("kevlar_poly_si_batch_j035")?1:2});var THS;var fi=function(){var A=_.G.apply(this,arguments)||this;A.hasChipBar=!1;return A};
_.g(fi,_.G);fi.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}}};
fi.prototype.computeHasChipBar=function(A){return!(A==null||!A.chipBar)};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],fi.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],fi.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],fi.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.Z("design:type",Object)],fi.prototype,"hasChipBar",void 0);_.I([_.Q({is:"ytd-search-header-renderer",disableElementRegistration:!0})],fi);
_.m(fi,"ytd-search-header-renderer",function(){if(THS!==void 0)return THS;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return THS=A},{mode:1});var VT7;var Ib=function(){return _.G.apply(this,arguments)||this};
_.g(Ib,_.G);Ib.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Ib.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Ib.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Ib.prototype,"data",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-page-continuation"})],Ib);
_.m(Ib,"ytd-page-continuation",function(){if(VT7!==void 0)return VT7;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return VT7=A},{mode:1});var DCM;var erS;var EG7;var yB=function(){return _.G.apply(this,arguments)||this};
_.g(yB,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],yB.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],yB.prototype,"data",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],yB);
_.m(yB,"ytd-watch-card-one-vs-one-event",function(){if(EG7!==void 0)return EG7;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return EG7=A},{mode:1});var ZA=function(){return _.G.apply(this,arguments)||this};
_.g(ZA,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],ZA.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],ZA.prototype,"data",void 0);_.I([_.Q({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],ZA);
_.m(ZA,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(erS!==void 0)return erS;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return erS=A},{mode:1});var nG$;var ja=function(){return _.G.apply(this,arguments)||this};
_.g(ja,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],ja.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],ja.prototype,"data",void 0);_.I([_.Q({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],ja);
_.m(ja,"ytd-banner-and-box-hero-image-renderer",function(){if(nG$!==void 0)return nG$;var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return nG$=A},{mode:1});var tTz;var W8=function(){var A=_.G.apply(this,arguments)||this;A.modern=_.h("web_modern_buttons");return A};
_.g(W8,_.G);W8.prototype.computeIcon=function(){var A,L,O=(A=this.data)==null?void 0:(L=A.icon)==null?void 0:L.iconType;if(O)return _.bV(O)};
W8.prototype.computeButtonShape=function(){var A;return{buttonText:_.vG((A=this.data)==null?void 0:A.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.v2.Object.defineProperties(W8.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"}}});
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],W8.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],W8.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],W8.prototype,"modern",void 0);_.I([_.K({type:_.h("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.r("data.style"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],W8.prototype,"buttonColor",null);
_.I([_.Q({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],W8);
_.m(W8,"ytd-call-to-action-button-renderer",function(){if(tTz!==void 0)return tTz;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return tTz=A},{mode:1});var bQQ;var H8=function(){return _.G.apply(this,arguments)||this};
_.g(H8,_.G);H8.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.YJ(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.uB(this.data.leftThumbnail.thumbnails,216)+")")};
H8.prototype.onLeftThumbnailChanged=H8.prototype.onLeftThumbnailChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],H8.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],H8.prototype,"data",void 0);_.I([_.hT("data.leftThumbnail"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],H8.prototype,"onLeftThumbnailChanged",null);_.I([_.Q({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],H8);
_.m(H8,"ytd-collage-hero-image-renderer",function(){if(bQQ!==void 0)return bQQ;var A=document.createElement("template");_.p(A,'\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>');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return bQQ=A},{mode:1});var hrX;var zT=function(){return _.G.apply(this,arguments)||this};
_.g(zT,_.G);zT.prototype.computeStyle=function(A){return A};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],zT.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],zT.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Z("design:type",String)],zT.prototype,"componentStyle",void 0);_.I([_.Q({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],zT);
_.m(zT,"ytd-single-hero-image-renderer",function(){if(hrX!==void 0)return hrX;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return hrX=A},{mode:1});var SAS;var B8=function(){return _.G.apply(this,arguments)||this};
_.g(B8,_.G);_.P=B8.prototype;
_.P.configureRendererStamper=function(){return{"data.heroImage":{id:"hero-image",mapping:{bannerAndBoxHeroImageRenderer:"ytd-banner-and-box-hero-image-renderer",singleHeroImageRenderer:"ytd-single-hero-image-renderer",collageHeroImageRenderer:"ytd-collage-hero-image-renderer"}},"data.callToActionButton":{id:"call-to-action-button",mapping:{callToActionButtonRenderer:"ytd-call-to-action-button-renderer"}},"data.reminderButton":{id:"reminder-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer",
buttonRenderer:"ytd-button-renderer"}},"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayResumePlaybackRenderer:"ytd-thumbnail-overlay-resume-playback-renderer",thumbnailOverlaySidePanelRenderer:"ytd-thumbnail-overlay-side-panel-renderer",thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayToggleButtonRenderer:"ytd-thumbnail-overlay-toggle-button-renderer"},
initialRenderPriority:_.h("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.P.computeSubtitle=function(A){if(this.data){var L;if(this.data.upcomingEventData){A=_.vG(A.subtitle);var O=Number(this.data.upcomingEventData.startTime);isNaN(O)||(L=_.Ue(_.yd(A,O)))}else L=A.subtitle;return L}};
_.P.onHeroTap=function(A){A.preventDefault();var L=this.data&&this.data.navigationEndpoint;!L||!_.xu(_.oa(A),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.xu(_.oa(A),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.h("kevlar_watchcard_hero_video_renderer_killswitch")?_.P4(this.hostElement,"yt-navigate",{navigationEndpoint:L}):this.ytComponentBehavior.resolveCommand(L))};
_.P.computeHeroTabIndex=function(A){return A&&A.simpleText?-1:0};
_.P.computeHeroRole=function(A){return A&&A.simpleText?"":"link"};
_.P.computeIsReminderButtonPresent=function(A){return!(!A||!A.reminderButton)};
_.P.computeHideBottomItems=function(A){return!(this.computeIsReminderButtonPresent(A)||A.subtitle)};
_.P.dataChanged=function(){var A=this.get("data.buttons.buttonRenderer.serviceEndpoint"),L;((L=_.q(A==null?void 0:A.commandMetadata,_.fb))==null?0:L.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(A)};
B8.prototype.dataChanged=B8.prototype.dataChanged;_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],B8.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],B8.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],B8.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],B8.prototype,"data",void 0);
_.I([_.K({computed:"computeSubtitle(data)"}),_.Z("design:type",String)],B8.prototype,"subtitle",void 0);_.I([_.K({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],B8.prototype,"isReminderButtonPresent",void 0);_.I([_.K({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],B8.prototype,"hideBottomItems",void 0);
_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],B8.prototype,"dataChanged",null);_.I([_.Q({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],B8);
_.m(B8,"ytd-watch-card-hero-video-renderer",function(){if(SAS!==void 0)return SAS;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return SAS=A},{mode:1});var qAJ;var Mh=function(){return _.G.apply(this,arguments)||this};
_.g(Mh,_.G);_.P=Mh.prototype;_.P.configureRendererStamper=function(){return{"data.callToActionButtons":{id:"call-to-action-buttons",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
_.P.computeTitleBadges=function(A){return A?[A]:[]};
_.P.computeHeaderStyle=function(A){return A?A.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.P.computeAvatarAriaLabel=function(A){if(A){var L,O,X,x;return(x=(L=A.avatar)==null?void 0:(O=L.accessibility)==null?void 0:(X=O.accessibilityData)==null?void 0:X.label)!=null?x:_.vG(A==null?void 0:A.title)}};
_.P.computeAvatarHeight=function(A){return A==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.P.computeBadgeRowClass=function(A){return(A==null?0:A[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Mh.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Mh.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Mh.prototype,"data",void 0);_.I([_.K({computed:"computeTitleBadges(data.titleBadge)"}),_.Z("design:type",Array)],Mh.prototype,"titleBadges",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.Z("design:type",String)],Mh.prototype,"headerStyle",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.Z("design:type",String)],Mh.prototype,"badgeRowClass",void 0);_.I([_.Q({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],Mh);
_.m(Mh,"ytd-watch-card-rich-header-renderer",function(){if(qAJ!==void 0)return qAJ;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return qAJ=A},{mode:1});var gGB;var wpS;var $v=function(){return _.G.apply(this,arguments)||this};
_.g($v,_.G);$v.prototype.onMetadataTap=function(A){var L=this.data&&this.data.navigationEndpoint;L&&!_.xu(_.oa(A),this.hostElement,["A".toString()])&&_.P4(this.hostElement,"yt-navigate",{endpoint:L})};
_.v2.Object.defineProperties($v.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 A;if(this.data.upcomingEventData){var L=_.vG(this.data.subtitle),O=Number(this.data.upcomingEventData.startTime);isNaN(O)||(A=_.Ue(_.yd(L,O)))}else A=this.data.subtitle;return A}}}});
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],$v.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],$v.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.r("data.style"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],$v.prototype,"isCondensed",null);_.I([_.K({reflectToAttribute:!0}),_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],$v.prototype,"subtitle",null);
_.I([_.Q({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],$v);
_.m($v,"ytd-watch-card-compact-video-renderer",function(){if(wpS!==void 0)return wpS;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return wpS=A},{mode:1});var pp$;var ab=function(){return _.G.apply(this,arguments)||this};
_.g(ab,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],ab.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],ab.prototype,"data",void 0);_.I([_.Q({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],ab);
_.m(ab,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(pp$!==void 0)return pp$;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return pp$=A},{mode:1});var kv=function(){return _.G.apply(this,arguments)||this};
_.g(kv,_.G);kv.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}}}}};
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],kv.prototype,"ytRendererStamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],kv.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],kv.prototype,"data",void 0);_.I([_.Q({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],kv);
_.m(kv,"ytd-vertical-watch-card-list-renderer",function(){if(gGB!==void 0)return gGB;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return gGB=A},{mode:1});var iQX;var Ux=function(){var A=_.G.apply(this,arguments)||this;A.ariaExpanded="false";return A};
_.g(Ux,_.G);_.P=Ux.prototype;_.P.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.P.dataChanged=function(){var A;this.currentSeasonIndex=((A=this.data)==null?void 0:A.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.P.computeEpisodesInfo=function(A,L,O){if(A!==void 0&&L.length===A.length)return A[O]};
_.P.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.P.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.P.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.P.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.P.getUppercaseSimpleString=function(A){return this.ytRendererBehavior.getSimpleString(A).toUpperCase()};
_.P.updateCurrentSeasonIndexFromBinding=function(A){this.currentSeasonIndex=A.detail.value};
Ux.prototype.onIronOverlayClosed=Ux.prototype.onIronOverlayClosed;Ux.prototype.currentSeasonIndexChanged=Ux.prototype.currentSeasonIndexChanged;Ux.prototype.dataChanged=Ux.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Ux.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Ux.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Ux.prototype,"data",void 0);
_.I([_.K(),_.Z("design:type",String)],Ux.prototype,"label",void 0);_.I([_.K({value:0}),_.Z("design:type",Number)],Ux.prototype,"currentSeasonIndex",void 0);_.I([_.K({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.Z("design:type",Object)],Ux.prototype,"episodesInfo",void 0);_.I([_.K({value:"false"}),_.Z("design:type",Object)],Ux.prototype,"ariaExpanded",void 0);_.I([_.qR("#lists"),_.Z("design:type",Object)],Ux.prototype,"lists",void 0);
_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ux.prototype,"dataChanged",null);_.I([_.iy("currentSeasonIndex"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ux.prototype,"currentSeasonIndexChanged",null);_.I([_.by("iron-overlay-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],Ux.prototype,"onIronOverlayClosed",null);
_.I([_.Q({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],Ux);
_.m(Ux,"ytd-watch-card-section-dropdown-renderer",function(){if(iQX!==void 0)return iQX;var A=document.createElement("template");_.p(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="season-picker-container style-scope ytd-watch-card-section-dropdown-renderer">\n  <tp-yt-paper-menu-button id="input" dynamic-align="" horizontal-align="left" class="style-scope ytd-watch-card-section-dropdown-renderer">\n    <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-trigger" aria-expanded$="[[ariaExpanded]]" aria-label$="[[label]]" on-tap="onLabelClick">\n      <div id="label-text" class="style-scope ytd-watch-card-section-dropdown-renderer">[[label]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-watch-card-section-dropdown-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="seasons" class="dropdown-content style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-content" selected="[[currentSeasonIndex]]" on-iron-select="onSeasonSelect" on-selected-changed="updateCurrentSeasonIndexFromBinding">\n      <template is="dom-repeat" items="[[data.dropdownTitles]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n        <tp-yt-paper-item aria-label$="[[item.accessibility.accessibilityData.label]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n          [[getUppercaseSimpleString(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <span id="spacer" class="style-scope ytd-watch-card-section-dropdown-renderer"></span>\n  <yt-formatted-string id="episodes" text="[[episodesInfo]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-iron-pages id="lists" selected="[[currentSeasonIndex]]" on-selected-changed="updateCurrentSeasonIndexFromBinding" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  \n</tp-yt-iron-pages>\n');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return iQX=A},{mode:1});var NH7;var ob=function(){var A=_.G.apply(this,arguments)||this;A.isSearch=!1;return A};
_.g(ob,_.G);ob.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}}}}};
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],ob.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],ob.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],ob.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],ob.prototype,"isSearch",void 0);_.I([_.Q({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],ob);
_.m(ob,"ytd-watch-card-section-sequence-renderer",function(){if(NH7!==void 0)return NH7;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);
return NH7=A},{mode:1});var PDQ=_.cm({buttonViewModel:_.gj});_.Xh(dC7);_.tF(dC7,"ytd-button-banner-view-model",{propNames:["data"]});var Au=function(){var A=_.G.apply(this,arguments)||this;A.isSearch=!1;return A};
_.g(Au,_.G);
Au.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"}}}};
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Au.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Au.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Au.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0,value:!0}),_.Z("design:type",Boolean)],Au.prototype,"rounded",void 0);_.I([_.K(),_.Z("design:type",Object)],Au.prototype,"isSearch",void 0);
_.I([_.Q({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],Au);
_.m(Au,"ytd-universal-watch-card-renderer",function(){if(DCM!==void 0)return DCM;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return DCM=A},{mode:1});var rqX;_.Y4(_.xa(function(A){var L=A.data;var O;A=!((O=_.X5().resolve(_.Ot(_.oy)))==null||!O());O={};return _.D("overview-message-view-model",{class:_.qn("ytwOverviewMessageViewModelHost",(O.ytwOverviewMessageViewModelDarkBackground=A,O.ytwOverviewMessageViewModelLightBackground=!A,O))},_.D(_.e,{cond:function(){return L().primaryImage},
then:function(X){return _.D(_.XV,{data:X,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.D(_.e,{cond:function(){return L().primaryText},
then:function(){return _.D("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.D(_.Xg,{text:function(){return L().primaryText}}))}}),_.D(_.e,{cond:function(){return L().secondaryText},
then:function(){return _.D("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.D(_.Xg,{text:function(){return L().secondaryText}}))}}))},"vj"),"overview-message-view-model",{props:{data:_.x5}});_.tF(_.a5J,"ytd-overview-answer-view-model",{propNames:["data"]});var LU=function(){return _.G.apply(this,arguments)||this};
_.g(LU,_.G);LU.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"}}}};
LU.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],LU.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],LU.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.U8),_.Z("design:type",Object)],LU.prototype,"ytContinuationHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],LU.prototype,"data",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],LU.prototype,"isSearch",void 0);
_.I([_.Q({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],LU);
_.m(LU,"ytd-secondary-search-container-renderer",function(){if(rqX!==void 0)return rqX;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);
return rqX=A},{mode:1});var KYJ;var Oq=function(){var A=_.G.apply(this,arguments)||this;A.renderSecondarySearchContainer=!1;A.isSearch=!1;return A};
_.g(Oq,_.G);_.P=Oq.prototype;_.P.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.P.created=function(){var A=this;this.boundStampSecondarySearchContainerIfFits=function(){A.stampSecondarySearchContainerIfFits()};
_.QT("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.P.computeIsSearchFrictionPage=function(A){var L,O,X,x,J;A=A==null?void 0:(L=A.primaryContents)==null?void 0:(O=L.sectionListRenderer)==null?void 0:(X=O.contents)==null?void 0:(x=X[0])==null?void 0:(J=x.itemSectionRenderer)==null?void 0:J.contents;if(!A)return!1;L=_.d(A);for(O=L.next();!O.done;O=L.next())if(X=void 0,(X=O.value)==null?0:X.searchFrictionViewModel)return!0;return!1};
_.P.computeShowSecondaryColumn=function(A,L){return!!(L&&L.secondaryContents&&A)};
_.P.activeChanged=function(){var A=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.tT(this,this.debounceStampSecondarySearchContainerIfFits)),_.MR(function(){A.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.tT(this,this.debounceStampSecondarySearchContainerIfFits))};
_.P.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.P.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.P.debounceStampSecondarySearchContainerIfFits=function(){_.$J(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.P.onRetrieveLocation=function(A,L){L.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);A.stopPropagation()};
_.P.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
Oq.prototype.dataChanged=Oq.prototype.dataChanged;Oq.prototype.onRetrieveLocation=Oq.prototype.onRetrieveLocation;Oq.prototype.persistentGuideChanged=Oq.prototype.persistentGuideChanged;Oq.prototype.activeChanged=Oq.prototype.activeChanged;_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Oq.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Oq.prototype,"ytRendererBehavior",void 0);
_.I([_.N(_.kr.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],Oq.prototype,"ytdGuideStateAwareBehavior",void 0);_.I([_.N(_.y9),_.Z("design:type",Object)],Oq.prototype,"ironResizableBehavior",void 0);_.I([_.K(),_.Z("design:type",Boolean)],Oq.prototype,"active",void 0);_.I([_.K(),_.Z("design:type",Object)],Oq.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0,value:function(){return _.h("enable_desktop_search_bigger_thumbs")}}),
_.Z("design:type",Boolean)],Oq.prototype,"useBiggerThumbs",void 0);_.I([_.K({reflectToAttribute:!0,value:function(){return _.dN("desktop_search_bigger_thumbs_style")}}),
_.Z("design:type",String)],Oq.prototype,"biggerThumbsStyle",void 0);_.I([_.K(),_.Z("design:type",Object)],Oq.prototype,"renderSecondarySearchContainer",void 0);_.I([_.K({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.Z("design:type",Boolean)],Oq.prototype,"showSecondaryColumn",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.Z("design:type",Boolean)],Oq.prototype,"isSearchFrictionPage",void 0);
_.I([_.K(),_.Z("design:type",Object)],Oq.prototype,"isSearch",void 0);_.I([_.hT("active"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Oq.prototype,"activeChanged",null);_.I([_.hT("guidePersistentAndVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Oq.prototype,"persistentGuideChanged",null);
_.I([_.by("yt-retrieve-location"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],Oq.prototype,"onRetrieveLocation",null);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Oq.prototype,"dataChanged",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],Oq);
_.m(Oq,"ytd-two-column-search-results-renderer",function(){if(KYJ!==void 0)return KYJ;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return KYJ=A},{mode:1});var XX=function(){var A=_.G.apply(this,arguments)||this;A.hasSearchHeader=!1;A.hasSecondaryContent=!1;A.hasBiggerThumbs=_.h("enable_desktop_search_bigger_thumbs");A.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return A};
_.g(XX,_.G);_.P=XX.prototype;_.P.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{searchHeaderRenderer:{component:"ytd-search-header-renderer"}}},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:{component:"ytd-survey-trigger-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:_.AP(["aa","eocs"])}}};
_.P.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.P.loadPage_=function(A){this.initCsi();A&&(this.data=A,_.QT("REFINEMENTS_TUPLE",["FromSearchResponse",A.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.$o(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.P.initCsi=function(){_.KK("results",["ol","cpt"])};
_.P.updateTitle=function(){var A=_.yI(window.location.href,"q");A||(A=_.yI(window.location.href,"search_query"));_.P4(this.hostElement,"yt-update-title",A||"")};
_.P.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.P.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.h("web_srp_data_changed_terminate_imp_killswitch")||_.dQ(this.hostElement,"yt-terminate-video-preview-action")};
_.P.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.P.computeHasSearchHeader=function(A){var L;A=A==null?void 0:(L=A.header)==null?void 0:L.searchHeaderRenderer;return!!A&&(!!A.searchFilterButton||!!A.chipBar)};
_.P.computeHasSecondaryContent=function(A){var L,O;return!!(A==null?0:(L=A.contents)==null?0:(O=L.twoColumnSearchResultsRenderer)==null?0:O.secondaryContents)};
_.v2.Object.defineProperties(XX,{template:{configurable:!0,enumerable:!0,get:function(){if(YAS===void 0){var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);YAS=A}A=YAS;return A}}});
XX.prototype.onReloadContinuationFinish=XX.prototype.onReloadContinuationFinish;XX.prototype.dataChanged=XX.prototype.dataChanged;_.I([_.N(_.Gr.YtPageBehavior),_.Z("design:type",Object)],XX.prototype,"ytPageBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],XX.prototype,"actionHandlerBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],XX.prototype,"ytRendererBehavior",void 0);
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],XX.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.U8),_.Z("design:type",Object)],XX.prototype,"ytContinuationHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],XX.prototype,"data",void 0);_.I([_.K({value:!0}),_.Z("design:type",Boolean)],XX.prototype,"monitorScroll",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],XX.prototype,"hasSearchHeader",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],XX.prototype,"hasSecondaryContent",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],XX.prototype,"hasBiggerThumbs",void 0);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],XX.prototype,"dataChanged",null);
_.I([_.by("yt-reload-continuation-finish"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],XX.prototype,"onReloadContinuationFinish",null);_.I([_.Q({is:"ytd-search"})],XX);_.b6.registerService(_.qxp,XX);
_.C$();
}catch(e){_._DumpException(e)}
try{
_.cq("h8y2qb");
var VaJ=function(A){if(A=_.eVD(A)){var L;(L=A.sources)!=null&&L[0]?(L=_.nR9(A),L=L<1?"VERTICAL":L>1?"HORIZONTAL":"SQUARE"):L=void 0;return L}},ld=function(A){_.c9.call(this,"upload");
this.opts.query=A},exJ=function(A,L){return _.D(DhJ,{data:A,
onYtNavigate:L})},Ev7=function(A,L){return _.eM(A.entities,"pageHeaderEntity",L)},ta7=function(A,L){return A.map(function(O){if(O.tabRenderer)return nvX(O.tabRenderer);
if(O.expandableTabRenderer&&L){var X=O.expandableTabRenderer;return{customTabRenderable:function(){return L(X)}}}return{}})},nvX=function(A){return{identifier:A.tabIdentifier,
aTagConfig:_.BR({innertubeCommand:A.endpoint,forceNewState:!0}),title:A.title,selected:A.selected,disabled:A.unselectable,icon:A.icon}},biZ=function(A){return _.JY({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:A})},hxz=function(A){if(!_.uS(document,"gtm-noscript")){var L=document.createElement("noscript");
L.id="gtm-noscript";L.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+A+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(L)}};_.Ty(ld,_.c9);ld.prototype.JSC$11095_setLabel=function(A){ld.superClass_.JSC$11095_setLabel.call(this,A);return this};
ld.prototype.addUploadMetadata=function(A,L){ld.superClass_.addUploadMetadata.call(this,A,L);return this};var SxQ=function(A){if(A!=="youtubebanner"&&A!=="youtube-channel-banner")throw Error("jo");ld.call(this,A)};
_.g(SxQ,ld);SxQ.prototype.JSC$11095_setLabel=function(A){ld.prototype.JSC$11095_setLabel.call(this,A);return this};
SxQ.prototype.addUploadMetadata=function(A,L){ld.prototype.addUploadMetadata.call(this,A,L);return this};var qxM=[_.y9,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(A){_.ii(A).path[0]!==this&&(this.resetLayout(),A.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var A=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.t_(this._layoutDebouncer,_.FI,A);_.bP(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var A=this;requestAnimationFrame(function(){A.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(A){this.resizerShouldNotify(A)&&this._notifyDescendant(A)},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 gvz=[_.B0u,{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(A,L){var O=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[A];if(!O)throw new ReferenceError(this._getUndefinedMsg(A));A=this._boundEffect(O,L||{});A.setUp();return A},
_effectsChanged:function(A,L,O){this._tearDownEffects();A&&O&&(A.split(" ").forEach(function(X){var x;X!==""&&((x=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[X])?this._effects.push(this._boundEffect(x,L[X])):console.warn(this._getUndefinedMsg(X)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(A,L){L=L||{};var O=parseFloat(L.startsAt||0),X=parseFloat(L.endsAt||1),x=X-O,J=function(){};
X=O===0&&X===1?A.run:function(Y,T){A.run.call(this,Math.max(0,(Y-O)/x),T)};
return{setUp:A.setUp?A.setUp.bind(this,L):J,run:A.run?X.bind(this):J,tearDown:A.tearDown?A.tearDown.bind(this):J}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(A){A.setUp()!==!1&&this._effectsRunFn.push(A.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(A){A.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(A,L){this._effectsRunFn&&this._effectsRunFn.forEach(function(O){O(A,L)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var A=this._clampedScrollTop;this._updateScrollState(A);this.threshold>0&&this._setThresholdTriggered(A>=this.threshold)}},
_getDOMRef:function(A){console.warn("_getDOMRef","`"+A+"` is undefined")},
_getUndefinedMsg:function(A){return"Scroll effect `"+A+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+A+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("ko`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(A){var L={};A=parseFloat(A.scalar);L.background=this._getDOMRef("background");L.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");L.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");L.deltaBg=L.backgroundFrontLayer.offsetHeight-L.background.offsetHeight;L.deltaBg===0?(isNaN(A)&&(A=.8),L.deltaBg=(this._dHeight||0)*A):(isNaN(A)&&(A=
1),L.deltaBg*=A);this._fxParallaxBackground=L},
run:function(A){var L=this._fxParallaxBackground;this.transform("translate3d(0px, "+L.deltaBg*Math.min(1,A)+"px, 0px)",L.backgroundFrontLayer);L.backgroundRearLayer&&this.transform("translate3d(0px, "+L.deltaBg*Math.min(1,A)+"px, 0px)",L.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var w87;var p8z;var iiJ=function(){};
_.P=iiJ.prototype;_.P._scrollTargetChanged=function(){};
_.P.scroll=function(){};
_.P._isValidScrollTarget=function(){};
_.P._toggleScrollListener=function(){};
_.P.toggleScrollListener=function(){};
_.P.createEffect=function(){};
_.P._effectsChanged=function(){};
_.P._layoutIfDirty=function(){};
_.P._boundEffect=function(){};
_.P._setUpEffect=function(){};
_.P._tearDownEffects=function(){};
_.P._runEffects=function(){};
_.P._scrollHandler=function(){};
_.P._scrollStateChanged=function(){};
_.P._getUndefinedMsg=function(){};
_.P.notifyResize=function(){};
_.P.assignParentResizable=function(){};
_.P.stopResizeNotificationsFor=function(){};
_.P._subscribeIronResize=function(){};
_.P._unsubscribeIronResize=function(){};
_.P.resizerShouldNotify=function(){};
_.P._onDescendantIronResize=function(){};
_.P._fireResize=function(){};
_.P._onIronRequestResizeNotifications=function(){};
_.P._parentResizableChanged=function(){};
_.P._notifyDescendant=function(){};
_.P._requestResizeNotifications=function(){};
_.P._findParent=function(){};
_.P._appResetLayoutHandler=function(){};
_.P.resetLayout=function(){};
_.P._notifyLayoutChanged=function(){};
_.P._notifyDescendantResize=function(){};
_.P._setThresholdTriggered=function(){};
iiJ=_.RJ({_template:function(){if(p8z!==void 0)return p8z;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;w87===void 0&&(w87=document.createElement("template"));var X=w87;O.call(L,X.content.cloneNode(!0),A.content.firstChild);return p8z=A},
is:"tp-yt-app-header",behaviors:[gvz,qxM],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 A=_.ii(this.$.slot).getDistributedNodes(),L=0,O;O=A[L];L++)if(O.nodeType===Node.ELEMENT_NODE)if(O.hasAttribute("sticky")){this._stickyElRef=O;break}else this._stickyElRef||(this._stickyElRef=O);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var A=this._clampedScrollTop,L=this._height===0||A===0,O=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;L||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();L?this._updateScrollState(A,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=O}},
_updateScrollState:function(A,L){if(this._height!==0){var O=0,X=this._top;var x=this._maxHeaderTop;var J=A-this._lastScrollTop,Y=Math.abs(J),T=A>this._lastScrollTop,V=performance.now();this._mayMove()&&(O=this._clamp(this.reveals?X+J:A,0,x));A>=this._dHeight&&(O=this.condenses&&!this.fixed?Math.max(this._dHeight,O):O,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&Y<100){if(V-this._initTimestamp>300||this._wasScrollingDown!==T)this._initScrollTop=A,this._initTimestamp=V;A>=x&&
(Math.abs(this._initScrollTop-A)>30||Y>10?(T&&A>=x?O=x:!T&&A>=this._dHeight&&(O=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((O-X)/(J/(V-this._lastTimestamp)),0,300)+"ms"):O=this._top)}x=this._dHeight===0?A>0?1:0:O/this._dHeight;L||(this._lastScrollTop=A,this._top=O,this._wasScrollingDown=T,this._lastTimestamp=V);if(L||x!==this._progress||X!==O||A===0)this._progress=x,this._runEffects(x,O),this._transformHeader(O)}},
_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(A){this.translate3d(0,-A+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&A>=this._stickyElTop?Math.min(A,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(A,L,O){return Math.min(O,Math.max(L,A))},
_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),_.ii(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(A){switch(A){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.ii(this).querySelector("[main-title]");case "condensedTitle":return _.ii(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var NeX;var rvM;_.RJ({_template:function(){if(rvM!==void 0)return rvM;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;NeX===void 0&&(NeX=document.createElement("template"));var X=NeX;O.call(L,X.content.cloneNode(!0),A.content.firstChild);return rvM=A},
is:"tp-yt-app-header-layout",behaviors:[qxM],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.ii(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var A=this.header;if(this.isAttached&&A){this.$.wrapper.classList.remove("initializing");A.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)A.style.left=
"",A.style.right="";else{var L=this.getBoundingClientRect(),O=document.documentElement.clientWidth-L.right;A.style.left=L.left+"px";A.style.right=O+"px"}L=this.$.contentContainer.style;O=A.offsetHeight;A.fixed&&!A.condenses&&this.hasScrollingRegion?(L.marginTop=O+"px",L.paddingTop=""):(L.paddingTop=O+"px",L.marginTop="")}}});var K5Z=new _.PF("replaceFeedContentAction");var GT$=new _.PF("alertCommand");var lAJ=new _.PF("manageLabsStateCommand");var cvM=new _.PF("inlineFormRenderer");var cc=new _.PF("playlistSidebarPrimaryInfoRenderer");var CpS=new _.PF("productDetailsThumbnailRenderer"),F5k=new _.PF("productDetailsVariantRenderer"),RxM=new _.PF("productDetailsVariantOptionRenderer"),Qbz=new _.PF("productDetailsOffersContainerRenderer"),mhz=new _.PF("productDetailsOfferRenderer");var fAJ=new _.PF("shoppingFlaggingRenderer");var IAM=new _.PF("playlistBylineRenderer");var yv$=new _.PF("insertChannelTabCommand");var CK=function(){return _.wd.apply(this,arguments)||this};
_.g(CK,_.wd);_.P=CK.prototype;_.P.activeChanged=function(){if(this.active){var A=_.YJ(this.hostElement).querySelector("#header");A&&_.P4(A,"iron-resize");window.addEventListener("scroll",_.tT(this,this.onScroll))}else window.removeEventListener("scroll",_.tT(this,this.onScroll)),_.P4(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.P.guideVisibleChanged=function(){var A=_.YJ(this.hostElement).querySelector("#header");A&&_.P4(A,"iron-resize")};
_.P.onScroll=function(){var A=this;_.$J(this,"onScroll",function(){var L=_.YJ(A.hostElement).querySelector("#header");L&&L.polymerController&&(L=L.polymerController.getScrollState().progress===1?"standard":"seamed",_.P4(A.hostElement,"yt-request-panel-mode-change",{mode:L}))},10)};
_.P.tabsChanged=function(){if(this.tabs){for(var A=null,L=0,O=this.tabs.length;L<O;++L){var X=this.tabs[L].tabRenderer;if(X&&X.selected){A=L;break}}this.selected=A}};
_.P.onTabsActivate=function(A){_.P4(this.hostElement,"yt-navigate",{endpoint:this.tabs[A.detail.selected].tabRenderer.endpoint})};
CK.prototype.tabsChanged=CK.prototype.tabsChanged;CK.prototype.guideVisibleChanged=CK.prototype.guideVisibleChanged;CK.prototype.activeChanged=CK.prototype.activeChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],CK.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.kr.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],CK.prototype,"ytdGuideStateAwareBehavior",void 0);_.I([_.K(),_.Z("design:type",Array)],CK.prototype,"tabs",void 0);
_.I([_.K(),_.Z("design:type",Object)],CK.prototype,"selected",void 0);_.I([_.K(),_.Z("design:type",Boolean)],CK.prototype,"active",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],CK.prototype,"disableHeaderFluidWidth",void 0);_.I([_.hT("active"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],CK.prototype,"activeChanged",null);
_.I([_.hT("guidePersistentAndVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],CK.prototype,"guideVisibleChanged",null);_.I([_.hT("tabs"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],CK.prototype,"tabsChanged",null);_.I([_.p4()],CK);var ZiJ=[_.B.YtRendererBehavior,_.kr.YtdGuideStateAwareBehavior,CK.prototype];var jbX=2/3,W5S=_.tI(130749),Hiz=function(A,L){var O=this;this.element=A;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){O.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:jbX,moveAction:function(X){O.moveAction(X)},
triggerAction:function(){O.element.isReloading=!0;_.k4(_.iV(),{visualElement:W5S});_.S5.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:O.element}})}}}};
_.qB(_.iV(),W5S,this.layer);this.gesture=new _.e$(A,L,this.refreshConfig,"pan-down");this.attach()};
_.P=Hiz.prototype;_.P.attach=function(){this.gesture.attach()};
_.P.detach=function(){this.gesture.detach()};
_.P.reset=function(){this.element.close()};
_.P.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.P.moveAction=function(A){this.element.rotation=A*360};var zx$=_.tI(130750),FU=function(A,L,O,X,x){var J=this;this.element=A;this.parent=O;this.channelHeader=X;this.ytdReduxDispatch=x;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){J.tabsStartAtInPx=J.channelHeader.clientHeight-48;var Y;(Y=J.selectedTab)!=null&&Y.title&&(Y=_.X5().resolve(_.Ot(_.JI)))&&(Y=Y.getCurrentPage(),J.lastVisitedTabScrollPosition=Y.getScrollTop(),J.previousTab&&
((J.lastVisitedTabScrollPosition===void 0?0:J.lastVisitedTabScrollPosition<J.channelHeader.clientHeight-48)?J.scrollPositionForTabs.has(J.selectedTab.title)&&J.scrollPositionForTabs.delete(J.selectedTab.title):J.scrollPositionForTabs.set(J.selectedTab.title,Y.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:Be$(),triggerAction:function(){J.navigate(J.previousTab)},
moveAction:function(Y,T){J.moveAction(Y,T)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-Be$(),triggerAction:function(){J.navigate(J.nextTab)},
moveAction:function(Y,T){J.moveAction(Y,T)}}}};
_.qB(_.iV(),zx$,this.layer);this.gesture=new _.e$(A,L,this.tabConfig);this.attach()};
FU.prototype.attach=function(){this.gesture.attach()};
FU.prototype.detach=function(){this.gesture.detach()};
FU.prototype.tabsChanged=function(A){if(A){var L=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;A=_.d(A);for(var O=A.next();!O.done;O=A.next()){O=O.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=O);var X=void 0;if((X=O)==null?0:X.selected)this.previousTab=L,this.selectedTab=O;L=O}L=this.gesture;A=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}});
L.config=A;this.scrollPositionNeedsUpdate=!0}};
FU.prototype.moveAction=function(A,L){if(!this.tabsElement){var O;this.tabsElement=(O=this.parent.header)==null?void 0:O.tabsElement;L==="right"&&this.previousTab?_.pA6(_.CA.instance,this.previousTab.endpoint,{},""):L==="left"&&this.nextTab&&_.pA6(_.CA.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}O=this.tabsElement._pos;L==="right"&&(A*=-1);this.tabsElement._positionBar(O.width,O.left*1+O.width*A)};
var Be$=function(){var A,L;return(L=(A=_.X5().resolve(_.JI).getCurrentPage())==null?void 0:A.clientWidth)!=null?L:0};
FU.prototype.navigate=function(A){this.element.data=void 0;if(A=A==null?void 0:A.endpoint)this.ytdReduxDispatch(biZ(!0)),_.k4(_.iV(),{visualElement:zx$}),_.S5.instance.resolveCommand({navigateAction:{endpoint:A}},{form:{element:this.element}})};var Maz;var $hM;var R3=function(){return _.G.apply(this,arguments)||this};
_.g(R3,_.G);R3.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],R3.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],R3.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],R3.prototype,"data",void 0);_.I([_.Q({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],R3);
_.m(R3,"ytd-labs-edit-renderer",function(){if($hM!==void 0)return $hM;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return $hM=A},{mode:1});var aAz;var QE=function(){var A=_.G.apply(this,arguments)||this;A.dark=!1;A.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";A.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return A};
_.g(QE,_.G);QE.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
QE.prototype.ready=function(){var A=document.documentElement.hasAttribute("dark");this.setBackgroundImage(A);this.dark=A};
QE.prototype.onDarkModeToggledAction=function(A){this.setBackgroundImage(A);this.dark=A};
QE.prototype.setBackgroundImage=function(A){_.eq(this.hostElement,{"--yt-labs-header-background":"url("+(A?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],QE.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],QE.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],QE.prototype,"ytActionHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],QE.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],QE.prototype,"dark",void 0);
_.I([_.Q({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],QE);
_.m(QE,"ytd-labs-header-renderer",function(){if(aAz!==void 0)return aAz;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return aAz=A},{mode:1});var kTn;var m6=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return A};
_.g(m6,_.G);m6.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"}}}}}};
m6.prototype.onYtToggleButton=function(A){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",A.detail.toggled)};
m6.prototype.onManageLabsState=function(A){if(A=_.q(A,lAJ))A.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?A.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&A.labsItemId===this.data.labsItemId&&(A.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.dQ(this.hostElement,"yt-check-labs-opted-in-state").some(function(L){return L})&&this.data.confirmationDialogCommand?_.VN(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.X5().resolve(_.x$).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&A.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.X5().resolve(_.x$).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
m6.prototype.onCheckLabsOptedInState=function(){var A=this.get("data.primaryButton.toggleButtonRenderer");return A?A.isToggled:!1};
_.v2.Object.defineProperties(m6.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
m6.prototype.onYtToggleButton=m6.prototype.onYtToggleButton;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],m6.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],m6.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],m6.prototype,"ytActionHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],m6.prototype,"data",void 0);
_.I([_.K({reflectToAttribute:!0}),_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],m6.prototype,"itemStyle",null);_.I([_.by("yt-toggle-button"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],m6.prototype,"onYtToggleButton",null);_.I([_.Q({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],m6);
_.m(m6,"ytd-labs-item-renderer",function(){if(kTn!==void 0)return kTn;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return kTn=A},{mode:1});var UhM;var vvk;var fK=function(){return _.G.apply(this,arguments)||this};
_.g(fK,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],fK.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],fK.prototype,"data",void 0);_.I([_.Q({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],fK);
_.m(fK,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(vvk!==void 0)return vvk;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return vvk=A},{mode:1});var ovJ;var I3=function(){return _.G.apply(this,arguments)||this};
_.g(I3,_.G);I3.prototype.observeSuperchatChip=function(){if(this.data){var A={"--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)};_.eq(this.hostElement,A)}};
I3.prototype.colorFromDecimal=function(A){return _.Hy(Number(A||0))};
I3.prototype.observeSuperchatChip=I3.prototype.observeSuperchatChip;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],I3.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],I3.prototype,"data",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],I3.prototype,"observeSuperchatChip",null);_.I([_.Q({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],I3);
_.m(I3,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(ovJ!==void 0)return ovJ;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return ovJ=A},{mode:1});var yE=function(){return _.G.apply(this,arguments)||this};
_.g(yE,_.G);yE.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"}}}};
_.v2.Object.defineProperties(yE.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],yE.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],yE.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.BL),_.Z("design:type",Object)],yE.prototype,"ytdDismissibleItemBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],yE.prototype,"data",void 0);_.I([_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],yE.prototype,"hideMessageBlock",null);
_.I([_.Q({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],yE);
_.m(yE,"ytd-live-chat-history-entry-renderer",function(){if(UhM!==void 0)return UhM;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return UhM=A},{mode:1});var Au$;var Z5=function(){return _.G.apply(this,arguments)||this};
_.g(Z5,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Z5.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Z5.prototype,"data",void 0);_.I([_.Q({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],Z5);
_.m(Z5,"ytd-channel-options-renderer",function(){if(Au$!==void 0)return Au$;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Au$=A},{mode:1});var Ltz;var j$=function(){return _.G.apply(this,arguments)||this};
_.g(j$,_.G);j$.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],j$.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],j$.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],j$.prototype,"data",void 0);_.I([_.Q({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],j$);
_.m(j$,"ytd-settings-email-item-renderer",function(){if(Ltz!==void 0)return Ltz;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Ltz=A},{mode:1});var OUM;var Wc=function(){return _.G.apply(this,arguments)||this};
_.g(Wc,_.G);Wc.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"}}}};
Wc.prototype.getExpansionIcon=function(A){return A?"COLLAPSE":"EXPAND"};
Wc.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.v2.Object.defineProperties(Wc.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Wc.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Wc.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Wc.prototype,"data",void 0);_.I([_.K({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],Wc.prototype,"expanded",void 0);_.I([_.r("expanded"),_.Z("design:type",String),_.Z("design:paramtypes",[])],Wc.prototype,"emailListExpanded",null);
_.I([_.qR("#options"),_.Z("design:type",Object)],Wc.prototype,"options",void 0);_.I([_.Q({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],Wc);
_.m(Wc,"ytd-settings-email-list-renderer",function(){if(OUM!==void 0)return OUM;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return OUM=A},{mode:1});var Xlz;var Hc=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return A};
_.g(Hc,_.G);Hc.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"}}}};
Hc.prototype.handleSignalActionSubmitForm=function(){var A,L=(A=this.formRenderer)==null?void 0:A.getForm();L&&this.data.serviceEndpoint&&_.X5().resolve(_.x$).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},L,{element:this.hostElement})})};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Hc.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Hc.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],Hc.prototype,"ytActionHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Hc.prototype,"data",void 0);_.I([_.qR("yt-form-renderer"),_.Z("design:type",Object)],Hc.prototype,"formRenderer",void 0);
_.I([_.Q({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],Hc);
_.m(Hc,"ytd-settings-gaia-link-renderer",function(){if(Xlz!==void 0)return Xlz;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Xlz=A},{mode:1});var xsM;var zr=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return A};
_.g(zr,_.G);zr.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.c0n()&&this.set("data.hidden",!1)};
zr.prototype.onSwitchReady=function(){var A=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.h("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.lWJ().then(function(L){L&&(Notification.permission==="default"?A.set("data.hidden",!1):Notification.permission==="granted"&&_.SL("NotificationsDisabled").then(function(O){O||_.dQ(A.hostElement,"yt-toggle-settings-switch",[A.data.id,!O]);A.set("data.hidden",!1)}).catch(function(){}))})})};
zr.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}}}}};
zr.prototype.handleUpdateOptionsCommand=function(A){(A=_.q(A,_.QLc))&&this.data&&this.data.id===A.id&&(this.set("data.hidden",A.hidden),A.text!==void 0&&this.set("data.text",A.text),A.clearOptions&&this.set("data.options",[]))};
zr.prototype.onSwitchReady=zr.prototype.onSwitchReady;zr.prototype.dataChanged=zr.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],zr.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],zr.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],zr.prototype,"ytActionHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],zr.prototype,"data",void 0);
_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zr.prototype,"dataChanged",null);_.I([_.by("yt-settings-switch-ready"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],zr.prototype,"onSwitchReady",null);_.I([_.Q({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],zr);
_.m(zr,"ytd-settings-options-renderer",function(){if(xsM!==void 0)return xsM;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return xsM=A},{mode:1});var sgz;var Bc=function(){return _.G.apply(this,arguments)||this};
_.g(Bc,_.G);Bc.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Bc.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
Bc.prototype.onYtExpanderMoreTapped=Bc.prototype.onYtExpanderMoreTapped;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Bc.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],Bc.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Bc.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Bc.prototype,"data",void 0);
_.I([_.by("yt-expander-more-tapped"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Bc.prototype,"onYtExpanderMoreTapped",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],Bc);
_.m(Bc,"ytd-product-details-description-renderer",function(){if(sgz!==void 0)return sgz;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return sgz=A},{mode:1});var JuJ;var MH=function(){var A=_.G.apply(this,arguments)||this;A.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";A.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";A.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";A.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return A};
_.g(MH,_.G);MH.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.v2.Object.defineProperties(MH.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var A,L;return((A=this.data)==null?void 0:(L=A.offerData)==null?void 0:L.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var A,L;return((A=this.data)==null?void 0:A.purchaseButtonRenderers)!==void 0&&((L=this.data)==null?void 0:L.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var A,L;return!((A=this.data)==null||!A.formattedFromMerchantText)&&(!((L=this.data)==null||!L.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],MH.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],MH.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],MH.prototype,"ytComponentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],MH.prototype,"data",void 0);
_.I([_.K({type:_.h("kevlar_property_type_migration_killswitch")?String:void 0}),_.Z("design:type",Object)],MH.prototype,"shippingIcon",void 0);_.I([_.K({type:_.h("kevlar_property_type_migration_killswitch")?String:void 0}),_.Z("design:type",Object)],MH.prototype,"shippingAddressIcon",void 0);_.I([_.K({type:_.h("kevlar_property_type_migration_killswitch")?String:void 0}),_.Z("design:type",Object)],MH.prototype,"googleGuaranteeIcon",void 0);
_.I([_.K({type:_.h("kevlar_property_type_migration_killswitch")?String:void 0}),_.Z("design:type",Object)],MH.prototype,"returnPolicyIcon",void 0);_.I([_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],MH.prototype,"showAdditionalFees",null);_.I([_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],MH.prototype,"showMultiPurchaseButtons",null);
_.I([_.r("data","showMultiPurchaseButtons"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],MH.prototype,"showPurchaseData",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],MH);
_.m(MH,"ytd-product-details-hero-offer-renderer",function(){if(JuJ!==void 0)return JuJ;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return JuJ=A},{mode:1});var P2J;var dsM;var $0=function(){return _.G.apply(this,arguments)||this};
_.g($0,_.G);_.P=$0.prototype;_.P.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.P.onKeyDown=function(A){A=A.keyCode;A!==13&&A!==32||this.handleSelection()};
_.P.onMouseEnterImage=function(){var A;((A=this.data)==null?void 0:A.thumbnailDetails)!==void 0&&_.YK(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.P.onMouseLeaveImage=function(){_.YK(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.P.handleSelection=function(){this.data&&_.P4(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.v2.Object.defineProperties($0.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.isSelected)}}});
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],$0.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],$0.prototype,"data",void 0);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],$0.prototype,"isSelected",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],$0);
_.m($0,"ytd-product-details-thumbnail-renderer",function(){if(dsM!==void 0)return dsM;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return dsM=A},{mode:1});var a3=function(){var A=_.G.apply(this,arguments)||this;var L={};A.actionMap=(L["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",L["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",L);A.selectedThumbnailIndex=0;A.selectItem=function(O){O.target.onKeyDown(O)};
return A};
_.g(a3,_.G);_.P=a3.prototype;_.P.handlePreviewImageSelect=function(A){this.hoverThumbnail=A};
_.P.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.P.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.P.onThumbnailSelected=function(A,L){this.selectedThumbnailIndex=L};
_.P.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.P.updateOffset=function(){var A=_.YJ(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-A));this.ytdHorizontalListBehavior.reposition_()};
_.v2.Object.defineProperties(a3.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)==null?0:A.imageRenderer){var L,O;return((L=this.data)==null?void 0:(O=L.imageRenderer)==null?void 0:O.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var A;if((A=this.data)==null?0:A.imageRenderer){var L;return(L=_.q(this.data.imageRenderer[this.selectedThumbnailIndex],CpS))==null?void 0:L.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var A=this,L,O,X,x=(X=(L=this.data)==null?void 0:(O=L.imageRenderer)==null?void 0:O.map(function(J,Y){return{productDetailsThumbnailRenderer:Object.assign({},_.q(J,CpS),{index:Y,isSelected:Y===A.selectedThumbnailIndex})}}))!=null?X:[];
return Object.assign({},this.data,{imageRenderer:x})}}});
a3.prototype.updateOffset=a3.prototype.updateOffset;a3.prototype.dataChanged=a3.prototype.dataChanged;a3.prototype.onThumbnailSelected=a3.prototype.onThumbnailSelected;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],a3.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],a3.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.Vy.YtdHorizontalListBehavior),_.Z("design:type",Object)],a3.prototype,"ytdHorizontalListBehavior",void 0);
_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],a3.prototype,"componentBehavior",void 0);_.I([_.N([_.es.YtActionHandlerBehavior]),_.Z("design:type",Object)],a3.prototype,"actionHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],a3.prototype,"data",void 0);_.I([_.K({value:"$.items.children"}),_.Z("design:type",String)],a3.prototype,"itemsPath",void 0);_.I([_.K({value:3}),_.Z("design:type",Number)],a3.prototype,"initialCount",void 0);
_.I([_.qR("#items"),_.Z("design:type",Object)],a3.prototype,"items",void 0);_.I([_.K(),_.Z("design:type",Object)],a3.prototype,"selectedThumbnailIndex",void 0);_.I([_.K(),_.Z("design:type",Object)],a3.prototype,"hoverThumbnail",void 0);_.I([_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],a3.prototype,"showThumbnails",null);
_.I([_.by("ytd-product-details-thumbnail-renderer-selected"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Number]),_.Z("design:returntype")],a3.prototype,"onThumbnailSelected",null);_.I([_.r("data","selectedThumbnailIndex","hoverThumbnail"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],a3.prototype,"thumbnailDetails",null);_.I([_.r("data","selectedThumbnailIndex"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],a3.prototype,"populatedData",null);
_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],a3.prototype,"dataChanged",null);_.I([_.by("iron-resize"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],a3.prototype,"updateOffset",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],a3);
_.m(a3,"ytd-product-details-image-carousel-renderer",function(){if(P2J!==void 0)return P2J;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return P2J=A},{mode:_.e5("kevlar_poly_si_batch_j079")?1:2});var YqM;var k0=function(){return _.G.apply(this,arguments)||this};
_.g(k0,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],k0.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],k0.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],k0.prototype,"componentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],k0.prototype,"data",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],k0);
_.m(k0,"ytd-product-details-offer-renderer",function(){if(YqM!==void 0)return YqM;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return YqM=A},{mode:1});var uXn;var UX=function(){var A=_.G.apply(this,arguments)||this;A.isOffersHidden=!0;return A};
_.g(UX,_.G);UX.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var A,L=_.q((A=this.data)==null?void 0:A.viewOffersButton,_.$t);L&&this.ytRendererBehavior.logExplicitClick(L)};
UX.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.v2.Object.defineProperties(UX.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var A,L,O,X;return(O=_.q((A=this.data)==null?void 0:(L=A.offers)==null?void 0:L[0],mhz))==null?void 0:(X=O.offerData)==null?void 0:X.vendorLogoUrl}}});
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],UX.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],UX.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],UX.prototype,"componentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],UX.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],UX.prototype,"isOffersHidden",void 0);
_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],UX.prototype,"firstOfferVendorLogoUrl",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],UX);
_.m(UX,"ytd-product-details-offers-container-renderer",function(){if(uXn!==void 0)return uXn;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return uXn=A},{mode:1});var TYk;var V2J;var vc=function(){return _.G.apply(this,arguments)||this};
_.g(vc,_.G);vc.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
vc.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.YK(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
vc.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.YK(this,"ytd-product-details-variant-image-unselect")};
_.v2.Object.defineProperties(vc.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 A;return((A=this.data)==null?void 0:A.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var A,L,O;return((A=this.data)==null?void 0:A.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((L=this.data)==null?void 0:L.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((O=this.data)==null?void 0:O.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var A;if(((A=this.data)==null?void 0:A.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var A,L;return this.isUnavailable?(A=this.data)==null?void 0:A.variantOptionUnavailableAccessibilityLabel:(L=this.data)==null?void 0:L.variantOptionAccessibilityLabel}}});
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],vc.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],vc.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],vc.prototype,"componentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],vc.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",String)],vc.prototype,"displayType",void 0);
_.I([_.r("displayType","data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],vc.prototype,"isImageButton",null);_.I([_.r("displayType","data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],vc.prototype,"isPillButton",null);_.I([_.r("data"),_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],vc.prototype,"isActive",null);
_.I([_.r("data"),_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],vc.prototype,"isUnavailable",null);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],vc.prototype,"thumbnailDetails",null);_.I([_.r("isUnavailable","data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],vc.prototype,"accessibilityLabel",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],vc);
_.m(vc,"ytd-product-details-variant-option-renderer",function(){if(V2J!==void 0)return V2J;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return V2J=A},{mode:1});var DsM;var o3=function(){var A=_.G.apply(this,arguments)||this;A.variantsExpanded=!1;A.hideShowMoreLessVariantButton=!0;A.initialized=!1;A.computeVariantsDebouncer=null;A.computeVariants=function(L){L=L===void 0?!1:L;A.variantsExpanded||A.showOptions()||!L||(A.variantsExpanded=!0);if(A.variantsExpanded){L=_.d(A.items.children);for(var O=L.next();!O.done;O=L.next())O.value.hidden=!1}A.initialized=!0};
return A};
_.g(o3,_.G);_.P=o3.prototype;_.P.ready=function(){var A=this;setTimeout(function(){A.computeVariants(!0)})};
_.P.showOptions=function(){for(var A=_.d(this.items.children),L=A.next();!L.done;L=A.next())L.value.hidden=!0;var O=this.container.getBoundingClientRect().width,X=0,x=A=0;L=!1;for(var J=_.d(this.items.children),Y=J.next();!Y.done;Y=J.next()){Y=Y.value;Y.hidden=!1;var T=Y.getBoundingClientRect().width;if(X+T<O)X+=T;else if(++x<2)X=T;else break;A+=1;Y.hasAttribute("is-active")&&(L=!0)}for(O=A;O<this.items.children.length;O++)this.items.children[O].hidden=!0;this.hideShowMoreLessVariantButton=A===this.items.children.length;
return L};
_.P.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.t_(this.computeVariantsDebouncer,_.sS.after(100),this.computeVariants)};
_.P.onShowMoreLessVariantsButtonClick=function(){var A;(A=this.data)!=null&&A.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.P.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.v2.Object.defineProperties(o3.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var A,L,O=(A=this.data)==null?void 0:(L=A.variantOptionRenderers)==null?void 0:L.find(function(J){return _.q(J,RxM).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),X,x;
return(x=(X=_.q(O,RxM))==null?void 0:X.name)!=null?x:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.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"}}}});
o3.prototype.debouncedComputeVariants=o3.prototype.debouncedComputeVariants;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],o3.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],o3.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],o3.prototype,"componentBehavior",void 0);_.I([_.N(_.y9),_.Z("design:type",Object)],o3.prototype,"ironResizableBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],o3.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],o3.prototype,"variantsExpanded",void 0);_.I([_.K(),_.Z("design:type",Object)],o3.prototype,"hideShowMoreLessVariantButton",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],o3.prototype,"initialized",void 0);_.I([_.qR("#items"),_.Z("design:type",HTMLDivElement)],o3.prototype,"items",void 0);_.I([_.qR("#container"),_.Z("design:type",HTMLDivElement)],o3.prototype,"container",void 0);
_.I([_.qR("#more-variants-button"),_.Z("design:type",HTMLElement)],o3.prototype,"moreVariantsButton",void 0);_.I([_.r("data"),_.Z("design:type",String),_.Z("design:paramtypes",[])],o3.prototype,"selectedOptionName",null);_.I([_.hT("data","variantsExpanded"),_.by("iron-resize"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],o3.prototype,"debouncedComputeVariants",null);
_.I([_.r("data"),_.Z("design:type",String),_.Z("design:paramtypes",[])],o3.prototype,"displayType",null);_.I([_.r("displayType"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],o3.prototype,"variantItemsClassname",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],o3);
_.m(o3,"ytd-product-details-variant-renderer",function(){if(DsM!==void 0)return DsM;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return DsM=A},{mode:1});var Av=function(){return _.G.apply(this,arguments)||this};
_.g(Av,_.G);
Av.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"}}}};
_.v2.Object.defineProperties(Av.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var A,L,O=(L=_.q((A=this.data)==null?void 0:A.offersContainerRenderer,Qbz))==null?void 0:L.offers;return O!==void 0&&(O==null?void 0:O.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 A,L,O;return((O=(A=this.data)==null?void 0:(L=A.variants)==null?void 0:L.map(function(X){var x,J;X=(J=(x=_.q(X,F5k))==null?void 0:x.variantOptionRenderers)==null?void 0:J.find(function(T){var V;return((V=_.q(T,RxM))==null?void 0:V.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var Y;return(Y=_.q(X,RxM))==null?void 0:Y.name}).filter(function(X){return typeof X==="string"}))!=null?O:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var A,L,O,X=(L=_.q((A=this.data)==null?void 0:A.shoppingFlaggingRenderer,fAJ))==null?void 0:(O=L.reportButton)==null?void 0:O.buttonRenderer;if(X)return{text:X.text,command:X.command,icon:{iconType:"FLAG"},accessibilityData:X.accessibilityData,trackingParams:X.trackingParams,loggingDirectives:X.loggingDirectives}}}});
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Av.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Av.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],Av.prototype,"componentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Av.prototype,"data",void 0);_.I([_.qR("#image-carousel-renderer"),_.Z("design:type",Object)],Av.prototype,"imageCarouselRenderer",void 0);
_.I([_.qR("#hero-offer-renderer"),_.Z("design:type",Object)],Av.prototype,"productDetailsHeroOfferRenderer",void 0);_.I([_.qR("#variants"),_.Z("design:type",Object)],Av.prototype,"productDetailsVariantRenderer",void 0);_.I([_.qR("#offers"),_.Z("design:type",Object)],Av.prototype,"productDetailsOffersContainerRenderer",void 0);_.I([_.qR("#description-renderer"),_.Z("design:type",Object)],Av.prototype,"productDetailsDescriptionRenderer",void 0);
_.I([_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Av.prototype,"showPurchaseData",null);_.I([_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Av.prototype,"showHeroOfferRenderer",null);_.I([_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Av.prototype,"showBrandText",null);_.I([_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Av.prototype,"showOffers",null);
_.I([_.r("showOffers","showPurchaseData"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Av.prototype,"showBuySeparator",null);_.I([_.r("showOffers","showPurchaseData"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Av.prototype,"showBuyCard",null);_.I([_.r("data"),_.Z("design:type",String),_.Z("design:paramtypes",[])],Av.prototype,"selectedVariantsText",null);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Av.prototype,"shoppingReportingButtonData",null);
_.I([_.Q({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],Av);
_.m(Av,"ytd-product-details-renderer",function(){if(TYk!==void 0)return TYk;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return TYk=A},{mode:1});var e8z;var EYS;var nY7;var Li=function(){return _.G.apply(this,arguments)||this};
_.g(Li,_.G);Li.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.v2.Object.defineProperties(Li.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Li.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Li.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Li.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",String)],Li.prototype,"formattedAmount",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Li.prototype,"ariaLabel",void 0);
_.I([_.K({reflectToAttribute:!0}),_.r("data.style"),_.Z("design:type",String),_.Z("design:paramtypes",[])],Li.prototype,"vcBalanceWidgetStyle",null);_.I([_.yU({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],Li);
_.m(Li,"yt-vc-balance-renderer",function(){if(nY7===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;EYS===void 0&&(EYS=document.createElement("template"));var X=EYS;O.call(L,X.content.cloneNode(!0),A.content.firstChild);nY7=A}A=nY7;return A},{mode:2});_.y3("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var Ox=function(){return _.G.apply(this,arguments)||this};
_.g(Ox,_.G);_.v2.Object.defineProperties(Ox.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:""}}});
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Ox.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],Ox.prototype,"ytdReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Ox.prototype,"data",void 0);_.I([_.K({selectorArgs:["data.vcBalanceEntityKey"],selector:function(A,L){return _.eM(A.entities,"vcBalanceEntity",L)}}),
_.Z("design:type",Object)],Ox.prototype,"vcBalanceEntity",void 0);_.I([_.r("vcBalanceEntity"),_.Z("design:type",String),_.Z("design:paramtypes",[])],Ox.prototype,"formattedAmount",null);_.I([_.r("vcBalanceEntity"),_.Z("design:type",String),_.Z("design:paramtypes",[])],Ox.prototype,"vcBalanceAriaLabel",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],Ox);
_.m(Ox,"ytd-vc-balance-renderer",function(){if(e8z!==void 0)return e8z;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return e8z=A},{mode:1});var t2M;var Xv=function(){var A=_.G.apply(this,arguments)||this;A.rotation=0;A.isReloading=!1;return A};
_.g(Xv,_.G);Xv.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
Xv.prototype.reset=function(){this.hostElement.style.opacity=""};
Xv.prototype.close=function(){var A=this;return _.u(function(L){if(L.nextAddress==1)return L.yield(A.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);A.hostElement.style.opacity="0";_.qo(L)})};
Xv.prototype.rotationChanged=Xv.prototype.rotationChanged;_.I([_.K(),_.Z("design:type",Object)],Xv.prototype,"rotation",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Xv.prototype,"isReloading",void 0);_.I([_.qR("#icon"),_.Z("design:type",HTMLElement)],Xv.prototype,"icon",void 0);_.I([_.hT("rotation"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Xv.prototype,"rotationChanged",null);
_.I([_.Q({disableElementRegistration:!0,is:"ytd-refresh"})],Xv);
_.m(Xv,"ytd-refresh",function(){if(t2M!==void 0)return t2M;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return t2M=A},{mode:1});var bUZ;var xv=function(){return _.G.apply(this,arguments)||this};
_.g(xv,_.G);xv.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"}}}};
xv.prototype.dataChanged=function(){if(this.data){var A=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var L=_.uB(this.data.banner.thumbnails,this.hostElement.clientWidth);L&&(L.indexOf("//")===0&&(L="https:"+L),this.hasBannerArt=!0,_.eq(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+L+")"}))}this.hasBannerArt!==A&&_.YJ(this.hostElement).querySelector("#header").fire("iron-resize")}};
xv.prototype.updateSelectedFromBinding=function(A){this.selected=A.detail.value};
xv.prototype.dataChanged=xv.prototype.dataChanged;_.I([_.N(ZiJ),_.Z("design:type",Object)],xv.prototype,"ytdTabbedHeaderBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],xv.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.$r),_.Z("design:type",Object)],xv.prototype,"ytdGridStateAwareBehavior",void 0);_.I([_.N(_.kr.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],xv.prototype,"ytdGuideStateAwareBehavior",void 0);
_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],xv.prototype,"componentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],xv.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Number)],xv.prototype,"selected",void 0);_.I([_.K(),_.Z("design:type",Boolean)],xv.prototype,"active",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],xv.prototype,"hasBannerArt",void 0);
_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],xv.prototype,"dataChanged",null);_.I([_.Q({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],xv);
_.m(xv,"ytd-interactive-tabbed-header-renderer",function(){if(bUZ!==void 0)return bUZ;var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return bUZ=A},{mode:1});var h8S;var sx=function(){return _.G.apply(this,arguments)||this};
_.g(sx,_.G);sx.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
sx.prototype.computeActionsAlignment=function(A){return(A==null?void 0:A.actionsAlignment)||""};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],sx.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],sx.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],sx.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.Z("design:type",String)],sx.prototype,"actionsAlignment",void 0);_.I([_.Q({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],sx);
_.m(sx,"ytd-page-footer-renderer",function(){if(h8S!==void 0)return h8S;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return h8S=A},{mode:1});var SqS;var qqX;var Jv=function(){var A=_.G.apply(this,arguments)||this;A.isEditing=!1;A.useSlot=!1;A.isMultiline=!1;return A};
_.g(Jv,_.G);_.P=Jv.prototype;_.P.onKeydown=function(A){if(A.keyCode===13&&!this.isMultiline)this.onSave();else if(A.keyCode===27)this.onCancel()};
_.P.computeComponentStyle=function(A){return(A==null?0:A.style)?A.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.P.computeisMultiline=function(A){if(this.multilineOverride!==void 0)return this.multilineOverride;var L,O;return!!(A==null?0:(L=A.formField)==null?0:(O=L.textInputFormFieldRenderer)==null?0:O.isMultiline)};
_.P.computeTextDisplayed=function(A,L){if(A)return A;if(L)return L};
_.P.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.P.onSave=function(){if(this.textForm.validate()){this.textForm.save();var A=this.textForm.value;if(A)this.set("data.textDisplayed",_.Ue(A));else{var L;((L=this.data)==null?0:L.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.A3("inline-form-changed",this.data));this.isEditing=!1}};
_.P.onCancel=function(){var A=_.vG(this.data.textDisplayed);A===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(A);this.isEditing=!1};
Jv.prototype.onKeydown=Jv.prototype.onKeydown;_.I([_.N(_.KP.YtEventForwardingBehavior),_.Z("design:type",Object)],Jv.prototype,"ytEventForwardingBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Jv.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Jv.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Jv.prototype,"data",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Jv.prototype,"isEditing",void 0);_.I([_.K(),_.Z("design:type",Object)],Jv.prototype,"useSlot",void 0);_.I([_.K(),_.Z("design:type",Boolean)],Jv.prototype,"multilineOverride",void 0);_.I([_.K(),_.Z("design:type",Boolean)],Jv.prototype,"enableOverlayTheme",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.Z("design:type",String)],Jv.prototype,"componentStyle",void 0);
_.I([_.K({computed:"computeisMultiline(data)"}),_.Z("design:type",Object)],Jv.prototype,"isMultiline",void 0);_.I([_.qR("#text-form"),_.Z("design:type",Object)],Jv.prototype,"textForm",void 0);_.I([_.by("keydown"),_.Z("design:type",Function),_.Z("design:paramtypes",[KeyboardEvent]),_.Z("design:returntype")],Jv.prototype,"onKeydown",null);_.I([_.Q({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],Jv);
_.m(Jv,"ytd-inline-form-renderer",function(){if(qqX!==void 0)return qqX;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return qqX=A},{mode:1});var gYX;var P8=function(){var A=_.G.apply(this,arguments)||this;A.previousSelectValue=void 0;A.selectedItemMessage=void 0;return A};
_.g(P8,_.G);P8.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
P8.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var A,L,O,X,x=(A=this.data)==null?void 0:(L=A.dropdown)==null?void 0:(O=L.dropdownRenderer)==null?void 0:(X=O.entries)==null?void 0:X.map(function(T){return T.privacyDropdownItemRenderer});
A=_.d(x!=null?x:[]);for(L=A.next();!L.done;L=A.next())if((L=L.value)&&L.int32Value===this.selectedValue){this.selectedItemMessage=L.itemMessage;break}}else this.selectedItemMessage=void 0;var J;(J=this.onValueChanged)==null||J.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var Y;(Y=this.data)!=null&&Y.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
P8.prototype.onValueChangedForSelectedValue=function(A){this.selectedValue=A.detail.value};
P8.prototype.selectedValueChanged=P8.prototype.selectedValueChanged;_.I([_.N(_.KP.YtEventForwardingBehavior),_.Z("design:type",Object)],P8.prototype,"ytEventForwardingBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],P8.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],P8.prototype,"ytRendererstamperBehavior",void 0);
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],P8.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],P8.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",String)],P8.prototype,"theme",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Number)],P8.prototype,"selectedValue",void 0);_.I([_.K(),_.Z("design:type",Function)],P8.prototype,"onValueChanged",void 0);
_.I([_.iy("selectedValue"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],P8.prototype,"selectedValueChanged",null);_.I([_.Q({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],P8);
_.m(P8,"ytd-dropdown-form-field-renderer",function(){if(gYX!==void 0)return gYX;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return gYX=A},{mode:_.e5("kevlar_poly_si_batch_j025")?1:2});var wlS;var de=function(){return _.G.apply(this,arguments)||this};
_.g(de,_.G);_.v2.Object.defineProperties(de.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var A=[],L=_.d(this.data||[]),O=L.next();!O.done;O=L.next())(O=_.q(O.value,IAM))&&A.push(O);return A}}});
_.I([_.K(),_.Z("design:type",Array)],de.prototype,"data",void 0);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],de.prototype,"byline",null);_.I([_.Q({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],de);
_.m(de,"ytd-playlist-byline-renderer",function(){if(wlS!==void 0)return wlS;var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return wlS=A},{mode:1});var plQ;var Yv=function(){var A=_.G.apply(this,arguments)||this;A.rtlBullet=_.h("web_playlist_stats_rtl_bullet_icon_killswitch");A.modern=_.h("web_modern_buttons");A.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return A};
_.g(Yv,_.G);_.P=Yv.prototype;_.P.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more"}}}},"data.playButtons":{id:"play-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"},toggleButtonRenderer:{component:"ytd-toggle-button-renderer"},compactLinkRenderer:{component:"ytd-compact-link-renderer"}}}}};
_.P.attached=function(){};
_.P.computeIsCustomThumbnail=function(A){return A?!!A.playlistCustomThumbnailRenderer:!1};
_.P.onYtNavigate=function(A,L){if(L&&L.actions&&L.actions.indexOf("shuffle")>-1){A=_.X5().resolve(_.$q);var O=L.tempData||{};O.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);L.tempData=O;A.isShuffleNextPlaylist=!0}};
_.P.onUpdatePlaylistAction=function(A){var L;A=(L=_.q(A,_.Trg))==null?void 0:L.updatedRenderer;if(L=_.q(A,cc))this.data=L};
_.P.computeStyleType=function(A){return A?A.toLowerCase().replace(/_/g,"-"):""};
_.P.computeThumbnailWidth=function(A){return A==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.P.computeHideThumbnailAria=function(A){if(A==null?0:A.thumbnailOverlays)for(var L=0;L<A.thumbnailOverlays.length;L++){var O=void 0;if((O=A.thumbnailOverlays[L])==null?0:O.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
Yv.prototype.onYtNavigate=Yv.prototype.onYtNavigate;_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Yv.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],Yv.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Yv.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],Yv.prototype,"ytComponentBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],Yv.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Yv.prototype,"rtlBullet",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.Z("design:type",String)],Yv.prototype,"styleType",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.Z("design:type",Number)],Yv.prototype,"thumbnailWidth",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Yv.prototype,"modern",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.Z("design:type",Boolean)],Yv.prototype,"isCustomThumbnail",void 0);_.I([_.by("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event,Object]),_.Z("design:returntype")],Yv.prototype,"onYtNavigate",null);_.I([_.Q({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],Yv);
_.m(Yv,"ytd-playlist-sidebar-primary-info-renderer",function(){if(plQ!==void 0)return plQ;var A=document.createElement("template");_.p(A,'\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>');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return plQ=A},{mode:1});var iUJ;var up=function(){return _.G.apply(this,arguments)||this};
_.g(up,_.G);up.prototype.computeOwnerVisibility=function(A){return!(!A.videoOwner&&!A.button)};
up.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"}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],up.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],up.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],up.prototype,"data",void 0);_.I([_.Q({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],up);
_.m(up,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(iUJ!==void 0)return iUJ;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return iUJ=A},{mode:1});var NYX;var TT=function(){var A=_.G.apply(this,arguments)||this;A.expanded=!1;A.isCompact=!1;return A};
_.g(TT,_.G);_.P=TT.prototype;_.P.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.P.dataChanged=function(){this.data&&_.vf(_.YJ(this.text),_.$Nu(_.UNL,_.vG(this.data.text||null)))};
_.P.computeAutoScrollEnabled=function(A,L){return A&&!L};
_.P.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.P.toggleOnTap=function(){this.expanded=!this.expanded};
TT.prototype.expandedChanged=TT.prototype.expandedChanged;TT.prototype.dataChanged=TT.prototype.dataChanged;_.I([_.N(_.GrS),_.Z("design:type",Object)],TT.prototype,"ytdAutoScrollBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],TT.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],TT.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],TT.prototype,"expanded",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],TT.prototype,"isCompact",void 0);_.I([_.K({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.Z("design:type",Boolean)],TT.prototype,"autoScrollEnabled",void 0);_.I([_.qR("#text"),_.Z("design:type",Object)],TT.prototype,"text",void 0);_.I([_.qR("#expander-icon"),_.Z("design:type",Object)],TT.prototype,"expanderIcon",void 0);
_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],TT.prototype,"dataChanged",null);_.I([_.hT("expanded"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],TT.prototype,"expandedChanged",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],TT);
_.m(TT,"ytd-channel-legal-info-renderer",function(){if(NYX!==void 0)return NYX;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return NYX=A},{mode:1});var ruQ;var KtJ=_.b3("DOWNLOAD",{},"Download"),GlJ=_.b3("DOWNLOADING",{},"Downloading"),lpX=_.b3("DOWNLOADED",{},"Downloaded"),VB=function(){var A=_.G.apply(this,arguments)||this;A.downloadProgress=0;A.isDownloadComplete=!1;A.transferState="TRANSFER_STATE_UNKNOWN";return A};
_.g(VB,_.G);_.P=VB.prototype;_.P.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.P.dataChanged=function(){var A;(A=this.data)!=null&&A.tooltip||(A=_.Zn(_.Ai().getState(),this.playlistId),this.updateButtonState(A))};
_.P.computePlaylistId=function(A){return A};
_.P.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.P.updateButtonState=function(A){if(this.data&&(this.data.tooltip!==GlJ||!_.wh(A))){this.isDownloadComplete=!1;switch(A){case "TRANSFER_STATE_UNKNOWN":A=KtJ;var L="OFFLINE_DOWNLOAD";var O="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":A=lpX;L="OFFLINE_PIN";O="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":A=GlJ;L="OFFLINE_DOWNLOADING_ZERO";O="ACTION_REMOVE_WITH_PROMPT";
break;default:A=KtJ,L="OFFLINE_DOWNLOAD",O="ACTION_ADD"}var X=Object.assign({},this.data);X.tooltip=A;X.accessibilityData={accessibilityData:{label:A}};X.icon={iconType:L};X.size="SIZE_DEFAULT";_.q(X.command,_.w0)&&(_.q(X.command,_.w0).action=O);this.set("data",X)}};
_.P.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var A="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?A="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?A="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?A="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?A="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?A="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(A="OFFLINE_PIN",this.isDownloadComplete=!0);var L;A!==((L=this.data.icon)==null?void 0:L.iconType)&&(L=Object.assign({},this.data),L.tooltip=GlJ,L.accessibilityData={accessibilityData:{label:GlJ}},L.icon={iconType:A},_.q(L.command,_.w0)&&(_.q(L.command,_.w0).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",L))}};
VB.prototype.updateProgress=VB.prototype.updateProgress;VB.prototype.onTransferStateChanged=VB.prototype.onTransferStateChanged;VB.prototype.dataChanged=VB.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],VB.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],VB.prototype,"ytdReduxBehavior",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],VB.prototype,"forceIconButton",void 0);
_.I([_.K({value:!0}),_.Z("design:type",Boolean)],VB.prototype,"forceIconOnly",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],VB.prototype,"overrides",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],VB.prototype,"buttonTooltipPosition",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],VB.prototype,"styleActionButton",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],VB.prototype,"disableTextTransform",void 0);
_.I([_.K({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.Z("design:type",String)],VB.prototype,"playlistId",void 0);_.I([_.K(),_.Z("design:type",Object)],VB.prototype,"data",void 0);_.I([_.K({selector:_.UBO,selectorArgs:["playlistId"]}),_.Z("design:type",Object)],VB.prototype,"downloadProgress",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],VB.prototype,"isDownloadComplete",void 0);
_.I([_.K({selector:_.Zn,selectorArgs:["playlistId"]}),_.Z("design:type",String)],VB.prototype,"transferState",void 0);_.I([_.K({value:!0}),_.Z("design:type",Boolean)],VB.prototype,"showTooltips",void 0);_.I([_.K({value:!0}),_.Z("design:type",Boolean)],VB.prototype,"sendCommandWhenDisabled",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],VB.prototype,"disabled",void 0);
_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],VB.prototype,"dataChanged",null);_.I([_.iy("transferState"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],VB.prototype,"onTransferStateChanged",null);_.I([_.iy("downloadProgress"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],VB.prototype,"updateProgress",null);
_.I([_.Q({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],VB);
_.m(VB,"ytd-download-playlist-button-renderer",function(){if(ruQ!==void 0)return ruQ;var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return ruQ=A},{mode:1});var cuJ;_.Y4(_.gk7,"thumbnail-overlay-button-view-model",{props:{data:_.x5,lockupExperiments:_.x5}});var DA=function(){var A=_.G.apply(this,arguments)||this;A.isSquare=!1;A.isVertical=!1;return A};
_.g(DA,_.G);DA.prototype.computeIsSquare=function(A){return A!=null&&A.thumbnail?VaJ(A.thumbnail)==="SQUARE":!1};
DA.prototype.computeIsVertical=function(A){return A!=null&&A.thumbnail?VaJ(A.thumbnail)==="VERTICAL":!1};
DA.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],DA.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],DA.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.Z("design:type",Object)],DA.prototype,"isSquare",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.Z("design:type",Object)],DA.prototype,"isVertical",void 0);
_.I([_.K(),_.Z("design:type",Object)],DA.prototype,"data",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],DA);
_.m(DA,"ytd-hero-playlist-thumbnail-renderer",function(){if(cuJ!==void 0)return cuJ;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return cuJ=A},{mode:1});var ea=function(){var A=_.G.apply(this,arguments)||this;A.isDarkTheme=!1;A.isUltraWide=!1;A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return A};
_.g(ea,_.G);_.P=ea.prototype;_.P.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.X5();var A;(A=_.X5().resolve(_.Ot(_.TH)))!=null&&(A.headerElement=this.hostElement)};
_.P.detached=function(){var A;(A=_.X5().resolve(_.Ot(_.TH)))!=null&&(A.headerElement=void 0)};
_.P.onUpdateHeader=function(A){(A=A.detail)&&this.set("data",A)};
_.P.computeTextDisplayed=function(A){if(A)return A.textDisplayed?A.textDisplayed:A.placeholder};
_.P.gradientColorToLinearGradientStop=function(A){var L=this.isDarkTheme?A.darkThemeColor:A.lightThemeColor;return L?_.Hy(L)+" "+((A==null?void 0:A.startLocation)||0)*100+"%":"transparent"};
_.P.onWindowResize=function(){var A;((A=this.data)==null?0:A.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.P.onIronResize=function(A){this.isUltraWide=!A.detail.value};
_.P.onDarkModeToggledAction=function(A){this.isDarkTheme=A};
_.P.onUpdatePlaylistName=function(A){var L=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},A.detail.value));_.kd(this,function(){var O;(O=L.editableTitle)==null||O.resize()})};
_.P.onUpdatePlaylistDescription=function(A){var L=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},A.detail.value));_.kd(this,function(){var O;(O=L.editableDescriptionInlineExpander)==null||O.resize()})};
_.P.getCinematicData=function(A){return _.q(A==null?void 0:A.cinematicContainer,_.id)};
_.v2.Object.defineProperties(ea.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 A,L=(A=this.getCinematicData(this.data))==null?void 0:A.config;return(A=this.isDarkTheme?L==null?void 0:L.darkThemeBackgroundColor:L==null?void 0:L.lightThemeBackgroundColor)?"background-color:"+_.Wy(A)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var A;return _.q((A=this.data)==null?void 0:A.descriptionForm,cvM)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var A=this,L,O,X;return"background:linear-gradient(to bottom, "+(((X=(L=this.getCinematicData(this.data))==null?void 0:(O=L.gradientColorConfig)==null?void 0:O.map(function(x){return A.gradientColorToLinearGradientStop(x)}))==null?void 0:X.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var A;return _.vG((A=this.data)==null?void 0:A.descriptionTapText)}}});
ea.prototype.onUpdateHeader=ea.prototype.onUpdateHeader;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],ea.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],ea.prototype,"actionHandlerBehavior",void 0);_.I([_.qR("#description-inline-expander"),_.Z("design:type",Object)],ea.prototype,"descriptionInlineExpander",void 0);
_.I([_.qR("#editable-description-inline-expander"),_.Z("design:type",Object)],ea.prototype,"editableDescriptionInlineExpander",void 0);_.I([_.K(),_.Z("design:type",Object)],ea.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],ea.prototype,"isUltraWide",void 0);_.I([_.qR("#editable-title-display"),_.Z("design:type",Object)],ea.prototype,"editableTitle",void 0);_.I([_.r("isUltraWide"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ea.prototype,"maxDescriptionLines",null);
_.I([_.K({reflectToAttribute:!0}),_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ea.prototype,"noCinematicData",null);_.I([_.by("yt-new-playlist-header"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],ea.prototype,"onUpdateHeader",null);_.I([_.r("data","isDarkTheme"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ea.prototype,"backgroundStyle",null);
_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ea.prototype,"descriptionFormData",null);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ea.prototype,"getDropdownTheme",null);_.I([_.r("data","isDarkTheme"),_.Z("design:type",String),_.Z("design:paramtypes",[])],ea.prototype,"gradientStyle",null);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ea.prototype,"descriptionTapText",null);
_.I([_.Q({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],ea);
_.m(ea,"ytd-playlist-header-renderer",function(){if(SqS!==void 0)return SqS;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return SqS=A},{mode:_.e5("kevlar_poly_si_batch_j078")?1:2});var C2S;var FtM;var Ex=function(){return _.G.apply(this,arguments)||this};
_.g(Ex,_.G);Ex.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Ex.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Ex.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Ex.prototype,"data",void 0);_.I([_.Q({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],Ex);
_.m(Ex,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(FtM!==void 0)return FtM;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return FtM=A},{mode:1});var ni=function(){return _.G.apply(this,arguments)||this};
_.g(ni,_.G);
ni.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}}}}};
ni.prototype.computeUsePremiumShowStyle=function(A){if(!A||!A.items)return!1;for(var L=0;L<A.items.length;L++)if(_.q(A.items[L],cc)){var O=void 0;return((O=_.q(A.items[L],cc))==null?void 0:O.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],ni.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],ni.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],ni.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.Z("design:type",Boolean)],ni.prototype,"usePremiumShowStyle",void 0);
_.I([_.Q({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],ni);
_.m(ni,"ytd-playlist-sidebar-renderer",function(){if(C2S!==void 0)return C2S;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return C2S=A},{mode:1});var R87;var QgQ;var msX=function(A,L,O,X,x,J,Y,T){this.minWidth=A;this.minHeight=L;this.recommendedWidth=O;this.recommendedHeight=X;this.JSC$23025_maxFileSize=x;this.title=J;this.bannerGalleryTitle=Y;this.channelId=T;this.picker_=null;A=_.pWP("yt-banner");L=A.addView;O=(new SxQ("youtubebanner")).addUploadMetadata("silo_id","19");O.opts.ytMaxFileSize=this.JSC$23025_maxFileSize;X=this.recommendedHeight;O.opts.ytRecWidth=this.recommendedWidth;O.opts.ytRecHeight=X;L.call(A,O);A.addView(new _.RL);L=A.addView;O=new _.RL;
O.opts.type="ytbanner";L.call(A,O.JSC$11095_setLabel(this.bannerGalleryTitle));L=A.setTitle(this.title).setSize(1E3);L.urlParamMap_.set("thumbs","orig");O=this.minWidth;X=this.minHeight;if(isNaN(O)||isNaN(X))throw Error("gb`"+O+"`"+X);L.urlParamMap_.set("minSize",O+"x"+X);L.urlParamMap_.set("cropMode","ytcb");this.builder_=A};
msX.prototype.open=function(){var A=this;return new _.eJ(function(L,O){_.fKN(A.builder_,function(X){X.action=="picked"?L(X):X.action=="cancel"&&O(Error("lo"))});
A.picker_&&A.picker_.dispose();A.picker_=A.builder_.build();A.picker_.setVisible(!0)})};
msX.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var fpk=function(A){this.channelId=A};
fpk.prototype.upload=function(A){var L="";A.viewToken&&(L=A.viewToken[2].type);var O=A.docs[0];A=O.crop;L={channel_id:this.channelId,fife_url:O.thumbnails[0].url,photo_id:O.id,is_gallery_image:L=="ytbanner"};A&&(L.crop_top=A.top,L.crop_right=A.right,L.crop_bottom=A.bottom,L.crop_left=A.left);return _.zRe("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:L})};var tv=function(){var A=_.G.apply(this,arguments)||this;A.ariaLabel=null;return A};
_.g(tv,_.G);_.P=tv.prototype;_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.P.detached=function(){this.picker&&this.picker.dispose()};
_.P.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.P.computeAriaLabel=function(A){return A};
_.P.onTap=function(){var A=this,L;if((L=this.data)==null||!L.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new msX(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 O;(O=this.picker)==null||O.open().then(function(X){A.handleBannerPicked(X)},function(){})}};
_.P.handleBannerPicked=function(A){var L=this;this.uploader||(this.uploader=new fpk(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(A).then(function(O){L.handleBannerUploadSucceeded(O)},function(O){L.handleBannerUploadFailed(O)})};
_.P.handleBannerUploadSucceeded=function(A){A&&A.errors?this.handleBannerUploadFailed(A):(_.P4(this.hostElement,"yt-banner-updated",A),this.message=null)};
_.P.handleBannerUploadFailed=function(A){this.message=A&&A.errors&&A.errors.length?A.errors[0]:null};
tv.prototype.dataChanged=tv.prototype.dataChanged;_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],tv.prototype,"componentBehavior",void 0);_.I([_.N(_.jK),_.Z("design:type",Object)],tv.prototype,"ironButtonState",void 0);_.I([_.K(),_.Z("design:type",Object)],tv.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.Z("design:type",Object)],tv.prototype,"ariaLabel",void 0);
_.I([_.K(),_.Z("design:type",Object)],tv.prototype,"message",void 0);_.I([_.K(),_.Z("design:type",Object)],tv.prototype,"picker",void 0);_.I([_.K(),_.Z("design:type",Object)],tv.prototype,"uploader",void 0);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],tv.prototype,"dataChanged",null);_.I([_.Q({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],tv);
_.m(tv,"ytd-channel-banner-editor-renderer",function(){if(QgQ!==void 0)return QgQ;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return QgQ=A},{mode:1});var Ip7;var yuk=_.AW(["#"]),bp=function(){return _.G.apply(this,arguments)||this};
_.g(bp,_.G);bp.prototype.computeHrefWithDefault=function(A){return this.ytComponentBehavior.computeHref_(A,!0)||_.oWe(yuk)};
bp.prototype.dataChanged=function(){var A=this.data;A&&A.targetId&&_.Zp6(_.Q6(),A.targetId,this.moreIcon)};
bp.prototype.dataChanged=bp.prototype.dataChanged;_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],bp.prototype,"ytComponentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],bp.prototype,"data",void 0);_.I([_.qR("#more-icon"),_.Z("design:type",Object)],bp.prototype,"moreIcon",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],bp.prototype,"dataChanged",null);
_.I([_.Q({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],bp);
_.m(bp,"ytd-channel-tagline-renderer",function(){if(Ip7!==void 0)return Ip7;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Ip7=A},{mode:1});var ZUB;var hv=function(){return _.G.apply(this,arguments)||this};
_.g(hv,_.G);_.P=hv.prototype;_.P.ready=function(){var A=this;_.YJ(this.hostElement).querySelector("#form").addEventListener("submit",function(L){A.onSubmit(L)})};
_.P.onDataChanged=function(){var A;((A=this.data)==null?0:A.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.P.onIconButtonKeydown=function(A){A.keyCode===13&&this.iconButton.click()};
_.P.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.P.openOnClickHandler=function(){this.input.focus()};
_.P.onSubmit=function(A){A.preventDefault();return!1};
_.P.submitOnEnterKeyUp=function(A){var L;if(A.keyCode===13&&((L=this.data)==null?0:L.expandedText)){A=this.data.endpoint;L=_.lW.unsafeClone(A);var O;((O=_.q(L==null?void 0:L.commandMetadata,_.LM))==null?0:O.url)?(_.q(L.commandMetadata,_.LM).url=_.y$(_.q(L.commandMetadata,_.LM).url,"query",this.data.expandedText),_.q(L,_.gM)&&(_.q(L,_.gM).query=this.data.expandedText),_.P4(this.hostElement,"yt-navigate",{endpoint:L,tempData:{disableCache:!0}})):(O=new _.pe("Error: Trying to navigate to an endpoint without url",
A),_.C7(O))}};
_.P.updateDataExpandedTextFromBinding=function(A){this.set("data.expandedText",A.detail.value)};
_.v2.Object.defineProperties(hv.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.h("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
hv.prototype.onDataChanged=hv.prototype.onDataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],hv.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.y0M),_.Z("design:type",Object)],hv.prototype,"ytdExpandableInputBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],hv.prototype,"data",void 0);_.I([_.qR("#input"),_.Z("design:type",Object)],hv.prototype,"input",void 0);_.I([_.qR("#icon-button"),_.Z("design:type",HTMLElement)],hv.prototype,"iconButton",void 0);
_.I([_.K(),_.Z("design:type",String),_.Z("design:paramtypes",[])],hv.prototype,"searchIcon",null);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],hv.prototype,"onDataChanged",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],hv);
var DhJ=_.DX()(hv,"ytd-expandable-tab-renderer",function(){if(ZUB===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);ZUB=A}A=ZUB;return A},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var jgM;var Sa=function(){var A=_.G.apply(this,arguments)||this;A.avatarSize=80;A.ariaLabel=_.b3("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return A};
_.g(Sa,_.G);Sa.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
Sa.prototype.computeHref=function(A){var L;return((L=_.q(A,_.Hh))==null?0:L.url)?this.componentBehavior.computeHref_(A):null};
Sa.prototype.onTap=function(){var A,L;(A=this.data)==null||!A.editAvatarServiceEndpoint||((L=_.q(this.data.editAvatarServiceEndpoint,_.Hh))==null?0:L.url)||_.X5().resolve(_.x$).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.I([_.N(_.jK),_.Z("design:type",Object)],Sa.prototype,"ironButtonState",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],Sa.prototype,"componentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Sa.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],Sa.prototype,"avatarSize",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",String)],Sa.prototype,"ariaLabel",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],Sa);
_.m(Sa,"ytd-channel-avatar-editor",function(){if(jgM!==void 0)return jgM;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return jgM=A},{mode:1});var WtB=_.xa(function(A){var L=A.data;var O=A.noPadding;var X=A.enableBanner;var x=A.cinematicContainerTopbarOffset;var J=A.allowCinematicContainerOverflow;var Y=A.displayAsSidebar;A=A.className;_.ND(function(){L().tagManagerId&&(_.y6(L().tagManagerId,_.ms("GL")),hxz(L().tagManagerId))},"xVTVTe");
var T=_.iS(Ev7,function(){return L().pageHeaderEntityKey});
return _.D("yt-page-header-renderer",{class:_.qn("page-header-renderer-wiz",A)},_.D(_.ID,{data:function(){var V;return((V=T())==null?0:V.header)?T().header:(Y==null?0:Y())&&L().sidebarContent?L().sidebarContent:L().content}},{pageHeaderViewModel:function(V){return _.D(_.HKc,{data:V.data,
noPadding:O,enableBanner:X,cinematicContainerTopbarOffset:x,allowCinematicContainerOverflow:J,displayAsSidebar:function(){return(Y==null?void 0:Y())&&L().enableSidebarView}})}}))},"tj");
WtB.idomCompat=!0;_.Y4(WtB,"yt-page-header-renderer",{props:{data:_.x5,noPadding:_.x5,enableBanner:_.x5,cinematicContainerTopbarOffset:_.x5,allowCinematicContainerOverflow:_.x5,displayAsSidebar:_.x5,className:_.x5}});_.Y4(_.$l,"yt-image-banner-view-model",{props:{data:_.x5,isPositionRelative:_.x5}});_.Y4(_.Jvn,"yt-tab-group-shape",{props:{shape:_.x5}});var qh=function(){var A=_.G.apply(this,arguments)||this;A.expandableCustomTabRenderable=function(L){return exJ(L,function(){return void A.onSearchNavigate()})};
A.isRichGrid=!1;A.isConstrainedList=!1;A.richGridMiniMode=!1;A.richGridStyle="RICH_GRID_STYLE_UNKNOWN";A.isRichGridShorts=!1;A.responsiveSizing="COMPACT";A.disableGridStateAware=!1;A.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return A};
_.g(qh,_.G);_.P=qh.prototype;_.P.computeHeaderDisabled=function(A,L){return L||!A||this.tabsHidden};
_.P.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.P.computeIsRichGridShorts=function(A){return A==="RICH_GRID_STYLE_SHORTS_GRID"||A==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.P.computeImageBannerViewModel=function(){var A,L;return _.q((L=_.q((A=this.data)==null?void 0:A.content,_.Tj6))==null?void 0:L.banner,_.xr6)};
_.P.computeHasCinematicContainer=function(){var A,L;return!((L=_.q((A=this.data)==null?void 0:A.content,_.Tj6))==null||!L.background)};
_.P.handleHeaderResize=function(){var A=_.YJ(this.hostElement).querySelector("#header");A&&_.P4(A,"iron-resize")};
_.P.handleInsertTabCommand=function(A){var L=_.q(A,yv$);L&&(L.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(O){return O.tabRenderer&&O.tabRenderer.tabIdentifier===L.tabIdentifier})||this.splice("tabs",L.tabIndex||-1,0,L.tab))};
_.P.handleRefreshChannelTabAction=function(A){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===A&&_.P4(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.P.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.eq(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.P.observerRichGridSlimItemsPerRow=function(){_.eq(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.P.updateCssVars=function(){this.richGridItemsPerRow&&_.eq(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.PO("rich_grid_max_item_width",500))+16)-16+"px"})};
_.P.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.eq(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.P.onDataChanged=function(){this.handleHeaderResize()};
_.P.onWindowResize=function(){this.handleHeaderResize()};
_.P.onFocusedChanged=function(A){(A=_.AT(A))&&A.is==="tp-yt-paper-tab"&&A.hasRipple()&&(A.getRipple().holdDown=!A.pointerDown&&A.focused)};
_.P.updateSelectedFromBinding=function(A){this.ytdTabbedHeaderBehavior.selected=A.detail.value};
_.P.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.v2.Object.defineProperties(qh.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:ta7(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.imageBannerViewModel)==null?void 0:A.style)==="IMAGE_BANNER_STYLE_INSET"}}});
qh.prototype.onDataChanged=qh.prototype.onDataChanged;qh.prototype.updateCssVarsForResponsiveGrid=qh.prototype.updateCssVarsForResponsiveGrid;qh.prototype.updateCssVars=qh.prototype.updateCssVars;qh.prototype.observerRichGridSlimItemsPerRow=qh.prototype.observerRichGridSlimItemsPerRow;qh.prototype.observerRichGridItemsPerRow=qh.prototype.observerRichGridItemsPerRow;_.I([_.N(_.$r),_.Z("design:type",Object)],qh.prototype,"ytdGridStateAwareBehavior",void 0);
_.I([_.N(ZiJ),_.Z("design:type",Object)],qh.prototype,"ytdTabbedHeaderBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],qh.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],qh.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.kr.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],qh.prototype,"ytdGuideStateAwareBehavior",void 0);
_.I([_.N(_.HL),_.Z("design:type",Object)],qh.prototype,"ytdReduxBehavior",void 0);_.I([_.qR("#tabs"),_.Z("design:type",Object)],qh.prototype,"tabsElement",void 0);_.I([_.K(),_.Z("design:type",Array)],qh.prototype,"tabs",void 0);_.I([_.K(),_.Z("design:type",Object)],qh.prototype,"expandableCustomTabRenderable",void 0);_.I([_.r("tabs.*"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],qh.prototype,"tabGroupShape",null);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],qh.prototype,"isRichGrid",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],qh.prototype,"isConstrainedList",void 0);_.I([_.K({reflectToAttribute:!0,selector:_.Fl}),_.Z("design:type",Object)],qh.prototype,"richGridMiniMode",void 0);_.I([_.K({selector:function(A){return A.ui.richGridStyle}}),
_.Z("design:type",Object)],qh.prototype,"richGridStyle",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.Z("design:type",Object)],qh.prototype,"isRichGridShorts",void 0);_.I([_.K({selector:_.Rm}),_.Z("design:type",Number)],qh.prototype,"richGridItemsPerRow",void 0);_.I([_.K({selector:function(A){return A.ui.richGridContainerWidth}}),
_.Z("design:type",Number)],qh.prototype,"richGridContainerWidth",void 0);_.I([_.K({selector:_.fT9}),_.Z("design:type",Number)],qh.prototype,"richGridSlimItemsPerRow",void 0);_.I([_.K(),_.Z("design:type",Object)],qh.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],qh.prototype,"responsiveSizing",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],qh.prototype,"disableGridStateAware",void 0);
_.I([_.K({computed:"computeImageBannerViewModel(data)"}),_.Z("design:type",Object)],qh.prototype,"imageBannerViewModel",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.Z("design:type",Boolean)],qh.prototype,"hasCinematicContainer",void 0);_.I([_.K({selector:_.irZ,reflectToAttribute:!0}),_.Z("design:type",Boolean)],qh.prototype,"guideIsVisibleButNotPersistent",void 0);
_.I([_.K({reflectToAttribute:!0}),_.r("imageBannerViewModel"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],qh.prototype,"hasBanner",null);_.I([_.K({reflectToAttribute:!0}),_.r("imageBannerViewModel"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],qh.prototype,"hasInsetBanner",null);_.I([_.K({computed:"computeTabsHidden(tabs)",value:!0}),_.Z("design:type",Boolean)],qh.prototype,"tabsHidden",void 0);
_.I([_.hT("richGridItemsPerRow","isRichGrid"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qh.prototype,"observerRichGridItemsPerRow",null);_.I([_.hT("richGridSlimItemsPerRow"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qh.prototype,"observerRichGridSlimItemsPerRow",null);
_.I([_.hT("richGridItemsPerRow","richGridMiniMode"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qh.prototype,"updateCssVars",null);_.I([_.hT("richGridContainerWidth"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qh.prototype,"updateCssVarsForResponsiveGrid",null);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qh.prototype,"onDataChanged",null);
_.I([_.Q({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],qh);
_.m(qh,"ytd-tabbed-page-header",function(){if(R87!==void 0)return R87;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return R87=A},{mode:1});var HUk;var ge=function(){return _.G.apply(this,arguments)||this};
_.g(ge,_.G);ge.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.eq(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.v2.Object.defineProperties(ge.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var A,L;return this.componentBehavior.computeIcon_(((L=_.q((A=this.data)==null?void 0:A.badge,_.MrN))==null?void 0:L.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var A,L;return(L=_.q((A=this.data)==null?void 0:A.badge,_.MrN))==null?void 0:L.label}}});
ge.prototype.observerRichGridItemsPerRow=ge.prototype.observerRichGridItemsPerRow;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],ge.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],ge.prototype,"componentBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],ge.prototype,"ytdReduxBehavior",void 0);_.I([_.K({reflectToAttribute:!0,selector:_.Fl}),_.Z("design:type",Boolean)],ge.prototype,"richGridMiniMode",void 0);
_.I([_.K({selector:_.Rm}),_.Z("design:type",Number)],ge.prototype,"richGridItemsPerRow",void 0);_.I([_.K(),_.Z("design:type",Object)],ge.prototype,"data",void 0);_.I([_.hT("richGridItemsPerRow"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ge.prototype,"observerRichGridItemsPerRow",null);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ge.prototype,"badgeIconName",null);
_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ge.prototype,"badgeLabel",null);_.I([_.Q({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],ge);
_.m(ge,"ytd-member-hub-profile-renderer",function(){if(HUk!==void 0)return HUk;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return HUk=A},{mode:1});var z8X;var we=function(){return _.G.apply(this,arguments)||this};
_.g(we,_.G);we.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],we.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],we.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],we.prototype,"data",void 0);_.I([_.Q({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],we);
_.m(we,"ytd-settings-sidebar-renderer",function(){if(z8X!==void 0)return z8X;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return z8X=A},{mode:1});var BYQ;var pi=function(){var A=_.G.apply(this,arguments)||this;A.expandableCustomTabRenderable=function(L){return exJ(L,function(){return void A.onSearchNavigate()})};
return A};
_.g(pi,_.G);pi.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
pi.prototype.onSearchNavigate=function(){this.selected=void 0};
pi.prototype.onTabsChange=function(){var A,L=(A=this.tabs)==null?void 0:A.findIndex(function(O){var X;return O==null?void 0:(X=O.tabRenderer)==null?void 0:X.selected});
L!==void 0&&(this.selected=L)};
pi.prototype.onTabsActive=function(A){if(this.tabs!==void 0){var L,O;(A=(L=this.tabs[A.detail.selected])==null?void 0:(O=L.tabRenderer)==null?void 0:O.endpoint)&&_.P4(this.hostElement,"yt-navigate",{endpoint:A})}};
_.v2.Object.defineProperties(pi.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:ta7(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
pi.prototype.onTabsChange=pi.prototype.onTabsChange;_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],pi.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.$r),_.Z("design:type",Object)],pi.prototype,"ytdGridStateAwareBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],pi.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.kr.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],pi.prototype,"ytdGuideStateAwareBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],pi.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Array)],pi.prototype,"tabs",void 0);_.I([_.K(),_.Z("design:type",Number)],pi.prototype,"selected",void 0);_.I([_.r("tabs.*"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],pi.prototype,"tabGroupShape",null);_.I([_.K(),_.Z("design:type",Object)],pi.prototype,"expandableCustomTabRenderable",void 0);
_.I([_.r("tabs"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],pi.prototype,"tabsEnabled",null);_.I([_.iy("tabs"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],pi.prototype,"onTabsChange",null);_.I([_.Q({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],pi);
_.m(pi,"ytd-topic-channel-details-renderer",function(){if(BYQ!==void 0)return BYQ;var A=document.createElement("template");_.p(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-channel-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-topic-channel-details-renderer">\n  <div id="channel-header-container" class="style-scope ytd-topic-channel-details-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-topic-channel-details-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-img-shadow id="avatar" thumbnail="[[data.avatar]]" width="80" class="style-scope ytd-topic-channel-details-renderer"> </yt-img-shadow>\n      <div id="inner-header-container" class="style-scope ytd-topic-channel-details-renderer">\n        <h1 class="style-scope ytd-topic-channel-details-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n        </h1>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n      </div>\n    </a>\n    <div id="subscribe-button" class="style-scope ytd-topic-channel-details-renderer"></div>\n  </div>\n  <div id="tabs-container" hidden="[[!tabsEnabled]]" class="style-scope ytd-topic-channel-details-renderer">\n    <div id="tabs-inner-container" class="style-scope ytd-topic-channel-details-renderer">\n      <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="true" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActive" class="style-scope ytd-topic-channel-details-renderer">\n        <template is="dom-if" if="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer">\n          <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n        </template>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return BYQ=A},{mode:1});var M2$;var ip=function(){var A=_.G.apply(this,arguments)||this;A.disableGridStateAware=!1;return A};
_.g(ip,_.G);ip.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]]"}}}}}};
ip.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
ip.prototype.updateCssVars=function(){_.eq(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.PO("rich_grid_max_item_width",500))+16)-16+"px"})};
ip.prototype.updateCssVars=ip.prototype.updateCssVars;ip.prototype.activeChanged=ip.prototype.activeChanged;_.I([_.N(_.kr.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],ip.prototype,"ytdGuideStateAwareBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],ip.prototype,"ytdReduxBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],ip.prototype,"ytRendererBehavior",void 0);
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],ip.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],ip.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Array)],ip.prototype,"tabs",void 0);_.I([_.K(),_.Z("design:type",Boolean)],ip.prototype,"active",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],ip.prototype,"disableGridStateAware",void 0);
_.I([_.K({selector:_.Rm}),_.Z("design:type",Number)],ip.prototype,"richGridItemsPerRow",void 0);_.I([_.K({selector:_.Fl}),_.Z("design:type",Boolean)],ip.prototype,"richGridMiniMode",void 0);_.I([_.qR("ytd-carousel-item-renderer"),_.Z("design:type",Object)],ip.prototype,"carousel",void 0);_.I([_.hT("active"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ip.prototype,"activeChanged",null);
_.I([_.hT("richGridItemsPerRow","richGridMiniMode"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ip.prototype,"updateCssVars",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],ip);
_.m(ip,"ytd-carousel-header-renderer",function(){if(M2$!==void 0)return M2$;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return M2$=A},{mode:1});var $s7;var apJ=_.AW(["https://www.google-analytics.com/analytics.js"]),Nh=function(){var A=_.G.apply(this,arguments)||this;A.scriptAnalyticsAdded=!1;return A};
_.g(Nh,_.G);Nh.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var A,L=(A=this.data)==null?void 0:A.tagManagerId;L&&(_.y6(L,_.ms("GL")),hxz(L))};
Nh.prototype.sendGoogleAnalyticsPageview=function(A){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var O=_.f_.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(O)};
var L=window.ga;L("set","page",window.location.pathname);L.l=+new Date;L("set","forceSSL",!0);L("create",A,"'auto'");L("send","pageview")};
Nh.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var A=_.tg("SCRIPT");A.name="ga-analytics";var L=_.JD(apJ);_.UB(A,L);A.async=!0;_.YJ(this.hostElement).appendChild(A)};
Nh.prototype.dataChanged=Nh.prototype.dataChanged;_.I([_.K(),_.Z("design:type",Object)],Nh.prototype,"data",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Nh.prototype,"dataChanged",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],Nh);
_.m(Nh,"ytd-channel-metadata-renderer",function(){if($s7!==void 0)return $s7;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return $s7=A},{mode:1});var kln;var Us$;var re=function(){return _.G.apply(this,arguments)||this};
_.g(re,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],re.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],re.prototype,"data",void 0);_.I([_.Q({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],re);
_.m(re,"ytd-sub-feed-option-renderer",function(){if(Us$!==void 0)return Us$;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Us$=A},{mode:1});var vYM;var Ki=function(){return _.G.apply(this,arguments)||this};
_.g(Ki,_.G);Ki.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Ki.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Ki.prototype,"ytRendererStamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Ki.prototype,"data",void 0);_.I([_.Q({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],Ki);
_.m(Ki,"ytd-sub-feed-selector-renderer",function(){if(vYM!==void 0)return vYM;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return vYM=A},{mode:1});var GT=function(){return _.G.apply(this,arguments)||this};
_.g(GT,_.G);
GT.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}}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],GT.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],GT.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],GT.prototype,"data",void 0);_.I([_.Q({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],GT);
_.m(GT,"ytd-browse-feed-actions-renderer",function(){if(kln!==void 0)return kln;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return kln=A},{mode:1});var oYS;var AqS;var lp=function(){return _.G.apply(this,arguments)||this};
_.g(lp,_.G);lp.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],lp.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],lp.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],lp.prototype,"data",void 0);_.I([_.Q({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],lp);
_.m(lp,"ytd-mini-channel-renderer",function(){if(AqS!==void 0)return AqS;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return AqS=A},{mode:1});var LYX;var c8=function(){return _.G.apply(this,arguments)||this};
_.g(c8,_.G);c8.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],c8.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],c8.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],c8.prototype,"data",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],c8);
_.m(c8,"ytd-vertical-channel-section-renderer",function(){if(LYX!==void 0)return LYX;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return LYX=A},{mode:1});var Ci=function(){return _.G.apply(this,arguments)||this};
_.g(Ci,_.G);Ci.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Ci.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Ci.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Ci.prototype,"data",void 0);_.I([_.Q({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],Ci);
_.m(Ci,"ytd-browse-secondary-contents-renderer",function(){if(oYS!==void 0)return oYS;var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);
return oYS=A},{mode:1});var OQ7;var Fv=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};A.notActive=!1;A.isConstrainedList=!1;return A};
_.g(Fv,_.G);_.P=Fv.prototype;
_.P.configureRendererStamper=function(){return{content:{id:"primary",mapping:{richGridRenderer:{component:"ytd-rich-grid-renderer"},sectionListRenderer:{component:"ytd-section-list-renderer",properties:{initialCount:"[[initialCount]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"},matcher:function(A){var L;return(A==null?void 0:(L=A.webComponentHint)==null?void 0:L.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":
"ytd-section-list-renderer"}}}},
"data.secondaryContents":{id:"secondary",mapping:{browseFeedActionsRenderer:{component:"ytd-browse-feed-actions-renderer",noInjection:!0},browseSecondaryContentsRenderer:{component:"ytd-browse-secondary-contents-renderer",noInjection:!0},profileColumnRenderer:{component:"ytd-profile-column-renderer",noInjection:!0}}}}};
_.P.getPath=function(A,L){var O="data.tabs.#"+L+".";A.tabs[L].tabRenderer?O+="tabRenderer.":A.tabs[L].expandableTabRenderer&&(O+="expandableTabRenderer.");return O+"content.sectionListRenderer"};
_.P.computeDisplayedContent=function(A){this.unlinkPaths("content");if(A&&A.tabs)for(var L=A.tabs.length,O=0;O<L;O++){var X=A.tabs[O].tabRenderer||A.tabs[O].expandableTabRenderer;if(X.selected&&X.content)return this.linkPaths("content",this.getPath(A,O)),X.content}return null};
_.P.computeHasSecondaryColumnData=function(A){return!!A&&!!A.secondaryContents};
_.P.onRetrieveLocation=function(A,L){L.locationRetrieved(L.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);A.stopPropagation()};
_.P.onYtServiceRequestSent=function(A,L){_.h("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(L)};
_.P.onYtServiceRequestCompleted=function(A,L){_.h("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(L)};
_.P.onReplaceFeedContentAction=function(A){if(!_.h("replace_feed_content_action_killswitch")&&!this.notActive){var L;(A=(L=_.q(A,K5Z))==null?void 0:L.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(A)}};
_.P.handleServiceRequestActions=function(A){if(A=A.actions){A=_.d(A);for(var L=A.next();!L.done;L=A.next()){L=L.value;var O=void 0;((O=_.q(L,K5Z))==null?0:O.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.q(L,K5Z).items)}}};
Fv.prototype.onYtServiceRequestCompleted=Fv.prototype.onYtServiceRequestCompleted;Fv.prototype.onYtServiceRequestSent=Fv.prototype.onYtServiceRequestSent;Fv.prototype.onRetrieveLocation=Fv.prototype.onRetrieveLocation;_.I([_.N(_.$r),_.Z("design:type",Object)],Fv.prototype,"ytdGridStateAwareBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Fv.prototype,"ytRendererstamperBehavior",void 0);
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],Fv.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Fv.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Fv.prototype,"data",void 0);_.I([_.K({computed:"computeDisplayedContent(data)"}),_.Z("design:type",Object)],Fv.prototype,"content",void 0);
_.I([_.K({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],Fv.prototype,"hasSecondaryColumnData",void 0);_.I([_.K({value:function(){return window.outerHeight>1024?3:2}}),
_.Z("design:type",Number)],Fv.prototype,"initialCount",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",String)],Fv.prototype,"pageSubtype",void 0);_.I([_.qR("ytd-section-list-renderer"),_.Z("design:type",Object)],Fv.prototype,"listRenderer",void 0);_.I([_.K(),_.Z("design:type",Object)],Fv.prototype,"notActive",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Fv.prototype,"isConstrainedList",void 0);
_.I([_.K(),_.Z("design:type",String)],Fv.prototype,"responsiveSizing",void 0);_.I([_.by("yt-retrieve-location"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],Fv.prototype,"onRetrieveLocation",null);_.I([_.by("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.aQ]),_.Z("design:returntype")],Fv.prototype,"onYtServiceRequestSent",null);
_.I([_.by("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.Xi]),_.Z("design:returntype")],Fv.prototype,"onYtServiceRequestCompleted",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],Fv);
_.m(Fv,"ytd-two-column-browse-results-renderer",function(){if(OQ7!==void 0)return OQ7;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return OQ7=A},{mode:2});var XpM;var xCJ;var Rb=function(){var A=_.G.apply(this,arguments)||this;A.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"]);A.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"]);A.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return A};
_.g(Rb,_.G);_.P=Rb.prototype;_.P.attached=function(){this.requestElementsPerRow()};
_.P.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[dismissBoundButtonTap_]]"}}}},"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[acceptBoundButtonTap_]]"}}}}}};
_.P.onUpdateElementsPerRowAction=function(A){A&&this.elementsPerRow!==A&&(this.elementsPerRow=A)};
_.P.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.P.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.P.computeAlertStyle_=function(A){return A};
_.P.observerElementsPerRow=function(){this.elementsPerRow&&_.eq(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.P.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.P.requestElementsPerRow=function(){_.P4(this.hostElement,"yt-request-elements-per-row")};
Rb.prototype.onIsVisibleChanged_=Rb.prototype.onIsVisibleChanged_;Rb.prototype.observerElementsPerRow=Rb.prototype.observerElementsPerRow;_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Rb.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Rb.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],Rb.prototype,"actionHandlerBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],Rb.prototype,"data",void 0);_.I([_.K({value:6,reflectToAttribute:!0}),_.Z("design:type",Number)],Rb.prototype,"elementsPerRow",void 0);_.I([_.K({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],Rb.prototype,"wrapButtons",void 0);_.I([_.K({value:_.ms("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.Z("design:type",Boolean)],Rb.prototype,"isMusic",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.Z("design:type",String)],Rb.prototype,"alertStyle",void 0);_.I([_.K({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.Z("design:type",Function)],Rb.prototype,"dismissBoundButtonTap_",void 0);_.I([_.K({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.Z("design:type",Function)],Rb.prototype,"acceptBoundButtonTap_",void 0);_.I([_.hT("elementsPerRow"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Rb.prototype,"observerElementsPerRow",null);_.I([_.hT("data.isVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Rb.prototype,"onIsVisibleChanged_",null);_.I([_.yU({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],Rb);
_.m(Rb,"yt-alert-with-actions-renderer",function(){if(xCJ===void 0){var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;XpM===void 0&&(XpM=document.createElement("template"));var X=XpM;O.call(L,X.content.cloneNode(!0),A.content.firstChild);xCJ=A}A=xCJ;return A},{mode:2});_.Y4(_.xa(function(A){function L(b){var S={};return _.D(_.Xg,{text:b,className:_.qn("ytPersonalGreetingViewModelHeadline",(S.ytPersonalGreetingViewModelHeadlineSmall=function(){return T()===48},S))})}
function O(b,S){return _.D("span",{el:b,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},L(S))}
var X=_.sC(_.Bm(function(){var b;return(b=A.data())==null?void 0:b.rendererContext},void 0,void 0,void 0,!0)),x=_.av("span"),J=_.av("span"),Y=function(){return A.data().canvasPromoData},T=function(){var b;
return(b=A.data().bannerHeight)!=null?b:56},V=_.bVy(X,{throttleMs:100}),E=_.bVy(x,{throttleMs:100}),n=_.bVy(J,{throttleMs:100}),t=function(){return E.width()-V.width()>1};
return _.D("yt-personal-greeting-view-model",{el:X,"aria-hidden":t,class:_.qn(A.className,"ytPersonalGreetingViewModelHost"),style:_.rl({height:(0,_.ZG)(function(){return t()?0:T()})})},_.D(_.e,{cond:function(){return A.data().avatar&&!(n.width()+(A.data().avatar?48:0)-V.width()>1)},
then:function(){return _.D(_.ID,{data:function(){return A.data().avatar}},{decoratedAvatarViewModel:function(b){return _.D(_.I4,{data:b.data,
className:_.qn("ytPersonalGreetingViewModelAvatar")})}})}}),_.D("h1",null,L(function(){var b;
return(Y==null?void 0:(b=Y())==null?void 0:b.headline)||(n.width()+(A.data().avatar?48:0)-V.width()>1?A.data().shorterGreeting:A.data().greeting)})),O(J,function(){return A.data().greeting}),O(x,function(){return A.data().shorterGreeting}))},"uj"),"yt-personal-greeting-view-model",{props:{data:_.x5,
className:_.x5}});var QB=function(){var A=_.G.apply(this,arguments)||this;A.hidden=!1;A.isConstrainedList=!1;A.darkerDarkTheme=_.h("web_darker_dark_theme");A.responsiveSizing="COMPACT";A.attachedPlayers=_.h("kevlar_channel_trailer_multi_attach")?[]:void 0;A.player=null;A.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return A};
_.g(QB,_.G);_.P=QB.prototype;
_.P.configureRendererStamper=function(){return{mastheadAdData:{id:"masthead-ad",mapping:{bannerPromoRenderer:{component:"ytd-banner-promo-renderer",noInjection:!0},videoMastheadAdV3Renderer:{component:"ytd-video-masthead-ad-v3-renderer",noInjection:!0}},reuseComponents:!1},alertBannerData:{id:"alert-banner",mapping:{alertWithActionsRenderer:{component:"yt-alert-with-actions-renderer",noInjection:!0}}},greetingData:{id:"personal-greeting",mapping:{personalGreetingViewModel:{component:"yt-personal-greeting-view-model",properties:{className:"[[is]]"},
noInjection:!0}}},"data.alerts":{id:"alerts",mapping:{alertRenderer:{component:"yt-alert-renderer",noInjection:!0},unlimitedUserNotificationRenderer:{component:"yt-unlimited-user-notification-renderer",noInjection:!0},alertWithButtonRenderer:{component:"ytd-alert-with-button-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:{component:"ytd-survey-trigger-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},
"data.metadata":{id:"metadata",mapping:{channelMetadataRenderer:{component:"ytd-channel-metadata-renderer",noInjection:!0}}},"data.header":{id:"header",mapping:{pageHeaderRenderer:{component:"ytd-tabbed-page-header",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]",isRichGrid:"[[richGrid]]",disableGridStateAware:"[[fluidWidth]]",disableHeaderFluidWidth:"[[disableHeaderFluidWidth]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"}},
interactiveTabbedHeaderRenderer:{component:"ytd-interactive-tabbed-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},carouselHeaderRenderer:{component:"ytd-carousel-header-renderer",properties:{active:"[[active]]",disableGridStateAware:"[[fluidWidth]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},memberHubProfileRenderer:{component:"ytd-member-hub-profile-renderer",noInjection:!0}},events:!0},
"data.footer":{id:"footer",mapping:{pageFooterRenderer:{component:"ytd-page-footer-renderer",noInjection:!0}}}}};
_.P.created=function(){var A=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){A.disposeMastheadAd()}]};
_.P.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new Hiz(this.refresh,this.contents))};
_.P.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.P.activeChanged=function(){var A=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=A)};
_.P.tabsChanged=function(){var A=this,L,O;if(this.pageSubtype==="channels"||_.h("kevlar_tab_gestures_for_tabbed_header_data")&&((L=this.data)==null?0:(O=L.header)==null?0:O.carouselHeaderRenderer))this.tabGestures=new FU(this.contents,this.contents,this.hostElement,this.header,function(Y){A.ytdReduxBehavior.dispatch(Y)});
var X,x,J;L=(X=this.data)==null?void 0:(x=X.contents)==null?void 0:(J=x.twoColumnBrowseResultsRenderer)==null?void 0:J.tabs;this.tabGestures&&this.tabGestures.tabsChanged(L)};
_.P.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.P.engagementPanelsChanged=function(){var A=_.X5().resolve(_.FC);if(A){if(this.engagementPanels)for(var L=_.d(this.engagementPanels),O=L.next();!O.done;O=L.next()){var X=void 0;(O=(X=O.value.identifier)==null?void 0:X.tag)&&A.panelMap.delete(O)}this.engagementPanels=[];var x;L=_.d(((x=this.data)==null?void 0:x.panels)||[]);for(x=L.next();!x.done;x=L.next()){x=_.q(x.value,_.qX$);var J=O=void 0,Y=void 0,T=void 0;if(X=((O=x)==null?void 0:O.targetId)||((J=x)==null?void 0:J.panelIdentifier)||((Y=x)==
null?void 0:(T=Y.identifier)==null?void 0:T.tag))J=O=void 0,(J=(O=A).registerPanelContent)==null||J.call(O,X,{engagementPanelSectionListRenderer:x}),this.engagementPanels.push(x)}}};
_.P.onStampFinished=function(){var A=this;_.kd(this,function(){if(A.tabGestures){var L=A.tabGestures;if(L.scrollPositionNeedsUpdate){var O=_.X5().resolve(_.Ot(_.JI)),X;if((X=L.selectedTab)!=null&&X.title&&O&&(X=O.getCurrentPage())){if(L.scrollPositionForTabs.has(L.selectedTab.title)){var x,J;O=(J=(x=O.getCurrentPage())==null?void 0:x.clientHeight)!=null?J:0;x=L.scrollPositionForTabs.get(L.selectedTab.title);X.setScrollTop(x);O>x+100&&(L.scrollPositionNeedsUpdate=!1)}else X.setScrollTop(Math.min(L.lastVisitedTabScrollPosition!==
void 0?L.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,L.tabsStartAtInPx)),L.scrollPositionNeedsUpdate=!1;L.ytdReduxDispatch(biZ(!1))}}}})};
_.P.loadPage_=function(A){this.initCsi();A&&(this.data=A);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.P.getTitle=function(A){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",A))return this.get("microformat.microformatDataRenderer.title",A);if(this.get("header.feedTabbedHeaderRenderer.title",A))return _.vG(this.get("header.feedTabbedHeaderRenderer.title",A));if(this.get("header.interactiveTabbedHeaderRenderer.title",A))return this.get("header.interactiveTabbedHeaderRenderer.title",A);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
A))return _.vG(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",A));var L,O;return _.h("enable_page_header_page_title")&&(A==null?0:(L=A.header)==null?0:(O=L.pageHeaderRenderer)==null?0:O.pageTitle)?A.header.pageHeaderRenderer.pageTitle:""};
_.P.updateTitle=function(A){_.P4(this.hostElement,"yt-update-title",this.getTitle(A))};
_.P.initCsi=function(){_.KK(this.pageSubtype||"browse",["ol","cpt"])};
_.P.getPlayer=function(){if(_.h("kevlar_channel_trailer_multi_attach")){for(var A=_.d(this.attachedPlayers),L=A.next();!L.done;L=A.next())if(L=L.value,L.isConnected||_.In(this.hostElement,L))return L;return null}return this.player};
_.P.getPlayerContainer=function(){return null};
_.P.onPlayerAttached=function(A,L){_.h("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(L):this.player=L};
_.P.onPlayerDetached=function(A,L){_.h("kevlar_channel_trailer_multi_attach")?(A=this.attachedPlayers.indexOf(L),A<0||this.attachedPlayers.splice(A,1)):this.player=null};
_.P.getServiceTrackingParams=function(){var A,L;return((A=this.data)==null?void 0:(L=A.responseContext)==null?void 0:L.serviceTrackingParams)||[]};
_.P.setMastheadAd=function(A){A&&A.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=A&&A.mastheadAd};
_.P.dataChanged=function(){var A=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.OiJ();_.kd(this,function(){_.YK(A.hostElement,"ytd-update-grid-state-action")})};
_.P.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.P.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var A=this.data.alerts;return A&&A.find(function(L){return!!L.alertWithActionsRenderer})}};
_.P.computeGreetingData=function(){if(this.data&&this.data.alerts){var A=this.data.alerts;return A&&A.find(function(L){return!!L.personalGreetingViewModel})}};
_.P.computeHasMemberHubProfileRenderer=function(A){var L;return!!(A==null?0:(L=A.header)==null?0:L.memberHubProfileRenderer)};
_.P.handleAlertCommand=function(A){this.get("alertCommand.alert.alertWithActionsRenderer",A)&&(A=_.q(A,GT$),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",A.alert))};
_.P.handleYtPlaylistDeletionRedirect=function(A){A=this.get("playlistDeletionRedirectCommand.redirectEndpoint",A);_.P4(this.hostElement,"yt-navigate",{endpoint:A})};
_.P.computeFluidWidth=function(A,L,O){if(L==="mini_app"||O)return!0;var X,x,J;A=A==null?void 0:(X=A.contents)==null?void 0:(x=X.twoColumnBrowseResultsRenderer)==null?void 0:(J=x.tabs)==null?void 0:J.find(function(V){var E;return V==null?void 0:(E=V.tabRenderer)==null?void 0:E.selected});
if(!A)return!1;var Y,T;return!!((Y=A.tabRenderer)==null?0:(T=Y.content)==null?0:T.richGridRenderer)&&!["channel","channels","playables"].includes(L)};
_.P.computeHeaderFluidWidth=function(A){return A==="hashtag-landing-page"};
_.P.computeHasSidebar=function(A){var L;return!!(A.sidebar||((L=A.header)==null?0:L.playlistHeaderRenderer))};
_.P.computeHasPageHeaderSidebar=function(A){var L,O;return!!((L=A.header)==null?0:(O=L.pageHeaderRenderer)==null?0:O.enableSidebarView)};
_.P.computeUseUnifiedShowPageLayout=function(A){if(!A||this.pageSubtype!=="show"||!A.sidebar||!A.sidebar.playlistSidebarRenderer)return!1;A=A.sidebar.playlistSidebarRenderer;if(!A.items)return!1;for(var L=0;L<A.items.length;L++)if(_.q(A.items[L],cc)){var O=void 0;return((O=_.q(A.items[L],cc))==null?void 0:O.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.P.computeIsConstrainedList=function(A){return _.h("web_enable_constrained_list_subscriptions_channels")&&A==="subscriptions-channels"};
_.P.computeResponsiveSizing=function(A){return A==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.v2.Object.defineProperties(QB.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var A,L;return((A=this.data)==null?0:(L=A.header)==null?0:L.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var A,L;if(!((A=this.data)==null?0:(L=A.sidebar)==null?0:L.playlistSidebarRenderer))return!1;var O;return(O=this.data)!=null&&O.header?!1:!0}}});
_.v2.Object.defineProperties(QB,{template:{configurable:!0,enumerable:!0,get:function(){if(Maz===void 0){var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);Maz=A}A=Maz;return A}}});
QB.prototype.dataChanged=QB.prototype.dataChanged;QB.prototype.onPlayerDetached=QB.prototype.onPlayerDetached;QB.prototype.onPlayerAttached=QB.prototype.onPlayerAttached;QB.prototype.onStampFinished=QB.prototype.onStampFinished;QB.prototype.engagementPanelsChanged=QB.prototype.engagementPanelsChanged;QB.prototype.scrollAtTopChanged=QB.prototype.scrollAtTopChanged;QB.prototype.tabsChanged=QB.prototype.tabsChanged;QB.prototype.activeChanged=QB.prototype.activeChanged;
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],QB.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.J3),_.Z("design:type",Object)],QB.prototype,"ytdOpenPopupBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],QB.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],QB.prototype,"ytdReduxBehavior",void 0);_.I([_.N(_.Gr.YtPageBehavior),_.Z("design:type",Object)],QB.prototype,"ytPageBehavior",void 0);
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],QB.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.kr.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],QB.prototype,"ytdGuideStateAwareBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],QB.prototype,"ytComponentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],QB.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],QB.prototype,"hidden",void 0);
_.I([_.K(),_.Z("design:type",Object)],QB.prototype,"mastheadAdData",void 0);_.I([_.K({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.Z("design:type",Object)],QB.prototype,"alertBannerData",void 0);_.I([_.K({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.Z("design:type",Object)],QB.prototype,"greetingData",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",String)],QB.prototype,"pageSubtype",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.Z("design:type",Boolean)],QB.prototype,"hasMemberHubProfileRenderer",void 0);_.I([_.K({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],QB.prototype,"hasSidebar",void 0);_.I([_.K({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],QB.prototype,"hasPageHeaderSidebar",void 0);
_.I([_.K({reflectToAttribute:!0,value:!0}),_.Z("design:type",Boolean)],QB.prototype,"roundedContainer",void 0);_.I([_.K({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],QB.prototype,"useUnifiedShowPageLayout",void 0);_.I([_.K({computed:"computeIsConstrainedList(pageSubtype)"}),_.Z("design:type",Object)],QB.prototype,"isConstrainedList",void 0);
_.I([_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],QB.prototype,"usePlaylistHeaderRenderer",null);_.I([_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],QB.prototype,"useOldPlaylistSidebarRenderer",null);_.I([_.K({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.Z("design:type",Boolean)],QB.prototype,"fluidWidth",void 0);_.I([_.K({selector:function(A){return A.ui.scrollAtTop}}),
_.Z("design:type",Boolean)],QB.prototype,"scrollAtTop",void 0);_.I([_.K({selector:_.NFZ}),_.Z("design:type",Boolean)],QB.prototype,"tabGesturesIsActive",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],QB.prototype,"darkerDarkTheme",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.Z("design:type",Boolean)],QB.prototype,"disableHeaderFluidWidth",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.Z("design:type",String)],QB.prototype,"responsiveSizing",void 0);_.I([_.qR("ytd-two-column-browse-results-renderer"),_.Z("design:type",HTMLElement)],QB.prototype,"contents",void 0);_.I([_.qR("#header"),_.Z("design:type",HTMLElement)],QB.prototype,"header",void 0);_.I([_.qR("ytd-refresh"),_.Z("design:type",Object)],QB.prototype,"refresh",void 0);
_.I([_.hT("active"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],QB.prototype,"activeChanged",null);_.I([_.hT("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],QB.prototype,"tabsChanged",null);_.I([_.hT("scrollAtTop"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],QB.prototype,"scrollAtTopChanged",null);
_.I([_.K(),_.Z("design:type",Object)],QB.prototype,"engagementPanels",void 0);_.I([_.hT("data.panels"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],QB.prototype,"engagementPanelsChanged",null);_.I([_.by("yt-rendererstamper-finished"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],QB.prototype,"onStampFinished",null);
_.I([_.by("yt-player-attached"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Element]),_.Z("design:returntype")],QB.prototype,"onPlayerAttached",null);_.I([_.by("yt-player-detached"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Element]),_.Z("design:returntype")],QB.prototype,"onPlayerDetached",null);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],QB.prototype,"dataChanged",null);
_.I([_.Q({is:"ytd-browse"})],QB);_.b6.registerService(_.Sxy,QB);
_.C$();
}catch(e){_._DumpException(e)}
try{
_.cq("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 w8,jUZ,W2z,HdJ,zLX,BVZ,Mv$,$7Q,aZJ,kkz,U7$,vdn,odX,LUB,OhB,xAk,sFS,J9n,dAM,YIS,unZ,T6S,pI,DAS,Nc,eFZ,EOM,nOS,tfQ,bhS,SIX,gO7,hFM,A9$,w3Q,p3S,ih7,N6z,r9$,KU7,c9S,Cin,FUM,RFS,mA$,fxM,y9J,jFS,WUX,Hhz,B6M,$AJ,axM,kNM,UAM,vOX,oOJ,Az$,LfJ,OMM,X4X,xGM,skz,Jz7,P3S,dGJ,Y0Z,uzJ,TQS,VmJ,eAX,EK7,nKQ,tmS,bMB,hAQ,S0z,q0n,gKJ,w4B,p4k,iMJ,NQk,rzz,KfS,GZJ,lQM,czJ,C3B,Ff7,RA$,Qkn,mGX,fQM,IQS,yzn,ZMM,Qg,jkM,Wf$,HMJ,BQz,Mm7,$GS,aQ$,kZM,UG7,vKn,LCz,ul7,eDn,EB7,SeS,qeQ,hDS,tMM,iYX,KCS,RDM,nB7,lnJ,NhS,j1,maZ,yYS,WCS,
ZY7,jmM,HYJ,$aB,BhM,anQ,k1k,MMB,zDX,UaM,Bd,Mc,XyZ,xTB,$2,sak,JiX,PnS,DTX,ecM,aR,k2,ncM,EcS,tQk,b3S,hcn,UE,vd,oR,rin,KuM,GmM,La,Rck,l9Q,FuS,QaJ,ciZ,f9k,CnQ,Z3k,I9X,yiJ,OK,WuX,jaS,MQz,UTz,Jb,PU,a9B,ocZ,kmM,vc$,Y_,T3,Vf,D6,SbS,uSJ,wDQ,pDM,i4Z,Nd$,KiM,sJM,JTJ,na,dRM,eU,EK,YbX,rTM,qb7,Py7,bq,lBB,cTX,CyX,RBn,mRB,fBZ,IBQ,yTX,jJX,Z4J,H4J,zBJ,MqS,$Rk,kKJ,URX,vJ7,AtS,LeZ,xbM,XR$,syB,JtM,PVz,db$,uIM,TWX,V5M,DbM,ekJ,EaJ,t5Q,bTz,hkX,SYz,qY$,wRS,gaX,pRJ,iTJ,SU,NWM,rtZ,q4,Ke7,GiS,lXB,ctX,CVX,FeJ,RkX,QyZ,mbS,IXS,
gg,ytM,ZTZ,HTX,BWM,M5Q,aX7,$bX,kiz,Ub$,vaX,AFX,L4X,OyX,XxJ,xnM,sQS,JFX,PB$,dn$,YCz,uVB,Tlk,E4n,n4J,DnS,epX,VtQ,ttz,SCZ,byX,hp$,wxX,qCB,g4M,pxQ,iyQ,NlM,rFJ,GJQ,lrX,cFX,F4n,RpZ,mnM,Irn,Zy$,W4Z,zpk,MtS,arJ,UnM,AIS,LN7,OuB,xVk,XmJ,JIn,PSX,dV$,Yk$,pa,uiM,T0Z,V8$,gu7,pmM,iun,GPS,llB,cIM,CSM,FNJ,RTM,QD$,mb,mV$,G3,jQn,flM,IlM,FBZ,ROS,QGX,mwB,fE$,IES,yCM,ZvM,jGX,fr7,QQk,CB$,WBM,HvS,zOz,B1X,MEz,$wM,BlS,HyZ,aEz,kR$,Uwn,yFX,$nn,vfJ,kJQ,of$,o4$,ARS,LzQ,OqJ,XwZ,xlS,sIS,JRS,PEJ,dlX,YrB,u2X,Tok,oJZ,VOB,DlZ,eqS,EDM,
nDM,tOX,bqZ,BdJ,WiX,hqM,Qf,mr,fa,Iw,Sr$,qrz,gDJ,ww$,pw7,iqJ,No7,rRk,Kz7,G_B;
w8=function(A){if(!A)return"browse";var L=A.page,O=A.url,X,x,J,Y=(X=A.response)==null?void 0:(x=X.responseContext)==null?void 0:(J=x.webResponseContextExtensionData)==null?void 0:J.pageTheme;if(Y)L=Y.toLowerCase().replace(/_/g,"-");else if(L!=="watch"&&L!=="learning_journey_watch"){var T,V;if((L==="browse"||L==="settings")&&((T=A.response)==null?0:(V=T.sidebar)==null?0:V.settingsSidebarRenderer))L="WEB_PAGE_TYPE_SETTINGS";else{var E,n;L==="browse"&&((E=A.response)==null?0:(n=E.metadata)==null?0:n.channelMetadataRenderer)?
L="channel":O&&(L=_.SQ(O)||L)}}return L};
jUZ=function(){var A=_.WY("yt.aba.att");return A?A:_.nF.instance!==void 0?_.nF.instance.pDY.bind(_.nF.instance):null};
W2z=function(A,L){var O;return _.u(function(X){return(O=jUZ())?X.return(O(A,L,6E4)):X.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
HdJ=function(A,L,O,X,x){L=L===void 0?[]:L;x=x?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:x}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.Xl(A),dialogMessages:L.map(function(J){return _.Xl(J)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Xl(O),serviceEndpoint:x}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Xl(X)}}}}}};
zLX=function(A){var L=!!_.Aa().queueProxy;var O,X,x;A=A==null?void 0:(O=A.response)==null?void 0:(X=O.currentVideoEndpoint)==null?void 0:(x=X.watchEndpoint)==null?void 0:x.playlistId;return!(!L&&!A)};
BVZ=function(A,L){var O=_.rm();if(zLX(A))return O.playlistWatchPageActivation=!0;switch(w8(L)){case "yts-products":return O.productDetailsPageActivation=!0;case "mini_app":return O.miniAppPageActivation=!0;case "playables":return O.playablesDestPageActivation=!0;default:return!1}};
Mv$=function(A,L,O){for(var X=typeof A==="string"?A.split(""):A,x=A.length-1;x>=0;--x)x in X&&L.call(O,X[x],x,A)};
$7Q=function(A,L){L=_.Sur(A,L);L>=0&&_.wJr(A,L)};
aZJ=function(A){return Array.prototype.concat.apply([],arguments)};
kkz=function(A){var L=0;L=L===void 0?0:L;if(!_.Bn(A))throw _.od("uint64");var O=typeof A;switch(L){case 512:switch(O){case "string":return _.NJs(A);case "bigint":return String((0,_.YX)(64,A));default:return _.pnr(A)}case 1024:switch(O){case "string":return _.rce(A);case "bigint":return _.R6((0,_.YX)(64,A));default:return _.i6p(A)}case 0:switch(O){case "string":return _.NJs(A);case "bigint":return _.R6((0,_.YX)(64,A));default:return _.wne(A)}default:return _.ZN(L,"Unknown format requested type for int64")}};
U7$=function(A){A!=null&&(A=A.JSC$9838_value_||"",A=typeof A==="string"?A:new Uint8Array(A));return A};
vdn=function(A){for(var L=_.f_.apply(1,arguments),O=A[0],X=0;X<A.length-1;X++)O+=String(L[X]),O+=A[X+1];L=document.implementation.createHTMLDocument("");X=L.createElement("style");L.head.appendChild(X);L=X.sheet;L.insertRule(O,0);if(L.cssRules.length===1&&(O=L.cssRules[0],O instanceof CSSStyleRule))return new _.LL(O.cssText.replace(/</g,"\\3C "))};
odX=function(A,L){if(/-[a-z]/.test(L))return null;if(_.VgN&&A.dataset){if(_.Tue()&&!(L in A.dataset))return null;A=A.dataset[L];return A===void 0?null:A}return A.getAttribute("data-"+_.t9(L))};
LUB=function(){var A=A9$;_.WY("yt.ads.biscotti.getId_")||_.oZ("yt.ads.biscotti.getId_",A)};
OhB=function(A){_.oZ("yt.ads.biscotti.lastId_",A)};
xAk=function(){var A={};for(_.GA=new X3$(A.handleError===void 0?_.FJ:A.handleError,A.logEvent===void 0?_.lg:A.logEvent);_.lK.length>0;)switch(A=_.lK.shift(),A.type){case "ERROR":_.GA.logError(A.payload);break;case "EVENT":_.GA.logEvent(A.eventType,A.payload)}};
sFS=function(A,L,O){return _.maD(function(X){return O?X.userIdentifier!==void 0&&!A.includes(X.userIdentifier)&&O.includes(X.publicName):X.userIdentifier!==void 0&&!A.includes(X.userIdentifier)},L)};
J9n=function(A){var L,O;return _.u(function(X){if(X.nextAddress==1)return L=_.gN("YtIdbMeta hasAnyMeta other"),X.yield(_.maD(function(x){return x.userIdentifier!==void 0&&x.userIdentifier!==L},A),2);
O=X.yieldResult;return X.return(O.length>0)})};
dAM=function(A,L){PiS||(PiS=_.c1.addLowPriorityJob(function(){var O,X,x,J,Y;return _.u(function(T){switch(T.nextAddress){case 1:return T.yield(_.A4(),2);case 2:O=T.yieldResult;if(!O)return T.return();X=!0;_.e4(T,3);return T.yield(sFS(A,O,L),5);case 5:x=T.yieldResult;if(!x.length){X=!1;T.jumpTo(6);break}J=x[0];return T.yield(_.BO(J.actualName),7);case 7:return T.yield(_.aZ(J.actualName,O),6);case 6:_.zA(T,4);break;case 3:Y=_.S4(T),_.cO(Y),X=!1;case 4:_.c1.cancelJob(PiS),PiS=0,X&&dAM(A,L),_.qo(T)}})}))};
YIS=function(){var A;return _.u(function(L){return L.nextAddress==1?L.yield(_.A4(),2):(A=L.yieldResult)?L.return(J9n(A)):L.return(!1)})};
unZ=function(A){var L=100;L=L===void 0?500:L;var O,X,x,J,Y,T;return _.u(function(V){return V.nextAddress==1?(O=_.ms("INNERTUBE_CONTEXT_CLIENT_NAME",0),X=[O,(0,_.O$)()-2592E6],x=[O,(0,_.O$)()],J=IDBKeyRange.bound(X,x),V.yield(_.YYu(A),2)):V.nextAddress!=3?(Y=V.yieldResult,T=[],V.yield(_.$$(Y,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(E){T.length=0;return _.XW(E.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:J,direction:"prev"},function(n){if(n.getValue()&&T.length<
L)return T.push(n.getValue()),n.delete().then(function(){return n.continue()})})}),3)):V.return(T)})};
T6S=function(){var A;return _.u(function(L){if(L.nextAddress==1)return L.yield(_.A4(),2);A=L.yieldResult;if(!A||!_.wN()&&!_.h("nwl_init_require_datasync_id_killswitch")||!_.Ked())return L.jumpTo(0);_.lXu=!0;_.GiP.isNwlInitialized=_.lXu;return L.yield(_.FUu().awaitInitialization(),0)})};
pI=function(A,L){_.M5y[A]=!0;var O=_.sN();O&&O.publish.apply(O,arguments);_.M5y[A]=!1};
DAS=function(){if(_.pD_()&&!Vfk){var A=function(O){O=O.data;if(O.op==="serializedGelBatch"){var X=_.$nO.get(O.key);X&&(_.kJy(O.serializedBatch,X.client,X.resolve,X.networklessOptions,X.isIsolated,X.useVSSEndpoint,X.dangerousLogToVisitorSession,X.requestsOutstanding),_.$nO.delete(O.key))}},L=_.wDy();
L&&(L.addEventListener("message",A),L.onerror=function(){_.$nO.clear()});
Vfk=!0}};
Nc=function(){this.relativeTimeStart_=_.u1()};
eFZ=function(A,L){A!=null&&this.append.apply(this,arguments)};
EOM=function(){return _.IF("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
nOS=function(A,L,O){O=O===void 0?!1:O;var X,x,J,Y,T;return _.u(function(V){switch(V.nextAddress){case 1:_.Sh("SOCS",A,34128E3,"youtube.com",!0);if(_.hW)return x=fetch(L,{method:"POST",mode:_.zN(L),credentials:_.H3(L),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),J=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.zN("/upgrade_visitor_cookie?eom=1"),credentials:_.H3("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),V.yield(Promise.all([x,J]).then(function(E){return E[1]}),5);
fetch(L,{method:"POST",mode:_.zN(L),credentials:_.H3(L),cache:"no-store",headers:{"Content-Type":"text/plain"}});return V.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.zN("/upgrade_visitor_cookie?eom=1"),credentials:_.H3("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:X=V.yieldResult;V.jumpTo(3);break;case 5:X=Y=V.yieldResult;case 3:if(!X.ok)throw Error("mf");return V.yield(X.text(),7);case 7:T=V.yieldResult,
!T.includes('"state_switch":true')&&!O||T.includes("skip_reload_for_test")||window.location.reload(),_.qo(V)}})};
tfQ=function(A){return _.u(function(L){return L.nextAddress==1?L.yield(nOS(A.socsCookie,A.savePreferenceUrl,!0),2):L.return()})};
bhS=function(A){return _.u(function(L){return L.nextAddress==1?L.yield(nOS(A.socsCookie,A.savePreferenceUrl),2):L.return()})};
SIX=function(A){A=A.xhr.responseText;if(!_.su(A,")]}'"))throw new r8;A=JSON.parse(A.substr(4));if((A.type||1)>1)throw new r8;A=A.id;OhB(A);KI=_.XG(A);hFM(18E5,2);return A};
gO7=function(A,L){L=new qIz(L);OhB("");KI=_.qLg(L);A>0&&hFM(12E4,A-1);throw L;};
hFM=function(A,L){_.TA(function(){_.rlX().then(SIX,function(O){return gO7(L,O)}).thenCatch(_.rk)},A)};
A9$=function(){var A=_.lZk();if(A!==void 0)return _.Ry(A);KI||(KI=_.rlX().then(SIX).thenCatch(function(L){return gO7(2,L)}));
return KI};
w3Q=function(){var A=document;return _.Fp(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(L){return"on"+L.toLowerCase()in A})};
p3S=function(A){A.addEventListener("click",function(L){var O=L.target;O&&O.getAttribute("href")&&(O=O.getAttribute("href"),_.z2(window,O,"_blank"),L.preventDefault(),L.stopImmediatePropagation())})};
ih7=function(A){var L,O,X,x=(X=(O=((L=A.mainDownloadsListEntity)!=null?L:{})[_.Gee])==null?void 0:O.refresh)!=null?X:"",J;A=(J=A.refresh)==null?void 0:J[x];x=A!=null?A:{};return(x==null?0:x.refreshTime)?Number(x==null?void 0:x.refreshTime):0};
N6z=function(A,L){var O=_.KY(A);return L.every(function(X){var x;X=X==null?void 0:(x=X.playbackDataEntity)==null?void 0:x.key;if(!X)return!1;x=_.Dn(_.dh(X).entityId,"mainVideoEntity");return!!O[x]})};
r9$=function(A){A=_.iN(A.entities);return _.HbM(A).length};
KU7=function(A,L){if(L){var O;A=(O=_.eM(A.entities,"downloadQualityPickerEntity",L))!=null?O:void 0}else A=void 0;return A};
c9S=function(){GNM||(_.kB=_.raD,GNM=new lxM);return GNM};
Cin=function(A){var L=document.getElementsByTagName("ytd-enforcement-message-view-model");L.length===0||getComputedStyle(L[0]).display==="none"?A(0,"p.h_"):A(1,"p.h_")};
FUM=function(){GQ=0;var A=[_.NT(!0)];lf&&_.YK(lf,"yt-window-resized",A)};
RFS=function(){GQ||(GQ=_.c1.addLowPriorityJob(FUM,200))};
mA$=function(){cd=0;QFz=_.DQ7(document);var A=[QFz];lf&&_.YK(lf,"yt-window-scrolled",A)};
fxM=function(){cd||(cd=_.c1.addLowPriorityJob(mA$,200))};
y9J=function(A){A=A===void 0?null:A;IxX.push(_.L7(window,"resize",RFS));IxX.push(_.L7(window,"scroll",fxM));A&&(lf=A)};
jFS=function(){var A={isWide:_.hj.get("wide","0")==="1"},L=_.qG();if(L=L.getFlag(165)||L.getFlag(174))A.theme=_.C3(!0);if(_.bEe()){var O=_.cy()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";A.systemTheme=O}!L&&_.h("parent_tools_enable_app_settings")&&_.$L(window.location.href).theme!==void 0&&(A.theme=_.C3());if((L=CI)?!_.lW.equals(L,A):A)L={currentValue:A},ZhJ&&(L.timeSinceLastSnapshotSecs=Math.round(((0,_.O$)()-ZhJ)/1E3)),CI&&(L.previousValue=CI),_.lg("appSettingsCaptured",L),CI=A,ZhJ=
(0,_.O$)()};
WUX=function(A){_.u(function(L){if(L.nextAddress==1)return L.yield(A.delete("yt-appshell-assets"),2);_.qo(L)})};
Hhz=function(A){return _.MO((0,_.kL6)(),A)};
B6M=function(){var A;_.u(function(L){return L.nextAddress==1?L.yield(Fd.getInstance(),2):(A=L.yieldResult)?L.yield(zFk(A),0):L.jumpTo(0)})};
$AJ=function(){var A;_.u(function(L){return L.nextAddress==1?L.yield(RR.getInstance(),2):(A=L.yieldResult)?L.yield(MfQ(A),0):L.jumpTo(0)})};
axM=function(A){WUX(A);B6M();$AJ()};
kNM=function(A){var L,O;return _.u(function(X){if(X.nextAddress==1)return X.yield(_.ZEe(A),2);if(L=X.yieldResult){var x;a:{if(L.headers&&(x=L.headers.get("date"))&&(x=Date.parse(x),!isNaN(x))){x=Math.round((0,_.O$)()-x);break a}x=-1}O=x;if(O>-1)return X.return(O)}return X.return(-1)})};
UAM=function(){var A=_.Ou.caches,L=_.fB("IS_SHELL_LOAD"),O,X;_.u(function(x){if(x.nextAddress==1)return O=-1,L?x.yield(kNM(A),3):(X=_.rQ(),O=Math.round((0,_.O$)()-X),x.jumpTo(2));x.nextAddress!=2&&(O=x.yieldResult);O>=0&&O<2147483648&&_.CM({appInstallDataAgeMs:O});_.qo(x)})};
vOX=function(A){var L=_.jV(_.Ou.location.href),O={};"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(X){var x=L.JSC$11053_queryData_.getValues(X);if(x==null?0:x.length)O[X]=x});
return _.PT(A,new Map(Object.entries(O)))};
oOJ=function(A){A=A.match(/(.*)::.*::.*/);if(A!==null)return A[1]};
Az$=function(A){if(_.s49()){var L=Object.keys(window.localStorage);L=_.d(L);for(var O=L.next();!O.done;O=L.next()){O=O.value;var X=oOJ(O);X===void 0||A.includes(X)||self.localStorage.removeItem(O)}}};
LfJ=function(){if(!_.s49())return!1;var A=_.gN(),L=Object.keys(window.localStorage);L=_.d(L);for(var O=L.next();!O.done;O=L.next())if(O=oOJ(O.value),O!==void 0&&O!==A)return!0;return!1};
OMM=function(A){return _.EE("NotificationsDisabled",A)};
X4X=function(){return Notification.permission!="granted"?Promise.resolve():_.r0X().then(function(A){return A?A.pushManager.getSubscription().then(function(L){if(L)return Promise.resolve();L={userVisibleOnly:!0,applicationServerKey:_.ke("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return A.pushManager.subscribe(L).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
xGM=function(A){return _.r0X().then(function(L){if(!L||!L.active)return Promise.reject(new _.pe("serviceworker.postMessage",A,L));try{return L.active.postMessage(A),Promise.resolve()}catch(O){return Promise.reject(O)}})};
skz=function(){xGM({type:"notifications_register",data:_.ms("ID_TOKEN")})};
Jz7=function(){if(!_.fB("LOGGED_IN"))return Promise.resolve(!1);var A=_.dN("service_worker_push_force_notification_prompt_tag");return A?_.SL("PromptTags").then(function(L){if(!L)return!0;var O=[];try{O=JSON.parse(L)}catch(X){return!1}return O&&O.indexOf(A)==-1}):Promise.resolve(!1)};
P3S=function(){var A=_.PO("service_worker_push_prompt_delay_microseconds");return A?_.SL("PromptTime").then(function(L){return Promise.resolve(Date.now()-A>(L||0))}):Promise.resolve(!0)};
dGJ=function(){var A=_.PO("service_worker_push_logged_out_prompt_watches");return A==-1?Promise.resolve(!1):_.SL("WatchCount").then(function(L){return L>=A})};
Y0Z=function(){var A=_.uS(document,"yt-push-prompt-modal-bg");A&&_.hg(A)};
uzJ=function(){return _.PO("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.SL("PromptCount").then(function(A){A||(A=0);return Promise.resolve(A<_.PO("service_worker_push_prompt_cap"))})};
TQS=function(A){return _.fB("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.fB("LOGGED_IN")&&(A===void 0?0:A)?Jz7().then(function(L){if(L)return!0;L=[uzJ(),P3S()];_.fB("LOGGED_IN")||L.push(dGJ());return Promise.all(L).then(function(O){return O.every(function(X){return X})})}):Promise.resolve(!1)};
VmJ=function(){_.SL("PromptCount").then(function(A){return _.EE("PromptCount",A+1)}).then(function(){return _.EE("PromptTime",Date.now())}).then(function(){var A=_.dN("service_worker_push_force_notification_prompt_tag");
if(A)return _.SL("PromptTags").then(function(L){var O=[];if(L)try{O=JSON.parse(L)}catch(X){return!1}O||(O=[]);O.push(A);return _.EE("PromptTags",JSON.stringify(O))})})};
eAX=function(){DG$||Y0Z()};
EK7=function(A){A.style.zIndex=2147483648;A.style.pointerEvents="auto";A.style.backgroundColor="rgba(0, 0, 0, 0.6)";A.style.width="100%";A.style.height="100vh";A.style.position="absolute";A.style.top="0";A.style.left="0";A.style.border="none"};
nKQ=function(){var A=_.uS(document,"yt-push-prompt-modal-bg");DG$=_.h("service_worker_push_prompt_modal_ignore_click");A?EK7(A):(A=_.Q5("div",{id:"yt-push-prompt-modal-bg"}),EK7(A),document.body.appendChild(A),_.Wee(document,"click",eAX))};
tmS=function(){var A=arguments;_.h("service_worker_push_prompt_modal_enable")&&nKQ();return Notification.requestPermission().then(function(L){Y0Z();var O=document.getElementById("ticker");O&&(O.className=O.classList.remove("show"));if(L=="granted")return X4X().then(function(){OMM(!1);skz();return Promise.resolve(!0)});
L=="denied"&&skz();return Promise.resolve(!1)}).catch(function(){Y0Z();
return Promise.reject.apply(Promise,_.le(A))})};
bMB=function(A){A=A===void 0?!1:A;var L=_.wW_().client;if(L&&L.browserVersion){var O=L.browserVersion,X=L.browserName=="CHROME"&&_.Eu(O,"50.0.0")<0;L=L.browserName=="OPERA"&&_.Eu(O,"42.0.0")<0;if(X||L)return Promise.resolve()}return _.lWJ().then(function(x){if(!x)return Promise.resolve();x=X4X().then(function(){return xGM({type:"notifications_check_registration",data:_.ms("ID_TOKEN")})});
return Notification.permission!="default"?x.catch(function(){}):x.then(function(){return TQS(A)}).then(function(J){if(J)return VmJ(),tmS().then(function(){})}).catch(function(){})})};
hAQ=function(A){return _.KvJ(A)?bMB():Promise.resolve()};
S0z=function(A){var L=A.installing||A.waiting;return A.active||!L?Promise.resolve(A):new Promise(function(O){var X=function(x){x=x.target;if(x.state==="activated"||x.state==="redundant")L.removeEventListener("statechange",X),O(A)};
L.addEventListener("statechange",X)})};
q0n=function(){var A=new _.FDO("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.tR(A,{mainAppWeb:_.aa()});var L=_.DWj;_.h("service_worker_forward_exp_params")&&(L=vOX(L));try{var O=_.iPM(L).catch(function(){_.bE(A,"FAILURE");return new Promise(function(){})});
_.h("service_worker_push_enabled")&&O.then(function(X){_.bE(A,"SUCCESS");return X}).then(S0z).then(hAQ)}catch(X){if(_.bE(A,"FAILURE"),X.name!=="SecurityError")throw X;
}};
gKJ=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&q0n()};
w4B=function(A,L){var O={};L&&(O.serializedYpcFamilyCreateLoggingParams=L);_.lg(A,O);_.ch()};
p4k=function(A,L){var O={};O.serializedYpcRefundFlowLoggingParams=L;A&&(O.eventType=A);_.lg("ypcRefundFlowEvent",O);_.ch()};
iMJ=function(A){A&&_.r$r("transactionFlowSucceeded",A)};
NQk=function(A){A&&_.o5("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",A,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
rzz=function(A){var L,O,X,x,J,Y,T;_.u(function(V){if(V.nextAddress==1)return V.yield(_.ete(),2);if(V.nextAddress!=3){if(!V.yieldResult)return V.return(!1);L=[];return V.yield(_.EC.keys(),3)}O=V.yieldResult;X=_.d(O);for(x=X.next();!x.done;x=X.next())J=x.value,Y=_.VyD(J),T=Y.datasyncId,!T||A.includes(T)||L.push(_.EC.delete(J));return V.return(Promise.all(L).then(function(E){return E.some(function(n){return n})}))})};
KfS=function(){var A,L,O,X,x,J,Y;return _.u(function(T){if(T.nextAddress==1)return T.yield(_.ete(),2);if(T.nextAddress!=3){if(!T.yieldResult)return T.return(!1);A=_.gN("cache contains other");return T.yield(_.EC.keys(),3)}L=T.yieldResult;O=_.d(L);for(X=O.next();!X.done;X=O.next())if(x=X.value,J=_.VyD(x),(Y=J.datasyncId)&&Y!==A)return T.return(!0);return T.return(!1)})};
GZJ=function(){var A=_.X5().resolve(_.Ot(_.EEn));return A?A.getCurrentTime():0};
lQM=function(){var A,L,O,X,x,J,Y,T,V,E,n,t,b,S;return _.u(function(w){switch(w.nextAddress){case 1:A={},L=_.S5e(),O=_.d(Object.entries(L)),X=O.next();case 4:if(X.done){w.jumpTo(3);break}x=X.value;J=_.d(x);Y=J.next().value;T=J.next().value;V=Y;E=T;if(!E){w.jumpTo(5);break}return w.yield(E(),8);case 8:A[V]=w.yieldResult;case 5:X=O.next();w.jumpTo(4);break;case 2:n=_.d(void 0),t=n.next();case 9:if(t.done){w.jumpTo(3);break}b=t.value;S=L[b];if(!S){w.jumpTo(10);break}return w.yield(S(),13);case 13:A[b]=
w.yieldResult;case 10:t=n.next();w.jumpTo(9);break;case 3:return w.return(A)}})};
czJ=function(){var A;_.u(function(L){if(L.nextAddress==1)return L.yield(lQM(),2);A=L.yieldResult;return L.yield(navigator.clipboard.writeText(JSON.stringify(A,null,2)),0)})};
C3B=function(A,L){return _.eM(A.entities,"superThanksSelectedTierEntity",L)};
Ff7=function(A,L){var O=_.GWO();_.KB(function(){var X=A.value;if(X)return _.Lre(X,L),_.Oa9(X,L,void 0,void 0,void 0,O)},[L])};
RA$=function(A){var L;return(L=A.sharedUi)==null?void 0:L.currentPageType};
Qkn=function(A,L){return{popup:{searchSuggestionReportDialog:{searchQuery:A,title:_.b3("SBOX_INAPPROPRIATE_TITLE"),suggestions:L,categoryLabel:_.b3("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.b3("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.b3("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.b3("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.b3("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.b3("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.b3("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.b3("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.b3("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.b3("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
mGX=function(A){var L,O,X,x,J,Y,T,V,E,n,t,b,S,w,l,F,R,y,M;return _.u(function(H){switch(H.nextAddress){case 1:return H.yield(_.tY(),2);case 2:return(L=H.yieldResult)?H.yield(_.ffD(L),3):H.return();case 3:O=H.yieldResult;if(!O)return H.return();x=((X=O.offlineVideos)==null?void 0:X.length)||0;Y=((J=O.offlinePlaylists)==null?void 0:J.length)||0;if(x===0&&Y===0)return H.return();T=0;if(O.offlineVideos)for(V=_.d(O.offlineVideos),E=V.next();!E.done;E=V.next())n=E.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
n.videoState&&(T+=1);A.offline_videos_count=x.toString();_.h("kevlar_log_offline_current_network_type_ks")||(A.offline_current_network_type=(t=_.Ths())!=null?t:"CONN_INVALID");_.h("kevlar_log_updated_time_for_smart_downloads")&&(b=_.Ai().getState().entities,S=_.CY(b),w=ih7(b),A.offline_smart_downloads_last_sync_time_ms=S.toString(),A.offline_smart_downloads_next_sync_time_ms=w.toString());A.offline_videos_playable=T.toString();A.offline_playlists_count=Y.toString();O.offlineVideos&&(l=O.offlineVideos.reduce(function(z,
a){a.downloadedBytes&&(z+=Number(a.downloadedBytes));return z},0).toString())&&(A.offline_used_disk_space_bytes=l);
if(!((F=navigator)==null?0:(R=F.storage)==null?0:R.estimate)){H.jumpTo(4);break}return H.yield(navigator.storage.estimate(),5);case 5:y=H.yieldResult,A.offline_free_disk_space_bytes=(((M=y)==null?void 0:M.quota)||0).toString();case 4:A.offline_client_state=JSON.stringify(O),_.qo(H)}})};
fQM=function(A){A=_.d(A);for(var L=A.next(),O={};!L.done;O={setter$jscomp$5:void 0},L=A.next()){var X=L.value;L=X.params;X=X.service;L&&X&&(O.setter$jscomp$5=_.lDJ[X],O.setter$jscomp$5&&L.forEach(function(x){return function(J){var Y=J.key;J=J.value;Y&&J&&(0,x.setter$jscomp$5)(Y,J)}}(O)))}};
IQS=function(A){A=A.match(/(.*)::.*::.*/);if(A!==null)return A[1]};
yzn=function(A){if(_.HZp()){var L=Object.keys(window.sessionStorage);L=_.d(L);for(var O=L.next();!O.done;O=L.next()){O=O.value;var X=IQS(O);X===void 0||A.includes(X)||self.sessionStorage.removeItem(O)}}};
ZMM=function(){if(!_.HZp())return!1;var A=_.gN(),L=Object.keys(window.sessionStorage);L=_.d(L);for(var O=L.next();!O.done;O=L.next())if(O=IQS(O.value),O!==void 0&&O!==A)return!0;return!1};
Qg=function(A,L,O){(_.h("desktop_keyboard_shortcut_usage_log")||O&&_.h("web_shorts_keyboard_shortcut_usage_log"))&&(L?_.S1.get(A):_.h5.get(A))&&(A=L?_.g8.get(A):_.qc.get(A))&&_.$K(_.Fn(),A)};
jkM=function(A,L){return A.findIndex(function(O){return O.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(L.keyCode):!1};
Wf$=function(){var A,L;return typeof CSS!=="undefined"&&((L=(A=CSS).supports)==null?void 0:L.call(A,"selector(:has(*))"))};
HMJ=function(A){return A.visibility!=="hidden"&&A.display!=="none"};
BQz=function(A){if(Wf$()||A.tagName!=="DETAILS"?!A.matches(zAX):A.querySelector("summary")!==null)return-1;A=A.getAttribute("tabindex")||"0";return Number(A)};
Mm7=function(A){return A.some(function(L){return BQz(L)>0})};
$GS=function(A){if(A.textContent)return!0;if(A instanceof HTMLInputElement){if(!A.labels)return!1;A=_.d(A.labels);for(var L=A.next();!L.done;L=A.next())if(L.value.textContent)return!0}return!1};
aQ$=function(A){return A.sort(function(L,O){return BQz(O)-BQz(L)})};
kZM=function(A){A=Array.from(A.querySelectorAll(zAX)).filter(function(L){return(HMJ(L.style)?HMJ(window.getComputedStyle(L)):!1)&&$GS(L)});
return Mm7(A)?aQ$(A):A};
UG7=function(A){A=kZM(A);A.length>0&&A[0].focus()};
vKn=function(A,L){L.stack&&(A.stack+="\n"+L.stack);return A};
LCz=function(A){var L=mb(A,"Content-Type");if(!L)return null;L=L.toLowerCase();if(L.startsWith("application/json"))return L.startsWith("application/json+protobuf")?new oKQ:new _.EQ;if(L.startsWith("application/x-protobuf")){A=mb(A,"Content-Transfer-Encoding");if(!A)return new fI;if(A.toLowerCase()=="base64")return new AYJ}return null};
ul7=function(A,L,O,X){var x=new OYM(function(T,V){return XGZ.has(V)?T.sentinel==="gal"&&T.event!==void 0:!1},function(T){T.event?(T=xak(T.event),T=!T||smJ(X,T)?!0:_.NK(A.lastEvent,IR,2,yg)?!_.NK(T,Z8,1,yg)&&!_.NK(T,IR,2,yg):!_.NK(T,Z8,1,yg)&&!_.NK(T,IR,3,yg)):T=!0;
return T});
O=_.PT(A.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",JYn(O)]]));if(A.nestedOrigins!==void 0)for(var J=_.d(A.nestedOrigins),Y=J.next();!Y.done;Y=J.next())O=_.PT(O,new Map([["origin",Y.value]]));return PNZ(x,O,L).then(function(T){T=daJ(T.event);if(_.NK(T,Z8,1,yg)){var V,E=(V=_.WM(T,Z8,1,yg))==null?void 0:_.IH(V,2);E&&X.JSC$20287_logErrorEvent(Yek(E));V=_.WM(T,Z8,1,yg);_.IH(V,2)===4?(T=_.WM(T,Z8,1,yg),T={statusCode:11,statusMessage:_.mT(T,
3)}):(T=_.WM(T,Z8,1,yg),T={statusCode:12,statusMessage:_.mT(T,3)});return T}_.NK(T,IR,3,yg)?(T=_.WM(T,IR,3,yg),T={statusCode:1,consentLanguageKeys:_.mT(T,2)}):T={statusCode:1};return T}).catch(function(T){return T.errorCode!==void 0?{statusCode:T.errorCode,
statusMessage:T.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})};
eDn=function(A){var L={};if(A===void 0||A===null)return L;A.getToken()!==void 0&&Thk(A.getToken())&&Thk(A.getToken()).length>0&&(L.scopes=new Set(Thk(A.getToken())));A.getToken()!==void 0&&VMJ(A.getToken())&&VMJ(A.getToken()).length>0&&(L.capabilities=new Set(VMJ(A.getToken())));_.mT(A,3)!==void 0&&(L.consistencyKey=_.mT(A,3));A.getName()!==void 0&&A.getName()!==""&&(L.linkName=A.getName());_.i1(A,DaB,4)&&(A=_.ET(A,DaB,4),A=Object.assign({},_.mT(A,1)&&{userId:_.mT(A,1)},_.mT(A,2)&&{displayName:_.mT(A,
2)},_.mT(A,3)&&{email:_.mT(A,3)},_.mT(A,5)&&{username:_.mT(A,5)},_.mT(A,4)&&{profilePicture:_.mT(A,4)}),L.profile=A);return L};
EB7=function(A,L){var O=A.flowParams,X;return{serviceId:O.serviceId,sessionId:O.sessionId,currentFlow:A.currentFlow,googleScopesString:L,linkingSessionSerialized:A.session.serialize(),consentLanguageKeys:O.consentLanguageKeys,callerState:A.callerState,dynamicUrlParameters:O.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(X=O.partnerConfigMinReadTimestamp)==null?void 0:X.serialize()}};
SeS=function(A){var L=A.googleScopes!==void 0?Array.from(A.googleScopes).join(","):"";nB7(EB7(A,L));L=tMM(A);return L===null?Promise.resolve(bYB):L.start().then(function(O){var X,x=(X=O.link)==null?void 0:X.consistencyKey;return O.statusCode===1&&A.googleScopes!==void 0&&A.googleScopes.size>0&&x!==void 0?(X=A.flowParams,hDS(X.serviceId,X.sessionId,A.googleScopes,x,X.galService,A.config,O)):O})};
qeQ=function(A){var L=tMM(A);return L===null?Promise.resolve(j1({statusCode:7,statusMessage:"Failed to create flow object"},A.callerState)):L.complete().then(function(O){var X,x=(X=O.link)==null?void 0:X.consistencyKey;return O.statusCode===1&&A.googleScopes!==void 0&&A.googleScopes.size>0&&x!==void 0?(X=A.flowParams,hDS(X.serviceId,X.sessionId,A.googleScopes,x,X.galService,A.config,O)):j1(O,A.callerState)},function(O){return j1({statusCode:12,
statusMessage:"Failed to complete the flow: "+O.message},A.callerState)})};
hDS=function(A,L,O,X,x,J,Y){return gBB(x,{serviceId:A,sessionId:L,googleScopes:O,consistencyKey:X}).then(function(){return Y},function(T){return x.deleteLink({serviceId:A,
sessionId:L,accountLinkingEntryPoint:J.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+T.message}},function(V){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+V.message}})})};
tMM=function(A){switch(A.currentFlow){case 1:var L=A.flowParams;A=_.ET(A.session,wGS,1);return Wd.createOAuthFlow(L,A);case 2:case 3:return L=A.flowParams,A=_.ET(A.session,pGS,6),Hd.createStreamlinedFlow(L,A);default:return null}};
iYX=function(A,L){A===2&&(A=3);var O=0;zQ.indexOf(A)!==-1&&(O=zQ.indexOf(A)+1);for(A=O;A<zQ.length;A++)if(L.has(zQ[A]))return zQ[A]};
KCS=function(A){var L=A.serviceId;var O=A.sessionId;var X=A.config;var x=A.galService;var J=A.capabilities;var Y=A.scopes;var T=A.loginHint;var V=A.callerState;var E=A.consentLanguageKeys;var n=A.linkName;var t=A.dynamicUrlParameters;var b=A.partnerConfigMinReadTimestamp;A=X.dataUsageNoticeConfig?X.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return x.startLinkingSession({serviceId:L,sessionId:O,capabilities:J,scopes:Y,loginHint:T,callerState:V,supportedFlows:NhS(X.supportedFlows),completionUrl:X.completionUrl,
accountLinkingEntryPoint:X.accountLinkingEntryPoint,consentLanguageKeys:E,dataUsageNoticeConfig:A,linkName:n,dynamicUrlParameters:t,partnerConfigMinReadTimestamp:b}).then(function(S){return new rYB(L,O,X,x,S,void 0,V,E,t,b)})};
RDM=function(A,L,O){var X=(new G1$).getSession(A);if(X===null)return Promise.resolve({statusCode:2});lnJ(A);var x=cYQ(X.linkingSessionSerialized),J=X.googleScopesString!==""&&X.googleScopesString!==void 0?new Set(X.googleScopesString.split(",")):void 0,Y=X.partnerConfigMinReadTimestampSerialized?CNJ(X.partnerConfigMinReadTimestampSerialized):void 0;return FCQ(new rYB(A,X.sessionId,L,O,x,J,X.callerState,X.consentLanguageKeys,X.dynamicUrlParameters,Y),X.currentFlow,X.consentLanguageKeys)};
nB7=function(A){var L=new G1$;L.storage!==null&&L.storage.set("SAVED_SESSION",A)};
lnJ=function(A){var L=new G1$;if(L.storage!==null){var O=L.storage.get("SAVED_SESSION");O!==void 0&&O.serviceId===A&&L.storage.remove("SAVED_SESSION")}};
NhS=function(A){var L=new Set;A=_.d(A);for(var O=A.next();!O.done;O=A.next())O=O.value,O!==1&&QmS.has(O)&&L.add(QmS.get(O));return L};
j1=function(A,L){L!==void 0&&(A.callerState=L);return A};
maZ=function(A){switch(A){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
yYS=function(A){return new fnM(A,new In7(A))};
WCS=function(A,L){L=L===void 0?!1:L;var O=document.createElement("div");A&&(O.style.transform="scaleX(-1)");O.style.backgroundColor=L?"rgba(138,180,248,.24)":"#e8f0fe";O.style.height="4px";O.style.overflow="hidden";O.style.position="absolute";O.style.top="0";O.style.width="100%";O.style.zIndex="1500";O.setAttribute("aria-label","Loading");O.setAttribute("aria-live","polite");A=document.createElement("style");A.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  }";
O.appendChild(A);A=ZY7();A.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";A.style.left="-145.166611%";var X=jmM(L);X.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";A.appendChild(X);O.appendChild(A);A=ZY7();A.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";A.style.left="-54.888891%";L=jmM(L);L.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
A.appendChild(L);O.appendChild(A);return O};
ZY7=function(){var A=document.createElement("div");A.style.height="100%";A.style.position="absolute";A.style.transformOrigin="top left";A.style.width="100%";return A};
jmM=function(A){var L=document.createElement("span");L.style.borderTop=A?"4px solid #669df6":"4px solid #4285f4";L.style.display="inline-block";L.style.position="absolute";L.style.width="100%";return L};
HYJ=function(A){return A==null?void 0:_.SBV(A).valueOf()};
$aB=function(A){var L=document.body,O=!1,X=function(){O||(O=!0,zDX(x,J),setTimeout(function(){L.removeChild(J);L.removeChild(x)},150))},x=BhM(A,getComputedStyle(L).direction==="rtl",X),J=MMB(X);
zDX(x,J);L.appendChild(J);L.appendChild(x);window.requestAnimationFrame(function(){J.style.opacity="1";x.style.opacity="1";x.style.transform="translate(-50%, -50%) scale(1)";x.children[0].focus()})};
BhM=function(A,L,O){var X=document.createElement("div");X.style.position="fixed";X.style.alignItems="center";X.style.backgroundColor=A?"rgb(32, 33, 36)":"white";X.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";X.style.display="flex";X.style.flexDirection="column";X.style.justifyContent="center";X.style.left="50%";X.style.top="50%";X.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";X.style.zIndex="2002";document.body.clientWidth>=
660?(X.style.borderRadius="8px",X.style.minHeight="220px",X.style.maxHeight="90%",X.style.maxWidth="90%",X.style.minWidth="540px"):(X.style.height="100%",X.style.width="100%");X.setAttribute("aria-label","Error");X.setAttribute("aria-modal","true");X.setAttribute("role","alertdialog");X.addEventListener("keydown",function(J){J.key==="Escape"&&O()});
L=anQ(A,L,O);X.appendChild(k1k(L));X.appendChild(L);var x=document.createElement("img");x.src=A?"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";x.style.height="72px";x.style.width="72px";x.style.color="#9aa0a6";x.setAttribute("alt","");X.appendChild(x);x=document.createElement("h1");x.textContent="Something went wrong.  Try again.";
x.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";x.style.lineHeight="24px";x.style.fontSize="16px";x.style.textAlign="center";x.style.letterSpacing="0.1px";x.style.color=A?"rgb(232,234,237)":"#3c4043";X.appendChild(x);X.appendChild(k1k(L));return X};
anQ=function(A,L,O){var X=document.createElement("button");X.style.backgroundColor="transparent";X.style.border="none";X.style.borderRadius="50%";X.style.cursor="pointer";X.style.outline="none";X.style.padding="12px";X.setAttribute("aria-label","Close dialog");X.style.position="absolute";X.style.top="0";L?X.style.right="0":X.style.left="0";X.addEventListener("focus",function(){X.style.backgroundColor=A?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
X.addEventListener("blur",function(){X.style.backgroundColor="transparent"});
X.addEventListener("mouseenter",function(){X.style.backgroundColor=A?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
X.addEventListener("mouseleave",function(){X.style.backgroundColor="transparent"});
X.addEventListener("click",O);X.addEventListener("keydown",function(x){x.key!=="Enter"&&x.key!=="Space"||O()});
L=document.createElement("img");L.src=A?"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";L.style.display="block";L.style.height="24px";L.style.width="24px";L.setAttribute("alt","");X.appendChild(L);return X};
k1k=function(A){var L=document.createElement("div");L.setAttribute("tabindex","0");L.setAttribute("aria-hidden","true");L.addEventListener("focus",function(){return void A.focus()});
return L};
MMB=function(A){var L=document.createElement("div");L.style.backgroundColor="rgba(32,33,36,0.6)";L.style.bottom="0";L.style.left="0";L.style.position="fixed";L.style.right="0";L.style.top="0";L.style.transition=" opacity 150 ms linear";L.style.zIndex="2001";L.addEventListener("click",A);return L};
zDX=function(A,L){L.style.opacity="0";A.style.opacity="0";A.style.transform="translate(-50%, -50%) scale(0.8)"};
UaM=function(A,L){A.sandbox&&A.sandbox.add&&(A.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),A.sandbox.add("allow-downloads"));A.src=L};
Bd=function(A){vBX.call(this,A)};
Mc=function(A,L){L=L===void 0?!1:L;this.parsedImageUrl_=null;A instanceof oBB||(AiB==void 0&&(AiB=new LuS),A=AiB.parse(A.toString(),L));A=this.parsedImageUrl_=A;A.JSC$20499_parsedOptions_==void 0&&((L=A.getOptions())||(L=""),A.JSC$20499_parsedOptions_=(new O3S).parse(L));vBX.call(this,A.JSC$20499_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;A=this.parsedImageUrl_;L=A.uri_.JSC$11053_port_;this.JSC$20501_domain_=A.uri_.JSC$11053_domain_+(L?":"+L:"");this.JSC$20501_query_=
this.parsedImageUrl_.uri_.JSC$11053_queryData_.toString()};
XyZ=function(A){this.mode=4;this.data=A;this.parsedData=[];A=0;for(var L=this.data.length;A<L;A++){var O=[],X=this.data.charCodeAt(A);X>65536?(O[0]=240|(X&1835008)>>>18,O[1]=128|(X&258048)>>>12,O[2]=128|(X&4032)>>>6,O[3]=128|X&63):X>2048?(O[0]=224|(X&61440)>>>12,O[1]=128|(X&4032)>>>6,O[2]=128|X&63):X>128?(O[0]=192|(X&1984)>>>6,O[1]=128|X&63):O[0]=X;this.parsedData.push(O)}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))};
xTB=function(A){this.typeNumber=0;this.errorCorrectLevel=A===void 0?2:A;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
$2=function(A,L){if(A.length==void 0)throw Error("tk`"+A.length+"`"+L);for(var O=0;O<A.length&&A[O]==0;)O++;this.num=Array(A.length-O+L);for(L=0;L<A.length-O;L++)this.num[L]=A[L+O]};
sak=function(A,L){this.totalCount=A;this.dataCount=L};
JiX=function(){this.buffer=[];this.length=0};
PnS=function(){var A=!1;if(_.Ees()){A=_.n9();var L="";_.b9e()?(L=/Windows (?:NT|Phone) ([0-9.]+)/,L=(A=L.exec(A))?A[1]:"0.0"):_.lr()?(L=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,L=(A=L.exec(A))&&A[1].replace(/_/g,".")):_.tDP()?(L=/Mac OS X ([0-9_.]+)/,L=(A=L.exec(A))?A[1].replace(/_/g,"."):"10"):_.V_(_.n9(),"KaiOS")?(L=/(?:KaiOS)\/(\S+)/i,L=(A=L.exec(A))&&A[1]):_.Ees()?(L=/Android\s+([^\);]+)(\)|;)/,L=(A=L.exec(A))&&A[1]):_.hP_()&&(L=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,L=(A=L.exec(A))&&A[1]);A=
L||""}return A};
DTX=function(A,L){this.JSC$20524__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(L)for(var O in L)this.JSC$20524__htOption[O]=L[O];this.JSC$20524__htOption.useSVG&&(dTJ=YPS);this.JSC$20524__android=PnS();this.JSC$20524__el=A;this._oQRCode=null;this._oDrawing=new dTJ(this.JSC$20524__el,this.JSC$20524__htOption);this.JSC$20524__htOption.text&&(A=this.JSC$20524__htOption.text,this._oQRCode=new xTB(this.JSC$20524__htOption.correctLevel),uZn(this._oQRCode,
A),L=this._oQRCode,TM7(L,!1,VQX(L)),this.JSC$20524__el.title=A,this._oDrawing.draw(this._oQRCode),this.makeImage())};
ecM=function(A,L,O,X,x){A.save();var J=new Path2D;J.roundRect(L,O,X*7,X*7,X*2);J.roundRect(L+X,O+X,X*5,X*5,X*1.3);J.roundRect(L+2*X,O+2*X,X*3,X*3,X);A.clip(J,"evenodd");A.fillStyle=x;A.fillRect(0,0,A.canvas.width,A.canvas.height);A.restore()};
aR=function(A,L){if(typeof A!=="function")throw Error("wk");return _.Ou.setTimeout(function(){A()},L)};
k2=function(){};
ncM=function(A,L,O,X,x){(new k2).debug("TestLoadImageWithRetries: "+x);if(X==0)O(!1);else{var J=x||0;X--;EcS(A,L,function(Y){Y?O(!0):_.Ou.setTimeout(function(){ncM(A,L,O,X,J)},J)})}};
EcS=function(A,L,O){var X=new k2;X.debug("TestLoadImage: loading "+A);var x=new Image;x.onload=function(){try{X.debug("TestLoadImage: loaded"),tQk(x),O(!0)}catch(J){}};
x.onerror=function(){try{X.debug("TestLoadImage: error"),tQk(x),O(!1)}catch(J){}};
x.onabort=function(){try{X.debug("TestLoadImage: abort"),tQk(x),O(!1)}catch(J){}};
x.ontimeout=function(){try{X.debug("TestLoadImage: timeout"),tQk(x),O(!1)}catch(J){}};
_.Ou.setTimeout(function(){if(x.ontimeout)x.ontimeout()},L);
x.src=A};
tQk=function(A){A.onload=null;A.onerror=null;A.onabort=null;A.ontimeout=null};
b3S=function(){this.front_=[];this.back_=[]};
hcn=function(A,L){_.p$.call(this);this.delay_=new _.NY(this.JSC$20650_onTick_,0,this);_.VI(this,this.delay_);this.JSC$20648_interval_=5E3;this.nextTickTime_=0;if(typeof A==="function")L&&(A=(0,_.is)(A,L));else if(A&&typeof A.handleEvent==="function")A=(0,_.is)(A.handleEvent,A);else throw Error("ya");this.JSC$20650_listener_=A};
UE=function(A,L,O,X,x,J,Y,T,V,E,n,t,b,S){O=O===void 0?!1:O;X=X===void 0?function(){return""}:X;
x=x===void 0?!1:x;J=J===void 0?!1:J;Y=Y===void 0?!1:Y;T=T===void 0?function(){return _.DQ({})}:T;
V=V===void 0?!1:V;n=n===void 0?!1:n;t=t===void 0?!1:t;b=b===void 0?!1:b;S=S===void 0?!1:S;this.JSC$20651_pathPrefix_=A;this.defaultQueryParams_=L;this.pubsub_=new _.tj;this.reconnectTimer_=new hcn(this.safeReconnect_,this);this.JSC$20651_channel_=null;this.JSC$20651_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$20651_pendingMessages_=[];this.enableAsyncTest_=O;this.JSC$20651_getXsrfToken_=X;this.useAsyncBrowserChannelHandler_=J;this.getAuthorizationHeader_=
T;this.getAuthorizationHeaderSync_=E;this.enableCachedUpdateAuthorizationHeader_=Y;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.DQ();this.enableLoungeTokenRefresh_=x;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=V;this.disableMdxAuthForNonPlaybackMessages_=n;this.disableMdxAuthForAdMessages_=t;this.enableMdxAuthForConnectionOnly_=b;this.disableMdxAuthForShortsMessages_=S;this.JSC$20651_channelOpenedCounter=new SPS;this.JSC$20651_channelClosedCounter=new qPQ;this.channelMessageSentCounter=
new gcJ;this.JSC$20651_channelMessageReceivedCounter=new wyM;this.JSC$20651_channelErrorCounter=new pyJ;this.pendingMapsOnClosedCounter=new i3X;this.undeliveredMapsOnClosedCounter=new NMZ};
vd=function(A){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;A=A||document.location.href;var L=Number(_.Us(A)[4]||null)||"";L&&(this.port=":"+L);this.domain=_.vY(A)||"";A=_.n9();A.search("MSIE")>=0&&_.Eu(A.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
oR=function(A){A=A||{};this.name=A.name||"";this.id=A.id||A.screenId||"";this.token=A.token||A.loungeToken||"";this.uuid=A.uuid||A.dialId||"";this.idType=A.screenIdType||"normal"};
rin=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(A){var L=Math.random()*16|0;return(A=="x"?L:L&3|8).toString(16)})};
KuM=function(A){return _.cT(A,function(L){return{key:L.id,name:L.name}})};
GmM=function(A,L){return _.Fp(A,function(O){return O||L?!O!=!L?!1:O.id==L.id:!0})};
La=function(A,L){return _.Fp(A,function(O){return Ab(O,L)})};
Rck=function(){var A=l9Q(),L=ciZ();if(CnQ()){var O=A,X=_.KMu(O,L);X<0&&_.i9r(O,-(X+1),0,L)}A=FuS(A);if(A.length==0)try{_.PND("remote_sid")}catch(x){}else try{_.Sh("remote_sid",A.join(","),-1)}catch(x){}};
l9Q=function(){var A=_.wf("yt-remote-connected-devices")||[];A.sort(_.rsu);return A};
FuS=function(A){if(A.length==0)return[];var L=A[0].indexOf("#"),O=L==-1?A[0]:A[0].substring(0,L);return _.cT(A,function(X,x){return x==0?X:X.substring(O.length)})};
QaJ=function(A){_.gf("yt-remote-connected-devices",A,86400)};
ciZ=function(){if(mT7)return mT7;var A=_.wf("yt-remote-device-id");A||(A=rin(),_.gf("yt-remote-device-id",A,31536E3));for(var L=l9Q(),O=1,X=A;_.Id(L,X);)O++,X=A+"#"+O;return mT7=X};
f9k=function(){return _.wf("yt-remote-session-browser-channel")};
CnQ=function(){return _.wf("yt-remote-session-screen-id")};
Z3k=function(A){A.length>5&&(A=A.slice(A.length-5));var L=_.cT(I9X(),function(X){return X.loungeToken}),O=_.cT(A,function(X){return X.loungeToken});
_.OPe(O,function(X){return!_.Id(L,X)})&&yiJ();
_.gf("yt-remote-local-screens",A,31536E3)};
I9X=function(){return _.wf("yt-remote-local-screens")||[]};
yiJ=function(){_.gf("yt-remote-lounge-token-expiration",!0,86400)};
OK=function(A){A||(_.pA("yt-remote-session-screen-id"),_.pA("yt-remote-session-video-id"));Rck();A=l9Q();_.y_(A,ciZ());QaJ(A)};
WuX=function(){jaS();return Xk?!!Xk.get("yt-remote-use-staging-server"):!1};
jaS=function(){if(!Xk){var A=_.nBd();A&&(Xk=new _.iK(A))}};
MQz=function(A,L,O,X,x){O=O===void 0?function(){return""}:O;
var J=function(){return new UE(x_(A,"/bc"),L,!1,O,X)};
return _.h("enable_mdx_web_channel_desktop")?new H37(function(){return new zcS(x_(A,"/wc"),L,O)}):new BMX(J,x)};
UTz=function(){var A=$Tn;a9B();sK.push(A);kmM()};
Jb=function(A,L){a9B();var O=vc$(A,String(L));sK.length==0?ocZ(O):(kmM(),_.BY(sK,function(X){X(O)}))};
PU=function(A){Jb("CP",A)};
a9B=function(){sK||(sK=_.WY("yt.mdx.remote.debug.handlers_")||[],_.oZ("yt.mdx.remote.debug.handlers_",sK))};
ocZ=function(A){var L=(dg+1)%50;dg=L;ATX[L]=A;LiZ||(LiZ=L==49)};
kmM=function(){var A=sK;if(ATX[0]){var L=LiZ?dg:-1,O={};do O={record$jscomp$15:void 0},L=(L+1)%50,O.record$jscomp$15=ATX[L],_.BY(A,function(X){return function(x){x(X.record$jscomp$15)}}(O));
while(L!=dg);ATX=Array(50);dg=-1;LiZ=!1}};
vc$=function(A,L){var O=(Date.now()-O47)/1E3;O.toFixed&&(O=O.toFixed(3));var X=[];X.push("[",O+"s","] ");X.push("[","yt.mdx.remote","] ");X.push(A+": "+L,"\n");return X.join("")};
Y_=function(A){_.bf.call(this);this.JSC$20675_logName_=A;this.screens=[]};
T3=function(A){Y_.call(this,"LocalScreenService");this.JSC$20682_http_=A;this.loungeTokenRefreshTimer_=NaN;uq(this);this.info("Initializing with "+XDQ(this.screens))};
Vf=function(A,L){L=L===void 0?!1:L;Y_.call(this,"ScreenService");this.JSC$20688_http_=A;this.disableAutomaticScreenCache_=L;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};xR$(this)};
D6=function(A,L,O){_.bf.call(this);this.JSC$20692_logName_=O;this.JSC$20692_screenService_=A;this.receiver_=L;this.screen_=null};
SbS=function(A,L,O){O.disableCastApi?eU("Cannot initialize because disabled by Mdx config."):sJM()?JTJ(A,O)&&(Py7(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?dRM(L):(window.__onGCastApiAvailable=function(X,x){X?dRM(L):(EK("Failed to load cast API: "+x),YbX(!1),Py7(!1),_.pA("yt-remote-cast-available"),_.pA("yt-remote-cast-receiver"),uSJ(),L(!1))},O.loadCastApiSetupScript?_.Zx(TdM):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
VqS()>=60&&DRX():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?eBJ():VqS()>=89?EJS():(nJk(),tqJ(b4J.map(hB$))))):eU("Cannot initialize because not running Chrome")};
uSJ=function(){eU("dispose");var A=na();A&&A.dispose();_.oZ("yt.mdx.remote.cloudview.instance_",null);qb7(!1);_.$bJ(gJS);gJS.length=0};
wDQ=function(){return!!_.wf("yt-remote-cast-installed")};
pDM=function(){var A=_.wf("yt-remote-cast-receiver");return A?A.friendlyName:null};
i4Z=function(){eU("clearCurrentReceiver");_.pA("yt-remote-cast-receiver")};
Nd$=function(){return wDQ()?na()?na().getCastSession():(EK("getCastSelector: Cast is not initialized."),null):(EK("getCastSelector: Cast API is not installed!"),null)};
KiM=function(A,L){rTM()?na().setConnectedScreenStatus(A,L):EK("setConnectedScreenStatus called before ready.")};
sJM=function(){var A=_.n9().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.SX||A};
JTJ=function(A,L){var O=!1;na()||(A=new tb(A,L),A.subscribe("yt-remote-cast2-availability-change",function(X){_.gf("yt-remote-cast-available",X);pI("yt-remote-cast2-availability-change",X)}),A.subscribe("yt-remote-cast2-receiver-selected",function(X){eU("onReceiverSelected: "+X.friendlyName);
_.gf("yt-remote-cast-receiver",X);pI("yt-remote-cast2-receiver-selected",X)}),A.subscribe("yt-remote-cast2-receiver-resumed",function(X){eU("onReceiverResumed: "+X.friendlyName);
_.gf("yt-remote-cast-receiver",X);pI("yt-remote-cast2-receiver-resumed",X)}),A.subscribe("yt-remote-cast2-session-change",function(X){eU("onSessionChange: "+GKJ(X));
X||_.pA("yt-remote-cast-receiver");pI("yt-remote-cast2-session-change",X)}),_.oZ("yt.mdx.remote.cloudview.instance_",A),O=!0);
eU("cloudview.createSingleton_: "+O);return O};
na=function(){return _.WY("yt.mdx.remote.cloudview.instance_")};
dRM=function(A){YbX(!0);Py7(!1);na().init(!1,function(L){L?(qb7(!0),_.aXd("yt-remote-cast2-api-ready")):(EK("Failed to initialize cast API."),YbX(!1),_.pA("yt-remote-cast-available"),_.pA("yt-remote-cast-receiver"),uSJ());A(L)})};
eU=function(A){Jb("cloudview",A)};
EK=function(A){Jb("cloudview",A)};
YbX=function(A){eU("setCastInstalled_ "+A);_.gf("yt-remote-cast-installed",A)};
rTM=function(){return!!_.WY("yt.mdx.remote.cloudview.apiReady_")};
qb7=function(A){eU("setApiReady_ "+A);_.oZ("yt.mdx.remote.cloudview.apiReady_",A)};
Py7=function(A){_.oZ("yt.mdx.remote.cloudview.initializing_",A)};
bq=function(A){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(A)};
lBB=function(){var A,L;return _.u(function(O){if(O.nextAddress==1)return(_.ctJ()||_.h("use_new_nwl"))&&_.rtD().isNetworkAvailable()?O.yield(_.A4(),2):O.return();if(O.nextAddress!=3)return(A=O.yieldResult)?O.yield(unZ(A),3):O.return();L=O.yieldResult;if(!L.length)return O.return();L.forEach(function(X){var x={timestamp:X.timestamp};X=X.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:X.appShellAssetLoadReport,options:x}:X.clientError?{payloadName:"clientError",payload:X.clientError,
options:x}:void 0;X&&_.lg(X.payloadName,X.payload,X.options)});
L.length===100&&_.c1.addLowPriorityJob(lBB);_.qo(O)})};
cTX=function(A){if(A.playerResponse){if(A=A.playerResponse,A.messages&&A.messages.length>0&&(A=A.messages.find(function(L){return!(!L||!L.mealbarPromoRenderer)}))&&A.mealbarPromoRenderer)return A.mealbarPromoRenderer}else if(A.response&&(A=A.response)&&A.overlay&&A.overlay.mealbarPromoRenderer)return A.overlay.mealbarPromoRenderer};
CyX=function(A){if(A.response){var L=A.response;if(L&&L.overlay&&L.overlay.tooltipRenderer)return L.overlay.tooltipRenderer}if(A.playerResponse&&(A=A.playerResponse,A.messages&&A.messages.length>0&&(A=A.messages.find(function(O){return!(!O||!O.tooltipRenderer)}))&&A.tooltipRenderer))return A.tooltipRenderer};
RBn=function(A){if(!FiM&&(A=A||_.ms("ZWIEBACK_PING_URLS"))&&A.length){FiM=!0;for(var L=0;L<A.length;L++)_.jY(A[L])}};
mRB=function(A){if(_.lW.get(_.ms("PLAYER_VARS",{}),"privembed",!1)!="1"){A&&LUB();try{QJz().then(function(){},function(){}),_.TA(mRB,18E5)}catch(L){_.IO(L)}}};
fBZ=function(){var A=_.qG(),L=A.getFlag(119),O=window.devicePixelRatio>1;document.body&&_.vb(document.body,"exp-invert-logo")&&(O&&!_.vb(document.body,"inverted-hdpi")?_.x4(document.body,"inverted-hdpi"):!O&&_.vb(document.body,"inverted-hdpi")&&_.OC(document.body,"inverted-hdpi"));L!=O&&(_.gQ(0,119,O),A.save())};
IBQ=function(A){return A.filter(function(L){return"ypcGetCartEndpoint"in L||"ypcFixInstrumentEndpoint"in L})};
yTX=function(A){return A.filter(function(L){return!_.q(L,_.J3c)})};
jJX=function(A,L){var O,X,x,J,Y,T,V;_.u(function(E){switch(E.nextAddress){case 1:O=_.QH.getInstance();X=_.S5.instance;x=_.UC.instance;if(!x)return Z4J(A,X,L),E.return();_.e4(E,2);A.onLoadingCommand&&X.resolveCommand(A.onLoadingCommand);return E.yield(O.getCurrentPositionFromGeolocation(),4);case 4:J=E.yieldResult;if(!A.resolveLocationCommand){E.jumpTo(5);break}Y=O.createLocationInfo(J);return E.yield(_.oQ(x,A.resolveLocationCommand,{locationInfo:Y}),6);case 6:T=E.yieldResult;if(!T||"error"in T&&T.error||
T.errorMetadata)return Z4J(A,X,L),E.return();var n;if(T==null?0:(n=T.onResponseReceivedActions)==null?0:n.length){n=_.d(T.onResponseReceivedActions);for(var t=n.next();!t.done;t=n.next())X.resolveCommand(t.value)}(_.q(A.onSuccessCommand,_.$O)||_.q(A.onSuccessCommand,_.gM))&&_.P4(L.hostElement,"yt-navigate",{endpoint:A.onSuccessCommand,reload:!0});case 5:_.zA(E,0);break;case 2:V=_.S4(E);if(V instanceof GeolocationPositionError&&V.code===GeolocationPositionError.PERMISSION_DENIED)return A.onDeniedCommand&&
X.resolveCommand(A.onDeniedCommand),E.return();Z4J(A,X,L);_.qo(E)}})};
Z4J=function(A,L,O){A.onFailureCommand&&(L.resolveCommand(A.onFailureCommand),_.dQ(O.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
H4J=function(A,L){var O=_.q(A,_.Vrl);if(O&&L){A=O.videoIds||[O.videoId];var X;L=(X=_.P4(L,"yt-lockup-requested",{videoIds:A}).detail)==null?void 0:X.returnValue;var x;O.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?x=L?L:A.map(function(J){return{videoId:J,navigationEndpoint:O.videoCommand}}):L&&(x=L);
x&&(X=x.map(function(J){var Y=Object,T=Y.assign;var V=J.navigationEndpoint;if(!_.q(V,_.rM)){var E=_.q(V,_.$O);if(E){if(delete E.index,delete E.playlistId,E=_.q(V==null?void 0:V.commandMetadata,_.LM),E==null?0:E.url){var n=E.url;n=_.Az(n,"list");n=_.Az(n,"index");E.url=n}}else V=void 0}return T.call(Y,{},J,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:V})}),WiX(X,O))}};
zBJ=function(A){var L=_.Aa();if(A=_.q(A,_.DIN))A.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&L.clearQueue(),A.closeMiniplayer&&_.X5().resolve(_.z_).close(!0)};
MqS=function(A){BdJ(_.Aa(),A)};
$Rk=function(A){var L;(A=(L=_.q(A,_.u_6))==null?void 0:L.setVideoIds)&&A.forEach(function(O){_.nmL(_.Aa(),O)})};
kKJ=function(A){aB$(_.Aa(),A)};
URX=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(A){return!1}};
vJ7=function(){var A,L;return(L=(A=window).matchMedia)==null?void 0:L.call(A,"(prefers-reduced-motion: reduce)").matches};
AtS=function(A){var L=_.X5().resolve(_.Ot(_.iY));L&&oJZ(L,A)};
LeZ=function(A,L,O){return{horizontalAlignment:A.x+O.width/2<L.width/2?"west":"east",verticalAlignment:A.y+O.height/2<L.height/2?"north":"south"}};
xbM=function(A,L,O,X,x){x=x===void 0?new _.Cm(0,0):x;return OTn(XR$(A,L,O,X),x)};
XR$=function(A,L,O,X){return new _.Cm(A==="west"?16:O.width-X.width-16,L==="north"?16:O.height-X.height-16)};
syB=function(A,L){var O=0;A&&(O+=76);L&&(O+=285);return O};
JtM=function(A){var L=["h","m","s"],O=_.Ze(L);O.reverse();var X={};A=(A.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(Y){var T=(Y.match(/[hms]/)||[""])[0];return T?(X[T]=parseInt(Y.match(/\d+/)[0],10),!1):!0});
for(A.reverse();A.length&&O.length;){var x=O.shift();x in X||(X[x]=parseInt(A.shift(),10))}if(A.length||X.s>59||X.m>59||X.h>9)return null;var J="";L.forEach(function(Y){X[Y]&&(J+=""+X[Y]+Y)});
return J||null};
PVz=function(A){A=A.data;return _.D("yt-profile-badge-view-model",{class:"profile-badge-view-model-wiz"},_.D("div",{class:"profile-badge-view-model-wiz__badge-icon-container"},_.D(_.XV,{data:{thumbnails:[{url:A.badgeIconUrl}]},alt:"",targetWidth:36,targetHeight:36})),_.D("div",{class:"profile-badge-view-model-wiz__content"},_.D("div",{class:"profile-badge-view-model-wiz__badge-description"},A.badgeDesc),A.badgeSubtitle?_.D("div",{class:"profile-badge-view-model-wiz__badge-subtitle"},A.badgeSubtitle):
null))};
db$=function(A){A=A.data;var L=_.av("yt-comment-interaction-view-model");Ff7(L,A.rendererContext);return _.D("yt-comment-interaction-view-model",{el:L,class:"yt-comment-interaction-view-model-wiz"},_.D("div",{class:"yt-comment-interaction-view-model-wiz__frame",role:"button","aria-label":A.onTapA11yLabel,"on:keydown":_.Ucs(),tabindex:0},_.D("div",{class:"yt-comment-interaction-view-model-wiz__header"},_.D("div",{class:"yt-comment-interaction-view-model-wiz__video-title"},A.headerPrefix,' "',A.videoTitle),
_.D("div",{class:"yt-comment-interaction-view-model-wiz__video-title-quote"},'"')),_.D("div",{class:"yt-comment-interaction-view-model-wiz__content"},_.D("div",{class:"yt-comment-interaction-view-model-wiz__comment-content"},A.commentContent),_.D("div",{class:"yt-comment-interaction-view-model-wiz__chevron"},_.D(_.XV,{data:{thumbnails:[{url:A.chevronUrl}]},alt:"",targetWidth:18,targetHeight:18})))))};
uIM=function(A){A=A.data;return _.D("yt-shared-subscription-view-model",{class:"yt-shared-subscription-view-model-wiz"},YYB(A.avatar),_.D("div",{class:"yt-shared-subscription-view-model-wiz__channel-name"},A.channelName))};
TWX=function(A){A=A.data;var L;return _.D("div",{class:"yt-profile-info-view-model-wiz__activity"},_.D("div",{class:"yt-profile-info-view-model-wiz__header"},_.D("div",{class:"yt-profile-info-view-model-wiz__section-title"},A.commentsInteractionTitle)),(L=A.comments)==null?void 0:L.map(function(O){return _.D("div",{class:"yt-profile-info-view-model-wiz__activity"},hb(O))}))};
V5M=function(A){A=A.data;var L=_.BR({elementsCommand:A.subscriptionsAccessButtonCommand}),O=_.av("a");_.IoO(O,_.HR(A.subscriptionsAccessButtonCommand));var X;return _.D("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.D("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.D("a",{el:O,"on:click":_.py(function(x){if(L==null?0:L.onclick)L.onclick(x);return!1}),
class:"yt-profile-info-view-model-wiz__another-header"},_.D("div",{class:"yt-profile-info-view-model-wiz__section-title-modern"},A.sharedSubscriptionsTitle),_.D("div",null,hb(A.subscriptionsAccessButton)))),_.D("div",{class:"yt-profile-info-view-model-wiz__subs"},(X=A.sharedSubscriptions)==null?void 0:X.slice(0,5).map(function(x){return _.D("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",hb(x))})))};
DbM=function(A){A=A.data;var L;return _.D("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.D("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.D("h2",{class:"yt-profile-info-view-model-wiz__section-title"},A.sharedSubscriptionsTitle)),_.D("div",{class:"yt-profile-info-view-model-wiz__subs"},(L=A.sharedSubscriptions)==null?void 0:L.slice(0,5).map(function(O){return _.D("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",hb(O))})))};
ekJ=function(A){A=A.data;return _.D("div",{class:"yt-profile-info-view-model-wiz__activity"},[A.profileBadgeInfoYtWide,A.profileBadgeInfoChannelWide].map(function(L){var O,X,x,J,Y;return L?_.D(_.Xs,null,_.D("div",{class:"yt-profile-info-view-model-wiz__header"},_.D("div",{class:"yt-profile-info-view-model-wiz__section-title"},L==null?void 0:L.profileSectionTitle),_.D("div",{class:"yt-profile-info-view-model-wiz__section-desc"},_.D("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},L==
null?void 0:(O=L.commentBadge)==null?void 0:O.commentDesc),(L==null?0:(X=L.commentBadge)==null?0:X.blackHeartDesc)?_.D("div",{class:"yt-profile-info-view-model-wiz__section-divider"},"\u2022"):null,_.D("div",{class:"yt-profile-info-view-model-wiz__section-heart-icon"},_.D(_.XV,{data:{thumbnails:[{url:L==null?void 0:(x=L.commentBadge)==null?void 0:x.blackHeartIconUrl}]},alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.D("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},
L==null?void 0:(J=L.commentBadge)==null?void 0:J.blackHeartDesc))),_.D("div",{class:"yt-profile-info-view-model-wiz__badge"},L==null?void 0:(Y=L.badges)==null?void 0:Y.map(function(T){return _.D(PVz,{data:T})}))):null}))};
EaJ=function(A){A=A.data;return _.D("yt-profile-info-view-model",{class:"yt-profile-info-view-model-wiz"},_.D(ekJ,{data:A}),A.videosHorizontalShelf?_.D("div",{class:"yt-profile-info-view-model-wiz__videoShelfContainer"},hb(A.videosHorizontalShelf)):null,A.comments?_.D(TWX,{data:A}):null,A.sharedSubscriptionsTitle?A.subscriptionsAccessButtonCommand?_.D(V5M,{data:A}):_.D(DbM,{data:A}):null)};
t5Q=function(A){A=A.data;if(A){var L=A.profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD";L=naM(A.profileIdentityInfo,{profileIdentityInfoViewModel:{hideDivider:L,isChannelInfoCard:L}})}else L=void 0;A=A?naM(A.profileInfo):void 0;return _.D("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},L,A)};
bTz=function(A,L){var O=_.mSN(L,{},A,!0);return new Promise(function(X,x){O.listenOnce("n",function(){x(Error("hl`"+O.JSC$31084_getErrorDescription()))});
O.listenOnce("l",function(){var J=O.getResponseCode();if(J!==200)x(Error("il`"+L+"`"+A.type+"`"+A.size+"`"+J));else try{X(JSON.parse(O.getResponseText()).encryptedBlobId)}catch(Y){x(Y)}});
O.run()})};
hkX=function(A){return A.substring(A.indexOf(":")+1,A.indexOf(";"))};
SYz=function(A){return new Promise(function(L,O){var X=new FileReader;X.onloadend=function(){try{var x=new Uint8Array(X.result);x.length<8&&O(void 0);var J=x.subarray(0,8);x="";for(var Y=0;Y<J.length;Y++)x+=("0"+J[Y].toString(16)).substr(-2);x.startsWith("ffd8ff")?L("image/jpeg"):x.startsWith("47494638")?L("image/gif"):x.startsWith("89504e470d0a1a0a")?L("image/png"):x.startsWith("424d")?L("image/bmp"):L(void 0)}catch(T){O(T)}};
X.onerror=O;X.readAsArrayBuffer(A)})};
qY$=function(A){return new Promise(function(L,O){var X=new Image;X.crossOrigin="anonymous";X.onload=function(){var x=document.createElement("canvas");x.width=X.naturalWidth;x.height=X.naturalHeight;var J=x.getContext("2d");if(!J)throw Error("jl");J.drawImage(X,0,0);J=hkX(A);x.toBlob(function(Y){Y?L(Y):O()},J)};
X.src=A})};
wRS=function(A,L){var O;if(((O=_.q(A,_.rM))==null?void 0:O.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var X;_.P4((X=L.hostElement)!=null?X:L,"yt-shorts-reset");_.SWL(_.X5().resolve(_.l6),A).then(function(J){gaX(J,L,A)})}else{var x;
_.TZ((x=L.hostElement)!=null?x:L,[A]).then(function(J){J&&gaX(J.data,L,A)})}};
gaX=function(A,L,O){if(A){var X=_.q(A.replacementEndpoint,_.rM);if(X){A.sequenceContinuation&&(X.sequenceParams=A.sequenceContinuation);var x;_.P4((x=L.hostElement)!=null?x:L,"yt-navigate",{endpoint:A.replacementEndpoint})}else if((A==null?void 0:A.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(A==null?0:A.watchStatus)&&_.q(A.watchStatus,_.$zV)){var J;_.P4((J=L.hostElement)!=null?J:L,"yt-navigate",{endpoint:O})}}};
pRJ=function(A){var L=_.X5().resolve(_.al),O=RA$(L.getState())||"";L=_.m4J(L.getState())||"";O=O==="ytd-browse"&&L==="home";return _.h("web_guide_entry_enable_cache_for_non_home_pages")?(A=(A==null?void 0:A.navigationEndpoint)&&_.qT(A.navigationEndpoint)==="home",{disableCache:O&&A}):{disableCache:O}};
iTJ=function(A){if(!A)return!1;try{if(A.host&&A.host.tagName==="YT-FORMATTED-STRING"&&A.host.id==="contenteditable-textarea"||A.nodeType===Node.ELEMENT_NODE&&A.tagName==="YTD-COMMENT-INPUT")return!0}catch(L){return!1}return iTJ(A.parentNode)};
SU=function(A){return A?A.tagName==="A"&&A.href&&A.classList.contains("yt-simple-endpoint"):!1};
NWM=function(A){return A?A.tagName==="IMG"&&A.classList.contains("emoji"):!1};
rtZ=function(A,L,O){if(!A)return null;var X=SU(A);if(X&&O)return L=A.pathname.substring(A.pathname.indexOf("/channel/")+9),document.createTextNode("@"+L);if(X&&!O)return document.createTextNode("");if(NWM(A))return O=A.alt,A=A.dataset.emojiId,!A&&L&&(L=_.qw(L,O))&&L.isCustomEmoji&&(A=L.emojiId),A?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+A+">"):document.createTextNode(O);X=A.cloneNode(!1);for(var x=0;x<A.childNodes.length;++x){var J=rtZ(A.childNodes[x],L,O);J&&X.appendChild(J)}return X};
q4=function(A){return A?SU(A)?A:q4(A.lastChild):null};
Ke7=function(A){return A?SU(A)?A:Ke7(A.firstChild):null};
GiS=function(A){if(!A)return null;for(var L=A.previousSibling;L;)if(L.nodeType===Node.ELEMENT_NODE&&L.nodeName==="BR")L=L.previousSibling;else if(L.nodeType===Node.TEXT_NODE&&/\s+/.test(L.textContent))L=L.previousSibling;else break;(L=q4(L))?A=L:A=(A=A.parentNode)?q4(A.previousElementSibling):null;return A};
lXB=function(A){if(!A)return null;for(var L=A.nextSibling;L;)if(L.nodeType===Node.ELEMENT_NODE&&L.nodeName==="BR")L=L.nextSibling;else if(L.nodeType===Node.TEXT_NODE&&/\s+/.test(L.textContent))L=L.nextSibling;else break;return(L=Ke7(L))?L:lXB(A.parentNode)};
ctX=function(A){var L=_.w1(),O=L.JSC$12313_getStartNode();if(!iTJ(O.parentNode))return null;L=L.JSC$12313_getStartOffset();if(O.nodeType===Node.TEXT_NODE){var X=_.my(O,SU);if(X){if(A&&L===0||!A&&L===O.length)return X}else{if(A&&L===O.length)return!O||O.nodeName==="BR"||O.nextElementSibling&&_.pv(O.nextElementSibling,"display")==="block"?null:Ke7(O.nextElementSibling);if(!A&&L===0)return O?q4(O.previousElementSibling):null}}if(O.nodeType===Node.ELEMENT_NODE)if(A){if(0<=L&&L<O.childNodes.length)return Ke7(O.childNodes[L])}else if(0<
L&&L<=O.childNodes.length)return q4(O.childNodes[L-1]);return null};
CVX=function(A,L,O){if(!A)return null;if(A.nodeType===Node.TEXT_NODE)if(O){var X=GiS(A);if(X&&!/^\s+\S/.test(A.wholeText.substr(0,L)))return X}else if((X=lXB(A))&&!/\S\s+/.test(A.wholeText.substr(L,A.wholeText.length)))return X;return A.nodeType===Node.ELEMENT_NODE?O?GiS(A.childNodes[L]):lXB(A.childNodes[L]):CVX(A.parentNode,L,O)};
FeJ=function(A){if(A.hasChildNodes())switch(A.tagName){case "DIV":case "A":case "SPAN":var L="";for(A=A.firstChild;A;A=A.nextSibling)L+=FeJ(A);return L;default:return""}else switch(A.nodeType){case 3:return A.textContent;default:return""}};
RkX=function(A){A=A.data;return _.D("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.D("div",null,_.D(_.Xg,{text:A.title})),A.subtitle?_.D("div",{class:"ytd-menu-title-renderer__subtitle"},_.D(_.Xg,{text:A.subtitle})):null)};
QyZ=function(A){switch(A){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"}};
mbS=function(A){return A.map(function(L){return{settingsRadioOptionRenderer:{title:_.se(L.name),asideText:_.se(L.approximateSize),id:QyZ(L.format)}}})};
IXS=function(A){if(A&&A.length!==0)return A.filter(fXX()).map(function(L){return{settingsRadioOptionRenderer:{title:L.name,asideText:L.approximateSize,id:QyZ(L.formatType)}}})};
gg=function(A){if(A)return A.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
ytM=function(A,L){A=new Set(A!=null?A:[]);if(A.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(A.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(A.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(A.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(A.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(L)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
ZTZ=function(A){var L=A.indexOf("(");return L!==-1?A.substring(L+1,A.length-1):A};
_.WeS=function(A,L,O,X,x){O||(O=jyn);var J;(J=_.q(O.commandMetadata,_.LM))!=null&&J.url||(O=Error("ol`"+JSON.stringify(O)),_.C7(O),O=jyn);O=_.lW.unsafeClone(O);J=_.y$(_.q(O.commandMetadata,_.LM).url,"search_query",A);_.yI(location.href,"sv")==="1"&&(_.q(O,_.wM).params="EgOAAgE%3D",J=_.y$(J,"sv","1"));_.q(O,_.wM)&&(_.q(O,_.wM).query=A);J=J.replace(/%20/g,"+");_.q(O.commandMetadata,_.LM).url=J;x=_.h("desktop_enable_entity_suggest")?{entityMid:x}:{};_.X5().resolve(_.x$).resolveCommand(O,{form:{tempData:Object.assign({},
{gs_l:L,oq:X!=null?X:A},x)}})};
HTX=function(A){switch(A){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
BWM=function(A,L,O,X,x,J){var Y=_.lW.clone(zkZ);Y.locale=_.ms("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;Y.report={description:x||"<empty>"};x=_.ms("SBOX_SETTINGS",{});L=L.join(",");var T=Date.now();A={choice_cc:X,choice_id_cc:O,choices_sc:L,gl:x.REQUEST_DOMAIN,hl:x.REQUEST_LANGUAGE,query:A,time:T};J&&(A.choice_additional_comment_cc=J);_.WRH(Y,A)};
M5Q=function(A){var L=new Map;L.set("authuser",_.ms("SESSION_INDEX","0"));return _.PT(A,L)};
aX7=function(A){var L;return _.u(function(O){switch(O.nextAddress){case 1:if(!A||!$bX(A))return O.return(null);L=null;switch(_.ms("INNERTUBE_CLIENT_NAME")){case "WEB":return O.jumpTo(2);case "WEB_REMIX":L=A.getPlayer()}O.jumpTo(3);break;case 2:return O.yield(A.getPlayerPromise(),4);case 4:L=O.yieldResult;O.jumpTo(3);break;case 3:return O.return(L)}})};
$bX=function(A){return["ytd-player","ytmusic-player"].includes(String(A.tagName||"").toLowerCase())};
kiz=function(A){A=Math.round(A);return A%2?A-1:A};
Ub$=function(A){A=Math.round(A);return A%2===0?A-1:A};
vaX=function(A){var L,O,X;if(A=(L=A.createPlaylistDialogFormSchema)==null?void 0:(O=L.fieldSchemas)==null?void 0:(X=O.title)==null?void 0:X.validationSchema)for(L=[A.syncStep,A.asyncStep].filter(function(x){return x!==void 0}),L=_.d(L),O=L.next();!O.done;O=L.next()){O=O.value.rules;
if(!O)break;O=_.d(O);for(O=O.next();!O.done;O=O.next())return _.q(O.value,_.kDQ)}};
AFX=function(A){var L,O,X;if(A=(L=A.createPlaylistDialogFormSchema)==null?void 0:(O=L.fieldSchemas)==null?void 0:(X=O.visibility)==null?void 0:X.validationSchema)for(L=[A.syncStep,A.asyncStep].filter(function(x){return x!==void 0}),L=_.d(L),O=L.next();!O.done;O=L.next()){O=O.value.rules;
if(!O)break;O=_.d(O);for(X=O.next();!X.done;X=O.next())if(X=_.q(X.value,oaJ))return L=void 0,(L=X.translations)==null?void 0:L.visibilityNotValidErrorMessage}};
L4X=function(){var A,L;return(L=(A=_.X5().resolve(_.Ot(_.oy)))==null?void 0:A())!=null?L:!1};
OyX=function(A){var L=21;if(!A)return L;L+=A.headerTitle?27:0;L+=A.headerTitle&&A.hasHeaderActionHeader?4:0;return L+=A.headerTitle&&A.headerSubtitle?16:0};
XxJ=function(A){var L=0;if(!A)return L;L+=A.hasFooterPrimaryButton||A.hasFooterSecondaryButton?48:0;L+=A.footerTrailingLabel||A.footerLeadingLabel?30:0;return L+=A.hasFooterPrimaryButton||A.hasFooterSecondaryButton||!A.footerTrailingLabel&&!A.footerLeadingLabel?0:12};
xnM=function(A){var L=new _.tj,O=A;return{subscribe:function(X){L.subscribe("changed",X)},
dispatch:function(X,x){var J=O;X==="Touch Start"?O=Object.assign({},J,{isAnimating:!1,initialY:x.event.touches[0].clientY}):X==="Touch Move"?(X=Math.min(x.fullContentWrapperHeight,x.contentHeightMap[x.contentWrapperId]+OyX(x.header)-XxJ(x.footer)),O=Object.assign({},J,{currentY:Math.max(x.contentScrollable?-1*(J.initialY-24):0,x.event.touches[0].clientY-J.initialY),maxHeightForContentWrapper:Math.min(X,Math.max(0,(J.isFullScreen?X:x.contentWrapperHeight)-J.currentY))})):O=X==="Snap To Full Screen"?
Object.assign({},J,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:x.maxHeight}):X==="Snap To Neutral Position"?Object.assign({},J,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:x.maxHeight}):X==="Close Sheet"?Object.assign({},J,{isAnimating:!0,currentY:x.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:x.maxHeight}):J;L.publish("changed",O)}}};
sQS=function(A){return _.py(function(L){A(L);return!1})};
JFX=function(){_.X5().resolve(_.RW).closeSheet()};
PB$=function(A){var L,O,X,x,J,Y,T,V,E,n,t;return{headerTitle:(L=A.headerTitle)==null?void 0:L.call(A),headerSubtitle:(O=A.headerSubtitle)==null?void 0:O.call(A),headerActionHeader:A.headerActionHeader,footerPrimaryButton:A.footerPrimaryButton,footerSecondaryButton:A.footerSecondaryButton,footerButtonType:(X=A.footerButtonType)==null?void 0:X.call(A),footerLeadingLabel:(x=A.footerLeadingLabel)==null?void 0:x.call(A),footerTrailingLabel:(J=A.footerTrailingLabel)==null?void 0:J.call(A),shouldShowIcons:(Y=
A.shouldShowIcons)==null?void 0:Y.call(A),skipContentClick:(T=A.skipContentClick)==null?void 0:T.call(A),additionalClassName:(V=A.additionalClassName)==null?void 0:V.call(A),onClosedCallback:A.onClosedCallback,focusOnClose:(E=A.focusOnClose)==null?void 0:E.call(A),isDisabled:(n=A.isDisabled)==null?void 0:n.call(A),disabledCommand:(t=A.disabledCommand)==null?void 0:t.call(A),headerFn:A.headerFn,contentFn:A.contentFn,footerFn:A.footerFn,hasHeaderFn:A.hasHeaderFn(),hasContentFn:A.hasContentFn(),hasFooterFn:A.hasFooterFn(),
hasFooterPrimaryButton:A.hasFooterPrimaryButton(),hasFooterSecondaryButton:A.hasFooterSecondaryButton(),hasHeaderActionHeader:A.hasHeaderActionHeader()}};
dn$=function(A){switch(A){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""}};
YCz=function(A){switch(A){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""}};
uVB=function(A){switch(A){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""}};
Tlk=function(A,L,O){L.forEach(function(X){_.wm(_.X5().resolve(_.Rr),X)});
_.dQ(A,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",O])};
E4n=function(A,L,O,X){var x=_.q(O,_.ot).commandLifeCycleConfig;x&&x.onStartCommand&&_.VN(A,[x.onStartCommand],L);_.aG(L);var J=_.UC.instance;J&&_.vx(J,O)?_.oQ(J,O,X).then(function(Y){if(!Y||(Y==null?0:Y.error))return Y=_.q(O,_.ot).serializedTransactionFlowLoggingParams,_.kf(L),_.Ry(new wg("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",Y));_.kf(L);return{data:Y}}).then(function(Y){_.kf(L);
VtQ(Y.data);var T=Y.data.command;T&&_.VN(A,[T],L);T=DnS(O,Y.data);if(!T){var V=Y.data;Y=!1;if(V&&V.command&&_.q(V.command,_.em)){var E;V=((E=_.q(V.command,_.em))==null?void 0:E.commands)||[];for(E=0;E<V.length;E++)if(_.q(V[E],_.Wng)){Y=!0;break}}Y||_.ZY('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!T&&x&&x.onSuccessCommand?_.VN(A,[x.onSuccessCommand],L):T&&x&&x.onFailureCommand&&_.VN(A,[x.onFailureCommand],L)},function(){_.kf(L);
x&&x.onFailureCommand&&_.VN(A,[x.onFailureCommand],L);epX(O)}):_.C7(Error("Al"),"ERROR")};
n4J=function(A,L,O){var X=[L];O&&X.push(O);return _.TZ(A,X).then(function(x){var J=_.q(L,_.ot).serializedTransactionFlowLoggingParams,Y=x.data,T=DnS(L,Y);T?x=_.Ry(new wg(T,J)):VtQ(Y);return x},function(){var x=_.q(L,_.ot).serializedTransactionFlowLoggingParams;
epX(L);return _.Ry(new wg("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",x))})};
DnS=function(A,L){A=_.q(A,_.ot).serializedTransactionFlowLoggingParams;var O=null;switch(L.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":O="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":O="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":O="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}O?_.UP(O,A):iMJ(A);return O};
epX=function(A){_.UP("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.q(A,_.ot).serializedTransactionFlowLoggingParams)};
VtQ=function(A){if(A.trackingParams){var L=_.Fn(),O=_.Ch();L&&O&&_.W4(L,O,_.lV(A.trackingParams))}};
ttz=function(A,L,O){var X=_.UC.instance,x=_.uwP(_.ms("YPC_MB_URL")),J=(new _.diD).init(),Y=_.Ymd(),T=_.q(O,_.Ib6).languageCode;T===void 0?_.C7(Error("Ei"),"ERROR"):_.Fe([J,x]).then(function(){var V={ctk:payments.business.integration.ClientTokenFactory.createClientToken(T,Y)};X&&_.vx(X,O)?_.oQ(X,O,V).then(function(E){return{data:E}}).then(function(E){_.P4(L,"yt-service-request-completed",E);
E.code!=="ERROR"&&(E=E.data.command)&&_.VN(A,[E],L)}):_.C7(Error("Al"),"ERROR")})};
SCZ=function(A,L,O,X){var x=_.UC.instance;x&&_.vx(x,O)?_.oQ(x,O,X).then(function(J){return{data:J}}).then(function(J){byX(A,L,O,J)},function(){hp$(O)}):(x=_.X5().resolve(_.Ot(_.f3)))&&x.requestDataForServiceEndpoint(O,X).then(function(J){byX(A,L,O,J)},function(){hp$(O)})};
byX=function(A,L,O,X){_.P4(L,"yt-service-request-completed",X);if(X.code&&X.code=="ERROR")hp$(O);else{(X=X.data.commands)&&_.VN(A,X,L);var x;(A=(x=_.q(O,_.zWN))==null?void 0:x.serializedYpcPauseFlowLoggingParams)&&A&&_.o5("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",A)}};
hp$=function(A){var L;(A=(L=_.q(A,_.zWN))==null?void 0:L.serializedYpcPauseFlowLoggingParams)&&A&&_.o5("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",A,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
wxX=function(A,L,O){var X=_.UC.instance;X&&_.vx(X,O)?_.oQ(X,O).then(function(x){return{data:x}}).then(function(x){qCB(A,L,O,x)},function(){g4M(O)}):(X=_.X5().resolve(_.Ot(_.f3)))&&X.requestDataForServiceEndpoint(O).then(function(x){qCB(A,L,O,x)},function(){g4M(O)})};
qCB=function(A,L,O,X){_.P4(L,"yt-service-request-completed",X);X.code&&X.code=="ERROR"?g4M(O):((X=X.data.commands)&&_.VN(A,X,L),(A=_.q(O,_.Bj3).serializedYpcResumeFlowLoggingParams)&&A&&_.o5("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",A))};
g4M=function(A){(A=_.q(A,_.Bj3).serializedYpcResumeFlowLoggingParams)&&A&&_.o5("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",A,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
pxQ=function(A){A=A===void 0?{}:A;_.X5().resolve(_.t_L).showFeedbackDialog(A.customProductData,A.feedbackContent,A.onFeedbackSubmitted,A.bucket)};
iyQ=function(A){A=A===void 0?{}:A;_.X5().resolve(_.t_L).showHelpDialog(A.helpContext,A.articleId,A.productData)};
NlM=function(){iyQ()};
rFJ=function(){pxQ()};
GJQ=function(A,L,O){var X,x,J,Y,T,V,E;return _.u(function(n){switch(n.nextAddress){case 1:X=_.q(A,K4k);if((x=X)==null?0:x.productId){V={productId:X.productId,bucket:X.bucket,enableAnonymousFeedback:(T=X.enableAnonymousFeedback)!=null?T:!0,allowNonLoggedInFeedback:!0};E={feedbackChoice:O.feedbackChoice};if(!_.h("web_collect_offline_state")){n.jumpTo(8);break}_.e4(n,9);return n.yield(mGX(E),11)}Y={bucket:(J=X)==null?void 0:J.bucket};if(!_.h("web_collect_offline_state")){n.jumpTo(4);break}Y.customProductData=
{};_.e4(n,5);return n.yield(mGX(Y.customProductData),7);case 7:_.zA(n,4);break;case 5:_.S4(n);case 4:pxQ(Y);n.jumpTo(0);break;case 11:_.zA(n,8);break;case 9:_.S4(n);case 8:_.vs_(E),_.UPJ("GFEEDBACK",E),X.productId==="5295751"&&(E.client_attestation=Number(_.ms("CATSTAT",0))),X.productId==="5295751"&&(E.client_time=Date.now()/1E3/3600),X.productId==="5295751"&&(E.original_playback_id=_.rZL||""),_.WRH(V,E),_.qo(n)}})};
lrX=function(A){if(A=_.q(A,_.A1e)){var L={bucket:A.bucketIdentifier};A.additionalDatas&&(L.customProductData={},A.additionalDatas.forEach(function(O){if(O=O.userFeedbackEndpointProductSpecificValueData)L.customProductData[O.key]=O.value}));
pxQ(L)}};
cFX=function(A){var L=_.zu.getInstance();var O=_.b3("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var X=_.b3("DELETE",void 0,"Delete"),x=_.b3("CANCEL",void 0,"Cancel");O=HdJ(O,void 0,X,x,{signal:"DELETE_ALL_DOWNLOADS"});_.za(L,[{openPopupAction:O}],A)};
F4n=function(){return _.u(function(A){return A.nextAddress==1?A.yield(_.X5().resolve(_.bc),2):A.yield(CB$(),0)})};
RpZ=function(A){var L,O;return _.u(function(X){return X.nextAddress==1?(O=(L=_.q(A,_.jJ))==null?void 0:L.targetId)?X.yield(_.X5().resolve(_.bc),3):X.jumpTo(0):X.yield(_.X5().resolve(_.tG).deleteVideo(O),0)})};
mnM=function(A){var L,O;return _.u(function(X){return X.nextAddress==1?(O=(L=_.q(A,_.jJ))==null?void 0:L.targetId)?X.yield(_.X5().resolve(_.bc),3):X.jumpTo(0):X.yield(QQk(_.X5().resolve(_.tG),O),0)})};
Irn=function(A){var L,O;return _.u(function(X){return(O=(L=_.q(A,_.jJ))==null?void 0:L.targetId)?X.yield(fr7(O),0):X.jumpTo(0)})};
Zy$=function(){_.h("kevlar_woffle_refresh_dl_load_killswitch")||yFX()};
W4Z=function(){_.h("kevlar_woffle")&&_.Ra.instance&&jQn()};
zpk=function(A){var L;if((L=_.q(A,_.g0))==null||!L.videoId)return!1;HyZ(_.X5().resolve(_.tG),_.q(A,_.g0),A.clickTrackingParams);return!0};
MtS=function(A){var L;if((L=_.q(A,_.w0))==null||!L.playlistId)return!1;BlS(_.X5().resolve(_.tG),_.q(A,_.w0),A.clickTrackingParams);return!0};
arJ=function(A){var L=_.q(A,_.lTu);(L==null?void 0:L.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(L==null?void 0:L.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||$nn(_.X5().resolve(_.tG),_.q(A,_.lTu))};
UnM=function(A){A=_.q(A,_.d1V);var L;(A==null?0:(L=A.actions)==null?0:L.length)&&kJQ(A)};
AIS=function(A){var L,O;return _.u(function(X){L=_.q(A,v4J);return(O=L)!=null&&O.localWatchHistoryCommandType?X.yield(o4$(L),0):X.return()})};
LN7=function(A){setTimeout(function(){requestAnimationFrame(A)},80)};
OuB=function(A){return Object.entries(A).map(function(L){return L.join(":")}).join(";")};
xVk=function(A){var L,O,X;_.u(function(x){if(x.nextAddress==1)return x.yield(XmJ(),2);L=x.yieldResult;O=_.S5.instance;switch(L){case "granted":X=A.getLocationCommand;break;case "denied":X=A.openDeniedDialogAction;break;case "prompt":X=A.openCollectionDialogAction;break;default:X=A.openCollectionDialogAction}X&&O.resolveCommand(X);_.qo(x)})};
XmJ=function(){var A,L;return _.u(function(O){if(O.nextAddress==1)return A="prompt",navigator.permissions?O.yield(navigator.permissions.query({name:"geolocation"}),3):O.jumpTo(2);O.nextAddress!=2&&(L=O.yieldResult,A=L.state);return O.return(A)})};
JIn=function(){_.u(function(A){return A.yield(_.sDk(),0)})};
PSX=function(){var A,L,O;return _.u(function(X){if(X.nextAddress==1)return A=_.X5().resolve(_.Ia),A?X.yield(_.oQ(A,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.Rv(Error("Dl")),X.return(void 0));if(L=X.yieldResult){if(L.errorMetadata)return _.Rv(Error("El`"+L.errorMetadata.status+"`"+L.error)),X.return(void 0);O=L.datasyncIds;_.SuJ=O.length;return X.return(O)}_.Rv(Error("Fl"));return X.return(void 0)})};
dV$=function(){PSX().then(function(A){A&&(dAM(A),rzz(A),Az$(A),yzn(A))})};
Yk$=function(A){_.c1.addLowPriorityJob(function(){var L,O,X,x,J;return _.u(function(Y){switch(Y.nextAddress){case 1:if(_.h("ytidb_clear_optimizations_killswitch")){Y.jumpTo(2);break}L=_.gN("clear");if(L.startsWith("V")&&L.endsWith("||")){var T=[L];dAM(T);rzz(T);Az$(T);yzn(T);return Y.return()}O=LfJ();X=ZMM();return Y.yield(KfS(),3);case 3:return x=Y.yieldResult,Y.yield(YIS(),4);case 4:if(J=Y.yieldResult,!(O||X||x||J))return Y.return();case 2:A.isNetworkAvailable()?dV$():A.listenOnce("publicytnetworkstatus-online",
dV$),_.qo(Y)}})})};
pa=function(A){A={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.Ue(A)}}}};_.S5.instance&&_.S5.instance.resolveCommand(A)};
uiM=function(A){if(A){var L=_.iV();_.h7(L,3854,void 0,{layer:0,parentLayer:4});switch(A){case 1:var O=238708;break;case 2:O=238715;break;case 3:O=238710;break;case 6:O=238709}O&&(A=_.pT(L,{veType:O}))&&_.gm(L,A)}};
T0Z=function(A){if(A){var L=_.iV();_.h7(L,3854,void 0,{layer:0,parentLayer:4});switch(A){case 1:var O=238714;break;case 2:O=238711;break;case 8:O=238709;break;case 7:O=238713;break;case 3:case 4:case 5:O=238712}O&&(A=_.pT(L,{veType:O}))&&_.gm(L,A)}};
V8$=function(A){switch(A.latencyType){case 0:_.Fz("consent_primitive_flow");_.Rk("cpit",A.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.Rk("cpist",A.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.Rk("cprtif",A.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.Rk("cprtli",A.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.Rk("cprt",A.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.Rk("cpdt",A.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.Rk("cpjct",A.timestampEpochMillis,"consent_primitive_flow")}};
gu7=function(A,L){var O,X,x,J,Y,T,V,E,n,t,b,S,w,l,F,R,y,M,H,z;return _.u(function(a){switch(a.nextAddress){case 1:_.e4(a,2);(X=(O=_.q(A,DVQ))==null?void 0:O.serializedConsentRequest)||(X=(x=_.q(A,eTM))==null?void 0:x.serializedConsentRequest);X&&(J=EuJ(_.ke(X)));if(J===void 0)return a.return();Y=nuS(J);Y.latencyCallback=V8$;L&&t8M(Y,function(){L.then(function(xe){xe.pauseVideo();(new buM).increment()})});
return((T=_.q(A,DVQ))==null?void 0:T.consentAction)==="CONSENT_ACTION_PREWARM"||((V=_.q(A,eTM))==null?void 0:V.consentAction)==="CONSENT_ACTION_PREWARM"?a.yield(hT$(Y),5):a.yield(SkJ(Y),6);case 6:E=a.yieldResult;n=_.Gy(E,iq);if(n===1){if(((t=_.WM(E,N4,1,iq))==null?void 0:_.IH(t,1))===1||((b=_.WM(E,N4,1,iq))==null?void 0:_.IH(b,1))===2||((S=_.WM(E,N4,1,iq))==null?void 0:_.IH(S,1))===3)_.q(A,eTM)?pa(_.b3("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
pa(_.b3("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));uiM((w=_.WM(E,N4,1,iq))==null?void 0:_.IH(w,1),_.OT(E,qkB,3,_.Xq()))}else n===2?(((l=rg(E))==null?void 0:_.IH(l,1))===5?_.q(A,eTM)?pa(_.b3("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):pa(_.b3("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((F=rg(E))==null?void 0:_.IH(F,1))===1||((R=rg(E))==null?void 0:_.IH(R,1))===4?pa(_.b3("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((y=rg(E))==null?void 0:_.IH(y,1))===7&&((M=J)==null?void 0:(H=_.ET(M,Ka,4))==null?void 0:_.IH(H,4))!==1&&pa(_.b3("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),T0Z((z=rg(E))==null?void 0:_.IH(z,1))):pa(_.b3("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));a.jumpTo(5);break;case 5:_.zA(a,0);break;case 2:_.S4(a),pa(_.b3("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.qo(a)}})};
pmM=function(){if(!wmB.has("Worker")){wmB.set("Worker",!0);var A={api:"BROWSER_API_WEB_WORKER"};A.available="Worker"in window?!0:!1;_.lg("apiTest",A)}};
iun=function(A){return typeof A==="undefined"?"-1":String(Math.ceil(A/1048576))};
GPS=function(A,L){N0$(new rIS(_.q(L,KNJ).addToken,_.q(L,KNJ).commonToken)).then(function(){_.P4(A,"yt-invoke-instrument-manager-action-completed")},function(O){_.P4(A,"yt-invoke-instrument-manager-action-error",O)})};
llB=function(A){return _.$z(A)};
cIM=function(A){var L=1;A=A.split(":");for(var O=[];L>0&&A.length;)O.push(A.shift()),L--;A.length&&O.push(A.join(":"));return O};
CSM=function(A,L){L=A.aspectRatio()<=L.aspectRatio()?L.width/A.width:L.height/A.height;A.scale(L)};
FNJ=function(A,L){L=A.aspectRatio()>L.aspectRatio()?L.width/A.width:L.height/A.height;return A.scale(L)};
RTM=function(A){var L=new _.bb;return _.HM(L,11,A)};
QD$=function(A){var L={};A=A.getAllResponseHeaders().split("\r\n");for(var O=0;O<A.length;O++)if(!_.Ye(A[O])){var X=cIM(A[O]),x=X[0];X=X[1];if(typeof X==="string"){X=X.trim();var J=L[x]||[];L[x]=J;J.push(X)}}return _.lW.map(L,function(Y){return Y.join(", ")})};
mb=function(A,L){return A.JSC$10816_xhr_?A.JSC$10816_xhr_.getResponseHeader(L):null};
mV$=function(A,L){if(A.isDisposed())throw Error("Ea");A.m3.eX("n");var O=_.j7(A.m3,function(){return A.qcg([L.eN,L.aUr,L.f1c,L.gjO])},"n");
A.m3.zBY(O.length);A.m3.xd();return O};
G3=function(A,L,O){Array.isArray(O)||(O=[String(O)]);_.hf6(A.JSC$11053_queryData_,L,O);return A};
jQn=function(){var A=_.Ra.instance;_.u(function(L){return A.deferredInstallPrompt?L.yield(A.deferredInstallPrompt.prompt(),0):L.jumpTo(0)})};
flM=function(A,L,O){if(_.jD(A))_.BY(A,L,O);else for(A=_.COu(A);;){var X=A.next();if(X.done)break;L.call(O,X.value,void 0,A)}};
IlM={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}"]};
IlM={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 yIB=function(A,L){var O=[];flM(L,function(X){try{var x=_.P3.prototype.getWrapper.call(this,X,!0)}catch(J){if(J=="Storage: Invalid value was encountered")return;throw J;}x===void 0?O.push(X):_.clu(x)&&O.push(X)},A);
return O},ZuJ=function(A,L){yIB(A,L).forEach(function(O){_.P3.prototype.remove.call(this,O)},A)},jDX=function(A){var L=_.vi;
L._minimumZ=Math.max(L._minimumZ,A)},WNZ=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],Hun=function(A,L){_.oo(A.vm);A.vm=L},zTM=function(A,L,O,X){A.setState(5);
var x=!!A.jMm&&WNZ.includes(_.vY(A.jMm)||"");try{var J=new _.Wb({program:L,globalName:O,gwq:{disable:!_.h("att_web_record_metrics")||!_.h("att_skip_metrics_for_cookieless_domains_ks")&&x,kn:"aGIf"}});J.mqw.then(function(){A.setState(6);X&&X(L)});
Hun(A,J)}catch(Y){A.setState(7),Y instanceof Error&&_.Rv(Y)}},B0M=function(A,L,O,X,x,J){var Y=Y===void 0?"trayride":Y;
O?(A.setState(2),_.Zx(_.rX(O),function(){if(window[Y])zTM(A,X,Y,x);else{A.setState(3);var T=_.$ze(O),V=document.getElementById(T);V&&(_.UbM(T),V.parentNode.removeChild(V));_.Rv(new _.pe("BL:ULB",O))}},J)):L?(J=_.tg("SCRIPT"),L instanceof _.M0?_.kW(J,L):J.textContent=L,J.nonce=_.Bf(document),document.head.appendChild(J),document.head.removeChild(J),window[Y]?zTM(A,X,Y,x):(A.setState(4),_.Rv(new _.pe("BL:ULBJ")))):_.Rv(new _.pe("BL:ULV"))},M8z=function(){this.state=1;
this.vm=null;this.jMm=void 0};
_.P=M8z.prototype;_.P.initialize=function(A,L,O,X){this.jMm=X;if(A.program){var x;X=(x=A.interpreterUrl)!=null?x:null;if(A.interpreterSafeScript)x=_.hBM(A.interpreterSafeScript);else{var J;x=(J=A.interpreterScript)!=null?J:null}A.interpreterSafeUrl&&(X=_.CH(A.interpreterSafeUrl).toString());B0M(this,x,X,A.program,L,O)}else _.Rv(Error("kf"))};
_.P.isInitialized=function(){return!!this.vm};
_.P.getState=function(){return this.state};
_.P.isLoading=function(){return this.state===2};
_.P.invoke=function(A){A=A===void 0?{}:A;var L;this.vm?L=mV$(this.vm,{eN:A}):L=null;return L};
_.P.dispose=function(){Hun(this,null);this.setState(8)};
_.P.setState=function(A){this.state=A};
var $VS=function(A,L){return A.vm.snapshot(L)},alJ=function(A,L){var O=_.PO("botguard_async_snapshot_timeout_ms",3E3);
L=L===void 0?{}:L;O=O===void 0?3E3:O;return A.vm?new Promise(function(X,x){var J=!1,Y=_.c1.addJob(function(){J=!0;x(Error("lf"))},1,O);
A.vm?$VS(A,{eN:L}).then(function(T){_.c1.cancelJob(Y);J||X(T)}).catch(function(T){_.c1.cancelJob(Y);
J||x(T)}):(_.c1.cancelJob(Y),X(null))}):Promise.resolve(null)},kPB=["att/log"],jyn;
jyn={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var UV7={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},vuS=function(A,L){return _.SM(A,{mode:"readwrite",enableRetries:!0},function(O){return _.KG9(O,L,"settingEntity")})},ouX=function(A,L,O){return _.SM(A,{mode:"readonly",
enableRetries:!0},function(X){return _.TnN(X,L,O)})},ACZ=function(A){if(!A.storage)return!1;
a:{if(A.storage){try{var L=A.storage.get("TLPQtimestamp")}catch(O){}A=Number(L);if(!isNaN(A))break a}A=void 0}return A?Date.now()-A<864E5:!1},LBZ=function(A){if(A.storage){try{var L=A.storage.get("TLPQindex")}catch(O){}A=Number(L);
if(!isNaN(A))return A}},OvM=function(A,L){A.queueProxy&&L.forEach(function(O){if(O.videoId&&O.trackingParams&&A.queueProxy instanceof _.ze){var X=_.Fn();
A.queueProxy.attributionData.set(O.videoId,{enqueueingVe:_.lV(O.trackingParams).getAsJson(),enqueueingCsn:X?X:void 0,clientEnqueueingTimeMs:Math.floor((0,_.O$)()).toString()})}})},XC$=function(A){var L=_.B3H(A);
L!=A.currentSnapState_&&(A.currentSnapState_=L,A.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},lq=function(A){this.JSC$14119_networkManager_=A;
this.partCallbacks_=[]};
lq.prototype.getCacheKeyForEndpoint=function(A){return _.uCM(A,!1)};
lq.prototype.onPartsCallback_=function(A){this.partCallbacks_.forEach(function(L){A&&L(A)})};
var cU=function(A,L,O){lq.call(this,A);this.player_=L;this.autoplayData_=O};
_.g(cU,lq);cU.prototype.getCacheKeyForEndpoint=function(A){return _.uCM(A,!!this.autoplayData_)};
cU.prototype.getTempData=function(A,L){L=L.timeBeforeNextVideo;A={itct:A.clickTrackingParams,lact:_.xw(),pbis:L,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(A.autonav=1);return A};
cU.prototype.getXhrParams=function(A){return Object.assign({pbj:"prefetch"},A)};
cU.prototype.getParams=function(A){A={frags:A.fragmentsRequested.join(",")};_.h("kevlar_droppable_prefetchable_requests")&&(A.prefetch=1);return A};
var xwX=function(A){A.playerEvents_.forEach(function(L){A.player.removeEventListener(L.eventName,L.callback)});
A.playerEvents_.length=0},Ca=function(A,L,O){this.player=A;
this.JSC$14129_taskManager=L;this.prefetchDelay=O;this.completionResolver_=null;this.playerEvents_=[]};
Ca.prototype.start=function(){var A=this;this.completionResolver_=_.AI();_.R$(this.completionResolver_.promise,function(){xwX(A);A.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var sGk=function(A,L,O){A.player.addEventListener(L,O);A.playerEvents_.push({eventName:L,callback:O})},JCM={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},PI7={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},dwJ=function(A,L,O){Ca.call(this,A,L,O);this.cueId_="playbackTrigger-"+Math.random()};
_.g(dwJ,Ca);
dwJ.prototype.prepareTrigger=function(A){var L=this,O=this.player.getDuration(),X=this.player.getVideoData(),x=X.isLive&&X.hasProgressBarBoundaries;if(x&&X.progressBarEndPositionUtcTimeMillis){var J=X.progressBarEndPositionUtcTimeMillis/1E3;isNaN(J)||(O=J)}var Y=0;this.prefetchDelay>=0?x?X.progressBarStartPositionUtcTimeMillis&&(X=X.progressBarStartPositionUtcTimeMillis/1E3,isNaN(X)||(Y=X+this.prefetchDelay)):Y=this.prefetchDelay:Y=O+this.prefetchDelay;x?this.player.addUtcCueRange(this.cueId_,Y,O):
this.player.addCueRange(this.cueId_,Y,O);_.R$(A.promise,function(){L.player.removeCueRange(L.cueId_)});
sGk(this,"onCueRangeEnter",function(T){T==L.cueId_&&A.resolve(O-Y)})};
var Yfk=function(A,L){A.fragmentConfiguration_[L].requiredKeys.every(function(O){return!!A.prefetchedData_[O]})&&(A.validatedFragments_.push(L),L=A.missingFragments_.indexOf(L),L!==-1&&A.missingFragments_.splice(L,1))},ugS=function(A){A.prefetchedFragments_.forEach(function(L){Yfk(A,L)})},T1X=function(A,L,O){this.pageFragments_=A;
this.prefetchedFragments_=L;this.fragmentConfiguration_=PI7;this.prefetchedData_=O;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;ugS(this)},VEX=function(){},DwZ=function(A){this.JSC$14143_playlistManager_=A};
_.g(DwZ,VEX);DwZ.prototype.getPrefetchEndpoint=function(){return this.JSC$14143_playlistManager_.getAutoplayEndpoint()};
var eOB=function(A){this.autonavEndpoints_=A};
_.g(eOB,VEX);eOB.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var Efz=function(A,L,O,X,x){this.autonavEndpoints=A;this.foregroundTrigger=L;this.backgroundTrigger=O;this.pageType=X;this.isInPlaylist=x},nfJ=function(A,L){if(A.webPrefetchData&&A.webPrefetchData.navigationEndpoints&&A.webPrefetchData.navigationEndpoints.length){A=A.webPrefetchData.navigationEndpoints;
var O=_.q(A[0],_.$O);if(O.watchEndpointSupportedPrefetchConfig&&O.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var X=O.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;O=X.playbackRelativeSecondsPrefetchCondition;O=typeof O==="number"&&Math.abs(O)<L.videoDuration?O:void 0;X=X.countdownUiRelativeSecondsPrefetchCondition;X=typeof X!=="number"||_.h("prefetch_job_config_cleanup_ks")&&L.inPlaylist?void 0:X;if(typeof X==="number")return new Efz(A,L.makeUpNextTrigger(X),L.makePlaybackTrigger(X),
"watch",L.inPlaylist);if(typeof O==="number")return new Efz(A,L.makePlaybackTrigger(O),null,"watch",L.inPlaylist)}}},tEJ=function(A){return A.prefetchJobConfig_.backgroundTrigger?_.j6(_.Bty)()==0?A.prefetchJobConfig_.backgroundTrigger:A.prefetchJobConfig_.foregroundTrigger:A.prefetchJobConfig_.foregroundTrigger},bvM=function(A){_.GI(document,"visibilitychange",A.onVisibilityChange_,!1,A)},Fk=function(A){lq.call(this,A)};
_.g(Fk,lq);Fk.prototype.getCacheKeyForEndpoint=function(A){return lq.prototype.getCacheKeyForEndpoint.call(this,A)};
Fk.prototype.getTempData=function(){return{}};
Fk.prototype.getXhrParams=function(A){return A};
Fk.prototype.getParams=function(){return{}};
var hOJ=function(A,L,O){var X=A.prefetchDelay*1E3;if(Math.abs(X)>L)O.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var x=X,J=L-X;X<0&&(x=L+X,J=Math.abs(X));var Y=A.JSC$14129_taskManager.addJob(function(){O.resolve(J/1E3)},10,x);
O.promise.thenCatch(function(){A.JSC$14129_taskManager.cancelJob(Y)})}},SfM=function(A,L,O){Ca.call(this,A,L,O)};
_.g(SfM,Ca);SfM.prototype.prepareTrigger=function(A){var L=this;sGk(this,"onAutonavCoundownStarted",function(O){hOJ(L,O,A)})};
var qf$=function(A){A.pendingPrefetchJob_&&(A.pendingPrefetchJob_.cancel(),A.pendingPrefetchJob_=null)},gfX=function(A,L,O){if(!A.triggeredTargets.has(L)){var X=_.ymN(A,L);
X.action=O;_.f07(A,L,X)}},wCk=function(A){_.ij6();
_.JAu("cpt")&&_.Rv(Error("kh"));_.Ou.requestAnimationFrame(function(){_.Ou.setTimeout(function(){_.Rk("cpt");var L=_.fM("vpl"),O=_.fM("cpt");L&&O&&_.Rk("ol",Math.max(L,O))})});
try{_.Rk("fr_s"),A()}catch(L){_.C7(L)}_.Ou.requestAnimationFrame(function(){_.Rk("bcp")})},pCn=function(A,L){A.serviceEndpointHandlers.push(L)},ivS=function(A,L){L=A.pendingPages_.indexOf(L);
L>-1&&A.pendingPages_.splice(L,1)},N1n=function(A,L){var O=_.LAn.indexOf(L);
O>-1&&_.LAn.splice(O,1);A.targetPage_==L?(A.abort(),_.X5L(A)):ivS(A,L)},rC$=function(A,L,O,X){L={challenge:L};
O&&(L.webResponse=O);return _.MB(A.innertubeTransportService,L,_.L3(kPB),X)},KBS=function(A,L,O){if(!L.challenge)throw Error("mi");
if(L.botguardData&&L.botguardData.program){var X=new M8z;X.initialize(L.botguardData,function(){alJ(X,{atr_challenge:L.challenge}).then(function(x){if(!x)throw Error("ni");return rC$(A,L.challenge,x,O)}).catch(function(x){_.Rv(x);
return rC$(A,L.challenge,void 0,O)})},void 0)}else rC$(A,L.challenge,void 0,O)},GR7=function(A,L,O){var X={};
L.ids&&(X.ids=[].concat(_.le(L.ids)));L.engagementType&&(X.engagementType=L.engagementType);return _.MB(A.innertubeTransportService,X,_.L3(_.l1V),O).then(function(x){if(!x)throw new _.pe("GetAttestationChallenge returned falsy");KBS(A,x,O)}).thenCatch(function(x){_.C7(x)})},lEn=function(A,L,O){return new _.eJ(function(X,x){var J;
return _.u(function(Y){if(Y.nextAddress==1){var T=Y.yield,V=L.engagementType,E=L.ids,n={};E=_.d(E!=null?E:[]);for(var t=E.next();!t.done;t=E.next())t=t.value,t.encryptedVideoId?n.encryptedVideoId=t.encryptedVideoId:t.externalChannelId?n.externalChannelId=t.externalChannelId:t.commentId?n.commentId=t.commentId:t.externalOwnerId?n.externalOwnerId=t.externalOwnerId:t.artistId?n.artistId=t.artistId:t.playlistId?n.playlistId=t.playlistId:t.externalPostId?n.externalPostId=t.externalPostId:t.shareId&&(n.shareId=
t.shareId);return T.call(Y,W2z(V,n),2)}J=Y.yieldResult;if(!J.challenge)return _.Rv(Error("oi")),GR7(A,L,O).then(X,x),Y.return();T=J;V={challenge:T.challenge};V.webResponse=T.webResponse;V.engagementType=L.engagementType;V.ids=L.ids;_.MB(A.innertubeTransportService,V,_.L3(kPB),O).then(X,x);_.qo(Y)})})},aB$=function(A,L){var O,X,x,J;
_.u(function(Y){if(Y.nextAddress==1){O=_.q(L,_.EIg);if(!(O&&O.listId&&A.response&&A.response.playingVideoId)||A.listId!==O.listId)return Y.return();A.index===void 0&&(A.index=0);return Y.yield(_.$L6(A.JSC$13874_playlistNetworkManager,O.listId,A.index,A.response.playingVideoId),2)}X=Y.yieldResult;if(!X)return Y.return();x=X.playlistId;J=X.playlistPanelRenderer;A.setPlaylistData(x,J,X.autoplayRenderer);_.qo(Y)})},cC$=function(A,L,O){var X=A.getParams(O),x=_.KN9(L,X),J=A.getTempData(L,O);
J.endpoint=JSON.stringify(L);_.h("enable_unknown_lact_fix_on_html5")&&(_.X5().resolve(_.m4),J.lact=_.xw());var Y={headers:{"X-YouTube-STS":_.ms("STS"),"x-youtube-csoc":1}};_.oF(x,J);return new _.eJ(function(T,V){var E=A.getXhrParams(X),n;_.h("kevlar_cache_on_ttl_player")&&(n=_.CA.instance);n&&_.nP3(n,L)?_.pA6(n,L,J,window.location.href).then(function(t){t?T(t):V()},V):_.UuL(A.JSC$14119_networkManager_,L,E,A.onPartsCallback_.bind(A),Y).then(function(t){t?T(t):V()},V)})},CIX=function(A,L){A.triggerPromise_=
L.start();
A.triggerPromise_.then(function(O){var X=A.prefetchEndpointProvider_.getPrefetchEndpoint();if(X){var x=JCM[A.prefetchJobConfig_.pageType].prefetchedFragments;A.prefetchRequestPromise_=cC$(A.JSC$14155_networkPrefetchRequest_,X,{fragmentsRequested:x,timeBeforeNextVideo:O});A.prefetchResponseCacheKey_=A.JSC$14155_networkPrefetchRequest_.getCacheKeyForEndpoint(X);bvM(A);A.prefetchRequestPromise_.then(function(J){A.storePrefetchedDataCallback_(A.prefetchResponseCacheKey_,J);if(_.h("web_prefetch_preload_video")&&
x.length===1&&x[0]==="pl"&&J&&!J.playerAds&&!J.adPlacements){var Y=_.q(X,_.rM),T=Y!=null,V={raw_player_response:J,watch_endpoint:Y};(J=_.X5().resolve(T?_.GGH:_.Dl))&&X&&J.then(function(E){T&&_.h("web_queue_preload_video")?(V.prefer_gapless=!0,E.queueNextVideo(V)):E.preloadVideoByPlayerVars(V)})}})}})},Rw=function(A,L,O,X){this.prefetchEndpointProvider_=A;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=L;this.prefetchJobConfig_=O;this.JSC$14155_networkPrefetchRequest_=X;this.prefetchResponseCacheKey_=null};
Rw.prototype.enqueue=function(){this.triggerPromise_||(CIX(this,tEJ(this)),_.CT(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
Rw.prototype.resolve=function(){this.cancel()};
Rw.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.");bvM(this)};
Rw.prototype.onVisibilityChange_=function(){var A=this;_.j6(_.Bty)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){A.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||CIX(this,tEJ(this))};
FBZ=function(A,L,O,X,x){L&&(L==null?0:L.videoId)&&O&&O.entries&&_.h("kevlar_enable_shorts_prefetch_in_sequence")&&(qf$(A),L=O.entries.map(function(J){var Y;return(Y=_.q(J.command,_.rM))==null?void 0:Y.videoId}).indexOf(L.videoId),O=O.entries[L+1],O!=null&&O.command&&!_.q(O==null?void 0:O.command,_.BB)&&(X=new Efz([O.command],new dwJ(X,_.c1,1),null,"shorts",!1),A.pendingPrefetchJob_=new Rw(new eOB(X.autonavEndpoints),function(){return!1},X,new Fk(x)),A.pendingPrefetchJob_.enqueue()))};
ROS=function(A,L,O,X,x,J){var Y=_.Yq.getInstance();if(!_.h("block_all_player_prefetch_requests")){qf$(A);var T=!!O.getPlaylistId(),V=O.getVideoData().isLive&&O.getVideoData().hasProgressBarBoundaries;if((Y.getState()==2||T||V)&&(!O.getVideoData().isLive||V)){Y={inPlaylist:T,videoDuration:O.getDuration(),makeUpNextTrigger:function(n){return new SfM(O,_.c1,n)},
makePlaybackTrigger:function(n){return new dwJ(O,_.c1,n)}};
var E=nfJ(L,Y);E&&(A.pendingPrefetchJob_=new Rw(E.isInPlaylist?new DwZ(x):new eOB(E.autonavEndpoints),function(n,t){t=new T1X(JCM[E.pageType].pageFragments,JCM[E.pageType].prefetchedFragments,t);return _.KmN(t)?(A.prefetchCache_.set(n,t),!0):!1},E,new cU(X,O,J,x)),A.pendingPrefetchJob_.enqueue())}}};
QGX=function(){var A=_.Aa();A.signals.parkOrScheduleJob(function(){var L=A.storage;if(L.storage)if(ACZ(L)){var O=L.getPlaylistId();L=LBZ(L);O=!!O&&L!==void 0}else L.clear(),O=!1;else O=!1;if(O){O=A.pageManager.isOnWatch();a:{var X=A.storage;if(X.storage&&ACZ(X)&&(L=X.getPlaylistId(),X=LBZ(X),L&&X!==void 0)){O={recoverPlaylistCommand:{listId:L,index:X,openMiniplayer:!O,openListPanel:O,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}O=void 0}O&&_.za(A.JSC$13874_actionRouter,[O],null)}},0,"ma")};
mwB=function(A,L,O,X,x,J){var Y=_.tI(7111);_.S9(A.JSC$19253_screenManager,Y,J?_.lV(J):void 0);_.gm(A.JSC$19253_screenManager,Y,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:X,offlineId:L,offlineabilityFormatType:O,isDefaultFormatType:x==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:x}})};
fE$=function(A,L,O,X,x){var J,Y,T,V,E;return _.u(function(n){if(n.nextAddress==1)return n.yield(A.JSC$19253_playerApiPromise,2);J=n.yieldResult;mwB(A,L,O,"OFFLINE_OBJECT_TYPE_PLAYLIST",X,x);if(T=_.b0H[A.entityTypeMap.listEntityType])E={},Y=(E[T]={maximumDownloadQuality:(V=O)!=null?V:void 0},E);return n.yield(J.queueOfflineAction(L,A.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",Y),0)})};
IES=function(A,L){var O,X,x,J;return _.u(function(Y){if(Y.nextAddress==1)return Y.yield(A.JSC$19253_persistentStorePromiseAccessor(),2);if(Y.nextAddress!=3){O=Y.yieldResult;if(!O)return _.Rv(new _.pe("PES is undefined")),Y.return();X=_.Dn(L,"downloadStatusEntity");return Y.yield(ouX(O,X,"downloadStatusEntity"),3)}x=Y.yieldResult;return Y.return((J=x)==null?void 0:J.downloadState)})};
yCM=function(A,L,O,X,x){var J,Y,T,V,E,n;return _.u(function(t){switch(t.nextAddress){case 1:return t.yield(A.JSC$19253_playerApiPromise,2);case 2:J=t.yieldResult;mwB(A,L,O,"OFFLINE_OBJECT_TYPE_VIDEO",X,x);if(T=_.b0H[A.entityTypeMap.singleEntityType])E={},Y=(E[T]={maximumDownloadQuality:(V=O)!=null?V:void 0},E);return t.yield(IES(A,L),3);case 3:n=t.yieldResult;if(n!=="DOWNLOAD_STATE_USER_DELETED"){t.jumpTo(4);break}return t.yield(A.deleteVideo(L),4);case 4:return t.yield(J.queueOfflineAction(L,A.entityTypeMap.singleEntityType,
"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",Y),0)}})};
ZvM=function(A,L,O,X,x){return _.u(function(J){return J.nextAddress==1?J.yield(A.deleteVideo(L,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):J.yield(yCM(A,L,O,X,x),0)})};
jGX=function(A,L,O){var X,x;return _.u(function(J){if(J.nextAddress==1)return J.yield(A.JSC$19253_playerApiPromise,2);X=J.yieldResult;x=_.Dn(L,"mainVideoDownloadStateEntity");return J.yield(X.updateDownloadState(x,O),0)})};
fr7=function(A){var L=_.X5().resolve(_.tG);return _.u(function(O){if(O.nextAddress==1)return L.previousDownloadStateForVideo[A]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&L.previousDownloadStateForVideo[A]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?O.jumpTo(2):O.yield(L.resumeVideoDownload(A),2);if(O.nextAddress!=4)return O.yield(jGX(L,A,L.previousDownloadStateForVideo[A]),4);delete L.previousDownloadStateForVideo[A];_.qo(O)})};
QQk=function(A,L){var O;return _.u(function(X){if(X.nextAddress==1)return X.yield(A.JSC$19253_playerApiPromise,2);O=X.yieldResult;return X.yield(O.queueOfflineAction(L,A.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})};
CB$=function(){var A=_.X5().resolve(_.tG),L,O;return _.u(function(X){if(X.nextAddress==1)return X.yield(A.JSC$19253_playerApiPromise,2);if(X.nextAddress!=3)return L=X.yieldResult,O={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},X.yield(L.queueOfflineAction("!*$_ALL_ENTITIES_!*$",A.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",O),3);var x=A.JSC$19253_commandHandler,J=x.resolveCommand,Y=_.b3("DELETING_ALL",void 0,"Downloads are being deleted");
J.call(x,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Xl(Y)}},popupType:"TOAST"}});_.qo(X)})};
WBM=function(A,L){var O,X,x,J,Y,T;return _.u(function(V){if(V.nextAddress==1)return V.yield(A.JSC$19253_persistentStorePromiseAccessor(),2);if(V.nextAddress!=3)return O=V.yieldResult,O?V.yield(ouX(O,_.G1,"downloadsPageViewConfigurationEntity"),3):(_.Rv(new _.pe("PES is undefined")),V.return());x=(X=V.yieldResult)!=null?X:{};T=(Y=(J=x)==null?void 0:J.downloadsUpsellBannerVisibility)!=null?Y:{};return T.visibleWithConnection?V.yield(L.refreshAllStaleEntities(0),0):V.jumpTo(0)})};
HvS=function(A){var L,O;return _.u(function(X){if(X.nextAddress==1)return X.yield(A.JSC$19253_prefStorage,2);L=X.yieldResult;return X.return((O=L)==null?void 0:O.get("sdois"))})};
zOz=function(A){var L,O,X,x,J,Y;return _.u(function(T){if(T.nextAddress==1)return T.yield(A.JSC$19253_persistentStorePromiseAccessor(),2);if(T.nextAddress!=3){L=T.yieldResult;if(!L)return _.Rv(new _.pe("PES is undefined")),T.return();O=_.Dn("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return T.yield(ouX(L,O,"settingEntity"),3)}X=T.yieldResult;return T.return((Y=(x=X)==null?void 0:(J=x.settingOptionValue)==null?void 0:J.boolValue)!=null?Y:!1)})};
B1X=function(A,L){var O,X,x,J;return _.u(function(Y){switch(Y.nextAddress){case 1:return((O=L)==null?void 0:O.formatType)===void 0?Y.return():Y.yield(A.JSC$19253_prefStorage,2);case 2:X=Y.yieldResult;if(X===void 0)return Y.return();if(((x=L)==null?void 0:x.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return Y.yield(X.set("lmqf",L.formatType),8);if(((J=L)==null?void 0:J.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){Y.jumpTo(0);break}return Y.yield(X.set("lmqf",L.formatType),
6);case 6:return Y.yield(X.set("lmqflst",Math.floor((0,_.O$)())),0);case 8:return Y.yield(X.remove("lmqflst"),0)}})};
MEz=function(A){var L,O;return _.u(function(X){switch(X.nextAddress){case 1:return X.yield(A.JSC$19253_prefStorage,2);case 2:L=X.yieldResult;if(!L){X.jumpTo(3);break}return X.yield(L.get("lmqflst"),4);case 4:if(O=X.yieldResult,O!==void 0)return X.return(O);case 3:return X.return(0)}})};
$wM=function(A){var L,O;return _.u(function(X){switch(X.nextAddress){case 1:return X.yield(A.JSC$19253_prefStorage,2);case 2:L=X.yieldResult;if(L===void 0){X.jumpTo(3);break}return X.yield(L.get("lmqf"),4);case 4:if(O=X.yieldResult,O!==void 0)return X.return(O);case 3:return X.return("SD")}})};
BlS=function(A,L,O){var X,x,J,Y,T,V,E,n;_.u(function(t){switch(t.nextAddress){case 1:return t.yield(B1X(A,(X=L)==null?void 0:X.actionParams),2);case 2:x=L.playlistId;if(!x)return t.return();if(L.action==="ACTION_ADD")return((Y=L.actionParams)==null?0:Y.formatType)?t.yield(fE$(A,x,L.actionParams.formatType,(n=L.actionParams)==null?void 0:n.settingsAction,O),0):t.yield(A.offlineWebClientEligibility,14);if(L.action==="ACTION_REMOVE_WITH_PROMPT"){var b=A.JSC$19253_commandHandler,S=b.resolveCommand,w=
_.ms("INNERTUBE_CLIENT_NAME");var l=w==="WEB_REMIX"?_.b3("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.b3("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var F=w==="WEB_REMIX"?[_.b3("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];w=w==="WEB_REMIX"?_.b3("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.b3("DELETE",void 0,"Delete");var R=_.b3("CANCEL",void 0,"Cancel");l=HdJ(l,F,w,R,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:x});
S.call(b,{openPopupAction:l});return t.return()}if(L.action==="ACTION_REMOVE")return t.yield(QQk(A,x),0);if(L.action!=="ACTION_SYNC"){t.jumpTo(0);break}return t.yield(A.JSC$19253_playerApiPromise,9);case 9:return J=t.yieldResult,t.yield(J.queueOfflineAction(x,A.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return T=t.yieldResult,t.yield($wM(A),15);case 15:return V=t.yieldResult,t.yield(MEz(A),16);case 16:E=t.yieldResult,L.onAddCommand&&A.JSC$19253_commandHandler.resolveCommand(L.onAddCommand,
{form:{preferredFormatType:V,offlineWebClientEligibility:T,lastOfflineQualitySettingsSavedMs:E.toString()}}),t.jumpTo(0)}})};
HyZ=function(A,L,O){var X,x,J,Y,T,V,E,n,t,b,S,w,l,F;_.u(function(R){switch(R.nextAddress){case 1:return R.yield(B1X(A,(X=L)==null?void 0:X.actionParams),2);case 2:x=L.videoId;if(!x)return R.return();if(L.action==="ACTION_REMOVE_WITH_PROMPT"){var y=A.JSC$19253_commandHandler,M=y.resolveCommand,H=_.ms("INNERTUBE_CLIENT_NAME");var z=H==="WEB_REMIX"?_.b3("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.b3("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var a=H==="WEB_REMIX"?[_.b3("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",
void 0,"This track won't be available to listen offline.")]:[];H=H==="WEB_REMIX"?_.b3("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.b3("DELETE",void 0,"Delete");var xe=_.b3("CANCEL",void 0,"Cancel");z=HdJ(z,a,H,xe,{signal:"DELETE_DOWNLOAD",targetId:x});M.call(y,{openPopupAction:z});return R.return()}if(L.action==="ACTION_ADD")return((b=L.actionParams)==null?0:b.formatType)?R.yield(yCM(A,x,L.actionParams.formatType,(F=L.actionParams)==null?void 0:F.settingsAction,O),0):R.yield(A.offlineWebClientEligibility,
23);if(L.action==="ACTION_RETRY")return R.yield($wM(A),19);if(L.action==="ACTION_PAUSE")return R.yield(A.pauseVideoDownload(x),0);if(L.action==="ACTION_RESUME")return R.yield(A.resumeVideoDownload(x),0);if(L.action!=="ACTION_REMOVE"){R.jumpTo(0);break}return R.yield(IES(A,x),13);case 13:return J=R.yieldResult,A.previousDownloadStateForVideo[x]=(Y=J)!=null?Y:"DOWNLOAD_STATE_UNKNOWN",R.yield(jGX(A,x,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(A.previousDownloadStateForVideo[x]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&
A.previousDownloadStateForVideo[x]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"){R.jumpTo(15);break}return R.yield(A.pauseVideoDownload(x),15);case 15:y=_.b3("DELETED_VIDEO",void 0,"Video deleted from downloads.");M=_.b3("UNDO_ACTION",void 0,"Undo");z=_.b3("CLOSE",void 0,"Close");T={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Xl(y),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.Xl(M),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:x}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:y+" "+M}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:x}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:z}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};A.JSC$19253_commandHandler.resolveCommand(T);
R.jumpTo(0);break;case 19:V=R.yieldResult;V==="UNKNOWN_FORMAT_TYPE"&&(V="SD");E="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((n=L.actionParams)==null?0:n.formatType)V=L.actionParams.formatType,E=(t=L.actionParams)==null?void 0:t.settingsAction;return R.yield(ZvM(A,x,V,E,O),20);case 20:return R.return();case 23:return S=R.yieldResult,R.yield($wM(A),24);case 24:return w=R.yieldResult,R.yield(MEz(A),25);case 25:l=R.yieldResult,L.onAddCommand&&A.JSC$19253_commandHandler.resolveCommand(L.onAddCommand,
{form:{preferredFormatType:w,offlineWebClientEligibility:S,lastOfflineQualitySettingsSavedMs:l.toString()}}),R.jumpTo(0)}})};
aEz=function(A,L){var O,X,x,J,Y,T,V;return _.u(function(E){if(E.nextAddress==1)return E.yield(A.JSC$19253_persistentStorePromiseAccessor(),2);O=E.yieldResult;if(!O)return _.Rv(new _.pe("PES is undefined")),E.return();if((X=L)==null||!X.settingItemId)return E.return();x=L;J=x.settingItemId;Y=x.boolValue;T=_.Dn(J,"settingEntity");V={key:T,settingOptionValue:{boolValue:Y}};return E.yield(vuS(O,V),0)})};
kR$=function(A,L){var O,X,x,J,Y,T,V;return _.u(function(E){switch(E.nextAddress){case 1:return E.yield(A.JSC$19253_prefStorage,2);case 2:return O=E.yieldResult,X=_.qG(),E.yield(A.JSC$19253_persistentStorePromiseAccessor(),3);case 3:return x=E.yieldResult,O?x?E.yield(O.get("sdois"),4):(_.Rv(new _.pe("PES is undefined")),E.return()):(_.Rv(new _.pe("prefStorage is undefined")),E.return());case 4:J=E.yieldResult;T=(Y=L)==null?void 0:Y.boolValue;T===void 0||_.h("kevlar_set_sd_enabled_flag_killswitch")||
_.gQ(0,197,!0);J===void 0&&T===void 0&&(T=!1);if(T===void 0){E.jumpTo(0);break}return E.yield(O.set("sdois",T),6);case 6:return _.h("kevlar_set_sd_enabled_flag_killswitch")||(_.gQ(0,196,T),X.save()),V={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:T},E.yield(aEz(A,V),0)}})};
Uwn=function(A,L,O){var X,x,J,Y,T;return _.u(function(V){switch(V.nextAddress){case 1:return V.yield(HvS(A),2);case 2:return X=V.yieldResult,V.yield(kR$(A,O),3);case 3:return V.yield(HvS(A),4);case 4:return x=V.yieldResult,J=x!==X,V.yield(zOz(A),5);case 5:Y=V.yieldResult&&!_.h("kevlar_modern_downloads_page");if((T=!x&&!Y)||J)return V.yield(L.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);V.jumpTo(0)}})};
yFX=function(){var A=_.X5().resolve(_.tG),L;_.u(function(O){switch(O.nextAddress){case 1:return O.yield(A.JSC$19253_playerApiPromise,2);case 2:L=O.yieldResult;if(!_.h("kevlar_force_refresh_smart_downloads")){O.jumpTo(3);break}return O.yield(L.refreshAllStaleEntities(0),4);case 4:return O.return();case 3:return O.yield(L.refreshAllStaleEntities(),5);case 5:return O.yield(Uwn(A,L),6);case 6:if(_.h("enable_download_pep_for_premium_countries_web"))return O.yield(WBM(A,L),0);O.jumpTo(0)}})};
$nn=function(A,L){var O,X;_.u(function(x){switch(x.nextAddress){case 1:return x.yield(A.JSC$19253_playerApiPromise,2);case 2:O=x.yieldResult;switch((X=L)==null?void 0:X.settingItemId){case "SMART_DOWNLOADS_ENABLED":return x.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return x.jumpTo(4)}x.jumpTo(0);break;case 3:return x.yield(Uwn(A,O,L),6);case 6:x.jumpTo(0);break;case 4:return x.yield(aEz(A,L),7);case 7:x.jumpTo(0)}})};
vfJ=function(A,L){var O,X,x;return _.u(function(J){if(J.nextAddress==1)return J.yield(A.JSC$19253_persistentStorePromiseAccessor(),2);if(J.nextAddress!=3){O=J.yieldResult;if(!O)return _.Rv(new _.pe("PES is undefined")),J.return(!1);if(!L)return J.return(!1);X=_.Dn(L,"mainVideoEntity");return J.yield(ouX(O,X,"mainVideoEntity"),3)}x=J.yieldResult;return J.return(x!==void 0)})};
kJQ=function(A){var L=_.X5().resolve(_.tG),O,X,x,J,Y,T,V,E,n,t,b;_.u(function(S){switch(S.nextAddress){case 1:return S.yield(L.JSC$19253_playerApiPromise,2);case 2:O=S.yieldResult;x=(X=A)==null?void 0:X.actions;if(!x)return S.return();J=_.d(x);Y=J.next();case 3:if(Y.done){S.jumpTo(0);break}T=Y.value;E=V=void 0;if(!(((V=T)==null?0:V.entityKey)&&((E=T)==null?0:E.actionType))){S.jumpTo(4);break}n=_.dh(T.entityKey);t=n.entityId;b=n.entityType;return S.yield(O.queueOfflineAction(t,b,T.actionType),4);case 4:Y=
J.next(),S.jumpTo(3)}})};
of$=function(A,L){var O,X,x,J,Y;return _.u(function(T){if(T.nextAddress==1)return T.yield(A.JSC$19253_prefStorage,2);if(T.nextAddress!=3)return(O=T.yieldResult)?T.yield(O.get("psi"),3):T.return();X=T.yieldResult;Y={isPaused:L,lastSyncTimestamp:(J=(x=X)==null?void 0:x.lastSyncTimestamp)!=null?J:"0"};return T.yield(O.set("psi",Y),0)})};
o4$=function(A){var L=_.X5().resolve(_.tG),O,X,x,J,Y,T,V,E;return _.u(function(n){switch(n.nextAddress){case 1:return n.yield(L.JSC$19253_playerApiPromise,2);case 2:O=n.yieldResult;x=((X=A)==null?void 0:X.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((T=A)==null?void 0:T.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":J="!*$_ALL_ENTITIES_!*$";Y="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return n.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return n.jumpTo(4)}n.jumpTo(5);break;case 3:return n.yield(of$(L,x),6);case 6:n.jumpTo(5);break;case 4:return n.yield(vfJ(L,(V=A)==null?void 0:V.videoId),7);case 7:n.yieldResult&&(J=(E=A)==null?void 0:E.videoId,Y="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");n.jumpTo(5);break;case 5:if(J&&Y)return n.yield(O.queueOfflineAction(J,"videoPlaybackPositionEntity",Y),0);n.jumpTo(0)}})};
ARS=function(A,L){var O;L!==1||((O=A.currentPersistentToast)==null?0:O.isOpened())?A.openToast():A.currentPersistentToast=void 0};
LzQ=function(A,L){var O;return(O=A.transitionTasksMap.get(L))!=null?O:[]};
OqJ=function(A,L){var O=[];A.elementTasksMap.forEach(function(X){(X=X.get(L))&&O.push(X)});
return O};
XwZ=function(A,L,O,X){X=X===void 0?{}:X;var x=A.defaultViewTransitionOptions;return Object.assign({},x,X,{beforeTransition:function(){O.forEach(function(V){V.beforeTransition()});
var J;(J=x.beforeTransition)==null||J.call(x);var Y,T;(T=(Y=X).beforeTransition)==null||T.call(Y);L.forEach(function(V){V.beforeTransition()})},
afterTransition:function(){O.forEach(function(V){V.afterTransition()});
var J;(J=x.afterTransition)==null||J.call(x);var Y,T;(T=(Y=X).afterTransition)==null||T.call(Y);L.forEach(function(V){V.afterTransition()})}})};
xlS=function(A,L,O){A.transitionTasksMap.has(L)?A.transitionTasksMap.get(L).push(O):(A=new _.pe("Transition task registered for unknown transition type",L),_.C7(A))};
sIS=function(A,L,O){if(A.transitionTasksMap.has(L)){var X=A.transitionTasksMap.get(L).filter(function(x){return x!==O});
A.transitionTasksMap.set(L,X)}};
JRS=function(A,L){var O=LzQ(A,L);O=_.d(O);for(var X=O.next();!X.done;X=O.next())X=X.value,X.runOnce&&sIS(A,L,X);A.elementTasksMap.forEach(function(x,J){x.forEach(function(Y,T){Y.runOnce&&L===T&&(x.delete(T),x.size===0&&A.elementTasksMap.delete(J))})})};
PEJ=function(A,L,O){var X,x,J,Y,T,V,E,n,t;_.u(function(b){if(b.nextAddress==1){if(A.config.disableAllTransitions)return b.return(L());if((X=O)==null||!X.transitionType)return b.return(_.A0M(L,(x=O)==null?void 0:x.viewTransitionOptions));J=O;Y=J.transitionType;T=J.viewTransitionOptions;V=A.config.transitionConfigs.get(Y);if(!V)return b.return(L());E=LzQ(A,Y);n=OqJ(A,Y);t=_.A0M(L,XwZ(V,E,n,T));return b.yield(t,2)}JRS(A,Y);_.qo(b)})};
dlX=function(){var A,L,O,X;return _.u(function(x){if(x.nextAddress==1)return A=navigator,(L=A.storage)!=null&&L.persisted?x.yield((O=A.storage)==null?void 0:O.persisted(),2):x.return("PERSISTED_STATE_NOT_SUPPORTED");X=x.yieldResult;return x.return(X?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
YrB=function(){var A,L,O,X;return _.u(function(x){if(x.nextAddress==1)return A=navigator,(L=A.storage)!=null&&L.persist?x.yield((O=A.storage)==null?void 0:O.persist(),2):x.return("PERSISTED_STATE_NOT_SUPPORTED");X=x.yieldResult;return x.return(X?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
u2X=function(){var A,L;return _.u(function(O){switch(O.nextAddress){case 1:return A="PERSISTED_STATE_NOT_SUPPORTED",_.e4(O,2),O.yield(dlX(),4);case 4:A=O.yieldResult;if(A!=="PERSISTED_STATE_NOT_GRANTED"){O.jumpTo(5);break}return O.yield(YrB(),6);case 6:A=O.yieldResult;case 5:_.zA(O,3);break;case 2:L=_.S4(O),L instanceof Error&&_.C7(L);case 3:return _.lg("persistentStorageStateChecked",{persistedState:A}),O.return(A)}})};
Tok=function(A,L){var O=[],X=!1;L=_.d(L);for(var x=L.next();!x.done;x=L.next()){x=A.moduleRegistry[x.value];var J=void 0,Y=void 0;((J=x)==null?0:J.isFetching)&&((Y=x)==null?0:Y.resolver)?(O.push(x.resolver.promise),X=!0):(x=new _.EP,x.resolve(void 0),O.push(x.promise))}return X?Promise.all(O):void 0};
oJZ=function(A,L){if(A.isAnyTransitionEnabled){var O={};A.viewTransitionCoordinator.registerElement(L,(O.slide="miniplayer-page-transition",O["lockup-to-watch"]="miniplayer-page-transition",O["learning-journey"]="miniplayer-page-transition",O))}};
VOB=function(A,L,O){if(A.isAnyTransitionEnabled){var X={beforeTransition:function(){O(!0);L.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){L.style.viewTransitionName&&(L.style.viewTransitionName="",O(!1))}};
xlS(A.viewTransitionCoordinator,"slide",X);xlS(A.viewTransitionCoordinator,"lockup-to-watch",X);xlS(A.viewTransitionCoordinator,"watch-next-appears",X);xlS(A.viewTransitionCoordinator,"learning-journey",X)}};
DlZ=function(A,L){A.isBrowseTransitionEnabled?PEJ(A.viewTransitionCoordinator,L,{transitionType:"slide"}):(L(),Promise.resolve())};
eqS=function(A,L){A.isLockupToWatchTransitionEnabled?PEJ(A.viewTransitionCoordinator,L,{transitionType:"lockup-to-watch",viewTransitionOptions:{afterTransition:function(){A.registeredLockupThumbnail=void 0;A.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(L(),Promise.resolve())};
EDM=function(A,L){A.isLockupToWatchTransitionEnabled?PEJ(A.viewTransitionCoordinator,L,{transitionType:"watch-next-appears"}):(L(),Promise.resolve())};
nDM=function(A,L){A.isLearningJourneyTransitionEnabled?PEJ(A.viewTransitionCoordinator,L,{transitionType:"learning-journey"}):(L(),Promise.resolve())};
tOX=function(A,L,O){if(A.isInitialized()){var X=w8(O),x=X==="watch";X=X==="shorts";var J=w8(L)==="watch";if(x)J||(A.backgroundPageData=L),A.watchPipMode&&J||A.deactivate(O.endpoint);else if(X){if(w8(L)!=="shorts"){var Y;(Y=A.getPlayerElement())==null||Y.pause()}}else J&&!A.watchPipMode&&(BVZ(L,O)?(A.watchWhileMode&&_.O$Q(A,!1),_.k0M(A,L)):A.isMiniplayerActive()&&A.watchWhileMode&&A.deactivate());J&&_.xYn(A);A.shortsPipMode&&!X&&(window.focus(),A.deactivate());if(A.pictureInPictureEnabled())if(X&&
A.shortsPipEnabled||x&&A.watchPipEnabled)_.BOu(A.handleMediaSessionPipActivation);else if(!A.isMiniplayerActive()&&(A.shortsPipEnabled||A.watchPipEnabled)&&window.documentPictureInPicture&&_.K9()&&_.ePy("Chromium")>=120){A=_.z_9().mediaSession;try{A.setActionHandler("enterpictureinpicture",null)}catch(T){}}}};
bqZ=function(A,L){var O,X;_.u(function(x){if(x.nextAddress==1){if(!A||!A.navigationEndpoint)return x.return();_.rm().lockupActivation=!0;var J;L?J=_.Ue(_.b3("QUEUE",void 0,"Queue")):J=A.longBylineText;X=(O=J)&&A.title?{miniplayerTitle:A.title,miniplayerSubtitle:O,playlistData:null}:void 0;return x.yield(_.If3(_.X5().resolve(_.z_),A.navigationEndpoint,!0,X),2)}_.rm().userActivation=!0;_.qo(x)})};
BdJ=function(A,L){var O,X,x,J,Y,T;_.u(function(V){if(V.nextAddress==1){O=_.q(L,_.ejg);if(!O||!O.listId)return V.return();A.index=O.index||A.index||0;X=A.response&&A.response.playingVideoId||void 0;return V.yield(_.$L6(A.JSC$13874_playlistNetworkManager,O.listId,A.index,X),2)}x=V.yieldResult;if(!x)return V.return();J=x.playlistId;Y=x.playlistPanelRenderer;!A.queueProxy&&J&&Y&&J.startsWith("TLPQ")&&(A.queueProxy=new _.ze(A.JSC$13874_playlistNetworkManager,J,A.setPlaylistData.bind(A),A.clearQueue.bind(A),
_.OlP(Y),A.storage));if(O.openMiniplayer&&(T=_.XLM(Y))&&!A.pageManager.isOnWatch()){var E=T,n=O.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";A.isMiniplayerActive()?A.openToast(E):bqZ(E,n)}A.setPlaylistData(J,Y,x.autoplayRenderer);_.qo(V)})};
WiX=function(A,L){var O=_.Aa();O.index===void 0&&(O.index=0);O.temporaryItems.push.apply(O.temporaryItems,_.le(A));if((L.videoId||L.videoIds)&&O.index!==void 0&&L.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!O.queueProxy){var X=[];if(O.response){var x=_.X5().resolve(_.z_).isMiniplayerActive();if(O.response.playlistPanelRenderer&&O.response.playlistId&&!O.response.playlistId.startsWith("TLPQ")){if(O.pageManager.isOnWatch()||x)X=_.OlP(O.response.playlistPanelRenderer)}else O.response.playingVideoId&&
!L.openMiniplayer?X.push(O.response.playingVideoId):x&&O.response.playingVideoId&&L.openMiniplayer&&X.push(O.response.playingVideoId)}O.queueProxy=new _.ze(O.JSC$13874_playlistNetworkManager,"",O.setPlaylistData.bind(O),O.clearQueue.bind(O),X,O.storage);O.queueProxy.JSC$13820_setCurrentIndex(O.index)}O.queueProxy.addVideos(L.videoIds||[L.videoId],L)}OvM(O,A);O.response&&_.LA(O,_.Oc(O,O.response.autoplayRenderer));O.pageManager.isOnWatch()?O.isMiniplayerActive()&&O.openToast(A[0]):(A=A[0],L=L.listType===
"PLAYLIST_EDIT_LIST_TYPE_QUEUE",O.isMiniplayerActive()?O.openToast(A):bqZ(A,L))};
hqM=function(A){var L=_.Hn(A);if(L=="object"||L=="array"){if(typeof A.clone==="function")return A.clone();if(typeof Map!=="undefined"&&A instanceof Map)return new Map(A);if(typeof Set!=="undefined"&&A instanceof Set)return new Set(A);L=L=="array"?[]:{};for(var O in A)L[O]=hqM(A[O]);return L}return A};
Qf=function(A,L){return _.uLe(_.ps(A,L,void 0,_.wA))};
mr=function(A,L){return _.Ak(_.ps(A,L,void 0,_.wA))};
fa=function(A,L){return _.ccJ(_.ps(A,L,void 0,_.wA))};
Iw=function(A,L){return _.ps(A,L,void 0,_.wA,_.dNp)};
Sr$=_.xW(function(A,L,O){if(A.nextWireType_!==0)return!1;_.sB(L,O,_.MK(A.decoder_,_.JcO));return!0},_.YW,_.vM);
qrz=_.xW(function(A,L,O,X){if(A.nextWireType_!==0)return!1;_.Ks(L,O,X,_.MK(A.decoder_,_.JcO));return!0},_.YW,_.vM);
gDJ=_.xW(function(A,L,O){if(A.nextWireType_!==1)return!1;var X=A.decoder_;A=_.aH(X);X=_.aH(X);A=_.I6(A,X);_.sB(L,O,A);return!0},_.KJr,_.sBr);
ww$=_.xW(function(A,L,O){if(A.nextWireType_!==5)return!1;_.sB(L,O,_.aH(A.decoder_));return!0},function(A,L,O){L=_.DNe(L);
L!=null&&(_.JE(A,O,5),_.dw(A.encoder_,L))},_.xk9);
pw7=_.xW(function(A,L,O){if(A.nextWireType_!==0)return!1;A=_.yqe(A.decoder_);_.sB(L,O,A===!1?void 0:A);return!0},_.G2e,_.ASr);
iqJ=_.xW(function(A,L,O){if(A.nextWireType_!==2)return!1;A=_.zrp(A);_.sB(L,O,A===""?void 0:A);return!0},_.cEu,_.LjD);
No7=_.xW(function(A,L,O){if(A.nextWireType_!==2)return!1;A=_.BHp(A);_.sB(L,O,A===_.rJ()?void 0:A);return!0},_.FJu,_.dk9);
rRk=_.h3_(function(A,L,O){if(A.nextWireType_!==0&&A.nextWireType_!==2)return!1;L=_.K$_(L,L[_.sg]|0,O);A.nextWireType_==2?_.MTr(A,llB,L):L.push(_.$z(A.decoder_));return!0},function(A,L,O){L=_.b_d(_.Ak,L,!0);
if(L!=null&&L.length){O=_.W$_(A,O);for(var X=0;X<L.length;X++)_.i_O(A.encoder_,L[X]);_.HJJ(A,O)}},_.Ywy);
Kz7=_.xW(function(A,L,O){if(A.nextWireType_!==0)return!1;A=_.$z(A.decoder_);_.sB(L,O,A===0?void 0:A);return!0},_.R3O,_.Ywy);
G_B=_.xW(function(A,L,O,X){if(A.nextWireType_!==0)return!1;_.Ks(L,O,X,_.$z(A.decoder_));return!0},_.R3O,_.Ywy);
_.LL=function(A){this.privateDoNotAccessOrElseWrappedStyleSheet=A};
_.LL.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};
var OTn=function(A,L){return new _.Cm(A.x+L.x,A.y+L.y)},l7B=function(A){return A.previousElementSibling!==void 0?A.previousElementSibling:_.Sz7(A.previousSibling,!1)},cRn=function(A,L){var O=[];
for(L=L||0;L<A.length;L+=2)_.YBN(A[L],A[L+1],O);return O.join("&")},CES=function(A,L){var O=arguments.length==2?cRn(arguments[1],0):cRn(arguments,1);
return _.d0j(A,O)},CNJ=_.Vo(_.jE),FzB=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(FzB,_.AE);FzB.prototype.getTypeName=function(){return _.mT(this,1).split("/").pop()};
FzB.prototype.getValue=function(){var A=_.ps(this,2);if(Array.isArray(A)||A instanceof _.AE)throw Error("W");return _.rA(this,2)};
var SPS=function(){var A=_.un();this.JSC$10939_streamzService=A;A.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.Pq("channel_type"))};
SPS.prototype.increment=function(A){this.JSC$10939_streamzService.JSC$10807_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",A)};
var qPQ=function(){var A=_.un();this.JSC$10942_streamzService=A;A.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.Pq("channel_type"))};
qPQ.prototype.increment=function(A){this.JSC$10942_streamzService.JSC$10807_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",A)};
var wyM=function(){var A=_.un();this.JSC$10945_streamzService=A;A.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.Pq("channel_type"))};
wyM.prototype.increment=function(A){this.JSC$10945_streamzService.JSC$10807_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",A)};
var gcJ=function(){var A=_.un();this.JSC$10948_streamzService=A;A.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
gcJ.prototype.increment=function(){this.JSC$10948_streamzService.JSC$10807_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var pyJ=function(){var A=_.un();this.JSC$10951_streamzService=A;A.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.Pq("channel_type"),_.Pq("error_type"))};
pyJ.prototype.increment=function(A,L){this.JSC$10951_streamzService.JSC$10807_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",A,L)};
var i3X=function(){var A=_.un();this.JSC$10954_streamzService=A;A.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
i3X.prototype.increment=function(){this.JSC$10954_streamzService.JSC$10807_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var NMZ=function(){var A=_.un();this.JSC$10957_streamzService=A;A.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
NMZ.prototype.increment=function(){this.JSC$10957_streamzService.JSC$10807_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var buM=function(){var A=_.un();this.JSC$10963_streamzService=A;A.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
buM.prototype.increment=function(){this.JSC$10963_streamzService.JSC$10807_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var RqX=function(A){return A.getCount&&typeof A.getCount=="function"?A.getCount():_.jD(A)||typeof A==="string"?A.length:_.lW.getCount(A)},QI$=function(A,L){if(typeof A.every=="function")return A.every(L,void 0);
if(_.jD(A)||typeof A==="string")return Array.prototype.every.call(A,L,void 0);for(var O=_.usl(A),X=_.P9(A),x=X.length,J=0;J<x;J++)if(!L.call(void 0,X[J],O&&O[J],A))return!1;return!0},mlQ=function(A,L,O,X){var x=new _.kO(null);
A&&_.dr(x,A);L&&_.YI(x,L);O&&_.u5(x,O);X&&_.T7(x,X);return x},f7J=function(){var A=_.fe&&_.Eu(_.iHc,10)>=0,L;
if(L=_.Aqe)L=_.Eu(_.p1N,10)>=0;var O=_.SX&&_.Eu(_.iHc,85)>=0;return _.ns||A||L||O},I7X=function(A){var L=_.W$u(A);
return L&&f7J()?-A.scrollLeft:L&&_.f$(A,"overflowX")!="visible"?A.scrollWidth-A.clientWidth-A.scrollLeft:A.scrollLeft},yRS=function(A,L){L=Math.max(L,0);
_.W$u(A)?f7J()?A.scrollLeft=-L:A.scrollLeft=A.scrollWidth-L-A.clientWidth:A.scrollLeft=L},PiS=0,Vfk=!1;
Nc.prototype.set=function(A){this.relativeTimeStart_=A};
Nc.prototype.reset=function(){this.set(_.u1())};
Nc.prototype.get=function(){return this.relativeTimeStart_};
var Zq$=null,jIM=function(){Zq$||(Zq$=new Nc)},Wzn=function(){Zq$||(Zq$=new Nc)};
_.Ty(Wzn,jIM);_.P=eFZ.prototype;_.P.JSC$12322_buffer_="";_.P.set=function(A){this.JSC$12322_buffer_=""+A};
_.P.append=function(A,L,O){this.JSC$12322_buffer_+=String(A);if(L!=null)for(var X=1;X<arguments.length;X++)this.JSC$12322_buffer_+=arguments[X];return this};
_.P.clear=function(){this.JSC$12322_buffer_=""};
_.P.getLength=function(){return this.JSC$12322_buffer_.length};
_.P.toString=function(){return this.JSC$12322_buffer_};
var HqM=function(){var A={type:"unit",style:"narrow"};this.listType_=A&&A.type?A.type:"conjunction";this.listStyle_=A&&A.style?A.style:"long";this.listSymbols_=IlM;A=0;switch(this.listStyle_){case "short":A=1;break;case "narrow":A=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[A];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[A];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[A];this.listEndPattern_=
this.listSymbols_.AND_END[A];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[A];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[A];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[A];this.listEndPattern_=this.listSymbols_.OR_END[A];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[A],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[A],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[A],this.listEndPattern_=this.listSymbols_.UNIT_END[A]}};
HqM.prototype.format=function(A){return zqz(this,A)};
var zqz=function(A,L){var O=L.length;switch(O){case 0:return"";case 1:return String(L[0]);case 2:return A.listTwoPattern_.replace("{0}",String(L[0])).replace("{1}",String(L[1]))}for(var X=A.listStartPattern_.replace("{0}",String(L[0])).replace("{1}",String(L[1])),x=2;x<O-1;++x)X=A.listMiddlePattern_.replace("{0}",X).replace("{1}",String(L[x]));return A.listEndPattern_.replace("{0}",X).replace("{1}",String(L[O-1]))},lxM=function(){var A={style:1};
this.style_=(A==null?void 0:A.style)||0;this.durationSymbols_=_.S8N||_.YYJ},BoJ=function(A,L){switch(L){default:case "years":return A.durationSymbols_.YEAR;
case "months":return A.durationSymbols_.MONTH;case "weeks":return A.durationSymbols_.WEEK;case "days":return A.durationSymbols_.DAY;case "hours":return A.durationSymbols_.HOUR;case "minutes":return A.durationSymbols_.MINUTE;case "seconds":return A.durationSymbols_.SECOND}},yf=function(A,L,O){a:{O=BoJ(A,O);
switch(A.style_){case 1:if(O.LONG!=void 0){A=O.LONG;break a}case 2:if(O.NARROW!=void 0){A=O.NARROW;break a}default:A=O.SHORT;break a}A=void 0}return A?(new _.ctn("{DURATION_VALUE,plural,"+A+"}")).format({DURATION_VALUE:L}):""};
lxM.prototype.format=function(A){var L=[],O=A.years,X=A.months,x=A.weeks,J=A.days,Y=A.hours,T=A.minutes;A=A.seconds;O!=null&&L.push(yf(this,O,"years"));X!=null&&L.push(yf(this,X,"months"));x!=null&&L.push(yf(this,x,"weeks"));J!=null&&L.push(yf(this,J,"days"));Y!=null&&L.push(yf(this,Y,"hours"));T!=null&&L.push(yf(this,T,"minutes"));A!=null&&L.push(yf(this,A,"seconds"));return(new HqM).format(L)};
var MOQ=!1,qIz=function(A){_.As.call(this,A.message||A.description||A.name);this.isMissing=A instanceof r8;this.isTimeout=A instanceof _.e1&&A.errorCode=="net.timeout";this.isCanceled=A instanceof _.$f};
_.g(qIz,_.As);qIz.prototype.name="BiscottiError";var r8=function(){_.As.call(this,"Biscotti ID is missing from server")};
_.g(r8,_.As);r8.prototype.name="BiscottiMissingError";var KI=null,QJz=function(){try{var A=_.WY("yt.ads.biscotti.getId_");return A?A():A9$()}catch(L){return _.Ry(L)}},GNM,$lM=function(A,L){return _.JY({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:A,command:L}})},a7J=function(A){return _.JY({type:"SET_GUIDE_IS_EXPANDED",
payload:A})},k_k=function(A){return _.JY({type:"SET_ONLINE_STATUS",
payload:A})},Ul7=function(A,L){return _.JY({type:"SET_TRANSCRIPTION_STATE",
payload:{high:A,low:L}})},vDS=function(A){return _.JY({type:"SET_OVERLAY_STATE",
payload:A})},oDn=0,AWM=function(A,L,O){var X=this;
this.priority=L;this.delay=O;this.jobId=0;this.completionCallback=_.rk;this.wrappedJob=function(){A();X.completionCallback()};
this.id=++oDn};
AWM.prototype.enqueue=function(A){this.completionCallback=A;this.jobId=_.c1.addJob(this.wrappedJob,this.priority,this.delay)};
var Z6=function(){_.Vx.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.g(Z6,_.Vx);Z6.prototype.addJob=function(A,L,O){A=new AWM(A,L,O);this.taskIdToTask.set(A.id,A);this.isActive?LTn(this,A):this.suspendedTasks.add(A);return A.id};
var LTn=function(A,L){A.scheduledTasks.add(L);L.enqueue(function(){A.scheduledTasks.delete(L)})};
Z6.prototype.cancelJob=function(A){(A=this.taskIdToTask.get(A))&&(this.scheduledTasks.delete(A)?_.c1.cancelJob(A.jobId):this.suspendedTasks.delete(A))};
Z6.prototype.pause=function(){var A=this;this.isActive=!1;this.scheduledTasks.forEach(function(L){_.c1.cancelJob(L.jobId);A.suspendedTasks.add(L)});
this.scheduledTasks.clear()};
Z6.prototype.start=function(){var A=this;this.isActive=!0;this.suspendedTasks.forEach(function(L){LTn(A,L)});
this.suspendedTasks.clear()};
Z6.prototype.reset=function(){this.scheduledTasks.forEach(function(A){_.c1.cancelJob(A.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var jU=function(A,L){this.JSC$14003_networkService_=A;this.pageRequestPromise=L};
jU.prototype.fetchData=function(A){Osk(this,this.JSC$14003_networkService_.fetchData(A))};
jU.prototype.postData=function(A,L){Osk(this,this.JSC$14003_networkService_.postData(A,L))};
jU.prototype.requestDataForServiceEndpoint=function(A,L){Osk(this,this.JSC$14003_networkService_.requestDataForServiceEndpoint(A,L))};
var Osk=function(A,L){L.then(A.pageRequestPromise.onSuccess,A.pageRequestPromise.onFailure,A.pageRequestPromise)};
jU.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var WU=function(A){this.buildNetworkRequest_=A;this.pendingRequests_=new Set};
WU.prototype.reset=function(){this.pendingRequests_.forEach(function(A){A.cancel()});
this.pendingRequests_.clear()};
WU.prototype.fetchData=function(A){var L=XMk(this);L.fetchData(A);return L.pageRequestPromise};
WU.prototype.postData=function(A,L){var O=XMk(this);O.postData(A,L);return O.pageRequestPromise};
WU.prototype.requestDataForServiceEndpoint=function(A,L){var O=XMk(this);O.requestDataForServiceEndpoint(A,L);return O.pageRequestPromise};
var XMk=function(A){var L=A.buildNetworkRequest_();A.pendingRequests_.add(L);var O=function(){A.pendingRequests_.delete(L)};
L.pageRequestPromise.then(O,O);return L},xKS=function(A){var L=new Z6;
this.JSC$14010_networkService_=A;this.JSC$14010_taskManager_=L;this.JSC$14010_networkManager_=new WU(this.networkRequestFactory_.bind(this))};
_.P=xKS.prototype;_.P.networkRequestFactory_=function(){return new jU(this.JSC$14010_networkService_,new _.Ec(this.JSC$14010_taskManager_))};
_.P.reset=function(){this.JSC$14010_taskManager_.reset();this.JSC$14010_networkManager_.reset()};
_.P.start=function(){this.JSC$14010_taskManager_.start()};
_.P.pause=function(){this.JSC$14010_taskManager_.pause()};
_.P.getTaskManager=function(){return this.JSC$14010_taskManager_};
_.P.getNetworkManager=function(){return this.JSC$14010_networkManager_};
var QFz=null,IxX=[],GQ=0,cd=0,lf=null,sHM=!1,CI=null,ZhJ=void 0,JWQ=function(){var A=(0,_.PZL)();A&&ZuJ(A,A.mechanism.__iterator__(!0))},RR=function(A){this.token=A};
RR.getInstance=function(){var A;return _.u(function(L){if(L.nextAddress==1)return L.yield(_.A4(),2);A=L.yieldResult;if(!A)return L.return();RR.instance||(RR.instance=new RR(A));return L.return(RR.instance)})};
var MfQ=function(A){var L;return _.u(function(O){if(O.nextAddress==1)return O.yield(Hhz(A.token),2);L=O.yieldResult;return O.return(L.clear("resource-manifest-assets"))})},Fd=function(A){this.token=A};
Fd.getInstance=function(){var A;return _.u(function(L){if(L.nextAddress==1)return L.yield(_.A4(),2);A=L.yieldResult;if(!A)return L.return();Fd.instance||(Fd.instance=new Fd(A));return L.return(Fd.instance)})};
var zFk=function(A){var L;return _.u(function(O){if(O.nextAddress==1)return O.yield(Hhz(A.token),2);L=O.yieldResult;return O.yield(L.clear("auth"),0)})},DG$=!1,P1J=function(A){_.As.call(this,A)};
_.g(P1J,_.ji3);var dKn="a[href] a[tabindex] area[href] iframe [tabindex] [contentEditable] summary input:not([disabled]) select:not([disabled]) textarea:not([disabled]) button:not([disabled]) object:not([disabled])".split(" ");Wf$()&&dKn.push("details:not(:has(summary))");var zAX=dKn.join(",");var VqS=function(){var A=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return A?parseInt(A[1],10):0},YiM=function(A){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+A)!=-1||document.currentScript.src.indexOf("&"+A)!=-1)},uun=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},tqJ=function(A){A.length?TAS(A.shift(),function(){tqJ(A)}):eBJ()},hB$=function(A){return"chrome-extension://"+A+"/cast_sender.js"},TAS=function(A,
L,O){var X=document.createElement("script");
X.onerror=L;O&&(X.onload=O);_.UB(X,_.rX(A));(document.head||document.documentElement).appendChild(X)},VXX=function(){var A=VqS(),L=[];
if(A>1){var O=A-1;L.push("//www.gstatic.com/eureka/clank/"+A+"/cast_sender.js");L.push("//www.gstatic.com/eureka/clank/"+O+"/cast_sender.js")}return L},eBJ=function(){var A=uun();
A&&A(!1,"No cast extension found")},nJk=function(){if(DKM){var A=2,L=uun(),O=function(){A--;
A==0&&L&&L(!0)};
window.__onGCastApiAvailable=O;TAS("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",eBJ,O)}},DRX=function(){nJk();
var A=VXX();A.push("//www.gstatic.com/eureka/clank/cast_sender.js");tqJ(A)},EJS=function(){nJk();
var A=VXX();A.push.apply(A,_.le(b4J.map(hB$)));A.push("//www.gstatic.com/eureka/clank/cast_sender.js");tqJ(A)},DKM=YiM("loadCastFramework")||YiM("loadCastApplicationFramework"),b4J=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var em$=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(em$,_.AE);var Ezk=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(Ezk,_.AE);var nzn=function(){var A=new Ezk;return _.zy(A,1,3)};var HU=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(HU,_.AE);var DaB=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(DaB,_.AE);var tXZ=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(tXZ,_.AE);tXZ.prototype.getToken=function(){return _.mT(this,1)};
tXZ.prototype.setToken=function(A){return _.oG(this,1,A)};
var Thk=function(A){return _.jZ(A,3,_.Ez,_.Xq())},VMJ=function(A){return _.jZ(A,6,_.Ez,_.Xq())};var z3=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(z3,_.AE);z3.prototype.getToken=function(){return _.ET(this,tXZ,2)};
z3.prototype.setToken=function(A){return _.eg(this,2,A)};
z3.prototype.getName=function(){return _.mT(this,6)};
var bsJ=_.Vo(z3);var hm$=function(A,L,O){this.requestMessage=A;this.methodDescriptor=L;this.metadata=O};
hm$.prototype.getMetadata=function(){return this.metadata};var SiM=function(A,L){L=L===void 0?{}:L;this.responseMessage=A;this.metadata=L;this.status=null};
SiM.prototype.getMetadata=function(){return this.metadata};
SiM.prototype.getStatus=function(){return this.status};var BU=function(A,L,O,X,x){this.name=A;this.methodType="unary";this.requestType=L;this.responseType=O;this.requestSerializeFn=X;this.responseDeserializeFn=x},qiJ=function(A,L,O){O=O===void 0?{}:O;
return new hm$(L,A,O)};
BU.prototype.getName=function(){return this.name};var M4=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(M4,_.AE);M4.prototype.getHeader=function(){return _.ET(this,HU,1)};
M4.prototype.setHeader=function(A){return _.eg(this,1,A)};
M4.prototype.hasHeader=function(){return _.i1(this,HU,1)};var gzS=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(gzS,_.AE);var wM$=new BU("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",M4,gzS,function(A){return A.serialize()},_.Vo(gzS));var $_=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g($_,_.AE);$_.prototype.getHeader=function(){return _.ET(this,HU,1)};
$_.prototype.setHeader=function(A){return _.eg(this,1,A)};
$_.prototype.hasHeader=function(){return _.i1(this,HU,1)};var pMJ=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(pMJ,_.AE);var isX=new BU("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",$_,pMJ,function(A){return A.serialize()},_.Vo(pMJ));var aw=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(aw,_.AE);aw.prototype.getHeader=function(){return _.ET(this,HU,1)};
aw.prototype.setHeader=function(A){return _.eg(this,1,A)};
aw.prototype.hasHeader=function(){return _.i1(this,HU,1)};var NAX=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(NAX,_.AE);NAX.prototype.getLink=function(){return _.ET(this,z3,1)};var rW$=new BU("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",aw,NAX,function(A){return A.serialize()},_.Vo(NAX));var k_=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(k_,_.AE);k_.prototype.getHeader=function(){return _.ET(this,HU,1)};
k_.prototype.setHeader=function(A){return _.eg(this,1,A)};
k_.prototype.hasHeader=function(){return _.i1(this,HU,1)};var KTQ=new BU("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",k_,z3,function(A){return A.serialize()},bsJ);var GyJ=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(GyJ,_.AE);var lFM=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(lFM,_.AE);lFM.prototype.getUrl=function(){return _.mT(this,2)};
lFM.prototype.setUrl=function(A){return _.oG(this,2,A)};var cWM=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(cWM,_.AE);var C1X=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(C1X,_.AE);var FTJ=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(FTJ,_.AE);var pGS=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(pGS,_.AE);var wGS=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(wGS,_.AE);var RmM=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(RmM,_.AE);var cYQ=_.Vo(RmM);var QHM=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(QHM,_.AE);var mKS=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(mKS,_.AE);_.P=mKS.prototype;_.P.getHeader=function(){return _.ET(this,HU,1)};
_.P.setHeader=function(A){return _.eg(this,1,A)};
_.P.hasHeader=function(){return _.i1(this,HU,1)};
_.P.getCompletionUrl=function(){return _.mT(this,6)};
_.P.getDeviceId=function(){return _.mT(this,11)};var fFQ=new BU("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",mKS,RmM,function(A){return A.serialize()},cYQ);var IFz=new Set(["SAPISIDHASH","APISIDHASH"]);var yWS=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(yWS,_.AE);yWS.prototype.getMessage=function(){return _.mT(this,2)};
var ZsB=_.Vo(yWS);var UK=function(A,L){this.xhrNodeReadableStream_=A.nodeReadableStream;this.grpcResponseDeserializeFn_=L;this.JSC$20214_xhr_=A.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$20214_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&jHk(this)},$KX=function(A,L){var O=new WTM;
_.CT(A.JSC$20214_xhr_,"complete",function(){if(A.JSC$20214_xhr_.isSuccess()){var X=A.JSC$20214_xhr_.getResponseText();var x;if(x=L)x=A.JSC$20214_xhr_,x.JSC$10816_xhr_&&x.isComplete()?(x=x.JSC$10816_xhr_.getResponseHeader("Content-Type"),x=x===null?void 0:x):x=void 0,x=x==="text/plain";if(x){if(!atob)throw Error("Nj");X=atob(X)}try{var J=A.grpcResponseDeserializeFn_(X)}catch(T){vU(A,vKn(new _.mS(13,"Error when deserializing response data; error: "+T+(", response: "+X)),O));return}X=_.kDy(A.JSC$20214_xhr_.getStatus());
HsM(A,zmB(A));X==0?BAZ(A,J):vU(A,vKn(new _.mS(X,"Xhr succeeded but the status code is not 200"),O))}else{X=A.JSC$20214_xhr_.getResponseText();J=zmB(A);if(X){var Y=MX$(A,X);X=Y.code;x=Y.details;Y=Y.metadata}else X=2,x="Rpc failed due to xhr error. uri: "+String(A.JSC$20214_xhr_.JSC$10816_lastUri_)+", error code: "+A.JSC$20214_xhr_.JSC$10816_lastErrorCode_+", error: "+A.JSC$20214_xhr_.getLastError(),Y=J;HsM(A,J);vU(A,vKn(new _.mS(X,x,Y),O))}})},jHk=function(A){A.xhrNodeReadableStream_.on("data",function(L){if("1"in
L){var O=L["1"];
try{var X=A.grpcResponseDeserializeFn_(O)}catch(x){vU(A,new _.mS(13,"Error when deserializing response data; error: "+x+(", response: "+O)))}X&&BAZ(A,X)}if("2"in L)for(L=MX$(A,L["2"]),O=0;O<A.onStatusCallbacks_.length;O++)A.onStatusCallbacks_[O](L)});
A.xhrNodeReadableStream_.on("end",function(){HsM(A,zmB(A));for(var L=0;L<A.onEndCallbacks_.length;L++)A.onEndCallbacks_[L]()});
A.xhrNodeReadableStream_.on("error",function(){if(A.JSC$20214_onErrorCallbacks_.length!=0){var L=A.JSC$20214_xhr_.JSC$10816_lastErrorCode_;L!==0||A.JSC$20214_xhr_.isSuccess()||(L=6);var O=-1;switch(L){case 0:var X=2;break;case 7:X=10;break;case 8:X=4;break;case 6:O=A.JSC$20214_xhr_.getStatus();X=_.kDy(O);break;default:X=14}HsM(A,zmB(A));L=_.Wyu(L)+", error: "+A.JSC$20214_xhr_.getLastError();O!=-1&&(L+=", http status code: "+O);vU(A,new _.mS(X,L))}})},zmB=function(A){var L={},O=QD$(A.JSC$20214_xhr_);
Object.keys(O).forEach(function(X){L[X]=O[X]});
return L},MX$=function(A,L){var O=2,X={};
try{var x=ZsB(L);O=_.x8(x,1);var J=x.getMessage();_.OT(x,FzB,3,_.Xq()).length&&(X["grpc-web-status-details-bin"]=L)}catch(Y){A.JSC$20214_xhr_&&A.JSC$20214_xhr_.getStatus()===404?(O=5,J="Not Found: "+String(A.JSC$20214_xhr_.JSC$10816_lastUri_)):(O=14,J="Unable to parse RpcStatus: "+Y)}return{code:O,details:J,metadata:X}};
UK.prototype.on=function(A,L){A=="data"?this.onDataCallbacks_.push(L):A=="metadata"?this.onMetadataCallbacks_.push(L):A=="status"?this.onStatusCallbacks_.push(L):A=="end"?this.onEndCallbacks_.push(L):A=="error"&&this.JSC$20214_onErrorCallbacks_.push(L);return this};
var ow=function(A,L){L=A.indexOf(L);L>-1&&A.splice(L,1)};
UK.prototype.removeListener=function(A,L){A=="data"?ow(this.onDataCallbacks_,L):A=="metadata"?ow(this.onMetadataCallbacks_,L):A=="status"?ow(this.onStatusCallbacks_,L):A=="end"?ow(this.onEndCallbacks_,L):A=="error"&&ow(this.JSC$20214_onErrorCallbacks_,L);return this};
UK.prototype.cancel=function(){this.JSC$20214_xhr_.abort()};
var BAZ=function(A,L){for(var O=0;O<A.onDataCallbacks_.length;O++)A.onDataCallbacks_[O](L)},HsM=function(A,L){for(var O=0;O<A.onMetadataCallbacks_.length;O++)A.onMetadataCallbacks_[O](L)},vU=function(A,L){for(var O=0;O<A.JSC$20214_onErrorCallbacks_.length;O++)A.JSC$20214_onErrorCallbacks_[O](L)};
UK.prototype.cancel=UK.prototype.cancel;UK.prototype.removeListener=UK.prototype.removeListener;UK.prototype.on=UK.prototype.on;var WTM=function(){var A=Error.call(this);this.message=A.message;"stack"in A&&(this.stack=A.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.g(WTM,Error);var Ah=function(A){this.JSC$20223_worker_=A.worker||null;this.JSC$20223_streamBinaryChunks_=A.streamBinaryChunks||!1;this.JSC$20223_credentialsMode_=void 0};
_.Ty(Ah,_.vLM);Ah.prototype.createInstance=function(){var A=new LW(this.JSC$20223_worker_,this.JSC$20223_streamBinaryChunks_);this.JSC$20223_credentialsMode_&&A.setCredentialsMode(this.JSC$20223_credentialsMode_);return A};
Ah.prototype.setCredentialsMode=function(A){this.JSC$20223_credentialsMode_=A};
var LW=function(A,L){_.lb.call(this);this.JSC$20227_worker_=A;this.JSC$20227_streamBinaryChunks_=L;this.JSC$20227_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$20227_responseHeaders_=null;this.JSC$20227_method_="GET";this.JSC$20227_url_="";this.inProgress_=!1;this.JSC$20227_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.Ty(LW,_.lb);LW.prototype.open=function(A,L){if(this.readyState!=0)throw this.abort(),Error("Oj");this.JSC$20227_method_=A;this.JSC$20227_url_=L;this.readyState=1;OZ(this)};
LW.prototype.send=function(A){if(this.readyState!=1)throw this.abort(),Error("Pj");if(this.abortController_.signal.aborted)throw this.abort(),Error("Qj");this.inProgress_=!0;var L={headers:this.requestHeaders_,method:this.JSC$20227_method_,credentials:this.JSC$20227_credentialsMode_,cache:void 0,signal:this.abortController_.signal};A&&(L.body=A);(this.JSC$20227_worker_||_.Ou).fetch(new Request(this.JSC$20227_url_,L)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
LW.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.abortController_.abort();this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,XN(this));this.readyState=0};
LW.prototype.handleResponse_=function(A){if(this.inProgress_&&(this.fetchResponse_=A,this.JSC$20227_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$20227_responseHeaders_=A.headers,this.readyState=2,OZ(this)),this.inProgress_&&(this.readyState=3,OZ(this),this.inProgress_)))if(this.responseType==="arraybuffer")A.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.Ou.ReadableStream!==
"undefined"&&"body"in A){this.currentReader_=A.body.getReader();if(this.JSC$20227_streamBinaryChunks_){if(this.responseType)throw Error("Rj");this.response=[]}else this.response=this.responseText="",this.JSC$20227_textDecoder_=new TextDecoder;aFn(this)}else A.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var aFn=function(A){A.currentReader_.read().then(A.handleDataFromStream_.bind(A)).catch(A.handleSendFailure_.bind(A))};
LW.prototype.handleDataFromStream_=function(A){if(this.inProgress_){if(this.JSC$20227_streamBinaryChunks_&&A.value)this.response.push(A.value);else if(!this.JSC$20227_streamBinaryChunks_){var L=A.value?A.value:new Uint8Array(0);if(L=this.JSC$20227_textDecoder_.decode(L,{stream:!A.done}))this.response=this.responseText+=L}A.done?XN(this):OZ(this);this.readyState==3&&aFn(this)}};
LW.prototype.handleResponseText_=function(A){this.inProgress_&&(this.response=this.responseText=A,XN(this))};
LW.prototype.handleResponseArrayBuffer_=function(A){this.inProgress_&&(this.response=A,XN(this))};
LW.prototype.handleSendFailure_=function(){this.inProgress_&&XN(this)};
var XN=function(A){A.readyState=4;A.fetchResponse_=null;A.currentReader_=null;A.JSC$20227_textDecoder_=null;OZ(A)};
LW.prototype.setRequestHeader=function(A,L){this.requestHeaders_.append(A,L)};
LW.prototype.getResponseHeader=function(A){return this.JSC$20227_responseHeaders_?this.JSC$20227_responseHeaders_.get(A.toLowerCase())||"":""};
LW.prototype.getAllResponseHeaders=function(){if(!this.JSC$20227_responseHeaders_)return"";for(var A=[],L=this.JSC$20227_responseHeaders_.entries(),O=L.next();!O.done;)O=O.value,A.push(O[0]+": "+O[1]),O=L.next();return A.join("\r\n")};
LW.prototype.setCredentialsMode=function(A){this.JSC$20227_credentialsMode_=A};
var OZ=function(A){A.onreadystatechange&&A.onreadystatechange.call(A)};
Object.defineProperty(LW.prototype,"withCredentials",{get:function(){return this.JSC$20227_credentialsMode_==="include"},
set:function(A){this.setCredentialsMode(A?"include":"same-origin")}});var kyZ=function(A){var L="";_.lW.forEach(A,function(O,X){L+=X;L+=":";L+=O;L+="\r\n"});
return L},UKJ=function(A,L,O){if(_.lW.isEmpty(O))return A;
O=kyZ(O);if(typeof A==="string")return _.v6(A,_.zD(L),O);_.Hq(A,L,O);return A};var vzJ=function(){this.isInputValid_=!0;this.JSC$20232_streamPos_=0;this.leftoverInput_=""};
vzJ.prototype.isInputValid=function(){return this.isInputValid_};
vzJ.prototype.decode=function(A){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("Sj`"+this.JSC$20232_streamPos_+"`stream already broken`"+A);this.leftoverInput_+=A;A=Math.floor(this.leftoverInput_.length/4);if(A==0)return null;try{var L=_.Dmd(this.leftoverInput_.slice(0,A*4))}catch(O){throw L=this.leftoverInput_,A=O.message,this.isInputValid_=!1,Error("Sj`"+this.JSC$20232_streamPos_+"`"+A+"`"+L);}this.JSC$20232_streamPos_+=A*4;this.leftoverInput_=this.leftoverInput_.slice(A*4);return L};var fI=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$20235_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
fI.prototype.isInputValid=function(){return this.state_!=3};
var xk=function(A,L,O,X){A.state_=3;A.errorMessage_="The stream is broken @"+A.JSC$20235_streamPos_+"/"+O+". Error: "+X+". With input:\n"+L;throw Error(A.errorMessage_);};
fI.prototype.acceptsBinaryInput=function(){return!0};
fI.prototype.parse=function(A){function L(V){V&128&&xk(J,Y,T,"invalid tag");(V&7)!=2&&xk(J,Y,T,"invalid wire type");J.tag_=V>>>3;J.tag_!=1&&J.tag_!=2&&J.tag_!=15&&xk(J,Y,T,"unexpected tag");J.state_=1;J.length_=0;J.countLengthBytes_=0}
function O(V){J.countLengthBytes_++;J.countLengthBytes_==5&&V&240&&xk(J,Y,T,"message length too long");J.length_|=(V&127)<<(J.countLengthBytes_-1)*7;V&128||(J.state_=2,J.countMessageBytes_=0,typeof Uint8Array!=="undefined"?J.messageBuffer_=new Uint8Array(J.length_):J.messageBuffer_=Array(J.length_),J.length_==0&&x())}
function X(V){J.messageBuffer_[J.countMessageBytes_++]=V;J.countMessageBytes_==J.length_&&x()}
function x(){if(J.tag_<15){var V={};V[J.tag_]=J.messageBuffer_;J.result_.push(V)}J.state_=0}
for(var J=this,Y=A instanceof Array?A:new Uint8Array(A),T=0;T<Y.length;){switch(J.state_){case 3:xk(J,Y,T,"stream already broken");break;case 0:L(Y[T]);break;case 1:O(Y[T]);break;case 2:X(Y[T]);break;default:throw Error("Tj`"+J.state_);}J.JSC$20235_streamPos_++;T++}A=J.result_;J.result_=[];return A.length>0?A:null};var AYJ=function(){this.errorMessage_=null;this.JSC$20238_streamPos_=0;this.base64Decoder_=new vzJ;this.pbParser_=new fI};
AYJ.prototype.isInputValid=function(){return this.errorMessage_===null};
var ozS=function(A,L,O){A.errorMessage_="The stream is broken @"+A.JSC$20238_streamPos_+". Error: "+O+". With input:\n"+L;throw Error(A.errorMessage_);};
AYJ.prototype.acceptsBinaryInput=function(){return!1};
AYJ.prototype.parse=function(A){this.errorMessage_!==null&&ozS(this,A,"stream already broken");var L=null;try{var O=this.base64Decoder_.decode(A);L=O===null?null:this.pbParser_.parse(O)}catch(X){ozS(this,A,X.message)}this.JSC$20238_streamPos_+=A.length;return L};var oKQ=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$20241_streamPos_=0;this.result_=[];this.statusParsed_=!1};
oKQ.prototype.isInputValid=function(){return this.errorMessage_===null};
oKQ.prototype.acceptsBinaryInput=function(){return!1};
oKQ.prototype.parse=function(A){function L(V){J.state_=6;J.errorMessage_="The stream is broken @"+J.JSC$20241_streamPos_+"/"+Y+". Error: "+V+". With input:\n";throw Error(J.errorMessage_);}
function O(){J.jsonStreamParser_=new _.EQ({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function X(V){if(V)for(var E=0;E<V.length;E++){var n={};n[1]=V[E];J.result_.push(n)}}
function x(V){if(V){(J.statusParsed_||V.length>1)&&L("extra status: "+V);J.statusParsed_=!0;var E={};E[2]=V[0];J.result_.push(E)}}
for(var J=this,Y=0;Y<A.length;){var T;if(T=J.state_!==2){a:{for(;Y<A.length;){if(!_.eK(A[Y])){T=!0;break a}Y++;J.JSC$20241_streamPos_++}T=!1}T=!T}if(T)return null;switch(J.state_){case 6:L("stream already broken");break;case 0:A[Y]==="["?(J.state_=1,Y++,J.JSC$20241_streamPos_++):L("unexpected input token");break;case 1:A[Y]==="["?(J.state_=2,O()):A[Y]===","||A.slice(Y,Y+5)=="null,"?J.state_=3:A[Y]==="]"?(J.state_=5,Y++,J.JSC$20241_streamPos_++):L("unexpected input token");break;case 2:T=J.jsonStreamParser_.parse(A.substring(Y));
X(T);J.jsonStreamParser_.done()?(J.state_=3,T=J.jsonStreamParser_.JSC$12449_buffer_,J.JSC$20241_streamPos_+=A.length-Y-T.length,A=T,Y=0):(J.JSC$20241_streamPos_+=A.length-Y,Y=A.length);break;case 3:A[Y]===","||A.slice(Y,Y+5)=="null,"?(J.state_=4,O(),J.jsonStreamParser_.parse("["),Y+=A[Y]===","?1:5,J.JSC$20241_streamPos_++):A[Y]==="]"&&(J.state_=5,Y++,J.JSC$20241_streamPos_++);break;case 4:T=J.jsonStreamParser_.parse(A.substring(Y));x(T);J.jsonStreamParser_.done()?(J.state_=5,T=J.jsonStreamParser_.JSC$12449_buffer_,
J.JSC$20241_streamPos_+=A.length-Y-T.length,A=T,Y=0):(J.JSC$20241_streamPos_+=A.length-Y,Y=A.length);break;case 5:L("extra input after stream end")}}return J.result_.length>0?(A=J.result_,J.result_=[],A):null};var AVn=function(A){this.JSC$20244_xhr_=A;this.JSC$20244_parser_=null;this.status_=this.JSC$20244_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$20244_textDecoder_=null;this.JSC$20244_eventHandler_=new _.sI(this);this.JSC$20244_eventHandler_.listen(this.JSC$20244_xhr_,"readystatechange",this.JSC$20246_readyStateChangeHandler_)},sZ=function(A,L){A.status_!=L&&(A.status_=L,A.statusHandler_&&A.statusHandler_())},Jh=function(A){A.JSC$20244_eventHandler_.removeAll();
if(A.JSC$20244_xhr_){var L=A.JSC$20244_xhr_;A.JSC$20244_xhr_=null;L.abort();L.dispose()}};
AVn.prototype.getStatus=function(){return this.status_};
AVn.prototype.JSC$20246_readyStateChangeHandler_=function(A){A=A.target;try{if(A==this.JSC$20244_xhr_)a:{var L=_.ye(this.JSC$20244_xhr_),O=this.JSC$20244_xhr_.JSC$10816_lastErrorCode_,X=this.JSC$20244_xhr_.getStatus(),x=this.JSC$20244_xhr_.getResponseText();A=[];if(this.JSC$20244_xhr_.getResponse()instanceof Array){var J=this.JSC$20244_xhr_.getResponse();J.length>0&&J[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,A=J)}if(!(L<3||L==3&&!x&&A.length==0))if(X=X==200||X==206,L==4&&(O==8?
sZ(this,7):O==7?sZ(this,8):X||sZ(this,3)),this.JSC$20244_parser_||(this.JSC$20244_parser_=LCz(this.JSC$20244_xhr_),this.JSC$20244_parser_==null&&sZ(this,5)),this.status_>2)Jh(this);else{if(A.length>this.JSC$20244_pos_){var Y=A.length;O=[];try{if(this.JSC$20244_parser_.acceptsBinaryInput())for(var T=0;T<Y;T++){var V=this.JSC$20244_parser_.parse(Array.from(A[T]));V&&(O=O.concat(V))}else{V="";if(!this.JSC$20244_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("Uj");this.JSC$20244_textDecoder_=
new TextDecoder}for(T=0;T<Y;T++)V+=this.JSC$20244_textDecoder_.decode(A[T],{stream:L==4&&T==Y-1});O=this.JSC$20244_parser_.parse(V)}A.splice(0,Y);O&&this.dataHandler_(O)}catch(n){sZ(this,5);Jh(this);break a}}else if(x.length>this.JSC$20244_pos_){T=x.slice(this.JSC$20244_pos_);this.JSC$20244_pos_=x.length;try{var E=this.JSC$20244_parser_.parse(T);E!=null&&this.dataHandler_&&this.dataHandler_(E)}catch(n){sZ(this,5);Jh(this);break a}}L==4?(x.length!=0||this.hasStreamingResponseData_?sZ(this,2):sZ(this,
4),Jh(this)):sZ(this,1)}}}catch(n){sZ(this,6),Jh(this)}};var LRX=function(A){A=this.xhrReader_=A;var L=(0,_.is)(this.onData_,this);A.dataHandler_=L;A=this.xhrReader_;L=(0,_.is)(this.onStatusChange_,this);A.statusHandler_=L;this.JSC$20248_callbackMap_={};this.callbackOnceMap_={}};
_.P=LRX.prototype;_.P.on=function(A,L){var O=this.JSC$20248_callbackMap_[A];O||(O=[],this.JSC$20248_callbackMap_[A]=O);O.push(L);return this};
_.P.addListener=function(A,L){this.on(A,L);return this};
_.P.removeListener=function(A,L){var O=this.JSC$20248_callbackMap_[A];O&&_.y_(O,L);(A=this.callbackOnceMap_[A])&&_.y_(A,L);return this};
_.P.once=function(A,L){var O=this.callbackOnceMap_[A];O||(O=[],this.callbackOnceMap_[A]=O);O.push(L);return this};
_.P.onData_=function(A){var L=this.JSC$20248_callbackMap_.data;L&&O5J(A,L);(L=this.callbackOnceMap_.data)&&O5J(A,L);this.callbackOnceMap_.data=[]};
var O5J=function(A,L){for(var O={},X=0;X<A.length;O={message$jscomp$1007:void 0},X++)O.message$jscomp$1007=A[X],L.forEach(function(x){return function(J){try{J(x.message$jscomp$1007)}catch(Y){}}}(O))};
LRX.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:X6S(this,"readable");break;case 5:case 6:case 4:case 7:case 3:X6S(this,"error");break;case 8:X6S(this,"close");break;case 2:X6S(this,"end")}};
var X6S=function(A,L){var O=A.JSC$20248_callbackMap_[L];O&&O.forEach(function(X){try{X()}catch(x){}});
(O=A.callbackOnceMap_[L])&&O.forEach(function(X){X()});
A.callbackOnceMap_[L]=[]};var xSZ=function(){var A={format:"jspb"};A=A===void 0?{}:A;this.suppressCorsPreflight=A.suppressCorsPreflight||_.WY("suppressCorsPreflight",A)||!1;this.withCredentials=A.withCredentials||_.WY("withCredentials",A)||!1;this.streamInterceptors=A.streamInterceptors||[];this.unaryInterceptors=A.unaryInterceptors||[];this.workerScope=A.workerScope;this.chunkedServerStreaming=A.useFetchDownloadStreams||!1},P_k=function(A,L,O,X,x,J){J=J===void 0?{}:J;
var Y=L.substring(0,L.length-x.name.length),T,V=(T=J)==null?void 0:T.signal;return sSz(function(E){return new Promise(function(n,t){if(V==null?0:V.aborted){var b=new _.mS(1,"Aborted");b.cause=V.reason;t(b)}else{var S={},w=JVz(A,E,Y);w.on("error",function(l){return void t(l)});
w.on("metadata",function(l){S=l});
w.on("data",function(l){var F=S;F=F===void 0?{}:F;n(new SiM(l,F))});
V&&V.addEventListener("abort",function(){w.cancel();var l=new _.mS(1,"Aborted");l.cause=V.reason;t(l)})}})},A.unaryInterceptors).call(A,qiJ(x,O,X)).then(function(E){return E.responseMessage})},Pe=function(A,L,O,X,x,J){J=J===void 0?{}:J;
return P_k(A,L,O,X,x,J)};
xSZ.prototype.serverStreaming=function(A,L,O,X){var x=this,J=A.substring(0,A.length-X.name.length);return dSJ(function(Y){var T=Y.methodDescriptor,V=Y.getMetadata(),E=YvJ(x,!1);V=u4n(x,V,E,J+T.getName());var n=Tkz(E,T.responseDeserializeFn,!0);Y=T.requestSerializeFn(Y.requestMessage);E.send(V,"POST",Y);return n},this.streamInterceptors).call(this,qiJ(X,L,O))};
var JVz=function(A,L,O){var X=L.methodDescriptor,x=L.getMetadata(),J=YvJ(A,!0);A=u4n(A,x,J,O+X.getName());O=Tkz(J,X.responseDeserializeFn,!1);$KX(O,x["X-Goog-Encode-Response-If-Executable"]==="base64");L=X.requestSerializeFn(L.requestMessage);J.send(A,"POST",L);return O},YvJ=function(A,L){L=A.chunkedServerStreaming&&!L;
return A.workerScope||L?new _.I$(new Ah({worker:A.workerScope,streamBinaryChunks:L})):new _.I$},u4n=function(A,L,O,X){L["Content-Type"]="application/json+protobuf";
L["X-User-Agent"]="grpc-web-javascript/0.1";var x=L.Authorization;if(x&&IFz.has(x.split(" ")[0])||A.withCredentials)O.JSC$10816_withCredentials_=!0;if(A.suppressCorsPreflight)X=UKJ(X,"$httpHeaders",L);else for(A=_.d(Object.keys(L)),x=A.next();!x.done;x=A.next())x=x.value,O.headers.set(x,L[x]);return X},Tkz=function(A,L,O){if(O){O=new AVn(A);
var X=new LRX(O)}return new UK({xhr:A,nodeReadableStream:X},L)},dSJ=function(A,L){return L.reduce(function(O,X){return function(x){return X.intercept(x,O)}},A)},sSz=function(A,L){return L.reduce(function(O,X){return function(x){return X.intercept(x,O)}},A)};var Vun=function(A){this.client_=new xSZ;this.hostname_=A==void 0?A:A.replace(/\/+$/,"")};
_.P=Vun.prototype;_.P.JSC$20266_depositGoogleCredential=function(A,L,O){return Pe(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",A,L||{},isX,O)};
_.P.deleteLink=function(A,L,O){return Pe(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",A,L||{},wM$,O)};
_.P.JSC$20266_finishOAuth=function(A,L,O){return Pe(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",A,L||{},rW$,O)};
_.P.getLink=function(A,L,O){return Pe(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",A,L||{},KTQ,O)};
_.P.startLinkingSession=function(A,L,O){return Pe(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",A,L||{},fFQ,O)};var DSQ=[0,pw7,1,rRk,[0,_.X4,[0,iqJ,-1]],[0,No7],[0,Kz7,-1]];var ebB=function(){this.storage=new Map},njS=function(A,L,O,X,x){if(!A.storage.has(L))return null;
A=_.d(A.storage.get(L));for(L=A.next();!L.done;L=A.next())if(L=L.value,!x||L.linkName===x)if(O&&L.scopes&&EjX(L.scopes,O)||X&&L.capabilities&&EjX(L.capabilities,X))return L;return null},tuS=function(A,L,O){if(!O)A.storage.delete(L);
else if(A.storage.has(L)){var X=A.storage.get(L).filter(function(x){return x.linkName!==O});
X.length>0?A.storage.set(L,X):A.storage.delete(L)}},EjX=function(A,L){L=_.d(L);
for(var O=L.next();!O.done;O=L.next())if(!A.has(O.value))return!1;return!0};var b5J=function(){var A=_.ms("LINK_GAL_DOMAIN");this.alsDomain1p=_.ms("LINK_GAL_DOMAIN");this.alsDomain3p=A;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},hbM=function(A,L){A.apiKey=L;
return A};
b5J.prototype.build=function(){var A={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("Vj");A.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("Wj");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("Xj");A.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(A.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)A.apiKey=
this.apiKey,A.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("Yj");A.oauthToken=this.oauthToken;A.alsDomain=this.alsDomain3p}A.clientXd3=this.clientXd3;A.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(A.authUser=this.authUser);this.bucket!==void 0&&(A.bucket=this.bucket);this.completionUrl!==void 0&&(A.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(A.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(A.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(A.locale=this.locale);A.loggerType=this.loggerType;A.clientEnvironment=this.clientEnvironment;A.colorScheme=this.colorScheme;A.showCloseOption=this.showCloseOption;return A};var IR=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(IR,_.AE);var SvX=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(SvX,_.AE);var qv7=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(qv7,_.AE);var Z8=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(Z8,_.AE);var gjS=function(A){return _.IH(A,1)};var w6J=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(w6J,_.AE);var daJ=_.Vo(w6J),yg=[1,2,3,4,5];var xak=function(A){try{return daJ(A)}catch(L){return null}},p6S=function(){},smJ=function(A,L){switch(_.Gy(L,yg)){case 4:return(L=_.WM(L,qv7,4,yg))&&A.logStateTransition(_.IH(L,1)),!0;
case 5:return(L=_.WM(L,SvX,5,yg))&&A.logInternalEvent(_.IH(L,1)),!0}return!1},Yek=function(A){switch(A){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.ZN(A)}};var OYM=function(A,L){var O=this;this.validator=A;this.messageListener=L;this.dismissCallback=function(){i5M(O,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$20295_receiveMessage=function(X){X.type==="message"&&(X=X.event_,X!==null&&(new URL(O.iframe.src)).origin===X.origin&&O.validator(X.data,X.origin)&&!O.messageListener(X.data)&&(O.JSC$20295_resolveCb!==void 0&&O.JSC$20295_resolveCb(X.data),Nk$(O)))}},PNZ=function(A,L,O){A.uiHandler!==void 0&&i5M(A,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(X,x){A.JSC$20295_resolveCb=X;A.JSC$20295_rejectCb=x;A.iframe=document.createElement("iframe");_.Hf(A.iframe,L);A.uiHandler=O.displayContent(A.iframe,A.dismissCallback);_.CT(window,"message",A.JSC$20295_receiveMessage,!1,A)})},i5M=function(A,L){A.JSC$20295_rejectCb!==void 0&&A.JSC$20295_rejectCb(L);
Nk$(A)},Nk$=function(A){A.uiHandler!==void 0&&A.uiHandler.hideContent();
_.GI(window,"message",A.JSC$20295_receiveMessage,!1,A);A.JSC$20295_resolveCb=void 0;A.JSC$20295_rejectCb=void 0;A.uiHandler=void 0;A.iframe=void 0};var rVz=function(A){if(A===2){var L;A=((L=window)==null?0:L.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return A},JYn=function(A){A=rVz(A);
switch(A){case 0:return"light";case 1:return"dark";default:_.ZN(A)}};var XGZ=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),KR7=function(A,L){this.JSC$20307_linkingSession=A;this.noticeConfig=L;this.displayInfoMap=new Map;var O=new Map;if(_.i1(this.JSC$20307_linkingSession,cWM,7))for(A=_.ET(this.JSC$20307_linkingSession,cWM,7),A=_.OT(A,lFM,1,_.Xq()),A=_.d(A),L=A.next();!L.done;L=A.next())L=L.value,O.set(_.IH(L,1),_.DOy(_.ET(L,_.b1O,3)));if(O.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){L=this.noticeConfig.enabledDataUsageNoticeUis;A=L.has(0)?O.get(1):void 0;L=L.has(1)?O.get(2):void 0;O=A!==void 0&&L!==void 0?O.get(3):void 0;var X=this.noticeConfig.nestedOrigins;var x=new w6J;var J=new IR;x=_.EB(x,2,yg,J);J=new w6J;var Y=new IR;J=_.EB(J,3,yg,Y);Y=[];A!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:A,lastEvent:x,nestedOrigins:X}]),Y.push({trustedUrl:A,lastEvent:x,nestedOrigins:X}));L!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:L,lastEvent:J,nestedOrigins:X}]),Y.push({trustedUrl:L,lastEvent:J,nestedOrigins:X}));O!==void 0?this.displayInfoMap.set(3,[{trustedUrl:O,lastEvent:J,nestedOrigins:X}]):this.displayInfoMap.set(3,Y)}};var GvZ=function(A){var L=new ebB;this.galService=A;this.galCache=L};
GvZ.prototype.getLink=function(A){var L=A.serviceId;var O=A.scopes;var X=A.capabilities;var x=A.linkName;var J=this,Y;return _.u(function(T){if(X!==void 0&&O!==void 0)throw Error("Zj");Y=njS(J.galCache,L,O,X,x);return Y!==null?T.return(Y):T.return(J.galService.getLink({serviceId:L,sessionId:Math.floor(Math.random()*2147483648),scopes:O,capabilities:X,linkName:x}).then(function(V){V=eDn(V);var E=J.galCache;E.storage.has(L)?E.storage.get(L).push(V):E.storage.set(L,[V]);return V}))})};
GvZ.prototype.deleteLink=function(A,L,O){var X=this;return _.u(function(x){tuS(X.galCache,A,O);return x.return(X.galService.deleteLink({serviceId:A,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:L,linkName:O}).then(function(){return!0}))})};var cVB=function(A,L){var O=this;this.validator=A;this.msgHandler=L;this.closedPopupTimeout=this.JSC$20329_rejectCb=this.JSC$20329_resolveCb=this.popup=null;this.JSC$20329_receiveMessage=function(X){if(X!==null&&(X=X.event_,X.source===O.popup)){var x=X.data;if(O.validator(x,X.origin)){var J;(J=O.msgHandler)!=null&&J.call(O,x)||(O.JSC$20329_resolveCb!==null&&O.JSC$20329_resolveCb(x),lVz(O))}}}};
cVB.prototype.open=function(A,L){var O=this;this.popup!==null&&C_S(this);return new Promise(function(X,x){O.JSC$20329_resolveCb=X;O.JSC$20329_rejectCb=x;O.popup=_.z2(window,A,"",L);_.CT(window,"message",O.JSC$20329_receiveMessage,!1,O);FRQ(O)})};
var C_S=function(A,L){A.JSC$20329_rejectCb!==null&&A.JSC$20329_rejectCb(L);lVz(A)},lVz=function(A){A.closedPopupTimeout&&(A.closedPopupTimeout.cancel(),A.closedPopupTimeout=null);
A.popup&&A.popup.close();_.GI(window,"message",A.JSC$20329_receiveMessage,!1,A);A.popup=null;A.JSC$20329_resolveCb=null;A.JSC$20329_rejectCb=null},FRQ=function(A){A.closedPopupTimeout=_.f4V(100).then(function(){A.popup?A.popup.closed?RbJ(A):FRQ(A):C_S(A,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},RbJ=function(A){A.closedPopupTimeout=_.f4V(100).then(function(){C_S(A,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var QSJ=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),mSQ=function(A,L,O,X,x,J,Y,T,V,E){var n=this;this.serviceId=A;this.sessionId=L;this.galService=O;this.oauthDetails=X;this.galLogger=x;this.interactionMode=J;this.redirectServiceUrl=Y;this.consentLanguageKeys=T;this.dynamicUrlParameters=V;this.partnerConfigMinReadTimestamp=E;this.started=!1;this.JSC$20335_dataValidator=function(t,
b){var S=QSJ.has(b);S||n.redirectServiceUrl===void 0||(S=n.redirectServiceUrl===b);return S?t.sentinel==="gdi":!1}};
mSQ.prototype.complete=function(){var A=this,L;return _.u(function(O){if(A.interactionMode!==1)return O.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));L=Wd.getRedirectStateFromUri();return L===null?O.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):O.return(fVS(A,L))})};
mSQ.prototype.start=function(){var A=this,L;return _.u(function(O){if(A.started)return O.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.mT(A.oauthDetails,1))return O.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(A.interactionMode===1)return Wd.setLocation(_.mT(A.oauthDetails,1)),O.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));A.started=!0;A.galLogger.logStateTransition(5);
L=Wd.getPostMessagePopup(A.JSC$20335_dataValidator);return O.return(L.open(_.mT(A.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(X){A.started=!1;var x=A.galLogger;if((X==null?void 0:X.error)!==void 0)throw x.logInternalEvent(59),Error("$j");if((X==null?void 0:X.redirect_state)===void 0)throw x.logInternalEvent(131),Error("ak");return fVS(A,X.redirect_state)}).catch(function(X){A.started=
!1;
return X.errorCode!==void 0?{statusCode:X.errorCode,statusMessage:X.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var fVS=function(A,L){return _.u(function(O){return O.return(IVz(A.galService,{serviceId:A.serviceId,sessionId:A.sessionId,dynamicUrlParameters:A.dynamicUrlParameters,redirectState:L,consentLanguageKeys:A.consentLanguageKeys,partnerConfigMinReadTimestamp:A.partnerConfigMinReadTimestamp}).then(function(X){var x={statusCode:1,link:eDn(X.getLink())};U7$(_.rA(X,3))!==void 0&&(x.callerState=U7$(_.rA(X,3)));A.galLogger.logInternalEvent(134);return x}))})},Wd={getPostMessagePopup:function(A){return new cVB(A)},
getRedirectStateFromUri:function(){var A=_.jV(Wd.getLocation()).fragment_;return(new _.E1(A)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(A){_.V4y(window.location,_.RP(A))},
createOAuthFlow:function(A,L){return new mSQ(A.serviceId,A.sessionId,A.galService,L,A.galLogger,A.interactionMode,A.redirectServiceUrl,A.consentLanguageKeys,A.dynamicUrlParameters,A.partnerConfigMinReadTimestamp)}};var yVJ=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(yVJ,_.AE);var Z57=_.Vo(yVJ);var jSX=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),WRJ=function(A,L,O,X,x,J,Y,T,V){var E=this;this.serviceId=A;this.sessionId=L;this.galService=O;this.gsiWebFlowDetails=X;this.colorScheme=x;this.showCloseOption=J;this.galLogger=Y;this.interactionMode=T;this.redirectServiceUrl=V;this.started=!1;this.JSC$20347_dataValidator=function(n,t){var b=jSX.has(t);b||E.redirectServiceUrl===
void 0||(b=E.redirectServiceUrl===t);return b?n.sentinel==="gal":!1};
this.logEventProcessor=function(n){return n.result?(n=xak(n.result))?smJ(E.galLogger,n):!1:!1}};
WRJ.prototype.complete=function(){var A=this,L,O;return _.u(function(X){if(A.interactionMode!==1)return X.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));L=Hd.getRedirectStateFromUri();if(L===void 0)return A.galLogger.JSC$20287_logErrorEvent(131),X.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return O=H5J(A,L),X.return(zbB(A,O))}catch(x){return X.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
WRJ.prototype.start=function(){var A=this,L;return _.u(function(O){if(A.started)return O.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.mT(A.gsiWebFlowDetails,1))return O.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(A.interactionMode===1)return Hd.setLocation(Bkz(A,_.mT(A.gsiWebFlowDetails,1))),O.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
A.started=!0;L=Hd.getPostMessagePopup(A.JSC$20347_dataValidator,A.logEventProcessor);return O.return(L.open(Bkz(A,_.mT(A.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(X){A.started=!1;if((X==null?void 0:X.result)===void 0)throw A.galLogger.JSC$20287_logErrorEvent(131),Error("ak");X=H5J(A,X.result);return zbB(A,X)}).catch(function(X){A.started=!1;
return X.errorCode!==void 0?{statusCode:X.errorCode,statusMessage:X.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var Bkz=function(A,L){A=["result_channel",A.interactionMode===1?"2":"1","color_scheme",JYn(A.colorScheme),"show_close_option",A.showCloseOption];return CES(L,A)},zbB=function(A,L){if(L!==null&&_.i1(L,Z8,2)){var O,X=L==null?void 0:(O=_.ET(L,Z8,2))==null?void 0:_.IH(O,2);
X&&A.galLogger.JSC$20287_logErrorEvent(Yek(X));return gjS(_.ET(L,Z8,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 A.galService.getLink({serviceId:A.serviceId,sessionId:A.sessionId,consistencyKey:_.mT(L,1)}).then(function(x){x=eDn(x);A.galLogger.logInternalEvent(134);return{statusCode:1,link:x}})},H5J=function(A,L){L=Z57(L);
if(!_.i1(L,Z8,2)&&_.mT(L,1)==="")throw A.galLogger.JSC$20287_logErrorEvent(5),Error("bk");return L},Hd={getPostMessagePopup:function(A,L){return new cVB(A,L)},
getRedirectStateFromUri:function(){return _.Wq(_.jV(Hd.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(A){_.V4y(window.location,_.RP(A))},
createStreamlinedFlow:function(A,L){return new WRJ(A.serviceId,A.sessionId,A.galService,L,A.colorScheme,A.showCloseOption,A.galLogger,A.interactionMode,A.redirectServiceUrl)}};var G1$=function(){var A=_.tMp("GAL");this.storage=A?new _.iK(A):null};
G1$.prototype.getSession=function(A){if(this.storage!==null)try{var L=this.storage.get("SAVED_SESSION");if(L===void 0)return null;if(L.serviceId===A)return L}catch(O){}return null};var dG=function(){};
_.g(dG,p6S);dG.prototype.logStateTransition=function(){};
dG.prototype.logInternalEvent=function(){};
dG.prototype.JSC$20287_logErrorEvent=function(){};var Mu7=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(Mu7,_.AE);Mu7.prototype.getCompletionUrl=function(){return _.mT(this,15)};var Yk=function(A,L,O,X,x,J){this.serviceId=A;this.environment=L;this.sessionId=O;this.colorSchemeSelected=X;this.colorThemeDisplayed=x;this.JSC$20360_transport=J;this.currentState=1};
_.g(Yk,p6S);Yk.prototype.logStateTransition=function(A){var L=$S7(this);L=_.s$(L,3,this.currentState);L=_.s$(L,1,A);this.currentState=A;A=RTM(1);this.dispatch(L,A)};
Yk.prototype.logInternalEvent=function(A){A=RTM(A);this.dispatch($S7(this),A)};
Yk.prototype.JSC$20287_logErrorEvent=function(A){var L=$S7(this);L=_.s$(L,1,10);A=RTM(A);this.dispatch(L,A)};
var $S7=function(A){var L=new Mu7;L=_.s$(L,1,A.currentState);L=_.gz(L,7,A.serviceId);var O,X;var x=((O=window)==null?0:(X=O.location)==null?0:X.href)?_.jV(window.location.href).JSC$11053_domain_:"NO_PACKAGE_NAME";O=_.gz(L,8,x);O=_.s$(O,6,A.environment);O=_.gz(O,5,"100");O=_.s$(O,11,A.colorSchemeSelected);return _.s$(O,12,A.colorThemeDisplayed)};
Yk.prototype.dispatch=function(A,L){L===void 0&&(L=new _.bb);var O=L;A=A.serialize();O=_.gz(O,8,A);_.gT(O,12,this.sessionId);this.JSC$20360_transport.dispatch(L)};var aVS=function(A,L){this.loggerType=A;this.sessionIndex=L!=null?L:0},kvS;
aVS.prototype.create=function(A,L,O,X,x){switch(this.loggerType){case 0:return new dG;case 1:return kvS||(kvS=(new _.TX(555,this.sessionIndex.toString())).build()),new Yk(A,L,O,X,x,kvS);default:_.ZN(this.loggerType,"unknown logger type")}};var zQ=[6,2,3,1],QmS=new Map([[4,1],[1,6],[2,2],[3,3]]),bYB={statusCode:7,statusMessage:"Failed to create flow object"},rYB=function(A,L,O,X,x,J,Y,T,V,E){this.serviceId=A;this.sessionId=L;this.config=O;this.galService=X;this.JSC$20367_linkingSession=x;this.googleScopes=J;this.callerState=Y;this.consentLanguageKeys=T;this.dynamicUrlParameters=V;this.partnerConfigMinReadTimestamp=E;this.currentFlow=0;X=this.JSC$20367_linkingSession;x=new Set;_.i1(X,wGS,1)&&x.add(1);_.i1(X,FTJ,2)&&_.i1(X,pGS,6)&&x.add(2);
_.i1(X,C1X,3)&&_.i1(X,pGS,6)&&x.add(3);_.i1(X,GyJ,4)&&x.add(6);this.supportedFlows=x;X=O.loggerType;x=O.clientEnvironment;a:{J=O.colorScheme;switch(J){case 0:J=1;break a;case 1:J=2;break a;case 2:J=3;break a;default:_.ZN(J)}J=void 0}a:{Y=O.colorScheme;Y=rVz(Y);switch(Y){case 0:Y=1;break a;case 1:Y=2;break a;default:_.ZN(Y)}Y=void 0}this.galLogger=(new aVS(X,O.authUser)).create(A,x,L,J,Y)},vjz=function(A){return new Promise(function(L){var O,X,x,J,Y,T,V,E,n,t;
return _.u(function(b){switch(b.nextAddress){case 1:O=iYX(A.currentFlow,A.supportedFlows),X=!1,x=new KR7(A.JSC$20367_linkingSession,A.config.dataUsageNoticeConfig);case 2:if(O===void 0){b.jumpTo(4);break}_.e4(b,5);var S=x,w=O,l=void 0;X?w===1&&(l=S.displayInfoMap.get(2)):w===2||w===3?l=S.displayInfoMap.get(1):w===1&&(l=S.displayInfoMap.get(3));J=l?l:[];Y=A.consentLanguageKeys;T=_.d(J);V=T.next();case 7:if(V.done)return A.currentFlow=O,b.yield(SeS(USM(A,Y)),11);E=V.value;return b.yield(ul7(E,A.config.dataUsageNoticeConfig.uiAdapter,
A.config.colorScheme,A.galLogger),10);case 10:n=b.yieldResult;if(n.statusCode!==1)return lnJ(A.serviceId),A.currentFlow=0,L(j1({statusCode:n.statusCode,statusMessage:n.statusMessage},A.callerState)),b.return();n.consentLanguageKeys!==void 0&&(Y=n.consentLanguageKeys);V=T.next();b.jumpTo(7);break;case 11:t=b.yieldResult;if(t.statusCode!==10)return t.statusCode!==6&&(lnJ(A.serviceId),A.currentFlow=0),t.statusCode!==1&&A.callerState!==void 0&&(t.callerState=A.callerState),L(t),b.return();_.zA(b,6);break;
case 5:_.S4(b);case 6:O=iYX(A.currentFlow,A.supportedFlows);X=!0;b.jumpTo(2);break;case 4:lnJ(A.serviceId),A.currentFlow=0,L(j1({statusCode:12,statusMessage:"Linking failed"},A.callerState)),_.qo(b)}})})},FCQ=function(A,L,O){A.currentFlow=L;
return qeQ(USM(A,O)).then(function(X){return X.statusCode===10&&A.config.interactionMode===1&&iYX(A.currentFlow,A.supportedFlows)!==void 0?vjz(A):X})},USM=function(A,L){return{flowParams:{serviceId:A.serviceId,
sessionId:A.sessionId,galService:A.galService,galLogger:A.galLogger,interactionMode:A.config.interactionMode,redirectServiceUrl:A.config.redirectServiceUrl,colorScheme:A.config.colorScheme,consentLanguageKeys:L,dynamicUrlParameters:A.dynamicUrlParameters,showCloseOption:A.config.showCloseOption,partnerConfigMinReadTimestamp:A.partnerConfigMinReadTimestamp},currentFlow:A.currentFlow,config:A.config,session:A.JSC$20367_linkingSession,googleScopes:A.googleScopes,callerState:A.callerState}};var fnM=function(A,L){this.config=A;this.galService=L.getService();this.JSC$20380_galRepository=L.JSC$20398_galRepository};
fnM.prototype.getLink=function(A,L){return ojz(this,A,L)};
var ojz=function(A,L,O){return A.JSC$20380_galRepository.getLink({serviceId:L,scopes:void 0,capabilities:void 0,linkName:O}).then(function(X){return{statusCode:1,link:X}}).catch(function(X){return{statusCode:maZ(X.code),
statusMessage:X.message}})};
fnM.prototype.deleteLink=function(A,L){return this.JSC$20380_galRepository.deleteLink(A,this.config.accountLinkingEntryPoint,L).then(function(){return{statusCode:1}}).catch(function(O){return{statusCode:maZ(O.code),
statusMessage:O.message}})};
fnM.prototype.startLinkingSession=function(A){var L=A.serviceId;var O=A.sessionId;return KCS({serviceId:L,sessionId:O!==void 0?O:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:A.loginHint,callerState:A.callerState,consentLanguageKeys:A.consentLanguageKeys,linkName:A.linkName,dynamicUrlParameters:A.dynamicUrlParameters,partnerConfigMinReadTimestamp:A.partnerConfigMinReadTimestamp})};var uM=function(A,L,O,X,x,J,Y){this.apiKey=L;this.authUser=O;this.oauthToken=X;this.bucket=x;this.locale=J;this.galSdkEventHandler=Y;if(X===void 0){if(L===void 0)throw Error("ck");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new Vun(A)};
uM.prototype.deleteLink=function(A){var L=A.serviceId;var O=A.sessionId;var X=A.accountLinkingEntryPoint;var x=A.linkName;var J=this,Y;return _.u(function(T){var V=(new M4).setHeader(J.getHeader(O));var E=AQk({serviceId:L,linkName:x});V=_.eg(V,2,E);Y=_.zy(V,3,X);return T.return(J.makeRequest(J.galServiceClient.deleteLink,Y,[1,3],[2,4]))})};
var IVz=function(A,L){var O=L.serviceId;var X=L.sessionId;var x=L.dynamicUrlParameters;var J=L.redirectState;var Y=L.consentLanguageKeys;var T=L.partnerConfigMinReadTimestamp;var V;return _.u(function(E){var n=(new aw).setHeader(A.getHeader(X,x));n=_.oG(n,2,O);V=_.oG(n,4,J);Y!==void 0&&_.oG(V,5,Y);T!==void 0&&_.eg(V,6,T);return E.return(A.makeRequest(A.galServiceClient.JSC$20266_finishOAuth,V,[1,3],[2,4]))})};
uM.prototype.getLink=function(A){var L=A.serviceId;var O=A.sessionId;var X=A.scopes;var x=A.capabilities;var J=A.consistencyKey;var Y=A.linkName;var T=this,V;return _.u(function(E){var n=(new k_).setHeader(T.getHeader(O)),t=AQk({serviceId:L,scopes:X,capabilities:x,linkName:Y});V=_.eg(n,2,t);J!==void 0&&(n=nzn(),n=_.oG(n,2,J),_.eg(V,3,n));return E.return(T.makeRequest(T.galServiceClient.getLink,V,[1,3],[2,4]))})};
var gBB=function(A,L){var O=L.serviceId;var X=L.sessionId;var x=L.googleScopes;var J=L.consistencyKey;var Y;return _.u(function(T){var V=(new $_).setHeader(A.getHeader(X));V=_.oG(V,2,O);var E=Array.from(x.values());V=_.zn(V,3,E,_.Tn);E=nzn();E=_.oG(E,2,J);Y=_.eg(V,4,E);return T.return(A.makeRequest(A.galServiceClient.JSC$20266_depositGoogleCredential,Y,[1,3],[2,4]))})};
uM.prototype.startLinkingSession=function(A){var L=A.serviceId;var O=A.sessionId;var X=A.scopes;var x=A.capabilities;var J=A.loginHint;var Y=A.supportedFlows;var T=A.completionUrl;var V=A.usePingPong;var E=A.twoWayLinking;var n=A.accountLinkingEntryPoint;var t=A.callerState;var b=A.consentLanguageKeys;var S=A.googleScopes;var w=A.dataUsageNoticeConfig;var l=A.linkName;var F=A.dynamicUrlParameters;var R=A.partnerConfigMinReadTimestamp;var y=this,M,H;return _.u(function(z){if(x!==void 0&&X!==void 0)throw Error("Zj");
var a=(new mKS).setHeader(y.getHeader(O,F));M=_.oG(a,2,L);l!==void 0&&_.oG(M,14,l);if(x!==void 0){a=M;var xe=Array.from(x.values());_.zn(a,5,xe,_.Tn)}else X!==void 0&&(a=M,xe=Array.from(X.values()),_.zn(a,3,xe,_.Tn));T!==void 0&&_.oG(M,6,T);V!==void 0&&_.GN(M,15,V);Y!==void 0&&(a=M,xe=Array.from(Y.values()),_.zn(a,4,xe,_.a6));if(E!==void 0){if(E&&(!S||S.size===0))throw Error("dk");_.GN(M,8,E)}n!==void 0&&_.zy(M,9,n);J!==void 0&&_.oG(M,13,J);t!==void 0&&(a=M,xe=(new TextEncoder).encode(t),_.$X(a,12,
_.K6(xe,!1),_.rJ()));b!==void 0&&_.oG(M,16,b);R!==void 0&&_.eg(M,18,R);if(w!==void 0&&w.size>0||S!==void 0&&S.size>0)H=new QHM,S!==void 0&&S.size>0&&(a=H,xe=Array.from(S.values()),_.zn(a,1,xe,_.Tn)),w!==void 0&&(w.has(0)&&_.Q7e(H,2,_.a6,1,_.kV),w.has(1)&&_.Q7e(H,2,_.a6,2,_.kV)),_.eg(M,17,H);return z.return(y.makeRequest(y.galServiceClient.startLinkingSession,M,[1],[2]))})};
uM.prototype.getMetadata=function(){var A=this,L,O;return _.u(function(X){L={};A.useFpa?(L["X-Goog-Api-Key"]=A.apiKey,L["X-Goog-AuthUser"]=A.authUser!==void 0?A.authUser.toString():"0",(O=_.WiJ([]))&&(L.Authorization=O)):L.Authorization="Bearer "+A.oauthToken;A.locale&&(L["accept-language"]=A.locale);return X.return(L)})};
uM.prototype.makeRequest=function(A,L,O,X){var x=this,J;return _.u(function(Y){if(Y.nextAddress==1)return Y.yield(x.getMetadata(),2);J=Y.yieldResult;LSS(x,O);return Y.return(A.bind(x.galServiceClient)(L,J).finally(function(){LSS(x,X)}))})};
var LSS=function(A,L){A.galSdkEventHandler!==void 0&&L.forEach(function(O){A.galSdkEventHandler.onEvent(O)})};
uM.prototype.getHeader=function(A,L){var O=new HU;A=_.$X(O,2,_.vn(A),0);A=_.zy(A,5,3);L=_.zn(A,8,L,_.Tn);this.bucket!==void 0&&_.oG(L,1,this.bucket);return L};
var AQk=function(A){var L=A.serviceId;var O=A.scopes;var X=A.capabilities;A=A.linkName;if(X!==void 0&&O!==void 0)throw Error("Zj");var x=new em$;L=_.oG(x,1,L);X!==void 0?(O=Array.from(X.values()),_.zn(L,5,O,_.Tn)):O!==void 0&&(O=Array.from(O.values()),_.zn(L,3,O,_.Tn));A!==void 0&&_.oG(L,6,A);return L};var In7=function(A){this.galService=new uM(A.alsDomain,A.apiKey,A.authUser,A.oauthToken,A.bucket,A.locale,A.galSdkEventHandler);this.JSC$20398_galRepository=new GvZ(this.galService)};
In7.prototype.getService=function(){return this.galService};var Ocn=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(Ocn,_.AE);var XbM=function(A){var L=new Ocn;return _.s$(L,1,A)};
Ocn.prototype.setErrorMessage=function(A){return _.gz(this,2,A)};var xJn=[0,_.sv,_.Ov,_.sv];var TE=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(TE,_.AE);var s$X=[0,[1,2,3],_.xj,[0,Sr$,ww$,-1],_.xj,[0,gDJ,-1],_.Swp];var JQS=[0,_.AV,1,_.sv,_.Ov,-1,1,_.wNe,_.oH,_.sv,-1,s$X];var PbZ=[0,_.sv,[0,_.wNe,_.oH,[0,_.Ov]],_.L5,[0,_.sv,-1]];var Ka=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(Ka,_.AE);var dJZ=[0,_.Ov,_.sv,-2,_.AV,_.sv,_.AV,_.sv,-2,1,_.L5];var YMJ=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(YMJ,_.AE);var ue7=[0,_.AV];var T_7=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(T_7,_.AE);var V7$=[0,_.sv,PbZ,ue7,dJZ,JQS];var EuJ=_.ua(T_7,V7$);var DJz=[0,DSQ];var qkB=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(qkB,_.AE);var eJM=[0,[1,3],G_B,_.sv,G_B];var N4=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(N4,_.AE);var EFn=[0,_.sv];var nF$=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(nF$,_.AE);var rg=function(A){return _.WM(A,Ocn,2,iq)},t7$=function(A){var L=new nF$;
return _.EB(L,2,iq,A)},iq=[1,
2];var bc$=[0,iq,_.xj,EFn,_.xj,xJn,_.X4,eJM,1,_.sv,DJz];var hJJ=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(hJJ,_.AE);var qMS=function(A){var L=new hJJ;return _.EB(L,3,SM$,A)},SM$=[2,
3];var VX=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(VX,_.AE);var gFS=function(A,L){return _.eg(A,2,L)},wb$=function(A,L){return _.eg(A,8,L)},pbS=function(A,L){return _.eg(A,3,L)};var icB=[0,_.sv,bc$,V7$,_.Ca3,[0,[5,6],[0,_.sv,-2],[0,_.AV,_.sv,_.Ov],[0,s$X],[0,_.Ov,_.sv,-1,_.cEJ,_.sv],_.xj,[0,[0,_.AV],_.sv,-1],_.xj,[0,[3,4],_.sv,-1,_.xj,[0,[0,_.sv,_.L5]],_.xj,[0,[0,[0,[1,2],_.xj,[0],_.xj,[0]]]]]],_.Ca3,-1,[0,SM$,_.sv,_.xj,EFn,_.xj,xJn,_.X4,eJM,[0,DSQ]]];var N_M=_.ua(VX,icB),rQZ=_.T2(icB);var KSS=function(){_.p$.call(this)};
_.g(KSS,_.p$);KSS.prototype.init=function(){};
new KSS;var GI7=_.AW(["data-"]),ltn=_.AW(["aria-"]),cQM=_.AW(["aria-"]),Do=function(A,L){this.isLatencyMeasurementExperiment=A===void 0?!1:A;this.enableDialogA11yFix=L===void 0?!1:L;this.JSC$20427_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.x06(_.Ou.location.href)},t8M=function(A,L){A.onConsentPrimitiveShownCallback=L},CbJ=function(A,L){return A.overriddenIframeLoadTimeout?A.overriddenIframeLoadTimeout:L!==void 0?L:5E3},hT$=function(A){if(A.prewarmPromise!==void 0)return A.prewarmPromise;
A.prewarmPromise=new Promise(function(L,O){eP(A,1);FSX(A,RJ7(A,!0),Q$X(A));A.iframe?A.prewarmChannel||mJn(A,A.iframe,L):O(Error("ek"))});
A.prewarmPromise.finally(function(){A.prewarmPromise=void 0});
return A.prewarmPromise};
Do.prototype.showPrimitive=function(){var A=this;if(this.consentPromise!==void 0)return this.consentPromise;var L=Date.now();ftX(this,L);this.consentPromise=new Promise(function(O,X){eP(A,0,L);var x=A.isDarkTheme();A.isLatencyMeasurementExperiment||A.initialLoadingStrategy===1||A.initialLoadingStrategy===2||(A.loadingBar||(A.loadingBar=WCS(getComputedStyle(document.body).direction==="rtl",x),A.loadingBar.style.position="fixed",A.loadingBar.style.zIndex="15000"),document.body.appendChild(A.loadingBar));
FSX(A,RJ7(A),Q$X(A));A.iframe?A.channel||ItQ(A,A.iframe,O,X):(yQS(A),X(Error("ek")))});
this.consentPromise.finally(function(){A.consentPromise=void 0});
return this.consentPromise};
var ItQ=function(A,L,O,X){var x,J;_.u(function(Y){switch(Y.nextAddress){case 1:eP(A,3);x=!1;setTimeout(function(){if(!x){yQS(A);ZcB(A);j$J(A);var T=XbM(7).setErrorMessage("Timeout connecting to iframe");O(wb$(gFS(new VX,t7$(T)),qMS(T)))}},CbJ(A,WS7(A)));
if(!A.prewarmPromise){Y.jumpTo(2);break}_.e4(Y,3);return Y.yield(A.prewarmPromise,5);case 5:_.zA(Y,2);break;case 3:_.S4(Y),J=XbM(4).setErrorMessage("Error while prewarming."),O(wb$(gFS(new VX,t7$(J)),qMS(J)));case 2:A.prewarmChannel&&A.prewarmChannel.send(rQZ(pbS(new VX,A.consentPrimitiveRequest))),A.channel=_.dk({destination:A.JSC$20427_win,iframe:L,origin:HcJ(A),channelName:"cpw",onEstablished:function(){x=!0;yQS(A);A.isLatencyMeasurementExperiment||(A.JSC$20427_previousBodyOverflow=document.body.style.overflow,
A.JSC$20427_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,A.JSC$20427_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",A.enableDialogA11yFix&&window.addEventListener("blur",A.focusChangeListener));var T=A.iframe;T.style.bottom="0";T.style.position="fixed";T.style.right="0";T.style.border="none";T.style.left="0";T.style.top=
"0";T.style.zIndex="5000";T.style.pointerEvents="";T.style.visibility="";A.initialLoadingStrategy===2||A.initialLoadingStrategy===3?eP(A,4):eP(A,6);var V;(V=A.onConsentPrimitiveShownCallback)==null||V.call(A)},
onMessage:function(T){T=N_M(T.data);switch(_.IH(T,1)){case 1:ZcB(A);var V=HYJ(_.ET(T,_.jE,7));V&&(A.initialLoadingStrategy!==2&&A.initialLoadingStrategy!==3||eP(A,6,V),eP(A,5,V));if(V=HYJ(_.ET(T,_.jE,6)))eP(A,7,V),eP(A,8);var E,n;((E=_.ET(T,nF$,2))==null?void 0:_.Gy(E,iq))!==0&&((n=_.ET(T,hJJ,8))==null?void 0:_.Gy(n,SM$))!==0||X(Error("fk"));O(T);break;case 2:j$J(A)}}}),_.qo(Y)}})},mJn=function(A,L,O){A.prewarmChannel=_.dk({destination:A.JSC$20427_win,
iframe:L,origin:HcJ(A),channelName:"pwcp",onEstablished:function(){eP(A,2);O()}})},HcJ=function(A){var L=_.ww(A.src).toString();
return L&&L.indexOf("://")<0&&L.indexOf("//")!==0?A.origin:_.x06(L)},RJ7=function(A,L){L=L===void 0?!1:L;
var O,X=new Map([["origin",A.origin],["hl",(O=zJn(A))!=null?O:null]]);L&&X.set("pw","1");L=_.d([["cpr",A.consentPrimitiveRequest.serialize()]]);for(O=L.next();!O.done;O=L.next()){var x=_.d(O.value);O=x.next().value;x=x.next().value;X.set(O,x)}A.isDarkTheme()&&X.set("color_scheme","dark");return _.PT(A.src,X)},yQS=function(A){A.isLatencyMeasurementExperiment||A.loadingBar&&document.body.removeChild(A.loadingBar)};
Do.prototype.getSrc=function(){var A=_.vY(this.origin),L;var O=(L=_.ET(this.consentPrimitiveRequest,YMJ,3))==null?void 0:_.x8(L,1);L="consent.google.com";O=O?"/u/"+encodeURIComponent(O.toString()):"";(A==null?0:A.endsWith("youtube.com"))?L="consent.youtube.com":(A=A==null?void 0:A.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(L="consent.google."+((A[1]?"co.":"")+encodeURIComponent(A[2])));return _.gw("https://"+L+"/signedin"+O+"/landing")};
var FSX=function(A,L,O){A.iframe||(A.iframe=document.createElement("iframe"),A.iframe.style.width="100%",A.iframe.style.height="100%",O!==112496729&&(A.iframe.style.colorScheme="auto"),A.isLatencyMeasurementExperiment&&(A.iframe.style.display="none"),_.Hf(A.iframe,L),A.iframe.setAttribute("jsname","C5o1O"),B_7(A.iframe),document.body.appendChild(A.iframe))},B_7=function(A){A.style.bottom="-200vh";
A.style.position="fixed";A.style.right="-200vw";A.style.border="";A.style.left="";A.style.top="";A.style.zIndex="";A.style.pointerEvents="none";A.style.visibility="hidden"},ZcB=function(A){A.iframe&&(A.isLatencyMeasurementExperiment||(A.JSC$20427_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=A.JSC$20427_previousHtmlOverscroll),A.JSC$20427_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=A.JSC$20427_previousBodyOverscroll),A.JSC$20427_previousBodyOverflow!==
void 0&&(document.body.style.overflow=A.JSC$20427_previousBodyOverflow),A.enableDialogA11yFix&&M7J(A,!1)),B_7(A.iframe))};
Do.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(M7J(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var M7J=function(A,L){var O,X,x=(O=A.iframe)==null?void 0:(X=O.parentElement)==null?void 0:X.children;if(x)for(O=0;O<x.length;O++)X=x[O],X!==A.iframe&&(L?(X.hasAttribute("aria-hidden")&&_.oP([_.xT(GI7)],X,"data-old-aria-hidden",X.getAttribute("aria-hidden")),_.oP([_.xT(ltn)],X,"aria-hidden","true")):(X.removeAttribute("aria-hidden"),X.hasAttribute("data-old-aria-hidden")&&(_.oP([_.xT(cQM)],X,"aria-hidden",X.getAttribute("data-old-aria-hidden")),X.removeAttribute("data-old-aria-hidden"))))},eP=function(A,
L,O){var X;
(X=A.latencyCallback)==null||X.call(A,{latencyType:L,timestampEpochMillis:O!=null?O:Date.now()})};var $Jk=function(A,L,O){Do.call(this,L,O===void 0?!1:O);this.consentPrimitiveRequest=A;A=zJn(this);_.QUX(A);this.src=this.getSrc();var X;this.initialLoadingStrategy=(X=_.ET(this.consentPrimitiveRequest,Ka,4))==null?void 0:_.IH(X,4)},atJ;
_.g($Jk,Do);var nuS=function(A){var L=_.h("enable_primitive_dialog_aria_hide_siblings");A={request:A,enableDialogA11yFix:L===void 0?!1:L};atJ||(atJ=new $Jk(A.request,A.isLatencyMeasurementExperiment||_.IH(A.request,1)===2,A.enableDialogA11yFix));return atJ},zJn=function(A){var L;
return(L=_.ET(A.consentPrimitiveRequest,Ka,4))==null?void 0:_.mT(L,1)},ftX=function(A,L){if(!_.i1(A.consentPrimitiveRequest,TE,5)){var O=A.consentPrimitiveRequest,X=new TE;
_.eg(O,5,X)}var x;if((x=_.ET(A.consentPrimitiveRequest,TE,5))==null||_.Gje(_.ps(x,8))==null){var J;(J=_.ET(A.consentPrimitiveRequest,TE,5))!=null&&_.gT(J,8,L)}},Q$X=function(A){var L;
return(L=_.ET(A.consentPrimitiveRequest,TE,5))==null?void 0:_.x8(L,1)};
$Jk.prototype.isDarkTheme=function(){var A;return((A=_.ET(this.consentPrimitiveRequest,Ka,4))==null?void 0:_.IH(A,2))===2};
var WS7=function(A){var L;return((L=_.ET(A.consentPrimitiveRequest,Ka,4))==null?void 0:_.x8(L,5))||void 0},j$J=function(A){A.channel=void 0;
A.prewarmChannel=void 0;A.iframe&&(document.body.contains(A.iframe)&&document.body.removeChild(A.iframe),A.iframe=void 0);atJ=void 0},SkJ=function(A){return Do.prototype.showPrimitive.call(A).then(function(L){return _.ET(L,nF$,2)})};for(var EZ={},kIJ=(EZ[64]="ma",EZ[73]="ogb",EZ[89]="cr",EZ[21]="test",EZ[0]="unkn",EZ[137]="con",EZ[155]="hl",EZ[78]="yt",EZ[171]="lp",EZ[172]="ap",EZ[177]="amo",EZ[178]="pqe",EZ[74]="gg",EZ[1]="gm",EZ[140]="am",EZ[193]="sc",EZ),UJQ=_.d(Object.keys(kIJ)),vFS=UJQ.next();!vFS.done;vFS=UJQ.next());var oFX=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(oFX,_.AE);var AwZ=[0,[2,3,4],_.sv,qrz,G_B,_.Swp];var LZn=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(LZn,_.AE);var OnJ=_.ua(LZn,[0,Kz7,_.Ov,_.sv,_.Ov,_.sv,AwZ]);var X9Z=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(X9Z,_.AE);X9Z.prototype.getCommand=function(){return _.IH(this,1)};
var xIX=function(){var A=new X9Z;return _.zy(A,1,0)};var sLn=_.T2([0,Kz7,_.Ov,[0,_.sv,_.Ov,-1]]);var JwQ=new _.pc("s"),P5J=new _.pc("t"),dIJ=new _.pc("u"),Y1Z=new _.pc("v"),u_J=function(A,L,O){_.ib.call(this,JwQ);this.mediaKey=A;this.photoUrl=L;this.photoSource=O};
_.g(u_J,_.ib);var Trz=function(){_.ib.call(this,P5J)};
_.g(Trz,_.ib);var Vr$=function(A){A=A===void 0?!1:A;_.ib.call(this,dIJ);this.isError=A};
_.g(Vr$,_.ib);var DIS=function(){_.ib.call(this,Y1Z)};
_.g(DIS,_.ib);var ejz=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,bnX=function(A){if(typeof A=="string"){if(A.charAt(0)==".")return EIz(A.substr(1));if(A.charAt(0)=="["){var L=ejz.exec(A);A=A.indexOf("=")==-1?void 0:L[3];return nIZ(L[1],A)}return tr7(A)}return A},EIz=function(A){return function(L){return L.getAttribute&&_.vb(L,A)}},nIZ=function(A,L){return function(O){return L!==void 0?O.getAttribute&&O.getAttribute(A)==L:O.hasAttribute&&O.hasAttribute(A)}},tr7=function(A){A=A.toUpperCase();
return function(L){return(L=L.tagName)&&L.toUpperCase()==A}},hjJ=function(){return!0};var nW=function(A,L){this.JSC$20455_key_=A;this.JSC$20455_value_=L},th=function(A){throw Error("gk`"+A.JSC$20455_key_);
},S1S=function(A,L){return new TypeError("hk`"+L+"`"+A.JSC$20455_key_+"`"+A.JSC$20455_value_+"`"+typeof A.JSC$20455_value_)};
nW.prototype.string=function(A){return arguments.length==0?q1Z(this):gIX(this,A)};
var gIX=function(A,L){var O;return(O=w9M(A))!=null?O:L},q1Z=function(A){var L=w9M(A);
L===null&&th(A);return L},w9M=function(A){var L=A.JSC$20455_value_;
if(L==null)return null;if(typeof L==="string")return L;throw S1S(A,"string");};
nW.prototype.bool=function(A){if(arguments.length==0){var L=this.optionalBool();L===null&&th(this)}else{var O;L=(O=this.optionalBool())!=null?O:A}return L};
nW.prototype.optionalBool=function(){var A=this.JSC$20455_value_;if(A==null)return null;if(typeof A==="boolean")return A;if(typeof A==="string"){A=A.toLowerCase();if(A==="true"||A==="1")return!0;if(A==="false"||A==="0")return!1}throw S1S(this,"boolean");};
nW.prototype.number=function(A){if(arguments.length==0){var L=p9J(this);L===null&&th(this)}else L=inz(this,A);return L};
var inz=function(A,L){var O;return(O=p9J(A))!=null?O:L},p9J=function(A){var L=A.JSC$20455_value_;
if(L==null)return null;if(typeof L==="number")return L;if(typeof L==="string"){var O=Number(L);if(!isNaN(O)&&(O!==0||L.trim().length!==0))return O}throw S1S(A,"number");};
nW.prototype.toString=function(){return q1Z(this)};
nW.prototype.enum=function(A,L){var O=!0,X=void 0,x;for(x in A){var J=A[x];O&&(O=!1,X=typeof J==="number"?inz(this,L):gIX(this,L));if(J==X)return X}JSON.stringify(A);return X};
nW.prototype.array=function(A){if(arguments.length==0){var L=NrM(this);L===null&&th(this);return L}L=NrM(this);return L==null?A:L};
var NrM=function(A){var L=A.JSC$20455_value_;if(L==null)return null;Array.isArray(L)||(typeof L!=="string"?L=[L]:(L=L.trim(),L=L==""?[]:L.split(",").map(function(O){return O.trim()})));
return rw7(A,L)},rw7=function(A,L){var O=A.JSC$20455_key_+"[";
return Array.from(L,function(X,x){return new nW(O+x+"]",X)})};
nW.prototype.object=function(A){var L=this.JSC$20455_value_;if(L==null)return A===void 0&&th(this),A;if(typeof L==="object"&&L.constructor===Object){A={};var O=this.JSC$20455_key_+".",X;for(X in L)A[X]=new nW(O+X,L[X]);return A}throw S1S(this,"object");};var bM=function(A){this.list_=KZz(A)},KZz=function(A){if(A instanceof bM)A=A.list_;
else if(A[0]instanceof bM){for(var L=new Set,O=0;O<A.length;O++)for(var X=_.d(A[O].list_),x=X.next();!x.done;x=X.next())L.add(x.value);A=L}return[].concat(_.le(A))};
_.P=bM.prototype;_.P.each=function(A,L,O){((O===void 0?0:O)?Mv$:_.BY)(this.list_,A,L);return this};
_.P.size=function(){return this.list_.length};
_.P.isEmpty=function(){return this.list_.length===0};
_.P.get=function(A){return this.list_[A]||null};
_.P.el=function(){return this.list_[0]||null};
_.P.map=function(A,L){return _.cT(this.list_,A,L)};
_.P.equals=function(A){return this===A||_.ad(this.list_,A.list_)};
_.P.first=function(){return this.list_.length==0?null:new hh(this.list_[0])};
_.P.last=function(){return this.list_.length==0?null:new hh(this.list_[this.list_.length-1])};
_.P.find=function(A){var L=[];this.each(function(O){O=O.querySelectorAll(String(A));for(var X=0;X<O.length;X++)L.push(O[X])});
return new bM(L)};
_.P.parent=function(){var A=[];this.each(function(L){(L=L.parentElement||null)&&!_.Id(A,L)&&A.push(L)});
return new bM(A)};
_.P.children=function(){var A=[];this.each(function(L){L=_.ju(L);for(var O=0;O<L.length;O++)A.push(L[O])});
return new bM(A)};
_.P.filter=function(A){A=_.DF(this.list_,bnX(A));return new bM(A)};
_.P.closest=function(A){var L=[],O=bnX(A),X=function(x){return _.aN(x)&&O(x)};
this.each(function(x){(x=_.my(x,X,!0))&&!_.Id(L,x)&&L.push(x)});
return new bM(L)};
_.P.next=function(A){return G7Z(this,_.qzL,A)};
_.P.prev=function(A){return G7Z(this,l7B,A)};
var G7Z=function(A,L,O){var X=[];var x=O?bnX(O):hjJ;A.each(function(J){(J=L(J))&&x(J)&&X.push(J)});
return new bM(X)};
bM.prototype.setClass=function(A){return this.each(function(L){_.UM(L,A)})};
var lP7=function(A,L){return A.each(function(O){_.x4(O,L)})},cwX=function(A,L){return A.each(function(O){_.OC(O,L)})};
bM.prototype.toggleClass=function(A,L){return L===!0?lP7(this,A):L===!1?cwX(this,A):this.each(function(O){_.vb(O,A)?_.OC(O,A):_.x4(O,A)})};
bM.prototype.setText=function(A){return this.each(function(L){_.W6(L,A)})};
var C5B=function(A){A.each(function(L){L.removeAttribute("aria-hidden")})};
bM.prototype.getStyle=function(A){if(this.list_.length>0){var L=this.list_[0],O=L.style[_.bi(A)];return typeof O!=="undefined"?O:L.style[_.RS6(L,A)]||""}};
bM.prototype.getData=function(A){if(this.list_.length===0)return new nW(A,null);var L=odX(this.list_[0],A);return new nW(A,L)};
bM.prototype.focus=function(A){try{A?this.el().focus(A):this.el().focus()}catch(L){}return this};
bM.prototype.click=function(){var A=_.Ro(this.el());if(A.createEvent){var L=A.createEvent("MouseEvents");L.initMouseEvent("click",!0,!0,A.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(L)}else A=A.createEventObject(),A.clientX=0,A.clientY=0,A.screenX=0,A.screenY=0,A.altKey=!1,A.ctrlKey=!1,A.shiftKey=!1,A.button=0,this.el().fireEvent("onclick",A)};
var SP=function(A,L,O,X){function x(T,V,E){var n=V;V&&V.parentNode&&(n=V.cloneNode(!0));T(n,E)}
X=X===void 0?!1:X;if(A.list_.length==1){var J=A.list_[0],Y=function(T){return L(T,J)};
O instanceof bM?O.each(Y,void 0,X):Array.isArray(O)?(X?Mv$:_.BY)(O,Y):Y(O);return A}return A.each(function(T){O instanceof bM?O.each(function(V){x(L,V,T)}):Array.isArray(O)?_.BY(O,function(V){x(L,V,T)}):x(L,O,T)})};
_.P=bM.prototype;_.P.append=function(A){return SP(this,function(L,O){L&&O.appendChild(L)},A)};
_.P.appendTo=function(A){(new bM([A])).append(this);return this};
_.P.remove=function(){return SP(this,function(A,L){_.hg(L)},null)};
_.P.empty=function(){return SP(this,function(A,L){_.IS(L)},null)};
_.P.after=function(A,L){return SP(this,function(O,X){O&&_.ZV(O,X)},A,!(L===void 0||L))};
_.P.before=function(A){return SP(this,function(L,O){L&&_.y5(L,O)},A)};
_.P.replaceWith=function(A){return SP(this,function(L,O){L&&_.bJu(L,O)},A)};
_.P.toggle=function(A){return this.each(function(L){_.zX(L,A)})};
_.P.show=function(){return this.toggle(!0)};
_.P.hide=function(){return this.toggle(!1)};
_.P.trigger=function(A,L,O,X){return FZS(this,A,L,O,X)};
var FZS=function(A,L,O,X,x){return A.each(function(J){_.S$p(_.Ro(J)).triggerWizEventInternal(J,L,O,X,x)})},hh=function(A,L){A instanceof bM&&(L=A.list_,A=null);
this.list_=KZz(A!=null?[A]:L)};
_.Ty(hh,bM);_.P=hh.prototype;_.P.children=function(){return new bM(Array.prototype.slice.call(_.ju(this.list_[0])))};
_.P.each=function(A,L){A.call(L,this.list_[0],0);return this};
_.P.size=function(){return 1};
_.P.el=function(){return this.list_[0]};
_.P.first=function(){return this};var qZ=function(A,L){L=L===void 0?window:L;this.hostId=A;this.JSC$20466_win=L;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$20466_previousHtmlOverscroll=this.JSC$20466_previousBodyOverscroll=this.JSC$20466_previousBodyOverflow="";this.eventTarget=new _.lb;this.JSC$20466_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
mIn=function(A){var L=RjZ(RjZ(RjZ(new QLk(78),"po"),"hppp"),"hhc");
L.authUser=Number(_.ms("SESSION_INDEX","0"));L.colorScheme=A;return L};
qZ.prototype.getOrigin=function(){return this.origin?this.origin:_.u5(_.YI(_.dr(new _.kO,this.JSC$20466_win.location.protocol),this.JSC$20466_win.location.hostname),this.JSC$20466_win.location.port).toString()};
qZ.prototype.getTargetOrigin=function(){return _.u5(_.YI(_.dr(new _.kO,this.scheme),this.domain),this.port)};
qZ.prototype.preloadIframe=function(A){var L=this;if(this.iframeLoadPromise===void 0){var O=document.createElement("iframe");this.iframe=O;UaM(O,A);this.iframeLoadPromise=new Promise(function(X,x){var J=!1,Y=function(T){T.stopPropagation();O.removeEventListener("error",Y);O.removeEventListener("securitypolicyviolation",Y);x(Error("ik",{cause:T}))};
O.addEventListener("error",Y);O.addEventListener("securitypolicyviolation",Y);setTimeout(function(){J||x(Error("jk"))},3E4);
fPS(L,O,function(){J=!0;O.removeEventListener("error",Y);O.removeEventListener("securitypolicyviolation",Y);X()})});
IPX(this);A=this.getTargetOrigin().toString();O.setAttribute("allow","camera "+A+"; display-capture "+A);this.parentElement.appendChild(O)}return this.iframeLoadPromise};
var jLM=function(A,L){var O,X;return _.u(function(x){if(x.nextAddress==1)return O=WCS(getComputedStyle(A.parentElement).direction==="rtl"),A.parentElement.appendChild(O),document.activeElement instanceof HTMLElement&&(A.elementToFocusAfterClose=document.activeElement),_.e4(x,2),x.yield(A.preloadIframe(L),4);if(x.nextAddress!=2){A.parentElement.removeChild(O);A.JSC$20466_previousBodyOverflow=A.parentElement.style.overflow;A.JSC$20466_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
A.JSC$20466_previousBodyOverscroll=A.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";A.parentElement.style.overscrollBehavior="contain";A.parentElement.style.overflow="hidden";var J=A.iframe;J.style.bottom="0";J.style.border="none";J.style.height="100%";J.style.left="0";J.style.position=A.iframePosition;J.style.right="0";J.style.top="0";J.style.width="100%";J.style.zIndex="2202";J.setAttribute("aria-hidden","false");J.setAttribute("aria-modal","true");
A.opened=!0;yw$(A);return _.zA(x,0)}X=_.S4(x);A.parentElement.removeChild(O);$aB(A.isDarkTheme());ZnQ(A,!1);throw Error("kk",{cause:X});})},ZnQ=function(A,L){L=L===void 0?!0:L;
A.iframe!==void 0&&(WZS(A),document.documentElement.style.overscrollBehavior=A.JSC$20466_previousHtmlOverscroll,A.parentElement.style.overscrollBehavior=A.JSC$20466_previousBodyOverscroll,A.parentElement.style.overflow=A.JSC$20466_previousBodyOverflow,A.elementToFocusAfterClose!==void 0&&(A.elementToFocusAfterClose.focus(),A.elementToFocusAfterClose=void 0),L?IPX(A):(A.parentElement.removeChild(A.iframe),A.iframe=void 0,A.iframeLoadPromise=void 0,A.mainChannel=void 0),A.opened=!1)},WZS=function(A){A.backgroundElementsAriaHiddenIsNull&&
(C5B(A.backgroundElementsAriaHiddenIsNull),A.backgroundElementsAriaHiddenIsNull=void 0);
A.backgroundElementsAriaHiddenIsFalse&&(A.backgroundElementsAriaHiddenIsFalse.each(function(L){L.setAttribute("aria-hidden","false")}),A.backgroundElementsAriaHiddenIsFalse=void 0);
A.backgroundElementsWithoutInert&&(A.backgroundElementsWithoutInert.each(function(L){L.removeAttribute("inert")}),A.backgroundElementsWithoutInert=void 0)},yw$=function(A){A.backgroundElementsAriaHiddenIsNull=(new hh(A.iframe.parentElement)).children().filter(function(L){return L.getAttribute("aria-hidden")===null&&L!==A.iframe});
A.backgroundElementsAriaHiddenIsNull.each(function(L){L.setAttribute("aria-hidden","true")});
A.backgroundElementsAriaHiddenIsFalse=(new hh(A.iframe.parentElement)).children().filter(function(L){return L.getAttribute("aria-hidden")==="false"&&L!==A.iframe});
A.backgroundElementsAriaHiddenIsFalse.each(function(L){L.setAttribute("aria-hidden","true")});
A.backgroundElementsWithoutInert=(new hh(A.iframe.parentElement)).children().filter(function(L){return!L.hasAttribute("inert")&&L!==A.iframe});
A.backgroundElementsWithoutInert.each(function(L){L.setAttribute("inert","true")})},IPX=function(A){A=A.iframe;
A.style.bottom="-1000px";A.style.position="fixed";A.style.right="-1000px";A.style.border="";A.style.height="";A.style.left="";A.style.top="";A.style.width="";A.style.zIndex="";A.setAttribute("aria-hidden","true");A.setAttribute("aria-modal","false")};
qZ.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var QLk=function(A,L){qZ.call(this,kIJ[A],L);this.options=[];this.style=""};
_.g(QLk,qZ);var HnB=function(A){A.style="youtube";return A},zjS=function(A,L){A.eventTarget.listen(dIJ,L);
return A},BrM=function(A,L){A.eventTarget.listen(JwQ,L);
return A},RjZ=function(A,L){A.options.push(L);
return A},MrQ=function(A){var L=[A.getOrigin()];
A.ancestorOrigins&&L.push.apply(L,_.le(A.ancestorOrigins));var O=new _.kO(A.JSC$20466_win.location.href),X=A.startUrl?A.startUrl:A.options.includes("po")?"profile-picture/art":"profile-picture";L=G3(_.T7(A.getTargetOrigin(),X),"origin",L);A.startUrl&&_.Hq(L,"startPath",A.startUrl);A.authUser>0&&_.Hq(L,"authuser",A.authUser);A.pageId!==void 0&&_.Hq(L,"pageId",A.pageId);_.Hq(L,"hostId",A.hostId);A.jsMode!==void 0&&_.Hq(L,"jsmode",A.jsMode);A.rectangleRatio!==void 0&&_.Hq(L,"rectangleRatio",A.rectangleRatio);
A.options.length>0&&_.Hq(L,"opts",A.options.join(","));try{for(var x=_.d(["utm_source","utm_medium","utm_campaign","utm_content"]),J=x.next();!J.done;J=x.next()){var Y=J.value;_.Wq(O,Y)&&_.Hq(L,Y,_.Wq(O,Y))}var T,V=(T=A.hl)!=null?T:_.Wq(O,"hl");V!==void 0&&_.Hq(L,"hl",V)}catch(E){if(!(E instanceof URIError))throw E;}A.colorScheme&&_.Hq(L,"theme",A.colorScheme);A.style&&_.Hq(L,"style",A.style);return L},$IS=function(A,L){A.mainChannel=_.dk({destination:A.JSC$20466_win,
iframe:L,origin:A.getTargetOrigin().toString(),channelName:"ow",onMessage:function(O){O=OnJ(O.data);if(L===A.iframe)switch(_.IH(O,1)){case 1:A.eventTarget.dispatchEvent(new Vr$);ZnQ(A);break;case 2:A.eventTarget.dispatchEvent(new u_J(_.mT(O,4),_.mT(O,2),_.IH(O,5),_.ET(O,oFX,6)));break;case 0:var X;A.eventTarget.dispatchEvent(new Trz(_.mT(O,2),(X=_.IH(O,3))!=null?X:0));break;case 3:A.eventTarget.dispatchEvent(new Vr$(!0));ZnQ(A,!1);break;case 4:A.eventTarget.dispatchEvent(new DIS)}}})},fPS=function(A,
L,O){_.dk({destination:A.JSC$20466_win,
iframe:L,origin:_.u5(_.YI(_.dr(new _.kO,A.scheme),A.domain),A.port).toString(),channelName:"owi",onMessage:function(X){L===A.iframe&&(O!==void 0&&O(),$IS(A,L),A.opened&&A.mainChannel.send(sLn(xIX())),X.reply(),fPS(A,L))}})};
QLk.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?qZ.prototype.preloadIframe.call(this,MrQ(this).toString()):this.iframeLoadPromise};
QLk.prototype.openPicker=function(A){var L=this;return _.u(function(O){if(O.nextAddress==1)return L.startUrl=A?A:L.options.includes("po")?"profile-picture/art":"profile-picture",O.yield(jLM(L,MrQ(L).toString()),2);if(L.mainChannel){var X=L.mainChannel,x=X.send;var J=xIX();J=_.gz(J,2,L.startUrl);x.call(X,sLn(J))}_.qo(O)})};var aPk=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(aPk,_.AE);_.P=aPk.prototype;_.P.getSize=function(){return mr(this,1)};
_.P.setSize=function(A){return _.HM(this,1,A)};
_.P.getWidth=function(){return mr(this,12)};
_.P.getHeight=function(){return mr(this,13)};
_.P.setHeight=function(A){return _.HM(this,13,A)};
_.P.setCenterCrop=function(A){return _.dX(this,20,A)};
_.P.getHtml=function(){return _.Fu(this,4)};
_.P.getToken=function(){return _.n$(this,24)};
_.P.setToken=function(A){return _.gz(this,24,A)};
_.P.getBackgroundColor=function(){return mr(this,87)};
_.P.hasBackgroundColor=function(){return _.Ak(_.ps(this,87))!=null};
_.P.getStoryboardLevel=function(){return mr(this,109)};var gG=function(A){this.JSC$20474_value_=void 0;this.childNodes_={};if(A){var L=_.usl(A);A=_.P9(A);for(var O=0;O<L.length;O++)this.set(L[O],A[O])}};
gG.prototype.set=function(A,L){k7B(this,A,L,!1)};
gG.prototype.add=function(A,L){k7B(this,A,L,!0)};
var k7B=function(A,L,O,X){for(var x=0;x<L.length;x++){var J=L.charAt(x);A.childNodes_[J]||(A.childNodes_[J]=new gG);A=A.childNodes_[J]}if(X&&A.JSC$20474_value_!==void 0)throw Error("lk`"+L);A.JSC$20474_value_=O},UIX=function(A,L){for(var O=0;O<L.length;O++)if(A=A.childNodes_[L.charAt(O)],!A)return;
return A};
gG.prototype.get=function(A){return(A=UIX(this,A))?A.JSC$20474_value_:void 0};
gG.prototype.getValues=function(){var A=[];vIn(this,A);return A};
var vIn=function(A,L){A.JSC$20474_value_!==void 0&&L.push(A.JSC$20474_value_);for(var O in A.childNodes_)vIn(A.childNodes_[O],L)};
gG.prototype.getKeys=function(A){var L=[];if(A){for(var O=this,X=0;X<A.length;X++){var x=A.charAt(X);if(!O.childNodes_[x])return[];O=O.childNodes_[x]}oIJ(O,A,L)}else oIJ(this,"",L);return L};
var oIJ=function(A,L,O){A.JSC$20474_value_!==void 0&&O.push(L);for(var X in A.childNodes_)oIJ(A.childNodes_[X],L+X,O)};
_.P=gG.prototype;_.P.containsKey=function(A){return this.get(A)!==void 0};
_.P.containsValue=function(A){if(this.JSC$20474_value_===A)return!0;for(var L in this.childNodes_)if(this.childNodes_[L].containsValue(A))return!0;return!1};
_.P.clear=function(){this.childNodes_={};this.JSC$20474_value_=void 0};
_.P.remove=function(A){for(var L=this,O=[],X=0;X<A.length;X++){var x=A.charAt(X);if(!L.childNodes_[x])throw Error("mk`"+A);O.push([L,x]);L=L.childNodes_[x]}A=L.JSC$20474_value_;for(delete L.JSC$20474_value_;O.length>0;)if(X=O.pop(),L=X[0],X=X[1],L.childNodes_[X].isEmpty())delete L.childNodes_[X];else break;return A};
_.P.clone=function(){return new gG(this)};
_.P.getCount=function(){return RqX(this.getValues())};
_.P.isEmpty=function(){return this.JSC$20474_value_===void 0&&_.lW.isEmpty(this.childNodes_)};var O3S=function(){if(!Arn){var A=Arn=new gG,L;for(L in LDX)A.add(L,LDX[L])}},Arn,wG=function(A,L){this.types=A;
this.setters=L},LDX={a:new wG([3,
0],[function(A,L){_.dX(A,21,L)},
function(A,L){_.HM(A,56,L)}]),
al:new wG([3],[function(A,L){_.dX(A,74,L)}]),
b:new wG([3,0],[function(A,L){_.dX(A,23,L)},
function(A,L){_.HM(A,38,L)}]),
ba:new wG([0],[function(A,L){_.HM(A,85,L)}]),
bc:new wG([0],[function(A,L){_.HM(A,87,L)}]),
br:new wG([0],[function(A,L){_.HM(A,86,L)}]),
c:new wG([3,0],[function(A,L){_.dX(A,2,L)},
function(A,L){_.HM(A,39,L)}]),
cc:new wG([3],[function(A,L){_.dX(A,51,L)}]),
ci:new wG([3],[function(A,L){_.dX(A,32,L)}]),
ckm:new wG([3],[function(A,L){_.dX(A,104,L)}]),
cp:new wG([0],[function(A,L){_.HM(A,92,L)}]),
cr:new wG([3],[function(A,L){_.dX(A,108,L)}]),
cv:new wG([0],[function(A,L){_.HM(A,94,L)}]),
d:new wG([3],[function(A,L){_.dX(A,3,L)}]),
dc:new wG([5],[function(A,L){_.gz(A,99,L)}]),
df:new wG([3],[function(A,L){_.dX(A,80,L)}]),
dv:new wG([3],[function(A,L){_.dX(A,90,L)}]),
e:new wG([0],[function(A,L){_.HM(A,15,L)}]),
em:new wG([0],[function(A,L){_.HM(A,107,L)}]),
f:new wG([4],[function(A,L){_.gz(A,16,L)}]),
fg:new wG([3],[function(A,L){_.dX(A,34,L)}]),
fh:new wG([3],[function(A,L){_.dX(A,30,L)}]),
fm:new wG([3],[function(A,L){_.dX(A,84,L)}]),
fo:new wG([2],[function(A,L){_.J4(A,79,_.j3(L))}]),
ft:new wG([3],[function(A,L){_.dX(A,50,L)}]),
fv:new wG([3],[function(A,L){_.dX(A,31,L)}]),
g:new wG([3],[function(A,L){_.dX(A,14,L)}]),
gce:new wG([4],[function(A,L){_.gz(A,112,L)}]),
gd:new wG([3],[function(A,L){_.dX(A,83,L)}]),
gm:new wG([3],[function(A,L){_.dX(A,105,L)}]),
h:new wG([3,0],[function(A,L){_.dX(A,4,L)},
function(A,L){A.setHeight(L)}]),
i:new wG([3],[function(A,L){_.dX(A,22,L)}]),
ic:new wG([0],[function(A,L){_.HM(A,71,L)}]),
id:new wG([3],[function(A,L){_.dX(A,70,L)}]),
il:new wG([3],[function(A,L){_.dX(A,96,L)}]),
ip:new wG([3],[function(A,L){_.dX(A,54,L)}]),
iv:new wG([0],[function(A,L){_.gT(A,75,L)}]),
j:new wG([1],[function(A,L){L=L==null?L:kkz(L);_.J4(A,29,L)}]),
k:new wG([3,0],[function(A,L){_.dX(A,17,L)},
function(A,L){_.HM(A,42,L)}]),
l:new wG([0],[function(A,L){_.HM(A,44,L)}]),
lf:new wG([3],[function(A,L){_.dX(A,65,L)}]),
lo:new wG([3],[function(A,L){_.dX(A,97,L)}]),
m:new wG([0],[function(A,L){_.HM(A,63,L)}]),
md:new wG([3],[function(A,L){_.dX(A,91,L)}]),
mm:new wG([4],[function(A,L){_.gz(A,81,L)}]),
mo:new wG([3],[function(A,L){_.dX(A,73,L)}]),
mp:new wG([0],[function(A,L){_.HM(A,115,L)}]),
mv:new wG([3],[function(A,L){_.dX(A,66,L)}]),
n:new wG([3],[function(A,L){A.setCenterCrop(L)}]),
nc:new wG([3],[function(A,L){_.dX(A,55,L)}]),
nd:new wG([3],[function(A,L){_.dX(A,53,L)}]),
ng:new wG([3],[function(A,L){_.dX(A,95,L)}]),
ngm:new wG([3],[function(A,L){_.dX(A,106,L)}]),
no:new wG([3],[function(A,L){_.dX(A,37,L)}]),
ns:new wG([3],[function(A,L){_.dX(A,40,L)}]),
nt0:new wG([4],[function(A,L){_.gz(A,36,L)}]),
ntm:new wG([3],[function(A,L){_.dX(A,114,L)}]),
nu:new wG([3],[function(A,L){_.dX(A,46,L)}]),
nw:new wG([3],[function(A,L){_.dX(A,48,L)}]),
o:new wG([1,3],[function(A,L){L=L==null?L:kkz(L);_.J4(A,7,L)},
function(A,L){_.dX(A,27,L)}]),
p:new wG([3,0],[function(A,L){_.dX(A,19,L)},
function(A,L){_.HM(A,43,L)}]),
pa:new wG([3],[function(A,L){_.dX(A,61,L)}]),
pc:new wG([0],[function(A,L){_.HM(A,88,L)}]),
pd:new wG([3],[function(A,L){_.dX(A,60,L)}]),
pf:new wG([3],[function(A,L){_.dX(A,67,L)}]),
pg:new wG([3],[function(A,L){_.dX(A,72,L)}]),
pi:new wG([2],[function(A,L){_.J4(A,76,_.j3(L))}]),
pp:new wG([3],[function(A,L){_.dX(A,52,L)}]),
pt:new wG([4],[function(A,L){_.gz(A,111,L)}]),
q:new wG([4],[function(A,L){_.gz(A,28,L)}]),
r:new wG([3,0],[function(A,L){_.dX(A,6,L)},
function(A,L){_.HM(A,26,L)}]),
ra:new wG([3],[function(A,L){_.dX(A,103,L)}]),
rf:new wG([3],[function(A,L){_.dX(A,100,L)}]),
rg:new wG([3],[function(A,L){_.dX(A,59,L)}]),
rh:new wG([3],[function(A,L){_.dX(A,49,L)}]),
rj:new wG([3],[function(A,L){_.dX(A,57,L)}]),
ro:new wG([2],[function(A,L){_.J4(A,78,_.j3(L))}]),
rp:new wG([3],[function(A,L){_.dX(A,58,L)}]),
rw:new wG([3],[function(A,L){_.dX(A,35,L)}]),
rwa:new wG([3],[function(A,L){_.dX(A,64,L)}]),
rwu:new wG([3],[function(A,L){_.dX(A,41,L)}]),
s:new wG([3,0],[function(A,L){_.dX(A,33,L)},
function(A,L){A.setSize(L)}]),
sb:new wG([0],[function(A,L){_.HM(A,110,L)}]),
sc:new wG([0],[function(A,L){_.HM(A,89,L)}]),
sg:new wG([3],[function(A,L){_.dX(A,82,L)}]),
sl:new wG([0],[function(A,L){_.HM(A,109,L)}]),
sm:new wG([3],[function(A,L){_.dX(A,93,L)}]),
t:new wG([4],[function(A,L){A.setToken(L)}]),
tm:new wG([3],[function(A,L){_.dX(A,113,L)}]),
u:new wG([3],[function(A,L){_.dX(A,18,L)}]),
ut:new wG([3],[function(A,L){_.dX(A,45,L)}]),
v:new wG([0],[function(A,L){_.HM(A,62,L)}]),
vb:new wG([0],[function(A,L){_.gT(A,68,L)}]),
vf:new wG([4],[function(A,L){_.gz(A,102,L)}]),
vl:new wG([0],[function(A,L){_.gT(A,69,L)}]),
vm:new wG([3],[function(A,L){_.dX(A,98,L)}]),
w:new wG([0],[function(A,L){_.HM(A,12,L)}]),
x:new wG([0],[function(A,L){_.HM(A,9,L)}]),
y:new wG([0],[function(A,L){_.HM(A,10,L)}]),
ya:new wG([2],[function(A,L){_.J4(A,77,_.j3(L))}]),
z:new wG([0],[function(A,L){_.HM(A,11,L)}])};
O3S.prototype.parse=function(A){var L=new aPk,O=new aPk;if(A=="")A=!0;else{A=A.split("-");for(var X=!0,x=0;x<A.length;x++){var J=A[x];if(J.length==0)X=!1;else{var Y=J,T=!1;var V=Y;var E=Y.charAt(0);E!=E.toLowerCase()&&(T=!0,V=Y.charAt(0).toLowerCase()+Y.substring(1));var n=Arn;for(E=1;E<=V.length;++E){var t=n,b=V.substring(0,E);if(b.length==0?t.isEmpty():!UIX(t,b))break}V=E==1?null:(V=n.get(V.substring(0,E-1)))?{option:Y.substring(0,E-1),value:Y.substring(E-1),signed:T,attributes:V}:null;if(V){Y=
[];T=[];E=!1;for(n=0;n<V.attributes.types.length;n++){t=V.attributes.types[n];var S=V.value;b=x;if(V.signed&&t==1)for(var w=S.length;w<12&&b<A.length-1;)S+="-"+A[b+1],w=S.length,++b;else if(t==2)for(;b<A.length-1&&A[b+1].match(/^[\d\.]/);)S+="-"+A[b+1],++b;w=V.attributes.setters[n];S=ODJ(this,t)(V.option,S,L,O,w);if(S===null){E=!0;x=b;break}else Y.push(t),T.push(S)}if(!E)for(V=0;V<T.length;V++)n=Y[V],S=T[V],XFJ(this,n)(J,S);X=X&&E}else X=!1}}A=X}return new xzB(L,O,A)};
var pW=function(A,L,O,X,x,J){x(O,L);A=A.charAt(0);J=J(A==A.toUpperCase());x(X,J)};
_.P=O3S.prototype;_.P.parseAndSetIntOption_=function(A,L,O,X,x){if(L=="")return 0;isFinite(L)&&(L=String(L));L=typeof L==="string"?/^\s*-?0x/i.test(L)?parseInt(L,16):parseInt(L,10):NaN;if(isNaN(L))return 1;pW(A,L,O,X,x,Number);return null};
_.P.logIntParseError_=function(){};
_.P.parseAndSetFloatOption_=function(A,L,O,X,x){if(L=="")return 0;var J=Number(L);L=J==0&&_.Ye(L)?NaN:J;if(isNaN(L))return 1;pW(A,L,O,X,x,Number);return null};
_.P.logFloatParseError_=function(){};
_.P.parseAndSetBoolOption_=function(A,L,O,X,x){if(L!="")return 2;pW(A,!0,O,X,x,Boolean);return null};
_.P.logBoolParseError_=function(){};
_.P.parseAndSetStringOption_=function(A,L,O,X,x){if(L=="")return 0;pW(A,L,O,X,x,function(J){return J?"1":""});
return null};
_.P.logStringParseError_=function(){};
_.P.parseAndSetUint64Base64Option_=function(A,L,O,X,x){if(L=="")return 0;pW(A,L,O,X,x,function(J){return J?1:0});
return null};
var ODJ=function(A,L){switch(L){case 0:return(0,_.is)(A.parseAndSetIntOption_,A);case 2:return(0,_.is)(A.parseAndSetFloatOption_,A);case 3:return(0,_.is)(A.parseAndSetBoolOption_,A);case 4:return(0,_.is)(A.parseAndSetStringOption_,A);case 1:return(0,_.is)(A.parseAndSetUint64Base64Option_,A);default:return function(){}}},XFJ=function(A,L){switch(L){case 0:return(0,_.is)(A.logIntParseError_,A);
case 2:return(0,_.is)(A.logFloatParseError_,A);case 3:return(0,_.is)(A.logBoolParseError_,A);case 4:case 1:return(0,_.is)(A.logStringParseError_,A);default:return function(){}}},xzB=function(A,L,O){this.valueProto_=A;
this.signatureFlagProto_=L;this.JSC$20486_valid_=O};
xzB.prototype.isValid=function(){return this.JSC$20486_valid_};var vBX=function(A){this.JSC$20487_parser_=null;this.JSC$20487_components_=[];this.JSC$20487_parsedOptions_=null;sMX(this,A)},Jrz=function(A){A.JSC$20487_parser_==null&&(A.JSC$20487_parser_=new O3S);
return A.JSC$20487_parser_},sMX=function(A,L){A.JSC$20487_parsedOptions_=L?typeof L==="string"?Jrz(A).parse(L):L:Jrz(A).parse("")},iM=function(A,L){return A==L?!1:!0};
_.P=vBX.prototype;_.P.JSC$20489_setCrop=function(A){A=A||void 0;var L=this.JSC$20487_parsedOptions_,O=L.valueProto_;iM(A,_.Fu(O,2),_.Fu(L.signatureFlagProto_,2))&&_.dX(O,2,A);return this};
_.P.JSC$20489_setCircleCrop=function(A){A=A||void 0;var L=this.JSC$20487_parsedOptions_,O=L.valueProto_;iM(A,Qf(O,51),Qf(L.signatureFlagProto_,51))&&_.dX(O,51,A);return this};
_.P.JSC$20489_setImageCrop=function(A){A=A||void 0;var L=this.JSC$20487_parsedOptions_,O=L.valueProto_;iM(A,Qf(O,32),Qf(L.signatureFlagProto_,32))&&_.dX(O,32,A);return this};
_.P.setHeight=function(A){var L=this.JSC$20487_parsedOptions_,O=L.valueProto_;iM(A,O.getHeight(),L.signatureFlagProto_.getHeight())&&O.setHeight(A);return this};
_.P.setCenterCrop=function(A){A=A||void 0;var L=this.JSC$20487_parsedOptions_,O=L.valueProto_;iM(A,_.Fu(O,20),_.Fu(L.signatureFlagProto_,20))&&O.setCenterCrop(A);return this};
_.P.JSC$20489_setSmartCrop=function(A){A=A||void 0;var L=this.JSC$20487_parsedOptions_,O=L.valueProto_;iM(A,_.Fu(O,19),_.Fu(L.signatureFlagProto_,19))&&_.dX(O,19,A);return this};
_.P.JSC$20489_setPad=function(A){A=A||void 0;var L=this.JSC$20487_parsedOptions_,O=L.valueProto_;iM(A,Qf(O,60),Qf(L.signatureFlagProto_,60))&&_.dX(O,60,A);return this};
_.P.JSC$20489_setSmartCropUseFace=function(A){A=A||void 0;var L=this.JSC$20487_parsedOptions_,O=L.valueProto_;iM(A,_.Fu(O,67),_.Fu(L.signatureFlagProto_,67))&&_.dX(O,67,A);return this};
_.P.JSC$20489_setSmartCropNoClip=function(A){A=A||void 0;var L=this.JSC$20487_parsedOptions_,O=L.valueProto_;iM(A,_.Fu(O,52),_.Fu(L.signatureFlagProto_,52))&&_.dX(O,52,A);return this};
_.P.setSize=function(A){var L=this.JSC$20487_parsedOptions_,O=L.valueProto_;iM(A,O.getSize(),L.signatureFlagProto_.getSize())&&O.setSize(A);return this};
_.P.setToken=function(A){A=A||void 0;var L=this.JSC$20487_parsedOptions_,O=L.valueProto_;iM(A,O.getToken(),L.signatureFlagProto_.getToken())&&O.setToken(A);return this};
_.P.JSC$20489_setWidth=function(A){var L=this.JSC$20487_parsedOptions_,O=L.valueProto_;iM(A,O.getWidth(),L.signatureFlagProto_.getWidth())&&_.HM(O,12,A);return this};
_.P.setOptions=function(A){sMX(this,A);return this};
_.P.clearOptions=function(){sMX(this,"");return this};
_.P.build=function(){this.JSC$20487_components_.length=0;var A=this.JSC$20487_parsedOptions_,L=A.valueProto_;A=A.signatureFlagProto_;NZ(this,"s",L.getSize(),A.getSize());NZ(this,"w",L.getWidth(),A.getWidth());rG(this,"c",_.Fu(L,2),_.Fu(A,2));rG(this,"d",_.Fu(L,3),_.Fu(A,3));NZ(this,"h",L.getHeight(),A.getHeight());rG(this,"s",Qf(L,33),Qf(A,33));rG(this,"h",L.getHtml(),A.getHtml());rG(this,"p",_.Fu(L,19),_.Fu(A,19));rG(this,"pp",_.Fu(L,52),_.Fu(A,52));rG(this,"pf",_.Fu(L,67),_.Fu(A,67));rG(this,"n",
_.Fu(L,20),_.Fu(A,20));NZ(this,"r",mr(L,26),mr(A,26));rG(this,"r",_.Fu(L,6),_.Fu(A,6));rG(this,"o",Qf(L,27),Qf(A,27));var O=_.Cs(L,7,_.wA);KW(this,"o",O,_.Cs(A,7,_.wA));O=_.Cs(L,29,_.wA);KW(this,"j",O,_.Cs(A,29,_.wA));NZ(this,"x",mr(L,9),mr(A,9));NZ(this,"y",mr(L,10),mr(A,10));NZ(this,"z",mr(L,11),mr(A,11));rG(this,"g",_.Fu(L,14),_.Fu(A,14));NZ(this,"e",mr(L,15),mr(A,15));KW(this,"f",_.n$(L,16),_.n$(A,16));rG(this,"k",Qf(L,17),Qf(A,17));rG(this,"u",Qf(L,18),!0);rG(this,"ut",Qf(L,45),!0);rG(this,"i",
Qf(L,22),!0);rG(this,"a",Qf(L,21),Qf(A,21));rG(this,"b",_.Fu(L,23),_.Fu(A,23));NZ(this,"b",mr(L,38),mr(A,38));NZ(this,"c",mr(L,39),mr(A,39),16,8);KW(this,"q",_.n$(L,28),_.n$(A,28));rG(this,"fh",Qf(L,30),Qf(A,30));rG(this,"fv",Qf(L,31),Qf(A,31));rG(this,"fg",_.Fu(L,34),_.Fu(A,34));rG(this,"ci",Qf(L,32),Qf(A,32));KW(this,"t",L.getToken(),A.getToken());KW(this,"nt0",_.n$(L,36),_.n$(A,36));rG(this,"rw",_.Fu(L,35),_.Fu(A,35));rG(this,"rwu",_.Fu(L,41),_.Fu(A,41));rG(this,"rwa",_.Fu(L,64),_.Fu(A,64));rG(this,
"nw",_.Fu(L,48),_.Fu(A,48));rG(this,"rh",_.Fu(L,49),_.Fu(A,49));rG(this,"no",_.Fu(L,37),_.Fu(A,37));rG(this,"ns",Qf(L,40),Qf(A,40));NZ(this,"k",mr(L,42),mr(A,42));NZ(this,"p",mr(L,43),mr(A,43));NZ(this,"l",mr(L,44),mr(A,44));NZ(this,"v",mr(L,62),mr(A,62));rG(this,"nu",Qf(L,46),Qf(A,46));rG(this,"ft",Qf(L,50),Qf(A,50));rG(this,"cc",Qf(L,51),Qf(A,51));rG(this,"nd",Qf(L,53),Qf(A,53));rG(this,"ip",Qf(L,54),Qf(A,54));rG(this,"nc",Qf(L,55),Qf(A,55));NZ(this,"a",mr(L,56),mr(A,56));rG(this,"rj",Qf(L,57),
Qf(A,57));rG(this,"rp",Qf(L,58),Qf(A,58));rG(this,"rg",Qf(L,59),Qf(A,59));rG(this,"pd",Qf(L,60),Qf(A,60));rG(this,"pa",Qf(L,61),Qf(A,61));NZ(this,"m",mr(L,63),mr(A,63));NZ(this,"vb",fa(L,68),fa(A,68));NZ(this,"vl",fa(L,69),fa(A,69));rG(this,"lf",Qf(L,65),Qf(A,65));rG(this,"mv",Qf(L,66),Qf(A,66));rG(this,"id",Qf(L,70),Qf(A,70));NZ(this,"ic",mr(L,71),!0);rG(this,"pg",_.Fu(L,72),_.Fu(A,72));rG(this,"mo",Qf(L,73),Qf(A,73));rG(this,"al",Qf(L,74),Qf(A,74));NZ(this,"iv",fa(L,75),fa(A,75));NZ(this,"pi",Iw(L,
76),Iw(A,76));NZ(this,"ya",Iw(L,77),Iw(A,77));NZ(this,"ro",Iw(L,78),Iw(A,78));NZ(this,"fo",Iw(L,79),Iw(A,79));rG(this,"df",Qf(L,80),Qf(A,80));KW(this,"mm",_.n$(L,81),_.n$(A,81));rG(this,"sg",Qf(L,82),Qf(A,82));rG(this,"gd",Qf(L,83),Qf(A,83));rG(this,"fm",Qf(L,84),Qf(A,84));NZ(this,"ba",mr(L,85),mr(A,85));NZ(this,"br",mr(L,86),mr(A,86));NZ(this,"bc",L.getBackgroundColor(),A.getBackgroundColor(),16,8);NZ(this,"pc",mr(L,88),mr(A,88),16,8);NZ(this,"sc",mr(L,89),mr(A,89),16,8);rG(this,"dv",Qf(L,90),Qf(A,
90));rG(this,"md",Qf(L,91),Qf(A,91));NZ(this,"cp",mr(L,92),mr(A,92));rG(this,"sm",Qf(L,93),Qf(A,93));NZ(this,"cv",mr(L,94),mr(A,94));rG(this,"ng",Qf(L,95),Qf(A,95));rG(this,"il",Qf(L,96),Qf(A,96));rG(this,"lo",Qf(L,97),Qf(A,97));rG(this,"vm",Qf(L,98),Qf(A,98));KW(this,"dc",_.n$(L,99),_.n$(A,99));rG(this,"rf",Qf(L,100),Qf(A,100));KW(this,"vf",_.n$(L,102),_.n$(A,102));rG(this,"ra",_.Fu(L,103),_.Fu(A,103));rG(this,"ckm",Qf(L,104),Qf(A,104));rG(this,"gm",Qf(L,105),Qf(A,105));rG(this,"ngm",Qf(L,106),Qf(A,
106));NZ(this,"em",mr(L,107),mr(A,107));rG(this,"cr",Qf(L,108),Qf(A,108));NZ(this,"sl",L.getStoryboardLevel(),A.getStoryboardLevel());NZ(this,"sb",mr(L,110),mr(A,110));KW(this,"pt",_.n$(L,111),_.n$(A,111));KW(this,"gce",_.n$(L,112),_.n$(A,112));rG(this,"tm",Qf(L,113),Qf(A,113));rG(this,"ntm",Qf(L,114),Qf(A,114));NZ(this,"mp",mr(L,115),mr(A,115));return this.JSC$20487_components_.join("-")};
var NZ=function(A,L,O,X,x,J){if(O!=null){var Y=x==void 0||x!=10&&x!=16?10:x;O=Number(O).toString(Y);x=new eFZ;x.append(Y==16?"0x":"");Y=x.append;J==void 0?J="":(J-=O.length,J=J<=0?"":(0,_.xN6)("0",J));Y.call(x,J);x.append(O);PAS(A,L,x.toString(),!!Number(X))}},rG=function(A,L,O,X){O&&PAS(A,L,"",!!X)},KW=function(A,L,O,X){O&&PAS(A,L,String(O),!!Number(X))},PAS=function(A,L,O,X){X&&(L=L.charAt(0).toUpperCase()+L.substring(1));
A.JSC$20487_components_.push(L+O)};_.Ty(Bd,vBX);_.P=Bd.prototype;_.P.JSC$20489_setCrop=function(A){A&&GE(this);return Bd.superClass_.JSC$20489_setCrop.call(this,A)};
_.P.setHeight=function(A){A=A==null||A<0?void 0:A;A!=null&&this.setSize();return Bd.superClass_.setHeight.call(this,A)};
_.P.JSC$20489_setImageCrop=function(A){A&&GE(this);return Bd.superClass_.JSC$20489_setImageCrop.call(this,A)};
_.P.JSC$20489_setCircleCrop=function(A){A&&GE(this);return Bd.superClass_.JSC$20489_setCircleCrop.call(this,A)};
_.P.setSize=function(A){_.BJ(A)&&(A=Math.max(A.width,A.height));A=A==null||A<0?void 0:A;A!=null&&(this.JSC$20489_setWidth(),this.setHeight());return Bd.superClass_.setSize.call(this,A)};
_.P.JSC$20489_setSmartCrop=function(A){A&&GE(this);return Bd.superClass_.JSC$20489_setSmartCrop.call(this,A)};
_.P.JSC$20489_setSmartCropNoClip=function(A){A&&GE(this);return Bd.superClass_.JSC$20489_setSmartCropNoClip.call(this,A)};
_.P.JSC$20489_setSmartCropUseFace=function(A){A&&GE(this);return Bd.superClass_.JSC$20489_setSmartCropUseFace.call(this,A)};
_.P.setCenterCrop=function(A){A&&GE(this);return Bd.superClass_.setCenterCrop.call(this,A)};
_.P.JSC$20489_setPad=function(A){A&&GE(this);return Bd.superClass_.JSC$20489_setPad.call(this,A)};
_.P.JSC$20489_setWidth=function(A){A=A==null||A<0?void 0:A;A!=null&&this.setSize();return Bd.superClass_.JSC$20489_setWidth.call(this,A)};
var dzk=function(A){A.clearOptions();var L=A.JSC$20487_parsedOptions_,O=L.valueProto_;iM(!0,_.Fu(O,3),_.Fu(L.signatureFlagProto_,3))&&_.dX(O,3,!0);return A},GE=function(A){A.setCenterCrop();
A.JSC$20489_setCircleCrop();A.JSC$20489_setCrop();A.JSC$20489_setImageCrop();A.JSC$20489_setPad();A.JSC$20489_setSmartCrop();A.JSC$20489_setSmartCropNoClip();A.JSC$20489_setSmartCropUseFace()};
Bd.prototype.build=function(){var A=this.JSC$20487_parsedOptions_.valueProto_;Qf(A,18)||Qf(A,45)?A.getSize()||this.setSize(0):(A=this.JSC$20487_parsedOptions_.valueProto_,A.getSize()||A.getWidth()||A.getHeight()||(this.setSize(),this.setHeight(),this.JSC$20489_setWidth(),GE(this)));return Bd.superClass_.build.call(this)};var YaZ=/^[^\/]*\/\//,lM=function(A,L){L=L===void 0?!1:L;this.original_=A;this.originalPrefix_="";(A=this.original_.match(YaZ))&&A[0]?(this.originalPrefix_=A[0],A=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):A="http://"+this.original_;this.uri_=_.jV(A,!0);this.isFreeformUrl_=L;this.JSC$20493_valid_=!0;this.obfuscated_=!1},u8n=function(A,L){A.JSC$20495_pathPrefix_=A.JSC$20495_pathPrefix_?A.JSC$20495_pathPrefix_+("/"+L):L},ce=function(A){if(A.JSC$20495_components_==
void 0){var L=A.uri_.getPath().substring(1);
A.JSC$20495_pathPrefix_=null;if(A.isFreeformUrl_){A.JSC$20495_components_=[];if((L.match(/=/g)||[]).length>1)return A.JSC$20493_valid_=!1,A.JSC$20495_components_;var O=L.indexOf("=");O!=-1?(A.JSC$20495_components_.push(L.substr(0,O)),A.JSC$20495_components_.push(L.substr(O+1))):A.JSC$20495_components_.push(L);return A.JSC$20495_components_}A.JSC$20495_components_=L.split("/");L=A.JSC$20495_components_.length;L>2&&A.JSC$20495_components_[0]=="u"&&(u8n(A,A.JSC$20495_components_[0]+"/"+A.JSC$20495_components_[1]),
A.JSC$20495_components_.shift(),A.JSC$20495_components_.shift(),L-=2);if(L==0||L==4||L>7)return A.JSC$20493_valid_=!1,A.JSC$20495_components_;if(L==2)u8n(A,A.JSC$20495_components_[0]);else if(A.JSC$20495_components_[0]=="image")u8n(A,A.JSC$20495_components_[0]);else if(L==7||L==3)return A.JSC$20493_valid_=!1,A.JSC$20495_components_;if(L<=3){A.obfuscated_=!0;L==3&&(u8n(A,A.JSC$20495_components_[1]),A.JSC$20495_components_.shift(),--L);--L;O=A.JSC$20495_components_[L];var X=O.indexOf("=");X!=-1&&(A.JSC$20495_components_[L]=
O.substr(0,X),A.JSC$20495_components_.push(O.substr(X+1)))}}return A.JSC$20495_components_};
lM.prototype.isValid=function(){ce(this);return this.JSC$20493_valid_};
lM.prototype.isObfuscated=function(){ce(this);return this.obfuscated_};
var TxJ=function(A){ce(A);return A.isFreeformUrl_},CW=function(A){ce(A);
A.JSC$20495_pathPrefix_==void 0&&(A.JSC$20495_pathPrefix_=null);return A.JSC$20495_pathPrefix_},Vp7=function(A){switch(ce(A).length){case 7:return!0;
case 6:return CW(A)==null;case 5:return!1;case 3:return!0;case 2:return CW(A)==null;case 1:return!1;default:return!1}},FN=function(A,L){if(TxJ(A))a:{switch(L){case 7:L=0;
break;case 4:if(!Vp7(A)){A=null;break a}L=1;break;default:A=null;break a}A=ce(A)[L]}else if(A.isObfuscated())a:{var O=CW(A)!=null?1:0;switch(L){case 6:L=O;break;case 4:if(!Vp7(A)){A=null;break a}L=1+O;break;default:A=null;break a}A=ce(A)[L]}else a:{O=CW(A)!=null?1:0;switch(L){case 0:L=O;break;case 1:L=1+O;break;case 2:L=2+O;break;case 3:L=3+O;break;case 4:if(!Vp7(A)){A=null;break a}L=4+O;break;case 5:L=Vp7(A)?1:0;L=4+O+L;break;default:A=null;break a}A=ce(A)[L]}return A};
lM.prototype.getOptions=function(){this.options_==void 0&&(this.options_=FN(this,4));return this.options_};var LuS=function(){};
LuS.prototype.parse=function(A,L){return new oBB(A,L===void 0?!1:L)};
var oBB=function(A,L){lM.call(this,A,L===void 0?!1:L)};
_.g(oBB,lM);_.Ty(Mc,Bd);var AiB;Mc.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
Mc.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var A=Mc.superClass_.build.call(this),L=[];CW(this.parsedImageUrl_)!=null&&L.push(CW(this.parsedImageUrl_));var O=TxJ(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var X=this.parsedImageUrl_;X.obfuscatedData_==void 0&&(X.obfuscatedData_=FN(X,6));L.push(X.obfuscatedData_+(A?"="+A:""))}else if(O){X=L.push;var x=this.parsedImageUrl_;x.freeformUrlPath_===void 0&&(x.freeformUrlPath_=FN(x,
7));X.call(L,x.freeformUrlPath_);A&&L.push(A)}else X=L.push,x=this.parsedImageUrl_,x.obfuscatedGaiaId_==void 0&&(x.obfuscatedGaiaId_=FN(x,0)),X.call(L,x.obfuscatedGaiaId_),X=L.push,x=this.parsedImageUrl_,x.photoId_==void 0&&(x.photoId_=FN(x,1)),X.call(L,x.photoId_),X=L.push,x=this.parsedImageUrl_,x.imageVersion_==void 0&&(x.imageVersion_=FN(x,2)),X.call(L,x.imageVersion_),X=L.push,x=this.parsedImageUrl_,x.signature_==void 0&&(x.signature_=FN(x,3)),X.call(L,x.signature_),A&&L.push(A),A=L.push,X=this.parsedImageUrl_,
X.filename_==void 0&&(X.filename_=FN(X,5)),A.call(L,X.filename_);L=O?L.join("="):L.join("/");L=_.jV(this.protocolPrefix_+this.JSC$20501_domain_+"/"+L+(this.JSC$20501_query_?"?"+this.JSC$20501_query_:"")).toString();L.startsWith("%3a//")&&(L=L.replace("%3a//","://"));return L};var DzS=_.AW(["viewBox"]),e17=_.AW(["width"]),Exk=_.AW(["height"]),nxQ=_.AW(["fill"]),tpn=_.AW(["id"]),bD7=_.AW(["x"]),h1J=_.AW(["y"]);XyZ.prototype.getLength=function(){return this.parsedData.length};
XyZ.prototype.write=function(A){for(var L=0,O=this.parsedData.length;L<O;L++)A.put(this.parsedData[L],8)};
var uZn=function(A,L){var O=new XyZ(L);A.dataList.push(O);O=A.errorCorrectLevel;var X=1,x=encodeURI(L).toString().replace(/%[0-9a-fA-F]{2}/g,"a");L=x.length+(x.length!=L?3:0);x=0;for(var J=Ru.length;x<=J;x++){var Y=0;switch(O){case 1:Y=Ru[x][0];break;case 0:Y=Ru[x][1];break;case 3:Y=Ru[x][2];break;case 2:Y=Ru[x][3]}if(L<=Y)break;else X++}if(X>Ru.length)throw Error("vk");A.typeNumber=X;A.dataCache=null};
xTB.prototype.isDark=function(A,L){if(A<0||this.moduleCount<=A||L<0||this.moduleCount<=L)throw Error("nk`"+A+"`"+L);return this.modules[A][L]};
for(var TM7=function(A,L,O){A.moduleCount=A.typeNumber*4+17;A.modules=Array(A.moduleCount);for(var X=0;X<A.moduleCount;X++){A.modules[X]=Array(A.moduleCount);for(var x=0;x<A.moduleCount;x++)A.modules[X][x]=null}SaS(A,0,0);SaS(A,A.moduleCount-7,0);SaS(A,0,A.moduleCount-7);X=qaZ[A.typeNumber-1];for(x=0;x<X.length;x++)for(var J=0;J<X.length;J++){var Y=X[x],T=X[J];if(A.modules[Y][T]==null)for(var V=-2;V<=2;V++)for(var E=-2;E<=2;E++)A.modules[Y+V][T+E]=V==-2||V==2||E==-2||E==2||V==0&&E==0?!0:!1}for(X=
8;X<A.moduleCount-8;X++)A.modules[X][6]==null&&(A.modules[X][6]=X%2==0);for(X=8;X<A.moduleCount-8;X++)A.modules[6][X]==null&&(A.modules[6][X]=X%2==0);X=A.errorCorrectLevel<<3|O;for(x=X<<10;QX(x)-QX(1335)>=0;)x^=1335<<QX(x)-QX(1335);X=(X<<10|x)^21522;for(x=0;x<15;x++)J=!L&&(X>>x&1)==1,x<6?A.modules[x][8]=J:x<8?A.modules[x+1][8]=J:A.modules[A.moduleCount-15+x][8]=J;for(x=0;x<15;x++)J=!L&&(X>>x&1)==1,x<8?A.modules[8][A.moduleCount-x-1]=J:x<9?A.modules[8][15-x-1+1]=J:A.modules[8][15-x-1]=J;A.modules[A.moduleCount-
8][8]=!L;if(A.typeNumber>=7){X=A.typeNumber;for(x=X<<12;QX(x)-QX(7973)>=0;)x^=7973<<QX(x)-QX(7973);X=X<<12|x;for(x=0;x<18;x++)J=!L&&(X>>x&1)==1,A.modules[Math.floor(x/3)][x%3+A.moduleCount-8-3]=J;for(x=0;x<18;x++)J=!L&&(X>>x&1)==1,A.modules[x%3+A.moduleCount-8-3][Math.floor(x/3)]=J}if(A.dataCache==null){x=A.typeNumber;J=A.dataList;L=A.errorCorrectLevel;X=gxJ(x,L);if(X==void 0)throw Error("uk`"+x+"`"+L);Y=X.length/3;L=[];for(T=0;T<Y;T++){V=X[T*3];E=X[T*3+1];for(var n=X[T*3+2],t=0;t<V;t++)L.push(new sak(E,
n))}X=new JiX;for(Y=0;Y<J.length;Y++)T=J[Y],X.put(T.mode,4),X.put(T.getLength(),wFX(T.mode,x)),T.write(X);for(Y=x=0;Y<L.length;Y++)x+=L[Y].dataCount;if(X.length>x*8)throw Error("ok`"+X.length+"`"+x*8);for(X.length+4<=x*8&&X.put(0,4);X.length%8!=0;)pFk(X,!1);for(;!(X.length>=x*8);){X.put(236,8);if(X.length>=x*8)break;X.put(17,8)}J=x=E=0;Y=Array(L.length);T=Array(L.length);for(V=0;V<L.length;V++){t=L[V].dataCount;var b=L[V].totalCount-t;x=Math.max(x,t);J=Math.max(J,b);Y[V]=Array(t);for(n=0;n<Y[V].length;n++)Y[V][n]=
255&X.buffer[n+E];E+=t;n=b;t=new $2([1],0);for(b=0;b<n;b++)t=t.multiply(new $2([1,iD$(b)],0));n=t;t=(new $2(Y[V],n.getLength()-1)).mod(n);T[V]=Array(n.getLength()-1);for(n=0;n<T[V].length;n++)b=n+t.getLength()-T[V].length,T[V][n]=b>=0?t.get(b):0}for(n=X=0;n<L.length;n++)X+=L[n].totalCount;X=Array(X);for(n=E=0;n<x;n++)for(V=0;V<L.length;V++)n<Y[V].length&&(X[E++]=Y[V][n]);for(n=0;n<J;n++)for(V=0;V<L.length;V++)n<T[V].length&&(X[E++]=T[V][n]);A.dataCache=X}L=A.dataCache;X=-1;x=A.moduleCount-1;J=7;Y=
0;for(T=A.moduleCount-1;T>0;T-=2)for(T==6&&T--;;){for(V=0;V<2;V++)A.modules[x][T-V]==null&&(E=!1,Y<L.length&&(E=(L[Y]>>>J&1)==1),NxJ(O,x,T-V)&&(E=!E),A.modules[x][T-V]=E,J--,J==-1&&(Y++,J=7));x+=X;if(x<0||A.moduleCount<=x){x-=X;X=-X;break}}},SaS=function(A,L,O){for(var X=-1;X<=7;X++)if(!(L+X<=-1||A.moduleCount<=L+X))for(var x=-1;x<=7;x++)O+x<=-1||A.moduleCount<=O+x||(A.modules[L+X][O+x]=0<=X&&X<=6&&(x==0||x==6)||0<=x&&x<=6&&(X==0||X==6)||2<=X&&X<=4&&2<=x&&x<=4?!0:!1)},VQX=function(A){for(var L=0,
O=0,X=0;X<8;X++){TM7(A,!0,X);
var x=A;for(var J=x.moduleCount,Y=0,T=0;T<J;T++)for(var V=0;V<J;V++){for(var E=0,n=x.isDark(T,V),t=-1;t<=1;t++)if(!(T+t<0||J<=T+t))for(var b=-1;b<=1;b++)V+b<0||J<=V+b||(t!=0||b!=0)&&n==x.isDark(T+t,V+b)&&E++;E>5&&(Y+=3+E-5)}for(T=0;T<J-1;T++)for(V=0;V<J-1;V++)if(E=0,x.isDark(T,V)&&E++,x.isDark(T+1,V)&&E++,x.isDark(T,V+1)&&E++,x.isDark(T+1,V+1)&&E++,E==0||E==4)Y+=3;for(T=0;T<J;T++)for(V=0;V<J-6;V++)x.isDark(T,V)&&!x.isDark(T,V+1)&&x.isDark(T,V+2)&&x.isDark(T,V+3)&&x.isDark(T,V+4)&&!x.isDark(T,V+5)&&
x.isDark(T,V+6)&&(Y+=40);for(V=0;V<J;V++)for(T=0;T<J-6;T++)x.isDark(T,V)&&!x.isDark(T+1,V)&&x.isDark(T+2,V)&&x.isDark(T+3,V)&&x.isDark(T+4,V)&&!x.isDark(T+5,V)&&x.isDark(T+6,V)&&(Y+=40);for(V=E=0;V<J;V++)for(T=0;T<J;T++)x.isDark(T,V)&&E++;x=Y+=Math.abs(100*E/J/J-50)/5*10;if(X==0||L>x)L=x,O=X}return O},qaZ=[[],
[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]],QX=function(A){for(var L=0;A!=0;)L++,A>>>=1;return L},NxJ=function(A,L,O){switch(A){case 0:return(L+O)%2==0;
case 1:return L%2==0;case 2:return O%3==0;case 3:return(L+O)%3==0;case 4:return(Math.floor(L/2)+Math.floor(O/3))%2==0;case 5:return L*O%2+L*O%3==0;case 6:return(L*O%2+L*O%3)%2==0;case 7:return(L*O%3+(L+O)%2)%2==0;default:throw Error("pk`"+A);}},wFX=function(A,L){if(1<=L&&L<10)switch(A){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("qk`"+A);}else if(L<27)switch(A){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("qk`"+A);}else if(L<41)switch(A){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("qk`"+A);}else throw Error("rk`"+L);},mq=function(A){if(A<1)throw Error("sk`"+A);
return rrX[A]},iD$=function(A){for(;A<0;)A+=255;
for(;A>=256;)A-=255;return fW[A]},fW=Array(256),rrX=Array(256),KDS=0;KDS<8;KDS++)fW[KDS]=1<<KDS;
for(var Iu=8;Iu<256;Iu++)fW[Iu]=fW[Iu-4]^fW[Iu-5]^fW[Iu-6]^fW[Iu-8];for(var GaZ=0;GaZ<255;GaZ++)rrX[fW[GaZ]]=GaZ;$2.prototype.get=function(A){return this.num[A]};
$2.prototype.getLength=function(){return this.num.length};
$2.prototype.multiply=function(A){for(var L=Array(this.getLength()+A.getLength()-1),O=0;O<this.getLength();O++)for(var X=0;X<A.getLength();X++)L[O+X]^=iD$(mq(this.get(O))+mq(A.get(X)));return new $2(L,0)};
$2.prototype.mod=function(A){if(this.getLength()-A.getLength()<0)return this;for(var L=mq(this.get(0))-mq(A.get(0)),O=Array(this.getLength()),X=0;X<this.getLength();X++)O[X]=this.get(X);for(X=0;X<A.getLength();X++)O[X]^=iD$(mq(A.get(X))+L);return(new $2(O,0)).mod(A)};
var lIn=[[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]],gxJ=function(A,L){switch(L){case 1:return lIn[(A-1)*4];case 0:return lIn[(A-1)*4+1];case 3:return lIn[(A-1)*4+2];case 2:return lIn[(A-1)*4+3]}};
JiX.prototype.get=function(A){return(this.buffer[Math.floor(A/8)]>>>7-A%8&1)==1};
JiX.prototype.put=function(A,L){for(var O=0;O<L;O++)pFk(this,(A>>>L-O-1&1)==1)};
var pFk=function(A,L){var O=Math.floor(A.length/8);A.buffer.length<=O&&A.buffer.push(0);L&&(A.buffer[O]|=128>>>A.length%8);A.length++},Ru=[[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]],YPS=function(){var A=function(L,O){this.JSC$20521__el=L;this.JSC$20521__htOption=O};
A.prototype.draw=function(L){function O(n,t){n=document.createElementNS("http://www.w3.org/2000/svg",n);for(var b in t)t.hasOwnProperty(b)&&(b==="href"?_.A8Z(n,t[b]):_.oP([_.xT(DzS),_.xT(e17),_.xT(Exk),_.xT(nxQ),_.xT(tpn),_.xT(bD7),_.xT(h1J)],n,b,t[b]));return n}
var X=this.JSC$20521__htOption,x=this.JSC$20521__el,J=L.moduleCount;this.clear();var Y=O("svg",{viewBox:"0 0 "+String(J)+" "+String(J),width:"100%",height:"100%",fill:X.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});x.appendChild(Y);Y.appendChild(O("rect",{fill:X.colorLight,width:"100%",height:"100%"}));Y.appendChild(O("rect",{fill:X.colorDark,width:"1",height:"1",id:"template"}));for(var T=0;T<J;T++)for(var V=0;V<J;V++)if(L.isDark(T,V)){var E=O("use",{x:String(T),y:String(V),href:"#template"});
Y.appendChild(E)}};
A.prototype.clear=function(){for(;this.JSC$20521__el.hasChildNodes();)this.JSC$20521__el.removeChild(this.JSC$20521__el.lastChild)};
return A}(),dTJ=document.documentElement.tagName.toLowerCase()==="svg"?YPS:typeof CanvasRenderingContext2D!="undefined"?function(){var A=function(L,O){this._bIsPainted=!1;
PnS();this.JSC$20521__htOption=O;this._elCanvas=document.createElement("canvas");this._elCanvas.width=O.width;this._elCanvas.height=O.height;L.appendChild(this._elCanvas);this.JSC$20521__el=L;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$20521__el.appendChild(this._elImage);this._bSupportDataURI=null};
A.prototype._onMakeImage=function(){var L=this._elCanvas.toDataURL("image/png");this._elImage.src=L;this._elImage.style.display="block";this._elCanvas.style.display="none"};
A.prototype._safeSetDataURI=function(L,O){var X=this;X._fFail=O;X._fSuccess=L;X._bSupportDataURI===null?(L=_.tg("IMG"),O=function(){X._bSupportDataURI=!1;X._fFail&&X._fFail.call(X)},L.onabort=O,L.onerror=O,L.onload=function(){X._bSupportDataURI=!0;
X._fSuccess&&X._fSuccess.call(X)},L.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):X._bSupportDataURI===!0&&X._fSuccess?X._fSuccess.call(X):X._bSupportDataURI===!1&&X._fFail&&X._fFail.call(X)};
A.prototype.draw=function(L){var O=this._oContext,X=this.JSC$20521__htOption,x=L.moduleCount,J=X.width/x,Y=X.height/x,T=Math.round(J),V=Math.round(Y);this._elImage.style.display="none";this.clear();for(var E=0;E<x;E++)for(var n=0;n<x;n++){var t=L.isDark(E,n),b=n*J,S=E*Y;O.strokeStyle=t?X.colorDark:X.colorLight;O.lineWidth=1;O.fillStyle=t?X.colorDark:X.colorLight;O.fillRect(b,S,J,Y);O.strokeRect(Math.floor(b)+.5,Math.floor(S)+.5,T,V);O.strokeRect(Math.ceil(b)-.5,Math.ceil(S)-.5,T,V)}this._bIsPainted=
!0};
A.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
A.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
A.prototype.round=function(L){return L?Math.floor(L*1E3)/1E3:L};
return A}():function(){var A=function(L,O){this.JSC$20521__el=L;
this.JSC$20521__htOption=O};
A.prototype.draw=function(L){for(var O=this.JSC$20521__htOption,X=this.JSC$20521__el,x=L.moduleCount,J=Math.floor(O.width/x),Y=Math.floor(O.height/x),T=['<table style="border:0;border-collapse:collapse;">'],V=0;V<x;V++){T.push("<tr>");for(var E=0;E<x;E++)T.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+J+"px;height:"+Y+"px;background-color:"+(L.isDark(V,E)?O.colorDark:O.colorLight)+';"></td>');T.push("</tr>")}T.push("</table>");L=T.join("");L=_.$Nu(_.kj7,L);_.vf(X,L);
L=X.childNodes[0];x=(O.width-L.offsetWidth)/2;J=(O.height-L.offsetHeight)/2;x>0&&J>0&&(L.style.margin=J+"px "+x+"px")};
A.prototype.clear=function(){this.JSC$20521__el.textContent=""};
return A}();
DTX.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$20524__android||this.JSC$20524__android>=3)&&this._oDrawing.makeImage()};
DTX.prototype.clear=function(){this._oDrawing.clear()};
_.Ou.QRCode=DTX;var crM={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var yX=function(){};
yX.prototype.stringify=function(A){return _.Ou.JSON.stringify(A,void 0)};
yX.prototype.parse=function(A){return _.Ou.JSON.parse(A,void 0)};var CAn=function(){_.ib.call(this,"z")};
_.Ty(CAn,_.ib);var FDn=function(){_.ib.call(this,"y")};
_.Ty(FDn,_.ib);var R1X=null,QMZ=function(){return R1X=R1X||new _.lb},mzn=function(A){_.ib.call(this,"serverreachability",A)};
_.Ty(mzn,_.ib);var Zo=function(A){var L=QMZ();L.dispatchEvent(new mzn(L,A))},fIJ=function(A,L){_.ib.call(this,"statevent",A);
this.stat=L};
_.Ty(fIJ,_.ib);var jP=function(A){var L=QMZ();L.dispatchEvent(new fIJ(L,A))},IIn=function(A,L,O,X){_.ib.call(this,"timingevent",A);
this.size=L;this.rtt=O;this.retries=X};
_.Ty(IIn,_.ib);var yrM=function(A,L,O){var X=QMZ();X.dispatchEvent(new IIn(X,A,L,O))},We=function(A,L){if(typeof A!=="function")throw Error("wk");
return _.Ou.setTimeout(function(){A()},L)};var He=function(){this.redactEnabled_=!0};
He.prototype.disableRedact=function(){this.redactEnabled_=!1};
var ZDS=function(A,L,O,X,x,J){A.info(function(){if(A.redactEnabled_)if(J){var Y="";for(var T=J.split("&"),V=0;V<T.length;V++){var E=T[V].split("=");if(E.length>1){var n=E[0];E=E[1];var t=n.split("_");Y=t.length>=2&&t[1]=="type"?Y+(n+"="+E+"&"):Y+(n+"=redacted&")}}}else Y=null;else Y=J;return"XMLHTTP REQ ("+X+") [attempt "+x+"]: "+L+"\n"+O+"\n"+Y})},jMM=function(A,L,O,X,x,J,Y){A.info(function(){return"XMLHTTP RESP ("+X+") [ attempt "+x+"]: "+L+"\n"+O+"\n"+J+" "+Y})},zE=function(A,L,O,X){A.info(function(){return"XMLHTTP TEXT ("+
L+"): "+WD7(A,O)+(X?" "+X:"")})},HDM=function(A,L){A.info(function(){return"TIMEOUT: "+L})};
He.prototype.debug=function(){};
He.prototype.info=function(){};
He.prototype.warning=function(){};
var WD7=function(A,L){if(!A.redactEnabled_)return L;if(!L)return null;try{var O=JSON.parse(L);if(O)for(var X=0;X<O.length;X++)if(Array.isArray(O[X])){var x=O[X];if(!(x.length<2)){var J=x[1];if(Array.isArray(J)&&!(J.length<1)){var Y=J[0];if(Y!="noop"&&Y!="stop"&&Y!="close")for(var T=1;T<J.length;T++)J[T]=""}}}return(0,_.fc)(O)}catch(V){return A.debug("Exception parsing expected JS array - probably was not JS"),L}};var Be=function(A,L,O,X,x){this.JSC$20546_channel_=A;this.JSC$20546_channelDebug_=L;this.sid_=O;this.JSC$20546_rid_=X;this.JSC$20546_retryId_=x||1;this.JSC$20546_eventHandler_=new _.sI(this);this.timeout_=45E3;this.JSC$20546_extraHeaders_=null;this.JSC$20546_successful_=!1;this.JSC$20546_postData_=this.JSC$20546_requestUri_=this.JSC$20546_baseUri_=this.JSC$20546_type_=this.JSC$20546_requestStartTime_=this.JSC$20546_watchDogTimeoutTime_=this.JSC$20546_watchDogTimerId_=null;this.JSC$20546_pendingMessages_=
[];this.JSC$20546_xmlHttp_=null;this.JSC$20546_xmlHttpChunkStart_=0;this.JSC$20546_lastError_=this.JSC$20546_verb_=null;this.JSC$20546_lastStatusCode_=-1;this.JSC$20546_cancelled_=!1;this.JSC$20546_readyStateChangeThrottleMs_=0;this.JSC$20546_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new z1J},z1J=function(){this.JSC$20548_textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},BxZ=function(A,L){switch(A){case 0:return"Non-200 return code ("+L+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},Mp7={},$zX={};
Be.prototype.setTimeout=function(A){this.timeout_=A};
var kak=function(A,L,O){A.JSC$20546_type_=1;A.JSC$20546_baseUri_=_.tw(L.clone());A.JSC$20546_postData_=O;A.decodeChunks_=!0;aIX(A,null)},aIX=function(A,L){A.JSC$20546_requestStartTime_=Date.now();
UzJ(A);A.JSC$20546_requestUri_=A.JSC$20546_baseUri_.clone();G3(A.JSC$20546_requestUri_,"t",A.JSC$20546_retryId_);A.JSC$20546_xmlHttpChunkStart_=0;var O=A.JSC$20546_channel_.JSC$20565_supportsCrossDomainXhrs_;A.fetchResponseState_=new z1J;A.JSC$20546_xmlHttp_=vxJ(A.JSC$20546_channel_,O?L:null,!A.JSC$20546_postData_);A.JSC$20546_readyStateChangeThrottleMs_>0&&(A.JSC$20546_readyStateChangeThrottle_=new _.Of((0,_.is)(A.JSC$20550_xmlHttpHandler_,A,A.JSC$20546_xmlHttp_),A.JSC$20546_readyStateChangeThrottleMs_));
A.JSC$20546_eventHandler_.listen(A.JSC$20546_xmlHttp_,"readystatechange",A.JSC$20550_readyStateChangeHandler_);L=A.JSC$20546_extraHeaders_?_.lW.clone(A.JSC$20546_extraHeaders_):{};A.JSC$20546_postData_?(A.JSC$20546_verb_||(A.JSC$20546_verb_="POST"),L["Content-Type"]="application/x-www-form-urlencoded",A.JSC$20546_xmlHttp_.send(A.JSC$20546_requestUri_,A.JSC$20546_verb_,A.JSC$20546_postData_,L)):(A.JSC$20546_verb_="GET",A.JSC$20546_xmlHttp_.send(A.JSC$20546_requestUri_,A.JSC$20546_verb_,null,L));Zo(1);
ZDS(A.JSC$20546_channelDebug_,A.JSC$20546_verb_,A.JSC$20546_requestUri_,A.JSC$20546_rid_,A.JSC$20546_retryId_,A.JSC$20546_postData_)};
Be.prototype.JSC$20550_readyStateChangeHandler_=function(A){A=A.target;var L=this.JSC$20546_readyStateChangeThrottle_;L&&_.ye(A)==3?(this.JSC$20546_channelDebug_.debug("Throttling readystatechange."),L.fire()):this.JSC$20550_xmlHttpHandler_(A)};
Be.prototype.JSC$20550_xmlHttpHandler_=function(A){try{A==this.JSC$20546_xmlHttp_?oxM(this):this.JSC$20546_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(L){this.JSC$20546_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),A_B(this)}finally{}};
var oxM=function(A){var L=_.ye(A.JSC$20546_xmlHttp_),O=A.JSC$20546_xmlHttp_.JSC$10816_lastErrorCode_,X=A.JSC$20546_xmlHttp_.getStatus();if(!(L<3||L==3&&!A_B(A))){A.JSC$20546_cancelled_||L!=4||O==7||(O==8||X<=0?Zo(3):Zo(2));LdJ(A);var x=A.JSC$20546_xmlHttp_.getStatus();A.JSC$20546_lastStatusCode_=x;O=OXX(A);A_B(A)||A.JSC$20546_channelDebug_.debug(function(){return"No response text for uri "+A.JSC$20546_requestUri_+" status "+x});
A.JSC$20546_successful_=x==200;jMM(A.JSC$20546_channelDebug_,A.JSC$20546_verb_,A.JSC$20546_requestUri_,A.JSC$20546_rid_,A.JSC$20546_retryId_,L,x);if(A.JSC$20546_successful_){if(A.decodeInitialResponse_&&!A.initialResponseDecoded_)if(X=XgM(A))zE(A.JSC$20546_channelDebug_,A.JSC$20546_rid_,X,"Initial handshake response via X-HTTP-Initial-Response"),A.initialResponseDecoded_=!0,x_7(A,X);else{A.JSC$20546_successful_=!1;A.JSC$20546_lastError_=3;jP(12);A.JSC$20546_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
A.JSC$20546_rid_+")");MZ(A);$k(A);return}A.decodeChunks_?sj$(A,L,O):(zE(A.JSC$20546_channelDebug_,A.JSC$20546_rid_,O,null),x_7(A,O));L==4&&MZ(A);A.JSC$20546_successful_&&!A.JSC$20546_cancelled_&&(L==4?J_X(A.JSC$20546_channel_,A):(A.JSC$20546_successful_=!1,UzJ(A)))}else QD$(A.JSC$20546_xmlHttp_),x==400&&O.indexOf("Unknown SID")>0?(A.JSC$20546_lastError_=3,jP(12),A.JSC$20546_channelDebug_.warning("XMLHTTP Unknown SID ("+A.JSC$20546_rid_+")")):(A.JSC$20546_lastError_=0,jP(13),A.JSC$20546_channelDebug_.warning("XMLHTTP Bad status "+
x+" ("+A.JSC$20546_rid_+")")),MZ(A),$k(A)}},XgM=function(A){return A.JSC$20546_xmlHttp_&&(A=mb(A.JSC$20546_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.Ye(A)?A:null},OXX=function(A){if(!PPS(A))return A.JSC$20546_xmlHttp_.getResponseText();
var L=A.JSC$20546_xmlHttp_.getResponse();if(L==="")return"";var O="",X=L.length,x=_.ye(A.JSC$20546_xmlHttp_)==4;if(!A.fetchResponseState_.JSC$20548_textDecoder){if(typeof TextDecoder==="undefined")return MZ(A),$k(A),"";A.fetchResponseState_.JSC$20548_textDecoder=new _.Ou.TextDecoder}for(var J=0;J<X;J++)A.fetchResponseState_.responseArrivedForFetch=!0,O+=A.fetchResponseState_.JSC$20548_textDecoder.decode(L[J],{stream:!(x&&J==X-1)});L.length=0;A.fetchResponseState_.responseBuffer+=O;A.JSC$20546_xmlHttpChunkStart_=
0;return A.fetchResponseState_.responseBuffer},A_B=function(A){return A.JSC$20546_xmlHttp_?A.fetchResponseState_.responseArrivedForFetch?!0:!(!A.JSC$20546_xmlHttp_.getResponseText()&&!A.JSC$20546_xmlHttp_.getResponse()):!1},PPS=function(A){return A.JSC$20546_xmlHttp_?A.JSC$20546_verb_=="GET"&&A.JSC$20546_type_!=2&&A.JSC$20546_channel_.usesFetchStreams_:!1},sj$=function(A,L,O){for(var X=!0,x;!A.JSC$20546_cancelled_&&A.JSC$20546_xmlHttpChunkStart_<O.length;)if(x=d_S(A,O),x==$zX){L==4&&(A.JSC$20546_lastError_=
4,jP(14),X=!1);
zE(A.JSC$20546_channelDebug_,A.JSC$20546_rid_,null,"[Incomplete Response]");break}else if(x==Mp7){A.JSC$20546_lastError_=4;jP(15);zE(A.JSC$20546_channelDebug_,A.JSC$20546_rid_,O,"[Invalid Chunk]");X=!1;break}else zE(A.JSC$20546_channelDebug_,A.JSC$20546_rid_,x,null),x_7(A,x);PPS(A)&&A.JSC$20546_xmlHttpChunkStart_!=0&&(A.fetchResponseState_.responseBuffer=A.fetchResponseState_.responseBuffer.slice(A.JSC$20546_xmlHttpChunkStart_),A.JSC$20546_xmlHttpChunkStart_=0);L!=4||O.length!=0||A.fetchResponseState_.responseArrivedForFetch||
(A.JSC$20546_lastError_=1,jP(16),X=!1);A.JSC$20546_successful_=A.JSC$20546_successful_&&X;X?O.length>0&&!A.firstByteReceived_&&(A.firstByteReceived_=!0,L=A.JSC$20546_channel_,L.JSC$20565_backChannelRequest_==A&&L.detectBufferingProxy_&&!L.bpDetectionDone_&&(L.JSC$20565_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+O.length),YSn(L),L.bpDetectionDone_=!0,jP(11))):(zE(A.JSC$20546_channelDebug_,A.JSC$20546_rid_,O,"[Invalid Chunked Response]"),MZ(A),$k(A))},d_S=function(A,L){var O=
A.JSC$20546_xmlHttpChunkStart_,X=L.indexOf("\n",O);
if(X==-1)return $zX;O=Number(L.substring(O,X));if(isNaN(O))return Mp7;X+=1;if(X+O>L.length)return $zX;L=L.slice(X,X+O);A.JSC$20546_xmlHttpChunkStart_=X+O;return L};
Be.prototype.cancel=function(){this.JSC$20546_cancelled_=!0;MZ(this)};
var UzJ=function(A){A.JSC$20546_watchDogTimeoutTime_=Date.now()+A.timeout_;uoX(A,A.timeout_)},uoX=function(A,L){if(A.JSC$20546_watchDogTimerId_!=null)throw Error("xk");
A.JSC$20546_watchDogTimerId_=We((0,_.is)(A.JSC$20550_onWatchDogTimeout_,A),L)},LdJ=function(A){A.JSC$20546_watchDogTimerId_&&(_.Ou.clearTimeout(A.JSC$20546_watchDogTimerId_),A.JSC$20546_watchDogTimerId_=null)};
Be.prototype.JSC$20550_onWatchDogTimeout_=function(){this.JSC$20546_watchDogTimerId_=null;var A=Date.now();A-this.JSC$20546_watchDogTimeoutTime_>=0?(HDM(this.JSC$20546_channelDebug_,this.JSC$20546_requestUri_),this.JSC$20546_type_!=2&&(Zo(3),jP(17)),MZ(this),this.JSC$20546_lastError_=2,$k(this)):(this.JSC$20546_channelDebug_.warning("WatchDog timer called too early"),uoX(this,this.JSC$20546_watchDogTimeoutTime_-A))};
var $k=function(A){A.JSC$20546_channel_.state_==0||A.JSC$20546_cancelled_||J_X(A.JSC$20546_channel_,A)},MZ=function(A){LdJ(A);
_.oo(A.JSC$20546_readyStateChangeThrottle_);A.JSC$20546_readyStateChangeThrottle_=null;A.JSC$20546_eventHandler_.removeAll();if(A.JSC$20546_xmlHttp_){var L=A.JSC$20546_xmlHttp_;A.JSC$20546_xmlHttp_=null;L.abort();L.dispose()}};
Be.prototype.getLastError=function(){return this.JSC$20546_lastError_};
var x_7=function(A,L){try{var O=A.JSC$20546_channel_;if(O.state_!=0&&(O.JSC$20565_backChannelRequest_==A||Ttk(O.forwardChannelRequestPool_,A)))if(!A.initialResponseDecoded_&&Ttk(O.forwardChannelRequestPool_,A)&&O.state_==3){try{var X=O.wireCodec_.JSC$20560_parser_.parse(L)}catch(T){X=null}if(Array.isArray(X)&&X.length==3){L=X;if(L[0]==0)a:if(O.JSC$20565_channelDebug_.debug("Server claims our backchannel is missing."),O.JSC$20565_backChannelTimerId_)O.JSC$20565_channelDebug_.debug("But we are currently starting the request.");
else{if(O.JSC$20565_backChannelRequest_)if(O.JSC$20565_backChannelRequest_.JSC$20546_requestStartTime_+3E3<A.JSC$20546_requestStartTime_)V0Z(O),D_z(O);else break a;else O.JSC$20565_channelDebug_.warning("We do not have a BackChannel established");eQM(O);jP(18)}else{O.JSC$20565_lastPostResponseArrayId_=L[1];var x=O.JSC$20565_lastPostResponseArrayId_-O.JSC$20565_lastArrayId_;if(0<x){var J=L[2];O.JSC$20565_channelDebug_.debug(J+" bytes (in "+x+" arrays) are outstanding on the BackChannel");J<37500&&
O.enableStreaming_&&O.JSC$20565_backChannelRetryCount_==0&&!O.JSC$20565_deadBackChannelTimerId_&&(O.JSC$20565_deadBackChannelTimerId_=We((0,_.is)(O.JSC$20567_onBackChannelDead_,O),6E3))}}if(E9n(O.forwardChannelRequestPool_)<=1&&O.forwardChannelFlushedCallback_){try{O.forwardChannelFlushedCallback_()}catch(T){}O.forwardChannelFlushedCallback_=void 0}}else O.JSC$20565_channelDebug_.debug("Bad POST response data returned"),au(O,11)}else if((A.initialResponseDecoded_||O.JSC$20565_backChannelRequest_==
A)&&V0Z(O),!_.Ye(L)){var Y=O.wireCodec_.JSC$20560_parser_.parse(L);O.onInput_(Y,A)}Zo(4)}catch(T){}};var n9z=function(A,L){this.JSC$20553_mapId=A;this.map=L;this.context=null};var t0$=function(A){this.maxPoolSizeConfigured_=A||10;_.Ou.PerformanceNavigationTiming?(A=_.Ou.performance.getEntriesByType("navigation"),A=A.length>0&&(A[0].nextHopProtocol=="hq"||A[0].nextHopProtocol=="h2")):A=!!(_.Ou.chrome&&_.Ou.chrome.loadTimes&&_.Ou.chrome.loadTimes()&&_.Ou.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$20556_maxSize_=A?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$20556_maxSize_>1&&(this.requestPool_=new Set);this.JSC$20556_request_=null;this.JSC$20556_pendingMessages_=
[]},bXJ=function(A){return A.JSC$20556_request_?!0:A.requestPool_?A.requestPool_.size>=A.JSC$20556_maxSize_:!1},E9n=function(A){return A.JSC$20556_request_?1:A.requestPool_?A.requestPool_.size:0},Ttk=function(A,L){return A.JSC$20556_request_?A.JSC$20556_request_==L:A.requestPool_?A.requestPool_.has(L):!1},hQJ=function(A,L){A.requestPool_?A.requestPool_.add(L):A.JSC$20556_request_=L},SSM=function(A,L){A.JSC$20556_request_&&A.JSC$20556_request_==L?A.JSC$20556_request_=null:A.requestPool_&&A.requestPool_.has(L)&&
A.requestPool_.delete(L)};
t0$.prototype.cancel=function(){this.JSC$20556_pendingMessages_=qSz(this);if(this.JSC$20556_request_)this.JSC$20556_request_.cancel(),this.JSC$20556_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var A=_.d(this.requestPool_.values()),L=A.next();!L.done;L=A.next())L.value.cancel();this.requestPool_.clear()}};
var qSz=function(A){if(A.JSC$20556_request_!=null)return A.JSC$20556_pendingMessages_.concat(A.JSC$20556_request_.JSC$20546_pendingMessages_);if(A.requestPool_!=null&&A.requestPool_.size!==0){var L=A.JSC$20556_pendingMessages_;A=_.d(A.requestPool_.values());for(var O=A.next();!O.done;O=A.next())L=L.concat(O.value.JSC$20546_pendingMessages_);return L}return _.Ze(A.JSC$20556_pendingMessages_)},g9k=function(A,L){A.JSC$20556_pendingMessages_=A.JSC$20556_pendingMessages_.concat(L)};var wgS=function(A,L){var O=new He;O.debug("TestLoadImage: loading "+A);if(_.Ou.Image){var X=new Image;X.onload=_.Sm(kk,O,"TestLoadImage: loaded",!0,L,X);X.onerror=_.Sm(kk,O,"TestLoadImage: error",!1,L,X);X.onabort=_.Sm(kk,O,"TestLoadImage: abort",!1,L,X);X.ontimeout=_.Sm(kk,O,"TestLoadImage: timeout",!1,L,X);_.Ou.setTimeout(function(){if(X.ontimeout)X.ontimeout()},1E4);
X.src=A}else L(!1)},pg7=function(A,L){var O=new He,X=new AbortController,x=setTimeout(function(){X.abort();
kk(O,"TestPingServer: timeout",!1,L)},1E4);
fetch(A,{signal:X.signal}).then(function(J){clearTimeout(x);J.ok?kk(O,"TestPingServer: ok",!0,L):kk(O,"TestPingServer: server error",!1,L)}).catch(function(){clearTimeout(x);
kk(O,"TestPingServer: error",!1,L)})},kk=function(A,L,O,X,x){try{A.debug(L),x&&(x.onload=null,x.onerror=null,x.onabort=null,x.ontimeout=null),X(O)}catch(J){}};var iX$=function(){this.JSC$20560_parser_=new yX};var UZ=function(A,L,O){return O&&O.internalChannelParams?O.internalChannelParams[A]||L:L},ve=function(A){this.serverVersion_=0;
this.JSC$20565_outgoingMaps_=[];this.JSC$20565_channelDebug_=new He;this.JSC$20565_hostPrefix_=this.JSC$20565_backChannelUri_=this.JSC$20565_forwardChannelUri_=this.JSC$20565_path_=this.JSC$20565_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$20565_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$20565_extraHeaders_=null;this.JSC$20565_nextMapId_=this.JSC$20565_nextRid_=0;this.JSC$20565_failFast_=UZ("failFast",!1,A);this.enableStreaming_=this.JSC$20565_deadBackChannelTimerId_=
this.JSC$20565_backChannelTimerId_=this.JSC$20565_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$20565_lastPostResponseArrayId_=this.JSC$20565_lastArrayId_=-1;this.JSC$20565_backChannelAttemptId_=this.JSC$20565_backChannelRetryCount_=this.JSC$20565_forwardChannelRetryCount_=0;this.JSC$20565_baseRetryDelayMs_=UZ("baseRetryDelayMs",5E3,A);this.JSC$20565_retryDelaySeedMs_=UZ("retryDelaySeedMs",1E4,A);this.JSC$20565_forwardChannelMaxRetries_=
UZ("forwardChannelMaxRetries",2,A);this.JSC$20565_forwardChannelRequestTimeoutMs_=UZ("forwardChannelRequestTimeoutMs",2E4,A);this.JSC$20565_xmlHttpFactory_=A&&A.xmlHttpFactory||void 0;this.networkTestUrl_=A&&A.networkTestUrl||void 0;this.usesFetchStreams_=A&&A.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$20565_supportsCrossDomainXhrs_=A&&A.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new t0$(A&&A.concurrentRequestLimit);this.wireCodec_=new iX$;this.fastHandshake_=
A&&A.fastHandshake||!1;this.encodeInitMessageHeaders_=A&&A.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$20565_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=A&&A.blockingHandshake||!1;A&&A.disableRedact&&this.JSC$20565_channelDebug_.disableRedact();A&&A.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
A&&A.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;A&&A.longPollingTimeout&&A.longPollingTimeout>0&&(this.longPollingTimeout_=A.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
ve.prototype.JSC$20567_channelVersion_=8;ve.prototype.state_=1;
ve.prototype.connect=function(A,L,O,X){this.JSC$20565_channelDebug_.debug("connect()");jP(0);this.JSC$20565_path_=A;this.JSC$20565_extraParams_=L||{};O&&X!==void 0&&(this.JSC$20565_extraParams_.OSID=O,this.JSC$20565_extraParams_.OAID=X);this.enableStreaming_=this.allowStreamingMode_;this.JSC$20565_channelDebug_.debug("connectChannel_()");A=NtS(this,null,this.JSC$20565_path_);this.JSC$20565_channelDebug_.debug("GetForwardChannelUri: "+A);this.JSC$20565_forwardChannelUri_=A;r_M(this)};
ve.prototype.disconnect=function(){this.JSC$20565_channelDebug_.debug("disconnect()");KdX(this);if(this.state_==3){var A=this.JSC$20565_nextRid_++,L=this.JSC$20565_forwardChannelUri_.clone();_.Hq(L,"SID",this.sid_);_.Hq(L,"RID",A);_.Hq(L,"TYPE","terminate");ou(this,L);A=new Be(this,this.JSC$20565_channelDebug_,this.sid_,A);A.JSC$20546_type_=2;A.JSC$20546_baseUri_=_.tw(L.clone());L=!1;if(_.Ou.navigator&&_.Ou.navigator.sendBeacon)try{L=_.Ou.navigator.sendBeacon(A.JSC$20546_baseUri_.toString(),"")}catch(O){}!L&&
_.Ou.Image&&((new Image).src=A.JSC$20546_baseUri_,L=!0);L||(A.JSC$20546_xmlHttp_=vxJ(A.JSC$20546_channel_,null),A.JSC$20546_xmlHttp_.send(A.JSC$20546_baseUri_));A.JSC$20546_requestStartTime_=Date.now();UzJ(A)}GCX(this)};
var D_z=function(A){A.JSC$20565_backChannelRequest_&&(YSn(A),A.JSC$20565_backChannelRequest_.cancel(),A.JSC$20565_backChannelRequest_=null)},KdX=function(A){D_z(A);
A.JSC$20565_backChannelTimerId_&&(_.Ou.clearTimeout(A.JSC$20565_backChannelTimerId_),A.JSC$20565_backChannelTimerId_=null);V0Z(A);A.forwardChannelRequestPool_.cancel();A.JSC$20565_forwardChannelTimerId_&&(typeof A.JSC$20565_forwardChannelTimerId_==="number"&&_.Ou.clearTimeout(A.JSC$20565_forwardChannelTimerId_),A.JSC$20565_forwardChannelTimerId_=null)};
ve.prototype.getState=function(){return this.state_};
var r_M=function(A){bXJ(A.forwardChannelRequestPool_)||A.JSC$20565_forwardChannelTimerId_||(A.JSC$20565_forwardChannelTimerId_=!0,_.Cc(A.JSC$20567_onStartForwardChannelTimer_,A),A.JSC$20565_forwardChannelRetryCount_=0)},c_X=function(A,L){if(E9n(A.forwardChannelRequestPool_)>=A.forwardChannelRequestPool_.JSC$20556_maxSize_-(A.JSC$20565_forwardChannelTimerId_?1:0))return!1;
if(A.JSC$20565_forwardChannelTimerId_)return A.JSC$20565_channelDebug_.debug("Use the retry request that is already scheduled."),A.JSC$20565_outgoingMaps_=L.JSC$20546_pendingMessages_.concat(A.JSC$20565_outgoingMaps_),!0;if(A.state_==1||A.state_==2||A.JSC$20565_forwardChannelRetryCount_>=(A.JSC$20565_failFast_?0:A.JSC$20565_forwardChannelMaxRetries_))return!1;A.JSC$20565_channelDebug_.debug("Going to retry POST");A.JSC$20565_forwardChannelTimerId_=We((0,_.is)(A.JSC$20567_onStartForwardChannelTimer_,
A,L),l_X(A,A.JSC$20565_forwardChannelRetryCount_));A.JSC$20565_forwardChannelRetryCount_++;return!0};
ve.prototype.JSC$20567_onStartForwardChannelTimer_=function(A){if(this.JSC$20565_forwardChannelTimerId_)if(this.JSC$20565_forwardChannelTimerId_=null,this.JSC$20565_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!A){this.JSC$20565_channelDebug_.debug("open_()");this.JSC$20565_nextRid_=Math.floor(Math.random()*1E5);A=this.JSC$20565_nextRid_++;var L=new Be(this,this.JSC$20565_channelDebug_,"",A),O=this.JSC$20565_extraHeaders_;this.initHeaders_&&(O?(O=_.lW.clone(O),_.lW.extend(O,this.initHeaders_)):
O=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(L.JSC$20546_extraHeaders_=O,O=null);var X;if(this.fastHandshake_)a:{for(var x=X=0;x<this.JSC$20565_outgoingMaps_.length;x++){b:{var J=this.JSC$20565_outgoingMaps_[x];if("__data__"in J.map&&(J=J.map.__data__,typeof J==="string")){J=J.length;break b}J=void 0}if(J===void 0)break;X+=J;if(X>4096){X=x;break a}if(X===4096||x===this.JSC$20565_outgoingMaps_.length-1){X=x+1;break a}}X=1E3}else X=1E3;X=CPz(this,L,X);
x=this.JSC$20565_forwardChannelUri_.clone();_.Hq(x,"RID",A);_.Hq(x,"CVER",22);this.httpSessionIdParam_&&_.Hq(x,"X-HTTP-Session-Id",this.httpSessionIdParam_);ou(this,x);O&&(this.encodeInitMessageHeaders_?X="headers="+_.zD(kyZ(O))+"&"+X:this.httpHeadersOverwriteParam_&&UKJ(x,this.httpHeadersOverwriteParam_,O));hQJ(this.forwardChannelRequestPool_,L);this.blockingHandshake_&&_.Hq(x,"TYPE","init");this.fastHandshake_?(_.Hq(x,"$req",X),_.Hq(x,"SID","null"),L.decodeInitialResponse_=!0,kak(L,x,null)):kak(L,
x,X);this.state_=2}}else this.state_==3&&(A?FdX(this,A):this.JSC$20565_outgoingMaps_.length==0?this.JSC$20565_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):bXJ(this.forwardChannelRequestPool_)||(FdX(this),this.JSC$20565_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var FdX=function(A,L){var O;L?O=L.JSC$20546_rid_:O=A.JSC$20565_nextRid_++;var X=A.JSC$20565_forwardChannelUri_.clone();_.Hq(X,"SID",A.sid_);_.Hq(X,"RID",O);_.Hq(X,"AID",A.JSC$20565_lastArrayId_);ou(A,X);A.httpHeadersOverwriteParam_&&A.JSC$20565_extraHeaders_&&UKJ(X,A.httpHeadersOverwriteParam_,A.JSC$20565_extraHeaders_);O=new Be(A,A.JSC$20565_channelDebug_,A.sid_,O,A.JSC$20565_forwardChannelRetryCount_+1);A.httpHeadersOverwriteParam_===null&&(O.JSC$20546_extraHeaders_=A.JSC$20565_extraHeaders_);L&&
(A.JSC$20565_outgoingMaps_=L.JSC$20546_pendingMessages_.concat(A.JSC$20565_outgoingMaps_));L=CPz(A,O,1E3);O.setTimeout(Math.round(A.JSC$20565_forwardChannelRequestTimeoutMs_*.5)+Math.round(A.JSC$20565_forwardChannelRequestTimeoutMs_*.5*Math.random()));hQJ(A.forwardChannelRequestPool_,O);kak(O,X,L)},ou=function(A,L){A.JSC$20565_extraParams_&&_.lW.forEach(A.JSC$20565_extraParams_,function(O,X){_.Hq(L,X,O)});
A.handler_&&_.lW.forEach({},function(O,X){_.Hq(L,X,O)})},CPz=function(A,L,O){O=Math.min(A.JSC$20565_outgoingMaps_.length,O);
var X=A.handler_?(0,_.is)(A.handler_.JSC$20571_badMapError,A.handler_,A):null;a:{for(var x=A.JSC$20565_outgoingMaps_,J=-1;;){var Y=["count="+O];J==-1?O>0?(J=x[0].JSC$20553_mapId,Y.push("ofs="+J)):J=0:Y.push("ofs="+J);for(var T=!0,V=0;V<O;V++){var E=x[V].JSC$20553_mapId,n=x[V].map;E-=J;if(E<0)J=Math.max(0,x[V].JSC$20553_mapId-100),T=!1;else try{E="req"+E+"_"||"";try{var t=n instanceof Map?n:Object.entries(n);for(var b=_.d(t),S=b.next();!S.done;S=b.next()){var w=_.d(S.value),l=w.next().value,F=w.next().value,
R=F;_.BJ(F)&&(R=(0,_.fc)(F));Y.push(E+l+"="+encodeURIComponent(R))}}catch(y){throw Y.push(E+"type="+encodeURIComponent("_badmap")),y;}}catch(y){X&&X(n)}}if(T){t=Y.join("&");break a}}t=void 0}A=A.JSC$20565_outgoingMaps_.splice(0,O);L.JSC$20546_pendingMessages_=A;return t},RQZ=function(A){A.JSC$20565_backChannelRequest_||A.JSC$20565_backChannelTimerId_||(A.JSC$20565_backChannelAttemptId_=1,_.Cc(A.JSC$20567_onStartBackChannelTimer_,A),A.JSC$20565_backChannelRetryCount_=0)},eQM=function(A){if(A.JSC$20565_backChannelRequest_||
A.JSC$20565_backChannelTimerId_||A.JSC$20565_backChannelRetryCount_>=3)return!1;
A.JSC$20565_channelDebug_.debug("Going to retry GET");A.JSC$20565_backChannelAttemptId_++;A.JSC$20565_backChannelTimerId_=We((0,_.is)(A.JSC$20567_onStartBackChannelTimer_,A),l_X(A,A.JSC$20565_backChannelRetryCount_));A.JSC$20565_backChannelRetryCount_++;return!0};
ve.prototype.JSC$20567_onStartBackChannelTimer_=function(){this.JSC$20565_backChannelTimerId_=null;QjX(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$20565_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$20565_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$20565_backChannelRequest_+" "+this.handshakeRttMs_);else{var A=4*this.handshakeRttMs_;this.JSC$20565_channelDebug_.info("BP detection timer enabled: "+A);this.bpDetectionTimerId_=We((0,_.is)(this.onBpDetectionTimer_,
this),A)}};
ve.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$20565_channelDebug_.info("BP detection timeout reached.");if(this.JSC$20565_backChannelRequest_.JSC$20546_xmlHttp_!=null){var A=this.JSC$20565_backChannelRequest_.JSC$20546_xmlHttp_.getResponseText();A&&this.JSC$20565_channelDebug_.warning("Timer should have been cancelled : "+A)}this.JSC$20565_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;jP(10);D_z(this);QjX(this)}else this.JSC$20565_channelDebug_.warning("Invalid operation.")};
var YSn=function(A){A.bpDetectionTimerId_!=null&&(A.JSC$20565_channelDebug_.debug("Cancel the BP detection timer."),_.Ou.clearTimeout(A.bpDetectionTimerId_),A.bpDetectionTimerId_=null)},QjX=function(A){A.JSC$20565_channelDebug_.debug("Creating new HttpRequest");
A.JSC$20565_backChannelRequest_=new Be(A,A.JSC$20565_channelDebug_,A.sid_,"rpc",A.JSC$20565_backChannelAttemptId_);A.httpHeadersOverwriteParam_===null&&(A.JSC$20565_backChannelRequest_.JSC$20546_extraHeaders_=A.JSC$20565_extraHeaders_);A.JSC$20565_backChannelRequest_.JSC$20546_readyStateChangeThrottleMs_=0;var L=A.JSC$20565_backChannelUri_.clone();_.Hq(L,"RID","rpc");_.Hq(L,"SID",A.sid_);_.Hq(L,"AID",A.JSC$20565_lastArrayId_);_.Hq(L,"CI",A.enableStreaming_?"0":"1");!A.enableStreaming_&&A.longPollingTimeout_&&
_.Hq(L,"TO",A.longPollingTimeout_);_.Hq(L,"TYPE","xmlhttp");ou(A,L);A.httpHeadersOverwriteParam_&&A.JSC$20565_extraHeaders_&&UKJ(L,A.httpHeadersOverwriteParam_,A.JSC$20565_extraHeaders_);A.backChannelRequestTimeoutMs_&&A.JSC$20565_backChannelRequest_.setTimeout(A.backChannelRequestTimeoutMs_);var O=A.JSC$20565_backChannelRequest_,X=A.JSC$20565_hostPrefix_;O.JSC$20546_type_=1;O.JSC$20546_baseUri_=_.tw(L.clone());O.JSC$20546_postData_=null;O.decodeChunks_=!0;aIX(O,X);A.JSC$20565_channelDebug_.debug("New Request created")};
ve.prototype.JSC$20567_onBackChannelDead_=function(){this.JSC$20565_deadBackChannelTimerId_!=null&&(this.JSC$20565_deadBackChannelTimerId_=null,D_z(this),eQM(this),jP(19))};
var V0Z=function(A){A.JSC$20565_deadBackChannelTimerId_!=null&&(_.Ou.clearTimeout(A.JSC$20565_deadBackChannelTimerId_),A.JSC$20565_deadBackChannelTimerId_=null)},J_X=function(A,L){A.JSC$20565_channelDebug_.debug("Request complete");
var O=null;if(A.JSC$20565_backChannelRequest_==L){V0Z(A);YSn(A);A.JSC$20565_backChannelRequest_=null;var X=2}else if(Ttk(A.forwardChannelRequestPool_,L))O=L.JSC$20546_pendingMessages_,SSM(A.forwardChannelRequestPool_,L),X=1;else return;if(A.state_!=0)if(L.JSC$20546_successful_)X==1?(yrM(L.JSC$20546_postData_?L.JSC$20546_postData_.length:0,Date.now()-L.JSC$20546_requestStartTime_,A.JSC$20565_forwardChannelRetryCount_),r_M(A)):RQZ(A);else{var x=L.JSC$20546_lastStatusCode_,J=L.getLastError();if(J==3||
J==0&&x>0)A.JSC$20565_channelDebug_.debug("Not retrying due to error type"),x>200&&(A.errorResponseStatusCode_=L.JSC$20546_lastStatusCode_);else{A.JSC$20565_channelDebug_.debug(function(){return"Maybe retrying, last error: "+BxZ(J,A.errorResponseStatusCode_)});
if(X==1&&c_X(A,L)||X==2&&eQM(A))return;A.JSC$20565_channelDebug_.debug("Exceeded max number of retries")}O&&O.length>0&&g9k(A.forwardChannelRequestPool_,O);A.JSC$20565_channelDebug_.debug("Error: HTTP request failed");switch(J){case 1:au(A,5);break;case 4:au(A,10);break;case 3:au(A,6);break;default:au(A,2)}}},l_X=function(A,L){var O=A.JSC$20565_baseRetryDelayMs_+Math.floor(Math.random()*A.JSC$20565_retryDelaySeedMs_);
A.isActive()||(A.JSC$20565_channelDebug_.debug("Inactive channel"),O*=2);return O*L};
ve.prototype.onInput_=function(A,L){for(var O=0;O<A.length;O++){var X=A[O];this.JSC$20565_lastArrayId_=X[0];X=X[1];if(this.state_==2)if(X[0]=="c"){this.sid_=X[1];this.JSC$20565_hostPrefix_=X[2];var x=X[3];x!=null&&(this.JSC$20567_channelVersion_=x,this.JSC$20565_channelDebug_.info("VER="+this.JSC$20567_channelVersion_));x=X[4];x!=null&&(this.serverVersion_=x,this.JSC$20565_channelDebug_.info("SVER="+this.serverVersion_));X=X[5];X!=null&&typeof X==="number"&&X>0&&(this.backChannelRequestTimeoutMs_=
X*=1.5,this.JSC$20565_channelDebug_.info("backChannelRequestTimeoutMs_="+X));if(X=L.JSC$20546_xmlHttp_){var J=mb(X,"X-Client-Wire-Protocol");J&&(x=this.forwardChannelRequestPool_,!x.requestPool_&&(_.TO(J,"spdy")||_.TO(J,"quic")||_.TO(J,"h2"))&&(x.JSC$20556_maxSize_=x.maxPoolSizeConfigured_,x.requestPool_=new Set,x.JSC$20556_request_&&(hQJ(x,x.JSC$20556_request_),x.JSC$20556_request_=null)));this.httpSessionIdParam_&&((X=mb(X,"X-HTTP-Session-Id"))?(this.httpSessionId_=X,_.Hq(this.JSC$20565_forwardChannelUri_,
this.httpSessionIdParam_,X)):this.JSC$20565_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$20571_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-L.JSC$20546_requestStartTime_,this.JSC$20565_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));X=L;x=NtS(this,this.JSC$20565_supportsCrossDomainXhrs_?this.JSC$20565_hostPrefix_:null,this.JSC$20565_path_);this.JSC$20565_channelDebug_.debug("GetBackChannelUri: "+
x);this.JSC$20565_backChannelUri_=x;X.initialResponseDecoded_?(this.JSC$20565_channelDebug_.debug("Upgrade the handshake request to a backchannel."),SSM(this.forwardChannelRequestPool_,X),x=X,(J=this.backChannelRequestTimeoutMs_)&&x.setTimeout(J),x.JSC$20546_watchDogTimerId_&&(LdJ(x),UzJ(x)),this.JSC$20565_backChannelRequest_=X):RQZ(this);this.JSC$20565_outgoingMaps_.length>0&&r_M(this)}else X[0]!="stop"&&X[0]!="close"||au(this,7);else this.state_==3&&(X[0]=="stop"||X[0]=="close"?X[0]=="stop"?au(this,
7):this.disconnect():X[0]!="noop"&&this.handler_&&this.handler_.JSC$20571_channelHandleArray(X),this.JSC$20565_backChannelRetryCount_=0)}};
var au=function(A,L){A.JSC$20565_channelDebug_.info("Error code "+L);if(L==2){var O=(0,_.is)(A.testNetworkCallback_,A),X=A.networkTestUrl_,x=!X;X=new _.kO(X||"//www.google.com/images/cleardot.gif");_.Ou.location&&_.Ou.location.protocol=="http"||_.dr(X,"https");_.tw(X);x?wgS(X.toString(),O):pg7(X.toString(),O)}else jP(2);A.onError_(L)};
ve.prototype.testNetworkCallback_=function(A){A?(this.JSC$20565_channelDebug_.info("Successfully pinged google.com"),jP(2)):(this.JSC$20565_channelDebug_.info("Failed to ping google.com"),jP(1))};
ve.prototype.onError_=function(A){this.JSC$20565_channelDebug_.debug("HttpChannel: error - "+A);this.state_=0;this.handler_&&this.handler_.JSC$20571_channelError(A);GCX(this);KdX(this)};
var GCX=function(A){A.state_=0;A.nonAckedMapsAtChannelClose_=[];if(A.handler_){var L=qSz(A.forwardChannelRequestPool_);if(L.length!=0||A.JSC$20565_outgoingMaps_.length!=0)A.JSC$20565_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+L.length+", outgoing: "+A.JSC$20565_outgoingMaps_.length}),_.WJ(A.nonAckedMapsAtChannelClose_,L),_.WJ(A.nonAckedMapsAtChannelClose_,A.JSC$20565_outgoingMaps_),A.forwardChannelRequestPool_.JSC$20556_pendingMessages_.length=0,_.Ze(A.JSC$20565_outgoingMaps_),
A.JSC$20565_outgoingMaps_.length=0;
A.handler_.JSC$20571_channelClosed()}},m_k=function(A){if(A.state_==0)return A.nonAckedMapsAtChannelClose_;
var L=[];_.WJ(L,qSz(A.forwardChannelRequestPool_));_.WJ(L,A.JSC$20565_outgoingMaps_);return L},NtS=function(A,L,O){var X=_.jV(O);
X.JSC$11053_domain_!=""?(L&&_.YI(X,L+"."+X.JSC$11053_domain_),_.u5(X,X.JSC$11053_port_)):(X=_.Ou.location,X=mlQ(X.protocol,L?L+"."+X.hostname:X.hostname,+X.port,O));L=A.httpSessionIdParam_;O=A.httpSessionId_;L&&O&&_.Hq(X,L,O);_.Hq(X,"VER",A.JSC$20567_channelVersion_);ou(A,X);return X},vxJ=function(A,L,O){if(L&&!A.JSC$20565_supportsCrossDomainXhrs_)throw Error("yk");
L=A.usesFetchStreams_&&!A.JSC$20565_xmlHttpFactory_?new _.I$(new Ah({streamBinaryChunks:O})):new _.I$(A.JSC$20565_xmlHttpFactory_);L.JSC$10816_withCredentials_=A.JSC$20565_supportsCrossDomainXhrs_;return L};
ve.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var f_J=function(){};
_.P=f_J.prototype;_.P.JSC$20571_channelOpened=function(){};
_.P.JSC$20571_channelHandleArray=function(){};
_.P.JSC$20571_channelError=function(){};
_.P.JSC$20571_channelClosed=function(){};
_.P.isActive=function(){return!0};
_.P.JSC$20571_badMapError=function(){};var I_z=function(){},LS=function(A,L){_.lb.call(this);
this.JSC$20574_channel_=new ve(L);this.JSC$20574_url_=A;this.messageUrlParams_=L&&L.messageUrlParams||null;A=L&&L.messageHeaders||null;L&&L.clientProtocolHeaderRequired&&(A?_.lW.set(A,"X-Client-Protocol","webchannel"):A=_.lW.create("X-Client-Protocol","webchannel"));this.JSC$20574_channel_.JSC$20565_extraHeaders_=A;A=L&&L.initMessageHeaders||null;L&&L.messageContentType&&(A?_.lW.set(A,"X-WebChannel-Content-Type",L.messageContentType):A=_.lW.create("X-WebChannel-Content-Type",L.messageContentType));
L&&L.clientProfile&&(A?_.lW.set(A,"X-WebChannel-Client-Profile",L.clientProfile):A=_.lW.create("X-WebChannel-Client-Profile",L.clientProfile));this.JSC$20574_channel_.initHeaders_=A;(A=L&&L.httpHeadersOverwriteParam)&&!_.Ye(A)&&(this.JSC$20574_channel_.httpHeadersOverwriteParam_=A);this.supportsCrossDomainXhr_=L&&L.supportsCrossDomainXhr||!1;this.sendRawJson_=L&&L.sendRawJson||!1;(L=L&&L.httpSessionIdParam)&&!_.Ye(L)&&(this.JSC$20574_channel_.httpSessionIdParam_=L,_.lW.containsKey(this.messageUrlParams_,
L)&&_.lW.remove(this.messageUrlParams_,L));this.channelHandler_=new Af(this)};
_.Ty(LS,_.lb);LS.prototype.open=function(){this.JSC$20574_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$20574_channel_.JSC$20565_supportsCrossDomainXhrs_=!0);this.JSC$20574_channel_.connect(this.JSC$20574_url_,this.messageUrlParams_||void 0)};
LS.prototype.close=function(){this.JSC$20574_channel_.disconnect()};
LS.prototype.send=function(A){var L=this.JSC$20574_channel_;if(typeof A==="string"){var O={};O.__data__=A;A=O}else this.sendRawJson_&&(O={},O.__data__=(0,_.fc)(A),A=O);L.JSC$20565_outgoingMaps_.push(new n9z(L.JSC$20565_nextMapId_++,A));L.state_==3&&r_M(L)};
LS.prototype.disposeInternal=function(){this.JSC$20574_channel_.handler_=null;delete this.channelHandler_;this.JSC$20574_channel_.disconnect();delete this.JSC$20574_channel_;LS.superClass_.disposeInternal.call(this)};
var y_B=function(A){CAn.call(this);A.__headers__&&(this.headers=A.__headers__,this.statusCode=A.__status__,delete A.__headers__,delete A.__status__);var L=A.__sm__;L?this.data=(this.metadataKey=_.lW.getAnyKey(L))?_.lW.get(L,this.metadataKey):L:this.data=A};
_.Ty(y_B,CAn);var ZXM=function(A){FDn.call(this);this.status=1;this.errorCode=A};
_.Ty(ZXM,FDn);var Af=function(A){this.JSC$20581_channel_=A};
_.Ty(Af,f_J);Af.prototype.JSC$20571_channelOpened=function(){this.JSC$20581_channel_.dispatchEvent("w")};
Af.prototype.JSC$20571_channelHandleArray=function(A){this.JSC$20581_channel_.dispatchEvent(new y_B(A))};
Af.prototype.JSC$20571_channelError=function(A){this.JSC$20581_channel_.dispatchEvent(new ZXM(A))};
Af.prototype.JSC$20571_channelClosed=function(){this.JSC$20581_channel_.dispatchEvent("x")};
var jjJ=function(A,L){this.transportChannel_=A;this.JSC$20584_channel_=L},Wdk=function(A){return m_k(A.JSC$20584_channel_).map(function(L){var O=A.transportChannel_;
L=L.map;"__data__"in L?(L=L.__data__,O=O.sendRawJson_?(0,_.joc)(L):L):O=L;return O})};
jjJ.prototype.commit=function(A){this.JSC$20584_channel_.forwardChannelFlushedCallback_=A};var OH=function(A){HXX.dispatchEvent(new zQ$(HXX,A))},HXX=new _.lb,zQ$=function(A,L){_.ib.call(this,"statevent",A);
this.stat=L};
_.g(zQ$,_.ib);var XK=function(A,L,O,X,x){this.JSC$20589_channel_=A;this.JSC$20589_channelDebug_=L;this.sid_=O;this.JSC$20589_rid_=X;this.JSC$20589_retryId_=x||1;this.timeout_=45E3;this.JSC$20589_eventHandler_=new _.sI(this);this.pollingTimer_=new _.xO;this.pollingTimer_.setInterval(250)};
_.P=XK.prototype;_.P.JSC$20591_extraHeaders_=null;_.P.JSC$20591_successful_=!1;_.P.JSC$20591_watchDogTimerId_=null;_.P.JSC$20591_watchDogTimeoutTime_=null;_.P.JSC$20591_requestStartTime_=null;_.P.JSC$20591_type_=null;_.P.JSC$20591_baseUri_=null;_.P.JSC$20591_requestUri_=null;_.P.JSC$20591_postData_=null;_.P.JSC$20591_xmlHttp_=null;_.P.JSC$20591_xmlHttpChunkStart_=0;_.P.trident_=null;_.P.JSC$20591_verb_=null;_.P.JSC$20591_lastError_=null;_.P.JSC$20591_lastStatusCode_=-1;_.P.sendClose_=!0;
_.P.JSC$20591_cancelled_=!1;_.P.JSC$20591_readyStateChangeThrottleMs_=0;_.P.JSC$20591_readyStateChangeThrottle_=null;var BtQ=function(A,L){switch(A){case 0:return"Non-200 return code ("+L+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},M0S={},$_S={};
XK.prototype.setTimeout=function(A){this.timeout_=A};
var y7k=function(A,L,O){A.JSC$20591_type_=1;A.JSC$20591_baseUri_=_.tw(L.clone());A.JSC$20591_postData_=O;A.decodeChunks_=!0;a_M(A,null)},Z2z=function(A,L,O,X,x){A.JSC$20591_type_=1;
A.JSC$20591_baseUri_=_.tw(L.clone());A.JSC$20591_postData_=null;A.decodeChunks_=O;x&&(A.sendClose_=!1);a_M(A,X)},a_M=function(A,L){A.JSC$20591_requestStartTime_=Date.now();
jsX(A);A.JSC$20591_requestUri_=A.JSC$20591_baseUri_.clone();G3(A.JSC$20591_requestUri_,"t",A.JSC$20589_retryId_);A.JSC$20591_xmlHttpChunkStart_=0;A.JSC$20591_xmlHttp_=A.JSC$20589_channel_.JSC$20598_createXhrIo(A.JSC$20589_channel_.JSC$20598_shouldUseSecondaryDomains()?L:null);A.JSC$20591_readyStateChangeThrottleMs_>0&&(A.JSC$20591_readyStateChangeThrottle_=new _.Of((0,_.is)(A.JSC$20591_xmlHttpHandler_,A,A.JSC$20591_xmlHttp_),A.JSC$20591_readyStateChangeThrottleMs_));A.JSC$20589_eventHandler_.listen(A.JSC$20591_xmlHttp_,
"readystatechange",A.JSC$20591_readyStateChangeHandler_);L=A.JSC$20591_extraHeaders_?_.lW.clone(A.JSC$20591_extraHeaders_):{};A.JSC$20591_postData_?(A.JSC$20591_verb_="POST",L["Content-Type"]="application/x-www-form-urlencoded",A.JSC$20591_xmlHttp_.send(A.JSC$20591_requestUri_,A.JSC$20591_verb_,A.JSC$20591_postData_,L)):(A.JSC$20591_verb_="GET",A.sendClose_&&!_.tW&&(L.Connection="close"),A.JSC$20591_xmlHttp_.send(A.JSC$20591_requestUri_,A.JSC$20591_verb_,null,L));A.JSC$20589_channel_.notifyServerReachabilityEvent(1);
L=A.JSC$20589_channelDebug_;var O=A.JSC$20591_postData_;if(O){var X="";O=O.split("&");for(var x=0;x<O.length;x++){var J=O[x].split("=");if(J.length>1){var Y=J[0];J=J[1];var T=Y.split("_");X=T.length>=2&&T[1]=="type"?X+(Y+"="+J+"&"):X+(Y+"=redacted&")}}}else X=null;L.info("XMLHTTP REQ ("+A.JSC$20589_rid_+") [attempt "+A.JSC$20589_retryId_+"]: "+A.JSC$20591_verb_+"\n"+A.JSC$20591_requestUri_+"\n"+X)};
XK.prototype.JSC$20591_readyStateChangeHandler_=function(A){A=A.target;var L=this.JSC$20591_readyStateChangeThrottle_;L&&_.ye(A)==3?(this.JSC$20589_channelDebug_.debug("Throttling readystatechange."),L.fire()):this.JSC$20591_xmlHttpHandler_(A)};
XK.prototype.JSC$20591_xmlHttpHandler_=function(A){try{if(A==this.JSC$20591_xmlHttp_)a:{var L=_.ye(this.JSC$20591_xmlHttp_),O=this.JSC$20591_xmlHttp_.JSC$10816_lastErrorCode_,X=this.JSC$20591_xmlHttp_.getStatus();if(_.tW&&!_.b1("420+")){if(L<4)break a}else if(L<3||L==3&&!this.JSC$20591_xmlHttp_.getResponseText())break a;this.JSC$20591_cancelled_||L!=4||O==7||(O==8||X<=0?this.JSC$20589_channel_.notifyServerReachabilityEvent(3):this.JSC$20589_channel_.notifyServerReachabilityEvent(2));W0S(this);var x=
this.JSC$20591_xmlHttp_.getStatus();this.JSC$20591_lastStatusCode_=x;var J=this.JSC$20591_xmlHttp_.getResponseText();J||this.JSC$20589_channelDebug_.debug("No response text for uri "+this.JSC$20591_requestUri_+" status "+x);this.JSC$20591_successful_=x==200;this.JSC$20589_channelDebug_.info("XMLHTTP RESP ("+this.JSC$20589_rid_+") [ attempt "+this.JSC$20589_retryId_+"]: "+this.JSC$20591_verb_+"\n"+this.JSC$20591_requestUri_+"\n"+L+" "+x);if(this.JSC$20591_successful_){L==4&&xM(this);if(this.decodeChunks_){for(A=
!0;!this.JSC$20591_cancelled_&&this.JSC$20591_xmlHttpChunkStart_<J.length;){var Y=H2B(this,J);if(Y==$_S){L==4&&(this.JSC$20591_lastError_=4,OH(15),A=!1);sH(this.JSC$20589_channelDebug_,this.JSC$20589_rid_,null,"[Incomplete Response]");break}else if(Y==M0S){this.JSC$20591_lastError_=4;OH(16);sH(this.JSC$20589_channelDebug_,this.JSC$20589_rid_,J,"[Invalid Chunk]");A=!1;break}else sH(this.JSC$20589_channelDebug_,this.JSC$20589_rid_,Y,null),zsS(this,Y)}L==4&&J.length==0&&(this.JSC$20591_lastError_=1,
OH(17),A=!1);this.JSC$20591_successful_=this.JSC$20591_successful_&&A;A||(sH(this.JSC$20589_channelDebug_,this.JSC$20589_rid_,J,"[Invalid Chunked Response]"),xM(this),BmM(this))}else sH(this.JSC$20589_channelDebug_,this.JSC$20589_rid_,J,null),zsS(this,J);this.JSC$20591_successful_&&!this.JSC$20591_cancelled_&&(L==4?this.JSC$20589_channel_.JSC$20598_onRequestComplete(this):(this.JSC$20591_successful_=!1,jsX(this)))}else x==400&&J.indexOf("Unknown SID")>0?(this.JSC$20591_lastError_=3,OH(13),this.JSC$20589_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$20589_rid_+")")):(this.JSC$20591_lastError_=0,OH(14),this.JSC$20589_channelDebug_.warning("XMLHTTP Bad status "+x+" ("+this.JSC$20589_rid_+")")),xM(this),BmM(this)}else this.JSC$20589_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(T){this.JSC$20589_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var H2B=function(A,L){var O=A.JSC$20591_xmlHttpChunkStart_,X=L.indexOf("\n",O);if(X==-1)return $_S;O=Number(L.substring(O,X));if(isNaN(O))return M0S;X+=1;if(X+O>L.length)return $_S;L=L.slice(X,X+O);A.JSC$20591_xmlHttpChunkStart_=X+O;return L};
XK.prototype.cancel=function(){this.JSC$20591_cancelled_=!0;xM(this)};
var jsX=function(A){A.JSC$20591_watchDogTimeoutTime_=Date.now()+A.timeout_;M9n(A,A.timeout_)},M9n=function(A,L){if(A.JSC$20591_watchDogTimerId_!=null)throw Error("xk");
A.JSC$20591_watchDogTimerId_=aR((0,_.is)(A.JSC$20591_onWatchDogTimeout_,A),L)},W0S=function(A){A.JSC$20591_watchDogTimerId_&&(_.Ou.clearTimeout(A.JSC$20591_watchDogTimerId_),A.JSC$20591_watchDogTimerId_=null)};
XK.prototype.JSC$20591_onWatchDogTimeout_=function(){this.JSC$20591_watchDogTimerId_=null;var A=Date.now();A-this.JSC$20591_watchDogTimeoutTime_>=0?(this.JSC$20589_channelDebug_.info("TIMEOUT: "+this.JSC$20591_requestUri_),this.JSC$20591_type_!=2&&this.JSC$20589_channel_.notifyServerReachabilityEvent(3),xM(this),this.JSC$20591_lastError_=2,OH(18),BmM(this)):(this.JSC$20589_channelDebug_.warning("WatchDog timer called too early"),M9n(this,this.JSC$20591_watchDogTimeoutTime_-A))};
var BmM=function(A){A.JSC$20589_channel_.JSC$20598_isClosed()||A.JSC$20591_cancelled_||A.JSC$20589_channel_.JSC$20598_onRequestComplete(A)},xM=function(A){W0S(A);
_.oo(A.JSC$20591_readyStateChangeThrottle_);A.JSC$20591_readyStateChangeThrottle_=null;A.pollingTimer_.stop();A.JSC$20589_eventHandler_.removeAll();if(A.JSC$20591_xmlHttp_){var L=A.JSC$20591_xmlHttp_;A.JSC$20591_xmlHttp_=null;L.abort();L.dispose()}A.trident_&&(A.trident_=null)};
XK.prototype.getLastError=function(){return this.JSC$20591_lastError_};
var zsS=function(A,L){try{A.JSC$20589_channel_.JSC$20598_onRequestData(A,L),A.JSC$20589_channel_.notifyServerReachabilityEvent(4)}catch(O){}};var sH=function(A,L,O,X){var x=A.info;a:if(O&&O!="y2f%"){try{var J=JSON.parse(O);if(J)for(var Y=0;Y<J.length;Y++)if(Array.isArray(J[Y])){var T=J[Y];if(!(T.length<2)){var V=T[1];if(Array.isArray(V)&&!(V.length<1)){var E=V[0];if(E!="noop"&&E!="stop")for(var n=1;n<V.length;n++)V[n]=""}}}var t=(0,_.fc)(J);break a}catch(b){A.debug("Exception parsing expected JS array - probably was not JS");t=O;break a}t=void 0}else t=O;x.call(A,"XMLHTTP TEXT ("+L+"): "+t+(X?" "+X:""))};
k2.prototype.debug=function(A){this.info(A)};
k2.prototype.info=function(){};
k2.prototype.warning=function(){};var $Bk=function(A,L){this.JSC$20596_channel_=A;this.JSC$20596_channelDebug_=L;this.JSC$20596_parser_=new yX};
_.P=$Bk.prototype;_.P.JSC$20598_extraHeaders_=null;_.P.JSC$20598_request_=null;_.P.receivedIntermediateResult_=!1;_.P.JSC$20598_path_=null;_.P.state_=null;_.P.JSC$20598_lastStatusCode_=-1;_.P.JSC$20598_hostPrefix_=null;_.P.blockedPrefix_=null;
_.P.connect=function(A){this.JSC$20598_path_=A;A=aTX(this.JSC$20596_channel_,this.JSC$20598_path_);OH(3);Date.now();var L=this.JSC$20596_channel_.firstTestResults_;L!=null?(this.JSC$20598_hostPrefix_=L[0],(this.blockedPrefix_=L[1])?(this.state_=1,keJ(this)):(this.state_=2,UBn(this))):(G3(A,"MODE","init"),this.JSC$20598_request_=new XK(this,this.JSC$20596_channelDebug_),this.JSC$20598_request_.JSC$20591_extraHeaders_=this.JSC$20598_extraHeaders_,Z2z(this.JSC$20598_request_,A,!1,null,!0),this.state_=
0)};
var keJ=function(A){var L=vqJ(A.JSC$20596_channel_,A.blockedPrefix_,"/mail/images/cleardot.gif");_.tw(L);ncM(L.toString(),5E3,(0,_.is)(A.checkBlockedCallback_,A),3,2E3);A.notifyServerReachabilityEvent(1)};
$Bk.prototype.checkBlockedCallback_=function(A){if(A)this.state_=2,UBn(this);else{OH(4);var L=this.JSC$20596_channel_;L.JSC$20599_channelDebug_.debug("Test Connection Blocked");L.JSC$20603_lastStatusCode_=L.connectionTest_.JSC$20598_lastStatusCode_;Jf(L,9)}A&&this.notifyServerReachabilityEvent(2)};
var UBn=function(A){A.JSC$20596_channelDebug_.debug("TestConnection: starting stage 2");var L=A.JSC$20596_channel_.secondTestResults_;L!=null?(A.JSC$20596_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+L?"Buffered":"Unbuffered"),OH(5),L?(OH(11),Pj(A.JSC$20596_channel_,A,!1)):(OH(12),Pj(A.JSC$20596_channel_,A,!0))):(A.JSC$20598_request_=new XK(A,A.JSC$20596_channelDebug_),A.JSC$20598_request_.JSC$20591_extraHeaders_=A.JSC$20598_extraHeaders_,L=oqS(A.JSC$20596_channel_,
A.JSC$20598_hostPrefix_,A.JSC$20598_path_),OH(5),G3(L,"TYPE","xmlhttp"),Z2z(A.JSC$20598_request_,L,!1,A.JSC$20598_hostPrefix_,!1))};
_.P=$Bk.prototype;_.P.JSC$20598_createXhrIo=function(A){return this.JSC$20596_channel_.JSC$20598_createXhrIo(A)};
_.P.abort=function(){this.JSC$20598_request_&&(this.JSC$20598_request_.cancel(),this.JSC$20598_request_=null);this.JSC$20598_lastStatusCode_=-1};
_.P.JSC$20598_isClosed=function(){return!1};
_.P.JSC$20598_onRequestData=function(A,L){this.JSC$20598_lastStatusCode_=A.JSC$20591_lastStatusCode_;if(this.state_==0)if(this.JSC$20596_channelDebug_.debug("TestConnection: Got data for stage 1"),L){try{var O=this.JSC$20596_parser_.parse(L)}catch(X){AaX(this.JSC$20596_channel_,this);return}this.JSC$20598_hostPrefix_=O[0];this.blockedPrefix_=O[1]}else this.JSC$20596_channelDebug_.debug("TestConnection: Null responseText"),AaX(this.JSC$20596_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(OH(7),Date.now()):L=="11111"?(OH(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$20598_lastStatusCode_=200,this.JSC$20598_request_.cancel(),this.JSC$20596_channelDebug_.debug("Test connection succeeded; using streaming connection"),OH(12),Pj(this.JSC$20596_channel_,this,!0)):(OH(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.P.JSC$20598_onRequestComplete=function(){this.JSC$20598_lastStatusCode_=this.JSC$20598_request_.JSC$20591_lastStatusCode_;this.JSC$20598_request_.JSC$20591_successful_?this.state_==0?(this.JSC$20596_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,keJ(this)):(this.state_=2,UBn(this))):this.state_==2&&(this.JSC$20596_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$20596_channelDebug_.debug("Test connection succeeded; using streaming connection"),
OH(12),Pj(this.JSC$20596_channel_,this,!0)):(this.JSC$20596_channelDebug_.debug("Test connection failed; not using streaming"),OH(11),Pj(this.JSC$20596_channel_,this,!1))):(this.JSC$20596_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?OH(9):this.state_==2&&OH(10),AaX(this.JSC$20596_channel_,this,this.JSC$20598_request_.getLastError()))};
_.P.JSC$20598_shouldUseSecondaryDomains=function(){return this.JSC$20596_channel_.JSC$20598_shouldUseSecondaryDomains()};
_.P.isActive=function(){return this.JSC$20596_channel_.isActive()};
_.P.notifyServerReachabilityEvent=function(A){this.JSC$20596_channel_.notifyServerReachabilityEvent(A)};var dZ=function(A,L,O){this.state_=1;this.JSC$20599_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$20599_channelDebug_=new k2;this.JSC$20599_parser_=new yX;this.firstTestResults_=A||null;this.secondTestResults_=L!=null?L:null;this.asyncTest_=O||!1},Lk7=function(A,L){this.JSC$20601_mapId=A;
this.map=L;this.context=null};
_.P=dZ.prototype;_.P.JSC$20603_extraHeaders_=null;_.P.JSC$20603_extraParams_=null;_.P.forwardChannelRequest_=null;_.P.JSC$20603_backChannelRequest_=null;_.P.JSC$20603_path_=null;_.P.JSC$20603_forwardChannelUri_=null;_.P.JSC$20603_backChannelUri_=null;_.P.JSC$20603_hostPrefix_=null;_.P.JSC$20603_nextRid_=0;_.P.JSC$20603_nextMapId_=0;_.P.handler_=null;_.P.JSC$20603_forwardChannelTimerId_=null;_.P.JSC$20603_backChannelTimerId_=null;_.P.JSC$20603_deadBackChannelTimerId_=null;_.P.connectionTest_=null;
_.P.useChunked_=null;_.P.JSC$20603_lastArrayId_=-1;_.P.JSC$20603_lastPostResponseArrayId_=-1;_.P.JSC$20603_lastStatusCode_=-1;_.P.JSC$20603_forwardChannelRetryCount_=0;_.P.JSC$20603_backChannelRetryCount_=0;_.P.JSC$20603_channelVersion_=8;var OAM={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},X$X=function(A,L,O,X){_.ib.call(this,"timingevent",A);this.size=L;this.rtt=O;this.retries=X};
_.Ty(X$X,_.ib);var xvZ=function(A){_.ib.call(this,"serverreachability",A)};
_.Ty(xvZ,_.ib);dZ.prototype.connect=function(A,L,O,X,x){this.JSC$20599_channelDebug_.debug("connect()");OH(0);this.JSC$20603_path_=L;this.JSC$20603_extraParams_=O||{};X&&x!==void 0&&(this.JSC$20603_extraParams_.OSID=X,this.JSC$20603_extraParams_.OAID=x);this.asyncTest_?(aR((0,_.is)(this.connectTest_,this,A),100),slX(this)):this.connectTest_(A)};
dZ.prototype.disconnect=function(){this.JSC$20599_channelDebug_.debug("disconnect()");Jak(this);if(this.state_==3){var A=this.JSC$20603_nextRid_++,L=this.JSC$20603_forwardChannelUri_.clone();_.Hq(L,"SID",this.sid_);_.Hq(L,"RID",A);_.Hq(L,"TYPE","terminate");YM(this,L);A=new XK(this,this.JSC$20599_channelDebug_,this.sid_,A);A.JSC$20591_type_=2;A.JSC$20591_baseUri_=_.tw(L.clone());(new Image).src=A.JSC$20591_baseUri_.toString();A.JSC$20591_requestStartTime_=Date.now();jsX(A)}P6$(this)};
dZ.prototype.connectTest_=function(A){this.JSC$20599_channelDebug_.debug("connectTest_()");this.connectionTest_=new $Bk(this,this.JSC$20599_channelDebug_);this.connectionTest_.JSC$20598_extraHeaders_=this.JSC$20603_extraHeaders_;this.connectionTest_.JSC$20596_parser_=this.JSC$20599_parser_;this.connectionTest_.connect(A)};
var slX=function(A){A.JSC$20599_channelDebug_.debug("connectChannel_()");A.JSC$20603_ensureInState_(1,0);A.JSC$20603_forwardChannelUri_=aTX(A,A.JSC$20603_path_);dvQ(A)},Jak=function(A){A.connectionTest_&&(A.connectionTest_.abort(),A.connectionTest_=null);
A.JSC$20603_backChannelRequest_&&(A.JSC$20603_backChannelRequest_.cancel(),A.JSC$20603_backChannelRequest_=null);A.JSC$20603_backChannelTimerId_&&(_.Ou.clearTimeout(A.JSC$20603_backChannelTimerId_),A.JSC$20603_backChannelTimerId_=null);YcS(A);A.forwardChannelRequest_&&(A.forwardChannelRequest_.cancel(),A.forwardChannelRequest_=null);A.JSC$20603_forwardChannelTimerId_&&(_.Ou.clearTimeout(A.JSC$20603_forwardChannelTimerId_),A.JSC$20603_forwardChannelTimerId_=null)},u6$=function(A,L){if(A.state_==0)throw Error("Ak");
A.JSC$20599_outgoingMaps_.length==1E3&&A.JSC$20599_parser_.stringify(L);A.JSC$20599_outgoingMaps_.push(new Lk7(A.JSC$20603_nextMapId_++,L));A.state_!=2&&A.state_!=3||dvQ(A)};
dZ.prototype.JSC$20598_isClosed=function(){return this.state_==0};
dZ.prototype.getState=function(){return this.state_};
var dvQ=function(A){A.forwardChannelRequest_||A.JSC$20603_forwardChannelTimerId_||(A.JSC$20603_forwardChannelTimerId_=aR((0,_.is)(A.JSC$20603_onStartForwardChannelTimer_,A),0),A.JSC$20603_forwardChannelRetryCount_=0)};
dZ.prototype.JSC$20603_onStartForwardChannelTimer_=function(A){this.JSC$20603_forwardChannelTimerId_=null;Tf7(this,A)};
var Tf7=function(A,L){A.JSC$20599_channelDebug_.debug("startForwardChannel_");if(A.state_==1){if(!L){A.JSC$20599_channelDebug_.debug("open_()");A.JSC$20603_nextRid_=Math.floor(Math.random()*1E5);L=A.JSC$20603_nextRid_++;var O=new XK(A,A.JSC$20599_channelDebug_,"",L);O.JSC$20591_extraHeaders_=A.JSC$20603_extraHeaders_;var X=VlZ(A),x=A.JSC$20603_forwardChannelUri_.clone();_.Hq(x,"RID",L);_.Hq(x,"CVER","1");YM(A,x);y7k(O,x,X);A.forwardChannelRequest_=O;A.state_=2}}else A.state_==3&&(L?Dvk(A,L):A.JSC$20599_outgoingMaps_.length==
0?A.JSC$20599_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):A.forwardChannelRequest_||(Dvk(A),A.JSC$20599_channelDebug_.debug("startForwardChannel_ finished, sent request")))},Dvk=function(A,L){if(L)if(A.JSC$20603_channelVersion_>6){A.JSC$20599_outgoingMaps_=A.pendingMaps_.concat(A.JSC$20599_outgoingMaps_);
A.pendingMaps_.length=0;var O=A.JSC$20603_nextRid_-1;L=VlZ(A)}else O=L.JSC$20589_rid_,L=L.JSC$20591_postData_;else O=A.JSC$20603_nextRid_++,L=VlZ(A);var X=A.JSC$20603_forwardChannelUri_.clone();_.Hq(X,"SID",A.sid_);_.Hq(X,"RID",O);_.Hq(X,"AID",A.JSC$20603_lastArrayId_);YM(A,X);O=new XK(A,A.JSC$20599_channelDebug_,A.sid_,O,A.JSC$20603_forwardChannelRetryCount_+1);O.JSC$20591_extraHeaders_=A.JSC$20603_extraHeaders_;O.setTimeout(1E4+Math.round(1E4*Math.random()));A.forwardChannelRequest_=O;y7k(O,X,L)},
YM=function(A,L){A.handler_&&(A=A.handler_.JSC$20610_getAdditionalParams())&&_.lW.forEach(A,function(O,X){_.Hq(L,X,O)})},VlZ=function(A){var L=Math.min(A.JSC$20599_outgoingMaps_.length,1E3),O=["count="+L];
if(A.JSC$20603_channelVersion_>6&&L>0){var X=A.JSC$20599_outgoingMaps_[0].JSC$20601_mapId;O.push("ofs="+X)}else X=0;for(var x={},J=0;J<L;x={mapId$jscomp$3:void 0},J++){x.mapId$jscomp$3=A.JSC$20599_outgoingMaps_[J].JSC$20601_mapId;var Y=A.JSC$20599_outgoingMaps_[J].map;x.mapId$jscomp$3=A.JSC$20603_channelVersion_<=6?J:x.mapId$jscomp$3-X;try{_.lW.forEach(Y,function(T){return function(V,E){O.push("req"+T.mapId$jscomp$3+"_"+E+"="+encodeURIComponent(V))}}(x))}catch(T){O.push("req"+x.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}A.pendingMaps_=A.pendingMaps_.concat(A.JSC$20599_outgoingMaps_.splice(0,L));
return O.join("&")},elM=function(A){A.JSC$20603_backChannelRequest_||A.JSC$20603_backChannelTimerId_||(A.JSC$20603_backChannelAttemptId_=1,A.JSC$20603_backChannelTimerId_=aR((0,_.is)(A.JSC$20603_onStartBackChannelTimer_,A),0),A.JSC$20603_backChannelRetryCount_=0)},n1X=function(A){if(A.JSC$20603_backChannelRequest_||A.JSC$20603_backChannelTimerId_||A.JSC$20603_backChannelRetryCount_>=3)return!1;
A.JSC$20599_channelDebug_.debug("Going to retry GET");A.JSC$20603_backChannelAttemptId_++;A.JSC$20603_backChannelTimerId_=aR((0,_.is)(A.JSC$20603_onStartBackChannelTimer_,A),E1M(A,A.JSC$20603_backChannelRetryCount_));A.JSC$20603_backChannelRetryCount_++;return!0};
dZ.prototype.JSC$20603_onStartBackChannelTimer_=function(){this.JSC$20603_backChannelTimerId_=null;this.JSC$20599_channelDebug_.debug("Creating new HttpRequest");this.JSC$20603_backChannelRequest_=new XK(this,this.JSC$20599_channelDebug_,this.sid_,"rpc",this.JSC$20603_backChannelAttemptId_);this.JSC$20603_backChannelRequest_.JSC$20591_extraHeaders_=this.JSC$20603_extraHeaders_;this.JSC$20603_backChannelRequest_.JSC$20591_readyStateChangeThrottleMs_=0;var A=this.JSC$20603_backChannelUri_.clone();_.Hq(A,
"RID","rpc");_.Hq(A,"SID",this.sid_);_.Hq(A,"CI",this.useChunked_?"0":"1");_.Hq(A,"AID",this.JSC$20603_lastArrayId_);YM(this,A);_.Hq(A,"TYPE","xmlhttp");Z2z(this.JSC$20603_backChannelRequest_,A,!0,this.JSC$20603_hostPrefix_,!1);this.JSC$20599_channelDebug_.debug("New Request created")};
var Pj=function(A,L,O){A.JSC$20599_channelDebug_.debug("Test Connection Finished");A.useChunked_=A.secondTestResults_==null?O:!A.secondTestResults_;A.JSC$20603_lastStatusCode_=L.JSC$20598_lastStatusCode_;A.asyncTest_||slX(A)},AaX=function(A,L){A.JSC$20599_channelDebug_.debug("Test Connection Failed");
A.JSC$20603_lastStatusCode_=L.JSC$20598_lastStatusCode_;Jf(A,2)};
dZ.prototype.JSC$20598_onRequestData=function(A,L){if(this.state_!=0&&(this.JSC$20603_backChannelRequest_==A||this.forwardChannelRequest_==A))if(this.JSC$20603_lastStatusCode_=A.JSC$20591_lastStatusCode_,this.forwardChannelRequest_==A&&this.state_==3)if(this.JSC$20603_channelVersion_>7){try{var O=this.JSC$20599_parser_.parse(L)}catch(X){O=null}if(Array.isArray(O)&&O.length==3)if(L=O,L[0]==0)a:if(this.JSC$20599_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$20603_backChannelTimerId_)this.JSC$20599_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$20603_backChannelRequest_)if(this.JSC$20603_backChannelRequest_.JSC$20591_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$20591_requestStartTime_)YcS(this),this.JSC$20603_backChannelRequest_.cancel(),this.JSC$20603_backChannelRequest_=null;else break a;else this.JSC$20599_channelDebug_.warning("We do not have a BackChannel established");n1X(this);OH(19)}else this.JSC$20603_lastPostResponseArrayId_=L[1],A=this.JSC$20603_lastPostResponseArrayId_-this.JSC$20603_lastArrayId_,0<
A&&(L=L[2],this.JSC$20599_channelDebug_.debug(L+" bytes (in "+A+" arrays) are outstanding on the BackChannel"),L<37500&&this.useChunked_&&this.JSC$20603_backChannelRetryCount_==0&&!this.JSC$20603_deadBackChannelTimerId_&&(this.JSC$20603_deadBackChannelTimerId_=aR((0,_.is)(this.JSC$20603_onBackChannelDead_,this),6E3)));else this.JSC$20599_channelDebug_.debug("Bad POST response data returned"),Jf(this,11)}else L!="y2f%"&&(this.JSC$20599_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
Jf(this,11));else this.JSC$20603_backChannelRequest_==A&&YcS(this),_.Ye(L)||(A=this.JSC$20599_parser_.parse(L),this.onInput_(A))};
dZ.prototype.JSC$20603_onBackChannelDead_=function(){this.JSC$20603_deadBackChannelTimerId_!=null&&(this.JSC$20603_deadBackChannelTimerId_=null,this.JSC$20603_backChannelRequest_.cancel(),this.JSC$20603_backChannelRequest_=null,n1X(this),OH(20))};
var YcS=function(A){A.JSC$20603_deadBackChannelTimerId_!=null&&(_.Ou.clearTimeout(A.JSC$20603_deadBackChannelTimerId_),A.JSC$20603_deadBackChannelTimerId_=null)};
dZ.prototype.JSC$20598_onRequestComplete=function(A){this.JSC$20599_channelDebug_.debug("Request complete");if(this.JSC$20603_backChannelRequest_==A){YcS(this);this.JSC$20603_backChannelRequest_=null;var L=2}else if(this.forwardChannelRequest_==A)this.forwardChannelRequest_=null,L=1;else return;this.JSC$20603_lastStatusCode_=A.JSC$20591_lastStatusCode_;if(this.state_!=0)if(A.JSC$20591_successful_)if(L==1){L=A.JSC$20591_postData_?A.JSC$20591_postData_.length:0;A=Date.now()-A.JSC$20591_requestStartTime_;
var O=HXX;O.dispatchEvent(new X$X(O,L,A,this.JSC$20603_forwardChannelRetryCount_));dvQ(this);this.handler_&&this.handler_.JSC$20610_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else elM(this);else{O=A.getLastError();if(O==3||O==7||O==0&&this.JSC$20603_lastStatusCode_>0)this.JSC$20599_channelDebug_.debug("Not retrying due to error type");else{this.JSC$20599_channelDebug_.debug("Maybe retrying, last error: "+BtQ(O,this.JSC$20603_lastStatusCode_));var X;if(X=L==1)this.forwardChannelRequest_||
this.JSC$20603_forwardChannelTimerId_||this.state_==1||this.JSC$20603_forwardChannelRetryCount_>=2?X=!1:(this.JSC$20599_channelDebug_.debug("Going to retry POST"),this.JSC$20603_forwardChannelTimerId_=aR((0,_.is)(this.JSC$20603_onStartForwardChannelTimer_,this,A),E1M(this,this.JSC$20603_forwardChannelRetryCount_)),this.JSC$20603_forwardChannelRetryCount_++,X=!0);if(X||L==2&&n1X(this))return;this.JSC$20599_channelDebug_.debug("Exceeded max number of retries")}this.JSC$20599_channelDebug_.debug("Error: HTTP request failed");
switch(O){case 1:Jf(this,5);break;case 4:Jf(this,10);break;case 3:Jf(this,6);break;case 7:Jf(this,12);break;default:Jf(this,2)}}};
var E1M=function(A,L){var O=5E3+Math.floor(Math.random()*1E4);A.isActive()||(A.JSC$20599_channelDebug_.debug("Inactive channel"),O*=2);return O*L};
dZ.prototype.onInput_=function(A){for(var L=0;L<A.length;L++){var O=A[L];this.JSC$20603_lastArrayId_=O[0];O=O[1];this.state_==2?O[0]=="c"?(this.sid_=O[1],this.JSC$20603_hostPrefix_=O[2],O=O[3],O!=null?this.JSC$20603_channelVersion_=O:this.JSC$20603_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$20610_channelOpened(),this.JSC$20603_backChannelUri_=oqS(this,this.JSC$20603_hostPrefix_,this.JSC$20603_path_),elM(this)):O[0]=="stop"&&Jf(this,7):this.state_==3&&(O[0]=="stop"?Jf(this,7):
O[0]!="noop"&&this.handler_&&this.handler_.JSC$20610_channelHandleArray(O),this.JSC$20603_backChannelRetryCount_=0)}};
dZ.prototype.JSC$20603_ensureInState_=function(A){if(!_.Id(arguments,this.state_))throw Error("Bk`"+this.state_);};
var Jf=function(A,L){A.JSC$20599_channelDebug_.info("Error code "+L);if(L==2||L==9){var O=null;A.handler_&&(O=null);var X=(0,_.is)(A.testGoogleComCallback_,A);O||(O=new _.kO("//www.google.com/images/cleardot.gif"),_.tw(O));EcS(O.toString(),1E4,X)}else OH(2);A.onError_(L)};
dZ.prototype.testGoogleComCallback_=function(A){A?(this.JSC$20599_channelDebug_.info("Successfully pinged google.com"),OH(2)):(this.JSC$20599_channelDebug_.info("Failed to ping google.com"),OH(1),this.onError_(8))};
dZ.prototype.onError_=function(A){this.JSC$20599_channelDebug_.debug("HttpChannel: error - "+A);this.state_=0;this.handler_&&this.handler_.JSC$20610_channelError(A);P6$(this);Jak(this)};
var P6$=function(A){A.state_=0;A.JSC$20603_lastStatusCode_=-1;if(A.handler_)if(A.pendingMaps_.length==0&&A.JSC$20599_outgoingMaps_.length==0)A.handler_.JSC$20610_channelClosed();else{A.JSC$20599_channelDebug_.debug("Number of undelivered maps, pending: "+A.pendingMaps_.length+", outgoing: "+A.JSC$20599_outgoingMaps_.length);var L=_.Ze(A.pendingMaps_),O=_.Ze(A.JSC$20599_outgoingMaps_);A.pendingMaps_.length=0;A.JSC$20599_outgoingMaps_.length=0;A.handler_.JSC$20610_channelClosed(L,O)}},aTX=function(A,
L){L=vqJ(A,null,L);
A.JSC$20599_channelDebug_.debug("GetForwardChannelUri: "+L);return L},oqS=function(A,L,O){L=vqJ(A,A.JSC$20598_shouldUseSecondaryDomains()?L:null,O);
A.JSC$20599_channelDebug_.debug("GetBackChannelUri: "+L);return L},vqJ=function(A,L,O){var X=_.jV(O);
if(X.JSC$11053_domain_!="")L&&_.YI(X,L+"."+X.JSC$11053_domain_),_.u5(X,X.JSC$11053_port_);else{var x=window.location;X=mlQ(x.protocol,L?L+"."+x.hostname:x.hostname,+x.port,O)}A.JSC$20603_extraParams_&&_.lW.forEach(A.JSC$20603_extraParams_,function(J,Y){_.Hq(X,Y,J)});
_.Hq(X,"VER",A.JSC$20603_channelVersion_);YM(A,X);return X};
dZ.prototype.JSC$20598_createXhrIo=function(A){if(A)throw Error("yk");A=new _.I$;A.JSC$10816_withCredentials_=!1;return A};
dZ.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
dZ.prototype.notifyServerReachabilityEvent=function(A){var L=HXX;L.dispatchEvent(new xvZ(L,A))};
dZ.prototype.JSC$20598_shouldUseSecondaryDomains=function(){return!1};
new Wzn;var tlS=function(){};
_.P=tlS.prototype;_.P.JSC$20610_channelOpened=function(){};
_.P.JSC$20610_channelHandleArray=function(){};
_.P.JSC$20610_channelSuccess=function(){};
_.P.JSC$20610_channelError=function(){};
_.P.JSC$20610_channelClosed=function(){};
_.P.JSC$20610_getAdditionalParams=function(){return{}};
_.P.isActive=function(){return!0};var bA7=function(A){A.front_.length===0&&(A.front_=A.back_,A.front_.reverse(),A.back_=[])};
_.P=b3S.prototype;_.P.enqueue=function(A){this.back_.push(A)};
_.P.peek=function(){bA7(this);return _.cJ(this.front_)};
_.P.getCount=function(){return this.front_.length+this.back_.length};
_.P.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.P.clear=function(){this.front_=[];this.back_=[]};
_.P.contains=function(A){return _.Id(this.front_,A)||_.Id(this.back_,A)};
_.P.remove=function(A){var L=this.front_;var O=Array.prototype.lastIndexOf.call(L,A,L.length-1);O>=0?(_.wJr(L,O),L=!0):L=!1;return L||_.y_(this.back_,A)};
_.P.getValues=function(){for(var A=[],L=this.front_.length-1;L>=0;--L)A.push(this.front_[L]);L=this.back_.length;for(var O=0;O<L;++O)A.push(this.back_[O]);return A};var ut=function(A){this.JSC$20614_map_=new _.bh;this.size=0;A&&this.addAll(A)},hlk=function(A){var L=typeof A;
return L=="object"&&A||L=="function"?"o"+_.$e(A):L.charAt(0)+A};
_.P=ut.prototype;_.P.getCount=function(){return this.JSC$20614_map_.size};
_.P.add=function(A){this.JSC$20614_map_.set(hlk(A),A);this.size=this.JSC$20614_map_.size};
_.P.addAll=function(A){A=_.P9(A);for(var L=A.length,O=0;O<L;O++)this.add(A[O]);this.size=this.JSC$20614_map_.size};
_.P.removeAll=function(A){A=_.P9(A);for(var L=A.length,O=0;O<L;O++)this.remove(A[O]);this.size=this.JSC$20614_map_.size};
_.P.delete=function(A){A=this.JSC$20614_map_.remove(hlk(A));this.size=this.JSC$20614_map_.size;return A};
_.P.remove=function(A){return this.delete(A)};
_.P.clear=function(){this.JSC$20614_map_.clear();this.size=0};
_.P.isEmpty=function(){return this.JSC$20614_map_.size===0};
_.P.has=function(A){return this.JSC$20614_map_.containsKey(hlk(A))};
_.P.contains=function(A){return this.JSC$20614_map_.containsKey(hlk(A))};
_.P.getValues=function(){return this.JSC$20614_map_.getValues()};
_.P.values=function(){return this.JSC$20614_map_.values()};
_.P.clone=function(){return new ut(this)};
_.P.equals=function(A){return this.getCount()==RqX(A)&&ScJ(this,A)};
var ScJ=function(A,L){var O=RqX(L);if(A.getCount()>O)return!1;!(L instanceof ut)&&O>5&&(L=new ut(L));return QI$(A,function(X){var x=L;return x.contains&&typeof x.contains=="function"?x.contains(X):x.containsValue&&typeof x.containsValue=="function"?x.containsValue(X):_.jD(x)||typeof x==="string"?_.Id(x,X):_.lW.containsValue(x,X)})};
ut.prototype.__iterator__=function(){return this.JSC$20614_map_.__iterator__(!1)};
ut.prototype[Symbol.iterator]=function(){return this.values()};var qcZ={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(A){return(this._clampValue(A)-this.min)/(this.max-this.min)},
_clampValue:function(A){return Math.min(this.max,Math.max(this.min,this._calcStep(A)))},
_calcStep:function(A){A=parseFloat(A);if(!this.step)return A;A=Math.round((A-this.min)/this.step);return this.step<1?A/(1/this.step)+this.min:A*this.step+this.min},
_validateValue:function(){var A=this._clampValue(this.value);this.value=this.oldValue=isNaN(A)?this.oldValue:A;return this.value!==A},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var g1S;var w$n;_.RJ({_template:function(){if(w$n!==void 0)return w$n;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;g1S===void 0&&(g1S=document.createElement("template"));var X=g1S;O.call(L,X.content.cloneNode(!0),A.content.firstChild);return w$n=A},
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(){_.kd(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(A){A.keyCode===27&&(A.preventDefault(),this.close())},
_track:function(A){if(!this.persistent&&!this.disableSwipe)switch(A.preventDefault(),A.detail.state){case "start":this._trackStart(A);break;case "track":this._trackMove(A);break;case "end":this._trackEnd(A)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var A=this.$.contentContainer.getBoundingClientRect();this._savedWidth=A.width;this._translateOffset=this.position==="left"?A.left:A.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(A){this._trackDetails&&(this._translateDrawer(A.detail.dx+this._translateOffset),this._trackDetails.push({dx:A.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(A){if(this._trackDetails){var L=A.detail.dx+this._translateOffset,O=this.getWidth();L=this.position==="left"?L>=0||L<=-O:L<=0||L>=O;if(!L){var X=this._trackDetails;this._trackDetails=null;this._flingDrawer(A,X);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}O/=2;A.detail.dx<-O?this.opened=this.position==="right":A.detail.dx>O&&(this.opened=this.position==="left");L?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(A,L){for(var O=Date.now(),X=O-100,x,J=0,Y=L.length-1;J<=Y;){var T=J+Y>>1,V=L[T];V.timeStamp>=X?(x=V,Y=T-1):J=T+1}return x?(A.detail.dx-x.dx)/(O-x.timeStamp||1):0},
_flingDrawer:function(A,L){L=this._calculateVelocity(A,L);if(!(Math.abs(L)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;A=A.detail.dx+this._translateOffset;var O=this.getWidth(),X=this.position==="left",x=L>0;x?(L=Math.max(L,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(L=Math.min(L,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");L=this._FLING_INITIAL_SLOPE*(!x&&X?-(A+O):x&&!X?O-A:-A)/L;this._styleTransitionDuration(L);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,L)}},
_styleTransitionDuration:function(A){this.style.transitionDuration=A+"ms";this.$.contentContainer.style.transitionDuration=A+"ms";this.$.scrim.style.transitionDuration=A+"ms"},
_styleTransitionTimingFunction:function(A){this.$.contentContainer.style.transitionTimingFunction=A;this.$.scrim.style.transitionTimingFunction=A},
_translateDrawer:function(A){var L=this.getWidth();this.position==="left"?(A=Math.max(-L,Math.min(A,0)),this.$.scrim.style.opacity=1+A/L):(A=Math.max(0,Math.min(A,L)),this.$.scrim.style.opacity=1-A/L);this.translate3d(A+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var A=this._drawerState;A===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;A!==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=""),A!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var A=_.ii(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"])');A.length>0?(this._firstTabStop=A[0],this._lastTabStop=A[A.length-1]):
this._lastTabStop=this._firstTabStop=null;(A=this.getAttribute("tabindex"))&&parseInt(A,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(A){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||A.keyCode!==9||(A.shiftKey?this._firstTabStop&&_.ii(A).localTarget===this._firstTabStop&&(A.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.ii(A).localTarget===this._lastTabStop&&(A.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(A,L){this.toggleClass("visible",A&&!L,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 p$Z;var iAz;_.RJ({_template:function(){if(iAz!==void 0)return iAz;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;p$Z===void 0&&(p$Z=document.createElement("template"));var X=p$Z;O.call(L,X.content.cloneNode(!0),A.content.firstChild);return iAz=A},
is:"tp-yt-paper-progress",behaviors:[qcZ],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(A){this.toggleClass("indeterminate",A,this.$.primaryProgress)},
_transformProgress:function(A,L){A.style.transform=A.style.webkitTransform="scaleX("+L/100+")"},
_mainRatioChanged:function(A){this._transformProgress(this.$.primaryProgress,A)},
_progressChanged:function(A,L,O,X,x){A=this._clampValue(A);L=this._clampValue(L);var J=this._calcRatio(A)*100,Y=this._calcRatio(L)*100;this._setSecondaryRatio(J);this._transformProgress(this.$.secondaryProgress,J);this._transformProgress(this.$.primaryProgress,Y);this.secondaryProgress=A;x?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",L);this.setAttribute("aria-valuemin",O);this.setAttribute("aria-valuemax",X)},
_disabledChanged:function(A){this.setAttribute("aria-disabled",A?"true":"false")},
_hideSecondaryProgress:function(A){return A===0}});var Nfk;var raZ;var Kkk=function(){};
_.P=Kkk.prototype;_.P.registered=function(){};
_.P.addOwnKeyBinding=function(){};
_.P.removeOwnKeyBindings=function(){};
_.P.keyboardEventMatchesKeys=function(){};
_.P._collectKeyBindings=function(){};
_.P._prepKeyBindings=function(){};
_.P._addKeyBinding=function(){};
_.P._resetKeyEventListeners=function(){};
_.P._listenKeyEventListeners=function(){};
_.P._unlistenKeyEventListeners=function(){};
_.P._onKeyBindingEvent=function(){};
_.P._triggerKeyHandler=function(){};
_.P._tapHandler=function(){};
_.P._focusChanged=function(){};
_.P._detectKeyboardFocus=function(){};
_.P._userActivate=function(){};
_.P._upHandler=function(){};
_.P._spaceKeyDownHandler=function(){};
_.P._spaceKeyUpHandler=function(){};
_.P._asyncClick=function(){};
_.P._pressedChanged=function(){};
_.P._ariaActiveAttributeChanged=function(){};
_.P._activeChanged=function(){};
_.P._controlStateChanged=function(){};
_.P._changedButtonState=function(){};
_.P._focusBlurHandler=function(){};
_.P._disabledChanged=function(){};
_.P._changedControlState=function(){};
_.P._buttonStateChanged=function(){};
_.P._downHandler=function(){};
_.P.ensureRipple=function(){};
_.P.getRipple=function(){};
_.P.hasRipple=function(){};
_.P._noinkChanged=function(){};
_.P._calcRatio=function(){};
_.P._clampValue=function(){};
_.P._calcStep=function(){};
_.P._validateValue=function(){};
_.P._update=function(){};
_.P._setImmediateValue=function(){};
_.P._setExpand=function(){};
_.P._setDragging=function(){};
_.P._setTransiting=function(){};
_.P._setMarkers=function(){};
_.P._setPressed=function(){};
_.P._setPointerDown=function(){};
_.P._setReceivedFocusFromKeyboard=function(){};
_.P._setFocused=function(){};
_.P._setRatio=function(){};
Kkk=_.RJ({_template:function(){if(raZ!==void 0)return raZ;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;Nfk===void 0&&(Nfk=document.createElement("template"));var X=Nfk;O.call(L,X.content.cloneNode(!0),A.content.firstChild);return raZ=A},
is:"tp-yt-paper-slider",behaviors:[_.lh,_.Rh,_.G_J,qcZ],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&&_.RU(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(A,L,O){this.setAttribute("aria-valuemin",L);this.setAttribute("aria-valuemax",O);this.setAttribute("aria-valuenow",A);this._positionKnob(this._calcRatio(A)*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(A){this._setImmediateValue(this._calcStep(this._calcKnobPosition(A)));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(A){return(this.max-this.min)*A/100+this.min},
_onTrack:function(A){A.stopPropagation();switch(A.detail.state){case "start":this._trackStart(A);break;case "track":this._trackX(A);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(A){this.dragging||this._trackStart(A);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,A.detail.dx*(this._isRTL?-1:1)));A=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(A);A=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(A+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var A=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;A.transform=A.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(A){this._expandKnob();A.preventDefault();this.focus()},
_bartrack:function(A){this._allowBarEvent(A)&&this._onTrack(A)},
_barclick:function(A){this._w=this.$.sliderBar.offsetWidth;var L=this.$.sliderBar.getBoundingClientRect();L=(A.detail.x-L.left)/this._w*100;this._isRTL&&(L=100-L);var O=this.ratio;this._setTransiting(!0);this._positionKnob(L);O===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
A.preventDefault();this.focus()},
_bardown:function(A){this._allowBarEvent(A)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(A))},
_knobTransitionEnd:function(A){A.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(A,L,O,X){X||this._setMarkers([]);L=Math.round((O-L)/this.step);L>A&&(L=A);if(L<0||!isFinite(L))L=0;this._setMarkers(Array(L))},
_mergeClasses:function(A){return Object.keys(A).filter(function(L){return A[L]}).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(A){return!this.ignoreBarTouch||A.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(A){this._isRTL?this._incrementKey(A):this._decrementKey(A)},
_rightKey:function(A){this._isRTL?this._decrementKey(A):this._incrementKey(A)},
_incrementKey:function(A){this.disabled||(A.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),A.preventDefault())},
_decrementKey:function(A){this.disabled||(A.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),A.preventDefault())},
_changeValue:function(A){this.value=A.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(A){A.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.Kz6._createRipple.call(this)},
_focusedChanged:function(A){A&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=A?"":"none",this._ripple.holdDown=A)}});var G6X;var lYM;var Tt=null,caJ=function(){};
_.P=caJ.prototype;_.P.fit=function(){};
_.P._discoverInfo=function(){};
_.P.resetFit=function(){};
_.P.refit=function(){};
_.P.position=function(){};
_.P.constrain=function(){};
_.P._sizeDimension=function(){};
_.P.__sizeDimension=function(){};
_.P.center=function(){};
_.P.__getNormalizedRect=function(){};
_.P.__getOffscreenArea=function(){};
_.P.__getPosition=function(){};
_.P.notifyResize=function(){};
_.P.assignParentResizable=function(){};
_.P.stopResizeNotificationsFor=function(){};
_.P._subscribeIronResize=function(){};
_.P._unsubscribeIronResize=function(){};
_.P.resizerShouldNotify=function(){};
_.P._onDescendantIronResize=function(){};
_.P._fireResize=function(){};
_.P._onIronRequestResizeNotifications=function(){};
_.P._parentResizableChanged=function(){};
_.P._notifyDescendant=function(){};
_.P._requestResizeNotifications=function(){};
_.P._findParent=function(){};
_.P.toggle=function(){};
_.P.open=function(){};
_.P.close=function(){};
_.P.cancel=function(){};
_.P.invalidateTabbables=function(){};
_.P._ensureSetup=function(){};
_.P._canceledChanged=function(){};
_.P._withBackdropChanged=function(){};
_.P._prepareRenderOpened=function(){};
_.P._finishRenderOpened=function(){};
_.P._finishRenderClosed=function(){};
_.P._preparePositioning=function(){};
_.P._finishPositioning=function(){};
_.P._applyFocus=function(){};
_.P._onCaptureClick=function(){};
_.P._onCaptureFocus=function(){};
_.P._onCaptureEsc=function(){};
_.P._onCaptureTab=function(){};
_.P._onIronResize=function(){};
_.P._onNodesChange=function(){};
_.P.__ensureFirstLastFocusables=function(){};
_.P.__openedChanged=function(){};
_.P.__deraf=function(){};
_.P.__updateScrollObservers=function(){};
_.P.__addScrollListeners=function(){};
_.P.__removeScrollListeners=function(){};
_.P.__isValidScrollAction=function(){};
_.P.__onCaptureScroll=function(){};
_.P.__saveScrollPosition=function(){};
_.P.__restoreScrollPosition=function(){};
_.P._setCanceled=function(){};
caJ=_.RJ({_template:function(){if(lYM!==void 0)return lYM;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;G6X===void 0&&(G6X=document.createElement("template"));var X=G6X;O.call(L,X.content.cloneNode(!0),A.content.firstChild);return lYM=A},
is:"tp-yt-paper-toast",behaviors:[_.AB],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(){_.CX._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.ah.requestAvailability()},
show:function(A){typeof A=="string"&&(A={text:A});for(var L in A)L.indexOf("_")===0?_.CX._warn('The property "'+L+'" is private and was not set.'):L in this?this[L]=A[L]:_.CX._warn('The property "'+L+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(A){A&&A.target===this&&A.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(Tt&&Tt!==this&&Tt.close(),Tt=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):Tt===this&&(Tt=null);_.oh._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(A){this.positionTarget=A},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var C6Z=new _.PF("disablePersonalizationAction");var DVQ=new _.PF("showDmaConsentFlowCommand");var eTM=new _.PF("showMmgNoticeCommand");var FkM=new _.PF("saveConsentAction");var Rlk=function(A){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.lJ(A)};
_.g(Rlk,_.AE);var Qlz=_.fDu(Rlk);var mvM=new _.PF("updateTopbarAvatarAction");var fYM=new _.PF("channelHandleValidationResultRenderer");var IYk=new _.PF("generateHandleFromNameResultRenderer");var yaM=new _.PF("channelHandleInputRenderer");var ZAM=new _.PF("copyLinkRenderer");var jlJ=new _.PF("timedCommand");var WkJ=new _.PF("clearCookieAction");var HAJ=new _.PF("getMultiPageMenuAction");var zlB=new _.PF("addToGuideSectionAction"),BfX=new _.PF("removeFromGuideSectionAction");var MlM=new _.PF("updateNotificationsUnseenCountAction");var $vS=new _.PF("resetChannelUnreadCountCommand");var aYJ=new _.PF("resetSubscriptionsUnreadDotCommand");var k6z=new _.PF("selectLanguageCommand");var K4k=new _.PF("sendFeedbackAction");var UvX=new _.PF("uploadImageToScottyCommand");var v1$=new _.PF("registerPromoCommand");var o1M=new _.PF("setPushNotificationsEnabledCommand");var AMJ=new _.PF("desktopTopbarRenderer");var LnQ=new _.PF("surveyFollowUpRenderer");var OOJ=new _.PF("handlesClaimingRadioOptionRenderer");var XPk=new _.PF("hotkeyDialogRenderer");var xrJ=new _.PF("modifyReportFormCommand");var srX=new _.PF("accountLinkCommand");var JMX=new _.PF("accountUnlinkCommand");var PvS=new _.PF("logAccountLinkingEventCommand");var drS=new _.PF("guideCollapsibleEntryRenderer");var YRz=new _.PF("guideDownloadsEntryRenderer");var Vl=new _.PF("guideEntryRenderer");var uFX=new _.PF("getLocationCommand");var Tj7=new _.PF("locationCollectionCommand");var Vs7=new _.PF("storiesItemViewModel");var DrX=new _.PF("addToRemoteQueueAction");var eWz=new _.PF("insertInRemoteQueueAction");var E5Z=new _.PF("removeFromRemoteQueueAction");var n5M=new _.PF("notificationRenderer");var v4J=new _.PF("localWatchHistoryCommand");var tsS=new _.PF("pdgBuyFlowHeaderRenderer");var bO7=new _.PF("pdgColorSliderRenderer");var hWn=new _.PF("pdgCommentOptionRenderer");var SRJ=new _.PF("pdgCommentPreviewRenderer");var qRB=new _.PF("superVodSelectableItemButtonRenderer");var g5M=new _.PF("switchButtonRenderer");var wPS=new _.PF("upsellDialogRenderer");var pPM=new _.PF("feedbackQuestionRenderer"),iOS=new _.PF("feedbackOptionRenderer");var NjJ=new _.PF("sponsorshipsTierRenderer"),rMS=new _.PF("sponsorshipsPromotionChannelRenderer");var KnJ=new _.PF("simpleSurveyMessageRenderer");var KNJ=new _.PF("invokeInstrumentManagerAction");var GfZ=new _.PF("logYpcFlowDismissCommand");var lb$=new _.PF("logYpcFlowStartCommand");var cMS=new _.PF("unlimitedCreateFamilyEndpoint");var CvJ=new _.PF("iconBadgeRenderer");var oaJ=new _.PF("collaborativePlaylistVisibilityValidationRule");var FnX=function(A){_.ib.call(this,"channelMessage");this.message=A};
_.g(FnX,_.ib);var RWB=function(A){_.ib.call(this,"channelError");this.error=A};
_.g(RWB,_.ib);var QrM={AUTOPLAY:"atp",SKA_SKIPPABLE_ADS:"ska",QUEUE_SUPPORT:"que",MULTI_USER_SESSIONS:"mus",SINGLE_USER_SESSIONS:"sus",HAS_DISPLAY:"dsp",SCREEN_EXTENDED_QUEUE_SUPPORT:"seq",MIC:"mic",DPAD:"dpa",MULTISTATE_LOOP_MODE:"mlm",DISCONNECT_STRATEGY_DEFFERRED_TO_RECEIVER:"dsdtr",NATIVE_BROWSE:"ntb",VARIABLE_SPEED:"vsp",ENABLE_VIDEO_SOURCE_CLIENT_NAME:"scn",RECEIVER_PLAYLIST_EXPANSION:"rpe",DISABLE_CURRENTINDEX_IN_NOWPLAYING:"dcn",DISABLE_CURRENTINDEX_IN_PLAYLISTMODIFIED:"dcp",PAUSE_AT_START:"pas",DISABLE_QUEUE_FOR_RECEIVER_ONLY_SESSION:"drq",
ONUSERACTIVITY_POLLING_FREQUENCY:"opf",ENABLE_LOUNGE_STATUS_PLAYBACK:"els",ENABLE_IDENTITY_SWITCH_TO_GUEST:"isg",SERVER_QUEUES:"svq",MULTIVIEW_PLAYBACK:"mvp",ACTIVE_DEVICE_STORE_WRITES:"ads",STREAM_TRANSFER_CREATE_PLAYLIST:"stcp",SHORTS_ACTIVE_DEVICE_STORE_WRITES:"sads",DISABLE_LOGGED_OUT_CASTING:"dloc",DUAL_CTT_WRITES:"dcw",ACTIVE_STREAM_WRITES_FOR_CONNECTED_REMOTES:"asw",ACTIVE_PLAYBACK_WRITES_FOR_CONNECTED_REMOTES:"apw",PUNCTUAL_WATCH:"pcw"},mrM={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",
CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},fbz={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},IbJ={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},yM$={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var Dd=function(A){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 _.bh;this.localChannelEncryptionKey=this.remoteControllerUrl="";this.deviceContext=void 0;this.model=this.brand="";this.year=0;this.chipset=this.osVersion=this.os="";this.mdxDialServerType=
"MDX_DIAL_SERVER_TYPE_UNKNOWN";this.pairingType="unknown";this.castUserId=void 0;A&&(this.id=A.id||A.name,this.name=A.name,this.clientName=A.clientName?A.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=A.app,this.type=A.type||"REMOTE_CONTROL",this.username=A.user||"",this.avatar=A.userAvatarUri||"",this.obfuscatedGaiaId=A.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=A.ownerObfuscatedGaiaId||"",this.castUserId=A.castUserId||"",this.theme=A.theme||"u",ZOS(this,A.capabilities||""),jrX(this,
A.compatibleSenderThemes||""),Wnz(this,A.experiments||""),this.remoteControllerUrl=A.remoteControllerUrl||"",this.localChannelEncryptionKey=A.localChannelEncryptionKey||"",this.deviceContext=A.deviceContext,this.brand=A.brand||"",this.model=A.model||"",this.year=A.year||0,this.os=A.os||"",this.osVersion=A.osVersion||"",this.chipset=A.chipset||"",this.mdxDialServerType=A.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=A.pairingType||"unknown",A=A.deviceInfo)&&(A=JSON.parse(A),this.brand=
A.brand||"",this.model=A.model||"",this.year=A.year||0,this.os=A.os||"",this.osVersion=A.osVersion||"",this.chipset=A.chipset||"",this.clientName=A.clientName?A.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=A.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
Dd.prototype.copy=function(){var A={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&&(A.brand=this.brand);
this.model&&(A.model=this.model);this.year&&(A.year=this.year);this.os&&(A.os=this.os);this.osVersion&&(A.osVersion=this.osVersion);this.chipset&&(A.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(A.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(A.mdxDialServerType=this.mdxDialServerType);A=new Dd(A);A.connected=this.connected;A.remoteControllerUrl=this.remoteControllerUrl;A.localChannelEncryptionKey=this.localChannelEncryptionKey;A.deviceContext=
this.deviceContext;A.castUserId=this.castUserId;return A};
Dd.prototype.equals=function(A){return A?this.id==A.id:!1};
var ZOS=function(A,L){A.capabilities.clear();_.DF(L.split(","),_.Sm(_.lW.contains,QrM)).forEach(function(O){A.capabilities.add(O)})},jrX=function(A,L){A.compatibleSenderThemes.clear();
_.DF(L.split(","),_.Sm(_.lW.contains,mrM)).forEach(function(O){A.compatibleSenderThemes.add(O)})},Wnz=function(A,L){A.experiments.clear();
L.split(",").forEach(function(O){A.experiments.add(O)})};var HOB=function(A,L){this.action=A;this.params=L||{}};_.Ty(hcn,_.p$);_.P=hcn.prototype;_.P.JSC$20650_onTick_=function(){this.JSC$20648_interval_=Math.min(3E5,this.JSC$20648_interval_*2);this.JSC$20650_listener_();this.nextTickTime_&&this.start()};
_.P.start=function(){var A=this.JSC$20648_interval_+15E3*Math.random(),L=this.delay_;L.isActive()||L.start(A);this.nextTickTime_=Date.now()+A};
_.P.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.P.isActive=function(){return this.delay_.isActive()};
_.P.reset=function(){this.delay_.stop();this.JSC$20648_interval_=5E3};_.Ty(UE,tlS);_.P=UE.prototype;_.P.subscribe=function(A,L,O){return this.pubsub_.subscribe(A,L,O)};
_.P.unsubscribe=function(A,L,O){return this.pubsub_.unsubscribe(A,L,O)};
_.P.unsubscribeByKey=function(A){return this.pubsub_.unsubscribeByKey(A)};
_.P.publish=function(A,L){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.P.dispose=function(){this.JSC$20651_disposed_||(this.JSC$20651_disposed_=!0,_.oo(this.pubsub_),this.disconnect(),_.oo(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$20651_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.DQ({})})};
_.P.isDisposed=function(){return this.JSC$20651_disposed_};
_.P.connect=function(A,L,O){var X=this,x,J,Y,T;return _.u(function(V){if(V.nextAddress==1)return _.be(V,2),X.useAsyncBrowserChannelHandler_?V.yield(X.connectPromise_,2):V.jumpTo(2);_.tn(V);if(X.JSC$20651_disposed_||X.JSC$20651_channel_&&X.JSC$20651_channel_.getState()==2)return V.return();X.sCookie_="";X.reconnectTimer_.stop();X.connectionParams_=A||null;X.connectUi_=L||0;x=X.JSC$20651_pathPrefix_+"/test";J=X.JSC$20651_pathPrefix_+"/bind";Y=new dZ(O?O.firstTestResults:null,O?O.secondTestResults:null,
X.enableAsyncTest_);if(T=X.JSC$20651_channel_)T.handler_=null;Y.handler_=X;X.JSC$20651_channel_=Y;if(X.useAsyncBrowserChannelHandler_)return X.connectPromise_=zWS(X).then(function(){return BjZ(X,x,J,T,O)}),V.return(X.connectPromise_.then(function(){X.connectPromise_=_.DQ()}));
BjZ(X,x,J,T,O);return _.hn(V,0)})};
var BjZ=function(A,L,O,X,x){Ms7(A);if(A.JSC$20651_channel_){var J=_.ms("ID_TOKEN"),Y=A.JSC$20651_channel_.JSC$20603_extraHeaders_||{};J?Y["x-youtube-identity-token"]=J:delete Y["x-youtube-identity-token"];A.JSC$20651_channel_.JSC$20603_extraHeaders_=Y}$rS(A);X?(X.getState(),A.JSC$20651_channel_.connect(L,O,A.defaultQueryParams_,X.sid_,X.JSC$20603_lastArrayId_)):x?A.JSC$20651_channel_.connect(L,O,A.defaultQueryParams_,x.sessionId,x.arrayId):A.JSC$20651_channel_.connect(L,O,A.defaultQueryParams_)};
UE.prototype.disconnect=function(A){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.DQ())}finally{this.disconnectUi_=A||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),Ms7(this),this.JSC$20651_channel_&&(this.JSC$20651_channel_.getState()==3&&Tf7(this.JSC$20651_channel_),this.JSC$20651_channel_.disconnect()),this.disconnectUi_=0}};
UE.prototype.sendMessage=function(A,L){var O=this,X;return _.u(function(x){switch(x.nextAddress){case 1:_.be(x,2);if(!O.useAsyncBrowserChannelHandler_){x.jumpTo(2);break}return x.yield(O.connectPromise_,2);case 2:_.tn(x);if(O.JSC$20651_disposed_)return x.return();X={_sc:A};L&&_.lW.extend(X,L);if(O.reconnectTimer_.isActive()||(O.JSC$20651_channel_?O.JSC$20651_channel_.getState():0)==2){O.JSC$20651_pendingMessages_.push(X);x.jumpTo(6);break}if(!O.isChannelOpened()){x.jumpTo(6);break}_.be(x,8);if(!O.useAsyncBrowserChannelHandler_||
ab$(O,A)){x.jumpTo(8);break}return x.yield(zWS(O),8);case 8:_.tn(x,0,0,1);O.isChannelOpened()&&(ab$(O,A)||$rS(O),Ms7(O),u6$(O.JSC$20651_channel_,X));_.hn(x,6,1);break;case 6:_.hn(x,0)}})};
var ab$=function(A,L){return A.enableMdxAuthForConnectionOnly_?!0:A.disableMdxAuthForAdMessages_?Object.values(fbz).includes(L):A.disableMdxAuthForNonPlaybackMessages_?!Object.values(IbJ).includes(L):A.disableMdxAuthForShortsMessages_?Object.values(yM$).includes(L):!1};
UE.prototype.JSC$20610_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$20651_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)kfz(this);else{var A=this.JSC$20651_pendingMessages_;this.JSC$20651_pendingMessages_=[];var L=A.length;$rS(this);Urz(this,A,L);v5Q(this)}else v5Q(this)};
var kfz=function(A){var L,O;_.u(function(X){if(X.nextAddress==1)return _.be(X,2),X.yield(zWS(A),2);_.tn(X);L=A.JSC$20651_pendingMessages_;A.JSC$20651_pendingMessages_=[];O=L.length;Urz(A,L,O);v5Q(A);return _.hn(X,0)})},Urz=function(A,L,O){for(var X=0;X<O;++X)u6$(A.JSC$20651_channel_,L[X]);
v5Q(A)},v5Q=function(A){A.publish("handlerOpened");
A.JSC$20651_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.P=UE.prototype;_.P.JSC$20610_channelError=function(A){var L=A==2&&this.JSC$20651_channel_.JSC$20603_lastStatusCode_==401;A==4||L||this.reconnectTimer_.start();this.publish("handlerError",A,L);L=Object.keys(OAM).find(function(O){return OAM[O]===A});
this.JSC$20651_channelErrorCounter.increment("BROWSER_CHANNEL",L!=null?L:"UNKNOWN")};
_.P.JSC$20610_channelClosed=function(A,L){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(L)for(var O=L.length,X=0;X<O;++X){var x=L[X].map;x&&this.JSC$20651_pendingMessages_.push(x)}this.JSC$20651_channelClosedCounter.increment("BROWSER_CHANNEL");A&&this.pendingMapsOnClosedCounter.JSC$10954_streamzService.JSC$10807_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",A.length);L&&this.undeliveredMapsOnClosedCounter.JSC$10957_streamzService.JSC$10807_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
L.length)};
_.P.JSC$20610_channelSuccess=function(A,L){L!=null&&A!=null&&this.channelMessageSentCounter.increment()};
_.P.JSC$20610_getAdditionalParams=function(){var A={v:2};this.sCookie_&&(A.gsessionid=this.sCookie_);this.connectUi_!=0&&(A.ui=""+this.connectUi_);this.disconnectUi_!=0&&(A.ui=""+this.disconnectUi_);this.connectionParams_&&_.lW.extend(A,this.connectionParams_);return A};
_.P.JSC$20610_channelHandleArray=function(A){A[0]=="S"?this.sCookie_=A[1]:A[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$20651_channel_.disconnect()):this.publish("handlerMessage",new HOB(A[0],A[1]));this.JSC$20651_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.P.isChannelOpened=function(){return!!this.JSC$20651_channel_&&this.JSC$20651_channel_.getState()==3};
var Ms7=function(A){if(A.JSC$20651_channel_){var L=A.JSC$20651_getXsrfToken_(),O=A.JSC$20651_channel_.JSC$20603_extraHeaders_||{};L?O["x-youtube-lounge-xsrf-token"]=L:delete O["x-youtube-lounge-xsrf-token"];A.JSC$20651_channel_.JSC$20603_extraHeaders_=O}},zWS=function(A){if(A.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.DQ();
if(!A.enableCachedUpdateAuthorizationHeader_)return o5z(A);A.updateAuthorizationHeaderPromise_===null&&(A.updateAuthorizationHeaderPromise_=o5z(A));return A.updateAuthorizationHeaderPromise_},o5z=function(A){return _.R$(A.getAuthorizationHeader_().then(function(L){A3M(A,L)}).thenCatch(function(){}),function(){A.updateAuthorizationHeaderPromise_=null})},A3M=function(A,L){if(A.JSC$20651_channel_){var O=A.JSC$20651_channel_.JSC$20603_extraHeaders_||{};
L&&Object.keys(L).length>0?O=Object.assign({},O,L):delete O.Authorization;A.JSC$20651_channel_.JSC$20603_extraHeaders_=O}},$rS=function(A){A.getAuthorizationHeaderSync_&&!A.useAsyncBrowserChannelHandler_&&A3M(A,A.getAuthorizationHeaderSync_())};
_.P=UE.prototype;_.P.setLoungeToken=function(A){(this.defaultQueryParams_.loungeIdToken=A)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$20651_channel_){var L=this.JSC$20651_channel_.JSC$20603_extraHeaders_||{};A?L["X-YouTube-LoungeId-Token"]=A:delete L["X-YouTube-LoungeId-Token"];this.JSC$20651_channel_.JSC$20603_extraHeaders_=L}};
_.P.getDeviceId=function(){return this.defaultQueryParams_.id};
_.P.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.P.reconnect=function(){var A=this.reconnectTimer_;A.delay_.fire();A.start()};
_.P.safeReconnect_=function(){var A=this.JSC$20651_channel_,L=0;A.JSC$20603_backChannelRequest_&&L++;A.forwardChannelRequest_&&L++;L==0&&this.connect(this.connectionParams_,this.connectUi_)};var x_=function(A,L){var O=A.basePath;A.supportCors&&(O=A.scheme+"://"+A.domain+A.port+A.basePath);return _.kL(O+L,{})};
vd.prototype.sendRequest=function(A,L,O,X,x,J,Y){A={format:J?"RAW":"JSON",method:A,context:this,timeout:5E3,withCredentials:!!Y,onSuccess:_.Sm(this.JSC$20656_onSuccess_,X,!J),onError:_.Sm(this.onError_,x),onTimeout:_.Sm(this.JSC$20656_onTimeout_,x)};O&&(A.postParams=O,A.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.Et(L,A)};
vd.prototype.JSC$20656_onSuccess_=function(A,L,O,X){L?A(X):A({text:O.responseText})};
vd.prototype.onError_=function(A,L){A(Error("Ck`"+L.status))};
vd.prototype.JSC$20656_onTimeout_=function(A){A(Error("Dk"))};var Ab=function(A,L){return!!L&&(A.id==L||A.uuid==L)},LQX=function(A){return{name:A.name,
screenId:A.id,loungeToken:A.token,dialId:A.uuid,screenIdType:A.idType}},OlS=function(A){return new oR(A)},XL$=function(A){return Array.isArray(A)?_.cT(A,OlS):[]},GKJ=function(A){if(!A)return"null";
var L=A.token?".."+A.token.slice(-6):"-",O=A.uuid?".."+A.uuid.slice(-6):"-";return'{name:"'+A.name+'",id:'+A.id.substr(0,6)+"..,token:"+(L+",uuid:"+O+",idType:"+A.idType+"}")},XDQ=function(A){return Array.isArray(A)?"["+_.cT(A,GKJ).join(",")+"]":"null"};var mT7="",Xk=null;var BMX=function(A,L){_.lb.call(this);var O=this;this.handler=A();this.handler.subscribe("handlerOpened",this.JSC$20663_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(X,x){O.onError(x)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=L};
_.g(BMX,_.lb);_.P=BMX.prototype;_.P.connect=function(A,L,O){this.handler.connect(A,L,O)};
_.P.disconnect=function(A){this.handler.disconnect(A)};
_.P.reconnect=function(){this.handler.reconnect()};
_.P.getDeviceId=function(){return this.handler.getDeviceId()};
_.P.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.P.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.P.JSC$20663_onOpened=function(){this.dispatchEvent("channelOpened");var A=this.handler,L=this.currentScreenId;_.gf("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!A.JSC$20651_channel_.useChunked_,sessionId:A.JSC$20651_channel_.sid_,arrayId:A.JSC$20651_channel_.JSC$20603_lastArrayId_});_.gf("yt-remote-session-screen-id",L);A=l9Q();L=ciZ();_.Id(A,L)||A.push(L);QaJ(A);Rck()};
_.P.onClosed=function(){this.dispatchEvent("channelClosed")};
_.P.onMessage=function(A){this.dispatchEvent(new FnX(A))};
_.P.onError=function(A){this.dispatchEvent(new RWB(A?1:0))};
_.P.sendMessage=function(A,L){this.handler.sendMessage(A,L)};
_.P.setLoungeToken=function(A){this.handler.setLoungeToken(A)};
_.P.dispose=function(){this.handler.dispose()};var zcS=function(A,L,O){var X=this;O=O===void 0?function(){return""}:O;
var x=x===void 0?new I_z:x;var J=J===void 0?new _.tj:J;this.pathPrefix=A;this.defaultQueryParams=L;this.getXsrfToken=O;this.JSC$20666_pubsub=J;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new hcn(function(){var Y;((Y=X.channel)==null?void 0:E9n((new jjJ(Y,Y.JSC$20574_channel_)).JSC$20584_channel_.forwardChannelRequestPool_))===0&&X.connect(X.connectionParams,X.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$20666_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$20666_channelOpenedCounter=new SPS;this.JSC$20666_channelClosedCounter=new qPQ;this.JSC$20666_channelMessageReceivedCounter=new wyM;this.JSC$20666_channelErrorCounter=new pyJ};
zcS.prototype.connect=function(A,L){A=A===void 0?{}:A;L=L===void 0?0:L;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=A,this.connectUi=L,xUM(this),(A=_.ms("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=A: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 LS(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,sfX(this))};
var sfX=function(A){_.CT(A.channel,"w",function(){A.channelState=3;A.reconnectTimer.reset();A.connectionParams=null;A.connectUi=0;for(var L=_.d(A.nonAckedMessagesOnChannelClosed),O=L.next();!O.done;O=L.next())O=O.value,A.channel&&A.channel.send(O);A.nonAckedMessagesOnChannelClosed=[];A.publish("webChannelOpened");A.JSC$20666_channelOpenedCounter.increment("WEB_CHANNEL")});
_.CT(A.channel,"x",function(){A.channelState=0;A.reconnectTimer.isActive()||A.publish("webChannelClosed");var L,O=(L=A.channel)==null?void 0:Wdk(new jjJ(L,L.JSC$20574_channel_));O&&(A.nonAckedMessagesOnChannelClosed=[].concat(_.le(O)));A.JSC$20666_channelClosedCounter.increment("WEB_CHANNEL")});
_.CT(A.channel,"z",function(L){var O=L.data;O[0]==="gracefulReconnect"?(A.reconnectTimer.start(),A.channel&&A.channel.close()):A.publish("webChannelMessage",new HOB(O[0],O[1]));A.lastStatusCode=L.statusCode;A.JSC$20666_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.CT(A.channel,"y",function(){A.lastStatusCode===401||A.reconnectTimer.start();A.publish("webChannelError");A.JSC$20666_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.P=zcS.prototype;_.P.disconnect=function(A){this.disconnectUi=A===void 0?0:A;this.reconnectTimer.stop();xUM(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.P.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.P.reconnect=function(){var A=this.reconnectTimer;A.delay_.fire();A.start()};
_.P.sendMessage=function(A,L){this.channel&&(xUM(this),A=Object.assign({},{_sc:A},L),this.channel.send(A))};
_.P.setLoungeToken=function(A){A||this.reconnectTimer.stop();A?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=A:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var xUM=function(A){var L=A.getXsrfToken();L?A.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=L:delete A.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.P=zcS.prototype;_.P.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.P.publish=function(A){return this.JSC$20666_pubsub.publish.apply(this.JSC$20666_pubsub,[A].concat(_.le(_.f_.apply(1,arguments))))};
_.P.subscribe=function(A,L,O){return this.JSC$20666_pubsub.subscribe(A,L,O)};
_.P.unsubscribe=function(A,L,O){return this.JSC$20666_pubsub.unsubscribe(A,L,O)};
_.P.unsubscribeByKey=function(A){return this.JSC$20666_pubsub.unsubscribeByKey(A)};
_.P.dispose=function(){this.JSC$20666_disposed||(this.JSC$20666_disposed=!0,_.oo(this.JSC$20666_pubsub),this.disconnect(),_.oo(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.P.isDisposed=function(){return this.JSC$20666_disposed};var H37=function(A){_.lb.call(this);this.webChannelService=A();this.webChannelService.subscribe("webChannelOpened",this.JSC$20674_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.g(H37,_.lb);_.P=H37.prototype;_.P.connect=function(A,L){this.webChannelService.connect(A,L)};
_.P.disconnect=function(A){this.webChannelService.disconnect(A)};
_.P.reconnect=function(){this.webChannelService.reconnect()};
_.P.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.P.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.P.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.P.JSC$20674_onOpened=function(){this.dispatchEvent("channelOpened")};
_.P.onClosed=function(){this.dispatchEvent("channelClosed")};
_.P.onMessage=function(A){this.dispatchEvent(new FnX(A))};
_.P.onError=function(){this.dispatchEvent(new RWB(this.webChannelService.lastStatusCode===401?1:0))};
_.P.sendMessage=function(A,L){this.webChannelService.sendMessage(A,L)};
_.P.setLoungeToken=function(A){this.webChannelService.setLoungeToken(A)};
_.P.dispose=function(){this.webChannelService.dispose()};var O47=Date.now(),sK=null,ATX=Array(50),dg=-1,LiZ=!1;_.Ty(Y_,_.bf);Y_.prototype.getScreens=function(){return this.screens};
Y_.prototype.contains=function(A){return!!GmM(this.screens,A)};
Y_.prototype.get=function(A){return A?La(this.screens,A):null};
var J3k=function(A,L){var O=A.get(L.uuid)||A.get(L.id);if(O)return A=O.name,O.id=L.id||O.id,O.name=L.name,O.token=L.token,O.uuid=L.uuid||O.uuid,O.name!=A;A.screens.push(L);return!0},PjZ=function(A,L){var O=A.screens.length!=L.length;
A.screens=_.DF(A.screens,function(J){return!!GmM(L,J)});
for(var X=L.length,x=0;x<X;x++)O=J3k(A,L[x])||O;return O},dUB=function(A,L){var O=A.screens.length;
A.screens=_.DF(A.screens,function(X){return!(X||L?!X!=!L?0:X.id==L.id:1)});
return A.screens.length<O};
Y_.prototype.info=function(A){Jb(this.JSC$20675_logName_,A)};var YLM=function(A,L,O,X,x){_.bf.call(this);this.JSC$20678_http_=A;this.pairingCode_=L;this.deviceId_=O;this.friendlyName_=X;this.enableShortLivedLoungeToken_=x;this.pollIndex_=0;this.JSC$20678_xhr_=null;this.JSC$20678_timer_=NaN};
_.g(YLM,_.bf);_.P=YLM.prototype;_.P.start=function(){!this.JSC$20678_xhr_&&isNaN(this.JSC$20678_timer_)&&this.poll_()};
_.P.stop=function(){this.JSC$20678_xhr_&&(this.JSC$20678_xhr_.abort(),this.JSC$20678_xhr_=null);isNaN(this.JSC$20678_timer_)||(_.DK(this.JSC$20678_timer_),this.JSC$20678_timer_=NaN)};
_.P.disposeInternal=function(){this.stop();_.bf.prototype.disposeInternal.call(this)};
_.P.poll_=function(){this.JSC$20678_timer_=NaN;this.JSC$20678_xhr_=_.Et(x_(this.JSC$20678_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.is)(this.JSC$20680_onSuccess_,this),onError:(0,_.is)(this.onError_,this),onTimeout:(0,_.is)(this.JSC$20680_onTimeout_,this)})};
_.P.JSC$20680_onSuccess_=function(A,L){this.JSC$20678_xhr_=null;A=L.screen||{};A.dialId=this.deviceId_;A.name=this.friendlyName_;L=-1;this.enableShortLivedLoungeToken_&&A.shortLivedLoungeToken&&A.shortLivedLoungeToken.value&&A.shortLivedLoungeToken.refreshIntervalMs&&(A.screenIdType="shortLived",A.loungeToken=A.shortLivedLoungeToken.value,L=A.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new oR(A),L)};
_.P.onError_=function(A){this.JSC$20678_xhr_=null;A.status&&A.status==404?this.pollIndex_>=uyQ.length?this.publish("pairingFailed",Error("Ek")):(A=uyQ[this.pollIndex_],this.JSC$20678_timer_=_.TA((0,_.is)(this.poll_,this),A),this.pollIndex_++):this.publish("pairingFailed",Error("Fk`"+A.status))};
_.P.JSC$20680_onTimeout_=function(){this.JSC$20678_xhr_=null;this.publish("pairingFailed",Error("Gk"))};
var uyQ=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.Ty(T3,Y_);_.P=T3.prototype;_.P.start=function(){uq(this)&&this.publish("screenChange");!_.wf("yt-remote-lounge-token-expiration")&&TDS(this);_.DK(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.TA((0,_.is)(this.start,this),1E4)};
_.P.add=function(A,L){uq(this);J3k(this,A);VbM(this,!1);this.publish("screenChange");L(A);A.token||TDS(this)};
_.P.remove=function(A,L){var O=uq(this);dUB(this,A)&&(VbM(this,!1),O=!0);L(A);O&&this.publish("screenChange")};
_.P.updateName=function(A,L,O,X){var x=uq(this),J=this.get(A.id);J?(J.name!=L&&(J.name=L,VbM(this,!1),x=!0),O(A)):X(Error("Hk"));x&&this.publish("screenChange")};
_.P.disposeInternal=function(){_.DK(this.loungeTokenRefreshTimer_);T3.superClass_.disposeInternal.call(this)};
var TDS=function(A){if(A.screens.length){var L=_.cT(A.screens,function(X){return X.id}),O=x_(A.JSC$20682_http_,"/pairing/get_lounge_token_batch");
A.JSC$20682_http_.sendRequest("POST",O,{screen_ids:L.join(",")},(0,_.is)(A.handleLoungeTokens_,A),(0,_.is)(A.handleLoungeTokenError_,A))}};
T3.prototype.handleLoungeTokens_=function(A){uq(this);var L=this.screens.length;A=A&&A.screens||[];for(var O=A.length,X=0;X<O;++X){var x=A[X],J=this.get(x.screenId);J&&(J.token=x.loungeToken,--L)}VbM(this,!L);L&&Jb(this.JSC$20675_logName_,"Missed "+L+" lounge tokens.")};
T3.prototype.handleLoungeTokenError_=function(A){Jb(this.JSC$20675_logName_,"Requesting lounge tokens failed: "+A)};
var uq=function(A){if(_.h("deprecate_pair_servlet_enabled"))return PjZ(A,[]);var L=XL$(I9X());L=_.DF(L,function(O){return!O.uuid});
return PjZ(A,L)},VbM=function(A,L){Z3k(_.cT(A.screens,LQX));
L&&yiJ()};var ed=function(A,L){_.bf.call(this);this.getScreensToCheck_=L;L=(L=_.wf("yt-remote-online-screen-ids")||"")?L.split(","):[];for(var O={},X=this.getScreensToCheck_(),x=X.length,J=0;J<x;++J){var Y=X[J].id;O[Y]=_.Id(L,Y)}this.screenIdSet_=O;this.JSC$20685_http_=A;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;DUk("Initialized with "+(0,_.fc)(this.screenIdSet_))};
_.g(ed,_.bf);ed.prototype.isOnline=function(A){return!!this.screenIdSet_[A]};
ed.prototype.start=function(){var A=parseInt(_.wf("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.u1()-144E5<A?0:A)?eGJ(this):(this.fastCheckEndTime_=_.u1()+3E5,_.gf("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
ed.prototype.isEmpty=function(){return _.lW.isEmpty(this.screenIdSet_)};
ed.prototype.update=function(){DUk("Updating availability on schedule.");var A=this.getScreensToCheck_(),L=_.lW.filter(this.screenIdSet_,function(O,X){return O&&!!La(A,X)},this);
Erk(this,L)};
var nr7=function(A,L,O){var X=x_(A.JSC$20685_http_,"/pairing/get_screen_availability");A.JSC$20685_http_.sendRequest("POST",X,{lounge_token:L.token},(0,_.is)(function(x){x=x.screens||[];for(var J=x.length,Y=0;Y<J;++Y)if(x[Y].loungeToken==L.token){O(x[Y].status=="online");return}O(!1)},A),(0,_.is)(function(){O(!1)},A))};
ed.prototype.disposeInternal=function(){_.DK(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.bf.prototype.disposeInternal.call(this)};
var Erk=function(A,L){a:if(_.lW.getCount(L)!=_.lW.getCount(A.screenIdSet_))var O=!1;else{O=_.lW.getKeys(L);for(var X=O.length,x=0;x<X;++x)if(!A.screenIdSet_[O[x]]){O=!1;break a}O=!0}O||(DUk("Updated online screens: "+(0,_.fc)(A.screenIdSet_)),A.screenIdSet_=L,A.publish("screenChange"));tbX(A)},eGJ=function(A){isNaN(A.refreshTimer_)||_.DK(A.refreshTimer_);
A.refreshTimer_=_.TA((0,_.is)(A.requestScreenAvailability_,A),A.fastCheckEndTime_>0&&A.fastCheckEndTime_<_.u1()?2E4:1E4)};
ed.prototype.requestScreenAvailability_=function(){_.DK(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var A=blX(this);if(_.lW.getCount(A)){var L=x_(this.JSC$20685_http_,"/pairing/get_screen_availability"),O={lounge_token:_.lW.getKeys(A).join(",")};this.currentRequest_=this.JSC$20685_http_.sendRequest("POST",L,O,(0,_.is)(this.onScreenAvailability_,this,A),(0,_.is)(this.onScreenAvailabilityError_,this))}else Erk(this,{}),eGJ(this)};
ed.prototype.onScreenAvailability_=function(A,L){this.currentRequest_=null;var O=_.lW.getKeys(blX(this));if(_.ad(O,_.lW.getKeys(A))){L=L.screens||[];O={};for(var X=L.length,x=0;x<X;++x)O[A[L[x].loungeToken]]=L[x].status=="online";Erk(this,O);eGJ(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
ed.prototype.onScreenAvailabilityError_=function(A){this.warn_("Screen availability failed: "+A);this.currentRequest_=null;eGJ(this)};
var DUk=function(A){Jb("OnlineScreenService",A)};
ed.prototype.warn_=function(A){Jb("OnlineScreenService",A)};
var blX=function(A){var L={};_.BY(A.getScreensToCheck_(),function(O){O.token?L[O.token]=O.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return L},tbX=function(A){A=_.lW.getKeys(_.lW.filter(A.screenIdSet_,function(L){return L}));
A.sort(_.rsu);A.length?_.gf("yt-remote-online-screen-ids",A.join(","),60):_.pA("yt-remote-online-screen-ids")};_.Ty(Vf,Y_);_.P=Vf.prototype;_.P.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.P.add=function(A,L,O){this.localScreenService_.add(A,L,O)};
_.P.remove=function(A,L,O){this.localScreenService_.remove(A,L,O);this.onlineScreenService_.update()};
_.P.updateName=function(A,L,O,X){this.localScreenService_.contains(A)?this.localScreenService_.updateName(A,L,O,X):(A="Updating name of unknown screen: "+A.name,Jb(this.JSC$20675_logName_,A),X(Error(A)))};
_.P.getScreens=function(A){return A?this.screens:aZJ(this.screens,_.DF(this.automaticScreens_,function(L){return!this.contains(L)},this))};
_.P.JSC$20690_getOnlineScreens=function(){return _.DF(this.getScreens(!0),function(A){return this.onlineScreenService_.isOnline(A.id)},this)};
var SLM=function(A,L,O,X,x,J){A.info("getAutomaticScreenByIds "+O+" / "+L);O||(O=A.deviceToScreenId_[L]);var Y=A.getScreens(),T=O?La(Y,O):null;O&&(A.disableAutomaticScreenCache_||T)||(T=La(Y,L));if(T){T.uuid=L;var V=EH(A,T);nr7(A.onlineScreenService_,V,function(E){x(E?V:null)})}else O?hGz(A,O,(0,_.is)(function(E){var n=EH(this,new oR({name:X,
screenId:O,loungeToken:E,dialId:L||""}));nr7(this.onlineScreenService_,n,function(t){x(t?n:null)})},A),J):x(null)};
Vf.prototype.JSC$20690_getScreenByPollingPairingCode=function(A,L,O,X,x,J){var Y=this;this.info("getDialScreenByPairingCode "+A+" / "+L);var T=new YLM(this.JSC$20688_http_,A,L,O,X);T.subscribe("pairingComplete",function(V,E){_.oo(T);x(EH(Y,V),E)});
T.subscribe("pairingFailed",function(V){_.oo(T);J(V)});
T.start();return(0,_.is)(T.stop,T)};
var qLz=function(A,L){for(var O=A.screens.length,X=0;X<O;++X)if(A.screens[X].name==L)return A.screens[X];return null};
Vf.prototype.JSC$20690_getScreenByPairingCode=function(A,L,O,X){_.Et(x_(this.JSC$20688_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:A},timeout:5E3,onSuccess:(0,_.is)(function(x,J){x=new oR(J.screen||{});if(!x.name||qLz(this,x.name)){a:{J=x.name;for(var Y=2,T=L(J,Y);qLz(this,T);){Y++;if(Y>20)break a;T=L(J,Y)}J=T}x.name=J}O(EH(this,x))},this),
onError:(0,_.is)(function(x){X(Error("Ik`"+x.status))},this),
onTimeout:(0,_.is)(function(){X(Error("Jk"))},this)})};
var gr7=function(A,L,O){nr7(A.onlineScreenService_,L,O)};
Vf.prototype.disposeInternal=function(){_.oo(this.localScreenService_);_.oo(this.onlineScreenService_);Vf.superClass_.disposeInternal.call(this)};
var hGz=function(A,L,O,X){A.info("requestLoungeToken_ for "+L);var x={postParams:{screen_ids:L},method:"POST",context:A,onSuccess:function(J,Y){J=Y&&Y.screens||[];J[0]&&J[0].screenId==L?O(J[0].loungeToken):X(Error("Kk"))},
onError:function(){X(Error("Lk"))}};
_.Et(x_(A.JSC$20688_http_,"/pairing/get_lounge_token_batch"),x)},wLZ=function(A){A.screens=A.localScreenService_.getScreens();
for(var L=_.lW.transpose(A.deviceToScreenId_),O=A.screens.length,X=0;X<O;++X){var x=A.screens[X];x.uuid=L[x.id]||""}A.info("Updated manual screens: "+XDQ(A.screens))};
Vf.prototype.handleScreenChange_=function(){wLZ(this);this.publish("screenChange");this.onlineScreenService_.update()};
var xR$=function(A){pLM(A);A.localScreenService_=new T3(A.JSC$20688_http_);A.localScreenService_.subscribe("screenChange",(0,_.is)(A.handleScreenChange_,A));wLZ(A);A.disableAutomaticScreenCache_||(A.automaticScreens_=XL$(_.wf("yt-remote-automatic-screen-cache")||[]));pLM(A);A.info("Initializing automatic screens: "+XDQ(A.automaticScreens_));A.onlineScreenService_=new ed(A.JSC$20688_http_,(0,_.is)(A.getScreens,A,!0));A.onlineScreenService_.subscribe("screenChange",(0,_.is)(function(){this.publish("onlineScreenChange")},
A))},EH=function(A,L){var O=A.get(L.id);
O?(O.uuid=L.uuid,L=O):((O=La(A.automaticScreens_,L.uuid))?(O.id=L.id,O.token=L.token,L=O):A.automaticScreens_.push(L),A.disableAutomaticScreenCache_||ilk(A));pLM(A);A.deviceToScreenId_[L.uuid]=L.id;_.gf("yt-remote-device-id-map",A.deviceToScreenId_,31536E3);return L},ilk=function(A){A=_.DF(A.automaticScreens_,function(L){return L.idType!="shortLived"});
_.gf("yt-remote-automatic-screen-cache",_.cT(A,LQX))},pLM=function(A){A.deviceToScreenId_=_.wf("yt-remote-device-id-map")||{}};
Vf.prototype.dispose=Vf.prototype.dispose;_.Ty(D6,_.bf);var nS=function(A,L){A.screen_=L;A.publish("sessionScreen",A.screen_)},ND$=function(A,L){A.screen_&&(A.screen_.token=L,EH(A.JSC$20692_screenService_,A.screen_));
A.publish("sessionScreen",A.screen_)};
D6.prototype.onSessionStopped=function(A){this.isDisposed()||(A&&(tf(this,""+A),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
D6.prototype.info=function(A){Jb(this.JSC$20692_logName_,A)};
var tf=function(A,L){Jb(A.JSC$20692_logName_,L)};
D6.prototype.JSC$20694_getCastSession=function(){return null};
D6.prototype.setDisplayStatus=function(A){var L=this.receiver_;A?(L.displayStatus=new chrome.cast.ReceiverDisplayStatus(A,[]),L.displayStatus.showStop=!0):L.displayStatus=null;chrome.cast.setReceiverDisplayStatus(L,(0,_.is)(function(){this.info("Updated receiver status for "+L.friendlyName+": "+A)},this),(0,_.is)(function(){tf(this,"Failed to update receiver status for: "+L.friendlyName)},this))};
D6.prototype.disposeInternal=function(){this.setDisplayStatus("");D6.superClass_.disposeInternal.call(this)};var bt=function(A,L,O){D6.call(this,A,L,"CastSession");var X=this;this.config_=O;this.JSC$20697_session_=null;this.JSC$20697_boundSessionUpdate_=(0,_.is)(this.JSC$20699_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.is)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.TA(function(){r3X(X,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$20697_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$20697_isInitLoungeToken_=!1;this.JSC$20697_lastLoungeTokenRefreshError_="unknown"};
_.g(bt,D6);_.P=bt.prototype;
_.P.setCastSession=function(A){if(this.JSC$20697_session_){if(this.JSC$20697_session_==A)return;tf(this,"Overriding cast session with new session object");KQX(this);this.JSC$20697_isInitLoungeToken_=!1;this.JSC$20697_lastLoungeTokenRefreshError_="unknown";this.JSC$20697_session_.removeUpdateListener(this.JSC$20697_boundSessionUpdate_);this.JSC$20697_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$20697_session_=A;this.JSC$20697_session_.addUpdateListener(this.JSC$20697_boundSessionUpdate_);this.JSC$20697_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);Gc7(this,"getMdxSessionStatus")};
_.P.launchWithParams=function(A){this.info("launchWithParams no-op for Cast: "+(0,_.fc)(A))};
_.P.stop=function(){if(this.JSC$20697_session_)this.JSC$20697_session_.stop((0,_.is)(function(){this.onSessionStopped()},this),(0,_.is)(function(){this.onSessionStopped(Error("Mk"))},this));
else this.onSessionStopped(Error("Nk"))};
_.P.setDisplayStatus=function(){};
_.P.disposeInternal=function(){this.info("disposeInternal");KQX(this);this.JSC$20697_session_&&(this.JSC$20697_session_.removeUpdateListener(this.JSC$20697_boundSessionUpdate_),this.JSC$20697_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$20697_session_=null;D6.prototype.disposeInternal.call(this)};
var c3M=function(A,L){_.DK(A.getLoungeTokenTimeoutKey_);A.getLoungeTokenTimeoutKey_=0;L==0?l1X(A):A.getLoungeTokenTimeoutKey_=_.TA(function(){l1X(A)},L)},l1X=function(A){Gc7(A,"getLoungeToken");
_.DK(A.onLoungeTokenTimeoutKey_);A.onLoungeTokenTimeoutKey_=_.TA(function(){CjX(A,null)},3E4)},Gc7=function(A,L){A.info("sendYoutubeMessage_: "+L+" "+(0,_.fc)(void 0));
var O={};O.type=L;A.JSC$20697_session_?A.JSC$20697_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",O,function(){},(0,_.is)(function(){tf(this,"Failed to send message: "+L+".")},A)):tf(A,"Sending yt message without session: "+(0,_.fc)(O))};
bt.prototype.onYoutubeMessage_=function(A,L){if(!this.isDisposed())if(L)if(L=(0,_.Kh)(L),_.BJ(L))switch(A=""+L.type,L=L.data||{},this.info("onYoutubeMessage_: "+A+" "+(0,_.fc)(L)),A){case "mdxSessionStatus":r3X(this,L);break;case "loungeToken":CjX(this,L);break;default:tf(this,"Unknown youtube message: "+A)}else tf(this,"Unable to parse message.");else tf(this,"No data in message.")};
var FQn=function(A,L){if(L)A.info("onConnectedScreenId_: Received screenId: "+L),A.screen_&&A.screen_.id==L||A.getScreen_(L,function(O){nS(A,O)},function(){return A.onSessionStopped()},5);
else A.onSessionStopped(Error("Ok"))},QfS=function(A,L,O){A.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(L));
var X=new oR(L);RGZ(A,X,function(x){x?(A.JSC$20697_isInitLoungeToken_=!0,EH(A.JSC$20692_screenService_,X),nS(A,X),A.JSC$20697_lastLoungeTokenRefreshError_="unknown",c3M(A,O)):(_.IO(Error("Pk`"+JSON.stringify(L))),A.onSessionStopped())},5)},r3X=function(A,L){_.DK(A.sessionStatusTimeoutKey_);
A.sessionStatusTimeoutKey_=0;if(L)A.config_.enableCastLoungeToken&&L.loungeToken?L.deviceId?A.screen_&&A.screen_.uuid==L.deviceId||(L.loungeTokenRefreshIntervalMs?QfS(A,{name:A.receiver_.friendlyName,screenId:L.screenId,loungeToken:L.loungeToken,dialId:L.deviceId,screenIdType:"shortLived"},L.loungeTokenRefreshIntervalMs):(_.IO(Error("Rk`"+JSON.stringify(L))),FQn(A,L.screenId))):(_.IO(Error("Qk`"+JSON.stringify(L))),FQn(A,L.screenId)):FQn(A,L.screenId);else A.onSessionStopped(Error("Ok"))},CjX=function(A,
L){_.DK(A.onLoungeTokenTimeoutKey_);
A.onLoungeTokenTimeoutKey_=0;var O=null;if(L)if(L.loungeToken){var X;((X=A.screen_)==null?void 0:X.token)==L.loungeToken&&(O="staleLoungeToken")}else O="missingLoungeToken";else O="noLoungeTokenResponse";O?(A.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(L)+", error: "+O)),A.JSC$20697_lastLoungeTokenRefreshError_=O,c3M(A,3E4)):(ND$(A,L.loungeToken),A.JSC$20697_isInitLoungeToken_=!1,A.JSC$20697_lastLoungeTokenRefreshError_="unknown",c3M(A,L.loungeTokenRefreshIntervalMs))};
bt.prototype.getScreen_=function(A,L,O,X){_.DK(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;SLM(this.JSC$20692_screenService_,this.receiver_.label,A,this.receiver_.friendlyName,(0,_.is)(function(x){x?L(x):X>=0?(tf(this,"Screen "+A+" appears to be offline. "+X+" retries left."),this.getScreenTimeoutKey_=_.TA((0,_.is)(this.getScreen_,this,A,L,O,X-1),300)):O(Error("Sk"))},this),O)};
var RGZ=function(A,L,O,X){_.DK(A.JSC$20697_checkScreenAvailabilityTimeoutKey_);A.JSC$20697_checkScreenAvailabilityTimeoutKey_=0;gr7(A.JSC$20692_screenService_,L,function(x){x||X<0?O(x):A.JSC$20697_checkScreenAvailabilityTimeoutKey_=_.TA(function(){RGZ(A,L,O,X-1)},300)})};
bt.prototype.JSC$20694_getCastSession=function(){return this.JSC$20697_session_};
bt.prototype.JSC$20699_onSessionUpdate_=function(A){this.isDisposed()||A||(tf(this,"Cast session died."),this.onSessionStopped())};
var KQX=function(A){_.DK(A.getScreenTimeoutKey_);A.getScreenTimeoutKey_=0;_.DK(A.JSC$20697_checkScreenAvailabilityTimeoutKey_);A.JSC$20697_checkScreenAvailabilityTimeoutKey_=0;_.DK(A.sessionStatusTimeoutKey_);A.sessionStatusTimeoutKey_=0;_.DK(A.onLoungeTokenTimeoutKey_);A.onLoungeTokenTimeoutKey_=0;_.DK(A.getLoungeTokenTimeoutKey_);A.getLoungeTokenTimeoutKey_=0};var hf=function(A,L,O,X){D6.call(this,A,L,"DialSession");this.config_=X;this.JSC$20701_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$20701_theme_=O;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$20701_deferredLaunchDeadlineTimer_=NaN;this.JSC$20701_boundSessionUpdate_=(0,_.is)(this.JSC$20703_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$20701_checkScreenAvailabilityTimeoutKey_=0;this.JSC$20701_isInitLoungeToken_=!1;this.JSC$20701_lastLoungeTokenRefreshError_="unknown"};
_.g(hf,D6);hf.prototype.setCastSession=function(A){this.JSC$20701_session_=A;this.JSC$20701_session_.addUpdateListener(this.JSC$20701_boundSessionUpdate_)};
hf.prototype.launchWithParams=function(A){this.connectData_=A;this.deferredLaunch_()};
hf.prototype.stop=function(){mUz(this);if(this.JSC$20701_session_)this.JSC$20701_session_.stop((0,_.is)(this.onSessionStopped,this,null),(0,_.is)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
hf.prototype.disposeInternal=function(){mUz(this);this.JSC$20701_session_&&this.JSC$20701_session_.removeUpdateListener(this.JSC$20701_boundSessionUpdate_);this.JSC$20701_session_=null;D6.prototype.disposeInternal.call(this)};
var f1$=function(A){var L;return!!(A.config_.enableDialLoungeToken&&((L=A.JSC$20701_session_)==null?0:L.getDialAppInfo))},I1k=function(A){A.cancelPolling_=A.JSC$20692_screenService_.JSC$20690_getScreenByPollingPairingCode(A.reversePairingCode_,A.receiver_.label,A.receiver_.friendlyName,f1$(A),function(L,O){A.cancelPolling_=function(){};
A.JSC$20701_isInitLoungeToken_=!0;nS(A,L);L.idType=="shortLived"&&O>0&&Sd(A,O)},function(L){A.cancelPolling_=function(){};
A.onSessionStopped(L)})};
hf.prototype.JSC$20703_onSessionUpdate_=function(A){this.isDisposed()||A||(tf(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var y3B=function(A){var L={};L.pairingCode=A.reversePairingCode_;L.theme=A.JSC$20701_theme_;WuX()&&(L.env_useStageMdx=1);return _.ne(L)},Zlk=function(A){return new Promise(function(L){A.reversePairingCode_=rin();
if(A.connectData_){var O=new chrome.cast.DialLaunchResponse(!0,y3B(A));L(O);I1k(A)}else A.deferredLaunch_=function(){_.DK(A.JSC$20701_deferredLaunchDeadlineTimer_);A.deferredLaunch_=function(){};
A.JSC$20701_deferredLaunchDeadlineTimer_=NaN;var X=new chrome.cast.DialLaunchResponse(!0,y3B(A));L(X);I1k(A)},A.JSC$20701_deferredLaunchDeadlineTimer_=_.TA(function(){A.deferredLaunch_()},100)})},WQS=function(A,L,O){A.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(L));
var X=new oR(L);return(new Promise(function(x){jfz(A,X,function(J){J?(A.JSC$20701_isInitLoungeToken_=!0,EH(A.JSC$20692_screenService_,X),nS(A,X),Sd(A,O)):_.IO(Error("Uk`"+JSON.stringify(L)));x(J)},5)})).then(function(x){return x?new chrome.cast.DialLaunchResponse(!1):Zlk(A)})},Hl7=function(A,L){var O=A.launchData_.receiver.label,X=A.receiver_.friendlyName;
return(new Promise(function(x){SLM(A.JSC$20692_screenService_,O,L,X,function(J){J&&J.token&&nS(A,J);x(J)},function(J){tf(A,"Failed to get DIAL screen: "+J);
x(null)})})).then(function(x){return x&&x.token?new chrome.cast.DialLaunchResponse(!1):Zlk(A)})},jfz=function(A,L,O,X){_.DK(A.JSC$20701_checkScreenAvailabilityTimeoutKey_);
A.JSC$20701_checkScreenAvailabilityTimeoutKey_=0;gr7(A.JSC$20692_screenService_,L,function(x){x||X<0?O(x):A.JSC$20701_checkScreenAvailabilityTimeoutKey_=_.TA(function(){jfz(A,L,O,X-1)},300)})},Sd=function(A,L){A.info("getDialAppInfoWithTimeout_ "+L);
f1$(A)&&(_.DK(A.getDialAppInfoTimeoutKey_),A.getDialAppInfoTimeoutKey_=0,L==0?zGX(A):A.getDialAppInfoTimeoutKey_=_.TA(function(){zGX(A)},L))},zGX=function(A){f1$(A)&&A.JSC$20701_session_.getDialAppInfo(function(L){A.info("getDialAppInfo dialLaunchData: "+JSON.stringify(L));
L=L.extraData||{};var O=null;if(L.loungeToken){var X;((X=A.screen_)==null?void 0:X.token)==L.loungeToken&&(O="staleLoungeToken")}else O="missingLoungeToken";O?(A.JSC$20701_lastLoungeTokenRefreshError_=O,Sd(A,3E4)):(A.JSC$20701_isInitLoungeToken_=!1,A.JSC$20701_lastLoungeTokenRefreshError_="unknown",ND$(A,L.loungeToken),Sd(A,L.loungeTokenRefreshIntervalMs))},function(L){A.info("getDialAppInfo error: "+L);
A.JSC$20701_lastLoungeTokenRefreshError_="noLoungeTokenResponse";Sd(A,3E4)})},mUz=function(A){_.DK(A.JSC$20701_checkScreenAvailabilityTimeoutKey_);
A.JSC$20701_checkScreenAvailabilityTimeoutKey_=0;_.DK(A.getDialAppInfoTimeoutKey_);A.getDialAppInfoTimeoutKey_=0;A.cancelPolling_();A.cancelPolling_=function(){};
_.DK(A.JSC$20701_deferredLaunchDeadlineTimer_)};var qj=function(A,L){D6.call(this,A,L,"ManualSession");this.JSC$20705_deferredLaunchDeadlineTimer_=_.TA((0,_.is)(this.launchWithParams,this,null),150)};
_.g(qj,D6);qj.prototype.stop=function(){this.onSessionStopped()};
qj.prototype.setCastSession=function(){};
qj.prototype.launchWithParams=function(){_.DK(this.JSC$20705_deferredLaunchDeadlineTimer_);this.JSC$20705_deferredLaunchDeadlineTimer_=NaN;var A=La(this.JSC$20692_screenService_.getScreens(),this.receiver_.label);if(A)nS(this,A);else this.onSessionStopped(Error("Vk"))};
qj.prototype.disposeInternal=function(){_.DK(this.JSC$20705_deferredLaunchDeadlineTimer_);this.JSC$20705_deferredLaunchDeadlineTimer_=NaN;D6.prototype.disposeInternal.call(this)};var tb=function(A,L){_.bf.call(this);this.config_=L;this.JSC$20708_screenService_=A;this.JSC$20708_appId_=L.appId||"233637DE";this.JSC$20708_theme_=L.theme||"cl";this.disableDial_=L.disableCastApi||!1;this.forceMirroring_=L.forceMirroring||!1;this.JSC$20708_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.is)(this.onReceiverAction_,this)};
_.g(tb,_.bf);
tb.prototype.init=function(A,L){chrome.cast.timeout.requestSession=3E4;var O=new chrome.cast.SessionRequest(this.JSC$20708_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.h("desktop_enable_cast_connect")&&(O.androidReceiverCompatible=!0);this.disableDial_||(O.dialRequest=new chrome.cast.DialRequest("YouTube"));var X=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;A=A||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var x=(0,_.is)(this.onReceiverUpdated_,
this);O=new chrome.cast.ApiConfig(O,(0,_.is)(this.onSessionEstablished_,this),x,X,A);O.customDialLaunchCallback=(0,_.is)(this.onDialLaunchRequested_,this);chrome.cast.initialize(O,(0,_.is)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),UTz(),this.JSC$20708_screenService_.subscribe("onlineScreenChange",(0,_.is)(this.JSC$20710_onScreenChange_,this)),this.customReceivers_=BDM(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.is)(function(J){this.warn_("Failed to set initial custom receivers: "+(0,_.fc)(J))},this)),this.publish("yt-remote-cast2-availability-change",gZ(this)),L(!0))},this),(0,_.is)(function(J){this.warn_("Failed to initialize API: "+(0,_.fc)(J));
L(!1)},this))};
tb.prototype.setConnectedScreenStatus=function(A,L){wZ("Setting connected screen ID: "+A+" -> "+L);if(this.JSC$20708_session_){var O=this.JSC$20708_session_.screen_;if(!A||O&&O.id!=A)wZ("Unsetting old screen status: "+this.JSC$20708_session_.receiver_.friendlyName),pS(this,null)}if(A&&L){if(!this.JSC$20708_session_){A=La(this.JSC$20708_screenService_.getScreens(),A);if(!A){wZ("setConnectedScreenStatus: Unknown screen.");return}if(A.idType=="shortLived"){wZ("setConnectedScreenStatus: Screen with id type to be short lived.");
return}O=MbZ(this,A);O||(wZ("setConnectedScreenStatus: Connected receiver not custom..."),O=new chrome.cast.Receiver(A.uuid?A.uuid:A.id,A.name),O.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(O),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.is)(function(X){this.warn_("Failed to set initial custom receivers: "+(0,_.fc)(X))},this)));
wZ("setConnectedScreenStatus: new active receiver: "+O.friendlyName);pS(this,new qj(this.JSC$20708_screenService_,O),!0)}this.JSC$20708_session_.setDisplayStatus(L)}else wZ("setConnectedScreenStatus: no screen.")};
var MbZ=function(A,L){return L?_.Fp(A.customReceivers_,function(O){return Ab(L,O.label)},A):null};
tb.prototype.setLaunchParams=function(A){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$20708_session_?this.JSC$20708_session_.launchWithParams(A):this.warn_("Setting connection data without a session")};
tb.prototype.JSC$20710_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$20708_session_?(this.JSC$20708_session_.stop(),pS(this,null)):wZ("Stopping non-existing session")};
tb.prototype.requestSession=function(){chrome.cast.requestSession((0,_.is)(this.onSessionEstablished_,this),(0,_.is)(this.onSessionRequestFailed_,this))};
tb.prototype.disposeInternal=function(){this.JSC$20708_screenService_.unsubscribe("onlineScreenChange",(0,_.is)(this.JSC$20710_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.y_(_.WY("yt.mdx.remote.debug.handlers_")||[],$Tn);_.oo(this.JSC$20708_session_);_.bf.prototype.disposeInternal.call(this)};
var wZ=function(A){Jb("Controller",A)};
tb.prototype.warn_=function(A){Jb("Controller",A)};
var $Tn=function(A){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(A)},gZ=function(A){return A.hasCastReceiver_||!!A.customReceivers_.length||!!A.JSC$20708_session_},pS=function(A,L,O){L!=A.JSC$20708_session_&&(_.oo(A.JSC$20708_session_),(A.JSC$20708_session_=L)?(O?A.publish("yt-remote-cast2-receiver-resumed",L.receiver_):A.publish("yt-remote-cast2-receiver-selected",L.receiver_),L.subscribe("sessionScreen",(0,_.is)(A.onSessionScreen_,A,L)),L.subscribe("sessionFailed",
function(){return $US(A,L)}),L.screen_?A.publish("yt-remote-cast2-session-change",L.screen_):O&&A.JSC$20708_session_.launchWithParams(null)):A.publish("yt-remote-cast2-session-change",null))},$US=function(A,L){A.JSC$20708_session_==L&&A.publish("yt-remote-cast2-session-failed")};
_.P=tb.prototype;_.P.onSessionScreen_=function(A,L){this.JSC$20708_session_==A&&(L||pS(this,null),this.publish("yt-remote-cast2-session-change",L))};
_.P.onReceiverAction_=function(A,L){if(!this.isDisposed())if(A)switch(A.friendlyName=chrome.cast.unescape(A.friendlyName),wZ("onReceiverAction_ "+A.label+" / "+A.friendlyName+"-- "+L),L){case chrome.cast.ReceiverAction.CAST:if(this.JSC$20708_session_)if(this.JSC$20708_session_.receiver_.label!=A.label)wZ("onReceiverAction_: Stopping active receiver: "+this.JSC$20708_session_.receiver_.friendlyName),this.JSC$20708_session_.stop();else{wZ("onReceiverAction_: Casting to active receiver.");this.JSC$20708_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$20708_session_.screen_);break}switch(A.receiverType){case chrome.cast.ReceiverType.CUSTOM:pS(this,new qj(this.JSC$20708_screenService_,A));break;case chrome.cast.ReceiverType.DIAL:pS(this,new hf(this.JSC$20708_screenService_,A,this.JSC$20708_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:pS(this,new bt(this.JSC$20708_screenService_,A,this.config_));break;default:this.warn_("Unknown receiver type: "+A.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$20708_session_&&
this.JSC$20708_session_.receiver_.label==A.label?this.JSC$20708_session_.stop():this.warn_("Stopping receiver w/o session: "+A.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.P.onDialLaunchRequested_=function(A){if(this.isDisposed())return Promise.reject(Error("Wk"));var L=A.receiver;L.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+L.friendlyName),L.receiverType=chrome.cast.ReceiverType.DIAL);var O=this.JSC$20708_session_?this.JSC$20708_session_.receiver_:null;if(!O||O.label!=L.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+L.friendlyName),Promise.reject(Error("Xk"));if(O&&O.label==L.label&&O.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$20708_session_.screen_)return wZ("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$20708_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+O.receiverType+'" to "dial" for '+L.friendlyName);pS(this,new hf(this.JSC$20708_screenService_,L,this.JSC$20708_theme_,this.config_))}L=this.JSC$20708_session_;L.launchData_=A;L.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(A=L.launchData_.extraData||{},O=A.screenId||null,f1$(L)&&A.loungeToken?A.loungeTokenRefreshIntervalMs?A=WQS(L,{name:L.receiver_.friendlyName,screenId:A.screenId,loungeToken:A.loungeToken,dialId:L.launchData_.receiver.label,screenIdType:"shortLived"},A.loungeTokenRefreshIntervalMs):(_.IO(Error("Tk`"+JSON.stringify(A))),A=Hl7(L,O)):A=Hl7(L,O)):A=Zlk(L);return A};
_.P.onSessionEstablished_=function(A){var L=this;if(!this.isDisposed()&&!this.forceMirroring_){wZ("New cast session ID: "+A.sessionId);var O=A.receiver;if(O.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$20708_session_)if(O.receiverType==chrome.cast.ReceiverType.CAST)wZ("Got resumed cast session before resumed mdx connection."),O.friendlyName=chrome.cast.unescape(O.friendlyName),pS(this,new bt(this.JSC$20708_screenService_,O,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var X=this.JSC$20708_session_.receiver_,x=La(this.JSC$20708_screenService_.getScreens(),X.label);x&&Ab(x,O.label)&&X.receiverType!=chrome.cast.ReceiverType.CAST&&O.receiverType==chrome.cast.ReceiverType.CAST&&(wZ("onSessionEstablished_: manual to cast session change "+O.friendlyName),_.oo(this.JSC$20708_session_),this.JSC$20708_session_=new bt(this.JSC$20708_screenService_,O,this.config_),this.JSC$20708_session_.subscribe("sessionScreen",(0,_.is)(this.onSessionScreen_,this,this.JSC$20708_session_)),
this.JSC$20708_session_.subscribe("sessionFailed",function(){return $US(L,L.JSC$20708_session_)}),this.JSC$20708_session_.launchWithParams(null));
this.JSC$20708_session_.setCastSession(A)}}};
_.P.JSC$20710_getCastSession=function(){return this.JSC$20708_session_?this.JSC$20708_session_.JSC$20694_getCastSession():null};
_.P.onSessionRequestFailed_=function(A){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.fc)(A)),A.code!=chrome.cast.ErrorCode.CANCEL&&pS(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.P.onReceiverUpdated_=function(A){wZ("Receiver availability updated: "+A);if(!this.isDisposed()){var L=gZ(this);this.hasCastReceiver_=A==chrome.cast.ReceiverAvailability.AVAILABLE;gZ(this)!=L&&this.publish("yt-remote-cast2-availability-change",gZ(this))}};
var BDM=function(A){var L=A.JSC$20708_screenService_.JSC$20690_getOnlineScreens(),O=A.JSC$20708_session_&&A.JSC$20708_session_.receiver_;A=_.cT(L,function(X){O&&Ab(X,O.label)&&(O=null);var x=X.uuid?X.uuid:X.id,J=MbZ(this,X);J?(J.label=x,J.friendlyName=X.name):(J=new chrome.cast.Receiver(x,X.name),J.receiverType=chrome.cast.ReceiverType.CUSTOM);return J},A);
O&&(O.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(O=new chrome.cast.Receiver(O.label,O.friendlyName),O.receiverType=chrome.cast.ReceiverType.CUSTOM),A.push(O));return A};
tb.prototype.JSC$20710_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=BDM(this),wZ("Updating custom receivers: "+(0,_.fc)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.is)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",gZ(this)))};
tb.prototype.setLaunchParams=tb.prototype.setLaunchParams;tb.prototype.setConnectedScreenStatus=tb.prototype.setConnectedScreenStatus;tb.prototype.stopSession=tb.prototype.JSC$20710_stopSession;tb.prototype.getCastSession=tb.prototype.JSC$20710_getCastSession;tb.prototype.requestSession=tb.prototype.requestSession;tb.prototype.init=tb.prototype.init;tb.prototype.dispose=tb.prototype.dispose;var a1Z=_.AW(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),gJS=[],TdM=_.JD(a1Z);var kcM=function(A){A.audioTrackId=null;A.trackData=null;A.playerState=-1;A.hasPrevious=!1;A.hasNext=!1;A.playerTime_=0;A.playerTimeAt_=_.u1();A.seekableStart_=0;A.seekableEnd_=0;A.duration_=0;A.loadedTime=0;A.liveIngestionTime_=NaN;A.isLive_=!1};
_.P=bq.prototype;
_.P.reset=function(A){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;A&&(this.index=A.index,this.listId=A.listId,this.videoId=A.videoId,this.playerState=A.playerState,this.volume=A.volume,this.muted=A.muted,this.audioTrackId=A.audioTrackId,this.trackData=A.trackData,this.hasPrevious=A.hasPrevious,this.hasNext=A.hasNext,this.playerTime_=A.playerTime,this.playerTimeAt_=A.playerTimeAt,this.seekableStart_=A.seekableStart,this.seekableEnd_=A.seekableEnd,this.duration_=A.duration,this.loadedTime=
A.loadedTime,this.liveIngestionTime_=A.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.P.stopPlayer=function(){this.index=-1;this.videoId="";kcM(this)};
_.P.isPlaying=function(){return this.playerState==1};
_.P.isBuffering=function(){return this.playerState==3};
_.P.isAdPlaying=function(){return this.playerState==1081};
var Nj=function(A,L){A.playerTime_=L;A.playerTimeAt_=_.u1()},UUn=function(A){switch(A.playerState){case 1:case 1081:return(_.u1()-A.playerTimeAt_)/1E3+A.playerTime_;
case -1E3:return 0}return A.playerTime_};
bq.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.u1()-this.playerTimeAt_)/1E3:0):this.duration_};
var vr$=function(A,L,O){var X=A.videoId;A.videoId=L;A.index=O;L!=X&&kcM(A)},orB=function(A){var L={};
L.index=A.index;L.listId=A.listId;L.videoId=A.videoId;L.playerState=A.playerState;L.volume=A.volume;L.muted=A.muted;L.audioTrackId=A.audioTrackId;L.trackData=_.lW.unsafeClone(A.trackData);L.hasPrevious=A.hasPrevious;L.hasNext=A.hasNext;L.playerTime=A.playerTime_;L.playerTimeAt=A.playerTimeAt_;L.seekableStart=A.seekableStart_;L.seekableEnd=A.seekableEnd_;L.duration=A.duration_;L.loadedTime=A.loadedTime;L.liveIngestionTime=A.liveIngestionTime_;return L};
bq.prototype.clone=function(){return new bq(orB(this))};var rZ=function(A,L){_.bf.call(this);var O=this;this.state_=0;this.connection_=A;this.contextSubscriptions_=[];this.actionQueue_=new b3S;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.is)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.is)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.is)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.is)(this.onCloudviewAvailabilityChange_,this);var X=0;A?(X=A.getProxyState(),
X!=3&&(A.subscribe("proxyStateChange",this.setState_,this),A2B(this))):X=3;X!=0&&(L?this.setState_(X):_.TA(function(){O.setState_(X)},0));
(A=Nd$())&&L9J(this,A);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.g(rZ,_.bf);rZ.prototype.getState=function(){return this.state_};
rZ.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
rZ.prototype.reconnect=function(){this.connection_.reconnect()};
var KS=function(A){return new bq(A.connection_.getPlayerContextData())};
_.P=rZ.prototype;_.P.play=function(){Gt(this)?(this.castMedia_?this.castMedia_.play(null,_.rk,OEB(this,"play")):lt(this,"play"),XWM(this,1,UUn(KS(this))),this.publish("remotePlayerChange")):cj(this,this.play)};
_.P.pause=function(){Gt(this)?(this.castMedia_?this.castMedia_.pause(null,_.rk,OEB(this,"pause")):lt(this,"pause"),XWM(this,2,UUn(KS(this))),this.publish("remotePlayerChange")):cj(this,this.pause)};
_.P.seekTo=function(A){if(Gt(this)){if(this.castMedia_){var L=KS(this),O=new chrome.cast.media.SeekRequest;O.currentTime=A;L.isPlaying()||L.isBuffering()?O.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:O.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(O,_.rk,OEB(this,"seekTo",{newTime:A}))}else lt(this,"seekTo",{newTime:A});XWM(this,3,A);this.publish("remotePlayerChange")}else cj(this,_.Sm(this.seekTo,A))};
_.P.stop=function(){if(Gt(this)){this.castMedia_?this.castMedia_.stop(null,_.rk,OEB(this,"stopVideo")):lt(this,"stopVideo");var A=KS(this);A.stopPlayer();CS(this,A);this.publish("remotePlayerChange")}else cj(this,this.stop)};
_.P.setVolume=function(A,L){if(Gt(this)){var O=KS(this);if(this.castSession_){if(O.volume!=A){var X=Math.round(A)/100;this.castSession_.setReceiverVolumeLevel(X,(0,_.is)(function(){PU("set receiver volume: "+X)},this),(0,_.is)(function(){this.warn_("failed to set receiver volume.")},this))}O.muted!=L&&this.castSession_.setReceiverMuted(L,(0,_.is)(function(){PU("set receiver muted: "+L)},this),(0,_.is)(function(){this.warn_("failed to set receiver muted.")},this))}else{var x={volume:A,
muted:L};O.volume!=-1&&(x.delta=A-O.volume);lt(this,"setVolume",x)}O.muted=L;O.volume=A;CS(this,O)}else cj(this,_.Sm(this.setVolume,A,L))};
_.P.setAudioTrack=function(A,L){Gt(this)?(L=L.getLanguageInfo().getId(),lt(this,"setAudioTrack",{videoId:A,audioTrackId:L}),A=KS(this),A.audioTrackId=L,CS(this,A)):cj(this,_.Sm(this.setAudioTrack,A,L))};
_.P.addVideo=function(A){Gt(this)?lt(this,"addVideo",{videoId:A}):cj(this,_.Sm(this.addVideo,A))};
_.P.addPlaylist=function(A){Gt(this)?lt(this,"addVideos",{listId:A}):cj(this,_.Sm(this.addPlaylist,A))};
_.P.addVideos=function(A){A.length==0?this.warn_("Ignore add videos request due to empty list"):Gt(this)?lt(this,"addVideos",{videoIds:A.join(",")}):cj(this,_.Sm(this.addVideos,A))};
_.P.JSC$20720_removeVideo=function(A){Gt(this)?lt(this,"removeVideo",{videoId:A}):cj(this,_.Sm(this.JSC$20720_removeVideo,A))};
_.P.JSC$20720_insertVideo=function(A){Gt(this)?lt(this,"insertVideo",{videoId:A}):cj(this,_.Sm(this.JSC$20720_insertVideo,A))};
_.P.playVideo=function(A,L,O,X,x,J,Y){X=X===void 0?null:X;x=x===void 0?null:x;J=J===void 0?null:J;Y=Y===void 0?null:Y;var T=KS(this),V={videoId:A};O!==void 0&&(V.currentIndex=O);vr$(T,A,O||0);L!==void 0&&(Nj(T,L),V.currentTime=L);X&&(V.listId=X);x&&(V.playerParams=x);J&&(V.clickTrackingParams=J);Y&&(V.locationInfo=(0,_.fc)(Y));lt(this,"setPlaylist",V);X||CS(this,T)};
_.P.nextVideo=function(A,L){if(Gt(this)){if(A&&L){var O=KS(this);vr$(O,A,L);CS(this,O)}lt(this,"next")}else cj(this,_.Sm(this.nextVideo,A,L))};
_.P.clearPlaylist=function(){if(Gt(this)){lt(this,"clearPlaylist");var A=KS(this);A.reset();CS(this,A);this.publish("remotePlayerChange")}else cj(this,this.clearPlaylist)};
_.P.dispose=function(){if(this.state_!=3){var A=this.state_;this.state_=3;this.publish("proxyStateChange",A,this.state_)}_.bf.prototype.dispose.call(this)};
_.P.disposeInternal=function(){xqk(this);this.connection_=null;this.actionQueue_.clear();L9J(this,null);_.bf.prototype.disposeInternal.call(this)};
var A2B=function(A){_.BY("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(L){this.contextSubscriptions_.push(this.connection_.subscribe(L,_.Sm(this.onProxyEvent_,L),this))},A)},xqk=function(A){_.BY(A.contextSubscriptions_,function(L){this.connection_.unsubscribeByKey(L)},A);
A.contextSubscriptions_.length=0},Gt=function(A){return A.getState()==1},cj=function(A,L){A.actionQueue_.getCount()<50&&A.actionQueue_.enqueue(L)},XWM=function(A,L,O){var X=KS(A);
Nj(X,O);X.playerState!=-1E3&&(X.playerState=L);CS(A,X)},lt=function(A,L,O){A.connection_.sendMessage(L,O)},CS=function(A,L){xqk(A);
A.connection_.setPlayerContextData(orB(L));A2B(A)};
rZ.prototype.setState_=function(A){if((A!=this.state_||A==2)&&this.state_!=3&&A!=0){var L=this.state_;this.state_=A;this.publish("proxyStateChange",L,A);if(A==1)for(;!this.actionQueue_.isEmpty();)A=this.actionQueue_,bA7(A),A.front_.pop().apply(this);else A==3&&this.dispose()}};
rZ.prototype.onProxyEvent_=function(A,L){this.publish(A,L)};
var L9J=function(A,L){A.castSession_&&(A.castSession_.removeUpdateListener(A.boundCastStatusListener_),A.castSession_.removeMediaListener(A.boundCastMediaListener_),A.onCastMediaChange_(null));A.castSession_=L;if(A.castSession_&&(PU("Setting cast session: "+A.castSession_.sessionId),A.castSession_.addUpdateListener(A.boundCastStatusListener_),A.castSession_.addMediaListener(A.boundCastMediaListener_),A.castSession_.media.length))A.onCastMediaChange_(A.castSession_.media[0])};
rZ.prototype.onCastStatusUpdate_=function(A){if(!A)this.onCastMediaChange_(null),L9J(this,null);else if(this.castSession_.receiver.volume){A=this.castSession_.receiver.volume;var L=KS(this),O=Math.round(100*A.level||0);if(L.volume!=O||L.muted!=A.muted)PU("Cast volume update: "+A.level+(A.muted?" muted":"")),L.volume=O,L.muted=!!A.muted,CS(this,L)}};
rZ.prototype.onCastMediaChange_=function(A){PU("Cast media: "+!!A);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=A)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),sWn(this),this.publish("remotePlayerChange")};
var sWn=function(A){var L=A.castMedia_.media,O=A.castMedia_.customData;if(L&&O){var X=KS(A);L.contentId!=X.videoId&&PU("Cast changing video to: "+L.contentId);X.videoId=L.contentId;X.playerState=O.playerState;Nj(X,A.castMedia_.getEstimatedTime());CS(A,X)}else PU("No cast media video. Ignoring state update.")};
rZ.prototype.onCastMediaUpdate_=function(A){if(A)sWn(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
rZ.prototype.onCloudviewAvailabilityChange_=function(){var A=Nd$();A&&L9J(this,A)};
rZ.prototype.warn_=function(A){Jb("CP",A)};
var OEB=function(A,L,O){return(0,_.is)(function(X){this.warn_("Failed to "+L+" with cast v2 channel. Error code: "+X.code);X.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+L+" using MDx browser channel."),lt(this,L,O))},A)};var Ri=function(A,L,O,X){X=X===void 0?!1:X;_.bf.call(this);var x=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$20727_http_=A;this.enableConnectWithInitialState_=X;this.listeners_.push(_.L7(window,"beforeunload",function(){x.JSC$20730_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new bq;this.currentScreenId_=L.id;this.currentScreenIdType_=L.idType;this.channelService=MQz(this.JSC$20727_http_,O,this.JSC$20730_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){J2z(x)});
this.channelService.listen("channelClosed",function(){FK("Channel closed");isNaN(x.connectTimerId_)?OK(!0):OK();x.dispose()});
this.channelService.listen("channelError",function(J){OK();isNaN(x.getReconnectTimeout_())?(J==1&&x.currentScreenIdType_=="shortLived"&&x.publish("browserChannelAuthError",J),FK("Channel error: "+J+" without reconnection"),x.dispose()):(x.reconnecting_=!0,FK("Channel error: "+J+" with reconnection in "+x.getReconnectTimeout_()+" ms"),PRn(x,2))});
this.channelService.listen("channelMessage",function(J){dqJ(x,J)});
this.channelService.setLoungeToken(L.token);this.subscribe("remoteQueueChange",function(){var J=x.playerContext_.videoId;CnQ()&&_.gf("yt-remote-session-video-id",J)})};
_.g(Ri,_.bf);
Ri.prototype.connect=function(A,L){if(L){var O=L.listId,X=L.videoId,x=L.videoIds,J=L.playerParams,Y=L.clickTrackingParams,T=L.index,V={videoId:X},E=L.currentTime,n=L.locationInfo;L=L.loopMode;E!==void 0&&(V.currentTime=E<=5?0:E);J&&(V.playerParams=J);n&&(V.locationInfo=n);Y&&(V.clickTrackingParams=Y);O&&(V.listId=O);x&&x.length>0&&(V.videoIds=x.join(","));T!==void 0&&(V.currentIndex=T);this.enableConnectWithInitialState_&&(V.loopMode=L||"LOOP_MODE_OFF");O&&(this.playerContext_.listId=O);this.playerContext_.videoId=
X;this.playerContext_.index=T||0;this.playerContext_.state=3;Nj(this.playerContext_,E);this.autoplayMode_="UNSUPPORTED";O=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";FK("Connecting with "+O+" and params: "+(0,_.fc)(V));this.channelService.connect({method:O,params:(0,_.fc)(V)},A,f9k())}else FK("Connecting without params"),this.channelService.connect({},A,f9k());Yo7(this)};
Ri.prototype.setLoungeToken=function(A){this.channelService.setLoungeToken(A)};
Ri.prototype.dispose=function(){this.isDisposed()||(_.oZ("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),PRn(this,3));_.bf.prototype.dispose.call(this)};
Ri.prototype.disposeInternal=function(){uC$(this);TUZ(this);VRM(this);_.DK(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.DK(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.jyO(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.bf.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var Dq7=function(A){return _.Fp(A.connectedDevices_,function(L){return L.type=="LOUNGE_SCREEN"})},FK=function(A){Jb("conn",A)},PRn=function(A,L){A.publish("proxyStateChange",L)},Yo7=function(A){A.connectTimerId_=_.TA(function(){FK("Connecting timeout");
A.JSC$20730_disconnect_(1)},2E4)},uC$=function(A){_.DK(A.connectTimerId_);
A.connectTimerId_=NaN},VRM=function(A){_.DK(A.reconnectedCheckScreenTimeout_);
A.reconnectedCheckScreenTimeout_=NaN},e6Q=function(A){TUZ(A);
A.playingSyncTimerId_=_.TA(function(){Ql(A,"getNowPlaying")},2E4)},TUZ=function(A){_.DK(A.playingSyncTimerId_);
A.playingSyncTimerId_=NaN},J2z=function(A){FK("Channel opened");
A.reconnecting_&&(A.reconnecting_=!1,VRM(A),A.reconnectedCheckScreenTimeout_=_.TA(function(){FK("Timing out waiting for a screen.");A.JSC$20730_disconnect_(1)},15E3))},nHJ=function(A,L){var O=null;
if(L){var X=Dq7(A);X&&(O={clientName:X.clientName,deviceMake:X.brand,deviceModel:X.model,osVersion:X.osVersion})}_.oZ("yt.mdx.remote.remoteClient_",O);L&&(uC$(A),VRM(A));O=A.channelService.isChannelOpened()&&isNaN(A.connectTimerId_);L==O?L&&(PRn(A,1),Ql(A,"getSubtitlesTrack")):L?(A.getOtherConnectedRemoteId_()&&A.playerContext_.reset(),PRn(A,1),Ql(A,"getNowPlaying"),EHM(A)):A.JSC$20730_disconnect_(1)},tRn=function(A,L){var O=L.params.videoId;
delete L.params.videoId;O==A.playerContext_.videoId&&(_.lW.isEmpty(L.params)?A.playerContext_.trackData=null:A.playerContext_.trackData=L.params,A.publish("remotePlayerChange"))},bES=function(A,L,O){var X=L.params.videoId||L.params.video_id,x=parseInt(L.params.currentIndex,10);
A.playerContext_.listId=L.params.listId||A.playerContext_.listId;vr$(A.playerContext_,X,x);A.publish("remoteQueueChange",O)},h6J=function(A,L){L.params=L.params||{};
bES(A,L,"NOW_PLAYING_MAY_CHANGE");A.onStateChange_(L);A.publish("autoplayDismissed")};
Ri.prototype.onStateChange_=function(A){var L=parseInt(A.params.currentTime||A.params.current_time,10);Nj(this.playerContext_,isNaN(L)?0:L);L=parseInt(A.params.state,10);L=isNaN(L)?-1:L;L==-1&&this.playerContext_.playerState==-1E3&&(L=-1E3);this.playerContext_.playerState=L;L=Number(A.params.loadedTime);this.playerContext_.loadedTime=isNaN(L)?0:L;L=Number(A.params.duration);this.playerContext_.duration_=isNaN(L)?0:L;L=this.playerContext_;var O=Number(A.params.liveIngestionTime);L.liveIngestionTime_=
O;L.isLive_=isNaN(O)?!1:!0;L=this.playerContext_;O=Number(A.params.seekableStartTime);A=Number(A.params.seekableEndTime);L.seekableStart_=isNaN(O)?0:O;L.seekableEnd_=isNaN(A)?0:A;this.playerContext_.playerState==1?e6Q(this):TUZ(this);this.publish("remotePlayerChange")};
Ri.prototype.onAdStateChange_=function(A){if(this.playerContext_.playerState!=-1E3){var L=1085;switch(parseInt(A.params.adState,10)){case 1:L=1081;break;case 2:L=1084;break;case 0:L=1083}this.playerContext_.playerState=L;A=parseInt(A.params.currentTime,10);Nj(this.playerContext_,isNaN(A)?0:A);this.publish("remotePlayerChange")}};
var So$=function(A,L){var O=L.params.muted=="true";A.playerContext_.volume=parseInt(L.params.volume,10);A.playerContext_.muted=O;A.publish("remotePlayerChange")},qoX=function(A,L){A.autoplayVideoId_=L.params.videoId;
A.publish("nowAutoplaying",parseInt(L.params.timeout,10))},gHJ=function(A,L){A.autoplayVideoId_=L.params.videoId||null;
A.publish("autoplayUpNext",A.autoplayVideoId_)},wWM=function(A,L){A.autoplayMode_=L.params.autoplayMode;
A.publish("autoplayModeChange",A.autoplayMode_);A.autoplayMode_=="DISABLED"&&A.publish("autoplayDismissed")},pWS=function(A,L){var O=L.params.hasNext=="true";
A.playerContext_.hasPrevious=L.params.hasPrevious=="true";A.playerContext_.hasNext=O;A.publish("previousNextChange")};
Ri.prototype.isCapabilitySupportedOnConnectedDevices_=function(A){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var L=_.d(this.connectedDevices_),O=L.next();!O.done;O=L.next())if(!O.value.capabilities.has(A))return!1;return!0};
var dqJ=function(A,L){L=L.message;L.params?FK("Received: action="+L.action+", params="+(0,_.fc)(L.params)):FK("Received: action="+L.action+" {}");switch(L.action){case "loungeStatus":L=(0,_.Kh)(L.params.devices);A.connectedDevices_=_.cT(L,function(X){return new Dd(X)});
L=!!_.Fp(A.connectedDevices_,function(X){return X.type=="LOUNGE_SCREEN"});
nHJ(A,L);L=A.isCapabilitySupportedOnConnectedDevices_("mlm");A.publish("multiStateLoopEnabled",L);break;case "loungeScreenDisconnected":$7Q(A.connectedDevices_,function(X){return X.type=="LOUNGE_SCREEN"});
nHJ(A,!1);break;case "remoteConnected":var O=new Dd((0,_.Kh)(L.params.device));_.Fp(A.connectedDevices_,function(X){return X.equals(O)})||_.gep(A.connectedDevices_,O);
break;case "remoteDisconnected":O=new Dd((0,_.Kh)(L.params.device));$7Q(A.connectedDevices_,function(X){return X.equals(O)});
break;case "gracefulDisconnect":break;case "playlistModified":bES(A,L,"QUEUE_MODIFIED");break;case "nowPlaying":h6J(A,L);break;case "onStateChange":A.onStateChange_(L);break;case "onAdStateChange":A.onAdStateChange_(L);break;case "onVolumeChanged":So$(A,L);break;case "onSubtitlesTrackChanged":tRn(A,L);break;case "nowAutoplaying":qoX(A,L);break;case "autoplayDismissed":A.publish("autoplayDismissed");break;case "autoplayUpNext":gHJ(A,L);break;case "onAutoplayModeChanged":wWM(A,L);break;case "onHasPreviousNextChanged":pWS(A,
L);break;case "requestAssistedSignIn":A.publish("assistedSignInRequested",L.params.authCode);break;case "onLoopModeChanged":A.publish("loopModeChange",L.params.loopMode);break;default:FK("Unrecognized action: "+L.action)}};
_.P=Ri.prototype;_.P.getProxyState_=function(){var A=3;this.isDisposed()||(A=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(A=1):A=2);return A};
_.P.JSC$20730_disconnect_=function(A){FK("Disconnecting with "+A);_.oZ("yt.mdx.remote.remoteClient_",null);uC$(this);this.publish("beforeDisconnect",A);A==1&&OK();this.channelService.disconnect(A);this.dispose()};
_.P.getPlayerContextData_=function(){var A=this.playerContext_;this.clientVideoId_&&(A=this.playerContext_.clone(),vr$(A,this.clientVideoId_,A.index));return orB(A)};
_.P.setPlayerContextData_=function(A){var L=this,O=new bq(A);O.videoId&&O.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=O.videoId,_.DK(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.TA(function(){if(L.clientVideoId_){var x=L.clientVideoId_;L.clientVideoId_=null;L.playerContext_.videoId!=x&&Ql(L,"getNowPlaying")}},5E3));
var X=[];this.playerContext_.listId==O.listId&&this.playerContext_.videoId==O.videoId&&this.playerContext_.index==O.index||X.push("remoteQueueChange");this.playerContext_.playerState==O.playerState&&this.playerContext_.volume==O.volume&&this.playerContext_.muted==O.muted&&UUn(this.playerContext_)==UUn(O)&&(0,_.fc)(this.playerContext_.trackData)==(0,_.fc)(O.trackData)||X.push("remotePlayerChange");this.playerContext_.reset(A);_.BY(X,function(x){this.publish(x)},this)};
_.P.getOtherConnectedRemoteId_=function(){var A=this.channelService.getDeviceId(),L=_.Fp(this.connectedDevices_,function(O){return O.type=="REMOTE_CONTROL"&&O.id!=A});
return L?L.id:""};
_.P.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.P.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.P.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.P.JSC$20730_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var EHM=function(A){_.DK(A.idleDisconnectTimerId_);A.idleDisconnectTimerId_=_.TA(function(){A.JSC$20730_disconnect_(1)},864E5)},Ql=function(A,L,O){O?FK("Sending: action="+L+", params="+(0,_.fc)(O)):FK("Sending: action="+L);
A.channelService.sendMessage(L,O)};
Ri.prototype.sendMessageWithUserAction_=function(A,L){Ql(this,A,L);EHM(this)};
Ri.prototype.JSC$20730_getXsrfToken_=function(){var A=_.hj.get("SAPISID","")||_.hj.get("__Secure-1PAPISID",void 0)||"",L=_.hj.get("__Secure-3PAPISID","")||"";if(!A&&!L)return"";A=_.NQ(_.wX(A),2);L=_.NQ(_.wX(L),2);return _.NQ(_.wX(","+A+","+L),2)};
Ri.prototype.subscribe=Ri.prototype.subscribe;Ri.prototype.unsubscribeByKey=Ri.prototype.unsubscribeByKey;Ri.prototype.getProxyState=Ri.prototype.getProxyState_;Ri.prototype.disconnect=Ri.prototype.JSC$20730_disconnect_;Ri.prototype.getPlayerContextData=Ri.prototype.getPlayerContextData_;Ri.prototype.setPlayerContextData=Ri.prototype.setPlayerContextData_;Ri.prototype.getOtherConnectedRemoteId=Ri.prototype.getOtherConnectedRemoteId_;Ri.prototype.getReconnectTimeout=Ri.prototype.getReconnectTimeout_;
Ri.prototype.getAutoplayMode=Ri.prototype.getAutoplayMode_;Ri.prototype.getAutoplayVideoId=Ri.prototype.getAutoplayVideoId_;Ri.prototype.reconnect=Ri.prototype.JSC$20730_reconnect_;Ri.prototype.sendMessage=Ri.prototype.sendMessageWithUserAction_;Ri.prototype.getXsrfToken=Ri.prototype.JSC$20730_getXsrfToken_;Ri.prototype.isCapabilitySupportedOnConnectedDevices=Ri.prototype.isCapabilitySupportedOnConnectedDevices_;var iE7=function(A){Y_.call(this,"ScreenServiceProxy");this.instance_=A;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.is)(this.JSC$20733_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.is)(this.onOnlineScreenChange_,this)))};
_.g(iE7,Y_);_.P=iE7.prototype;_.P.getScreens=function(A){return this.instance_.$_gs(A)};
_.P.contains=function(A){return!!this.instance_.$_c(A)};
_.P.get=function(A){return this.instance_.$_g(A)};
_.P.start=function(){this.instance_.$_st()};
_.P.add=function(A,L,O){this.instance_.$_a(A,L,O)};
_.P.remove=function(A,L,O){this.instance_.$_r(A,L,O)};
_.P.updateName=function(A,L,O,X){this.instance_.$_un(A,L,O,X)};
_.P.disposeInternal=function(){for(var A=this.subscriptionKeys_.length,L=0;L<A;++L)this.instance_.$_ubk(this.subscriptionKeys_[L]);this.subscriptionKeys_.length=0;this.instance_=null;Y_.prototype.disposeInternal.call(this)};
_.P.JSC$20733_onScreenChange_=function(){this.publish("screenChange")};
_.P.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
Vf.prototype.$_st=Vf.prototype.start;Vf.prototype.$_gspc=Vf.prototype.JSC$20690_getScreenByPairingCode;Vf.prototype.$_gsppc=Vf.prototype.JSC$20690_getScreenByPollingPairingCode;Vf.prototype.$_c=Vf.prototype.contains;Vf.prototype.$_g=Vf.prototype.get;Vf.prototype.$_a=Vf.prototype.add;Vf.prototype.$_un=Vf.prototype.updateName;Vf.prototype.$_r=Vf.prototype.remove;Vf.prototype.$_gs=Vf.prototype.getScreens;Vf.prototype.$_gos=Vf.prototype.JSC$20690_getOnlineScreens;Vf.prototype.$_s=Vf.prototype.subscribe;
Vf.prototype.$_ubk=Vf.prototype.unsubscribeByKey;var CRk=function(A){jaS();if(!Xk||!Xk.get("yt-remote-disable-remote-module-for-dev")){A=_.ms("MDX_CONFIG")||A;JWQ();Rck();mO||(mO=new vd(A?A.loungeApiHost:void 0),WuX()&&(mO.basePath="/api/loungedev"));fS||(fS=_.WY("yt.mdx.remote.deferredProxies_")||[],_.oZ("yt.mdx.remote.deferredProxies_",fS));NUZ();var L=Ii();if(!L){var O=new Vf(mO,A?A.disableAutomaticScreenCache||!1:!1);_.oZ("yt.mdx.remote.screenService_",O);L=Ii();var X={};A&&(X={appId:A.appId,disableDial:A.disableDial,theme:A.theme,loadCastApiSetupScript:A.loadCastApiSetupScript,
disableCastApi:A.disableCastApi,enableDialLoungeToken:A.enableDialLoungeToken,enableCastLoungeToken:A.enableCastLoungeToken,forceMirroring:A.forceMirroring});_.oZ("yt.mdx.remote.enableConnectWithInitialState_",A?A.enableConnectWithInitialState||!1:!1);SbS(O,function(J){J?yl()&&KiM(yl(),"YouTube TV"):O.subscribe("onlineScreenChange",function(){pI("yt-remote-receiver-availability-change")})},X)}if(A&&!_.WY("yt.mdx.remote.initialized_")){_.oZ("yt.mdx.remote.initialized_",!0);
Zd("Initializing: "+(0,_.fc)(A));jd.push(_.dT("yt-remote-cast2-api-ready",function(){pI("yt-remote-api-ready")}));
jd.push(_.dT("yt-remote-cast2-availability-change",function(){pI("yt-remote-receiver-availability-change")}));
jd.push(_.dT("yt-remote-cast2-receiver-selected",function(){r2J();pI("yt-remote-auto-connect","cast-selector-receiver")}));
jd.push(_.dT("yt-remote-cast2-receiver-resumed",function(){pI("yt-remote-receiver-resumed","cast-selector-receiver")}));
jd.push(_.dT("yt-remote-cast2-session-change",K9B));jd.push(_.dT("yt-remote-connection-change",function(J){J?KiM(yl(),"YouTube TV"):GUS()||(KiM(null,null),i4Z())}));
jd.push(_.dT("yt-remote-cast2-session-failed",function(){pI("yt-remote-connection-failed")}));
X=lmZ();A.isAuto&&(X.id+="#dial");var x=A.capabilities||[];x.length>0&&(X.capabilities=x);X.name=A.device;X.app=A.app;(A=A.theme)&&(X.theme=A);Zd(" -- with channel params: "+(0,_.fc)(X));X?(_.gf("yt-remote-session-app",X.app),_.gf("yt-remote-session-name",X.name)):(_.pA("yt-remote-session-app"),_.pA("yt-remote-session-name"));_.oZ("yt.mdx.remote.channelParams_",X);L.start();yl()||c2Z()}}},R6J=function(){var A=Ii().instance_.$_gos();
var L=F9Z();L&&Wj()&&(GmM(A,L)||A.push(L));return KuM(A)},QWS=function(){var A=R6J(),L=F9Z();
L||(L=GUS());return _.Fp(A,function(O){return L&&Ab(L,O.key)?!0:!1})},F9Z=function(){var A=yl();
if(!A)return null;var L=Ii().getScreens();return La(L,A)},K9B=function(A){Zd("remote.onCastSessionChange_: "+GKJ(A));
if(A){var L=F9Z();L&&L.id==A.id?(KiM(L.id,"YouTube TV"),A.idType=="shortLived"&&(A=A.token)&&(L=Wj())&&L.setLoungeToken(A)):(L&&mqX(),fmJ(A,1))}else Wj()&&mqX()},mqX=function(){rTM()?na().stopSession():EK("stopSession called before API ready.");
var A=Wj();A&&(A.disconnect(1),ImQ(null))},y2n=function(){var A=Wj();
return A&&A.getProxyState()!=3?new rZ(Wj(),void 0):null},Zd=function(A){Jb("remote",A)},Ii=function(){if(!ZES){var A=_.WY("yt.mdx.remote.screenService_");
ZES=A?new iE7(A):null}return ZES},yl=function(){return _.WY("yt.mdx.remote.currentScreenId_")},jW$=function(A){_.oZ("yt.mdx.remote.currentScreenId_",A)},r2J=function(){_.oZ("yt.mdx.remote.connectData_",null)},Wj=function(){return _.WY("yt.mdx.remote.connection_")},ImQ=function(A){var L=Wj();
r2J();A||jW$("");_.oZ("yt.mdx.remote.connection_",A);fS&&(_.BY(fS,function(O){O(A)}),fS.length=0);
L&&!A?pI("yt-remote-connection-change",!1):!L&&A&&pI("yt-remote-connection-change",!0)},GUS=function(){var A=CnQ();
if(!A)return null;var L=Ii();if(!L)return null;L=L.getScreens();return La(L,A)},fmJ=function(A,L){jW$(A.id);
A=new Ri(mO,A,lmZ(),_.WY("yt.mdx.remote.enableConnectWithInitialState_")||!1);A.connect(L,_.WY("yt.mdx.remote.connectData_"));A.subscribe("beforeDisconnect",function(O){pI("yt-remote-before-disconnect",O)});
A.subscribe("beforeDispose",function(){Wj()&&ImQ(null)});
A.subscribe("browserChannelAuthError",function(){var O=F9Z();O&&O.idType=="shortLived"&&(rTM()?na().handleBrowserChannelAuthError():EK("refreshLoungeToken called before API ready."))});
ImQ(A)},c2Z=function(){var A=GUS();
A?(Zd("Resume connection to: "+GKJ(A)),fmJ(A,0)):(OK(),i4Z(),Zd("Skipping connecting because no session screen found."))},mO=null,fS=null,ZES=null,NUZ=function(){var A=lmZ();
if(_.lW.isEmpty(A)){A=ciZ();var L=_.wf("yt-remote-session-name")||"",O=_.wf("yt-remote-session-app")||"";A={device:"REMOTE_CONTROL",id:A,name:L,app:O,mdxVersion:3};A.authuser=String(_.ms("SESSION_INDEX","0"));(L=_.ms("DELEGATED_SESSION_ID"))&&(A.pageId=String(L));_.oZ("yt.mdx.remote.channelParams_",A)}},lmZ=function(){return _.WY("yt.mdx.remote.channelParams_")||{}},jd=[];var W9X=new _.mg("yt-menu"),HEM=function(){},BUB=function(A,L,O){A=L=="right-click"?O.rightClickMenuPopupHint:O.menuPopupHint;
if(!(z6z(L)>10))return L=L||"default",W9X.set(L+"-impression",z6z(L)+1),A},z6z=function(A){return parseInt(W9X.get((A||"default")+"-impression")||0,10)};
_.Yz(HEM);var MRJ=function(){this.contexts_=new WeakMap;this.JSC$20739_networkService_=this.activeContext_=null},$qZ=function(A,L,O){var X=A.contexts_.get(L);
X||(X=new xKS(A.JSC$20739_networkService_),A.contexts_.set(L,X));A.activeContext_=X;O&&A.activeContext_.reset();A.activeContext_.start();return A.activeContext_};var Hj=function(){};
Hj.prototype.enqueue=function(){var A=this,L;return _.u(function(O){if(A.isCounterfactual())return(L=A.getCounterfactualData())&&A.shouldLogCounterfactualImpression()&&A.sendImpressionEndpoints(L),O.return();A.doEnqueue();_.qo(O)})};
Hj.prototype.sendImpressionEndpoints=function(A){_.zu.getInstance().triggerOptionalAction("yt-service-request",{},A[0])};var zt=function(A,L){this.renderer=A;this.page=L};
_.g(zt,Hj);zt.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
zt.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
zt.prototype.shouldLogCounterfactualImpression=function(){return!0};
zt.prototype.doEnqueue=function(){var A=_.Pm(this.page);A&&A.pause();this.renderer.impressionCommand&&_.zu.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.za(_.zu.getInstance(),[this.renderer.promoCommand],this.page)};var amB=function(A,L){this.renderer=A;this.resolver=_.AI();this.JSC$20751_enforcementCounter=new _.Y46;L?this.JSC$20751_playerManager=_.Pm(L):this.JSC$20751_playerManager=null;_.hi(1,!0)};
_.g(amB,Hj);_.P=amB.prototype;_.P.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var A=[];this.renderer.impressionEndpoints.forEach(function(L){(L=_.HR(L))&&A.push(L)});
return A}};
_.P.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.P.shouldLogCounterfactualImpression=function(){var A=_.PzM();A?(this.JSC$20751_enforcementCounter.increment("POPUP"),_.hi(3)):_.hi(2);return A};
_.P.cancel=function(){this.resolver.promise.cancel()};
_.P.doEnqueue=function(){var A=this;_.PzM()?(this.JSC$20751_enforcementCounter.increment("POPUP"),_.hi(3),kUk(this)):this.JSC$20751_playerManager?(this.resolver.promise.then(function(){kUk(A)}),Uqk(this.resolver,this.JSC$20751_playerManager)):_.hi(2)};
var Uqk=function(A,L){var O=_.AI();L.getPlayerPromise().then(function(X){O.resolve(X)});
O.promise.then(function(X){X.addEventListener("onAbnormalityDetected",A.resolve);_.R$(A.promise,function(){X.removeEventListener("onAbnormalityDetected",A.resolve)})});
A.promise.thenCatch(function(){O.promise.cancel()})},kUk=function(A){_.hi(3);
var L={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:A.renderer}};L=_.zu.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:L},{});Promise.all(L).then(function(){vHn();A.JSC$20751_playerManager&&A.JSC$20751_playerManager.pause()})},vHn=function(){Cin(function(A,L){_.COM(A,L);
A===0?_.hi(7):_.hi(4)})};var oHX=function(A,L){this.renderer=A;this.page=L;this.resolver=_.AI()};
_.g(oHX,Hj);_.P=oHX.prototype;_.P.cancel=function(){this.resolver.promise.cancel()};
_.P.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.P.isCounterfactual=function(){return!this.renderer.isVisible};
_.P.shouldLogCounterfactualImpression=function(){return!0};
_.P.doEnqueue=function(){var A=this;this.resolver.promise.then(function(){var O={popup:{mealbarPromoRenderer:A.renderer},popupType:"MEALBAR"};_.zu.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:O},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var L=_.Pm(this.page);L&&A$Q(this.resolver,L)}break;default:this.resolver.resolve()}};
var A$Q=function(A,L){var O=_.AI();L.getPlayerPromise().then(function(X){O.resolve(X)});
O.promise.then(function(X){X.addEventListener("onAdEnd",A.resolve);_.R$(A.promise,function(){X.removeEventListener("onAdEnd",A.resolve)})});
A.promise.thenCatch(function(){O.promise.cancel()})};var LLX=function(A,L){this.renderer=A;this.page=L};
_.g(LLX,Hj);_.P=LLX.prototype;_.P.cancel=function(){this.JSC$20759_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20759_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20759_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.P.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.P.isCounterfactual=function(){return!this.renderer.isVisible};
_.P.shouldLogCounterfactualImpression=function(){return!0};
_.P.doEnqueue=function(){var A=this,L,O;((L=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(O=L.playbackUpsellDialogTriggerConditionData)==null?void 0:O.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$20759_downloadedVideosCountSelectorUnsubscriber=_.Ge(_.Ai(),r9$,function(X,x){X>x&&(OPX(A),A.cancel())}):OPX(this)};
var OPX=function(A){var L={popup:{upsellDialogRenderer:A.renderer},popupType:"MODAL"};_.zu.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:L},{});(A=_.Pm(A.page))&&A.pause()};var Bj={},Xkn=(Bj.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",Bj.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",Bj.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",Bj.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",Bj.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",Bj.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",Bj.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",Bj),xf$=function(A,L){this.renderer=A;this.targetManager=
L};
_.g(xf$,Hj);_.P=xf$.prototype;_.P.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$20766_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20766_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20766_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.P.getCounterfactualData=function(){if(this.isCounterfactual()){var A;return(A=this.renderer.promoConfig)==null?void 0:A.impressionEndpoints}};
_.P.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.P.shouldLogCounterfactualImpression=function(){return!0};
_.P.doEnqueue=function(){var A=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$20766_downloadedVideosCountSelectorUnsubscriber=_.Ge(_.Ai(),r9$,function(L,O){A.renderer.targetId&&L>O&&(gfX(A.targetManager,A.renderer.targetId,s4J(A)),A.cancel())});
break;default:gfX(this.targetManager,this.renderer.targetId,s4J(this))}};
var s4J=function(A){var L;if((L=A.renderer.suggestedPosition)==null?0:L.type)var O=Xkn[A.renderer.suggestedPosition.type];O||(O="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:A.renderer},popupType:"HINT",position:O}}};var J$Z=function(){this.previousPage=null},Px$;
J$Z.prototype.registerPromoCommand=function(A,L){dfX(this,void 0,void 0,_.q(A.roadblock,wPS),void 0,void 0,L)};
var dfX=function(A,L,O,X,x,J,Y){A.previousPage!==Y&&A.pendingTooltipPromo&&A.pendingTooltipPromo.cancel();A.previousPage=Y;x?(A.pendingEnforcementPromo&&A.pendingEnforcementPromo.cancel(),A.pendingEnforcementPromo=new amB(x,Y),A.pendingEnforcementPromo.enqueue()):J?(A.pendingCommandWrapperPromo=new zt(J,Y),A.pendingCommandWrapperPromo.enqueue()):X?(A.pendingRoadblockPromo&&A.pendingRoadblockPromo.cancel(),A.pendingRoadblockPromo=new LLX(X,Y),A.pendingRoadblockPromo.enqueue()):L?(A.pendingMealbarPromo&&
A.pendingMealbarPromo.cancel(),A.pendingMealbarPromo=new oHX(L,Y),A.pendingMealbarPromo.enqueue()):O&&(A.pendingTooltipPromo&&A.pendingTooltipPromo.cancel(),A.pendingTooltipPromo=new xf$(O,_.Q6()),A.pendingTooltipPromo.enqueue())},Ydz=function(){Px$||(Px$=new J$Z);
return Px$};var FiM=!1;var rIS=function(A,L){var O=_.ms("SESSION_INDEX");this.actionToken_=A;this.commonToken_=L;this.sessionIndex_=O},N0$=function(A){var L=_.AI(),O=_.WY("payments.business.integration.bootstrap"),X=_.WY("payments.business.integration"),x=X.Style.create().withMaterialDesignStyle(),J=X.mashupMode.popup("instrument-manager");
O.asMashupMode(J).usingUserIndex(A.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(x).inStandaloneContext(X.standaloneContextAuthId.forUserId()).instrumentManager(A.actionToken_,A.commonToken_.length>0?A.commonToken_:void 0,function(Y){var T=Y.instrumentId;T?L.resolve(T):(T=_.WY("payments.business.integration.scenario.InstrumentManager"),L.reject(Y.errorCode&&Y.errorCode===T.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(Y){_.IO(Y);
L.reject("instrumentManagerLoadError")});
return L.promise};var wg=function(A,L,O){this.payloadName="transactionFlowFailed";this.payload={errorType:A,serializedTransactionFlowLoggingParams:L,isUserDismiss:O===void 0?!1:O}};
_.oZ("yt.ypc.shared.YpcTransactionFlowError",wg);var Mj=function(){return _.wd.apply(this,arguments)||this};
_.g(Mj,_.wd);Mj.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
Mj.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
Mj.prototype.onErrorMessageDismiss=Mj.prototype.onErrorMessageDismiss;_.I([_.K({readOnly:!0,observer:"errorRendererChanged"}),_.Z("design:type",Object)],Mj.prototype,"errorRenderer",void 0);_.I([_.by("yt-live-chat-error-message-dismiss"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Mj.prototype,"onErrorMessageDismiss",null);_.I([_.p4()],Mj);var uHS=[Mj.prototype];var TIM;var VSM;var Df$=new _.mg("yt-live-chat"),evJ=new Map;evJ.set("timestamp_toggle","show-timestamps");evJ.set("reactions_toggle","allow-reactions");var $M=function(){return _.G.apply(this,arguments)||this};
_.g($M,_.G);_.P=$M.prototype;_.P.menuItemIdentifierChanged=function(){var A;(A=this.data)!=null&&A.menuItemIdentifier&&(A=evJ.get(this.data.menuItemIdentifier))&&(_.h("enable_lwe_web_mute")?(A=Df$.get(A),this.isToggled=!(A===void 0?!this.data.isToggled:!A)):this.isToggled=Df$.get(A))};
_.P.onFocus=function(){this.toggleButton.focus()};
_.P.onTap=function(){var A=this.data.command;A&&this.componentBehavior.resolveCommand(A)};
_.P.computeText=function(A,L,O){return this.componentBehavior.getSimpleString(A?O:L)};
_.P.computeIcon=function(A,L,O){return(A=A?O:L)&&A.iconType?_.bV(A.iconType):""};
$M.prototype.onTap=$M.prototype.onTap;$M.prototype.onFocus=$M.prototype.onFocus;$M.prototype.menuItemIdentifierChanged=$M.prototype.menuItemIdentifierChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],$M.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],$M.prototype,"componentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],$M.prototype,"data",void 0);
_.I([_.K({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.Z("design:type",String)],$M.prototype,"icon",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],$M.prototype,"isToggled",void 0);_.I([_.qR("tp-yt-paper-toggle-button"),_.Z("design:type",Object)],$M.prototype,"toggleButton",void 0);_.I([_.hT("data.menuItemIdentifier"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$M.prototype,"menuItemIdentifierChanged",null);
_.I([_.by("focus"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$M.prototype,"onFocus",null);_.I([_.by("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$M.prototype,"onTap",null);_.I([_.yU({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],$M);
_.m($M,"yt-live-chat-toggle-renderer",function(){if(VSM===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;TIM===void 0&&(TIM=document.createElement("template"));var X=TIM;O.call(L,X.content.cloneNode(!0),A.content.firstChild);VSM=A}A=VSM;return A},{mode:_.h("live_chat_enable_sink_wrapper")?2:0});var EZM=new _.Yx("NAVIGATION_PROGRESS_TOKEN");var nZM={},tSX={},bP$=(tSX[Tj7.name]=!0,tSX),ai=function(){var A=_.wd.apply(this,arguments)||this;A._noAccessors=!0;A.tabGesturesIsActive=!1;A.actionRouterIsRoot=!0;A.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"};A.pageTitle="";A.titleSuffix="YouTube";A.unseenNotificationCount=
0;A.hasNavigated=!1;A.hasSetScrollTopForNavigation=!1;A.pagePreparer=null;A.zwiebackInitJobId=0;A.dataUpdatePromise=null;A.loadDepsPromise=_.DQ();A.hasPendingNavigation=!1;A.pendingPlayerOnResponseReceivedActions=[];return A};
_.g(ai,_.wd);ai.prototype.attached=function(){hvB(this);document.addEventListener("yt-navigate-cache",_.tT(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var A=kM();A.init();A.dispatchElement=this.hostElement};
var hvB=function(A,L){L=L===void 0?0:L;var O=_.X5().resolve(_.Ot(_.Rl));if(O)SdB(A,O);else{if(L>=5)throw Error("Yk");setTimeout(function(){hvB(A,L+1)},0)}},SdB=function(A,L){L.addEventListener("yt-navigate-start",_.tT(A,A.onYtNavigateStart));
L.addEventListener("yt-navigate-finish",_.tT(A,A.onYtNavigateFinish));L.addEventListener("yt-navigate-error",_.tT(A,A.onYtNavigateError));L.addEventListener("yt-page-data-fetched",_.tT(A,A.onYtPageDataFetched))};
_.P=ai.prototype;_.P.detached=function(){var A=_.X5().resolve(_.Rl);A.removeEventListener("yt-navigate-start",_.tT(this,this.onYtNavigateStart));A.removeEventListener("yt-navigate-finish",_.tT(this,this.onYtNavigateFinish));A.removeEventListener("yt-navigate-error",_.tT(this,this.onYtNavigateError));A.removeEventListener("yt-page-data-fetched",_.tT(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.tT(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.P.setPageOffset=function(A,L){A?_.dQ(this.hostElement,"yt-set-page-offset",[A,L]):_.C7(Error("Zk"))};
_.P.setPageOffsetForNavigation=function(A,L){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(A,L))};
_.P.onYtNavigateSetPageOffset=function(A,L){this.setPageOffsetForNavigation(L.page,L.offset)};
_.P.getPageOffset=function(){var A=_.YJ(this.hostElement).querySelector("#page-manager").getCurrentPage(),L=0;A&&(L=_.dQ(this.hostElement,"yt-get-page-offset",[A])[0]);return L};
_.P.onYtHistoryPop=function(A,L){if(_.fB("DISABLE_WARM_LOADS"))A.preventDefault(),window.location.reload();else{var O=_.X5().resolve(_.Rl);O.hasPendingNavigation()&&A.preventDefault();O.cancelPendingNavigation();_.YK(this.hostElement,"yt-pending-navigation-cancelled");L.errorMsg&&(A=L.errorMsg.split(" - "),L=Error(A[0]),A.length==2&&A[1]&&(_.Q$(L,A[1]),_.Rv(L)),window.location.reload())}};
_.P.onYtHistoryLoad=function(A,L){var O=this;if(_.fB("DISABLE_WARM_LOADS"))window.location.reload();else{(A=L.endpoint)&&Object.keys(A).length||(A=null);var X=L.historyEntry,x=_.X5().resolve(_.Rl),J=_.X5().resolve(_.JI),Y=null;X&&X.rootData&&(Y=X.rootData);var T=Y&&qd7(Y);!Y||T||Y.filler?A?(x.navigate(A,!0),gZB(this,A)):(L.legacyBorder||T||(L.JSC$31789_savedComponentState==null&&Y==null?_.Rv(new _.pe("Incomplete history entry",L.forward)):_.FJ(new _.pe("Malformed history entry",L.JSC$31789_savedComponentState,
L.forward,Y))),window.location.reload()):(_.Xis({isHot:!0}),_.CM({webInfo:{navigationReason:"h"}}),_.GgP(),_.Rk("srt"),_.Rk("pdc"),this.cancelPendingTasks(),wkJ(this,L.forward,Y),Y.player&&(Y.player.loaded=!1),gZB(this,A),_.yPu(x,A||{},Y,2,{},!1,L).then(function(){O.setPageOffset(J.getCurrentPage(),X.scrollTop||0)}))}};
_.P.initHistoryManager=function(A){if(!this.hasNavigated){this.hasNavigated=!0;var L=_.YJ(this.hostElement).querySelector("#page-manager").getCurrentData();A=isNaN(A)?this.getPageOffset():A;var O=_.X5().resolve(_.Rl).currentEndpoint;this.replaceState(O,L,A)}};
_.P.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.P.onYtNavigateStart=function(A,L){this.cancelPendingTasks();L.noProgressBar||(A=_.X5().resolve(_.Ot(EZM)))&&A.start();A=this.hasPendingNavigation?null:this.data;var O=_.X5().resolve(_.JI),X,x,J;_.h("kevlar_use_vimio_behavior")&&!((X=L.endpoint)==null?0:(x=X.commandMetadata)==null?0:(J=x.webCommandMetadata)==null?0:J.ignoreNavigation)&&(X=O.getCurrentPage())&&X.disconnectVisibilityRoot();O.prepareForNavigation(L.pageType,L.endpoint);_.h("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.Tf(1,
"pcl"),_.V4(this.pagePreparer,O.preparePage.bind(O,L.pageType,L.endpoint)));X=this.getPageOffset();this.initHistoryManager(X);L.reload||this.hasPendingNavigation?this.replaceState(L.endpoint,A,X):(A==null?void 0:A.page)==="watch"&&L.pageType==="watch"&&_.h("kevlar_replace_watch_to_watch_history_state")?this.replaceState(L.endpoint,A,X):(A==null?void 0:A.page)!=="shorts"||L.pageType!=="shorts"||L.endpoint.reelWatchEndpoint.sequenceParams||_.h("short_to_short_back_nav_killswitch")?L.type!="navigate-back"&&
L.type!="navigate-forward"&&(L.pageType==="shorts"&&_.P4(this.hostElement,"yt-shorts-reset"),this.saveAndPush(L.url,L.endpoint,A,X)):(_.h("web_enable_delay_shorts_sequence_call")&&(L.endpoint.reelWatchEndpoint.sequenceParams=A==null?void 0:A.cachedSequenceParams,L.endpoint.reelWatchEndpoint.sequenceProvider=A==null?void 0:A.cachedSequenceProvider),this.replaceState(L.endpoint,A,0));this.hasPendingNavigation=!0};
var pkM=function(A){A.hasPendingNavigation=!1;(A=_.X5().resolve(_.Ot(EZM)))&&A.finish()};
ai.prototype.onYtNavigateError=function(A,L){pkM(this);A=this.get("endpoint.commandMetadata.webCommandMetadata.url",L);var O=_.$L(window.location.href);A&&!O.pbjreload&&(L=L.navigationErrorReason||"10",_.h("kevlar_parent_on_pbjreload")&&(O={csn:_.Fn()},this.get("data.endpoint.clickTrackingParams")&&(O.itct=this.data.endpoint.clickTrackingParams),_.oF(A,O)),_.$c(_.aO(A,{pbjreload:L})))};
ai.prototype.onYtNavigateCache=function(A,L){var O=this,X=L.url,x=L.endpoint,J=L.data;A=!!L.miniplayer;L=!!L.skipHistory;if(X&&x&&J){var Y=this.getPageOffset(),T=this.data||null;L||this.saveAndPush(X,x,T,Y);X=_.yPu(_.X5().resolve(_.Rl),x,J,A?4:3,{},A);A&&X.then(function(){O.dataUpdatePromise&&O.dataUpdatePromise.then(function(){var V=_.X5().resolve(_.JI);O.setPageOffset(V.getCurrentPage(),0)})})}};
ai.prototype.onYtNavigateFinish=function(A,L){var O=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){iP$(O,L.fromHistory)})};
var iP$=function(A,L){pkM(A);if(A.pendingPlayerOnResponseReceivedActions){for(var O=_.d(A.pendingPlayerOnResponseReceivedActions),X=O.next();!X.done;X=O.next())_.qb(X.value,A.hostElement);A.pendingPlayerOnResponseReceivedActions=[]}O=_.X5().resolve(_.JI);L||!A.hasNavigated||_.h("web_disable_scroll_on_navigate_finish")||((L=O.getCurrentPage())?L.is==="ytd-shorts"||A.tabGesturesIsActive||A.setPageOffsetForNavigation(L,0):_.Rv(Error("$k")));_.MR(function(){_.MR(function(){_.Rk("pda")})})};
ai.prototype.onYtNavigate=function(A){if(!A.detail.endpoint){var L=new _.pe("Error: Missing yt-navigate endpoint from target:",A.target,A.target.nodeName);_.C7(L)}if(L=_.h("cold_missing_history"))L=kM(),L.init(!1),L=!(L.browserHistory.boundHistoryReplaceState&&L.browserHistory.boundHistoryPushState);if(L){_.QT("DISABLE_WARM_LOADS",!0);L=new _.pe("Failed to initialize history manager",this.getDebugString());var O=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
O?_.Rv(L):_.C7(L)}L=A.detail.endpoint;var X,x;_.h("debug_forward_web_query_parameters")&&((X=L.commandMetadata)==null?0:(x=X.webCommandMetadata)==null?0:x.url)&&(L=JSON.parse(JSON.stringify(L)),L.commandMetadata.webCommandMetadata.url=_.jkp(L.commandMetadata.webCommandMetadata.url,window.location.search));A={type:0,command:L,form:{params:A.detail.params,tempData:A.detail.tempData||{},requestType:A.detail.type,createScreenConfig:A.detail.createScreenConfig,reload:A.detail.reload?A.detail.reload:!1,
requestForm:A.detail}};_.h("kevlar_yt_navigate_command_handler")?(X=_.X5().resolve(_.x$),A.form.skipDefaultElement=!0,X.resolveCommand(L,{form:A.form})):this.handleNavigate(A)};
ai.prototype.handleNavigate=function(A){this.hasSetScrollTopForNavigation=!1;var L=_.X5().resolve(_.Rl),O=A.form||{};L.navigate(A.command,O.reload,O.params,O.tempData,O.requestType,O.createScreenConfig,O.ignoreConfirmation,O.requestForm)&&gZB(this,A.command,O.tempData)};
ai.prototype.onYtPageDataFetched=function(A,L){try{_.ij6().reset();this.data=L.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.X5().resolve(_.JI).updatePageData(this.data);if(!_.h("web_service_params_response_processor")){var O=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);O&&fQM(O);var X=this.get("response.responseContext.serviceTrackingParams",
this.data);X&&fQM(X)}var x=this.get("playerResponse.onResponseReceivedActions",this.data);x&&(x=NIM(this,x));x&&_.VN(this.hostElement,x,this.hostElement);var J=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),Y=this.get("response.responseContext.consistencyTokenJar",this.data);if(J||Y){var T=_.gH9(),V=(0,_.lW.getValues)(T.tokenJars);J&&T.replace(V,J);Y&&T.replace(V,Y)}}catch(E){_.C7(E)}};
var gZB=function(A,L,O){try{A.onYtEndpointChangeHandler(L,O)}catch(X){_.C7(X)}};
_.P=ai.prototype;_.P.onYtEndpointChangeHandler=function(){};
_.P.setPageTitle=function(A){A=(this.pageTitle=A)?A+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+A};
_.P.onYtUpdateTitle=function(A,L){this.setPageTitle(L)};
_.P.setUnseenNotificationCount=function(A){this.unseenNotificationCount=A;this.setPageTitle(this.pageTitle)};
_.P.handleUpdateNotificationsUnseenCountAction=function(A){_.q(A,MlM)&&((A=_.q(A,MlM).unseenCount)?this.setUnseenNotificationCount(A):this.setUnseenNotificationCount(0))};
_.P.handleClearCookieAction=function(A){var L;(A=(L=_.q(A,WkJ))==null?void 0:L.cookieName)&&_.PND(A)};
_.P.onYtUpdateUnseenNotificationCount=function(A,L){this.setUnseenNotificationCount(L)};
_.P.loadData=function(A){var L=this;this.loadDepsPromise.then(function(){var O=_.X5().resolve(_.Ot(_.Rl));O||_.C7(Error("al"));if(A&&A.response){if(!A.endpoint){var X=_.W3(window.document.location.href)||"/",x="";if(X==="/"||X.startsWith("/?"))x="WEB_PAGE_TYPE_BROWSE";A.endpoint={commandMetadata:{webCommandMetadata:{url:X,webPageType:x,rootVe:3854}}}}_.yPu(O,A.endpoint,A,5,{})}else A.endpoint?O.navigate(A.endpoint):O.navigate(_.K2);_.c1.cancelJob(L.zwiebackInitJobId);L.zwiebackInitJobId=_.c1.addLowPriorityJob(RBn)})};
var kM=function(){return _.X5().resolve(_.gU)};
ai.prototype.getDebugString=function(){return kM().getDebugString()};
ai.prototype.getThirdPartyManipulationSuspected=function(){return kM().getThirdPartyManipulationSuspected()};
ai.prototype.replaceState=function(A,L,O){kM().saveAndReplace(A,L,O)};
ai.prototype.saveAndPush=function(A,L,O,X){kM().saveAndPush(A,L,O,X)};
var qd7=function(A){return _.q(A.endpoint,_.$O)||_.q(A.endpoint,_.rM)?!0:!A||isNaN(A.expirationTime)?!1:(0,_.O$)()>A.expirationTime},wkJ=function(A,L,O){var X=A.get("response.trackingParams",O),x=_.Ch(),J=_.Fn();
if(X&&x&&J&&(X=A.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",O),!X&&O.rootVe&&(X=O.rootVe),x=L?"forwardButton":"backButton",L=A.get("playerResponse.topbar.desktopTopbarRenderer."+x+".buttonRenderer.command.clickTrackingParams",A.data),A=A.get("response.topbar.desktopTopbarRenderer."+x+".buttonRenderer.command.clickTrackingParams",A.data),L=(A=L||A)?_.lV(A):void 0,A=_.iV(),x=[_.DQ(O)],_.h7(A,X,L,{dataPromises:x,csnToClone:O.csn}),O.graftedVes))for(O=
_.d(O.graftedVes),X=O.next();!X.done;X=O.next())_.S9(A,X.value)};
ai.prototype.onStoreGraftedVeAction=function(A){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(A)):_.Rv(Error("bl"))};
var NIM=function(A,L){return L.filter(function(O){for(var X in O)if(bP$[X])return A.pendingPlayerOnResponseReceivedActions.push(O),!0;return!1})};
_.v2.Object.defineProperties(ai.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
ai.prototype.onStoreGraftedVeAction=ai.prototype.onStoreGraftedVeAction;ai.prototype.loadData=ai.prototype.loadData;ai.prototype.onYtUpdateUnseenNotificationCount=ai.prototype.onYtUpdateUnseenNotificationCount;ai.prototype.handleClearCookieAction=ai.prototype.handleClearCookieAction;ai.prototype.handleUpdateNotificationsUnseenCountAction=ai.prototype.handleUpdateNotificationsUnseenCountAction;ai.prototype.setUnseenNotificationCount=ai.prototype.setUnseenNotificationCount;
ai.prototype.onYtUpdateTitle=ai.prototype.onYtUpdateTitle;ai.prototype.setPageTitle=ai.prototype.setPageTitle;ai.prototype.onYtEndpointChangeHandler=ai.prototype.onYtEndpointChangeHandler;ai.prototype.onYtPageDataFetched=ai.prototype.onYtPageDataFetched;ai.prototype.handleNavigate=ai.prototype.handleNavigate;ai.prototype.onYtNavigate=ai.prototype.onYtNavigate;ai.prototype.onYtNavigateFinish=ai.prototype.onYtNavigateFinish;ai.prototype.onYtNavigateCache=ai.prototype.onYtNavigateCache;
ai.prototype.onYtNavigateError=ai.prototype.onYtNavigateError;ai.prototype.onYtNavigateStart=ai.prototype.onYtNavigateStart;ai.prototype.cancelPendingTasks=ai.prototype.cancelPendingTasks;ai.prototype.initHistoryManager=ai.prototype.initHistoryManager;ai.prototype.onYtHistoryLoad=ai.prototype.onYtHistoryLoad;ai.prototype.onYtHistoryPop=ai.prototype.onYtHistoryPop;ai.prototype.onYtNavigateSetPageOffset=ai.prototype.onYtNavigateSetPageOffset;ai.prototype.setPageOffset=ai.prototype.setPageOffset;
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],ai.prototype,"ytActionHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],ai.prototype,"data",void 0);_.I([_.by("yt-navigate-set-page-offset"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],ai.prototype,"onYtNavigateSetPageOffset",null);
_.I([_.by("yt-history-pop"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],ai.prototype,"onYtHistoryPop",null);_.I([_.by("yt-history-load"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event,_.JP7]),_.Z("design:returntype")],ai.prototype,"onYtHistoryLoad",null);_.I([_.by("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],ai.prototype,"onYtNavigate",null);
_.I([_.by("yt-update-title"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event,String]),_.Z("design:returntype")],ai.prototype,"onYtUpdateTitle",null);_.I([_.by("yt-update-unseen-notification-count"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event,Number]),_.Z("design:returntype")],ai.prototype,"onYtUpdateUnseenNotificationCount",null);_.I([_.p4()],ai);nZM.YtdAppBehavior=[_.es.YtActionHandlerBehavior,ai.prototype];var UH=function(){var A=_.wd.apply(this,arguments)||this;A._noAccessors=!0;return A};
_.g(UH,_.wd);UH.prototype.ready=function(){var A=this;_.YJ(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){A.onChange_()})};
UH.prototype.dataChanged_=function(){_.YJ(this.hostElement).querySelector("#checkbox").checked=!1};
UH.prototype.onChange_=function(){var A=_.YJ(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.P4(this.hostElement,"yt-dismissal-reason-"+A,this.data.feedbackToken)};
UH.prototype.dataChanged_=UH.prototype.dataChanged_;_.I([_.K(),_.Z("design:type",Object)],UH.prototype,"data",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],UH.prototype,"dataChanged_",null);_.I([_.p4()],UH);var r$J=[UH.prototype];var vj=function(){var A=_.wd.apply(this,arguments)||this;A.timeoutJobId=0;A.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return A};
_.g(vj,_.wd);vj.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
vj.prototype.startTimeout=function(){var A=this,L=this.data&&this.data.displayDurationSeconds;L&&!this.timeoutJobId&&(this.timeoutJobId=_.p7(_.c1,function(){_.dQ(A.hostElement,"yt-close-popup-action",[A.is]);A.timeoutJobId=0},L*1E3))};
vj.prototype.cancelTimeout=function(){_.c1.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
vj.prototype.ytdHatsSurveyBehaviorDataChanged=vj.prototype.ytdHatsSurveyBehaviorDataChanged;_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],vj.prototype,"ytActionHandlerBehavior",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vj.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.I([_.p4()],vj);var KLX=[_.es.YtActionHandlerBehavior,vj.prototype];var GwZ=function(A,L){var O;return((O=A.prefixMapping)==null?0:O[L])?A.prefixMapping[L]:A.SHARED_RENDERERS_.hasOwnProperty(L)?"yt":A.prefix},oi={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}};oi.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.h("kevlar_mealbar_above_player"),modern:_.h("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"}};
oi.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};oi.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};oi.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
oi.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)"}};
oi.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};
oi.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};
oi.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};
oi.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};oi.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"}};
oi.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};oi.TOAST={component:null,properties:{}};var lkX=new function(A,L,O){this.supportedPopups=A;this.navigationEndpointPopupMap=L;this.popupTypeMap=O;this.supportedPopups=A;this.navigationEndpointPopupMap=L;this.popupTypeMap=O}({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:_.h("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"}),c$J=new function(){this.prefix="ytd";this.prefixMapping=void 0;this.SHARED_RENDERERS_=
{aboutThisAdRenderer:!0,bubbleHintRenderer:!0,confirmDialogRenderer:!0,fancyDismissibleDialogRenderer:!0,mealbarPromoRenderer:!0,notificationActionRenderer:!0,reportDetailsFormRenderer:!0,reportFormModalRenderer:!0,sharingEmbedRenderer:!0,sharingRenderer:!0,showActionDialogRenderer:!0,sortFilterSubMenuPopupRenderer:!0,tooltipRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,upsellDialogRenderer:!0,ypcOffersModalRenderer:!0,
ypcUpgradeDialogRenderer:!0,loadingRenderer:!0,sheetViewModel:!0,miniAppGameInfoDialogViewModel:!0,profileCardViewModel:!0,genAiFeedbackFormViewModel:!0,dialogViewModel:!0,gulpTriggeringDialogViewModel:!0,imageEditorRenderer:!0,storiesViewerViewModel:!0};this.JSC$20816_popupConfig=oi;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 CxS=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.Z1.getInstance()},AX=function(A,L){var O=A.pageNameToElement.get(L);
if(!O){switch(L){case "watch":var X=_.h("web_watch_force_learning_journey_for_testing")?_.uv("ytd-watch-learning-journey"):_.h("kevlar_watch_fixie")?_.uv("ytd-watch-fixie"):_.h("kevlar_watch_grid")?_.uv("ytd-watch-grid"):_.uv("ytd-watch-flexy");break;case "learning_journey_watch":X=_.uv("ytd-watch-learning-journey");break;case "shorts":X=_.uv("ytd-shorts");break;case "search":X=_.uv("ytd-search");break;case "channel":X=_.uv("ytd-browse");X.pageSubtype="channels";break;case "trending":X=_.uv("ytd-browse");
X.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "learning_journey_browse":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":X=
_.uv("ytd-browse");X.pageSubtype=L;break;case "browse":X=_.uv("ytd-browse");break;default:_.Rv(new _.pe("Error getting page element for type",L))}O=X;A.pageNameToElement.set(L,O)}return O};
CxS.prototype.preparePage=function(A,L,O){O&&(A=_.qT(O)||A);if(A!=="watch"&&A!=="learning_journey_watch"){var X=this.elementPoolPopulator,x=A;x!=X.targetPage_&&X.pendingPages_.indexOf(x)>-1&&(X.targetPage_&&(X.pendingPages_.unshift(X.targetPage_),X.abort()),ivS(X,x),_.OgV(X,x))}if((X=AX(this,A))||!_.q(O,_.Hh)){X.isAttached||X===L||(X.hidden=!0);if(!X.data&&(A!=="watch"&&A!=="learning_journey_watch"||!_.h("swatcheroo_page_pool_dont_provide_filler_data"))){var J;if(A=(J=_.ms("FILLER_DATA",{})[A])==
null?void 0:J.response)X.data=A}return X}};var FLZ=function(A){this.JSC$33688_clientRoot=A;this.playlistHandlerActionMap={"yt-add-to-playlist-command":H4J,"yt-end-playlist-command":zBJ,"yt-recover-playlist-command":MqS,"yt-refresh-playlist-command":kKJ,"yt-playlist-remove-videos-action":$Rk};_.Bh(_.zu.getInstance(),this.playlistHandlerActionMap,this.JSC$33688_clientRoot);QGX()},RvX;var LN=function(A,L,O){this.apiKey=A;this.endpoint=L;this.confidenceThreshold=O===void 0?.5:O;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=L==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||L==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
L==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||L==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new I_z};
_.P=LN.prototype;
_.P.start=function(A){if(this.state===0)if(this.isOnline()){A.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=A.supportsHttpHeadersOverwriteParam);A.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=A.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.Fz("voice_assistant");_.QN("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=A.languageCode||"en-US";this.supportsCrossDomainXhr=A.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=A.youtubeAssistantRequest||null;this.listeningHandler=A.listeningHandler||this.listeningHandler;this.audioDetectedHandler=A.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=A.stopHandler||this.stopHandler;this.completeHandler=A.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=A.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=A.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
A.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=A.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=A.accessToken;this.additionalHeaders=A.additionalHeaders||{};var L;this.prefetchResponseTimeoutMs=(L=A.prefetchResponseTimeoutMs)!=null?L:this.prefetchResponseTimeoutMs;Q4B(this);this.startAudio();mf$(this)}else this.errorHandler("OFFLINE")};
_.P.stop=function(A){var L=A===void 0?{}:A;A=L.logCancel===void 0?!0:L.logCancel;var O=L.logMicClosed===void 0?!0:L.logMicClosed;var X=L.handleError===void 0?!0:L.handleError;L=L.handleStop===void 0?!0:L.handleStop;this.state!==0&&(A&&OD("voz_cx"),Xf(this,{logMicClosed:O,handleStop:L}),X&&this.errorHandler("ABORTED"))};
_.P.getState=function(){return this.state};
_.P.isSupported=function(){return!0};
_.P.stopAudio=function(A){(A===void 0||A)&&OD("voz_mf")};
_.P.startAudio=function(){OD("voz_vp");return _.DQ(null)};
var fkz=function(A,L){A.channelOpen&&(A.state!==2&&(A.state=2,OD("voz_ss"),A.listeningHandler()),L=new Uint8Array(L),L='{ "audioIn": "'+_.NQ(L)+'" }',A.channel.send(L))},Xf=function(A,L){var O=L===void 0?{}:L;
L=O.logMicClosed===void 0?!0:O.logMicClosed;O=O.handleStop===void 0?!0:O.handleStop;A.vozEndOfDataTimeout>-1&&(clearTimeout(A.vozEndOfDataTimeout),A.vozEndOfDataTimeout=-1);IkX(A);A.stopAudio(L);A.channel&&(A.channelOpen=!1,A.manuallyClosedChannel=!0,A.channel.close(),A.channel=void 0);A.transcribedSpeechResults=[];A.state=0;O&&A.stopHandler()},Q4B=function(A){var L={httpHeadersOverwriteParam:A.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},A.additionalHeaders,A.accessToken&&A.isUsingVoz?{Authorization:"Bearer "+A.accessToken}:{"x-goog-api-key":A.apiKey}),supportsCrossDomainXhr:A.supportsCrossDomainXhr};A.channel=new LS(A.endpoint,L);A.channel.open();_.CT(A.channel,"w",function(){var O=A.channel,X=O.send,x=A.isUsingVoz?"PLACEHOLDER":"example";x={config:{dialogStateIn:{languageCode:A.languageCode},deviceConfig:{deviceId:x,deviceModelId:x},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!A.isUsingVoz)x.config.requestType=4;else if(A.isUsingVoz&&A.youtubeAssistantRequest){var J=JSON.stringify(A.youtubeAssistantRequest);x.config.internalIn={youtubeAssistantS3InputJson:J}}X.call(O,x);A.channelOpen=!0;A.manuallyClosedChannel=!1});
_.CT(A.channel,"x",function(){A.manuallyClosedChannel||(A.channelOpen=!1,A.channel=void 0,Xf(A))});
_.CT(A.channel,"z",function(O){if(O.data){IkX(A);for(var X=0;X<O.data.length;X++){var x=A,J=O.data[X],Y=J.speechResults;if(Y)a:{var T=[];J=[];var V=!1;Y=_.d(Y);for(var E=Y.next();!E.done;E=Y.next()){E=E.value;if(E.noSpeech){Xf(x);x.errorHandler("NO_SPEECH");break a}E.transcript!==void 0&&E.stability!==void 0&&(E.stability<x.confidenceThreshold&&(V=!0),V?J.push(E.transcript):T.push(E.transcript))}if(T.length!==0||J.length!==0)T=T.join(" "),J=J.join(" "),x.receivedEndOfUtterance&&!x.isUsingVoz?x.isUsingVoz||
x.completeHandler([T,J]):(V=x,Y=T,E=J,OD("voz_sf"),V.transcriptionUpdateHandler(Y,E),V.transcribedSpeechResults=[Y,E]),x.receivedEndOfUtterance&&(OD("voz_eou"),x.transcriptionCompleteHandler([T,J]),x.isUsingVoz&&(x.prefetchResponseTimeoutMs===0?Xf(x,{logMicClosed:!1,handleStop:!0}):x.prefetchResponseTimeoutMs>0&&y$M(x)))}else x.isUsingVoz&&(J==null?0:J.internalOut)?(J=JSON.parse(J.internalOut.youtubeAssistantS3OutputJson),J.userHasOptedInToVaa||J.vaaConsent?x.vaaConsentUpdateHandler(!!J.userHasOptedInToVaa,
!!J.vaaConsent):(ZPM(x),J&&(T=x.transcribedSpeechResults,OD("voz_rqf"),x.completeHandler(T,J)))):J.eventType==="END_OF_UTTERANCE"?x.receivedEndOfUtterance=!0:(OD("voz_err"),x.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.Rv(Error("cl")))}}});
_.CT(A.channel,"y",function(O){Xf(A);switch(O.status){case 1:O="WEBCHANNEL_NETWORK_ERROR";break;case 2:O="WEBCHANNEL_SERVER_ERROR";break;default:O="WEBCHANNEL_UNKNOWN_ERROR"}A.errorHandler(O);A.logError(Error(O))})};
LN.prototype.logError=function(A){_.C7(A)};
LN.prototype.isOnline=function(){return!0};
var y$M=function(A){ZPM(A);A.prefetchResponseSetTimeoutId=setTimeout(function(){Xf(A,{logMicClosed:!1,handleStop:!0})},A.prefetchResponseTimeoutMs)},ZPM=function(A){A.prefetchResponseSetTimeoutId>-1&&(clearTimeout(A.prefetchResponseSetTimeoutId),A.prefetchResponseSetTimeoutId=-1)},mf$=function(A){IkX(A);
A.noResponseReceivedTimeout=window.setTimeout(function(){Xf(A);A.errorHandler("NO_SPEECH")},11E3)},IkX=function(A){A.noResponseReceivedTimeout>-1&&(window.clearTimeout(A.noResponseReceivedTimeout),A.noResponseReceivedTimeout=-1)},OD=function(A){_.Rk(A,void 0,"voice_assistant")};var xi=function(){LN.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.g(xi,LN);xi.prototype.isSupported=function(){return URX()};
xi.prototype.startAudio=function(){var A=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.Ry(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(X){j4X(A,X)};
this.processor.connect(this.audioContext.destination);var L=function(X){A.stream=X;if(!A.audioContext)return _.DQ(null);X=A.audioContext.createMediaStreamSource(X);A.processor&&X.connect(A.processor);return _.DQ(null)},O={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?L(this.stream):(O=navigator.mediaDevices.getUserMedia(O))?O.then(L).catch(function(X){Xf(A);X.name&&X.name==="NotAllowedError"?A.errorHandler("NO_MICROPHONE_PERMISSION"):(A.errorHandler("AUDIO_ERROR"),A.logError(X));return _.Ry(null)}):(Xf(this),this.errorHandler("AUDIO_ERROR"),_.Rv(Error("dl")));
return LN.prototype.startAudio.call(this)};
xi.prototype.stopAudio=function(A){A=A===void 0?!0:A;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(L){L.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;LN.prototype.stopAudio.call(this,A)};
xi.prototype.isOnline=function(){return navigator.onLine};
var j4X=function(A,L){if(A.audioContext)if(window.OfflineAudioContext){var O=A.audioContext.sampleRate,X=L.inputBuffer.getChannelData(0);L=new window.OfflineAudioContext(1,X.length,16E3);for(var x=L.createBuffer(1,X.length,O),J=x.getChannelData(0),Y=0,T=0;T<X.length;T++)J[T]=X[T],Y+=J[T]*J[T];!A.audioDetected&&Math.sqrt(Y/X.length)>.01&&(A.audioDetected=!0,A.audioDetectedHandler());X=L.createBufferSource();X.buffer=x;X.connect(L.destination);X.start(0);L.oncomplete=function(V){V=V.renderedBuffer.getChannelData(0);
for(var E=Math.floor(16384E3/O),n=new Int16Array(E),t=0;t<E;++t)n[t]=Math.max(-1,Math.min(1,V[t]))*32767;fkz(A,n.buffer)};
L.startRendering()}else WLB(A,L)},WLB=function(A,L){var O=A.audioContext.sampleRate,X=L.inputBuffer.getChannelData(0),x=Math.floor((O+8E3)/16E3);
O=X.length/x;L=new Float32Array(O);for(var J=0;J<O;++J)L[J]=X[J*x];X=new Int16Array(O);for(x=0;x<O;++x)X[x]=Math.max(-1,Math.min(1,L[x]))*32767;fkz(A,X.buffer)};var HPn={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var zvX=function(){this.JSC$20881_audioEnabled=!0;this.audioFeedbackHolder={}};
zvX.prototype.isPlaying=function(A){return A.currentTime>0&&!A.paused&&!A.ended&&A.readyState>2};
var BIM=function(A){for(var L=_.d(Object.values(HPn)),O=L.next();!O.done;O=L.next())O=O.value,A.audioFeedbackHolder[O]=new Audio,A.audioFeedbackHolder[O].src="/s/search/audio/"+O+".mp3",A.audioFeedbackHolder[O].load()},sD=function(A,L){if(A.JSC$20881_audioEnabled!==!1&&L in A.audioFeedbackHolder){for(var O=_.d(Object.values(A.audioFeedbackHolder)),X=O.next();!X.done;X=O.next())X=X.value,A.isPlaying(X)&&X.pause();
A.audioFeedbackHolder[L].currentTime=0;A.audioFeedbackHolder[L].play().catch(function(){})}};var MSS=function(A,L){var O=this;this.store=A;this.service=L;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){O.setState("offline");O.stop()};
this.audioPlayer=new zvX;var X;(X=this.audioPlayer)==null||BIM(X)};
_.P=MSS.prototype;_.P.getService=function(){return this.service};
_.P.isEnabled=function(){return!!this.service};
_.P.isSupported=function(){var A;return(A=this.service)==null?void 0:A.isSupported()};
_.P.start=function(){var A=this,L,O,X,x,J,Y,T,V,E,n,t,b,S;return _.u(function(w){switch(w.nextAddress){case 1:A.store.dispatch(Ul7("",""));if(!navigator.onLine)return A.setState("offline"),w.return();window.addEventListener("offline",A.handleOfflineEvent);A.stream=null;if(!A.permissionsSupported){w.jumpTo(2);break}_.e4(w,3);return w.yield($fk(A),5);case 5:L=w.yieldResult;if(!L)return(O=A.audioPlayer)==null||sD(O,"failure"),w.return();A.service.stream=A.stream;A.setState("listening");_.zA(w,2);break;
case 3:_.S4(w),A.permissionsSupported=!1;case 2:X={context:_.DTe(_.xo())},X.youtubeAssistantParams={searchParams:{inlineSearchResponse:A.enableInlineSearchResponse}},x=function(l,F){A.store.dispatch(vDS("transcribing"));A.store.dispatch(Ul7(l,F))},J=function(){var l;
(l=A.audioPlayer)==null||sD(l,"open");A.setState("listening")},Y=function(){A.setState("transcribing")},T=function(l){A.setErrorState(l)},V=function(l,F){var R;
(R=A.audioPlayer)==null||sD(R,"success");F&&(_.h("kevlar_voice_search_inline_search")&&(A.responseProcessor=_.X5().resolve(_.Rx_),A.responseProcessor&&(R=F.navigationAction,l=F.prefetchedSearchResponse,R&&l&&(R=(new _.qgz).JSC$14074_getStoreKey(R),_.aI(A.responseProcessor,l,R)))),A.JSC$20899_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",F))},E=function(){window.removeEventListener("offline",A.handleOfflineEvent)},n=_.gc9(!1),t=n.Authorization!=null,b=A.enableFirstPartyAuth||
A.enableFPAForSignedInUsers&&t?n:{"X-Goog-Visitor-Id":n["X-Goog-Visitor-Id"]},S={completeHandler:V,
errorHandler:T,listeningHandler:J,audioDetectedHandler:Y,stopHandler:E,transcriptionUpdateHandler:x,youtubeAssistantRequest:X,languageCode:akB(),additionalHeaders:b,supportsCrossDomainXhr:A.enableFirstPartyAuth||A.enableFPAForSignedInUsers&&t,supportsHttpHeadersOverwriteParam:!A.disableHttpHeadersOverwrite},A.service.start(S),_.qo(w)}})};
_.P.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.P.reset=function(){this.store.dispatch(_.JY({type:"RESET_VOICE_SEARCH_STATE"}))};
_.P.setState=function(A){this.store.dispatch(vDS(A))};
_.P.setErrorState=function(A){switch(A){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var L;(L=this.audioPlayer)==null||sD(L,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)$fk(this);else{var O;(O=this.audioPlayer)==null||sD(O,"failure");this.setState("permission-denied")}break;case "ABORTED":var X;(X=this.audioPlayer)==null||sD(X,"no_input");break;default:var x;(x=this.audioPlayer)==
null||sD(x,"no_input");this.setState("timeout")}};
var $fk=function(A){var L,O;return _.u(function(X){switch(X.nextAddress){case 1:return X.yield(navigator.permissions.query({name:"microphone"}),2);case 2:L=X.yieldResult;if(L.state==="granted")return X.return(!0);if(L.state==="denied")return A.setState("permission-denied"),X.return(!1);A.setState("permission");O={audio:{sampleSize:16,channelCount:1},video:!1};_.e4(X,3);return X.yield(navigator.mediaDevices.getUserMedia(O),5);case 5:return A.stream=X.yieldResult,X.return(!0);case 3:return _.S4(X),
A.setState("permission-denied"),X.return(!1)}})},akB=function(){var A=_.ms("INNERTUBE_CONTEXT_HL"),L=_.ms("INNERTUBE_CONTEXT_GL");
return A.indexOf("-")>-1?A:A+"-"+L};var kwz=function(A,L,O){MSS.call(this,L,O);this.JSC$20899_actionRouter=A;this.enableInlineSearchResponse=_.h("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.h("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.h("kevlar_voice_search_enable_fpa_signedin_users")},UfX;
_.g(kwz,MSS);
var vZS=function(){if(!UfX){var A="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.h("kevlar_voice_search_auth_enabled")||_.h("kevlar_voice_search_use_yt_endpoint")?A="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.h("kevlar_voice_search_use_fp_endpoint")&&(A="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");UfX=
new kwz(_.zu.getInstance(),_.Ai(),new xi(_.ms("VOZ_API_KEY"),A,.5))}return UfX};var oZM=function(A){this.JSC$20903_clientRoot=A;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$20903_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)]]));A=_.d(this.eventListeners);for(var L=A.next();!L.done;L=A.next()){var O=_.d(L.value);L=O.next().value;O=O.next().value;O=_.d(O);for(var X=O.next();!X.done;X=O.next()){var x=
_.d(X.value);X=x.next().value;x=x.next().value;L.addEventListener(X,x)}}_.Bh(_.zu.getInstance(),this.autonavPauseActionMap,this.JSC$20903_clientRoot)},AN7,LPX=function(A){return _.h("kevlar_autonav_popup_filtering")?(A=_.AT(A))?A.hasAttribute("prevent-autonav"):!0:!0};
_.P=oZM.prototype;_.P.onIronOverlayOpened=function(A){LPX(A)&&(this.autonavPauseReasons.overlayOpen=!0,JX(this))};
_.P.onIronOverlayClosed=function(A){LPX(A)&&(this.autonavPauseReasons.overlayOpen=!1,JX(this))};
_.P.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;JX(this)};
_.P.onYtAutonavPauseBlur=function(){var A=this;_.c1.addJob(function(){A.isInBackground()||(A.autonavPauseReasons.inputBoxFocus=!1,JX(A))},8,0)};
_.P.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;JX(this)};
_.P.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;JX(this)};
_.P.onYtAutonavPauseScroll=function(){var A=_.X5().resolve(_.JI);A.isOnWatch()&&(A=A.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=A.getBoundingClientRect().top<-200,JX(this))};
_.P.onYtAutonavPauseUserEngagement=function(A){var L=this;if(_.h("user_engagement_enable_autoplay_pause_feature")){var O=Number(A.lowEngagementThresholdMs);isNaN(O)||O<=0||A.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.nI("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.X5().resolve(_.m4),_.xw()<O?_.p7(_.c1,function(){_.nI("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.RLJ()?(this.userEngagementCsn=_.Fn(),_.p7(_.c1,function(){_.nI("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
L.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,JX(this)):_.nI("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.iuO(Error("el`"+JSON.stringify(A)))};
_.P.onYtAutonavPausePlayer=function(A){this.autonavPauseReasons.requestedByPlayer=!!A.detail;JX(this)};
_.P.onYtAutonavVisibilityChanged=function(){var A=this,L,O,X;return _.u(function(x){if(x.nextAddress==1)return(L=_.d0())?x.yield(L.getPlayerPromise(),2):x.return();O=x.yieldResult;X=O.isMuted()||O.getVolume()===0;A.autonavPauseReasons.backgroundAndMute=A.isInBackground()&&X;JX(A);_.qo(x)})};
_.P.onYtAutonavPausePlayerEnded=function(){_.X5().resolve(_.m4);var A=144E5;_.h("user_engagement_enable_autoplay_pause_feature")||_.h("is_part_of_any_user_engagement_experiment")||(A=45E5);this.autonavPauseReasons.longIdle=_.xw()>A;O0k(this);JX(this)};
_.P.onYtUserActivity=function(){var A=this;this.autonavPauseReasons.userEngagement&&(_.p7(_.c1,function(){_.nI("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",A.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,JX(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.p7(_.c1,function(){_.nI("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",A.userEngagementCsn);_.ch()}),this.autonavPauseReasons.youthereLactExperiment=!1,JX(this));
this.autonavPauseReasons.longIdle&&!_.h("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,JX(this))};
_.P.isInBackground=function(){var A=window.document.visibilityState;return!(!A||A==="visible")};
var JX=function(A){for(var L=!1,O=_.d(Object.values(A.autonavPauseReasons)),X=O.next();!X.done;X=O.next())X=X.value,L=L||X;L?_.Yq.getInstance().pause(A.autonavPauseReasons):(A=_.Yq.getInstance(),A.autonavState_==3?(A.setState(2,!1,!1),A.autonavPauseReason_=void 0):A.autonavState_==1&&(A.disabledAutonavPauseReason_=void 0))},O0k=function(A){var L=!1;
if(_.h("enable_autoplay_pause_by_lact")){_.X5().resolve(_.m4);L=_.PO("autoplay_pause_by_lact_sec")*1E3;var O=_.PO("autoplay_pause_by_lact_sampling_fraction");(L=_.xw()>=L&&Math.random()<O)&&!_.RLJ()&&(_.p7(_.c1,function(){_.nI("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),L=!1)}L!==A.autonavPauseReasons.youthereLactExperiment&&(A.autonavPauseReasons.youthereLactExperiment=L)&&(A.userEngagementCsn=_.Fn(),_.p7(_.c1,function(){_.nI("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",A.userEngagementCsn)}));
A.autonavPauseReasons.userEngagement&&_.p7(_.c1,function(){_.nI("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",A.userEngagementCsn)})};
oZM.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.nI("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.ch(),this.autonavPauseReasons.youthereLactExperiment=!1,JX(this));this.autonavPauseReasons.userEngagement&&(_.nI("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,JX(this))};
oZM.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var Pr=function(){var A=_.G.apply(this,arguments)||this;A.miniGuideVisible=!1;A.guideOpened=_.h("disable_initial_guide_state_fix")?!1:A.canFitPersistentGuide(A.initialBodyClientWidth);A.guideUserStateOpened=A.getInitialGuideUserStateOpened();A.isFullscreenShorts=!1;A.miniGuideWidthThreshold=_.PO("kevlar_mini_guide_width_threshold",791);A.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch".split(" ");A.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved).".split(" ");
A.persistentGuideBlockedPagePathRegex=new RegExp(A.persistentGuideBlockedPagesPatterns.join("|"));A.animationTransitionDuration=0;A.lateDataResolver=_.AI();A.initialGuideDataFetchFailed=!1;A.initialLoad=!0;A.guideRenderers=new Set;A.isMouseOverGuide=!1;A.sessionUserManuallyExpandedGuideState=!1;A.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};
return A};
_.g(Pr,_.G);_.P=Pr.prototype;_.P.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.P.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.P.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.P.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.P.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.P.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.P.ready=function(){_.X5().addProvider({provide:_.af,useValue:this.hostElement})};
_.P.attached=function(){var A=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.tT(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.tT(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.tT(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.tT(this,this.onYtGuideShow));_.kd(this,function(){A.animationTransitionDuration=200})};
_.P.detached=function(){document.removeEventListener("yt-navigate-finish",_.tT(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.tT(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.tT(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.tT(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.tT(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.tT(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.tT(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.P.getData=function(){return this.data};
_.P.load=function(){var A=this,L,O,X,x;return _.u(function(J){switch(J.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=A.lateDataResolver.resolve.bind(A),J.return(A.lateDataResolver.promise);if(window.ytInitialGuideData)return L=_.AI(),L.resolve(window.ytInitialGuideData),J.return(L.promise);X=!1;_.e4(J,2);return J.yield(A.fetchGuideData(),4);case 4:O=J.yieldResult;_.zA(J,3);break;case 2:x=_.S4(J),x.message==="Returned error"&&(X=
!0);case 3:if(O)return J.return(O);A.onYtGuideClose();X||(A.initialGuideDataFetchFailed=!0);return J.return(A.lateDataResolver.promise)}})};
_.P.fetchGuideData=function(){var A=this,L,O,X,x,J,Y,T;return _.u(function(V){if(V.nextAddress==1)return L=_.X5(),A.guidePromise||(O=L.resolve(_.Ia),A.guidePromise=_.oQ(O,UV7)),V.yield(A.guidePromise,2);if(V.nextAddress!=3)return X=V.yieldResult,x=L.resolve(_.dL),V.yield(x(),3);(J=V.yieldResult)&&((Y=X)==null?void 0:(T=Y.responseContext)==null?void 0:T.maxAgeSeconds)!==0&&J.put("service:guide:fallback",new _.bR({innertubeResponse:X}));return V.return(X)})};
_.P.initializeGuideDataIfEmpty=function(){var A=this,L,O;return _.u(function(X){if(X.nextAddress==1){if(!A.initialGuideDataFetchFailed||A.data)return X.return();_.e4(X,2);return X.yield(A.fetchGuideData(),4)}if(X.nextAddress!=2)return(L=X.yieldResult)&&A.lateDataResolver.resolve(L),_.zA(X,0);O=_.S4(X);_.Rv(O);_.qo(X)})};
_.P.initializeGuideData=function(){var A=this,L;return _.u(function(O){switch(O.nextAddress){case 1:return _.tR(EOM(),{mainAppWeb:_.aa()}),_.e4(O,2),O.yield(A.load(),4);case 4:A.data=O.yieldResult;_.zA(O,3);break;case 2:_.S4(O),_.bE(EOM(),"FAILURE");case 3:L=A.data&&A.data.items&&A.data.items.length>0?"SUCCESS":"FAILURE",_.bE(EOM(),L),_.qo(O)}})};
_.P.setGuideData=function(A){var L=this,O,X;return _.u(function(x){if(x.nextAddress==1)return L.disabled?x.return():L.data?(A.data=L.data,L.guideRenderers.add(A),x.return()):x.yield(L.initializeGuideData(),2);L.graftGuideToPage();O=_.fB("IS_HOMEPAGE_COLD")?"eop":void 0;_.h("disable_element_pool_populator")?L.setGuideDataAfterInit(A):(X=new _.Tf(1,O),_.V4(X,L.setGuideDataAfterInit.bind(L,A)));_.qo(x)})};
_.P.setGuideDataAfterInit=function(A){A.data=this.data;A.markDirty();this.guideRenderers.add(A);_.MR(function(){_.Rk("gle")});
_.kd(this,function(){_.Rk("gpe")})};
_.P.graftGuideToPage=function(){if(this.data){var A=this.data&&this.data.trackingParams;A&&(A=_.lV(A),_.qB(_.iV(),A))}};
_.P.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.tT(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.P.onDrawerOpenedChanged=function(A,L){!L.value&&this.guideOpened&&(this.guideOpened=!1)};
_.P.onYtGuideToggle=function(A){var L=this.guideOpened;this.guideOpened=!L;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var O=_.qG();_.gQ(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;O.save()}this.updateGuideDrawerElementState();if(this.guideElement){var X;this.guideOpened&&((X=A.detail)==null?0:X.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.tT(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.tT(this,this.onAppDrawerTransitioned))}L||this.initializeGuideDataIfEmpty()};
_.P.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.tT(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.$o(this.guideElement)};
_.P.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.tT(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(a7J(this.guideOpened))};
_.P.guidePersistentAndVisibleChanged=function(){_.YK(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.P.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.JY({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.P.miniGuideVisibleChanged=function(){_.YK(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.P.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(a7J(this.guideOpened)),this.initialLoad=!1);_.YK(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.P.activeEndpointChanged=function(){_.YK(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.P.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.P.onYtGuideShow=function(){this.forceMiniGuideClose=!1;this.guidePersistent=this.canFitPersistentGuide(this.cachedClientWidth);this.guideUserStateOpened&&this.guidePersistent?this.renderGuide=this.guideOpened=!0:this.guideOpened=!1;this.observeForMiniGuideVisible();this.updateGuideDrawerElementState()};
_.P.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var A=this.canFitPersistentGuide(this.cachedClientWidth);A?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=A}this.updateGuideDrawerElementState()};
_.P.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.P.getGuideOpened=function(){return this.guideOpened};
_.P.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.P.getActiveEndpoint=function(){return this.activeEndpoint};
_.P.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.P.updateGuideDrawerElementState=function(){this.guideElement&&(this.guidePersistent?this.disableGuideAnimation():this.guideElement.persistent?this.disableGuideAnimation():this.enableGuideAnimation(),this.guideElement.opened=this.guideOpened,this.guideElement.persistent=this.guidePersistent,this.guideOpened&&this.guidePersistent&&_.P4(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.P.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.h("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.P.handleGuideMouseLeave=function(){var A=this;!this.sessionUserManuallyExpandedGuideState&&_.h("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.$J(this,"handleGuideMouseLeave",function(){A.isMouseOverGuide||!A.guideOpened||A.miniGuideVisible||(A.guideOpened=!1,A.updateGuideDrawerElementState())},100))};
_.P.computeGuidePersistentAndVisible=function(){var A=this;_.$J(this,"computeGuidePersistentAndVisible",function(){A.guidePersistentAndVisible=A.guideOpened&&A.guidePersistent;A.guideIsVisibleButNotPersistent=!(!A.guideOpened||A.guidePersistent)})};
_.P.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.P.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.P.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.P.startLoadingWatch=function(){this.closeGuide()};
_.P.startLoadingShorts=function(){_.h("web_hide_guide_on_shorts")&&this.closeGuide()};
_.P.onYtNavigateFinish=function(A,L){if(!_.Ei||L){this.activeEndpoint=L.endpoint;this.pageType=L.pageType;this.pageUrl=L.response.url;var O,X;A=(X=_.q((O=L.endpoint)==null?void 0:O.commandMetadata,_.LM))==null?void 0:X.url;!this.pageUrl&&A&&(this.pageUrl=A);_.h("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.P.getVisibleGuideRenderer=function(){for(var A=_.d(this.guideRenderers),L=A.next();!L.done;L=A.next())if(L=L.value,this.miniGuideVisible&&L.is==="ytd-mini-guide-renderer"||this.guideOpened&&L.is==="ytd-guide-renderer")return L;return null};
_.P.markGuideRendererDirty=function(A){if(A){typeof A.markDirty==="function"&&A.markDirty();A=_.d([].concat(_.le(_.YJ(A).children)));for(var L=A.next();!L.done;L=A.next())this.markGuideRendererDirty(L.value)}};
_.P.persistentGuideEnabled=function(A,L){if(!L||A==="watch"||A==="settings"||A==="shorts"&&this.isFullscreenShorts||_.h("reels_web_disable_persistent_guide_shorts")&&A==="shorts")return!1;var O=_.eh(L)||"";return _.h("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(X){return O===X}):!this.persistentGuideBlockedPagePathRegex.test(O)};
_.P.canFitPersistentGuide=function(A){var L=_.PO("kevlar_persistent_guide_width_threshold",1312);return L===-1||_.h("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:A>L};
_.P.canFitMiniGuide=function(A){return this.miniGuideWidthThreshold===-1?!1:A>this.miniGuideWidthThreshold};
_.P.onResize=function(){var A=this;_.$J(this,"calculateGuideState",function(){A.onResizeDebounced()})};
_.P.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.P.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.P.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.P.getInitialGuideUserStateOpened=function(){return _.h("web_force_mini_guide_default")?!1:!_.qG().getFlag(109)};
_.v2.Object.defineProperties(Pr.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.ms("initialBodyClientWidth")||window.innerWidth}}});
Pr.prototype.onResize=Pr.prototype.onResize;Pr.prototype.observeForMiniGuideVisible=Pr.prototype.observeForMiniGuideVisible;Pr.prototype.computeGuidePersistentAndVisible=Pr.prototype.computeGuidePersistentAndVisible;Pr.prototype.cachedClientWidthChanged=Pr.prototype.cachedClientWidthChanged;Pr.prototype.resetGuide=Pr.prototype.resetGuide;Pr.prototype.activeEndpointChanged=Pr.prototype.activeEndpointChanged;Pr.prototype.guideOpenedChanged=Pr.prototype.guideOpenedChanged;
Pr.prototype.miniGuideVisibleChanged=Pr.prototype.miniGuideVisibleChanged;Pr.prototype.guideIsVisibleButNotPersistentChanged=Pr.prototype.guideIsVisibleButNotPersistentChanged;Pr.prototype.guidePersistentAndVisibleChanged=Pr.prototype.guidePersistentAndVisibleChanged;Pr.prototype.onGuideElementChanged=Pr.prototype.onGuideElementChanged;Pr.prototype.onGuidePersistentChanged=Pr.prototype.onGuidePersistentChanged;Pr.prototype.onRenderGuideChanged=Pr.prototype.onRenderGuideChanged;
Pr.prototype.onActiveEndpointChanged=Pr.prototype.onActiveEndpointChanged;Pr.prototype.onMiniGuideVisibleChanged=Pr.prototype.onMiniGuideVisibleChanged;Pr.prototype.onGuideIsVisibleButNotPersistentChanged=Pr.prototype.onGuideIsVisibleButNotPersistentChanged;Pr.prototype.onGuidePersistendAndVisibleChanged=Pr.prototype.onGuidePersistendAndVisibleChanged;_.I([_.N(_.y9),_.Z("design:type",Object)],Pr.prototype,"ironResizableBehavior",void 0);
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],Pr.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],Pr.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],Pr.prototype,"ytdReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Pr.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Boolean)],Pr.prototype,"disabled",void 0);
_.I([_.K(),_.Z("design:type",Boolean)],Pr.prototype,"guidePersistentAndVisible",void 0);_.I([_.hT("guidePersistentAndVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Pr.prototype,"onGuidePersistendAndVisibleChanged",null);_.I([_.K(),_.Z("design:type",Boolean)],Pr.prototype,"guideIsVisibleButNotPersistent",void 0);
_.I([_.hT("guideIsVisibleButNotPersistent"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Pr.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.I([_.K(),_.Z("design:type",Object)],Pr.prototype,"miniGuideVisible",void 0);_.I([_.hT("miniGuideVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Pr.prototype,"onMiniGuideVisibleChanged",null);_.I([_.K(),_.Z("design:type",Boolean)],Pr.prototype,"forceMiniGuideClose",void 0);
_.I([_.K(),_.Z("design:type",Object)],Pr.prototype,"activeEndpoint",void 0);_.I([_.hT("activeEndpoint"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Pr.prototype,"onActiveEndpointChanged",null);_.I([_.K(),_.Z("design:type",Boolean)],Pr.prototype,"renderGuide",void 0);_.I([_.hT("renderGuide"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Pr.prototype,"onRenderGuideChanged",null);
_.I([_.K(),_.Z("design:type",Object)],Pr.prototype,"guideOpened",void 0);_.I([_.K(),_.Z("design:type",Boolean)],Pr.prototype,"guidePersistent",void 0);_.I([_.hT("guidePersistent"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Pr.prototype,"onGuidePersistentChanged",null);_.I([_.K(),_.Z("design:type",Object)],Pr.prototype,"guideUserStateOpened",void 0);_.I([_.K(),_.Z("design:type",String)],Pr.prototype,"pageUrl",void 0);
_.I([_.K(),_.Z("design:type",String)],Pr.prototype,"pageType",void 0);_.I([_.K(),_.Z("design:type",Number)],Pr.prototype,"cachedClientWidth",void 0);_.I([_.K(),_.Z("design:type",Object)],Pr.prototype,"guideElement",void 0);_.I([_.K({selector:_.bI}),_.Z("design:type",Object)],Pr.prototype,"isFullscreenShorts",void 0);_.I([_.hT("guideElement"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Pr.prototype,"onGuideElementChanged",null);
_.I([_.hT("guidePersistentAndVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Pr.prototype,"guidePersistentAndVisibleChanged",null);_.I([_.iy("guideIsVisibleButNotPersistent"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Pr.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.I([_.hT("miniGuideVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Pr.prototype,"miniGuideVisibleChanged",null);_.I([_.iy("guideOpened"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Pr.prototype,"guideOpenedChanged",null);_.I([_.hT("activeEndpoint"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Pr.prototype,"activeEndpointChanged",null);
_.I([_.iy("pageUrl"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Pr.prototype,"resetGuide",null);_.I([_.iy("cachedClientWidth"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Pr.prototype,"cachedClientWidthChanged",null);_.I([_.hT("guideOpened","guidePersistent"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Pr.prototype,"computeGuidePersistentAndVisible",null);
_.I([_.iy("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Pr.prototype,"observeForMiniGuideVisible",null);_.I([_.by("iron-resize"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Pr.prototype,"onResize",null);_.I([_.Q({disableElementRegistration:!0,is:"yt-guide-manager"})],Pr);var XQJ=_.m(Pr,"yt-guide-manager",void 0,{mode:_.e5("kevlar_poly_si_batch_j081")?1:2});var d$=function(){var A=_.G.apply(this,arguments)||this;A.JSC$20913_keyboardInUse=!1;A.boundHandleCapturedKeydownEvent=function(L){A.handleCapturedKeydownEvent(L)};
return A};
_.g(d$,_.G);_.P=d$.prototype;_.P.attached=function(){this.listenToDocument(document)};
_.P.listenToDocument=function(A){A.addEventListener("keydown",_.tT(this,this.onKeyDownEvent));A.addEventListener("keyup",_.tT(this,this.onKeyUpEvent));A.addEventListener("mousedown",_.tT(this,this.onMouseDownEvent));_.h("desktop_keyboard_capture_keydown_killswitch")||A.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);A.addEventListener("yt-page-data-updated",_.tT(this,this.onPageUpdate))};
_.P.detached=function(){this.unlistenFromDocument(document)};
_.P.unlistenFromDocument=function(A){A.removeEventListener("keydown",_.tT(this,this.onKeyDownEvent));A.removeEventListener("keyup",_.tT(this,this.onKeyUpEvent));A.removeEventListener("mousedown",_.tT(this,this.onMouseDownEvent));_.h("desktop_keyboard_capture_keydown_killswitch")||A.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);A.removeEventListener("yt-page-data-updated",_.tT(this,this.onPageUpdate))};
_.P.ready=function(){_.X5().addProvider({provide:_.bv,useValue:this})};
_.P.isKeyBoardInUse=function(){return this.JSC$20913_keyboardInUse};
_.P.handleCapturedKeydownEvent=function(A){if(A.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(A)};
_.P.onMouseDownEvent=function(){this.JSC$20913_keyboardInUse=!1};
_.P.onPageUpdate=function(){if(_.h("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.h("web_shorts_keyboard_shortcut_usage_log")){_.qc.clear();for(var A=_.d(_.h5),L=A.next();!L.done;L=A.next()){var O=_.d(L.value);L=O.next().value;O=O.next().value;O=_.tI(O);_.qc.set(L,O);_.W4(_.Fn(),_.Ch(),O)}_.g8.clear();A=_.d(_.S1);for(L=A.next();!L.done;L=A.next())O=_.d(L.value),L=O.next().value,O=O.next().value,O=_.tI(O),_.g8.set(L,O),_.W4(_.Fn(),_.Ch(),O);_.H4(_.Fn(),_.Ch(),[].concat(_.le(_.g8.values()),
_.le(_.qc.values())));_.B4(_.Fn(),[].concat(_.le(_.g8.values()),_.le(_.qc.values())))}};
_.P.onMiniplayerActiveChange=function(){var A;(A=_.X5().resolve(_.z_).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(A.document):this.unlistenFromDocument(A.document))};
_.P.ignoreKeyEvent=function(A){if(A.ctrlKey||A.altKey)if(_.h("kevlar_macro_markers_keyboard_shortcut")){if(A.keyCode!==37&&A.keyCode!==39)return!0}else return!0;var L=_.oa(A)||[];return _.fZn(L)?(_.h("web_button_or_anchor_list_item")&&jkM(L,A)&&(this.JSC$20913_keyboardInUse=!0),!0):A.defaultPrevented?(Qg(A.keyCode,A.shiftKey,this.isShortsPage),!0):A.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(A):!1};
_.P.isSpacebarClick=function(A){var L=A||window.event;var O;L.composedPath&&typeof L.composedPath==="function"?O=L.composedPath():O=L.path;O&&O.length?L=O[0]:(L=L||window.event,L=L.target||L.srcElement,L.nodeType==3&&(L=L.parentNode));return L&&A.keyCode===32&&(A=L.tagName==="BUTTON"||L.tagName==="A"||L.tagName==="INPUT",L=(L=L.getAttribute("role"))&&(L==="option"||L==="button"||L.indexOf("menuitem")===0),A||L)?!0:!1};
_.P.onKeyDownEvent=function(A){if(!this.ignoreKeyEvent(A)&&(A.keyCode===191&&(A.shiftKey||A.metaKey?A.repeat!=null&&A.repeat||(this.openHotkeyDialog(),Qg(A.keyCode,A.shiftKey,this.isShortsPage)):(this.focusSearchBox(),A.preventDefault())),!A.metaKey)){var L=_.X5().resolve(_.z_);switch(A.keyCode){case 9:this.JSC$20913_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(A);break;case 84:L.pipController.getWindow()&&window.focus();this.toggleTheaterMode(A.keyCode,A.shiftKey);break;case 73:L.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(A.keyCode,A.shiftKey);break;case 70:if(this.isShortsPage&&_.h("web_fullscreen_shorts")){_.IZn();break}this.isMiniplayerActive()?L.pipController.getWindow()&&(L.close(!0),window.focus()):this.passEventToPlayer(A);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(A.keyCode,A.shiftKey):this.closeMiniplayer(A.keyCode,A.shiftKey)||this.passEventToPlayer(A);break;case 13:A.shiftKey&&_.X5().resolve(_.c5).activate(A);break;default:this.passEventToPlayer(A)}}};
_.P.onKeyUpEvent=function(A){if(!this.ignoreKeyEvent(A))if(_.h("web_speedmaster_spacebar_control")&&A.keyCode===32)this.handlePlayerSpaceKey(A,!0);else{var L=this.getPlayerManager();L&&(L=L.getPlayer())&&L.handleGlobalKeyUp(A.keyCode,A.shiftKey,A.ctrlKey,A.altKey,A.metaKey,A.key,A.code)}};
_.P.getPlayerManager=function(){var A=_.d0(),L=_.X5().resolve(_.Ot(_.JI));return A&&L&&L.isOnWatch()?A:null};
_.P.passEventToPlayer=function(A,L){var O=this,X,x,J,Y;return _.u(function(T){if(T.nextAddress==1){if(!_.h("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&O.isMiniplayerActive())X=_.X5().resolve(_.z_).getPlayerElement();else if(O.inlinePreviewIsActive){if(x=_.YK(O.hostElement,"yt-get-inline-preview-player-action"),(J=x)==null?0:J[0])X=x[0]}else X=_.d0();return X?T.yield(X.getPlayerPromise(),3):T.jumpTo(0)}Y=T.yieldResult;L?Y.handleGlobalKeyUp(A.keyCode,A.shiftKey,A.ctrlKey,A.altKey,A.metaKey,
A.key,A.code):Y.handleGlobalKeyDown(A.keyCode,A.shiftKey,A.ctrlKey,A.altKey,A.metaKey,A.key,A.code,A.repeat);A.keyCode!==38&&A.keyCode!==40&&Qg(A.keyCode,A.shiftKey,O.isShortsPage);_.qo(T)})};
_.P.focusSearchBox=function(){_.P4(this.hostElement,"yt-focus-searchbox")};
_.P.openHotkeyDialog=function(){_.P4(this.hostElement,"yt-open-hotkey-dialog")};
_.P.isMiniplayerActive=function(){return _.X5().resolve(_.z_).isMiniplayerActive()};
_.P.closeMiniplayer=function(A,L){return this.isMiniplayerActive()?(_.X5().resolve(_.z_).close(),Qg(A,L,this.isShortsPage),!0):!1};
_.P.toggleTheaterMode=function(A,L){var O=_.jt(_.Ai().getState()),X=this.getPlayerManager(),x=_.h("disable_theater_mode_keyboard")||_.fB("START_IN_FULL_WINDOW_MODE");X&&!x&&(O=!O,_.O0()&&_.h("external_fullscreen")&&(O=!0),_.dQ(this.hostElement,"yt-toggle-theater-mode",[O]),Qg(A,L,this.isShortsPage))};
_.P.toggleMiniplayer=function(A,L){var O=this.getPlayerManager();if(this.isMiniplayerActive()){var X;((X=_.X5().resolve(_.Ot(_.JI)))==null?0:X.isOnWatch())?_.X5().resolve(_.z_).close(!0):_.jB(_.X5().resolve(_.z_));Qg(A,L,this.isShortsPage)}else O&&(_.dQ(this.hostElement,"yt-activate-miniplayer-from-watch-action"),Qg(A,L,this.isShortsPage))};
_.P.handlePlayerSpaceKey=function(A,L){var O=!!_.d0()||this.isMiniplayerActive();O=_.h("disable_space_scroll_fix")||O;_.h("global_spacebar_pause")&&!this.isKeyBoardInUse()&&O&&(A.preventDefault(),this.passEventToPlayer(A,L))};
_.P.isPresentingTheaterMode=function(){return _.h("web_watch_enable_tm_esc_key")?_.jt(_.Ai().getState())&&!_.O0():!1};
d$.prototype.onMiniplayerActiveChange=d$.prototype.onMiniplayerActiveChange;_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],d$.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],d$.prototype,"ytdReduxBehavior",void 0);_.I([_.K({selector:_.jsJ}),_.Z("design:type",Boolean)],d$.prototype,"inlinePreviewIsActive",void 0);_.I([_.K({selector:_.KOJ}),_.Z("design:type",Boolean)],d$.prototype,"isShortsPage",void 0);
_.I([_.K({selector:_.Qi}),_.Z("design:type",Boolean)],d$.prototype,"miniplayerIsActive",void 0);_.I([_.hT("miniplayerIsActive"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],d$.prototype,"onMiniplayerActiveChange",null);_.I([_.Q({disableElementRegistration:!0,is:"yt-hotkey-manager"})],d$);_.m(d$,"yt-hotkey-manager",void 0,{mode:_.e5("kevlar_poly_si_batch_j081")?1:2});var Yi=function(){var A=_.G.apply(this,arguments)||this;A.loopStateEntityKey_=null;A.playlistLoopStateEntity_=null;A.isShuffleNextPlaylist=!1;A.PLAYER_EVENTS_=new Map;A.playerListenersSetup_=!1;A.videoSkipJob_=0;A.canAutoAdvance_=!1;A.playerManager_=null;A.TEST_ONLY={};return A};
_.g(Yi,_.G);_.P=Yi.prototype;_.P.ready=function(){_.X5().addProvider({provide:_.$q,useValue:this.hostElement})};
_.P.created=function(){this.PLAYER_EVENTS_.set("onPlaylistNext",this.onPlaylistNext);this.PLAYER_EVENTS_.set("onPlaylistPrevious",this.onPlaylistPrevious);this.PLAYER_EVENTS_.set("onPlaylistIndex",this.onPlaylistIndex_);this.PLAYER_EVENTS_.set("onStateChange",this.onPlayerStateChange_);this.PLAYER_EVENTS_.set("onLoopChange",this.onPlayerLoopChange_);this.PLAYER_EVENTS_.set("onSleepTimerSettingsChanged",this.onSleepTimerSettingsChanged_)};
_.P.attached=function(){document.addEventListener("yt-navigate-start",_.tT(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.tT(this,this.onYtNavigateFinish_))};
_.P.detached=function(){document.removeEventListener("yt-navigate-start",_.tT(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.tT(this,this.onYtNavigateFinish_))};
_.P.updatePlaylistEventListeners=function(A,L){L&&!this.playerListenersSetup_?(this.playerManager_=A,this.registerPlaylistEventListeners_(A)):!L&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(A))};
_.P.setPlayer=function(A){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=A};
_.P.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.P.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.P.registerPlaylistEventListeners_=function(A){var L=this;A.getPlayerPromise().then(function(O){L.playerListenersSetup_||(L.ytPlayerListenerBehavior.listenToPlayerEvents(O,L.PLAYER_EVENTS_),L.playerListenersSetup_=!0)})};
_.P.removePlaylistEventListeners_=function(A){var L=this;A.getPlayerPromise().then(function(O){L.playerListenersSetup_&&(L.ytPlayerListenerBehavior.unlistenFromPlayerEvents(O,L.PLAYER_EVENTS_),L.playerListenersSetup_=!1)})};
_.P.setPlaylistComponent=function(A){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.tT(this,this.onPlaylistYtNavigate_)),A&&(A.data&&this.playlistComponent.data&&A.data.playlistId==this.playlistComponent.data.playlistId?(A.loopOn=this.playlistComponent.loopOn,A.shuffleOn=this.playlistComponent.shuffleOn):(A.loopOn=!1,A.shuffleOn=!1),this.isShuffleNextPlaylist&&(A.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=A;this.playlistComponent.addEventListener("yt-navigate",
_.tT(this,this.onPlaylistYtNavigate_))};
_.P.setAutoplayRenderer=function(A){this.autoplayData=A};
_.P.setPlaylistData=function(A){this.currentPlaylistData_=A;_.P4(this.hostElement,"yt-playlist-data-updated");_.lW.isEmpty(A)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(A)};
_.P.setPlayerPlaybackControlData=function(A){this.playerManager_&&this.playerManager_.updatePlayerComponents(A.playlistPanelRenderer)};
_.P.getPlaylistData=function(){return this.currentPlaylistData_};
_.P.getTempData_=function(A,L){if(this.playlistComponent==null)return null;A={};this.playlistComponent.shuffleOn&&(A.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(A.loop_on=this.playlistComponent.loopOn);L&&(A.autonav="1",_.X5().resolve(_.m4),L=_.xw(),L>0&&(A.lact=L),this.playerManager_&&(L=this.playerManager_.getPlayer())&&L.shouldSendVisibilityState()&&(L=L.getVisibilityState(),L!=0&&(A.vis=L)));_.h("enable_unknown_lact_fix_on_html5")&&(_.X5().resolve(_.m4),A.lact=
_.xw());return A};
_.P.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.P.setLoopStateEntityKey_=function(A){var L;this.loopStateEntityKey_=((L=this.getPlaylistLoopData_(A))==null?void 0:L.playlistLoopStateEntityKey)||null};
_.P.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.P.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.P.skipVideo=function(){var A=this,L=_.h("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||L)L=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.GP(_.c1,function(){A.onPlaylistNext();A.videoSkipJob_=0},L)};
_.P.cancelVideoSkip=function(){this.videoSkipJob_&&(_.c1.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.P.isInBackground_=function(){var A=window.document.visibilityState;return!(!A||A=="visible")};
_.P.onPlaylistIndex_=function(A){this.playlistComponent&&(A=this.playlistComponent.data.contents[A].playlistPanelVideoRenderer.navigationEndpoint,_.P4(this.hostElement,"yt-navigate",{endpoint:A,tempData:this.getTempData_(A)}))};
_.P.onPlayerStateChange_=function(A){if(A=A==0&&this.playlistComponent&&this.canAutoAdvance_)A=_.Yq.getInstance(),A=!(A.autonavState_===3?A.autonavPauseReason_&&A.autonavPauseReason_.inputBoxFocus===!0:A.autonavState_===1&&A.disabledAutonavPauseReason_&&A.disabledAutonavPauseReason_.inputBoxFocus===!0);A&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.P.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.P.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.P.navigateToAutoplayWatchEndpoint_=function(A,L,O){var X=this.playlistComponent.data.currentIndex,x=this.getNumPlayableVideos_();A=="NORMAL"&&L=="autoplayVideo"&&X+1>=x&&O||!(A=this.getVideoEndpoint_(A,L))||(O=this.getTempData_(A,O),_.P4(this.hostElement,"yt-navigate",{endpoint:A,tempData:O}))};
_.P.getNumPlayableVideos_=function(){for(var A=0,L=_.d(this.playlistComponent.data.contents||[]),O=L.next();!O.done;O=L.next())O.value.playlistPanelVideoRenderer&&(A+=1);return A};
_.P.getVideoEndpoint_=function(A,L){if(this.autoplayData&&this.autoplayData.sets)for(var O=0,X=this.autoplayData.sets.length;O<X;O++){var x=this.autoplayData.sets[O];if(x.mode==A){if(x[L])return x[L];break}}else A=new _.pe("AutoplayData is undefined in playlist manager","Mode: "+A+" endpoint: "+L),_.Rv(A)};
_.P.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.P.onPlaylistYtNavigate_=function(A){if(A.detail.endpoint){A.stopPropagation();var L=A.detail;L.tempData=this.getTempData_(A.detail.endpoint);_.P4(this.hostElement,"yt-navigate",L)}};
_.P.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.P.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.P.playlistLoopStateEntityChanged_=function(A){var L=this,O,X,x;return _.u(function(J){if(J.nextAddress==1){if(!A)return J.return();O=A.state==="PLAYLIST_LOOP_STATE_ONE";return L.playerManager_?J.yield(L.playerManager_.getPlayerPromise(),3):J.jumpTo(2)}J.nextAddress!=2&&(X=J.yieldResult,X.setLoopVideo(O));x=A.state==="PLAYLIST_LOOP_STATE_ALL";L.playlistComponent&&(L.playlistComponent.loopOn=x);_.qo(J)})};
_.P.getPlaylistLoopData_=function(A){var L,O;if(A=A==null?void 0:(L=A.playlistButtons)==null?void 0:(O=L.menuRenderer)==null?void 0:O.topLevelButtons)for(L=_.d(A),O=L.next();!O.done;O=L.next())if(O=O.value,O.playlistLoopButtonRenderer)return O.playlistLoopButtonRenderer};
_.P.getLoopStateCommand_=function(A){var L=this.getPlaylistData(),O;L=((O=this.getPlaylistLoopData_(L))==null?void 0:O.states)||[];var X;A=(X=_.q(L[A?1:2],_.aPc))==null?void 0:X.button;var x;return(x=_.q(A,_.$t))==null?void 0:x.command};
_.P.onPlayerLoopChange_=function(A){this.playlistLoopStateEntity_&&(A?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(A=this.getLoopStateCommand_(A))&&this.ytComponentBehavior.resolveCommand(A)};
_.P.onSleepTimerSettingsChanged_=function(A){this.canAutoAdvance_=A!=="End of video"};
Yi.prototype.onPlaylistLoopStateEntityChanged=Yi.prototype.onPlaylistLoopStateEntityChanged;_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],Yi.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.LE.YtPlayerListenerBehavior),_.Z("design:type",_.Oo)],Yi.prototype,"ytPlayerListenerBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],Yi.prototype,"ytdReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Yi.prototype,"loopStateEntityKey_",void 0);
_.I([_.K({selectorArgs:["loopStateEntityKey_"],selector:_.$8r}),_.Z("design:type",Object)],Yi.prototype,"playlistLoopStateEntity_",void 0);_.I([_.hT("playlistLoopStateEntity_"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Yi.prototype,"onPlaylistLoopStateEntityChanged",null);_.I([_.Q({disableElementRegistration:!0,is:"yt-playlist-manager"})],Yi);_.m(Yi,"yt-playlist-manager",void 0,{mode:_.e5("kevlar_poly_si_batch_j081")?1:2});var xLJ,sEX=function(){if(xLJ!==void 0)return xLJ;var A=document.createElement("template");_.p(A,"\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");A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return xLJ=A};var uC=function(){var A=_.G.apply(this,arguments)||this;A.lastCallback=null;A.getAccountLinkPromises={};A.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);A.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return A};
_.g(uC,_.G);_.P=uC.prototype;_.P.getLocation=function(){return window.location.href};
_.P.getCompletionUrl=function(){return _.v3(this.getLocation())};
_.P.containsRedirectState=function(A){return(A=_.RI(_.NL9(A)))?(new URLSearchParams(A)).get("redirect_state")!==null:!1};
_.P.createGalConfig=function(A,L){var O=new b5J;A=O=L?this.getPopupOrRedirectSetting(O,_.ms("LINK_API_KEY"),_.ms("LINK_API_KEY_REDIRECT"),A):hbM(O,_.ms("LINK_API_KEY"));A.authUser=_.ms("SESSION_INDEX")||0;A.supportedFlows=new Set([4]);return A.build()};
_.P.getPopupOrRedirectSetting=function(A,L,O,X){this.isGalInteractionPopupMode(X)?(A.interactionMode=0,A=hbM(A,L)):(A.interactionMode=1,L=this.getCompletionUrl(),A.completionUrl=L,A=hbM(A,O));return A};
_.P.isGalInteractionPopupMode=function(A){if(this.redirectModeProviderAllowlist.has(A))switch(A){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.P.getStatusEntityKeyForProviderId=function(A){return _.Dn(A+":all","accountLinkStatusEntity")};
_.P.findNestedPropValue=function(A,L){var O=!1,X=null;JSON.stringify(A,function(x,J){O||x!==L||(O=!0,X=J);return O?null:J});
return X};
_.P.findAccountLinkButtonViewModel=function(A,L){var O=null,X=!1;JSON.stringify(A,function(x,J){X||J.accountLinkStatusEntityKey!==L||J.accountLinkStatusSecondaryEntityKey||(X=!0,O=J);return X?null:J});
return O};
_.P.executeLinkingSuccessOrFailureCommands=function(A,L,O){var X=null,x;(L==null?0:(x=L.url)==null?0:x.includes("account_sharing"))?X=L==null?void 0:L.response:X=L==null?void 0:L.response;(L=this.findAccountLinkButtonViewModel(X,A))?(A=O?this.findNestedPropValue(L,"onSuccessCommand"):this.findNestedPropValue(L,"onFailureCommand"))?_.E0([A],this.hostElement):_.HY(Error("fl")):_.HY(Error("gl`"+A))};
_.P.handleInitializeRequest=function(A,L){var O=this,X=yYS(this.createGalConfig(A,!0));this.containsRedirectState(this.getLocation())?RDM(A,X.config,X.galService).then(function(x){var J=O.getStatusEntityKeyForProviderId(A);if(x.statusCode===1)L&&O.executeLinkingSuccessOrFailureCommands(J,L,!0),x=O.getLocation().indexOf("#"),x!==-1&&window.history.pushState(null,"",O.getLocation().substring(0,x));else return L&&O.executeLinkingSuccessOrFailureCommands(J,L,!1),Promise.reject(Error(x.statusMessage))}).catch(function(x){_.Rv(x);
_.lg("gamingAccountLinkStatusChanged",{serviceId:A,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(x)}):this.getAccountLinkPromises[A]=X.startLinkingSession({serviceId:A})};
_.P.handleAccountLinkCommand=function(A){_.q(A,srX)&&this.handleLinkRequest(_.q(A,srX))};
_.P.handleLinkRequest=function(A){var L=this,O=A.thirdPartyId;if(O)if(this.isGalInteractionPopupMode(O)){var X=function(){L.closeAndFire("ytd-gaming-account-link-setting-renderer",A.onFailureCommand)},x=function(){L.closeAndFire("ytd-gaming-account-link-setting-renderer",A.onSuccessCommand)};
this.lastCallback=x;this.getAccountLinkPromises[O].then(function(J){vjz(J).then(function(Y){Y.statusCode===1?x():X()})}).catch(function(){X()})}else this.getAccountLinkPromises[O].then(function(J){vjz(J).then(function(Y){if(Y.statusCode!==1)return Promise.reject(Error(Y.statusMessage))})}).catch(function(J){_.Rv(J);
_.lg("gamingAccountLinkStatusChanged",{serviceId:O,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(J)})};
_.P.closeAndFire=function(A,L){_.dQ(this.hostElement,"yt-close-popup-action",[A]);L&&_.E0([L],this.hostElement)};
_.P.handleAccountUnlinkCommand=function(A){_.q(A,JMX)&&this.handleUnlinkRequest(_.q(A,JMX))};
_.P.handleUnlinkRequest=function(A){var L=this,O=A.thirdPartyId;if(O){var X=function(){L.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",A.onFailureCommand)},x=function(){L.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",A.onSuccessCommand)};
this.lastCallback=x;var J=yYS(this.createGalConfig(O,!1));this.unlinkUserGal(J,O).then(function(Y){Y.statusCode===1?x():X()}).catch(function(){X()})}};
_.P.unlinkUserGal=function(A,L){return A.deleteLink(L)};
_.P.handleLogAccountLinkingEventCommand=function(A){_.h("enable_gel_log_commands")&&_.q(A,PvS)&&(A=_.q(A,PvS).event)&&_.lg("gamingAccountLinkStatusChanged",A)};
_.v2.Object.defineProperties(uC,{template:{configurable:!0,enumerable:!0,get:function(){return sEX()}}});
_.I([_.N(_.iv.YtOpenPopupBehavior),_.Z("design:type",Object)],uC.prototype,"ytOpenPopupBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],uC.prototype,"ytActionHandlerBehavior",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-third-party-manager"})],uC);_.m(uC,"ytd-third-party-manager",function(){return sEX()},{mode:_.e5("kevlar_poly_si_batch_j081")?1:2});var JNJ,PGJ=function(){if(JNJ!==void 0)return JNJ;var A=document.createElement("template");_.p(A,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return JNJ=A};var dLk=_.AW(["\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      "]),T8=function(){var A=_.G.apply(this,arguments)||this;A.currentPage=void 0;A.renderLoadingStateJobId=0;A.updatePageDataJobId=0;A.pageDisposeJobsets=new WeakMap;A.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"};A.shouldApplyLockupToWatchTransition=_.h("web_thumbnail_to_watch_transition");A.shouldApplySlideTransition=_.dN("web_page_transition_type")==="slide"||_.h("enable_plj_landing_page");A.shouldApplyLearningJourneyTransition=_.h("enable_plj_landing_page");A.TEST_ONLY=void 0;return A};
_.g(T8,_.G);_.P=T8.prototype;_.P.ready=function(){var A=_.X5();A.addProvider({provide:_.JI,useValue:this});A.addProvider({provide:_.FY6,useValue:this})};
_.P.created=function(){this.pagePool=new CxS;this.contextSwitcher=new MRJ};
_.P.attached=function(){_.P4(this.hostElement,"attached");var A=_.X5().resolve(_.Ot(_.f3));A&&(this.contextSwitcher.JSC$20739_networkService_=A);this.viewTransitionManager=_.X5().resolve(_.iY);this.setupPageTransitionAnimation()};
_.P.getPageOffset=function(A){return A.getScrollTop()};
_.P.setPageOffset=function(A,L){try{A.setScrollTop(L)}catch(O){}};
_.P.setPageOffsetForNavigation=function(A,L){_.P4(this.hostElement,"yt-navigate-set-page-offset",{page:A,offset:L===void 0?0:L})};
_.P.pauseActiveContext=function(){var A=this.contextSwitcher;A.activeContext_&&A.activeContext_.pause()};
_.P.getModuleNameForType=function(A){return A==="watch"?_.h("kevlar_watch_fixie")?"watchFixie":_.h("kevlar_watch_grid")?"watchGrid":"watchFlexy":A==="shorts"||A==="search"?A:"browse"};
_.P.attachPage=function(A){var L,O=!_.h("pc_is_attached_ks")&&(A==null?void 0:(L=A.polymerController)==null?void 0:L.isAttached);if(!A.isAttached&&!O)try{_.YJ(this.hostElement).appendChild(A)}catch(x){var X;_.Rv(new _.pe("Error attaching page element for component",{origin:(X=this.currentPage)==null?void 0:X.is,component:A.is}))}};
_.P.setActivePage=function(A){var L=this,O=!1,X=function(){var x=L.isOnWatch(),J=L.currentPage;if(A)if(A!==L.currentPage){J&&(J.hidden=!0,J.active=!1,J.removeAttribute("role"));L.currentPage=A;var Y,T=_.qT((Y=L.data)==null?void 0:Y.endpoint);J&&_.P4(L.hostElement,"yt-page-type-changed",{oldPageType:J.is,newPageType:A.is,newPageSubtype:T});_.oJ().dispatch(_.JY({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:A.is}));_.oJ().dispatch(_.JY({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:T||""}));A.hidden=
!1;L.attachPage(A);A.active=!0;A.setAttribute("role","main");J&&L.setPageOffsetForNavigation(A,0);_.h("kevlar_remove_page_dom_on_switch")&&!x&&J&&_.YJ(L.hostElement).removeChild(J)}else O=!0;else x=new _.pe("Unable to set active page",J?J.is:"unknown origin",(T=L.data)==null?void 0:T.endpoint),_.C7(x)};
this.shouldRunBrowseTransition(this.currentPage,A)?DlZ(this.viewTransitionManager,X):this.shouldRunLearningJourneyTransition(this.currentPage,A)?nDM(this.viewTransitionManager,X):X();return O};
_.P.shouldRunBrowseTransition=function(A,L){return this.shouldApplySlideTransition&&(A==null?void 0:A.is)==="ytd-browse"&&(L==null?void 0:L.is)==="ytd-browse"&&A!==L};
_.P.shouldRunLearningJourneyTransition=function(A,L){return this.shouldApplyLearningJourneyTransition&&(A==null?void 0:A.is)==="ytd-browse"&&((L==null?void 0:L.is)==="ytd-watch-learning-journey"||(L==null?void 0:L.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.P.shouldRunWatchNextLoadedTransition=function(A,L){return this.viewTransitionManager&&A.is==="ytd-watch-flexy"&&L};
_.P.updatePageData=function(A){var L=this,O=this.data;this.updatePageDataJobId&&_.c1.cancelJob(this.updatePageDataJobId);this.data=A;return new _.eJ(function(X){var x=function(){A.filler?L.performDataUpdate(A,O):wCk(function(){L.performDataUpdate(A,O)});
var V=_.kq();_.UU(V,"cr")||V.processSignal("cr");X()},J=function(){A&&A.page==="watch"?L.updatePageDataJobId=_.GP(_.c1,x):x()};
if(_.h("kevlar_enable_mss_page_modules_client")&&A){var Y=_.X5().resolve(_.Ml),T=L.getModuleNameForType(A.page);(Y=Tok(Y,[T]))?Y.then(J):J()}else J()})};
_.P.isDownloadsPage=function(A){var L,O;return(A==null?void 0:(L=A.endpoint)==null?void 0:(O=L.browseEndpoint)==null?void 0:O.browseId)==="FEdownloads"};
_.P.setPlayerSyncInterval=function(A){var L;return _.u(function(O){if(O.nextAddress==1)return O.yield(_.X5().resolve(_.Dl),2);L=O.yieldResult;L.setUpPositionSyncInterval(A);_.qo(O)})};
_.P.performDataUpdate=function(A,L){_.h("kevlar_early_popup_close")||_.dQ(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var O=!A.filler;O&&(_.Rk("lps"),_.h("config_age_report_killswitch")||UAM());var X=w8(A),x,J=!1;if(_.h("kevlar_remove_page_dom_on_switch")){var Y=L&&w8(L);X===Y&&(x=this.getCurrentPage())}x||(x=AX(this.pagePool,X));O&&N1n(this.pagePool.elementPoolPopulator,X);O&&!this.renderLoadingStateJobId&&(J=this.setActivePage(x));if(x){Y=X==="watch";var T=
X==="shorts",V=X==="learning_journey_watch";_.h("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(x);if(Y||T||V)x.playerData=A.playerResponse;if(T)if(_.h("web_enable_delay_shorts_sequence_call")){A.reelWatchSequenceResponse&&(x.reelWatchSequenceResponse=A.reelWatchSequenceResponse);x.currentEndpoint=A.endpoint;var E;x.isPreviousPageShorts=!!(L==null?0:(E=L.endpoint)==null?0:E.reelWatchEndpoint);var n,t;A.cachedSequenceParams=((n=A.endpoint)==null?void 0:(t=n.reelWatchEndpoint)==
null?void 0:t.sequenceParams)||A.cachedSequenceParams||(L==null?void 0:L.cachedSequenceParams);var b,S;A.cachedSequenceProvider=((b=A.endpoint)==null?void 0:(S=b.reelWatchEndpoint)==null?void 0:S.sequenceProvider)||A.cachedSequenceProvider||(L==null?void 0:L.cachedSequenceProvider);x.cachedSequenceParams=A.cachedSequenceParams;x.cachedSequenceProvider=A.cachedSequenceProvider}else{A.reelWatchSequenceResponse?x.reelWatchSequenceResponse=A.reelWatchSequenceResponse:A.cachedReelWatchSequenceResponse?
x.reelWatchSequenceResponse=A.cachedReelWatchSequenceResponse:_.h("web_enable_cached_reel_sequence_fix")&&x.cachedReelWatchSequenceResponse&&!x.reelWatchSequenceResponse&&(x.reelWatchSequenceResponse=x.cachedReelWatchSequenceResponse);x.currentEndpoint=A.endpoint;var w;x.isPreviousPageShorts=!!(L==null?0:(w=L.endpoint)==null?0:w.reelWatchEndpoint);A.cachedReelWatchSequenceResponse=A.reelWatchSequenceResponse||A.cachedReelWatchSequenceResponse||(L==null?void 0:L.cachedReelWatchSequenceResponse);x.cachedReelWatchSequenceResponse=
A.cachedReelWatchSequenceResponse}E=this.isDownloadsPage(A);n=this.isDownloadsPage(L);E&&!n?this.setPlayerSyncInterval(6E5):!E&&n&&this.setPlayerSyncInterval();_.h("block_all_player_prefetch_requests")||this.preparePrefetchRequest(A,x,O,Y,T,V);tOX(_.X5().resolve(_.z_),L,A);_.dU(_.X5().resolve(_.m4));_.h("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(x);O?(O=typeof x.loadPage,O==="function"?(x.pageContext=$qZ(this.contextSwitcher,x,x.data!==A.response),O=function(){x.loadPage(A.response)},
this.shouldApplySlideTransition&&x.is==="ytd-browse"&&J&&(X==="learning"||this.isDifferentBrowseId(A==null?void 0:A.endpoint,L==null?void 0:L.endpoint))?DlZ(this.viewTransitionManager,O):this.shouldRunWatchNextLoadedTransition(x,J)?EDM(this.viewTransitionManager,O):O()):_.FJ(new _.pe("b/38014653 ",[X,
x.is,x.nodeName,O,x.isAttached,L&&w8(L),this.hostElement.children.length])),_.Rk("pdl")):(x.hidden=!0,A.response.filler=!0,x.data=A.response,this.attachPage(x));_.P4(this.hostElement,"yt-page-data-updated",{pageType:X})}_.p7(_.c1,function(){_.h("logging_avoid_blocking_during_navigation")&&_.v4r().transition("none");var l=Ydz(),F=x;if(A){var R=cTX(A),y=CyX(A),M;a:{if(A.playerResponse){var H=A.playerResponse,z;if((M=H.auxiliaryUi)==null?0:(z=M.messageRenderers)==null?0:z.upsellDialogRenderer){M=H.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(A.response&&(M=A.response,(H=M.overlay)==null?0:H.upsellDialogRenderer)){M=M.overlay.upsellDialogRenderer;break a}M=void 0}var a;var xe;z=(a=A.playerResponse)==null?void 0:(xe=a.auxiliaryUi)==null?void 0:xe.messageRenderers;a=(z==null?void 0:z.enforcementMessageViewModel)||(z==null?void 0:z.bkaEnforcementMessageViewModel);a=(a==null?void 0:a.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?a:void 0;var ur;a:{if(A.response&&(xe=A.response,(ur=xe.overlay)==null?0:
ur.commandWrapperPromoRenderer)){ur=xe.overlay.commandWrapperPromoRenderer;break a}ur=void 0}dfX(l,R,y,M,a,ur,F)}})};
_.P.preparePrefetchRequest=function(A,L,O,X,x,J){var Y,T,V,E,n,t,b,S,w,l,F,R,y,M,H;return _.u(function(z){if(z.nextAddress==1)return!O||!(X||x||J)||_.h("kevlar_disable_background_prefetch")&&_.j6(_.Bty)()===0?z.return():(Y=_.Pm(L))?z.yield(Y.getPlayerPromise(),2):z.return();T=z.yieldResult;V=_.X5().resolve(_.Ot(_.f3));if(!V)return z.return();if(x)return E=_.Pw(_.F6),FBZ(E,(n=A.endpoint)==null?void 0:n.reelWatchEndpoint,L.reelWatchSequenceResponse,T,V),z.return();S=(t=A.response)==null?void 0:(b=t.responseContext)==
null?void 0:b.webResponseContextExtensionData;if(!S)return z.return();y=(w=A.response)==null?void 0:(l=w.contents)==null?void 0:(F=l.twoColumnWatchNextResults)==null?void 0:(R=F.autoplay)==null?void 0:R.autoplay;M=_.X5().resolve(_.$q);H=_.Pw(_.F6);ROS(H,S,T,V,M,y);_.qo(z)})};
_.P.movePlayerToWatch=function(A){var L=this,O,X;return _.u(function(x){O=AX(L.pagePool,"watch");X=O.getPlayerContainer();A.appendTo(X);_.qo(x)})};
_.P.movePlayerToShorts=function(A){var L=this,O,X,x;return _.u(function(J){O=AX(L.pagePool,"shorts");X=O.getPlayerContainer();(x=A)==null||x.appendTo(X,void 0,!0);_.qo(J)})};
_.P.getPlayerFromWatch=function(){var A=AX(this.pagePool,"watch");return _.Pm(A)};
_.P.getPlayerFromShorts=function(){var A=AX(this.pagePool,"shorts");return _.Pm(A)};
_.P.startLoadingWatch=function(){var A=this,L=AX(this.pagePool,"watch");this.renderLoadingStateJobId?(_.c1.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,_.h("web_watch_transition_enable_start_loading_watch_callsite")?eqS(this.viewTransitionManager,function(){A.renderPageLoadingState("watch")}):this.renderPageLoadingState("watch")):this.setActivePage(L)};
_.P.startLoadingShorts=function(){var A=AX(this.pagePool,"shorts");this.setActivePage(A)};
_.P.startLoadingLearningJourney=function(){var A=AX(this.pagePool,"learning_journey_watch");this.setActivePage(A)};
_.P.getCurrentPage=function(){return this.currentPage};
_.P.getDestinationPageType=function(){return this.destinationPageType};
_.P.getCurrentData=function(){return this.data};
_.P.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.P.isOnShorts=function(){var A;return((A=this.currentPage)==null?void 0:A.is)==="ytd-shorts"};
_.P.isWatchPage=function(A){return!!A&&(A.is==="ytd-watch-flexy"||A.is==="ytd-watch-fixie"||A.is==="ytd-watch-grid")};
_.P.preparePage=function(A,L){var O=this,X=function(){var Y=O.pagePool.preparePage(A,O.currentPage,L);Y&&O.attachPage(Y)},x=function(Y){_.Q$(Y,L);
_.Rv(Y)};
if(_.h("kevlar_enable_mss_page_modules_client")){var J=this.getModuleNameForType(A);if(J=Tok(_.X5().resolve(_.Ml),[J])){J.then(X.bind(this)).catch(x.bind(this));return}}try{X()}catch(Y){x(Y)}};
_.P.lazyPrepareCriticalPages=function(A,L){A=_.qT(L)||A;_.h("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(A).then(this.maybePrepareWatchPage.bind(this,A)):this.maybePrepareWatchPage(A)};
_.P.maybePrepareWatchPage=function(A){A!=="watch"&&_.p7(_.c1,this.preparePage.bind(this,"watch"))};
_.P.downloadPageModules=function(A){A=this.getModuleNameForType(A);var L=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);L.delete(A);var O=_.X5().resolve(_.Ml);O.JSC$19486_loadModules(A);return O.JSC$19486_loadModules.apply(O,_.le(L))};
_.P.renderPageLoadingState=function(A,L){this.preparePage(A,L);var O=AX(this.pagePool,A);O.loadingData&&(O.loadingData.endpoint=L);O.loading=!0;this.setActivePage(O);A!=="watch"&&A!=="learning_journey_watch"||_.P4(this.hostElement,"yt-guide-close")};
_.P.prepareForNavigation=function(A,L){var O=this;if(this.currentPage&&this.data){var X=_.qT(L)||A;this.destinationPageType=X;w8(this.data)==X&&_.P4(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((A==="watch"||A==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.c1.cancelJob(this.renderLoadingStateJobId);_.X5().resolve(_.z_).deactivate(L);_.fu(_.c1,function(){var J=O.viewTransitionManager,Y=O.currentPage;
if(J.isLockupToWatchTransitionEnabled&&J.isLockupThumbnailRegistrationEnabled&&Y)if(J.registeredLockupThumbnail)J.lockupThumbnailRegisteredFromWatchEndpoint&&_.Rv(new _.pe("Lockup thumbnail already registered from watch endpoint."));else{a:{var T=_.q(L,_.$O);if(T==null?0:T.videoId){var V="yt-lockup-view-model ."+_.ezu(T.videoId)+" yt-thumbnail-view-model";Y=Y.querySelectorAll(V);if(Y.length===1){T=Y[0];break a}Y.length>1?_.Rv(new _.pe("Multiple LockupViewModel thumbnails found for videoId: "+T.videoId+
". Selector: "+V)):_.h("web_thumbnail_to_watch_transition_debug")&&_.Rv(new _.pe("No LockupViewModel thumbnail found for videoId: "+T.videoId+". Selector: "+V))}T=void 0}T&&(J.registeredLockupThumbnail=T,J.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.UoQ(J,T))}});
var x=this.data;this.renderLoadingStateJobId=_.fu(_.c1,function(){eqS(O.viewTransitionManager,function(){if(O.data!=x){var J=AX(O.pagePool,A);O.setActivePage(J)}else O.renderPageLoadingState(A,L);O.renderLoadingStateJobId=0})},150)}};
_.P.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var A=new _.Tf(1);this.currentPage.pageDisposeJobs.forEach(function(L){_.V4(A,L)});
this.pageDisposeJobsets.set(this.currentPage,A)}};
_.P.flushPageDisposeJobset=function(A){var L=this.pageDisposeJobsets.get(A);L&&(L.flushJobs(),this.pageDisposeJobsets.delete(A))};
_.P.onYtStopOldPlayer=function(A,L){L=L===void 0?!1:L;var O,X=_.Y$("kevlar_new_stop_old_player_logic_pages");if(_.h("kevlar_check_current_page_on_stop_old_player")&&(X.length===0||this.currentPage&&X.includes(this.currentPage.is)))if(this.data&&(O=w8(this.data)),w8(A)===O&&this.currentPage&&w8(this.currentPage.data)!==O)var x=_.Pm(this.currentPage);else O=w8(this.data),x=AX(this.pagePool,O),x=_.Pm(x);else this.data&&(O=w8(this.data),x=AX(this.pagePool,O),x=_.Pm(x));if(x)if(A=w8(A),X=AX(this.pagePool,
A),X=_.Pm(X),x==X)L&&!_.h("kevlar_disable_preemptive_player_reset")&&x.resetForNewPlayback();else if(L=O==="watch"&&A!=="watch",!L||A==="shorts"||_.j4n()&&!zLX(this.data)&&A!=="yts-products"&&A!="mini_app"&&A!="playables")O=_.X5().resolve(_.z_),L&&O.isMiniplayerActive()&&O.pipController.getWindow()||x.stop()};
_.P.setupPageTransitionAnimation=function(){if(this.shouldApplySlideTransition&&this.shouldApplyLockupToWatchTransition){var A=_.PO("web_page_transition_exit_ms"),L=_.PO("web_page_transition_wait_ms"),O=_.PO("web_page_transition_enter_ms");if(!isNaN(A)||!isNaN(L)||!isNaN(O))if(A=vdn(dLk,A,L,O))L=document.createElement("style"),L.textContent=_.TpO(A),document.head.appendChild(L)}};
_.P.isDifferentBrowseId=function(A,L){A=_.q(A,_.gM);L=_.q(L,_.gM);return(A==null?void 0:A.browseId)!==(L==null?void 0:L.browseId)};
_.v2.Object.defineProperties(T8,{template:{configurable:!0,enumerable:!0,get:function(){return PGJ()}}});
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],T8.prototype,"ytActionHandlerBehavior",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-page-manager"})],T8);_.m(T8,"ytd-page-manager",function(){return PGJ()},{mode:_.e5("kevlar_poly_si_batch_j081")?1:2});var Va=function(A,L,O){O=O===void 0?!1:O;_.p$.call(this);this.draggableElement=A;this.callbacks=L;this.allowClicks=O;this.dragOccurred=!1;this.internalDragger=new _.B9(this.draggableElement);this.dragDelay=new _.Lh(this.delayedDrag.bind(this));Y8X(this);this.allowClicks&&(_.Fgj(this.internalDragger,5),A.addEventListener("click",_.tT(this,this.validateClick),{capture:!0}))};
_.g(Va,_.p$);var Y8X=function(A){_.CT(A.internalDragger,"earlycancel",function(){A.allowClicks&&(A.dragOccurred=!1)});
_.CT(A.internalDragger,"start",function(L){var O,X;(X=(O=A.callbacks).onStartDrag)==null||X.call(O,L);!L.defaultPrevented&&A.allowClicks&&(A.dragOccurred=!0)});
_.CT(A.internalDragger,"beforedrag",function(L){L.preventDefault();A.lastOffset=new _.Cm(L.clientX-A.internalDragger.startX,L.clientY-A.internalDragger.startY);A.dragDelay.start()});
_.CT(A.internalDragger,"end",function(){A.dragDelay.stop();var L,O;(O=(L=A.callbacks).onEndDrag)==null||O.call(L);A.lastOffset=void 0})};
Va.prototype.delayedDrag=function(){if(this.lastOffset)this.callbacks.onDrag(this.lastOffset)};
Va.prototype.disposeInternal=function(){this.internalDragger.dispose();this.allowClicks&&this.draggableElement.removeEventListener("click",_.tT(this,this.validateClick),{capture:!0})};
Va.prototype.validateClick=function(A){this.dragOccurred&&(this.dragOccurred=!1,A.stopPropagation(),A.preventDefault())};var Dq=function(A,L){_.p$.call(this);this.JSC$20936_resizeContainer=A;this.callbacks=L;this.aspectRatio=16/9;this.JSC$20936_resizers=[];A=_.d(this.JSC$20936_resizeContainer.children);for(L=A.next();!L.done;L=A.next())u7J(this,L.value)};
_.g(Dq,_.p$);Dq.prototype.disposeInternal=function(){for(var A=_.d(this.JSC$20936_resizers),L=A.next();!L.done;L=A.next())L.value.dispose();A=_.d(this.JSC$20936_resizeContainer.children);for(L=A.next();!L.done;L=A.next())L.value.setAttribute("disabled","");this.JSC$20936_resizers.length=0};
Dq.prototype.setSize=function(A){this.currentMiniplayerSize=A};
Dq.prototype.setAspectRatio=function(A){this.aspectRatio=A};
Dq.prototype.update=function(A,L){for(var O=_.d(this.JSC$20936_resizeContainer.children),X=O.next();!X.done;X=O.next()){X=X.value;var x=X.getAttribute("alignment");_.VU(X,"disabled",x===A||x===L)}};
var u7J=function(A,L){var O=L.getAttribute("alignment"),X=new Va(L,{onStartDrag:function(x){if(L.hasAttribute("disabled"))x.preventDefault();else{A.dragStartSize=A.currentMiniplayerSize;var J,Y;(Y=(J=A.callbacks).onStartResize)==null||Y.call(J)}},
onDrag:function(x){if(A.dragStartSize){O!=="north"&&O!=="west"||x.scale(-1);var J=O==="north"||O==="south";x=J?x.y:x.x;J&&A.aspectRatio>=1?x*=A.aspectRatio:!J&&A.aspectRatio<1&&(x/=A.aspectRatio);A.callbacks.onResize(A.dragStartSize+x)}}});
A.JSC$20936_resizers.push(X)};var TnQ;var VCX=_.xa(function(A){var L=_.av("yt-draggable"),O=A.onDrag,X=A.onDragStart,x=A.onDragEnd,J=_.OY(A,{allowClicks:!1,dragThreshold:5}),Y=J.dragThreshold,T=J.allowClicks;A=J.children;J=J.className;var V=void 0,E=void 0,n=new _.Cm(0,0),t=!1;_.GD(function(){V=new _.B9(L.value);E=new _.Lh(S);b(V,E);if(T()){_.Fgj(V,Y());var l;(l=L.value)==null||l.addEventListener("click",w,{capture:!0})}_.rF(function(){var F;(F=V)==null||F.dispose();if(T()){var R;(R=L.value)==null||R.removeEventListener("click",w,{capture:!0})}})});
var b=function(l,F){_.CT(l,"earlycancel",function(){T()&&(t=!1)});
_.CT(l,"start",function(R){X==null||X(R);R.defaultPrevented||T()&&(t=!0)});
_.CT(l,"beforedrag",function(R){V&&E&&(R.preventDefault(),n=new _.Cm(R.clientX-V.startX,R.clientY-V.startY),E.start())});
_.CT(l,"end",function(){F.stop();x==null||x();n=new _.Cm(0,0)})},S=function(){n&&O(n)},w=function(l){t&&(t=!1,l.stopPropagation(),l.preventDefault())};
return _.D("yt-draggable",{el:L,class:_.qn("ytDraggableComponentHost",J)},A)},"Eg");var DLn=_.xa(function(A){var L=_.d(_.uQ(0,void 0,"CvAwBd")),O=L.next().value,X=L.next().value;L=function(x){var J={},Y={};return _.D(VCX,{className:_.qn("ytdMiniplayerComponentResizer",(J.ytdMiniplayerComponentResizerDisabled=function(){return x===A.horizontalAlignment()||x===A.verticalAlignment()},J.ytdMiniplayerComponentResizerNorth=x==="north",J.ytdMiniplayerComponentResizerEast=x==="east",J.ytdMiniplayerComponentResizerSouth=x==="south",J.ytdMiniplayerComponentResizerWest=x==="west",J)),
onDragStart:function(){X(A.currentMiniplayerSize());if(A.onResizeStart)A.onResizeStart()},
onDrag:function(T){x!=="north"&&x!=="west"||T.scale(-1);var V;T=(V=x==="north"||x==="south")?T.y:T.x;var E=A.currentAspectRatio();V&&E>=1?T*=E:!V&&E<1&&(T/=E);V=T;A.onResize(O()+V)}},_.D("div",{class:_.qn("ytdMiniplayerComponentResizerCorner",(Y.ytdMiniplayerComponentResizerNorthCorner=x==="north",Y.ytdMiniplayerComponentResizerEastCorner=x==="east",Y.ytdMiniplayerComponentResizerSouthCorner=x==="south",Y.ytdMiniplayerComponentResizerWestCorner=x==="west",Y))}))};
return _.D("div",{class:"ytdMiniplayerComponentResizers"},L("north"),L("east"),L("south"),L("west"))},"Fg");var eKS=16/9,E6k=_.xa(function(){var A=_.av("ytd-miniplayer"),L=_.d(_.uQ(new _.bW(NaN,NaN),void 0,"GNXZTe")),O=L.next().value,X=L.next().value;L=_.d(_.uQ(!1,void 0,"XqI9xc"));var x=L.next().value,J=L.next().value;L=_.d(_.uQ(!1,void 0,"k3iLGe"));var Y=L.next().value,T=L.next().value;L=_.d(_.uQ(!1,void 0,"ApjQ9b"));var V=L.next().value,E=L.next().value;L=_.d(_.uQ(!1,void 0,"PzlhGe"));var n=L.next().value,t=L.next().value;L=_.d(_.uQ(!1,void 0,"pm6fl"));var b=L.next().value,S=L.next().value;L=_.d(_.uQ(!1,
void 0,"xQrL1e"));var w=L.next().value,l=L.next().value;L=_.d(_.uQ(eKS,void 0,"NcrWZb"));var F=L.next().value,R=L.next().value,y=_.d(_.uQ(!1,void 0,"e5rxBc"));L=y.next().value;var M=y.next().value;y=_.d(_.uQ(!1,void 0,"uZtCde"));var H=y.next().value,z=y.next().value;y=_.d(_.uQ(void 0,void 0,"wKFvEe"));var a=y.next().value,xe=y.next().value;y=_.d(_.uQ(_.ms("HTML_DIR")==="rtl"?"west":"east",void 0,"FF7oMe"));var ur=y.next().value,eD=y.next().value;y=_.d(_.uQ("south",void 0,"QXcssb"));var gu=y.next().value,
ir=y.next().value;y=_.d(_.uQ(400,void 0,"Fr8gSb"));var SD=y.next().value,HJ=y.next().value,mM=_.X5().resolve(_.z_).miniplayerPropSignalMap[0],Vu=mM.data,cn=mM.externalPlaylistData;y=mM.toastData;var Tj=mM.playabilityStatus,Uu=mM.isReadyToResume,Eg=mM.isDisabled,DN=mM.watchWhile,NN=mM.playerVe,bJ=mM.expandVe,MN=mM.closeVe,Js=mM.readyToResumeVe,XL=mM.readyToResumeCloseVe,gJ=mM.repositionVe,hk=mM.resizeVe;mM=_.d(_.Nn(Uu));var hc=mM.next().value,Wn=mM.next().value,X0=!1,o6=!1,YV;_.GD(function(){X(_.NT());
A.value.addEventListener("animationend",function($V){$V.target===A.value&&(S(!1),l(!1))});
AtS(A.value)});
_.$w("yt-window-resized",function($V){$V&&X($V)});
var LJ=function(){YV&&R(YV.getVideoAspectRatio())},eZ=function(){if(YV){var $V=YV.getPlayerState()===1;
hc()&&$V&&Wn(!1)}},p6=function(){var $V=bJ();
if($V){var QM=_.Fn(3);QM&&_.$K(QM,$V)}},Gj=function(){var $V=MN(),QM=XL();
$V&&_.$K(_.Fn(3),$V);Uu()&&QM&&_.$K(_.Fn(3),QM)};
_.$w("yt-activate-miniplayer",function($V){var QM;return _.u(function(OB){if(OB.nextAddress==1)return x()?OB.return():OB.yield((QM=_.X5().resolve(_.z_).getPlayerElement())==null?void 0:QM.getPlayerPromise(),2);YV=OB.yieldResult;if(!YV)return OB.return();!H()&&_.h("kevlar_watch_while_v2")&&(ir($V&&!_.h("kevlar_watch_while_bottom_align")?"north":"south"),eD(_.ms("HTML_DIR")==="rtl"?"west":"east"));var XP=YV;XP.addEventListener("onVideoDataChange",LJ);XP.addEventListener("onStateChange",eZ);XP.addEventListener("onExpandMiniplayer",
p6);XP.addEventListener("onCloseMiniplayer",Gj);R(YV.getVideoAspectRatio());J(!0);vJ7()||S(!0);_.qo(OB)})});
_.$w("yt-deactivate-miniplayer",function($V){return _.u(function(QM){if(!x())return QM.return();J(!1);Wn(!1);l($V);t(!1);T(!1);if(YV){var OB=YV;OB.removeEventListener("onVideoDataChange",LJ);OB.removeEventListener("onStateChange",eZ);OB.removeEventListener("onExpandMiniplayer",p6);OB.removeEventListener("onCloseMiniplayer",Gj)}vJ7()||S(!0);_.qo(QM)})});
var qQ=function(){return!(DN()&&_.h("kevlar_watch_while_modern"))},TM=function(){var $V;
return!(($V=cn())==null||!$V.contents)},VM=function(){var $V=SD();
var QM=O();QM=Math.min(Math.min(QM.width,QM.height)-32,720);var OB=F(),XP=qQ(),gR=TM()&&Y(),MF=Math.min($V,QM);$V=new _.bW(192,XP?116:192);OB=FNJ(new _.bW(gR?eKS:OB,1),new _.bW(MF,XP?MF-76:MF));$V.width<=OB.width&&$V.height<=OB.height||(CSM(OB,$V),OB.width=Math.min(OB.width,QM),OB.height=Math.min(OB.height,QM));return new _.bW(OB.width,_.Z7(192,OB.height+syB(XP,gR),720))},pm=function(){var $V=VM(),QM=qQ(),OB=TM()&&Y();
return new _.bW($V.width,$V.height-syB(QM,OB))},U0=function(){var $V=function(QM){QM.target===A.value&&n()&&(t(!1),A.value.removeEventListener("transitionend",$V))};
vJ7()||(A.value.addEventListener("transitionend",$V),t(!0));T(!Y())};
_.ND(function(){var $V=NN(),QM=_.Fn(3),OB=_.Ch(3);if(QM&&OB&&$V){_.W4(QM,OB,$V);OB=gJ();var XP=hk(),gR=bJ(),MF=MN(),ko=XL();gR&&MF&&ko&&(_.H4(QM,$V,[gR,MF,ko]),_.B4(QM,[gR,MF]));OB&&XP&&_.H4(QM,$V,[OB,XP])}},"Snz6Ld");
_.ND(function(){var $V=Js();if($V){var QM=_.Fn(0),OB=_.Ch(0);QM&&OB&&(_.W4(QM,OB,$V),_.B4(QM,[$V]))}},"X1FpHd");
mM={};return _.D("ytd-miniplayer",{el:A,class:_.qn("ytdMiniplayerComponentHost",(mM.ytdMiniplayerComponentVisible=function(){return x()||b()},mM.ytdMiniplayerComponentAnimatingSnap=V,mM.ytdMiniplayerComponentAnimatingPlaylistExpand=n,mM.ytdMiniplayerComponentAnimatingFade=b,mM),function(){if(b()){var $V=gu();
var QM=x(),OB=w();$V=QM?$V==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":OB?$V==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":$V==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else $V="";return $V}),
style:_.rl({top:function(){return gu()==="north"?"16px":""},
right:function(){return ur()==="east"?"16px":""},
bottom:function(){return gu()==="south"?"16px":""},
left:function(){return ur()==="west"?"16px":""},
width:function(){return VM().width+"px"},
height:function(){return VM().height+"px"},
transform:function(){var $V=a();return $V?"translate("+$V.x+"px, "+$V.y+"px)":""}})},_.D("div",{class:"ytdMiniplayerComponentContent"},_.D(VCX,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function($V){var QM=xbM(ur(),gu(),O(),VM(),a()),OB=pm();Math.abs($V.clientY-(QM.y+OB.height))>15?(M(!0),$V=_.Fn(3),QM=gJ(),X0||(X0=!0,$V&&QM&&_.B4($V,[QM])),$V&&QM&&_.$K($V,QM)):$V.preventDefault()},
onDrag:function($V){xe($V)},
onDragEnd:function(){var $V=LeZ(xbM(ur(),gu(),O(),VM(),a()),O(),VM()),QM=XR$(ur(),gu(),O(),VM()),OB=XR$($V.horizontalAlignment,$V.verticalAlignment,O(),VM());OB=new _.Cm(OB.x-QM.x,OB.y-QM.y);var XP;QM=QM.y+(((XP=a())==null?void 0:XP.y)||0)+VM().height/2;var gR=function(){ur()===$V.horizontalAlignment&&gu()===$V.verticalAlignment||z(!0);eD($V.horizontalAlignment);ir($V.verticalAlignment);xe(void 0)},MF=function(ko){ko.target===A.value&&V()&&(E(!1),gR(),A.value.removeEventListener("transitionend",MF))};
M(!1);gu()==="south"&&QM>O().height?(gR(),_.X5().resolve(_.z_).close()):(A.value.addEventListener("transitionend",MF),E(!0),xe(OB))}},_.D(_.e,{cond:x,
then:function(){return _.D(_.Lyk,{isDisabled:Eg,playabilityStatus:Tj,size:pm})}}),_.D(_.e,{cond:qQ,
then:function(){return _.D(_.o3n,{isReadyToResume:hc,data:Vu,expanded:Y,onExpandClick:U0,playlistData:cn})}}),_.D(_.e,{cond:L,
then:function(){return _.D("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.D(_.e,{cond:function(){return TM()&&Y()||n()},
then:function(){return _.D(_.XNc,{className:"ytdMiniplayerComponentPlaylistPanel",data:cn,hideHeaderText:!0,withinMiniplayer:!0})}}),_.D("div",{class:"ytdMiniplayerComponentToast"},_.D(_.OmX,{toastData:y}))),_.D(DLn,{onResize:function($V){HJ(_.Z7(192,$V,720))},
onResizeStart:function(){var $V=_.Fn(3),QM=hk();o6||(o6=!0,$V&&QM&&_.B4($V,[QM]));$V&&QM&&_.$K($V,QM)},
currentAspectRatio:F,currentMiniplayerSize:SD,horizontalAlignment:ur,verticalAlignment:gu}))},"Gg");_.h("ytd_miniplayer_to_wiz")&&_.Y4(E6k,"ytd-miniplayer",{});_.Y4(_.OmX,"ytd-miniplayer-toast",{props:{toastData:_.x5}});var n6M=16/9,tCM=new _.bW(400,400/n6M),ec=function(){var A=_.G.apply(this,arguments)||this;A.active=!1;A.hasNoData=!1;A.enabled=!1;A.expanded=!1;A.readyToResume=!1;A.isDisabled=!1;A.externalPlaylistData={};A.premiumBadges=[];A.watchWhile=!1;A.playerState=null;A.verticalAttachment="south";A.horizontalAttachment=_.ms("HTML_DIR")==="rtl"?"west":"east";A.isAnimatingFade=!1;A.isAnimatingSnap=!1;A.isAnimatingExpand=!1;A.isDragging=!1;A.playerHidden=!1;A.hasPlaylistData=!1;A.closed=!1;A.expandedClosed=!1;
A.isForReadyToResume=!1;A.watchResponse=null;A.player=null;A.playerVe=null;A.expandVe=null;A.closeVe=null;A.readyToResumeCloseVe=null;A.disabledInitialStateIsPlaying=!1;A.PLAYER_EVENTS=new Map;A.aspectRatio=n6M;A.currentMiniplayerSize=400;A.userSetSize=!1;A.userSetPosition=!1;A.userHasDragged=!1;A.maxMiniplayerSize=720;A.transform=new _.Cm(0,0);A.windowDimensions=new _.bW(NaN,NaN);A.dimensions=tCM;A.screenLayer=3;A.actionMap={"yt-activate-miniplayer-action":"activate","yt-deactivate-miniplayer-action":"deactivate",
"yt-window-resized":"onWindowResized"};return A};
_.g(ec,_.G);_.P=ec.prototype;_.P.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.registerWithViewTransitionManager()};
_.P.ready=function(){this.setUpDragging();this.setUpResizing()};
_.P.attached=function(){this.onWindowResized(_.NT());this.hostElement.addEventListener("animationend",_.tT(this,this.resetFadingAnimation))};
_.P.detached=function(){this.hostElement.removeEventListener("animationend",_.tT(this,this.resetFadingAnimation))};
_.P.resetFadingAnimation=function(A){A.target===this.hostElement&&(this.isAnimatingFade=!1)};
_.P.hasPlaylistDataChanged=function(){!this.hasPlaylistData&&this.expanded&&(this.expanded=!1);this.updateDimensionsAndResize()};
_.P.onPlayerVeChange=function(){this.playerVe&&this.logMiniplayer()};
_.P.premiumBrandingChanged=function(){if(this.premiumBranding){this.readyToResume=this.isForReadyToResume=!0;var A=_.Fn(this.screenLayer);this.readyToResumeCloseVe&&A&&_.B4(A,[this.readyToResumeCloseVe]);this.set("premiumBadges",[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}])}};
_.P.readyToResumeVeChanged=function(){if(this.readyToResumeVe){var A=_.Fn(0),L=_.Ch(0);A&&L&&(_.W4(A,L,this.readyToResumeVe),_.B4(A,[this.readyToResumeVe]))}};
_.P.onIsDisabledChanged=function(){if(this.isDisabled&&this.player){var A=this.player.getPlayerState();(this.disabledInitialStateIsPlaying=A===-1||A===1||A===3)&&this.player.pauseVideo()}};
_.P.activate=function(A,L){L=L===void 0?!1:L;var O=this,X;return _.u(function(x){if(x.nextAddress==1)return O.setInitialActivatePositioning(L),O.enabled=!0,O.active=!0,O.expanded=!1,O.closed=!1,O.expandedClosed=!1,O.watchWhileHidden||(O.isAnimatingFade=!0),_.X5().resolve(_.$q).setPlaylistComponent(O.JSC$20947_playlistPanel),A.appendTo(O.playerContainer),x.yield(A.getPlayerPromise(),2);X=x.yieldResult;X.setSizeStyle(!1,!0);O.ytPlayerListenerBehavior.listenToPlayerEvents(X,O.PLAYER_EVENTS);O.player=
X;O.watchWhile&&_.h("kevlar_watch_while_minimum_size")&&O.setMiniplayerSize(192);O.setAspectRatio(O.player.getVideoAspectRatio());O.onIsDisabledChanged();_.qo(x)})};
_.P.setInitialActivatePositioning=function(A){if(!this.userSetPosition&&_.h("kevlar_watch_while_v2")){this.verticalAttachment=A&&!_.h("kevlar_watch_while_bottom_align")?"north":"south";this.horizontalAttachment=_.ms("HTML_DIR")==="rtl"?"west":"east";var L;(L=this.JSC$20947_resizers)==null||L.update(this.horizontalAttachment,this.verticalAttachment)}};
_.P.deactivate=function(A,L){var O=this;return _.u(function(X){if(!O.active)return X.return();A||(O.expanded?O.expandedClosed=!0:O.closed=!0);O.active=!1;O.isForReadyToResume=!1;L&&_.h("kevlar_watch_while_counterfactual")||(O.isAnimatingFade=!0);O.player&&O.ytPlayerListenerBehavior.unlistenFromPlayerEvents(O.player,O.PLAYER_EVENTS);O.player=null;_.qo(X)})};
_.P.onMetadataTap=function(A){this.expandVe&&(A===void 0||A)&&(A=_.Fn(this.screenLayer))&&_.$K(A,this.expandVe);_.jB(_.X5().resolve(_.z_))};
_.P.onDisabledTap=function(A){A.target===_.YJ(this.hostElement).querySelector("#blocking-container")&&(this.disabledInitialStateIsPlaying&&this.player.playVideo(),this.onMetadataTap())};
_.P.onPlaylistExpandTap=function(A){if(this.hasPlaylistData){A=_.oa(A)||[];A=_.d(A);for(var L=A.next();!L.done;L=A.next()){L=L.value;if(L===this.hostElement)break;if(L.classList&&L.classList.contains("miniplayer-title"))return}this.playlistExpand()}};
_.P.playlistExpand=function(){this.hostElement.addEventListener("transitionend",_.tT(this,this.animatedResizePlaylist));this.isAnimatingExpand=!0;this.ytRendererBehavior.markDirty();this.expanded=!this.expanded;this.updateDimensionsAndResize()};
_.P.animatedResizePlaylist=function(A){A.target===this.hostElement&&(this.isAnimatingExpand=!1,this.hostElement.removeEventListener("transitionend",_.tT(this,this.animatedResizePlaylist)))};
_.P.getExpandIcon=function(A){return A?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"};
_.P.onPlayerVideoDataChange=function(){var A,L=(A=this.player)==null?void 0:A.getVideoAspectRatio();L&&L!==this.aspectRatio&&this.setAspectRatio(L)};
_.P.setAspectRatio=function(A){if(this.active){this.aspectRatio=A;this.updateDimensionsAndResize();var L;(L=this.JSC$20947_resizers)==null||L.setAspectRatio(A)}};
_.P.updateDimensionsAndResize=function(){var A=Math.min(this.currentMiniplayerSize,this.maxMiniplayerSize),L=this.expanded?n6M:this.aspectRatio,O=new _.bW(192,this.showInfoBar?116:192);A=FNJ(new _.bW(L,1),new _.bW(A,this.showInfoBar?A-76:A));O.width<=A.width&&O.height<=A.height||(CSM(A,O),A.width=Math.min(A.width,this.maxMiniplayerSize),A.height=Math.min(A.height,this.maxMiniplayerSize),this.setMiniplayerSize(this.showInfoBar&&L<=1?Math.max(A.width,A.height)+76:Math.max(A.width,A.height)));this.dimensions=
new _.bW(A.width,this.clamp(A.height+this.getNonPlayerHeight()));this.resize()};
_.P.resize=function(){this.hostElement.style.width=this.dimensions.width+"px";this.hostElement.style.height=this.dimensions.height+"px";var A=this.getPlayerSize(this.dimensions);this.playerContainer.style.height=A.height+"px";var L;(L=this.player)==null||L.setInternalSize(A.width,A.height)};
_.P.getPlayerSize=function(A){var L=Math.max(0,A.height-this.getNonPlayerHeight());return new _.bW(A.width,L)};
_.P.getNonPlayerHeight=function(){var A=0;this.showInfoBar&&(A+=76);this.expanded&&(A+=285);return A};
_.P.onDisabledCloseMiniplayer=function(){this.logClosingClick();_.X5().resolve(_.z_).close()};
_.P.onPlayerCloseMiniplayer=function(){this.logClosingClick()};
_.P.logClosingClick=function(){this.closeVe&&_.$K(_.Fn(this.screenLayer),this.closeVe);this.isForReadyToResume&&this.readyToResumeCloseVe&&_.$K(_.Fn(this.screenLayer),this.readyToResumeCloseVe)};
_.P.onPlayerExpandMiniplayer=function(){if(this.expandVe){var A=_.Fn(this.screenLayer);A&&_.$K(A,this.expandVe)}};
_.P.onPlayerStateChange=function(){if(this.player){this.playerState=this.player.getPlayerState();var A=this.playerState===1;this.continueWatching&&A&&(this.continueWatching=!1);this.premiumBadges.length&&A&&(this.set("premiumBadges",[]),this.readyToResume=this.premiumBranding=!1,this.updateDimensionsAndResize())}};
_.P.getScreenLayer=function(){return this.screenLayer};
_.P.logMiniplayer=function(){var A=_.Fn(this.screenLayer),L=_.Ch(this.screenLayer);A&&L&&this.playerVe&&(_.W4(A,L,this.playerVe),this.expandVe&&this.closeVe&&this.readyToResumeCloseVe&&(_.H4(A,this.playerVe,[this.expandVe,this.closeVe,this.readyToResumeCloseVe]),_.B4(A,[this.expandVe,this.closeVe])),this.repositionVe&&this.resizeVe&&_.H4(A,this.playerVe,[this.repositionVe,this.resizeVe]))};
_.P.computePlaylistData=function(A,L){return L};
_.P.computeHasPlaylistData=function(){return!!this.playlistData&&!!this.playlistData.contents};
_.P.computeExpandButtonHidden=function(A,L,O){return!A||!L||O};
_.P.computePlaylistIndexHidden=function(A,L){return!A||L};
_.P.computePlaylistPanelHidden=function(A,L){return!L&&!A};
_.P.computeExpandButtonLabel=function(A){return A?_.b3("MINIPLAYER_COLLAPSE_LABEL"):_.b3("MINIPLAYER_EXPAND_LABEL")};
_.P.computeDisabledStateCloseButtonLabel=function(){return _.b3("MINIPLAYER_CLOSE",void 0,"Close")};
_.P.onWindowResized=function(A){A&&(A=this.windowDimensions=A,this.maxMiniplayerSize=Math.min(Math.min(A.width,A.height)-32,720),this.updateDimensionsAndResize())};
_.P.setUpResizing=function(){var A=this;this.JSC$20947_resizers||(this.JSC$20947_resizers=new Dq(this.JSC$20947_resizeContainer,{onStartResize:function(){A.handleResizeStart()},
onResize:function(L){A.handleResize(L)}}),this.JSC$20947_resizers.setSize(this.currentMiniplayerSize),this.JSC$20947_resizers.update(this.horizontalAttachment,this.verticalAttachment))};
_.P.handleResizeStart=function(){var A=_.Fn(this.screenLayer);this.userSetSize||(this.userSetSize=!0,A&&this.resizeVe&&_.B4(A,[this.resizeVe]));A&&this.resizeVe&&_.$K(A,this.resizeVe)};
_.P.handleResize=function(A){this.setMiniplayerSize(A);this.updateDimensionsAndResize()};
_.P.setUpDragging=function(){var A=this;this.JSC$20947_dragger||(this.JSC$20947_dragger=new Va(this.draggableContainer,{onStartDrag:function(L){!A.isSafeToDrag(L)||A.isAnimatingSnap?L.preventDefault():A.handleDragStart()},
onDrag:function(L){A.transform=L;A.setTransform(A.transform)},
onEndDrag:function(){A.handleDragEnd()}},!0))};
_.P.handleDragStart=function(){this.isDragging=!0;var A=_.Fn(this.screenLayer);this.userHasDragged||(this.userHasDragged=!0,A&&this.repositionVe&&_.B4(A,[this.repositionVe]));A&&this.repositionVe&&_.$K(A,this.repositionVe)};
_.P.handleDragEnd=function(){this.isDragging=!1;var A=this.getCurrentGlobalPosition().y+this.dimensions.height/2;this.verticalAttachment==="south"&&A>this.windowDimensions.height&&_.X5().resolve(_.z_).close();this.animateSnapToCorner()};
_.P.animateSnapToCorner=function(){var A=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment),L=this.getNearestAttachments();L=this.getGlobalPositionFromAttachments(L.horizontalAttachment,L.verticalAttachment);A=new _.Cm(L.x-A.x,L.y-A.y);this.isAnimatingSnap=!0;this.setTransform(A);this.hostElement.addEventListener("transitionend",_.tT(this,this.endSnapAnimation))};
_.P.endSnapAnimation=function(A){A.target===this.hostElement&&this.isAnimatingSnap&&(this.hostElement.removeEventListener("transitionend",_.tT(this,this.endSnapAnimation)),this.endDrag())};
_.P.endDrag=function(){this.isAnimatingSnap=!1;this.updateAttachments();this.setTransform(null)};
_.P.setTransform=function(A){this.hostElement.style.transform=A?"translate("+A.x+"px, "+A.y+"px)":""};
_.P.getGlobalPositionFromAttachments=function(A,L){return new _.Cm(A==="west"?16:this.windowDimensions.width-this.dimensions.width-16,L==="north"?16:this.windowDimensions.height-this.dimensions.height-16)};
_.P.updateAttachments=function(){var A=this.getNearestAttachments();if(this.horizontalAttachment!==A.horizontalAttachment||this.verticalAttachment!==A.verticalAttachment)this.userSetPosition=!0;this.horizontalAttachment=A.horizontalAttachment;this.verticalAttachment=A.verticalAttachment;var L;(L=this.JSC$20947_resizers)==null||L.update(this.horizontalAttachment,this.verticalAttachment)};
_.P.getNearestAttachments=function(){var A=this.getCurrentGlobalPosition();return{horizontalAttachment:A.x+this.dimensions.width/2<this.windowDimensions.width/2?"west":"east",verticalAttachment:A.y+this.dimensions.height/2<this.windowDimensions.height/2?"north":"south"}};
_.P.getCurrentGlobalPosition=function(){var A=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment);return OTn(A,this.transform)};
_.P.isSafeToDrag=function(A){var L=this.playerContainer.getBoundingClientRect();return Math.abs(A.clientY-(L.y+L.height))>15};
_.P.setMiniplayerSize=function(A){this.currentMiniplayerSize=this.clamp(A);var L;(L=this.JSC$20947_resizers)==null||L.setSize(this.currentMiniplayerSize)};
_.P.clamp=function(A){return _.Z7(192,A,720)};
_.P.registerWithViewTransitionManager=function(){var A=_.X5().resolve(_.Ot(_.iY));A&&oJZ(A,this.hostElement)};
_.v2.Object.defineProperties(ec.prototype,{showInfoBar:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile?!_.h("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:_.b3("CONTINUE_WATCHING",void 0,"Continue watching")};var A;if((A=this.externalPlaylistData)==null?0:A.contents)return this.externalPlaylistData.titleText;var L;return(L=this.data)==null?void 0:L.miniplayerSubtitle}},
miniplayerTitle:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.externalPlaylistData)==null?0:A.contents){var L;return(L=_.XLM(this.externalPlaylistData))==null?void 0:L.title}var O;return(O=this.data)==null?void 0:O.miniplayerTitle}},
playlistIndexMessage:{configurable:!0,enumerable:!0,get:function(){var A,L,O,X;return((A=this.externalPlaylistData)==null?void 0:A.currentIndex)!==void 0&&((L=this.externalPlaylistData)==null?0:L.totalVideos)&&!((O=this.data)==null?0:(X=O.playlistData)==null?0:X.isCourse)?this.externalPlaylistData.currentIndex+1+" / "+this.externalPlaylistData.totalVideos:null}},
showErrorScreen:{configurable:!0,enumerable:!0,get:function(){return!!this.playabilityStatus&&!_.uDr(this.playabilityStatus)}},
watchWhileHidden:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile&&_.h("kevlar_watch_while_counterfactual")}}});
ec.prototype.onIsDisabledChanged=ec.prototype.onIsDisabledChanged;ec.prototype.readyToResumeVeChanged=ec.prototype.readyToResumeVeChanged;ec.prototype.premiumBrandingChanged=ec.prototype.premiumBrandingChanged;ec.prototype.onPlayerVeChange=ec.prototype.onPlayerVeChange;ec.prototype.hasPlaylistDataChanged=ec.prototype.hasPlaylistDataChanged;_.I([_.N(_.LE.YtPlayerListenerBehavior),_.Z("design:type",_.Oo)],ec.prototype,"ytPlayerListenerBehavior",void 0);
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],ec.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],ec.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],ec.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],ec.prototype,"ytdReduxBehavior",void 0);_.I([_.qR("#draggable"),_.Z("design:type",HTMLDivElement)],ec.prototype,"draggableContainer",void 0);
_.I([_.qR("#resize-container"),_.Z("design:type",HTMLDivElement)],ec.prototype,"JSC$20947_resizeContainer",void 0);_.I([_.qR("#video-container"),_.Z("design:type",HTMLDivElement)],ec.prototype,"videoContainer",void 0);_.I([_.qR("#player-container"),_.Z("design:type",HTMLDivElement)],ec.prototype,"playerContainer",void 0);_.I([_.qR("#playlist"),_.Z("design:type",HTMLDivElement)],ec.prototype,"JSC$20947_playlistPanel",void 0);_.I([_.K(),_.Z("design:type",Object)],ec.prototype,"data",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],ec.prototype,"active",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],ec.prototype,"hasNoData",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],ec.prototype,"enabled",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],ec.prototype,"expanded",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],ec.prototype,"readyToResume",void 0);
_.I([_.K(),_.Z("design:type",Object)],ec.prototype,"isDisabled",void 0);_.I([_.K(),_.Z("design:type",Object)],ec.prototype,"externalPlaylistData",void 0);_.I([_.K(),_.Z("design:type",Array)],ec.prototype,"premiumBadges",void 0);_.I([_.K(),_.Z("design:type",Object)],ec.prototype,"toastData",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],ec.prototype,"watchWhile",void 0);_.I([_.K(),_.Z("design:type",Boolean)],ec.prototype,"premiumBranding",void 0);
_.I([_.K(),_.Z("design:type",Object)],ec.prototype,"playerState",void 0);_.I([_.K(),_.Z("design:type",Boolean)],ec.prototype,"continueWatching",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",String)],ec.prototype,"verticalAttachment",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",String)],ec.prototype,"horizontalAttachment",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],ec.prototype,"isAnimatingFade",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],ec.prototype,"isAnimatingSnap",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],ec.prototype,"isAnimatingExpand",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],ec.prototype,"isDragging",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],ec.prototype,"playerHidden",void 0);
_.I([_.K({computed:"computePlaylistData(data.playlistData, externalPlaylistData)"}),_.Z("design:type",Object)],ec.prototype,"playlistData",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeHasPlaylistData(playlistData)"}),_.Z("design:type",Object)],ec.prototype,"hasPlaylistData",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],ec.prototype,"closed",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],ec.prototype,"expandedClosed",void 0);
_.I([_.K({selector:_.y7s}),_.Z("design:type",Boolean)],ec.prototype,"isSingleOptionSurveyActive",void 0);_.I([_.K({reflectToAttribute:!0,selector:_.fY}),_.Z("design:type",Boolean)],ec.prototype,"isWatchPage",void 0);_.I([_.K({reflectToAttribute:!0}),_.r("watchWhile"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ec.prototype,"showInfoBar",null);_.I([_.r("premiumBadges","showInfoBar"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ec.prototype,"showOverlayPremiumBadges",null);
_.I([_.K(),_.Z("design:type",Object)],ec.prototype,"watchResponse",void 0);_.I([_.K(),_.Z("design:type",Object)],ec.prototype,"miniplayerRenderer",void 0);_.I([_.K(),_.Z("design:type",Object)],ec.prototype,"playabilityStatus",void 0);_.I([_.K(),_.Z("design:type",Object)],ec.prototype,"playerVe",void 0);_.I([_.K(),_.Z("design:type",Object)],ec.prototype,"expandVe",void 0);_.I([_.K(),_.Z("design:type",Object)],ec.prototype,"closeVe",void 0);
_.I([_.K(),_.Z("design:type",Object)],ec.prototype,"readyToResumeCloseVe",void 0);_.I([_.K(),_.Z("design:type",_.c3)],ec.prototype,"readyToResumeVe",void 0);_.I([_.K(),_.Z("design:type",_.c3)],ec.prototype,"resizeVe",void 0);_.I([_.K(),_.Z("design:type",_.c3)],ec.prototype,"repositionVe",void 0);_.I([_.hT("hasPlaylistData"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ec.prototype,"hasPlaylistDataChanged",null);
_.I([_.hT("playerVe"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ec.prototype,"onPlayerVeChange",null);_.I([_.hT("premiumBranding"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ec.prototype,"premiumBrandingChanged",null);_.I([_.hT("readyToResumeVe"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ec.prototype,"readyToResumeVeChanged",null);
_.I([_.hT("isDisabled"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ec.prototype,"onIsDisabledChanged",null);_.I([_.r("continueWatching","data.miniplayerSubtitle","externalPlaylistData"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ec.prototype,"miniplayerSubtitle",null);_.I([_.r("data.miniplayerTitle","externalPlaylistData"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ec.prototype,"miniplayerTitle",null);
_.I([_.r("externalPlaylistData","continueWatching"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ec.prototype,"playlistIndexMessage",null);_.I([_.K({reflectToAttribute:!0}),_.r("playabilityStatus"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ec.prototype,"showErrorScreen",null);_.I([_.K({reflectToAttribute:!0}),_.r("watchWhile"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],ec.prototype,"watchWhileHidden",null);
_.h("ytd_miniplayer_to_wiz")||_.m(ec,"ytd-miniplayer",function(){if(TnQ===void 0){var A=document.createElement("template");_.p(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer--\x3e\x3c!--css_build_styles: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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);TnQ=A}A=TnQ;return A},{mode:2});var b0J;var ED=function(){var A=_.G.apply(this,arguments)||this;A.useListItemStyles=_.h("web_list_item_style_for_menu_items");A.systemIcons=_.h("kevlar_system_icons");return A};
_.g(ED,_.G);_.P=ED.prototype;_.P.ready=function(){this.hostElement.addEventListener("tap",_.tT(this,this.onEndpointTapExtra))};
_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.P.onFocus=function(){var A;(A=_.YJ(this.hostElement).querySelector("tp-yt-paper-item"))==null||A.focus()};
_.P.onEndpointTapExtra=function(A){_.P4(this.hostElement,"iron-activate");var L=this.data.navigationEndpoint;L&&_.q(L,_.A1e)&&(A.stopPropagation(),_.VN(this.hostElement,[L],this.hostElement))};
_.P.computeIcon=function(A){return A&&A.iconType?_.bV(A.iconType):""};
_.P.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.P.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.P.forceUpdateStylesOnLegacyBrowsers=function(){_.h("kevlar_legacy_browsers")&&_.eq(this.hostElement)};
ED.prototype.forceUpdateStylesOnLegacyBrowsers=ED.prototype.forceUpdateStylesOnLegacyBrowsers;ED.prototype.onFocus=ED.prototype.onFocus;_.I([_.N(_.J3),_.Z("design:type",Object)],ED.prototype,"ytdOpenPopupBehavior",void 0);_.I([_.N(_.JSJ.YtConditionalRendererBehavior),_.Z("design:type",Object)],ED.prototype,"ytConditionalRendererBehavior",void 0);_.I([_.N(_.Nr.YtEndpointBehavior),_.Z("design:type",Object)],ED.prototype,"ytEndpointBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],ED.prototype,"data",void 0);_.I([_.K({computed:"computeIcon(data.icon)",value:""}),_.Z("design:type",String)],ED.prototype,"icon",void 0);_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],ED.prototype,"useIcons",void 0);_.I([_.K({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],ED.prototype,"hasSeparator",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],ED.prototype,"useListItemStyles",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],ED.prototype,"systemIcons",void 0);_.I([_.by("focus"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ED.prototype,"onFocus",null);_.I([_.hT("useIcons","hasSeparator"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ED.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.m(ED,"ytd-menu-navigation-item-renderer",function(){if(b0J===void 0){var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);b0J=A}A=b0J;return A},{mode:1});var hKB;var S8Q=_.Ue(_.b3("DOWNLOAD",{},"Download")),q87=_.Ue(_.b3("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),g6Z=_.Ue(_.b3("RETRY",{},"Retry")),wQB=_.Ue(_.b3("PAUSE_DOWNLOADING",{},"Pause downloading")),pQM=_.Ue(_.b3("RESUME_DOWNLOAD",{},"Resume download")),nN=function(){var A=_.G.apply(this,arguments)||this;A.primaryText=S8Q;A.primaryIconType="OFFLINE_DOWNLOAD";A.hasSecondaryContent=!1;A.hasSeparator=!1;A.transferState="TRANSFER_STATE_UNKNOWN";A.isVideoDeletedByUser=!1;A.isHidden=!1;A.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return A};
_.g(nN,_.G);_.P=nN.prototype;_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.P.onFocus=function(){this.primaryEntry.focus()};
_.P.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.P.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.P.getRemoveAction=function(){return"ACTION_REMOVE"};
_.P.sendOfflineAction=function(A){var L=this.data.serviceEndpoint;if(L){var O=_.q(L,_.g0);O&&A&&(O.action=A);this.ytComponentBehavior.resolveCommand(L)}};
_.P.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=S8Q,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=S8Q;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=g6Z;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=q87;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=pQM;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=q87;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
wQB;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=q87;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=q87;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=S8Q,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.P.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.P.isSecondaryEntryHidden=function(A,L){return A?!0:!L};
_.P.computeHasSeparator=function(){var A;return!((A=this.data)==null||!A.hasSeparator)};
nN.prototype.showHideButton=nN.prototype.showHideButton;nN.prototype.onTransferStateChange=nN.prototype.onTransferStateChange;nN.prototype.onFocus=nN.prototype.onFocus;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],nN.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],nN.prototype,"ytdReduxBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],nN.prototype,"ytComponentBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],nN.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],nN.prototype,"primaryText",void 0);_.I([_.K(),_.Z("design:type",String)],nN.prototype,"primaryIconType",void 0);_.I([_.K(),_.Z("design:type",String)],nN.prototype,"primaryAction",void 0);_.I([_.K(),_.Z("design:type",Object)],nN.prototype,"secondaryText",void 0);_.I([_.K(),_.Z("design:type",String)],nN.prototype,"secondaryIconType",void 0);
_.I([_.K(),_.Z("design:type",String)],nN.prototype,"secondaryAction",void 0);_.I([_.K(),_.Z("design:type",Object)],nN.prototype,"hasSecondaryContent",void 0);_.I([_.K({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.Z("design:type",Object)],nN.prototype,"hasSeparator",void 0);_.I([_.K({selector:_.yi,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.Z("design:type",String)],nN.prototype,"transferState",void 0);
_.I([_.K({selector:_.Jas,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.Z("design:type",Object)],nN.prototype,"isVideoDeletedByUser",void 0);_.I([_.K(),_.Z("design:type",Object)],nN.prototype,"isHidden",void 0);_.I([_.K({selector:_.oqe,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.Z("design:type",Object)],nN.prototype,"offlineabilityState",void 0);_.I([_.qR("#primary-entry"),_.Z("design:type",Object)],nN.prototype,"primaryEntry",void 0);
_.I([_.by("focus"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],nN.prototype,"onFocus",null);_.I([_.iy("transferState","isVideoDeletedByUser"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],nN.prototype,"onTransferStateChange",null);_.I([_.iy("offlineabilityState"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],nN.prototype,"showHideButton",null);
_.m(nN,"ytd-menu-service-item-download-renderer",function(){if(hKB===void 0){var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);hKB=A}A=hKB;return A},{mode:1});var i0n;var tX=function(){var A=_.G.apply(this,arguments)||this;A.useIcons=!1;A.systemIcons=_.h("kevlar_system_icons");A.useListItemStyles=_.h("web_list_item_style_for_menu_items");return A};
_.g(tX,_.G);_.P=tX.prototype;_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.P.onFocus=function(){var A;(A=_.YJ(this.hostElement).querySelector("tp-yt-paper-item"))==null||A.focus()};
_.P.onTap=function(){_.YK(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var A=this.data.serviceEndpoint,L=this.data.command;if(A){var O,X=(O=this.data)==null?void 0:O.trackingParams;O=!!_.q(A,_.XBg);X&&O&&_.Ai().dispatch(_.JY({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:X}}));this.ytComponentBehavior.resolveCommand(A)||_.X5().resolve(_.x$).resolveCommand(A,{form:{element:this.hostElement}})}L&&(this.ytComponentBehavior.resolveCommand(L)||_.VN(this.hostElement,
[L],this.hostElement))};
_.P.computeIcon=function(A){return A&&A.iconType?_.bV(A.iconType):""};
_.P.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.P.computeHasSeparator=function(){var A;return!((A=this.data)==null||!A.hasSeparator)};
_.P.forceUpdateStylesOnLegacyBrowsers=function(){_.h("kevlar_legacy_browsers")&&_.eq(this.hostElement)};
_.P.computeIsSelected=function(){var A;return!((A=this.data)==null||!A.isSelected)};
tX.prototype.forceUpdateStylesOnLegacyBrowsers=tX.prototype.forceUpdateStylesOnLegacyBrowsers;tX.prototype.onTap=tX.prototype.onTap;tX.prototype.onFocus=tX.prototype.onFocus;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],tX.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.J3),_.Z("design:type",Object)],tX.prototype,"ytdOpenPopupBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],tX.prototype,"ytComponentBehavior",void 0);
_.I([_.N(_.JSJ.YtConditionalRendererBehavior),_.Z("design:type",Object)],tX.prototype,"ytConditionalRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],tX.prototype,"data",void 0);_.I([_.K({computed:"computeIcon(data.icon)",value:""}),_.Z("design:type",String)],tX.prototype,"icon",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],tX.prototype,"useIcons",void 0);
_.I([_.K({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],tX.prototype,"hasSeparator",void 0);_.I([_.K({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],tX.prototype,"isSelected",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],tX.prototype,"systemIcons",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],tX.prototype,"useListItemStyles",void 0);
_.I([_.by("focus"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],tX.prototype,"onFocus",null);_.I([_.by("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],tX.prototype,"onTap",null);_.I([_.hT("useIcons","hasSeparator"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],tX.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.m(tX,"ytd-menu-service-item-renderer",function(){if(i0n===void 0){var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);i0n=A}A=i0n;return A},{mode:2});var Nnk;var bC=function(){return _.G.apply(this,arguments)||this};
_.g(bC,_.G);_.P=bC.prototype;_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.onDataChanged=function(){var A=this;_.kd(this,function(){A.postbox.openDialog();A.focus();_.P4(A.hostElement,"yt-refit")})};
_.P.focus=function(){this.postbox.focus()};
_.P.closePopup=function(){_.dQ(this.hostElement,"yt-close-popup-action")};
_.P.onYtCommentboxDismiss=function(){this.closePopup()};
bC.prototype.onYtCommentboxDismiss=bC.prototype.onYtCommentboxDismiss;bC.prototype.onDataChanged=bC.prototype.onDataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],bC.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],bC.prototype,"data",void 0);_.I([_.K({value:function(){return _.b3("SBOX_INAPPROPRIATE_CANCEL")}}),
_.Z("design:type",String)],bC.prototype,"closeButtonAriaLabel",void 0);_.I([_.qR("#postbox"),_.Z("design:type",Object)],bC.prototype,"postbox",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],bC.prototype,"onDataChanged",null);_.I([_.by("yt-commentbox-dismiss"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],bC.prototype,"onYtCommentboxDismiss",null);
_.I([_.Q({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],bC);
_.m(bC,"ytd-backstage-post-dialog-popup-renderer",function(){if(Nnk!==void 0)return Nnk;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Nnk=A},{mode:1});var rNJ;var hX=function(){return _.G.apply(this,arguments)||this};
_.g(hX,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],hX.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],hX.prototype,"data",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],hX);
_.m(hX,"ytd-sender-id-section-renderer",function(){if(rNJ!==void 0)return rNJ;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);
return rNJ=A},{mode:1});var KPz;var GGJ;var lR7;var Sc=function(){return _.G.apply(this,arguments)||this};
_.g(Sc,_.G);Sc.prototype.closePopup=function(){_.dQ(this.hostElement,"yt-close-popup-action")};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Sc.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Sc.prototype,"data",void 0);_.I([_.yU({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],Sc);
_.m(Sc,"yt-community-post-section-renderer",function(){if(lR7===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;GGJ===void 0&&(GGJ=document.createElement("template"));var X=GGJ;O.call(L,X.content.cloneNode(!0),A.content.firstChild);lR7=A}A=lR7;return A},{mode:2});var cNn;var CGn;var FPX;var RKz;var QEz;var mLX;var qg=function(){return _.G.apply(this,arguments)||this};
_.g(qg,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],qg.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],qg.prototype,"data",void 0);_.I([_.yU({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],qg);
_.m(qg,"yt-share-start-time-with-context-renderer",function(){if(mLX===void 0){var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;QEz===void 0&&(QEz=document.createElement("template"));var X=QEz;O.call(L,X.content.cloneNode(!0),A.content.firstChild);mLX=A}A=mLX;return A},{mode:2});var g$=function(){return _.G.apply(this,arguments)||this};
_.g(g$,_.G);g$.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],g$.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],g$.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],g$.prototype,"data",void 0);_.I([_.yU({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],g$);
_.m(g$,"yt-share-panel-title-v15-renderer",function(){if(RKz===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;FPX===void 0&&(FPX=document.createElement("template"));var X=FPX;O.call(L,X.content.cloneNode(!0),A.content.firstChild);RKz=A}A=RKz;return A},{mode:2});var w$=function(){return _.G.apply(this,arguments)||this};
_.g(w$,_.G);w$.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"}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],w$.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],w$.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],w$.prototype,"data",void 0);_.I([_.yU({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],w$);
_.m(w$,"yt-share-panel-header-renderer",function(){if(CGn===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;cNn===void 0&&(cNn=document.createElement("template"));var X=cNn;O.call(L,X.content.cloneNode(!0),A.content.firstChild);CGn=A}A=CGn;return A},{mode:2});var fRX;var IRS;var pN=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"yt-open-popup-action":"onOpen"};return A};
_.g(pN,_.G);_.P=pN.prototype;_.P.attached=function(){this.onOpen()};
_.P.updateTimeSecs=function(A){this.currentTimeSecs=A};
_.P.computeTimeString=function(A){A=A.toString();var L=Math.floor(Number(A)/3600),O=Math.floor(Number(A)%3600%60);return(L>0?L+":":"")+_.Tv(Math.floor(Number(A)%3600/60),L>0?2:1)+":"+_.Tv(O,2)};
_.P.computeTimeStringA11y=function(A){A=_.dvy({seconds:A});var L=A.hours===void 0?0:A.hours,O=A.minutes===void 0?0:A.minutes,X=A.seconds===void 0?0:A.seconds;A=[];if(L>0){var x=c9S().format({hours:L});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.HG)||L>9999)x=x.replace(L.toString(),_.Yce(L)),_.HG==="km"&&(x=x.replace(".",","));A.push(x)}O>0&&A.push(c9S().format({minutes:O}));X>0&&A.push(c9S().format({seconds:X}));L="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");O=_.HG==
"am"?"{0}\u1363 ":_.HG=="fa"?"{0}\u060c\u200f ":_.HG=="my"?"{0} - ":_.HG=="ne"?"{0},":_.HG=="th"?"{0} ":_.HG=="ur"?"{0}\u060c ":_.HG=="ar"||_.HG=="ar-XB"?"{0} \u0648":_.HG=="ja"||_.HG=="zh-CN"||_.HG=="zh-HK"||_.HG=="zh-TW"?"{0}\u3001":"{0}, ";X=_.HG=="am"?"\u1363 ":_.HG=="fa"?"\u060c\u200f ":_.HG=="my"?" - ":_.HG=="th"?" ":_.HG=="ur"?"\u060c ":_.HG=="ar"||_.HG=="ar-XB"?" \u0648":_.HG=="ja"||_.HG=="zh-CN"||_.HG=="zh-HK"||_.HG=="zh-TW"?"\u3001":", ";x=_.HG=="am"?" \u12a5\u1293 {0}":_.HG=="as"?" \u0986\u09f0\u09c1 {0}":
_.HG=="az"?" v\u0259 {0}":_.HG=="bn"?" \u098f\u09ac\u0982 {0}":_.HG=="cs"?" a\u00a0{0}":_.HG=="de"?" und {0}":_.HG=="el"?" \u03ba\u03b1\u03b9 {0}":_.HG=="eu"?" eta {0}":_.HG=="fa"?"\u060c \u0648 {0}":_.HG=="fil"?", at {0}":_.HG=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.HG=="hi"?", \u0914\u0930 {0}":_.HG=="hu"?" \u00e9s {0}":_.HG=="hy"?" \u0587 {0}":_.HG=="id"?", dan {0}":_.HG=="iw"?" \u05d5-{0}":_.HG=="ja"?"\u3001{0}":_.HG=="ka"?" \u10d3\u10d0 {0}":_.HG=="km"?" \u1793\u17b7\u1784 {0}":_.HG=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.HG=="ko"?" \ubc0f {0}":_.HG=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.HG=="lt"?" ir {0}":_.HG=="lv"?" un {0}":_.HG=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.HG=="mr"?" \u0906\u0923\u093f {0}":_.HG=="ms"?" dan {0}":_.HG=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.HG=="ne"?" \u0930 {0}":_.HG=="or"?", \u0b13 {0}":_.HG=="pa"?" \u0a05\u0a24\u0a47 {0}":_.HG=="ro"?" \u0219i {0}":_.HG=="si"?", \u0dc3\u0dc4 {0}":_.HG=="sk"?" a {0}":_.HG=="sl"?" in {0}":_.HG=="sq"?" dhe {0}":_.HG=="sv"?" och {0}":
_.HG=="sw"?" na {0}":_.HG=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.HG=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.HG=="th"?" \u0e41\u0e25\u0e30{0}":_.HG=="tr"?" ve {0}":_.HG=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.HG=="uz"?" va {0}":_.HG=="vi"?" v\u00e0 {0}":_.HG=="zh-HK"?"\u53ca{0}":_.HG=="zu"?", ne-{0}":_.HG=="af"||_.HG=="nl"?" en {0}":_.HG=="ar"||_.HG=="ar-XB"?" \u0648{0}":_.HG=="be"||_.HG=="uk"?" \u0456 {0}":_.HG=="en-GB"||_.HG=="en-IN"?" and {0}":_.HG=="en"||_.HG=="en-XA"?
", and {0}":_.HG=="et"||_.HG=="fi"?" ja {0}":_.HG=="fr"||_.HG=="fr-CA"?" et {0}":_.HG=="zh-CN"||_.HG=="zh-TW"?"\u548c{0}":_.HG=="da"||_.HG=="is"||_.HG=="no"?" og {0}":_.HG=="es"||_.HG=="es-419"||_.HG=="es-US"?" y {0}":_.HG=="kk"||_.HG=="lo"||_.HG=="mn"?", {0}":_.HG=="bg"||_.HG=="mk"||_.HG=="ru"||_.HG=="sr"?" \u0438 {0}":_.HG=="gl"||_.HG=="it"||_.HG=="pt-BR"||_.HG=="pt-PT"?" e {0}":" i {0}";var J=_.HG=="am"?"{0} \u12a5\u1293 {1}":_.HG=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.HG=="az"?"{0} v\u0259 {1}":
_.HG=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.HG=="de"?"{0} und {1}":_.HG=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.HG=="eu"?"{0} eta {1}":_.HG=="fa"?"{0} \u0648 {1}":_.HG=="fil"?"{0} at {1}":_.HG=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.HG=="hi"?"{0} \u0914\u0930 {1}":_.HG=="hu"?"{0} \u00e9s {1}":_.HG=="hy"?"{0} \u0587 {1}":_.HG=="iw"?"{0} \u05d5-{1}":_.HG=="ja"?"{0}\u3001{1}":_.HG=="ka"?"{0} \u10d3\u10d0 {1}":_.HG=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.HG=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.HG=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.HG=="ko"?"{0} \ubc0f {1}":_.HG=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.HG=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.HG=="lt"?"{0} ir {1}":_.HG=="lv"?"{0} un {1}":_.HG=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.HG=="mn"?"{0}, {1}":_.HG=="mr"?"{0} \u0906\u0923\u093f {1}":_.HG=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.HG=="ne"?"{0} \u0930 {1}":_.HG=="or"?"{0} \u0b13 {1}":_.HG=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.HG=="ro"?"{0} \u0219i {1}":_.HG==
"si"?"{0} \u0dc3\u0dc4 {1}":_.HG=="sl"?"{0} in {1}":_.HG=="sq"?"{0} dhe {1}":_.HG=="sv"?"{0} och {1}":_.HG=="sw"?"{0} na {1}":_.HG=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.HG=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.HG=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.HG=="tr"?"{0} ve {1}":_.HG=="ur"?"{0} \u0627\u0648\u0631 {1}":_.HG=="uz"?"{0} va {1}":_.HG=="vi"?"{0} v\u00e0 {1}":_.HG=="zh-HK"?"{0}\u53ca{1}":_.HG=="zu"?"{0} ne-{1}":_.HG=="af"||_.HG=="nl"?"{0} en {1}":_.HG=="ar"||_.HG==
"ar-XB"?"{0} \u0648{1}":_.HG=="be"||_.HG=="uk"?"{0} \u0456 {1}":_.HG=="cs"||_.HG=="sk"?"{0} a\u00a0{1}":_.HG=="et"||_.HG=="fi"?"{0} ja {1}":_.HG=="fr"||_.HG=="fr-CA"?"{0} et {1}":_.HG=="id"||_.HG=="ms"?"{0} dan {1}":_.HG=="zh-CN"||_.HG=="zh-TW"?"{0}\u548c{1}":_.HG=="da"||_.HG=="is"||_.HG=="no"?"{0} og {1}":_.HG=="es"||_.HG=="es-419"||_.HG=="es-US"?"{0} y {1}":_.HG=="bg"||_.HG=="mk"||_.HG=="ru"||_.HG=="sr"?"{0} \u0438 {1}":_.HG=="en"||_.HG=="en-GB"||_.HG=="en-IN"||_.HG=="en-XA"?"{0} and {1}":_.HG==
"gl"||_.HG=="it"||_.HG=="pt-BR"||_.HG=="pt-PT"?"{0} e {1}":"{0} i {1}";_.HG==="sq"?(x=x.replace("dhe","e"),J=J.replace("dhe","e")):_.HG==="th"?(X=X.replace("{0}"," {0}"),J=J.replace("{0}","{0} "),J=J.replace("{1}"," {1}")):_.HG==="ne"?X=",":_.HG==="zh-CN"?X="":L.includes(_.HG)&&(X=" ");return A.length<2?A.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(_.HG)?A.length===2?
J.replace("{0}",A[0]).replace("{1}",A[1]):O.replace("{0}",A[0])+A.slice(1,-1).join(X)+x.replace("{0}",A[A.length-1]):A.join(X)};
_.P.getTimeParam=function(){return JtM(this.timeString)};
_.P.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var A={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},L;_.wm(_.iV(),(L=this.data)==null?void 0:L.trackingParams,A,7)};
_.P.onChangeStartAtTimestamp=function(){for(var A=this.startAtTimestamp.value.split(":"),L=0,O=1,X=A.length-1;X>=0;X--)L+=Number(A[X])*O,O*=60;this.updateTimeSecs(L);this.setTimestamp()};
_.P.onOpen=function(){var A=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var L=_.d0();L?L.getPlayerPromise().then(function(O){O=O.getCurrentTime();A.updateTimeSecs(O)}):GZJ()&&this.updateTimeSecs(GZJ())};
_.P.setTimestamp=function(){var A=Math.floor(this.currentTimeSecs);_.dQ(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!A,timestamp:A||""}])};
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],pN.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],pN.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],pN.prototype,"data",void 0);_.I([_.K({value:!1,notify:!0}),_.Z("design:type",Boolean)],pN.prototype,"isStartAtChecked",void 0);_.I([_.K(),_.Z("design:type",Number)],pN.prototype,"currentTimeSecs",void 0);
_.I([_.K({computed:"computeTimeString(currentTimeSecs)"}),_.Z("design:type",String)],pN.prototype,"timeString",void 0);_.I([_.K({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.Z("design:type",String)],pN.prototype,"timeStringA11y",void 0);_.I([_.qR("#start-at-timestamp"),_.Z("design:type",Object)],pN.prototype,"startAtTimestamp",void 0);_.I([_.yU({is:"yt-start-at-renderer",disableElementRegistration:!0})],pN);
_.m(pN,"yt-start-at-renderer",function(){if(IRS===void 0){var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;fRX===void 0&&(fRX=document.createElement("template"));var X=fRX;O.call(L,X.content.cloneNode(!0),A.content.firstChild);IRS=A}A=IRS;return A},{mode:2});var yNZ;var Z0z;var jEJ=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"]]),WP7=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"]]),H0k=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var zKn={};zKn.YtBindingExpressionsBehavior={identity:_.Rd,msg:function(A,L){L=L===void 0?{}:L;return _.b3(A,L,A)},
msgPlural:function(A,L){return _.hz(A,L)},
getMusicIconFromType:function(A){if(_.h("music_web_enable_icon_wil"))A=_.bV(A);else if(WP7.has(A))A="yt-sys-icons:"+WP7.get(A);else{var L=jEJ.get(A)||_.bV(A).split(":")[1];L=_.QYP(L);var O;A=((O=H0k.get(A))!=null?O:"yt-sys-icons:")+L}return A}};var BnX;var MCn;var $L7;var aR$=document.head,kGM=aR$.appendChild,ULX;if($L7===void 0){var v6$=document.createElement("template");_.p(v6$,'\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>');$L7=v6$}ULX=$L7;kGM.call(aR$,ULX.content);var iC=function(){var A=_.G.apply(this,arguments)||this;A.screenLayer=7;return A};
_.g(iC,_.G);iC.prototype.getScreenLayer=function(){return this.screenLayer};
iC.prototype.onTap=function(A){A&&A.detail&&(A.detail.x||A.detail.y)&&_.YJ(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.TZ(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(A=this.getScreenLayer(),_.P4(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:A}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.v2.Object.defineProperties(iC.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()}}});
iC.prototype.onTap=iC.prototype.onTap;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],iC.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],iC.prototype,"ytComponentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],iC.prototype,"data",void 0);_.I([_.r("data.title"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],iC.prototype,"title",null);
_.I([_.r("data.serviceName"),_.Z("design:type",String),_.Z("design:paramtypes",[])],iC.prototype,"icon",null);_.I([_.by("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],iC.prototype,"onTap",null);_.I([_.yU({is:"yt-share-target-renderer",disableElementRegistration:!0})],iC);
_.m(iC,"yt-share-target-renderer",function(){if(MCn===void 0){var A=document.createElement("template");_.p(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-target-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_target_renderer.yt.share.target.renderer.css.js--\x3e<button id="target" title="[[title]]" class="style-scope yt-share-target-renderer">\n  <yt-icon class="icon-resize style-scope yt-share-target-renderer" active="true" icon="[[icon]]" size="60"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;BnX===void 0&&(BnX=document.createElement("template"));var X=BnX;O.call(L,X.content.cloneNode(!0),A.content.firstChild);MCn=A}A=MCn;return A},{mode:2});var o6z;var AZX;var Ng=function(){var A=_.G.apply(this,arguments)||this;A.SHARE_TARGET_WIDTH=70;A.SHARE_TARGET_MARGIN_RIGHT=8;A.PAGE_SCROLL_SPEED=9;A.actionMap={"yt-share-panel-reset-action":"onReset_"};return A};
_.g(Ng,_.G);_.P=Ng.prototype;_.P.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.P.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.YJ(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.YJ(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.P.onReset_=function(){if(_.YJ(this.hostElement).querySelector("#list")){var A=_.YJ(this.hostElement).querySelector("#list");var L=_.YJ(this.hostElement).querySelector("#list");var O=L.offsetLeft,X=L.offsetParent;X||_.mQl(L)!="fixed"||(X=_.Ro(L).documentElement);if(X){if(_.ns&&!_.b1(58)){var x=_.zSV(X);O+=x.left}else Number(_.ujr)>=8&&!(Number(_.ujr)>=9)&&(x=_.zSV(X),O-=x.left);L=_.W$u(X)?X.clientWidth-(O+L.offsetWidth):O}else L=O;yRS(A,L);this.updateScrollButtons_()}};
_.P.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.P.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.P.onScrollWheel_=function(A){A.stopPropagation();A.preventDefault();var L=I7X(_.YJ(this.hostElement).querySelector("#list"));A=Math.abs(A.deltaX)>Math.abs(A.deltaY)?A.deltaX:A.deltaY;yRS(_.YJ(this.hostElement).querySelector("#list"),L+A);this.updateScrollButtons_()};
_.P.smoothScrollByOnePage_=function(A){var L=_.YJ(this.hostElement).querySelector("#list"),O=(Math.floor(L.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,X=I7X(L),x=O*(A?1:-1),J=this.PAGE_SCROLL_SPEED,Y=this.updateScrollButtons_.bind(this),T=0,V;(function n(){T+=J;V=T/O*2;yRS(L,X+x*(V<1?V*V:-V*V+4*V-2));T<O?window.requestAnimationFrame(n):Y()})()};
_.P.updateScrollButtons_=function(){var A=I7X(_.YJ(this.hostElement).querySelector("#list")),L=_.YJ(this.hostElement).querySelector("#list").scrollWidth-_.YJ(this.hostElement).querySelector("#list").clientWidth;_.YJ(this.hostElement).querySelector("#scroll-button-back").hidden=A<=0;_.YJ(this.hostElement).querySelector("#scroll-button-forward").hidden=A>=L};
Ng.prototype.onScrollWheel_=Ng.prototype.onScrollWheel_;Ng.prototype.onDataChanged_=Ng.prototype.onDataChanged_;_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Ng.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],Ng.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(zKn.YtBindingExpressionsBehavior),_.Z("design:type",Object)],Ng.prototype,"ytBindingExpressionsBehavior",void 0);
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Ng.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Ng.prototype,"data",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ng.prototype,"onDataChanged_",null);_.I([_.by("wheel"),_.Z("design:type",Function),_.Z("design:paramtypes",[WheelEvent]),_.Z("design:returntype")],Ng.prototype,"onScrollWheel_",null);
_.I([_.yU({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],Ng);
_.m(Ng,"yt-third-party-share-target-section-renderer",function(){if(AZX===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;o6z===void 0&&(o6z=document.createElement("template"));var X=o6z;O.call(L,X.content.cloneNode(!0),A.content.firstChild);AZX=A}A=AZX;return A},{mode:2});var r$=function(){return _.G.apply(this,arguments)||this};
_.g(r$,_.G);r$.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"}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],r$.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],r$.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],r$.prototype,"data",void 0);_.I([_.yU({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],r$);
_.m(r$,"yt-third-party-network-section-renderer",function(){if(Z0z===void 0){var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;yNZ===void 0&&(yNZ=document.createElement("template"));var X=yNZ;O.call(L,X.content.cloneNode(!0),A.content.firstChild);Z0z=A}A=Z0z;return A},{mode:2});_.Y4(_.xa(function(A){return _.D("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.D("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.D(_.ID,{data:function(){return A.data().firstPartyItems}},{listItemViewModel:_.HZ})))},"Hg"),"first-party-network-section-view-model",{props:{data:_.x5}});var LpM=_.AW(["data:image/svg+xml;charset=UTF-8;base64,",""]),KN=function(){var A=_.G.apply(this,arguments)||this;A.screenLayer=7;A.qrCodeEnabled=_.h("web_enable_sharing_qr_code");A.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return A};
_.g(KN,_.G);_.P=KN.prototype;_.P.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{senderIdSectionRenderer:"ytd-sender-id-section-renderer",thirdPartyNetworkSection:"yt-third-party-network-section-renderer",firstPartyNetworkSectionViewModel:"first-party-network-section-view-model"}}}};
_.P.attached=function(){this.JSC$20999_scroller&&(this.JSC$20999_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20999_scroller.attached&&typeof this.JSC$20999_scroller.attached==="function"&&this.JSC$20999_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.P.onDataChanged=function(){var A=this,L;(L=this.data)!=null&&L.contents&&(this.hostElement.setAttribute("links-only","true"),_.VU(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.kd(this,function(){_.P4(A.hostElement,"yt-refit");A.focusSharePanelHeader()}))};
_.P.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.P.handleSetTimestamp=function(A){var L=this.shortUrl();A.isSet&&(L=_.v6(L,"t",A.timestamp));this.maybeRenderQrCode(L)};
_.P.shortUrl=function(){var A,L=(A=this.data)==null?void 0:A.contents;if(L)for(A=0;A<L.length;A++){var O=void 0,X=void 0;if((O=L[A])==null?0:(X=O.thirdPartyNetworkSection)==null?0:X.copyLinkContainer){var x=X=O=void 0;return(x=_.q((O=L[A])==null?void 0:(X=O.thirdPartyNetworkSection)==null?void 0:X.copyLinkContainer,ZAM))==null?void 0:x.shortUrl}}};
_.P.maybeRenderQrCode=function(A){var L=this,O,X,x,J,Y,T,V,E,n;return _.u(function(t){if(t.nextAddress==1){O=_.YJ(L.hostElement).querySelector("#qr-code");if(!L.qrCodeEnabled||!A)return O&&(O.style.display="none"),t.return();X=_.Myr(_.X5().resolve(_.ht),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});x=document.createElement("div");return typeof X==="function"?(X(x),t.jumpTo(2)):t.yield(X,3)}t.nextAddress!=2&&(J=t.yieldResult,J(x));V=(Y=x)==null?void 0:(T=Y.firstChild)==null?void 0:T.firstChild;
E=document.createElement("img");n=_.oWe(LpM,btoa(V.outerHTML));E.onload=function(){var b={canvas:O,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:E},S=new xTB;uZn(S,A);TM7(S,!1,VQX(S));var w=S.modules,l=Object.assign({},crM,b);w=structuredClone(w);b=w.length;var F,R=(F=l.canvas)!=null?F:document.createElement("canvas");F=l.cellSize;S=l.logo;var y,M=(y=l.logoSize)!=null?y:Math.floor(b/4);b%2!==M%2&&M++;var H=l.logoPadding,z=l.backgroundColor;y=b*F;var a=
l.width,xe=0;a&&(xe=l.padding,xe=Math.ceil(xe*y/(a-xe*2)),R.style.width=a+"px",R.style.height=a+"px");R.width!==y+xe*2&&(R.width=y+xe*2);R.height!==y+xe*2&&(R.height=y+xe*2);y=R.getContext("2d");l.autoClear&&y.clearRect(0,0,R.width,R.height);y.fillStyle=z;y.beginPath();y.roundRect(0,0,R.width,R.height,l.borderRadius);y.fill();y.save();y.translate(xe,xe);if(S)for(R=Math.floor(b-M)/2-H,H=Math.floor(b+M)/2+H,z=R;z<H;z++)for(a=R;a<H;a++)w[z][a]=!1;for(R=0;R<b;R++)for(H=0;H<b;H++)(R<7&&H<7||R<7&&H>=b-
7||R>=b-7&&H<7)&&(w[R][H]=!1);var ur;R=(ur=l.markerColor)!=null?ur:l.color;ecM(y,0,0,F,R);ecM(y,F*(b-7),0,F,R);ecM(y,0,F*(b-7),F,R);switch(l.cellStyle){case 0:ur=w;w=ur.length;R=l.cellSize;y.beginPath();for(H=0;H<w;H++)for(z=0;z<w;z++)ur[H][z]&&y.rect(H*R,z*R,R,R);y.fillStyle=l.color;y.fill();break;case 1:ur=w;w=ur.length;R=l.cellSize;H=R*l.relativeCircleSize;y.fillStyle=l.color;y.beginPath();for(l=0;l<w;l++)for(z=0;z<w;z++)ur[l][z]&&(y.beginPath(),y.ellipse((l+.5)*R,(z+.5)*R,H/2,H/2,0,0,2*Math.PI),
y.fill());y.fill();break;case 2:ur=w;w=ur.length;R=l.cellSize;y.fillStyle=l.color;l=[[1,1],[-1,1],[-1,-1],[1,-1]];y.beginPath();for(H=0;H<w;H++)for(z=0;z<w;z++)if(ur[H][z])y.roundRect(H*R,z*R,R,R,R/2),H+1<w&&ur[H+1][z]&&y.rect(H*R+R/2,z*R,R,R),z+1<w&&ur[H][z+1]&&y.rect(H*R,z*R+R/2,R,R);else{a=H*R+R/2;xe=z*R+R/2;for(var eD=0;eD<4;eD++){var gu=_.d(l[eD]),ir=gu.next().value;gu=gu.next().value;H+ir>=0&&H+ir<w&&z+gu>=0&&z+gu<w&&ur[H+ir][z]&&ur[H][z+gu]&&ur[H+ir][z+gu]&&(ir=eD*Math.PI/2,gu=R/2,y.moveTo(a+
gu*Math.cos(ir),xe+gu*Math.sin(ir)),y.arc(a,xe,R/2,ir,ir+Math.PI/2,!1),y.lineTo(a+gu*(Math.cos(ir)-Math.sin(ir)),xe+gu*(Math.cos(ir)+Math.sin(ir))),y.lineTo(a+gu*Math.cos(ir),xe+gu*Math.sin(ir)))}}y.fill()}S&&y.drawImage(S,(b-M)*F/2,(b-M)*F/2,M*F,M*F);y.restore();O.style.removeProperty("display")};
E.src=_.G2(n);_.qo(t)})};
_.P.hasCommunityPostRenderer=function(){var A,L,O,X;return!!((A=this.data)==null?0:(L=A.header)==null?0:(O=L.sharePanelHeaderRenderer)==null?0:(X=O.communityPost)==null?0:X.communityPostSectionRenderer)};
_.P.onTapClose=function(){_.dQ(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.P.getScreenLayer=function(){return this.screenLayer};
_.P.logSharePanelPage=function(){if(!_.h("enable_share_panel_navigation_logging_fix_on_web")){var A;if((A=this.data)!=null&&A.trackingParams){A=this.data.trackingParams;var L=this.parentClickTrackingParams;L=L?_.lV(L):void 0;var O=_.iV();_.h7(O,21760,L,{layer:7,parentLayer:0});O.graftServerVe(A,void 0,7);_.Ai().dispatch(_.JY({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
KN.prototype.onDataChanged=KN.prototype.onDataChanged;_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],KN.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],KN.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],KN.prototype,"ytdReduxBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],KN.prototype,"ytActionHandlerBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],KN.prototype,"data",void 0);_.I([_.K({value:_.b3("SBOX_INAPPROPRIATE_CANCEL")}),_.Z("design:type",String)],KN.prototype,"closeButtonAriaLabel",void 0);_.I([_.qR("yt-share-panel-header-renderer"),_.Z("design:type",HTMLElement)],KN.prototype,"header",void 0);_.I([_.K({selector:function(A){return A.share.parentClickTrackingParams}}),
_.Z("design:type",String)],KN.prototype,"parentClickTrackingParams",void 0);_.I([_.K(),_.Z("design:type",Object)],KN.prototype,"qrCodeEnabled",void 0);_.I([_.qR("#scroller"),_.Z("design:type",Object)],KN.prototype,"JSC$20999_scroller",void 0);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],KN.prototype,"onDataChanged",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],KN);
_.m(KN,"ytd-unified-share-panel-renderer",function(){if(KPz!==void 0)return KPz;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return KPz=A},{mode:1});var ORZ;var G8=function(){var A=_.G.apply(this,arguments)||this;A.modernModal=!0;return A};
_.g(G8,_.G);G8.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
G8.prototype.computeShouldHideOldButtons=function(){var A;return!((A=this.data)==null?0:A.button)};
_.v2.Object.defineProperties(G8.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var A,L;return(A=this.data)==null?void 0:(L=A.button)==null?void 0:L.buttonRenderer}}});
_.I([_.K(),_.Z("design:type",Object)],G8.prototype,"data",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],G8.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.KP.YtEventForwardingBehavior),_.Z("design:type",Object)],G8.prototype,"ytEventForwardingBehavior",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],G8.prototype,"modernModal",void 0);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],G8.prototype,"buttonRendererData",null);
_.I([_.Q({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],G8);
_.m(G8,"ytd-modal-with-title-and-button-renderer",function(){if(ORZ!==void 0)return ORZ;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return ORZ=A},{mode:1});var XtZ;var lC=function(){return _.G.apply(this,arguments)||this};
_.g(lC,_.G);lC.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.A3("page-changed",this.page))};
lC.prototype.pageChangedForBinding=lC.prototype.pageChangedForBinding;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],lC.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],lC.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",String)],lC.prototype,"page",void 0);_.I([_.hT("page"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],lC.prototype,"pageChangedForBinding",null);
_.I([_.Q({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],lC);
_.m(lC,"ytd-account-item-section-header-renderer",function(){if(XtZ!==void 0)return XtZ;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return XtZ=A},{mode:1});var xpz;var cr=function(){return _.G.apply(this,arguments)||this};
_.g(cr,_.G);cr.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"}}}};
cr.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],cr.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],cr.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.U8),_.Z("design:type",Object)],cr.prototype,"ytContinuationHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],cr.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!1}),_.Z("design:type",Function)],cr.prototype,"onAccountItemTap",void 0);
_.I([_.Q({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],cr);
_.m(cr,"ytd-account-item-section-renderer",function(){if(xpz!==void 0)return xpz;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return xpz=A},{mode:1});var s0B;var JZB;var CN=function(){return _.G.apply(this,arguments)||this};
_.g(CN,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],CN.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],CN.prototype,"data",void 0);_.I([_.Q({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],CN);
_.m(CN,"ytd-accounts-dialog-header-renderer",function(){if(JZB!==void 0)return JZB;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return JZB=A},{mode:1});var PmZ;var Ff=function(){return _.G.apply(this,arguments)||this};
_.g(Ff,_.G);Ff.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Ff.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Ff.prototype,"data",void 0);_.I([_.Q({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],Ff);
_.m(Ff,"ytd-google-account-header-renderer",function(){if(PmZ!==void 0)return PmZ;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return PmZ=A},{mode:1});var Rz=function(){return _.G.apply(this,arguments)||this};
_.g(Rz,_.G);Rz.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"}}}};
Rz.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.A3("page-changed",this.page))};
Rz.prototype.pageChangedForBinding=Rz.prototype.pageChangedForBinding;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Rz.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Rz.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Rz.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",String)],Rz.prototype,"page",void 0);
_.I([_.hT("page"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Rz.prototype,"pageChangedForBinding",null);_.I([_.Q({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],Rz);
_.DX()(Rz,"ytd-account-section-list-renderer",function(){if(s0B===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);s0B=A}A=s0B;return A},{allowedProps:["data"],
mode:1});var dpM;var Qa=function(){var A=_.G.apply(this,arguments)||this;A.enableHandlesAccountMenuSwitcher=_.h("enable_handles_account_menu_switcher");return A};
_.g(Qa,_.G);Qa.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
Qa.prototype.dataChanged=Qa.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Qa.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Qa.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Qa.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.I([_.qR("#avatar"),_.Z("design:type",Object)],Qa.prototype,"avatar",void 0);
_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Qa.prototype,"dataChanged",null);_.I([_.Q({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],Qa);
_.DX()(Qa,"ytd-active-account-header-renderer",function(){if(dpM===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);dpM=A}A=dpM;return A},{allowedProps:["data"],
mode:1});var Ypz;var uc7;var mI=function(){return _.G.apply(this,arguments)||this};
_.g(mI,_.G);mI.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
mI.prototype.onBackTap=function(){_.P4(this.hostElement,"yt-menu-back-tapped")};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],mI.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],mI.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],mI.prototype,"data",void 0);_.I([_.Q({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],mI);
_.DX()(mI,"ytd-simple-menu-header-renderer",function(){if(uc7===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);uc7=A}A=uc7;return A},{allowedProps:["data"],
mode:2});var T3M;var fN=function(){return _.G.apply(this,arguments)||this};
_.g(fN,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],fN.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],fN.prototype,"data",void 0);_.I([_.Q({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],fN);
_.m(fN,"ytd-comment-video-thumbnail-header-renderer",function(){if(T3M!==void 0)return T3M;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return T3M=A},{mode:1});var VGM;var Iz=function(){return _.G.apply(this,arguments)||this};
_.g(Iz,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Iz.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Iz.prototype,"data",void 0);_.I([_.Q({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],Iz);
_.m(Iz,"ytd-abuse-type-selector-renderer",function(){if(VGM!==void 0)return VGM;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return VGM=A},{mode:1});var Dpn;var ya=function(){return _.G.apply(this,arguments)||this};
_.g(ya,_.G);ya.prototype.attached=function(){var A=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){A.additionalContextInput.focusTextInput()})};
ya.prototype.handleAdditionalContextChanged=function(){var A=this;_.$J(this,"ytd-report-channel-additional-context-update",function(){A.ytdReduxBehavior.dispatch(_.JY({type:"ADDITIONAL_CONTEXT_UPDATED",payload:A.additionalContext}))},300)};
ya.prototype.updateAdditionalContextFromBinding=function(A){this.additionalContext=A.detail.value};
ya.prototype.handleAdditionalContextChanged=ya.prototype.handleAdditionalContextChanged;_.I([_.N(_.HL),_.Z("design:type",Object)],ya.prototype,"ytdReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",String)],ya.prototype,"additionalContext",void 0);_.I([_.K({selector:function(A){return A.reportChannelAbuse.additionalContext}}),
_.Z("design:type",String)],ya.prototype,"additionalContextRedux",void 0);_.I([_.K(),_.Z("design:type",Object)],ya.prototype,"data",void 0);_.I([_.qR("yt-text-input-form-field-renderer"),_.Z("design:type",Object)],ya.prototype,"additionalContextInput",void 0);_.I([_.hT("additionalContext"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ya.prototype,"handleAdditionalContextChanged",null);
_.I([_.Q({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],ya);
_.m(ya,"ytd-report-channel-modal-additional-context-renderer",function(){if(Dpn!==void 0)return Dpn;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Dpn=A},{mode:1});var eNJ;var Zq=function(){var A=_.G.apply(this,arguments)||this;A.nextButtonDisabled=null;A.submitEndpoint=null;A.navigationEndpoint=null;A.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return A};
_.g(Zq,_.G);_.P=Zq.prototype;_.P.computeNextButtonData=function(A,L,O){var X={};L&&(X.navigationEndpoint=L);O&&(X.serviceEndpoint=O);A&&A.buttonRenderer&&_.lW.extend(X,A.buttonRenderer);return X};
_.P.handleReportChannelModalDisableNextButtonAction=function(A){this.setNextButtonIsDisabled(A)};
_.P.handleReportFormEndpointUpdateAction=function(A){this.setNextButtonIsDisabled(!!A.disableSubmitButton);this.resetEndpointData();A.submitEndpoint?this.submitEndpoint=A.submitEndpoint:A.submitNavigationEndpoint&&(this.navigationEndpoint=A.submitNavigationEndpoint)};
_.P.handleSignalActionSubmitForm=function(){var A,L=Object.keys(((A=this.reportChannelAbuseForm)==null?void 0:A.selectedVideoIds)||{}),O;A=((O=this.reportChannelAbuseForm)==null?void 0:O.additionalContext)||"";var X;O=((X=this.reportChannelAbuseForm)==null?void 0:X.impersonatedChannelUrl)||"";var x;if((x=this.data)==null?0:x.submitEndpoint){L={impersonated_channel_url:O,text:A,video_ids:L};var J;_.X5().resolve(_.x$).resolveCommand((J=this.data)==null?void 0:J.submitEndpoint,{form:Object.assign({},
L,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.P.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.P.onYtServiceRequestError=function(A){this.setNextButtonIsDisabled(!1);_.JC(this.hostElement,A.detail.error.message)};
_.P.setNextButtonIsDisabled=function(A){this.set("data.nextButton.buttonRenderer.isDisabled",A)};
_.P.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
Zq.prototype.onYtServiceRequestError=Zq.prototype.onYtServiceRequestError;Zq.prototype.onYtServiceRequestCompleted=Zq.prototype.onYtServiceRequestCompleted;_.I([_.K(),_.Z("design:type",Object)],Zq.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],Zq.prototype,"nextButtonDisabled",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],Zq.prototype,"ytdReduxBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],Zq.prototype,"ytActionHandlerBehavior",void 0);
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Zq.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Zq.prototype,"submitEndpoint",void 0);_.I([_.K(),_.Z("design:type",Object)],Zq.prototype,"navigationEndpoint",void 0);_.I([_.K({selector:function(A){return A.reportChannelAbuse}}),
_.Z("design:type",Object)],Zq.prototype,"reportChannelAbuseForm",void 0);_.I([_.by("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Zq.prototype,"onYtServiceRequestCompleted",null);_.I([_.by("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Zq.prototype,"onYtServiceRequestError",null);
_.I([_.Q({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],Zq);
_.m(Zq,"ytd-report-channel-modal-footer-renderer",function(){if(eNJ!==void 0)return eNJ;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return eNJ=A},{mode:1});var EmJ;var jc=function(){var A=_.G.apply(this,arguments)||this;A.boundOnTapDismissButton=function(){A.closePopup()};
return A};
_.g(jc,_.G);jc.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
jc.prototype.handleDataChanged=function(){_.M6(this.hostElement)};
jc.prototype.closePopup=function(){_.dQ(this.hostElement,"yt-close-popup-action")};
jc.prototype.handleDataChanged=jc.prototype.handleDataChanged;_.I([_.K(),_.Z("design:type",Object)],jc.prototype,"boundOnTapDismissButton",void 0);_.I([_.K(),_.Z("design:type",Object)],jc.prototype,"data",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],jc.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],jc.prototype,"ytRendererstamperBehavior",void 0);
_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],jc.prototype,"handleDataChanged",null);_.I([_.Q({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],jc);
_.m(jc,"ytd-report-channel-modal-header-renderer",function(){if(EmJ!==void 0)return EmJ;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return EmJ=A},{mode:1});var nmM;var Wr=function(){var A=_.G.apply(this,arguments)||this;A.autoValidate=!1;A.invalid=!1;A.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return A};
_.g(Wr,_.G);_.P=Wr.prototype;_.P.attached=function(){var A=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){A.channelUrlInput.focusTextInput()})};
_.P.disableNextButton=function(A){_.dQ(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[A])};
_.P.handleImpersonatedChannelUrlChanged=function(){var A=this;this.disableNextButton(!0);this.invalid=!1;_.$J(this,"ytd-report-channel-impersonated-channel-update",function(){var L=A.impersonatedChannelUrl.trim();A.ytdReduxBehavior.dispatch(_.JY({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:L}));var O;((O=A.data)==null?0:O.submitEndpoint)&&L&&_.X5().resolve(_.x$).resolveCommand(A.data.submitEndpoint,{form:{impersonated_channel_url:L,element:A.hostElement}})},500)};
_.P.handleModifyReportFormCommand=function(A){this.invalid=this.get("modifyReportFormCommand.action",A)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.P.updateInvalidFromBinding=function(A){this.invalid=A.detail.value};
_.P.updateImpersonatedChannelUrlFromBinding=function(A){this.impersonatedChannelUrl=A.detail.value};
Wr.prototype.handleImpersonatedChannelUrlChanged=Wr.prototype.handleImpersonatedChannelUrlChanged;_.I([_.N(_.HL),_.Z("design:type",Object)],Wr.prototype,"ytdReduxBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],Wr.prototype,"ytActionHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Wr.prototype,"autoValidate",void 0);_.I([_.K(),_.Z("design:type",Object)],Wr.prototype,"invalid",void 0);
_.I([_.K(),_.Z("design:type",String)],Wr.prototype,"impersonatedChannelUrl",void 0);_.I([_.K({selector:function(A){return A.reportChannelAbuse.impersonatedChannelUrl}}),
_.Z("design:type",String)],Wr.prototype,"impersonatedChannelUrlRedux",void 0);_.I([_.K(),_.Z("design:type",Object)],Wr.prototype,"data",void 0);_.I([_.qR("#text-input"),_.Z("design:type",Object)],Wr.prototype,"channelUrlInput",void 0);_.I([_.hT("impersonatedChannelUrl"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Wr.prototype,"handleImpersonatedChannelUrlChanged",null);
_.I([_.Q({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],Wr);
_.m(Wr,"ytd-report-channel-modal-impersonation-renderer",function(){if(nmM!==void 0)return nmM;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return nmM=A},{mode:1});var tGJ;var bRz;var Hr=function(){return _.G.apply(this,arguments)||this};
_.g(Hr,_.G);Hr.prototype.onCheckboxToggled=function(A){var L,O,X=(O=_.q((L=this.data)==null?void 0:L.video,_.kt))==null?void 0:O.videoId;X&&this.ytdReduxBehavior.dispatch(A.target.checked?_.JY({type:"VIDEO_SELECTED",payload:X}):_.JY({type:"VIDEO_UNSELECTED",payload:X}))};
Hr.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.v2.Object.defineProperties(Hr.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var A,L=(A=this.data)==null?void 0:A.video;if(!L)return{};var O;A=(O=_.q(L,_.kt))==null?void 0:O.navigationEndpoint;if(!A)return L;_.q(A==null?void 0:A.commandMetadata,_.LM)&&(_.q(A.commandMetadata,_.LM).ignoreNavigation=!0);return L}}});
_.I([_.K({reflectToAttribute:!0,selector:function(A,L){return L in A.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.Z("design:type",Boolean)],Hr.prototype,"checked",void 0);_.I([_.K(),_.Z("design:type",Object)],Hr.prototype,"data",void 0);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Hr.prototype,"video",null);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Hr.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Hr.prototype,"ytRendererstamperBehavior",void 0);
_.I([_.N(_.HL),_.Z("design:type",Object)],Hr.prototype,"ytdReduxBehavior",void 0);_.I([_.Q({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],Hr);
_.m(Hr,"ytd-selectable-video-renderer",function(){if(bRz!==void 0)return bRz;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return bRz=A},{mode:1});var z8=function(){var A=_.G.apply(this,arguments)||this;A.monitorScroll=!0;return A};
_.g(z8,_.G);z8.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],z8.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],z8.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],z8.prototype,"data",void 0);_.I([_.Q({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],z8);
_.m(z8,"ytd-selectable-video-list-renderer",function(){if(tGJ!==void 0)return tGJ;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return tGJ=A},{mode:1});var hNJ;_.y3("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var Br=function(){return _.G.apply(this,arguments)||this};
_.g(Br,_.G);Br.prototype.onChange=function(A){if(A=_.AT(A).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.h("kevlar_command_handler_migration_killswitch"))_.VN(this.hostElement,A,this.hostElement);else{A=_.d(A);for(var L=A.next();!L.done;L=A.next())this.ytComponentBehavior.resolveCommand(L.value)}};
Br.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
Br.prototype.updateDataToggledFromBinding=function(A){this.set("data.toggled",A.detail.value)};
_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],Br.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Br.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Br.prototype,"data",void 0);_.I([_.K({computed:"isEnabled(data)"}),_.Z("design:type",Boolean)],Br.prototype,"enabled",void 0);_.I([_.Q({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],Br);
_.m(Br,"ytd-toggle-item-renderer",function(){if(hNJ!==void 0)return hNJ;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return hNJ=A},{mode:1});var SpM;var qp7;var gmX;var Mg=function(){var A=_.G.apply(this,arguments)||this;A.setVisible=!1;A.boundOnSubmitButtonClick=function(){A.onSubmitButtonClick()};
A.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return A};
_.g(Mg,_.G);Mg.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}}}}}};
Mg.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
Mg.prototype.onSubmitButtonClick=function(){var A;((A=this.data)==null?0:A.submitEndpoint)&&!_.h("enable_ytc_refunds_submit_form_signal_action")&&_.TZ(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
Mg.prototype.handleSignalActionSubmitForm=function(){var A;((A=this.data)==null?0:A.submitEndpoint)&&_.TZ(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.v2.Object.defineProperties(Mg.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.hiddenByDefault)&&!this.setVisible}}});
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],Mg.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Mg.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Mg.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Mg.prototype,"setVisible",void 0);_.I([_.K(),_.Z("design:type",Object)],Mg.prototype,"data",void 0);
_.I([_.K(),_.Z("design:type",Object)],Mg.prototype,"surveyFeedbackData",void 0);_.I([_.K(),_.Z("design:type",Object)],Mg.prototype,"boundOnSubmitButtonClick",void 0);_.I([_.K({reflectToAttribute:!0}),_.r("data","setVisible"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Mg.prototype,"visibilityHidden",null);_.I([_.yU({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],Mg);
_.m(Mg,"yt-flow-footer-renderer",function(){if(gmX===void 0){var A=document.createElement("template");_.p(A,'\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>');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;qp7===void 0&&(qp7=document.createElement("template"));var X=qp7;O.call(L,X.content.cloneNode(!0),A.content.firstChild);gmX=A}A=gmX;return A},{mode:2});var $i=function(){return _.G.apply(this,arguments)||this};
_.g($i,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],$i.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],$i.prototype,"ytdReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],$i.prototype,"data",void 0);_.I([_.K({selector:function(A){return A.ypc.surveyFeedbackData}}),
_.Z("design:type",Object)],$i.prototype,"surveyFeedbackData",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],$i);
_.m($i,"ytd-flow-footer-renderer",function(){if(SpM!==void 0)return SpM;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return SpM=A},{mode:_.e5("kevlar_poly_si_batch_j025")?1:2});var wtn;var ptX;var az=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return A};
_.g(az,_.G);_.P=az.prototype;_.P.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.Zr("multiPageMenuSectionItems")}}};
_.P.handleHideEnclosingAction_=function(A){if(this.data&&this.data.items)for(var L=0;L<this.data.items.length;L++){var O=this.data.items[L].notificationRenderer;if(O&&O.notificationId==A.hideEnclosingAction.notificationId){this.splice("data.items",L,1);_.dQ(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.P.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.VU(this.hostElement,"hidden",!0)};
_.P.updateMenu_=function(A){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&A&&!A.doNotRefreshInbox){A=this.data.continuations;for(var L=0;L<A.length;L++)if(A[L].invalidationContinuationData){var O=void 0;var X=(O=A[L].invalidationContinuationData)==null?void 0:O.continuation;break}A=_.lW.clone(this.data.continuationUpdateEndpoint||null);A.continuation=X;A.click_tracking_params=this.data.trackingParams;_.TZ(this.hostElement,[A])}};
_.P.onServiceRequestCompleted_=function(A,L){if(this.data&&(A=L.actions)){L=0;for(var O=A.length;L<O;L++){var X=_.q(A[L],_.sLj);if(!X)break;if((X.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||X.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&X.continuationItems&&this.data.items){var x=this.data.items.length-1;this.data.items[x].continuationItemRenderer&&(X=["data.items",x,1].concat(X.continuationItems),this.splice.apply(this,X))}}}};
az.prototype.onServiceRequestCompleted_=az.prototype.onServiceRequestCompleted_;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],az.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],az.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],az.prototype,"ytActionHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],az.prototype,"data",void 0);
_.I([_.by("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.Xi]),_.Z("design:returntype")],az.prototype,"onServiceRequestCompleted_",null);_.I([_.yU({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],az);
_.DX()(az,"yt-multi-page-menu-section-renderer",function(){if(ptX===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;wtn===void 0&&(wtn=document.createElement("template"));var X=wtn;O.call(L,X.content.cloneNode(!0),A.content.firstChild);ptX=A}A=ptX;return A},{allowedProps:["data"],
mode:2});var iRX;var N37;var ki=function(){return _.G.apply(this,arguments)||this};
_.g(ki,_.G);ki.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.v2.Object.defineProperties(ki.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.progress)==null?0:this.data.progress*100}}});
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],ki.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],ki.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],ki.prototype,"data",void 0);_.I([_.r("data.progress"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],ki.prototype,"showProgressBar",null);
_.I([_.r("data.progress"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],ki.prototype,"progress",null);_.I([_.yU({is:"yt-flow-header-renderer",disableElementRegistration:!0})],ki);
_.m(ki,"yt-flow-header-renderer",function(){if(N37===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;iRX===void 0&&(iRX=document.createElement("template"));var X=iRX;O.call(L,X.content.cloneNode(!0),A.content.firstChild);N37=A}A=N37;return A},{mode:2});var rZM;var Kpk;var UD=function(){return _.G.apply(this,arguments)||this};
_.g(UD,_.G);UD.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],UD.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],UD.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],UD.prototype,"data",void 0);_.I([_.yU({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],UD);
_.m(UD,"yt-post-confirmation-flow-step-renderer",function(){if(Kpk===void 0){var A=document.createElement("template");_.p(A,'\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>');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;rZM===void 0&&(rZM=document.createElement("template"));var X=rZM;O.call(L,X.content.cloneNode(!0),A.content.firstChild);Kpk=A}A=Kpk;return A},{mode:2});var GxJ;var lCZ;var vr=function(){return _.G.apply(this,arguments)||this};
_.g(vr,_.G);
vr.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"}}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],vr.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],vr.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],vr.prototype,"data",void 0);_.I([_.yU({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],vr);
_.m(vr,"yt-refund-confirmation-flow-step-renderer",function(){if(lCZ===void 0){var A=document.createElement("template");_.p(A,'\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>');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;GxJ===void 0&&(GxJ=document.createElement("template"));var X=GxJ;O.call(L,X.content.cloneNode(!0),A.content.firstChild);lCZ=A}A=lCZ;return A},{mode:2});_.Xh(PVz);_.Xh(db$);var YYB=_.cm({avatarViewModel:_.fP});_.Xh(uIM);var hb=_.cm({commentInteractionViewModel:db$,sharedSubscriptionViewModel:uIM,buttonViewModel:_.gj,horizontalShelfViewModel:_.BZ});_.Xh(TWX);_.Xh(V5M);_.Xh(DbM);_.Xh(ekJ);_.Xh(EaJ);var naM=_.cm({profileIdentityInfoViewModel:_.T9z,profileInfoViewModel:EaJ});_.Xh(t5Q);_.tF(t5Q,"yt-profile-card-view-model",{propNames:["data"]});var oz=function(){var A=_.G.apply(this,arguments)||this;A.enableFocusFix=_.h("music_web_enable_focus_on_setting_menu_fix")&&_.fB("IS_MOBILE_WEB",!1);A.covered=!1;A.hideMenu=!1;A.isCommentNotificationOnProfileCard=!1;A.scrolledByTouch=!1;A.disableBackdropFilter=_.h("web_disable_backdrop_filter");A.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return A};
_.g(oz,_.G);_.P=oz.prototype;
_.P.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{activeAccountHeaderRenderer:"ytd-active-account-header-renderer",flowHeaderRenderer:"yt-flow-header-renderer",simpleMenuHeaderRenderer:"ytd-simple-menu-header-renderer",reportChannelModalHeaderRenderer:"ytd-report-channel-modal-header-renderer"}},"data.sections":{id:"sections",mapping:{additionalContextRenderer:"ytd-report-channel-modal-additional-context-renderer",abuseTypeSelectorRenderer:"ytd-abuse-type-selector-renderer",accountSectionListRenderer:"ytd-account-section-list-renderer",
backgroundPromoRenderer:"ytd-background-promo-renderer",commentVideoThumbnailHeaderRenderer:"ytd-comment-video-thumbnail-header-renderer",impersonationScreenRenderer:"ytd-report-channel-modal-impersonation-renderer",itemSectionRenderer:"ytd-comments",messageRenderer:"ytd-message-renderer",multiPageMenuNotificationSectionRenderer:"yt-multi-page-menu-section-renderer",multiPageMenuSectionRenderer:"yt-multi-page-menu-section-renderer",postConfirmationFlowStepRenderer:"yt-post-confirmation-flow-step-renderer",
refundConfirmationFlowStepRenderer:"yt-refund-confirmation-flow-step-renderer",selectableVideoListRenderer:"ytd-selectable-video-list-renderer",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",toggleItemRenderer:"ytd-toggle-item-renderer",profileCardViewModel:"yt-profile-card-view-model",continuationItemRenderer:"ytd-continuation-item-renderer"},events:!0},"data.footer":{id:"footer",mapping:{multiPageMenuSectionRenderer:"yt-multi-page-menu-section-renderer",reportChannelModalFooterRenderer:"ytd-report-channel-modal-footer-renderer",
flowFooterRenderer:"ytd-flow-footer-renderer"}}}};
_.P.ready=function(){var A=this;this.JSC$21109_containerElement.addEventListener("scroll",function(){A.ytRendererBehavior.markDirty()})};
_.P.attributeChanged=function(A,L){A==="menu-style"&&_.dQ(this.hostElement,"yt-multi-page-menu-closed-action",[L])};
_.P.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.tT(this,this.focusOnStampFinished))};
_.P.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.tT(this,this.focusOnStampFinished))};
_.P.reset=function(){this.closeJobId&&(_.c1.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.P.focusOnStampFinished=function(A){A.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.tT(this,this.focusOnStampFinished)),this.doFocus())};
_.P.doFocus=function(){var A=_.YrJ(this.sectionsElement);A.length&&A[0].focus()};
_.P.computeMenuStyle=function(A){return A?A.toLowerCase().replace(/_/g,"-"):""};
_.P.computeIsCommentNotificationOnProfileCard=function(A){return _.h("enable_profile_cards_on_comments")&&A.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.P.computeHideMenu=function(A,L){return A||!(!L||!L.showLoadingSpinner)};
_.P.onPopupClosed=function(){this.isPopUpOpen=!1;_.dQ(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.P.onPopupOpened=function(A,L){this.isPopUpOpen=!0;L.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.P4(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.JY({type:"CHANNEL_REPORT_RESET"})))};
_.P.onYtNavigate=function(A,L){this.shouldCloseOnNavigateEvent(L.endpoint)&&_.dQ(this.hostElement,"yt-close-all-popups-action")};
_.P.handleEndpoint=function(A){A=_.q(A,_.HB);!this.isCommentNotificationOnProfileCard&&A&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$21109_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.P.handleActions=function(A){for(var L=0,O=A.length;L<O;L++){var X=_.q(A[L],HAJ);X&&this.handleGetMultiPageMenuAction(X);(X=_.q(A[L],_.sLj))&&this.handleAppendContinuationItemsAction(X)}};
_.P.onServiceRequestSentOrCompleted=function(A,L){A.detail&&A.detail.endpoint&&this.handleEndpoint(A.detail.endpoint);L.actions&&this.handleActions(L.actions)};
_.P.handleGetMultiPageMenuAction=function(A){var L=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.YJ(this.submenuElement).appendChild(L);(A=A.menu.multiPageMenuRenderer)&&this.logSubmenu(A);L.data=A;L.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.P.handleAppendContinuationItemsAction=function(A){if(this.data&&A.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&A.continuationItems&&this.data.sections){var L=this.data.sections.length-1;this.data.sections[L].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),L--);if(this.data.sections[L].multiPageMenuNotificationSectionRenderer&&A.continuationItems){A=_.d(A==null?void 0:A.continuationItems);for(var O=A.next();!O.done;O=A.next())if(O=O.value,_.q(O,n5M)){var X=
void 0,x=void 0,J=void 0,Y=void 0,T=void 0;((X=this)==null?0:(x=X.data)==null?0:(J=x.sections)==null?0:(Y=J[L])==null?0:(T=Y.multiPageMenuNotificationSectionRenderer)==null?0:T.items)&&this.push("data.sections."+L+".multiPageMenuNotificationSectionRenderer.items",O)}else if(_.q(O,_.$I7)||_.q(O,_.JR))this.push("data.sections",O),L++}}};
_.P.logSubmenu=function(A){if(!_.h("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var L=this.ytRendererBehavior.getScreenLayer(),O=_.Fn(L),X=_.Ch(L);if((A=A.trackingParams)&&O&&X){var x=_.lV(A);_.h("combine_ve_grafts")?_.iV().graftServerVe(A,X,L):_.W4(O,X,x)}}};
_.P.emptySubmenuContainer=function(){for(var A=_.YJ(this.submenuElement);A.firstChild;)A.removeChild(A.firstChild)};
_.P.onMenuBackTap=function(A){_.P4(this.hostElement,"yt-submenu-closed");A.stopPropagation()};
_.P.onSubmenuClosed=function(A){_.AT(A)!==this.hostElement&&(this.covered=!1,_.P4(this.hostElement,"yt-refit"),A.stopPropagation())};
_.P.onRetrieveLocation=function(A,L){L.hasComments&&(L.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),A.stopPropagation())};
_.P.shouldCloseOnNavigateEvent=function(A){if(!A)return!0;if(_.q(A,_.koJ)||_.q(A,_.U5n)||_.q(A,_.a2V)||_.q(A,_.Hh))return!1;var L;return((L=_.q(A==null?void 0:A.commandMetadata,_.LM))==null?0:L.ignoreNavigation)?!1:!0};
_.P.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.P.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.P.refitAfterRender=function(){var A=this;_.kd(this,function(){_.P4(A.hostElement,"yt-refit")})};
oz.prototype.refitAfterRender=oz.prototype.refitAfterRender;oz.prototype.onRetrieveLocation=oz.prototype.onRetrieveLocation;oz.prototype.onSubmenuClosed=oz.prototype.onSubmenuClosed;oz.prototype.onMenuBackTap=oz.prototype.onMenuBackTap;oz.prototype.onServiceRequestSentOrCompleted=oz.prototype.onServiceRequestSentOrCompleted;oz.prototype.onYtNavigate=oz.prototype.onYtNavigate;oz.prototype.onPopupOpened=oz.prototype.onPopupOpened;oz.prototype.onPopupClosed=oz.prototype.onPopupClosed;
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],oz.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.KP.YtEventForwardingBehavior),_.Z("design:type",Object)],oz.prototype,"ytEventForwardingBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],oz.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],oz.prototype,"ytdReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],oz.prototype,"data",void 0);
_.I([_.K(),_.Z("design:type",Object)],oz.prototype,"enableFocusFix",void 0);_.I([_.K(),_.Z("design:type",Object)],oz.prototype,"covered",void 0);_.I([_.K({computed:"computeHideMenu(covered, data)"}),_.Z("design:type",Object)],oz.prototype,"hideMenu",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.Z("design:type",String)],oz.prototype,"menuStyle",void 0);
_.I([_.K({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.Z("design:type",Object)],oz.prototype,"isCommentNotificationOnProfileCard",void 0);_.I([_.K(),_.Z("design:type",Boolean)],oz.prototype,"isPopUpOpen",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],oz.prototype,"scrolledByTouch",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],oz.prototype,"disableBackdropFilter",void 0);
_.I([_.qR("#sections"),_.Z("design:type",HTMLElement)],oz.prototype,"sectionsElement",void 0);_.I([_.qR("#spinner"),_.Z("design:type",HTMLElement)],oz.prototype,"spinnerElement",void 0);_.I([_.qR("#header"),_.Z("design:type",HTMLElement)],oz.prototype,"headerElement",void 0);_.I([_.qR("#container"),_.Z("design:type",HTMLElement)],oz.prototype,"JSC$21109_containerElement",void 0);_.I([_.qR("#submenu"),_.Z("design:type",HTMLElement)],oz.prototype,"submenuElement",void 0);
_.I([_.by("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],oz.prototype,"onPopupClosed",null);_.I([_.by("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],oz.prototype,"onPopupOpened",null);_.I([_.by("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],oz.prototype,"onYtNavigate",null);
_.I([_.by("yt-service-request-completed"),_.by("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.Xi]),_.Z("design:returntype")],oz.prototype,"onServiceRequestSentOrCompleted",null);_.I([_.by("yt-menu-back-tapped"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],oz.prototype,"onMenuBackTap",null);
_.I([_.by("yt-submenu-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],oz.prototype,"onSubmenuClosed",null);_.I([_.by("yt-retrieve-location"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],oz.prototype,"onRetrieveLocation",null);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],oz.prototype,"refitAfterRender",null);
_.I([_.Q({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],oz);
_.m(oz,"ytd-multi-page-menu-renderer",function(){if(Ypz!==void 0)return Ypz;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Ypz=A},{mode:1});var cZ$;var AH=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return A};
_.g(AH,_.G);_.P=AH.prototype;_.P.created=function(){this.showTooltips=!0};
_.P.computeAccessibility_=function(A){return this.get("accessibility.accessibilityData",A)||null};
_.P.onTap=function(){var A=_.YK(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(A&&A.length===1&&A[0])_.dQ(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var L;if((L=this.data)==null?0:L.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var O;((O=this.data)==null?0:O.menuRequest)&&_.TZ(this.hostElement,[this.data.menuRequest])}}};
_.P.handleTopbarMenuClosedAction=function(A){var L,O;(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(A)===((L=this.data)==null?void 0:(O=L.icon)==null?void 0:O.iconType)&&this.toggleIconState(!1)};
_.P.toggleIconState=function(A){_.h("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=A)};
_.P.handleUpdateTopbarAvatarAction=function(A){var L;A=(L=_.q(A,mvM))==null?void 0:L.avatarUrl;var O,X;L=(O=this.data)==null?void 0:(X=O.avatar)==null?void 0:X.thumbnails;A&&L&&(O={thumbnails:[Object.assign({},L[0],{url:A})]},this.set("data.avatar",O))};
_.v2.Object.defineProperties(AH.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.YJ(this.hostElement).querySelector("#button")}}});
AH.prototype.onTap=AH.prototype.onTap;_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],AH.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],AH.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.J3),_.Z("design:type",Object)],AH.prototype,"ytdOpenPopupBehavior",void 0);_.I([_.N(_.RVl.YtButtonBehavior),_.Z("design:type",Object)],AH.prototype,"ytButtonBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],AH.prototype,"data",void 0);
_.I([_.qR("yt-icon-button#button"),_.Z("design:type",Object)],AH.prototype,"iconButton",void 0);_.I([_.by("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],AH.prototype,"onTap",null);_.I([_.Q({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],AH);
_.m(AH,"ytd-topbar-menu-button-renderer",function(){if(cZ$!==void 0)return cZ$;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return cZ$=A},{mode:1});var CmQ;var LV=function(){return _.G.apply(this,arguments)||this};
_.g(LV,_.G);LV.prototype.getSelected=function(){return this.reasons.selected};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],LV.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],LV.prototype,"data",void 0);_.I([_.qR("#reasons"),_.Z("design:type",Object)],LV.prototype,"reasons",void 0);_.I([_.Q({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],LV);
_.m(LV,"ytd-ad-feedback-content",function(){if(CmQ!==void 0)return CmQ;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return CmQ=A},{mode:1});var FpM;var Oh=function(){return _.G.apply(this,arguments)||this};
_.g(Oh,_.G);_.P=Oh.prototype;_.P.onPopupOpened=function(){_.dQ(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.P.computeConfirmButton=function(A){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:A.confirmLabel}};
_.P.computeCancelButton=function(A){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:A.cancelLabel}};
_.P.onConfirmTap=function(){var A=this.content.getSelected();A!==void 0&&(A=this.data.reasons[A].endpoint)&&(_.X5().resolve(_.x$).resolveCommand(A,{form:{element:this.hostElement}}),_.dQ(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.P.sendFeedbackSubmitToastAction=function(){var A;(A=this.data)!=null&&A.completionMessage&&_.dQ(this.hostElement,"yt-open-popup-action",[_.OP(this.data.completionMessage),this])};
_.P.onCancelTap=function(){_.dQ(this.hostElement,"yt-close-popup-action")};
Oh.prototype.onPopupOpened=Oh.prototype.onPopupOpened;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Oh.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Oh.prototype,"data",void 0);_.I([_.qR("#content"),_.Z("design:type",Object)],Oh.prototype,"content",void 0);_.I([_.by("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Oh.prototype,"onPopupOpened",null);
_.I([_.Q({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],Oh);
_.m(Oh,"ytd-ad-feedback-renderer",function(){if(FpM!==void 0)return FpM;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return FpM=A},{mode:1});var RNn;var Xr=function(){return _.G.apply(this,arguments)||this};
_.g(Xr,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Xr.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Xr.prototype,"data",void 0);_.I([_.Q({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],Xr);
_.m(Xr,"ytd-ad-info-dialog-content",function(){if(RNn!==void 0)return RNn;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return RNn=A},{mode:1});var Q0$;var x7=function(){return _.G.apply(this,arguments)||this};
_.g(x7,_.G);x7.prototype.computeConfirmButton=function(A){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:A.confirmLabel}};
x7.prototype.onConfirmTap=function(){_.dQ(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
x7.prototype.computeShouldShowTitle=function(){var A;return!((A=this.data)==null||!A.title)};
x7.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.X5().resolve(_.x$).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
x7.prototype.onPopupClosed=x7.prototype.onPopupClosed;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],x7.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],x7.prototype,"data",void 0);_.I([_.by("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],x7.prototype,"onPopupClosed",null);_.I([_.Q({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],x7);
_.m(x7,"ytd-ad-info-dialog-renderer",function(){if(Q0$!==void 0)return Q0$;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return Q0$=A},{mode:1});var mpM;var sh=function(){var A=_.G.apply(this,arguments)||this;A.actionButtonClass="action-button";A.dismissButtonId="dismiss-button";A.dialogDismiss=!0;return A};
_.g(sh,_.G);_.P=sh.prototype;_.P.computeInPlayer=function(A){return(A==null?void 0:A.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.P.computedLogo=function(){var A,L;return this.isDarkTheme()?(A=this.data)==null?void 0:A.logoDark:(L=this.data)==null?void 0:L.logo};
_.P.computedHeaderImage=function(){var A,L;return this.isDarkTheme()?(A=this.data)==null?void 0:A.headerImageDark:(L=this.data)==null?void 0:L.headerImage};
_.P.computeLogoIconId=function(){var A,L,O,X=(A=this.computedLogo())==null?void 0:(L=A.sources)==null?void 0:(O=L[0])==null?void 0:O.height;return X&&X%31===0?"logo-icon-with-padding":"logo-icon"};
_.P.computeLogoIconHeight=function(){var A,L,O,X=(A=this.computedLogo())==null?void 0:(L=A.sources)==null?void 0:(O=L[0])==null?void 0:O.height;return X&&X%31===0?"31":"24"};
_.P.onPopupClosed=function(){_.X5().resolve(_.g5).dispose()};
_.P.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.P.onShow=function(){this.inPlayer&&_.hi(6)};
_.P.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var A=0;A<this.data.impressionEndpoints.length;A++){var L=_.q(this.data.impressionEndpoints[A],_.WR);L&&this.ytComponentBehavior.resolveCommand(L)}};
_.P.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.dQ(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.v2.Object.defineProperties(sh.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var A,L;return!((A=this.data)==null||!A.headerImageDark)&&!((L=this.data)==null||!L.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.secondaryButton)}}});
sh.prototype.onPopupClosed=sh.prototype.onPopupClosed;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],sh.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],sh.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.LO.YtVisibilityBehavior),_.Z("design:type",Object)],sh.prototype,"ytVisibilityBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],sh.prototype,"data",void 0);
_.I([_.K(),_.Z("design:type",Object)],sh.prototype,"actionButtonClass",void 0);_.I([_.K(),_.Z("design:type",Object)],sh.prototype,"dismissButtonId",void 0);_.I([_.K(),_.Z("design:type",Object)],sh.prototype,"dialogDismiss",void 0);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],sh.prototype,"hasHeaderImage",null);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],sh.prototype,"hasPremiumButton",null);
_.I([_.K({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.Z("design:type",Boolean)],sh.prototype,"inPlayer",void 0);_.I([_.qR("#dismiss-button"),_.Z("design:type",HTMLElement)],sh.prototype,"dismissButton",void 0);_.I([_.by("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],sh.prototype,"onPopupClosed",null);_.I([_.Q({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],sh);
_.m(sh,"ytd-enforcement-message-view-model",function(){if(mpM!==void 0)return mpM;var A=document.createElement("template");_.p(A,'\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>');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return mpM=A},{mode:1});var fCz;var ICM;var JH=function(){var A=_.G.apply(this,arguments)||this;A.TEST_ONLY={immediateValidation:function(){A.immediateValidation()},
onValidationResponse:function(L){A.onValidationResponse(L)},
onGenerateHandleFromNameResponse:function(L){A.onGenerateHandleFromNameResponse(L)}};
return A};
_.g(JH,_.G);_.P=JH.prototype;_.P.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.P.validate=function(){this.immediateValidation()};
_.P.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.P.setHandleInputValue=function(A){this.handleDir=this.getHandleDir(A);this.handleInput.value=A;this.validationState={status:"PENDING"};this.immediateValidation()};
_.P.getHandleDir=function(A){var L=A===""&&!1;return(L=_.owu.test.call(_.owu,A))?"rtl":"ltr"};
_.P.onDataChanged=function(){var A,L;this.handleDir=this.getHandleDir((L=(A=this.data)==null?void 0:A.handle)!=null?L:"");var O;this.validationState=((O=this.data)==null?0:O.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var X;((X=this.data)==null?0:X.validateOnInit)&&this.immediateValidation()};
_.P.stopPropagation=function(A){A.stopPropagation()};
_.P.onInput=function(){var A;this.handleDir=this.getHandleDir((A=this.handleInput.value)!=null?A:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.P.onFocusout=function(A){this.handleInput.contains(A.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.P.delayedValidation=function(){var A,L;this.debouncedValidation((L=(A=this.data)==null?void 0:A.validationDelayMs)!=null?L:1E3)};
_.P.immediateValidation=function(){this.debouncedValidation(0)};
_.P.debouncedValidation=function(A){var L=this;_.$J(this,"debouncedValidation",function(){var O,X=L.staticValidation((O=L.handleInput.value)!=null?O:"");if(X!==void 0)L.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:X};else{var x;if((x=L.data)!=null&&x.validateChannelHandleCommand){L.validationState={status:"LOADING"};var J;L.ytComponentBehavior.resolveCommand(L.data.validateChannelHandleCommand,{form:{handle:(J=L.handleInput.value)!=null?J:""},commandController:{onSuccess:function(Y,
T){L.onValidationResponse(T)},
onServerError:function(Y,T){L.onValidationServerError(T)}}})}else L.handleUnexpectedValidationError(new _.pe("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",L.data))}},A)};
_.P.staticValidation=function(A){var L;if(((L=this.data)==null?void 0:L.channelHandleStaticValidationParams)!==void 0){L=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(A)&&L.validValueRegexpErrorMessage!==void 0)return L.validValueRegexpErrorMessage;if(L.minLength!==void 0&&A.length<L.minLength&&L.minLengthErrorMessage!==void 0)return L.minLengthErrorMessage;if(L.maxLength!==void 0&&A.length>L.maxLength&&L.maxLengthErrorMessage!==void 0)return L.maxLengthErrorMessage}};
_.P.onValidationResponse=function(A){var L=_.q(A.result,fYM);L===void 0?this.handleUnexpectedValidationError(new _.pe("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",A)):this.handleValidationResultRenderer(L)};
_.P.onValidationServerError=function(A){this.handleUnexpectedValidationError(new _.pe("ValidateChannelHandle request failed.",A))};
_.P.handleValidationResultRenderer=function(A){if(A.handle===void 0)this.handleUnexpectedValidationError(new _.pe("ChannelHandleValidationResultRenderer does not contain handle.",A));else if(A.handle===this.handleInput.value)switch(A.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:A.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:A.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.pe("Unrecognized ChannelHandleValidationResult",A));break;default:_.ZN(A.result)}};
_.P.handleUnexpectedValidationError=function(A){var L;this.validationState={status:"UNKNOWN",handle:(L=this.handleInput.value)!=null?L:""};_.Rv(A)};
_.P.stopEventPropagation=function(A){A.stopPropagation()};
_.P.updateHandleOnChannelNameInputChange=function(A){if(!this.wasEdited){var L,O;this.debouncedGenerateHandleFromName(A,(O=(L=this.data)==null?void 0:L.validationDelayMs)!=null?O:1E3)}};
_.P.debouncedGenerateHandleFromName=function(A,L){var O=this;_.$J(this,"debouncedGenerateHandleFromName",function(){var X;(X=O.data)!=null&&X.validateChannelHandleCommand?O.ytComponentBehavior.resolveCommand(O.data.validateChannelHandleCommand,{form:{name:A},commandController:{onSuccess:function(x,J){O.onGenerateHandleFromNameResponse(J)},
onServerError:function(x,J){_.Rv(new _.pe("Error calling GenerateHandleFromName",J))}}}):_.Rv(new _.pe("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",O.data))},L)};
_.P.onGenerateHandleFromNameResponse=function(A){this.wasEdited||((A=_.q(A.result,IYk))?this.setHandleInputValue(A.handle):_.Rv(new _.pe("Invalid results when generate handle from name")))};
_.v2.Object.defineProperties(JH.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var A;if(A=this.validationState)A=this.validationState,A=A.status==="OK"||A.status==="UNKNOWN";if(A)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var A;if(((A=this.validationState)==null?void 0:A.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 A,L=(A=this.channelHandleEntity)==null?void 0:A.handleEdit;this.handleDir=this.getHandleDir(L!=null?L:"");return L}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var A,L;if(((A=this.data)==null?void 0:(L=A.channelHandleStaticValidationParams)==null?void 0:L.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
JH.prototype.stopEventPropagation=JH.prototype.stopEventPropagation;JH.prototype.onDataChanged=JH.prototype.onDataChanged;JH.prototype.applyHandleEdit=JH.prototype.applyHandleEdit;JH.prototype.onValueChanged=JH.prototype.onValueChanged;_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],JH.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],JH.prototype,"ytdReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],JH.prototype,"data",void 0);
_.I([_.K(),_.Z("design:type",Boolean)],JH.prototype,"wasEdited",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",String)],JH.prototype,"handleDir",void 0);_.I([_.qR("#handle-input"),_.Z("design:type",Object)],JH.prototype,"handleInput",void 0);_.I([_.K(),_.r("validationState"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],JH.prototype,"value",null);
_.I([_.hT("value"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],JH.prototype,"onValueChanged",null);_.I([_.r("validationState"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],JH.prototype,"errorIndicator",null);_.I([_.K({reflectToAttribute:!0}),_.r("errorIndicator"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],JH.prototype,"borderErrorIndicator",null);
_.I([_.K({selectorArgs:["data.channelHandleEntityKey"],selector:function(A,L){return _.eM(A.entities,"channelHandle",L)}}),
_.Z("design:type",Object)],JH.prototype,"channelHandleEntity",void 0);_.I([_.r("channelHandleEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],JH.prototype,"handleEdit",null);_.I([_.hT("handleEdit"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],JH.prototype,"applyHandleEdit",null);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],JH.prototype,"onDataChanged",null);
_.I([_.r("data.channelHandleStaticValidationParams.validValueRegexp"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],JH.prototype,"validValueRegexp",null);_.I([_.by("yt-service-request-sent"),_.by("yt-service-request-completed"),_.by("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],JH.prototype,"stopEventPropagation",null);_.I([_.Q({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],JH);
_.m(JH,"ytd-channel-handle-input-renderer",function(){if(ICM!==void 0)return ICM;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return ICM=A},{mode:_.e5("kevlar_poly_si_batch_j025")?1:2});var PS=function(){var A=_.G.apply(this,arguments)||this;A.data=null;A.errorMessage=null;A.isLoading=!0;A.hideContainer=!1;A.enableNewChannelCreationOnIdForAll=_.h("enable_new_channel_creation_for_id4all");A.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"};A.testOnly={setErrorMessage:function(L){A.resetErrorState();
A.setErrorState(L)}};
return A};
_.g(PS,_.G);_.P=PS.prototype;_.P.created=function(){this.logScreenVe()};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.toggleCreateChannelButton();this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.hostElement.parentElement.style.overflowY="auto")};
_.P.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var A;((A=this.zeroStepErrorMessageEntity)==null?0:A.value)&&this.set("errorMessage",_.Ue(this.zeroStepErrorMessageEntity.value))};
_.P.onCreateTap=function(){var A=this;if(this.data&&this.data.channelCreationEndpoint){var L,O;if(!((L=this.data.createChannelButton)==null?0:(O=L.buttonRenderer)==null?0:O.isDisabled)){var X;if((X=this.nameInput)!=null&&X.value){this.setLoadingState();var x,J;L=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(x=this.handleInput)==null?void 0:x.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((J=this.handleInput)==null?void 0:J.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:L,commandController:{onSuccess:function(Y,T){A.onChannelCreationEndpointSuccess(T);A.obakeImageSource&&_.lg("channelCreatedWithObakeImage",{imageSourceType:A.obakeImageSource})},
onServerError:function(){A.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.P.endpointRequiresServiceRequestAction=function(A){return!!_.q(A,_.II)||!!_.q(A,mvM)};
_.P.isNavigateAction=function(A){var L;return!!_.q(A,_.uT)||!!_.q((L=_.q(A,jlJ))==null?void 0:L.command,_.uT)};
_.P.isPlaylistAction=function(A){return!!_.q(A,_.zF)||!!_.q(A,_.U7)};
_.P.onChannelCreationEndpointSuccess=function(A){if(A.createChannelError){var L;this.setErrorState((L=A.createChannelError)==null?void 0:L.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.h("enable_secondary_channel_creation_form")&&A.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(A.navigationEndpoint);if(A.actions){L=_.d(A.actions);for(var O=L.next();!O.done;O=L.next())if(O=O.value,this.endpointRequiresServiceRequestAction(O)&&this.ytComponentBehavior.resolveCommand(O),
this.isNavigateAction(O)){var X=void 0;O=_.q((X=_.q(O,jlJ))==null?void 0:X.command,_.uT);X=void 0;this.isPlaylistAction((X=O)==null?void 0:X.endpoint)&&(_.dQ(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),X=void 0,this.ytComponentBehavior.resolveCommand((X=O)==null?void 0:X.endpoint))}}A.actions&&A.actions.some(function(x){var J;return _.q(x,_.uT)||_.q((J=_.q(x,jlJ))==null?void 0:J.command,_.uT)})||_.dQ(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.P.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.P.onCancelTap=function(){var A,L,O;if(!((A=this.data)==null?0:(L=A.cancelButton)==null?0:(O=L.buttonRenderer)==null?0:O.isDisabled)){var X,x,J;A=(X=this.data)==null?void 0:(x=X.cancelButton)==null?void 0:(J=x.buttonRenderer)==null?void 0:J.command;if(!A||!_.q(A,_.QpD)){var Y;this.nameInput&&((Y=this.data)==null?0:Y.name)&&(this.nameInput.value=this.data.name);var T;this.handleInput&&((T=this.data)==null?0:T.channelHandleInput)&&(this.handleInput.data=_.q(this.data.channelHandleInput,yaM));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.P.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.P.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.P.onClearProfilePhotoTap=function(){var A,L,O;((A=this.data)==null?0:(L=A.clearProfilePhotoButton)==null?0:(O=L.buttonRenderer)==null?0:O.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.P.onEditAvatarTap=function(){var A,L,O;((A=this.data)==null?0:(L=A.editAvatarButton)==null?0:(O=L.buttonRenderer)==null?0:O.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.P.setLoadingState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0);this.set("isLoading",!0);this.set("errorMessage",null)};
_.P.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var A;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((A=this.data)==null?0:A.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.P.setErrorState=function(A){this.resetErrorState();if(A)this.set("errorMessage",A);else{var L;if((L=this.zeroStepErrorMessageEntity)==null?0:L.value)this.set("errorMessage",_.Ue(this.zeroStepErrorMessageEntity.value));else{var O;((O=this.data)==null?0:O.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.P.fetchImageBlobWithAlr=function(A,L){L=L===void 0?5:L;var O=this,X,x,J,Y,T;return _.u(function(V){switch(V.nextAddress){case 1:return V.yield(fetch(A,{method:"GET",mode:"cors"}),2);case 2:X=V.yieldResult;if(X.ok){V.jumpTo(3);break}if(L===0)throw Error();x=O.addJitter(Math.pow(2,5-L));return V.yield(new Promise(function(E){setTimeout(E,x*1E3)}),4);
case 4:return V.return(O.fetchImageBlobWithAlr(A,L-1));case 3:if(!X.headers.get("content-type").split(";").some(function(E){return E.trim()==="text/plain"})){V.jumpTo(5);
break}J=O;Y=J.fetchImageBlobWithAlr;return V.yield(X.text(),6);case 6:return V.return(Y.call(J,V.yieldResult,L-1));case 5:return V.yield(X.blob(),7);case 7:return T=V.yieldResult,V.return(T)}})};
_.P.addJitter=function(A){var L=A*.3*Math.random();Math.random()>.5&&(L*=-1);return A+L};
_.P.openProfilePicturePicker=function(){var A=this,L,O,X,x,J;return _.u(function(Y){if(Y.nextAddress==1){L=A.data.scottyUploadUrl;if(!L)return Y.return();O=document.documentElement.hasAttribute("dark");X=document.body.style.colorScheme;O&&(document.body.style.colorScheme="dark");x=zjS(BrM(HnB(mIn(O?"dark":"light")),function(T){var V,E,n,t,b;return _.u(function(S){if(S.nextAddress==1)return V=_.v6(dzk(new Mc(T.photoUrl,!1)).build(),"alr","yes"),A.obakeImageSource=A.pictureChangeSourceToObakeImageSourceType(T.photoSource),
_.e4(S,2),A.setLoadingState(),S.yield(A.fetchImageBlobWithAlr(V),4);if(S.nextAddress!=2)return E=S.yieldResult,n=new FileReader,n.addEventListener("load",function(){var w,l,F,R,y,M;return _.u(function(H){if(H.nextAddress==1){if(E.size>15728640)return A.setErrorState((w=A.data)==null?void 0:w.imageSizeErrorMessage),_.Rv(Error("kl")),H.return();if(!n.result)return A.setErrorState((l=A.data)==null?void 0:l.genericImageLoadErrorMessage),_.Rv(Error("ll")),H.return();F=n.result;_.e4(H,2);return H.yield(bTz(E,
L),4)}if(H.nextAddress!=2)return R=H.yieldResult,A.handleImageUpdatedAction(F,R),A.resetErrorState(),_.zA(H,0);y=_.S4(H);A.setErrorState((M=A.data)==null?void 0:M.uploadErrorMessage);if(y instanceof Error)_.C7(y);else{var z=new _.pe(JSON.stringify(y));_.C7(z)}_.qo(H)})}),n.readAsDataURL(E),_.zA(S,0);
t=_.S4(S);A.setErrorState((b=A.data)==null?void 0:b.genericImageLoadErrorMessage);t instanceof Error?_.C7(t):_.FJ(new _.pe(JSON.stringify(t)));_.qo(S)})}),function(){A.hideContainer=!1;
document.body.style.colorScheme=X});
_.e4(Y,2);return Y.yield(x.openPicker(),4)}if(Y.nextAddress!=2)return _.zA(Y,0);_.S4(Y);A.setErrorState((J=A.data)==null?void 0:J.selectImageErrorMessage);_.qo(Y)})};
_.P.pictureChangeSourceToObakeImageSourceType=function(A){switch(A){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.P.logScreenVe=function(){_.h7(_.iV(),124448)};
_.P.graftServerVe=function(){var A=_.Ch(),L,O,X=(L=this.data)==null?void 0:(O=L.loggingDirectives)==null?void 0:O.trackingParams;X&&A&&(this.channelCreationFormVe=_.iV().graftServerVe(X,A),A={visualElement:this.channelCreationFormVe},_.wW().reportShown(A))};
_.P.isNameChanged=function(A){var L;return((L=this.data)==null?void 0:L.name)!==A};
_.P.isHandleChanged=function(A){var L,O=_.q((L=this.data)==null?void 0:L.channelHandleInput,yaM);return O&&A?O.handle!==A:!1};
_.P.handleImageUpdatedAction=function(A,L){this.hideContainer=!1;this.previewDataUrl=A;this.encryptedBlobId=L};
_.P.handleImageSelectionErrorAction=function(A){this.hideContainer=!1;this.setErrorState(A)};
_.P.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.P.showContainer=function(){this.hideContainer=!1};
_.P.maybeWipeZeroStepErrorMessage=function(){var A,L=(A=this.data)==null?void 0:A.zeroStepErrorMessageEntityKey,O;L&&((O=this.zeroStepErrorMessageEntity)==null?0:O.value)&&this.ytdReduxBehavior.dispatch(_.NV("stringEntity",L,{key:L,value:""}))};
_.v2.Object.defineProperties(PS.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 A;return((A=this.photoThumbnail)==null?0:A.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 A;return!((A=this.data)==null||!A.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.descriptionInfo}}});
PS.prototype.dataChanged=PS.prototype.dataChanged;_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],PS.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],PS.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],PS.prototype,"ytdReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],PS.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],PS.prototype,"errorMessage",void 0);
_.I([_.K(),_.Z("design:type",Object)],PS.prototype,"isLoading",void 0);_.I([_.K(),_.Z("design:type",String)],PS.prototype,"previewDataUrl",void 0);_.I([_.K(),_.Z("design:type",Number)],PS.prototype,"obakeImageSource",void 0);_.I([_.K(),_.Z("design:type",Object)],PS.prototype,"hideContainer",void 0);_.I([_.qR("#title-input"),_.Z("design:type",Object)],PS.prototype,"nameInput",void 0);_.I([_.qR("#handle-input"),_.Z("design:type",Object)],PS.prototype,"handleInput",void 0);
_.I([_.K(),_.Z("design:type",Boolean)],PS.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.I([_.K({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.hwu}),_.Z("design:type",Object)],PS.prototype,"zeroStepErrorMessageEntity",void 0);_.I([_.r("data","data.isDefaultProfilePhoto","previewDataUrl"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],PS.prototype,"photoThumbnail",null);
_.I([_.r("data","data.isDefaultProfilePhoto","photoThumbnail"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],PS.prototype,"userSetPhotoThumbnailUrl",null);_.I([_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],PS.prototype,"hideProfilePhotoButtonLayer",null);_.I([_.K({reflectToAttribute:!0}),_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],PS.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.I([_.iy("data","zeroStepErrorMessageEntity"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],PS.prototype,"dataChanged",null);_.I([_.K({reflectToAttribute:!0}),_.r("data.descriptionInfo","zeroStepErrorMessageEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],PS.prototype,"description",null);_.I([_.Q({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],PS);
_.m(PS,"ytd-channel-creation-dialog-renderer",function(){if(fCz!==void 0)return fCz;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return fCz=A},{mode:1});var yZM;var dE=function(){var A=_.G.apply(this,arguments)||this;A.isLoading=!1;A.isDisabled=!1;return A};
_.g(dE,_.G);dE.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
dE.prototype.updateDisabled=function(){var A;this.isDisabled=this.isLoading||((A=this.handleInput)==null?void 0:A.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
dE.prototype.onSaveClick=function(){var A=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var L;((L=this.data)==null?void 0:L.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 O;if((O=A.data)==null?0:O.nextEndpoint){var X;A.ytComponentBehavior.resolveCommand((X=A.data)==null?void 0:X.nextEndpoint)}else A.isLoading=
!1,A.closeDialog()},
onServerError:function(){A.isLoading=!1;A.handleInput.validate();var O;A.errorMessage=(O=A.data)==null?void 0:O.errorMessage}}}))}};
dE.prototype.closeDialog=function(){_.dQ(this.hostElement,"yt-close-popup-action",[this.is])};
dE.prototype.updateDisabled=dE.prototype.updateDisabled;_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],dE.prototype,"ytComponentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],dE.prototype,"data",void 0);_.I([_.qR("#handle-input"),_.Z("design:type",Object)],dE.prototype,"handleInput",void 0);_.I([_.hT("isLoading"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],dE.prototype,"updateDisabled",null);
_.I([_.Q({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],dE);
_.m(dE,"ytd-channel-handle-edit-dialog-renderer",function(){if(yZM!==void 0)return yZM;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return yZM=A},{mode:1});var ZRJ;var Y7=function(){return _.G.apply(this,arguments)||this};
_.g(Y7,_.G);Y7.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Y7.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Y7.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Y7.prototype,"data",void 0);_.I([_.Q({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],Y7);
_.m(Y7,"ytd-channel-switcher-footer-renderer",function(){if(ZRJ!==void 0)return ZRJ;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return ZRJ=A},{mode:1});var j0J;var WpJ;var uu=function(){return _.G.apply(this,arguments)||this};
_.g(uu,_.G);uu.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
uu.prototype.onIronChange=uu.prototype.onIronChange;_.I([_.K(),_.Z("design:type",Object)],uu.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!1}),_.Z("design:type",Function)],uu.prototype,"onDontAskAgainChanged",void 0);_.I([_.qR("#checkbox"),_.Z("design:type",Object)],uu.prototype,"checkbox",void 0);_.I([_.by("iron-change"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],uu.prototype,"onIronChange",null);
_.I([_.Q({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],uu);
_.m(uu,"ytd-identity-prompt-footer-renderer",function(){if(WpJ!==void 0)return WpJ;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return WpJ=A},{mode:1});var T4=function(){var A=_.G.apply(this,arguments)||this;A.dontAskAgain=!1;A.showPopup=!1;A.boundDontAskAgainChanged=function(L){A.dontAskAgainChanged(L)};
A.boundOnAccountItemTap=function(L){A.onAccountItemTap(L)};
return A};
_.g(T4,_.G);_.P=T4.prototype;
_.P.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{accountItemSectionRenderer:{component:"ytd-account-item-section-renderer",properties:{onAccountItemTap:"[[boundOnAccountItemTap]]"}}}},"data.header":{id:"header",mapping:{simpleMenuHeaderRenderer:"ytd-simple-menu-header-renderer"}},"data.footer":{id:"footer",mapping:{channelSwitcherFooterRenderer:"ytd-channel-switcher-footer-renderer",identityPromptFooterRenderer:{component:"ytd-identity-prompt-footer-renderer",properties:{onDontAskAgainChanged:"[[boundDontAskAgainChanged]]"}}}}}};
_.P.ready=function(){var A=this;_.YJ(this.hostElement).querySelector("#container").addEventListener("scroll",function(){A.ytRendererBehavior.markDirty()})};
_.P.dontAskAgainChanged=function(A){this.dontAskAgain=A};
_.P.onAccountItemTap=function(A){if(A){var L={};this.dontAskAgain&&(L={dont_ask_again:this.dontAskAgain});_.$c(A,L)}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.P.redirectOnlyAccount=function(A){A.sections&&A.sections.length>0&&(A=_.q(A.sections[0],_.$S6),(A==null?0:A.contents)&&(A==null?void 0:A.contents.length)<=1?(A=_.$L(window.location.href),(A==null?0:A.next)&&_.hAy(A.next)?_.$c(A.next):_.$c("/")):this.showPopup=!0)};
T4.prototype.dataChanged=T4.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],T4.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],T4.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],T4.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!1}),_.Z("design:type",Object)],T4.prototype,"dontAskAgain",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],T4.prototype,"showPopup",void 0);_.I([_.K({reflectToAttribute:!1}),_.Z("design:type",Object)],T4.prototype,"boundDontAskAgainChanged",void 0);_.I([_.K({reflectToAttribute:!1}),_.Z("design:type",Object)],T4.prototype,"boundOnAccountItemTap",void 0);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],T4.prototype,"dataChanged",null);
_.I([_.Q({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],T4);
_.m(T4,"ytd-channel-switcher-renderer",function(){if(j0J!==void 0)return j0J;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return j0J=A},{mode:1});var HRB;var Vn=function(){return _.G.apply(this,arguments)||this};
_.g(Vn,_.G);_.v2.Object.defineProperties(Vn.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.I([_.K(),_.Z("design:type",Object)],Vn.prototype,"data",void 0);_.I([_.r("data"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],Vn.prototype,"steps",null);_.I([_.Q({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],Vn);
_.m(Vn,"ytd-channel-transfer-stepper-renderer",function(){if(HRB!==void 0)return HRB;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return HRB=A},{mode:1});var zNn;var Dh=function(){var A=_.G.apply(this,arguments)||this;A.data=null;A.isError=!1;A.isLoading=!1;return A};
_.g(Dh,_.G);_.P=Dh.prototype;_.P.configureRendererStamper=function(){return{"data.personalAccountTile.selectButton":{id:"personal-account-tile-select-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.brandAccountTile.selectButton":{id:"brand-account-tile-select-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.P.computeProfileName=function(A){return A?A.givenNameValue+" "+A.familyNameValue:""};
_.P.onYtServiceRequestSent=function(){this.set("data.personalAccountTile.selectButton.buttonRenderer.isDisabled",!0);this.set("data.brandAccountTile.selectButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.set("isLoading",!0);this.set("isError",!1)};
_.P.onYtServiceRequestError=function(){this.set("data.personalAccountTile.selectButton.buttonRenderer.isDisabled",!1);this.set("data.brandAccountTile.selectButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.set("isLoading",!1);this.set("isError",!0)};
Dh.prototype.onYtServiceRequestError=Dh.prototype.onYtServiceRequestError;Dh.prototype.onYtServiceRequestSent=Dh.prototype.onYtServiceRequestSent;Dh.prototype.dataChanged=Dh.prototype.dataChanged;_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Dh.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Dh.prototype,"data",void 0);
_.I([_.K({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.Z("design:type",String)],Dh.prototype,"profileName",void 0);_.I([_.K(),_.Z("design:type",Object)],Dh.prototype,"isError",void 0);_.I([_.K(),_.Z("design:type",Object)],Dh.prototype,"isLoading",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Dh.prototype,"dataChanged",null);
_.I([_.by("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.aQ]),_.Z("design:returntype")],Dh.prototype,"onYtServiceRequestSent",null);_.I([_.by("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.aQ]),_.Z("design:returntype")],Dh.prototype,"onYtServiceRequestError",null);_.I([_.Q({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],Dh);
_.m(Dh,"ytd-channel-warm-welcome-cont-renderer",function(){if(zNn!==void 0)return zNn;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return zNn=A},{mode:1});var B3J;var eN=function(){var A=_.G.apply(this,arguments)||this;A.data=null;return A};
_.g(eN,_.G);eN.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
eN.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],eN.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],eN.prototype,"data",void 0);_.I([_.Q({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],eN);
_.m(eN,"ytd-channel-warm-welcome-renderer",function(){if(B3J!==void 0)return B3J;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return B3J=A},{mode:1});var MG$;var bu=function(){return _.G.apply(this,arguments)||this};
_.g(bu,_.G);_.v2.Object.defineProperties(bu.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.authorThumbnail)||{}}}});
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],bu.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],bu.prototype,"data",void 0);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],bu.prototype,"thumbnailDetails",null);_.I([_.Q({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],bu);
_.m(bu,"ytd-comment-preview-renderer",function(){if(MG$!==void 0)return MG$;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return MG$=A},{mode:1});var $pJ;var hH=function(){return _.G.apply(this,arguments)||this};
_.g(hH,_.G);hH.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.v2.Object.defineProperties(hH.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.submitButton}}});
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],hH.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],hH.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],hH.prototype,"data",void 0);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],hH.prototype,"submitButton",null);_.I([_.Q({is:"ytd-notice-renderer",disableElementRegistration:!0})],hH);
_.m(hH,"ytd-notice-renderer",function(){if($pJ!==void 0)return $pJ;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return $pJ=A},{mode:1});var aCM;var SN=function(){return _.G.apply(this,arguments)||this};
_.g(SN,_.G);SN.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],SN.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],SN.prototype,"data",void 0);_.I([_.Q({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],SN);
_.m(SN,"ytd-preview-comment-dialog-content",function(){if(aCM!==void 0)return aCM;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return aCM=A},{mode:1});var kxM;var qe=function(){return _.G.apply(this,arguments)||this};
_.g(qe,_.G);qe.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
qe.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],qe.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],qe.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],qe.prototype,"data",void 0);_.I([_.Q({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],qe);
_.m(qe,"ytd-preview-comment-dialog-renderer",function(){if(kxM!==void 0)return kxM;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return kxM=A},{mode:1});var UpX;var vmk=_.h("web_button_rework")&&_.fB("BUTTON_REWORK")||_.h("web_button_rework_with_live"),gE=function(){var A=_.G.apply(this,arguments)||this;A.closeLabel=_.b3("CLOSE");A.selectedAmountIndex=1;A.privacyCheckboxValue=!1;A.useAmsterdamStyle=vmk;A.amountPlaceholderIndex=-1;return A};
_.g(gE,_.G);_.P=gE.prototype;_.P.onAmountClick=function(A){this.selectedAmountIndex=_.YJ(this.hostElement).querySelector("#amounts").indexForElement(A.currentTarget)};
_.P.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.dQ(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.P.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.dQ(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.dQ(this.hostElement,"yt-close-popup-action",[this.is]);var A;(A=_.d0())==null||A.getPlayerPromise().then(function(L){L.pauseVideo()})}};
_.P.donationCallback=function(A){A.success?(this.hostElement.hasAttribute("live-chat")&&A.response&&A.response.data&&A.response.data.actions&&_.dQ(this.hostElement,"yt-live-chat-open-popup",[A.response.data.actions[0]]),_.dQ(this.hostElement,"yt-close-popup-action",[this.is]),_.dQ(this.hostElement,"yt-live-chat-close-buy-flow")):A.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(A.errorMessageRenderer)};
_.P.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.YJ(this.hostElement).querySelector("#custom-amount-input").focus()};
_.P.updateConfirmationDialogTextWithAmount=function(A){var L=this.getConfirmDialogRuns();L&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(L),"text"],this.getFormattedAmount(A))};
_.P.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.P.getAmountPlaceholderIndex=function(A){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=A.findIndex(function(L){return L.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.P.getFormattedAmount=function(A){var L;return(new _.z1(4,((L=this.data)==null?void 0:L.currencyCode)||"")).format(A)};
_.P.isAmountValid=function(A){if(A==="")return!1;A=Number(A)*1E6;var L=this.get("minAmountMicros",this.data),O=this.get("maxAmountMicros",this.data);return L&&A<L||O&&A>O?!1:!0};
_.P.setInputError=function(){this.shouldShowValidationError?_.YJ(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.YJ(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.P.setInitialCheckboxValue=function(){var A;this.privacyCheckboxValue=!((A=this.data)==null||!A.privacyCheckboxInitialState)};
_.P.updateCustomAmountInputFromBinding=function(A){this.customAmountInput=A.detail.value};
_.P.updatePrivacyCheckboxValueFromBinding=function(A){this.privacyCheckboxValue=A.detail.value};
_.v2.Object.defineProperties(gE.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var A=this,L,O;return((L=this.data)==null?void 0:(O=L.suggestedAmounts)==null?void 0:O.map(function(X,x){return{buttonRenderer:{style:A.selectedAmountIndex===x?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:X.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 A;return!((A=this.data)==null||!A.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 A=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(A&&this.amountMicros!==null)return Object.assign({},A,{ypcGetCartEndpoint:Object.assign({},A.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 A=this.get("confirmLargeAmount",this.data);if(A&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),A}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var A=this.get("donateButton.buttonRenderer",this.data);if(A)return Object.assign({},A,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
gE.prototype.setInitialCheckboxValue=gE.prototype.setInitialCheckboxValue;gE.prototype.setInputError=gE.prototype.setInputError;gE.prototype.setFocusOnCustomAmountInput=gE.prototype.setFocusOnCustomAmountInput;_.I([_.N(uHS),_.Z("design:type",Object)],gE.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],gE.prototype,"ytRendererBehavior",void 0);
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],gE.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],gE.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],gE.prototype,"closeLabel",void 0);_.I([_.K(),_.Z("design:type",Object)],gE.prototype,"selectedAmountIndex",void 0);_.I([_.K(),_.Z("design:type",String)],gE.prototype,"customAmountInput",void 0);_.I([_.K(),_.Z("design:type",Object)],gE.prototype,"privacyCheckboxValue",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],gE.prototype,"useAmsterdamStyle",void 0);_.I([_.hT("customAmount"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],gE.prototype,"setFocusOnCustomAmountInput",null);_.I([_.r("data","selectedAmountIndex"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],gE.prototype,"suggestedAmountButtons",null);
_.I([_.r("data","selectedAmountIndex"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],gE.prototype,"isCustomAmountSelected",null);_.I([_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],gE.prototype,"showPrivacyCheckbox",null);_.I([_.r("data","selectedAmountIndex","customAmount"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],gE.prototype,"amountMicros",null);
_.I([_.r("isCustomAmountSelected","customAmountInput"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],gE.prototype,"customAmount",null);_.I([_.r("customAmount"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],gE.prototype,"shouldShowValidationError",null);_.I([_.r("customAmount"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],gE.prototype,"isDonateButtonEnabled",null);
_.I([_.r("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],gE.prototype,"donateCommand",null);_.I([_.r("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],gE.prototype,"donateCommandWithConfirmation",null);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],gE.prototype,"largeDonationThreshold",null);
_.I([_.r("customAmount","donateCommand","amountMicros"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],gE.prototype,"confirmLargeAmountCommand",null);_.I([_.r("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],gE.prototype,"donateButtonRenderer",null);_.I([_.hT("shouldShowValidationError"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],gE.prototype,"setInputError",null);
_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],gE.prototype,"setInitialCheckboxValue",null);_.I([_.Q({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],gE);
_.m(gE,"ytd-donation-amount-picker-renderer",function(){if(UpX!==void 0)return UpX;var A=document.createElement("template");_.p(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-amount-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" aria-label="[[getSimpleString(data.pickerTitle)]]" class="style-scope ytd-donation-amount-picker-renderer">\n  <div id="top-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="title-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="title" class="style-scope ytd-donation-amount-picker-renderer">\n        <div class="title-text style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.pickerTitle)]]</div>\n        <yt-icon-button dialog-dismiss="" label="[[closeLabel]]" on-click="onCloseClick" class="style-scope ytd-donation-amount-picker-renderer">\n          <yt-icon icon="yt-icons:dismissal" class="style-scope ytd-donation-amount-picker-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n    </div>\n    <div id="campaign-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-img-shadow object-fit="CONTAIN" thumbnail="[[data.campaignThumbnail]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-img-shadow>\n      <div id="text-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="campaign-title" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignTitle)]]</div>\n        <div id="campaign-subtitle" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignSubtitle)]]</div>\n        <div id="description-column" class="style-scope ytd-donation-amount-picker-renderer">\n          <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n          <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n        </div>\n      </div>\n    </div>\n    <div id="live-chat-description-column" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n      <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n    </div>\n  </div>\n  <div id="bottom-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="nonprofit-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="nonprofit-title" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.nonprofitTitle)]]\n          <yt-icon id="verified-icon" class="inline-icon style-scope ytd-donation-amount-picker-renderer" icon="check_circle" default-to-filled="true">\n          </yt-icon>\n        </div>\n        <yt-formatted-string id="nonprofit-subtitle" text="[[data.nonprofitSubtitle]]" class="style-scope ytd-donation-amount-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div id="amount-selector" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="suggested-amount-buttons-row" class="style-scope ytd-donation-amount-picker-renderer">\n        <template id="amounts" is="dom-repeat" items="[[suggestedAmountButtons]]" class="style-scope ytd-donation-amount-picker-renderer">\n          <ytd-button-renderer class="suggested-amount style-scope ytd-donation-amount-picker-renderer" data="[[item.buttonRenderer]]" on-click="onAmountClick"></ytd-button-renderer>\n        </template>\n      </div>\n      <div id="custom-amount-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <tp-yt-paper-input id="custom-amount-input" allowed-pattern="[0-9]" always-float-label="" error-message="[[getSimpleString(data.amountError)]]" hidden="[[!isCustomAmountSelected]]" label="[[getSimpleString(data.customAmountLabel)]]" use-v2-underline="" value="[[customAmountInput]]" on-value-changed="updateCustomAmountInputFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n          <div prefix="" slot="prefix" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.currencySymbol)]]\u00a0</div>\n        </tp-yt-paper-input>\n      </div>\n    </div>\n\n    <tp-yt-paper-checkbox id="privacy-checkbox" checked="[[privacyCheckboxValue]]" hidden="[[!showPrivacyCheckbox]]" on-checked-changed="updatePrivacyCheckboxValueFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-formatted-string split-lines="" text="[[data.privacyCheckboxText]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-formatted-string>\n    </tp-yt-paper-checkbox>\n\n    <div id="button-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <ytd-button-renderer data="[[donateButtonRenderer]]" on-click="onDonateButtonClick" class="style-scope ytd-donation-amount-picker-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return UpX=A},{mode:1});var omS;var wE=function(){return _.G.apply(this,arguments)||this};
_.g(wE,_.G);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],wE.prototype,"ytComponentBehavior",void 0);_.I([_.K({}),_.Z("design:type",Object)],wE.prototype,"data",void 0);_.I([_.Q({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],wE);
_.m(wE,"ytd-donation-post-transaction-content",function(){if(omS!==void 0)return omS;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return omS=A},{mode:1});var AmJ;var pV=function(){return _.G.apply(this,arguments)||this};
_.g(pV,_.G);pV.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],pV.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],pV.prototype,"ytRendererBehavior",void 0);_.I([_.K({}),_.Z("design:type",Object)],pV.prototype,"data",void 0);_.I([_.Q({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],pV);
_.m(pV,"ytd-donation-post-transaction-renderer",function(){if(AmJ!==void 0)return AmJ;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return AmJ=A},{mode:1});var LmS;var OpQ;var iu=function(){return _.G.apply(this,arguments)||this};
_.g(iu,_.G);iu.prototype.computeIsStreamingProvider=function(A){return!!A.isStreamingShelf};
iu.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],iu.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],iu.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],iu.prototype,"data",void 0);_.I([_.K({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],iu.prototype,"isStreamingProvider",void 0);
_.I([_.Q({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],iu);
_.m(iu,"ytd-media-provider-renderer",function(){if(OpQ!==void 0)return OpQ;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return OpQ=A},{mode:1});var XAS;var Ne=function(){return _.G.apply(this,arguments)||this};
_.g(Ne,_.G);Ne.prototype.observeLightsourcePalette=function(){var A,L=(A=this.data)==null?void 0:A.vibrantsourceColorPaletteData;L&&_.fy(this.hostElement,L)};
Ne.prototype.observeLightsourcePalette=Ne.prototype.observeLightsourcePalette;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Ne.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Ne.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Ne.prototype,"data",void 0);
_.I([_.hT("data.vibrantsourceColorPaletteData"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ne.prototype,"observeLightsourcePalette",null);_.I([_.Q({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],Ne);
_.m(Ne,"ytd-streaming-pop-up-dialog",function(){if(XAS!==void 0)return XAS;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return XAS=A},{mode:1});var rE=function(){return _.G.apply(this,arguments)||this};
_.g(rE,_.G);rE.prototype.onPopupOpened_=function(){var A;((A=this.data)==null?0:A.serviceEndpoint)&&_.X5().resolve(_.x$).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
rE.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
rE.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"}}}}};
rE.prototype.onPopupOpened_=rE.prototype.onPopupOpened_;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],rE.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],rE.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.U8),_.Z("design:type",Object)],rE.prototype,"ytContinuationHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],rE.prototype,"data",void 0);
_.I([_.by("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],rE.prototype,"onPopupOpened_",null);_.I([_.Q({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],rE);
_.m(rE,"ytd-brandconnect-popup-renderer",function(){if(LmS!==void 0)return LmS;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return LmS=A},{mode:1});var xtS;var KV=function(){return _.G.apply(this,arguments)||this};
_.g(KV,_.G);_.P=KV.prototype;_.P.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.dataChanged=function(){for(var A=0;A<this.getOptionRenderers().length;A++)this.notifyPath("data.options."+A+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+A+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.P.updateSubmitButton=function(A){this.set("data.submitButton.buttonRenderer.isDisabled",!A)};
_.P.computeAlt=function(A){return _.vG(A)};
_.P.onDismissTap=function(){_.dQ(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.X5().resolve(_.x$).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.P.getOptionRenderers=function(A){return(A=A||this.data)&&A.options?A.options.reduce(function(L,O){O.checkboxSurveyOptionRenderer&&L.push(O.checkboxSurveyOptionRenderer);return L},[]):[]};
_.P.onOptionChange=function(A){var L=this,O=!1;if(A.detail.checked)for(var X=this.getOptionRenderers().find(function(T){return T.value===A.detail.value}),x=this.getOptionRenderers(),J=0;J<x.length;J++){var Y=x[J];
this.notifyPath("data.options."+J+".checkboxSurveyOptionRenderer.checked");Y.checked&&((X==null?0:X.isExclusiveOption)?!Y.isExclusiveOption:Y.isExclusiveOption)?this.set("data.options."+J+".checkboxSurveyOptionRenderer.checked",!1):Y.checked&&(O=!0)}else O=this.getOptionRenderers().some(function(T,V){L.notifyPath("data.options."+V+".checkboxSurveyOptionRenderer.checked");return T.checked});
this.updateSubmitButton(O)};
_.P.onSubmitTap=function(){var A=this.getOptionRenderers().filter(function(J){return J.checked});
if(A.length!==0){var L=A.map(function(J){return J.responseEndpoint});
A=[];for(var O=1;O<L.length;O++){var X=void 0,x=(X=_.q(L[O],_.y7))==null?void 0:X.feedbackToken;x&&A.push(x)}L=[L[0]];A.length&&L.push({extra_feedback_tokens:A});_.TZ(this.hostElement,L);_.dQ(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);A=this.data&&this.data.submitActions||[];if(_.h("kevlar_command_handler_migration_killswitch"))_.VN(this.hostElement,A,this.hostElement);else for(A=_.d(A),L=A.next();!L.done;L=A.next())this.ytComponentBehavior.resolveCommand(L.value)}};
KV.prototype.onOptionChange=KV.prototype.onOptionChange;KV.prototype.dataChanged=KV.prototype.dataChanged;_.I([_.N(_.KP.YtEventForwardingBehavior),_.Z("design:type",Object)],KV.prototype,"ytEventForwardingBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],KV.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],KV.prototype,"ytComponentBehavior",void 0);
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],KV.prototype,"ytRendererBehavior",void 0);_.I([_.N(KLX),_.Z("design:type",Object)],KV.prototype,"ytdHatsSurveyBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],KV.prototype,"data",void 0);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],KV.prototype,"dataChanged",null);
_.I([_.by("ytd-checkbox-survey-option-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],KV.prototype,"onOptionChange",null);_.I([_.Q({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],KV);
_.m(KV,"ytd-checkbox-survey-renderer",function(){if(xtS!==void 0)return xtS;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return xtS=A},{mode:1});var sxB;var JmJ;var G4=function(){return _.G.apply(this,arguments)||this};
_.g(G4,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],G4.prototype,"ytRendererBehavior",void 0);_.I([_.N(r$J),_.Z("design:type",Object)],G4.prototype,"ytdDismissalReasonBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],G4.prototype,"data",void 0);_.I([_.Q({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],G4);
_.m(G4,"ytd-dismissal-reason-text-renderer",function(){if(JmJ!==void 0)return JmJ;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return JmJ=A},{mode:1});var PZM;var lu=function(){return _.G.apply(this,arguments)||this};
_.g(lu,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],lu.prototype,"ytRendererBehavior",void 0);_.I([_.N(r$J),_.Z("design:type",Object)],lu.prototype,"ytdDismissalReasonBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],lu.prototype,"data",void 0);_.I([_.Q({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],lu);
_.m(lu,"ytd-dismissal-reason-video-renderer",function(){if(PZM!==void 0)return PZM;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return PZM=A},{mode:1});var cS=function(){var A=_.G.apply(this,arguments)||this;A.darkerDarkTheme=_.h("web_darker_dark_theme");return A};
_.g(cS,_.G);_.P=cS.prototype;_.P.created=function(){this.selectedFeedbackTokens=new ut};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.P.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.P.onDismissalReasonSelected=function(A,L){_.P4(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(L);this.hasReasonsSelected=!0};
_.P.onDismissalReasonDeselected=function(A,L){_.P4(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(L);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.P.onCancelTap=function(){_.dQ(this.hostElement,"yt-close-popup-action")};
_.P.onSubmitTap=function(){var A=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(A={feedback_tokens:A},_.X5().resolve(_.x$).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},A,{element:this.hostElement})}));_.dQ(this.hostElement,"yt-close-popup-action")};
cS.prototype.onDismissalReasonDeselected=cS.prototype.onDismissalReasonDeselected;cS.prototype.onDismissalReasonSelected=cS.prototype.onDismissalReasonSelected;cS.prototype.dataChanged=cS.prototype.dataChanged;_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],cS.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],cS.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],cS.prototype,"data",void 0);
_.I([_.K(),_.Z("design:type",Boolean)],cS.prototype,"hasReasonsSelected",void 0);_.I([_.K(),_.Z("design:type",ut)],cS.prototype,"selectedFeedbackTokens",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],cS.prototype,"darkerDarkTheme",void 0);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cS.prototype,"dataChanged",null);
_.I([_.by("yt-dismissal-reason-selected"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,String]),_.Z("design:returntype")],cS.prototype,"onDismissalReasonSelected",null);_.I([_.by("yt-dismissal-reason-deselected"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,String]),_.Z("design:returntype")],cS.prototype,"onDismissalReasonDeselected",null);_.I([_.Q({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],cS);
_.m(cS,"ytd-dismissal-follow-up-renderer",function(){if(sxB!==void 0)return sxB;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return sxB=A},{mode:1});var dtS;var CV=function(){return _.G.apply(this,arguments)||this};
_.g(CV,_.G);_.P=CV.prototype;_.P.onCheckedChange=function(){this.multiselect||_.P4(this.hostElement,"yt-feedback-single-select-changed");_.YJ(this.hostElement).querySelector("#freeform").focus();_.P4(this.hostElement,"yt-refit")};
_.P.showTextBox=function(A,L){return A&&L};
_.P.dataChanged=function(){this.data&&(this.data.resultText===void 0&&this.set("data.resultText",""),this.data.checked===void 0&&this.set("data.checked",!1),this.data.allowFreeTextInput===void 0&&this.set("data.allowFreeTextInput",!1))};
_.P.updateDataCheckedFromBinding=function(A){this.set("data.checked",A.detail.value)};
_.P.updateDataResultTextFromBinding=function(A){this.set("data.resultText",A.detail.value)};
CV.prototype.dataChanged=CV.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],CV.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],CV.prototype,"data",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],CV.prototype,"multiselect",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],CV.prototype,"dataChanged",null);
_.I([_.Q({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],CV);
_.m(CV,"ytd-feedback-option-renderer",function(){if(dtS!==void 0)return dtS;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return dtS=A},{mode:1});var YW7;var Fr=function(){return _.G.apply(this,arguments)||this};
_.g(Fr,_.G);Fr.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
Fr.prototype.onSingleSelectCheckedChanged=function(A){A=_.AT(A);for(var L=0;L<this.data.options.length;L++)if(A.data!==_.q(this.data.options[L],iOS)){var O="data.options."+L+".feedbackOptionRenderer.checked";this.notifyPath(O);this.set(O,!1)}};
Fr.prototype.onSingleSelectCheckedChanged=Fr.prototype.onSingleSelectCheckedChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Fr.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Fr.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Fr.prototype,"data",void 0);
_.I([_.by("yt-feedback-single-select-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],Fr.prototype,"onSingleSelectCheckedChanged",null);_.I([_.Q({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],Fr);
_.m(Fr,"ytd-feedback-question-renderer",function(){if(YW7!==void 0)return YW7;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return YW7=A},{mode:1});var u1B;var RC=function(){return _.G.apply(this,arguments)||this};
_.g(RC,_.G);RC.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
RC.prototype.getSelectedFeedbackResults=function(){for(var A={},L=0;L<this.data.questions.length;L++)for(var O=_.q(this.data.questions[L],pPM),X=0;X<O.options.length;X++){var x=_.q(O.options[X],iOS);x&&x.checked&&(A[x.optionKey]=x.resultText)}return A};
RC.prototype.onKeyUp=function(){var A=this;_.et(_.c1,function(){_.P4(A.hostElement,"yt-refit")});
_.c1.start()};
RC.prototype.submitSurvey=function(){var A=this.getSelectedFeedbackResults();Object.keys(A).length>0&&this.data.submitFeedbackEndpoint&&(A={survey_results:A,is_feedback_token_unencrypted:!0},_.X5().resolve(_.x$).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},A,{element:this.hostElement})}))};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],RC.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],RC.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],RC.prototype,"data",void 0);_.I([_.Q({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],RC);
_.m(RC,"ytd-feedback-survey-renderer",function(){if(u1B!==void 0)return u1B;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return u1B=A},{mode:1});var T2B;var Vin;var Qn=function(){return _.G.apply(this,arguments)||this};
_.g(Qn,_.G);Qn.prototype.computeAlt=function(A){return _.vG(A)};
Qn.prototype.submitResponse=function(){var A,L;(A=this.data)!=null&&A.feedbackToken&&((L=this.data)==null?void 0:L.nextStageIndex)!==void 0&&(_.YK(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.YK(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
Qn.prototype.onClick=function(){this.submitResponse()};
Qn.prototype.onClick=Qn.prototype.onClick;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Qn.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Qn.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Qn.prototype,"vertical",void 0);_.I([_.by("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Qn.prototype,"onClick",null);
_.I([_.Q({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],Qn);
_.m(Qn,"ytd-single-select-answer-option-renderer",function(){if(Vin!==void 0)return Vin;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Vin=A},{mode:1});var Dt7;var m8=function(){var A=_.G.apply(this,arguments)||this;A.darkerDarkTheme=_.h("web_darker_dark_theme");A.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return A};
_.g(m8,_.G);m8.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
m8.prototype.dataChanged=function(){var A,L;this.vertical=((L=(A=this.data)==null?void 0:A.answerOrientation)!=null?L:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
m8.prototype.submitFeedback=function(A){var L;((L=this.data)==null?0:L.responseEndpoint)&&A&&_.TZ(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[A]}])};
m8.prototype.dataChanged=m8.prototype.dataChanged;_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],m8.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.KP.YtEventForwardingBehavior),_.Z("design:type",Object)],m8.prototype,"eventForwardingBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],m8.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],m8.prototype,"ytRendererstamperBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],m8.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],m8.prototype,"vertical",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],m8.prototype,"darkerDarkTheme",void 0);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],m8.prototype,"dataChanged",null);_.I([_.Q({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],m8);
_.m(m8,"ytd-single-select-question-renderer",function(){if(Dt7!==void 0)return Dt7;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return Dt7=A},{mode:1});var fV=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return A};
_.g(fV,_.G);_.P=fV.prototype;_.P.configureRendererStamper=function(){return{currentStage:{id:"current-stage",mapping:{singleSelectQuestionRenderer:"ytd-single-select-question-renderer",simpleMessageRenderer:"ytd-simple-message-renderer",surveyFollowUpRenderer:"ytd-survey-follow-up-renderer"}}}};
_.P.dataChanged=function(){this.jumpToStage(0)};
_.P.jumpToStage=function(A){var L,O;if((L=this.data)==null?0:(O=L.stages)==null?0:O[A])this.currentStage=this.data.stages[A],this.refitAfterRender()};
_.P.computeAlt=function(A){return _.vG(A)};
_.P.computeSimpleMessage=function(A){var L;return(L=_.q(A,KnJ))==null?void 0:L.messageText};
_.P.computeHideDismiss=function(A){var L;return(L=_.q(A,LnQ))==null?void 0:L.hideParentDismissButton};
_.P.onDismissTap=function(){_.dQ(this.hostElement,"yt-close-popup-action");_.q(this.currentStage,KnJ)||this.data.dismissalEndpoint&&_.X5().resolve(_.x$).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.P.refitAfterRender=function(){var A=this;_.kd(this,function(){_.P4(A.hostElement,"yt-refit")})};
fV.prototype.dataChanged=fV.prototype.dataChanged;_.I([_.N(_.KP.YtEventForwardingBehavior),_.Z("design:type",Object)],fV.prototype,"eventForwardingBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],fV.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],fV.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],fV.prototype,"ytActionHandlerBehavior",void 0);
_.I([_.N(KLX),_.Z("design:type",Object)],fV.prototype,"ytdHatsSurveyBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],fV.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],fV.prototype,"currentStage",void 0);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],fV.prototype,"dataChanged",null);_.I([_.Q({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],fV);
_.m(fV,"ytd-multi-stage-survey-renderer",function(){if(T2B!==void 0)return T2B;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return T2B=A},{mode:1});var ehQ;var IC=function(){return _.G.apply(this,arguments)||this};
_.g(IC,_.G);IC.prototype.computeAlt=function(A){return _.vG(A)};
IC.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.X5().resolve(_.x$).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.dQ(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.p2M(!1)))};
IC.prototype.onTap=function(){this.vertical&&this.submitResponse()};
IC.prototype.onTap=IC.prototype.onTap;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],IC.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],IC.prototype,"ytdReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],IC.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],IC.prototype,"vertical",void 0);
_.I([_.by("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],IC.prototype,"onTap",null);_.I([_.Q({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],IC);
_.m(IC,"ytd-single-option-survey-option-renderer",function(){if(ehQ!==void 0)return ehQ;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return ehQ=A},{mode:1});var EP7;var yn=function(){return _.G.apply(this,arguments)||this};
_.g(yn,_.G);_.P=yn.prototype;_.P.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.dataChanged=function(){var A,L;this.vertical=(((A=this.data)==null?void 0:(L=A.surveyOrientation)==null?void 0:L.type)||"HORIZONTAL")==="VERTICAL"};
_.P.computeAlt=function(A){return _.vG(A)};
_.P.onDismissTap=function(){_.dQ(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.X5().resolve(_.x$).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.p2M(!1))};
yn.prototype.dataChanged=yn.prototype.dataChanged;_.I([_.N(_.KP.YtEventForwardingBehavior),_.Z("design:type",Object)],yn.prototype,"eventForwardingBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],yn.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],yn.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(KLX),_.Z("design:type",Object)],yn.prototype,"ytdHatsSurveyBehavior",void 0);
_.I([_.N(_.HL),_.Z("design:type",Object)],yn.prototype,"ytdReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],yn.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],yn.prototype,"vertical",void 0);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],yn.prototype,"dataChanged",null);_.I([_.Q({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],yn);
_.m(yn,"ytd-single-option-survey-renderer",function(){if(EP7!==void 0)return EP7;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return EP7=A},{mode:1});var nPZ;var Zh=function(){var A=_.G.apply(this,arguments)||this;A.darkerDarkTheme=_.h("web_darker_dark_theme");return A};
_.g(Zh,_.G);Zh.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Zh.prototype.onDismissTap=function(){_.dQ(this.hostElement,"yt-close-popup-action")};
Zh.prototype.onNavigate=function(){_.dQ(this.hostElement,"yt-close-popup-action")};
Zh.prototype.onNavigate=Zh.prototype.onNavigate;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Zh.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.KP.YtEventForwardingBehavior),_.Z("design:type",Object)],Zh.prototype,"ytEventForwardingBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Zh.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Zh.prototype,"darkerDarkTheme",void 0);
_.I([_.by("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Zh.prototype,"onNavigate",null);_.I([_.Q({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],Zh);
_.m(Zh,"ytd-survey-follow-up-renderer",function(){if(nPZ!==void 0)return nPZ;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return nPZ=A},{mode:1});var ti$;var bpS;var hhn;var jN=function(){var A=_.G.apply(this,arguments)||this;A.polymer2="Element"in Polymer;return A};
_.g(jN,_.G);_.P=jN.prototype;_.P.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.P.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.P.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.P.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.A3("minutes-changed",this.minutes))};
_.P.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.A3("seconds-changed",this.seconds))};
_.P.updateMinutesFromBinding=function(A){this.minutes=A.detail.value};
_.P.updateSecondsFromBinding=function(A){this.seconds=A.detail.value};
jN.prototype.secondsChangedForBinding=jN.prototype.secondsChangedForBinding;jN.prototype.minutesChangedForBinding=jN.prototype.minutesChangedForBinding;jN.prototype.secondsChanged=jN.prototype.secondsChanged;_.I([_.K(),_.Z("design:type",String)],jN.prototype,"minutes",void 0);_.I([_.K(),_.Z("design:type",String)],jN.prototype,"seconds",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],jN.prototype,"polymer2",void 0);
_.I([_.qR("#seconds"),_.Z("design:type",Object)],jN.prototype,"secondsEl",void 0);_.I([_.hT("seconds"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],jN.prototype,"secondsChanged",null);_.I([_.hT("minutes"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],jN.prototype,"minutesChangedForBinding",null);
_.I([_.hT("seconds"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],jN.prototype,"secondsChangedForBinding",null);_.I([_.yU({is:"yt-timestamp-input",disableElementRegistration:!0})],jN);
_.m(jN,"yt-timestamp-input",function(){if(hhn===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;bpS===void 0&&(bpS=document.createElement("template"));var X=bpS;O.call(L,X.content.cloneNode(!0),A.content.firstChild);hhn=A}A=hhn;return A},{mode:2});var WS=function(){return _.G.apply(this,arguments)||this};
_.g(WS,_.G);_.P=WS.prototype;_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$21281_scroller.dialogElement=this.hostElement.parentNode};
_.P.dataChanged=function(){var A=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.Yu().getPlayerPromise().then(function(L){L=L.getCurrentTime();A.minutes=Math.floor(L/60).toString();A.seconds=(Math.floor(L)%60).toString()})};
_.P.onTapSubmit=function(A){A.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(A={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(A.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(A.minutes=this.minutes,A.seconds=this.seconds),_.X5().resolve(_.x$).resolveCommand(this.serviceEndpoint,{form:Object.assign({},A,{element:this.hostElement})}))};
_.P.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.P.onYtServiceRequestCompleted=function(A,L){L=L.actions;if(Array.isArray(L))for(var O=0,X=L.length;O<X;O++)_.q(L[O],_.mG)&&(A.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(L[O]))};
_.P.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.P.toggleSubmitButton=function(A){this.set("submitButton.isDisabled",!A)};
_.P.handleInput=function(){var A=this.issueType,L=this.affiliation,O=this.minutes,X=this.seconds;O=!this.showTimestamp||!!O&&!!X;this.toggleSubmitButton(!!this.descriptionText&&!!A&&!!L&&O)};
_.P.computeServiceEndpoint=function(A){return this.get("submitButton.buttonRenderer.serviceEndpoint",A)};
_.P.computeSubmitButton=function(A){(A=this.get("submitButton.buttonRenderer",A))&&(A=Object.assign({},A,{serviceEndpoint:void 0}));return A};
_.P.computeShowTimestamp=function(A){return!!A};
_.P.onValueChangedForIssueType=function(A){this.issueType=A.detail.value};
_.P.onValueChangedForAffiliation=function(A){this.affiliation=A.detail.value};
_.P.updateDescriptionTextFromBinding=function(A){this.descriptionText=A.detail.value};
_.P.updateFullNameTextFromBinding=function(A){this.fullNameText=A.detail.value};
_.P.updateMinutesFromBinding=function(A){this.minutes=A.detail.value};
_.P.updateSecondsFromBinding=function(A){this.seconds=A.detail.value};
WS.prototype.handleInput=WS.prototype.handleInput;WS.prototype.onYtServiceRequestError=WS.prototype.onYtServiceRequestError;WS.prototype.onYtServiceRequestCompleted=WS.prototype.onYtServiceRequestCompleted;WS.prototype.onYtServiceRequestSent=WS.prototype.onYtServiceRequestSent;WS.prototype.dataChanged=WS.prototype.dataChanged;_.I([_.N(_.iv.YtOpenPopupBehavior),_.Z("design:type",Object)],WS.prototype,"ytOpenPopupBehavior",void 0);
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],WS.prototype,"ytRendererBehavior",void 0);_.I([_.qR("#scroller"),_.Z("design:type",Object)],WS.prototype,"JSC$21281_scroller",void 0);_.I([_.qR("#description"),_.Z("design:type",HTMLInputElement)],WS.prototype,"description",void 0);_.I([_.qR("#full-name"),_.Z("design:type",Object)],WS.prototype,"fullName",void 0);_.I([_.K(),_.Z("design:type",Object)],WS.prototype,"data",void 0);
_.I([_.K({computed:"computeShowTimestamp(data.timestampLabel)"}),_.Z("design:type",Boolean)],WS.prototype,"showTimestamp",void 0);_.I([_.K({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.Z("design:type",Object)],WS.prototype,"serviceEndpoint",void 0);_.I([_.K({computed:"computeSubmitButton(data)"}),_.Z("design:type",Object)],WS.prototype,"submitButton",void 0);_.I([_.K(),_.Z("design:type",String)],WS.prototype,"descriptionText",void 0);
_.I([_.K(),_.Z("design:type",Number)],WS.prototype,"issueType",void 0);_.I([_.K(),_.Z("design:type",Number)],WS.prototype,"affiliation",void 0);_.I([_.K(),_.Z("design:type",String)],WS.prototype,"fullNameText",void 0);_.I([_.K(),_.Z("design:type",String)],WS.prototype,"minutes",void 0);_.I([_.K(),_.Z("design:type",String)],WS.prototype,"seconds",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],WS.prototype,"dataChanged",null);
_.I([_.by("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.aQ]),_.Z("design:returntype")],WS.prototype,"onYtServiceRequestSent",null);_.I([_.by("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.Xi]),_.Z("design:returntype")],WS.prototype,"onYtServiceRequestCompleted",null);
_.I([_.by("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],WS.prototype,"onYtServiceRequestError",null);_.I([_.hT("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],WS.prototype,"handleInput",null);_.I([_.Q({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],WS);
_.m(WS,"ytd-legal-report-details-form-renderer",function(){if(ti$!==void 0)return ti$;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return ti$=A},{mode:1});var SWM;var HS=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return A};
_.g(HS,_.G);HS.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
HS.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var A=this.formRenderer.getForm();A&&this.data.submitEndpoint&&(_.X5().resolve(_.x$).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},A,{element:this.hostElement})}),_.dQ(this.hostElement,"yt-close-popup-action"))}};
HS.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.dQ(this.hostElement,"yt-close-popup-action"))};
HS.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
HS.prototype.onPopupClosed=HS.prototype.onPopupClosed;_.I([_.N(_.KP.YtEventForwardingBehavior),_.Z("design:type",Object)],HS.prototype,"ytEventForwardingBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],HS.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],HS.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],HS.prototype,"ytRendererBehavior",void 0);
_.I([_.qR("yt-form-renderer"),_.Z("design:type",Object)],HS.prototype,"formRenderer",void 0);_.I([_.K(),_.Z("design:type",Object)],HS.prototype,"data",void 0);_.I([_.by("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],HS.prototype,"onPopupClosed",null);_.I([_.Q({is:"ytd-form-popup-content",disableElementRegistration:!0})],HS);
_.m(HS,"ytd-form-popup-content",function(){if(SWM!==void 0)return SWM;var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return SWM=A},{mode:1});var qWZ;var z4=function(){return _.G.apply(this,arguments)||this};
_.g(z4,_.G);z4.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
z4.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
z4.prototype.onPopupOpened=function(){_.P4(this.hostElement,"yt-invalidate-popup-tabbables")};
z4.prototype.onYtServiceRequestCompleted=function(A,L){L.data&&L.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.P4(this.hostElement,"yt-invalidate-popup-tabbables"))};
z4.prototype.onYtServiceRequestCompleted=z4.prototype.onYtServiceRequestCompleted;z4.prototype.onPopupOpened=z4.prototype.onPopupOpened;_.I([_.N(_.KP.YtEventForwardingBehavior),_.Z("design:type",Object)],z4.prototype,"ytEventForwardingBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],z4.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],z4.prototype,"ytRendererBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],z4.prototype,"data",void 0);_.I([_.by("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],z4.prototype,"onPopupOpened",null);_.I([_.by("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.Xi]),_.Z("design:returntype")],z4.prototype,"onYtServiceRequestCompleted",null);_.I([_.Q({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],z4);
_.m(z4,"ytd-form-popup-renderer",function(){if(qWZ!==void 0)return qWZ;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return qWZ=A},{mode:1});var gPJ;var BS=function(){var A=_.G.apply(this,arguments)||this;A.isLoading=!1;return A};
_.g(BS,_.G);_.P=BS.prototype;_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");p3S(this.hostElement)};
_.P.onYtServiceRequestSent=function(){this.isLoading=!0};
_.P.onYtServiceRequestCompleted=function(){_.dQ(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.P.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.VN(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.P.closePopupHandler=function(){this.fireOnCloseActions()};
_.P.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var A=this.get("data.headerImage.thumbnails");A&&(A=_.uB(A,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+A+")")}};
_.P.onYtNavigate=function(A){(A=_.AT(A))&&A.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
BS.prototype.onYtNavigate=BS.prototype.onYtNavigate;BS.prototype.onHeaderImageChanged=BS.prototype.onHeaderImageChanged;BS.prototype.closePopupHandler=BS.prototype.closePopupHandler;BS.prototype.onYtServiceRequestCompleted=BS.prototype.onYtServiceRequestCompleted;BS.prototype.onYtServiceRequestSent=BS.prototype.onYtServiceRequestSent;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],BS.prototype,"ytRendererBehavior",void 0);
_.I([_.N(_.KP.YtEventForwardingBehavior),_.Z("design:type",Object)],BS.prototype,"ytEventForwardingBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],BS.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],BS.prototype,"isLoading",void 0);_.I([_.qR("#header"),_.Z("design:type",HTMLDivElement)],BS.prototype,"header",void 0);_.I([_.qR("#confirm-button"),_.Z("design:type",_.cP)],BS.prototype,"confirmButton",void 0);
_.I([_.by("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],BS.prototype,"onYtServiceRequestSent",null);_.I([_.by("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],BS.prototype,"onYtServiceRequestCompleted",null);
_.I([_.by("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],BS.prototype,"closePopupHandler",null);_.I([_.hT("data.headerImage"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],BS.prototype,"onHeaderImageChanged",null);_.I([_.by("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],BS.prototype,"onYtNavigate",null);
_.I([_.Q({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],BS);
_.m(BS,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(gPJ!==void 0)return gPJ;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return gPJ=A},{mode:1});var wAQ;var Me=function(){var A=_.G.apply(this,arguments)||this;A.isLoading=!1;return A};
_.g(Me,_.G);_.P=Me.prototype;_.P.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.linkButton":{id:"link-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);p3S(this.hostElement)};
_.P.onYtServiceRequestCompleted=function(){_.dQ(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.P.onYtServiceRequestError=function(A){_.JC(this.hostElement,A.detail.error.message)};
_.P.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.P.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.dQ(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.P.onDataChanged=function(){this.isLoading=!1;var A=this.get("data.headerImage.thumbnails");A&&(A=_.uB(A,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+A+")");A=_.Fn();var L=_.Ch(),O=this.get("data.trackingParams");O&&L&&A&&_.W4(A,L,_.lV(O))};
_.v2.Object.defineProperties(Me.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
Me.prototype.onDataChanged=Me.prototype.onDataChanged;Me.prototype.onDomChange=Me.prototype.onDomChange;Me.prototype.onYtServiceRequestError=Me.prototype.onYtServiceRequestError;Me.prototype.onYtServiceRequestCompleted=Me.prototype.onYtServiceRequestCompleted;_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Me.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Me.prototype,"ytRendererBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],Me.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Me.prototype,"isLoading",void 0);_.I([_.K({reflectToAttribute:!0}),_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Me.prototype,"hasDescription",null);_.I([_.qR("tp-yt-paper-dialog-scrollable"),_.Z("design:type",Object)],Me.prototype,"scrollable",void 0);_.I([_.qR("#header"),_.Z("design:type",HTMLElement)],Me.prototype,"header",void 0);
_.I([_.by("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Me.prototype,"onYtServiceRequestCompleted",null);_.I([_.by("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Me.prototype,"onYtServiceRequestError",null);
_.I([_.by("dom-change"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Me.prototype,"onDomChange",null);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Me.prototype,"onDataChanged",null);_.I([_.Q({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],Me);
_.m(Me,"ytd-gaming-account-link-setting-renderer",function(){if(wAQ!==void 0)return wAQ;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return wAQ=A},{mode:1});var pAJ;var ipB;var $7=function(){var A=_.G.apply(this,arguments)||this;A.isHeader=!1;A.getEndpointForm=function(){return pRJ(A.data)};
return A};
_.g($7,_.G);_.P=$7.prototype;_.P.triggerHintActions=function(){var A=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var L=_.YK(A.hostElement,"yt-get-opened-popups-action");!(L&&L.length===1?L[0]:[]).some(function(O){O=O.openPopupAction.popupType;return O==="SURVEY"||O==="MEALBAR"||O==="HINT"})&&A.data.hintActions&&A.guideOpened&&(_.VN(A.hostElement,A.data.hintActions,A.hostElement),A.data.hintActions=void 0)})};
_.P.getBadgeIconType=function(A){return A&&A.liveBroadcasting?"live":null};
_.P.onDown=function(){this.interaction.triggerDown()};
_.P.onUp=function(){this.interaction.triggerUp()};
_.P.onTap=function(A){if(this.data.serviceEndpoint){var L;_.h("shorts_controller_retrieve_seedless_sequence_v2")&&((L=_.q(this.data.serviceEndpoint,_.rM))==null?void 0:L.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):wRS(this.data.serviceEndpoint,this);A.preventDefault()}else this.data.navigationEndpoint&&!_.xu(_.oa(A),this.hostElement,["A".toString()])&&_.P4(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.P.computeActive=function(A,L){if(!A)return!1;var O=A.navigationEndpoint;A=A.serviceEndpoint;if(!O&&!A||!L)return!1;if(O){A=(A=_.qT(L))&&["subscriptions","filteredsubscriptions"].includes(A);if(_.q(O,_.gM)&&_.q(L,_.gM)&&!A){var X=_.q(O,_.gM).browseId;L=_.q(L,_.gM).browseId;return X!==void 0&&L!==void 0&&(X===L||X==="VLWL"&&L==="FEwatch_later"||X==="FEwatch_later"&&L==="VLWL")}var x;O=(x=_.q(O.commandMetadata,_.LM))==null?void 0:x.url;L=(X=_.q(L.commandMetadata,_.LM))==null?void 0:X.url;return!(!O||
!L||O!==L&&O!==_.eh(L))}return this.isActiveShortsTab(A,L)};
_.P.isActiveShortsTab=function(A,L){L=!!_.q(L,_.rM)||!!_.q(L,_.BB);return(!!_.q(A,_.rM)||!!_.q(A,_.BB))&&L};
_.P.computeIsPrimary=function(A){return!!A};
_.v2.Object.defineProperties($7.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 A=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&A)return A}}});
$7.prototype.onTap=$7.prototype.onTap;$7.prototype.onUp=$7.prototype.onUp;$7.prototype.onDown=$7.prototype.onDown;$7.prototype.triggerHintActions=$7.prototype.triggerHintActions;_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],$7.prototype,"componentBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],$7.prototype,"rendererBehavior",void 0);_.I([_.N(_.Y5.YtTaskEmitterBehavior),_.Z("design:type",Object)],$7.prototype,"taskEmitterBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],$7.prototype,"activeEndpoint",void 0);_.I([_.K(),_.Z("design:type",Object)],$7.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Boolean)],$7.prototype,"guideOpened",void 0);_.I([_.K(),_.Z("design:type",String)],$7.prototype,"type",void 0);_.I([_.qR("yt-interaction"),_.Z("design:type",Object)],$7.prototype,"interaction",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],$7.prototype,"isHeader",void 0);
_.I([_.K({reflectToAttribute:!0}),_.r("data","activeEndpoint"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],$7.prototype,"active",null);_.I([_.K({reflectToAttribute:!0}),_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],$7.prototype,"isPrimary",null);_.I([_.K({reflectToAttribute:!0}),_.r("data.count","data.presentationStyle","data.badges.*"),_.Z("design:type",String),_.Z("design:paramtypes",[])],$7.prototype,"lineEndStyle",null);
_.I([_.r("lineEndStyle"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],$7.prototype,"ariaLabel",null);_.I([_.hT("data.hintActions","guideOpened"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$7.prototype,"triggerHintActions",null);_.I([_.by("down"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$7.prototype,"onDown",null);
_.I([_.by("up"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$7.prototype,"onUp",null);_.I([_.by("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],$7.prototype,"onTap",null);_.I([_.Q({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],$7);
_.m($7,"ytd-guide-entry-renderer",function(){if(ipB!==void 0)return ipB;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return ipB=A},{mode:1});var aC=function(){var A=_.G.apply(this,arguments)||this;A.userToggled=!1;return A};
_.g(aC,_.G);_.P=aC.prototype;_.P.getItemsPath=function(){return"data.expandableItems"};
_.P.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.P.onExpanderItemTapped=function(A){var L=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.h("kevlar_guide_expandable_items_killswitch")&&_.kd(this,function(){_.$o(L.expandableItems)});
A.preventDefault()};
_.P.onCollapserItemTapped=function(A){var L=this;this._setExpanded(!1);this.userToggled=!0;A.preventDefault();this.expandableItems&&!_.h("kevlar_guide_collapsible_items_killswitch")&&_.kd(this,function(){_.M6(L.hostElement)})};
_.P.observeActiveEndpoint=function(){for(var A=this.activeEndpoint,L=this.data,O=this.expandableItems.children,X=0,x=O.length;X<x;X++)O[X].activeEndpoint=A;L&&L.autoExpandCommand&&A&&!this.userToggled&&(O=this.data.autoExpandCommand,L=!(!_.q(O,_.gM)||!_.q(A,_.gM)||_.q(O,_.gM).browseId!==_.q(A,_.gM).browseId),A=this.get("commandMetadata.webCommandMetadata.url",A),O=this.get("commandMetadata.webCommandMetadata.url",O),L=L||!!(A&&O&&A.includes(O)),this._setExpanded(L),L&&this.ytLazyListBehavior.fillRemainingListItems())};
aC.prototype.observeActiveEndpoint=aC.prototype.observeActiveEndpoint;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],aC.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],aC.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.TU.YtLazyListBehavior),_.Z("design:type",Object)],aC.prototype,"ytLazyListBehavior",void 0);_.I([_.qR("#expandable-items"),_.Z("design:type",HTMLElement)],aC.prototype,"expandableItems",void 0);
_.I([_.K(),_.Z("design:type",Object)],aC.prototype,"data",void 0);_.I([_.K({readOnly:!0,reflectToAttribute:!0}),_.Z("design:type",Boolean)],aC.prototype,"expanded",void 0);_.I([_.K({value:0}),_.Z("design:type",Number)],aC.prototype,"initialCount",void 0);_.I([_.K(),_.Z("design:type",Object)],aC.prototype,"activeEndpoint",void 0);_.I([_.hT("data","activeEndpoint","canShowMore"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],aC.prototype,"observeActiveEndpoint",null);
_.I([_.Q({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],aC);
_.m(aC,"ytd-guide-collapsible-entry-renderer",function(){if(pAJ!==void 0)return pAJ;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return pAJ=A},{mode:_.e5("kevlar_poly_si_batch_j079")?1:2});var N2$;var rmS;var k7=function(){var A=_.G.apply(this,arguments)||this;A.allVideosCount=0;A.renderGuideEntry=!1;return A};
_.g(k7,_.G);k7.prototype.observeRenderEntry=function(){var A;this.renderGuideEntry=!((A=this.data)==null||!A.alwaysShow)||!!this.allVideosCount};
k7.prototype.observeRenderEntry=k7.prototype.observeRenderEntry;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],k7.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],k7.prototype,"ytdReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],k7.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],k7.prototype,"activeEndpoint",void 0);_.I([_.K({selector:_.$Bs}),_.Z("design:type",Object)],k7.prototype,"allVideosCount",void 0);
_.I([_.K(),_.Z("design:type",Object)],k7.prototype,"renderGuideEntry",void 0);_.I([_.iy("allVideosCount","data.alwaysShow"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],k7.prototype,"observeRenderEntry",null);_.I([_.Q({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],k7);
_.m(k7,"ytd-guide-downloads-entry-renderer",function(){if(rmS===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);rmS=A}A=rmS;return A},{mode:1});var Uh=function(){var A=_.G.apply(this,arguments)||this;A.youtab=_.h("web_enable_youtab");A.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return A};
_.g(Uh,_.G);_.P=Uh.prototype;_.P.configureRendererStamper=function(){return{"data.sectionItems":{id:"section-items",mapping:{guideCollapsibleEntryRenderer:{component:"ytd-guide-collapsible-entry-renderer",noInjection:!0,properties:{activeEndpoint:"[[activeEndpoint]]"}},guideEntryRenderer:{component:"ytd-guide-entry-renderer",noInjection:!0,properties:{activeEndpoint:"[[activeEndpoint]]"}},guideDownloadsEntryRenderer:{component:"ytd-guide-downloads-entry-renderer",noInjection:!0,properties:{activeEndpoint:"[[activeEndpoint]]"}}}}}};
_.P.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var A=this.sectionItems.children,L=0,O=A.length;L<O;L++)A[L].activeEndpoint=this.activeEndpoint}};
_.P.handleAddToGuideSectionAction=function(A){var L=_.q(A,zlB);if(L&&this.data&&(A=L.items,L=L.handlerData,A&&L&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(L)>-1)){L=0;for(var O=A.length;L<O;L++)A[L].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,A[L])}};
_.P.handleRemoveFromGuideSectionAction=function(A){var L=_.q(A,BfX);L&&this.data&&(A=L.guideEntryId,L=L.handlerData,A&&L&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(L)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(A,this.data.sectionItems),this.removeFromCollapsedSection(A,this.data.sectionItems)))};
_.P.removeFromExpandedSection=function(A,L){A=this.getEntryIndexMatchingId(A,L);A!==-1&&this.splice("data.sectionItems",A,1)};
_.P.removeFromCollapsedSection=function(A,L){var O=L.findIndex(function(X){return!!_.q(X,drS)});
O&&O!==-1&&L[O]&&_.q(L[O],drS)&&(L=_.q(L[O],drS).expandableItems)&&(A=this.getEntryIndexMatchingId(A,L),A!==-1&&this.splice("data.sectionItems."+O+".guideCollapsibleEntryRenderer.expandableItems",A,1))};
_.P.getEntryIndexMatchingId=function(A,L){var O=this;return L.findIndex(function(X){return O.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",X)===A})};
Uh.prototype.activeEndpointChanged=Uh.prototype.activeEndpointChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Uh.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],Uh.prototype,"actionHandlerBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Uh.prototype,"ytRendererstamperBehavior",void 0);_.I([_.qR("#section-items"),_.Z("design:type",HTMLDivElement)],Uh.prototype,"sectionItems",void 0);
_.I([_.qR("#header-entry"),_.Z("design:type",Object)],Uh.prototype,"headerEntry",void 0);_.I([_.K(),_.Z("design:type",Object)],Uh.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],Uh.prototype,"activeEndpoint",void 0);_.I([_.K(),_.Z("design:type",Object)],Uh.prototype,"youtab",void 0);_.I([_.hT("activeEndpoint"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Uh.prototype,"activeEndpointChanged",null);
_.I([_.Q({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],Uh);
_.m(Uh,"ytd-guide-collapsible-section-entry-renderer",function(){if(N2$===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);N2$=A}A=N2$;return A},{mode:1});var KmS;var GLJ;var vS=function(){var A=_.G.apply(this,arguments)||this;A.modernTypography=_.h("web_modern_typography");A.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 A};
_.g(vS,_.G);_.P=vS.prototype;
_.P.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",guideOpened:"[[guideOpened]]",type:"[[type]]"},noInjection:!0},guideCollapsibleEntryRenderer:{component:"ytd-guide-collapsible-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0},guideCollapsibleSectionEntryRenderer:{component:"ytd-guide-collapsible-section-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},
noInjection:!0}}}}};
_.P.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var A=_.YK(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);A&&A.length===1&&A[0]&&_.YK(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.P.handleResetChannelUnreadCountCommand=function(A){var L;(A=(L=_.q(A,$vS))==null?void 0:L.channelId)&&this.data&&this.data.items&&(L=this.getPathToEntryMatchingId(A))&&(this.set(L+".guideEntryRenderer.count",0),this.set(L+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.P.handleResetSubscriptionsUnreadDotCommand=function(A){var L,O=(L=_.q(A,aYJ))==null?void 0:L.targetId,X;O&&(X=this.data)!=null&&X.items&&(A=this.data.items.findIndex(function(x){var J;return((J=x.guideEntryRenderer)==null?void 0:J.targetId)===O}),A<0||this.set("data.items."+A+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.P.getPathToEntryMatchingId=function(A){if(this.data&&this.data.items){var L=this.getEntryIndexMatchingId(A,this.data.items);if(L>-1)return"data.items."+L;for(var O=0;O<this.data.items.length;O++)if(L=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[O]))if(L=this.getEntryIndexMatchingId(A,L),L>-1)return"data.items."+O+".guideCollapsibleEntryRenderer.expandableItems."+L}};
_.P.handleAddToGuideSectionAction=function(A){var L=this;if(_.q(A,zlB)){var O=_.q(A,zlB).items;A=_.q(A,zlB).handlerData;var X,x;if(O&&A&&((X=this.data)==null?void 0:(x=X.handlerDatas)==null?void 0:x.indexOf(A))>-1){O=O.filter(function(Y){return(Y=L.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",Y))&&!L.isGuideItemPresent(Y)});
var J;if(A==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((J=this.data)==null?0:J.items)&&(X=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),X>-1)){this.splice.apply(this,["data.items",X+1,0].concat(_.le(O)));return}this.unshift.apply(this,["data.items"].concat(_.le(O)))}}};
_.P.isGuideItemPresent=function(A){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(A,this.data.items)!==-1)return!0;var L=this.data.items.find(function(O){return!!O.guideCollapsibleEntryRenderer});
if((L==null?0:L.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(A,L.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.P.getEntryIndexMatchingId=function(A,L){var O=this;return L.findIndex(function(X){return O.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",X)===A})};
_.P.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(A,L){var O=this;return L.findIndex(function(X){return O.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",X)===A})};
_.P.handleRemoveFromGuideSectionAction=function(A){if(_.q(A,BfX)){var L=_.q(A,BfX).guideEntryId;A=_.q(A,BfX).handlerData;var O,X;L&&A&&((O=this.data)==null?void 0:(X=O.handlerDatas)==null?void 0:X.indexOf(A))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(L,this.data.items),this.removeFromCollapsedSection(L,this.data.items))}};
_.P.removeFromExpandedSection=function(A,L){A=this.getEntryIndexMatchingId(A,L);A!==-1&&this.splice("data.items",A,1)};
_.P.removeFromCollapsedSection=function(A,L){var O=L.findIndex(function(X){return!!X.guideCollapsibleEntryRenderer});
O!==-1&&(L=L[O].guideCollapsibleEntryRenderer.expandableItems)&&(A=this.getEntryIndexMatchingId(A,L),A!==-1&&this.splice("data.items."+O+".guideCollapsibleEntryRenderer.expandableItems",A,1))};
_.P.activeEndpointChanged=function(){for(var A=_.YJ(this.hostElement).querySelector("#items").children,L=0,O=A.length;L<O;L++)A[L].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.P.guideOpenedChanged=function(){for(var A=_.YJ(this.hostElement).querySelector("#items").children,L=0,O=A.length;L<O;L++)A[L].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
vS.prototype.guideOpenedChanged=vS.prototype.guideOpenedChanged;vS.prototype.activeEndpointChanged=vS.prototype.activeEndpointChanged;vS.prototype.persistentGuideChanged=vS.prototype.persistentGuideChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],vS.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],vS.prototype,"ytRendererstamperBehavior",void 0);
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],vS.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.TU.YtLazyListBehavior),_.Z("design:type",Object)],vS.prototype,"ytLazyListBehavior",void 0);_.I([_.N(_.kr.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],vS.prototype,"ytdGuideStateAwareBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],vS.prototype,"ytComponentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],vS.prototype,"data",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],vS.prototype,"modernTypography",void 0);_.I([_.K(),_.Z("design:type",String)],vS.prototype,"type",void 0);_.I([_.K({value:20}),_.Z("design:type",Number)],vS.prototype,"initialCount",void 0);_.I([_.K({value:10}),_.Z("design:type",Number)],vS.prototype,"targetFramerate",void 0);_.I([_.K({value:!0}),_.Z("design:type",Boolean)],vS.prototype,"autoFill",void 0);_.I([_.K({value:50}),_.Z("design:type",Number)],vS.prototype,"renderDelay",void 0);
_.I([_.hT("guidePersistentAndVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vS.prototype,"persistentGuideChanged",null);_.I([_.iy("activeEndpoint"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vS.prototype,"activeEndpointChanged",null);_.I([_.iy("guideOpened"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vS.prototype,"guideOpenedChanged",null);
_.I([_.Q({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],vS);
_.m(vS,"ytd-guide-section-renderer",function(){if(GLJ!==void 0)return GLJ;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return GLJ=A},{mode:_.e5("kevlar_poly_si_batch_j073")?1:2});var l0M;var oC=function(){return _.G.apply(this,arguments)||this};
_.g(oC,_.G);_.v2.Object.defineProperties(oC.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],oC.prototype,"rendererBehaviors",void 0);_.I([_.K(),_.Z("design:type",Object)],oC.prototype,"data",void 0);_.I([_.K(),_.r("data.signInButton.buttonRenderer.style"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],oC.prototype,"alignByText",null);_.I([_.Q({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],oC);
_.m(oC,"ytd-guide-signin-promo-renderer",function(){if(l0M===void 0){var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);l0M=A}A=l0M;return A},{mode:1});var Ax=function(){var A=_.G.apply(this,arguments)||this;A.showFooter=!1;return A};
_.g(Ax,_.G);Ax.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}}}}};
Ax.prototype.attached=function(){var A=this,L;return _.u(function(O){if(O.nextAddress==1){L=_.X5().resolve(_.Ot(_.af));if(!L)return O.jumpTo(0);L.setGuideData(A.hostElement);return O.yield(0,3)}A.ytLazyListBehavior.initialCount=2;return O.return()})};
Ax.prototype.onMouseExit=function(){_.h("web_guide_hover_expansion")&&_.YK(this.hostElement,"yt-guide-mouseleaved",[])};
Ax.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
Ax.prototype.dataChanged=Ax.prototype.dataChanged;Ax.prototype.onMouseExit=Ax.prototype.onMouseExit;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Ax.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],Ax.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.TU.YtLazyListBehavior),_.Z("design:type",Object)],Ax.prototype,"ytLazyListBehavior",void 0);
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Ax.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Ax.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],Ax.prototype,"showFooter",void 0);_.I([_.K({value:!0}),_.Z("design:type",Boolean)],Ax.prototype,"autoFill",void 0);_.I([_.by("mouseleave"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ax.prototype,"onMouseExit",null);
_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ax.prototype,"dataChanged",null);_.I([_.Q({is:"ytd-guide-renderer",disableElementRegistration:!0})],Ax);
_.m(Ax,"ytd-guide-renderer",function(){if(KmS!==void 0)return KmS;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return KmS=A},{mode:_.e5("kevlar_poly_si_batch_j073")?1:2});var cmn;var L8=function(){var A=_.G.apply(this,arguments)||this;A.systemIcons=_.h("kevlar_system_icons");A.frostedGlass=_.h("web_frosted_glass");A.getEndpointForm=function(){return pRJ(A.data)};
return A};
_.g(L8,_.G);_.P=L8.prototype;_.P.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.P.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.vG(this.data.formattedTitle))};
_.P.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.P.onDown=function(){this.interaction.triggerDown()};
_.P.onUp=function(){this.interaction.triggerUp()};
_.P.onTap=function(A){if(this.data.serviceEndpoint){var L;_.h("shorts_controller_retrieve_seedless_sequence_v2")&&((L=_.q(this.data.serviceEndpoint,_.rM))==null?void 0:L.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):wRS(this.data.serviceEndpoint,this);A.preventDefault()}else{var O;((O=this.data)==null?0:O.navigationEndpoint)&&!_.xu(_.oa(A),this.hostElement,["A".toString()])&&_.P4(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.P.computeActive=function(A,L){if(!A)return!1;var O=A.navigationEndpoint;A=A.serviceEndpoint;if(!O&&!A||!L)return!1;if(O){A=_.q(O,_.gM);var X=_.q(L,_.gM);if(A&&X)return A.browseId===X.browseId&&A.params===X.params;var x;O=(x=_.q(O.commandMetadata,_.LM))==null?void 0:x.url;var J;L=(J=_.q(L.commandMetadata,_.LM))==null?void 0:J.url;return!(!O||!L||O!==L&&O!==_.eh(L))}return this.isActiveShortsTab(A,L)};
_.P.isActiveShortsTab=function(A,L){L=!!_.q(L,_.rM)||!!_.q(L,_.BB);return(!!_.q(A,_.rM)||!!_.q(A,_.BB))&&L};
_.P.computeTitle=function(A,L){return L?"":_.vG(A)};
_.v2.Object.defineProperties(L8.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
L8.prototype.onTap=L8.prototype.onTap;L8.prototype.onUp=L8.prototype.onUp;L8.prototype.onDown=L8.prototype.onDown;L8.prototype.onActiveStateChange=L8.prototype.onActiveStateChange;L8.prototype.dataChanged=L8.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],L8.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],L8.prototype,"ytComponentBehavior",void 0);
_.I([_.N(_.jK),_.Z("design:type",Object)],L8.prototype,"ironButtonState",void 0);_.I([_.K(),_.Z("design:type",Object)],L8.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],L8.prototype,"activeEndpoint",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],L8.prototype,"noLabels",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.Z("design:type",Boolean)],L8.prototype,"isActive",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],L8.prototype,"systemIcons",void 0);_.I([_.qR("yt-interaction"),_.Z("design:type",Object)],L8.prototype,"interaction",void 0);_.I([_.r("isActive"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],L8.prototype,"ariaSelected",null);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],L8.prototype,"frostedGlass",void 0);
_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],L8.prototype,"dataChanged",null);_.I([_.hT("isActive"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],L8.prototype,"onActiveStateChange",null);_.I([_.by("down"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],L8.prototype,"onDown",null);
_.I([_.by("up"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],L8.prototype,"onUp",null);_.I([_.by("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],L8.prototype,"onTap",null);_.I([_.Q({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],L8);
_.m(L8,"ytd-mini-guide-entry-renderer",function(){if(cmn!==void 0)return cmn;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return cmn=A},{mode:_.e5("kevlar_poly_si_batch_j063")?1:2});var CZM;var O9=function(){var A=_.G.apply(this,arguments)||this;A.allVideosCount=0;A.noLabels=_.h("kevlar_mini_guide_no_labels");A.frostedGlass=_.h("web_frosted_glass");return A};
_.g(O9,_.G);_.P=O9.prototype;_.P.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation");this.registerWithViewTransitionManager()};
_.P.onMouseEnter=function(){_.h("web_guide_hover_expansion")&&_.YK(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.P.visibleChanged=function(){if(this.visible&&!this.data){var A=_.X5().resolve(_.Ot(_.af));A&&A.setGuideData(this.hostElement)}};
_.P.dataChanged=function(){var A=[],L;if((L=this.data)!=null&&L.items){L=_.d(this.data.items);for(var O=L.next();!O.done;O=L.next()){O=O.value;var X=void 0;if((X=O.guideSectionRenderer)==null?0:X.items)for(X=void 0,O=_.d((X=O.guideSectionRenderer)==null?void 0:X.items),X=O.next();!X.done;X=O.next())if(X=X.value,X.guideEntryRenderer)X=X.guideEntryRenderer,X.isPrimary&&A.push({guideEntryRenderer:X});else if(X.guideCollapsibleSectionEntryRenderer){var x=void 0;((x=_.q(X.guideCollapsibleSectionEntryRenderer.headerEntry,
Vl))==null?0:x.isPrimary)&&A.push({guideEntryRenderer:_.q(X.guideCollapsibleSectionEntryRenderer.headerEntry,Vl)});if(X=X.guideCollapsibleSectionEntryRenderer.sectionItems)for(X=_.d(X),x=X.next();!x.done;x=X.next()){var J=x.value;x=_.q(J,YRz);var Y=void 0;((Y=_.q(J,Vl))==null?0:Y.isPrimary)?A.push({guideEntryRenderer:_.q(J,Vl)}):x&&(J=void 0,_.q((J=x)==null?void 0:J.entryRenderer,Vl)&&(x.alwaysShow||this.allVideosCount)&&A.push({guideEntryRenderer:_.q(x.entryRenderer,Vl)}))}}}}this.miniGuideItems=
A};
_.P.activeEndpointChanged=function(){for(var A=this.items.children,L=0;L<A.length;L++)A[L].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.P.registerWithViewTransitionManager=function(){var A=this;_.p7(_.c1,function(){var L=_.X5().resolve(_.Ot(_.iY));if(L&&L.isAnyTransitionEnabled){var O={};L.viewTransitionCoordinator.registerElement(A.hostElement,(O.slide="mini-guide-page-transition",O))}})};
O9.prototype.activeEndpointChanged=O9.prototype.activeEndpointChanged;O9.prototype.dataChanged=O9.prototype.dataChanged;O9.prototype.visibleChanged=O9.prototype.visibleChanged;O9.prototype.onMouseEnter=O9.prototype.onMouseEnter;_.I([_.N(_.HL),_.Z("design:type",Object)],O9.prototype,"ytdReduxBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],O9.prototype,"ytRendererBehavior",void 0);
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],O9.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.kr.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],O9.prototype,"ytdGuideStateAwareBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],O9.prototype,"ytComponentBehavior",void 0);_.I([_.qR("#items"),_.Z("design:type",Object)],O9.prototype,"items",void 0);_.I([_.K(),_.Z("design:type",Object)],O9.prototype,"data",void 0);
_.I([_.K(),_.Z("design:type",Boolean)],O9.prototype,"visible",void 0);_.I([_.K(),_.Z("design:type",Object)],O9.prototype,"miniGuideItems",void 0);_.I([_.K({selector:_.$Bs}),_.Z("design:type",Object)],O9.prototype,"allVideosCount",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],O9.prototype,"noLabels",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],O9.prototype,"frostedGlass",void 0);
_.I([_.by("mouseenter"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],O9.prototype,"onMouseEnter",null);_.I([_.iy("visible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],O9.prototype,"visibleChanged",null);_.I([_.iy("data","allVideosCount"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],O9.prototype,"dataChanged",null);
_.I([_.iy("activeEndpoint"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],O9.prototype,"activeEndpointChanged",null);_.I([_.Q({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],O9);
_.m(O9,"ytd-mini-guide-renderer",function(){if(CZM===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);CZM=A}A=CZM;return A},{mode:1});var Fm$;var RhS=/^[\x00-\x7F]+$/,Xa=function(){var A=_.G.apply(this,arguments)||this;A.darkerDarkTheme=_.h("web_darker_dark_theme");return A};
_.g(Xa,_.G);_.v2.Object.defineProperties(Xa.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var A,L=_.vG((A=this.data)==null?void 0:A.handle);if(L)return _.Ue("@"+L)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var A=_.vG(this.displayHandle),L,O=_.vG((L=this.data)==null?void 0:L.handleUrl);if(A&&O)return _.Ue(O+A)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var A=_.vG(this.displayHandle);if(A&&!RhS.test(A)){var L;return(L=this.data)==null?void 0:L.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var A=_.vG(this.displayHandleUrl),L,O=_.vG((L=this.data)==null?void 0:L.urlInfoText);if(A&&O)return _.Ue(O+" "+A)}}});
_.I([_.K(),_.Z("design:type",Object)],Xa.prototype,"data",void 0);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Xa.prototype,"displayHandle",null);_.I([_.r("displayHandle"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Xa.prototype,"displayHandleUrl",null);_.I([_.r("displayHandle"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Xa.prototype,"warningText",null);
_.I([_.r("displayHandleUrl"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Xa.prototype,"urlInfoTextWithUrl",null);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Xa.prototype,"darkerDarkTheme",void 0);_.I([_.Q({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],Xa);
_.m(Xa,"ytd-handles-claiming-confirm-dialog-content",function(){if(Fm$!==void 0)return Fm$;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Fm$=A},{mode:1});var QxS;var xs=function(){var A=_.G.apply(this,arguments)||this;A.okButtonOverride={style:"mono",type:"outline",size:"M"};return A};
_.g(xs,_.G);xs.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
xs.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],xs.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],xs.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],xs.prototype,"okButtonOverride",void 0);_.I([_.K(),_.Z("design:type",Object)],xs.prototype,"data",void 0);_.I([_.Q({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],xs);
_.m(xs,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(QxS!==void 0)return QxS;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return QxS=A},{mode:1});var mtJ;var f0S=/^[\x00-\x7F]+$/,s9=function(){var A=_.G.apply(this,arguments)||this;A.isLoading=!1;A.darkerDarkTheme=_.h("web_darker_dark_theme");return A};
_.g(s9,_.G);s9.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var A;this.selectedHandle=(A=this.handleInput)==null?void 0:A.value;this.onSelectedHandleChanged(this.selectedHandle);_.YK(this.hostElement,"yt-refit-popups-action")}};
_.v2.Object.defineProperties(s9.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var A;return(A=this.data)==null?void 0:A.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.Ue("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.Ue(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!f0S.test(this.selectedHandle)){var A;return(A=this.data)==null?void 0:A.warningText}}}});
_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],s9.prototype,"ytComponentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],s9.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",String)],s9.prototype,"selectedHandle",void 0);_.I([_.K(),_.Z("design:type",Object)],s9.prototype,"isLoading",void 0);_.I([_.K(),_.Z("design:type",Function)],s9.prototype,"onSelectedHandleChanged",void 0);_.I([_.qR("#channel-handle-input"),_.Z("design:type",Object)],s9.prototype,"handleInput",void 0);
_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],s9.prototype,"handleUrlPrefix",null);_.I([_.r("selectedHandle"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],s9.prototype,"displayHandle",null);_.I([_.r("selectedHandle"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],s9.prototype,"displayHandleUrl",null);_.I([_.r("selectedHandle"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],s9.prototype,"warningText",null);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],s9.prototype,"darkerDarkTheme",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],s9.prototype,"ytRendererBehavior",void 0);_.I([_.Q({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],s9);
_.m(s9,"ytd-handles-claiming-edit-dialog-content",function(){if(mtJ!==void 0)return mtJ;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return mtJ=A},{mode:1});var I0Z;var Jx=function(){var A=_.G.apply(this,arguments)||this;A.actionButtonOverride={style:"mono",type:"filled",size:"M"};A.cancelButtonOverride={style:"mono",type:"text",size:"M"};A.selectButtonDisabled=!1;A.isLoading=!1;A.hasSelectedHandleEventListener=!1;A.selectedHandleChanged=function(L){A.selectedHandle=L};
return A};
_.g(Jx,_.G);_.P=Jx.prototype;_.P.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.P.onDataChanged=function(){var A,L;this.selectedHandle=(L=_.q((A=this.data)==null?void 0:A.inputField,yaM))==null?void 0:L.handle};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.onCancel=function(){this.selectedHandle="";_.dQ(this.hostElement,"yt-close-popup-action",[this.is])};
_.P.onSelectHandle=function(){var A=this;if(this.selectedHandle!==void 0){var L;((L=this.data)==null?void 0:L.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(O,X){if(X.newHandleUpdateStatus!==void 0&&X.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&X.newHandleUpdateStatus.errorMessage)_.JC(A.hostElement,_.vG(X.newHandleUpdateStatus.errorMessage)),
A.isLoading=!1;else{var x;if((x=A.data)==null?0:x.onChannelUpdateSuccess){O=A.data.onChannelUpdateSuccess;var J,Y;if(X=(J=_.q(O,_.mG))==null?void 0:(Y=J.popup)==null?void 0:Y.handlesClaimingConfirmDialogRenderer)X.handle=_.Ue(A.selectedHandle);A.ytComponentBehavior.resolveCommand(O);_.dQ(A.hostElement,"yt-close-popup-action",[A.is])}else A.isLoading=!1}},
onServerError:function(){var O;A.content&&((O=A.content)==null?0:O.handleInput)&&A.content.handleInput.validate();A.isLoading=!1;_.JC(A.hostElement,_.b3("TRY_AGAIN_LATER"))}}}))}};
_.P.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
Jx.prototype.onDataChanged=Jx.prototype.onDataChanged;Jx.prototype.onSelectedHandleChanged=Jx.prototype.onSelectedHandleChanged;_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],Jx.prototype,"ytComponentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Jx.prototype,"actionButtonOverride",void 0);_.I([_.K(),_.Z("design:type",Object)],Jx.prototype,"cancelButtonOverride",void 0);_.I([_.K(),_.Z("design:type",Object)],Jx.prototype,"data",void 0);
_.I([_.K(),_.Z("design:type",String)],Jx.prototype,"selectedHandle",void 0);_.I([_.K(),_.Z("design:type",Object)],Jx.prototype,"selectButtonDisabled",void 0);_.I([_.K(),_.Z("design:type",Object)],Jx.prototype,"isLoading",void 0);_.I([_.K(),_.Z("design:type",Object)],Jx.prototype,"hasSelectedHandleEventListener",void 0);_.I([_.K(),_.Z("design:type",Object)],Jx.prototype,"handleInput",void 0);
_.I([_.hT("selectedHandle"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Jx.prototype,"onSelectedHandleChanged",null);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Jx.prototype,"onDataChanged",null);_.I([_.qR("ytd-handles-claiming-edit-dialog-content"),_.Z("design:type",Object)],Jx.prototype,"content",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Jx.prototype,"ytRendererBehavior",void 0);
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Jx.prototype,"ytRendererstamperBehavior",void 0);_.I([_.Q({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],Jx);
_.m(Jx,"ytd-handles-claiming-edit-dialog-renderer",function(){if(I0Z!==void 0)return I0Z;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return I0Z=A},{mode:1});var ymQ;var Ps=function(){return _.G.apply(this,arguments)||this};
_.g(Ps,_.G);_.v2.Object.defineProperties(Ps.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)==null?0:A.handle){var L;return _.Ue("@"+_.vG((L=this.data)==null?void 0:L.handle))}}}});
_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Ps.prototype,"formattedHandle",null);_.I([_.K(),_.Z("design:type",Object)],Ps.prototype,"data",void 0);_.I([_.Q({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],Ps);
_.m(Ps,"ytd-handles-claiming-radio-option-renderer",function(){if(ymQ!==void 0)return ymQ;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return ymQ=A},{mode:1});var ZpJ;var jx$=/^[\x00-\x7F]+$/,di=function(){var A=_.G.apply(this,arguments)||this;A.initialRadioIndex="-1";A.isLoading=!1;A.darkerDarkTheme=_.h("web_darker_dark_theme");A.maybeSubmitFeedback=function(){A.feedbackSurveyRenderer.submitSurvey()};
return A};
_.g(di,_.G);di.prototype.updateSelectedHandleIndexFromBinding=function(A){this.selectedRadioIndex=+A.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(A)};
di.prototype.selectedHandleChanged=function(A){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var L;this.selectedHandle=(L=this.handleInput)==null?void 0:L.value;this.onSelectedHandleChanged(A)}};
_.v2.Object.defineProperties(di.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var A;return(((A=this.data)==null?void 0:A.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var A;return this.ytRendererBehavior.getSimpleString((A=this.data)==null?void 0:A.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.Ue("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.Ue(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!jx$.test(this.selectedHandle)){var A;return(A=this.data)==null?void 0:A.warningText}}}});
_.I([_.K(),_.Z("design:type",Object)],di.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],di.prototype,"initialRadioIndex",void 0);_.I([_.K(),_.Z("design:type",Number)],di.prototype,"selectedRadioIndex",void 0);_.I([_.K(),_.Z("design:type",String)],di.prototype,"selectedHandle",void 0);_.I([_.K(),_.Z("design:type",Object)],di.prototype,"isLoading",void 0);_.I([_.K(),_.Z("design:type",Function)],di.prototype,"onSelectedHandleChanged",void 0);
_.I([_.K(),_.Z("design:type",Function)],di.prototype,"onSelectedRadioIndexChanged",void 0);_.I([_.qR("#channel-handle-input"),_.Z("design:type",Object)],di.prototype,"handleInput",void 0);_.I([_.qR("ytd-feedback-survey-renderer"),_.Z("design:type",Object)],di.prototype,"feedbackSurveyRenderer",void 0);_.I([_.r("data"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],di.prototype,"radioButtonLength",null);
_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],di.prototype,"handleUrlPrefix",null);_.I([_.r("selectedHandle"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],di.prototype,"displayHandle",null);_.I([_.r("selectedHandle"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],di.prototype,"displayHandleUrl",null);_.I([_.r("selectedHandle"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],di.prototype,"warningText",null);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],di.prototype,"darkerDarkTheme",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],di.prototype,"ytRendererBehavior",void 0);_.I([_.Q({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],di);
_.m(di,"ytd-handles-claiming-select-dialog-content",function(){if(ZpJ!==void 0)return ZpJ;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return ZpJ=A},{mode:1});var Wm$;var Ys=function(){var A=_.G.apply(this,arguments)||this;A.actionButtonOverride={style:"mono",type:"filled",size:"M"};A.cancelButtonOverride={style:"mono",type:"text",size:"M"};A.initialRadioIndex="-1";A.selectButtonDisabled=!1;A.isLoading=!1;A.selectedRadioIndexChanged=function(L){A.selectedRadioIndex=Number(L.detail.value)};
A.selectedHandleChanged=function(L){A.selectedHandle=L.detail.value};
A.darkerDarkTheme=_.h("web_darker_dark_theme");return A};
_.g(Ys,_.G);_.P=Ys.prototype;_.P.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.P.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.P.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.YK(this.hostElement,"yt-refit-popups-action")};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.dQ(this.hostElement,"yt-close-popup-action",[this.is])};
_.P.onSelectHandle=function(){var A=this;if(this.selectedHandle!==void 0){var L;((L=this.data)==null?void 0:L.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(O,X){if(X.newHandleUpdateStatus!==void 0&&X.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&X.newHandleUpdateStatus.errorMessage)_.JC(A.hostElement,_.vG(X.newHandleUpdateStatus.errorMessage)),
A.isLoading=!1;else{var x;if((x=A.data)==null?0:x.onChannelUpdateSuccess){O=A.data.onChannelUpdateSuccess;X=_.q(O,_.mG);var J;if(X==null?0:(J=X.popup)==null?0:J.handlesClaimingConfirmDialogRenderer)X.popup.handlesClaimingConfirmDialogRenderer.handle=_.Ue(A.selectedHandle);A.ytComponentBehavior.resolveCommand(O);_.dQ(A.hostElement,"yt-close-popup-action",[A.is])}else A.isLoading=!1}},
onServerError:function(){if(A.selectedRadioIndex===A.radioButtonLength){var O;A.content&&((O=A.content)==null?0:O.handleInput)&&A.content.handleInput.validate()}A.isLoading=!1;_.JC(A.hostElement,_.b3("TRY_AGAIN_LATER"))}}}))}};
_.P.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var A,L;this.selectedHandle=(A=this.content)==null?void 0:(L=A.handleInput)==null?void 0:L.value}else this.selectedRadioIndex>=0&&((A=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(A==null?void 0:A.handle):this.selectedHandle=void 0)};
_.P.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.P.getRadioItem=function(A){if(this.radioButtonLength>A&&A>=0)return _.q(this.data.radioButton[A],OOJ)};
_.v2.Object.defineProperties(Ys.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var A;return(((A=this.data)==null?void 0:A.radioButton)||[]).length}}});
Ys.prototype.onSelectedHandleChanged=Ys.prototype.onSelectedHandleChanged;Ys.prototype.onSelectedHandleIndexChanged=Ys.prototype.onSelectedHandleIndexChanged;Ys.prototype.onDataChanged=Ys.prototype.onDataChanged;_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],Ys.prototype,"ytComponentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Ys.prototype,"actionButtonOverride",void 0);_.I([_.K(),_.Z("design:type",Object)],Ys.prototype,"cancelButtonOverride",void 0);
_.I([_.K(),_.Z("design:type",Object)],Ys.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],Ys.prototype,"initialRadioIndex",void 0);_.I([_.K(),_.Z("design:type",Number)],Ys.prototype,"selectedRadioIndex",void 0);_.I([_.K(),_.Z("design:type",String)],Ys.prototype,"selectedHandle",void 0);_.I([_.K(),_.Z("design:type",Object)],Ys.prototype,"selectButtonDisabled",void 0);_.I([_.K(),_.Z("design:type",Object)],Ys.prototype,"isLoading",void 0);
_.I([_.r("data"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],Ys.prototype,"radioButtonLength",null);_.I([_.qR("ytd-handles-claiming-select-dialog-content"),_.Z("design:type",Object)],Ys.prototype,"content",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ys.prototype,"onDataChanged",null);
_.I([_.hT("selectedRadioIndex"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ys.prototype,"onSelectedHandleIndexChanged",null);_.I([_.hT("selectedHandle"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ys.prototype,"onSelectedHandleChanged",null);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Ys.prototype,"darkerDarkTheme",void 0);
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Ys.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Ys.prototype,"ytRendererstamperBehavior",void 0);_.I([_.Q({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],Ys);
_.m(Ys,"ytd-handles-claiming-select-dialog-renderer",function(){if(Wm$!==void 0)return Wm$;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Wm$=A},{mode:1});var Hpk;var zhk;var uw=function(){return _.G.apply(this,arguments)||this};
_.g(uw,_.G);uw.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],uw.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],uw.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],uw.prototype,"data",void 0);_.I([_.Q({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],uw);
_.m(uw,"ytd-hotkey-dialog-section-option-renderer",function(){if(zhk!==void 0)return zhk;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return zhk=A},{mode:1});var B2M;var Tb=function(){return _.G.apply(this,arguments)||this};
_.g(Tb,_.G);Tb.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Tb.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Tb.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Tb.prototype,"data",void 0);_.I([_.Q({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],Tb);
_.m(Tb,"ytd-hotkey-dialog-section-renderer",function(){if(B2M!==void 0)return B2M;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return B2M=A},{mode:1});var V1=function(){var A=_.G.apply(this,arguments)||this;A.darkerDarkTheme=_.h("web_darker_dark_theme");return A};
_.g(V1,_.G);V1.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],V1.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],V1.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],V1.prototype,"darkerDarkTheme",void 0);_.I([_.Q({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],V1);
_.m(V1,"ytd-hotkey-dialog-content",function(){if(Hpk!==void 0)return Hpk;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Hpk=A},{mode:1});var MiQ;var Dw=function(){return _.G.apply(this,arguments)||this};
_.g(Dw,_.G);Dw.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var A=document.querySelector("ytd-hotkey-dialog-content #scrollable");A&&(A.dialogElement=this.hostElement.parentElement)};
Dw.prototype.onCloseTap=function(){_.dQ(this.hostElement,"yt-close-popup-action")};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Dw.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Dw.prototype,"data",void 0);_.I([_.Q({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],Dw);
_.m(Dw,"ytd-hotkey-dialog-renderer",function(){if(MiQ!==void 0)return MiQ;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return MiQ=A},{mode:1});var $tS;var en=function(){return _.G.apply(this,arguments)||this};
_.g(en,_.G);en.prototype.onYtServiceRequestError=function(){if(this.blocked){var A;var L=(A=this.data)==null?void 0:A.defaultServiceEndpoint}else{var O;L=(O=this.data)==null?void 0:O.toggledServiceEndpoint}var X;(L=(X=_.q(L,_.kac))==null?void 0:X.onFailureAction)&&this.ytComponentBehavior.resolveCommand(L);this.updateBlockState(!this.blocked)};
en.prototype.onYtToggleButton=function(A){this.updateBlockState(A.detail.toggled)};
en.prototype.updateBlockState=function(A){if(A!==this.blocked){var L=this.blockedEntityKey;L&&this.ytdReduxBehavior.dispatch(_.NV("blockStateEntity",L,{key:L,blocked:A}));this.set("data.isToggled",A)}};
_.v2.Object.defineProperties(en.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)}}});
en.prototype.onYtToggleButton=en.prototype.onYtToggleButton;en.prototype.onYtServiceRequestError=en.prototype.onYtServiceRequestError;_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],en.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],en.prototype,"ytdReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],en.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],en.prototype,"blockedEntityKey",void 0);
_.I([_.K({selectorArgs:["blockedEntityKey"],selector:function(A,L){return _.eM(A.entities,"blockStateEntity",L)}}),
_.Z("design:type",Object)],en.prototype,"blockStateEntity",void 0);_.I([_.r("data","blockStateEntity"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],en.prototype,"blocked",null);_.I([_.by("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],en.prototype,"onYtServiceRequestError",null);
_.I([_.by("yt-toggle-button"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],en.prototype,"onYtToggleButton",null);_.I([_.Q({is:"ytd-block-button",disableElementRegistration:!0})],en);
_.m(en,"ytd-block-button",function(){if($tS!==void 0)return $tS;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return $tS=A},
{mode:1});var a0z;var kL7;var E9=function(){return _.G.apply(this,arguments)||this};
_.g(E9,_.G);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],E9.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],E9.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],E9.prototype,"data",void 0);_.I([_.Q({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],E9);
_.m(E9,"ytd-kids-blocklist-picker-item-renderer",function(){if(kL7!==void 0)return kL7;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return kL7=A},{mode:1});var n8=function(){return _.G.apply(this,arguments)||this};
_.g(n8,_.G);n8.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],n8.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],n8.prototype,"data",void 0);_.I([_.Q({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],n8);
_.m(n8,"ytd-kids-blocklist-picker-content",function(){if(a0z!==void 0)return a0z;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return a0z=
A},{mode:_.e5("kevlar_poly_si_batch_j025")?1:2});var UtS;var tx=function(){var A=_.G.apply(this,arguments)||this;A.hasAnyRequestSucceeded=!1;A.hasAnyRequestFailed=!1;A.numPendingRequests=0;return A};
_.g(tx,_.G);_.P=tx.prototype;_.P.attached=function(){this.hostElement.setAttribute("dialog","")};
_.P.onDoneButtonTap=function(){_.dQ(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.P.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.P.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.P.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.P.onPopupClosed=function(A){var L,O;if(((L=A.detail)==null?void 0:(O=L.popup)==null?void 0:O.is)==="tp-yt-paper-dialog"){var X;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((X=this.data)==null?0:X.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.OP(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
tx.prototype.onPopupClosed=tx.prototype.onPopupClosed;tx.prototype.onYtServiceRequestError=tx.prototype.onYtServiceRequestError;tx.prototype.onYtServiceRequestCompleted=tx.prototype.onYtServiceRequestCompleted;tx.prototype.onYtServiceRequestSent=tx.prototype.onYtServiceRequestSent;_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],tx.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],tx.prototype,"ytRendererBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],tx.prototype,"data",void 0);_.I([_.by("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],tx.prototype,"onYtServiceRequestSent",null);_.I([_.by("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],tx.prototype,"onYtServiceRequestCompleted",null);
_.I([_.by("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],tx.prototype,"onYtServiceRequestError",null);_.I([_.by("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],tx.prototype,"onPopupClosed",null);_.I([_.Q({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],tx);
_.m(tx,"ytd-kids-blocklist-picker-renderer",function(){if(UtS!==void 0)return UtS;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return UtS=A},{mode:1});var vPM;var oPM;var bw=function(){return _.G.apply(this,arguments)||this};
_.g(bw,_.G);bw.prototype.setTip=function(A){var L=this;this.data&&(this.tip=BUB(HEM.getInstance(),A,this.data),_.kd(this,function(){_.P4(L.hostElement,"yt-refit")}))};
bw.prototype.clearTip=function(){this.tip=void 0};
bw.prototype.computeHidden=function(A){return!A};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],bw.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],bw.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.Z("design:type",Boolean)],bw.prototype,"hidden",void 0);_.I([_.K(),_.Z("design:type",Object)],bw.prototype,"tip",void 0);_.I([_.Q({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],bw);
_.m(bw,"ytd-menu-popup-tip-renderer",function(){if(oPM!==void 0)return oPM;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);
return oPM=A},{mode:1});var ApM;var hx=function(){var A=_.G.apply(this,arguments)||this;A.useIcons=!1;A.systemIcons=_.h("kevlar_system_icons");A.useListItemStyles=_.h("web_list_item_style_for_menu_items");return A};
_.g(hx,_.G);_.P=hx.prototype;_.P.onFocus=function(){var A;(A=_.YJ(this.hostElement).querySelector("tp-yt-paper-item"))==null||A.focus()};
_.P.onTap=function(){var A=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(A&&_.q(A,_.em))this.componentBehavior.resolveCommand(A),this.updateToggledStateInEntity();else if(A){this.componentBehavior.resolveCommand(A)||_.X5().resolve(_.x$).resolveCommand(A,{form:{element:this.hostElement}});var L;((L=_.q(A,_.nM))==null?void 0:L.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.P.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.P.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.P.updateToggledStateInEntity=function(){var A=this.data.toggleMenuServiceItemEntityKey,L=!this.data.isToggled;A&&this.ytdReduxBehavior.dispatch(_.NV("toggleMenuServiceItemEntity",A,{key:A,isToggled:L}))};
_.P.computeIcon=function(A,L,O){return(A=A?O:L)&&A.iconType?_.bV(A.iconType):""};
_.P.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.P.isIconActive=function(A){return!_.h("toggle_menu_active_icon_killswitch")&&A};
_.v2.Object.defineProperties(hx.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var A,L,O;return((A=this.data)==null?0:A.isToggled)?(L=this.data)==null?void 0:L.toggledText:(O=this.data)==null?void 0:O.defaultText}}});
hx.prototype.toggledStateEntityChanged=hx.prototype.toggledStateEntityChanged;hx.prototype.onYtServiceRequestCompleted=hx.prototype.onYtServiceRequestCompleted;hx.prototype.onTap=hx.prototype.onTap;hx.prototype.onFocus=hx.prototype.onFocus;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],hx.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],hx.prototype,"componentBehavior",void 0);
_.I([_.N(_.HL),_.Z("design:type",Object)],hx.prototype,"ytdReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],hx.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],hx.prototype,"useIcons",void 0);_.I([_.K({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.Z("design:type",String)],hx.prototype,"icon",void 0);
_.I([_.K({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(A,L){return _.eM(A.entities,"toggleMenuServiceItemEntity",L)}}),
_.Z("design:type",Object)],hx.prototype,"toggleMenuServiceItemEntity",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],hx.prototype,"systemIcons",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],hx.prototype,"useListItemStyles",void 0);_.I([_.by("focus"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],hx.prototype,"onFocus",null);
_.I([_.r("data.isToggled"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],hx.prototype,"toggleButtonText",null);_.I([_.by("tap"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],hx.prototype,"onTap",null);_.I([_.by("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],hx.prototype,"onYtServiceRequestCompleted",null);
_.I([_.hT("toggleMenuServiceItemEntity.isToggled","data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],hx.prototype,"toggledStateEntityChanged",null);_.I([_.Q({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],hx);
_.m(hx,"ytd-toggle-menu-service-item-renderer",function(){if(ApM!==void 0)return ApM;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return ApM=A},{mode:1});var LXB;var Sn=function(){return _.G.apply(this,arguments)||this};
_.g(Sn,_.G);Sn.prototype.onFocus=function(){var A;(A=_.YJ(this.hostElement).querySelector("tp-yt-paper-item"))==null||A.focus()};
_.v2.Object.defineProperties(Sn.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.RP(this.data.iconUrl)}}});
Sn.prototype.onFocus=Sn.prototype.onFocus;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Sn.prototype,"rendererBehavior",void 0);_.I([_.N(_.Nr.YtEndpointBehavior),_.Z("design:type",Object)],Sn.prototype,"ytEndpointBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Sn.prototype,"data",void 0);_.I([_.by("focus"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Sn.prototype,"onFocus",null);
_.I([_.r("data.iconUrl"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Sn.prototype,"imageSource",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],Sn);
_.m(Sn,"ytd-menu-custom-icon-item-renderer",function(){if(LXB!==void 0)return LXB;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return LXB=A},{mode:_.e5("kevlar_poly_si_batch_j028")?1:2});_.Y4(_.HZ,"yt-list-item-view-model",{props:{data:_.x5,isMenuItem:_.x5,isCompact:_.x5,onTap:_.dl,trailingAccessory:_.dl,hideSelectionTextChevron:_.x5,disabled:_.x5,inPopup:_.x5,disableHorizontalPadding:_.x5,isOverlay:_.x5,isToggled:_.x5,ariaLabel:_.x5,ariaPressed:_.x5}});var qP=function(){var A=_.G.apply(this,arguments)||this;A.disableBackdropFilter=_.h("web_disable_backdrop_filter");return A};
_.g(qP,_.G);_.P=qP.prototype;
_.P.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{menuNavigationItemRenderer:{component:"ytd-menu-navigation-item-renderer",properties:{useIcons:"[[useIcons]]"}},menuServiceItemRenderer:{component:"ytd-menu-service-item-renderer",properties:{useIcons:"[[useIcons]]"}},menuConditionalNavigationItemRenderer:{component:"ytd-menu-navigation-item-renderer",properties:{useIcons:"[[useIcons]]"}},menuConditionalServiceItemRenderer:{component:"ytd-menu-service-item-renderer",properties:{useIcons:"[[useIcons]]"}},
toggleMenuServiceItemRenderer:{component:"ytd-toggle-menu-service-item-renderer",properties:{useIcons:"[[useIcons]]"}},listItemViewModel:{component:"yt-list-item-view-model",params:{isCompact:!0}},menuCustomIconItemRenderer:{component:"ytd-menu-custom-icon-item-renderer"},menuServiceItemDownloadRenderer:{component:"ytd-menu-service-item-download-renderer"},clientSideToggleMenuItemRenderer:{component:"yt-live-chat-toggle-renderer"}}},"data.footer":{id:"footer",mapping:{menuPopupTipRenderer:"ytd-menu-popup-tip-renderer"}}}};
_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.P.computeAriaLabel=function(A){return A};
_.P.onPopupOpened=function(){this.items.selected=0;for(var A=_.d(_.YJ(this.items).children),L=A.next();!L.done;L=A.next())L.value.popupPositionTarget=this.positionTarget;if(A=this.popupTip||void 0)A.setTip(this.source||""),this.source=void 0;this.veData&&(A=_.Fn())&&_.B4(A,[this.veData])};
_.P.onPopupClosed=function(){var A=this.popupTip||void 0;A&&A.clearTip()};
_.P.onIronActivate=function(A){this.shouldPersist(A)||_.dQ(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(A=_.Fn())&&_.$K(A,this.veData)};
_.P.shouldPersist=function(A){var L,O;if(((L=A.detail)==null?void 0:L.selected)===void 0||(O=this.data)==null||!O.items)return!1;var X,x;return!((x=(X=this.data.items[A.detail.selected])==null?void 0:X.toggleMenuServiceItemRenderer)==null||!x.persistentOnMenuPopup)};
_.P.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(A){return A.menuNavigationItemRenderer?!!A.menuNavigationItemRenderer.icon:A.menuServiceItemRenderer?!!A.menuServiceItemRenderer.icon:A.menuConditionalServiceItemRenderer?!!A.menuConditionalServiceItemRenderer.icon:A.menuConditionalNavigationItemRenderer?!!A.menuConditionalNavigationItemRenderer.icon:A.toggleMenuServiceItemRenderer?!!A.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
qP.prototype.onPopupClosed=qP.prototype.onPopupClosed;qP.prototype.onPopupOpened=qP.prototype.onPopupOpened;_.I([_.N(_.KP.YtEventForwardingBehavior),_.Z("design:type",Object)],qP.prototype,"ytEventForwardingBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],qP.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],qP.prototype,"ytRendererBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],qP.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],qP.prototype,"veData",void 0);_.I([_.K({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.Z("design:type",String)],qP.prototype,"ariaLabel",void 0);_.I([_.K({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],qP.prototype,"useIcons",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],qP.prototype,"disableBackdropFilter",void 0);_.I([_.qR("#items"),_.Z("design:type",Object)],qP.prototype,"items",void 0);_.I([_.qR("ytd-menu-popup-tip-renderer"),_.Z("design:type",Object)],qP.prototype,"popupTip",void 0);_.I([_.by("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qP.prototype,"onPopupOpened",null);
_.I([_.by("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],qP.prototype,"onPopupClosed",null);_.I([_.Q({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],qP);
_.m(qP,"ytd-menu-popup-renderer",function(){if(vPM!==void 0)return vPM;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return vPM=A},{mode:1});var Oxn;var X7$=_.xa(function(A){A=_.OY(A,{icon:void 0});var L=A.data;A=A.icon;var O=function(){return L().iconBadgeText},X={},x=_.qn("yt-spec-icon-badge-shape",function(){a:switch(L().iconBadgeType){case "notification":var J="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":J="yt-spec-icon-badge-shape--type-cart";break a;default:J=""}return J},function(){a:switch(L().iconBadgeStyle){case "overlay":var J="yt-spec-icon-badge-shape--style-overlay";
break a;default:J=""}return J},(X["yt-spec-icon-badge-shape--text-size-small"]=function(){var J=O();
return!!((J==null?0:J.length)&&J.length>2)},X));
return _.D("yt-icon-badge-shape",null,_.D(_.e,{cond:A,then:function(J){return _.D("div",{class:x},_.D("div",{class:"yt-spec-icon-badge-shape__icon"},_.D(_.Ky,{icon:J})),_.D(_.e,{cond:O,then:function(Y){return _.D("div",{class:"yt-spec-icon-badge-shape__badge"},Y)}}))}}))},"Ig");
X7$.idomCompat=!0;_.Y4(X7$,"yt-icon-badge-shape",{props:{data:_.x5,icon:_.x5}});var gi=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};A.unseenCount=0;A.isOverlay=!1;return A};
_.g(gi,_.G);_.P=gi.prototype;_.P.attached=function(){var A=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(L){A.onServiceWorkerMessage(L)})};
_.P.onDataChanged=function(){this.isAttached&&!this.JSC$21412_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$21412_lastData=this.data};
_.P.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.P.computeIcon=function(){var A,L;return(A=this.data)==null?void 0:(L=A.icon)==null?void 0:L.iconType};
_.P.onServiceWorkerMessage=function(A){A.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.P.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.q(this.data.updateUnseenCountEndpoint,_.nM)&&_.q(this.data.updateUnseenCountEndpoint,_.nM).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.P.handleUpdateNotificationsUnseenCountAction=function(A){var L=this;A=_.q(A,MlM);A!=null&&A.unseenCount&&A.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(A.unseenCount),_.c1.addLowPriorityJob(function(){L.data.updateUnseenCountEndpoint&&L.ytComponentBehavior.resolveCommand(L.data.updateUnseenCountEndpoint)},A.timeoutMs))};
_.P.onClick=function(){_.P4(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var A=_.YK(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),L=this.data.menuRequest;A&&A.length===1&&A[0]?_.dQ(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):L&&this.ytComponentBehavior.resolveCommand(L)};
_.P.handleTopbarMenuClosedAction=function(A){A==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.P.toggleIconState=function(A){this.iconButton&&(this.iconButton.pressed=A)};
_.P.sendUnseenCountRequest=function(A){var L=this;_.p7(_.c1,function(){L.ytComponentBehavior.resolveCommand(A)})};
_.P.updateCountUI=function(A){this.set("unseenCount",A<9?A:"9+")};
_.v2.Object.defineProperties(gi.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
gi.prototype.handleUpdateNotificationsUnseenCountAction=gi.prototype.handleUpdateNotificationsUnseenCountAction;gi.prototype.onDataChanged=gi.prototype.onDataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],gi.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],gi.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.J3),_.Z("design:type",Object)],gi.prototype,"ytdOpenPopupBehavior",void 0);
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],gi.prototype,"ytActionHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],gi.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],gi.prototype,"unseenCount",void 0);_.I([_.K(),_.Z("design:type",Object)],gi.prototype,"isOverlay",void 0);_.I([_.K({value:!0}),_.Z("design:type",Boolean)],gi.prototype,"showTooltips",void 0);_.I([_.qR("yt-icon-button"),_.Z("design:type",Object)],gi.prototype,"iconButton",void 0);
_.I([_.r("unseenCount"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],gi.prototype,"showNotificationCount",null);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],gi.prototype,"onDataChanged",null);_.I([_.by("yt-update-notifications-unseen-count-action"),_.Z("design:type",Function),_.Z("design:paramtypes",[Object]),_.Z("design:returntype")],gi.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.I([_.Q({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],gi);
_.m(gi,"ytd-notification-topbar-button-renderer",function(){if(Oxn!==void 0)return Oxn;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Oxn=A},{mode:_.e5("kevlar_poly_si_batch_j025")?1:2});var xWQ;var wi=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return A};
_.g(wi,_.G);wi.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}}}}}};
wi.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
wi.prototype.onDarkModeToggled=function(A){this.dark=A};
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],wi.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],wi.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],wi.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],wi.prototype,"data",void 0);_.I([_.K({value:!0,reflectToAttribute:!0}),_.Z("design:type",Boolean)],wi.prototype,"dark",void 0);
_.I([_.Q({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],wi);
_.m(wi,"yt-pdg-buy-flow-header-renderer",function(){if(xWQ!==void 0)return xWQ;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return xWQ=A},{mode:1});var scM;var JpZ;var p8=function(){var A=_.G.apply(this,arguments)||this;A.immediateValue=0;A.isDarkTheme=!1;A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return A};
_.g(p8,_.G);_.P=p8.prototype;_.P.created=function(){_.ah.requestAvailability()};
_.P.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.P.dataChanged=function(){var A=_.YJ(this.hostElement).querySelector("#color-slider");A.immediateValue&&this.updateSliderKnobAndGradientStyles(A.immediateValue);this.data.notches[0].knobColorArgb&&_.eq(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.Hy(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.ms("HTML_DIR")==="rtl"&&_.YJ(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.P.onSliderImmediateChange=function(){var A=_.YJ(this.hostElement).querySelector("#color-slider");A.dragging&&(A.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(A.immediateValue),this.updateSliderKnobAndGradientStyles(A.immediateValue)),this.updateSliderAria())};
_.P.onSliderChange=function(){var A=_.YJ(this.hostElement).querySelector("#color-slider");A.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(A.immediateValue),this.updateSliderKnobAndGradientStyles(A.immediateValue));this.updateSliderAria()};
_.P.updateSliderAria=function(){var A=_.YJ(this.hostElement).querySelector("#color-slider"),L=_.YJ(this.hostElement).querySelector("#color-slider");L=_.vG(this.data.notches[L.immediateValue].tierValue);_.upe()&&_.P4(this.hostElement,"iron-announce",{text:L});A.setAttribute("aria-valuetext",L)};
_.P.updateSuperThanksSelectedTierEntity=function(A){if(A!==this.immediateValue){var L,O,X=this==null?void 0:(L=this.data)==null?void 0:(O=L.superThanksSelectedTierEntity)==null?void 0:O.key;X&&X.length>0&&this.ytdReduxBehavior.dispatch(_.NV("superThanksSelectedTierEntity",X,{key:X,index:A}))}};
_.P.onDarkModeToggledAction=function(A){this.isDarkTheme=A};
_.P.updateSliderKnobAndGradientStyles=function(A){this.immediateValue=A;A=this.data.notches[A];if(A==null?0:A.knobColorArgb)var L={"--ytd-pdg-color-slider-knob-color":_.Hy(A.knobColorArgb)};(A==null?0:A.linearGradientCssStyle)&&L!==null&&(L=Object.assign({},L,{"--ytd-pdg-color-slider-active-color":A==null?void 0:A.linearGradientCssStyle}));L!==null&&_.eq(this.hostElement,L)};
p8.prototype.onSliderChange=p8.prototype.onSliderChange;p8.prototype.onSliderImmediateChange=p8.prototype.onSliderImmediateChange;p8.prototype.dataChanged=p8.prototype.dataChanged;_.I([_.K(),_.Z("design:type",Object)],p8.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],p8.prototype,"immediateValue",void 0);_.I([_.K(),_.Z("design:type",Number)],p8.prototype,"maxMarkers",void 0);
_.I([_.K({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:C3B}),_.Z("design:type",Object)],p8.prototype,"superThanksSelectedTierEntity",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],p8.prototype,"isDarkTheme",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],p8.prototype,"ytdReduxBehavior",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],p8.prototype,"dataChanged",null);
_.I([_.by("immediate-value-change"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],p8.prototype,"onSliderImmediateChange",null);_.I([_.by("change"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],p8.prototype,"onSliderChange",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],p8);
_.m(p8,"ytd-pdg-color-slider-renderer",function(){if(JpZ!==void 0)return JpZ;var A=document.createElement("template");_.p(A,'\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>');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return JpZ=A},{mode:1});var PYZ;var dWS;var iw=null;
_.RJ({is:"ytd-comment-input",_template:function(){if(dWS!==void 0)return dWS;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return dWS=A},
behaviors:[_.JZu.YtHostElementBehavior,_.lh,_.v$.YtComponentBehavior,_.Db.YtRendererstamperBehavior,_.D8V.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 _.k5}},
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",_.tT(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;_.gt();this.focus()},
detached:function(){document.removeEventListener("tap",_.tT(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(A){A=A.detail;A=A.isCustomEmoji?A.shortcuts[0]:A.emojiId;var L=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(L,A);this.maybeUpdateTextDirection_();_.P4(this.hostElement,"input")},
getInputRange_:function(){var A=_.w1();if(A){A=A.getBrowserRangeObject();for(var L=A.commonAncestorContainer;L;){if(L===this.getEditableTextArea_())return A;L=L.parentNode}}A=this.getEditableTextArea_();A=_.Bg(A,A.childNodes.length);A.select();return A.getBrowserRangeObject()},
insertTextWithEmojis_:function(A,L,O){(L=this.emojiManager.createDocumentFragment(L,!0,!1,O===void 0?!0:O))&&L.childNodes.length!==0&&(A.collapsed||A.deleteContents(),O=L.lastChild,A.insertNode(L),_.uS6(O).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var A=_.w1();if(A){var L=A.JSC$12313_getStartNode(),O=A.JSC$12313_getEndNode();if(iTJ(L)&&iTJ(O)){var X=A.JSC$12313_getStartOffset(),x;if(_.hW&&L.nodeType===Node.ELEMENT_NODE&&(x=_.uMn(L)))_.Bg(x,0).select();else{x=SU(L)?L:_.my(L,SU);var J=SU(O)?O:_.my(O,SU);if(x||J)if(A.isCollapsed()){if(L.nodeType===Node.TEXT_NODE){A=!0;X===L.length&&(A=!1);if(iw==="end"||iw==="right")A=!1;L=L.parentNode;A=[].concat(_.le(L.parentNode.childNodes)).indexOf(L)+(A?0:1);_.Bg(L.parentNode,
A).select()}}else x?x.previousSibling&&x.previousSibling.length>0?_.M_(O,A.JSC$12313_getEndOffset(),x.previousSibling,x.previousSibling.length-1).select():(L=document.createTextNode("\u200b"),x.parentNode.insertBefore(L,x),_.M_(O,A.JSC$12313_getEndOffset(),L,0).select()):J&&(J.nextSibling&&J.nextSibling.length>0?_.M_(L,A.JSC$12313_getStartOffset(),J.nextSibling,1).select():(O=document.createTextNode("\u200b"),J.parentNode.insertBefore(O,J.nextSibling),_.M_(L,A.JSC$12313_getStartOffset(),O,O.length).select()));
iw=null}}else iw=null}else iw=null},
leftKeyPressed_:function(){iw="left"},
rightKeyPressed_:function(){iw="right"},
endKeyPressed_:function(){iw="end"},
maybeDeleteChip_:function(){var A=ctX(!0);if(A){var L=_.w1(),O=L.JSC$12313_getStartNode();L=L.JSC$12313_getStartOffset();_.Z_(O,L,A,A.childNodes.length).select()}},
maybeBackspaceChip_:function(){var A=ctX(!1);if(A){var L=_.w1(),O=L.JSC$12313_getStartNode();L=L.JSC$12313_getStartOffset();_.Z_(O,L,A,0).select()}},
maybeBackspaceChipWordMode_:function(A){var L=_.w1();if(L.isCollapsed()){var O=L.JSC$12313_getStartNode();L=L.JSC$12313_getStartOffset();var X=CVX(O,L,!0);X&&(_.Z_(O,L,X,0).select(),document.execCommand("delete"),A.preventDefault(),A.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(A){var L=_.w1();if(L.isCollapsed()){var O=L.JSC$12313_getStartNode();L=L.JSC$12313_getStartOffset();var X=CVX(O,L,!1);X&&(_.Z_(O,L,X,X.childNodes.length).select(),document.execCommand("delete"),A.preventDefault(),A.stopImmediatePropagation())}},
onContentClick:function(A){A.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(A){A.defaultPrevented||A.currentTarget.tagName==="YTD-COMMENT-INPUT"&&SU(A.target)&&A.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.YJ(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.YJ(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(A,L){A=rtZ(A,this.emojiManager,L).cloneNode(!0);for(L=A.firstChild;L;)if(L.nodeType!==1)L=L.nextSibling;else switch(L.tagName){case "BR":var O=_.mR();_.bJu(O,L);L=O.nextSibling;break;case "DIV":(O=L.lastChild)&&L.nextSibling&&_.ZV(_.mR(),O);L.previousSibling&&(L.previousSibling.nodeType===1||L.previousSibling.nodeType===3&&!L.previousSibling.textContent.endsWith("\n"))&&_.y5(_.mR(),L);O&&O.nodeName==="BR"&&_.hg(O);O=L;L.hasChildNodes()?(L=L.firstChild,
_.hSN(O)):(L=L.nextSibling,_.hg(O));break;default:L=L.nextSibling}return FeJ(A)},
setTextAreaValue:function(A){A||(A="");var L=this.getEditableFormattedString_();L.text="";this.getEditableTextArea_().innerText="";typeof A==="string"&&(A={runs:[{text:A}]});L.text=A},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();iw=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var A=this.getEditableTextArea_();A&&(_.Bg(A,A.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.ms("HTML_DIR")==="rtl"){var A=this.getEditableTextArea_(),L=this.getTextAreaValue()!==""?"auto":"rtl";A.setAttribute("dir",L)}},
handleInputEvent_:function(){var A=null;if(this.isEmojiButtonDisplayed){var L=this.getInputRange_();L&&(A=this.emojiInput.retrieveTextBeforeRange(L))}this.insertText_(A,!0);this.updateCharCount_();A=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=A.scrollHeight>A.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var A=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:A})},
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(A){this.isEmojiButtonDisplayed&&(A.preventDefault(),A.stopImmediatePropagation(),A=A.clipboardData.getData("text/plain"),this.insertText_(A,!1,!1),_.P4(this.hostElement,"input"))},
insertText_:function(A,L,O){L=L===void 0?!1:L;O=O===void 0?!0:O;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&A){var X=this.getInputRange_().cloneRange();this.emojiManager&&X&&(L&&this.emojiInput.offsetStartOfRangeBy(X,A.length),this.insertTextWithEmojis_(X,A,O),NWM(this.getEditableTextArea_().lastChild)||(X=this.getInputRange_().cloneRange()),X&&(this.emojiInput.updateSuggestions(X,A),this.updateSuggestionOffset_(X)))}},
getSimpleString:_.vG,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(A){return A?"focused":"not-focused"},
computePlaceholderText_:function(A){return this.getSimpleString(A)},
computeEditableText_:function(A){return this.getSimpleString(A)},
onPrefilledContentDismissed_:function(A){A.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(A,L){A?this.fire("yt-autonav-pause-focus"):L!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(A){var L=this.getEditableTextArea_();[].concat(_.le(A.dataTransfer.items)).forEach(function(O){O.kind==="string"&&O.type.match("^text/plain")&&O.getAsString(function(X){L.appendChild(document.createTextNode(X))})});
A.preventDefault()},
preventDefault_:function(A){A.preventDefault()},
onSuggestionInsert_:function(A){this.insertTextWithEmojis_(A.detail.range,A.detail.text)},
onEmojiSuggestionClick_:function(A){this.emojiInput.insertSuggestion(A.detail)},
updateSuggestionOffset_:function(A){if(this.emojiInput&&_.YJ(this.emojiInput).querySelector("#dropdown")){var L=this.getEditableTextArea_().getBoundingClientRect().bottom,O=A.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(L-O)+5;L=this.getEditableTextArea_().getBoundingClientRect().left;A=A.getBoundingClientRect().left-L;_.YJ(this.emojiInput).querySelector("#dropdown").style.marginLeft=A+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.mg("yt-post"));return this.localStorage}});var NP=function(){var A=_.G.apply(this,arguments)||this;A.currentCommentOptionIndex=0;A.isEmojiPickerDisplayed=!1;A.emojiManager=_.k5;A.isUgcEmpty=!1;A.userGeneratedCommentChangedHandler=function(){_.P4(A.hostElement,"ytd-pdg-user-generated-comment-changed");A.isEmojiYtdCommentInputEnabled&&(A.isUgcEmpty=!A.ytdCommentInputEl.getTextAreaValue())};
A.pasteHandler=function(L){L.preventDefault();L.stopImmediatePropagation();var O;if(L=(O=L.clipboardData)==null?void 0:O.getData("text/plain"))O=document.getSelection().getRangeAt(0),O.collapsed||O.deleteContents(),L=document.createTextNode(L),O.insertNode(L),O.selectNodeContents(L),O.collapse(!1),L=window.getSelection(),L.removeAllRanges(),L.addRange(O)};
A.onDocumentClick=function(L){if(A.isEmojiPickerDisplayed){var O,X,x;!(L.target instanceof Node)||(O=L.composedPath())!=null&&O.includes(A.editableTextEl)||(X=L.composedPath())!=null&&X.includes(A.emojiButtonEl)||(x=L.composedPath())!=null&&x.includes(A.emojiPickerEl)||(A.isEmojiPickerDisplayed=!1)}};
return A};
_.g(NP,_.G);_.P=NP.prototype;_.P.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.P.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.P.detached=function(){var A;(A=this.contentEl)==null||A.removeEventListener("input",this.userGeneratedCommentChangedHandler);var L;(L=this.contentEl)==null||L.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.P.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.P.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var A;this.contentEl.textContent=this.rendererBehavior.getSimpleString((A=this.data)==null?void 0:A.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.P.reloadEmojis=function(){this.emojiPickerEl&&_.q(this.emojiPicker,_.d_7)&&this.emojiPickerEl.updateEmojiCategories()};
_.P.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.eq(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.P.handleBackgroundColorStyling=function(){var A;if((A=this.currentCommentOption)==null?0:A.commentBackgroundColorArgb){var L;_.eq(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.Hy((L=this.currentCommentOption)==null?void 0:L.commentBackgroundColorArgb)})}else _.eq(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.P.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var A;(A=this.contentEl)==null||A.focus()}};
_.P.onEditButtonClick=function(A){var L=document.getSelection();L&&this.contentEl&&(A.stopPropagation(),A.preventDefault(),L.selectAllChildren(this.contentEl),L.collapseToEnd())};
_.P.onContentDrop=function(A){var L=this;if(A.dataTransfer){A=_.d(A.dataTransfer.items);for(var O=A.next();!O.done;O=A.next())O=O.value,O.kind==="string"&&O.type.match("^text/plain")&&O.getAsString(function(X){var x;(x=L.contentEl)==null||x.appendChild(document.createTextNode(X))})}};
_.P.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.P.getUserGeneratedCommentText=function(){var A,L=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(A=this.contentEl)==null?void 0:A.textContent;return L?L.trim():""};
_.P.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.P.onEmojiSelect=function(A){this.ytdCommentInputEl.onEmojiSelect(A)};
_.v2.Object.defineProperties(NP.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.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 A;return!((A=this.currentCommentOption)==null||!A.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var A;if(_.q((A=this.currentCommentOption)==null?void 0:A.chipRenderer,_.ib3)){var L;return _.q((L=this.currentCommentOption)==null?void 0:L.chipRenderer,_.ib3)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var A,L;return((A=this.data)==null?0:A.commentOptionRenderers)?_.q((L=this.data)==null?void 0:L.commentOptionRenderers[this.superThanksSelectedTierEntity.index],hWn):void 0}var O,X;return((O=this.data)==null?0:O.commentOptionRenderers)?_.q((X=this.data)==null?void 0:X.commentOptionRenderers[this.currentCommentOptionIndex],hWn):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var A;return this.rendererBehavior.getSimpleString((A=this.data)==null?void 0:A.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var A;return this.rendererBehavior.getSimpleString((A=this.data)==null?void 0:A.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var A,L;return(L=_.q((A=this.data)==null?void 0:A.commentDialog,_.vF7))==null?void 0:L.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var A,L;return(L=_.q((A=this.data)==null?void 0:A.commentDialog,_.vF7))==null?void 0:L.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var A,L;return(L=_.q((A=this.data)==null?void 0:A.commentDialog,_.vF7))==null?void 0:L.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var A,L,O=(L=_.q((A=this.data)==null?void 0:A.commentDialog,_.vF7))==null?void 0:L.emojiPicker;if(!_.q(O,_.d_7)||!_.q(O,_.d_7).categories)return!1;A=function(J){return J.emojiPickerCategoryRenderer?J.emojiPickerCategoryRenderer.emojiIds&&J.emojiPickerCategoryRenderer.emojiIds.length>0:J.emojiPickerUpsellCategoryRenderer?J.emojiPickerUpsellCategoryRenderer.emojis&&J.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var X,x;return((X=_.q(O,_.d_7))==null?0:(x=X.categories)==null?0:x.find(A))?!0:!1}}});
NP.prototype.onEmojiSelect=NP.prototype.onEmojiSelect;NP.prototype.dataChanged=NP.prototype.dataChanged;NP.prototype.currentCommentOptionChanged=NP.prototype.currentCommentOptionChanged;_.I([_.N(_.HL),_.Z("design:type",Object)],NP.prototype,"ytdReduxBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],NP.prototype,"rendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],NP.prototype,"ytRendererstamperBehavior",void 0);
_.I([_.qR("#content-dom-if"),_.Z("design:type",_.mi)],NP.prototype,"contentDomIfEl",void 0);_.I([_.qR("#content-no-emojis"),_.Z("design:type",HTMLElement)],NP.prototype,"contentEl",void 0);_.I([_.qR("#container"),_.Z("design:type",HTMLElement)],NP.prototype,"containerEl",void 0);_.I([_.qR("#comment-chip-container"),_.Z("design:type",HTMLElement)],NP.prototype,"paidCommentChipContainerEl",void 0);_.I([_.qR("#text-input"),_.Z("design:type",HTMLElement)],NP.prototype,"editableTextEl",void 0);
_.I([_.qR("#emoji-button"),_.Z("design:type",HTMLElement)],NP.prototype,"emojiButtonEl",void 0);_.I([_.qR("#emoji-picker > yt-emoji-picker-renderer"),_.Z("design:type",Object)],NP.prototype,"emojiPickerEl",void 0);_.I([_.qR("#text-input > ytd-comment-input"),_.Z("design:type",Object)],NP.prototype,"ytdCommentInputEl",void 0);_.I([_.K(),_.Z("design:type",Object)],NP.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],NP.prototype,"currentCommentOptionIndex",void 0);
_.I([_.K({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:C3B}),_.Z("design:type",Object)],NP.prototype,"superThanksSelectedTierEntity",void 0);_.I([_.K(),_.Z("design:type",Object)],NP.prototype,"isEmojiPickerDisplayed",void 0);_.I([_.K(),_.Z("design:type",Object)],NP.prototype,"emojiManager",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],NP.prototype,"isUgcEmpty",void 0);
_.I([_.hT("currentCommentOption"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],NP.prototype,"currentCommentOptionChanged",null);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],NP.prototype,"dataChanged",null);_.I([_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],NP.prototype,"isEmojiYtdCommentInputEnabled",null);
_.I([_.r("data.title"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],NP.prototype,"title",null);_.I([_.r("data.authorText"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],NP.prototype,"channelName",null);_.I([_.r("data.commentOptionRenderers","currentCommentOption"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],NP.prototype,"shouldShowPaidCommentChipRenderer",null);
_.I([_.r("data.commentOptionRenderers","currentCommentOption"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],NP.prototype,"paidCommentChipRenderer",null);_.I([_.r("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],NP.prototype,"currentCommentOption",null);
_.I([_.r("data.defaultCommentText","superThanksSelectedTierEntity"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],NP.prototype,"commentText",null);_.I([_.r("data.placeholderText"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],NP.prototype,"placeholderText",null);_.I([_.r("data.commentDialog.commentDialogRenderer.editableText"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],NP.prototype,"editableText",null);
_.I([_.r("data.commentDialog.commentDialogRenderer.emojiButton"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],NP.prototype,"emojiButton",null);_.I([_.r("data.commentDialog.commentDialogRenderer.emojiPicker"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],NP.prototype,"emojiPicker",null);
_.I([_.r("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],NP.prototype,"isEmojiButtonDisplayed",null);_.I([_.by("yt-emoji-select"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],NP.prototype,"onEmojiSelect",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],NP);
_.m(NP,"ytd-pdg-comment-preview-renderer",function(){if(PYZ!==void 0)return PYZ;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return PYZ=A},{mode:2});var Ylz;var ri=function(){var A=_.G.apply(this,arguments)||this;A.selected=!1;return A};
_.g(ri,_.G);_.P=ri.prototype;_.P.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.P.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.P.dataChanged=function(){this.data&&(_.uy(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.eq(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.Hy(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.Hy(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.P.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.P.onClick=function(){this.logClick()};
_.P.onKeyboardSelect=function(){_.P4(this.hostElement,"tap");this.onClick()};
_.P.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
ri.prototype.onClick=ri.prototype.onClick;ri.prototype.selectedChanged=ri.prototype.selectedChanged;ri.prototype.dataChanged=ri.prototype.dataChanged;_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],ri.prototype,"componentBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],ri.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.lh),_.Z("design:type",Object)],ri.prototype,"ironA11yKeysBehavior",void 0);
_.I([_.N(_.kJ),_.Z("design:type",Object)],ri.prototype,"ironSelectableBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],ri.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],ri.prototype,"shownThumbnail",void 0);_.I([_.K(),_.Z("design:type",Object)],ri.prototype,"basePriceText",void 0);_.I([_.K(),_.Z("design:type",Object)],ri.prototype,"purchaseCommand",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],ri.prototype,"selected",void 0);
_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ri.prototype,"dataChanged",null);_.I([_.hT("selected"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ri.prototype,"selectedChanged",null);_.I([_.by("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ri.prototype,"onClick",null);
_.I([_.Q({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],ri);
_.m(ri,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(Ylz!==void 0)return Ylz;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Ylz=A},{mode:1});var K8=function(){var A=_.G.apply(this,arguments)||this;A.selectedItemIndex=0;A.buyButtonDisabled=!1;return A};
_.g(K8,_.G);_.P=K8.prototype;
_.P.configureRendererStamper=function(){return{"data.commentPreview":{id:"comment-preview",mapping:{pdgCommentPreviewRenderer:{component:"ytd-pdg-comment-preview-renderer",properties:{currentCommentOptionIndex:"[[selectedItemIndex]]"}}}},"data.selectableItemButtons":{id:"selectable-items",mapping:{buttonRenderer:{component:"ytd-button-renderer"},superVodSelectableItemButtonRenderer:{component:"ytd-pdg-super-vod-selectable-item-button-renderer"}}},"data.colorSlider":{id:"slider",mapping:{pdgColorSliderRenderer:{component:"ytd-pdg-color-slider-renderer",
properties:{immediateValue:"[[selectedItemIndex]]"}}}}}};
_.P.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var A;var L=(A=_.q(this.data.colorSlider,bO7))==null?void 0:A.notches[this.selectedItemIndex].purchaseCommand}else{var O;L=(O=_.q(this.data.selectableItemButtons[this.selectedItemIndex],qRB))==null?void 0:O.purchaseCommand}if(L){A=_.q(L,_.J3c);A.productData||(A.productData={});var X;A.productData={pdgData:{commentMessageText:(X=this.commentPreviewRenderer)==null?void 0:X.getUserGeneratedCommentText()}};
_.P4(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(L)}}};
_.P.dataChanged=function(){if(this.data){_.k5.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.W3n(_.k5,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.k5.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var A;this.buyButtonDisabled=!((A=_.q(this.data.commentPreview,SRJ))==null||!A.placeholderText);this.updatePriceSelectorStatus();var L;if((L=this.data)==null?0:L.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;A=[];this.data.preloadImages&&(A=this.data.preloadImages);
A=A.map(function(O){return _.uB(O.thumbnails,1920)});
A=_.d(A);for(L=A.next();!L.done;L=A.next())(L=L.value)&&_.MWu(L).thenCatch(function(){_.Rv(Error("ml"))})}};
_.P.superThanksSelectedTierEntityChanged=function(){var A;(this==null?void 0:(A=this.superThanksSelectedTierEntity)==null?void 0:A.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.P.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.P.updatePriceSelectorStatus=function(){this.isColorSlider?(_.YJ(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.YJ(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.YJ(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.YJ(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.P.closeBuyFlow=function(){_.dQ(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.P.onUserGeneratedContentChanged=function(){var A;this.buyButtonDisabled=!((A=this.commentPreviewRenderer)==null?0:A.getUserGeneratedCommentText())};
_.P.updateSelectedItemIndexFromBinding=function(A){this.selectedItemIndex=A.detail.value};
_.v2.Object.defineProperties(K8.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var A;return!((A=this.data)==null||!A.disclaimerText)}}});
K8.prototype.onUserGeneratedContentChanged=K8.prototype.onUserGeneratedContentChanged;K8.prototype.closeBuyFlow=K8.prototype.closeBuyFlow;K8.prototype.selectedItemIndexChanged=K8.prototype.selectedItemIndexChanged;K8.prototype.superThanksSelectedTierEntityChanged=K8.prototype.superThanksSelectedTierEntityChanged;K8.prototype.dataChanged=K8.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],K8.prototype,"ytRendererBehavior",void 0);
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],K8.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],K8.prototype,"ytComponentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],K8.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],K8.prototype,"selectedItemIndex",void 0);_.I([_.K(),_.Z("design:type",Boolean)],K8.prototype,"isColorSlider",void 0);
_.I([_.K(),_.Z("design:type",Object)],K8.prototype,"buyButtonDisabled",void 0);_.I([_.K({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:C3B}),_.Z("design:type",Object)],K8.prototype,"superThanksSelectedTierEntity",void 0);_.I([_.qR("ytd-pdg-comment-preview-renderer"),_.Z("design:type",Object)],K8.prototype,"commentPreviewRenderer",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],K8.prototype,"ytdReduxBehavior",void 0);
_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],K8.prototype,"dataChanged",null);_.I([_.hT("superThanksSelectedTierEntity"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],K8.prototype,"superThanksSelectedTierEntityChanged",null);_.I([_.hT("selectedItemIndex"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],K8.prototype,"selectedItemIndexChanged",null);
_.I([_.by("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],K8.prototype,"closeBuyFlow",null);_.I([_.by("ytd-pdg-user-generated-comment-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],K8.prototype,"onUserGeneratedContentChanged",null);_.I([_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],K8.prototype,"isDisclaimerTextShown",null);
_.I([_.Q({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],K8);
_.m(K8,"yt-super-vod-buy-flow-content-renderer",function(){if(scM!==void 0)return scM;var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return scM=A},{mode:1});var u3J;var Gb=function(){var A=_.G.apply(this,arguments)||this;A.lottieAnimationRef={};return A};
_.g(Gb,_.G);_.P=Gb.prototype;_.P.created=function(){_.ah.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.tT(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.P.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.P4(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.P.detached=function(){this.autoCloseJobId&&_.c1.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.tT(this,this.onPopupIronOverlayOpened))};
_.P.dataChanged=function(){var A=this;this.data&&this.data.autoCloseDelay&&(_.dQ(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.et(_.c1,function(){A.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.eq(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.P.onDOMLoadedLottie=function(){var A=this,L,O,X=Number((L=this.data)==null?void 0:(O=L.autoCloseDelay)==null?void 0:O.seconds)||0;this.fadeOutJobId=_.et(_.c1,function(){A.lottiePlayerEl.classList.add("fadeout")},(X-.25)*1E3);
this.autoCloseJobId=_.et(_.c1,function(){A.closePopup()},X*1E3)};
_.P.openPopup=function(){this.ironOverlayBehavior.open()};
_.P.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.dQ(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.VN(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.X5().resolve(_.x$).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.c1.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.c1.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.P.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var A,L;(A=this.lottieAnimationRef)==null||(L=A.lottieEl)==null||L.destroy();A=this.data.lottie;var O,X;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:A.url+"_"+Math.random(),path:A.url,autoplay:!0,loop:(X=(O=A.settings)==null?void 0:O.loop)!=null?X:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.v2.Object.defineProperties(Gb.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var A,L;return!!((A=this.data)==null?0:(L=A.lottie)==null?0:L.url)}}});
Gb.prototype.maybeInitializeLottie=Gb.prototype.maybeInitializeLottie;Gb.prototype.dataChanged=Gb.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Gb.prototype,"rendererBehavior",void 0);_.I([_.N(_.AB),_.Z("design:type",Object)],Gb.prototype,"ironOverlayBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Gb.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],Gb.prototype,"lottiePlayerProps",void 0);
_.I([_.K(),_.Z("design:type",Object)],Gb.prototype,"lottieAnimationRef",void 0);_.I([_.qR("ytd-lottie-player"),_.Z("design:type",HTMLElement)],Gb.prototype,"lottiePlayerEl",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Gb.prototype,"dataChanged",null);_.I([_.r("data"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Gb.prototype,"hasLottieAnimation",null);
_.I([_.hT("data.lottie.url"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Gb.prototype,"maybeInitializeLottie",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],Gb);
_.m(Gb,"ytd-desktop-image-overlay-renderer",function(){if(u3J!==void 0)return u3J;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return u3J=A},{mode:1});var TsJ;var lw=function(){return _.G.apply(this,arguments)||this};
_.g(lw,_.G);_.P=lw.prototype;_.P.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{pdgBuyFlowHeaderRenderer:{component:"yt-pdg-buy-flow-header-renderer"}}},"data.content":{id:"content",mapping:{superVodBuyFlowContentRenderer:{component:"yt-super-vod-buy-flow-content-renderer"}}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("tabIndex")||this.hostElement.setAttribute("tabIndex","0");this.hostElement.addEventListener("yt-popup-closed",_.tT(this,this.closePopup))};
_.P.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.tT(this,this.closePopup))};
_.P.dataChanged=function(){_.YK(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.q(this.data.header,tsS)&&(this.hasBackgroundBanner=!!_.q(this.data.header,tsS).backgroundBanner)};
_.P.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.tT(this,this.closePopup))};
_.P.closePopup=function(){this.data&&this.data.onCloseCommand&&_.TZ(this.hostElement,[this.data.onCloseCommand])};
lw.prototype.handleBuyflowSelectionSubmitted=lw.prototype.handleBuyflowSelectionSubmitted;lw.prototype.dataChanged=lw.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],lw.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],lw.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],lw.prototype,"data",void 0);
_.I([_.K({value:!0,reflectToAttribute:!0}),_.Z("design:type",Boolean)],lw.prototype,"hasBackgroundBanner",void 0);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],lw.prototype,"dataChanged",null);_.I([_.by("yt-pdg-buy-flow-selection-submitted"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],lw.prototype,"handleBuyflowSelectionSubmitted",null);
_.I([_.Q({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],lw);
_.m(lw,"ytd-pdg-buy-flow-renderer",function(){if(TsJ!==void 0)return TsJ;var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return TsJ=A},{mode:1});var VjJ;var cs=function(){var A=_.G.apply(this,arguments)||this;A.isOpen=!1;A.isPlaylistCreated=!1;return A};
_.g(cs,_.G);_.P=cs.prototype;_.P.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.P.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.P4(this.hostElement,"yt-refit")};
_.P.onCreateTap=function(){var A=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.TZ(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(L,O){if(!_.h("killswitch_ep_in_create_playlist_response")&&(O==null?0:O.actions))for(L=_.d(O.actions),O=L.next();!O.done;O=L.next())O=O.value,_.q(O,_.II)&&A.ytComponentBehavior.resolveCommand(O)}}]),this.isPlaylistCreated=!0)};
_.P.onKeydown=function(A){if(A.keyCode===13)this.onCreateTap()};
_.P.onServiceRequestCompleted=function(A){A.stopPropagation();_.dQ(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.P.computePrivacyBadge=function(A){return A?[{metadataBadgeRenderer:A}]:[]};
cs.prototype.onServiceRequestCompleted=cs.prototype.onServiceRequestCompleted;cs.prototype.onKeydown=cs.prototype.onKeydown;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],cs.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],cs.prototype,"ytComponentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],cs.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],cs.prototype,"isOpen",void 0);
_.I([_.K(),_.Z("design:type",Object)],cs.prototype,"isPlaylistCreated",void 0);_.I([_.K({value:{REQUIRED_LABEL:_.b3("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.b3("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.Z("design:type",Object)],cs.prototype,"addToStrings",void 0);_.I([_.K({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.Z("design:type",Array)],cs.prototype,"privacyBadge",void 0);
_.I([_.qR("#privacy-input"),_.Z("design:type",Object)],cs.prototype,"privacyInput",void 0);_.I([_.qR("#name-input"),_.Z("design:type",Object)],cs.prototype,"nameInput",void 0);_.I([_.by("keydown"),_.Z("design:type",Function),_.Z("design:paramtypes",[KeyboardEvent]),_.Z("design:returntype")],cs.prototype,"onKeydown",null);_.I([_.by("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],cs.prototype,"onServiceRequestCompleted",null);
_.I([_.Q({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],cs);
_.m(cs,"ytd-add-to-playlist-create-renderer",function(){if(VjJ!==void 0)return VjJ;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return VjJ=A},{mode:1});var DWn;var eHM;var C8=function(){var A=_.G.apply(this,arguments)||this;A.transferState="TRANSFER_STATE_UNKNOWN";return A};
_.g(C8,_.G);C8.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
C8.prototype.onCheckboxChange=function(A){var L=this;this.data&&_.$J(this,"yt-playlist-checkbox-changed",function(){var O=_.AT(A).checked?L.data.addToPlaylistServiceEndpoint:L.data.removeFromPlaylistServiceEndpoint;O&&_.X5().resolve(_.x$).resolveCommand(O,{form:{element:L.hostElement}});_.h("dl_playlist_killswitch")||L.transferState!=="TRANSFER_STATE_UNKNOWN"&&L.transferState!=="TRANSFER_STATE_FAILED"&&L.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:L.data.playlistId,action:"ACTION_SYNC"}})},
100)};
C8.prototype.computeIconType=function(A){return A?"yt-icons:"+A.toLowerCase():null};
C8.prototype.dataChanged=C8.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],C8.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],C8.prototype,"data",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],C8.prototype,"ytdReduxBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],C8.prototype,"ytComponentBehavior",void 0);_.I([_.qR("#checkbox"),_.Z("design:type",HTMLInputElement)],C8.prototype,"checkbox",void 0);
_.I([_.K({selector:_.Zn,selectorArgs:["data.playlistId"]}),_.Z("design:type",String)],C8.prototype,"transferState",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],C8.prototype,"dataChanged",null);_.I([_.Q({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],C8);
_.m(C8,"ytd-playlist-add-to-option-renderer",function(){if(eHM!==void 0)return eHM;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return eHM=A},{mode:1});_.Xh(RkX);_.tF(RkX,"ytd-menu-title-renderer",{propNames:["data"]});var Fa=function(){var A=_.G.apply(this,arguments)||this;A.addToStrings={ADD_TO_DROPDOWN_LABEL:_.b3("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};A.closeButtonAriaLabel=_.b3("SBOX_INAPPROPRIATE_CANCEL");A.dialog=_.h("desktop_add_to_playlist_renderer_dialog_popup");return A};
_.g(Fa,_.G);_.P=Fa.prototype;_.P.configureRendererStamper=function(){return{"data.playlists":{id:"playlists",mapping:{playlistAddToOptionRenderer:"ytd-playlist-add-to-option-renderer"}},"data.actions":{id:"actions",mapping:{addToPlaylistCreateRenderer:"ytd-add-to-playlist-create-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.P.onPopupOpened=function(){_.TK(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.P.onPopupClosed=function(){_.TK(this.playlists,"scrollable",!1)};
_.P.computeAriaLabel=function(){var A;if(this==null?0:(A=this.data)==null?0:A.actions){A=_.d(this.data.actions);for(var L=A.next();!L.done;L=A.next())if(L=L.value,L.menuTitleRenderer)return _.vG(L.menuTitleRenderer.title)}};
_.P.onTapClose=function(){_.dQ(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.v2.Object.defineProperties(Fa.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var A;if(this==null?0:(A=this.data)==null?0:A.actions){A=_.d(this.data.actions);for(var L=A.next();!L.done;L=A.next())if(L=L.value,L.menuTitleRenderer)return L.menuTitleRenderer}return!1}}});
Fa.prototype.onPopupClosed=Fa.prototype.onPopupClosed;Fa.prototype.onPopupOpened=Fa.prototype.onPopupOpened;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Fa.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.KP.YtEventForwardingBehavior),_.Z("design:type",Object)],Fa.prototype,"ytEventForwardingBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Fa.prototype,"ytRendererStamperBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],Fa.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],Fa.prototype,"addToStrings",void 0);_.I([_.K({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.Z("design:type",String)],Fa.prototype,"ariaLabel",void 0);_.I([_.K(),_.Z("design:type",String)],Fa.prototype,"closeButtonAriaLabel",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Fa.prototype,"dialog",void 0);
_.I([_.qR("#playlists"),_.Z("design:type",HTMLElement)],Fa.prototype,"playlists",void 0);_.I([_.qR("ytd-add-to-playlist-create-renderer"),_.Z("design:type",Object)],Fa.prototype,"createRenderer",void 0);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Fa.prototype,"menuTitleRenderer",null);_.I([_.by("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Fa.prototype,"onPopupOpened",null);
_.I([_.by("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Fa.prototype,"onPopupClosed",null);_.I([_.Q({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],Fa);
_.m(Fa,"ytd-add-to-playlist-renderer",function(){if(DWn!==void 0)return DWn;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return DWn=A},{mode:1});var EU$;var RT=function(){var A=_.G.apply(this,arguments)||this;A.isPlaylistEditComplete=!1;A.isCollabEngagementDisabled=!1;A.closeButtonAriaLabel=_.b3("SBOX_INAPPROPRIATE_CANCEL");A.saveButton={title:_.b3("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"};A.onValueChanged=function(){A.updateSaveButtonState();A.computeCollabEngagementDisabled()};
return A};
_.g(RT,_.G);_.P=RT.prototype;_.P.attached=function(){this.JSC$21468_scroller&&(this.JSC$21468_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21468_scroller.attached&&typeof this.JSC$21468_scroller.attached==="function"&&this.JSC$21468_scroller.attached())};
_.P.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.P.onPopupClosed=function(){this.reset()};
_.P.close=function(){_.dQ(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.P.onClickSave=function(){var A=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var L=[];this.nameInput.value!==null&&L.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&L.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var O=Number(this.privacyInput.value);isNaN(O)||L.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:O})}this.votingInput.value!==null&&(O=this.votingInput.value)&&L.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:O});if(L.length>0){var X;_.q((X=this.data)==null?void 0:X.updateSettingsEndpoint,_.zF).actions=L;var x;if((x=this.data)==null?0:x.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){A.close()}}}),this.isPlaylistEditComplete=!0}}};
_.P.computePrivacyBadge=function(A){return A?[{metadataBadgeRenderer:A}]:[]};
_.P.computeEditorData=function(A){var L,O;return A==null?void 0:(L=A.sections)==null?void 0:(O=L[0])==null?void 0:O.playlistSettingsEditorCasualSectionRenderer};
_.P.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.P.configureRendererStamper=function(){return{"editorData.thumbnail":{id:"thumbnail",mapping:{playlistVideoThumbnailRenderer:{component:"ytd-playlist-video-thumbnail-renderer",params:{width:9999}},playlistCustomThumbnailRenderer:{component:"ytd-playlist-custom-thumbnail-renderer",params:{size:312}}}}}};
_.P.computeAriaLabel=function(){var A,L,O,X=(A=this.data)==null?void 0:(L=A.sections)==null?void 0:(O=L[0])==null?void 0:O.playlistSettingsEditorCasualSectionRenderer;return _.vG(X==null?void 0:X.title)};
_.P.updateSaveButtonState=function(){this.isFormChanged()&&this.isFormValid()?this.set("saveButton",Object.assign({},this.saveButton,{state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"})):this.set("saveButton",Object.assign({},this.saveButton,{state:"BUTTON_VIEW_MODEL_STATE_DISABLED"}))};
_.P.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.P.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.P.isNameChanged=function(){var A,L,O;return(((A=this.editorData)==null?void 0:(L=A.name)==null?void 0:(O=L.textInputFormFieldRenderer)==null?void 0:O.value)||"")!==(this.nameInput.value||"")};
_.P.isDescriptionChanged=function(){var A,L,O;return(((A=this.editorData)==null?void 0:(L=A.description)==null?void 0:(O=L.textInputFormFieldRenderer)==null?void 0:O.value)||"")!==(this.descriptionInput.value||"")};
_.P.isPrivacyChanged=function(){var A,L,O,X,x,J,Y,T;return((Y=(A=this.editorData)==null?void 0:(L=A.privacy)==null?void 0:(O=L.dropdownFormFieldRenderer)==null?void 0:(X=O.dropdown)==null?void 0:(x=X.dropdownRenderer)==null?void 0:(J=x.entries)==null?void 0:J.find(function(V){var E;return V==null?void 0:(E=V.privacyDropdownItemRenderer)==null?void 0:E.isSelected}))==null?void 0:(T=Y.privacyDropdownItemRenderer)==null?void 0:T.int32Value)!==this.privacyInput.value};
_.P.isVotingChanged=function(){var A,L,O,X,x,J,Y,T;return((Y=(A=this.editorData)==null?void 0:(L=A.voting)==null?void 0:(O=L.dropdownFormFieldRenderer)==null?void 0:(X=O.dropdown)==null?void 0:(x=X.dropdownRenderer)==null?void 0:(J=x.entries)==null?void 0:J.find(function(V){var E;return V==null?void 0:(E=V.privacyDropdownItemRenderer)==null?void 0:E.isSelected}))==null?void 0:(T=Y.privacyDropdownItemRenderer)==null?void 0:T.int32Value)!==this.votingInput.value};
RT.prototype.onPopupClosed=RT.prototype.onPopupClosed;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],RT.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],RT.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.KP.YtEventForwardingBehavior),_.Z("design:type",Object)],RT.prototype,"ytEventForwardingBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],RT.prototype,"ytRendererStamperBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],RT.prototype,"data",void 0);_.I([_.K({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.Z("design:type",Array)],RT.prototype,"privacyBadge",void 0);_.I([_.K({computed:"computeEditorData(data)"}),_.Z("design:type",Object)],RT.prototype,"editorData",void 0);_.I([_.K(),_.Z("design:type",Object)],RT.prototype,"isPlaylistEditComplete",void 0);_.I([_.K(),_.Z("design:type",Object)],RT.prototype,"isCollabEngagementDisabled",void 0);
_.I([_.K({value:{REQUIRED_LABEL:_.b3("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.b3("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.Z("design:type",Object)],RT.prototype,"addToStrings",void 0);_.I([_.K({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.Z("design:type",String)],RT.prototype,"ariaLabel",void 0);_.I([_.K(),_.Z("design:type",String)],RT.prototype,"closeButtonAriaLabel",void 0);
_.I([_.K(),_.Z("design:type",Object)],RT.prototype,"saveButton",void 0);_.I([_.qR("#name-input"),_.Z("design:type",Object)],RT.prototype,"nameInput",void 0);_.I([_.qR("#description-input"),_.Z("design:type",Object)],RT.prototype,"descriptionInput",void 0);_.I([_.qR("#privacy-input"),_.Z("design:type",Object)],RT.prototype,"privacyInput",void 0);_.I([_.qR("#voting-input"),_.Z("design:type",Object)],RT.prototype,"votingInput",void 0);
_.I([_.qR("#scroller"),_.Z("design:type",Object)],RT.prototype,"JSC$21468_scroller",void 0);_.I([_.by("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],RT.prototype,"onPopupClosed",null);_.I([_.K(),_.Z("design:type",Object)],RT.prototype,"onValueChanged",void 0);_.I([_.Q({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],RT);
_.m(RT,"ytd-playlist-settings-editor-renderer",function(){if(EU$===void 0){var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);EU$=A}A=EU$;return A},{mode:1});var nUz;_.y3("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var Q1=function(){return _.G.apply(this,arguments)||this};
_.g(Q1,_.G);_.P=Q1.prototype;_.P.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-confirm":!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",classListBinding:"[[buttonClass_]]",attributes:{"dialog-dismiss":!0}}}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.dataChanged=function(){switch(this.get("data.singleOptions.preselectMode")){case "SINGLE_OPTION_PRESELECT_MODE_LAST":this.selectedResponseIndex=this.get("data.singleOptions.styles").length-1;break;default:this.selectedResponseIndex=void 0}var A=this.get("data.nextButton.buttonRenderer.navigationEndpoint");A&&(this.nextNavigationEndpoint=A,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.P.onSelectedResponseIndexChange=function(){if(this.get("data.nextButton.buttonRenderer")!=null){switch(this.get("data.submissionMode")){case "SURVEY_SUBMISSION_MODE_ONE_SELECTED_OPTION":this.set("data.nextButton.buttonRenderer.isDisabled",this.selectedResponseIndex===void 0);break;default:this.set("data.nextButton.buttonRenderer.isDisabled",!1)}if(this.selectedResponseIndex!=null){var A={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",A)}}};
_.P.onPopupOpened=function(A){A.detail!==this&&A.detail!==this.hostElement||!_.h("enable_premium_voluntary_pause")||_.dQ(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.P.onNextButtonTap=function(){var A=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);A&&this.ytdOpenPopupBehavior.openPopup(A)};
_.P.updateSelectedResponseIndexFromBinding=function(A){this.selectedResponseIndex=A.detail.value};
Q1.prototype.onPopupOpened=Q1.prototype.onPopupOpened;Q1.prototype.onSelectedResponseIndexChange=Q1.prototype.onSelectedResponseIndexChange;Q1.prototype.dataChanged=Q1.prototype.dataChanged;_.I([_.N(_.J3),_.Z("design:type",Object)],Q1.prototype,"ytdOpenPopupBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Q1.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Q1.prototype,"ytRendererstamperBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],Q1.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Number)],Q1.prototype,"selectedResponseIndex",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Q1.prototype,"dataChanged",null);_.I([_.hT("selectedResponseIndex"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Q1.prototype,"onSelectedResponseIndexChange",null);
_.I([_.by("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],Q1.prototype,"onPopupOpened",null);_.I([_.Q({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],Q1);
_.m(Q1,"ytd-red-cancel-survey-renderer",function(){if(nUz!==void 0)return nUz;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return nUz=A},{mode:1});var tjZ;var mH=function(){var A=_.G.apply(this,arguments)||this;A.closeButtonAriaLabel=_.b3("SBOX_INAPPROPRIATE_CANCEL");return A};
_.g(mH,_.G);mH.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
mH.prototype.onClickClose=function(){_.dQ(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],mH.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],mH.prototype,"rendererStamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],mH.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",String)],mH.prototype,"closeButtonAriaLabel",void 0);_.I([_.Q({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],mH);
_.m(mH,"ytd-search-filter-options-dialog-renderer",function(){if(tjZ!==void 0)return tjZ;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return tjZ=A},{mode:1});var bx$;var fXX=function(){return function(A){A=A.availabilityType;return A===void 0||A==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||A==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var f8=function(){var A=_.G.apply(this,arguments)||this;A.qualityOptions=[];A.upsellOptions=[];A.showUpsellSection=!1;A.darkerDarkTheme=_.h("web_darker_dark_theme");A.rememberSettingsChecked=!1;return A};
_.g(f8,_.G);_.P=f8.prototype;_.P.configureRendererStamper=function(){return{qualityOptions:{id:"quality-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}},upsellOptions:{id:"upsell-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.P.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.P.updateQualityOptions=function(){if(this.formats===void 0)_.dQ(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var A=[],L=[];this.showUpsellSection=!1;for(var O=_.d(this.formats),X=O.next();!X.done;X=O.next())(X=X.value)&&(X.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?L.push(X):A.push(X));A.length&&(this.qualityOptions=mbS(A));L.length&&(this.showUpsellSection=!0,this.upsellOptions=mbS(L))}};
_.P.updateRememberString=function(){if(this.downloadQualityPickerEntity)var A=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var L;A=(L=this.data)==null?void 0:L.premiumRememberSettingString}else{var O;A=(O=this.data)==null?void 0:O.rememberSettingString}A=A===void 0?_.b3("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):A;this.rememberSettingsCheckboxRenderer={title:_.Xl(A),disabled:!1}};
_.P.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.v2.Object.defineProperties(f8.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var A;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(A=this.data)==null?void 0:A.qualityFormats}}});
f8.prototype.updateRememberString=f8.prototype.updateRememberString;f8.prototype.updateQualityOptions=f8.prototype.updateQualityOptions;f8.prototype.dataChanged=f8.prototype.dataChanged;_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],f8.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],f8.prototype,"ytComponentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],f8.prototype,"data",void 0);
_.I([_.N(_.HL),_.Z("design:type",Object)],f8.prototype,"ytdReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Boolean)],f8.prototype,"selectedUpsellQuality",void 0);_.I([_.K({computed:"computeIcon_(data.premiumIcon)",value:""}),_.Z("design:type",String)],f8.prototype,"premiumIcon",void 0);_.I([_.K({selector:KU7,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.Z("design:type",Object)],f8.prototype,"downloadQualityPickerEntity",void 0);
_.I([_.K(),_.Z("design:type",Array)],f8.prototype,"qualityOptions",void 0);_.I([_.K(),_.Z("design:type",Array)],f8.prototype,"upsellOptions",void 0);_.I([_.K(),_.Z("design:type",Object)],f8.prototype,"showUpsellSection",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],f8.prototype,"darkerDarkTheme",void 0);_.I([_.K(),_.Z("design:type",Object)],f8.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.I([_.qR("#remember-settings"),_.Z("design:type",HTMLInputElement)],f8.prototype,"rememberSettingsCheckbox",void 0);_.I([_.K(),_.Z("design:type",Object)],f8.prototype,"rememberSettingsChecked",void 0);_.I([_.K(),_.Z("design:type",Function)],f8.prototype,"onRememberSettingsCheckedChanged",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],f8.prototype,"dataChanged",null);
_.I([_.hT("downloadQualityPickerEntity"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],f8.prototype,"updateQualityOptions",null);_.I([_.hT("selectedUpsellQuality"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],f8.prototype,"updateRememberString",null);_.I([_.Q({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],f8);
_.m(f8,"ytd-download-quality-selector-content",function(){if(bx$!==void 0)return bx$;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return bx$=A},{mode:1});var hH$;var IT=function(){var A=_.G.apply(this,arguments)||this;A.selectedUpsellQuality=!1;A.qualityOptions=[];A.darkerDarkTheme=_.h("web_darker_dark_theme");A.useUpsellDismissAlternate=_.h("use_not_now_dl_upsell_dismiss_cta");A.shouldShowAlternateUpsellDimiss=!1;A.rememberSettings=!1;A.rememberSettingsChecked=!1;A.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};A.rememberSettingsCheckedChanged=function(L){A.rememberSettingsChecked=L};
return A};
_.g(IT,_.G);_.P=IT.prototype;
_.P.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Xl(_.b3("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Xl(_.b3("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Xl(_.b3("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Xl(_.b3("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.P.updateQualityOptions=function(){this.formats===void 0?_.dQ(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=mbS(this.formats)};
_.P.onQualityOptionsSelect=function(A){if(this.qualityOptions&&A){A!==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 L=_.d(this.qualityOptions.entries()),O=L.next();!O.done;O=
L.next()){O=_.d(O.value);var X=O.next().value;O=O.next().value;var x=void 0,J=void 0;if(((x=O)==null?void 0:(J=x.settingsRadioOptionRenderer)==null?void 0:J.id)===A){this.selectedQualityIndex=X;A=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((A=this.formats[X])==null?void 0:A.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.P.onClickSubmit=function(){var A;if((A=this.downloadButtonRenderer)==null||!A.isDisabled){var L,O;A=(O=(L=this.data)==null?void 0:L.onSubmitEndpoint)!=null?O:{};var X,x;if(this.formats&&(((X=_.q(A,_.g0))==null?0:X.videoId)||((x=_.q(A,_.w0))==null?0:x.playlistId))){var J,Y,T,V,E,n;L={formatType:(V=(J=this.formats)==null?void 0:(Y=J[(T=this.selectedQualityIndex)!=null?T:0])==null?void 0:Y.format)!=null?V:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(E=this.getOfflineEndpoint(A))==null?void 0:(n=E.actionParams)==null?void 0:n.settingsAction)};this.getOfflineEndpoint(A).actionParams=L;this.ytComponentBehavior.resolveCommand(A)}_.dQ(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.P.onClickUpsell=function(){var A;if((A=this.upsellButtonRenderer)==null||!A.isDisabled){var L,O;A=(O=(L=this.data)==null?void 0:L.upsellEndpoint)!=null?O:{};this.ytComponentBehavior.resolveCommand(A);_.dQ(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);L="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var X,x,J,Y;L=(Y=(X=this.formats)==null?void 0:(x=X[(J=this.selectedQualityIndex)!=null?J:0])==null?void 0:x.format)!=null?Y:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:L}})}};
_.P.onClickClose=function(){_.dQ(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.P.getOfflineSettingsAction=function(A,L){return A?L===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":L:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.P.getOfflineEndpoint=function(A){return _.q(A,_.g0)?_.q(A,_.g0):_.q(A,_.w0)};
_.v2.Object.defineProperties(IT.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.Xl(_.b3("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var A;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(A=this.data)==null?void 0:A.qualityFormats}}});
IT.prototype.updateQualityOptions=IT.prototype.updateQualityOptions;IT.prototype.dataChanged=IT.prototype.dataChanged;_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],IT.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],IT.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],IT.prototype,"ytRendererBehavior",void 0);
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],IT.prototype,"ytActionHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],IT.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Number)],IT.prototype,"selectedQualityIndex",void 0);_.I([_.K(),_.Z("design:type",Object)],IT.prototype,"selectedUpsellQuality",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],IT.prototype,"ytdReduxBehavior",void 0);
_.I([_.K({selector:KU7,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.Z("design:type",Object)],IT.prototype,"downloadQualityPickerEntity",void 0);_.I([_.K(),_.Z("design:type",Array)],IT.prototype,"qualityOptions",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],IT.prototype,"darkerDarkTheme",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],IT.prototype,"useUpsellDismissAlternate",void 0);
_.I([_.K(),_.Z("design:type",Object)],IT.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.I([_.K(),_.Z("design:type",Object)],IT.prototype,"downloadButtonRenderer",void 0);_.I([_.K(),_.Z("design:type",Object)],IT.prototype,"upsellButtonRenderer",void 0);_.I([_.K(),_.Z("design:type",Object)],IT.prototype,"cancelButtonRenderer",void 0);_.I([_.K(),_.Z("design:type",Object)],IT.prototype,"upsellCancelButtonRenderer",void 0);_.I([_.K(),_.Z("design:type",Object)],IT.prototype,"rememberSettings",void 0);
_.I([_.K(),_.Z("design:type",Object)],IT.prototype,"rememberSettingsChecked",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],IT.prototype,"dataChanged",null);_.I([_.hT("downloadQualityPickerEntity"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],IT.prototype,"updateQualityOptions",null);_.I([_.Q({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],IT);
_.m(IT,"ytd-download-quality-selector-renderer",function(){if(hH$!==void 0)return hH$;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return hH$=A},{mode:1});var SlS;var y1=function(){var A=_.G.apply(this,arguments)||this;A.darkerDarkTheme=_.h("web_darker_dark_theme");return A};
_.g(y1,_.G);y1.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
y1.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"}}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],y1.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],y1.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],y1.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],y1.prototype,"darkerDarkTheme",void 0);_.I([_.K({computed:"computeIcon_(data.infoIcon)"}),_.Z("design:type",Object)],y1.prototype,"infoIcon",void 0);
_.I([_.K({computed:"computeIcon_(data.warningIcon)"}),_.Z("design:type",Object)],y1.prototype,"warningIcon",void 0);_.I([_.Q({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],y1);
_.m(y1,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(SlS!==void 0)return SlS;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return SlS=A},{mode:1});var qlM;var Zw=function(){var A=_.G.apply(this,arguments)||this;A.darkerDarkTheme=_.h("web_darker_dark_theme");return A};
_.g(Zw,_.G);Zw.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Zw.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"}}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Zw.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Zw.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Zw.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Zw.prototype,"darkerDarkTheme",void 0);_.I([_.Q({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],Zw);
_.m(Zw,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(qlM!==void 0)return qlM;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return qlM=A},{mode:1});var gUB;var jn=function(){var A=_.G.apply(this,arguments)||this;A.darkerDarkTheme=_.h("web_darker_dark_theme");return A};
_.g(jn,_.G);jn.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
jn.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"}}}}};
jn.prototype.onServiceRequestSentOrCompleted=function(A,L){L&&L.actions&&L.actions.length>0&&_.dQ(this.hostElement,"yt-close-popup-action",[this.is])};
jn.prototype.onServiceRequestSentOrCompleted=jn.prototype.onServiceRequestSentOrCompleted;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],jn.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],jn.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],jn.prototype,"darkerDarkTheme",void 0);_.I([_.K(),_.Z("design:type",Object)],jn.prototype,"data",void 0);
_.I([_.by("yt-service-request-completed"),_.by("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.Xi]),_.Z("design:returntype")],jn.prototype,"onServiceRequestSentOrCompleted",null);_.I([_.Q({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],jn);
_.m(jn,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(gUB!==void 0)return gUB;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return gUB=A},{mode:1});var w7B;var Ws=function(){var A=_.G.apply(this,arguments)||this;A.darkerDarkTheme=_.h("web_darker_dark_theme");A.submitButtonDisabled=!0;return A};
_.g(Ws,_.G);_.P=Ws.prototype;_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.P.onDataChanged=function(){var A,L,O;if(((A=this.data)==null?void 0:(L=A.confirmButton)==null?void 0:(O=L.buttonRenderer)==null?void 0:O.isDisabled)!==void 0){var X,x,J;this.submitButtonDisabled=(X=this.data)==null?void 0:(x=X.confirmButton)==null?void 0:(J=x.buttonRenderer)==null?void 0:J.isDisabled}};
_.P.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.P.updateSubmitButtonDisabledFromBinding=function(A){this.submitButtonDisabled=A.detail.value};
_.P.updateSubmitButtonDisabledFromConfirmCheckbox=function(A){this.submitButtonDisabled=!A.detail.value};
Ws.prototype.onDataChanged=Ws.prototype.onDataChanged;_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Ws.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Ws.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Ws.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Ws.prototype,"darkerDarkTheme",void 0);
_.I([_.K(),_.Z("design:type",Object)],Ws.prototype,"submitButtonDisabled",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ws.prototype,"onDataChanged",null);_.I([_.Q({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],Ws);
_.m(Ws,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(w7B!==void 0)return w7B;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return w7B=A},{mode:1});var p7X;var Hs=function(){return _.G.apply(this,arguments)||this};
_.g(Hs,_.G);_.v2.Object.defineProperties(Hs.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var A,L,O;return((A=this.data)==null?void 0:A.title)+" "+((L=this.data)==null?void 0:L.metadataPrimary)+" "+((O=this.data)==null?void 0:O.metadataSecondary)}}});
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Hs.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],Hs.prototype,"ytComponentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Hs.prototype,"data",void 0);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Hs.prototype,"ariaLabel",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],Hs);
_.m(Hs,"ytd-compact-product-list-item-renderer",function(){if(p7X!==void 0)return p7X;var A=document.createElement("template");_.p(A,'\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>');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return p7X=A},{mode:1});var ixB;var zb=function(){return _.G.apply(this,arguments)||this};
_.g(zb,_.G);zb.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]]"}}}}}};
_.v2.Object.defineProperties(zb.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],zb.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],zb.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],zb.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],zb.prototype,"data",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],zb);
_.m(zb,"ytd-compact-product-list-renderer",function(){if(ixB!==void 0)return ixB;var A=document.createElement("template");_.p(A,'\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>');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return ixB=A},{mode:1});var Nsn;var Bs=function(){var A=_.G.apply(this,arguments)||this;A.darkerDarkTheme=_.h("web_darker_dark_theme");return A};
_.g(Bs,_.G);_.P=Bs.prototype;_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.P.getBackgroundUrl=function(){var A=this.get("data.headerImage.thumbnails");return A?"url("+_.uB(A,this.hostElement.clientWidth)+")":""};
_.P.onDataChanged=function(){var A=this.getBackgroundUrl();A&&(this.header.style.backgroundImage=A);A=_.Fn();var L=_.Ch(),O=this.get("data.trackingParams");O&&L&&A&&_.W4(A,L,_.lV(O));A=_.d(this.hostElement.querySelectorAll("yt-img-shadow"));for(L=A.next();!L.done;L=A.next())L.value.onShow()};
_.P.onPopupClosed=function(A){_.AT(A).localName==="ytd-membership-post-cancel-renderer"&&_.dQ(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
Bs.prototype.onPopupClosed=Bs.prototype.onPopupClosed;Bs.prototype.onDataChanged=Bs.prototype.onDataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Bs.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Bs.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Bs.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Bs.prototype,"darkerDarkTheme",void 0);
_.I([_.qR("#header"),_.Z("design:type",HTMLDivElement)],Bs.prototype,"header",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Bs.prototype,"onDataChanged",null);_.I([_.by("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Bs.prototype,"onPopupClosed",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],Bs);
_.m(Bs,"ytd-membership-post-cancel-renderer",function(){if(Nsn!==void 0)return Nsn;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return Nsn=A},{mode:1});var rpJ;var MP=function(){var A=_.G.apply(this,arguments)||this;A.darkerDarkTheme=_.h("web_darker_dark_theme");return A};
_.g(MP,_.G);MP.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
MP.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],MP.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],MP.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],MP.prototype,"darkerDarkTheme",void 0);_.I([_.qR("ytd-feedback-survey-renderer"),_.Z("design:type",Object)],MP.prototype,"feedbackSurveyRenderer",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],MP);
_.m(MP,"ytd-sponsorship-confirm-cancel-content",function(){if(rpJ!==void 0)return rpJ;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return rpJ=A},{mode:1});var KXX;var $s=function(){var A=_.G.apply(this,arguments)||this;A.darkerDarkTheme=_.h("web_darker_dark_theme");A.maybeSubmitFeedback=function(){A.content&&A.content.maybeSubmitFeedback()};
return A};
_.g($s,_.G);_.P=$s.prototype;_.P.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.P.onYtPopupOpened=function(A,L){L===this&&this.data&&this.data.onOpenCommands&&_.VN(this.hostElement,this.data.onOpenCommands,this.hostElement);_.dQ(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.P.onYtPopupClosed=function(A,L){(L&&L.canceled===!0||L&&L.canceled===!1&&L.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.VN(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.P.onYtServiceRequestCompleted=function(){_.dQ(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.P.onYtServiceRequestError=function(A){_.JC(this.hostElement,A.detail.error.message)};
_.P.onDataChanged=function(){if(this.isAttached){var A=this.backgroundUrl;A&&(_.YJ(this.hostElement).querySelector("#header").style.backgroundImage=A)}};
_.v2.Object.defineProperties($s.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var A=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return A?"url("+_.uB(A,this.hostElement.clientWidth)+")":""}}});
$s.prototype.onDataChanged=$s.prototype.onDataChanged;$s.prototype.onYtServiceRequestError=$s.prototype.onYtServiceRequestError;$s.prototype.onYtServiceRequestCompleted=$s.prototype.onYtServiceRequestCompleted;$s.prototype.onYtPopupClosed=$s.prototype.onYtPopupClosed;$s.prototype.onYtPopupOpened=$s.prototype.onYtPopupOpened;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],$s.prototype,"ytRendererBehavior",void 0);
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],$s.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],$s.prototype,"data",void 0);_.I([_.K({value:function(){return _.b3("SBOX_INAPPROPRIATE_CANCEL")}}),
_.Z("design:type",String)],$s.prototype,"closeButtonAriaLabel",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],$s.prototype,"darkerDarkTheme",void 0);_.I([_.qR("#scrollable"),_.Z("design:type",Object)],$s.prototype,"scrollable",void 0);_.I([_.qR("ytd-sponsorship-confirm-cancel-content"),_.Z("design:type",Object)],$s.prototype,"content",void 0);
_.I([_.by("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],$s.prototype,"onYtPopupOpened",null);_.I([_.by("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],$s.prototype,"onYtPopupClosed",null);
_.I([_.by("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],$s.prototype,"onYtServiceRequestCompleted",null);_.I([_.by("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],$s.prototype,"onYtServiceRequestError",null);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],$s.prototype,"onDataChanged",null);
_.I([_.Q({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],$s);
_.m($s,"ytd-sponsorship-confirm-cancel-renderer",function(){if(KXX!==void 0)return KXX;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return KXX=A},{mode:_.e5("kevlar_poly_si_batch_j081")?1:2});var Gpn;var aT=function(){var A=_.G.apply(this,arguments)||this;A.darkerDarkTheme=_.h("web_darker_dark_theme");return A};
_.g(aT,_.G);aT.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],aT.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],aT.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],aT.prototype,"darkerDarkTheme",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],aT);
_.m(aT,"ytd-sponsorships-celebration-content",function(){if(Gpn!==void 0)return Gpn;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return Gpn=
A},{mode:1});var lsJ;var cpJ=_.AW(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),ks=function(){var A=_.G.apply(this,arguments)||this;A.scriptsAppended=!1;A.buttonOverrides={type:"tonal",style:"overlay-dark"};return A};
_.g(ks,_.G);_.P=ks.prototype;_.P.configureRendererStamper=function(){return{"data.header.sponsorshipsHeaderRenderer.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0},properties:{overrides:"[[buttonOverrides]]"},params:{forceModernIconButton:_.h("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.onDataChanged=function(){var A;(A=this.header)==null||A.style.setProperty("background-color",this.backgroundColor);if(A=this.headerImageUrl){var L;(L=this.header)==null||L.style.setProperty("background-image",A)}L=_.Fn(4);A=_.Ch(4);var O=this.get("data.trackingParams");if(O&&A&&L){var X=_.lV(O);_.W4(L,A,X);_.h("combine_ve_grafts")?_.iV().graftServerVe(O,A,4):_.W4(L,A,X)}L=_.d(this.hostElement.querySelectorAll("yt-img-shadow"));for(A=L.next();!A.done;A=L.next())A.value.onShow();if(L=this.get("data.gtmId"))_.y6(L,
_.ms("GL","")),this.setupConversionTracking()};
_.P.setupConversionTracking=function(){if(!this.scriptsAppended){var A=document.createElement("script");var L=_.$W(cpJ.join(""));_.kW(A,L);document.head.appendChild(A);A=document.createElement("noscript");A.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(A);this.scriptsAppended=!0}};
_.P.onPopupClosed=function(A){if(_.AT(A).localName==="ytd-sponsorships-celebration-renderer"){_.dQ(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var L;this.data&&((L=this.data)==null?0:L.dismissCommand)&&_.S5.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.v2.Object.defineProperties(ks.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var A=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.Hy(A)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var A=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return A?"url("+_.uB(A,this.hostElement.getBoundingClientRect().width)+")":""}}});
ks.prototype.onPopupClosed=ks.prototype.onPopupClosed;ks.prototype.onDataChanged=ks.prototype.onDataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],ks.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],ks.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],ks.prototype,"data",void 0);_.I([_.qR("#header"),_.Z("design:type",HTMLElement)],ks.prototype,"header",void 0);
_.I([_.K(),_.Z("design:type",Object)],ks.prototype,"scriptsAppended",void 0);_.I([_.K(),_.Z("design:type",Object)],ks.prototype,"buttonOverrides",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ks.prototype,"onDataChanged",null);_.I([_.by("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],ks.prototype,"onPopupClosed",null);
_.I([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],ks);
_.m(ks,"ytd-sponsorships-celebration-renderer",function(){if(lsJ!==void 0)return lsJ;var A=document.createElement("template");_.p(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="avatar-container" class="style-scope ytd-sponsorships-celebration-renderer">\n    <yt-img-shadow class="avatar style-scope ytd-sponsorships-celebration-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="title-container style-scope ytd-sponsorships-celebration-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<ytd-sponsorships-celebration-content data="[[data]]" class="style-scope ytd-sponsorships-celebration-renderer"></ytd-sponsorships-celebration-content>\n<div id="top-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n<div id="button-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return lsJ=A},{mode:1});var CYk;var U9=function(){var A=_.G.apply(this,arguments)||this;A.isToggleChecked=!1;return A};
_.g(U9,_.G);U9.prototype.onDataChanged=function(){var A;this.isToggleChecked=((A=this.data)==null?void 0:A.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
U9.prototype.close=function(){var A;((A=this.data)==null?0:A.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
U9.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var A,L=_.q((A=this.data)==null?void 0:A.switchButton,g5M);L&&(this.isToggleChecked&&L.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(L.switchOnInnertubeCommand),!this.isToggleChecked&&L.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(L.switchOffInnertubeCommand))};
U9.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
U9.prototype.onDataChanged=U9.prototype.onDataChanged;_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],U9.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],U9.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],U9.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],U9.prototype,"isToggleChecked",void 0);_.I([_.K({value:_.b3("CLOSE")}),_.Z("design:type",String)],U9.prototype,"closeButtonAriaLabel",void 0);
_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],U9.prototype,"onDataChanged",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],U9);
_.m(U9,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(CYk!==void 0)return CYk;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return CYk=A},{mode:1});var FXX;var vs=function(){return _.G.apply(this,arguments)||this};
_.g(vs,_.G);_.P=vs.prototype;_.P.configureRendererStamper=function(){return{"data.header.sponsorshipsHeaderRenderer.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.header.sponsorshipsHeaderRenderer.menuButton":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.alert":{id:"alert-renderer",mapping:{sponsorshipsAlertRenderer:{component:"ytd-sponsorships-alert-renderer"}}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.detached=function(){this.playerElement.stop()};
_.P.onYtServiceRequestCompleted=function(){_.dQ(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.P.onYtServiceRequestError=function(A){_.JC(this.hostElement,A.detail.error.message)};
_.P.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.P.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.P.getTier=function(A,L){return!A||!A.tiers||L<0?null:_.q(A.tiers[L],NjJ)};
_.P.moreThanOne=function(A){return!!(A&&A.length>1)};
_.P.tierOverviewTap=function(A){var L=this;this.selectedTier=A.model.index;_.kd(this,function(){_.P4(L.hostElement,"yt-refit")})};
_.P.computeSelectedClass=function(A,L){return this.isSelected(A,L)?"selected":""};
_.P.computeButtonAriaPressed=function(A,L){return this.isSelected(A,L)?"true":"false"};
_.P.isSelected=function(A,L){return A===L};
_.P.onDataChanged=function(){_.YJ(this.hostElement).querySelector("#header-overlay").style.visibility="";_.YJ(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 A=_.d(this.hostElement.querySelectorAll("yt-img-shadow")),
L=A.next();!L.done;L=A.next())L.value.onShow();var O;this.set("selectedTier",(O=this.get("data.targetTierIndex"))!=null?O:0);var X;(A=(X=this.data)==null?void 0:X.onVisible)&&this.ytComponentBehavior.resolveCommand(A)};
_.P.initializeVe=function(A){var L=_.Fn(),O=_.Ch(),X=this.get("data.trackingParams");O&&L&&(this.screenLayer=4,L=_.j6(_.npe)(void 0,69877,{clientScreenNonce:L,visualElement:O},void 0,void 0,void 0),_.Qq(L,69877,4),O=_.Ch(4),X&&O&&(X=_.lV(X),_.W4(L,O,X),A&&(this.offerVideoVe=_.tI(74659),_.W4(L,X,this.offerVideoVe))))};
_.P.setHeaderBackground=function(){var A=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.YJ(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.Hy(A);if(A=this.getHeaderImage())A=_.uB(A,screen.width),_.YJ(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+A+")"};
_.P.getHeaderImage=function(){var A=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&A?A:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.P.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.P.setupVideoPlayer=function(A){var L=this,O,X,x,J;return _.u(function(Y){if(Y.nextAddress==1)return O=L.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),X=L.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.h("kevlar_player_update_killswitch")?L.playerElement.update({args:{autoplay:O,video_id:A,player_params:X}}):L.playerElement.loadVideoWithPlayerVars({autoplay:O,video_id:A,player_params:X}),
Y.yield(L.playerElement.getPlayerPromise(),2);x=Y.yieldResult;x.addEventListener("onStateChange",function(T){L.onPlayerStateChange(T)});
x.setScreenLayer(L.screenLayer);(J=_.Fn(4))&&L.offerVideoVe&&_.zZ(J,L.offerVideoVe);O&&(L.pauseOtherPlayers(),L.playerElement.focusOnPlayer(),L.playerElement.getPlayer().hideControls(),_.p7(_.c1,function(){L.fadeOutHeaderOverlay()},4E3));
_.qo(Y)})};
_.P.onPlayerStateChange=function(A){A===1?this.backgroundPlayerElement&&(A=this.backgroundPlayerElement.player_.getPlayerState(),A!==1&&A!==3||this.backgroundPlayerElement.pause()):A===0&&(_.YJ(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.YJ(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.P.fadeOutHeaderOverlay=function(){_.YJ(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.P.onHeaderTap=function(){if(this.offerVideo){_.YJ(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var A;((A=this.playerElement.player_)==null?void 0:A.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(A=_.Fn(4))&&this.offerVideoVe&&_.$K(A,this.offerVideoVe)}};
_.P.getBackgroundImageLayerClass=function(A){return A?"background-image-layer-with-video":""};
_.P.getHeaderClass=function(A){return A?"header-with-video":""};
_.P.getHeaderOverlayClass=function(A){return A?"header-overlay-with-video":""};
_.P.getTitleContainerClass=function(A,L){return A?"title-container-with-video":L?"title-container-without-video-flexible":"title-container-without-video"};
_.P.tierTitleDisplayStatus=function(A){return this.moreThanOne(A)?"hide":"show"};
_.P.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.X5().resolve(_.z_).getPlayerElement():this.backgroundPlayerElement=_.d0();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var A=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=A===1||A===3;this.backgroundPlayerElement.pause()}};
_.P.isMiniplayerActive=function(){return _.X5().resolve(_.z_).isMiniplayerActive()};
_.P.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.A3("selected-tier-changed",this.selectedTier))};
vs.prototype.selectedTierChangedForBinding=vs.prototype.selectedTierChangedForBinding;vs.prototype.onDataChanged=vs.prototype.onDataChanged;vs.prototype.onYtPopupClosed=vs.prototype.onYtPopupClosed;vs.prototype.onYtPopupOpened=vs.prototype.onYtPopupOpened;vs.prototype.onYtServiceRequestError=vs.prototype.onYtServiceRequestError;vs.prototype.onYtServiceRequestCompleted=vs.prototype.onYtServiceRequestCompleted;
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],vs.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],vs.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],vs.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],vs.prototype,"data",void 0);_.I([_.K({value:0}),_.Z("design:type",Number)],vs.prototype,"selectedTier",void 0);
_.I([_.K({value:""}),_.Z("design:type",String)],vs.prototype,"offerVideo",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],vs.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.I([_.K({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.$e(this)}}),
_.Z("design:type",String)],vs.prototype,"playerId",void 0);_.I([_.qR("tp-yt-paper-dialog-scrollable"),_.Z("design:type",Object)],vs.prototype,"scrollable",void 0);_.I([_.qR("ytd-sponsorships-tier-renderer"),_.Z("design:type",Object)],vs.prototype,"tierRenderer",void 0);_.I([_.qR("#player"),_.Z("design:type",Object)],vs.prototype,"playerElement",void 0);
_.I([_.by("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],vs.prototype,"onYtServiceRequestCompleted",null);_.I([_.by("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],vs.prototype,"onYtServiceRequestError",null);
_.I([_.by("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vs.prototype,"onYtPopupOpened",null);_.I([_.by("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vs.prototype,"onYtPopupClosed",null);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vs.prototype,"onDataChanged",null);
_.I([_.hT("selectedTier"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],vs.prototype,"selectedTierChangedForBinding",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],vs);
_.m(vs,"ytd-sponsorships-offer-renderer",function(){if(FXX!==void 0)return FXX;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return FXX=A},{mode:_.e5("kevlar_poly_si_batch_j077")?1:2});var RHk;var oT=function(){var A=_.G.apply(this,arguments)||this;A.buttonOverrides={type:"filled",style:"mono"};return A};
_.g(oT,_.G);oT.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}}}}}};
oT.prototype.backgroundColorChanged=function(){var A,L,O,X=(L=_.q((A=this.data)==null?void 0:A.content,rMS))==null?void 0:(O=L.backgroundColor)==null?void 0:O.backgroundColor;X&&(A=_.Wy(X),_.YJ(this.hostElement).querySelector("#banner").style.backgroundColor=A,_.YJ(this.hostElement).querySelector("#abstract-art").style.backgroundColor=A)};
oT.prototype.attached=function(){this.JSC$21554_scroller&&(this.JSC$21554_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21554_scroller.attached&&typeof this.JSC$21554_scroller.attached==="function"&&this.JSC$21554_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
oT.prototype.backgroundColorChanged=oT.prototype.backgroundColorChanged;_.I([_.K(),_.Z("design:type",Object)],oT.prototype,"data",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],oT.prototype,"ytRendererstamperBehavior",void 0);_.I([_.qR("#scroller"),_.Z("design:type",Object)],oT.prototype,"JSC$21554_scroller",void 0);_.I([_.K(),_.Z("design:type",Object)],oT.prototype,"buttonOverrides",void 0);
_.I([_.hT("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],oT.prototype,"backgroundColorChanged",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],oT);
_.m(oT,"ytd-sponsorships-promotion-celebration-renderer",function(){if(RHk!==void 0)return RHk;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return RHk=A},{mode:_.e5("kevlar_poly_si_batch_j077")?1:2});var Qcn;var mWM;var AK=function(){return _.G.apply(this,arguments)||this};
_.g(AK,_.G);AK.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
AK.prototype.computeIsInitiallyChecked=function(A){return A===1};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],AK.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],AK.prototype,"data",void 0);_.I([_.qR("#checkbox"),_.Z("design:type",Object)],AK.prototype,"checkbox",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],AK);
_.m(AK,"ytd-subscription-toggle-option-renderer",function(){if(mWM!==void 0)return mWM;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return mWM=A},{mode:1});var L1=function(){var A=_.G.apply(this,arguments)||this;A.darkerDarkTheme=_.h("web_darker_dark_theme");A.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return A};
_.g(L1,_.G);L1.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"}}}};
L1.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
L1.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var A=_.YJ(this.hostElement).querySelector("#options").selected;A=this.data.options[A].subscriptionRadioOptionRenderer.serviceEndpoint;var L=_.YJ(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");L&&A&&A.modifyChannelNotificationPreferenceEndpoint&&(L=L.getValue())&&(A.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[L]);_.X5().resolve(_.x$).resolveCommand(A,{form:{element:this.hostElement}});
_.dQ(this.hostElement,"yt-close-popup-action")};
_.v2.Object.defineProperties(L1.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var A=this.data.options,L=0;L<A.length;L++){var O=A[L].subscriptionRadioOptionRenderer;if(O&&O.selected)return L}return null}}});
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],L1.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],L1.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.KP.YtEventForwardingBehavior),_.Z("design:type",Object)],L1.prototype,"eventForwardingBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],L1.prototype,"ytRendererBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],L1.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],L1.prototype,"darkerDarkTheme",void 0);_.I([_.r("data.options"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],L1.prototype,"initialIndex",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],L1);
_.m(L1,"ytd-subscription-notification-options-renderer",function(){if(Qcn!==void 0)return Qcn;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return Qcn=A},{mode:1});var fsz;var Oy=function(){return _.G.apply(this,arguments)||this};
_.g(Oy,_.G);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Oy.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Oy.prototype,"data",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],Oy);
_.m(Oy,"ytd-tvfilm-offer-groups-renderer",function(){if(fsz!==void 0)return fsz;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return fsz=A},{mode:1});var IsB;var X9=function(){var A=_.G.apply(this,arguments)||this;A.darkerDarkTheme=_.h("web_darker_dark_theme");return A};
_.g(X9,_.G);_.P=X9.prototype;_.P.configureRendererStamper=function(){return{"data.offers":{id:"offers",mapping:{tvfilmOffersRenderer:{component:"ytd-tvfilm-offer-groups-renderer"}}},"data.coupon":{id:"coupon",mapping:{ypcCouponRenderer:"ytd-ypc-coupon-renderer"}},"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer"}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.P.computeThumbnailClass=function(A){return A.thumbnailOverlays?A.isShow?"thumbnail-show":"thumbnail-movie":A.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.P.computeCommerceSectionClass=function(A){return A.offers&&A.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.P.computeTitleClass=function(A){return A.offers&&A.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.P.onDataChanged=function(){[].concat(_.le(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(A){A.onShow()})};
X9.prototype.onDataChanged=X9.prototype.onDataChanged;_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],X9.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],X9.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],X9.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],X9.prototype,"darkerDarkTheme",void 0);
_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],X9.prototype,"onDataChanged",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],X9);
_.m(X9,"ytd-ypc-offers-overlay-renderer",function(){if(IsB!==void 0)return IsB;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return IsB=A},{mode:_.e5("kevlar_poly_si_batch_j028")?1:2});var ypn;var ZxM=function(){this.usedMethods=new Set};
ZxM.prototype.add=function(A){this.usedMethods.add(A)};
ZxM.prototype.reset=function(){this.usedMethods.clear()};var HxB=function(A,L){this.query=A;this.previousSearchQuery=L;this.id=jck++;if(!WXM){L=_.ms("SBOX_SETTINGS");A="https://"+((L==null?void 0:L.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var O=L==null?void 0:L.REQUEST_LANGUAGE;O&&(A+="&hl="+O);(O=L==null?void 0:L.REQUEST_DOMAIN)&&(A+="&gl="+O);A+="&client=youtube&gs_ri=youtube";(O=L==null?void 0:L.SUGG_EXP_ID)&&(A+="&sugexp="+encodeURIComponent(O));(O=L==null?void 0:L.PSUGGEST_TOKEN)&&(A+="&tok="+O);(L=
L==null?void 0:L.SESSION_INDEX)&&(A+="&authuser="+L);_.h("desktop_enable_visual_suggest")&&(A+="&h=180&w=320&ytvs=1");WXM=A}},zHk=function(A){var L="q="+encodeURIComponent(A.query);
A.previousSearchQuery&&(L+="&pq="+encodeURIComponent(A.previousSearchQuery));return L},BsJ=function(){var A=_.ms("SBOX_SETTINGS"),L={};
if(A==null?0:A.SEND_VISITOR_DATA)L["X-Goog-Visitor-Id"]=A==null?void 0:A.VISITOR_DATA;return L},MjX=function(A){var L=WXM;
L+="&gs_id="+A.id.toString(36);L+="&q="+encodeURIComponent(A.query);L+="&cp="+A.query.length;A.previousSearchQuery&&(L+="&pq="+encodeURIComponent(A.previousSearchQuery));(A=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(L+="&video_id="+A);return L},jck=0,WXM="";var $WS=_.Vg.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,asX=_.Vg.SEARCH_ENTITY_SUGGESTION_MOVIE,kpQ=_.Vg.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,UWM=_.Vg.SEARCH_ENTITY_SUGGESTION_TV_SHOW,vUS=function(A,L){this.text=A;this.bold=L},oUM=function(A,L,O){this.input=L;
this.index=O;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=A[0];this.type=A[1];this.subtypes=A[2];var X;this.displayText=gg((X=A[3])==null?void 0:X.b);var x;this.ignoredPrefix=gg((x=A[3])==null?void 0:x.a);var J,Y;this.hasNewVideo=((J=A[3])==null?void 0:(Y=J.zam)==null?void 0:Y.toString())==="true"?!0:!1;var T;this.visualSuggestUrl=(T=A[3])==null?void 0:T.zai;var V;this.entityType=gg((V=A[3])==null?void 0:V.zap);var E;this.entityName=gg((E=A[3])==null?void 0:E.zao);var n;L=gg((n=
A[3])==null?void 0:n.zaf);var t;this.entityMid=(t=A[3])==null?void 0:t.zae;n=ytM(this.subtypes,this.entityMid);if(L&&n){if(L){t="";switch(n){case "YOUTUBE_ENTITY_TYPE_SONG":t=kpQ;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":t=$WS;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":t=UWM;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":t=asX}n=n==="YOUTUBE_ENTITY_TYPE_SONG"||n==="YOUTUBE_ENTITY_TYPE_ALBUM"?t+" \u2022  \u2022 "+L:L}else n="";this.entitySubtitle=n}var b;this.externalChannelId=(b=A[3])==null?void 0:b.zav;var S;
this.entityThumbnailAttributionUrl=(S=A[3])==null?void 0:S.zaq},LFQ=function(A,L){var O=[],X,x=(X=A.displayText)!=null?X:A.text;
(L==null?0:L.useEntityName)&&AUX(A)&&A.entityName&&(x=A.entityName);if(A.type===33)return O.push(new vUS(x,!1)),O;if(x.length>=A.input.length&&x.substring(0,A.input.length)===A.input)O.push(new vUS(A.input,!1)),O.push(new vUS(x.substring(A.input.length),!0));else{var J=new Set(A.input.split(/\s/)),Y=x.split(/\s/);O=Y.map(function(T,V){return new vUS(T.trim()+(V===Y.length-1?"":" "),!J.has(T))})}return O},AUX=function(A){var L=!!ytM(A.subtypes);
A=!!A.entityMid;return L||A};var Ozk=function(A){this.rawResponse=["",[],{}];this.suggestions=[];try{var L=JSON.parse(ZTZ(A));if(typeof L==="object"&&L!==null)this.rawResponse=L;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(X){console.log("Suggest: Failed to parse SuggestResponse!");return}var O=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(X,x){return new oUM(X,O,x)})};var XZJ=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new ZxM;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$21591_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},xMZ,sYZ=function(){xMZ||(xMZ=new XZJ);
return xMZ};
XZJ.prototype.updateSuggestions=function(A){var L=this;this.availableSuggestions.forEach(function(O){L.previousSuggestions[O]=!0});
this.availableSuggestions=A.map(function(O){var X=O.type.toString();O.subtypes.length>0&&(X+="i"+O.subtypes.join("i"),X+="k"+O.suggestionSources.COMPLETE_SERVER.toString());return X})};
var JUS=function(A,L){var O=Date.now();A.firstEditTime<0&&(A.firstEditTime=O);L&&(A.lastQueryBuildTime=O);A.lastEditTime=O};
XZJ.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$21591_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var P$7=function(A){var L="";A.availableSuggestions.forEach(function(x){delete A.previousSuggestions[x]});
for(var O=_.d(Object.keys(A.previousSuggestions)),X=O.next();!X.done;X=O.next())X=X.value,A.previousSuggestions[X]&&(L+=(L?"j":"")+X);return L},dMJ=function(A,L){var O=[];
L&&(O[1]=L.toString());O[0]="youtube";O[7]=Date.now()-A.startTime;O[6]=A.sessionNumber;A.zeroPrefixSuggestionCount>=0&&(O[33]=A.zeroPrefixSuggestionCount);O[13]=A.outOfSyncResponseCount;if(A.availableSuggestions.length>0){for(var X=L="",x=0,J=_.d(A.availableSuggestions),Y=J.next();!Y.done;Y=J.next())Y=Y.value,Y!==X&&(x>1&&(L+="l"+x),L+=(X?"j":"")+Y,x=0,X=Y),x+=1;x>1&&(L+="l"+x);O[3]=L}O[35]=P$7(A);A.selectedSuggestionIndex>=0&&(O[2]=A.selectedSuggestionIndex);var T;if(L=(T=_.ms("SBOX_SETTINGS"))==
null?void 0:T.SUGG_EXP_ID)O[19]=A.normalize(L),T=0,A.experimentTriggeredBeforeFinal&&(T|=1),A.experimentTriggeredFinal&&(T|=2),O[20]=T;O[26]=Array.from(A.inputMethodsTracker.usedMethods).join("j");if(A.JSC$21591_totalRoundTripTime>0){O[15]=A.JSC$21591_totalRoundTripTime;O[14]=A.maxRoundTripTime;T=[];for(x=L=0;x<10;x++)X=A.roundTripTimeHistogram[x],X===0?L++:(L>1?T.push(x+"-"+X):L===1?T.push("0j"+X):T.push(X.toString()),L=0);T=T.join("j");O[16]=T}A.zeroPrefixRoundTripTime>0&&(O[36]=A.zeroPrefixRoundTripTime);
A.lastQueryBuildTime>0&&(O[18]=A.lastQueryBuildTime-A.startTime);A.firstEditTime>0&&(O[4]=A.firstEditTime-A.startTime);A.lastEditTime>0&&(O[5]=A.lastEditTime-A.startTime);return O.join(".")};
XZJ.prototype.normalize=function(A){return A.replaceAll(".","-")};
var YV$=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var xA=function(){var A=_.G.apply(this,arguments)||this;A.microphoneSpinnerActive=!1;A.noAnimations=!1;A.boundExitClick=function(){A.onExitButtonClick()};
A.speechOverlayClassName="";A.isLevelAnimating=!1;A.playCloseDialogAudioFeedback=!0;A.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return A};
_.g(xA,_.G);_.P=xA.prototype;_.P.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.P.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=vZS()};
_.P.dataChanged=function(){this.logDialog()};
_.P.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var A;(A=this.manager.audioPlayer)!=null&&(A.JSC$20881_audioEnabled=!1)}this.manager.stop();(A=this.manager.audioPlayer)!=null&&(A.JSC$20881_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.P.handleSpeechQueryCompleteAction=function(A){var L=A.navigationAction;L&&(A.trackingParams&&_.iV().graftServerVe(A.trackingParams,this.dialogVe,5),_.P4(this.hostElement,"yt-navigate",{endpoint:L,tempData:this.getNavigationParams(L),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.P.onExitButtonClick=function(){this.closeDialog()};
_.P.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var A;if((A=this.manager)!=null){var L;(L=A.audioPlayer)==null||sD(L,"failure");A.setState("microphone-off");A.stop()}}else(A=this.manager)==null||A.start()};
_.P.transcriptionChanged=function(){var A,L;(((A=this.transcription)==null?0:A.low)||((L=this.transcription)==null?0:L.high))&&this.setState("transcribing",this.transcription)};
_.P.stateChanged=function(){this.setState(this.state,this.transcription)};
_.P.logDialog=function(){var A;(A=this.data)!=null&&A.trackingParams&&(A=_.iV(),_.h7(A,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=A.graftServerVe(this.data.trackingParams,void 0,5))};
_.P.getNavigationParams=function(A){var L={};if(_.h("web_yt_searchbox")){var O=sYZ();O.inputMethodsTracker.add(6);O=dMJ(O,15);L.gs_l=O;var X;L.oq=((X=_.q(A,_.wM))==null?void 0:X.query)||""}else if(A=window.ytvoicesearchloggingparams){if(A=A())L.oq=A.oq,L.gs_l=A.gs_l}else _.HY(Error("nl"));return L};
_.P.closeDialog=function(){_.dQ(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.P.setState=function(A,L){if(this.data){var O=this.data,X={};switch(A){case "listening":X={headerText:O.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:O.microphoneButtonAriaLabel};break;case "timeout":X={headerText:O.promptHeader,microphoneState:"try-again",microphoneLabel:O.promptMicrophoneLabel,microphoneAriaLabel:O.promptMicrophoneLabel};break;case "microphone-off":X={headerText:O.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:O.promptMicrophoneLabel,
microphoneAriaLabel:O.promptMicrophoneLabel};break;case "transcribing":(L==null?0:L.low)||(L==null?0:L.high)?X={transcriptionLow:L==null?void 0:L.low,transcriptionHigh:L==null?void 0:L.high,microphoneState:"speaking",microphoneAriaLabel:O.microphoneButtonAriaLabel}:X={headerText:O.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:O.microphoneButtonAriaLabel};break;case "processing":X={headerText:O.loadingHeader,microphoneState:"processing",microphoneAriaLabel:O.microphoneButtonAriaLabel};
break;case "offline":X={headerText:O.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:O.connectionErrorMicrophoneLabel,microphoneAriaLabel:O.connectionErrorMicrophoneLabel};break;case "permission":X={headerText:O.permissionsHeader,bodyLine1:O.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:O.permissionsSubtext};break;case "permission-denied":X={headerText:O.disabledHeader,bodyLine1:O.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:O.disabledSubtext}}X.className=
A;this.speechOverlayState=X;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.P.setMicrophoneState=function(A){var L=this.isLevelAnimating;this.isLevelAnimating=A==="speaking";!L&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=A==="processing"&&!this.noAnimations};
_.P.setClass=function(A){this.speechOverlayClassName&&_.TK(this.hostElement,this.speechOverlayClassName,!1);A&&(this.speechOverlayClassName=A,_.TK(this.hostElement,A,!0))};
_.P.runLevelAnimation=function(){var A=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var L=1+Math.random()*.75,O=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+O/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+L+")");_.c1.addJob(function(){A.runLevelAnimation()},3,O)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
xA.prototype.stateChanged=xA.prototype.stateChanged;xA.prototype.transcriptionChanged=xA.prototype.transcriptionChanged;xA.prototype.onPopupClosed=xA.prototype.onPopupClosed;xA.prototype.dataChanged=xA.prototype.dataChanged;_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],xA.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],xA.prototype,"ytRendererBehavior",void 0);
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],xA.prototype,"rendererStamperBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],xA.prototype,"ytdReduxBehavior",void 0);_.I([_.N(_.KP.YtEventForwardingBehavior),_.Z("design:type",Object)],xA.prototype,"eventForwardingBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],xA.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],xA.prototype,"speechOverlayState",void 0);
_.I([_.K(),_.Z("design:type",Object)],xA.prototype,"microphoneSpinnerActive",void 0);_.I([_.K({type:_.h("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.Z("design:type",Object)],xA.prototype,"noAnimations",void 0);_.I([_.K({selector:function(A){var L;return(L=A.voiceSearch)==null?void 0:L.transcription}}),
_.Z("design:type",Object)],xA.prototype,"transcription",void 0);_.I([_.K({selector:function(A){var L;return(L=A.voiceSearch)==null?void 0:L.overlay}}),
_.Z("design:type",String)],xA.prototype,"state",void 0);_.I([_.K(),_.Z("design:type",Object)],xA.prototype,"boundExitClick",void 0);_.I([_.qR("#microphone-levels"),_.Z("design:type",HTMLElement)],xA.prototype,"level",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],xA.prototype,"dataChanged",null);_.I([_.by("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],xA.prototype,"onPopupClosed",null);
_.I([_.iy("transcription"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],xA.prototype,"transcriptionChanged",null);_.I([_.iy("state"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],xA.prototype,"stateChanged",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],xA);
_.m(xA,"ytd-voice-search-dialog-renderer",function(){if(ypn!==void 0)return ypn;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return ypn=A},{mode:1});var uOX;var sy=function(){var A=_.G.apply(this,arguments)||this;A.isOverlay=!1;A.hidden=!1;return A};
_.g(sy,_.G);_.P=sy.prototype;_.P.onPopupClosed=function(){this.toggleIconState(!1)};
_.P.computeIcon=function(){var A,L,O;return(L=_.q((A=this.data)==null?void 0:A.icon,CvJ))==null?void 0:(O=L.icon)==null?void 0:O.iconType};
_.P.computeIconBadgeShape=function(){var A;return{iconBadgeType:"cart",iconBadgeText:(A=this.iconBadgeEntity)==null?void 0:A.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.P.onClick=function(){var A;(A=this.data)!=null&&A.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.P.computeHidden=function(A){return!A};
_.P.toggleIconState=function(A){this.iconButton&&(this.iconButton.pressed=A)};
sy.prototype.onPopupClosed=sy.prototype.onPopupClosed;_.I([_.N(_.HL),_.Z("design:type",Object)],sy.prototype,"ytdReduxBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],sy.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],sy.prototype,"ytComponentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],sy.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],sy.prototype,"isOverlay",void 0);
_.I([_.K({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.Z("design:type",Object)],sy.prototype,"hidden",void 0);_.I([_.K({selectorArgs:["data.iconBadgeEntityKey"],selector:function(A,L){return _.eM(A.entities,"iconBadgeEntity",L)}}),
_.Z("design:type",Object)],sy.prototype,"iconBadgeEntity",void 0);_.I([_.qR("yt-icon-button"),_.Z("design:type",HTMLButtonElement)],sy.prototype,"iconButton",void 0);_.I([_.by("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],sy.prototype,"onPopupClosed",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],sy);
_.m(sy,"ytd-icon-badge-topbar-button-renderer",function(){if(uOX!==void 0)return uOX;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return uOX=A},{mode:1});var Tck;var JK=function(){var A=_.G.apply(this,arguments)||this;A.premiumOptions=[];A.darkerDarkTheme=_.h("web_darker_dark_theme");return A};
_.g(JK,_.G);JK.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.v2.Object.defineProperties(JK.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],JK.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],JK.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Array)],JK.prototype,"premiumOptions",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],JK.prototype,"darkerDarkTheme",void 0);_.I([_.r("premiumOptions"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],JK.prototype,"hasPremiumOptions",null);
_.I([_.Q({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],JK);
_.m(JK,"ytd-offline-promo-content",function(){if(Tck!==void 0)return Tck;var A=document.createElement("template");_.p(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n<div id="premium-options" hidden="[[!hasPremiumOptions]]" class="style-scope ytd-offline-promo-content"></div>\n<yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Tck=A},{mode:1});var Vkz;var PH=function(){var A=_.G.apply(this,arguments)||this;A.premiumOptions=[];return A};
_.g(PH,_.G);PH.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var A;this.premiumOptions=IXS((A=this.data)==null?void 0:A.formats)};
PH.prototype.onClickSubmit=function(){_.dQ(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var A;(A=_.d0())==null||A.pause()};
PH.prototype.attached=function(){this.JSC$21611_scroller&&(this.JSC$21611_scroller.dialogElement=this.hostElement.parentNode)};
_.v2.Object.defineProperties(PH.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
PH.prototype.dataChanged=PH.prototype.dataChanged;_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],PH.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],PH.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],PH.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],PH.prototype,"data",void 0);
_.I([_.K({computed:"computeIcon_(data.headersIcon)",value:""}),_.Z("design:type",String)],PH.prototype,"headersIcon",void 0);_.I([_.K(),_.Z("design:type",Array)],PH.prototype,"premiumOptions",void 0);_.I([_.qR("#scroller"),_.Z("design:type",Object)],PH.prototype,"JSC$21611_scroller",void 0);_.I([_.r("headersIcon"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],PH.prototype,"showIcon",null);
_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],PH.prototype,"dataChanged",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],PH);
_.m(PH,"ytd-offline-promo-renderer",function(){if(Vkz!==void 0)return Vkz;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Vkz=A},{mode:1});var DMB;var db=function(){var A=_.G.apply(this,arguments)||this;A.playbackPauseInterval=NaN;A.isLoading=!1;A.hasError=!1;A.dialogClass="";A.youtubeLabel=_.b3("LOGO_ALT_LABEL",{},"YouTube Home");A.logoName="yt-logos-ext:yt-logo-updated";A.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return A};
_.g(db,_.G);_.P=db.prototype;_.P.onDataChange=function(){var A;if(this.showEOMV1Text=!((A=this.data)==null||!A.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.P.attached=function(){this.pausePlayer()};
_.P.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.P.handleLangSelect=function(A){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[A.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.P.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.P.handleSaveConsent=function(A){var L=this;this.showLoadingSpinner();this.showLoadingSpinner();tfQ(_.q(A,FkM)).catch(function(O){_.Rv(new _.pe("Something went wrong when save consent "+(O.message?O.message:O)+"."));L.hideLoadingSpinner();L.showErrorMessage()})};
_.P.handleDisablePersonalization=function(A){var L=this;this.showLoadingSpinner();bhS(_.q(A,C6Z)).then(function(){L.dialog.close();L.resumePlayer()}).catch(function(O){_.Rv(new _.pe("Something went wrong when disable personalization "+(O.message?O.message:O)+"."));
L.hideLoadingSpinner();L.showErrorMessage()})};
_.P.showLoadingSpinner=function(){var A=this;this.showSpinnerJobId=_.c1.addLowPriorityJob(function(){A.isLoading=!0},500)};
_.P.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.c1.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.P.showErrorMessage=function(){var A=this;this.hasError=!0;_.c1.addLowPriorityJob(function(){A.hasError=!1},2E3)};
_.P.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.Vr(function(){try{var A=_.d0();A&&A.pause()}catch(L){}},100))};
_.P.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var A=_.d0();A&&A.play()}catch(L){}};
_.v2.Object.defineProperties(db.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)==null||!A.eomV1Text)return[];A=[];for(var L=["SHIELD","WARNING","BAR_CHART"],O=this.data.eomV1Text.essentialCookieMsg.items,X=0;X<L.length&&X<O.length;X++)A.push({icon:L[X],text:O[X]});return A}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var A;if((A=this.data)==null||!A.eomV1Text)return[];A=[];for(var L=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],O=this.data.eomV1Text.nonEssentialCookieMsg.items,X=0;X<L.length&&X<O.length;X++)A.push({icon:L[X],text:O[X]});return A}}});
db.prototype.onDataChange=db.prototype.onDataChange;_.I([_.K(),_.Z("design:type",Object)],db.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Boolean)],db.prototype,"showEOMV1Text",void 0);_.I([_.K(),_.Z("design:type",Object)],db.prototype,"isLoading",void 0);_.I([_.K(),_.Z("design:type",Object)],db.prototype,"hasError",void 0);_.I([_.K(),_.Z("design:type",Number)],db.prototype,"showSpinnerJobId",void 0);_.I([_.K(),_.Z("design:type",Object)],db.prototype,"dialogClass",void 0);
_.I([_.qR("#dialog"),_.Z("design:type",Object)],db.prototype,"dialog",void 0);_.I([_.qR("#cb-header"),_.Z("design:type",HTMLElement)],db.prototype,"header",void 0);_.I([_.qR("#lang-select"),_.Z("design:type",HTMLElement)],db.prototype,"langSelect",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],db.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],db.prototype,"ytComponentBehavior",void 0);
_.I([_.K(),_.Z("design:type",String)],db.prototype,"youtubeLabel",void 0);_.I([_.K(),_.Z("design:type",Object)],db.prototype,"logoName",void 0);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],db.prototype,"onDataChange",null);_.I([_.r("data"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],db.prototype,"eomEssentialCookieMsgItems",null);
_.I([_.r("data"),_.Z("design:type",Array),_.Z("design:paramtypes",[])],db.prototype,"eomNonEssentialCookieMsgItems",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],db);
_.m(db,"ytd-consent-bump-v2-lightbox",function(){if(DMB!==void 0)return DMB;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return DMB=A},{mode:1});var ed$;var YA=function(){return _.G.apply(this,arguments)||this};
_.g(YA,_.G);YA.prototype.ready=function(){if(!_.qO()||MOQ)var A=!0;else MOQ=!0,A=!1;A||(A=document.querySelector("ytd-app"),A||(A=document.body),this.internalLightBox=_.YJ(A).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.I([_.K(),_.Z("design:type",Object)],YA.prototype,"data",void 0);_.I([_.qR("#lightbox"),_.Z("design:type",Object)],YA.prototype,"lightBox",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],YA);
_.m(YA,"ytd-consent-bump-v2-renderer",function(){if(ed$!==void 0)return ed$;var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return ed$=A},{mode:1});var Elk;var nlS;var tkS;var uz=function(){return _.G.apply(this,arguments)||this};
_.g(uz,_.G);_.P=uz.prototype;_.P.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&ARS(this.toastManager,this.toastType)};
_.P.open=function(A){this.toast&&(this.ephemeralAction&&_.X5().resolve(_.c5).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=A!=null?A:0,this.toastManager.enqueue(this.toast,A)):this.toast.open())};
_.P.close=function(A){var L;(L=this.toast)==null||L.close();this.toastManager&&A===1&&ARS(this.toastManager,A)};
_.P.refit=function(){var A;(A=this.toast)==null||A.refit()};
_.P.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var A;(A=this.toast)==null||A.close()}};
_.P.setVerticalOffset=function(A){this.toast&&(this.toast.verticalOffset=A,this.toast.fit())};
_.P.computeButtonClass_=function(A){return A?"toast-button":""};
_.P.computeText_=function(A){return _.vG(A)};
_.P.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.A3("toast-opened-changed",this.toastOpened))};
_.P.updateToastOpenedFromBinding=function(A){this.toastOpened=A.detail.value};
_.v2.Object.defineProperties(uz.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var A,L,O=(A=this.data)==null?void 0:(L=A.actionButton)==null?void 0:L.buttonRenderer;return(O==null?void 0:O.command)||(O==null?void 0:O.serviceEndpoint)||(O==null?void 0:O.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.labelText&&this.command&&this.duration)return{label:this.labelText,command:this.command,durationMs:this.duration}}},
hasEphemeralAction:{configurable:!0,enumerable:!0,get:function(){return!!this.ephemeralAction}},
labelText:{configurable:!0,enumerable:!0,get:function(){var A=[],L;((L=this.data)==null?0:L.responseText)&&A.push(_.vG(this.data.responseText));var O;((O=this.data)==null?0:O.subText)&&A.push(_.vG(this.data.subText));var X,x;if((X=this.data)==null?0:(x=X.actionButton)==null?0:x.buttonRenderer){var J,Y;A.push(((J=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(Y=J.accessibilityData)==null?void 0:Y.label)||_.vG(this.data.actionButton.buttonRenderer.text))}return A.filter(function(T){return T}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var A,L;return(L=(A=this.toast)==null?void 0:A.opened)!=null?L:!1}}});
uz.prototype.toastOpenedChangedForBinding=uz.prototype.toastOpenedChangedForBinding;uz.prototype.toastOpenedChanged=uz.prototype.toastOpenedChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],uz.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.KP.YtEventForwardingBehavior),_.Z("design:type",Object)],uz.prototype,"ytEventForwardingBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],uz.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],uz.prototype,"duration",void 0);
_.I([_.K(),_.Z("design:type",Number)],uz.prototype,"toastType",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],uz.prototype,"useCloseButton",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],uz.prototype,"closeToastOnActionButtonClick",void 0);_.I([_.K({value:function(){return _.b3("SBOX_INAPPROPRIATE_CANCEL")}}),
_.Z("design:type",String)],uz.prototype,"closeButtonAriaLabel",void 0);_.I([_.K(),_.Z("design:type",Boolean)],uz.prototype,"toastOpened",void 0);_.I([_.K(),_.Z("design:type",Boolean)],uz.prototype,"hasOpened",void 0);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],uz.prototype,"command",null);_.I([_.r("labelText","command","duration"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],uz.prototype,"ephemeralAction",null);
_.I([_.r("ephemeralAction"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],uz.prototype,"hasEphemeralAction",null);_.I([_.qR("#toast"),_.Z("design:type",Object)],uz.prototype,"toast",void 0);_.I([_.K({value:function(){return{style:"call-to-action-inverse"}}}),
_.Z("design:type",Object)],uz.prototype,"buttonOverrides",void 0);_.I([_.K({value:{style:"mono-inverse"}}),_.Z("design:type",Object)],uz.prototype,"closeButtonOverrides",void 0);_.I([_.K({value:function(){return _.X5().resolve(_.Ot(_.N8))}}),
_.Z("design:type",Object)],uz.prototype,"toastManager",void 0);_.I([_.r("data.responseText","data.subText","data.actionButton"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],uz.prototype,"labelText",null);_.I([_.hT("toastOpened"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],uz.prototype,"toastOpenedChanged",null);
_.I([_.hT("toastOpened"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],uz.prototype,"toastOpenedChangedForBinding",null);_.I([_.yU({is:"yt-notification-action-renderer",disableElementRegistration:!0})],uz);
_.m(uz,"yt-notification-action-renderer",function(){if(tkS===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;nlS===void 0&&(nlS=document.createElement("template"));var X=nlS;O.call(L,X.content.cloneNode(!0),A.content.firstChild);tkS=A}A=tkS;return A},{mode:2});var T5=function(){var A=_.G.apply(this,arguments)||this;A.duration=4E3;A.downloadingCount=0;A.downloadedCount=0;A.downloadingOnlySmartDownloads=!1;A.sessionTotalDownloads=0;A.sessionDownloaded=0;A.previousSessionsDownloaded=0;A.totalDownloadPercentage=0;A.currentDownloadProgress=0;A.currentDownloadPercentage=0;A.isLeaderTab=!0;A.isFullScreen=!1;A.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};A.boundBeforeUnload=function(L){A.isLeaderTab&&A.downloadingCount>0&&(L.preventDefault(),
L.returnValue=!0)};
return A};
_.g(T5,_.G);_.P=T5.prototype;
_.P.open=function(){this.updateDownloadState();if(this.data){var A=this.sessionDownloaded+1,L=this.sessionTotalDownloads>1?_.b3("VIDEOS_DOWNLOADING_RATIO",{downloaded:A.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+A+"/"+this.sessionTotalDownloads):_.b3("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(L=this.sessionTotalDownloads>1?_.b3("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:A.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
A+"/"+this.sessionTotalDownloads):_.b3("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));A=this.isLeaderTab?_.b3("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.vG(this.data.responseText)!==L||_.vG(this.data.subText)!==A)this.set("data.responseText",_.Ue(L)),this.set("data.subText",_.Ue(A)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.P.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.P.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.P.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.P.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var A=this.downloadedCount-this.previousSessionsDownloaded;A<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-A);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.P.handleFullscreenChange=function(A){(this.isFullScreen=A)||this.updatePopup()};
T5.prototype.updateCurrentDownloadProgress=T5.prototype.updateCurrentDownloadProgress;T5.prototype.updatePopup=T5.prototype.updatePopup;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],T5.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],T5.prototype,"ytdReduxBehavior",void 0);_.I([_.N(_.KP.YtEventForwardingBehavior),_.Z("design:type",Object)],T5.prototype,"ytEventForwardingBehavior",void 0);
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],T5.prototype,"actionHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],T5.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],T5.prototype,"duration",void 0);_.I([_.K({selector:function(A){return _.$1d(A.entities).length}}),
_.Z("design:type",Object)],T5.prototype,"downloadingCount",void 0);_.I([_.K({selector:r9$}),_.Z("design:type",Object)],T5.prototype,"downloadedCount",void 0);_.I([_.K({selector:function(A){var L=_.$1d(A.entities);return N6z(A.entities,L)}}),
_.Z("design:type",Object)],T5.prototype,"downloadingOnlySmartDownloads",void 0);_.I([_.K(),_.Z("design:type",Object)],T5.prototype,"sessionTotalDownloads",void 0);_.I([_.K(),_.Z("design:type",Object)],T5.prototype,"sessionDownloaded",void 0);_.I([_.K(),_.Z("design:type",Object)],T5.prototype,"previousSessionsDownloaded",void 0);_.I([_.K(),_.Z("design:type",Object)],T5.prototype,"totalDownloadPercentage",void 0);
_.I([_.K({selector:function(A){var L;A=(L=_.$1d(A.entities))!=null?L:[];return A.length>0?_.m1D(A.slice(-1)):0}}),
_.Z("design:type",Object)],T5.prototype,"currentDownloadProgress",void 0);_.I([_.K(),_.Z("design:type",Object)],T5.prototype,"currentDownloadPercentage",void 0);_.I([_.K({selector:_.vq9}),_.Z("design:type",Object)],T5.prototype,"isLeaderTab",void 0);_.I([_.qR("yt-notification-action-renderer"),_.Z("design:type",Object)],T5.prototype,"notificationActionRenderer",void 0);
_.I([_.iy("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],T5.prototype,"updatePopup",null);_.I([_.iy("currentDownloadProgress"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],T5.prototype,"updateCurrentDownloadProgress",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],T5);
_.m(T5,"ytd-video-download-toast-renderer",function(){if(Elk!==void 0)return Elk;var A=document.createElement("template");_.p(A,'\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>');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return Elk=A},{mode:1});var bzJ;var hdS;var VD=function(){return _.G.apply(this,arguments)||this};
_.g(VD,_.G);VD.prototype.computeIsRedLogo=function(A,L){!A&&L&&(A=L);return A==="YOUTUBE_RED_LOGO"||A==="YOUTUBE_PREMIUM_LOGO"};
VD.prototype.computeLogoName=function(A){A=this.componentBehavior.computeIcon_(A);return A===""?"yt-logos-ext:yt-logo-updated":A};
_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],VD.prototype,"componentBehavior",void 0);_.I([_.K({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.Z("design:type",Boolean)],VD.prototype,"isRedLogo",void 0);_.I([_.K({computed:"computeLogoName(data)"}),_.Z("design:type",String)],VD.prototype,"logoName",void 0);_.I([_.K({value:{}}),_.Z("design:type",Object)],VD.prototype,"data",void 0);
_.I([_.K(),_.Z("design:type",Object)],VD.prototype,"logoType",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-logo"})],VD);
_.m(VD,"ytd-logo",function(){if(hdS!==void 0)return hdS;var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return hdS=A},{mode:_.e5("kevlar_poly_si_batch_j074")?1:2});var Da=function(){var A=_.G.apply(this,arguments)||this;A.animationRef={};return A};
_.g(Da,_.G);_.P=Da.prototype;_.P.attached=function(){document.addEventListener("yt-navigate-finish",_.tT(this,this.logYoodle))};
_.P.detached=function(){document.removeEventListener("yt-navigate-finish",_.tT(this,this.logYoodle))};
_.P.logYoodle=function(){var A,L;if((A=this.data)==null?0:(L=A.loggingDirectives)==null?0:L.trackingParams)this.ytRendererBehavior.markDirty(),_.iV().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.P.computeHideImg=function(A,L){return!!A||!!L};
_.P.computeHideYtdLogo=function(A,L){return!A||!!L};
_.P.computeHideLottie=function(A){return!A};
_.P.computeIsRedLogo=function(A){return A==="YOUTUBE_RED_LOGO"||A==="YOUTUBE_PREMIUM_LOGO"};
_.P.renderLogoEntity=function(){var A=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),L=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),O=this.getLogoTitleText(this.data),X=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==A&&(this.url=A);this.animatedUrl!==L&&(this.animatedUrl=L);this.logoTitleText!==O&&(this.logoTitleText=O);this.lottieUrl!==X&&(this.lottieUrl=X,this.lottiePlayerProps=this.computeLottiePlayerProps(X))};
_.P.getSanitizedThumbnail=function(A){return A&&A.thumbnails?_.XEO(A.thumbnails,122)||"":""};
_.P.getThumbnailUrl=function(A,L){if(!L)return"";var O,X;A=A?(O=L.darkThemeLogo)==null?void 0:O.thumbnail:(X=L.lightThemeLogo)==null?void 0:X.thumbnail;return this.getSanitizedThumbnail(A)};
_.P.getAnimatedThumbnailUrl=function(A,L){return L?this.getSanitizedThumbnail(A?L.darkThemeAnimatedLogo:L.lightThemeAnimatedLogo):""};
_.P.getLogoTitleText=function(A){if(A)return _.vG(A.tooltipText)};
_.P.computeLogoIcon=function(A,L){if(L){var O,X;return A?(O=L.darkThemeLogo)==null?void 0:O.icon:(X=L.lightThemeLogo)==null?void 0:X.icon}};
_.P.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.P.getLottieUrl=function(A,L){var O,X,x,J;return A?L==null?void 0:(O=L.darkThemeLogo)==null?void 0:(X=O.lottieAnimation)==null?void 0:X.url:L==null?void 0:(x=L.lightThemeLogo)==null?void 0:(J=x.lottieAnimation)==null?void 0:J.url};
_.P.computeLottiePlayerProps=function(A){if(A){var L;if((L=this.animationRef)==null?0:L.lottieEl){var O;(O=this.animationRef)==null||O.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:A,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.P.onLottieError=function(){this.data&&this.lottieUrl&&_.P4(this.hostElement,"yoodle-error")};
_.P.onImgError=function(){this.data&&!this.lottieUrl&&_.P4(this.hostElement,"yoodle-error")};
Da.prototype.playAnimation=Da.prototype.playAnimation;Da.prototype.renderLogoEntity=Da.prototype.renderLogoEntity;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Da.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Da.prototype,"data",void 0);_.I([_.K({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.Z("design:type",Boolean)],Da.prototype,"hideImg",void 0);
_.I([_.K({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.Z("design:type",Boolean)],Da.prototype,"hideYtdLogo",void 0);_.I([_.K({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.Z("design:type",Boolean)],Da.prototype,"hideLottie",void 0);_.I([_.K({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.Z("design:type",Boolean)],Da.prototype,"isRedLogo",void 0);
_.I([_.K(),_.Z("design:type",Boolean)],Da.prototype,"useDarkThemeYoodle",void 0);_.I([_.K(),_.Z("design:type",String)],Da.prototype,"url",void 0);_.I([_.K(),_.Z("design:type",String)],Da.prototype,"animatedUrl",void 0);_.I([_.K(),_.Z("design:type",String)],Da.prototype,"logoTitleText",void 0);_.I([_.K({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.Z("design:type",Object)],Da.prototype,"logoIcon",void 0);_.I([_.K(),_.Z("design:type",Object)],Da.prototype,"logoType",void 0);
_.I([_.K(),_.Z("design:type",String)],Da.prototype,"lottieUrl",void 0);_.I([_.K(),_.Z("design:type",Object)],Da.prototype,"lottiePlayerProps",void 0);_.I([_.K(),_.Z("design:type",Object)],Da.prototype,"animationRef",void 0);_.I([_.hT("data"),_.hT("useDarkThemeYoodle"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Da.prototype,"renderLogoEntity",null);
_.I([_.by("click"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],Da.prototype,"playAnimation",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],Da);
_.m(Da,"ytd-yoodle-renderer",function(){if(bzJ!==void 0)return bzJ;var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return bzJ=A},{mode:_.e5("kevlar_poly_si_batch_j074")?1:2});var SVS;var qVX;var ez=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return A};
_.g(ez,_.G);_.P=ez.prototype;_.P.onYoodleError=function(){_.h("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.P.computeLogoName=function(A){A=this.componentBehavior.computeIcon_(A);return A===""?"yt-logos-ext:yt-logo-updated":A};
_.P.computeTitle=function(A,L,O){return O&&(L==null?0:L.tooltipText)?_.vG(L.tooltipText):_.vG(A)};
_.P.computeAriaLabel=function(A,L,O){return O&&(L==null?0:L.tooltipText)?_.vG(A):""};
_.P.computeShowYoodle=function(A,L,O){return!A||!L&&!!O&&!_.lW.isEmpty(O)};
_.P.onNavigateHomeAction=function(){if(_.h("kevlar_miniplayer_navigate_home_from_app_killswitch")){var A;(A=_.YJ(this.hostElement).querySelector(".yt-simple-endpoint"))==null||A.click()}};
_.P.computeLogoHref=function(A,L,O){var X;(O==null?0:O.onTapCommand)?X=this.componentBehavior.computeHref_(O.onTapCommand):A&&(X=this.componentBehavior.computeHref_(A));return X?X:L};
_.P.computeCommand=function(A,L){return(L==null?void 0:L.onTapCommand)||A};
_.P.getEndpointForm=function(){if(_.h("kevlar_topbar_disable_cache_only_home")){var A=_.X5().resolve(_.al),L=RA$(A.getState())||"";A=_.m4J(A.getState())||"";return{disableCache:L==="ytd-browse"&&A==="home"}}return{disableCache:!0}};
ez.prototype.onYoodleError=ez.prototype.onYoodleError;_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],ez.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],ez.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],ez.prototype,"componentBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],ez.prototype,"ytdReduxBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],ez.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",String)],ez.prototype,"countryCode",void 0);_.I([_.K({selectorArgs:["data.overrideEntityKey"],selector:function(A,L){return _.eM(A.entities,"logoEntity",L)}}),
_.Z("design:type",Object)],ez.prototype,"logoEntity",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.Z("design:type",Boolean)],ez.prototype,"showYoodle",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],ez.prototype,"yoodleError",void 0);_.I([_.K({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.Z("design:type",String)],ez.prototype,"titleText",void 0);
_.I([_.K({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.Z("design:type",String)],ez.prototype,"ariaLabelText",void 0);_.I([_.K({value:"/"}),_.Z("design:type",String)],ez.prototype,"defaultEndpointUrl",void 0);_.I([_.K({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.Z("design:type",String)],ez.prototype,"endpointUrl",void 0);
_.I([_.K({computed:"computeCommand(data.endpoint, logoEntity)"}),_.Z("design:type",String)],ez.prototype,"command",void 0);_.I([_.K(),_.Z("design:type",Object)],ez.prototype,"logoType",void 0);_.I([_.K({}),_.Z("design:type",Boolean)],ez.prototype,"useDarkThemeYoodle",void 0);_.I([_.by("yoodle-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],ez.prototype,"onYoodleError",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],ez);
_.m(ez,"ytd-topbar-logo-renderer",function(){if(qVX!==void 0)return qVX;var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return qVX=A},{mode:_.e5("kevlar_poly_si_batch_j027")?1:2});var glM=0;var wZ7=_.Vg.SEARCH_APPEND_LABEL,pZz=_.Vg.SUGGESTION_NEW_VIDEOS_TEXT,iz$=_.Vg.SUGGESTION_THUMBNAIL_LABEL,NcS=_.Vg.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,rUJ=_.xa(function(A){function L(Gj){var qQ,TM;return _.u(function(VM){if(VM.nextAddress==1)return qQ=new Request(Gj),_.e4(VM,2),VM.yield(fetch(qQ,{credentials:"include"}),4);if(VM.nextAddress!=2)return bJ(!0),_.zA(VM,0);TM=_.S4(VM);_.Rv(TM);_.qo(VM)})}
var O=A.isHighlighted;var X=A.suggestion;var x=A.onClickCallback;var J=A.onHoverUpdateCallback;var Y=A.labels;var T=A.queryBuilderFunction;var V=A.onRemoveCallback;var E=A.suggestionIndex;var n=A.generateUniqueId;var t=A.highlightedId;var b=A.useScrollMargin;var S=A.isKeyboardMode;var w=null,l=null,F=_.av("div"),R=_.av("span");A=_.d(_.uQ(!1,void 0,"CgAMgc"));var y=A.next().value,M=A.next().value,H=_.kw("a",function(Gj){Gj&&_.QZ(237477,Gj,l,function(qQ){l=qQ})}),z=_.kw("button",function(Gj){Gj&&_.QZ(237477,
Gj,l,function(qQ){l=qQ})}),a=_.py(function(Gj){if((Gj==null?void 0:Gj.button)===2)return Gj.preventDefault(),!1;
var qQ=_.Fn();qQ&&w&&_.ak(qQ,w,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var TM;x(Gj,X().text,X().index,X().entityMid,Gj==null?void 0:(TM=Gj.detail)==null?void 0:TM.wasSelectedByKeyboard);return!1}),xe=function(){return X().type===35},ur=function(){return _.h("desktop_enable_single_suggestion_highlight")},eD=function(){return _.PO("desktop_suggestions_panel_row_height")||0},gu=function(){var Gj;
return _.h("desktop_enable_new_video_metadata")&&((Gj=X())==null?void 0:Gj.hasNewVideo)===!0},ir=function(){return _.h("desktop_enable_visual_suggest")},SD=function(){return _.h("desktop_enable_entity_suggest")&&AUX(X())},HJ=function(){return X().entitySubtitle},mM=function(){return ur()?(O==null?void 0:O())||XL()&&!(S==null?0:S()):(O==null?void 0:O())||XL()},Vu=function(){var Gj=_.ms("SBOX_SETTINGS");
return xe()&&!(Gj==null?0:Gj.HIDE_REMOVE_LINK)},cn=function(){return LFQ(X(),{useEntityName:SD()})},Tj,Uu=!((Tj=_.X5().resolve(_.Ot(_.oy)))==null||!Tj()),Eg=function(){return xe()?_.h("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},DN=function(){return Y==null?void 0:Y().SUGGESTION_DISMISS_LABEL},NN=function(){return Y==null?void 0:Y().SUGGESTION_DISMISSED_LABEL};
A=_.d(_.uQ(!1,void 0,"RcUcKd"));Tj=A.next().value;var bJ=A.next().value;A=_.d(_.uQ(!1,void 0,"yGR7je"));var MN=A.next().value,Js=A.next().value,XL=MN,gJ=_.py(function(){T(R.value.innerText);return!1}),hk=_.py(function(Gj){Gj.preventDefault();
return!1}),hc=_.py(function(Gj){var qQ=X().text,TM=_.ms("SBOX_SETTINGS"),VM="https://"+(TM.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
VM+="&delq="+encodeURIComponent(qQ);(qQ=TM==null?void 0:TM.PSUGGEST_TOKEN)&&(VM+="&tok="+qQ);(TM=TM==null?void 0:TM.SESSION_INDEX)&&(VM+="&authuser="+TM);L(VM);Gj.preventDefault();(Gj=_.Fn())&&l&&_.ak(Gj,l,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");V(E==null?void 0:E());return!1}),Wn=_.py(function(){if(ur()&&(S==null?0:S()))return!1;
Js(!0);J(!0);return!1}),X0=_.py(function(){Js(!1);
J(!1);return!1}),o6=_.py(function(){M(!0);
return!1}),YV=_.py(function(){M(!1);
return!1}),LJ=_.py(function(Gj){Gj.preventDefault();
var qQ;(Gj=(qQ=X().entityThumbnailAttributionUrl)!=null?qQ:"")&&_.Sdu(Gj);return!1});
A=_.d(_.uQ("",void 0,"k9uVge"));var eZ=A.next().value,p6=A.next().value;_.r9(function(){Vu()&&p6(n==null?void 0:n(E==null?void 0:E()));F.value&&_.QZ(12453,F.value,w,function(Gj){w=Gj})});
return _.D(_.e,{cond:Tj,then:function(){var Gj={};return _.D("div",{class:_.qn("ytSuggestionComponentRemovedText",(Gj.ytSuggestionComponentLargerRemovedText=function(){return ir()},Gj)),
style:function(){return eD()>0?"height: "+eD()+"px;":""},
role:"button"},NN)},
else:function(){var Gj={},qQ={};return _.D("div",{class:_.qn("ytSuggestionComponentSuggestion",(Gj.ytSuggestionComponentSuggestionHover=function(){return!ur()},Gj.ytSuggestionComponentHighlighted=mM,Gj.ytSuggestionComponentPersonalizedSuggestion=xe,Gj.ytSuggestionComponentMweb=!1,Gj.ytSuggestionComponentLargerSuggestion=function(){return gu()||ir()},Gj.ytSuggestionComponentThumbnailSuggestion=function(){return ir()},Gj.ytSuggestionComponentRoundedSuggestion=function(){return _.h("desktop_enable_scrollable_suggestions_panel")&&
_.h("desktop_enable_suggestions_panel_padding")},Gj.ytSuggestionComponentThumbnailPadding=function(){return ir()&&!xe()},Gj)),
style:function(){return eD()>0?"height: "+eD()+"px;":""},
role:"presentation","on:mousedown":a,"on:mouseover":Wn,"on:mouseout":X0,el:F},_.D("div",{class:_.qn("ytSuggestionComponentText",(qQ.ytSuggestionComponentScrollMargin=b,qQ)),"aria-label":function(){return gu()?X().text+" "+pZz:X().text},
id:function(){return n==null?void 0:n(E==null?void 0:E())},
"on:mousedown":a,role:"option"},_.D(_.e,{cond:function(){return X().type!==33},
then:function(){return _.D(_.Ky,{icon:Eg,className:"ytSuggestionComponentIcon"})}}),_.D("div",{class:"ytSuggestionComponentLeftContainer"},_.D("span",{el:R,
role:"button",tabindex:0},_.D(_.g9,{each:cn},function(TM){return TM.bold?_.D("span",{class:"ytSuggestionComponentBold"},TM.text):_.D("span",null,TM.text)})),_.D(_.e,{cond:function(){return SD()&&!!X().entitySubtitle||gu()},
then:function(){return _.D("div",{class:"ytSuggestionComponentMetadataContainer"},_.D(_.e,{cond:function(){return SD()&&!!X().entitySubtitle},
then:function(){return _.D("div",{class:"ytSuggestionComponentEntitySubtitle"},HJ)}}),_.D(_.e,{cond:function(){return gu()},
then:function(){return _.D("div",{class:"ytSuggestionComponentNewVideoContainer"},_.D("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.D("div",{class:"ytSuggestionComponentNewVideoText"},pZz))}}))}}))),_.D("div",{class:"ytSuggestionComponentRightContainer"},_.D(_.e,{cond:function(){return ir()&&X().visualSuggestUrl!==void 0},
then:function(){var TM={};return _.D("div",{class:"ytSuggestionComponentThumbnailContainer"},_.D("img",{"aria-label":iz$,class:_.qn("ytSuggestionComponentVisualSuggestThumbnail",(TM.ytSuggestionComponentCircularFrame=function(){return SD()&&X().subtypes.includes(790)},TM.ytSuggestionComponentEntitySuggestThumbnail=function(){return SD()},TM)),
src:function(){return X().visualSuggestUrl}}),_.D(_.e,{cond:function(){return SD()&&!!X().entityThumbnailAttributionUrl},
then:function(){var VM={};return _.D("span",{title:NcS,role:"tooltip"},_.D("div",{"on:mouseover":o6,"on:mouseout":YV,"on:mousedown":LJ,class:_.qn("ytSuggestionComponentThumbnailOverlay",(VM.ytSuggestionComponentThumbnailOverlayHidden=function(){return!y()},VM))},_.D(_.Ky,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.D(_.ik,null,_.D(_.w9,{when:function(){return ir()&&Vu()}},function(){var TM={};
return _.D("button",{class:_.qn("ytSuggestionComponentRemoveLinkClearButton",(TM.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return eZ()&&eZ()===(t==null?void 0:t())},TM.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!mM()},TM)),
el:z,"on:mousedown":hc,"aria-label":DN,id:function(){return eZ()}},_.D(_.Ky,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.D(_.w9,{when:function(){return!(ir()&&X().visualSuggestUrl!==void 0)&&Vu()}},function(){var TM={};
return _.D("a",{class:_.qn("ytSuggestionComponentRemoveLink",(TM.ytSuggestionComponentRemoveLinkDark=Uu,TM.ytSuggestionComponentRemoveLinkSelected=function(){return eZ()&&eZ()===(t==null?void 0:t())},TM)),
el:H,"on:mousedown":hc,"aria-label":DN,tabindex:0,role:"button",id:function(){return eZ()}},DN)}),_.D(_.w9,{when:function(){return!1}},function(){return _.D("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":gJ,"on:mousedown":hk,role:"button","aria-label":wZ7},_.D(_.Ky,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"Jg");var KFB=_.AW(["//www.google.com/textinputassistant/","/","_tia.js"]),GzM=_.xa(function(){return _.D("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.D("button",{class:"ytdTextInputAssistantButton","on:click":_.py(function(){sYZ().inputMethodsTracker.add(3);var A,L=(A=_.ms("SBOX_SETTINGS"))==null?void 0:A.REQUEST_LANGUAGE;if(L)return _.Zx(_.JD(KFB,14,L)),!1})},_.D("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"Kg");var lGz=function(){this.cache=new Map},cUn=function(A){for(var L=_.d(A.cache.entries()),O=L.next();!O.done;O=L.next()){var X=_.d(O.value);
O=X.next().value;X=X.next().value;X.suggestions.some(function(x){return x.type===35})&&A.cache.delete(O)}};var C$z=_.Vg.SEARCH,FFQ=_.Vg.SEARCH_CLEAR_LABEL,Rdn=new _.Yx("FAKE_SUGGEST_RESPONSE");_.Y4(_.xa(function(A){function L(){o6||(o6=setTimeout(function(){LJ()},1E3))}
function O(wJ,bH,CJ){if(wJ.trim()){X0=wJ;_.QT("REFINEMENTS_TUPLE",void 0);hc=!0;var K_;bH=dMJ(MN,bH);var tc=(K_=A.searchEndpoint)==null?void 0:K_.call(A);_.WeS(wJ,bH,tc,Eg.value.value,CJ);LJ();Eg.value.value=wJ;Eg.value.blur();MN.reset()}}
function X(wJ){return _.u(function(bH){return bH.return(new Promise(function(CJ){var K_=new XMLHttpRequest;K_.open("GET",MjX(wJ),!0);K_.withCredentials=!0;var tc=_.ms("SBOX_SETTINGS");(tc==null?0:tc.SEND_VISITOR_DATA)&&K_.setRequestHeader("X-Goog-Visitor-Id",tc==null?void 0:tc.VISITOR_DATA);K_.onload=function(){CJ(K_.responseText)};
K_.onerror=function(){_.Rv(Error("pl"));CJ(null)};
setTimeout(function(){K_.abort()},1E4);
K_.send(null)}))})}
function x(wJ){var bH,CJ,K_,tc;return _.u(function($T){switch($T.nextAddress){case 1:return bH={credentials:"include",headers:BsJ()},window.AbortController&&(CJ=new AbortController,setTimeout(function(){CJ.abort("ytsbox-suggest-timeout")},1E4),bH.signal=CJ.signal),_.e4($T,2),$T.yield(fetch(MjX(wJ),bH),4);
case 4:K_=$T.yieldResult.text();_.zA($T,3);break;case 2:return tc=_.S4($T),tc!=="ytsbox-abort-last"&&tc!=="ytsbox-suggest-timeout"&&_.Rv(tc),$T.return(null);case 3:return $T.return(K_)}})}
function J(wJ){var bH,CJ,K_;return _.u(function(tc){switch(tc.nextAddress){case 1:if(bH=_.X5().resolve(_.Ot(Rdn)))return tc.return(bH);CJ=Date.now();L();return _.h("yt_searchbox_xhr")?tc.yield(X(wJ),5):tc.yield(x(wJ),4);case 4:K_=tc.yieldResult;tc.jumpTo(3);break;case 5:K_=tc.yieldResult;case 3:if(K_){o6&&(clearTimeout(o6),o6=null);var $T=MN,CB=CJ,mJ=wJ.query.length===0;CB=Date.now()-CB;mJ?$T.zeroPrefixRoundTripTime=CB:($T.JSC$21591_totalRoundTripTime+=CB,$T.maxRoundTripTime=Math.max($T.maxRoundTripTime,
CB),mJ=Math.floor(CB/100),mJ>=YV$.length?++$T.roundTripTimeHistogram[9]:++$T.roundTripTimeHistogram[YV$[mJ]])}return tc.return(K_)}})}
function Y(wJ){var bH,CJ,K_;return _.u(function(tc){if(tc.nextAddress==1)return(bH=bJ.cache.get(zHk(wJ)))?tc.return(bH):tc.yield(J(wJ),2);CJ=tc.yieldResult;if(CJ===null)return tc.return(null);K_=new Ozk(CJ);wJ.query.length===0&&K_.suggestions.length===0||bJ.cache.set(zHk(wJ),K_);return tc.return(K_)})}
function T(wJ){var bH,CJ;return _.u(function(K_){if(K_.nextAddress==1){Wn=!1;var tc=X0;tc=_.siu()==="search"?(_.yI(location.href,"search_query")||_.yI(location.href,"q"))===tc:!1;bH=new HxB(wJ,tc?X0:null);return K_.yield(Y(bH),2)}CJ=K_.yieldResult;if(CJ===null)return K_.return();bH.query.length===0&&(MN.zeroPrefixSuggestionCount=CJ.suggestions.length);if(bH.id<=YV)return MN.outOfSyncResponseCount++,K_.return();if(document.activeElement!==Eg.value)return K_.return();YV=bH.id;var $T=MN,CB=CJ.rawResponse[2]||
{};$T.experimentTriggeredBeforeFinal||($T.experimentTriggeredBeforeFinal=$T.experimentTriggeredFinal);$T.experimentTriggeredFinal=!!CB.e;MN.updateSuggestions(CJ.suggestions);F(-1);Vu([]);CJ.suggestions!==S()&&Re(CJ.suggestions.length);w(CJ.suggestions);ur(CJ.suggestions.length>0&&CJ.suggestions[0].type===33);NN&&(NN.hidden=CJ.suggestions.length===0,xe()?(NN.style.minWidth="",$T=NN.style,CB=(tc=S()[0])==null?void 0:tc.ignoredPrefix,$T.marginLeft=(CB?Math.min(CB.length*6,DN.value.offsetWidth):0).toString()+
"px"):(NN.style.minWidth=DN.value.offsetWidth+"px",NN.style.marginLeft="0"),nL());_.qo(K_)})}
function V(){if(!hc)return!1;var wJ=_.ms("REFINEMENTS_TUPLE");return wJ?(wJ=wJ[1].map(function(bH,CJ){return new oUM([bH,0,[71]],Eg.value.value,CJ)}),S()!==wJ&&Re(wJ.length),Vu([]),w(wJ),MN.updateSuggestions(wJ),hc=!1,NN.hidden=wJ.length===0,Wn=wJ.length>0,!0):!1}
function E(){var wJ=Eg.value.value;(typeof wJ==="string"||wJ instanceof String)&&wJ!==""?H(!0):H(!1)}
function n(){if(_.siu()==="search"){var wJ=window.location.href;try{var bH=_.yI(wJ,"search_query")||_.yI(wJ,"q")||""}catch(CJ){bH=""}bH&&(Eg.value.value=bH,H(!0))}}
var t=_.d(_.uQ([],void 0,"kGFAjf")),b=t.next().value;t=t.next().value;var S=b,w=t;b=_.d(_.uQ(-1,void 0,"mLGL9e"));var l=b.next().value,F=b.next().value;b=_.d(_.uQ(-1,void 0,"u2rYdc"));var R=b.next().value,y=b.next().value;b=_.d(_.uQ(!1,void 0,"W9DFC"));var M=b.next().value,H=b.next().value;b=_.d(_.uQ(!1,void 0,"Ip4dNc"));var z=b.next().value,a=b.next().value;t=_.d(_.uQ(!1,void 0,"ZNKSQb"));b=t.next().value;t=t.next().value;var xe=b,ur=t;t=_.d(_.uQ(!1,void 0,"JBrGLd"));b=t.next().value;var eD=t.next().value;
t=_.d(_.uQ(!1,void 0,"P2pD6e"));var gu=t.next().value,ir=t.next().value;t=_.d(_.uQ(1,void 0,"SjP20c"));var SD=t.next().value,HJ=t.next().value;t=_.d(_.uQ([],void 0,"h4dRaf"));var mM=t.next().value,Vu=t.next().value;t=_.d(_.uQ(!1,void 0,"TUTzaf"));var cn=t.next().value,Tj=t.next().value;t=_.h("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var Uu=_.av("yt-searchbox"),Eg=_.av("input"),DN=_.av("div"),NN,bJ=
new lGz,MN=sYZ(),Js=_.X5().resolve(_.Ot(_.oy)),XL=function(){var wJ;return((wJ=A.forceDarkMode)==null?void 0:wJ.call(A))||!(Js==null||!Js())},gJ=function(){return _.h("desktop_enable_scrollable_suggestions_panel")},hk="i"+glM++,hc=!1,Wn=!1,X0="",o6=null,YV=-1,LJ=function(){Vu([]);
w([]);ur(!1);NN&&(NN.hidden=!0);o6&&(clearTimeout(o6),o6=null);F(-1)},eZ=function(wJ,bH){wJ.preventDefault();
Tj(!0);NN&&(NN.hidden=!1);var CJ=l();wJ=S();var K_=mM();bH=HTX(bH);CJ+=bH;for(CJ>=wJ.length?CJ=-1:CJ<-1&&(CJ=wJ.length-1);CJ!==-1&&(K_.includes(CJ)||CJ>=wJ.length||CJ<0);)CJ+=bH,CJ>=wJ.length&&(CJ=-1);F(CJ);l()>=0&&(Eg.value.value=S()[l()].text,y(0),E(),wJ=l(),K_=R(),(K_=document.getElementById(MF[wJ][K_]))&&gJ()&&(wJ===S().length-1?NN.scrollTop=NN.scrollHeight:K_.scrollIntoView({block:"nearest",inline:"start"})))},p6=_.py(function(wJ){if(!(wJ.relatedTarget instanceof Element&&wJ.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){a(!0);
var bH;(bH=A.focusCallback)==null||bH.call(A,!0);V()||(Wn?NN.hidden=!1:(_.P4(Uu.value,"yt-autonav-pause-focus",{}),T(wJ.target.value)))}}),Gj=_.py(function(wJ){if(!(wJ.relatedTarget instanceof Element&&wJ.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){a(!1);
var bH;(bH=A.focusCallback)==null||bH.call(A,!1);NN.scrollTop=0;NN.hidden=!0;_.P4(Uu.value,"yt-autonav-pause-blur",{})}}),qQ=function(wJ){wJ=HTX(wJ);
var bH;((bH=MF[l()])==null?0:bH[R()+wJ])&&y(R()+wJ)},TM=_.py(function(wJ){var bH=wJ.target;
switch(wJ.keyCode){case 13:wJ.preventDefault();var CJ;if((CJ=MF[l()])==null?0:CJ[R()]){var K_;(K_=document.getElementById(MF[l()][R()]))==null||K_.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}wJ=wJ.shiftKey?4:3;CJ=MN;K_=l();CJ.selectedSuggestionIndex=K_;O(bH.value,wJ);break;case 27:NN&&(NN.hidden=!0);break;case 40:eZ(wJ,40);break;case 38:eZ(wJ,38);break;case 39:qQ(39);break;case 37:qQ(37);break;case 229:MN.inputMethodsTracker.add(4);break;default:MN.inputMethodsTracker.add(1),
JUS(MN)}return!1}),VM=_.py(function(wJ){T(wJ.target.value);
E();gJ()&&NN&&(NN.scrollTop=0);return!1}),pm=_.py(function(){MN.inputMethodsTracker.add(2);
JUS(MN);return!1});
_.r9(function(){if(NN){MN.reset();if(window.ResizeObserver){var wJ=new ResizeObserver(function(){xe()||(NN.style.minWidth=DN.value.offsetWidth+"px")});
wJ.observe(DN.value);(new ResizeObserver(function(){nL()})).observe(NN);
_.rF(function(){wJ.disconnect()})}n();
window.addEventListener("yt-navigate-finish",n);window.addEventListener("yt-focus-searchbox",function(){Eg.value.focus()});
var bH;eD((bH=_.ms("SBOX_SETTINGS"))==null?void 0:bH.HAS_ON_SCREEN_KEYBOARD)}else _.C7(new _.pe("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var U0=_.py(function(wJ){wJ.preventDefault();O(Eg.value.value,12);return!1}),$V=_.py(function(wJ){wJ.preventDefault();
var bH,CJ;(bH=Eg)==null||(CJ=bH.value)==null||CJ.focus();var K_,tc;((K_=Eg)==null?void 0:(tc=K_.value)==null?void 0:tc.value)!==""&&(Eg.value.value="",Eg.value.dispatchEvent(new Event("input")));return!1}),QM=_.py(function(){var wJ=Qkn(Eg.value.value,S().filter(function(bH){return bH.type!==35}).map(function(bH){return{label:bH.text}}));
_.dQ(Uu.value,"yt-open-popup-action",[{openPopupAction:wJ},document.body]);return!1}),OB=_.py(function(){Eg.value.focus();
return!1}),XP=function(wJ,bH,CJ,K_,tc){MN.selectedSuggestionIndex=CJ;
O(bH,tc?3:1,K_)},gR=function(wJ){Eg.value.value=wJ;
Eg.value.dispatchEvent(new Event("input"));MN.inputMethodsTracker.add(5);JUS(MN,!0)},MF=[[]],ko=function(wJ){var bH="searchbox-suggestion"+_.jr(_.IY);
MF[wJ].push(bH);return bH},Re=function(wJ){if(S()){MF=[[]];
for(var bH=0;bH<wJ;bH++)MF.push([])}},nL=function(){if(gJ()){var wJ=NN,bH=wJ.scrollTop;
wJ=wJ.scrollHeight-wJ.clientHeight;ir(bH>=wJ);bH=Math.abs(wJ-bH);bH<=40?HJ(1-(40-bH)/40):HJ(1)}},aF=function(){return"opacity: "+SD()*100+"%"},ru=_.py(function(){nL();
return!1}),f9=_.py(function(){Tj(!1);
return!1}),zO,S3={},uJ={},cf={},gB={};
return _.D("yt-searchbox",{class:_.qn("ytSearchboxComponentHost",(S3.ytSearchboxComponentMweb=!1,S3.ytSearchboxComponentDesktop=!0,S3["yt-searchbox-filled-query"]=function(){return M()},S3["ytd-masthead"]=function(){return!z()},S3.ytSearchboxComponentHostDark=XL,S3)),
role:"search",el:Uu,"client-ve-type":10349},_.D("div",{el:DN,"on:click":OB,class:_.qn("ytSearchboxComponentInputBox",(uJ.ytSearchboxComponentInputBoxDark=XL,uJ.ytSearchboxComponentInputBoxHasFocus=z,uJ))},_.D("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":U0},_.D(_.e,{cond:z,then:function(){return _.D("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.D(_.Ky,{icon:"SEARCH"}))}}),_.D("input",{el:Eg,
class:_.qn("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":hk,"aria-expanded":!((zO=NN)==null?0:zO.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:!1,"on:blur":Gj,"on:focus":p6,"on:input":VM,"on:keydown":TM,"on:paste":pm,placeholder:A.placeholderText,"aria-activedescendant":function(){var wJ;return(wJ=MF[l()])==null?void 0:wJ[R()]},
"aria-autocomplete":"list",role:"combobox"})),_.D(_.e,{cond:b,then:function(){return _.D("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.D(GzM,null))}}),_.D(_.e,{cond:M,
then:function(){return _.D("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.D("button",{class:"ytSearchboxComponentClearButton","on:click":$V,"aria-label":A.clearButtonAriaLabel||FFQ},_.D(_.Ky,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.D(_.cx,{model:{}})))}})),_.D("button",{class:_.qn("ytSearchboxComponentSearchButton",(cf.ytSearchboxComponentSearchButtonDark=XL,cf)),
"on:click":U0,"aria-label":C$z,title:A.placeholderText},_.D(_.Ky,{icon:"SEARCH"})),_.D(_.e,{cond:function(){if(URX()&&_.h("mweb_voice_search")&&A.voiceSearchButton)return A.voiceSearchButton()},
then:function(wJ){var bH={};return _.D("div",{class:_.qn("ytSearchboxComponentVoiceSearchWrapper",(bH.ytSearchboxComponentHideVoiceSearchButton=function(){return M()},bH))},_.D(_.ID,{data:wJ},{buttonRenderer:function(CJ){return _.D(_.AN,{data:CJ.data,
onButtonClickCallback:function(){}})}}))}}),_.D("div",{el:_.sC(function(wJ){return void(NN=wJ)}),
id:hk,class:_.qn("ytSearchboxComponentSuggestionsContainer",(gB.ytSearchboxComponentSuggestionsContainerDark=XL,gB["yt-searchbox-suggestions-container"]=!1,gB.ytSearchboxComponentSuggestionsContainerScrollable=gJ(),gB.ytSearchboxComponentSuggestionsContainerAnimated=t,gB)),"on:scroll":ru,"on:mousemove":f9,role:"listbox",hidden:!0},_.D(_.g9,{each:S},function(wJ,bH){return _.D(rUJ,{suggestion:wJ,isHighlighted:function(){return bH()===l()},
onClickCallback:XP,onHoverUpdateCallback:function(CJ){if(_.h("desktop_enable_single_suggestion_highlight")){var K_=bH();CJ&&(y(0),F(K_))}},
onRemoveCallback:function(CJ){cUn(bJ);CJ===void 0||CJ<0||mM().includes(CJ)||Vu([].concat(_.le(mM()),[CJ]))},
labels:A.labels,queryBuilderFunction:gR,suggestionIndex:bH,generateUniqueId:ko,highlightedId:function(){var CJ;return(CJ=MF[l()])==null?void 0:CJ[R()]},
useScrollMargin:gJ(),isKeyboardMode:cn})}),_.D(_.e,{cond:function(){return!xe()&&S().find(function(wJ){return wJ.type!==35})&&_.h("searchbox_reporting")},
then:function(){return _.D("button",{class:"ytSearchboxComponentReportButton","on:mousedown":QM},_.b3("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.D(_.e,{cond:function(){return!gu()&&gJ()},
then:function(){return _.D("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.D("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:aF}))}})))},"Lg"),"yt-searchbox",{props:{searchEndpoint:_.x5,
placeholderText:_.x5,labels:_.x5,voiceSearchButton:_.x5,focusCallback:_.dl,clearButtonAriaLabel:_.x5,forceDarkMode:_.x5}});var Ey=function(){var A=_.G.apply(this,arguments)||this;A.menuButtonTargetId="topbar-guide-menu";A.narrow=!1;A.menuStrings={BACK_ALT_LABEL:_.b3("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.b3("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.b3("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.b3("SBOX_PLACEHOLDER",void 0,"Search")};A.pageDarkTheme=document.documentElement.hasAttribute("dark");A.watchPageScrollTop=0;A.theater=!1;A.fullscreen=!1;A.disableFrostedGlassDuringViewTransition=
!1;A.desktopUnifiedSearchPanelMode=_.h("desktop_enable_unified_search_panel");A.cinematicTheaterMode=_.h("web_cinematic_theater_mode");A.ytSearchboxFocused=!1;A.searchboxLabels=_.ms("SBOX_LABELS");A.topbarIsAboveChipbar=!1;A.isDarkThemeForced=!1;A.areGhostCardsHidden=!1;A.guideKeyboardToggle=!1;A.voiceSearchManager=vZS();A.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};A.setYtSearchboxFocused=function(L){A.ytSearchboxFocused=
L};
A.toggleFrostedGlassDuringViewTransition=function(L){A.disableFrostedGlassDuringViewTransition=L};
return A};
_.g(Ey,_.G);_.P=Ey.prototype;_.P.computeSimpleText=function(A){return _.vG(A)};
_.P.onDarkChanged=function(){for(var A=_.d(this.buttons||[]),L=A.next();!L.done;L=A.next())L.value.isOverlay=!!this.dark;A=_.d(this.buttonRenderers||[]);for(L=A.next();!L.done;L=A.next())L.value.overrides=this.computeButtonOverride()};
_.P.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.P.configureRendererStamper=function(){return{"data.interstitial":{id:"interstitial",mapping:{consentBumpV2Renderer:"ytd-consent-bump-v2-renderer"}},"data.voiceSearchButton":{id:"voice-search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapVoiceButton]]",overrides:"[[buttonOverrides]]"}}},reuseComponents:!1},"data.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},
notificationTopbarButtonRenderer:{component:"ytd-notification-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},iconBadgeTopbarButtonRenderer:{component:"ytd-icon-badge-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},topbarMenuButtonRenderer:"ytd-topbar-menu-button-renderer"},initialRenderPriority:1},"data.a11ySkipNavigationButton":{id:"skip-navigation",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.P.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var A=_.UU(_.kq(),"aa");_.TK(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||A||(this.isDarkThemeForced=this.dark=!0);this.logoType?(A=this.hostElement.querySelector("#masthead-logo"))&&(_.h("polymer_on_demand_shady_dom")?A.setAttribute("slot","masthead-logo-old"):_.hg(A)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.tT(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.tT(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.P.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.tT(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.tT(this,this.onSetTheaterModeEnabled))};
_.P.dataChanged=function(){var A=this.data;A&&(this.voiceEnabled=A.voiceSearchButton?vZS().isSupported():!1,_.Zp6(_.Q6(),this.menuButtonTargetId,this.guideButton),A.onReceivedActions&&A.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.VN(this.hostElement,A.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&A&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.TK(this.hostElement,"dark",!1),_.TK(this.hostElement,"theater",!1),
(A=this.hostElement.querySelector("#masthead-logo"))&&(_.h("polymer_on_demand_shady_dom")?A.setAttribute("slot","masthead-logo-old"):_.hg(A))))};
_.P.computeCenterHidden=function(){var A;return this.data&&!((A=this.data.searchbox)==null?0:A.fusionSearchboxRenderer)};
_.P.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.TK(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.P.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.P.onWatchScroll=function(A){this.watchPageScrollTop=A.detail||0;this.updateMastheadBackgroundOpacity()};
_.P.onFullscreenChangeAction=function(A){A||(this.watchPageScrollTop=0);this.fullscreen=A;this.updateMastheadBackgroundOpacity()};
_.P.onSetTheaterModeEnabled=function(A){this.theater=A.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.P.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.P.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.P.setBackgroundOpacity=function(A){A=this.calculateBackgroundOpacity(A);this.background.style.opacity=""+A};
_.P.calculateBackgroundOpacity=function(A){var L=this.theater&&this.cinematicTheaterMode?.6:0,O=this.hostElement.clientHeight/2;return Math.min(Math.max(A,0),O)/O*(1-L)+L};
_.P.shouldShowCinematicMastHead=function(){var A=_.h("kevlar_watch_grid")&&!_.h("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(A||this.pageDarkTheme)};
_.P.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.P.focusGuide=function(){this.guideButton.focus()};
_.P.onGuideToggleTap=function(){_.P4(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.P.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.P.onGuideToggleHover=function(){_.P4(this.hostElement,"yt-guide-hover")};
_.P.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.P.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.P.closeOnOutsideClickCondition=function(A){for(A=_.oa(A);A[0];){var L=A.shift();if(L instanceof Element&&L.id==="kbd")return!1}return!0};
_.P.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.P.pausePlayer=function(){var A;(A=_.d0())==null||A.pause();this.pauseMiniplayer()};
_.P.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var A;(A=_.X5().resolve(_.z_).getPlayerElement())==null||A.pause()}};
_.P.isMiniplayerActive=function(){return _.X5().resolve(_.z_).isMiniplayerActive()};
_.P.updateNarrowFromBinding=function(A){this.narrow=A.detail.value};
_.P.onYtSendFeedbackAction=function(){_.dQ(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.P.registerWithViewTransitionManager=function(){VOB(_.X5().resolve(_.iY),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.v2.Object.defineProperties(Ey.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.h("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 A;return(A=this.data)==null?void 0:A.voiceSearchButton}}}});
Ey.prototype.narrowChanged=Ey.prototype.narrowChanged;Ey.prototype.onWatchPageChange=Ey.prototype.onWatchPageChange;Ey.prototype.onRendererStamperFinished=Ey.prototype.onRendererStamperFinished;Ey.prototype.dataChanged=Ey.prototype.dataChanged;Ey.prototype.onDarkChanged=Ey.prototype.onDarkChanged;_.I([_.N(_.y9),_.Z("design:type",Object)],Ey.prototype,"ironResizableBehavior",void 0);_.I([_.N(_.y0M),_.Z("design:type",Object)],Ey.prototype,"ytdExpandableInputBehavior",void 0);
_.I([_.N(_.kr.YtdGuideStateAwareBehavior),_.Z("design:type",Object)],Ey.prototype,"ytdGuideStateAwareBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Ey.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],Ey.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Ey.prototype,"ytRendererBehavior",void 0);
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],Ey.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.HL),_.Z("design:type",Object)],Ey.prototype,"ytdReduxBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Ey.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],Ey.prototype,"narrow",void 0);_.I([_.K(),_.Z("design:type",Object)],Ey.prototype,"logoType",void 0);_.I([_.K(),_.Z("design:type",Boolean)],Ey.prototype,"voiceEnabled",void 0);
_.I([_.K(),_.Z("design:type",Object)],Ey.prototype,"menuStrings",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Ey.prototype,"dark",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Ey.prototype,"pageDarkTheme",void 0);_.I([_.K(),_.Z("design:type",Object)],Ey.prototype,"watchPageScrollTop",void 0);_.I([_.K({reflectToAttribute:!0,selector:_.fY}),_.Z("design:type",Boolean)],Ey.prototype,"isWatchPage",void 0);
_.I([_.K({reflectToAttribute:!0,selector:_.Z2u}),_.Z("design:type",Boolean)],Ey.prototype,"isShortsPage",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Ey.prototype,"theater",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Ey.prototype,"fullscreen",void 0);_.I([_.K({reflectToAttribute:!0,selector:_.zse}),_.Z("design:type",String)],Ey.prototype,"frostedGlassMode",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Ey.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.I([_.K(),_.Z("design:type",Object)],Ey.prototype,"ytSearchboxFocused",void 0);_.I([_.gd("#buttons > *"),_.Z("design:type",Array)],Ey.prototype,"buttons",void 0);_.I([_.gd("ytd-button-renderer"),_.Z("design:type",Array)],Ey.prototype,"buttonRenderers",void 0);_.I([_.qR("#background"),_.Z("design:type",HTMLDivElement)],Ey.prototype,"background",void 0);
_.I([_.qR("#guide-button"),_.Z("design:type",Object)],Ey.prototype,"guideButton",void 0);_.I([_.qR("#logo"),_.Z("design:type",Object)],Ey.prototype,"logo",void 0);_.I([_.K({computed:"computeButtonOverride(dark)"}),_.Z("design:type",Object)],Ey.prototype,"buttonOverrides",void 0);_.I([_.iy("dark"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ey.prototype,"onDarkChanged",null);_.I([_.K({value:function(){return this.onVoiceTap.bind(this)}}),
_.Z("design:type",Function)],Ey.prototype,"boundOnTapVoiceButton",void 0);_.I([_.K(),_.Z("design:type",Object)],Ey.prototype,"topbarIsAboveChipbar",void 0);_.I([_.K(),_.Z("design:type",String),_.Z("design:paramtypes",[])],Ey.prototype,"guideIcon",null);_.I([_.r("voiceEnabled"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Ey.prototype,"shouldShowVoiceSearchButton",null);_.I([_.r("data"),_.Z("design:type",Object),_.Z("design:paramtypes",[])],Ey.prototype,"voiceSearchButton",null);
_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ey.prototype,"dataChanged",null);_.I([_.by("yt-rendererstamper-finished"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ey.prototype,"onRendererStamperFinished",null);_.I([_.iy("isWatchPage"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ey.prototype,"onWatchPageChange",null);
_.I([_.iy("narrow"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Ey.prototype,"narrowChanged",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-masthead"})],Ey);
_.m(Ey,"ytd-masthead",function(){if(SVS!==void 0)return SVS;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return SVS=A},{mode:_.e5("kevlar_poly_si_batch_j036")?1:2});var QYS;var mMk={},fG$={},IGz={},yUn={},ZzQ=(yUn.OFFLINE=(mMk["publicytnetworkstatus-online"]="BACK_ONLINE",mMk),yUn.ONLINE=(fG$["publicytnetworkstatus-offline"]="OFFLINE",fG$),yUn.BACK_ONLINE=(IGz["publicytnetworkstatus-offline"]="OFFLINE",IGz.TIMER_TRIGGER="ONLINE",IGz),yUn),n1=function(){var A=_.G.apply(this,arguments)||this;A.currentState="ONLINE";A.scheduledJobId=0;A.bannerString="";A.bannerVe=null;A.networkStatusManagerInstance=new _.H1;return A};
_.g(n1,_.G);_.P=n1.prototype;_.P.attached=function(){var A=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){A.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){A.stateChangeHandler("publicytnetworkstatus-offline")})};
_.P.detached=function(){var A=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){A.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){A.stateChangeHandler("publicytnetworkstatus-offline")})};
_.P.enterState=function(A){var L=this;this.scheduledJobId&&_.c1.cancelJob(this.scheduledJobId);A==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):A==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.b3("NO_INTERNET_CONNECTION",void 0,"No internet connection")):A==="BACK_ONLINE"&&(this.bannerString=_.b3("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.p7(_.c1,function(){L.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=A};
_.P.stateChangeHandler=function(A){(A=ZzQ[this.currentState][A])&&this.enterState(A)};
_.P.logVisibility=function(A){var L=_.Fn();this.createBannerVe(A);L&&this.bannerVe&&(A?_.B4(L,[this.bannerVe]):_.MG(L,[this.bannerVe]))};
_.P.createBannerVe=function(A){!this.bannerVe&&A&&(this.bannerVe=_.tI(37929),_.qB(_.iV(),this.bannerVe))};
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",String)],n1.prototype,"currentState",void 0);_.I([_.K(),_.Z("design:type",Object)],n1.prototype,"scheduledJobId",void 0);_.I([_.K(),_.Z("design:type",Object)],n1.prototype,"bannerString",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-network-status-banner"})],n1);
_.m(n1,"ytd-network-status-banner",function(){if(QYS!==void 0)return QYS;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return QYS=
A},{mode:1});var jYS;var tK=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};A.hidden=!0;A.frostedGlass=_.h("web_frosted_glass");return A};
_.g(tK,_.G);tK.prototype.computeHidden=function(A){return A&&A.status?!1:!0};
tK.prototype.handleUpdatePermissionRoleCommand=function(A){if(A=_.q(A,_.rBJ))if(A=_.q(A.renderer,_.NS7))this.data=A};
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],tK.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],tK.prototype,"componentBehavior",void 0);_.I([_.K({value:!0,computed:"computeHidden(data)"}),_.Z("design:type",Object)],tK.prototype,"hidden",void 0);_.I([_.K(),_.Z("design:type",Object)],tK.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],tK.prototype,"frostedGlass",void 0);
_.I([_.Q({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],tK);
_.m(tK,"ytd-permission-role-bottom-bar-renderer",function(){if(jYS!==void 0)return jYS;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return jYS=A},{mode:1});var WF$;var Hzk;var zkZ={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var bz=function(){return _.G.apply(this,arguments)||this};
_.g(bz,_.G);_.P=bz.prototype;_.P.attached=function(){this.JSC$21694_scroller&&(this.JSC$21694_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21694_scroller.attached&&typeof this.JSC$21694_scroller.attached==="function"&&this.JSC$21694_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(O){O.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var A=_.YJ(this.hostElement);A.querySelector("tp-yt-paper-radio-group").selected="";var L=A.querySelector("#reason-text");L&&(L.value="");A.querySelector("#description-text").value=""}};
_.P.canSubmit=function(A,L){_.P4(this.hostElement,"yt-invalidate-popup-tabbables");return!(A&&L)};
_.P.onCancel=function(){_.dQ(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.P.onSubmit=function(){var A=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(J){return J.active}).map(function(J){return J.innerText.trim()}),L=this.hostElement.querySelector("tp-yt-paper-radio-group"),O=L.selectedItem,X=O.name;
O=O.innerText.trim();var x=L.querySelector("#reason-text");L=void 0;x&&(L=x.value);(x=this.descriptionText.value)&&(x=x.trim());BWM(this.data.searchQuery,A,X,O,x,L);_.dQ(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.P.sendFormSubmitToast=function(){var A=_.XZ(_.b3("SBOX_INAPPROPRIATE_TOAST"));_.dQ(this.hostElement,"yt-open-popup-action",[A,this])};
_.P.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(A){return A.active})};
_.P.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
bz.prototype.onIronSelect=bz.prototype.onIronSelect;bz.prototype.onIronChange=bz.prototype.onIronChange;bz.prototype.dataChanged=bz.prototype.dataChanged;_.I([_.K(),_.Z("design:type",Object)],bz.prototype,"data",void 0);_.I([_.K({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.Z("design:type",Boolean)],bz.prototype,"submitDisabled",void 0);_.I([_.K(),_.Z("design:type",Boolean)],bz.prototype,"suggestionSelected",void 0);
_.I([_.K(),_.Z("design:type",Boolean)],bz.prototype,"catagorySelected",void 0);_.I([_.qR("#scroller"),_.Z("design:type",Object)],bz.prototype,"JSC$21694_scroller",void 0);_.I([_.qR("#description-text"),_.Z("design:type",Object)],bz.prototype,"descriptionText",void 0);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],bz.prototype,"dataChanged",null);
_.I([_.by("iron-change"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],bz.prototype,"onIronChange",null);_.I([_.by("iron-select"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],bz.prototype,"onIronSelect",null);_.I([_.Q({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],bz);
_.m(bz,"ytd-search-suggestion-report-dialog",function(){if(Hzk!==void 0)return Hzk;var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);return Hzk=A},{mode:1});var hK=function(A){var L=A.openPopupAction;var O=A.target;var X=A.container;var x=A.popupContainerConfig;var J=A.getElement;A=A.removeWhenClosed===void 0?!1:A.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=L;this.target=O;this.container=X;this.popupContainerConfig=x;this.getElement=J;this.JSC$21700_popupConfig=this.popupContainerConfig.JSC$20816_popupConfig[this.openPopupAction.popupType];this.rendererName=(L=this.getName())?_.cI_(L,GwZ(this.popupContainerConfig,
L)):"";_.h("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=A);this.createPopup()};
hK.prototype.updatePopup=function(A){this.openPopupAction=A;this.JSC$21700_popupConfig=this.popupContainerConfig.JSC$20816_popupConfig[this.openPopupAction.popupType];zdZ(this);_.h("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
hK.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var $Mn=function(A,L,O){(L=L&&A.JSC$21700_popupConfig.narrowProperties?A.JSC$21700_popupConfig.narrowProperties:A.JSC$21700_popupConfig.properties)&&O!==void 0&&(L.isAriaModal=O);BcS(A,L);A.isRtl()&&BcS(A,A.JSC$21700_popupConfig.rtlProperties);MkS(A)};
hK.prototype.createPopup=function(){var A=this.JSC$21700_popupConfig.component;if(this.popupContent=aGS(this,this.rendererName)){if(A){this.popup=aGS(this,A);var L=this.popupContent;_.h("web_enable_wrapper_for_cow_component_in_popup")&&(L=document.createElement("div"),L.appendChild(this.popupContent));_.h("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$21700_popupConfig.slotName&&L.setAttribute("slot",this.JSC$21700_popupConfig.slotName);A=this.popup;var O=this.container.tagName.toLowerCase(),
X=_.L4(L);_.dLs(_.XS(A),_.JT(L,O,X));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.h("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.YJ(this.container).appendChild(this.popup)}};
var zdZ=function(A){var L,O,X=(L=A.openPopupAction.accessibilityData)==null?void 0:(O=L.accessibilityData)==null?void 0:O.label;X&&(A.popup.ariaLabel=X);var x;((x=A.popupContent.polymerController)!=null?x:A.popupContent).data=(0,_.lW.unsafeClone)(A.openPopupAction.popup[A.getName()]);A.popupContent.duration=kzk(A);A.popupContent.positionType=A.openPopupAction.position;var J=A.openPopupAction.properties;J&&Object.keys(J).forEach(function(Y){A.popupContent[Y]=J[Y]})},BcS=function(A,L){if(L)for(var O=
_.d(Object.keys(L)),X=O.next();!X.done;X=O.next())X=X.value,A.popup[X]=L[X]},MkS=function(A){if(A.openPopupAction.position){var L=A.JSC$21700_popupConfig.positionalProperties&&A.JSC$21700_popupConfig.positionalProperties[A.openPopupAction.position],O=A.JSC$21700_popupConfig.rtlPositionalProperties&&A.JSC$21700_popupConfig.rtlPositionalProperties[A.openPopupAction.position];
L=A.isRtl()&&O?O:L;L.shiftedHorizontalOffset&&(O=A.popup.style.display,A.popup.style.display="block",A.popupContent&&A.popup.positionTarget&&A.popupContent.clientWidth>A.popup.positionTarget.clientWidth&&(L.horizontalOffset=A.popup.positionTarget.clientWidth/2-L.shiftedHorizontalOffset),A.popup.style.display=O);BcS(A,L)}},UMz=function(A,L){if(L)for(var O=_.d(Object.keys(L)),X=O.next();!X.done;X=O.next())X=X.value,A.popup.style[X]=L[X]};
hK.prototype.getName=function(){return _.Fs(this.openPopupAction.popup,"renderer")||_.Fs(this.openPopupAction.popup,"dialog")||_.Fs(this.openPopupAction.popup,"model")||void 0};
var kzk=function(A){A=A.openPopupAction.durationHintMs;return A===0?A:Math.max(4E3,A||4E3)};
hK.prototype.isRtl=function(){return _.ms("HTML_DIR")==="rtl"};
var aGS=function(A,L){A=A.getElement(L,A.target);A==null&&_.Rv(new _.pe("popup getElement returned null",L));return A};var vlB={};
vlB.YtPopupContainerBehavior=[_.v$.YtComponentBehavior,_.es.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction",
"yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set;this.isAriaModal=!1},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.xK(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.Jz(this.hostElement)},
closePopup:function(A){var L=this.createCacheKey(void 0,A);this.popups_[L]&&this.handleClosePopupAction_(void 0,A)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.c1.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.c1.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(A){A.opened&&A.keepBelowPlayer&&this.ensurePopupBelowPlayer(A)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var A in this.popups_){var L=this.popups_[A];if(L.popup.scrollAction==="refit"){var O=L.popup.positionTarget.getBoundingClientRect(),X=L.popup;O=O.top;var x=L;if(!x.naturalHeight){x.popup.hidden=!1;x.popup.style.position="fixed";x.popup.style.top="0px";x.popup.style.left="0px";var J=x.popup.getBoundingClientRect();x.naturalHeight=J.bottom-J.top;x.popup.refit()}X.hidden=!(O>=x.naturalHeight+60);L.popupContent.clientHeight===0&&L.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(A){this.popupContainerConfig=A},
handleOpenPopupAction:function(A,L){var O=A.openPopupAction,X=_.X5().resolve(_.Ot(_.N8))&&O.popupType==="TOAST";X&&!O.uniqueId&&(O.uniqueId=_.kE());if(!_.h("popup_container_parent_target_killswitch")){var x;L=(x=this.getParentTarget(L))!=null?x:L}var J=this.ensurePopup_(O,L);return new _.eJ(function(Y){J.then(function(T){if(!T)return Y();this.maybeCreateNarrowMediaQuery_();var V=this.createCacheKey(T.rendererName,T.openPopupAction.uniqueId);if(O.showOncePerUniqueId){if(this.shownPopupKeys_.has(V))return Y();
this.shownPopupKeys_.add(V)}V=this.popups_[V];var E=!(!V||!V.openPopupAction.beReused);E=!!O.reusePopup||E;if(T.popup.opened&&!E){X&&!T.openPopupAction.replacePopup||this.handleClosePopupAction_(T.rendererName,T.openPopupAction.uniqueId);E=O.popupType==="DIALOG"&&!_.h("popup_container_dialog_reopen_killswitch");if(!X&&!E&&V&&V.target==L&&!T.openPopupAction.replacePopup)return Y();_.kd(T.popup,function(){this.completeOpenPopupAction_(O,L,T);Y()}.bind(this))}else T.popup.opened?T.updatePopup(O):this.completeOpenPopupAction_(O,
L,T),Y()}.bind(this))}.bind(this))},
getParentTarget:function(A){if(A&&A instanceof HTMLElement)for(var L=_.d(Object.entries(this.popups_)),O=L.next();!O.done;O=L.next())if(O=_.d(O.value),O.next(),O=O.next().value,O.popup.tagName==="TP-YT-IRON-DROPDOWN"&&A.closest(O.rendererName))return O.target},
completeOpenPopupAction_:function(A,L,O){O.updatePopup(A);A=this.narrowMediaQuery_.queryMatches;var X=this.isAriaModal;O.target=L;var x;L=((x=O.target.polymerController)!=null?x:O.target).popupPositionTarget||O.target;O.JSC$21700_popupConfig.targetContainer&&(L=O.container);O.popup.positionTarget=L;O.popupContent.positionTarget=L;MkS(O);O.JSC$21700_popupConfig.forceFocus&&(O.popupContent.style.outline="none");O.popupContent.tabIndex=-1;O.JSC$21700_popupConfig.narrowProperties&&(O.popup.style.position=
"static");O.JSC$21700_popupConfig.preventAutonav&&O.popup.setAttribute("prevent-autonav",!0);O.JSC$21700_popupConfig.forceCloseOnOutsideClick&&O.popup.setAttribute("force-close-on-outside-click",!0);$Mn(O,A,X);UMz(O,O.JSC$21700_popupConfig.styles);O.isRtl()&&UMz(O,O.JSC$21700_popupConfig.rtlStyles);if(!O.openPopupAction.shouldStopParentSignal){var J;x=(J=O.target.polymerController)!=null?J:O.target;(O.popupContent.startForwardingEvents||O.popupContainerConfig.forwardingEnabledPopups.has(O.rendererName))&&
x.parentComponent!==O.popupContent&&O.popupContent!==O.target&&O.target!==document.body&&(O.popupContent.startForwardingEvents?O.popupContent.startForwardingEvents(O.popupContainerConfig.forwardedEvents,O.target):(O.JSC$21700_eventForwarder||(O.JSC$21700_eventForwarder=new _.eO(O.popupContent)),O.JSC$21700_eventForwarder.start(O.popupContainerConfig.forwardedEvents,O.target)))}O=O.popup;O.addEventListener("iron-overlay-opened",_.tT(this,this.onPopupIronOverlayOpened_));O.addEventListener("iron-overlay-closed",
_.tT(this,this.onPopupIronOverlayClosed_));O.addEventListener("iron-overlay-canceled",_.tT(this,this.onPopupIronOverlayCanceled_));O.addEventListener("yt-refit",_.tT(this,this.refitPopup_));O.addEventListener("yt-invalidate-popup-tabbables",_.tT(this,this.handleInvalidatePopupTabbables_));O.open()},
getPopupDurationMs_:function(A){return A.durationHintMs===0?A.durationHintMs:Math.max(4E3,A.durationHintMs||4E3)},
handleClosePopupAction_:function(A,L){var O=_.h("web_popup_cache_key_killswitch")||!!L;if(A||O){var X=this.createCacheKey(A,L);A=(A=this.popups_[X])&&A.popup}else A=_.VOJ(_.vi);if(A&&A.close){if(L=_.X5().resolve(_.Ot(_.bv)))A.restoreFocusOnClose=L.isKeyBoardInUse();A.close();this.removePopup_(A,X)}},
handleClosePopupCommand_:function(A){A.closePopupCommand&&A.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,A.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(A){var L={},O;for(O in this.popups_)if(L={key$jscomp$1184:L.key$jscomp$1184},L.key$jscomp$1184=O,!A||!A.some(function(J){return function(Y){return Y==J.key$jscomp$1184}}(L))){var X=this.popups_[L.key$jscomp$1184],x=X.popup;
_.X5().resolve(_.Ot(_.N8))&&X.openPopupAction.popupType==="TOAST"||(x&&x.close&&x.close(),this.removePopup_(x,L.key$jscomp$1184))}},
handleClosePopupsAction_:function(A){A.forEach(function(L){var O=this.popups_[L];O&&((O=O.popup)&&O.close&&O.close(),this.removePopup_(O,L))}.bind(this))},
handleGetPopupOpenedAction_:function(A,L){return(L=this.createCacheKey(A,L))&&this.popups_[L]?this.popups_[A].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var A=[],L;for(L in this.popups_){var O=this.popups_[L];O.popup.opened&&A.push(O)}return A},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(A,L){_.h("ytpopup_disable_default_html_caching")&&A&&A.removeWhenClosed&&(_.YJ(this.hostElement).removeChild(A),L&&this.popups_[L]&&delete this.popups_[L])},
shouldReusePopup_:function(A){return!(!A||!A.reusePopup)||!(!A||!A.beReused)},
ensurePopup_:function(A,L){this.maybeCreateNarrowMediaQuery_();var O=_.Fs(A.popup,"renderer")||_.Fs(A.popup,"dialog")||_.Fs(A.popup,"model");if(!O)return _.DQ();O=_.cI_(O,GwZ(this.popupContainerConfig,O));return _.DQ(this.getAndMaybeCreatePopup_(A,O,L))},
getAndMaybeCreatePopup_:function(A,L,O){var X=this.createCacheKey(L,A.uniqueId);if(this.popups_[X])return this.popups_[X];A=new hK({openPopupAction:A,target:O,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(L)});return this.popups_[X]=A},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(A){return _.h("ytpopup_disable_default_html_caching")?A&&A.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",_.tT(this,this.openPopupQueryMatchesChanged_)),_.YJ(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(A){A=A.detail.value;for(var L in this.popups_)$Mn(this.popups_[L],A)},
onPopupIronOverlayClosed_:function(A){var L=A.currentTarget,O=_.KPu(L);O=O.length>0?O[0]:L;if(O.is!=="ytd-reel-watch-while-dialog-renderer"||A.target.is!=="tp-yt-iron-dropdown"){A.detail.popup=L;A.detail.popupRenderer=O;var X,x={context:{openingElement:((X=this.popups_[(O==null?void 0:O.is)||""])==null?void 0:X.target)||void 0}};Object.assign(x,A.detail);var J;_.P4((J=O.hostElement)!=null?J:O,"yt-popup-closed",x);L.removeEventListener("yt-refit",_.tT(this,this.refitPopup_));L.removeEventListener("yt-invalidate-popup-tabbables",
_.tT(this,this.handleInvalidatePopupTabbables_));L.removeEventListener("iron-overlay-canceled",_.tT(this,this.onPopupIronOverlayCanceled_));L.removeEventListener("iron-overlay-closed",_.tT(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(L)}},
onPopupIronOverlayCanceled_:function(A,L){var O=A.currentTarget,X=_.KPu(O);X=X.length>0?X[0]:O;if(X.is!=="ytd-reel-watch-while-dialog-renderer"||A.target.is!=="tp-yt-iron-dropdown"){var x;_.P4((x=X.hostElement)!=null?x:X,"yt-popup-canceled",A.detail);x=L?_.oa(L):null;(!L||["click","tap"].includes(L.type))&&!O.hasAttribute("force-close-on-outside-click")&&O.positionTarget&&x&&x.includes(O.positionTarget)&&A.preventDefault();O.restoreFocusOnClose=_.lh.keyboardEventMatchesKeys(L,"esc")}},
onPopupIronOverlayOpened_:function(A){A=A.currentTarget;var L=_.KPu(A);L=L.length>0?L[0]:A;var O,X;_.P4((O=L.hostElement)!=null?O:L,"yt-popup-opened",(X=L.hostElement)!=null?X:L);A.keepBelowPlayer&&(this.ensurePopupBelowPlayer(A,!0),this.dynamicallyPositionedElements_.add(A));O=_.X5().resolve(_.Ot(_.bv));X=!!L.querySelector("#toast");O&&O.isKeyBoardInUse()&&!X&&(typeof L.focusFirstItem==="function"?L.focusFirstItem():(L=_.YrJ(A),L.length&&L[0].focus()));A.removeEventListener("iron-overlay-opened",
_.tT(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(A){A=A.currentTarget;A.refit&&A.refit()},
refitPopups_:function(){for(var A in this.popups_)this.popups_[A].refit()},
handleInvalidatePopupTabbables_:function(A){A=A.currentTarget;A.invalidateTabbables&&A.invalidateTabbables()},
createCacheKey:function(A,L){return _.h("web_popup_cache_key_killswitch")?L?A+"#"+L:A:L?"#"+L:A},
openSheet:function(A,L){var O=A==null?void 0:A.openPopupActionCommand;!O&&(A==null?0:A.viewModel)&&(O={openPopupAction:{popup:{sheetViewModel:A.viewModel},popupType:"CONTEXTUAL_SHEET"}});O&&this.handleOpenPopupAction(O,L)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var A=this;return _.u(function(L){return L.return(A.handleGetOpenedPopupsAction_().filter(function(O){var X;return((X=O.openPopupAction)==null?void 0:X.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(A,L,O){if(_.h("web_dialog_utils_killswitch")){var X=A==null?void 0:A.openPopupActionCommand,x=(O==null?0:O.ariaLabel)?{accessibilityData:{accessibilityData:{label:O.ariaLabel}}}:void 0;!X&&(A==null?0:A.viewModel)&&(X={openPopupAction:Object.assign({},{popup:{dialogViewModel:A.viewModel},popupType:(O==null?0:O.isModal)?"MODAL":"DIALOG"},x&&x)});X&&this.handleOpenPopupAction(X,L)}else{if(x=A==null?void 0:A.viewModel){var J=O=O===void 0?{}:O;O=J.ariaLabel;x={popup:{dialogViewModel:x},
popupType:J.isModal?"MODAL":"DIALOG"};J={accessibilityData:{label:O}};O&&(x.accessibilityData=J);x={openPopupAction:x}}else x=void 0;if(x=(X=x)!=null?X:A==null?void 0:A.openPopupActionCommand)this.isAriaModal=_.h("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(x,L)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var A=this;return _.u(function(L){return L.return(A.handleGetOpenedPopupsAction_().filter(function(O){var X;return((X=O.openPopupAction)==null?void 0:X.popupType)==="DIALOG"}).length>0)})}}];var olz;var A6M;var LwX=_.AW(["about:blank"]),Sz=function(){var A=_.G.apply(this,arguments)||this;A.isMuted=!1;A.pageLoadTimeoutId=void 0;return A};
_.g(Sz,_.G);_.P=Sz.prototype;_.P.dataChanged=function(){var A=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var L=this.data.url,O=_.CH(L);_.h("enable_yt_ata_iframe_authuser")?(O=_.CH(L),_.Hf(this.iframe,M5Q(O))):_.Hf(this.iframe,O);this.pageLoadTimeoutId=_.p7(_.Q7(),function(){return void A.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.dk({destination:window,iframe:this.iframe,origin:_.x06(O.toString()),channelName:"ataiframe",onMessage:_.YuL(Rlk,function(X){Qlz(X.data)?(X=_.jZ(X.data,1,_.kV,_.Xq()),X.length!==1?_.Rv(Error("ql")):(X=X[0],X===3?(A.isMuted=!0,A.logStateChanged({adMuteRequested:!0})):X===1&&A.close())):_.Rv(Error("rl"))}),
onEstablished:function(){A.cancelPageLoadTimeout();A.logStateChanged({pageLoadSucceeded:!0})}})}};
_.P.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.Q7().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.P.logStateChanged=function(A){var L;if((L=this.data)==null?0:L.trackingParams)A={adsClientData:{aboutThisAdData:A}},_.iV().stateChanged(this.data.trackingParams,A)};
_.P.close=function(){_.dQ(this.hostElement,"yt-close-popup-action",[this.is])};
_.P.handlesPopupClosed=function(A,L){var O=this,X,x;return _.u(function(J){if(J.nextAddress==1)return _.ms("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.dQ(O.hostElement,"on-about-this-ad-popup-closed",[O.isMuted,L]),J.jumpTo(0)):A&&$bX(A)?J.yield(aX7(A),4):(O.isMuted&&_.dQ(O.hostElement,"yt-mute-ad-action",[O.is,O]),J.jumpTo(0));if(X=J.yieldResult){var Y=x=new _.F7(X),T=O.isMuted;Y.getOptions().includes("onAboutThisAdPopupClosed")?_.SHN(Y,"onAboutThisAdPopupClosed",{isMuted:T,layoutId:L}):_.sf("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.qo(J)})};
_.P.onPopupClosed=function(A){var L=this,O,X;return _.u(function(x){O=_.JD(LwX);_.Hf(L.iframe,O);L.cancelPageLoadTimeout();if(!L.data)return x.jumpTo(0);L.ytRendererBehavior.markDirty();X=A.detail.context.openingElement;return x.yield(L.handlesPopupClosed(X,L.data.layoutId),0)})};
_.P.detached=function(){this.cancelPageLoadTimeout()};
_.P.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Sz.prototype.onPopupClosed=Sz.prototype.onPopupClosed;Sz.prototype.dataChanged=Sz.prototype.dataChanged;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Sz.prototype,"ytRendererBehavior",void 0);_.I([_.qR("#iframe"),_.Z("design:type",HTMLIFrameElement)],Sz.prototype,"iframe",void 0);_.I([_.K(),_.Z("design:type",Object)],Sz.prototype,"data",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Sz.prototype,"dataChanged",null);
_.I([_.by("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype",Promise)],Sz.prototype,"onPopupClosed",null);_.I([_.yU({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],Sz);
_.m(Sz,"yt-about-this-ad-renderer",function(){if(A6M===void 0){var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;olz===void 0&&(olz=document.createElement("template"));var X=olz;O.call(L,X.content.cloneNode(!0),A.content.firstChild);A6M=A}A=A6M;return A},{mode:2});var Ojk;var XvS;var qm=function(A){var L=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=L.message;"stack"in L&&(this.stack=L.stack);this.maxFileSizeMB=A;Object.setPrototypeOf(this,qm.prototype)};
_.g(qm,Error);var x3n=function(A,L){var O=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=O.message;"stack"in O&&(this.stack=O.stack);this.minWidth=A;this.minHeight=L;Object.setPrototypeOf(this,x3n.prototype)};
_.g(x3n,Error);var sXz=function(A){this.requirements=A;this.JSC$21728_maxFileSize=A.maxFileSizeMB*1024*1024},J6B=function(A,L){if(L.size>A.JSC$21728_maxFileSize)throw new qm(A.requirements.maxFileSizeMB);
};var P0J=function(A,L){this.canvas=A;this.imageEditorBuilder=L};
P0J.prototype.addEventListeners=function(A){var L=function(x){d3M(A,x)};
this.JSC$21734_mouseDownEvent=L;var O=function(x){Y6X(A,x)};
this.JSC$21734_mouseMoveEvent=O;var X=function(){uQM(A)};
this.JSC$21734_mouseUpEvent=X;this.canvas.addEventListener("mousedown",L);this.canvas.addEventListener("mousemove",O);document.addEventListener("mouseup",X)};
P0J.prototype.removeEventListeners=function(){this.JSC$21734_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$21734_mouseDownEvent);this.JSC$21734_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$21734_mouseMoveEvent);this.JSC$21734_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$21734_mouseUpEvent)};
var TvJ=function(A,L){A.removeEventListeners();return new Promise(function(O){var X=new Image;X.crossOrigin="anonymous";X.onload=function(){var x=A.imageEditorBuilder(A.canvas,X);A.addEventListeners(x);O(x)};
X.src=L})},gb=function(A,L,O,X,x,J,Y,T){this.canvas=A;
this.image=L;this.requiredRatio=O;this.minImageCropDimension=X;this.minOutputImageResolution=x;this.component=J;this.styleFocusedCorner=T===void 0?!0:T;this.action=2;this.focusedCorner=this.resizeCorner=0;A=this.canvas.getContext("2d");if(!A)throw Error("sl");this.ctx=A;this.canvasMargin=Y!=null?Y:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;Y=this.image;A=this.canvasInnerWidth/Y.width;Y.height*A>912&&(A=Y.width/Y.height*912/Y.width);Y=A;this.scaledImageWidth=this.canvas.width%2?
Ub$(this.image.width*Y):kiz(this.image.width*Y);this.scaledImageHeight=Math.round(this.image.height*Y);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$21737_overlayMarginBottom=this.JSC$21737_overlayMarginTop=this.canvasMargin;this.JSC$21737_overlayMarginRight=this.JSC$21737_overlayMarginLeft=this.horizontalMargin;this.JSC$21737_overlayWidth=this.scaledImageWidth;this.JSC$21737_overlayHeight=this.scaledImageHeight;
A=this.image.width/this.image.height;A>this.requiredRatio?(this.JSC$21737_overlayWidth=this.canvas.width%2?Ub$(this.scaledImageHeight*this.requiredRatio):kiz(this.scaledImageHeight*this.requiredRatio),this.JSC$21737_overlayMarginRight=this.JSC$21737_overlayMarginLeft=(this.canvas.width-this.JSC$21737_overlayWidth)/2):A<this.requiredRatio&&(this.JSC$21737_overlayHeight=this.canvas.height%2?Ub$(this.scaledImageWidth/this.requiredRatio):kiz(this.scaledImageWidth/this.requiredRatio),this.JSC$21737_overlayMarginBottom=
this.JSC$21737_overlayMarginTop=(this.canvas.height-this.JSC$21737_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*Y,this.scaledImageWidth);Vez(this)};
gb.prototype.getContext=function(){return this.ctx};
var d3M=function(A,L){L={x:Math.round(L.pageX-A.canvas.getBoundingClientRect().left),y:Math.round(L.pageY-A.canvas.getBoundingClientRect().top)};A.dragStart=L;D3S(A,L)!==0?(A.action=1,e$J(A,L),A.resizeCorner=D3S(A,L)):L.x>A.JSC$21737_overlayMarginLeft&&L.x<A.JSC$21737_overlayMarginLeft+A.JSC$21737_overlayWidth&&L.y>A.JSC$21737_overlayMarginTop&&L.y<A.JSC$21737_overlayMarginTop+A.JSC$21737_overlayHeight&&(A.action=0)},EbX=function(A,L){switch(L){case 1:return{x:A.JSC$21737_overlayMarginLeft,
y:A.JSC$21737_overlayMarginTop};case 2:return{x:A.JSC$21737_overlayMarginLeft,y:A.JSC$21737_overlayMarginTop+A.JSC$21737_overlayHeight};case 3:return{x:A.JSC$21737_overlayMarginLeft+A.JSC$21737_overlayWidth,y:A.JSC$21737_overlayMarginTop};case 4:return{x:A.JSC$21737_overlayMarginLeft+A.JSC$21737_overlayWidth,y:A.JSC$21737_overlayMarginTop+A.JSC$21737_overlayHeight};default:throw Error("tl");}},teX=function(A,L){if(A.focusedCorner!==0){A.dragStart=EbX(A,A.focusedCorner);
A.action=1;A.resizeCorner=A.focusedCorner;var O=A.dragStart.x,X=A.dragStart.y;switch(L){case 0:A.focusedCorner===1||A.focusedCorner===4?(O-=10,X-=10):(O-=10,X+=10);break;case 1:A.focusedCorner===1||A.focusedCorner===4?(O+=10,X+=10):(O+=10,X-=10);break;case 2:O=A.focusedCorner===1||A.focusedCorner===4?O-10:O+10;X-=10;break;case 3:O=A.focusedCorner===1||A.focusedCorner===4?O+10:O-10;X+=10;break;default:throw Error("ul");}nbJ(A,{x:O,y:X});Vez(A);A.action=2;A.dragStart=void 0}},Y6X=function(A,L){L={x:Math.round(L.pageX-
A.canvas.getBoundingClientRect().left),
y:Math.round(L.pageY-A.canvas.getBoundingClientRect().top)};e$J(A,L);switch(A.action){case 1:nbJ(A,L);break;case 0:A.dragStart&&(A.JSC$21737_overlayMarginLeft=Math.max(A.horizontalMargin,Math.min(A.JSC$21737_overlayMarginLeft-(A.dragStart.x-L.x),A.horizontalMargin+A.scaledImageWidth-A.JSC$21737_overlayWidth)),A.JSC$21737_overlayMarginRight=A.canvas.width-A.JSC$21737_overlayMarginLeft-A.JSC$21737_overlayWidth,A.JSC$21737_overlayMarginTop=Math.max(A.canvasMargin,Math.min(A.JSC$21737_overlayMarginTop-
(A.dragStart.y-L.y),A.scaledImageHeight-A.JSC$21737_overlayHeight+A.canvasMargin)),A.JSC$21737_overlayMarginBottom=A.canvas.height-(A.JSC$21737_overlayMarginTop+A.JSC$21737_overlayHeight));break;default:return}Vez(A);A.dragStart=L},uQM=function(A){A.action=2;
A.dragStart=void 0;document.body.style.cursor="auto"},e$J=function(A,L){switch(D3S(A,L)){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:A.action!==1&&(document.body.style.cursor="auto")}},D3S=function(A,L){var O=A.JSC$21737_overlayMarginLeft-5,X=A.JSC$21737_overlayMarginTop-5,x=A.JSC$21737_overlayMarginLeft+A.JSC$21737_overlayWidth-5;
A=A.JSC$21737_overlayMarginTop+A.JSC$21737_overlayHeight-5;return bjB(L,{x:O,y:X})?1:bjB(L,{x:x,y:X})?3:bjB(L,{x:O,y:A})?2:bjB(L,{x:x,y:A})?4:0},bjB=function(A,L){return A.x>=L.x&&A.x<=L.x+10&&A.y>=L.y&&A.y<=L.y+10},nbJ=function(A,L){if(A.dragStart)switch(A.resizeCorner){case 2:Math.abs((A.JSC$21737_overlayMarginLeft+A.JSC$21737_overlayWidth-L.x)/(L.y-A.JSC$21737_overlayMarginTop))>=A.requiredRatio?h$$(A,L.x):S6Z(A,L.y);
break;case 1:Math.abs((A.JSC$21737_overlayMarginLeft+A.JSC$21737_overlayWidth-L.x)/(A.JSC$21737_overlayMarginTop+A.JSC$21737_overlayHeight-L.y))>=A.requiredRatio?q6J(A,L.x):S6Z(A,L.y);break;case 4:Math.abs((L.x-A.JSC$21737_overlayMarginLeft)/(L.y-A.JSC$21737_overlayMarginTop))>=A.requiredRatio?h$$(A,L.x):gbZ(A,L.y);break;case 3:Math.abs((L.x-A.JSC$21737_overlayMarginLeft)/(A.JSC$21737_overlayMarginTop+A.JSC$21737_overlayHeight-L.y))>=A.requiredRatio?q6J(A,L.x):gbZ(A,L.y);break;default:throw Error("vl");
}},h$$=function(A,L){var O=A.JSC$21737_overlayMarginTop;
A.JSC$21737_overlayMarginBottom=wvM(A,L);A.JSC$21737_overlayHeight=A.canvas.height-A.JSC$21737_overlayMarginBottom-O;A.JSC$21737_overlayWidth=Math.round(A.JSC$21737_overlayHeight*A.requiredRatio);pvQ(A)},q6J=function(A,L){var O=A.JSC$21737_overlayMarginTop+A.JSC$21737_overlayHeight;
A.JSC$21737_overlayMarginTop=wvM(A,L);A.JSC$21737_overlayHeight=O-A.JSC$21737_overlayMarginTop;A.JSC$21737_overlayWidth=Math.round(A.JSC$21737_overlayHeight*A.requiredRatio);pvQ(A)},pvQ=function(A){switch(A.resizeCorner){case 2:case 1:A.JSC$21737_overlayMarginLeft=A.canvas.width-A.JSC$21737_overlayMarginRight-A.JSC$21737_overlayWidth;
break;case 4:case 3:A.JSC$21737_overlayMarginRight=A.canvas.width-A.JSC$21737_overlayMarginLeft-A.JSC$21737_overlayWidth;break;default:throw Error("vl");}},S6Z=function(A,L){var O=A.JSC$21737_overlayMarginLeft+A.JSC$21737_overlayWidth;
A.JSC$21737_overlayMarginLeft=ij7(A,L);A.JSC$21737_overlayWidth=O-A.JSC$21737_overlayMarginLeft;A.JSC$21737_overlayHeight=Math.round(A.JSC$21737_overlayWidth/A.requiredRatio);NvS(A)},gbZ=function(A,L){var O=A.JSC$21737_overlayMarginLeft;
A.JSC$21737_overlayMarginRight=ij7(A,L);A.JSC$21737_overlayWidth=A.canvas.width-A.JSC$21737_overlayMarginRight-O;A.JSC$21737_overlayHeight=Math.round(A.JSC$21737_overlayWidth/A.requiredRatio);NvS(A)},NvS=function(A){switch(A.resizeCorner){case 2:case 4:A.JSC$21737_overlayMarginBottom=A.canvas.height-A.JSC$21737_overlayMarginTop-A.JSC$21737_overlayHeight;
break;case 1:case 3:A.JSC$21737_overlayMarginTop=A.canvas.height-A.JSC$21737_overlayMarginBottom-A.JSC$21737_overlayHeight;break;default:throw Error("vl");}},wvM=function(A,L){switch(A.resizeCorner){case 2:L=A.canvas.height-(A.JSC$21737_overlayMarginTop+r6z(A,L));
break;case 4:L=A.canvas.height-(A.JSC$21737_overlayMarginTop+Kwz(A,L));break;case 1:L=A.JSC$21737_overlayMarginTop+A.JSC$21737_overlayHeight-r6z(A,L);break;case 3:L=A.JSC$21737_overlayMarginTop+A.JSC$21737_overlayHeight-Kwz(A,L);break;default:throw Error("vl");}return Math.max(L,A.canvasMargin)},r6z=function(A,L){L=A.JSC$21737_overlayMarginLeft+A.JSC$21737_overlayWidth-Math.max(L,A.horizontalMargin);
L=L<0?A.JSC$21737_overlayWidth:Math.max(L,A.minOverlayWidth);return Math.round(L/A.requiredRatio)},Kwz=function(A,L){L=A.canvas.width-Math.max(A.canvas.width-L,A.horizontalMargin)-A.JSC$21737_overlayMarginLeft;
L=L<0?A.JSC$21737_overlayWidth:Math.max(L,A.minOverlayWidth);return Math.round(L/A.requiredRatio)},ij7=function(A,L){switch(A.resizeCorner){case 2:L=A.canvas.width-A.JSC$21737_overlayMarginRight-G$M(A,L);
break;case 4:L=A.canvas.width-A.JSC$21737_overlayMarginLeft-G$M(A,L);break;case 1:L=A.canvas.width-A.JSC$21737_overlayMarginRight-liX(A,L);break;case 3:L=A.canvas.width-A.JSC$21737_overlayMarginLeft-liX(A,L);break;default:throw Error("vl");}return Math.max(L,A.horizontalMargin)},G$M=function(A,L){L=A.canvas.height-Math.max(A.canvas.height-L,A.canvasMargin)-A.JSC$21737_overlayMarginTop;
return L<0?A.JSC$21737_overlayWidth:Math.max(Math.round(L*A.requiredRatio),A.minOverlayWidth)},liX=function(A,L){L=A.JSC$21737_overlayMarginTop+A.JSC$21737_overlayHeight-Math.max(L,A.canvasMargin);
return L<0?A.JSC$21737_overlayWidth:Math.max(Math.round(L*A.requiredRatio),A.minOverlayWidth)},Vez=function(A){A.ctx.clearRect(0,0,A.canvas.width,A.canvas.height);
A.ctx.drawImage(A.image,0,0,A.image.width,A.image.height,A.horizontalMargin,A.canvasMargin,A.canvas.width-2*A.horizontalMargin,A.scaledImageHeight);A.ctx.fillStyle="rgba(0, 0, 0, 0.7)";A.ctx.fillRect(A.horizontalMargin,A.JSC$21737_overlayMarginTop,A.JSC$21737_overlayMarginLeft-A.horizontalMargin,A.JSC$21737_overlayHeight);A.ctx.fillRect(A.JSC$21737_overlayMarginLeft+A.JSC$21737_overlayWidth,A.JSC$21737_overlayMarginTop,A.JSC$21737_overlayMarginRight-A.horizontalMargin,A.JSC$21737_overlayHeight);A.ctx.fillRect(A.horizontalMargin,
A.canvasMargin,A.scaledImageWidth,A.JSC$21737_overlayMarginTop-A.canvasMargin);A.ctx.fillRect(A.horizontalMargin,A.JSC$21737_overlayMarginTop+A.JSC$21737_overlayHeight,A.scaledImageWidth,A.JSC$21737_overlayMarginBottom-A.canvasMargin);A.drawOverlay();A.component&&_.P4(A.component,"image-updated")};
gb.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$21737_overlayMarginLeft,this.JSC$21737_overlayMarginTop,this.JSC$21737_overlayWidth,this.JSC$21737_overlayHeight);c6X(this)};
var c6X=function(A){var L=A.JSC$21737_overlayMarginLeft-5,O=A.JSC$21737_overlayMarginTop-5,X=A.JSC$21737_overlayMarginLeft+A.JSC$21737_overlayWidth-5,x=A.JSC$21737_overlayMarginTop+A.JSC$21737_overlayHeight-5;A.ctx.fillStyle="#FFF";A.ctx.fillRect(L,O,10,10);A.ctx.strokeRect(L,O,10,10);A.ctx.fillRect(X,O,10,10);A.ctx.strokeRect(X,O,10,10);A.ctx.fillRect(L,x,10,10);A.ctx.strokeRect(L,x,10,10);A.ctx.fillRect(X,x,10,10);A.ctx.strokeRect(X,x,10,10);if(A.focusedCorner!==0&&A.styleFocusedCorner){A.ctx.lineWidth=
4;A.ctx.strokeStyle="#3EA6FF";switch(A.focusedCorner){case 1:--L;--O;break;case 2:--L;O=x-1;break;case 3:L=X-1;--O;break;case 4:L=X-1;O=x-1;break;default:return}A.ctx.strokeRect(L,O,12,12)}};
gb.prototype.crop=function(A,L){L=L===void 0?!0:L;var O=this.image.width/this.scaledImageWidth,X=document.createElement("canvas"),x=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],J=this.JSC$21737_overlayWidth*O,Y=this.JSC$21737_overlayHeight*O;X.width=Math.max(J,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);X.height=Math.max(Y,x);A&&(X.width=Math.min(X.width,X.height),X.height=Math.min(X.width,X.height));
A=X.getContext("2d");if(!A)throw Error("jl");x=(this.JSC$21737_overlayMarginLeft-this.horizontalMargin)*O;O*=this.JSC$21737_overlayMarginTop-this.canvasMargin;L||(A.fillStyle="white",A.fillRect(0,0,X.width,X.height));A.drawImage(this.image,x,O,J,Y,0,0,X.width,X.height);return X};var C0J=function(A,L,O,X,x){gb.call(this,A,L,O,X,void 0,x,8,!1)};
_.g(C0J,gb);C0J.prototype.drawOverlay=function(){var A=this.getContext(),L=this.JSC$21737_overlayWidth,O=this.JSC$21737_overlayHeight,X=this.JSC$21737_overlayMarginTop,x=this.JSC$21737_overlayMarginLeft;A.lineWidth=2;A.strokeStyle="#3EA6FF";A.beginPath();A.arc(x+L/2,X+O/2,L/2,0,2*Math.PI);A.stroke();A.strokeRect(x,X,L,O);c6X(this)};
var FwZ={maxFileSizeMB:15,minWidth:98,minHeight:98},R$7=["image/png","image/jpeg","image/gif"],wb=function(){var A=_.G.apply(this,arguments)||this;A.fileSelectorFocusListener=null;A.errorMessage=null;A.isLoading=!0;A.hideContainer=!0;A.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return A};
_.g(wb,_.G);_.P=wb.prototype;_.P.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.P.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.P.computePlaylistThumbnail=function(A){return A==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.P.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.dQ(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.P.setErrorState=function(A){this.resetErrorState();A&&(this.errorMessage=A)};
_.P.showPopup=function(){var A=this;this.hideContainer=!1;_.p7(_.c1,function(){_.P4(A.hostElement,"yt-refit")});
this.isLoading=!1};
_.P.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.P.closePopup=function(){this.resetFileSelector();_.dQ(this.hostElement,"yt-close-popup-action",[this.is])};
_.P.onCancelTap=function(){this.isPlaylistThumbnail||_.dQ(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.P.openFileSelector=function(){var A=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.p7(_.c1,function(){setTimeout(function(){if(!A.fileSelector.files||A.fileSelector.files.length===0)A.onCancelTap();A.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(L){L instanceof Error?_.C7(L):_.FJ(new _.pe(JSON.stringify(L)))}};
_.P.handleFileSelection=function(){var A=this,L,O,X,x,J,Y;return _.u(function(T){switch(T.nextAddress){case 1:_.e4(T,2);if(!A.fileSelector.files||!A.imageEditorCanvas)return A.onCancelTap(),T.return();L=A.fileSelector.files[0];J6B(A.imageChecker,L);_.e4(T,4);return T.yield(SYz(L),6);case 6:A.mimeType=T.yieldResult;_.zA(T,5,2);break;case 4:_.S4(T,2),_.dQ(A.hostElement,"yt-image-selection-error-action",[(O=A.data)==null?void 0:O.genericImageLoadErrorMessage]),A.onCancelTap();case 5:X=new FileReader;
X.addEventListener("load",function(){var V,E;return _.u(function(n){if(n.nextAddress==1){if(!X.result)return _.Rv(Error("ll")),n.return();V=X.result;E=new Image;E.src=V;E.onload=function(){try{var t=A.imageChecker;if(E.width<t.requirements.minWidth||E.height<t.requirements.minHeight)throw new x3n(t.requirements.minWidth,t.requirements.minHeight);}catch(S){if(S instanceof x3n){var b;_.dQ(A.hostElement,"yt-image-selection-error-action",[(b=A.data)==null?void 0:b.imageDimensionErrorMessage]);A.logImageDimensionErrorVe()}else S instanceof
Error?_.C7(S):(t=new _.pe(JSON.stringify(S)),_.C7(t));A.onCancelTap()}A.showPopup()};
E.onerror=function(){var t;_.dQ(A.hostElement,"yt-image-selection-error-action",[(t=A.data)==null?void 0:t.genericImageLoadErrorMessage]);A.onCancelTap()};
return n.yield(TvJ(A.imageEditorCanvas,V),2)}A.imageEditor=n.yieldResult;A.updatePositionOfAllCorners();A.addEventListeners(A.imageEditor);_.qo(n)})},!1);
X.readAsDataURL(L);_.zA(T,0);break;case 2:x=_.S4(T),x instanceof qm?_.dQ(A.hostElement,"yt-image-selection-error-action",[(J=A.data)==null?void 0:J.imageSizeErrorMessage]):(x instanceof Error?_.C7(x):_.FJ(new _.pe(JSON.stringify(x))),_.dQ(A.hostElement,"yt-image-selection-error-action",[(Y=A.data)==null?void 0:Y.genericImageLoadErrorMessage])),A.onCancelTap(),_.qo(T)}})};
_.P.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var A=_.pT(_.iV(),{veType:232707,visualElement:_.tI(232707)});A&&(A={visualElement:A},_.wW().reportShown(A))}};
_.P.handleImageSelectionErrorAction=function(A){this.isPlaylistThumbnail&&_.vku(this.hostElement,A)};
_.P.convertToImageFormatBundle=function(A){var L=this,O,X,x;return _.u(function(J){switch(J.nextAddress){case 1:return O=A.toDataURL(L.outputMimeType,1),J.yield(qY$(O),2);case 2:X=J.yieldResult;_.e4(J,3);J6B(L.imageChecker,X);_.zA(J,4);break;case 3:x=_.S4(J);if(!(x instanceof qm))throw x;_.Rv(new _.pe("Output size is bigger than input size for image",L.mimeType,L.outputMimeType,X.size));O=A.toDataURL("image/jpeg",.95);return J.yield(qY$(O),6);case 6:X=J.yieldResult;case 4:return J.return({dataUrl:O,
imageFile:X})}})};
_.P.handleUploadImageToScottyCommand=function(A){var L=this,O,X,x,J,Y,T,V,E,n,t;return _.u(function(b){switch(b.nextAddress){case 1:if(!L.imageEditor||!_.q(A,UvX))return b.return();O=_.q(A,UvX).scottyUploadUrl;if(!O){var S=new _.pe("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.C7(S);return b.return()}_.e4(b,2);L.setLoadingState();X=L.imageEditor.crop(!1,!1);return b.yield(L.convertToImageFormatBundle(X),4);case 4:return x=b.yieldResult,b.yield(bTz(x.imageFile,O),5);
case 5:J=b.yieldResult;((Y=L.data)==null?0:Y.onUploadEndpoint)?(T=L.buildUploadServiceEndpoint(J),L.ytComponentBehavior.resolveCommand(T),V=_.q(T,_.zF),((E=V)==null?0:E.params)?L.closePopup():L.resetFileSelector()):(_.dQ(L.hostElement,"yt-image-updated-action",[x.dataUrl,J]),L.closePopup());_.zA(b,0);break;case 2:n=_.S4(b),L.setErrorState((t=L.data)==null?void 0:t.uploadErrorMessage),n instanceof Error?_.C7(n):(S=new _.pe(JSON.stringify(n)),_.C7(S)),_.qo(b)}})};
_.P.buildUploadServiceEndpoint=function(A){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",A),this.data.onUploadEndpoint):null};
_.P.dataChanged=function(){var A=this,L;return _.u(function(O){if(O.nextAddress==1){if(!A.data||!A.canvasElement)return O.return();A.data.imageRatio&&A.data.minImageCropWidth||_.FJ(new _.pe("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));L=function(X,x){return A.data.imageType==="IMAGE_TYPE_AVATAR"?new C0J(X,x,A.data.imageRatio,[A.data.minImageCropWidth,A.data.minImageCropWidth/A.data.imageRatio],A.hostElement):new gb(X,x,A.data.imageRatio,[A.data.minImageCropWidth,
A.data.minImageCropWidth/A.data.imageRatio],void 0,A.hostElement,8,!1)};
A.imageEditorCanvas=new P0J(A.canvasElement,L);return A.data.url?O.yield(TvJ(A.imageEditorCanvas,A.data.url),3):(A.hideContainer=!0,A.openFileSelector(),O.jumpTo(0))}A.imageEditor=O.yieldResult;A.showPopup();A.addEventListeners(A.imageEditor);_.qo(O)})};
_.P.addEventListeners=function(A){this.removeEventListeners();var L=function(x){d3M(A,x)};
this.JSC$21745_mouseDownEvent=L;var O=function(x){Y6X(A,x)};
this.JSC$21745_mouseMoveEvent=O;var X=function(){uQM(A)};
this.JSC$21745_mouseUpEvent=X;this.topLeftCorner.addEventListener("mousedown",L);this.topLeftCorner.addEventListener("mousemove",O);this.topLeftCorner.addEventListener("mouseup",X);this.topRightCorner.addEventListener("mousedown",L);this.topRightCorner.addEventListener("mousemove",O);this.topRightCorner.addEventListener("mouseup",X);this.bottomLeftCorner.addEventListener("mousedown",L);this.bottomLeftCorner.addEventListener("mousemove",O);this.bottomLeftCorner.addEventListener("mouseup",X);this.bottomRightCorner.addEventListener("mousedown",
L);this.bottomRightCorner.addEventListener("mousemove",O);this.bottomRightCorner.addEventListener("mouseup",X)};
_.P.removeEventListeners=function(){this.JSC$21745_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$21745_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$21745_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$21745_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$21745_mouseDownEvent));this.JSC$21745_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$21745_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$21745_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$21745_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$21745_mouseMoveEvent));this.JSC$21745_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$21745_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$21745_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$21745_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$21745_mouseUpEvent))};
_.P.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var A=document.activeElement;A&&A.shadowRoot&&A.shadowRoot.activeElement;)A=A.shadowRoot.activeElement;switch(A){case this.topLeftCorner:this.imageEditor.focusedCorner=1;break;case this.topRightCorner:this.imageEditor.focusedCorner=3;break;case this.bottomLeftCorner:this.imageEditor.focusedCorner=2;break;case this.bottomRightCorner:this.imageEditor.focusedCorner=4;break;default:return this.imageEditor.focusedCorner=0,!1}return!0};
_.P.updatePositionOfCorner=function(A,L){var O=A.y-L.offsetHeight/2+4;L.style.left=A.x-L.offsetWidth/2+16+"px";L.style.top=O+"px"};
_.P.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var A=_.d([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),L=A.next();!L.done;L=A.next()){L=L.value;var O=EbX(this.imageEditor,L.corner);this.updatePositionOfCorner(O,L.div)}};
_.P.onLeft=function(A){this.imageEditor&&this.setFocusInImageEditor()&&(teX(this.imageEditor,0),this.updatePositionOfAllCorners(),A.preventDefault())};
_.P.onRight=function(A){this.imageEditor&&this.setFocusInImageEditor()&&(teX(this.imageEditor,1),this.updatePositionOfAllCorners(),A.preventDefault())};
_.P.onUp=function(A){this.imageEditor&&this.setFocusInImageEditor()&&(teX(this.imageEditor,2),this.updatePositionOfAllCorners(),A.preventDefault())};
_.P.onDown=function(A){this.imageEditor&&this.setFocusInImageEditor()&&(teX(this.imageEditor,3),this.updatePositionOfAllCorners(),A.preventDefault())};
_.P.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.v2.Object.defineProperties(wb.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&R$7.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var A,L,O;((L=this.data)==null?0:L.imageRatio)&&((O=this.data)==null?0:O.minImageCropWidth)?A={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:A=FwZ;return new sXz(A)}}});
wb.prototype.updatePositionOfAllCorners=wb.prototype.updatePositionOfAllCorners;wb.prototype.dataChanged=wb.prototype.dataChanged;_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],wb.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],wb.prototype,"ytComponentBehavior",void 0);_.I([_.N(_.lh),_.Z("design:type",Object)],wb.prototype,"ironA11yKeysBehavior",void 0);
_.I([_.qR("#canvas"),_.Z("design:type",HTMLCanvasElement)],wb.prototype,"canvasElement",void 0);_.I([_.qR("#file-selector"),_.Z("design:type",HTMLInputElement)],wb.prototype,"fileSelector",void 0);_.I([_.qR("#top-left-corner"),_.Z("design:type",HTMLDivElement)],wb.prototype,"topLeftCorner",void 0);_.I([_.qR("#top-right-corner"),_.Z("design:type",HTMLDivElement)],wb.prototype,"topRightCorner",void 0);
_.I([_.qR("#bottom-left-corner"),_.Z("design:type",HTMLDivElement)],wb.prototype,"bottomLeftCorner",void 0);_.I([_.qR("#bottom-right-corner"),_.Z("design:type",HTMLDivElement)],wb.prototype,"bottomRightCorner",void 0);_.I([_.K(),_.Z("design:type",Object)],wb.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],wb.prototype,"errorMessage",void 0);_.I([_.K(),_.Z("design:type",Object)],wb.prototype,"isLoading",void 0);_.I([_.K(),_.Z("design:type",Object)],wb.prototype,"hideContainer",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.Z("design:type",Boolean)],wb.prototype,"isPlaylistThumbnail",void 0);_.I([_.iy("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype",Promise)],wb.prototype,"dataChanged",null);_.I([_.by("image-updated"),_.by("yt-refit"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],wb.prototype,"updatePositionOfAllCorners",null);
_.I([_.yU({is:"yt-image-editor-renderer",disableElementRegistration:!0})],wb);
_.m(wb,"yt-image-editor-renderer",function(){if(XvS===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;Ojk===void 0&&(Ojk=document.createElement("template"));var X=Ojk;O.call(L,X.content.cloneNode(!0),A.content.firstChild);XvS=A}A=XvS;return A},{mode:2});var QX$;var m3z;var p1=function(){return _.G.apply(this,arguments)||this};
_.g(p1,_.G);p1.prototype.updateMinutesFromBinding=function(A){this.handleMinutesChanged&&this.handleMinutesChanged(A)};
p1.prototype.updateSecondsFromBinding=function(A){this.handleSecondsChanged&&this.handleSecondsChanged(A)};
p1.prototype.updateDescriptionFromBinding=function(A){this.handleDescriptionChanged&&this.handleDescriptionChanged(A)};
_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],p1.prototype,"ytComponentBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],p1.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",String)],p1.prototype,"minutes",void 0);_.I([_.K(),_.Z("design:type",String)],p1.prototype,"seconds",void 0);_.I([_.K(),_.Z("design:type",String)],p1.prototype,"description",void 0);_.I([_.K(),_.Z("design:type",Function)],p1.prototype,"handleMinutesChanged",void 0);
_.I([_.K(),_.Z("design:type",Function)],p1.prototype,"handleSecondsChanged",void 0);_.I([_.K(),_.Z("design:type",Function)],p1.prototype,"handleDescriptionChanged",void 0);_.I([_.K(),_.Z("design:type",Number)],p1.prototype,"characterLimit",void 0);_.I([_.K(),_.Z("design:type",Number)],p1.prototype,"textNumRows",void 0);_.I([_.yU({is:"yt-report-details-form-content",disableElementRegistration:!0})],p1);
_.m(p1,"yt-report-details-form-content",function(){if(m3z===void 0){var A=document.createElement("template");_.p(A,'\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>');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;QX$===void 0&&(QX$=document.createElement("template"));var X=QX$;O.call(L,X.content.cloneNode(!0),A.content.firstChild);m3z=A}A=m3z;return A},{mode:2});var fiJ;var Iin;var iz=function(){var A=_.G.apply(this,arguments)||this;A.updateMinutesFromBinding=function(L){A.minutes=L.detail.value};
A.updateSecondsFromBinding=function(L){A.seconds=L.detail.value};
A.updateDescriptionFromBinding=function(L){A.description=L.detail.value};
return A};
_.g(iz,_.G);_.P=iz.prototype;_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.P.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.submitButton":{id:"submit-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.P.ready=function(){_.YJ(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.P.onSubmitYtAction=function(A){var L=A.detail;L.actionName==="yt-service-request"&&(L=L.args[1],L.flagEndpoint&&(A.stopPropagation(),this.refireAction(L)))};
_.P.refireAction=function(A){var L={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(L.vss_id=this.vssId);_.TZ(this.hostElement,[A,L]);this.submitDisabled=!0};
_.P.dataChanged=function(){var A=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var L=_.d0();L&&L.getPlayerPromise().then(function(O){var X=O.getOption("cc","track")||O.getOption("captions","track");X&&(A.vssId=X.vss_id);O=O.getCurrentTime();A.minutes=Math.floor(O/60).toString();A.seconds=(Math.floor(O)%60).toString()})};
_.P.updateSubmitButtonState=function(){var A;((A=this.data)==null?0:A.isFreeformReason)?this.set("data.submitButton.buttonRenderer.isDisabled",this.submitDisabled||this.minutes===""||this.seconds===""||!this.description||this.description.length<3):this.set("data.submitButton.buttonRenderer.isDisabled",this.submitDisabled||this.minutes===""||this.seconds==="")};
_.P.onYtServiceRequestCompleted=function(){_.dQ(this.hostElement,"yt-close-popup-action")};
_.P.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.v2.Object.defineProperties(iz.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var A;return((A=this.data)==null?void 0:A.textNumRows)||4}}});
iz.prototype.onYtServiceRequestError=iz.prototype.onYtServiceRequestError;iz.prototype.onYtServiceRequestCompleted=iz.prototype.onYtServiceRequestCompleted;iz.prototype.updateSubmitButtonState=iz.prototype.updateSubmitButtonState;_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],iz.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],iz.prototype,"ytRendererBehavior",void 0);
_.I([_.K({observer:"dataChanged"}),_.Z("design:type",Object)],iz.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Boolean)],iz.prototype,"submitDisabled",void 0);_.I([_.K(),_.Z("design:type",String)],iz.prototype,"minutes",void 0);_.I([_.K(),_.Z("design:type",String)],iz.prototype,"seconds",void 0);_.I([_.K(),_.Z("design:type",String)],iz.prototype,"description",void 0);_.I([_.K(),_.Z("design:type",String)],iz.prototype,"vssId",void 0);
_.I([_.K({value:_.ms("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.Z("design:type",Boolean)],iz.prototype,"isMusic",void 0);_.I([_.r("data"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],iz.prototype,"characterLimit",null);_.I([_.r("data"),_.Z("design:type",Number),_.Z("design:paramtypes",[])],iz.prototype,"textNumRows",null);
_.I([_.iy("minutes","seconds","description","submitDisabled"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],iz.prototype,"updateSubmitButtonState",null);_.I([_.by("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],iz.prototype,"onYtServiceRequestCompleted",null);
_.I([_.by("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],iz.prototype,"onYtServiceRequestError",null);_.I([_.yU({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],iz);
_.m(iz,"yt-report-details-form-renderer",function(){if(Iin===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;fiJ===void 0&&(fiJ=document.createElement("template"));var X=fiJ;O.call(L,X.content.cloneNode(!0),A.content.firstChild);Iin=A}A=Iin;return A});var y6X;var ZjM;var jX7;var WwS;var Nm=function(){return _.G.apply(this,arguments)||this};
_.g(Nm,_.G);
Nm.prototype.onCheckedChanged_=function(){if(this.data){var A=_.YJ(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.dQ(this.hostElement,"yt-additional-detail-checkbox-update",[A]):this.data.identifier==="yt-hide-user-checkbox"?_.dQ(this.hostElement,"yt-hide-user-checkbox-update",[A]):A&&this.data.enableCommand?_.dQ(this.hostElement,"yt-modify-report-form-command",[_.q(this.data.enableCommand,xrJ)]):!A&&this.data.disableCommand&&_.dQ(this.hostElement,
"yt-modify-report-form-command",[_.q(this.data.enableCommand,xrJ)])}};
Nm.prototype.onLabelTap_=function(A){A.target.tagName!="A"&&(_.YJ(this.hostElement).querySelector("#checkbox").checked=!_.YJ(this.hostElement).querySelector("#checkbox").checked)};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Nm.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],Nm.prototype,"data",void 0);_.I([_.yU({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],Nm);
_.m(Nm,"yt-boolean-form-field-v2-renderer",function(){if(WwS===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;jX7===void 0&&(jX7=document.createElement("template"));var X=jX7;O.call(L,X.content.cloneNode(!0),A.content.firstChild);WwS=A}A=WwS;return A});var rb=function(){var A=_.G.apply(this,arguments)||this;A.canShowAdditionalDetailCheckbox=!1;A.canShowCheckbox=!1;A.keepDropdownFocusedAfterSelection=!0;return A};
_.g(rb,_.G);rb.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}}}}};
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],rb.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],rb.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],rb.prototype,"canShowAdditionalDetailCheckbox",void 0);_.I([_.K(),_.Z("design:type",Object)],rb.prototype,"canShowCheckbox",void 0);_.I([_.K(),_.Z("design:type",Object)],rb.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.I([_.yU({is:"yt-report-form-modal-content",disableElementRegistration:!0})],rb);
_.m(rb,"yt-report-form-modal-content",function(){if(ZjM===void 0){var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;y6X===void 0&&(y6X=document.createElement("template"));var X=y6X;O.call(L,X.content.cloneNode(!0),A.content.firstChild);ZjM=A}A=ZjM;return A},{mode:2});var Hjk;var z$$;var K1=function(){var A=_.G.apply(this,arguments)||this;A.submitting=!1;A.submitButtonDisabled=!0;A.command=null;A.canShowCheckbox=!1;A.canShowAdditionalDetailCheckbox=!1;A.canShowNextButton=!1;A.additionalDetailCheckboxChecked=!1;A.refitJob=0;A.keepDropdownFocusedAfterSelection=!0;A.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 A};
_.g(K1,_.G);_.P=K1.prototype;_.P.created=function(){this.refitJob=0};
_.P.attached=function(){this.JSC$21768_scroller&&(this.JSC$21768_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21768_scroller.attached&&typeof this.JSC$21768_scroller.attached==="function"&&this.JSC$21768_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.dataChanged=function(A){A&&(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,A.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),A.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.P.onYtPopupOpened=function(){var A=_.d0();A&&A.getPlayerPromise().then(function(L){L.pauseVideo()})};
_.P.onYtNavigate=function(A){_.q(A.detail.endpoint,_.N_L)&&(A.stopPropagation(),this.hideReportForm=!0)};
_.P.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.P.onYtServiceRequestCompleted=function(A,L){var O=L.actions;if(O){if(O.length===1&&_.q(O[0],_.em)){var X;O=((X=_.q(O[0],_.em))==null?void 0:X.commands)||[]}X=0;for(var x=O.length;X<x;X++)_.q(O[X],_.mG)&&(A.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(O[X]))}if(L.data&&(A=this.get("feedbackResponses",L.data)))for(L=0;L<A.length;L++)if(A[L].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.P.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.P._onDescendantIronResize=function(A){A.stopPropagation();return!1};
_.P.handleReportFormEndpointUpdateAction=function(A){if(A.submitEndpoint){var L=this.command=A.submitEndpoint;L=_.q(L,_.wFn);if(L==null?0:L.additionalDetailCheckboxChecked)L.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else A.submitNavigationEndpoint?(this.command=A.submitNavigationEndpoint,this.toggleSubmitButton(!1)):A.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:A.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;A.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",A));this.refit()};
_.P.handleConfirmDialogCloseAction=function(A){A.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.P.submitButtonDisabledChanged=function(){var A=this.hostElement.parentElement;A&&A.invalidateTabbables&&A.invalidateTabbables()};
_.P.handleModifyReportFormCommand=function(A){A=this.get("action",A);A==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:A==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:A==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:A==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:A==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:A==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.P.updateDialogStyling=function(){var A,L,O,X,x,J=((x=(A=this.data)==null?void 0:(L=A.optionsSupportedRenderers)==null?void 0:(O=L.optionsRenderer)==null?void 0:(X=O.items)==null?void 0:X.length)!=null?x:0)<=2?0:240;_.eq(this.hostElement,{"--yt-report-form-modal-renderer-min-width":J+"px"})};
_.P.toggleSubmitButton=function(A){this.submitButtonDisabled=!A;this.submitButtonDisabled=A};
_.P.computeSubmitButtonData=function(A,L){var O={};_.q(L,_.N_L)?O.navigationEndpoint=L:O.command=L||void 0;A&&A.buttonRenderer&&_.lW.extend(O,A.buttonRenderer);return O};
_.P.computeNextButtonData=function(A,L){var O={};if(!A||!A.buttonRenderer)return O;_.lW.extend(O,A.buttonRenderer);if(!L)return O;if(_.q(L,_.N_L))O.navigationEndpoint=hqM(L);else if(O.command=hqM(L),A=_.q(O.command,_.wFn))A.legalCheckboxChecked=!0;return O};
_.P.computeShowNextButton=function(A,L,O){return!!A&&L&&O};
_.P.refit=function(){var A=this;this.refitJob||(this.refitJob=_.c1.addLowPriorityJob(function(){_.P4(A.hostElement,"yt-refit");A.refitJob=0}))};
_.P.handleAdditionalDetailCheckboxUpdateAction=function(A){this.additionalDetailCheckboxChecked=A;_.q(this.command,_.wFn).additionalDetailCheckboxChecked=A};
_.v2.Object.defineProperties(K1,{template:{configurable:!0,enumerable:!0,get:function(){if(z$$===void 0){var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;Hjk===void 0&&(Hjk=document.createElement("template"));var X=Hjk;O.call(L,X.content.cloneNode(!0),A.content.firstChild);z$$=A}A=z$$;return A}}});
K1.prototype.onYtServiceRequestError=K1.prototype.onYtServiceRequestError;K1.prototype.onYtServiceRequestCompleted=K1.prototype.onYtServiceRequestCompleted;K1.prototype.onYtServiceRequestSent=K1.prototype.onYtServiceRequestSent;K1.prototype.onYtNavigate=K1.prototype.onYtNavigate;K1.prototype.onYtPopupOpened=K1.prototype.onYtPopupOpened;_.I([_.N(_.iv.YtOpenPopupBehavior),_.Z("design:type",Object)],K1.prototype,"openPopupBehavior",void 0);
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],K1.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],K1.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.KP.YtEventForwardingBehavior),_.Z("design:type",Object)],K1.prototype,"eventForwardingBehavior",void 0);_.I([_.N(_.y9),_.Z("design:type",Object)],K1.prototype,"ironResizableBehavior",void 0);_.I([_.K({observer:"dataChanged"}),_.Z("design:type",Object)],K1.prototype,"data",void 0);
_.I([_.K(),_.Z("design:type",Object)],K1.prototype,"submitting",void 0);_.I([_.K({observer:"submitButtonDisabledChanged"}),_.Z("design:type",Object)],K1.prototype,"submitButtonDisabled",void 0);_.I([_.K(),_.Z("design:type",Object)],K1.prototype,"command",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],K1.prototype,"hideReportForm",void 0);_.I([_.K(),_.Z("design:type",Object)],K1.prototype,"canShowCheckbox",void 0);
_.I([_.K(),_.Z("design:type",Object)],K1.prototype,"canShowAdditionalDetailCheckbox",void 0);_.I([_.K(),_.Z("design:type",Object)],K1.prototype,"canShowNextButton",void 0);_.I([_.K(),_.Z("design:type",Object)],K1.prototype,"additionalDetailCheckboxChecked",void 0);_.I([_.K(),_.Z("design:type",Object)],K1.prototype,"refitJob",void 0);_.I([_.K(),_.Z("design:type",Object)],K1.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.I([_.qR("#scroller"),_.Z("design:type",Object)],K1.prototype,"JSC$21768_scroller",void 0);_.I([_.by("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],K1.prototype,"onYtPopupOpened",null);_.I([_.by("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],K1.prototype,"onYtNavigate",null);
_.I([_.by("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.aQ]),_.Z("design:returntype")],K1.prototype,"onYtServiceRequestSent",null);_.I([_.by("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.Xi]),_.Z("design:returntype")],K1.prototype,"onYtServiceRequestCompleted",null);
_.I([_.by("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],K1.prototype,"onYtServiceRequestError",null);_.I([_.yU({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],K1);var BvJ;var MeZ;var G5=function(){return _.G.apply(this,arguments)||this};
_.g(G5,_.G);_.P=G5.prototype;_.P.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.P.onVisible=function(){var A,L;(L=_.X5().resolve(_.Ot(_.c5)))==null||L.enqueue({label:_.vG((A=this.data)==null?void 0:A.messageTitle),elementToFocus:this.hostElement})};
_.P.onThumbnailLoaded=function(){_.P4(this.hostElement,"yt-refit")};
_.P.onDismissTap=function(){_.dQ(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.P.computeAlternateIcon=function(A){return A?A==="BACKSTAGE_ARTWORK"?"backstage:artwork":A:null};
_.P.computeFontFamily=function(A){return A==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.P.computeBackgroundStyle=function(A,L){if(A=this.computeBackgroundImage(A,L))if(A=_.TJ(A.thumbnails))return'background-image: url("'+A+'");'};
_.P.computeHasFullHeightImage=function(A){return!(!(A&&A.thumbnails&&A.thumbnails.length>0)||this.modern)};
_.P.isModernStyle=function(A){return A.style==="STYLE_MODERN"};
_.P.computeIcon=function(A,L){if(A&&A.icon)return L?A.iconDark:A.icon};
_.P.computeBackgroundImage=function(A,L){if(A&&A.backgroundImage)return L?A.backgroundImageDark:A.backgroundImage};
_.P.computeLogo=function(A,L){if(A&&A.logo)return L?A.logoDark:A.logo};
_.P.computeShouldShowModernIcon=function(A,L){return A&&!!L};
_.P.getLogoContainerClassName=function(A){return this.logoWithPadding(A)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.P.getLogoImageId=function(A){return this.logoWithPadding(A)?"mealbar-logo-with-padding":"mealbar-logo"};
_.P.logoWithPadding=function(A){var L,O,X;return(A=(L=this.computeLogo(A,this.isDarkTheme))==null?void 0:(O=L.thumbnails)==null?void 0:(X=O[0])==null?void 0:X.height)&&A%31===0?!0:!1};
G5.prototype.onThumbnailLoaded=G5.prototype.onThumbnailLoaded;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],G5.prototype,"ytRendererBehavior",void 0);_.I([_.K({}),_.Z("design:type",Object)],G5.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.Z("design:type",Boolean)],G5.prototype,"modern",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],G5.prototype,"isDarkTheme",void 0);
_.I([_.K({computed:"computeIcon(data, isDarkTheme)"}),_.Z("design:type",Object)],G5.prototype,"icon",void 0);_.I([_.K({computed:"computeLogo(data, isDarkTheme)"}),_.Z("design:type",Object)],G5.prototype,"logo",void 0);_.I([_.K({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.Z("design:type",Object)],G5.prototype,"backgroundStyle",void 0);_.I([_.K({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.Z("design:type",Object)],G5.prototype,"alternateIcon",void 0);
_.I([_.K({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.Z("design:type",Boolean)],G5.prototype,"hasFullHeightImage",void 0);_.I([_.K({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.Z("design:type",Boolean)],G5.prototype,"useYoutubeSans",void 0);_.I([_.K({computed:"computeShouldShowModernIcon(modern, icon)"}),_.Z("design:type",Boolean)],G5.prototype,"shouldShowModernIcon",void 0);
_.I([_.by("yt-img-shadow-loaded"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],G5.prototype,"onThumbnailLoaded",null);_.I([_.yU({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],G5);
_.m(G5,"yt-mealbar-promo-renderer",function(){if(MeZ===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;BvJ===void 0&&(BvJ=document.createElement("template"));var X=BvJ;O.call(L,X.content.cloneNode(!0),A.content.firstChild);MeZ=A}A=MeZ;return A},{mode:2});var $3J;var aiS;var lz=function(){return _.G.apply(this,arguments)||this};
_.g(lz,_.G);_.P=lz.prototype;_.P.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[boundOnTap_]]",overrides:"[[buttonOverride]]"}}}},"data.acceptButton":{id:"accept-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[boundOnTap_]]",overrides:"[[buttonOverride]]"}}}}}};
_.P.computeHasButtons_=function(A){return!(!A.dismissButton&&!A.acceptButton)};
_.P.computeStyle_=function(A){return A||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.P.observeImpressionEndpoints_=function(){var A=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(L){L.clickTrackingParams&&delete L.clickTrackingParams;_.TZ(A.hostElement,[L])})};
_.P.onTap_=function(){_.dQ(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
lz.prototype.observeImpressionEndpoints_=lz.prototype.observeImpressionEndpoints_;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],lz.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.KP.YtEventForwardingBehavior),_.Z("design:type",Object)],lz.prototype,"ytEventForwardingBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],lz.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],lz.prototype,"data",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],lz.prototype,"positionType",void 0);_.I([_.K({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.Z("design:type",Boolean)],lz.prototype,"hasButtons_",void 0);_.I([_.K({value:function(){return this.onTap_.bind(this)}}),
_.Z("design:type",Function)],lz.prototype,"boundOnTap_",void 0);_.I([_.K({value:{style:"mono-inverse"}}),_.Z("design:type",Object)],lz.prototype,"buttonOverride",void 0);_.I([_.hT("data.promoConfig.impressionEndpoints"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],lz.prototype,"observeImpressionEndpoints_",null);_.I([_.yU({is:"yt-tooltip-renderer",disableElementRegistration:!0})],lz);
_.m(lz,"yt-tooltip-renderer",function(){if(aiS===void 0){var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;$3J===void 0&&($3J=document.createElement("template"));var X=$3J;O.call(L,X.content.cloneNode(!0),A.content.firstChild);aiS=A}A=aiS;return A},{mode:2});var k$n;var U3J;var vbk={},obJ=(vbk.WEB_REMIX="music.youtube.com",vbk),cH=function(){var A=_.G.apply(this,arguments)||this;A.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return A};
_.g(cH,_.G);_.P=cH.prototype;_.P.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.created=function(){this.embedHost_=obJ[_.ms("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.P.ready=function(){_.YJ(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.P.computeEmbedCode_=function(A,L,O,X,x){if(!A)return"";var J=A.videoId,Y=A.fullListId,T=[];A.attributionId&&T.push("si="+A.attributionId);X||T.push("controls=0");O&&Number(L)>0&&T.push("start="+L);Y&&(J="videoseries",T.push("list="+Y));O="https://"+(x?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+J;A.clipId&&(T.push("clip="+A.clipId),T.push("clipt="+A.clipTiming));L=T.length>0?O+"?"+T.join("&amp;"):O;A.encryptedEmbedConfig&&T.push("embed_config="+JSON.stringify({enc:A.encryptedEmbedConfig}));
T=T.length>0?O+"?"+T.join("&amp;"):O;_.h("web_sharing_embed_preview_killswitch")?_.YJ(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(T,A.previewWidth||854,A.previewHeight||480):(_.IS(this.videoPreviewContainer),_.YJ(this.videoPreviewContainer).appendChild(this.buildIframeElement(T)));return this.getEmbedCode_(L,A.width||560,A.height||315)};
_.P.buildIframeElement=function(A){var L=document.createElement("iframe"),O,X;L.width=""+((X=(O=this.data)==null?void 0:O.previewWidth)!=null?X:854);var x,J;L.height=""+((J=(x=this.data)==null?void 0:x.previewHeight)!=null?J:480);_.s9d(L,2,A);L.title="YouTube video player";L.frameBorder="0";L.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";L.referrerPolicy="strict-origin-when-cross-origin";L.allowFullscreen=!0;return L};
_.P.computeIsSquareAspectRatio_=function(A){return A.previewHeight&&A.previewWidth?A.previewHeight==A.previewWidth:!1};
_.P.computeShowEmbedOptions_=function(A){return!!A.enablePrivacyModeOptionLabel||!!A.showPlayerControlsOptionLabel};
_.P.getEmbedCode_=function(A,L,O){return'<iframe width="'+L+'" height="'+O+'" src="'+A+'" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>'};
_.P.handleSignalActionCopyShareEmbedUrl_=function(){_.YJ(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.P.handleSetTimestamp_=function(A){this.startAtTimeStamp_=(this.startAtChecked_=A.isSet)?A.timestamp:0};
_.P.closePanel_=function(){_.dQ(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.P.onEmbedCode_=function(){_.YJ(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.P.onYtPopupClosed_=function(){_.IS(_.YJ(this.hostElement).querySelector("#video-preview"))};
_.P.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.q(this.data.actionButtons[0],_.$t)&&this.ytRendererBehavior.logExplicitClick(_.q(this.data.actionButtons[0],_.$t))};
cH.prototype.onYtPopupClosed_=cH.prototype.onYtPopupClosed_;_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],cH.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],cH.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],cH.prototype,"ytActionHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],cH.prototype,"data",void 0);
_.I([_.K({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.Z("design:type",String)],cH.prototype,"embedCode_",void 0);_.I([_.K({value:!0}),_.Z("design:type",Boolean)],cH.prototype,"isPlayerControlsOptionChecked_",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],cH.prototype,"isPrivacyModeOptionChecked_",void 0);_.I([_.K({value:!1,notify:!0}),_.Z("design:type",Boolean)],cH.prototype,"startAtChecked_",void 0);
_.I([_.K({value:0}),_.Z("design:type",Number)],cH.prototype,"startAtTimeStamp_",void 0);_.I([_.K({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],cH.prototype,"isSquareAspectRatio_",void 0);_.I([_.qR("#video-preview"),_.Z("design:type",HTMLElement)],cH.prototype,"videoPreviewContainer",void 0);_.I([_.by("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],cH.prototype,"onYtPopupClosed_",null);
_.I([_.yU({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],cH);
_.m(cH,"yt-sharing-embed-renderer",function(){if(U3J===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;k$n===void 0&&(k$n=document.createElement("template"));var X=k$n;O.call(L,X.content.cloneNode(!0),A.content.firstChild);U3J=A}A=U3J;return A},{mode:2});var AoJ={};
AoJ.YtUnlimitedFamilyInterstitialBehavior=[_.iv.YtOpenPopupBehavior,_.es.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(A){A=_.F$H(_.AT(A),"yt-button-renderer");return A?A.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(A){this.dialogHistory_.push(A)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var A=this.popFromHistory();if(A){var L={openPopupAction:{popupType:"DIALOG",popup:{}}};L.openPopupAction.popup[A.renderer]=A.data;this.showingPreviousDialog_=!0;this.openPopup(L)}},
handleOpenPopupAction_:function(A){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var L=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(X){return!!A.openPopupAction.popup[X]}),O=this.getElementName_();
L&&this.data&&(this.pushToHistory({renderer:O,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(A){if(A=_.q(A,cMS))this.loading=!0,_.dQ(this.hostElement,"yt-open-create-family-dialog",[A,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var A=this.hostElement.nodeName.split("-").slice(1).map(function(L){return""+L[0].toUpperCase()+L.slice(1).toLowerCase()}).join("");
return A[0].toLowerCase()+A.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var LVM;var OF7;var C1=function(){return _.G.apply(this,arguments)||this};
_.g(C1,_.G);_.P=C1.prototype;_.P.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"footer-button":!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0,"footer-button":!0}}}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.dQ(this.hostElement,"yt-register-create-family-dialog");_.YJ(this.hostElement).querySelector("#thumbnail").onShow()};
_.P.fireOnCloseCommand_=function(){var A;((A=this.data)==null?0:A.onCloseCommand)&&_.VN(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.P.onYtServiceRequestSent_=function(A,L){L&&L.endpoint&&_.q(L.endpoint,_.nM)||(this.loading=!0)};
_.P.onYtServiceRequestCompleted_=function(){var A=this.hostElement.parentElement;A.close&&A.close();this.loading=!1};
_.P.openPopupHandler_=function(A){if(A.detail==this){var L;((L=this.data)==null?0:L.onOpenCommands)&&_.VN(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.P.closePopupHandler_=function(A,L){this.fireOnCloseCommand_();if(L&&L.canceled===!0||L&&L.canceled===!1&&L.confirmed===!1){var O;((O=this.data)==null?0:O.onDismissCommands)&&_.VN(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.P.dataChanged_=function(){this.loading=!1};
C1.prototype.dataChanged_=C1.prototype.dataChanged_;C1.prototype.closePopupHandler_=C1.prototype.closePopupHandler_;C1.prototype.openPopupHandler_=C1.prototype.openPopupHandler_;C1.prototype.onYtServiceRequestCompleted_=C1.prototype.onYtServiceRequestCompleted_;C1.prototype.onYtServiceRequestSent_=C1.prototype.onYtServiceRequestSent_;_.I([_.N(_.KP.YtEventForwardingBehavior),_.Z("design:type",Object)],C1.prototype,"ytEventForwardingBehavior",void 0);
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],C1.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(AoJ.YtUnlimitedFamilyInterstitialBehavior),_.Z("design:type",Object)],C1.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],C1.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],C1.prototype,"data",void 0);
_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],C1.prototype,"loading",void 0);_.I([_.by("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.aQ]),_.Z("design:returntype")],C1.prototype,"onYtServiceRequestSent_",null);_.I([_.by("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.Xi]),_.Z("design:returntype")],C1.prototype,"onYtServiceRequestCompleted_",null);
_.I([_.by("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],C1.prototype,"openPopupHandler_",null);_.I([_.by("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],C1.prototype,"closePopupHandler_",null);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],C1.prototype,"dataChanged_",null);
_.I([_.yU({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],C1);
_.m(C1,"yt-unlimited-family-message-interstitial-renderer",function(){if(OF7===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;LVM===void 0&&(LVM=document.createElement("template"));var X=LVM;O.call(L,X.content.cloneNode(!0),A.content.firstChild);OF7=A}A=OF7;return A},{mode:2});var X0J;var x$X;var F9=function(){return _.G.apply(this,arguments)||this};
_.g(F9,_.G);F9.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"}}}};
F9.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.YJ(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(A){A.onShow()});
_.YJ(this.hostElement).querySelector("#main-thumbnail").onShow()};
F9.prototype.onButtonTap_=function(A){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(A)};
F9.prototype.computeMainThumbnailWidth_=function(A){return A&&A.length!==0?72:96};
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],F9.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],F9.prototype,"ytRendererBehavior",void 0);_.I([_.N(AoJ.YtUnlimitedFamilyInterstitialBehavior),_.Z("design:type",Object)],F9.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],F9.prototype,"data",void 0);
_.I([_.K({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.Z("design:type",Number)],F9.prototype,"mainThumbnailWidth_",void 0);_.I([_.K({value:function(){return this.onButtonTap_.bind(this)}}),
_.Z("design:type",Function)],F9.prototype,"boundButtonTap_",void 0);_.I([_.yU({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],F9);
_.m(F9,"yt-unlimited-family-profile-interstitial-renderer",function(){if(x$X===void 0){var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;X0J===void 0&&(X0J=document.createElement("template"));var X=X0J;O.call(L,X.content.cloneNode(!0),A.content.firstChild);x$X=A}A=x$X;return A},{mode:2});var sKk;var JoS;var RV=function(){var A=_.G.apply(this,arguments)||this;A.sliderAriaValueText_=null;A.selectedIndex_=0;A.messages={PAUSE_SLIDER:_.b3("PAUSE_SLIDER",void 0,"Pause Duration")};return A};
_.g(RV,_.G);_.P=RV.prototype;_.P.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[onButtonTap_]]"}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},properties:{"on-tap":"[[onSecondaryTap_]]"}}}}}};
_.P.onPopupOpened_=function(A){A.detail==this&&_.h("enable_premium_voluntary_pause")&&(_.dQ(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.P.setDialogData=function(A){this.data=A;this.resetSlider_()};
_.P.dataChanged_=function(){this.data&&this.resetSlider_()};
_.P.onSubmitTap_=function(){if(this.data.confirmCommand){var A=this.data.confirmCommand;_.q(A,_.zWN)&&_.TZ(this.hostElement,[A,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.P.onExitButtonTap_=function(){_.dQ(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.P.closePopupHandler_=function(A,L){(L&&L.canceled===!0||L.canceled===!1&&L.confirmed===!1)&&this.handleOnDismissCommands_()};
_.P.onSliderChange_=function(){this.selectedIndex_=_.YJ(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.P.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.P.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.P.resetSlider_=function(){if(this.data){var A=this.data.defaultEndOptionIndex||0,L=_.YJ(this.hostElement).querySelector("#id-pause-slider");if(L.immediateValue<A)for(;L.immediateValue!=A;)L.increment();else if(A<L.immediateValue)for(;L.immediateValue!=A;)L.decrement();this.selectedIndex_=A;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.P.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.VN(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.P.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.VN(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.P.onYtServiceRequestSent=function(){this.loading=!0};
_.P.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
RV.prototype.onYtServiceRequestCompleted=RV.prototype.onYtServiceRequestCompleted;RV.prototype.onYtServiceRequestSent=RV.prototype.onYtServiceRequestSent;RV.prototype.closePopupHandler_=RV.prototype.closePopupHandler_;RV.prototype.dataChanged_=RV.prototype.dataChanged_;RV.prototype.onPopupOpened_=RV.prototype.onPopupOpened_;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],RV.prototype,"ytRendererBehavior",void 0);
_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],RV.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],RV.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],RV.prototype,"loading",void 0);_.I([_.K(),_.Z("design:type",Number)],RV.prototype,"selectIndexMax_",void 0);_.I([_.K(),_.Z("design:type",Object)],RV.prototype,"selectedData_",void 0);
_.I([_.K(),_.Z("design:type",Object)],RV.prototype,"sliderAriaValueText_",void 0);_.I([_.K({value:function(){return this.onSubmitTap_.bind(this)}}),
_.Z("design:type",Function)],RV.prototype,"onButtonTap_",void 0);_.I([_.K({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.Z("design:type",Function)],RV.prototype,"onSecondaryTap_",void 0);_.I([_.K(),_.Z("design:type",Object)],RV.prototype,"messages",void 0);_.I([_.by("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],RV.prototype,"onPopupOpened_",null);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],RV.prototype,"dataChanged_",null);
_.I([_.by("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],RV.prototype,"closePopupHandler_",null);_.I([_.by("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.aQ]),_.Z("design:returntype")],RV.prototype,"onYtServiceRequestSent",null);
_.I([_.by("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.Xi]),_.Z("design:returntype")],RV.prototype,"onYtServiceRequestCompleted",null);_.I([_.yU({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],RV);
_.m(RV,"yt-unplugged-pause-membership-dialog-renderer",function(){if(JoS===void 0){var A=document.createElement("template");_.p(A,'\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>');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;sKk===void 0&&(sKk=document.createElement("template"));var X=sKk;O.call(L,X.content.cloneNode(!0),A.content.firstChild);JoS=A}A=JoS;return A},{mode:2});var PLB;var d$$;var QD=function(){return _.G.apply(this,arguments)||this};
_.g(QD,_.G);QD.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.Zr("vcBalanceRenderer")}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],QD.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],QD.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],QD.prototype,"data",void 0);_.I([_.yU({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],QD);
_.m(QD,"yt-vc-offer-layout-header-renderer",function(){if(d$$===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;PLB===void 0&&(PLB=document.createElement("template"));var X=PLB;O.call(L,X.content.cloneNode(!0),A.content.firstChild);d$$=A}A=d$$;return A},{mode:2});var YGX;var uYJ;var T5M;var VF$;var ma=function(){return _.G.apply(this,arguments)||this};
_.g(ma,_.G);ma.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.v2.Object.defineProperties(ma.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)}}});
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],ma.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],ma.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.JuH.YtTappableItemBehavior),_.Z("design:type",Object)],ma.prototype,"ytTappableItemBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],ma.prototype,"data",void 0);
_.I([_.K({reflectToAttribute:!0}),_.r("data.accessibilityText"),_.Z("design:type",String),_.Z("design:paramtypes",[])],ma.prototype,"ariaLabel",null);_.I([_.K({reflectToAttribute:!0}),_.r("data.style"),_.Z("design:type",String),_.Z("design:paramtypes",[])],ma.prototype,"vcOfferStyle",null);_.I([_.r("data.style","data.titleText"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],ma.prototype,"showTitleText",null);_.I([_.yU({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],ma);
_.m(ma,"yt-vc-offer-renderer",function(){if(VF$===void 0){var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;T5M===void 0&&(T5M=document.createElement("template"));var X=T5M;O.call(L,X.content.cloneNode(!0),A.content.firstChild);VF$=A}A=VF$;return A},{mode:2});var f1=function(){return _.G.apply(this,arguments)||this};
_.g(f1,_.G);f1.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}}}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],f1.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],f1.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],f1.prototype,"data",void 0);_.I([_.yU({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],f1);
_.m(f1,"yt-vc-offer-layout-renderer",function(){if(uYJ===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;YGX===void 0&&(YGX=document.createElement("template"));var X=YGX;O.call(L,X.content.cloneNode(!0),A.content.firstChild);uYJ=A}A=uYJ;return A},{mode:2});var D$B;var eVZ;var ER$;var nRJ;var IV=function(){return _.G.apply(this,arguments)||this};
_.g(IV,_.G);IV.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}}}}}};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],IV.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],IV.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],IV.prototype,"data",void 0);_.I([_.yU({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],IV);
_.m(IV,"yt-ypc-offers-modal-top-bar-renderer",function(){if(nRJ===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;ER$===void 0&&(ER$=document.createElement("template"));var X=ER$;O.call(L,X.content.cloneNode(!0),A.content.firstChild);nRJ=A}A=nRJ;return A},{mode:2});var yD=function(){return _.G.apply(this,arguments)||this};
_.g(yD,_.G);yD.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"}}}}};
yD.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
yD.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var A=this.scrollable;A.attached&&typeof A.attached==="function"&&A.attached()};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],yD.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],yD.prototype,"ytRendererstamperBehavior",void 0);_.I([_.qR("#scrollable"),_.Z("design:type",Object)],yD.prototype,"scrollable",void 0);_.I([_.K(),_.Z("design:type",Object)],yD.prototype,"data",void 0);_.I([_.yU({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],yD);
_.m(yD,"yt-ypc-offers-modal-renderer",function(){if(eVZ===void 0){var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;D$B===void 0&&(D$B=document.createElement("template"));var X=D$B;O.call(L,X.content.cloneNode(!0),A.content.firstChild);eVZ=A}A=eVZ;return A},{mode:2});var tFJ;var bFM;var Za=function(){return _.G.apply(this,arguments)||this};
_.g(Za,_.G);_.P=Za.prototype;_.P.configureRendererStamper=function(){return{"data.continueButton":{id:"continue-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[bindOnContinueTapped_]]"}}}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.YJ(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.P.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.dQ(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.P.onYtPopupOpened_=function(A,L){(L==null?void 0:L.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.VN(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.P.onYtPopupClosed_=function(A,L){this.continueButtonTapped||L&&(L.canceled===!0||L.canceled===!1&&L.confirmed===!1)&&this.data.onDismissCommands&&_.VN(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.P.onYtServiceRequestError_=function(A){this.set("showSpinner",!1);_.JC(this.hostElement,A.detail.error.message)};
_.P.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.h("enable_ypc_spinners")?_.dQ(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
Za.prototype.onYtServiceRequestError_=Za.prototype.onYtServiceRequestError_;Za.prototype.onYtPopupClosed_=Za.prototype.onYtPopupClosed_;Za.prototype.onYtPopupOpened_=Za.prototype.onYtPopupOpened_;Za.prototype.onYtServiceRequestCompleted_=Za.prototype.onYtServiceRequestCompleted_;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Za.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],Za.prototype,"ytRendererstamperBehavior",void 0);
_.I([_.K(),_.Z("design:type",Object)],Za.prototype,"data",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],Za.prototype,"showSpinner",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],Za.prototype,"continueButtonTapped",void 0);_.I([_.K({value:function(){return this.onContinueTapped_.bind(this)}}),
_.Z("design:type",Function)],Za.prototype,"bindOnContinueTapped_",void 0);_.I([_.by("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Za.prototype,"onYtServiceRequestCompleted_",null);_.I([_.by("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],Za.prototype,"onYtPopupOpened_",null);
_.I([_.by("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],Za.prototype,"onYtPopupClosed_",null);_.I([_.by("yt-service-request-error"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Za.prototype,"onYtServiceRequestError_",null);_.I([_.yU({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],Za);
_.m(Za,"yt-ypc-upgrade-dialog-renderer",function(){if(bFM===void 0){var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;tFJ===void 0&&(tFJ=document.createElement("template"));var X=tFJ;O.call(L,X.content.cloneNode(!0),A.content.firstChild);bFM=A}A=bFM;return A},{mode:2});var hV7;var SGS;var jz=function(){return _.G.apply(this,arguments)||this};
_.g(jz,_.G);jz.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
jz.prototype.computeHasButtons_=function(A){return!(!A.dismissButton&&!A.confirmButton)};
jz.prototype.computeStyle_=function(A){return A||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],jz.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.KP.YtEventForwardingBehavior),_.Z("design:type",Object)],jz.prototype,"ytEventForwardingBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],jz.prototype,"ytRendererstamperBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],jz.prototype,"data",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],jz.prototype,"positionType",void 0);
_.I([_.K({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.Z("design:type",Boolean)],jz.prototype,"hasButtons_",void 0);_.I([_.K({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],jz.prototype,"style_",void 0);_.I([_.yU({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],jz);
_.m(jz,"yt-bubble-hint-renderer",function(){if(SGS===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;hV7===void 0&&(hV7=document.createElement("template"));var X=hV7;O.call(L,X.content.cloneNode(!0),A.content.firstChild);SGS=A}A=SGS;return A},{mode:2});var qGZ;var gRn;var WH=function(){var A=_.oU.apply(this,arguments)||this;A.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return A};
_.g(WH,_.oU);_.P=WH.prototype;_.P.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.P.attached=function(){var A=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){A.$.thumbnail.onShow();A.$["header-image"].onShow()})};
_.P.handleCheckBoxUpdateAction_=function(A){this.canShowCheckboxEnabledConfirmButton=A};
_.P.computeUseOverlayForSpinner_=function(A,L){return!!A&&L};
_.P.computeShowSpinner_=function(A,L){return A||!!L};
_.P.fireOnCloseActions_=function(){var A,L=_.d(((A=this.data)==null?void 0:A.onClosedActions)||[]);for(A=L.next();!A.done;A=L.next())this.ytRendererBehavior.resolveCommand(A.value)};
_.P.fireOnOpenCommands_=function(A){var L,O=(L=this.data)==null?void 0:L.onOpenCommands;if(O)for(A.stopImmediatePropagation(),A=_.d(O),L=A.next();!L.done;L=A.next())this.ytRendererBehavior.resolveCommand(L.value)};
_.P.fireOnDismissCommands_=function(A){var L,O=(L=this.data)==null?void 0:L.onDismissCommands;if(O)for(A.stopImmediatePropagation(),A=_.d(O),L=A.next();!L.done;L=A.next())this.ytRendererBehavior.resolveCommand(L.value)};
_.P.openPopupHandler_=function(A){A.detail==this&&this.fireOnOpenCommands_(A)};
_.P.closePopupHandler_=function(A,L){_.YK(this,"yt-confirm-dialog-close-action",[L]);this.fireOnCloseActions_();(L&&L.canceled===!0||L&&L.canceled===!1&&L.confirmed===!1)&&this.fireOnDismissCommands_(A)};
_.P.onHeaderImageChanged_=function(){var A;((A=this.data)==null?0:A.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.P.computeHasHeaderImageWidth_=function(A){return A!=void 0};
_.P.computeHasLoadingMessage=function(A){return!!A};
_.P.onHeaderImageWidthChanged_=function(){var A,L=(A=this.data)==null?void 0:A.headerImageWidth;if(L){if(A=1.25*L*2+L,this.$.main.style.width=A+"px",L=this.$.scroller.firstElementChild)L.style.minWidth=A+"px"}else this.$.main.style.width="100%"};
_.P.onThumbnailChanged_=function(){var A;((A=this.data)==null?0:A.thumbnail)?(this.setAttribute("dialog-with-thumbnail",""),this.$.scroller.scrollTarget.style.maxHeight="139px",this.$.thumbnail.onShow()):(this.removeAttribute("dialog-with-thumbnail"),this.$.scroller.scrollTarget.style.maxHeight="none")};
_.P.onYtNavigate_=function(A){A=_.AT(A);A instanceof Node&&_.uy(this.$["confirm-button"]).contains(A)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.P.computePrimaryIsCancel_=function(A){return A};
_.P.computeIsCancelButtonHidden_=function(A){return A.skipCancelButton||!A.cancelButton};
_.P.computeIsCheckboxHidden_=function(A){return!A.checkbox};
_.P.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.P.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.P.onYtServiceRequestCompleted_=function(){var A;((A=this.data)==null?0:A.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.v2.Object.defineProperties(WH,{template:{configurable:!0,enumerable:!0,get:function(){if(gRn===void 0){var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;qGZ===void 0&&(qGZ=document.createElement("template"));var X=qGZ;O.call(L,X.content.cloneNode(!0),A.content.firstChild);gRn=A}A=gRn;return A}}});
WH.prototype.onYtServiceRequestCompleted_=WH.prototype.onYtServiceRequestCompleted_;WH.prototype.onYtServiceRequestSent_=WH.prototype.onYtServiceRequestSent_;WH.prototype.onThumbnailLoaded_=WH.prototype.onThumbnailLoaded_;WH.prototype.onYtNavigate_=WH.prototype.onYtNavigate_;WH.prototype.onThumbnailChanged_=WH.prototype.onThumbnailChanged_;WH.prototype.onHeaderImageWidthChanged_=WH.prototype.onHeaderImageWidthChanged_;WH.prototype.onHeaderImageChanged_=WH.prototype.onHeaderImageChanged_;
WH.prototype.closePopupHandler_=WH.prototype.closePopupHandler_;WH.prototype.openPopupHandler_=WH.prototype.openPopupHandler_;_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],WH.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],WH.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],WH.prototype,"ytRendererBehavior",void 0);
_.I([_.N(_.KP.YtEventForwardingBehavior),_.Z("design:type",Object)],WH.prototype,"ytEventForwardingBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],WH.prototype,"data",void 0);_.I([_.K({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.Z("design:type",Boolean)],WH.prototype,"primaryIsCancel",void 0);_.I([_.K({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.Z("design:type",Boolean)],WH.prototype,"isCancelButtonHidden",void 0);
_.I([_.K({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.Z("design:type",Boolean)],WH.prototype,"isCheckboxHidden",void 0);_.I([_.K({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],WH.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.I([_.K({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],WH.prototype,"useOverlayForSpinner_",void 0);
_.I([_.K({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.Z("design:type",Boolean)],WH.prototype,"showSpinner_",void 0);_.I([_.K({value:!1}),_.Z("design:type",Boolean)],WH.prototype,"isActionInProgress_",void 0);_.I([_.K({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.Z("design:type",Boolean)],WH.prototype,"hasHeaderImageWidth_",void 0);
_.I([_.K({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.Z("design:type",Boolean)],WH.prototype,"hasLoadingMessage",void 0);_.I([_.by("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],WH.prototype,"openPopupHandler_",null);_.I([_.by("yt-popup-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],WH.prototype,"closePopupHandler_",null);
_.I([_.hT("data.headerImage"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],WH.prototype,"onHeaderImageChanged_",null);_.I([_.hT("data.headerImageWidth"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],WH.prototype,"onHeaderImageWidthChanged_",null);_.I([_.hT("data.thumbnail"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],WH.prototype,"onThumbnailChanged_",null);
_.I([_.by("yt-navigate"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],WH.prototype,"onYtNavigate_",null);_.I([_.by("yt-img-shadow-loaded"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],WH.prototype,"onThumbnailLoaded_",null);_.I([_.by("yt-service-request-sent"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.aQ]),_.Z("design:returntype")],WH.prototype,"onYtServiceRequestSent_",null);
_.I([_.by("yt-service-request-completed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,_.Xi]),_.Z("design:returntype")],WH.prototype,"onYtServiceRequestCompleted_",null);_.I([_.yU({is:"yt-confirm-dialog-renderer",noInjection:!0})],WH);var w0n;var p0n;var HH=function(){return _.G.apply(this,arguments)||this};
_.g(HH,_.G);HH.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.YJ(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
HH.prototype.computeConfirmButton_=function(A){var L={text:A.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};A.confirmNavigationEndpoint?L.navigationEndpoint=A.confirmNavigationEndpoint:A.confirmServiceEndpoint&&(L.serviceEndpoint=A.confirmServiceEndpoint);return L};
HH.prototype.computeShowTitle_=function(A){return!(A==null||!A.title)};
_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],HH.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],HH.prototype,"data",void 0);_.I([_.K({computed:"computeShowTitle_(data)"}),_.Z("design:type",Boolean)],HH.prototype,"showTitle",void 0);_.I([_.yU({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],HH);
_.m(HH,"yt-fancy-dismissible-dialog-renderer",function(){if(p0n===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;w0n===void 0&&(w0n=document.createElement("template"));var X=w0n;O.call(L,X.content.cloneNode(!0),A.content.firstChild);p0n=A}A=p0n;return A});var iFZ;var N57;var z5=function(){var A=_.G.apply(this,arguments)||this;A.spinnerActive=!1;return A};
_.g(z5,_.G);z5.prototype.created=function(){jDX(2201)};
z5.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
z5.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
z5.prototype.onIronOverlayClosed=z5.prototype.onIronOverlayClosed;z5.prototype.onIronOverlayOpened=z5.prototype.onIronOverlayOpened;_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],z5.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.AB),_.Z("design:type",Object)],z5.prototype,"tpYtIronOverlayBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],z5.prototype,"data",void 0);_.I([_.K(),_.Z("design:type",Object)],z5.prototype,"spinnerActive",void 0);
_.I([_.by("iron-overlay-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],z5.prototype,"onIronOverlayOpened",null);_.I([_.by("iron-overlay-closed"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],z5.prototype,"onIronOverlayClosed",null);_.I([_.yU({is:"yt-loading-renderer",disableElementRegistration:!0})],z5);
_.m(z5,"yt-loading-renderer",function(){if(N57===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;iFZ===void 0&&(iFZ=document.createElement("template"));var X=iFZ;O.call(L,X.content.cloneNode(!0),A.content.firstChild);N57=A}A=N57;return A},{mode:2});var roB;var KVM;var BH=function(){var A=_.G.apply(this,arguments)||this;A.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);A.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);A.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";A.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return A};
_.g(BH,_.G);_.P=BH.prototype;_.P.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.P.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.P.onDarkModeToggledAction=function(A){this.isDarkTheme=A};
_.P.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.P.openPopupHandler_=function(A){A.detail===this.hostElement&&this.hostElement.hidden&&_.dQ(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.P.onDismissButtonTap_=function(){var A;this.closeOnDismissButton_.has(((A=this.data)==null?void 0:A.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.dQ(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.P.onAcceptButtonTap_=function(){var A;this.closeOnAcceptButton_.has(((A=this.data)==null?void 0:A.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.dQ(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.P.computeHasHeader_=function(A){return!!A.headerBackgroundImage};
_.P.computeLayoutStyle_=function(A){return A};
_.P.computePopupSize_=function(A){return A};
_.P.computeIconType_=function(A){return A.dialogIcon&&A.dialogIcon.iconType?A.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":A.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":A.dialogIcon.iconType:""};
_.P.computeIsLogo_=function(A){return!!A.dialogIcon&&!!A.dialogIcon.iconType&&(A.dialogIcon.iconType==="YOUTUBE_LOGO"||A.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||A.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.P.computeHasCustomLogo=function(A){return!(A==null||!A.headerForegroundImage)};
_.P.computeCustomLogo=function(A,L){if(A!=null&&A.headerForegroundImage)return A.headerForegroundImageDark?L?A.headerForegroundImageDark:A.headerForegroundImage:A.headerForegroundImage};
_.P.computeHeaderBackgroundImage=function(A,L){if(A!=null&&A.headerBackgroundImage)return L&&(A==null?0:A.headerBackgroundImageDark)?A.headerBackgroundImageDark:A.headerBackgroundImage};
_.P.shouldShowIconContainer=function(A,L){return A&&!L};
_.P.shouldShowNonYouTubeIcon=function(A,L){return!A&&!L};
_.P.getLogoImageId=function(A){var L,O,X;return(A=(L=this.computeCustomLogo(A,this.isDarkTheme))==null?void 0:(O=L.thumbnails)==null?void 0:(X=O[0])==null?void 0:X.height)&&A%31===0?"custom-logo-with-padding":"custom-logo"};
BH.prototype.openPopupHandler_=BH.prototype.openPopupHandler_;BH.prototype.dataChanged_=BH.prototype.dataChanged_;_.I([_.N(_.Db.YtRendererstamperBehavior),_.Z("design:type",Object)],BH.prototype,"ytRendererstamperBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],BH.prototype,"ytRendererBehavior",void 0);_.I([_.K(),_.Z("design:type",Boolean)],BH.prototype,"isDarkTheme",void 0);
_.I([_.K({computed:"computeCustomLogo(data, isDarkTheme)"}),_.Z("design:type",Object)],BH.prototype,"customLogo",void 0);_.I([_.K({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.Z("design:type",Object)],BH.prototype,"headerBackgroundImage",void 0);_.I([_.K(),_.Z("design:type",Object)],BH.prototype,"data",void 0);_.I([_.K({computed:"computeHasHeader_(data)"}),_.Z("design:type",Boolean)],BH.prototype,"hasHeader",void 0);
_.I([_.K({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.Z("design:type",Object)],BH.prototype,"layoutStyle",void 0);_.I([_.K({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.Z("design:type",Object)],BH.prototype,"popupSize",void 0);_.I([_.K({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],BH.prototype,"hasLogo",void 0);
_.I([_.K({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.Z("design:type",Boolean)],BH.prototype,"hasCustomLogo",void 0);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],BH.prototype,"dataChanged_",null);_.I([_.by("yt-popup-opened"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],BH.prototype,"openPopupHandler_",null);
_.I([_.yU({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],BH);
_.m(BH,"yt-upsell-dialog-renderer",function(){if(KVM===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;roB===void 0&&(roB=document.createElement("template"));var X=roB;O.call(L,X.content.cloneNode(!0),A.content.firstChild);KVM=A}A=KVM;return A},{mode:2});var GhQ=_.xa(function(A){return _.D("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-header"},_.D(_.e,{cond:A.title,then:function(L){return _.D("h2",{class:"mini-app-game-info-dialog-view-model-wiz__header-title"},L)}}))},"Mg"),lvz=_.xa(function(A){return _.D("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-footer"},_.D(_.ID,{data:A.closeButton},{buttonViewModel:function(L){return _.D("div",null,_.D(_.gj,{data:L.data}))}}))},"Ng"),coX=_.xa(function(A){var L=
A.data;
return _.D(_.Xs,null,_.D("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info-details"},_.D("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-image-wrapper"},_.D(_.e,{cond:function(){return!!L().image&&!!L().title},
then:function(){return _.D(_.XV,{data:function(){return L().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.D("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info"},_.D(_.e,{cond:function(){return L().title},
then:function(O){return _.D("h3",{class:"mini-app-game-info-dialog-view-model-wiz__title"},O)}}),_.D(_.e,{cond:function(){return L().primaryGenre},
then:function(O){return _.D("span",{class:"mini-app-game-info-dialog-view-model-wiz__genre"},O)}}))),_.D(_.e,{cond:function(){var O=L().description;
return O&&O.length<=150},
then:function(){return _.D("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-description-wrapper"},_.D("span",{class:"mini-app-game-info-dialog-view-model-wiz__game-description"},function(){return L().description}))}}))},"Og"),CLQ=_.xa(function(A){A=A.infoRows;
var L=_.X5().resolve(_.vv),O=_.h("enable_displaying_ppn");return _.D("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-rows-wrapper"},_.D(_.g9,{each:A},function(X){return _.D("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.D(_.e,{cond:function(){return X.label},
then:function(x){return _.D("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},x)}}),_.D(_.e,{cond:function(){return X.attributedLabel},
then:function(x){return _.D("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},_.D(_.Xg,{text:x,noPreWrap:!0}))}}),_.D(_.e,{cond:function(){return X.value},
then:function(x){return _.D("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},x)}}),_.D(_.e,{cond:function(){return X.attributedValue},
then:function(x){return _.D("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},_.D(_.Xg,{text:x,noPreWrap:!0}))}}))}),_.D(_.e,{cond:function(){return O&&L.clientData.has("post_play_nonce")},
then:function(){return _.D("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.D("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},"Post Play Nonce"),_.D("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},L.getData("post_play_nonce")))}}))},"Pg"),FVZ=_.xa(function(A){var L=A.data;
return _.D("yt-mini-app-game-info-dialog-view-model",{class:"mini-app-game-info-dialog-view-model-wiz"},_.D(GhQ,{title:function(){return L().dialogTitle}}),_.D(coX,{data:L}),_.D(_.e,{cond:function(){return L().infoRow},
then:function(O){return _.D(CLQ,{infoRows:O})}}),_.D(lvz,{closeButton:function(){return L().closeButton}}))},"Qg");
FVZ.idomCompat=!0;_.Y4(FVZ,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.x5}});_.Y4(_.xa(function(A){var L=A.data;return _.D("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.D(_.XV,{data:function(){return L().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.D("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.D("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.D(_.e,{cond:function(){var O=L().ytLogo;return O?O.iconType:null},
then:function(O){return _.D(_.Ky,{icon:O,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.D("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.D("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.D(_.Xg,{text:function(){return L().title}})),_.D("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.D(_.Xg,{text:function(){return L().body}})),_.D("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.D(_.Xg,{text:function(){return L().verifyStateText}}))),
_.D("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.D("div",null,_.D(_.ID,{data:function(){return L().dismissButton}},{buttonViewModel:_.gj})),_.D("div",null,_.D(_.ID,{data:function(){return L().linkParentButton}},{buttonViewModel:_.gj})))))},"Rg"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.x5}});var RV$=_.xa(function(A){var L=A.data;A=_.LT(function(){return L().agreements},[]);
return _.D("installment-agreements-view-model",{class:_.qn("ytInstallmentAgreementsViewModelHost")},_.D(_.g9,{each:A},function(O){return _.D("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.D("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.D(_.Xg,{text:O.label})),_.D("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.D(_.ID,{data:function(){return O.openButton}},{buttonViewModel:_.gj})))}))},"Sg");
RV$.idomCompat=!0;var QKJ=_.xa(function(A){return _.D("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.D("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.D(_.Xg,{text:function(){return A.data().inviteMessage}})),_.D("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.D(_.Xg,{text:function(){return A.data().attributedAccountSectionHeaderText}})),_.D("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.D(_.ID,{data:function(){return A.data().accountAvatar}},{avatarViewModel:_.fP}),_.D("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.D(_.Xg,{text:function(){return A.data().accountName}}),_.D("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.D(_.Xg,{text:function(){return A.data().handle}}))),_.D(_.ID,{data:function(){return A.data().trailingButton}},{buttonViewModel:_.gj})),_.D("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.D(_.Xg,{text:function(){return A.data().termsOfService}})))},"Tg");var m$$=_.xa(function(A){var L=_.d(_.Nn(function(){var a,xe;return((a=A.data().createPlaylistDialogFormSchema)==null?0:(xe=a.initialValues)==null?0:xe.title)?A.data().createPlaylistDialogFormSchema.initialValues.title:""})),O=L.next().value,X=L.next().value;
L=_.d(_.Nn(function(){A.data();return!1}));
var x=L.next().value,J=L.next().value;L=_.d(_.Nn(function(){A.data();return!1}));
var Y=L.next().value,T=L.next().value;L=_.d(_.Nn(function(){var a,xe;return(a=A.data().createPlaylistDialogFormSchema)==null?void 0:(xe=a.initialValues)==null?void 0:xe.visibility}));
var V=L.next().value,E=L.next().value;L=_.d(_.Nn(function(){A.data();return!1}));
var n=L.next().value,t=L.next().value;L=_.d(_.Nn(function(){var a,xe;return(a=A.data().createPlaylistDialogFormSchema)==null?void 0:(xe=a.initialValues)==null?void 0:xe.isCollaborative}));
var b=L.next().value,S=L.next().value,w=_.av("div");_.ND(function(){var a=w.value.querySelector("textarea");a&&(a.value=O())},"OCauEe");
_.GD(function(){var a;_.ZBM((a=A.data().createPlaylistDialogFormSchema)==null?void 0:a.id,{onSubmit:function(){var xe=O();var ur=V(),eD=b(),gu=A.data();xe={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:xe,privacyStatus:ur,videoIds:gu.videoIds,sourcePlaylistId:gu.sourcePlaylistId,params:eD?gu.createPlaylistParamsCollaborationEnabled:gu.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.X5().resolve(_.x$).resolveCommand(xe)},
isValid:function(){return x()&&!Y()&&!n()}})});
var l=function(a){if(a!==void 0&&(X(a),!x()&&a.length>0&&J(!0),x())){var xe=vaX(A.data());if(xe){var ur=xe.minLength;xe=xe.maxLength;ur&&a.length<ur?T(!0):xe&&a.length>xe?T(!0):T(!1)}}},F=function(){var a=!(!b()||V()!=="PRIVATE");
t(a)},R=function(a){a!==void 0&&(E(a),F())},y=function(){if(n())return AFX(A.data())},M=function(){S(!b());
F()},H=function(){return{validate:function(a){if(x()){var xe=vaX(A.data());
if(xe){var ur=xe.minLength;xe=xe.translations;if(ur&&a.length<ur)return xe==null?void 0:xe.minLengthErrorMessage}}}}},z=function(){var a=vaX(A.data()),xe=a==null?void 0:a.maxLength,ur;
a=a==null?void 0:(ur=a.translations)==null?void 0:ur.maxLengthErrorMessage;if(xe&&a)return{maxChars:xe,errorMessage:a}};
return _.D("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.D("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:w},_.D(_.ID,{data:function(){return A.data().playlistTitle}},{textFormFieldViewModel:function(a){return _.D(_.FxS,{data:a.data,
text:O,onInput:l,validation:H,characterLimit:z})},
textFieldViewModel:function(a){return _.D(_.CgJ,{data:a.data,text:O,onInput:l,validation:H,characterLimit:z})}})),_.D("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.D(_.ID,{data:function(){return A.data().playlistVisibility}},{dropdownViewModel:function(a){return _.D(_.BTJ,{data:a.data,
onSelected:R,error:y})}})),_.D(_.e,{cond:function(){return!!A.data().playlistCollaborate},
then:function(){return _.D("div",null,_.D(_.ID,{data:function(){return A.data().playlistCollaborate}},{switchListItemViewModel:function(a){return _.D(_.Tyg,{data:a.data,
onTap:M})}}))}}))},"Ug");var fvk=_.xa(function(A){var L=A.data;return _.D("upsell-offer-table-cell-content-view-model",null,_.D("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.D(_.ik,null,_.D(_.w9,{when:function(){return L().iconType}},function(){return _.D("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.D(_.Ky,{icon:function(){return L().iconType.toString()}}))}),_.D(_.w9,{when:function(){return L().title}},function(){return _.D(_.Xg,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return L().title}})}),_.D(_.w9,{when:function(){return L().subtitle}},function(){return _.D(_.Xg,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return L().subtitle}})}),_.D(_.w9,{when:function(){return L().infoText}},function(){return _.D(_.Xg,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return L().infoText}})}),_.D(_.w9,{when:function(){return L().featureDescription}},function(){return _.D(_.Xg,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return L().featureDescription}})}),_.D(_.w9,{when:function(){return L().note}},function(){return _.D(_.Xg,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return L().note}})}))))},"Vg");
fvk.idomCompat=!0;var IvM=_.xa(function(A){var L=A.data;return _.D("upsell-offer-table-cell-view-model",null,_.D("div",{class:_.qn("ytUpsellOfferTableCellViewModelCellWrapper",function(){return L().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"})},_.D(_.ID,{data:function(){return L().contents}},{upsellOfferTableCellContentViewModel:fvk})))},"Wg");
IvM.idomCompat=!0;var yoJ=_.xa(function(A){var L=A.data;var O=A.upsellTableIsFirstRow;var X=function(){return(O==null?0:O())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},x=function(){return(O==null?0:O())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.D("ytm-upsell-offer-table-row-view-model",null,_.D("div",{class:"ytUpsellOfferTableRowViewModelHost"},_.D(_.ID,{data:function(){return L().rowHeaderCell}},{upsellOfferTableCellViewModel:function(J){return _.D("div",{class:X},_.D(IvM,{data:J.data}))}}),_.D(_.ID,{data:function(){return L().contentCells}},{upsellOfferTableCellViewModel:function(J){return _.D("div",{class:x},_.D(IvM,{data:J.data}))}})))},"Xg");
yoJ.idomCompat=!0;var ZFJ=_.xa(function(A){var L=A.data;return _.D("ytm-upsell-offer-table-view-model",null,_.D("div",{class:"ytUpsellOfferTableViewModelHost"},_.D("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.D(_.ID,{data:function(){return L().rows}},{upsellOfferTableRowViewModel:function(O,X){return _.D(yoJ,{data:O.data,
upsellTableIsFirstRow:function(){return X()===0}})}}))))},"Yg");
ZFJ.idomCompat=!0;var jKS=_.xa(function(A){var L=_.LT(A.noPadding,!1),O=function(){var J,Y;return(Y=(J=A.data().logo.accessibilityData)==null?void 0:J.label)!=null?Y:""},X=function(){return A.data().offerTable},x={};
return _.D("upsell-view-model",{class:_.qn("ytUpsellViewModelHost",(x.ytUpsellViewModelHostNoPadding=function(){return L()},x.ytUpsellViewModelHostWide=function(){return X()!==void 0},x))},_.D("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.D(_.e,{cond:function(){return _.AC(A.data().logo)},
then:function(J){return _.D(_.XV,{data:J,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:O})}})),_.D("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.D(_.Xg,{text:function(){return A.data().title}})),_.D("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.D(_.g9,{each:function(){var J;
return(J=A.data().subtitles)!=null?J:[]},
keyBy:"INDEX"},function(J){var Y={};return _.D("div",{class:_.qn("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(Y.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return X()!==void 0},Y))},_.D(_.Xg,{text:J}))})),_.D("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.D(_.g9,{each:function(){var J;
return(J=A.data().benefitInfos)!=null?J:[]},
keyBy:"INDEX"},function(J){return _.D(_.e,{cond:function(){return J().info},
then:function(Y){return _.D("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.D(_.Ky,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.D(_.Xg,{text:Y}))}})})),_.D(_.e,{cond:function(){return X()!==void 0},
then:function(){return _.D("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.D(ZFJ,{data:X}))}}),_.D("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.D(_.g9,{each:function(){var J;
return(J=A.data().legalInfos)!=null?J:[]},
keyBy:"INDEX"},function(J){var Y={};return _.D("div",{class:_.qn("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(Y.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return X()!==void 0},Y))},_.D(_.Xg,{text:J}))})))},"Zg");var WVB=_.xa(function(A){var L=A.data;A={};A=(A.ytMiniAppScoreChallengeViewModelScoreRadial=!0,A.ytMiniAppScoreChallengeViewModelDarkScoreRadial=L4X(),A);return _.D("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.D("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return L().title}),_.D("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return L().subtitle}),_.D("div",{class:_.gl(A)},_.D("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return L().score})),_.D("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return L().prompt}))},"$g");var HFX=function(){this.store=_.oJ();this.formId=""};
HFX.prototype.onInit=function(A){A.formId&&(this.formId=A.formId,this.store.dispatch(_.JY({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};var zVQ=_.xa(function(A){function L(T){if(T&&(T=_.q(T,_.Ku)))return Object.assign({},T,{isSelected:J()})}
var O=_.d(_.Nn(function(){var T,V;return(V=(T=_.q(A.data().option,_.Ku))==null?void 0:T.isSelected)!=null?V:!1})),X=O.next().value,x=O.next().value,J=X;
_.GD(function(){var T;_.ZBM((T=A.data().formSchema)==null?void 0:T.id,{onSubmit:function(){var V=_.X5().resolve(_.x$),E=!!A.data().selectedCommand,n=!!A.data().unselectedCommand;if(J()){if(E)var t=A.data().selectedCommand}else n&&(t=A.data().unselectedCommand);t=_.HR(t);L(A.data().option)&&!t?(V="",!E&&n?V="selected ":E&&!n&&(V="unselected "),E=new _.pe("No "+V+"command found for SelectionListItemFormViewModel"),_.C7(E)):t&&V.resolveCommand(t)},
isValid:function(){return!0}})});
var Y=function(){x(!J())};
_.rF(function(){var T,V,E=(T=A.data())==null?void 0:(V=T.formSchema)==null?void 0:V.id;E&&_.IJZ()().delete(E)});
return _.D("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.D("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.D(_.Xg,{text:function(){return A.data().paragraph}})),_.D(_.e,{cond:function(){return L(A.data().option)},
then:function(T){return _.D(_.HZ,{data:T,isCompact:!0,hideSelectionTextChevron:!0,onTap:Y,disableHorizontalPadding:!0})}}))},"ah");var B5$=_.xa(function(A){var L=A.data;var O=A.disablePadding;var X=A.className;var x=_.av("yt-dialog-header-view-model"),J=function(){var T=L().imageBanner;a:switch(L().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var V="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:V="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:T,style:V,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},Y=function(){return L().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.GD(function(){var T=function(){_.dQ(x.value,"yt-refit-popups-action")},V;
(V=x.value)==null||V.addEventListener("image-loaded",T);_.rF(function(){var E;(E=x.value)==null||E.removeEventListener("image-loaded",T)})});
A={};return _.D("yt-dialog-header-view-model",{el:x,class:_.qn(X,(A.ytDialogHeaderViewModelHost=!0,A.ytDialogHeaderViewModelHostDisablePadding=O,A))},_.D(_.e,{cond:function(){return L().imageBanner},
then:function(){var T={};return _.D("div",{class:_.qn(X,(T.ytDialogHeaderViewModelBanner=!0,T.ytDialogHeaderViewModelBannerFullBleed=Y,T)),style:_.rl({"max-height":function(){return L().assetContainerMaxHeight!==void 0?L().assetContainerMaxHeight+"px":void 0}})},_.D(_.uG,{data:J,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.D(_.e,{cond:function(){return L().headerBlock},
then:function(){return _.D("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.D(_.ID,{data:function(){return L().headerBlock}},{contentPreviewImageViewModel:function(T){return _.D(_.uG,{data:T.data,
notifyOnLoaded:!0})}}))}}),_.D(_.e,{cond:function(){return L().customBanner},
then:function(T){return _.D("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.D(_.ID,{data:T},{avatarStackViewModel:_.yh}))}}),_.D(_.e,{cond:function(){return L().headline},
then:function(T){return _.D("h2",null,_.D(_.Xg,{text:T,className:"ytDialogHeaderViewModelText"}))}}))},"bh");
B5$.idomCompat=!0;var MFJ=_.xa(function(A){var L=_.jOk(function(){return A.data().formId}),O=L.onSubmit,X=L.isValid;
return _.D("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.D(_.ID,{data:function(){return A.data().panelFooter}},{panelFooterViewModel:function(x){return _.D(_.d8,{data:x.data,
disablePadding:!0,disablePrimaryButton:function(){return!X()},
onClickPrimaryButton:function(){O()}})}}))},"ch");var $$X=_.xa(function(A){var L=function(){var O,X;return(X=(O=_.q(A.data().rendererContext,_.ll))==null?void 0:O.label)!=null?X:""};
return _.D("yt-dialog-image-content-view-model",{class:_.qn("ytDialogImageContentViewModelHost",A.className)},_.D(_.e,{cond:function(){return _.AC(A.data().image)},
then:function(O){return _.D(_.XV,{data:O,alt:L,className:"ytDialogImageContentViewModelImage",contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"})}}),_.D(_.Xg,{text:function(){return A.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"dh");var U$Z=_.xa(function(A){var L=_.OY(A,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),O=L.elRefCallback;A=L.iconWiz;var X=L.assetWiz,x=L.assetType,J=L.titleWiz,Y=L.leadingActionHeaderWiz,T=L.trailingActionHeaderWiz,V=L.headerPosition,E=L.contentWiz,n=L.buttonLayout,t=L.buttonStyle,b=L.primaryButtonWiz,S=L.secondaryButtonWiz,w=L.contentAlignment,l=L.isFullscreen,F=L.width,R=L.maxHeight,y=L.isHeaderWizDefined,
M=L.headerWiz,H=L.isFooterWizDefined,z=L.footerWiz;L=_.av("dialog-layout",function(mM){O==null||O(mM)});
var a=X?function(){return X({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,xe=b?function(){var mM={};
return b({buttonOverrides:function(){return{style:(t==null?void 0:t())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.qn((mM["yt-spec-dialog-layout__dialog-layout-button"]=!0,mM["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(n==null?void 0:n())===0||(n==null?void 0:n())===2},mM))})}:void 0,ur=S?function(){var mM={};
return S({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.qn((mM["yt-spec-dialog-layout__dialog-layout-button"]=!0,mM["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(n==null?void 0:n())===0||(n==null?void 0:n())===2},mM))})}:void 0,eD=function(){return(!!J||!!Y||!!T)&&V()===0},gu={},ir={},SD={},HJ={};
return _.D("dialog-layout",{el:L,class:_.qn((gu["yt-spec-dialog-layout"]=!0,gu["yt-spec-dialog-layout--dialog-layout-fullscreen"]=l,gu["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!l()},gu["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return R()===1},gu["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(x==null?void 0:x())===1},gu)),
style:function(){return(F==null?void 0:F())!==void 0?"width: "+F+"px;":""}},A?_.D("div",{class:_.qn((ir["yt-spec-dialog-layout__dialog-layout-icon"]=!0,ir["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!X&&V()===1},ir["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return w()===1},ir))},_.D(A,null)):null,_.D(_.e,{cond:y,
then:function(){return M?_.D("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.D(M,null)):null},
else:function(){return _.D(_.Xs,null,_.D(_.e,{cond:eD,then:function(){return _.D(avX,{contentAlignment:w,LeadingActionHeader:Y,TrailingActionHeader:T,Title:J,isAboveAsset:!!a})}}),a?_.D("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.D(a,null)):null)}}),_.D("div",{class:_.qn((SD["yt-spec-dialog-layout__dialog-layout-container"]=!0,SD["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(w==null?void 0:w())===1},SD["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-container-top-padding"]=
function(){return!J&&!M||!!a&&(V==null?void 0:V())===0},SD))},_.D(_.e,{cond:function(){return J&&!M&&(V==null?void 0:V())===1},
then:function(){return _.D(avX,{contentAlignment:w,LeadingActionHeader:Y,TrailingActionHeader:T,Title:J,isAboveAsset:!1})}}),E?_.D("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.D("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.D(E,null))):null,_.D(_.e,{cond:H,
then:function(){return z?_.D("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.D(z,null)):null}}),xe||ur?_.D(kh$,{footerClasses:_.qn((HJ["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,HJ["yt-spec-dialog-layout__dialog-layout-footer"]=!0,HJ["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(n==null?void 0:n())===2},HJ["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(n==null?void 0:n())===1},HJ)),
PrimaryButton:xe,SecondaryButton:ur}):null))},"eh"),avX=_.xa(function(A){var L=_.OY(A,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),O=L.contentAlignment,X=L.LeadingActionHeader;A=L.Title;var x=L.TrailingActionHeader,J=L.isAboveAsset,Y=L.enableLeadingActionHeader;L={};return _.D("div",{class:_.qn((L["yt-spec-dialog-layout__dialog-header-container"]=!0,L["yt-spec-dialog-layout__dialog-header"]=!0,L["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=J,L["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(O==null?void 0:O())===1&&Y()},L))},_.D(_.e,{cond:function(){return Y()},
then:function(){return X?_.D("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.D(X,null)):null}}),A?_.D("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.D(A,null)):null,x?_.D("div",null,_.D(x,null)):null)},"fh"),kh$=_.xa(function(A){var L=A.footerClasses;
var O=A.PrimaryButton;A=A.SecondaryButton;return _.D("div",{class:L},A?_.D(A,null):null,O?_.D(O,null):null)},"gh");var vRz=_.xa(function(A){var L=A.data;return _.D("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.D("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.D(_.ID,{data:function(){return L().avatar}},{avatarViewModel:_.fP})),_.D("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.D(_.Xg,{text:function(){return L().title}})),_.D(_.Xg,{text:function(){return L().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"hh");var oRJ=_.xa(function(A){var L=A.data;return _.D("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.D("div",{class:"ytAccessConfirmationViewModelContent"},_.D(_.ID,{data:function(){var O;return(O=L().avatar)!=null?O:L().dualAvatar}},{dualAvatarViewModel:function(O){return _.D(_.zrL,{data:O.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(O){return _.D(_.I4,{data:O.data})}}),_.D("h2",{class:"ytAccessConfirmationViewModelTitle"},_.D(_.Xg,{text:function(){return L().title}})),_.D(_.Xg,{text:function(){return L().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"ih");var AJk=_.xa(function(A){var L=A.data;var O=void 0;A=_.d(_.Nn(function(){var E;return((E=_.q(L().content,_.sNX))==null?void 0:E.defaultSelectedKey)||""}));
var X=A.next().value,x=A.next().value,J,Y=function(){x("");var E;(E=O)!=null&&E.store.dispatch(_.JY({type:"RESET_COMMAND_MAP"}))};
_.GD(function(){O=new HFX;window.addEventListener("yt-popup-closed",Y)});
_.ND(function(){if(O&&J!==L().formId&&(O.onInit(L()),(J=L().formId)&&X())){var E=O,n={key:X()};n.command&&E.store.dispatch($lM(J,n.command))}},"k6b6Qe");
_.rF(function(){window.removeEventListener("yt-popup-closed",Y)});
var T=function(E,n,t){n.key&&t&&n.key!==X()&&(x(n.key),O&&n.command&&O.store.dispatch($lM(t,n.command)))},V=function(){if(_.q(L().content,_.sNX))return!(X==null?0:X())};
return _.D("yt-dialog-view-model",{class:_.qn("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.D(U$Z,{headerWiz:function(){return _.D("span",{skip:!0},_.D(_.ID,{data:function(){return L().header}},{dialogHeaderViewModel:function(E){return _.D(B5$,{data:E.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!L().header},
contentWiz:function(){return _.D("span",{skip:!0},_.D(_.ID,{data:function(){return L().customContent?L().customContent:L().content}},{basicContentViewModel:_.j7M,
createPlaylistDialogFormViewModel:m$$,collaborativePlaylistInviteMessageViewModel:QKJ,miniAppScoreChallengeViewModel:WVB,radioButtonGroupViewModel:function(E){var n=E.data;return _.D(_.WxM,{data:n,selectedKey:X,onSelected:T,groupName:function(){return n().formId}})},
selectionListItemFormViewModel:zVQ,upsellViewModel:function(E){return _.D(jKS,{data:E.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:vRz,installmentAgreementsViewModel:RV$,accessConfirmationViewModel:oRJ,listViewModel:function(E){return _.D(_.h4u,{data:E.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:$$X}))},
footerWiz:function(){return _.D("span",{skip:!0},_.D(_.ID,{data:function(){return L().footer}},{panelFooterViewModel:function(E){return _.D(_.d8,{data:E.data,
disablePadding:!0,disablePrimaryButton:V})},
formPanelFooterViewModel:MFJ,formFooterViewModel:function(E){return _.D(_.ry7,{data:E.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!L().footer}}))},"jh");
AJk.idomCompat=!0;_.Y4(AJk,"yt-dialog-view-model",{props:{data:_.x5},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var L3J=_.xa(function(A){var L=A.data;A={};return _.D("yt-panel-header-view-model",{class:_.qn("yt-panel-header-view-model-wiz",(A["yt-panel-header-view-model-wiz--hide-divider"]=function(){return!!L().shouldHideDivider},A["yt-panel-header-view-model-wiz--compact"]=function(){return!!L().subtitle},A))},_.D("div",{class:"yt-panel-header-view-model-wiz__title-wrapper"},_.D(_.e,{cond:function(){return L().title},
then:function(O){return _.D(_.Xg,{text:O,className:"yt-panel-header-view-model-wiz__title"})}}),_.D(_.e,{cond:function(){return L().subtitle},
then:function(O){return _.D(_.Xg,{text:O,className:"yt-panel-header-view-model-wiz__subtitle"})}})),_.D("div",{class:"yt-panel-header-view-model-wiz__trailing-buttons"},_.D(_.ID,{data:function(){return L().trailingButtons}},{buttonViewModel:function(O){return _.D(_.gj,{data:O.data,
className:"yt-panel-header-view-model-wiz__button"})}})))},"kh");
L3J.idomCompat=!0;var OwB=_.xa(function(A){var L=_.py(function(J){var Y;if((Y=A.skipContentClick)==null?0:Y.call(A))return!1;A.onContentWrapperClick(J);return!0}),O,X,x;
return _.D("div",{class:_.qn("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return A.isAnimating()?"transform: translateY("+A.currentY()+"px);transition: 0.2s":""}},(O=A.header)==null?void 0:O.call(A),_.D("div",{id:A.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.rl({"max-height":(0,_.ZG)(A.maxHeightForContentWrapper)}),"on:scroll":sQS(A.onScroll),"on:touchmove":sQS(function(J){return void J.stopPropagation()})},_.D("div",{el:{onRender:A.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":L},(X=A.body)==null?void 0:X.call(A))),(x=A.footer)==null?void 0:x.call(A))},"lh");
OwB.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var XEn=_.xa(function(A){var L=_.LT(A.leadingLabel),O=_.LT(A.trailingLabel),X=_.LT(A.footerButtonType),x=function(){return L()||O()||A.hasPrimaryButton()||A.hasSecondaryButton()},J={},Y=_.qn("yt-spec-bottom-sheet-layout__primary-button",(J["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return X()===0&&A.hasPrimaryButton()},J["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return X()===1&&A.hasPrimaryButton()},J["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return X()===2&&A.hasPrimaryButton()},J["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return X()===3&&A.hasPrimaryButton()},J));
J={};var T=_.qn("yt-spec-bottom-sheet-layout__secondary-button",(J["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return X()===1&&A.hasSecondaryButton()},J["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return X()===2&&A.hasSecondaryButton()},J["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return X()===3&&A.hasPrimaryButton()},J));
return _.D(_.e,{cond:A.hasFooterOverride,then:function(){var V;return _.D(_.Xs,null,(V=A.footerOverride)==null?void 0:V.call(A))},
else:function(){return _.D(_.e,{cond:x,then:function(){return _.D("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.D(_.e,{cond:function(){return L()||O()},
then:function(){var V={};return _.D("div",{class:_.qn("yt-spec-bottom-sheet-layout__footer-label-wrapper",(V["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!A.hasPrimaryButton()},V))},_.D(_.e,{cond:L,
then:function(){return _.D("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},L)}}),_.D(_.e,{cond:O,
then:function(){return _.D("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},O)}}))}}),_.D(_.e,{cond:function(){return A.hasPrimaryButton()||A.hasSecondaryButton()},
then:function(){var V={};return _.D("div",{class:_.qn("yt-spec-bottom-sheet-layout__footer-button-wrapper",(V["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.Veg,V))},_.D(_.e,{cond:function(){return A.hasSecondaryButton()&&X()!==0},
then:function(){var E;return _.D("div",{class:T},(E=A.secondaryButton)==null?void 0:E.call(A))}}),_.D(_.e,{cond:A.hasPrimaryButton,
then:function(){var E;return _.D("div",{class:Y},(E=A.primaryButton)==null?void 0:E.call(A))}}))}}))}})}})},"mh");
XEn.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var xuQ=_.xa(function(A){var L=_.LT(A.title),O=_.LT(A.subtitle);return _.D("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:A.headerId,"on:touchstart":_.py(function(X){var x;(x=A.touchstart)==null||x.call(A,X);return!1}),
"on:touchmove":_.py(function(X){var x;(x=A.touchmove)==null||x.call(A,X);return!1}),
"on:touchend":_.py(function(X){var x;(x=A.touchend)==null||x.call(A,X);return!1})},_.D("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.D(_.e,{cond:A.hasHeaderOverride,
then:function(){var X;return _.D(_.Xs,null,(X=A.headerOverride)==null?void 0:X.call(A))},
else:function(){var X={};return _.D("div",{class:_.qn((X["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,X["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=L,X))},_.D("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.D(_.e,{cond:L,then:function(){return _.D(_.Xs,null,_.D("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},L),_.D(_.e,{cond:O,then:function(){return _.D("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
O)}}))}})),_.D(_.e,{cond:function(){return L()&&A.hasActionHeader()},
then:function(){var x;return _.D("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(x=A.actionHeader)==null?void 0:x.call(A))}}))}}))},"nh");
xuQ.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.xa(function(A){function L(a){if(!R&&typeof MutationObserver!=="undefined"){var xe={childList:!0};"MutationObserver"in window&&(R=new MutationObserver(O.bind(void 0,a)),R.observe(a,xe))}}
function O(a){typeof R!=="undefined"&&(y["content-wrapper"]===void 0&&(y["content-wrapper"]=a.children[0].clientHeight),S(y["content-wrapper"]),b()>w()||l(b()))}
function X(){t(window.innerHeight);b()>w()||l(b());M.isFullScreen[0]()&&b()>w()?H().dispatch("Snap To Full Screen",{maxHeight:F()}):H().dispatch("Snap To Neutral Position",{maxHeight:w()})}
function x(a){document.body.style.overscrollBehavior="none";a.preventDefault();H().dispatch("Touch Start",{event:a})}
function J(a){a.preventDefault();H().dispatch("Touch Move",{event:a,contentScrollable:b()>w(),fullContentWrapperHeight:F(),contentWrapperHeight:w(),contentHeightMap:y,contentWrapperId:"content-wrapper",header:PB$(A),footer:PB$(A)})}
function Y(){document.body.style.overscrollBehavior="";M.isFullScreen[0]()?M.currentY[0]()>=60?H().dispatch("Snap To Neutral Position",{maxHeight:w()}):H().dispatch("Snap To Full Screen",{maxHeight:F()}):M.currentY[0]()>=60?T():M.currentY[0]()<=-60&&b()>w()?H().dispatch("Snap To Full Screen",{maxHeight:F()}):H().dispatch("Snap To Neutral Position",{maxHeight:w()})}
function T(){H().dispatch("Close Sheet",{clientHeight:n(),maxHeight:0});setTimeout(function(){JFX()},250)}
var V=_.d(_.uQ(window.innerHeight,void 0,"NWeFS")),E=V.next().value;V=V.next().value;var n=E,t=V;V=_.d(_.uQ(0,void 0,"oxfm4"));E=V.next().value;V=V.next().value;var b=E,S=V;V=_.d(_.Nn(function(){var a=PB$(A);return.6*n()-OyX(a)-XxJ(a)}));
E=V.next().value;V=V.next().value;var w=E,l=V,F=function(){var a=PB$(A);return n()-OyX(a)-XxJ(a)-24-24},R=null,y={},M={initialY:_.uQ(0,void 0,"cYBE5c"),
currentY:_.uQ(0,void 0,"RndqHc"),isAnimating:_.uQ(!1,void 0,"vO9DVd"),isFullScreen:_.uQ(!1,void 0,"UOfBcf"),maxHeightForContentWrapper:_.Nn(w)},H=function(){var a=null;return function(){if(!a){var xe={initialY:M.initialY[0](),currentY:M.currentY[0](),isAnimating:M.isAnimating[0](),isFullScreen:M.isFullScreen[0](),maxHeightForContentWrapper:M.maxHeightForContentWrapper[0]()};a=xnM(xe)}return a}}();
_.GD(function(){window.addEventListener("resize",X);H().subscribe(function(a){M.initialY[1](a.initialY);M.currentY[1](a.currentY);M.isAnimating[1](a.isAnimating);M.isFullScreen[1](a.isFullScreen);M.maxHeightForContentWrapper[1](a.maxHeightForContentWrapper)})});
_.rF(function(){window.removeEventListener("resize",X);R&&(R.disconnect(),R=null)});
var z=_.qn({"bottom-sheet-content-without-icon":function(){var a;return!((a=A.shouldShowIcons)==null?0:a.call(A))}});
return _.D("bottom-sheet-layout",null,_.D(OwB,{contentWrapperId:"content-wrapper",isAnimating:function(){return M.isAnimating[0]()},
currentY:function(){return M.currentY[0]()},
maxHeightForContentWrapper:function(){return M.maxHeightForContentWrapper[0]()},
shouldShowIcons:A.shouldShowIcons,skipContentClick:A.skipContentClick,onScroll:function(){var a=document.getElementById("header-wrapper"),xe=document.getElementById("content-wrapper");if(a&&xe){var ur={};ur=(ur["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,ur["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,ur);a.className=xe.scrollTop>1?_.gl(ur):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:JFX,contentWrapperEl:function(a){L(a);requestAnimationFrame(function(){O(a)})},
header:function(){return _.D(xuQ,{touchstart:x,touchmove:J,touchend:Y,title:A.headerTitle,subtitle:A.headerSubtitle,headerId:"header-wrapper",headerOverride:A.headerFn,hasHeaderOverride:A.hasHeaderFn,actionHeader:A.headerActionHeader,hasActionHeader:A.hasHeaderActionHeader})},
footer:function(){return _.D(XEn,{footerButtonType:A.footerButtonType,leadingLabel:A.footerLeadingLabel,trailingLabel:A.footerTrailingLabel,primaryButton:A.footerPrimaryButton,hasPrimaryButton:A.hasFooterPrimaryButton,secondaryButton:A.footerSecondaryButton,hasSecondaryButton:A.hasFooterSecondaryButton,footerOverride:A.footerFn,hasFooterOverride:A.hasFooterFn})},
body:function(){return _.D(_.e,{cond:A.hasContentFn,then:function(){var a;return _.D("div",{class:z},(a=A.contentFn)==null?void 0:a.call(A))}})}}))},"oh").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var s2z=_.xa(function(A){var L=_.X5().resolve(_.RW);return _.D("yt-contextual-sheet-layout",{class:"yt-contextual-sheet-layout-wiz","on:click":_.py(function(){return void L.closeSheet()})},_.D(_.e,{cond:function(){return!!A.header},
then:function(){return _.D("div",{class:"yt-contextual-sheet-layout-wiz__header-container"},A.header())}}),_.D(_.e,{cond:function(){return!!A.content},
then:function(){return _.D("div",{class:"yt-contextual-sheet-layout-wiz__content-container"},A.content())}}),_.D(_.e,{cond:function(){return!!A.footer},
then:function(){return _.D("div",{class:"yt-contextual-sheet-layout-wiz__footer-container"},A.footer())}}))},"ph");
s2z.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var JJS=_.xa(function(A){A=A.data;var L=_.av("yt-sheet-view-model",function(X){if(_.h("web_focus_first_element_sheet")||!_.h("sheet_focus_first_killswitch"))return X.addEventListener("focus",function(){UG7(X)}),function(){X.removeEventListener("focus",function(){UG7(X)})}}),O={};
return _.D("yt-sheet-view-model",{"on:mousedown":_.py(function(X){_.h("sheet_focus_first_killswitch")||X.currentTarget!==X.target&&X.preventDefault()}),
"on:focus":_.py(function(){_.h("sheet_focus_first_killswitch")||UG7(L.value)}),
class:_.qn("yt-sheet-view-model-wiz",(O["yt-sheet-view-model-wiz--contextual"]=!0,O["yt-sheet-view-model-wiz--disable-backdrop-filter"]=_.h("web_disable_backdrop_filter"),O)),el:L,tabindex:-1},_.D(_.e,{cond:A,then:function(X){return _.D(s2z,{header:function(){return _.D(_.ID,{data:function(){return X().header}},{panelHeaderViewModel:L3J})},
content:function(){return _.D(_.ID,{data:function(){return X().content}},{listViewModel:function(x){return _.D(_.h4u,{data:x.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:jKS,miniAppScoreChallengeViewModel:WVB})},
footer:function(){return _.D(_.ID,{data:function(){return X().footer}},{panelFooterViewModel:_.d8})}})}}))},"qh");
JJS.idomCompat=!0;_.Y4(JJS,"yt-sheet-view-model",{props:{data:_.x5}});var duJ=_.xa(function(A){var L=function(){var O;return(O=A.data().enableDebuggingFeatures)!=null?O:!1};
return _.D("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.D(_.g9,{each:function(){var O;return(O=A.data().stickers)!=null?O:[]}},function(O){return _.D(P7z,{data:function(){return O},
debugMode:L})}))},"rh"),P7z=_.xa(function(A){var L=_.OY(A,{debugMode:!1}).debugMode,O=_.LT(function(){var V;
return(V=A.data().region)==null?void 0:V.w},0),X=_.LT(function(){var V;
return(V=A.data().region)==null?void 0:V.h},0),x=_.LT(function(){var V;
return(V=A.data().region)==null?void 0:V.x},0),J=_.LT(function(){var V;
return(V=A.data().region)==null?void 0:V.y},0),Y=_.py(function(){var V=A.data().onTap;
V&&_.$a(V)}),T={};
return _.D("div",{class:_.qn("ytStoriesStickerLayerViewModelSticker",(T.ytStoriesStickerLayerViewModelDebugMode=L,T)),style:_.rl({width:function(){return 100*O()+"%"},
height:function(){return 100*X()+"%"},
left:function(){return 100*x()+"%"},
top:function(){return 100*J()+"%"},
"flex-direction":function(){return dn$(A.data().flexDirection)},
"justify-content":function(){return YCz(A.data().justifyContent)},
"align-items":function(){return uVB(A.data().alignItems)}}),
"on:click":Y},_.D(_.ID,{data:function(){return A.data().button||A.data().toggleButton}},{buttonViewModel:function(V){return _.D(_.gj,{data:V.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(V){return _.D(_.fO,{data:V.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"sh");var u$B=_.xa(function(A){var L=function(){return A.data()},O={},X=_.LT(function(){return L().backgroundColor},0),x=_.LT(function(){return L().actionButtons},[]),J=_.LT(function(){return L().stickerLayer},{}),Y=function(){var V,E;
return{animationRef:O,animationConfig:{autoplay:!1,loop:!1,path:(E=(V=L().foregroundAnimation)==null?void 0:V.url)!=null?E:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){A.navigateToNextItemOnLottieComplete()}}}},T=function(){var V,E,n,t,b,S,w,l;
return{animationConfig:{autoplay:(S=(V=L().backgroundAnimation)==null?void 0:(E=V.settings)==null?void 0:E.autoplay)!=null?S:!1,loop:(w=(n=L().backgroundAnimation)==null?void 0:(t=n.settings)==null?void 0:t.loop)!=null?w:!1,path:(l=(b=L().backgroundAnimation)==null?void 0:b.url)!=null?l:"",name:"stories_item_background_animation"}}};
_.ND(function(){if(A.isVisible()){var V;(V=O.lottieEl)==null||V.play();A.animationRef()&&(A.animationRef().lottieEl=O.lottieEl)}else{var E;(E=O.lottieEl)==null||E.stop()}},"Cbnkwd");
return _.D("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.rl({"background-color":function(){return _.Hy(X())+";"}})},_.D("div",{class:"ytStoriesItemViewModelAssetContent"},_.D(_.e,{cond:function(){return!!L().backgroundAnimation},
then:function(){return _.D(_.ER,{data:T,animationName:function(){return T().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.D(_.e,{cond:function(){return!!L().backgroundImage},
then:function(){return _.D(_.XV,{data:function(){return L().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.D(_.e,{cond:function(){return!!L().foregroundAnimation},
then:function(){return _.D(_.ER,{data:Y,animationName:function(){return Y().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.D(_.e,{cond:function(){return!!L().foregroundImage},
then:function(){return _.D(_.XV,{data:function(){return L().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.D("div",{class:"ytStoriesItemViewModelTopShadow"}),_.D(_.ID,{data:function(){return J()}},{storiesStickerLayerViewModel:duJ})),_.D("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.rl({"background-color":function(){return _.Hy(X())}})},_.D("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.D(_.g9,{each:x},function(V){return _.D(YFZ,{data:function(){return V},
pauseAutoNavigation:A.pauseAutoNavigation})}))))},"th"),T7n={style:"overlay",
type:"outline"},YFZ=_.xa(function(A){var L={};return _.D("div",{class:_.qn("ytStoriesItemViewModelActionButton",(L.ytStoriesItemViewModelStretchedActionButton=function(){return A.data().size==="STORIES_BUTTON_SIZE_STRETCH"},L)),
"on:click":_.py(A.pauseAutoNavigation)},_.D(_.ID,{data:function(){return A.data().button}},{buttonViewModel:function(O){return _.D(_.gj,{data:O.data,
buttonOverrides:T7n})}}))},"uh");_.Y4(_.xa(function(A){var L=function(){var ur;return(ur=A.data().startIndex)!=null?ur:0},O=_.d(_.Nn(L)),X=O.next().value,x=O.next().value;
O=_.d(_.uQ(!1,void 0,"O8yPf"));var J=O.next().value,Y=O.next().value,T=function(){var ur;return(ur=A.data().storyItems)!=null?ur:[]},V={},E=function(){return A.data().dismissButton},n=function(){var ur;
return _.HR((ur=_.q(E(),_.Cu))==null?void 0:ur.onTap)},t=_.av("div"),b,S,w=!1,l=function(){var ur;
(ur=b)==null||ur.cancel();b=F(X()).animate([{width:"0%"},{width:"100%"}],{duration:9E3,easing:"linear"});b.onfinish=function(){F(X()).style.width="100%";var eD=_.q(T()[X()],Vs7),gu,ir;eD!=null&&eD.foregroundAnimation&&((eD==null?0:(gu=eD.foregroundAnimation)==null?0:gu.url)||(eD==null?0:(ir=eD.foregroundAnimation)==null?0:ir.payload))||(X()!==T().length-1?(x(X()+1),l()):n()&&_.zi(n()))}},F=function(ur){return t.value.children[ur].children[0]},R=function(){for(var ur=0;ur<X();ur++)F(ur).style.width=
"100%"};
O=_.py(function(){w||(J()?Y(!1):(X()===T().length-1&&n()&&_.zi(n()),F(X()).style.width="100%",X()!==T().length-1&&(x(X()+1),l())))});
var y=_.py(function(){w||(J()?Y(!1):(F(X()).style.width="0%",X()!==0?x(X()-1):x(X()),l()))}),M=function(){Y(!0)},H=function(){F(X()).style.width="100%";
X()!==T().length-1?(x(X()+1),l()):n()&&_.zi(n())},z=_.py(function(){w=!1;
S=setTimeout(function(){Y(!0);w=!0},300)}),a=_.py(function(){clearTimeout(S);
w&&J()&&Y(!1)});
_.ND(function(){if(J()){var ur;(ur=b)==null||ur.pause();var eD;(eD=V.lottieEl)==null||eD.pause()}else{var gu;(gu=b)==null||gu.play();var ir;(ir=V.lottieEl)==null||ir.play()}},"DIHTEd");
_.ND(function(){R();X()===L()&&l()},"ze5F8b");
var xe=function(){var ur=n();ur&&_.zi(ur)};
_.GD(function(){R();l();window.addEventListener("yt-popup-closed",xe)});
_.rF(function(){clearTimeout(S);window.removeEventListener("yt-popup-closed",xe)});
return _.D("yt-stories-viewer-view-model",{class:_.qn("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.D("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.D("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":y,"on:mousedown":z,"on:mouseup":a,"on:mouseleave":a}),_.D("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":O,"on:mousedown":z,"on:mouseup":a,"on:mouseleave":a})),_.D("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},
_.D(_.ID,{data:T},{storiesItemViewModel:function(ur,eD){var gu=ur.data;return _.D(_.e,{cond:function(){return Math.abs(eD()-X())<=1},
then:function(){var ir={};return _.D("div",{class:_.qn("ytStoriesViewerViewModelStoryItem",(ir.ytStoriesViewerViewModelActiveStoryItem=function(){return eD()===X()},ir))},_.D(u$B,{data:gu,
pauseAutoNavigation:M,navigateToNextItemOnLottieComplete:H,isVisible:function(){return eD()===X()},
animationRef:V}))}})}})),_.D("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:t},_.D(_.g9,{each:T},function(){return _.D("div",{class:"ytStoriesViewerViewModelProgressBar"},_.D("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.D("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.D(_.ID,{data:E},{buttonViewModel:_.gj})))},"vh"),"yt-stories-viewer-view-model",{props:{data:_.x5}});_.Y4(_.xa(function(A){var L=A.data;var O=_.av("yt-gen-ai-feedback-form-view-model"),X=[];return _.D("yt-gen-ai-feedback-form-view-model",{el:O,class:"ytGenAiFeedbackFormViewModelHost"},_.D(_.Xg,{text:function(){return L().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.D("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.D(_.ID,{data:function(){return L().feedbackChips}},{toggleButtonViewModel:function(x){var J=x.data;
return _.D(_.fO,{data:J,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(Y){var T=J();T=_.q(T,_.Fi);T=_.q(T==null?void 0:T.defaultButtonViewModel,_.Cu).trackingParams;Y?X.push(T):(Y=X.indexOf(T),Y>-1&&X.splice(Y,1))}})}})),_.D(_.Xg,{text:function(){return L().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.D("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.D(_.ID,{data:function(){return L().submitButton}},{buttonViewModel:function(x){return _.D(_.gj,{data:x.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){Tlk(O.value,X,L().uniqueId)}})}}),_.D(_.ID,{data:function(){return L().moreFeedbackButton}},{buttonViewModel:function(x){return _.D(_.gj,{data:x.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"wh"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.x5},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var Mm=function(){return _.G.apply(this,arguments)||this};
_.g(Mm,_.G);Mm.prototype.created=function(){jDX(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(c$J);var A=_.X5().resolve(_.hSS);A&&(A.container=this.ytPopupContainerBehavior);if(A=_.X5().resolve(_.RW))A.container=this.ytPopupContainerBehavior;if(A=_.X5().resolve(_.Qy)){var L=this.ytPopupContainerBehavior;A.containerWasInjected?_.Rv(Error("dj")):A.container=L}};
Mm.prototype.ensurePopupBelowPlayer=function(A,L){var O=_.X5().resolve(_.Ot(_.JI));if(!O||!O.isOnWatch()||!_.d0())return!1;O=O.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.NT().height>O+this.getPopupHeight(A,L)?(A.style.top="auto",A.style.bottom="0px"):(A.style.top=O+"px",A.style.bottom="auto");return!0};
Mm.prototype.getPopupHeight=function(A,L){L&&(A.cachedPopupHeight=0);if(!A.cachedPopupHeight){L=0;var O=A.clientHeight,X=window.getComputedStyle(A);L+=parseInt(X.marginTop,10);L+=parseInt(X.marginBottom,10);A.cachedPopupHeight=O+L}return A.cachedPopupHeight};
Mm.prototype.getElement=function(A){return document.createElement(A)};
_.I([_.N(vlB.YtPopupContainerBehavior),_.Z("design:type",Object)],Mm.prototype,"ytPopupContainerBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],Mm.prototype,"ytComponentBehavior",void 0);_.I([_.Q({disableElementRegistration:!0,is:"ytd-popup-container"})],Mm);
_.m(Mm,"ytd-popup-container",function(){if(WF$!==void 0)return WF$;var A=document.createElement("template");_.p(A,"\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");A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);return WF$=A},{mode:1});var VyZ;var DuM={};DuM.YtLogYpcFlowCommandsBehavior=[_.es.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(A){_.q(A,lb$)&&(A=_.q(A,lb$))&&(A.serializedTransactionFlowLoggingParams?_.KLJ(A.serializedTransactionFlowLoggingParams):A.serializedYpcCancelFlowLoggingParams?(A=A.serializedYpcCancelFlowLoggingParams)&&_.o5("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",A):A.serializedYpcResumeFlowLoggingParams?(A=A.serializedYpcResumeFlowLoggingParams)&&_.o5("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",A):A.serializedYpcPauseFlowLoggingParams?(A=A.serializedYpcPauseFlowLoggingParams)&&
_.o5("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",A):A.serializedYpcRefundFlowLoggingParams?(A=A.serializedYpcRefundFlowLoggingParams)&&p4k("YPC_EVENT_TYPE_START",A):A.serializedYpcDeactivateFlowLoggingParams?(A=A.serializedYpcDeactivateFlowLoggingParams)&&_.o5("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",A):A.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(A=A.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.o5("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",A))},
handleLogYpcFlowDismiss_:function(A){_.q(A,GfZ)&&(A=_.q(A,GfZ),A.serializedTransactionFlowLoggingParams?_.GwD(A.serializedTransactionFlowLoggingParams):A.serializedYpcCancelFlowLoggingParams?(A=A.serializedYpcCancelFlowLoggingParams)&&_.o5("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",A):A.serializedYpcResumeFlowLoggingParams?(A=A.serializedYpcResumeFlowLoggingParams)&&_.o5("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",A):A.serializedYpcPauseFlowLoggingParams?(A=
A.serializedYpcPauseFlowLoggingParams)&&_.o5("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",A):A.serializedYpcRefundFlowLoggingParams&&(A=A.serializedYpcRefundFlowLoggingParams)&&p4k("YPC_EVENT_TYPE_CANCEL",A))}}];var etX={};etX.YtCancelRecurrenceBehavior=[_.v$.YtComponentBehavior,_.uBc,{attached:function(){var A=this;pCn(this,function(L,O){return A.ypcCancelRecurrenceHandler(L,O)})},
ypcCancelRecurrenceHandler:function(A,L){var O=this;if(!L||!L.ypcCancelRecurrenceEndpoint)return!1;if(!L.ypcCancelRecurrenceEndpoint.params)return _.IO(Error("wl")),!0;_.aG(this.hostElement);var X=_.UC.instance,x=_.X5().resolve(_.Ot(_.f3));X&&_.vx(X,L)?_.oQ(X,L).then(function(J){O.ypcCancelRecurrenceSuccess_(A,L,{data:J})},function(J){O.ypcCancelRecurrenceFailure_(A,L,J)}).thenCatch(function(){_.IO(Error("xl"))}):x?x.requestDataForServiceEndpoint(L).then(function(J){O.ypcCancelRecurrenceSuccess_(A,
L,J)},function(J){O.ypcCancelRecurrenceFailure_(A,L,J)}).thenCatch(function(){_.IO(Error("xl"))}):_.IO(Error("yl"));
return!0},
ypcCancelRecurrenceSuccess_:function(A,L,O){_.kf(this.hostElement);O.data||(O={data:O});O.data&&O.data.actions&&_.VN(this.hostElement,O.data.actions,this.hostElement);O.data.messageRenderer?NQk(L.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(L=L.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.o5("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",L);_.P4(A,"yt-service-request-completed",O)},
ypcCancelRecurrenceFailure_:function(A,L,O){_.kf(this.hostElement);NQk(L.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.P4(A,"yt-service-request-error",{error:O,params:[A,L]})}}];var EnX=function(A,L){_.As.call(this,L)};
_.g(EnX,P1J);var nnS={};nnS.YtCompleteTransactionBehavior=[_.v$.YtComponentBehavior,_.uBc,{attached:function(){var A=this;pCn(this,function(L,O){return A.ypcCompleteTransactionHandler(L,O)})},
completeTransaction:function(A,L){var O=this;L={payments_payload:window.btoa(L.integratorData),buybucket_params:A.data.buybucketParams,offer_params:A.data.offerParams};var X=_.X5().resolve(_.f3),x=A.data.completeTransactionEndpoint,J=this.get("ypcCompleteTransactionEndpoint.actions",x);J&&_.VN(this.hostElement,J,this.hostElement);return(J=_.UC.instance)&&_.vx(J,x)?_.oQ(J,x,L).then(function(Y){return!Y||(Y==null?0:Y.error)?(Y=O.get("data.serializedTransactionFlowLoggingParams",A),_.Ry(new wg("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
Y))):{data:Y}}).then(function(Y){return O.handleCompleteTransactionSuccess_(Y,A)},function(){return O.handleCompleteTransactionFailure_(A)}):X.requestDataForServiceEndpoint(x,L).then(function(Y){return O.handleCompleteTransactionSuccess_(Y,A)},function(){return O.handleCompleteTransactionFailure_(A)})},
handleCompleteTransactionSuccess_:function(A,L){A.data||(A={data:A});if(A.data.messageRenderer)return _.Ry(new EnX(A.data.messageRenderer));if(A.data.trackingParams){var O=_.Fn(),X=_.Ch();O&&X&&_.W4(O,X,_.lV(A.data.trackingParams))}L=this.get("data.serializedTransactionFlowLoggingParams",L);iMJ(L);return _.DQ(A)},
handleCompleteTransactionFailure_:function(A){A=this.get("data.serializedTransactionFlowLoggingParams",A);_.UP("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",A);return _.Ry(new wg("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",A))},
ypcCompleteTransactionHandler:function(A,L){var O=this;if(!L.ypcCompleteTransactionEndpoint)return!1;if(!L.ypcCompleteTransactionEndpoint.transactionParams)return _.IO(Error("zl")),!0;L.ypcCompleteTransactionEndpoint&&L.ypcCompleteTransactionEndpoint.gtmData&&_.ZY(L.ypcCompleteTransactionEndpoint.gtmData);var X=_.X5().resolve(_.Ot(_.f3));if(X){_.aG(this.hostElement);var x=_.UC.instance;x&&_.vx(x,L)?_.oQ(x,L).then(function(J){return!J||(J==null?0:J.error)?(J=O.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
L),_.Ry(new wg("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",J))):{data:J}}).then(function(J){_.P4(A,"yt-service-request-completed");
O.ypcCompleteTransactionSuccess_(L,J)},function(){return O.ypcCompleteTransactionFailure_(L)}):X.requestDataForServiceEndpoint(L).then(function(J){_.P4(A,"yt-service-request-completed");
O.ypcCompleteTransactionSuccess_(L,J)},function(){return O.ypcCompleteTransactionFailure_(L)})}return!0},
ypcCompleteTransactionSuccess_:function(A,L){_.kf(this.hostElement);L.data||(L={data:L});_.dQ(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);L.data.messageRenderer||L.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(A):(_.ZY('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",A));L.data.actions&&(A=IBQ(L.data.actions),L=yTX(L.data.actions),A.length&&_.TZ(this.hostElement,
A),L.length&&_.VN(this.hostElement,L,this.hostElement))},
ypcCompleteTransactionFailure_:function(A){_.kf(this.hostElement);_.dQ(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",A,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(A,L,O){if(L=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",L))L={serializedTransactionFlowLoggingParams:L},O&&(L.errorType=O),_.lg(A,L),_.ch()}}];var tyX={};tyX.YtEndpointHandlerWithYpcBehavior=[_.uBc,_.es.YtActionHandlerBehavior,[{openWalletDialog:function(A,L,O,X,x,J,Y){var T=this,V=_.AI();L=L.replace(/-/g,"+").replace(/_/g,"/");var E=_.qG().get("hl");_.Dir(_.Pw(_.vy),L,V.resolve,x,function(n){J&&J();V.reject(n)},E,function(n){return T.onServerBackendAnalyticEvent_(A,O,n)},this.onDialogClose_.bind(this),X,Y);
return V.promise},
openFixFlowDialog:function(A,L,O,X){A=A.replace(/-/g,"+").replace(/_/g,"/");_.Pw(_.vy).openFixFlowDialog(A,L,O,X)},
onDialogClose_:function(){_.dQ(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(A,L,O){_.P4(A,"yt-commerce-action-init-done");L&&_.TZ(this.hostElement,[L,{backend_analytics:O}])}}],
_.iv.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(A,L){A=this.get("data.nativeFlowEndpoint",L);L=this.get("data.fallbackEndpoint",L);A?_.TZ(this.hostElement,[A]):L&&_.P4(this.hostElement,"yt-navigate",{endpoint:L})}}],
etX.YtCancelRecurrenceBehavior,nnS.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 A=this;pCn(this,function(L,O,X){return A.handleYPCEndpoint(L,O,X)});
this.ypcRegisterActionMapJobId_=_.p7(_.c1,function(){A.registerActionMap(A.buyFlowActionMap_)})},
detached:function(){var A=this;_.c1.cancelJob(this.ypcRegisterActionMapJobId_);_.p7(_.c1,function(){A.unregisterActionMap(A.buyFlowActionMap_)})},
handleYPCEndpoint:function(A,L,O){var X=L.ypcGetCartEndpoint;if(X){_.Fz("commerce_transaction");var x=X.gtmId;x&&_.y6(x);(X=X.gtmData)&&_.ZY(X)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",L)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(A,L),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",L)!=null?(this.handleYPCFixInstrumentEndpoint_(A,L),!0):L.ypcPauseSubscriptionCommand?(SCZ(this.hostElement,A,L,O),
!0):L.ypcResumeSubscriptionCommand?(wxX(this.hostElement,A,L),!0):L.getPaymentInstrumentsParamsCommand?(ttz(this.hostElement,A,L),!0):L.ypcHandleTransactionEndpoint?(E4n(this.hostElement,A,L,O),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(A,L){var O=this;_.Rk("ttcr",void 0,"commerce_transaction");L=L.ypcGetCartEndpoint;var X=L.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,x=X.encryptedPurchaseParams,J=X.serializedTransactionFlowLoggingParams,Y=X.serializedPaymentsClientParams,T=this.createGetCartResponseFromParams_(X,L.offerParams,J);this.changeButtonState(A,!0);_.R$(this.openWalletDialog(A,x,X.ypcLogWalletAnalyticDataEndpoint,J,function(){O.changeButtonState(A,!1)},function(){O.changeButtonState(A,
!1)},Y).then(function(V){return O.handleBuyFlowCompleteCallback_(A,T,V)},function(){return O.handleOnLoadError(T)}).then(function(V){return void O.handlePostPurchaseSuccess_(A,T,V)},function(V){return void O.handlePostPurchaseError_(V)}),function(){O.changeButtonState(A,!1);
A instanceof Element&&_.P4(A,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(A,L,O){var X=A.completeTransactionEndpoint,x=A.handleTransactionEndpoint;L={data:{offerParams:window.btoa(L),serializedTransactionFlowLoggingParams:O}};x?L.data.handleTransactionEndpoint=x:L.data.completeTransactionEndpoint=X;A.onCartDismissCommand&&(L.data.onCartDismissCommand=A.onCartDismissCommand);return L},
onGetCartServiceRequestCompleted_:function(A,L){var O=this,X=A.target;if(L&&L.data&&L.data.messageRenderer)_.kf(this.hostElement),this.handleMessageRenderer_(L.data.messageRenderer),this.changeButtonState(X,!1);else{var x=this.get("data.encryptedPurchaseParams",L),J=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",L),Y=this.get("data.ypcLogWalletAnalyticDataEndpoint",L),T=this.get("data.serializedPaymentsClientParams",L),V=this.getLoggingParams_(L);if(V||x||J)A.stopPropagation(),_.Rk("ttcr",
void 0,"commerce_transaction"),x||_.kf(this.hostElement),this.changeButtonState(X,!1),J?_.dQ(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.ms("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:J}}},this]):x&&(this.changeButtonState(X,!0),A=null,A=this.openWalletDialog(X,x,Y,V,function(){_.kf(O.hostElement);O.changeButtonState(X,!1)},function(){_.kf(O.hostElement);
O.changeButtonState(X,!1)},T),_.R$(A.then(function(E){return O.handleBuyFlowCompleteCallback_(X,L,E)},function(){return O.handleOnLoadError(L)}).then(function(E){return O.handlePostPurchaseSuccess_(X,L,E)},function(E){return O.handlePostPurchaseError_(E)}),function(){O.changeButtonState(X,!1);
_.P4(X,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(A,L){L&&L.endpoint&&L.endpoint.ypcGetCartEndpoint&&!L.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",L.endpoint.ypcGetCartEndpoint)&&_.VN(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",L.endpoint.ypcGetCartEndpoint)],A.target),_.aG(this.hostElement),this.changeButtonState(A.target,!0))},
onServiceRequestError_:function(A,L){if(L&&L.params&&L.params.length){L=_.d(L.params);for(var O=L.next();!O.done;O=L.next())if((O=O.value)&&O.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",O.ypcGetCartEndpoint)&&_.VN(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",O.ypcGetCartEndpoint)],A.target);_.kf(this.hostElement);this.changeButtonState(A.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(A,L,O){var X=O.integratorData;return X==null||X===""||O.error!=null?(X=this.getLoggingParams_(L),String(O.error)==="-1"?(L.data.onCartDismissCommand&&_.VN(this.hostElement,[L.data.onCartDismissCommand],A),_.Ry(new wg("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",X,!0))):_.Ry(new wg("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",X))):L.data.handleTransactionEndpoint?n4J(this.hostElement,L.data.handleTransactionEndpoint,{payments_payload:X,funds_guarantee_callback_client_data:O.integratorClientCallbackData}):
this.completeTransaction(L,O)},
handlePostPurchaseSuccess_:function(A,L,O){L=O.data;var X=!1,x,J;if(L&&((x=L.command)==null?0:(J=x.commandExecutorCommand)==null?0:J.commands)){var Y,T;x=(Y=L.command)==null?void 0:(T=Y.commandExecutorCommand)==null?void 0:T.commands;for(Y=0;Y<x.length;Y++)if(_.q(x[Y],_.Wng)){X=!0;break}}X||(L&&L.gtmDatas&&L.gtmDatas.length?_.ZY(L.gtmDatas[0]):_.ZY('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));O.data&&O.data.actions&&(L=IBQ(O.data.actions),O=yTX(O.data.actions),L.length&&
_.TZ(this.hostElement,L),O.length&&_.VN(this.hostElement,O,A))},
handlePostPurchaseError_:function(A){A&&A.payload&&A.payload.isUserDismiss||_.C7(Error("Bl"))},
handleOnLoadError:function(A){A=this.getLoggingParams_(A);return _.Ry(new wg("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",A))},
getLoggingParams_:function(A){return this.get("data.serializedTransactionFlowLoggingParams",A)},
handleMessageRenderer_:function(A){var L=_.Fs(A,"renderer"),O=_.ms("openPopupConfig");L==="confirmDialogRenderer"&&O&&_.dQ(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:O.popupTypeMap[L],popup:A}},this])},
handleYPCFixInstrumentEndpoint_:function(A,L){var O=this,X=L.ypcFixInstrumentEndpoint;L=X.encryptedFixInstrumentParameters;this.logFixFopEvent_(X,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(A,!0);this.openFixFlowDialog(L,function(x,J){O.onFixFlowCompleteCallback_(X,x,J)},function(){return O.changeButtonState(A,!1)},function(){O.changeButtonState(A,!1);
O.logFixFopEvent_(X,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(A,L,O){var X=_.WY("payments.business.integration.scenario.FixInstrument");if(L==X.IntegratorCallbackType.ON_COMPLETE){L="FIX_FOP_EVENT_TYPE_CANCEL";var x=null;O.error!=null?O.error!=X.OnCompleteCallbackError.USER_CANCELLED&&(_.VN(this.hostElement,[A.errorAction],this.hostElement),L="FIX_FOP_EVENT_TYPE_FAILURE",x="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.VN(this.hostElement,[A.successAction],this.hostElement),L="FIX_FOP_EVENT_TYPE_SUCCESS");_.VN(this.hostElement,[A.onFinishAction],
this.hostElement);this.logFixFopEvent_(A,L,x)}},
logFixFopEvent_:function(A,L,O){(A=A.serializedFixFopLoggingParams)?(L={eventType:L,serializedFixFopLoggingParams:A},O!=null&&(L.errorType=O),_.lg("fixFopFlow",L),_.ch()):_.C7(Error("Cl"))},
changeButtonState:function(A,L){_.h("enable_ypc_spinners")&&A&&(A.is==="yt-button-renderer"||A.is==="ytd-button-renderer")&&(A.disabled=L)}}];var bw7=function(A){this.JSC$33989_clientRoot=A;this.feedbackCollectorActionMap={"yt-help-dialog-requested":iyQ,"yt-feedback-dialog-requested":pxQ,"yt-signal-action-help":NlM,"yt-signal-action-send-feedback":rFJ,"yt-send-feedback-action":GJQ,"yt-user-feedback-endpoint":lrX};_.Bh(_.zu.getInstance(),this.feedbackCollectorActionMap,this.JSC$33989_clientRoot)},htk;var SFS=function(A){this.JSC$33994_clientRoot=A;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":cFX.bind(null,this.JSC$33994_clientRoot),"yt-signal-action-delete-all-downloads":F4n,"yt-signal-action-delete-download":RpZ,"yt-signal-action-delete-playlist-download":mnM,"yt-signal-action-install-pwa":W4Z,"yt-signal-action-refresh-downloads":Zy$,"yt-offline-video-endpoint":zpk,"yt-offline-playlist-endpoint":MtS,"yt-update-local-app-setting-command":arJ,"yt-offline-orchestration-action-command":UnM,
"yt-signal-action-undo-delete-download":Irn,"yt-local-watch-history-command":AIS};_.Bh(_.zu.getInstance(),this.downloadManagerActionMap,this.JSC$33994_clientRoot);_.Ra.instance=new _.Ra},qFQ;var $A=function(){var A=_.G.apply(this,arguments)||this;A.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_"};A.remoteApi_=null;return A};
_.g($A,_.G);_.P=$A.prototype;
_.P.ready=function(){_.h("polymer_enable_mdx")&&(CRk({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.h("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.h("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.h("enable_cast_short_lived_lounge_token")}),_.dT("yt-remote-connection-change",this.handleConnectionChange_,this),_.dT("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=y2n())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.P.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.P.handleConnectionChange_=function(A){(this.mdxConnected=A)?(A=QWS(),!A&&wDQ()&&pDM()&&(A={key:"cast-selector-receiver",name:pDM()}),A=A.name):A=null;this.receiverName=A;_.oo(this.remoteApi_);(this.remoteApi_=y2n())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.P.handleReceiverAvailabilityChange_=function(){var A=R6J();wDQ()&&_.wf("yt-remote-cast-available")&&A.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=A.length>0};
_.P.handleRemoteQueueChange_=function(){var A=this.currentVideoId_,L=this.currentListId_,O=KS(this.remoteApi_);this.currentVideoId_=O.videoId;this.currentListId_=O.listId;this.currentVideoId_&&_.dQ(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.h("polymer_enable_mdx_queue")?this.currentListId_:null,A,L])};
_.P.handleAddToQueueAction_=function(A){A=_.q(A,DrX);this.remoteApi_&&(A.videoId?this.remoteApi_.addVideo(A.videoId):A.playlistId&&this.remoteApi_.addPlaylist(A.playlistId))};
_.P.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.P.handleInsertInQueueAction_=function(A){A=_.q(A,eWz);this.remoteApi_&&A.videoId&&this.remoteApi_.JSC$20720_insertVideo(A.videoId)};
_.P.handleRemoveFromQueueAction_=function(A){A=_.q(A,E5Z);this.remoteApi_&&A.videoId&&this.remoteApi_.JSC$20720_removeVideo(A.videoId)};
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],$A.prototype,"ytActionHandlerBehavior",void 0);_.I([_.K(),_.Z("design:type",Object)],$A.prototype,"appId",void 0);_.I([_.K(),_.Z("design:type",Boolean)],$A.prototype,"mdxConnected",void 0);_.I([_.K(),_.Z("design:type",Boolean)],$A.prototype,"receiverAvailable",void 0);_.I([_.K(),_.Z("design:type",Object)],$A.prototype,"receiverName",void 0);_.I([_.K(),_.Z("design:type",Object)],$A.prototype,"currentVideoId_",void 0);
_.I([_.K(),_.Z("design:type",Object)],$A.prototype,"currentListId_",void 0);_.I([_.yU({is:"yt-mdx-manager",disableElementRegistration:!0})],$A);_.m($A,"yt-mdx-manager",void 0,{mode:2});var gnX;var wES;var aV=function(){var A=_.G.apply(this,arguments)||this;A.APP_IDS={ytr:3,ytm:5};A.JSC$21960_timeoutId_=0;A.actionMap={"yt-open-create-family-dialog":"open"};return A};
_.g(aV,_.G);_.P=aV.prototype;_.P.created=function(){jDX(2200)};
_.P.detached=function(){this.observer_&&this.observer_.disconnect()};
_.P.open=function(A,L){var O=this,X=A.serializedYpcFamilyCreateLoggingParams;this.JSC$21960_timeoutId_=setTimeout(this.abort_.bind(this,A.postFlowErrorEndpoint,X),3E4);L&&(this.onReadyCallback_=L);var x=_.YJ(this.hostElement).querySelector("#unicorn-iframe");X&&X&&w4B("ypcFamilyCreateFlowStarted",X);_.E9O("family_creation",function(){var J=_.WY("gapi.family_creation.render");_.WY("gapi.config.update")("iframes/family_creation/url",O.getFamilyCreationUrlWithUnicornParams_());var Y=3;A.appId&&A.appId in
O.APP_IDS&&(Y=O.APP_IDS[A.appId]);Y={authUser:_.ms("SESSION_INDEX")||0,clientId:Y,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.ms("HL"),initialflow:[4,5,6,7],m:O.isMobile?1:0,onFlowComplete:O.onUnicornFlowComplete_.bind(O,A.postFlowSuccessEndpoint,X),onError:O.onUnicornFlowError_.bind(O,A.postFlowErrorEndpoint,X),onReady:O.onUnicornFlowReady_.bind(O,A.referencePcidParams)};J(x,Y)})};
_.P.close=function(){_.YJ(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.P.onUnicornFlowComplete_=function(A,L){this.close();L&&L&&w4B("ypcFamilyCreateFlowSucceeded",L);_.P4(this.hostElement,"yt-navigate",{endpoint:A})};
_.P.onUnicornFlowError_=function(A,L){this.close();L&&w4B("ypcFamilyCreateFlowCancelled",L);_.P4(this.hostElement,"yt-navigate",{endpoint:A})};
_.P.onUnicornFlowReady_=function(A){var L=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();A&&_.WY("gapi.family_creation.setConfig")(0,A);this.observer_=new MutationObserver(function(){_.YJ(L.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.YJ(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.YJ(this.hostElement).querySelector("#dialog").open()};
_.P.getFamilyCreationUrlWithUnicornParams_=function(){return _.ms("YTR_FAMILY_CREATION_URL")};
_.P.getCurrentUrl_=function(){return document.location.href};
_.P.abort_=function(A,L){this.clearTimeout_();this.onUnicornFlowError_(A,L)};
_.P.clearTimeout_=function(){clearTimeout(this.JSC$21960_timeoutId_)};
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],aV.prototype,"ytActionHandlerBehavior",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],aV.prototype,"isMobile",void 0);_.I([_.K(),_.Z("design:type",Object)],aV.prototype,"onReadyCallback_",void 0);_.I([_.K(),_.Z("design:type",Object)],aV.prototype,"observer_",void 0);_.I([_.yU({is:"yt-create-family-dialog",disableElementRegistration:!0})],aV);
_.m(aV,"yt-create-family-dialog",function(){if(wES===void 0){var A=document.createElement("template");_.p(A,'\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');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);var L=A.content,O=L.insertBefore;gnX===void 0&&(gnX=document.createElement("template"));var X=gnX;O.call(L,X.content.cloneNode(!0),A.content.firstChild);wES=A}A=wES;return A},{mode:2});var pE7;var iw$;var kA=function(){var A=_.G.apply(this,arguments)||this;A.STEP=1;A.BLOCK_ON=80;A.MIN_PROGESS=0;A.MAX_PROGESS=100;return A};
_.g(kA,_.G);_.P=kA.prototype;_.P.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.P.ready=function(){this.progress_=this.MIN_PROGESS;this.hostElement.hidden=!0;this.hostElement.setAttribute("aria-valuemin",String(this.MIN_PROGESS));this.hostElement.setAttribute("aria-valuemax",String(this.MAX_PROGESS));_.X5().addProvider({provide:EZM,useValue:this})};
_.P.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.P.finish=function(){var A=this;this.progress=this.MAX_PROGESS;LN7(function(){A.progress==A.MAX_PROGESS&&(A.hostElement.hidden=!0)})};
_.P.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.v2.Object.defineProperties(kA.prototype,{progress:{configurable:!0,enumerable:!0,set:function(A){this.progress_=A;var L="scaleX("+A/this.MAX_PROGESS+")",O=_.YJ(this.hostElement).querySelector("#progress").style;O.transform=L;O.webkitTransform=L;this.hostElement.setAttribute("aria-valuenow",String(A))},
get:function(){return this.progress_}}});
_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],kA.prototype,"ytComponentBehavior",void 0);_.I([_.yU({is:"yt-page-navigation-progress",disableElementRegistration:!0})],kA);
_.m(kA,"yt-page-navigation-progress",function(){if(iw$===void 0){var A=document.createElement("template");_.p(A,'\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');A.content.insertBefore(_.W().content.cloneNode(!0),
A.content.firstChild);var L=A.content,O=L.insertBefore;pE7===void 0&&(pE7=document.createElement("template"));var X=pE7;O.call(L,X.content.cloneNode(!0),A.content.firstChild);iw$=A}A=iw$;return A},{mode:2});var N7$={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"},rJn={"font-size":"12px","font-style":"italic"},K3Z={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.sDk=function(){return _.u(function(A){_.qo(A)})};var GHJ=_.xa(function(A){var L=function(){return A.data().subtext},O={};
return _.D("snackbar-view-model",{class:_.qn("snackbarViewModelHost",A.className)},_.D("div",{class:_.qn("snackbarViewModelEngagementBarWrapper",A.className)},_.D(_.e,{cond:function(){return A.data().image},
then:function(X){return _.D(_.XV,{data:X,alt:"",targetHeight:48,targetWidth:86,preserveHeight:!0,preserveWidth:!0,className:"snackbarViewModelImageContainer"})}}),_.D(_.e,{cond:function(){return A.data().imageContent},
then:function(){return _.D("div",{class:"snackbarViewModelAvatarContainer"},_.D(_.ID,{data:function(){return A.data().imageContent}},{decoratedAvatarViewModel:_.I4}))}}),_.D("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.D("div",{class:_.qn((O.snackbarViewModelTitle=!0,O.snackbarViewModelTitleWithSubtext=L,O))},_.D(_.Xg,{text:function(){return A.data().text}})),_.D(_.e,{cond:L,
then:function(){return _.D("div",{class:"snackbarViewModelSubtext"},_.D(_.Xg,{text:function(){return L()}}))}})),_.D(_.e,{cond:function(){return A.data().buttons},
then:function(){return _.D("div",{class:"snackbarViewModelButtonClassWrapper"},_.D(_.ID,{data:function(){return A.data().buttons}},{buttonViewModel:function(X){return _.D(_.gj,{data:X.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:A.target})}}))}})))},"xh");_.Y4(_.xa(function(){function A(y,M,H){w(y);F(H);b("in");n(!0);L(y,M);Y=setTimeout(function(){O()},M)}
function L(y,M){var H,z=(H=y.text)==null?void 0:H.content;y=_.Hm(y.rendererContext);z&&(M={label:z,command:y,durationMs:M},_.X5().resolve(_.c5).enqueue(M))}
function O(y){b("out");y&&clearTimeout(Y)}
function X(){O(!0)}
function x(y){if(y){var M=y.snackbarViewModel,H=y.durationMs,z=y.target;H||(H=3E3);M&&(y=_.X5().resolve(_.Ot(_.N8)))&&y.enqueue({isOpened:E,open:function(){A(M,H,z)},
close:O},0)}}
var J=_.kw("snackbar-container"),Y=void 0,T=_.d(_.uQ(!1,void 0,"jJ4tBf")),V=T.next().value;T=T.next().value;var E=V,n=T;V=_.d(_.uQ("out",void 0,"M6Rbpb"));var t=V.next().value,b=V.next().value;V=_.d(_.uQ(void 0,void 0,"aFswib"));var S=V.next().value,w=V.next().value;V=_.d(_.uQ(void 0,void 0,"mlWWhb"));var l=V.next().value,F=V.next().value,R=_.py(function(){if(t()==="out"){n(!1);w(void 0);F(void 0);var y=_.X5().resolve(_.Ot(_.N8));y&&ARS(y,0)}});
_.GD(function(){var y=_.X5().resolve(_.Ot(_.zPZ));y&&(y.showSnackbarFn=x,y.closeSnackbarFn=X)});
return _.D("snackbar-container",{class:"ytSnackbarContainerHost",el:J},_.D(_.e,{cond:function(){return E()&&!!S()},
then:function(){var y={};return _.D("div",{class:_.qn("ytSnackbarContainerSnackbarContainer",(y.ytSnackbarContainerMobile=!1,y.ytSnackbarContainerPivotBar=function(){var M;return!((M=_.X5().resolve(_.Ot(_.BuM)))==null||!M())},y.ytSnackbarContainerOpened=function(){return E()&&t()==="in"},y.ytSnackbarContainerClosed=function(){return E()&&t()==="out"},y)),
"on:animationend":R},_.D(GHJ,{data:function(){return S()},
target:function(){return l()}}))}}))},"yh"),"snackbar-container");_.Y4(_.SGN,"yt-tooltip");_.Y4(_.xa(function(){var A=_.zJ(_.mie);return _.D("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var L;return(L=A())==null?void 0:L.announcement})},"zh"),"yt-ephemeral-actions");var wmB=new Map;var X3$=function(A,L){var O=this;this.handleError=A;this.logEventInternal=L;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){O.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
X3$.prototype.logError=function(A){this.handleError(A)};
X3$.prototype.logEvent=function(A,L){switch(A){case "IDB_DATA_CORRUPTED":_.h("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",L);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",L);break;case "IS_SUPPORTED_COMPLETED":_.h("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",L);break;case "QUOTA_EXCEEDED":ljM(this,L);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",L);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":A=Object.assign({},L,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",A)}};
var ljM=function(A,L){_.R5.getInstance().estimate().then(function(O){O=Object.assign({},L,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:iun(O==null?void 0:O.usage),deviceStorageQuotaMbytes:iun(O==null?void 0:O.quota)});A.logEventInternal("idbQuotaExceeded",O)})};var Uy=function(){var A=_.G.apply(this,arguments)||this;A.tabGesturesIsActive=!1;A.deprecateFullerscreenUi=_.h("web_watch_fullerscreen_deprecation_ui");A.hasDelegation=!1;A.darkerDarkTheme=_.h("web_darker_dark_theme");A.isFrostedGlassInitialized=!1;A.frostedGlassExp=_.h("web_frosted_glass");A.mastheadHiddenFocusWithinKillswitch=_.h("web_masthead_hidden_focus_within_killswitch");A.clientOnlyWizTooltipsEnabled=_.h("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");A.scrollAtTop=
!0;A.guideScrollTop=0;A.isTheaterModeSession=_.fB("START_IN_THEATER_MODE");A.iMaxTheaterMode=_.h("web_watch_imax_theater_mode");A.isFullWindowSession=_.fB("START_IN_FULL_WINDOW_MODE");A.hasCreateFamilyDialog=!1;A.mastheadHeight=56;A.networkStatusManager=new _.H1;A.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"};A.dynamicActionMap={"yt-run-attestation-command":function(L){var O=_.Wjn.instance,X=_.q(L,_.H5H);return X?_.h("use_rta_manager_for_async")&&
jUZ()?lEn(O,X,L.clickTrackingParams):GR7(O,X,L.clickTrackingParams):_.Ry(Error("li"))}};
A.isFrostedGlassDisabled=!1;A.isChannelOrPlaylistPage=!1;return A};
_.g(Uy,_.G);_.P=Uy.prototype;_.P.created=function(){var A=_.X5();_.h("kevlar_clear_duplicate_pref_cookie")&&_.p7(_.c1,function(){var L=_.hj.get("PREF");L&&!/f\d=/.test(L)&&(L=_.dN("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=L?"PREF=null;domain="+L+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.h("gzip_gel_with_worker")&&_.Ki_();_.h("jspb_serialize_with_worker")&&DAS();_.h("web_worker_availability_check")&&pmM();_.h("nwl_init_killswitch")||T6S().then(function(){_.c1.addLowPriorityJob(lBB)});
this.pageManagerAttachedPromise=_.AI();this.ytdAppBehavior.loadDepsPromise=_.Fe([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.Of(this.onThrottledScroll,200,this);_.h("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);xAk();sHM=!!_.WY("ytappsettings.initialized");CI=_.WY("ytappsettings.previousValue");ZhJ=_.WY("ytappsettings.previousSnapshotTime");sHM||(sHM=!0,jFS());mRB();fBZ();_.QT("DEFERRED_DETACH",
_.h("kevlar_tuner_should_defer_detach"));_.QT("REUSE_COMPONENTS",!0);_.QT("STAMPER_STABLE_LIST",!0);_.QT("SCHEDULED_LAZY_LIST",!0);_.QT("openPopupConfig",lkX);_.QT("useClickHandler",!0);_.h("kevlar_shell_cleanup")&&_.c1.addLowPriorityJob(axM.bind(this,_.Ou.caches));_.fB("IS_SHELL_LOAD")&&_.CM({shellStartupDurationMs:Math.round((0,_.O$)()-_.rQ())});Yk$(this.networkStatusManager);_.h("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",OuB(N7$)),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!",
OuB(rJn)),console.log("%cVisit http://go/join-youtube-web to apply today.",OuB(K3Z)));_.aKZ(A.resolve(_.Gg),1E3)};
_.P.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var A=w3Q();A&&!_.h("external_fullscreen_killswitch")&&document.addEventListener(A,this.setFullscreen.bind(this));(A=window.matchMedia("(prefers-color-scheme: dark)"))&&A.addEventListener&&A.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.P.attached=function(){var A=this;_.kq().processSignal("ci");_.h("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.XJc?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.bE(_.R1J(),"SUCCESS");this.updateIconSet();_.xK(this.guideInnerContent,!1);_.Q6().initVisibilityObserver();this.guideService.guideElement=this.guide;var L=document.createElement("ytd-miniplayer"),O=_.YJ(this.hostElement).querySelector("#content");
_.YJ(this.hostElement).insertBefore(L,O);_.kq().processSignal("ma");_.X5().resolve(_.z_).init(L);_.fB("IS_SHELL_LOAD")&&(O=document.createElement("ytd-network-status-banner"),_.YJ(this.hostElement).insertBefore(O,L));_.h("kevlar_right_click_on_lockups")&&_.vi._onCaptureClick&&document.addEventListener("contextmenu",_.vi._onCaptureClick.bind(_.vi),!0);var X=function(){var x=_.uv("yt-page-navigation-progress");_.YJ(A.hostElement).appendChild(x)};
setTimeout(function(){_.kq().parkOrScheduleJob(X,0,"eocs",16)},0);
_.h("service_worker_push_enabled")&&_.p7(_.c1,gKJ);_.Bh(_.zu.getInstance(),this.dynamicActionMap,this.hostElement);_.P4(this.hostElement,"ytd-app-attached");_.kq().processSignal("aa");y9J(this.hostElement);_.oZ("gapi.load",_.E9O);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.p7(_.c1,
function(){var x=document.createElement("ytd-video-preview");_.YJ(_.YJ(A.hostElement).querySelector("#video-preview")).appendChild(x)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.p7(_.c1,function(){JIn();A.registerWithViewTransitionManager()});
if(_.FZ()&&this.isAppDarkTheme()!==_.cy())this.onDarkModeToggledAction();else L=_.C3()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==L&&(_.h("enable_dark_theme_only_on_shorts")?_.$c(_.h("enable_dark_theme_only_on_shorts_control")?window.location.href:_.aO(window.location.href,{theme:"dark"})):_.Rv(new _.pe("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(RvX=new FLZ(this.hostElement)),qFQ=new SFS(this.hostElement),htk=new bw7(this.hostElement),AN7=new oZM(this.hostElement)};
_.P.getThemeSettingsToLog=function(){var A=_.C3()==="USER_INTERFACE_THEME_DARK";A=_.FZ()?_.cy()?"os-dark":"os-light":A?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:A,cookiesEnabled:_.qO()}};
_.P.detached=function(){_.Jz(this.guideInnerContent);_.c1.cancelJob(GQ);GQ=0;_.c1.cancelJob(cd);cd=0;_.jyO(IxX);IxX.length=0;QFz=_.dq9=null;_.Q6().dispose();_.h("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.Md(_.zu.getInstance(),RvX.playlistHandlerActionMap,RvX.JSC$33688_clientRoot);_.Md(_.zu.getInstance(),qFQ.downloadManagerActionMap,qFQ.JSC$33994_clientRoot);_.Md(_.zu.getInstance(),htk.feedbackCollectorActionMap,htk.JSC$33989_clientRoot);
for(var A=_.d(AN7.eventListeners),L=A.next();!L.done;L=A.next()){var O=_.d(L.value);L=O.next().value;O=O.next().value;O=_.d(O);for(var X=O.next();!X.done;X=O.next()){var x=_.d(X.value);X=x.next().value;x=x.next().value;L.removeEventListener(X,x)}}_.Md(_.zu.getInstance(),AN7.autonavPauseActionMap,AN7.JSC$20903_clientRoot)};
_.P.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.qG().getFlag(186)};
_.P.computeIsInlinePreviewEnabled=function(A,L,O){return!O&&_.znJ({miniplayerIsActive:A,miniplayerPlaybackState:L})};
_.P.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.JY({type:"SET_FROSTED_GLASS_MODE",payload:!_.h("web_frosted_glass")||this.isFrostedGlassDisabled?"none":!this.isFrostedGlassInitialized&&this.applyFrostedGlassToChipBar?"loading-with-chipbar":this.isFrostedGlassInitialized||this.applyFrostedGlassToChipBar?this.applyFrostedGlassToChipBar?"with-chipbar":"without-chipbar":"loading-without-chipbar"}))};
_.P.computeIsFrostedGlassDisabled=function(A,L,O,X){return A||L||O||X&&_.h("web_frosted_glass_disable_watch")};
_.P.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.h("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.P.computeIsHomePage=function(A,L){if(!A||L==null||!L.endpoint)return!1;var O;return((O=_.q(L.endpoint,_.gM))==null?void 0:O.browseId)==="FEwhat_to_watch"};
_.P.updateIsChannelOrPlaylistPage=function(){if(_.h("web_frosted_glass")){var A,L,O=(L=(A=_.X5().resolve(_.Ot(_.JI)))==null?void 0:A.getCurrentPage())==null?void 0:L.pageSubtype;this.isChannelOrPlaylistPage=O?["channel","channels","playlist"].includes(O):!1}};
_.P.scheduleFrostedGlassInitialization=function(){var A=this;_.h("web_frosted_glass")&&_.kq().parkOrScheduleJob(function(){A.isFrostedGlassInitialized=!0},0,_.AP(["eocs",
"cr"]),300)};
_.P.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.QEg(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.JY({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.JY({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.P.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(k_k(!0))};
_.P.onYtSignalActionRequestPersistentStorage=function(){if(!_.h("request_persistent_storage_killswitch")){var A=_.X5().resolve(_.RS7);A.cachedPersistStatePromise||(A.cachedPersistStatePromise=u2X())}};
_.P.handleYtChannelCreationFormEndpoints=function(A){A&&this.ytComponentBehavior.resolveCommand(A)};
_.P.handleShowEngagementPanelEndpoint=function(A){A&&this.ytComponentBehavior.resolveCommand(A)};
_.P.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(k_k(!1))};
_.P.initIconDefs=function(A,L){var O=document.createElement("iron-iconset-svg");O.name=A;A=document.createElementNS("http://www.w3.org/2000/svg","svg");O.appendChild(A);A.appendChild(L);document.body.appendChild(O);return O};
_.P.onWindowResized=function(){_.dQ(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var A=_.MGl.getInstance();A.documentWidth_=document.body.clientWidth;XC$(A)};
_.P.onWindowScrolled=function(){var A=_.X5().resolve(_.JI).getCurrentPage();if(A!=null&&A.getScrollTop){var L=this.ytdReduxBehavior,O=L.dispatch;A=A.getScrollTop()<=0;O.call(L,_.JY({type:"SET_SCROLL_AT_TOP",payload:A}))}};
_.P.guideIsVisibleButNotPersistentSelectorChanged=function(){var A=_.X5().resolve(_.JI).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=A.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"),
A.setScrollTop(this.guideScrollTop));_.YK(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.P.getCurrentPageScrollableElementType=function(){var A=_.X5().resolve(_.JI).getCurrentPage();if(A&&A.getPageScrollingElement())return A.getPageScrollingElement().nodeName};
_.P.observeGuideVisibility=function(){var A=_.MGl.getInstance(),L=this.miniGuideVisible;A.guidePersistentAndVisible_=this.guidePersistentAndVisible;A.miniGuideVisible_=L;XC$(A)};
_.P.handleEduDismissAction=function(A){A&&A.eduDismissAction&&(_.dQ(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.j0H.getInstance(),_.u6.set(A.eduDismissAction.key+"-dismissed",!0))};
_.P.handleEduImpressionAction=function(A){if(A&&A.eduImpressionAction){var L=_.j0H.getInstance();A=A.eduImpressionAction.key;L.JSC$13975_eduDisplayedThisLoad_[_.ZRH[A].setKey||A]=!0;_.u6.set(A+"-impression",parseInt(_.u6.get(A+"-impression")||0,10)+1)}};
_.P.onYtSignalActionConfirmMentionsEdu=function(){_.dQ(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.DY.getInstance();_.V6.set("edu-dismissed",!0)};
_.P.onYtSignalActionRecordMentionsEduImpression=function(){_.DY.getInstance();var A=_.V6.set,L=parseInt(_.V6.get("edu-impressions"),10);A.call(_.V6,"edu-impressions",(isFinite(L)?L:0)+1)};
_.P.onYtPageManagerAttached=function(A){var L;((L=_.AT(A))==null?void 0:L.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.P.onInvokeInstrumentManagerAction=function(A,L){GPS(L,A)};
_.P.updateIconSet=function(){var A=this.hostElement.querySelector("#masthead");if(A){var L=_.uy(A),O=L.querySelector("g#yt-logo-updated");O&&(A=document.createElementNS("http://www.w3.org/2000/svg","defs"),A.appendChild(O.cloneNode(!0)),(L=L.querySelector("g#yt-logo-red-updated"))&&A.appendChild(L.cloneNode(!0)),this.initIconDefs("yt-logos-ext",A))}};
_.P.updateMastheadData=function(){var A=this,L,O,X,x,J;return _.u(function(Y){if(Y.nextAddress==1){L=A.data;O=A.hostElement.querySelector("#masthead");if(!O)return Y.return();_.kd(A,function(){O.data=A.topbarData});
if(!A.get("response.topbar",L)||A.get("response.topbar.responseContext.maxAgeSeconds",L)===0)return Y.jumpTo(0);if(X=_.X5().resolve(_.dL))return Y.yield(X(),6);x=_.X5().resolve(_.t2);return Y.yield(x.put("service:topbar:fallback",new _.bR({innertubeResponse:A.get("response.topbar",L)})),0)}return(J=Y.yieldResult)?Y.yield(J.put("service:topbar:fallback",new _.bR({innertubeResponse:A.get("response.topbar",L)})),0):Y.jumpTo(0)})};
_.P.computeTopbarData=function(A){if(!A)return null;var L;return this.isShortsPage&&this.topbarData&&!_.q((L=A.response)==null?void 0:L.topbar,AMJ)?this.topbarData:A.response&&"topbar"in A.response?_.q(A.response.topbar,AMJ)||null:null};
_.P.onSetTheaterModeEnabled=function(A,L){this.isTheaterModeSession=L.enabled;this.setTheaterModeStyles(L.enabled)};
_.P.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.P.onDarkModeToggledAction=function(){var A=_.eh(window.location.href);if(!_.h6r(A)){(A=!!_.$L(window.location.href).themeRefresh)&&_.Rv(new _.pe("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!A){jFS();A={themeRefresh:1};var L=_.X5().resolve(_.JI);if(L.isOnWatch()){var O,X;L=((O=L.getPlayerFromWatch())==null?void 0:(X=O.getPlayer())==null?void 0:X.getCurrentTime())||0;L>=1&&(A.time_continue=Math.floor(L))}_.qO()||_.C3()!=="USER_INTERFACE_THEME_DARK"||(A.theme="dark");_.$c(_.aO(window.location.href,
A))}_.h("web_appshell_refresh_trigger")&&_.Ou.caches&&this.refreshAppShellResponse();O=_.W3(window.location.href);_.qq(_.X5().resolve(_.gU),_.Az(O,"theme"))}};
_.P.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.P.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.P.onPlayerFullscreen=function(A){_.O0();this.playerFullscreen=A};
_.P.setRestrictedMode=function(A){var L=_.qG();_.gQ(0,58,A);L.save();_.X5().resolve(_.Rl).reload()};
_.P.onPageChanged=function(A){A.detail.newPageType==="ytd-watch-flexy"||A.detail.newPageType==="ytd-watch-fixie"||A.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.mz("WEB_PAGE_TYPE_WATCH")):A.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.mz("WEB_PAGE_TYPE_SHORTS")):A.detail.newPageType==="ytd-browse"&&A.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.mz("WEB_PAGE_TYPE_MINI_APP")):_.h("web_frosted_glass")&&A.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.mz("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.mz("WEB_PAGE_TYPE_UNKNOWN"));A.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.P.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.P.onGuideToggleTap=function(){_.P4(this.hostElement,"yt-guide-toggle")};
_.P.onGuideToggleHover=function(){_.P4(this.hostElement,"yt-guide-hover")};
_.P.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.P.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.P.setMastheadTheme=function(){var A=_.uy(this.hostElement).querySelector("#masthead");A&&(A.dark=A.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),A.isDarkThemeForced=!1)};
_.P.onRequestPanelModeChange=function(A,L){this.hideHeaderShadow=L.mode!=="seamed"};
_.P.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.P.onDrawerIronSelect=function(A){_.AT(A).id==="guide"&&this.processDrawerIronSelect()};
_.P.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var A="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(A="opened"));_.P4(this.hostElement,"yt-autonav-pause-guide-"+A)};
_.P.onAddElementToApp=function(A){_.YJ(this.hostElement).appendChild(A.detail)};
_.P.onThrottledScroll=function(){var A=_.X5().resolve(_.JI).getCurrentPage();A&&(this.scrollAtTop=A.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.P.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.P.setFullscreen=function(){if(_.h("external_fullscreen")||!this.isWatchPage){var A=_.h("kevlar_fullerscreen_root_only_killswitch")?!!_.O0():!!_.O0()&&_.O0()===document.documentElement;A=(this.isWatchPage||_.h("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(A||this.isFullWindowSession);this.fullscreen!==A&&((this.fullscreen=A)&&_.YK(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.Ai().dispatch(_.i0j(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.dQ(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.P.setFullscreenLoggingForShorts=function(A){var L,O,X;return _.u(function(x){if(x.nextAddress==1)return x.yield((L=_.d0())==null?void 0:L.getPlayerPromise(),2);O=x.yieldResult;(X=O)==null||X.setAppFullscreen(A);_.qo(x)})};
_.P.updateMastheadCssHeight=function(){var A=this.mastheadHeight;this.fullscreen&&(A=0);_.eq(this.hostElement,{"--ytd-masthead-height":A+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.P.updateNetworkStatusBannerDisplayStatus=function(){var A="unset";this.fullscreen&&(A="none");_.eq(this.hostElement,{"--ytd-network-status-banner-display":A})};
_.P.updateNetworkStatusBannerCssHeight=function(){var A="unset";this.fullscreen&&(A="0px");_.eq(this.hostElement,{"--ytd-network-status-banner-max-height":A})};
_.P.updateScrollAndMasthead=function(A,L,O,X){this.iMaxTheaterMode||(X=!1);var x=_.X5().resolve(_.JI).getCurrentPage();A||L||X?(document.body.classList.add("no-scroll"),x.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.tT(this,this.onScroll)),x.setScrollTop(0),_.eq(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.U5()+"px"})):O?_.P4(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.P4(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
x.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.tT(this,this.onScroll)));this.mastheadHidden=A||L||O;this.updateMastheadCssHeight();_.h("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.P.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.P.onYtNavigateAction=function(A){A=this.get("navigateAction.endpoint",A);_.P4(this.hostElement,"yt-navigate",{endpoint:A})};
_.P.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var A=document.createElement("yt-create-family-dialog");_.YJ(this.hostElement).appendChild(A);this.hasCreateFamilyDialog=!0}};
_.P.onSetPushNotificationsEnabledCommand=function(A){var L=this,O=_.q(A,o1M);O&&typeof O.enabled==="boolean"&&(Notification.permission!=="granted"?tmS().then(function(){Notification.permission==="granted"?(OMM(!O.enabled).then(skz),O.successAction&&_.TZ(L.hostElement,[O.successAction])):O.failureAction&&_.TZ(L.hostElement,[O.failureAction])}):(OMM(!O.enabled).then(skz),O.successAction&&_.TZ(this.hostElement,[O.successAction])))};
_.P.onYtSignalActionEnableChromeNotifications=function(){bMB(!0)};
_.P.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.q(this.topbarData.hotkeyDialog,XPk)}}})};
_.P.onYtSignalActionShowKeyboardShortcutDialog=function(){_.dQ(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.P.onYtEndpointChangeHandler=function(A,L){var O=_.Pw(_.F6);O.pendingPrefetchJob_&&(L=!(!L||L.autonav!="1"),O.pendingPrefetchJob_.resolve(A&&_.Yod(A)?_.uCM(A,L):""),O.pendingPrefetchJob_=null);_.dQ(this.hostElement,"yt-pause-active-page-context");_.dQ(this.hostElement,"ytd-log-youthere-nav");_.dQ(this.hostElement,"yt-prepare-page-dispose")};
_.P.handleCommandWithCommandHandler=function(A,L){_.S5.instance.resolveCommand(A,{form:{element:L}})};
_.P.onYtTimedCommand=function(A){var L=this;A=_.q(A,jlJ);var O=A.command;O&&_.fu(_.c1,function(){var X=_.q(O,_.uGj);X?(_.S5.instance.resolveCommand(O),L.maybeLogGetAnswerRequestTick(X)):_.VN(L.hostElement,[O],L.hostElement)},A.timeoutMs||0)};
_.P.maybeLogGetAnswerRequestTick=function(A){A&&A.isFirstRequest&&(_.Fz("search_overview_answer"),_.Rk("so_rq",void 0,"search_overview_answer"))};
_.P.onYtSignalActionSkipNavigation=function(){var A=_.X5().resolve(_.JI).getCurrentPage();_.$o(A)};
_.P.onYtSignalActionCopyDebugData=function(){czJ()};
_.P.handleEntityUpdateCommand=function(A){_.hY(_.q(A,_.Ya3).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.P.logFlowLoggingEventCommand=function(A){if(A=_.q(A,_.A6_))if(A.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var L=A.flowEventNamespace,O=A.flowEventType,X=A.flowType;X&&L&&O&&_.OEu(_.n3(L,O,A.flowEventMetadata),X)}else{L=_.bn();O=A.flowEventNamespace;X=A.flowEventType;var x=A.flowType;x&&O&&X&&_.ti(L,_.n3(O,X,A.flowEventMetadata),x,A.flowNonce)}};
_.P.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.P.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.P.onTouchStart=function(){var A=_.mk();_.Fn()&&_.k4(A.JSC$14202_screenManager,{visualElement:A.ve})};
_.P.handleSelectLanguageCommand=function(A){if(A=_.q(A,k6z).hl){var L=_.qG();L.set("hl",A);L.save();_.X5().resolve(_.Rl).reload()}};
_.P.handleConfirmDialogEndpoint=function(A){(A=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(A))&&this.ytOpenPopupBehavior.openPopup(A)};
_.P.handleOpenPopupNavigationEndpoints=function(A,L){_.h("web_button_rework")&&(A=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(A))&&this.ytOpenPopupBehavior.openPopup(A,L)};
_.P.handleSaveCommandToSessionStorage=function(A){if(A=_.q(A,_.kv7)){var L=A.key;L&&A.command&&window.sessionStorage.setItem(L,JSON.stringify(A.command))}};
_.P.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(A){A&&A.active&&A.active.postMessage({type:"refresh_shell"})}).catch(function(A){A.name!=="SecurityError"&&_.C7(A)})};
_.P.onDeviceThemeChanged=function(){var A=_.cy();_.gQ(_.qG(),185,A);_.qG().save()};
_.P.handleYtRegisterPromoCommand=function(A){if(_.q(A,v1$)){var L=_.X5().resolve(_.JI).getCurrentPage()||this.hostElement;Ydz().registerPromoCommand(_.q(A,v1$),L)}};
_.P.onYtNavigateHomeAction=function(){if(!_.h("kevlar_miniplayer_navigate_home_from_app_killswitch")){var A,L,O,X,x=(X=(A=this.topbarData)==null?void 0:(L=A.logo)==null?void 0:(O=L.topbarLogoRenderer)==null?void 0:O.endpoint)!=null?X:_.K2;this.ytComponentBehavior.resolveCommand(x)}};
_.P.onYtLocationCollectionCommand=function(A){xVk(_.q(A,Tj7))};
_.P.onYtGetLocationCommand=function(A){jJX(_.q(A,uFX),this)};
_.P.updateRenderGuideFromBinding=function(A){this.renderGuide=A.detail.value};
_.P.updateGuidePersistentAndVisibleFromBinding=function(A){this.guidePersistentAndVisible=A.detail.value};
_.P.updateMiniGuideVisibleFromBinding=function(A){this.miniGuideVisible=A.detail.value};
_.P.onThemeSelected=function(A,L){var O=_.qG(),X=A||L?A:_.cy(),x=(X&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!X&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.h6r(_.eh(window.location.href));_.gQ(0,165,A);_.gQ(0,174,L);O.save();x&&_.dQ(this.hostElement,"yt-dark-mode-toggled-action",[X]);_.dQ(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.P.getCurrentTheme=function(){return _.FZ()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.C3()};
_.P.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.P.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.P.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.P.handleShowConsentPrimitive=function(A){var L=this,O,X;return _.u(function(x){if(x.nextAddress==1){try{O=(X=_.d0())==null?void 0:X.getPlayerPromise()}catch(J){}return x.yield(gu7(A,O),2)}_.dQ(L.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.qo(x)})};
_.P.handleSelectActiveIdentityEndpointInternal=function(A){_.By();A=_.q(A,_.i2L);if(A!=null&&A.supportedTokens){A=_.d(A.supportedTokens);for(var L=A.next();!L.done;L=A.next())L=L.value,L.accountSigninToken&&_.$c(L.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.P.handleUpdatePermissionRoleCommand=function(A){if(A=_.q(A,_.rBJ)){var L;this.hasDelegation=!((L=_.q(A.renderer,_.NS7))==null||!L.status)}};
_.P.registerWithViewTransitionManager=function(){var A=_.X5().resolve(_.Ot(_.iY));if(A){var L,O=(L=this.guide)==null?void 0:L.querySelector("#scrim"),X;L=(X=this.guide)==null?void 0:X.querySelector("#contentContainer");O&&L&&A.isAnyTransitionEnabled&&(X={},A.viewTransitionCoordinator.registerElement(O,(X.slide="app-drawer-scrim-page-transition",X["lockup-to-watch"]="app-drawer-scrim-page-transition",X["learning-journey"]="app-drawer-scrim-page-transition",X)),O={},A.viewTransitionCoordinator.registerElement(L,
(O.slide="app-drawer-container-page-transition",O["lockup-to-watch"]="app-drawer-container-page-transition",O["learning-journey"]="app-drawer-container-page-transition",O)))}};
_.v2.Object.defineProperties(Uy.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.h("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.v2.Object.defineProperties(Uy,{template:{configurable:!0,enumerable:!0,get:function(){if(VyZ===void 0){var A=document.createElement("template");_.p(A,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<snackbar-container class="style-scope ytd-app"></snackbar-container>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n<template is="dom-if" if="[[clientOnlyWizTooltipsEnabled]]" class="style-scope ytd-app">\n  <yt-tooltip class="style-scope ytd-app"></yt-tooltip>\n</template>\n');
A.content.insertBefore(_.W().content.cloneNode(!0),A.content.firstChild);VyZ=A}A=VyZ;return A}}});
Uy.prototype.onOpenHotkeyDialog=Uy.prototype.onOpenHotkeyDialog;Uy.prototype.setFullscreen=Uy.prototype.setFullscreen;Uy.prototype.onAddElementToApp=Uy.prototype.onAddElementToApp;Uy.prototype.onDrawerIronSelect=Uy.prototype.onDrawerIronSelect;Uy.prototype.onGuideOpenButtonHover=Uy.prototype.onGuideOpenButtonHover;Uy.prototype.onRequestPanelModeChange=Uy.prototype.onRequestPanelModeChange;Uy.prototype.onPageDataUpdated=Uy.prototype.onPageDataUpdated;Uy.prototype.onPageChanged=Uy.prototype.onPageChanged;
Uy.prototype.onSetTheaterModeEnabled=Uy.prototype.onSetTheaterModeEnabled;Uy.prototype.updateMastheadData=Uy.prototype.updateMastheadData;Uy.prototype.onYtPageManagerAttached=Uy.prototype.onYtPageManagerAttached;Uy.prototype.observeGuideVisibility=Uy.prototype.observeGuideVisibility;Uy.prototype.guideIsVisibleButNotPersistentSelectorChanged=Uy.prototype.guideIsVisibleButNotPersistentSelectorChanged;Uy.prototype.isInlinePreviewEnabledChanged=Uy.prototype.isInlinePreviewEnabledChanged;
Uy.prototype.isWatchPageChanged=Uy.prototype.isWatchPageChanged;Uy.prototype.dispatchFrostedGlassMode=Uy.prototype.dispatchFrostedGlassMode;_.I([_.N(_.HL),_.Z("design:type",Object)],Uy.prototype,"ytdReduxBehavior",void 0);_.I([_.N(_.KP.YtEventForwardingBehavior),_.Z("design:type",Object)],Uy.prototype,"ytEventForwardingBehavior",void 0);_.I([_.N(_.iv.YtOpenPopupBehavior),_.Z("design:type",Object)],Uy.prototype,"ytOpenPopupBehavior",void 0);
_.I([_.N(_.es.YtActionHandlerBehavior),_.Z("design:type",Object)],Uy.prototype,"ytActionHandlerBehavior",void 0);_.I([_.N({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.zu.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.h("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var A;((A=this.actionRouterNode.hostElement)!=null?A:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var A;((A=this.actionRouterNode.hostElement)!=null?A:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(A){this.actionRouter_.handleAction(A.detail)}}),
_.Z("design:type",Object)],Uy.prototype,"ytActionRouterBehavior",void 0);_.I([_.N(nZM.YtdAppBehavior),_.Z("design:type",Object)],Uy.prototype,"ytdAppBehavior",void 0);_.I([_.N(_.Nr.YtEndpointBehavior),_.Z("design:type",Object)],Uy.prototype,"ytEndpointBehavior",void 0);_.I([_.N(tyX.YtEndpointHandlerWithYpcBehavior),_.Z("design:type",Object)],Uy.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.I([_.N(DuM.YtLogYpcFlowCommandsBehavior),_.Z("design:type",Object)],Uy.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.I([_.N(_.B.YtRendererBehavior),_.Z("design:type",Object)],Uy.prototype,"ytRendererBehavior",void 0);_.I([_.N(_.v$.YtComponentBehavior),_.Z("design:type",Object)],Uy.prototype,"ytComponentBehavior",void 0);_.I([_.K({selector:_.NFZ}),_.Z("design:type",Object)],Uy.prototype,"tabGesturesIsActive",void 0);_.I([_.K(),_.Z("design:type",Boolean)],Uy.prototype,"renderGuide",void 0);
_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Uy.prototype,"guidePersistentAndVisible",void 0);_.I([_.K({selector:_.irZ}),_.Z("design:type",Boolean)],Uy.prototype,"guideIsVisibleButNotPersistent",void 0);_.I([_.K({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],Uy.prototype,"standalone",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Uy.prototype,"miniGuideVisible",void 0);
_.I([_.K({selector:_.H2u}),_.Z("design:type",Number)],Uy.prototype,"miniplayerPlaybackState",void 0);_.I([_.K({selector:_.Qi,reflectToAttribute:!0}),_.Z("design:type",Boolean)],Uy.prototype,"miniplayerIsActive",void 0);_.I([_.K({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.Z("design:type",Boolean)],Uy.prototype,"isInlinePreviewEnabled",void 0);_.I([_.K(),_.Z("design:type",Boolean)],Uy.prototype,"isInlinePreviewDisabled",void 0);
_.I([_.K({reflectToAttribute:!0,value:function(){return _.fB("START_IN_FULL_WINDOW_MODE")}}),
_.Z("design:type",Boolean)],Uy.prototype,"mastheadHidden",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Uy.prototype,"playerFullscreen",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Uy.prototype,"deprecateFullerscreenUi",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Uy.prototype,"fullscreen",void 0);_.I([_.K({value:!1,reflectToAttribute:!0}),_.Z("design:type",Boolean)],Uy.prototype,"hideHeaderShadow",void 0);
_.I([_.K({value:{GUIDE_ALT_LABEL:_.b3("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.Z("design:type",Object)],Uy.prototype,"menuStrings",void 0);_.I([_.K({computed:"computeTopbarData(data)"}),_.Z("design:type",Object)],Uy.prototype,"topbarData",void 0);_.I([_.K({selector:_.fY}),_.Z("design:type",Boolean)],Uy.prototype,"isWatchPage",void 0);_.I([_.K({selector:_.Z2u,reflectToAttribute:!0}),_.Z("design:type",Boolean)],Uy.prototype,"isShortsPage",void 0);_.I([_.K({selector:function(A){return _.mC(A)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.Z("design:type",Boolean)],Uy.prototype,"isMiniAppPage",void 0);_.I([_.K({selector:function(A){return _.mC(A)==="WEB_PAGE_TYPE_BROWSE"}}),
_.Z("design:type",Boolean)],Uy.prototype,"isBrowsePage",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Boolean)],Uy.prototype,"scrolling",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Uy.prototype,"hasDelegation",void 0);_.I([_.K({reflectToAttribute:!0,value:!1}),_.Z("design:type",Boolean)],Uy.prototype,"guideScrolledByTouch",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Uy.prototype,"darkerDarkTheme",void 0);
_.I([_.K(),_.Z("design:type",Object)],Uy.prototype,"isFrostedGlassInitialized",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Uy.prototype,"frostedGlassExp",void 0);_.I([_.K({selector:function(A){return A.ui.chipBarIsSticky}}),
_.Z("design:type",Boolean)],Uy.prototype,"chipBarIsSticky",void 0);_.I([_.K({computed:"computeIsHomePage(isBrowsePage, data)"}),_.Z("design:type",Boolean)],Uy.prototype,"isHomePage",void 0);_.I([_.K({reflectToAttribute:!0}),_.Z("design:type",Object)],Uy.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.I([_.K(),_.Z("design:type",Object)],Uy.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.I([_.t5("guide"),_.Z("design:type",Object)],Uy.prototype,"guide",void 0);
_.I([_.t5("guide-service"),_.Z("design:type",XQJ)],Uy.prototype,"guideService",void 0);_.I([_.t5("guide-inner-content"),_.Z("design:type",HTMLDivElement)],Uy.prototype,"guideInnerContent",void 0);_.I([_.K({selector:_.zse}),_.Z("design:type",String)],Uy.prototype,"frostedGlassMode",void 0);
_.I([_.hT("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Uy.prototype,"dispatchFrostedGlassMode",null);_.I([_.K({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.Z("design:type",Object)],Uy.prototype,"isFrostedGlassDisabled",void 0);
_.I([_.hT("isWatchPage"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Uy.prototype,"isWatchPageChanged",null);_.I([_.r("isHomePage","chipBarIsSticky"),_.Z("design:type",Boolean),_.Z("design:paramtypes",[])],Uy.prototype,"applyFrostedGlassToChipBar",null);_.I([_.K(),_.Z("design:type",Object)],Uy.prototype,"isChannelOrPlaylistPage",void 0);
_.I([_.iy("isInlinePreviewEnabled"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Uy.prototype,"isInlinePreviewEnabledChanged",null);_.I([_.hT("guideIsVisibleButNotPersistent"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Uy.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.I([_.hT("guidePersistentAndVisible","miniGuideVisible"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Uy.prototype,"observeGuideVisibility",null);_.I([_.by("attached"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],Uy.prototype,"onYtPageManagerAttached",null);_.I([_.hT("data"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype",Promise)],Uy.prototype,"updateMastheadData",null);
_.I([_.by("yt-set-theater-mode-enabled"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent,Object]),_.Z("design:returntype")],Uy.prototype,"onSetTheaterModeEnabled",null);_.I([_.by("yt-page-type-changed"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Uy.prototype,"onPageChanged",null);_.I([_.by("yt-page-data-updated"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Uy.prototype,"onPageDataUpdated",null);
_.I([_.by("yt-request-panel-mode-change"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event,Object]),_.Z("design:returntype")],Uy.prototype,"onRequestPanelModeChange",null);_.I([_.by("yt-guide-hover"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Uy.prototype,"onGuideOpenButtonHover",null);_.I([_.by("app-drawer-transitioned"),_.Z("design:type",Function),_.Z("design:paramtypes",[Event]),_.Z("design:returntype")],Uy.prototype,"onDrawerIronSelect",null);
_.I([_.by("yt-add-element-to-app"),_.Z("design:type",Function),_.Z("design:paramtypes",[CustomEvent]),_.Z("design:returntype")],Uy.prototype,"onAddElementToApp",null);_.I([_.by("yt-set-fullerscreen-styles"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Uy.prototype,"setFullscreen",null);_.I([_.by("yt-open-hotkey-dialog"),_.Z("design:type",Function),_.Z("design:paramtypes",[]),_.Z("design:returntype")],Uy.prototype,"onOpenHotkeyDialog",null);
_.I([_.Q({is:"ytd-app"})],Uy);_.kq().processSignal("eor");
_.C$();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
